-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read data from function 0x04 #2
Comments
Hello, I have the same problem. i used this function: bool mb_status = mmodbus_readHoldingRegisters16i(1, 0, 5, modbus_data); i saw mmodbus.rxBuf[] value on debuger. returned data from slave is store on mmodbus.rxBuf[] but i cant use it any where,. my modbus_data[32] all index are zero and also mb_status is false so what do we do? |
I don't have any device to test it. but as I can remember, I tested it before. Please debug step by step and see what is happening in the function and tell me. thanks. |
i forget to say my mcu is G030C8T6. i do some change. i can use mmodbus.rxBuf[] members only on library, for example i wrote a function to combine mmodbus.rxBuf[4] and mmodbus.rxBuf[5] and return data But when i define my array and use function in while loop all member of it is are zero. |
I want to read data from address 1, function 4, address reg 0x0000, 1 number, but not any action.
float txf[8];
mmodbus_readInputRegisters32f(1, 0, 1, txf);
The text was updated successfully, but these errors were encountered: