![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Dear Mark, Thank you for your response. I can tell when will this issue happen with an example. I change the modbusLength to 4 as what is done in motorAMCI. And I continuously read the values of 5 neighbor registers, like: > status = pC_->readReg16(0, &read_val, DEFAULT_CONTROLLER_TIMEOUT); > status = pC_->readReg16(1, &read_val, DEFAULT_CONTROLLER_TIMEOUT); > status = pC_->readReg16(2, &read_val, DEFAULT_CONTROLLER_TIMEOUT); > status = pC_->readReg16(3, &read_val, DEFAULT_CONTROLLER_TIMEOUT); > status = pC_->readReg16(4, &read_val, DEFAULT_CONTROLLER_TIMEOUT); The modbus slave simulator shows that the master and slave only communicated once. And the autoConnect issue is reported at the last time. > readReg16: reg = 0, value= 2020 > readReg16: reg = 1, value= 2021 > readReg16: reg = 2, value= 2022 > readReg16: reg = 3, value= 2023 > 2024/11/23 06:24:07.881 DM2C_1_1_In_Word 4 autoConnect could not connect: > readReg16: reg = 4, value= 2023 I mean this autoConnect error occurs when I want to send message for the second time. Best regards, Zhibang ------------------
| ||||||||||||||||
ANJ, 22 Nov 2024 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |