Chapter 6 Instruction Details
XBC E-Type Main Unit
6-285
Ver. 1
6.37.6 HOUR, HOURP
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)
HOUR(P)
S
O O O
-
O
-
-
-
O
-
-
O O O O O
2~4
O
-
-
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
Operand
Description
Data Size
S
Data to transfer, or device number data is saved in
DWORD
D
Device number to save transferred data in
DWORD
[Flag Setting]
Flag
Description
Device Number
Error
If the second in specified S is larger than 86399
F110
1) HOUR (Hour)
(1) Converts second data in specified area S+1, S to time data to save in D+2, D+1, D.
(2) Time data will be saved in BCD format.
2) Program Example
P00000
HOUR P1000
HOUR
means SECOND/HOUR
P
HOURP
D
D
D
D+1
Hour (h00~h23)
Sec (h00~h23)
16#00
Min (h00~h23)
b15
b8 b7
b0
S
S+1
Sec (0 ~ 86399)
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...