OPC UA data collection

Hi All,

Need your help , we have some legacy machines which has B&R controllers with X20 module, the machine supplier confirmed that the machine has OPC UA data available, but when I am trying to check the OPC UA server availability at 4840, the OPC UA client complains that it does not exist. However some other have confirmed that it does work.

Hello Manish!

Welcome to the B&R Community page. Have you tried approaching the local B&R office for immediate support?

Otherwise, feel free to further elaborate on the attempts to verify the OPC UA connectivity. By the way, I’m assuming you currently using the X20CP0484 series? (Compact-S PLC)

Cheers,
Eren

Thanks Eren,

Yes I approached local B&R office, but they were not able to suggest about the problem. The PLC is X20CP0410. There are some process parameters which we want to access from remote PC. I was trying to get hold of OPC UA , but it seems that is blocked.
However when I was trying to open Process variables in Automation studio, I am unable to connect through Automation studio.
My assumption was B&R by default makes all the parameters accessible through OPC UA.
Can I connect another X20 PLC with the exiting one and access the data in another PLC?

Thanks

This is not that easy. First you have to find the correct IP address. See for this following post.
Determining a PLC’s IP Address using Wireshark - Share Info & Ideas - B&R Community
After establishing a connection a System Dump could be made with data, which supplies more information about if the OPC UA server is activated.

1 Like

Using netstat I could see that one of the IP has port 11169 open, and on its 80 port(web port) I am getting 404 error page, but message says its B&R computer. So I have solid reason to belief that I have right IP address, but somewhere I heard that B&R PLC has two IP addresses, one which can be used to read process variable is hidden. Is that correct ?

To open the SDM the IP-address\sdm has to be entered in the url in a browser.
See also B&R Online Help

It seems that the ANSL TCP port is available, so data could be read with PVITransfer (RUC).

The CP410 has only one ethernet interface and only one IP-address is possible per interface.

1 Like

Thanks Corne,

I could get the information through the SDM. But still struggling to find our OPC or data access from SDM. And through Runtime utility I can see some things moving further.
But when I an trying to run PVI , I am encountering error.
Here are the instructions I am using :Connection “/IF=tcpip”, “/IP=10.215.3.101 /COMT=350 /PT=11169”, “WT=30”
StartPviMan

With the SDM you can create a system dump file (with data) . This file can be opened directly in the logger in Automation Studio 4.x . If you select all logbooks in the logbook view, you could perhaps see messages that the OPC UA Server is started.

image

This still gives no information about the used tcp port number or if variables are activated/available for OPC UA.

It is also not clear what the RUC problem is?

I am using Automation Studio 6.1, when I am trying open tab, which has “logger”, but the logger is disabled. BTW, I could download the logbooks as zip file. Is there any tool through which I can see these files.


I am able to open logger in SDM, but it does not give me information about how I can fetch process variables. However I could see that some of our previous attempts are logged in as vnc failed

The tool to open the System Dump file is Automation Studio.

The System Dump file has extension *.tar.gz.

Here are the snapshots of what I am getting for Hardware :

At the same time, I downloaded the systems dump and when I trying to read it from Automation studio , I am getting following message (but it does not show option of *.gz):


even if I choose any other option from file type selection I am getting following error:

Have you tried to press <Ctrl + L> to open Logger in Automation?
Then you can use “Load Data” in Logger to open your system dump file.

Logger is by default disabled, dont know how to enable it, so ctrl+l also does not work.


Could it be the issue with Automation studio version ?
Still struggling to connect Automation studio with PLC, but when I am analyzing network it shows there is a PLC in Studio

The PP65 is not supported in AS6.

You have to use AS V4.12. This would be the reason for not being able to open the logbook.

Without an open project you will not be able to open up the logger in either AS4.12 nor AS6.1

Can you please elaborate, by “Without any open project” @JulianL. This is important for us as we dont have any project, as we dont have access to the existing program running on that machine PLC.
Can you please help me understanding that if I connect my machine PLC with another B&R plc and if I create a project in second PLC, will I be able to fetch variable data of the machine PLC. If yes, can anyone please suggest the steps we need to follow

you need at least a ‘dummy’ project to enable the logger button. Don’t matter which hardware you use. Just create it by yourself following the guide.

1 Like

That’s exactly what makes it difficult to give you advice . You don’t need the project on which the OPC-UA server is running, but you should find out which IP address, which port, which login data and which encryption the programmer has set there.

Then you should first try access with a test program such as UA Expert.

What we are trying to do here with Automation Studio is reverse engineering. This is difficult and may not be effective.