MODBUS_TO_STRING

../_images/24b71cf3357a654b0a317f3449fef7e9
Parameter Value
Library_File_Name Modbus_AC500_V10.lib
Firmware V1.0.2
Type Program

The Program MODBUS_TO_STRING converts data received or data to be send via Modbus to a String.

It does not change the value of the data but swaps and aligns data correctly. So it finally just rearranges the original data.

The output String is NULL-terminated. Any Byte in input data containing value ‘0’ is also set to ‘\0’ in output String. In this case output String is shorter than NUM or variable referenced at input ADR_STRING contains multiple strings with an overall length of NUM.

The Program MODBUS_TO_STRING can be used for Modbus Master as well as for Modbus Slave.