Read Data From modbus Struct
Asked by
rtu-master
Hello,
my question about libmodbus is that: in libmodbus package there is a function that extract from the modbus response message only the number read from slave's register?
For example:
01 05 01 2A 62 6a 23
In that response 01 is the lenght of response, so I must extract 2A 62 and convert from HEX to INT or FLOAT.
Is possible to make that whit a funcion present in modbus.c ? Or there is an example code in C that make it?
Regards!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask rtu-master for more information if necessary.
To post a message you must log in.