Download FX3U-4LC USER`S MANUAL

Transcript
9 Program Examples
FX3U-4LC User's Manual
9.1 Reading/Writing Buffer Memory
M20
1
Introduction
c) Writing the bit information of auxiliary relays to the buffer memory
In the program below, the ON/OFF status of auxiliary relays (M20 to M35) is written to the buffer
memory (BFM#518) in the unit No. 0.
2
Specification
M21
M35
3
FNC 12
MOV
K4M20
System
Configuration
Write
command
U0\G518
Transfer source
Buffer memory No.
Unit No.
5
D201.0
Wiring
D201.1
6
D201.F
FNC 12
MOV
D201
Introduction of
Functions
Write
command
U0\G518
Transfer source
Buffer memory No.
7
Unit No.
Unit No.
Buffer memory No.
K1
K0
K4M40
8
Buffer Memory
FNC 78
FROM
Alarm
2) FROM/TO instructions (conventional method)
Read the contents of the buffer memory using the FROM/TO instructions.
a) Reading and transferring the bit information to auxiliary relays
In the program below, the contents of the buffer memory (BFM#0) in the unit No. 1 are read and
transferred to auxiliary relays (M40 to M55).
Read
command
4
Installation
d) Writing the bit information stored in data registers to the buffer memory
In the program below, the ON/OFF status of each bit of a data register (D201) is written to the buffer
memory (BFM#518) in the unit No. 0. Each bit of the data register (D201) should be set to ON or OFF
in advance by bit specification of word devices.
K1
Number of transfer points
9
Transfer destination
Program
Examples
M40
M41
10
Troubleshooting
M55
129