Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

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

Can not locate realtime data of fieldbuses in SmartHMI / OPC UA Server

Can not locate realtime data of fieldbuses in SmartHMI / OPC UA Server

rexxon
Established Member

Hey everybody,

has anyone tried to read and write realtime data from / to a fieldbus device over the OPC UA server?

Browsing the OPC UA Sever of the ctrlX looks like this for me in Smart HMI:

plasmotion_0-1647594569942.png

On the ctrlX Datalayer the realtime data can be located right here:

plasmotion_1-1647594646154.png

Am I just looking in the wrong spot?

Thanks for your help in advance, cheers!

2 REPLIES 2

CodeShepherd
Community Moderator
Community Moderator

At the moment it is not possible to directly address the cyclic realtime IO data directly via OPCUA. We are working on that topic, but I cannot tell an implementation date.

rexxon
Established Member

Thanks for your reply! I've found a workaround over the last weeks, which I would like to share.

Accessing the fieldbuses over OPCUA by just adding them to the IO configuration is currently not possible, as you have said. But its possible to publish them over the PLC app. you need at least two variables, a GVL-List and a POU in your PLC programm.

Step 1: Create a GVL with the following attributes:

rexxon_0-1652162897163.png

Step 2: Create a plc app. Im my case i want to calculate a weight from an analog input signal. If you do not need any calculation just skip the calculation and just set weight := value;

rexxon_2-1652164011801.png

Step 3: Insert the ethercat device in plc app and map the variable "value" to the corresponding channel

rexxon_1-1652163980860.png

Step 4: Upload the app to the coreX.

Step 5: Load up WebIQ (or an other software, you want to access the OPCUA layer with) and login. For WebIQ you can find many threads here, how to achieve this.

Step 6: Add the ctrlX to the IO Manager in WebIQ

rexxon_3-1652164245900.png

Step 7: Switch to the process data manager and click on browse:

rexxon_4-1652164293969.png

Step 8: In the IO Handler Browser you have to navigate the following path to find the created variable, which is automatically published by the GVL

rexxon_5-1652164432367.png

Step 9: Right click on the variable and choose Create Variable

rexxon_6-1652164477383.png

Step 10: Done:-)

I think, this will be easier to achieve in future releases but for right now, it seems like a quite straigt foreward solution. If you find yourself lost, at any point try googleing or search in this forum. Many topics are already explained and the terminology in ctrlX PLC is the same as in codesys.

Good luck!

 

 

 

 

 

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