Mitsubishi Electric MELSEC FX3U Programming Manual page 635

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Caution
• When underflow or overflow occurs in the operation result, the following processing is executed. At this
time, the carry flag does not turn ON.
- In the case of 16-bit operation
K32767(H7FFF)
K-32768(H8000)
- In the case of 32-bit operation
K2,147,483,647(H7FFFFFFF)
K-2,147,483,648(H80000000)
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DBK+ D0 D100 D200 R0", "n" is [R1, R0].
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When "n" ("2n" in 32-bit operation) devices starting from
corresponding device range (error code: K6706)
• When "n" ("2n" in 32-bit operation) devices starting from
devices starting from
• When "n" ("2n" in 32-bit operation) devices starting from
devices starting from
Program example
In the program shown below, the specified number of data stored in D150 to D0 are added to the specified
number of data stored in D100 to D0 when X020 is set to ON, and the operation result is stored in D200 and
later.
X020
b15
b0
D100
6789
D101
7821
D102
5432
D103
3520
D0
4
+ K2(H0002)
+ K-2(HFFFE)
+ K2(H00000002)
+ K-2(HFFFFFFFE)
(error code: K6706)
D
(error code: K6706)
D
FNC192
D100
D150
BK+
b15
b0
D150
1234
D151
2032
+
D152
-3252
D153
-1000
25 Block Data Operation – FNC190 to FNC199
→ K-32767(H8001)
→ K32766(H7FFE)
→ K-2,147,483,647(H80000001)
→ K2,147,483,646(H7FFFFFFE)
,
S
S
1
2
overlap "n" ("2n" in 32-bit operation)
S
1
overlap "n" ("2n" in 32-bit operation)
S
2
D200
D0
When D0 is "4"
END
b15
b0
D200
8023
D201
9853
D202
2180
D203
2520
25.1 FNC192 – BK+ / Block Data Addition
, and/or
exceed the
D
21
22
23
24
25
26
27
28
29
30
633

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents