Retrieves the data type for a given Modbus register address.
LJM_ERROR_RETURN LJM_AddressToType(
int Address,
int * Type)
LJM errorcodes or 0 for no error.
Convenience function to programmatically discover the type of a Modbus address. Most people can simply look in the Modbus Map.
[C/C++] Get the type of Modbus address 6, which is AIN3.
int LJMError; int Type; LJMError = LJM_AddressesToTypes(6, &Type); printf("%d \n", Type); // 3 for LJM_FLOAT32