Discussion:
DSC 8.5 Modbus I/O Server Documentation Error? Multiple Modbus slaves on one serial port.
(too old to reply)
mbtoday
2008-07-15 01:40:04 UTC
Permalink
I believe there is an error under Communication Settings on the following reference manual page,
<a href="http://zone.ni.com/reference/en-XX/help/371361D-01/lvdialog/dsc_config_modbus_instance/" target="_blank">http://zone.ni.com/reference/en-XX/help/371361D-01/lvdialog/dsc_config_modbus_instance/</a>
&nbsp;
For "Address", it states "Specifies the address of this instance of the Modbus I/O server. "
&nbsp;
I believe this is incorrect.&nbsp; I think Address specifies the address of the one, and only one, Modbus slave device that this server instance will communicate with.
&nbsp;
All of my testing is with RS-485 in 2-wire mode using a NI PCI-8433/4 RS-458 board, and NI/DSC 8.5.1.&nbsp; I have 12 Watlow temperature controllers on Com 3, and it works ok with 12 instances of the Modbus I/O server configured with the 12 different Watlow device addresses.&nbsp; At first it was not reliable - giving bad status and quality warnings mixed in with good quality data.&nbsp; I concluded that each instance is stand-alone, each spawned at about the same time at lvlib deployment time, and all in contention for the serial port at the same time, stepping all over each other and causing timeouts.&nbsp; I then set a slightly different refresh rate on each instance, instead of the default 1 second rate.&nbsp; For example, 1.1 seconds, 1.2, 1.3, 1.4, etc. so that in general, the likelihood of two master instances attempting to communicate at the same time will be much reduced.&nbsp; This works great, giving solid data.
&nbsp;
As far as I can tell, the DSC Modbus I/O server is one to one - one instance of the server code, connected to one slave device.&nbsp; Multiple instances of the server module can be created, but there is no attempt to create a true Modbus master that can handle multiple slave devices on the same communication channel.
&nbsp;
Please tell me I'm wrong and that the DSC Modbus master, or any other version of the Modbus master,&nbsp;CAN deal with this.
Thanks,
Mike
&nbsp;
Aashish_M
2008-07-29 22:10:06 UTC
Permalink
Hey Mike,
&nbsp;


Have you looked into using the Modbus libraries?

Please refer to <a href="http://zone.ni.com/devzone/cda/tut/p/id/4722" target="_blank">Using Touch Screens with LabVIEW through Modbus Serial Devices</a>&nbsp;for more information on the library.
mbtoday
2008-08-08 17:10:05 UTC
Permalink
Hi Aashish - yes, I'm going to use the library to solve my problem.
&nbsp;
However, my post was about a documentation error.&nbsp; Am I correct or incorrect about the documentation error?
Thanks,
Mike

Loading...