Download Print this page

Inverting The Sign Of Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Inverting the sign of single-precision real number

ENEG(P)/DENEG(P)
These instructions invert the sign of the single-precision real number specified by (d), and store the data of the device
specified by (d).
The ENEG(P) instructions can also be used as DENEG(P).
Ladder diagram
(d)
FBD/LD
EN
ENO
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Head device number storing single-precision real number
whose sign is to be inverted
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
Processing details
• These instructions invert the sign of the single-precision real number specified by (d), and store the data in the device
specified by (d).
(d)+1
(d)
1.2345
Single-precision real number
• Use these instructions for inverting the positive and negative sign.
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G
SD, SW, R
(d)+1
(d)
-1.2345
Single-precision real number
Structured text
ENO:=ENEG(EN,d);
ENO:=ENEGP(EN,d);
Range
Data type
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
513

Hide quick links:

Advertisement

loading