Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 415

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

E-(P) [For 3 operands]
These instructions subtract the single-precision real number in the device specified by (s2) from the single-precision real
number in the device specified by (s1), and store the result in the device specified by (d).
Ladder diagram
(s1)
(s2)
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Minuend data or head device number where the data from
which another is to be subtracted is stored
(s2)
Subtrahend data or head device number where the data to
be subtracted from another is stored
(d)
Head device number for storing the operation result
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(d)
Processing details
• These instructions subtract the single-precision real number in the device specified by (s2) from the single-precision real
number in the device specified by (s1), and store the result in the device specified by (d).
(s1)+1
(s1)
-
Single-precision real number
Single-precision real number Single-precision real number
• Values in the devices specified (stored) by (s1), (s2), and (d) should be 0 or 2
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
Operation error
Error code
Description
(SD0/SD8067)
The specified device value is -0, denormalized number, NaN (not a number), or .
3402
The value stored in specified device is outside the following range
-126
0, 2
|specified device value|<2
Word
T, ST, C, D,
C, LC
W, SD, SW, R
(s2)+1
(s2)
(d)+1
Description
Condition
The absolute value of the operation result
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
128
Structured text
Not supported
Range
Data type
-126
128
|(s1)|<2
0, 2
Single-precision real number
-126
|(s2)|<2
128
0, 2
Single-precision real number
Single-precision real number
Double word Indirect
U\G
Z
LC
LZ
(d)
-126
|specified value (stored value)|
Operation
128
2
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
2
The value of (d) is the maximum value (2
numbers and the carry flag SM8022 turns on.
Data type (label)
Single-precision real number
Single-precision real number
Single-precision real number
Constant
specification
K, H
E
$
128
) of 32-bit real
-126
) of 32-bit real
128
) of 32-bit real
7 APPLICATION INSTRUCTION
7.7 Real Number Instruction
Others
7
128
2
.
413

Advertisement

Table of Contents
loading

Table of Contents