Configuration Of Rs 232 - Wieland ricos Manual

Table of Contents

Advertisement

Basic principles, overview and ordering information
If the receiving buffer is full, all further data is lost and the module must be
reinitialised.

2.21.5 Configuration of RS 232

General information about numerical display:
0x23 = Value in hexadecimal format (0x23
0010.0010 = Value in binary format (0010.0010
X is used if the value does not have a meaning in this location
XX is used if the total value does not have a meaning
A bit combination is indicated in DB 0 and DB 1 which is used to initialise the
interface.
The "IR" bit is set in control byte 1 to adapt the baud rate and to transfer the
sending and receiving data. The module is initialised with the values indicated in
the bytes Config0 and Config1.
DB 0
DB 1
DB 2
Config0
Config1
XX
Once the initialisation has been carried out, the "IA" bit ('Init Acknowledge') is set
in status byte 1 to confirm the initialisation. The following tables indicate the
meaning of the bit sequences within the data bytes for the configuration of the
module.
Config0
Bit7
Bit6
Type
0
0 = RS232
Always 0
1 = RS485
Config1
Bit7
Bit6
See: Block receipt and individual byte receipt
The "IA" bit is set in status byte 1 if the initialisation phase has been completed.
DB 0
DB 1
DB 2
XX
XX
XX
XX
90
DB 3
DB 4
XX
XX
XX
Bit5
Bit4
HS1
HS0
Handshake:
(0, 0) = no handshake
(1, 1) = RTS/CTS
Bit5
Bit4
DB 3
DB 4
DB 5
DB 6
XX
XX
XX
© 2002 Wieland Electric GmbH Version 2.4* (December 2002)
= 0010.0011
hex
bin
= 0x22
bin
hex
DB 5
DB 6
DB 7
XX
XX
Bit3
Bit2
Baud3
Baud2
Baud rate (Values must be entered in binary format)
0 = 300Bd, 1 = 600Bd, 2 = 1200Bd, 3 = 2400Bd,
4 = 4800Bd, 5 = 9600Bd, 6 = 19200Bd, 7 = 38400Bd.
Values of 8..15 are not permitted.
Bit3
Bit2
DB 7
Status byte0
XX
XX
Part no. 05.591.3389.0
= 35
)
dec
= 34
)
dec
Control
Control byte
byte 0
1
XX
0000.0100
Bit1
Bit0
Baud1
Baud0
Bit1
Bit0
FRM1
FRM10
0 = Even parity
1 = Even parity
2 = Uneven parity
3 = No parity
Status byte1
0xxx.x1xx
© 2002 Wieland Electric GmbH

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents