7. APPLICATION INSTRUCTIONS
7
−
96
MELSEC-A
Program Examples LWTP
A program to store data of D99 to D104 of the master station in D3 to D8 of the 3rd
local 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 LWTP 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 LWTP 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
M9202
9 ANI
M9203
10
ANI
M9200
11
ANI
M9201
12
LWTP
K3
D3
D99
K6
23
MPP
24
AND
M9203
25
RST
M0
26
RST
M9202
29
RST
M9203
32
END
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
LWTP
OFF
OFF
OFF
OFF
ON
ON
ON
Use a pulse signal for
this command. (*1)
Provide interlock using
the LWTP instruction
execution flag.
If the LRDP instruction is used to the same station,
provide interlock using the LRDP instruction execution flag.
X003
M0 M9202
M9203
M9200 M9201
PLS M1
K
K
LWTP 3
D3 D99
6
M9203
SET
M0
RST
M0
RST M9202
RST M9203
(*2)
When X3 is ON, M0 turns ON.
If the LRDP and LWTP instructions are not being
executed when M0 is ON, the LWTP instruction
for the 3rd station is executed, and M9203 is
turned ON.
At read completion, M0, M9202 and M9203 are
turned OFF.
0
4
6
M1
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......