InTouch TagInfo Script Function

The InTouchTagInfo script function library consists of two files:

  • InTouchTagInfo.dll
  • InTouchTagInfo.wdf

The DLL contains one script function that can be used to determine the type
of an InTouch tag. The tagname is passed as an argument to the
function.

Download the InTouchTagInfo.zip file from the Wonderware®
Knowledge Base™.

  1. Unzip the InTouchTagInfo.zip file.
  2. Copy the InTouchTagInfo.dll and InTouchTagInfo.wdf files and
    place them in your InTouch™ Install directory.

    • The functions will then be available from scripts when running
      WindowMaker.

 Library Function

This library consists of one script
function:

  • ITTagType( Tagname )


ITTagType( Tagname )

This function is used to retrieve the tag type of a
tag. The function requires the tagname to be provided as an argument. The
tagname can be passed to the function directly or as the contents of a message
tag.

The function returns value corresponding to the tag
type as follows:

  •  1 -:- Discrete
  •  2 -:- Integer
  •  3 -:- Real
  •  4 -:- Message
  •  0 -:- Unknown tag type
  • -1 -:- Invalid tagname
  • -2 -:- Unable to connect to PtAcc

The argument for this
function is not case sensitive. An unknown tag type is a tag that is a valid
tagname dictionary entry but is not one of the four type listed. An unknown tag
type will be returned if an alarm group name is passed to the function. An
invalid tagname will be returned if the string value passed to the function is
not the name of a tag contained within the InTouch tagname
dictionary.

Examples:

    tagtype = ITTagType( “MyTagname” )

    tagtype = ITTagType( MessageTag
)

 

Leave a Reply

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

+ 57 = 64