Floating-Point Sign Inversion (Double Precision) - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Floating-point sign inversion (double precision)

EDNEG(P)
High
Basic
Process
performance
EDNEG
EDNEGP
(D): Head number of the devices where the 64-bit floating decimal point data whose sign is to be reversed is stored (real number)
Setting
Internal device
data
Bit
(D)
Processing details
• Reverses the sign of the 64-bit floating decimal point type real number data designated by (D), and stores at the device
designated by (D).
• Used when reversing positive and negative signs.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4140
The specified device value is not within the following range:
-1022
 | Specified device value | < 2
0, 2
The specified device value is -0, unnormalized number, nonnumeric, and .
Program example
• The following program inverts the sign of the 64-bit floating decimal point type real number data at D0 to D3 when X20 goes
ON, and stores result at D0 to D3.
[Ladder Mode]
[Operation]
D3 D2
D1
D0
1.2345
6 BASIC INSTRUCTIONS
290
6.3 Data Conversion Instructions
Redundant
Universal
LCPU
Command
Command
R, ZR
Word
1024
D3 D2
D1 D0
J\
U\G
Bit
Word
Q00J/
Q00/
Q01
[List Mode]
Instruction
Step
EDNEG
D
EDNEGP
D
Zn
Constant
QnH
QnPH
QnPRH
Device
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents