Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-96
ENEG(P)
6.3.12 Floating-point sign invertion (Single precision) (ENEG(P))
ENEG(P)
*1:Available only in multiple Universal model QCPU
Function
(1) Reverses the sign of the 32-bit floating decimal point type real number data designated by
, and stores at the device designated by .
(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 contents of the designated device or the result of the addition are not "0", or not within
the following range(For the Universal model QCPU only):
0, 2
-126
| Contents of designated device | < 2
128
(Error code: 4140)
The value of the specified device is 0, unnormalized number, nonnumeric, and ± .
(For the Universal model QCPU only) (Error code: 4140)
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] [List Mode]
[Operation]
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.
: 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 Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
–– ––
*1
––
Process
High
performance
Redundant
Universal
Ver.
Basic
Command
Command
ENEG
ENEGP
D
D
ENEG
ENEGP
D
D
D D
Step
Instruction
Device
D101
1.2345
D100
D101
1.2345
D100