I think:
Platform is using UNICODE and when reading within the Winsock library, for data received from machine (PLC uses ASCII sym.), Platform performs own data in UNICODE, so that even if symbols in ASCII and UNICODE are same - data is true. But even if not same in both codes - data is reconverted into something can not be understood.
When I use the event and method of ActiveX WinSock Control for example:
| Code |
|---|
Procedure WinSockControlDataArrival(Control, bytesTotal)
Data = Undefined;
Controls.WinSockControl.Getdata(Data); //The command of WinSock control that receives the data when
//the machine is sends it
//after getting the data, type of "Data" variable becomes Type("COMSafeArray") which is already
//returned in UNICODE coding system
EndProcedure |