Delta C2000 Series User Manual page 586

Vector control drive
Hide thumbs Also See for C2000 Series:
Table of Contents

Advertisement

API
TSUB
163
P
Bit device
X
Y
M
K
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
S
: time minuend. S
1
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
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.
Word device
H
KnX KnY KnM
T
: time augend. D: time sum.
2
or S
exceeds the range, this is considered an operating error, the
1
2
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
20(
D0
min)
D1
20(
sec
D2
5(
20: 20: 5
Chapter 16 PLC Function Applications
Calendar data subtraction
16-bit command (7 STEP)
TSUB
Continuous
C
D
execution type
32-bit command
Flag signal:
D0
D10
D20
hr
min
D11
8(
sec
D12
14: 30: 8
16-95
C2000 Series
TSUBP
Pulse
execution type
M1020 Zero flag
M1022 Carry flag
M1068 Calendar error
, and the result
1
5(
hr
D20
min
D21
49(
D22
sec
57(
5: 49: 57
from
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

690v

Table of Contents