Hi all,
I am writing a program where the user will input a bunch of individual registers they want to read. I am going to sort these registers and bunch them into an array of Read Multiple Register Commands based on how close the addresses are to each other. For instance, if they say they want to read 4x0001, 2, 3, 778, and 779, I will do 2 Multiple Reads, one for the low addresses and one for the high.
My question is, is there a practical maximum for the length a Multiple Read can handle? Say they enter in 4x0001, 2, 3 all the way up to 100. Will there be a problem if my program tries to execute a Multiple Read with length 100? Or does it depend on the hardware?
The master is in Modbus TCP/IP and the slave is in Modbus RTU (RS232), so I am limited to the worst cases of both protocols. And I am using a B&B Gateway to convert back and forth, which may provide additional limitations.
Does anyone have any experience or insight into this?
Thanks!
Jon
I am writing a program where the user will input a bunch of individual registers they want to read. I am going to sort these registers and bunch them into an array of Read Multiple Register Commands based on how close the addresses are to each other. For instance, if they say they want to read 4x0001, 2, 3, 778, and 779, I will do 2 Multiple Reads, one for the low addresses and one for the high.
My question is, is there a practical maximum for the length a Multiple Read can handle? Say they enter in 4x0001, 2, 3 all the way up to 100. Will there be a problem if my program tries to execute a Multiple Read with length 100? Or does it depend on the hardware?
The master is in Modbus TCP/IP and the slave is in Modbus RTU (RS232), so I am limited to the worst cases of both protocols. And I am using a B&B Gateway to convert back and forth, which may provide additional limitations.
Does anyone have any experience or insight into this?
Thanks!
Jon