beautypg.com

Sample program, 2 instructions, Generating a non-fatal error – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 427

background image

2-391

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

F

ailu

re Dia

gn
osis I

n

stru

ctio

ns

2

F

A

L

Note Even if PLC Setup word 129 bit 15 is set to 1 (Do not record FAL Errors in Error Log.), the following errors will

be recorded:

Fatal errors generated by FALS(007)

Non-fatal errors from the system

Fatal errors from the system

Non-fatal errors from the system generated intentionally with FAL(006)

Fatal errors from the system generated intentionally with FALS(007)

Displaying Messages with Non-fatal User-defined Errors

If S is a word address and an ASCII message has been stored at S, that message will be displayed at

the Peripheral Device when FAL(006) is executed. (If a message is not required, set S to a constant.)

The message beginning at S will be registered when FAL(006) is executed. Once the message is reg-

istered, it will be displayed.

An ASCII message up to 16 characters long can be stored in S through S+7. The leftmost (most sig-

nificant) byte in each word is displayed first.

The end code for the message is the null character (00 hexadecimal).

All 16 characters in words S to S+7 will be displayed if the null character is omitted.

If the contents of the words containing the message are changed after FAL(006) is executed, the

message will change accordingly.

Sample program

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 num-
ber 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.

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.

M:

MESSAGE
LOW VOLTAGE

15

0

4C

57

56

4C

41

45

4F

20

4F

54

47

00

M

N

Disregarded

31

FAL

D100

0.00

M: D100

D101

D102

D103

D104

D105

D106

D107

This manual is related to the following products: