Mitsubishi Electronics FX3G User Manual

Page of 964
705
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
31.1 FNC278 – RBFM / Divided BFM Read
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
Program example
In the example shown below, data is read from and written to the buffer memories (BFM) in the unit No. 2 as follows:
• When X000 is set to ON, data stored in D100 to D179 (80 points) are written to the buffer memories (BFM) #1001 
to 1080 in the special function unit/block whose unit number is No. 2 by 16 points in each operation cycle.
• When X001 is set to ON, the buffer memories (BFM) #2001 to 2080 (80 points) in the special function unit/block 
whose unit number is No. 2 are written to D200 to D279 by 16 points in each operation cycle.
X000
SET
M0
The BFM write start flag is set
to ON.
FNC279
WBFM
K2
K1001
D100
K80
K16
BFM write
start
M0
BFM write
start
M8029
Instruction execution complete
RST
M0
M8329
Instruction execution
abnormally complete
RST
M0
X001
SET
M5
BFM read
start
FNC278
RBFM
K2
K2001
D200
K80
K16
M5
BFM read
start
M8029
Instruction execution complete
RST
M5
M8329
Instruction execution
abnormally complete
RST
M5
END
D100 to D179 (80 points) are written to
the buffer memories #1001 to 1080 in
the unit No. 2 (in 5 operation cycles).
The BFM write start flag is set to OFF.
Execution of the WBFM instruction is
waited.
The BFM write start flag is set to OFF.
The BFM read start flag is set to ON.
The buffer memories #2001 to 2080 (80
points) in the unit No. 2 are read to
D200 to D279 (in 5 operation cycles).
The BFM read start flag is set to OFF.
The BFM read start flag is set to OFF.
M8328
Y000
Instruction non-execution
Execution of the RBFM instruction is
waited.
M8328
Y001
Instruction non-execution