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 #174 background imageLoading...
Page #174 background image
172
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Precautions
â– When DADD instruction is used
When specifying word devices, a device for the lower-order 16-bits is specified first, and then a word device with the next
device number is set for the higher-order 16 bits. To prevent number overlap, it is recommended to always specify an even
number.
â– When specifying the same device in the source and destination
The same device number can be specified for both the source and the destination. In this case, note that the addition result
changes in every operation cycle if a continuous operation type ADD instruction is used.
â– Difference between DADD(P) instruction, D+(P) instruction, and DINC(P) instruction in a
program for adding "+1"
When DADD(P) instruction is used to add 1 to the contents of D0 every time X1 turns from OFF to ON, DADD(P) instruction is
similar to D+(P) instruction and DINC(P) instruction described later except for the contents shown in the table below.
Operation error
There is no operation error.
DADD(P) instruction D+(P) instruction, DINC(P) instruction
Flag (zero, borrow or carry) Operates Does not operate
Operation
result
(s)+1=(d) +2147483647  0  +1  +2 … +2147483647  -2147483648  -2147483647 …
DADD
D0 K25 D0
X1
(D0)+25 → (D0)

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