EasyManua.ls Logo

Mitsubishi FX1S Series

Mitsubishi FX1S Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FX Series Programmable Controlers Applied Instructions 5
5-31
5.3.2 SUB (FNC 21)
Operation: (Applicable to all units)
The data contained within the source device, S
2 is
subtracted from the contents of source device S
1.
The result or remainder of this calculation is stored
in the destination device D.
Note: the Points to note, under the ADD instruction (previous page) can also be similarly
applied to the subtract instruction.
Mnemonic Function
Operands
Program steps
S
1 S2 D
SUB
FNC 21
(Subtract)
One source
device
is subtracted from
the other - the
result is stored in
the destination
device
K, H, KnX, KnY, KnM, KnS,
T, C, D, V, Z
KnY, KnM, KnS,
T, C, D, V, Z
SUB, SUBP:
7steps
DSUB,
DSUBP:
13 steps
When using M8023 to subtract floating point
data, only double word (32 bit) data registers
(D) or constants (K/H) may be used. See page
4-46 for more details regarding floating point
format.
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Zero M8020
Borrow M8021
Carry M8022
X0
SUB D 10 D 12
[ S1 ] [ D ]
D 14
[ S2 ]

Table of Contents

Other manuals for Mitsubishi FX1S Series

Related product manuals