![Wieland ricos Manual Download Page 88](http://html1.mh-extra.com/html/wieland/ricos/ricos_manual_979648088.webp)
onlinecomponents.com
Basic principles, overview and ordering information
©
2002 Wieland Electric GmbH Version 2.4* (December 2002)
88
Part no. 05.591.3389.0 © 2002 Wieland Electric GmbH
Block receipt:
Any received data is first stored in the process image of the input
range EB0 to Eb7 if the block end byte has been received. The value (bit 2 to bit 7)
of the block end byte can be 0x00hex to 0x20hex.
e.g: If the block end byte is 0x0D (carriage return on PC keyboard), this byte must
have the following values depending on the parity.
Value of block end byte
Parity value
Value for Config 1
0x0D
0
0x0D times 4 = 0x34hex
0x0D
1
0x0D times 4 +1 = 0x35hex
0x0D
2
0x0D times 4 +2 = 0x36hex
0x0D
3
0x0D times 4 +3 = 0x37hex
Value of "Config 1":
The value of the block end byte is multiplied by 4, then the parity value is added.
Value range of the block end byte: 0x00 to 0x20.
Single byte receipt:
If the value (bit 2 to bit 7) is >0x20hex, the RA is inverted
immediately after the receipt of each byte and the byte is entered in EB0. If this bit
is not read out immediately by the application, all the subsequent bytes are written
to the receiving buffer.
Byte value
(range: 0x21 to 0x0FF)
bit 7 to bit 2
Parity value
Value for Config 1
1 1 1 1 1 1
0
3Ftimes
4
=
0xFChex
1 1 1 1 1 1
1
3F times 4 +1 = 0xFDhex
1 1 1 1 1 1
2
3F times 4 +2 = 0xFEhex
1 1 1 1 1 1
3
3F times 4 +3 = 0xFFhex
Structure of control byte 0
This byte is reserved for handshake functions and special protocols (check sum
etc.)
Structure of control byte 1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
OL2
OL1
OL0
0
IR
RA
TR
This
constant
must
always be
set to zero
Number of characters to be sent.
Example:
(OL2; OL1; OL0) = (1; 0; 0) = 4dec:
=> 4 + 1 = 5 characters should be
sent. They must be stored in data
byte 0 to data byte 4.
(Data 0-7 corresponds to
1-8 characters for transmission)
This
constant
must
always be
set to zero
Initialisation
Request
Receive
Acknowledge
Transmit
Request