cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Connect ctrlX OPC UA Client with Siemens S7 OPC UA Server

Connect ctrlX OPC UA Client with Siemens S7 OPC UA Server

yannic
Established Member

Hello together,

how can I connect my ctrlX Core to my Siemens S7. In the S7 I release some variables from sensors (OPC UA Server). With them I want to work in the ctrlX. I created a OPC UA client on the ctrlX, but I get no connection to the IP address of the S7. It would be nice if someone can give me a step by step instruction for the connection between both devices. It could be also another third-party device (e.g. Beckhoff).

11 REPLIES 11

DevME
Member

Hi,

the configuration of ctrlX OPC UA Client has changed in version 1.10. So first it is necessary to know your version of the app.

Best regards!

yannic
Established Member

Hello, I use 1.10.

yannic
Established Member

Hey,

Now the connection to the S7 works fine. But after a reboot of the core there is no automatic reconnection possible. Are there any settings to change for auto reconnect?

 

CodeShepherd
Community Moderator
Community Moderator

We checked with our R&D and at the moment there is no setting to trigger an auto reconnect to a server. This has to be done "by hand" e.g. with the PLC function blocks or via the Data Layer in the application that uses the client.

You could also use an init script that executes commands after reboot. See this topic for further information.

Hello,

I just created a short NodeRED Flow example how a reconnect to an OPC UA Server from the OPC UA Client App can be performed (Flow as .json file attached). Please read the comments in the flow before using.

ILS
New Poster

Hello yannic,

How did you connect to the Siemens Server via the opc ua client app on ctrlX core ?

Do you have some step by step documentation please ?

Thanks !

 

yannic
Established Member

Hello ILS,

you have to choose the right encryption. My choice is SHA256. Is has to be the same on S7 and ctrlX. Does it work now?

Greetings

Hello Yannic,

Not for the moment...

How did you made the setup between the Siemens Server and the ctrlX Core client ?

Gr

yannic
Established Member

Hello ILS,

Some possible solutions...

1. On the S7 put your Variables in a Data Block with the function "DPRD_DAT"

2. Share this Data Block with OPC UA

 

Hope it will work...

 

Thanks Maurus

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist