![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268052.webp)
13
Instruction Execution Checks
Section 1-2
1-2
Instruction Execution Checks
1-2-1
Errors Occurring at Instruction Execution
An instruction’s operands and placement are checked when an instruction is
input from a Peripheral Device or a program check is performed from a
Peripheral Device (other than a Programming Console), but these are not final
checks. The following four errors can occur when an instruction is executed.
Instruction Processing Error (ER Flag ON)
Normally, Instruction Processing Errors are non-fatal errors, but the PLC
Setup can be set to treat Instruction Processing Errors as fatal errors. If this
setting has been made, the Instruction Processing Error Flag (A29508) will be
turned ON and program execution will stop when an Instruction Processing
Error occurs.
Access Error (AER Flag ON)
Normally, Access Errors are non-fatal errors, but the PLC Setup can be set to
treat these errors as fatal errors. If this setting has been made, the Illegal
Access Error Flag (A29510) and the Indirect DM/EM BCD Error Flag
(A29509) will be turned ON and program execution will stop when an Access
Error occurs.
Illegal Instruction Error
The Illegal Instruction Error Flag (A29514) will be turned ON and program
execution will stop when this error occurs.
UM (User Program Memory) Overflow Error
The UM Overflow Error Flag (A29515) will be turned ON and program execu-
tion will stop when this error occurs.
1-2-2
Fatal Errors (Program Errors)
Program execution will be stopped when one of the following program errors
occurs. When a program error has occurred, the task number of the task that
was being executed when program execution was stopped is written to A294
and the program address is written to A298 and A299.
Use the contents of these words to locate the program error and correct it as
necessary.
Address
Description
A294
The task number of the current task is written to this word when pro-
gram execution is stopped because of a program error.
Cyclic tasks have task numbers 0000 to 001F (cyclic tasks 0 to 31).
Interrupt tasks have task numbers 8000 to 80FF (interrupt tasks 0 to
255).
A298 and
A299
The current program address is written to these words when program
execution is stopped because of a program error.
A299 contains the leftmost digits of the program address and A298
contains the rightmost digits of the program address.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...