LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus Slave I/O Server 32 port limitation

i'm currently working on configuring a Modbus Slave I/O server and i can only view the first 32 comms ports. i currently have 108 serial ports installed on my chassis and i need to be able to communicate with all of them. Does anyone know how to get around this limit?

 

 

image1.jpeg

0 Kudos
Message 1 of 12
(2,602 Views)

I think depending on your OS, it could be a limitation of either Windows, LabVIEW or both.  Either/or, I don't think you can get around the limitation.

 

Oops I noticed only 32 ports.  What I said applies to a higher number of ports.  Sorry!

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAhzSAG&l=en-US

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 12
(2,595 Views)

i'm running windows 10 and LabView2018 SP1. 

0 Kudos
Message 3 of 12
(2,587 Views)

Do you have to use the I/O server? Could you instead use one of the available Modbus APIs like https://github.com/NISystemsEngineering/LabVIEW-Modbus-API.

Matt J | National Instruments | CLA
Message 4 of 12
(2,573 Views)

This is what i'm currently using. it has a limitation of only 1 Slave ID per Comm port and i need to be able to simulate multple slave ID's over 1 comm port.

 

I'm using ni modbus library 1.2.1.42 currently, if the software you mention above is not the same, let me know and i'll try it. either way i need to be able to simulate slave ID's on over a single serial port

0 Kudos
Message 5 of 12
(2,553 Views)

Do you have to use all the slaves simultaneously or is it okay if you connect with only one slave at a time?

Clemens | Technical Support Engineer | National Instruments
0 Kudos
Message 6 of 12
(2,532 Views)

Hi,

 

Without knowing how your configuration looks like, I would use a I/O server from Moxa. You can connect to it through Ethernet and access all port with a different ModBus slave address.

Even better would be a RS-485 connection where you could connect aal slave to one wire.

 

Kees

0 Kudos
Message 7 of 12
(2,525 Views)

Unfortunally all of them have to be used simultaneously. i have to simulate an entire process, this could mean controlling the pump which in turn causes me to control a valve and an A/C plant and a Generator and a motor controller, all for transfering fuel from one tank to another.

 

0 Kudos
Message 8 of 12
(2,512 Views)

If you look at the picture below, my setup is as follows. PLC's are my masters there are 30+ with 4 RS-485 serial channels a piece so 120+ serial channels that i need to respond to. i'm using labview to simulate the pieces of equipment, Acting as Modbus Slave devices. i wrote slave id's up there to demonstrate that many of the PLC's respond to the same slave id's for different pieces of equipment. I can't change how the PLC's work or how they are configured, i can only change things on my end. Each comms channel may have 30-40 different slave ID's for different pieces of equipment and thats where the MODBUS I/O server is nice but it gets around this limitation, but i need the program to allow me to select comms ports higher then 32 to talk with all the PLC's.

 

screenshot.png

0 Kudos
Message 9 of 12
(2,510 Views)

I would have to do some digging but, there are 2 different limitations that you have. 

 

1. Modbus addresses have bus Limits of 32 devices of which only 1 is the master

 

2. For multiple busses you need the master vis to be reenterant so they don't share dataspace.

 

Again,  I am not sure if that library is reenterant! But, the dialog shown in your picture looks like it does not expect multiple modbus masters.  Not surprising! Having 124 plcs in one system sounds unique. 

 

There are some 3rd party modbus libraries out there that may be worth looking into. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 12
(2,506 Views)