Delta C2000 series User Manual page 541

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
TADD
162
P
Bit Devices
X
M
Y
K
S1
S2
D
Operands:
Please refer to the specifications of each model for the
range of operands.
S1: Time augend S2: Time addend D: Addition result
Explanation
Operand S1, S2, D occupies 3 continuous devices
S1 + S2 = D. The time data in the register specified by S1 is added to the time data
in the register specified by S2 and the addition result is stored in the register
specified by D.
If the time data in S1, S2 exceeds the range, it will result in "operation error". At this
time, the command won't be executed and M1067=On, M1068=On, records error
code 0E1A (HEX) in D1067.
If the addition result is in a value greater than 24 hours, the Carry flag M1022=On.
The value of the result shows in D is the time remaining above 24 hours.
If the addition result is equal to 0 (zero, 0 hour, 0 minute, 0 second), the Zero flag
M1020= On.
Example
X10
D0
D1
D2
8 : 10 : 20
Word Devices
H
KnX KnY KnM
T
When X10= On, the command is executed. Add the time data specified by
D0~D2 and D10~D12 and store the result in the register specified by
D20~D22.
TADD
D0
hr
8(
)
+
min
)
sec
20(
)
Chapter 16 PLC Function C2000 Series
Calendar data addition
16-bit command (5 STEPS)
TADD
C
D
32-bit command
 Flag signal: M1020 (Zero flag)
D10
D20
hr)
6(
min)
D11
40(
sec
D12
6(
)
6 : 40 : 6
16-94
TADDP
M1022 (Carry flag)
M1068 (calendar error)
hr
D20
14(
)
min)
D21
50(
sec)
D22
26(
14: 50: 26

Advertisement

Table of Contents
loading

Table of Contents