There are some hidden commands that can be inserted into the START of conversion, END of conversion and PRE-CONVERSION user options. Using pre-defined macro command codes users can :
•Split lines at user defined positions using the ^ key.
•Replace a program word or letter address using the * and $ keys.
•Delete an entire line using the ~ key.
Examples are below.
SPLITTING LINES at a user defined position.
This option is available in START of conversion, END of conversion and PRE-CONVERSION options.
Original Command : G00G91G28Z0M09
Replacement Command : G00G91G28Z0^M09
Result :
G00G91G28Z0M09
to
G00G91G28Z0
M09
REPLACEMENT of single address or address and all data
This option is available in START of conversion, END of conversion and PRE-CONVERSION options.
(1) One-For-One Replacement
In the following example G43 is defined as the trigger to look for using the * to end the definition of the trigger.
Once the trigger is found, search the line for whatever follows the trigger ( in this case H ) and replace it with replacement command definition.
The following applies to CNC XChange Version prior to 20.0.0.
Original Command : G43*H
Replacement Command : HA
Result :
G43Z20.000H01M08
to
G43Z20.000HA01M18
The following applies to CNC XChange Version 20.0.0 and higher.
In the following example G43 is defined as the trigger to look for using the * to end the definition of the trigger. Other individual conversions the user desired to be executed on the line containing the trigger can then be defined ... each separated by the * character. Make certain that the correct order for original and replacement are maintained.
Original Command : G43*H*M08*
Replacement Command : G43*HA*M18*
Result :
G43Z20.000H01M08
to
G43Z20.000HA01M18
(2) Address and All Data Replacement
The following applies to CNC XChange Version prior to 20.0.0.
In the following example G43 is defined as the trigger to look for using the * to end the definition of the trigger.
Once the trigger is found, search the line for whatever follows the trigger ( in this case H ) and any associated data that follows the search designation ( this option is defined by the $ key ) ... and replace it with the replacement command definition.
Original Command : G43*H$
Replacement Command : HA
Result :
G43Z20.000H01M08
to
G43Z20.000HAM08
The following applies to CNC XChange Version 20.0.0 and higher.
In the following example G43 is defined as the trigger to look for using the * to end the definition of the trigger. Once the trigger is found, search the line for the address defined by the $ symbol and delete any original data associated with that address and replace it with the replacement definition.
Original Command : G43*H$*
Replacement Command : G43*HA*
Result :
G43Z20.000H01M08
G43Z20.000H02M08
to
G43Z20.000HAM08
G43Z20.000HAM08
Complete Line Replacement in END of Conversion Options
Users can use a trigger code along with the ~ key to designate a line for complete removal.
Original Command : G43
Replacement Command : ~
Result :
G43Z20.000H01M08
to
New macro options are being added as required and requested by CNC XChange users ...
check back often for new releases.
|