6 BASIC INSTRUCTIONS
6.3 Data Conversion Instructions
289
6
Floating-point sign inversion (single precision)
ENEG(P)
*1 Applicable for the Universal model QCPU, LCPU.
• Reverses the sign of the 32-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.
• 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 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.
• Basic model QCPU: The serial number (first five digits) is "04122" or later.
(D): Head number of the devices where the 32-bit floating decimal point data whose sign is to be reversed is stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
Bit Word Bit Word
(D)
*1
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4140 The specified device value is not within the following range:
0, 2
-126
| Specified device value | < 2
128
The specified device value is -0, unnormalized number, nonnumeric, and .
[Ladder Mode] [List Mode]
[Operation]
Basic
Process
High
performance
Redundant
Universal
LCPU
Ver.
Command
Command
ENEG
ENEGP
D
D
ENEG
ENEGP
D101
1.2345
D100
D101
1.2345
D100