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: 

WebIQ read array of struct over opc

WebIQ read array of struct over opc

Geboo
New Poster

Hi,

I am trying to follow the composite demo from smart HMI. The demo uses an array of struct which are simulated. I try to do the same over OPC from a real CTRLX core. I have created a structure and made an array of struct in the process data manager. The example uses [index] for the array index. OPC uses "/index/". This can be adjused (see https://www.youtube.com/watch?v=12v1haa9OSU). (this works for an array of int). but using an array of struct i end up with an extra "." after the index 

Example: "plc/app/Application/sym/HMI/hourCounters/0/.totalRunHours"

using WebIQ 2.15, OPC-UA 1.20.4 PLC 1.20.4 on a CTRLX core X3

3 REPLIES 3

webiq-sk
Frequent Contributor

Please provide the HMI that contains the structures so we can look into it and also a screenshot of UA Expert that shows how the NodeId actually should look like?

@HmiGuide Can you please move this to the correct forum?

Moved to corresponding sub forum Smart HMI - WebIQ Designer and Server.

HmiGuide
Community Moderator
Community Moderator

To import arrays into WebIQ, the standard import of WebIQ should be used. The method shown in the video (linked above) has the following disadvantages:

  • You must understand exactly what is being done in order to create the variables correctly.
  • You have to rework the PLC variables manually each time they are imported/updated again
  • This quickly leads to duplicate variables with different names

To answer your question, you have to provide the PLC variable name.

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