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

Equivalent CXA_Lib for RIL_OpcUaServer

Equivalent CXA_Lib for RIL_OpcUaServer

maurusbien
Established Member

Hello,

is there an exisiting PLC Lib in CXA for the former IW Lib RIL_OpcUaServer?

8ea46304-8692-4d41-84b6-dabf4cb51b8a.jpg

If not, is something like this planned?

Thanks in advanced!

7 REPLIES 7

TheCodeCaptain
Community Moderator
Community Moderator

Hi maurusbien,

you could just use the CXA_Datalayer and read some node from the OPCUA Server from the datalayer.

Eg. num-sessions.

If the node does't exist you should get some error, so the server doesn't exist.

2021-08-23_09h27_39.png2021-08-23_09h27_49.png

Hi,

from priciple point of view you are absolutely right. But checking if OPC UA Nodes are available is not sufficent enough in the customers use case. Like did with the former RIL_OpcUaServer Library, it is necessary to know in which state the OPC UA Server is and if it is ready fpr communication:

maurusbien_0-1630327728481.png
Are the green marked information about the OPC UA Server available somehow via the Data Layer?

 

smueller
Established Member

Hi maurusbien,

unfortunately this information is not available over datalayer in version 1.10. But it will available in Version 1.12. The implementation is already done. The information which is available will be similar to ServerStatus, which is already available over OPC UA. Probably it is workaround, the the customer can use the information over OPC UA. See also screenshot below.

Best regards,

Sebastian

smueller_0-1630398232007.png

 

maurusbien
Established Member

Hello Sebastian,

thanks for the detailed answer. I will forward this information and afterwards accept your solution or post a re-question. But for me everything is clear so far.

Best regards,

Maurus

Hy,

I tried from plc side to acces the datalayer node for opc ua serverstatus with DL_ReadNode. But I get an accesserror. It seems that the node on the datalayer has as dataye a enum with basetype string? This is not allowed on plc side. 

There are any other way to get frequently the state of the opc ua server in the plc?

Thanks in advance, Matthias

Hello Matthias,
The server state cannot be read out via the DL_ReadNode module, as it is a flat buffer type.
Reading out flat buffer types is currently not yet possible for the customer, as libraries still have to be made available here.
Alternatively, you can read out the server state if you establish a UA client connection to the local host 127.0.0.1 and use the module UA_ConnectionGetStatus.
In addition to the UA Server app, you must also install the UA Client app on the controller.
I have attached a project archive as sample code.

Many greetings

Matthias

SchneJoe
Established Member
Using UA Client to get the status of the server is just a workaround. Neccessaray Functionblock is requested for RM22.03.
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