![Wieland ricos Manual Download Page 91](http://html1.mh-extra.com/html/wieland/ricos/ricos_manual_979648091.webp)
onlinecomponents.com
Basic principles, overview and ordering information
© 2002 Wieland Electric GmbH Version 2.4* (December 2002)
Part no. 05.591.3389.0
© 2002 Wieland Electric GmbH
91
2.21.5.1
Example for RS 232: 1. Initialisation of the module
Protocol: RS232
Handshake: Yes
Block receipt
Baud rate: 19200 Baud
Parity: Even
Block end byte: 0Dhex (carriage return)
Config0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Type 0 HS1
HS0
Baud3
Baud2
Baud1
Baud0
0 = RS232 Always 0
1
1
0
1
1
0
The resulting value: 0011.0110
bin
= 36
hex
= 54
dec
Config1
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
FRM1
FRM10
0 0 1 1 0 1 0 0
The resulting value = 0Dhex x 4 = 34hex = 0011.0100B
Resulting telegram:
Byte1
Byte2
Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Byte9
Byte10
AB0 AB1 AB2 AB3 AB4 AB5 AB6 AB7 Control byte 0
Control byte 1
36
hex
34
hex
XX XX XX XX XX XX XX
0000.0
1
00
2.21.5.2
Example for RS 232: 2. Sending the character string “RICOS”
The character string “RICOS” and the character length 5 are transferred.
Determining the character length:
Number of characters
OL2
OL1
OL0
1
0 0 0
2
0 0 1
...
... ... ...
8
1 1 1
AB 0 AB 1 AB 2 AB 3 AB 4 AB 5 AB 6 AB 7 Control byte 0
Control byte 1
R I C O S
XX XX XX XX
0
100
.0000
The
“TR”
bit is inverted.
AB 0 AB 1 AB 2 AB 3 AB 4 AB 5 AB 6 AB 7 Control byte 0
Control byte 1
R I C O S XX XX XX XX
0100.000
1
The data is transferred to the transmission buffer. As soon as the
“TA”
bit is
inverted, further data can be transferred to the transmission buffer.