HomeAVEVA InTouch HMIWindows Controls & Scripting Wonderware InTouch

Windows Controls & Scripting Wonderware InTouch

Scripting Windows Controls Wonderware intouch

Scripting Windows Controls Wonderware intouch
Windows Controls

Adding and Deleting Items in Combo Boxes wonderware intouch

Use the following script functions to add and delete items from combo boxes and lists

  Script function   Effect
  wcAddItem()   Adds an item to the end of the list of a list box or combo box. If sorting is enabled, the list is sorted after the item is added.
  wcInsertItem()   Adds an item at a specified position in the list of a list box or combo box.
  wcDeleteItem()   Deletes an item from a specified position in the list of a list box or combo box.
  wcDeleteSelection()   Deletes the currently selected item from the list or combo box.
  wcClear()   Removes all items from the list or combo box.      

Loading and Saving List Items From or To a File

Use the following script functions to load and or save items in a combo box or list from or to a file.

  Script function   Effect
  wcLoadList()   Loads the contents of a list box or combo box with new items from a file.
  wcSaveList()   Saves the contents of a list box or combo box to a file.
Windows Controls

Finding Items In a Combo Box or List

Use the wcFindItem() function to search for a specified item in a list box or combo box. If the item is found, this function returns the corresponding position to an integer tagname as the fourth parameter.      

Working with Item Indexes in a Combo Box or List

Use the following dotfields to work with the item index of a list box or combo box.

  Dot Field   Effect
  .TopIndex   The integer index of the topmost item in the list box.
  .NewIndex   The integer index (tagname) of the last item added to the list box or combo box through the wcAddItem() or wcInsertItem() functions.
  .ListIndex   The index (tagname or number) of the currently selected item in the list.
Windows Controls

Counting List Box or Combo Box Items

The .ListCount dotfield contains the number of items in a list box or combo box.      

Getting or Setting the Value of a List Item

Use the wcGetItemData() function to find the integer value associated with the list item identified by the item index.

Use the wcSetItemData() function to assign an integer value to the item in the list specified by item index. This assigns a number to a string.      

Getting the Name of a List Item

Use the wcGetItem() function to return the item string associated with the corresponding item index in the list box or combo box.      

Loading the Contents of a Text Box

Use the wcLoadText() function to load the contents of a text box from a file. Use the wcSaveText() function to save the contents of a text box to a text file.    

Checking If a Text Box is Read-Only

Use the .ReadOnly dotfield to determine whether the content of the text box is read-only or read/write.    

Getting or Setting the Label of a Check Box

The .Caption dotfield defines the message text of a check box.    

Understanding Windows Controls Error Messages

Given an error number, wcErrorMessage(), returns a string message describing the error. It applies to list boxes, text boxes, combo boxes, radio buttons and check boxes.

The Window Controls functions return values based on the result of processing QuickScript functions. The return value is used for error diagnostics. You can assign these values to integer tag names. For example:

ErrorNumber = wcGetItem(“ControlName”, Number, Tagname);

In this script, ErrorNumber is an integer tag that contains the returned error value. The returned value of the function can be passed to the wcErrorMessage(). The wcErrorMessage() will return a string description of the error. For example:

ErrorMsg = wcErrorMessage(ErrorNumber);

In this script, ErrorMsg is a message type tag that contains the text of the returned error. The following table identifies numeric error values and their definitions.

  Error Message   Definition
  0   Success
  -1   General failure
  -2   Insufficient memory available
  -3   Property is read-only
  -4   Specified item already present
  -5   Object name unknown
  -6   Property name unknown
  -x   Unknown error.
Windows Controls

Touch Push Button Scripting For ESTABLISHING SECURITY Wonderware Intouch

Establishing Security Wonderware intouch :-https://youtu.be/GB3p2DjusYI

Touch Push Button Scripting For  ESTABLISHING SECURITY Wonderware Intouch

1. Create New User Accounts

2. Create Logon Method

3. Create Security Scripts

4. Configure Window Navigation

5. Test Security

ESTABLISHING SECURITY

Special / Security / Select Security Type from the main WindowMaker
menu and select InTouch.

Log on as Administrator with password Wonderware.

Next, create three new user accounts.

Enter the following users and account information.

User Name      Password    Access Level
WW                  WW         1000
operator          operator   2000
day                  day            3000

a) Action script for login touch button:-

DIM LOGONRESULT AS DISCRETE;
LOGONRESULT = PostLogonDialog();

b) Assign a Value Display โ€“ String to the $Operator display object.

c) Assign a Value Display โ€“ Analog link to the value display object.

Enter $AccessLevel in the Expression: field.

Click OK.

d) Action script for logoff:-

DIM LOGOFFRESULT AS DISCRETE;
LOGOFFRESULT = Logoff();
Show โ€œsecurityโ€;

e) Action script for click to continue touch button:-

IF $AccessLevel == ## THEN
    Show โ€œwindowโ€;
ELSE
    Hide โ€œwindowโ€;
ENDIF;


Historical Trend Wonderware Intouch Script

Historical Trend Wonderware Intouch :-https://youtu.be/tf_KmkBpKyg
Configuring Real-time Trends wonderware intouch :-https://youtu.be/UbDIdU8ggJ4


IF IntTag >= 1000 THEN
    IntTag = 0;
 ENDIF;
 IF IntTag >= 0 THEN
     IntTag = IntTag + 100;
 ENDIF;


IF RealTag >= 1000 THEN
    RealTag = 0;
 ENDIF;
 IF RealTag >= 0 THEN
     RealTag = RealTag+100;
 ENDIF;


SCRIPT FOR CLOCK Configuring in Wonderware intouch

YouTube:-https://youtu.be/fY5qxByjfsY

window script


IF S <= 60 THEN

     S = S + 1;
 ENDIF;

IF S >= 60 THEN
    S = 0;
    M = M+1;
 ENDIF;

IF M >= 60 THEN
    H = H + 1;
    M = 0;
 ENDIF;

IF H >= 12 THEN
    H = 0;
 ENDIF;

condition script
A == 1

H = 0;
M = 0;
S = 0;


Script for tank filling animation Wonderware intouch

 ON YOUTUBE-https://youtu.be/7RmTKS3pius


on show

tank_a = 0;
tank_b = 0;
v1 = 0;
v2 = 0;
v3 = 0;
s1 = 0;
s2 = 0;
s3 = 0;
s4 = 0;


while show

IF s1 ==1 AND s2 == 1 THEN v3 = 1; v1 =0; v2 =0;
ENDIF;

IF s1 == 0 AND s2 ==0 THEN v3 =0; v1 = 1 ; v2 = 1;
ENDIF;

IF s3 ==1 AND s4 ==1 THEN v3 = 0;
ENDIF;

IF tank_a == 100 THEN
s1 =1;
ELSE s1 = 0;
ENDIF;

IF tank_a == 0 THEN s2 = 0;
ELSE s2 = 1;
ENDIF;

IF tank_b == 200 THEN s3 = 1;
ELSE s3 =0; ENDIF;

IF tank_b == 0 THEN s4 = 0;
ELSE s4 = 1; ENDIF;

IF v1 ==1 AND v2 == 1 THEN
tank_a = tank_a + 1;
ENDIF;

IF v3 == 1 THEN
tank_a = tank_a โ€“ 1;
tank_b = tank_b + 1;
ENDIF;


Scripts for Blower rotates Different Speed Wonderware intouch

On Youtube-https://youtu.be/dElELv9nlsM

Scripts for Blower rotates Different Speed wonderware intouch

ON SHOW

a = 0;
b = 0;
c = 0;
d = 0;
e = 0;
slrd = 0;


WHILE SHOWING

IF a == 1 THEN
    b = 0;
    c = 0;
    d = 0;
    e = 0;

   IF slrd >= 0 THEN
    slrd = slrd+1;
 
IF slrd >= 100 THEN
    slrd = 0;
ENDIF;
ENDIF;
ENDIF;

IF b == 1 THEN
    a = 0;
    c = 0;
    d = 0;
    e = 0;

   IF slrd >= 0 THEN
    slrd = slrd+20;
 
IF slrd >= 100 THEN
    slrd = 0;
ENDIF;
ENDIF;
ENDIF;

IF c == 1 THEN
    a = 0;
    b = 0;
    d = 0;
    e = 0;

   IF slrd >= 0 THEN
    slrd = slrd+5;
 
IF slrd  >= 100 THEN
    slrd = 0;
ENDIF;
ENDIF;
ENDIF;

IF d == 1 THEN
    a = 0;
    b = 0;
    c = 0;
    e = 0;

   IF slrd >= 0 THEN
    slrd = slrd+25;
 
IF slrd >= 100 THEN
    slrd = 0;
ENDIF;
ENDIF;
ENDIF;

IF e == 1 THEN
    a = 0;
    b = 0;
    c = 0;
    d = 0;

   IF slrd >= 0 THEN
    slrd = slrd+10;
 
IF slrd >= 100 THEN
    slrd = 0;
ENDIF;
ENDIF;
ENDIF;


Condition script Blower rotation

a == 1

b = 0;
c = 0;
d = 0;
e = 0;

b == 1

a = 0;
c = 0;
d = 0;
e = 0;

c == 1

a = 0;
b = 0;
d = 0;
e = 0;

d == 1

a = 0;
b = 0;
c = 0;
e = 0;

e == 1

a = 0;
b = 0;
c = 0;
d = 0;

a == 1

b = 0;
c = 0;
d = 0;
e = 0;


NB Designer OMRON HMI Tutorial:- https://bit.ly/2TNm4hr

DOPSOFT DELTA HMI Tutorial:- https://bit.ly/2FMEKKj

Wonderware Intouch Tutorial:- https://bit.ly/2uzKFMi

GT Designer MITSUBISHI HMI Tutorial:- https://bit.ly/2I4KuR5

WinCC Siemens HMI Tutorial:- https://bit.ly/36c73iZ

FACTORY TALK VIEW Tutorial:-https://bit.ly/3IoDT0s

Also Read:-

Recent Posts

Popular Posts

Wonderware Intouch Cracked

Wonderware IntouchInTouch software leaps onto your screen with breakthrough technology, amazing graphic capabilities, and comprehensive functionality delivered with Wonderwareโ€™s legendary ease of use. Wonderwareโ€™s...

How to Install Intouch License: Download, Types, Features, Working

Intouch LicenseWonderware is a powerful and widely-used software platform that is used by many businesses and organizations to streamline their operations and increase efficiency....

Visual Basic and C-Action Script WinCC: How to Write Script

Action ScriptsActionScript is a programming language used to create interactive and dynamic animations, games, and applications for the web and mobile devices. It is...

Popular Softwares

Wonderware Intouch Cracked

Wonderware IntouchInTouch software leaps onto your screen with breakthrough technology, amazing graphic capabilities, and comprehensive functionality delivered with Wonderwareโ€™s legendary ease of use. Wonderwareโ€™s...

Download RSLogix 500 v12

RSLogix 500 is a programming software developed by Rockwell Automation for programming and configuring Allen-Bradley PLCs (Programmable Logic Controllers). It is part of the...

GX Developer free download

GX Developer with serial keyGX-Developer is a software program used for programming and controlling programmable logic controllers (PLCs) made by Mitsubishi Electric. It is...

FIND MORE