EasyManuals Logo

Mitsubishi FX1S Series User Manual

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
Page #151 background imageLoading...
Page #151 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1S Series and is the answer not in the manual?

Mitsubishi FX1S Series Specifications

General IconGeneral
ModelFX1S Series
I/O Points10 to 30 points
Program Memory2000 steps
Power SupplyAC
CommunicationRS-422
ExpansionNo expansion
Programming LanguageLadder Logic
Input Voltage100-240V AC
Built-in High-Speed CounterUp to 60 kHz (single-phase)
WeightApprox. 0.3 kg
Dimensions90 x 60 x 75 mm

Related product manuals