Delta VFD300C43S-HS User Manual page 748

Vector control drive (high speed models)
Table of Contents

Advertisement

Chapter 16 PLC Function ApplicationsC2000-HS
API
TSUB
163
Bit device
X
Y
M
S1
S2
D
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
P
Word device
K
H
KnX KnY KnM
S
: time minuend. S
: time augend. D: time sum.
1
2
Subtracts the calendar data in hours, minutes, and seconds designated by S
the calendar data in hours, minutes, and seconds designated by S
is temporarily stored as hours, minutes, and seconds in the register designated by
D.
If the value of S
or S
1
2
command will not execute, M1067, M1068=On, and D1067 will record the error
code 0E1A(HEX).
If subtraction results in a negative number, borrow flag M1021=On, and the result of
that negative number plus 24 hours will be displayed in the register designated by
D.
If the results of subtraction are equal to 0 (0 hours, 0 minutes, 0 seconds), zero flag
M1020=On.
When X10=On, the TADD command will be executed, and the calendar data in
hours, minutes, and seconds designated by D10 to D12 will be subtracted from the
calendar data in hours, minutes, and seconds designated by D0 to D2, and the
results are stored as a total number of hours, minutes, and seconds in the registers
designated by D20 to D22.
X10
TSUB
Calendar data subtraction
16-bit command (7 STEP)
TSUB
T
C
D
*
*
*
*
*
*
32-bit command
*
*
*
Flag signal:
exceeds the range, this is considered an operating error, the
D0
D10
D20
16-106
Continuous
TSUBP
execution type
execution type
M1020 Zero flag
M1022 Carry flag
M1068 Calendar error
, and the result
1
Pulse
from
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents