Chapter 6 Instruction Details
XBC E-Type Main Unit
6-280
Ver. 1
6.37 Time Related Instructions
6.37.1 DATERD, DATERDP
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)
DATERD(P) D
O O O
-
O
-
-
-
-
-
-
-
O O O O
2
-
-
-
1) DATERD (Date Read)
(1) It reads date and time data of PLC to saves in D.
(2) All time data is provided in BCD format.
(3) ‘100 years’ above stands for the unit of 1000 and 100.
For example, if present PLC time is 14:59:40, Oct. 15, 2004 Friday, its saved result will be as follows.
(4) Details of days: 0-Sunday, 1-Monday, 2-Tuesday, 3-Wednesday, 4-Thursday, 5-Friday, 6-Saturday.
2) Program Example
P00000
DATERD 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
D
D+1
D+2
H10
H14
H40
H20
H04
H15
H59
H04
b15
b8 b7
b0
D+3
Operand
Description
Data Size
D
Device number to save transferred data
WORD
DATERD
means DATERD
P
DATERDP
D
D
D
D+1
D+2
Month
Hour
Sec
100 years
Year
Date
Min
Day
b15
b8 b7
b0
D+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...