Program code Comment
...
N6040 R10 = 66 X100 ; Trigger alarm 12080
...
N7000 M17
Main program:
Program code Comment
N1000 G0 X0 Y0 Z0
N1010 ...
...
N2050 SUBPROG1 ; Alarm output = "12080 channel K1 block N9040 syntax
error for text R10="
N2060 ...
N2350 SUBPROG2 ; Alarm output = "12080 channel K1 block N2350 syntax
error for text R10="
...
N3000 M30
Example 3: Revoke suppression of the current block display
Subprogram SUB1 with suppression:
Program code Comment
PROC SUB1 DISPLOF ; Suppress current block display in SUB1 subprogram.
Instead, the block is to be displayed with the SUB1
call.
...
N300 SUB2 ; Call subprogram SUB2.
...
N500 M17
Subprogram SUB2 without suppression:
Program code Comment
PROC SUB2 DISPLON ; Revoke suppression of the current block display in
subprogram SUB2.
...
N200 M17 ; Return to subprogram SUB1. Suppression of the cur-
rent block display is restored in SUB1.
Work preparation
3.2 Subprogram technique
NC programming
508 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0