Wire compensation is handled by XBUILD and can be configured several ways, depending on the CNC control requirements.
Case 1
The most common configuration is with Compensation On in the first linear X, Y feed move of the wire path, and Compensation Off in the last linear X, Y feed move of the path. If this is the required configuration, then define the LINEAR format as follows:
{N<SEQ>}{<COMP-STAT>}{<MOTION>} {X<X-COORD>}{Y<Y-COORD>}{F<FEED>} <EOB>
In the example shown above, you see the use of the modal delimiters {X<X-COORD>} and {Y<Y-COORD>}. They prevent the software from outputting repeated coordinates to shorten the NC code.
Case 2
When using cutter compensation, some controls require the output of both X and Y coordinates when Compensation is turned On. To achieve this, it is necessary to set up a conditional statement so that these coordinates are both output. If this is the required configuration, then define the LINEAR format as follows:
<IF><COMP-START><THEN> {N<SEQ>} <MOTION> <COMP-STAT> X<X-COORD> Y<Y-COORD><EOB> <ENDIF> <IFNOT><COMP-START><THEN> {N<SEQ>} {<MOTION>} {<COMP-STAT>} {X<X-COORD>} {Y<Y-COORD>} <EOB> <ENDIF>
The first <IF> <COMP-START> . . . <ENDIF> conditional statement is TRUEon the first linear move when Compensation is turned On. In that case the corresponding linear move section without modal delimiters is used and all coordinates are output, no matter if they are identical to the last position or not. For all other moves, when the <COMP-START> condition is FALSE, the second statements section with modal delimiters is used.