5 Understanding Programming
5-98
CJ2 CPU Unit Software User’s Manual
5-9 Checking Programs
CJ-series programs can be checked at the following four stages.
• Input check during CX-Programmer input operations
• Program check by CX-Programmer
• Instruction check during execution
• Fatal error check (program errors) during execution
The program will be automatically checked by the CX-Programmer at the following times.
The results of checking are output to the text tab of the Output Window. Also, the left bus bar of illegal
program sections will be displayed in red in ladder view.
The user program can be checked in the CX-Programmer. When the program is checked, the user can
specify program check in any of four levels: A, B, or C (in order of the seriousness of the errors) or a
custom check level.
The CX-Programmer does not check range errors for indirectly addressed operands in instructions. If
an instruction's operand data is invalid, the ER Flag will be turned ON during the program execution
check, which is described in the next section. For details, refer to the CS/CJ/NSJ-series Instructions
Reference Manual (Cat. No. W474).
For details on the CX-Programmer's checks, refer to the CX-Programmer Operation Manual (Cat. No.
W446).
5-9-1 Errors during CX-Programmer Input
Timing Checked
When inputting ladder diagrams Instruction inputs, operand inputs, programming patterns
When loading files All operands for all instructions and all programming patterns
When downloading files Models supported by the CJ Series and all operands for all instructions
During online editing Capacity, etc.
5-9-2 Program Checks with the CX-Programmer