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

Table of Contents

Advertisement

6.3.13
EDNEG, EDNEGP
Floating-point sign inversion (Double precision)
6.3.13
EDNEG, EDNEGP
EDNEG
EDNEGP
: Head number of the devices where the 64-bit floating decimal point data whose sign is to be reversed is stored (real number)
D
Setting
Internal Devices
Data
Bit
Word
––
D
Function
(1) Reverses the sign of the 64-bit floating decimal point type real number data designated by
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.
Error
code
The specified device value is not within the following range:
-1022
4140
0, 2
| Specified device value | < 2
The specified device value is 0.
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
D1
D0
1.2345
Command
Command
J
\
R, ZR
Bit
Word
Error details
1024
[List Mode]
Step
D3 D2
D1 D0
High
Basic
performance
EDNEG
EDNEGP
Zn
U
\G
––
Q00J/
Q00/
QnH
Q01
––
––
Instruction
Device
EDNEG, EDNEGP
Process
LCPU
Redundant
Universal
D
D
Constants
Other
, and stores at the device
D
QnPH QnPRH
QnU
LCPU
––
––
249
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents