18.16 Fnc128 - Eneg / Floating Point Negation - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.16 FNC128 – ENEG / Floating Point Negation
Outline
This instruction inverts the sign of binary floating point (real number) data.
1. Instruction format
FNC 128
D
ENEG
P
2. Set data
Operand Type
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
D
Explanation of function and operation
1. 32-bit operation (DENEG and DENEGP)
The sign of binary floating point stored in [
].
D
Command
input
FNC128
DENEG
Program example
In the program example shown below, the sign of floating point data stored in D100 and D101 is inverted, and the
negation result is stored to D100 and D101 when X000 turns ON.
X000
D101
D100
1.2345
Mnemonic
16-bit Instruction
Head device number storing binary floating data whose sign is to be inverted
Digit Specification
D
D
FNC128
D100
DENEGP
END
D101
18.16 FNC128 – ENEG / Floating Point Negation
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
5 steps
Description
Word Devices
Special
System User
Unit
V
+1,
D
] is inverted, and the negation result is stored to [
D100
−1.2345
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
Continuous
DENEG
Operation
Pulse (Single)
DENEGP
Operation
Data Type
Real number (binary)
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
11
12
13
14
Pointer
P
15
D
+1,
16
17
18
19
20
517

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents