EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #285 background imageLoading...
Page #285 background image
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
283
6
Two's complement of 32-bit binary data (sign inversion)
DNEG(P)
These instructions invert the sign of the 32-bit binary data in the device specified by (d), and store the resultant data in the
device specified by (d).
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions invert the sign of the 32-bit binary data in the device specified by (d), and store the resultant data in the
device specified by (d).
They are used when a positive or negative sign is to be inverted.
Precautions
Note that data is inverted in every operation cycle in a continuous operation type (DNEG) instruction.
Operation error
There is no operation error.
Ladder diagram Structured text
ENO:=DNEG(EN,d);
ENO:=DNEGP(EN,d);
Operand Description Range Data type Data type (label)
(d) Head device for storing the data that performs two's
complement
-2147483648 to +2147483647 32-bit signed binary ANY32
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d) 
(d)
1
(d)
(d)
···b31 b0
111 1111 10 00100
···b31 b0
000 00 0 001 11100
111 1111 10 00100
000 0000 00 00000
-
··· -218460
··· 218460
Before execution
Sign conversion
After execution
32 bits

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals