Inverting The Sign Of Double-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 double-precision real number

EDNEG(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions invert the sign of double-precision real number data.
Ladder
(d)
FBD/LD
EN
ENO
d
■Execution condition
Instruction
EDNEG
EDNEGP
Setting data
■Description, range, data type
Operand
Description
(d)
Start device containing the double-precision real number
subject to sign inversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(d)
Processing details
• 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).
(d)+3
(d)+2
(d)+1
(d)
4.23542
Double-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
7 APPLICATION INSTRUCTIONS
768
7.9 Real Number Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
(d)+3
(d)+2
-4.23542
Double-precision real number
ST
ENO:=EDNEG(EN,d);
ENO:=EDNEGP(EN,d);
Range
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
(d)+1
(d)
Data type
Data type (label)
Double-precision real
ANYREAL_64
number
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents