beautypg.com

2 instructions, Disabling error log entries of user-defined errors – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 426

background image

2 Instructions

2-390

CP1E CPU Unit Instructions Reference Manual(W483)

1. The specified error code will be written to A400.

2. The error code and the time that the error occurred will be written to the Error Log Area (A100

through A199).

3. The appropriate Auxiliary Area Flags are set based on the error code and error details.

4. The ERR Indicator on the CPU Unit will flash and PLC operation will continue.

Note 1 FAL(006) can be used to generate non-fatal errors from the system when debugging the program. For

example, a system error can be generated intentionally to check whether or not error messages are being
displayed properly at an interface such as a Programmable Terminal (PT).

2 The value of A529 (the system-generated FAL/FALS number) is a dummy FAL number (FAL and FALS

numbers are shared.) used when a non-fatal error is generated intentionally by the system. This number is
a dummy FAL number, so it does not change the status of the Executed FAL Number Flags (A360.01 to
A391.15) or the error code.
When it is necessary to generate two or more system errors (fatal and/or non-fatal errors), different errors
can be generated by executing the FAL/FALS instructions more than once with the same values in A529
and N, but different values in S and S+1.

3 If a more serious error (including a system-generated fatal error or FALS(007) error) occurs at the same

time as the FAL(006) instruction, the more serious error’s error code will be written to A400.

4 To clear a system error generated by FAL(006), turn the PLC OFF and then ON again. The PLC can be

kept ON, but the same processing will be required to clear the error as if the specified error had actually
occurred.
Refer to CP1E CPU Unit Hardware Operation Manual or CP1E CPU Unit Software Operation Manual.

The following table shows how to specify error codes and error details in S and S+1.

Disabling Error Log Entries of User-defined Errors

Normally when FAL(006) generates a user-defined error, the error code and the time that the error
occurred are written to the Error Log Area (A100 through A199). It is possible to set the PLC Setup so
that user-defined errors generated by FAL(006) are not recorded in the Error Log.

Note Even though the error will not be recorded in the Error Log, the FAL Error Flag (402.15) will be turned ON,

the corresponding flag in the Executed FAL Number Flags (A360.01 to A391.15) will be turned ON, and the
error code will be written to A400.

Disable Error Log entries for user-defined FAL(006) errors when you want to record only the system-
generated errors. For example, this function is useful during debugging if the FAL(006) instructions are
used in several applications and the Error Log is becoming full of user-defined FAL(006) errors.

The following screen capture shows the PLC Setup setting from the CX-Programmer.

Error name

S

S+1

PLC Setup Error

009B hex

PLC Setup Error Location
0000 to FFFF hex

Built-in Analog Error

008A hex

--- (not fixed)

Option Board Error

00D1 hex

Option Board Slot No.
0001 hex

Battery Error

00F7 hex

--- (not fixed)

This manual is related to the following products: