LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with a Rockwell Automation 1756 - GuardLogix via OPC UA

Solved!
Go to solution

Hi all, 

 

I'm new to using the OPC UA client LabVIEW software but I have had success connecting and reading from a Siemens PLC, connection formatting here

RHryniowski_0-1683824728482.png

I can read/write to the OPC tags properly.

 

When I try using the same to connect to a Rockwell Automation 1756-xxx GuardLogic I can't connect.  I receive either error -356612 (A communication problem occurred), or -356641 (The operation timed out.).  All errors occur as I connect, before pulling any data.  Below are all the permutations I've tried.

 

RHryniowski_1-1683825122434.png

Does anyone know what I am doing wrong?  I can use OPC Expert or PING to confirm the device is there, RSLinx lets me see the data on the device so I know it has to be on my end.

0 Kudos
Message 1 of 3
(1,104 Views)

A little more information, from RSLinx I can see the device routing, device 00 has the OPC tags, device 02 is the Ethernet.

RHryniowski_1-1683838645547.png

But how does this map to DeviceID in NI OPC Servers, or Server Endpoint URL on the block diagram?

RHryniowski_2-1683838672717.png

 

 

0 Kudos
Message 2 of 3
(1,056 Views)
Solution
Accepted by topic author RHryniowski

Finally found a solution, turns out the Rockwell Automation does not support OPC UA, fortunately LabVIEW has a a set of .vi specifically for Rockwell.

 

RHryniowski_0-1683914042124.png

 

If you have EthernetIP package installed, but these aren't showing (like mine were not), it might be because the package I had installed (2023) is not backwards compatible with LabVIEW 2020, and you can't have NI-Industrial Communication 2023 and any other version installed at the same time.  I had to uninstall NI-Industrial Communication 2023 and reinstall 2020 for the .vis to show up.

 

Message 3 of 3
(996 Views)