Applied Instructions
ESUB D10 D20 D50
S1· S2· D·
X0
The floating point value of S2 is subtracted from the floating point value of S1 and the result
stored in destination device D.
z If a constant or H used as source data, the value is converted to floating point before the
addition operation.
z
K
ESUB D100K1234 D110
X1
Function & Action
(D11,D10) - (D21,D20) → (D51,D50)
Binary Floating Binary Floating Binary Floating
(K1234) - (D101,D100) → (D111,D110)
Binary converts to Floating Binary Floating Binary Floating
z The same device may be used as a source and as the destination. If this is the case then,
on continuous operation of the EADD instruction, the result of the previous operation
will be used as a new source value and a new result calculated. This will happen every
program scan unless the pulse modifier or an interlock program is used.
[ESUB]
16 bits instruction:- 32 bits instruction:ESUB
Suitable Models:
XC3、XC5
D FDDMDX DY DS TD CDK/H
S1·
S2·
S2·
D·
S1·
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
121