Hello every one. I could send data with TCP IP client Server to the server. (Thanks to this forum)
Now I have problem that i need to send a double value for example 70.0000 but server recieve it 70 not 70.000 Therfore it can not be detected by server.
Hello every one. I could send data with TCP IP client Server to the server. (Thanks to this forum)
Now I have problem that i need to send a double value for example 70.0000 but server recieve it 70 not 70.000 Therfore it can not be detected by server.
How can I fix it?
Last edit: David.sa198 2021-09-09
Hey David,
see: https://faq.codesys.com/display/CDSFAQ/TCP%3A+Example+for+Server+and+Client
Regards
Thank you for your reply. Can I use CAA Netbase service with Raspberry Pi. Does R.Pi support this service?
To convert this number to bytes you can use an Union.
TYPE UN_Test :
UNION
dwValue: DWORD;
arrValue: ARRAY[0..3] OF BYTE;
END_UNION
END_TYPE