7. APPLICATION INSTRUCTIONS
7 − 93
MELSEC-A
Program Examples LRDP
A program to store data of D3 to D8 of the 3rd local station in D99 to D104 of the
master station when X3 is ON.
*1: The contact which corresponds to M1 shown in the program example should be converted into a
pulse. If a pulse is not used, following execution of the LRDP instruction will be disabled.
*2: The contact which corresponds to M0 shown in the program example should be turned ON by the
SET instruction. If the OUT or PLS instruction is used, the LRDP instruction may often be executed
incorrectly.
• Coding
0 LD X003
1 PLS M1
4 LD M1
5 SET M0
6 LD M0
7 MPS
8 ANI M9200
9 ANI M9201
10 ANI M9202
11 ANI M9203
12 LRDP K3 D3 D99 K6
23 MPP
24 AND M9201
25 RST M0
26 RST M9200
29 RST M9201
32 END
Use a pulse signal fo
this command. (*1)
Provide interlock using
the LRDP instruction
execution flag.
If the LWTP instruction is used to the same station,
provide interlock using the LWTP instruction execution flag.
Turned OFF by the
sequence program.
Turned OFF by the
sequence program.
Turned ON by
the PC CPU.
Executed only once.
Executed only once.
M9200
M9201
M0
M1
X3
LRDP
OFF
OFF
OFF
OFF
ON
ON
ON
X003
M1
M0 M9200 M9201 M9202 M9203
PLS M1
K K
LRDP 3 D3 D99 6
M
2
1
SET M0
R
TM
RST M9200
RST M9201
(*2)
When X3 is ON, M0 turns ON.
If the LRDP and LWTP instructions are not being
executed when M0 is ON, the LRDP instruction
for the 3rd station is executed, and M9200 is
turned ON.
At read completion, M0, M9200 and M9201 are
turned OFF.
0
4
6