Omron SYSMAC C200HS Operation Manual page 388

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Parameters for Host Link and RS-232C Communications
1, 2, 3...
Start and end codes are not included when the number of bytes to be transmitted
is specified. The largest transmission that can be sent with or without start and
end codes in 256 bytes, i.e., N will be between 254 and 256 depending on the
designations for start and end codes. If the number of bytes to be sent is set to
0000, only the start and end codes will be sent.
Start code
To reset the RS-232C port (i.e., to restore the initial status), turn on SR 25209. To
reset the peripheral port, turn on SR 25208. These bits will turn OFF automati-
cally after the reset.
Receptions
1. Check to see that SR 26414 (Peripheral Port Reception Ready Flag) or
SR 26406 (RS-232C Port Reception Ready Flag) is ON.
2. Use the RXD(––) instruction to receive the data.
(@)RXD
3. The status resulting from reading the data received will be stored in the SR
Area. Check to see that the operation was successfully completed. The con-
tents of these bits will be reset each time RXD(––) is executed.
RS-232C
Peripheral
SR 26400 to
SR 26408 to
SR 26403
SR 2641
SR 26404
SR 26412
SR 26407
SR 26415
SR 265
SR 266
Note The contents of SR 265 and SR 266 may not be zero when power is turned on or
when the communications cable is attached. Execute a dummy RXD(––) or re-
set the communications port to reset these words to zero.
To reset the RS-232C port (i.e., to restore the initial status), turn ON SR 25209.
To reset the peripheral port, turn ON SR 25208. These bits will turn OFF auto-
matically after the reset.
Note Always program the Transmit Ready Flag in a NO condition on the instruction
line to TXD(––) to ensure that this Flag is ON before the transmission can be
executed.
256 bytes max.
Data
D: Leading word no. for storing reception data
D
C: Control data
C
Bits 00 to 03
0: Leftmost bytes first
N
1: Rightmost bytes first
Bits 12 to 15
0: RS-232C port
1: Peripheral port
N: Number of bytes stored (4 digits BCD), 0000 to 0256
(including start and end bits)
Communications port error code (1 digit BCD)
0: Normal completion
1: Parity error
2: Framing error
3: Overrun error
Communications error
Reception Overrun Flag (After reception was com-
pleted, the subsequent data was received before the
data was read by means of the RXD instruction.)
Number of bytes received (not including start and
end bits)
Section 8-2
End code
Error
381

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents