Open emrelio opened 4 years ago
You can ues this API
eMBMasterReqErrCode eMBMasterReqReadHoldingRegister( UCHAR ucSndAddr,
USHORT usRegAddr,
USHORT usNRegs,
LONG lTimeOut );
I'm trying with this function but I did write the wrong function name in the first message. Sorry.
But I couldn't find the variable to read the data. I mean which variable is for reading the data.
You can find the read data on the usMRegHoldBuf
in FreeModbus\port\user_mb_app_m.c
Thank you! I did try to read but then I realized in every request the error code is always "TimeOut". Even in the reqWrite. I'm using f407 with 168MHz clock.
May be uart driver has some problem. You can check the uart ISR for data receive.
Thank you! I did try to read but then I realized in every request the error code is always "TimeOut". Even in the reqWrite. I'm using f407 with 168MHz clock.
me too!Have you solved the problem yet
I'm trying to read registers from the slave. But I can't read anything. With the ReqWrite function or FuncWrite function.
How can I read registers from the slave?
Thank You!