Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: jack1234 on January 27, 2010, 02:46:51 PM
-
Hello
can anyone help, i need to disable / enable tangential cutting within the G code.
Many thanks.
-
You could do it with a custom macro, what you would do is open a notepad and in it type
DoOEMButton(241)
Save it as m101.m1s and place it in the macro folder of the profile you are using. Then when you call m111 from MDI or G Code it will just act like the toggle button for Tangential Control, ie if its on it will switch off and if Off it will switch on.
Hood
-
thanks hood, i will try that out.
-
hi hood
the toggle works but when i close the g code file it sometimes turns the tangetial control off, and sometimes doesn't! this is using the same gcode file and it appears to happen at random. then next time i load a g code file the toggle works in reverse since it is turning the tangential control on instead of off.
is there a way to turn it either on or off rather than toggle, so that you know for sure than you are utrning it on and off, and not just switching based o the current state?
many thanks
-
You would need to make two macros, one to turn on another to turn off,
The On would be
If Not GetOemLED(81) Then
DoOemButton (241)
End If
The Off one would be
If GetOemLED(81) Then
DoOemButton (241)
End If
Hood
-
thanks hood, i will give it a try.