Chapter 11 Integrated OBs SFBs SFCs
Manual VIPA CPU 21x
11-10
HB103E - Rev. 05/45
SFC 217 SER_SND
This block allows to send data from the CPU via the RS232C interface.
Here you define a range of the type Pointer for the send buffer where the
data that has to be send 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 sent Bytes is stored.
At
STX/ETX
and
3964R
, the length set in DataPtr or 0 is entered.
At
ASCII
, the value may be different from the sent length when the data is
sent that fast that not all data can be stored in the send buffer of 256Byte.
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
7000h
Not all data has been sent (only for ASCII protocol)
8000h
Send buffer is not available (Pointer defective)
A000h
F000h
Data has not been send (output buffer overrun)
No RS232C interface found
Description
Parameters
DataPtr
DataLen
RetVal
(Error message)
11x 21x 31x 51x
✓
✓
Summary of Contents for CPU 21 Series
Page 1: ...Manual VIPA CPU 21x Order No VIPA HB103E Rev 05 45 ...
Page 2: ...Lerrzeichen ...
Page 6: ...About this Manual Manual VIPA CPU 21x Subject to change to cater for technical progress ...
Page 10: ...Contents Manual VIPA CPU 21x iv HB103E Rev 05 45 ...
Page 30: ...Chapter 1 Principles Manual VIPA CPU 21x 1 18 HB103E Rev 05 45 ...
Page 58: ...Chapter 2 Hardware description Manual VIPA CPU 21x 2 28 HB103E Rev 05 45 ...
Page 80: ...Chapter 3 Deployment CPU 21x Manual VIPA CPU 21x 3 22 HB103E Rev 05 45 ...
Page 178: ...Chapter 5 Deployment CPU 21x 2BT02 with H1 TCP IP Manual VIPA CPU 21x 5 48 HB103E Rev 05 45 ...