|
Trace G-Code Output
When debugging a post-processor, it is often required to know which GPP program line generated a specific G-code output. The TRACE_LINENO system variable is used for that purpose.
When TRACE_LINENO is set to TRUE_, GPP2 will print the program line number before any actual output characters.
Example
[L0050] % // printed by line 50
[L0067] G00 X15. Y36.473 Z0.0 // printed by line 67
It is also possible to trace the toolpath block number where each G-code output was generated. That can be achieved by setting the TRACE_TPBLOCK variable to TRUE_.
Examples:
[B000100] G00 X15 // printed in TP block 100
Both trace variables may be set simultaneously to trace the line number and the toolpath block for each G-Code output line. If both are set the following format is used:
[L0085, B000100] G00 X15 // printed in TP block 100 by line 85
|