Chapter 6 Instruction Details
XBC E-Type Main Unit 6-305 Ve r. 1
6.44 F area Control Instruction
6.44.1 FSET
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
Operand Description Data Size
D Area of F10240 ~ F2047R in F area BIT
1) FSET
(1) Sets the bit between F10240~F2047F among the Special Relay Area F.
(2) Able to control the F area as shown below.
Initialize the Scan Value
Request the Error of external device
Request the Warning of external device
Complete the Innitializing task execution
Information of the Error of external device
Information of the Warning of external device
Data of the clock information (Month/Year)
Data of the clock information (Time/Day)
Data of the clock information (Second/Minute)
_HUND_WK_DT WORD F1037
Data of the clock information
(Hundred/Weekday)
2) Contact point function
(1) F10240: After moving the clock data which writes to each area in F1034~F1037 of clock information
data area. If F10240 bit is changed to On using the FSET instruction, RTC data of PLC is reflected in
clock data of F1034~F1037 area.
(2) F10241: Initializes the value of _SCAN_MAX, _SCAN_MIN, _SCAN_CUR.
(3) F10242: If this bit becomes set and the value in F1026 area is not 0, error will occur. If error occurs,
PLC operation status is changed to error status.
(4) F10243: If this bit becomes set and the value in F1027 is not 0, warning will occur. If warning occurs,
P.S.LED of CPU module and CHK LED turns on. If you want to remove the warning, write ‘0’ in F1027
and set the F10242 bit. Refer to XGB-CPU User’s Manual Chapter 12.9 about the F10242 and F10243
contact points more detail.
3) Program Example
(1) If contact point P00000 connected with external device is changed to On, Write ‘100’ in
F1027(_ANC_WAR) and Warning Flag becomes Set.
FWRITE 100 F1027
P00000
FSET F10243