Mitsubishi FX3U-20SSC-H User Manual page 166

Hide thumbs Also See for FX3U-20SSC-H:
Table of Contents
FX
-20SSC-H Positioning Block User's Manual
3U
2) Example 2
In the following program example, 32-bit data in data registers (D21,D20) is written to buffer memory
(BFM #501,#500) in unit No.1.
Write
command
2. FROM/TO instructions (conventional method)
1) FROM instruction (read from BFM to PLC)
The FROM instruction is used to read data from the buffer memory.
The following shows how to use this instruction in a sequence program.
Read
command
Buffer memory No.
In the above program example, 32-bit data is read from buffer memory (BFM #1,#0) in unit No.1 to data
registers (D11,D10).
2) TO instruction (write from PLC to BFM)
The TO instruction is used to write data to buffer memory.
The following shows how to use this instruction in sequence program.
Write
command
Buffer memory No.
In the above program example, 32-bit data in data registers (D21,D20) is written to buffer memory
(BFM #501,#500) in unit No.1.
160
FNC 12
DMOV
Transfer
source
FNC 78
K1
DFROM
Unit No.
FNC 79
K1
DTO
Unit No.
D20
U1\G500
K0
D10
K1
K500
D20
K1
12 Program Example
12.1 Reading/Writing Buffer Memory
Buffer memory No.
Unit No.
Number of transfer
points
Transfer
destination
Number of
transfer points
Transfer
source
Table of Contents
loading

Table of Contents