Chapter 6 Instruction Details
XBC E-Type Main Unit
6-281
Ver. 1
6.37.2 DATEWR, DATEWRP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
DATEWR(P) D
O O O
-
O
-
-
-
-
-
-
-
O O O O
2
O
-
-
[Flag Setting]
Flag
Description
Device Number
Error
If time data size specified in S exceeds its applicable range
F110
1) DATEWR (Date Write)
(1) It sets PLC clock to time data value of the area specified in S, S+1, S+2, S+3.
(2) All time data is provided in BCD format.
(3) Details of days: 0-Sunday, 1-Monday, 2-Tuesday, 3-Wednesday, 4-Thursday, 5-Friday, 6-Saturday.
2) Program Example
P00000
DATEWR P1000
Year ---- P10000 ~ P10007
Month ---- P10008 ~ P1000F
Date ---- P10010 ~ P10017
Hour ---- P10018 ~ P1001F
Minute ---- P10020 ~ P10027
Second ---- P10028 ~ P1002F
Day -- P10030 ~ P10037
Hundred year --P10038 ~ P1003F
Operand
Description
Data Size
S
Device number time data is saved in
WORD * 4
means DATERD/DATEWR
DATEWR
P
DATEWRP
S
S
S
S+1
S+2
Month
Hour
Sec
100 years
Year
Date
Min
Day
b15
b8 b7
b0
S+3
Time data
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...