Hello Guest it is March 29, 2024, 08:36:36 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shippman

Pages: 1
1
VB and the development of wizards / Re: Jogging while a Dialog box is open?
« on: December 09, 2008, 08:50:30 PM »
Disregard... I found another way to accomplish my task.

Thanks for looking

Mike

2
I've looked all thru this forum at all of the suggested ways to make a macro pause and I have not found the one that works for me... here goes

In a button script, I'm trying to move the spindle to a given point to zero X & Y, then run M6 to change the tool & zero Z and then perform some Gcode.  Everything works as expected except the script does not pause to allow me to zero Z after the tool change.

Sub Main()

My script has a routine that allows me to jog to a point and zero X & Y (this parts works) then

XDist = GetUserDRO(1152)

Code "m06 T20"
Code "M03"
Code "S21000"
Code "G4 P2"
Code "G00x0.0000y0.000z.7500"
Code "G01z-.3125F10.0"
Code "G01x"XDist""
Code "G01x0.0000F30.0"
Code "G01z.7500"
Code "M05"

End Sub

The M6 sets the tool # in the proper box on the screen and the "Change tool" LED flashes green and red as it does when run in Gcode.  I just can't get it to pause so I can do the "Auto Tool Zero" button.

Any suggestions?  I have tried SystemWaitFor(Start) with no results.


3
VB and the development of wizards / Jogging while a Dialog box is open?
« on: November 18, 2008, 09:46:14 PM »
I have created a button that uses VB script and starts by turning an output on and then opens a dialog box that ask the operator to jog to a new position and then to press the OK button or Cancel button.  The script then moves the spindle to an offset, zeros the DROs and turns the output off.

Everything works except you can not jog while the dialog box is open.  Is it possible?  If so... any help with the code?

Thanks in advance for any help.

Mike

Pages: 1