Share

Using modality for string and numeric variables

Most CNC machines use the concept of modality to avoid redundant data, thereby reducing the overall length of a part program. The result is that repeated coordinates or commands are automatically stripped from the part program to prevent repeated occurrences of a reserved word whose value is the same as the previous occurrence of that word.

When you use modality delimiters with the <seq> reserved word, PartMaker will strip all sequence numbers from the part program during post processing. This is accomplished by specifying 0 for Block Increment in PartMaker's Post Options dialog.

Note: Never place modality delimiters around two reserved words otherwise neither will be recognized. For example: {<coolant>X<x-coord>} is wrong. To make both those words modal, use the following syntax: {<coolant>}{X<x-coord>}

Was this information helpful?