6.3 Data Conversion Instructions
6.3.13 Sign inversion of floating-point data (double precision)
6-95
6
BA
S
IC
INSTRUCTIONS
EDNEG
EDNEG
6.3.13
Sign inversion of floating-point data (double precision)
EDNEG
F
unct
i
on
(1) Inverts the sign of the 64-bit floating-point real number specified for
, and stores the result
to the device specified for
.
0 or values between 2
-1022
and 2
1024
can be specified.
(2) This instruction is used when inverting positive and negative signs.
O
p
erat
i
on
E
rror
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The value of the specified device is not within the following range.
(Error code: 4140)
0, 2
-1022
| value of the specified device | < 2
1024
• The value of the specified device is
−
0. (Error
code:
4140)
EDNEG(P)
P: Executing condition
:
indicates any of the following
instructions.
EDNEG
EDNEGP
Input argument,
EN:
Executing condition
: Bit
Output argument,
ENO:
Execution result
: Bit
d:
Data whose sign to be inverted
: Double-precision real
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
EDNEG
EN
ENO
d
EDNEG
(EN, d);
ENO:=
d
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......