7 APPLICATION INSTRUCTION
7.7 Real Number Instruction
437
7
Inverting the sign of single-precision real number
ENEG(P)/DENEG(P)
These instructions invert the sign of the single-precision real number specified by (d), and store the data of the device
specified by (d).
The ENEG(P) instructions can also be used as DENEG(P).
■Descriptions, ranges, and data types
■Applicable devices
• These instructions invert the sign of the single-precision real number specified by (d), and store the data in the device
specified by (d).
• Use these instructions for inverting the positive and negative sign.
There is no operation error.
Ladder diagram Structured text
ENO:=ENEG(EN,d);
ENO:=ENEGP(EN,d);
Operand Description Range Data type Data type (label)
(d) Head device number storing single-precision real number
whose sign is to be inverted
Single-precision real number Single-precision real number
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d)
(d)+1 (d)
1.2345
(d)+1 (d)
-1.2345
Single-precision real number Single-precision real number