06-24-2013 09:10 AM
I am using LV9 and modbus library from NI.
About this problem i have read some post but it is about master only.
My exact setup is as follows:
I have a third party modbus master software and want to poll 200 coils of data from labview modbus slave.
I am getting values upto register address - 16, but after that the values are'nt changing.
please suggest.
Regards,
Shrek
06-24-2013 09:34 AM
I know that GPIB only allows for 16 addresses. Could this be a similar issue?
06-24-2013 09:40 AM
I think that is a limitation within the modbus library.
Just do multiple coil reads in groups of 16 coils.
06-24-2013 09:46 AM
@RavensFan wrote:
I think that is a limitation within the modbus library.
Just do multiple coil reads in groups of 16 coils.
Very cool - always learning stuff.
06-24-2013 10:31 AM - edited 06-24-2013 10:33 AM
Digging into the modbus library, I think the limitation is coming from the U16 datatype that the array of register data uses, so the conversion to a boolean array leaves you with only 16 elements.
I've never needed to work with modbus coils before, so I've never needed to worry about it. If the modbus specification allows for groups of coils bigger than 16, then I imagine it is possible to fix the modbus library to handle it.
I'd recommend visiting Rewrite MODBUS Library and throwing some kudoes that way.