Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

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

Iq-select-box

Iq-select-box

HugoCtrlX1
Member

Hello

Is possible you can recomend an example to read drive parameters (S and P) using iq-select-box or another way to read a list parameter from drive to show in web panel. 

Thank you

7 REPLIES 7

webiq-sk
Frequent Contributor

Can you please elaborate on what "drive parameters" are?

HmiGuide
Community Moderator
Community Moderator

When I understand your question correct, it includes 2 different tasks:

  1. Read drive parameters
  2. Display a list in WebIQ

1. Read drive parameters
I'm not really familiar with the drives, especially there are different fieldbuses for the drives, which means that retrieving the  drive data is dependent on the fieldbus, but my expectation is there are 2 ways:
- Read the drive parameters in the PLC program and provide that information to WebIQ
- Check if the drive parameters are available on the data layer, than you can use the ctrlX REST API to read the information from there.

2. Display a list in WebIQ
- There is an example somewhere on the SmartHMI webPage.

webiq-sk
Frequent Contributor

Regarding 2: the scripting demo includes an example: https://demo.smart-hmi.com/scripting-demo/ 

Hello

thank you for information, I am following this example, is possible you can suggest me, how to progam scrip to read and write variables from OPC-UA

 

webiq-sk
Frequent Contributor

As I wrote above this is included in the scripting demo. Please familiarize yourself with it. You can download it directly from inside WebIQ Designer and look at the very well documented source code in Code Manager.

I am study https://demo.smart-hmi.com/scripting-demo/  but I can not  clearly understand how to read and write variables from opc ua, is possible you can help me to make a scrip program to read and write booleans variables from OPC-UA

webiq-sk
Frequent Contributor

You have to load the project into WebIQ Designer, then open Code Manager and have a look at the scripts. These scripts are very well documented:
https://demo.smart-hmi.com/scripting-demo/js/custom-libs/local-scripts/demo-item-subscribe.js
https://demo.smart-hmi.com/scripting-demo/js/custom-libs/ui-actions/demo-item-readdirect.js
https://demo.smart-hmi.com/scripting-demo/js/custom-libs/ui-actions/demo-item-writedirect.js

If you do not know JavaScript there is a lot of information available online to cover the basics.

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