![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831400.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-283
Ver. 1
6.37.4 SUBCLK, SUBCLKP
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)
SUBCLK(P)
S1 O O O
-
O
-
-
-
O
-
-
-
O O O O
4~6
O
-
-
S2 O O O
-
O
-
-
-
O
-
-
-
O O O O
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
[Flag Setting]
Flag
Description
Device Number
Error
If S1, S2’ data exceeds time data size
F110
1) SUBCLK (Sub Clock)
(1) Saves the result of the time data value in specified area S1 minus the time data value in specified area S2,
to save in D, D+1.
(2)
Time data value shall be input in BCD format. For example, if time data is in D00010, from which 20
minimum 30 sec. is subtracted to be in D20, its input will be as follows;
P00010
SUBCLK
D00010
D00020
h30200100
(3) If specified device S2’s lowest byte value exists, the value in that position will be not operated.
2) Program Example
P00000
SUBCLK P1000 P1100 P1200
D00010
16#10
16#24
16#05
16#50
b15
b8 b7
b0
16#01
16#30
16#00
16#20
b15
b8 b7
b0
D00020
16#09
16#54
16#05
16#29
b15
b8 b7
b0
D00011
D00021
Operand
Description
Data Size
S1
Device number time data is saved in
DWORD
S2
Device number time data is saved in
DWORD
D
Device number to save result in
DWORD
SUBCLK
means ADDCLK/SUBCLK
P S1 S2
SUBCLKP
S1 S2
D
D
S1
S1+1
Hour
Sec
16#00
Min
b15
b8 b7
b0
S2
S2+1
Hour
Sec
16#00
Min
b15
b8 b7
b0
D
D+1
Hour
Sec
16#00
Min
b15
b8 b7
b0
S1
S1+1
16#20
b15
b8 b7
b0
S2
S2+1
16#12
b15
b8 b7
b0
D
D+1
16#20
b15
b8 b7
b0
Hour
Hour
Hour
Sec
Sec
Sec
Min
Min
Min
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...