Mitsubishi Electric AJ71C24-S6 User Manual page 229

Melsec-4 computer link module
Table of Contents

Advertisement

8.
COMMUNICATIONS USING DEDICATED PROTOCOLS
Example
2:
To start transmission of data, stored in
b u f f e r
memory
at addresses 120H and 121H,
by the
sequence program. (Station number
is
"OM,
AJ71C24 I/O
addresses are
80 to SF,
transmission data is designated in byte units.)
Computer
AJ71C24 appends PC number "FE" automatically
,
Data is transmitted in the
order of lower
8
bits and
higher 8 bits.
J
0
TOP
1
HWC
H0102
1 - q
AJ71 C24
T
X O O O
M9039
20
25
T O
1
-
k
76
PLF
I
M1
0 0
I
(
FROM H O O O C
/
H010C
/
D4
I
K1
Ob Ylr,Px
l n 4 5 s
U I , Y ~ ~ I ~ , J ~ * J J ~ I , ] ~ I ~ ~ U U , S ~
U.
3%,J2n)
1
t
XC3
Buffer
TO
memory
PC CP"
processing
I O ~ H ~ T ~
(a
/
On-demand
-
command
(1)
1
.
0
9
1 OAH
=
~
0
1
~
4
1
1
SET
I
yo20
= 1 K l l D 4 (
1
SET
1
YO21
F F
"1" is written if a
transmission error
occurs.
Request to turn OFF error indicator LE[
Sets byte unit for data transmission
Converts Start signal to PLS
Sets transmission data
'
N
E
3 4 1 1 2 / 7 8 j 5 6
(1) Designates head address of the
transmission data storage
area
and data length
Resets the on-demand
error
T
X
(Start is disabled if the content at
address lOCH is "I".)
0 2
(2) Starts the on-demand function
Transmission completed flag
Reads the transmission
error
storage area to check transmission
status
>IRCUlT END
0 : Correct transmission
(rddress
locH
XI
: Data not transmitted
due to
an error

Advertisement

Table of Contents
loading

Table of Contents