Mitsubishi Electronics AJ65bt-r2 Home Theater Server User Manual


 
9 - 17
MELSEC-
A
9 PROGRAM EXAMPLES
(3) Program example
(a) Main program
Master station initialization
No. of connected modules:
3 modules
Write to master station
R2 station information
(intelligent, one station
occupied, station No. 1)
Write to master station
R2 station information
(intelligent, one station
occupied, station No. 2)
R2 station information
(intelligent, one station
occupied, station No. 3)
Write to master station
Refresh indication
Start data link with buffer
memory
Turn start request signal
OFF when normal
Read parameter state
when abnormal
Turn start request signal
OFF
Set station No. 1 trans-
mission buffer size
Set station No. 1 recep-
tion buffer size
Set station No. 1 auto-
matic update buffer size
Set station No. 2
transmission buffer size
Set station No. 2 recep-
tion buffer size
Set station No. 2 auto-
matic update buffer size
Set station No. 3
transmission buffer size
Set station No. 3 recep-
tion buffer size
Set station No. 3 auto-
matic update buffer size