Eneg, Enegp Floating-Point Sign Inversion (Single Precision) - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

ENEG, ENEGP
6.3.12
ENEG, ENEGP
Floating-point sign inversion (Single precision)
6.3.12
ENEG, ENEGP
ENEG
ENEGP
: Head number of the devices where the 32-bit floating decimal point data whose sign is to be reversed is stored (real number)
D
Internal Devices
Setting
Data
Bit
Word
––
D
*1:
Available only in multiple Universal model QCPU and LCPU
Function
(1) Reverses the sign of the 32-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:
-126
0, 2
| Specified device value | < 2
4140
The specified device value is 0, unnormalized number, nonnumeric,
and ±
.
Program Example
(1) The following program inverts the sign of the 32-bit floating decimal point type real number data at D100 and D101 when
X20 goes ON, and stores result at D100 and D101.
[Ladder Mode]
[Operation]
D101
D100
1.2345
248
Command
Command
J
\
R, ZR
Bit
Word
––
Error details
128
[List Mode]
Step
D101
D100
1.2345
Ver.
High
Basic
performance
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
ENEG
ENEGP
Zn
U
\G
*1
Q00J/
Q00/
QnH
Q01
––
––
Instruction
Device
Process
LCPU
Redundant Universal
D
D
Constants
Other
––
, and stores at the device
D
QnPH QnPRH
QnU
LCPU
––
––

Advertisement

Table of Contents
loading

Table of Contents