Manual VIPA CPU 21x Chapter 11 Integrated OBs SFBs SFCs
HB103E - Rev. 05/45 11-11
SFC 218 SER_RCV
This block receives data from the CPU via the RS232C interface.
Here you set a range of the type Pointer for the receive buffer where the
reception data is stored. You have to set type, start and length.
Example: Data is stored in DB5 starting at 0.0 with a length of
124Byte.
DataPtr:=P#DB5.DBX0.0 BYTE 124
Word where the number of received Bytes is stored.
At STX/ETX and 3964R, the length of the received user data or 0 is
entered.
At ASCII, the number of read characters is entered. This value may be
different from the read telegram length.
At ASCII, this word gets an entry in case of an error. The following error
messages are possible:
Bit Error Description
1 overrun Overrun when a character can not be read from the
buffer fast enough
2 parity Parity error
3 framing error Error that shows that a defined bit frame is not met,
exceeds the allowed length or contains an additional
bit sequence
Error that is thrown in case of an error:
Error code Description
0000h no error
9001h Parameter "Data" is not available (e.g. DB not loaded)
9002h Parameter "Length" is not available
9003h Error
7000h Receive buffer is too short (Data loss)
8000h
F000h
Receive buffer is not available (Pointer defective)
No RS232C interface found
Description
Parameters
DataPtr
DataLen
Error
RetVal
(Error message)
11x 21x 31x 51x
✓ ✓