Hey all, I'm struggling with the following in Sysmac right now. Any help would greatly appreciated.
I am dealing with socket comm strings, a first for me, but it is working nicely in sysmac.
When I am sending a message the client is expecting the first string to show the length, but they are expecting to see it like this: If the message length is 34 they want the string to be preceded by a 4byte string such as this:00000000 00000000 00000011 00000100
Now I can easily get the length of a string and get that into an integer. But I can not figure out how to get that integer into a 4 byte string.
Is it possible with the functions in sysmac studio?
Hope I have given enough information, thanks
I am dealing with socket comm strings, a first for me, but it is working nicely in sysmac.
When I am sending a message the client is expecting the first string to show the length, but they are expecting to see it like this: If the message length is 34 they want the string to be preceded by a 4byte string such as this:00000000 00000000 00000011 00000100
Now I can easily get the length of a string and get that into an integer. But I can not figure out how to get that integer into a 4 byte string.
Is it possible with the functions in sysmac studio?
Hope I have given enough information, thanks