768
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
Inverting the sign of double-precision real number
EDNEG(P)
These instructions invert the sign of double-precision real number data.
■Execution condition
■Description, range, data type
■Applicable devices
• These instructions invert the sign of the double-precision real number data 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:=EDNEG(EN,d);
ENO:=EDNEGP(EN,d);
FBD/LD
Instruction Execution condition
EDNEG
EDNEGP
Operand Description Range Data type Data type (label)
(d) Start device containing the double-precision real number
subject to sign inversion
Double-precision real
number
ANYREAL_64
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)(d)+3 (d)+1(d)+2
4.23542
(d)(d)+3 (d)+1(d)+2
-4.23542
Double-precision real number Double-precision real number