Floating-Point Sign Invertion (Single Precision) (Eneg(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

6.3.12

Floating-point sign invertion (Single precision) (ENEG(P))

ENEG(P)
ENEG
ENEGP
Setting
Data
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
, 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 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, LCPU):
0, 2
• The value of the specified device is
(For the Universal model QCPU, LCPU)
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
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.
Command
Command
: Head number of the devices where the 32-bit floating decimal point data whose sign is to be reversed is
D
stored (real number)
Internal Devices
R, ZR
Bit
Word
––
-126
| Contents of designated device | < 2
D100
1.2345
Ver.
Basic
J
\
U
\G
Bit
Word
––
.
D
128
0, unnormalized number, nonnumeric, and ±
[List Mode]
Step
Instruction
D101
D100
1.2345
ENEG(P)
High
Process
Redundant Universal
performance
ENEG
D
ENEGP
D
Zn
Constants
––
*1
(Error code: 4140)
(Error code: 4140)
Device
1
2
LCPU
3
4
4
6
Other
7
8
.
6-97

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents