9 - 41
MELSEC-A
9 PROGRAM EXAMPLES
(5) Program for setting transmission data
No. of write points
Access code, attribute
R2 buffer memory
address
Master station head I/O
No.
Access destination
station No.
Write data
Device to turn one scan
ON at completion
Set transmission data size
Set transmission data
(41
H
, 42
H
)
Dedicated command
(RIWT)
Set transmission data
(43
H
, 44
H
)
Set transmission data
(45
H
, 46
H
)
(6) Program for reading reception data size
No. of read points
Access code, attribute
R2 buffer memory
address
Master station head I/O
No.
Access destination
station No.
Read data
Device to turn one scan
ON at completion
Dedicated command
(RIRD)