Inverting The Sign Of Double-Precision Real Number - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Inverting the sign of double-precision real number

EDNEG
This instruction inverts the sign of double-precision real number data.
ST
ENO:=EDNEG(EN,d);
■Execution condition
Instruction
EDNEG
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/labels
Operand
Bit
SB
(d)
Processing details
• This instruction inverts 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
3402H
The value input to (d) is -0, a subnormal number, NaN (not a number), or ±∞.
10 REAL VALUE PEOCESSING
114
10.1 Floating-point instruction
Execution condition
Word
RX, RY, LB
SW
(d)+3
(d)+2
(d)+1
(d)
-4.23542
Double-precision real number
Range
G, RWw, RWr, LW
Data type
ANYREAL_64
BOOL
BOOL
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents