9.
COMMUNICATIONS IN THE
NO-PROTOCOL
MODE
MELSEGA
~~
ixrmple
2:
By
recelving the set length of d8t8,
In
byte unit8 (receive
are8
rllocrtlon defrult)
To
receive
'AJ71C24"
from an external device and to store
it
to
DO
to
D4
of
PC CPU
with
the
following setting.
(AJ71 C24
I/O address:
80
to
9F)
Received
data
read
roquemt
X81
Receiied
is
stored
-w
Received
data mad
oompkhd
Y91
PC
CPU
(program)
FROM
processing
Y-g@)
FROMP H8 H81 Dl KOZ
(2)J
AJ7lC24buff.rmsroy
DOINTI
0Even
if
transmission data units are set to byte units, the
FROM
instruction in a sequence program operates in word units. Therefore,
the length of receive data 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
0
When an odd number of bytes of data is received,
the
higher
8
bits of
(7
t
2
=
3.5
...).
the last address read by the
FROM
instruction are
'OOH".
h
-.
3
,1
1
'-4
d
1
9-
12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com