NOTE: This article is superseced by the newer manual on tangential cutting control: Tangential Cutting Setup
myCNC software has built-in features for tangential knife control.
Tangential knife control activated if the value of “1” is written into Global variable #7005.
In this case, input g-code file is modified automatically to support tangential knife:
All this control is performed automatically if global variable #7005 is set to “1”.
There are many possible ways to set the variable and have tangential control enabled permanently or switched on-off on-the-fly (for example if switching between Spindle, Marker and tangential nife in G-code program)
It's possible to set the variable #7005 by checking a “Knife Enabled” checkbox in “Tangential Knife” configuration widget.
The #7005 variable can be set in Software PLC, “HANDLER_INIT.plc”.
Software PLC procedure HANDLER_INIT is running at the start of myCNC control software right after a complete configuration sent to the controller.
It's very easy to add a line to set the variable 7005 -
gvarset(7005,1);
For example
main() { gvarset(60000,1); //run Servo ON procedure gvarset(7005,1); //Enable Tangential Knife control exit(99); };