Hello Guest it is March 29, 2024, 02:07:27 AM

Author Topic: disable / enable tangential cutting in G code  (Read 4098 times)

0 Members and 1 Guest are viewing this topic.

disable / enable tangential cutting in G code
« 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: disable / enable tangential cutting in G code
« Reply #1 on: January 27, 2010, 03:17:47 PM »
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
Re: disable / enable tangential cutting in G code
« Reply #2 on: January 28, 2010, 04:24:31 AM »
thanks hood, i will try that out.
Re: disable / enable tangential cutting in G code
« Reply #3 on: February 19, 2010, 08:11:23 AM »
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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: disable / enable tangential cutting in G code
« Reply #4 on: February 19, 2010, 02:19:48 PM »
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
Re: disable / enable tangential cutting in G code
« Reply #5 on: February 22, 2010, 01:07:48 PM »
thanks hood, i will give it a try.