- HMI Model: 3162xV2
- EasyBuilder Pro Version: 6.10.01
I am having trouble sending a ASCII string (HH:MM:SS) to codesys from a recipe. I wrote a basic macro for troubleshooting. When I attempt to transfer it using the macro, I only receive the first character in my codesys program.
When I use a standard ASCII input to the same address in codesys, it works fine. I have tried both one character and two character per word formats when importing my tags. I’m not sure what I’m missing?
Any help would be appreciated, thank you!
Using this ASCII object works fine.
ASCII object settings:
I have tried both one char and two char per word settings.
When I use this macro I only get the first character in codesys.
Hi @leadfoote ,
Thank you for your question. The issue you are experiencing is likely due to a data type mismatch during the transfer to CODESYS.
In CODESYS and other type-based PLCs, string data is stored in word-based memory, so when the macro tries to send character bytes without converting them into word format, only the first byte is interpreted correctly. This would explain why only the first character of the HH:MM:SS string appears in CODESYS after the transfer.
Before transferring the data, we need to calculate the byte position and convert from a char to a word array. Here is an example of this implementation:
This approach should correctly populate the full 'HH:MM:SS string in CODESYS.

1 Like