
Chapter 2 Specification of Communication port for CPU module
2 – 43
[5] Program
(a) Program on the master station side (with three slave stations)
R7E3
WR4001 = 3
R7E3
WM103 = H0
DM104 = ADR( WR0 )
WM106 = 32
DM107 = ADR( WR100 )
WM109 = 32
WM10A = H0
WM10B = H8002
WM10C = H800D
WM10D = H6
WM10E = H6
(00001)
Sets the number of slave stations to 3.
(00002)
Time out: None
Specifying head in transmission area: WR0
Transmission area size: 32-word
Specifying head in receiving area: WR100
Receiving area size: 32-word
Receiving data length: Not specified
Start code: 02H
End code: 0DH
Transmission speed: 19.2kbps
Transmission format: 8-bit, Even-numbered
parity, 1 stop bit
(00003)
R1 MCS0
(00004)
Enable the 5th circuit through the 7th
circuit only when TRNS 0 command has
been completed successfully or during the
first scan after RUN.
TRNS0( WM100, R0 )
R7E3
DIF
S
WL0 (WR4000) = WR102
R1
(00008)
(00005)
(WL0 + Station No.)←Set the receiving data
WR4000 = 0
(00007)
Sets the transmission data.
Updates the station No.
Number of transmission bytes: 3 bytes
Sets the start code and the station No.
Sets the end code.
Turn on the start flag.
(00006)
Returns the station No. to the head when
the maximum number of stations has been
reached.
WR4001
<=
WR4000
WR4000 = WR4000 + 1
WR0 = 3
WR1 = H200 OR WR4000
WR2 = HD00
R100 = 1
MCR0
R
R100 TD63
(00009)
1ms 20
TD63
DIF
R5 = 1
R0 = 1
R100 = 0
WY10 = WY10 + 1
(00010)
Start up TRNS 0 after 20 ms has been
elapsed.
Sets to the continued receiving after
transmission is completed.
Comentários a estes Manuais