|
User-Defined Blocks
You can define your own blocks of code or text. A block may be typed in the Post Processor Program File, using the syntax used for system-defined blocks, (i.e., the user-defined block name must be on a line by itself and be followed by a colon (:). Block statements will be on lines which follow and each must be followed by a semicolon (;).)
The user-defined block may then be referred to by this name and executed when called by the appropriate line in the toolpath.
Example:
MyBlock:
OUTPUT "Example of output" ;
In the example, MyBlock is the name of a user-defined block. When it is encountered in the toolpath, at the position where it was inserted, the instructions included in the following statements will be executed. In this case, the literal string "Example of output" will be sent to output.
Using the syntax rules described in this file, code, control characters, special constants or other statements may also be inserted in user-defined blocks.
|