Floating-Point Sign Invertion (Double Precision) (Edneg(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

EDNEG(P)
6.3.13
Floating-point sign invertion (Double precision)
(EDNEG(P))
EDNEG(P)
EDNEG
EDNEGP
Setting
Data
D
Function
(1) Reverses the sign of the 64-bit floating decimal point type real number data designated by
, and stores at the device designated by
D
(2) Used when reversing positive and negative signs.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value of the specified device is not in the following range:
0, 2
• The value of the designated device is
Program Example
(1) 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
6-98
Command
Command
: Head number of the devices where the 64-bit floating decimal point data whose sign is to be reversed is
D
stored (real number)
Internal Devices
R, ZR
Bit
Word
––
-1022
| value of specified device | < 2
D1
D0
1.2345
High
Basic
performance
J
\
U
\G
Bit
Word
.
D
1024
0.
[List Mode]
Instruction
Step
D3 D2
D1 D0
Process
Redundant
Universal
LCPU
EDNEG
D
EDNEGP
D
Zn
Constants
Other
––
(Error code: 4140)
(Error code: 4140)
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents