Hi Karim, Which versions are you using on your system? I use the following snippet to extract my recieved message with a ctrlX CORE @ version 1.20: (* Receive some data *)
fbRecv(Execute:=TRUE, Socket:=udiSocket, ValueAdr:=ADR(strRecv), NoOfBytes:=SIZEOF(strRecv)-1);
IF fbRecv.Done=TRUE THEN
(* Received some data *)
strRecv := LEFT(strRecv, UDINT_TO_INT(fbRecv.NoOfRecBytes)); (* end of string marker *)
fbRecv(Execute:=FALSE);
END_IF
... View more