Omron SYSMAC CP Series Instruction & Reference Manual page 433

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Sample program
Generating a User-defined Error
When CIO 0.00 is ON in the following example, FALS(007) will generate a fatal error with FAL number
31 and execute the following processes.
1. The FALS Error Flag (A401.06) will be turned ON.
2. The corresponding error code (C11F) will be written to A400.
3. The error code and the time/date that the error occurred will be written to the Error Log Area (A100
through A199).
4. The ERR Indicator on the CPU Unit will be lit.
5. 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
FALS
N
D100
M
Note A400 will contain the error code of the most serious of all of the errors that have occurred, including non-fatal
and fatal system errors, as well as errors generated by FAL(006) and FAL(007).
Generating a Non-fatal System Error
When CIO 0.00 is ON in the following example, FALS(007) will generate Memory Error (User programe
Error). In this case, dummy FAL number 10 is used and the corresponding value (80F1 hex) is stored in
A529.
1. The specified error code (80F1) will be written to A400 if it is the most serious error.
2. The error code and the time/date that the error occurred will be written to the Error Log Area (A100
through A199).
3. The Memory Error Flag (A401.15) will be turned ON.
4. The CPU Unit's ERR Indicator will light and PLC operation will stop.
5. Memory Error has occured.
0.00
N
S
A529CH
S: D200
D201
CP1E CPU Unit Instructions Reference Manual(W483)
31
15
0
4C
4F
M: D100
57
20
D101
56
4F
D102
4C
54
D103
41
47
D104
45
00
D105
D106
D107
MOV
#000A
A529
FALS
10
D200
Matching
values
000A
...... Error code: #80F1 (Memory Error Flag)
#80F1
...... Memory Error generating Area: #0001(User Memory)
#0001
MESSAGE
LOW VOLTAGE
Disregarded
2 Instructions
2
2-397

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents