User-Defined Errors - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Level C Errors
!
Caution
9-4

User-defined Errors

MESSAGE - - MSG(46)
FAILURE ALARM - - FAL(06)
1, 2, 3...
SEVERE FAILURE ALARM - -
FALS(07)
1, 2, 3...
Message
COIL DUPL
The same bit is being controlled (i.e., turned ON and/or OFF) by
more than one instruction (e.g., OUT, OUT NOT, DIFU(13),
DIFD(14), KEEP(11), SFT(10)). Although this is allowed for certain
instructions, check instruction requirements to confirm that the
program is correct or rewrite the program so that each bit is
controlled by only one instruction.
JMP
JME(05) has been used with no JMP(04) with the same jump
UNDEFD
number. Add a JMP(04) with the same number or delete the
JME(05) that is not being used.
SBS
A subroutine exists that is not called by SBS(91). Program a
UNDEFD
subroutine call in the proper place, or delete the subroutine if it is
not required.
Expansion instructions (those assigned to function codes 17, 18, 19, 47, 48, 60
to 69, 87, 88, and 89) are not subject to program checks. Program checks also
do not cover DM 1024 to DM 6143 for PCs that do not support this part of the DM
area. Data will not be written even if these areas are specified and data read from
these areas will always be "0000."
There are four instructions that the user can use to define his own errors or mes-
sages. These instructions are used to send messages to the Programming Con-
sole connected to the PC, cause a non-fatal or a fatal error.
MSG(46) is used to display a message on the Programming Console. The mes-
sage, which can be up to 16 characters long, is displayed when the instruction's
execution condition is ON. Refer to page 399 for details.
FAL(06) is an instruction that causes a non-fatal error. Refer to page 307 for de-
tails. The following will occur when an FAL(06) instruction is executed:
1. The ERR/ALM indicator on the CPU Unit will flash. PC operation will contin-
ue.
2. The instruction's 2-digit BCD FAL number (01 to 99) will be written to
SR 25300 to SR 25307.
3. The FAL number will be recorded in the PC's error log area. The time of oc-
currence will also be recorded in CPM2A PCs and CPM2C PCs that are
equipped with an internal clock.
The FAL numbers can be set arbitrarily to indicate particular conditions. The
same number cannot be used as both an FAL number and an FALS number.
To clear an FAL error, correct the cause of the error, execute FAL 00, and then
clear the error using the Programming Console.
FALS(07) is an instruction that causes a fatal error. Refer to page 307 for details.
The following will occur when an FALS(07) instruction is executed:
1. Program execution will be stopped and outputs will be turned OFF.
2. The ERR/ALM indicator on the CPU Unit will be lit.
3. The instruction's 2-digit BCD FALS number (01 to 99) will be written to
SR 25300 to SR 25307.
4. The FALS number will be recorded in the PC's error log area. The time of
occurrence will also be recorded in CPM2A PCs and CPM2C PCs that are
equipped with an internal clock.
The FALS numbers can be set arbitrarily to indicate particular conditions. The
same number cannot be used as both an FAL number and an FALS number.
To clear an FALS error, switch the PC to PROGRAM Mode, correct the cause of
the error, and then clear the error using the Programming Console.
Meaning and appropriate response
Section
9-4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents