Chapter 6 Instruction Details
XBC E-Type Main Unit 6-282 Ve r. 1
6.37.3 ADDCLK, ADDCLKP
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
ADDCLK(P)
4~6 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