
Chapter 6 Deployment PtP communication
Manual VIPA System 300S SPEED7
6-16
HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45
This block receives data via the serial interface.
Using the SFC 218 SER_RCV after SER_SND with the protocols USS and
Modbus the acknowledgement telegram can be read.
Name
Declaration Type
Comment
DataPtr
IN
ANY
Pointer to Data Buffer for received data
DataLen
OUT
WORD
Length of received data
Error OUT WORD Error
Number
RetVal
OUT
WORD
Return value (0 = OK)
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.
This word gets an entry in case of an error. The following error messages
may be created depending on the protocol:
ASCII
Bit Error
Description
0 overrun
Overflow, a sign couldn’t be read fast enough from the
interface
1 framing error Error that shows that a defined bit frame is not
coincident, exceeds the allowed length or contains an
additional Bit sequence (Stopbit error)
2 parity
Parity
error
3 overflow
Buffer is full
STX/ETX
Bit Error
Description
0 overflow
The received telegram exceeds the size of the receive
buffer.
1 char
A sign outside the range 20h...7Fh has been received.
3 overflow
Buffer is full
3964R / Modbus RTU/ASCII Master
SFC 218
(SER_RCV)
Parameter
DataPtr
DataLen
Error
Bit Error
Description
0 overflow
The received telegram exceeds the size of the receive
buffer.
Содержание 313-6CF03
Страница 2: ...Lerrzeichen ...
Страница 40: ...Chapter 3 Hardware description Manual VIPA System 300S SPEED7 3 14 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...
Страница 122: ...Chapter 5 Deployment I O periphery Manual VIPA System 300S SPEED7 5 36 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...
Страница 140: ...Chapter 6 Deployment PtP communication Manual VIPA System 300S SPEED7 6 18 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...