Description

Operation

Operation during the syntax check takes place according to real program execution via the mode interface. That is to say,

can be evaluated.

Display

In real program execution, the file position (file name and offset, mc_active_file_offset_r and mc_active_file_name_r) is displayed synchronously to real axis motion. This no longer has any timing reference to program decoding.

When the syntax check is active, the file position is automatically displayed synchronous to decoding.

Therefore, for display of the file, operation does not have to take any distinction into account.

Programming example: NC program with syntax errors

The following example contains various syntax errors which permit continued decoding. The program can be run in the syntax check and individual errors are indicated.

%check_syntax
(-> domain error
N40 G01 X10 F11111111111111111111111111
(-> error
N50 command_unknown
(-> error
N60 V.E.not_present = 1
(-> error
N70 #CALL AX [X2, 11, 0]
(-> semantic error
N80 G00 G01 X100 F1000
N130 M30

Programming example: Single step/interrupting decoding

During the syntax check, the single step mode automatically takes effect at the decoding level. After every NC line, the program stops, which is indicated by the HOLD mode state. Decoding continues by one NC line when the START transition is commanded to the active mode. Thus, decoding of the NC commands (parameter allocations, branches, loops, etc.) can be executed singly, thus ensuring that the program sequence can be viewed during decoding.

Corresponding to the single step mode, the STOP/RESUME command is also active at the decoder level. Decoding is interrupted by commanding the STOP transition to the active mode. Decoding can be resumed by means of the RESUME command.