Chapter 6 Instruction Details
XBC E-Type Main Unit
6-284
Ver. 1
6.37.5 SECOND, SECONDP
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)
SECOND(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 S, S+1, S+2’s data exceeds time data size respectively
F110
1) SECOND (Second)
(1) It converts time data value in specified area S to second data to save D+1,D.
(2) Time data shall be input in BCD format. And if applicable data range is exceeded, error (F110) may occur
respectively.
2) Program Example
P00000
SECOND P1000 P1100
SECOND
SECONDP
S
D
SECONDP
SECOND
S
D
S
S+1
Hour (h00~h23)
Sec. (h00~h59)
16#00
Min. (h00~h59)
b15
b8 b7
b0
D
D+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...