10ć15, 8 on_error – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual
Page 118
Using Commands in Report Generation
Chapter 10
10Ć15
In the procedure above, the if command tests bit I:12/010 for an on or off
state:
If bit I:12/010 is:
Then the 1775ĆS4B scanner:
On
Off
Executes the G SW10_ON command following the if command
and displays:
ąLINE 1
ąLINE 3
Does not execute the G SW10_ON command following the if
command and displays:
ąLINE 1
ąLINE 2
ąLINE 3
If you enter:
SKIP_OVR:
IF($CACC:1.GE.10)G SKIP_OVR
In the procedure above, the 1775-S4B scanner executes command lines 1,
2, 3, and 4 then if the current accumulated value of counter l is greater than
or equal to 10, the 1775-S4B scanner goes back to the label SKIP_OVR
and executes command lines 3 and 4. If the accumulated value of counter 1
is less than 10, the 1775-S4B scanner executes command lines 5 and 6.
Definition: To execute a command if a runtime error occurs during
procedure execution.
Abbreviation: O
Format: O
Description: You can use the on_error command to tell the 1775-S4B
scanner what to do if a runtime error occurs during procedure execution. A
runtime error is an error that occurs while the 1775-S4B executes a
procedure.
In normal operation, the 1775-S4B scanner executes the procedure line by
line. If a runtime error occurs, the 1775-S4B scanner displays an error code
which describes the problem. These error codes are listed in appendix C.
10.3.8
On_error