Overview
Task
With very large, complex or manually created NC programs in particular, it is advisable to check the correctness of the syntax in advance. This is carried out by using the special “Syntax check mode”.
The syntax check can be executed
- either offline on a separate test system
- or directly on the machine controller.
Characteristics
Syntax errors detected in the NC program are displayed or optionally logged to a file so that the operator can then access them at a later date to correct the program.
NC program decoding is not aborted in the event of a syntax error. Instead, the check algorithm attempts to continue working on the next NC line.
To permit rapid processing of the NC program under test,
- the axes/drives are not moved during the syntax check.
- Technology functions (M, H and T functions) are not executed.
Since the entire NC channel (except for the position controller) participates in the syntax check, incorrect programming items are displayed, i.e. axis positions containing violations of software limit switches etc.. In these cases the syntax check is aborted and issues an error message.
Parametrisation
The syntax check can be run in 2 modes:
- Single step mode
- Automatic mode
The associated configuration is carried out in the channel parameter list.
Notice
After a syntax error message, a defined restart can be executed and largely avoids any follow-up errors.
The technology commands used in the NC program (M, H and T functions) must be specified for decoding by setting them in the channel parameter list accordingly.