12 Program Example
12.1 Reading/Writing Buffer Memory
253
FX
3U
-20SSC-H Positioning Block User's Manual
11
Buffer
M
e
m
o
ry
12
Pr
ogr
am
Exam
ple
13
D
iagnostics
A
List
of
Par
a
m
e
ter
s and
Da
ta
B
V
e
rs
ion
Infor
m
at
ion
2. How to read and write the bit information such as status information and operation
command 1
1) Direct specification of buffer memory
Specify the buffer memory directly as the source or destination in applied instructions, and read or write
the contents..
a) Reading and transferring the bit information to auxiliary relays
In the program below, the contents of the buffer memory (BFM #28) in unit No. 1 are read and
transferred to auxiliary relays (M40 to M55).
b) Reading and transferring bit information to data registers
In the program below, the contents of the buffer memory (BFM #28) in unit No. 1 are read and
transferred to a data register (D200). The read bit information is used in bit specification of word
devices.
Unit No. (0 to 7)
Buffer memory No. (0 to 15399)
U \G
is substituted with a
number
Read
command
FNC 12
MOV
U1\G28
K4M40
Transfer
result
Unit No.
Buffer memory No.
M40
M41
M55
FNC 12
MOV
U1\G28
D200
D200.0
D200.1
D200.F
Read
command
Unit No.
Buffer memory No.
Transfer
result