Detailed Explanation Of Each Wonderware InTouch Function – With Examples

Posted by

Hello, Wonderware InTouch Users. Hope you are doing great things with your InTouch. In view of this, to add more functionalities in your project/things you do in your InTouch, I have written this post. In this post I will discuss in detail about each and every Wonderware InTouch Function. Ranging from a simple Touch Pushbutton to a bit complex Orientation, everything is discussed here.

Before discussing each function individually lets have the list of various Wonderware InTouch Function. Various Functions available are:

  • Touch Links
    • User Inputs
      • Discrete
      • Analog
      • String
    • Sliders
      • Vertical
      • Horizontal
    • Touch Pushbuttons
      • Discrete Value
      • Action
      • Show window
      • Hide Window
  • Line Color
    • Discrete
    • Analog
    • Discrete Alarm
    • Analog Alarm
  • Fill Color
    • Discrete
    • Analog
    • Discrete Alarm
    • Analog Alarm
  • Text Color
    • Discrete
    • Analog
    • Discrete Alarm
    • Analog Alarm
  • Object Size
    • Height
    • Width
  • Location
    • Vertical
    • Horizontal
  • Percent Fill
    • Vertical
    • Horizontal
  • Miscellaneous
    • Visibility
    • Blink
    • Orientation
    • Disable
    • Tooltip
  • Value Display
    • Discrete
    • Analog
    • String

Although, each Wonderware InTouch Function is important but some of frequently used functions are Location, Percent Fill, Orientation, Blink, Fill Color and Pushbuttons. Nonetheless, we discuss all the functions in this post.  We start with most frequently used functions to least used functions.

Percent Fill Wonderware InTouch Function –

As the name suggests, percent fill enables user to show filling animation. Liquid filling, gas filling or any other type of filling can be shown. Percent fill has two options viz Vertical percent fill or Horizontal percent fill. In addition to it, we can use both simultaneously. That is, Horizontal and vertical filling together. Moreover, Vertical percent fill has up and down options whereas horizontal percent fill has left  and right filling options.

To get the idea more clearly, understand the example below.

All about wonderware intouch function
Choose object and break cell
All about wonderware intouch function
Choose percent fill option
All about wonderware intouch function
Define tagname
All about wonderware intouch function
Results

To achieve your desired results you have to set appropriate values in tagname window that pops up.

All about wonderware intouch function

 

After filling the values required, choose whether up vertical fill or down vertical fill is required accordingly. To fill in both vertical and horizontal direction you can click both vertical and horizontal checkbox.

Location – Horizontal and Vertical

Likewise, percent fill, Location function is also used i.e. for movement. But unlike percent fill, it is used to move object itself. However, Logic for this Wonderware InTouch function is different. This function also has both horizontal as well as vertical movement option. Lets understand horizontal motion first.

For horizontal motion you need to have 4 value viz. 2 in value column and 2 in horizontal movement column.

All about wonderware intouch function

 

Value in value column is the value relative to slider. Value in horizontal movement column is the difference between x axis value at initial position of component to final position. In my case difference is 420.

In similar manner values for vertical movement are taken. Only difference is that in place of horizontal movement vertical movement is fed with difference of two positions.

All about wonderware intouch function
Difference between two positions
All about wonderware intouch function
Object in upward direction

Likewise, values for both horizontal and vertical position can be set at same time. Guess in what direction object will move in this condition?

Fill Color Function –

This Wonderware InTouch Function, as obvious, fills color in any object. Be it a simple cube or a switch. The color can be filled either in discrete form or analog. For a switch, color can change either on ‘0’ or ‘1’. In other words, color on off condition could be red and when it gets on color changes to green.

All about wonderware intouch function
Choosing color for on and Off
All about wonderware intouch function
When switch off – color red
All about wonderware intouch function
Switch on – color green

Touch Pushbuttons – Wonderware InTouch Function

These Pushbuttons are usually used to switch or navigate from one window to another. For example, in the project Fault Detection In Overhead Transmission Lines – Using Wonderware InTouchto switch from window main grid to generator we click pushbutton ‘generator’ in main window. In the same manner, to switch from generator to main grid  we click ‘main’ pushbutton in generator window. Well, there is not this single operation that you can do with pushbuttons. Apart from this, other operations done using this feature are –

  • Discrete Value
  • Action
  • Show Window
  • Hide Window

I will discuss show window in detail. And other features in brief viz. Discrete Value, Action and Hide Window.

Discrete Value – Discrete values like reset, set, toggle and other are part of this feature. For example – When a particular action is completed, to reset conditions back to normal you can simply use this pushbutton.

Action – You can make a pushbutton to execute a desired action (using script) using this function. For example – To move an object horizontally when a pushbutton is pressed, simply type the desired script on the window that pops up after you double click the action  tab.

Hide Window – Reverse operation of what a show window does. Show window is discussed in detail.

Show Window – As stated above, to switch from one window to other we use this function. How to use?

Lets understand pictorially.

fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help
Click on show window tab
fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help
Choose window(s)

And that is it. Yes, it is that easy.  Click on the tab show window and then choose window(s) that you want to see when button is clicked. For example – switching from window ‘l’ to window ‘a’. See below.

fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help
Window l
fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help
Window a

Orientation – Wonderware InTouch Function

Orientation is one of the important Wonderware InTouch Function. However, it is not as simple as other functions. Orientation function is a little tricky as compared to other functions. But, it is not that hard too. You may grasp it on first go only, or it may take two or atmost three tries. Not more than that. Lets discuss in detail.

Orientation, as the name suggests, sets the desired orientation of an object upon occurrence of a condition. Specifically, this function is used to rotate an object. Rotation is either Clockwise(CW) or Counter -Clockwise(CCW).

Lets rotate an object in CW direction.

We take a circle and inside that an object is rotated. This object is known as radius elbow taken from symbol factory. No sooner the runtime window opens,  radius elbow rotates continuously in CW direction. First set the values in properties tab of orientation function.  Values set in my example are –

Value at max CCW direction – 0     (As we rotate object in CW direction)                   Value at max CW direction – 50 (limit value it could be anything you desire as per requirement)

CCW Rotation – 0                                                                                                                                  CW Rotation -360 (As object is rotated 360 degree, complete rotation)

Center of Rotation Offset from Object Centerpoint –

X – Position – 0                                                          Y – Position – 10

Center of rotation offset is chosen very carefully. This is the value of radius of the circle (small) in which object will rotate.

fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help

 

One important thing – Expression or tag in orientation function must be an analog value. So, make sure you chose it as analog in the tag properties.

Now, another thing that is very crucial in Orientation property is the window script. If you want to make rotation continuous, you need to write a recursive script. Lets see how i wrote that.

fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help

 

Script to Rotate Object Recursively –

As we have taken the limit (max CW value) 50, so first we need to rotate object to that position.

if k<50 then k=k+1;endif;

No sooner object touches value 50, it will stop rotating. But, we have to make a continuous rotation. In view of this, value 50 must be changed so that first condition is again satisfied.

if k>=50 then k=0; endif;

How cool is that? When value of k equals 50, make it 0 again.  And that’s it. This is required Recursive script.

In similar manner, you can write scripts as per your requirements. Make sure that you inserted correct values in the properties tab of tag. And same values  in the window script too.

Line Color – Wonderware InTouch Function

Next function is Line Color. This function is similar to fill color. Only difference is, instead of filling color in an object it fills colors in the line. That is, it changes the color of a line upon successful completion of a condition or push of a button.

Object Size function  – As the name suggests, this function is used to control the size of an object. That is, height and width of the object. Using this function is similar to various other Wonderware InTouch Function, for example Fill color, position etc.

Sliders Function  – This function can make any object a slider. That means, the operation that a slider does, can also be performed by this property. You can make any object a vertical slider or a horizontal slider. Moreover, you can choose the reference location of slider i.e. top, middle and bottom. In same manner, insert values you insert in the conventional slider.  And job completed.

Blink Function – To make something blink use this.  Write the condition of blink for an object at tag expression.

fault-detection-overhead-transmission-lines-wonderware-intouch-scada-project-help

 

Choose blinking colors or blink invisibly. Choose speed of blinking.

You must have seen how easy it is to use each Wonderware InTouch Function. I encourage you to use and practice these functions in as many applications as you can. You will be an expert very soon, when you follow these instructions. I assure this.

To know more about scada visit these links Wikipedia  Or   What is Scada? 

If you liked this post please like and follow us @Facebook.

Leave a Reply

Your email address will not be published. Required fields are marked *