Mitsubishi Electronics FX3G User Manual

Page of 964
603
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.1 FNC192 – BK+ / Block Data Addition
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
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 
, and/or 
 exceed the corresponding 
device range (error code: K6706)
• When "n" ("2n" in 32-bit operation) devices starting from 
 overlap "n" ("2n" in 32-bit operation) devices 
starting from 
 (error code: K6706)
• When "n" ("2n" in 32-bit operation) devices starting from 
 overlap "n" ("2n" in 32-bit operation) devices 
starting from 
 (error code: K6706)
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.
  
S
1
  
S
2
   
D
  
S
1
   
D
  
S
2
   
D
D100
b15
b0
+
6789
7821
3520
5432
D101
D102
D103
4
D0
D150
b15
b0
1234
2032
-1000
-3252
D151
D152
D153
D200
b15
b0
8023
9853
2520
2180
D201
D202
D203
X020
FNC192
BK+
D100
D150
D200
END
D0
When D0 is "4"