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.

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

Write value in DataLayerNode with NodeName 255+ characters

Write value in DataLayerNode with NodeName 255+ characters

MST
Established Member

Hi everybody,

I want to write a (LREAL-)variable on the DataLayer via PLC-App (V2.2.0) using DL_WriteNode.

The variable is located in the OPC-UA Client part and is running on another OPC-UA Server (thats why I have no influence on the length of the path). See the DataLayer access in the picture below:

DataLayer.png

 

Yet the copid NodeName (sadly) has more than 255 characters (e.g. see below):

opcuaclient/OPC_UA_Server_KUKA/i=85/ns=2;i=5001/ns=7;i=5000/ns=7;i=5004/ns=8;s=ns=7%3Bi=5004??krlvar:/R1/CUSTOMER/OPCVARIABLEN/ns=8;s=ns=7%3Bi=5004??krlvar:/R1/CUSTOMER/OPCVARIABLEN#ApproachPath[]/ns=8;s=ns=7%3Bi=5004??krlvar:/R1/CUSTOMER/OPCVARIABLEN#APPROACHPATH[10]/ns=8;s=ns=7%3Bi=5004??krlvar:/R1/CUSTOMER/OPCVARIABLEN#APPROACHPATH[10].A1

Is there any chance to write the variable via PLC? Can I use another function? Is there a workaround? Am I missing sth.?

I have no issue writing the variable directly from the DataLayer.

Thx for the support 🙂

 

2 REPLIES 2

CodeShepherd
Community Moderator
Community Moderator

It seems you are working with test versions of the OPC UA client app. Could you please confirm the version number?

How does your code look like for writing? What is the error that your DL_WriteNode is giving back when you try to write?

We did some tests with the example out of the CXA_DataLayer library using address strings up to 370 character and writing via DL_WriteNode was working fine. Beware that the data type of the value that should be written needs to fit to the target data type. Further more the address string variable needs to be big enough to be able to hold the complete string (standard string = 80 characters, string(1024) = 1024 characters). Please also do a complete download when data types are changed.

MST
Established Member

After a complete download it works just fine. Using online Change the string(xy) variable always was limited to 80 characters standard. Thx for the support!

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