Chapter 16 PLC Function Applications
MS300
(High Speed Model)
16-69
API
ESUB
Subtraction of binary floating point numbers
121
D
P
Bit device
Word device
16-bit command
-
-
-
-
32-bit command (13 STEP)
DESUB
Continuous
execution type
DESUBP
Pulse
execution type
Flag signal: none
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
: minuend.
S
2
: subtrahend.
D
: difference.
When the content of the register designated by
S
2
is subtracted from the content
of the register designated by
S
1
, the difference will be stored in the register
designated by
D
; subtraction is performed entirely using binary floating-point
numbers.
If the source operand S
1
or
S
2
designates a constant K or H, the command will
transform that constant into a binary floating point number for use in subtraction.
In the situation when S
1
and
S
2
designate identical register numbers, if a
"continuous execution" command is employed, when conditional contact is On,
the register will perform addition once during each scan. Pulse execution type
commands (DESUBP) are generally used under ordinary circumstances.
When X0=On, a binary floating point number (D1, D0) will be subtracted to a
binary floating point number (D3, D2), and the results stored in (D11, D10).
X0
DESUB
D0
D2
D10
When X2 =On, the binary floating point number (D1, D0) will be subtracted from
K1234 (which has been automatically converted to a binary floating-point
number), and the results stored in (D11, D10).
X2
DESUB
D0
K1234
D10
Summary of Contents for VFD11AMS21AFSHA
Page 5: ...IV This page intentionally left blank...
Page 8: ...Chapter 1 Introduction MS300 High Speed Model 1 3 1 2 Model Name 1 3 Serial Number...
Page 20: ...Chapter 3 Installation MS300 High Speed Model 3 3...
Page 21: ...Chapter 3 Installation MS300 High Speed Model 3 4 This page intentionally left blank...
Page 24: ...Chapter 4 Wiring MS300 High Speed Model 4 3 4 1 Wiring...
Page 25: ...Chapter 4 Wiring MS300 High Speed Model 4 4 Figure 1...
Page 27: ...Chapter 4 Wiring MS300 High Speed Model 4 6 4 2 System Wiring Diagram...
Page 43: ...Chapter 6 Control Terminals MS300 High Speed Model 6 6 This page intentionally left blank...
Page 91: ...Chapter 8 Optional Cards MS300 High Speed Model 8 8 Frame F Fig 8 16...
Page 115: ...Chapter 9 Specification MS300 High Speed Model 9 10 This page intentionally left blank...
Page 123: ...Chapter 10 Digital Keypad MS300 High Speed Model 10 8 This page intentionally left blank...
Page 293: ...Chapter 13 Warning Codes MS300 High Speed Model 13 6 This page intentionally left blank...
Page 303: ...Chapter 14 Error Codes MS300 High Speed Model 14 10 This page intentionally left blank...