Omron SYSMAC CS Series Instruction & Reference Manual page 983

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Example Programming
 Generating a Non-fatal Error
When CIO 0.00 is ON in the following example, FAL(006) will generate a non-fatal error with FAL
number 31 and execute the following processes.
1. The FAL Error Flag (A402.15) will be turned ON.
2. The corresponding Executed FAL Number Flag (A361.15) will be turned ON.
3. The corresponding error code (411F) will be written to A400.
4. The error code and the time/date that the error occurred will be written to the Error Log Area (A100
through A199).
5. The ERR Indicator on the CPU Unit will flash.
6. The ASCII message in D100 to D107 will be displayed at the Peripheral Device.
Note If a message is not required, specify a constant for S.
0.00
M
D100
Note If two or more errors occur at the same time, the error code of the most serious error (with the highest error
code) will be stored in A400.
 Clearing a Particular Non-fatal Error
When CIO 0.01 is ON in the following example, FAL(006) will clear the non-fatal error with FAL number
31, turn OFF the corresponding Executed FAL Number Flag (A361.15), and turn OFF the FAL Error
Flag (A402.15).
0.01
M
 Clearing All Non-fatal Errors
When CIO 0.02 is ON in the following example, FAL(006) will clear all of the non-fatal errors, turn OFF
the Executed FAL Number Flags (A360.01 to A391.15), and turn OFF the FAL Error Flag (A402.15).
0.02
#FFFF
M
CS/CJ/NSJ Series Instructions Reference Manual (W474)
31
M:
M: D100
4C
4F
D101
57
20
D102
56
4F
4C
54
D103
41
47
D104
45
00
D105
D106
D107
Set N to 0 to clear errors.
0
#001F
Set M to the desired FAL
number (031(001F)).
Set N to 0 to clear errors.
0
Set M to FFFF to clear all non-fatal errors
(both FAL(006) and system errors).
MESSAGE
LOW VOLTAGE
Disregarded
3. Instructions
3
949

Advertisement

Table of Contents
loading

Table of Contents