586,103 active members*
3,185 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Posts
    26

    Need Wizard/Screen Help

    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)

  2. #2
    Join Date
    Nov 2004
    Posts
    118
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •