![Wieland ricos Скачать руководство пользователя страница 90](http://html1.mh-extra.com/html/wieland/ricos/ricos_manual_979648090.webp)
onlinecomponents.com
Basic principles, overview and ordering information
©
2002 Wieland Electric GmbH Version 2.4* (December 2002)
90
Part no. 05.591.3389.0 © 2002 Wieland Electric GmbH
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
hex
= 0010.0011
bin
= 35
dec
)
0010.0010 = Value in binary format (0010.0010
bin
= 0x22
hex
= 34
dec
)
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 DB 3 DB 4
DB 5
DB 6
DB 7
Control
byte 0
Control byte
1
Config0 Config1
XX XX XX XX XX XX XX
0000.0100
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
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Type 0 HS1 HS0
Baud3
Baud2
Baud1 Baud0
0 = RS232
1 = RS485
Always 0 Handshake:
(0, 0) = no handshake
(1, 1) = RTS/CTS
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.
Config1
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
FRM1
FRM10
See: Block receipt and individual byte receipt
0 = Even parity
1 = Even parity
2 = Uneven parity
3 = No parity
The “IA” bit is set in status byte 1 if the initialisation phase has been completed.
DB 0 DB 1 DB 2 DB 3 DB 4 DB 5 DB 6 DB 7
Status byte0
Status byte1
XX XX XX XX XX XX XX XX XX
0xxx.x
1
xx