10.1.3 FC/SFC 217 - SER_SND - Send to PtPPlease note that this block can only be used in CPUs from VIPA or inS7-300 CPUs from Siemens!This block sends data via the serial interface. The repeated call of the FC/SFC 217SER_SND delivers a return value for 3964R, USS and Modbus via RETVAL that con-tains, among other things, recent information about the acknowledgement of the partnerstation. The protocols USS and Modbus require to evaluate the receipt telegram bycalling the FC/SFC 218 SER_RCV after SER_SND.ParametersParameter Declaration Data type DescriptionDATAPTR IN ANY Pointer to Data Buffer for sending dataDATALEN OUT WORD Length of data sentRETVAL OUT WORD Return value (0 = OK)Here you define a range of the type Pointer for the send buffer where the data to be sentare stored. You have to set type, start and length.Example:n Data is stored in DB5 starting at 0.0 with a length of 124byte.n DataPtr:=P#DB5.DBX0.0 BYTE 124n Word where the number of the sent Bytes is stored.n At ASCII if data were sent by means of FC/SFC 217 faster to the serial interface thanthe interface sends, the length of data to send could differ from the DATALEN due toa buffer overflow. This should be considered by the user program.n With STX/ETX, 3964R, Modbus and USS always the length set in DATAPTR isstored or 0.Return values of the block:Error code Description0000h Send data - ready1000h Nothing sent (data length 0)20xxh Protocol executed error free with xx bit pattern for diagnosis7001h Data is stored in internal buffer - active (busy)7002h Transfer - active80xxh Protocol executed with errors with xx bit pattern for diagnosis (noacknowledgement by partner)90xxh Protocol not executed with xx bit pattern for diagnosis (no acknowl-edgement by partner)DescriptionDATAPTRDATALENRETVAL FC/SFC 217(Return values)VIPA SPEED7Serial CommunicationSerial communication > FC/SFC 217 - SER_SND - Send to PtPHB00 | OPL_SP7 | Operation list | en | 18-30208