Download Print this page

Subtracting Single-Precision Real Numbers - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Subtracting single-precision real numbers

E-(P) [For 2 operands]
These instructions subtract the single-precision real number in the device specified by (s) from the single-precision real
number in the device specified by (d), and store the result in the device specified by (d).
Ladder diagram
(s)
FBD/LD
Not supported.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Subtrahend data or the head device number where the data
to be subtracted from another is stored
(d)
Head device number where the data from which another is
to be subtracted is stored
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions subtract the single-precision real number in the device specified by (s) from the single-precision real
number in the device specified by (d), and store the result in the device specified by (d).
(d)+1
(d)
Single-precision real number
• Values in the devices specified (stored) by (s) and (d) should be 0 or 2
• When an input value is set from the engineering tool, a rounding error may be occur.
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
8 APPLICATION INSTRUCTION
486
8.9 Real Number Instruction
(d)
Word
T, ST, C, D, W,
SD, SW, R
(s)+1
(s)
-
Single-precision real number Single-precision real number
Description
Condition
The absolute value of the operation result  2
The operation result is true "0".
(The mantissa part is "0").
The absolute value of the operation result < 2
The absolute value of the operation result  2
Structured text
Not supported
Range
-126
128
|(s)|<2
0, 2
Double word Indirect
U\G
Z
LC
(d)+1
(d)
-126
Operation
128
The value of (d) is the maximum value (2
numbers and the carry flag SM700 turns on.
The zero flag SM8020 turns on.
-126
The value of (d) is the minimum value (2
numbers and the borrow flag SM8021 turns on.
128
The value of (d) is the maximum value (2
numbers and the carry flag SM8022 turns on.
Data type
Single-precision real number
Single-precision real number
Constant
specification
LZ
K, H
 |specified value (stored value)| <2
Data type (label)
ANYREAL_32
ANYREAL_32
Others
E
$
128
.
128
) of 32-bit real
-126
) of 32-bit real
128
) of 32-bit real

Hide quick links:

Advertisement

loading