EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 399

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-282 Ve r. 1
6.37.3 ADDCLK, ADDCLKP
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)
ADDCLK(P)
S1
O
O
O
-
O
-
-
-
O
-
-
-
O
O
O
O
4~6 O - -
S2
O
O
O
-
O
-
-
-
O
-
-
O
O
O
O
O
D
O
O
O
-
O
-
-
-
O
-
-
-
O
O
O
O
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
[Flag Setting]
Flag Description
Device Number
Error If S1, S2’s data exceeds time data size F110
1) ADDCLK (Add Clock)
(1) Saves the result of the time data value in specified area S1 plus 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, to which 1 hour
20 minimum 30 sec. is added to be in D20, its input will be as follows;
P00010
ADDCLK 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
ADDCLK P1000 P1100 P1200
Adds up the time data in the P1000, P1001 and P1100, P1101 and saves them in the P1200, P1201.
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#12
16#54
16#05
16#10
b15 b8 b7 b0
D00011 D00021
ADDCLK
means ADDCLK/SUBCLK
P
S1
S2
ADDCLKP
S1
S2
D
D
S1
S1+1
Hour
Sec
16#00
Min
b15
b8
b7
b0
S2
S2+1
16#00
b15
b8
b7
b0
D
D+1
16#00
b15
b8
b7
b0
Min
Min
Sec
Sec
Hour
Hour
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

Table of Contents

Related product manuals