![Mitsubishi Electric MELSEC FX3G Programming Manual Download Page 637](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083637.webp)
635
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.2 NFC193 – BK– / Block Data Subtraction
21
FN
C
160-
FN
C
169
R
eal T
im
e C
lo
ck
C
ont
ro
l
22
FN
C
170-
FN
C
179
Exter
nal D
ev
ice
23
FN
C
180
Al
ter
nate
In
str
uc
tions
24
FN
C
181-
FN
C
189
O
ther
s
25
FN
C
190-
FN
C
199
B
lock D
ata
O
per
at
ion
26
FN
C
200
-F
N
C
20
9
C
har
acter
S
tring
C
ont
ro
l
27
FN
C
210-
FN
C
219
Da
ta
O
per
ation 3
28
FN
C
220-
FN
C
249
Da
ta
C
om
par
ison
29
FN
C
250
-F
N
C
26
9
D
ata T
abl
e
O
per
ati
on
30
FN
C
270-
FN
C
274
Ex
-D
ev
ice
Inv
ert
er
Com
m
s
2. 32-bit operation (DBK- and DBK-P)
1) "2n" 32-bit binary data starting from [
+1,
] are subtracted from "2n" 32-bit binary data starting
from [
+1,
], and the operation result is stored in "2n" points starting from [
+1,
].
2) A (32-bit) constant from -2,147,483,648 to +2,147,483,647 can be directly specified in [
+1,
].
Related instruction
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
- In the case of 32-bit operation
• 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].
Instruction
Description
BK+ (FNC192)
Adds binary block data.
K-32768(H8000)
–
K2(H0002)
→
K32766(H7FFE)
K32767(H7FFF)
–
K-2(HFFFE)
→
K-32767(H8001)
K-2,147,483,648(H80000000)
–
K2(H00000002)
→
K2,147,483,646(H7FFFFFFE)
K2,147,483,647(H7FFFFFFF)
–
K-2(HFFFFFFFE)
→
K-2,147,483,647(H80000001)
Command
input
FNC193
DBK-P
S
1
S
2
n
D
S
2
S
2
S
1
S
1
D
D
[ +1, ]
b31
b0
"n"
points
−
K8765
K8888
K50000
K9325
K4352
[ +3, +2]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +1, ]
b31
b0
"n"
points
K1234
K5678
K4321
K9876
K4000
[ +3, +2]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
S
2
[ +1, ]
b31
b0
"n"
points
K7531
K3210
K45679
K-551
K352
[ +3, +2]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
D
D
D
D
D
D
D
D
D
D
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
[ +1, ]
b31
b0
"n"
points
−
K8765
K8888
K50000
K9325
K4352
[ +3, +2]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +1, ]
S
2
[ +1, ]
b31
b0
"n"
points
K-115
K8
K41120
K445
K-4528
[ +3, +2]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
D
D
D
D
D
D
D
D
D
D
K8880
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
2