Appendix 2. Flag List
APP2 - 1
Appendix 2. Flag List
1) User Flag List
Keyword
Type
Write
Name
Description
_LER
BOOL
Enable
Operation error latch
flag
Operation error latch flag by the program block(BP). Error indication
occurred while executing a program block
_ERR
BOOL
Enable
Operation error latch
flag
Operation error flag by the operation function (FN) or function block(FB).
It is newly changed whenever an operation is executed.
_T20MS *
BOOL
−
20 ms Clock
_T100MS *
BOOL
−
100 ms Clock
_T200MS *
BOOL
−
200 ms Clock
_T1S *
BOOL
−
1s Clock
_T2S *
BOOL
−
2s Clock
_T10S *
BOOL
−
10s Clock
_T20S *
BOOL
−
20s clock
_T60S *
BOOL
−
60s Clock
These clock signals are used in the user programs, toggles on/off every
half cycle. The clock signal can be delayed or distorted in accordance
with program execution time as the signal toggles after scan has been
finished, therefore, it is recommended that clock of enough longer than
scan time be used. Clock signals starts from Off when the initialization
program or scan program starts
•
Example : _T100MS clock
_ON *
BOOL
−
Always On
Usable in user programs.
_OFF *
BOOL
−
Always Off
Usable in user programs
_1ON *
BOOL
−
First scan On
Turn On only during the first scan after the operation has started.
_1OFF *
BOOL
−
First scan Off
Turn Off only during the first scan after the operation has started.
_STOG *
BOOL
−
Scan Toggle
Toggles On/Off at every scan while a user program is being executed. (On
at the first scan)
_INT_DONE
BOOL
Enable
Initialization Program
Complete
If this flag is set to on in the initialization program in an user program, the
initialization program stop its operation and the scan program will starts.
_
INT_DATE
DATE
−
RTC present date
Date Data of standard format (Reference date – Jan. 1, 1984)
_RTC_TOD
TOD
−
RTC present time
Time Data( Reference time – 00:00:00)
_RTC_WEEK
UNIT
−
RTC present day
Day data (0: Monday, 1:Thuesday, 2: Wednesday, 3: Thursday, 4: Friday,
5: Saturday, 6:Sunday)
REMARK
1) Flags with the mark ‘*’ are initialized when the initialization program starts, and after its execution has been competed the flags will change in
accordance with the restart mode set.
•
If cold or warm restart has been set, the flags will be initialized when the scan program starts its execution.
If hot restart has been set , the flags will be restored to the state before the last stop when the scan program starts its execution.
2) Representative System Error Flag List
Keyword
Type
Bit No.
Name
Description
_CNF_ER
WORD
Representati-
ve keyword
System error
(fatal error)
This flag handles the following operation stop error flags in batch.
_IO_TYER
BOOL
Bit 1
Module type
inconsistency error
This representative flag indicates that I/O configuration parameters differ
from the real loaded module or that a certain module is loaded onto a slot
where it should not be loaded. (Refer to _IO_TYER_N and _IO_DEER[n] )
_IO _DEER
BOOL
Bit 2
Module
loading/unloading
error
This representative flag indicates that module configuration of each slot
has been changed during operation. (Refer to _IO_DEER_N and
_IO_DEER[n])
_FUSE _ER
BOOL
Bit 3
Fuse disconnection
error
This representative flag indicates that one of fuses of slots including them
has disconnection. (Refer to _FUSE_ER_N and _FUSE_ER[n])
_IO _RWER
BOOL
Bit 4
I/O module
read/write error
This representative flag indicates that a I/O module does normally
executes read/write. (Refer to _IP_RWER_N and _IP_IFER[n])
_SP _IFER
BOOL
Bit 5
Special/communicat
-ions module
interface error
This representative flag indicates that special or communications module
has failed in initialization or normal interface is impossible due to module
malfunction. (Refer to _IP_IFER_N and _IP_IFER[n])
_ANNUN_ER
BOOL
Bit 6
External device fatal
fault detection error
This representative flag indicates that an external device has fatal error.
The error code has been written to _ANC_ERR[n].
−
−
Bit 7
−
−
_WD_ER
BOOL
Bit 8
Scan watch dog
error
This flag indicates that the scan time of a program has overrun the scan
watchdog time specified by the parameter.
_CODE_ER
BOOL
Bit 9
Program code error
This flag indicates that an unreadable instruction has been met while
executing an user program.
_P_BCK_ER
BOOL
Bit 11
Program error
This flag indicates that program execution is impossible due to destroyed
memory or program error.