Omron C200HS Garage Door Opener User Manual


 
!
298
Note RXD(––) is required to receive data via the peripheral port or RS-232C port only.
Transmission sent from a host computer to a Host Link Unit are processed auto-
matically and do not need to be programmed.
Caution The PC will be incapable of receiving more data once 256 bytes have been received if received
data is not read using RXD(––). Read data as soon as possible after the Reception Completed
Flag is turned ON (SR 26414 for peripheral port).
Control Word The value of the control word determines the port from which data will be read
and the order in which data will be written to memory.
Byte order 0: Most significant bytes first
1: Least significant bytes first
Not used. (Set to 00.)
Port 0: RS-232C port (C200HS-CPU21-E/23-E/31-E/CPU33-E)
1: Peripheral port
Digit number: 3210
The order in which data is written to memory depends on the value of digit 0 of C.
Eight bytes of data 12345678... will be written in the following manner:
MSB LSB
D12
D+1 3 4
D+2 5 6
D+3 7 8
Digit 0 = 0
MSB LSB
D21
D+1 4 3
D+2 6 5
D+3 8 7
Digit 0 = 1
Flags ER: The CPU is not equipped with an RS-232C port.
Another device is not connected to the specified port.
There is an error in the communications settings (PC Setup) or the oper-
and settings.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
The destination words (D to D+(N÷2)–1) exceed the data area.
Peripheral Port
26414: SR 26414 will be turned ON when data has been received normally at
the peripheral port and will be reset when the data is read using
RXD(––) is executed.
266: SR 266 contains the number of bytes received at the peripheral port and
is reset to 0000 when RXD(––) is executed.
RS-232C Port
26406: SR 26406 will be turned ON when data has been received normally at
the peripheral port and will be reset when the data is read using
RXD(––) is executed.
265: SR 265 contains the number of bytes received at the RS-232C port and
is reset to 0000 when RXD(––) is executed.
Note Communications flags and counters can be cleared either by specifying 0000 for
N or using the Port Reset Bit (SR 25208 for peripheral port and SR 25209 for
RS-232C port).
Serial Communications Instructions Section 5-27