Mitsubishi Electric Melsec-k Instruction Manual page 47

Optical data link system
Hide thumbs Also See for Melsec-k:
Table of Contents

Advertisement

4.
PROGRAMMING
l ! i l E BEEoK
F144 MA19 MA18
SET M8
M6
+ I
D
M8
Designation
of
channel number, head register
number, and the number of registers
4
-
MOV
D2
DA21
4b
+ I
MOV
D3
DA22
F144
a
- i t
SET F144
v
I
Data sending request instruction
Data read instruction
b
I
I
b
MOV
D7
DAlO
'
Received data is saved.
I
RST F144
Read completed,
Fig. 4.6 Program Example of Continuous Data Communication with
2
Channels (Continued)
(1) M O is
a dummy contact, which sets
DO
a t
D
=
0
a t
the time of initiation and DO
=
4.
(2) "1" is added to DO upon the completion of read and write.
(3) When DO is "0", M3 turns on. The contents of D300 to D304 are stored into D10 to D14 by
the data block transfer instruction (OUT F158). The contents of D10 to D15 are sent to
channel number
I .
(4) When DO is "I", M4 turns on. This
gives
request to send the contents of D20 to D24 to channel
number 1. The received contents of D20 to D25 are stored into D310
t o
D314 by the data
block transfer instruction (OUT F158).
(5) When DO is "2",
M 5
turns on. The contents of D320 to D324 are stored into D30
to
D34
by
the data block transfer instruction (OUT F158). The cotltents of D30 to 0 3 4 are sent to
channel number 2.
(6) When DO is
"3",
M6 turns on. This
gives
request to send the contents of 0 4 0 to 0 4 4 to channel
number 2, The received contents of D20 to 0 2 5 are stored into D330 to D334 by the data
block transfer instruction (OUT F 158).
46

Advertisement

Table of Contents
loading

Table of Contents