Inverting The Sign Of Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Inverting the sign of single-precision real number

ENEG(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions invert the sign of single-precision real number data.
Ladder
(d)
FBD/LD
EN
ENO
d
■Execution condition
Instruction
ENEG
ENEGP
Setting data
■Description, range, data type
Operand
Description
(d)
Start device containing the single-precision real number
data subject to sign inversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(d)
Processing details
• These instructions invert the sign of the single-precision real number in the device specified by (d) and store the inverted
data in the device specified by (d).
(d)+1
(d)
1.2345
Single-precision real number
• The instructions are used to invert positive and negative signs.
Operation error
Error code
Description
(SD0)
The value input to (d) is -0, a subnormal number, NaN (not a number), or .
3402H
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
(d)+1
(d)
-1.2345
Single-precision real number
ST
ENO:=ENEG(EN,d);
ENO:=ENEGP(EN,d);
Range
Data type
Single-precision real
number
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANYREAL_32
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.9 Real Number Instructions
7
767

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents