View Full Version : Need Wizard/Screen Help


elalto
07-24-2005, 11:57 AM
Hello,

I am trying to build a Wizard or input screen for Mach 2 and really need some HELP!

The program is a drill cycle, G81, I would like to place buttons on the screen that will place or input a string (G81 X1.00 Y2.45 R-1.75 Z2.00) into a “teach file” such as the MDI. I guess my question is How do I code a button to input code to the MDI line?

Any help or suggestions will be very much appreciated, I’m trying to learn Mach 2, and VB at the same time, NOT EASY… Help.

Thanks in advance,

Marcos (elalto)

Barker806
08-09-2005, 07:08 PM
You are not going to be able to put the code in the MDI line But you could have it run a few lines of code.

Put this in a button:

Code "G00 G90"
Code "G81 X1.00 Y2.45 R-1.75 Z2.00"
While IsMoving()
Wend
Code "G80"


This will drilll the hole in that position with the press of a button. This is not the best way but it is the most simple... The other way is to open up one of the wizards that I have done in screen designer. In SD you will be able to view the code in the wizard to make your very own!

If you need any help i will be around :)
Brian