Hi,
I am trying to write a macro with vbscript which will call feed hold using "DoOEMButton(1001)" but mach3 seems to blow right through the macro and the code does not pause in the same way it would if i hit space bar or click thefeed hold button on the default mill screen set. Is this the correct way to call a feedhold from a macro?
I found the feedhold button info on this page:
http://www.machsupport.com/Mach3Wiki/index.php?title=OEM_ButtonsSome background in case there is a better idea for doing what i want instead of feed hold:
I have multiple vise setup holding many blanks that will all get the same machining done on them.
I have a gcode that changes coordinates, calls the main part to cut the part several times etc, this all seems to work perfectly once the coordinate systems are setup.
What i desire is that at the beginning of each copy mach3 prompts the operator to verify the XY Zero is lined up. To check this i have a camera on the spindle, so the gcode moves the camera to what it thinks the XY zero for each respective part is before it cuts it. If it is not lined up I want the user to be able to jog the spindle to line up the camera, reset the coordinate system offset, and then continue.
My first attempt at this was to make MsgBox in vbscript that more or less says "is it ok" and you have yes or no. if yes it just continues, but if the msgbox returns no i call "code" M0", the spindle stops, you can jog, use some buttons i made to reset the coordinates once the camera is aligned.
This is almost a good enough solution EXCEPT i dont want the spindle to stop if i have to re align. And it seems that you cant jog once the msgbox is up. So from what i understand a macro that just causes a feedhold would be excellent and i would not even need a msg box because for example, the gcode execution would just pause at the beginning of each piece, and the operator can just correct the XY zero if needed and then hit cycle start again. I have tested with pressing space bar to feed hold and it does appear you can jog in feedhold hence why i think it may be the solution.
Any comments suggestions would be appreciated, while i have some experience making screen sets and other simple macros, i can't really think why the feedhold does not happen/do not have the deepest understanding of the software.