Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル
601
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.1 FNC192 – BK+ / Block Data Addition
21
FN
C
160
-F
-F
N
C
16
9
R
eal
T
T
im
e C
lock
C
ont
ro
ro
l
22
FN
C
170-
FN
FN
C
179
E
xte
rnal D
evice
23
FN
C
C
180
A
lter
nate
In
st
ru
ct
ions
24
FN
C
181-
FN
FN
C
18
9
O
ther
s
s
25
FN
C
190-
FN
FN
C
199
B
lock D
ata
O
per
ation
ation
26
FN
C2
00
-F
NC
20
20
9
C
ha
racter
S
tring
Co
ntro
ntro
l
27
FN
C
210-
FN
FN
C
21
9
Da
ta
O
per
ati
ati
on 3
28
FN
C
220-
FN
FN
C
249
Da
ta
C
om
par
ison
29
FN
C
25
0-F
N
C
269
D
ata T
abl
e
abl
e
O
per
at
at
ion
30
FN
C
270-
FN
FN
C
274
Ex-
D
D
ev
ice
Inv
ert
ert
er
Com
m
s
2. 32-bit operation (DBK+ and DBK+P)
1) "2n" 32-bit binary data starting from [
+1,
] are added to "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 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- (FNC193)
Subtracts binary block data.
K32767(H7FFF)
+
K2(H0002)
→ K-32767(H8001)
K-32768(H8000)
+
K-2(HFFFE)
→ K32766(H7FFE)
K2,147,483,647(H7FFFFFFF)
+
K2(H00000002)
→ K-2,147,483,647(H80000001)
K-2,147,483,648(H80000000)
+
K-2(HFFFFFFFE)
→ K2,147,483,646(H7FFFFFFE)
Command
input
FNC192
DBK+P
S
1
S
2
n
D
S
2
S
2
S
1
S
1
D
D
[ +1, ]
b31
b0
"n"
points
+
K1234
K40000
K-1234
K-2000
K4000
[ +3, +2]
[ +5, +4]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +2n-1, +2n-2]
[ +1, ]
b31
b0
"n"
points
K4000
K1234
K1234
K5000
K-1234
K4321
[ +3, +2]
[ +5, +4]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +2n-1, +2n-2]
S
2
[ +1, ]
b31
b0
"n"
points
K5234
K41234
K3766
K-3234
K8321
[ +3, +2]
[ +5, +4]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +2n-1, +2n-2]
D
D
D
D
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
+
K1234
K40000
K-1234
K-2000
K4000
[ +3, +2]
[ +5, +4]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +2n-1, +2n-2]
[ +1, ]
S
2
[ +1, ]
b31
b0
"n"
points
K5555
K44321
K3087
K2321
K8321
[ +3, +2]
[ +5, +4]
[ +5, +4]
[ +2n-3, +2n-4]
[ +2n-1, +2n-2]
[ +2n-1, +2n-2]
D
D
D
D
D
D
D
D
D
D
D
D
D
D
K4321
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
2