Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

OPCUA PubSub Teaser

OPCUA Pubsub between ctrlX and Siemens S7

TheCodeCaptain
Community Moderator
Community Moderator
How to configure the ctrlX OPC UA Pub/Sub App to talk with a Siemens S7

This article is about some special settings you need to make to get OPC UA Pubsub between a ctrlX CORE and a Siemens S7 running.
It does not cover each detail of a pubsub configuration.
We used a example program for the Siemens S7 which you can download from the Siemens website, see link below. 

Prerequisites

 

Settings which have to fit together between ctrlX and Siemens:
  • "Publisher ID" (Unique ID per device)
  • "Dataset writer ID" (Unique ID per publisher)
  • Variablenames are not relevant
  • Datatypes have to fit in type and order between publisher and subscriber

The header coming from the Siemens S7 contains in "DataSet Message Content Mask" just the "SequenceNumber"
They also cannot receive additional information in there, this has to be adopted on ctrlX side, see below

 
Step-by-Step guide ctrlX as publisher

 

Step 1: General settings

Set the Publisher ID as a UInt32, and the interface from the ctrlX your message should leave:

OPCUA PubSub Setting 1OPCUA PubSub Setting 1

 

Step 2: Customize your "Dataset Message Content Mask"

Siemens sends and accepts only the "SequenceNumber", so you have to adjust it on ctrlX side.
Select "Header Layout" Custom, change the tab and just leave the tick "SequenceNumber".

Configure by drag and drop all variables you need and you expect on Siemens side.

OPCUA PubSub Setting 2OPCUA PubSub Setting 2

 

 
Step-by-Step guide ctrlX as subscriber

 

Step 1: Create a dummy publisher with all datatypes in the right order you will get from siemens

Create a dummy publisher in ctrlX with all datatypes you would get from the Siemens. (Add DataSet Writer).
This can also be on the same ctrlX and can be deleted when finished.
Drag and drop all dummy data in to have the same allignment, types and size for your process data which is coming from Siemens.

OPCUA PubSub Setting 3OPCUA PubSub Setting 3

Step 2: Create your Reader

From the dummy, create your DataSet Reader with "Add DataSet Reader".
Adjust the values marked in the screenshot so it fits to your Siemens configuration.

OPCUA PubSub Setting 4OPCUA PubSub Setting 4

 

Related Links
Must Read
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