10.
COMMUNICATIONS
IN
THE BIDIRECTIONAL
MODE
MELSEGA
Example
2
Check sum dlsabled, In byte unltr (receive memory
area
allocrtlon: default)]
To
store
'AJ71C24',
received from a computer, to
DO
to
04
of a
PC CPU. (AJ71C24
I/O
ad-
dress:
80
to
9F)
POINTI
AR1
c24
buffer
memory
0
Even if send data units are set to byte units, the
FROM
instruction
in
a
sequence program operates
in
word units. Therefore, the received
data length must be converted to the number of
buffer
memory points
(word units).
In
the above example,
7
bytes of data must be converted into
4
words
(7
9
2
=
3.5).
I
0
When an odd number of bytes
of
data is received, the higher
8
bits
of
the last address read by the
FROM
instruction are
'OOH".
I
I
f
.-
-L
n
d
n
Y
10-22
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com