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