Chapter 16 PLC Function Applications
│
CFP2000
16-108
API
TSUB
Calendar data subtraction
163
P
Bit device
Word device
16-bit command (7 STEP)
TSUB
Continuous
execution type
TSUBP
Pulse
execution type
32-bit command
-
-
-
-
Flag signal:
M1020 Zero flag
M1022 Carry flag
M1068 Calendar error
X
Y M
K
H KnX KnY KnM T
C
D
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
1
: time minuend.
S
2
: time augend.
D
: time sum.
Subtracts the calendar data in hours, minutes, and seconds designated by
S
2
from
the calendar data in hours, minutes, and seconds designated by
S
1
, and the result
is temporarily stored as hours, minutes, and seconds in the register designated by
D
.
If the value of
S
1
or
S
2
exceeds the range, this is considered an operating error, the
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
D0
D10
D20
Содержание CFP2000 Series
Страница 3: ......
Страница 12: ...Chapter 1 Introduction CFP2000 1 3 1 2 Model Name 1 3 Serial Number ...
Страница 15: ...Chapter 1 Introduction CFP2000 1 6 Frame B RFI 1 RFI 1 RFI 1 RFI 2 RFI 2 RFI 2 Figure 1 5 ...
Страница 37: ...Chapter 1 Introduction CFP2000 1 28 1 7 Digital Keypad KPC CC01 ...
Страница 42: ...Chapter 3 Unpacking CFP2000 3 1 Chapter 3 Unpacking 3 1 Unpacking 3 2 The Lifting Hook ...
Страница 54: ...Chapter 4 Wiring CFP2000 4 5 Figure 4 4 ...
Страница 55: ...Chapter 4 Wiring CFP2000 4 6 4 2 1 SINK NPN SOURCE PNP Mode Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 ...
Страница 57: ...Chapter 4 Wiring CFP2000 4 8 4 4 Basic Waterproof Component Wiring Diagram Frame A Frame B ...
Страница 58: ...Chapter 4 Wiring CFP2000 4 9 Frame C D0 ...
Страница 75: ...Chapter 5 Main Circuit Terminals CFP2000 5 16 This page intentionally left blank ...
Страница 120: ...Chapter 7 Optional Accessories CFP2000 7 35 Wall Mounting Embedded Mounting ...
Страница 137: ...Chapter 7 Optional Accessories CFP2000 7 52 This page intentionally left blank ...
Страница 141: ...Chapter 8 Option Cards CFP2000 8 4 Communication extension card Slot 1 CMC PD01 CMC DN01 CMC EIP01 EMC COP01 CMC PN01 ...
Страница 144: ...Chapter 8 Option Cards CFP2000 8 7 I O Relay Card EMC D42A EMC D611A EMC R6AA EMC BPS01 EMC A22A ...
Страница 146: ...Chapter 8 Option Cards CFP2000 8 9 I O Relay Card EMC D42A EMC D611A EMC R6AA EMC BPS01 EMC A22A ...
Страница 173: ...Chapter 9 Specifications CFP2000 9 8 9 5 Efficiency Curve Figure 9 5 ...
Страница 245: ...Chapter 11 Summary of Parameter Settings CFP2000 11 36 11 Advanced Parameters Group 11 Advanced Parameters are reserved ...
Страница 251: ...Chapter 11 Summary of Parameter Settings CFP2000 11 42 This page intentionally left blank ...
Страница 304: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 3 3 4 5 ...
Страница 305: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 4 6 7 8 ...
Страница 306: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 5 9 10 11 ...
Страница 307: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 6 12 13 14 ...
Страница 308: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 7 15 16 17 ...
Страница 309: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 8 18 19 20 ...
Страница 310: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 9 21 22 23 ...
Страница 311: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 10 24 25 26 ...
Страница 312: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 11 27 28 29 ...
Страница 313: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 12 30 31 32 ...
Страница 314: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 13 33 34 35 ...
Страница 315: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 14 36 37 38 ...
Страница 326: ...Chapter 12 Description of Parameter Settings CFP2000 12 1 03 25 ...
Страница 415: ...12 Description of Parameter Setting CFP2000 12 1 11 1 11 Advanced Parameters Group 11 Advanced parameters are reserved ...
Страница 449: ...Chapter 12 Description of Parameter Settings CFP2000 12 2 00 6 III PM SVC Carrier Start up Adjustment ...
Страница 451: ...Chapter 12 Description of Parameter Settings CFP2000 12 2 00 8 This page intentionally left blank ...
Страница 545: ...Chapter 14 Fault Codes and Descriptions CFP2000 14 50 This page intentionally left blank ...
Страница 725: ...Chapter 16 PLC Function Applications CFP2000 16 152 Step 3 Physical configuration Step 4 Write to PLC program ...
Страница 726: ...Chapter 16 PLC Function Applications CFP2000 16 153 ...
Страница 728: ...Chapter 16 PLC Function Applications CFP2000 16 155 ...
Страница 731: ...Chapter 16 PLC Function Applications CFP2000 16 158 This page intentionally left blank ...
Страница 747: ...Chapter 17 Introduction to BACnet CFP2000 17 16 This page intentionally left blank ...