FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to multiple Foundation Fieldbus devices in sequence using FF Open VFD

Solved!
Go to solution

I am trying to connect to multiple Fieldbus devices on the same bus. When I try
to connect using "FF Open VFD" the input it has is VFD tag (I left it as
default (0)). I can connect to one device, poll it and close the connection.
However, when I try to do the same with the next device, it errors out on Open
VFD. The bus all seems to be connected properly, I can poll all of the devices
out there and get their various IDs, so I believe that it is all communicating
right.  
I have tried connecting using different, unique VFD tags. Like I mentioned, I
have tried disconnecting and closing the whole connection before trying to
connect to another unit. I've tried connecting to individual units with the
others disconnected from the bus and each will connect and work just fine, so I
know each is capable of working- just not when other units are also present.

 

Any insight is appreciated.

0 Kudos
Message 1 of 23
(13,785 Views)

Hi Darren,

 

What version of NI-FBUS and LabVIEW are you using?

Also could you share the VI in question with me? If privacy is concertned, you can send it to fieldbus.support@ni.com, and I'll examine it.

0 Kudos
Message 2 of 23
(13,775 Views)

Hi Lewis-

 

NI-FBUS 5.0 and LabVIEW 13 SP1.

 

I attached the VI in question.  It fails here: ("FF Open VFD")

Capture.PNG

Like I mentioned- it connects to one of the devices (doesn't matter which one) but it fails on the rest.  If the devices are connected one by one they work just fine.

 

Thanks!

Darren

0 Kudos
Message 3 of 23
(13,767 Views)

Hi Darren,

 

The VI is broken (lacking dependency).

 

Anyway, you could debug to see In your VI whether the Diagnostic Block Name in the cluster returns each and every device ID correctly in each iteration this subVI executes.

 

You could refer to the example NI-FBUS Browse Parameters.vi in the installation folder <National Instruments>\LabVIEW 20xx\examples\NI-FBUS\Interface Device. It's pretty straight forward. 

 

 

0 Kudos
Message 4 of 23
(13,760 Views)

Hi Lewis,

 

Thanks for your input.

 

The VI I sent you is based on NI FBUS Browse Parameters.  All of the device IDs are successfully returned. Its when I try to connect to the device that it all starts to break down.  It connects to the device ID fine but then on the next step (connect to VFD), it fails on every unit but the first one.

 

Let me know if you have any other ideas.

 

Thanks again,

Darren

0 Kudos
Message 5 of 23
(13,752 Views)

Hi Darren,

 

When you find FF Open VFD.vi failes on every unit but the first one, are you getting any error message from the error terminal? You could probe or add an indicator to find out.

 

You could use NI-FBUS Dialog (or Configurator) to check if the network is normal - can you read the device list using these tools? You do so to check whether the network is a working one.

 

Then there are parameters to look out for. NI-FBUS_Configurator_manual.pdf has Appendix B Troubleshooting and Common questions where you may find useful info.

Like, FirstUnpolledNode and NumOfUnpolledNodes, and they can be found in the NI-FBUS Interface Configuration utility advanced settings for a port, in the DLME Master Info section. They govern the beginning of a region of addresses not to probe and the length of the region.  For testing purposes, setting the NumOfUnpolledNodes to zero ensures that all addresses will be checked.

Also, since your code is OOP, the part you are showing looks correct, I'd suggest to identify if there is error in coding pattern. Try to narrow down at what point the otherwise correctly working FBUS VI becomes not working. It'd help if you can narrow down a bit.

 

0 Kudos
Message 6 of 23
(13,742 Views)
Lewis,
I have been testing in the "Dialog" utility that comes with NIFBUS and I have a new error code. Just as the case in LabVIEW, I am only able to connect to the first device on the network's VFD. When I attempt to open VFD zero either by tag or ordinal it gives the error "system management entity is not operational".  Again, the first device tagged "Wrong_Unit_Sent" is fully able to connect, but the others are not. If that unit is disconnected from the FBUS and the power is cycled, then the other units can connect, but again only the first one on the bus.
 

Inline image 1

 

 

Inline image 2
 
 
Inline image 3
 
Here is the interface configuration.  I set it to the 2700 FBUS recommended values and I also tried resetting to defaults (FF default and "old default").
 
Inline image 1
 
I appreciate your help on this.
Darren
 
0 Kudos
Message 7 of 23
(13,691 Views)

I can not see any of your attached pictures.

 

By the way, how confident are you that you have connected the devices correctly? You might want to attach a photo of how you connect everything as well.

0 Kudos
Message 8 of 23
(13,647 Views)

Capture.PNG

0 Kudos
Message 9 of 23
(13,622 Views)

Hopefully you can now see the pictures above. Also, I don't think the connection is an issue because all of the devices' IDs are visible on the network.

0 Kudos
Message 10 of 23
(13,621 Views)