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

How to call OPC UA methods?

How to call OPC UA methods?

LunatiX
New Contributor

I declared a OPC UA method inside the Process Data Manager, see the picture below. But I don't know how I can use this method. I would like to call the method via a button.

LunatiX_0-1647854617953.png

 

6 REPLIES 6

HmiGuide
Community Moderator
Community Moderator
So the question is: Does WebIQ support OpcUA methods?

webiq-eg
Long-established Member

Hi there,
WebIQ supports OPC-UA methods since V2.10. However, a script is required to call the method.

In the attached example, I have implemented a UI action to call the "sqrt(x)" method on our OPC UA online demo server.

To enter the method (see Process Data Manager) you can browse the OPC-UA namespace and import it by right-clicking on the method. An OPC variable with the name "sqrt(x)" appears and at the same time a method in the "Methods" tab.
I wish you success
webiq eg

Hi there,

I can't import the methods inside my Process data manager. I have made a method inside my PLC program but my WebIQ is seeing it not as a methods but only sees the seperate variables inside the method, see attachment.

What am i missing? 

Kind regards

webiq-sk
Frequent Contributor

I'm afraid I can't help you on how to solve this issue in your PLC.
However, this is how it looks like if it's been setup as an OPC-UA method WebIQ can use:

webiqsk_0-1667899416174.png

 

HmiGuide
Community Moderator
Community Moderator

To call a PLC method, I think you need to do some settings in the PLC. When I have the information I post it here.

HmiGuide
Community Moderator
Community Moderator

Here you find the information what you have to do in ctrlX Engineering to make a PLC method callable via OpcUA.

https://developer.community.boschrexroth.com/t5/ctrlX-PLC/How-to-start-PLC-Method-by-DataLayer-or-OP...

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