cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA Client - values appers only after refresh

OPC UA Client - values appers only after refresh

E_Stapel
Long-established Member

Hello everyone, 
I use the the 1.20 version on my CtrlX with the newest Updates (OPC UA Client 1.20.1). I successfully connected the OPC UA Client to an Siemens S7 Server. I can see the whole stucture and all the variables but everywhere an empty value. Only after refreshing the DataLayer the value appears. 

The problem is that the ctrlX subscription Node in Node Red can´t read anything too!
Bevore refresh:

E_Stapel_0-1722497439142.png

 

After refresh:

E_Stapel_1-1722497465339.png

 

Node Red error message:

E_Stapel_2-1722497267719.png

E_Stapel_3-1722497349110.png

Can you help me please? Thank you in advance!

 

7 REPLIES 7

NoRisk4Project
Long-established Member

Hello,

how is the connection status of the OPC UA client conection to the S7? Is it "connected" or does it flicker between "connected" and "disconnected"?

2024-08-01_13h38_54.png

If the client is disconnected, the NodeId of the client variables don't exist, what would explain the "DL_INVALID_ADDRESS" message inside Node-Red. How many and what kind of variables do you read with Node-Red and which publish interval is set inside the Data Layer Subscribe node for these variables?

Please check also the Data Layer timeout settings.

2024-08-01_13h36_33.png

 

 

 

 

E_Stapel
Long-established Member

Hello @NoRisk4Project ,

the state is all the time "connected" and I can´t see any flicker. I also have a Flow that connects the opc ua connection automatically if the state is  disconnected. 

The  "serverWaitResponseTimeout" differed from your settings but after adjusting, the problem exists anyway. 

In Node Red I want to read 14 variables with dieffernt data types (String and Int).

 

NoRisk4Project
Long-established Member

Hello,

did you restarted the ctrlX after you changed the "serverWaitResponseTimeout" setting of the Data Layer? What was the original value set in your control?

Which publishing interval is set for these 14 variables (I guess all of them are subscribed)?

E_Stapel
Long-established Member

Yes the original value set was 3000.
Did you mean the publishing interval of the subscription Nodes? I´m using the default values.
I think that the problem occurs from the opcuaclient Data Layer and not from Node Red. 
Sometimes I cannot open the path from the opcclient data layer, this causes the error message DL_invalid_adress in node red.
Here you can see, that sometime I can´t open the folder:

E_Stapel_0-1722520822487.png

So there are two problems on the opcuaclient data layer
- values are not shown --> only after one or two refreshes
- sometimes I cannot open the whole path --> after some refreshes, it´s possible again

NoRisk4Project
Long-established Member

Hello,

if the "i=85" node is empty, the OPC UA client is either not connected or the Data Layer kicked the OPC UA client provider because of a timeout.

Please deactivate your Node-Red flow that connects/reconnects the OPC UA client and restart your control and connect the OPC UA client via the Data Layer.

2024-08-02_11h00_36.png

After the connect, is the node "i=85" empty or can you browse the variables and do you see values? If yes, can Node-Red access and subscribe the nodes provided by the OPC UA client?

If it's not working, what does the job-count shows?

2024-08-02_11h00_50.png

E_Stapel
Long-established Member

Hello @NoRisk4Project ,

after the restart and the write of the connect data layer, the opc ua client was connected again and I could browse the variables. Unfortunately I still can´t see the values. The job count is 0.

Are there any news? Could you solve your issue?

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