18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

ForceTagChange<br />

Forces the database to write a value to a tag and act as if it were a tag change even if the new value is equal to<br />

the old value.<br />

Function Group Execution Windows Embedded Thin Client<br />

ForceTagChange Tags Database Synchronous Supported Supported Supported<br />

Syntax<br />

ForceTagChange( "strTagName", numValue )<br />

strTagName<br />

numValue<br />

The name of the tag being forced to accept the new value.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

The new value to be written to the specified tag.<br />

Returned value<br />

This function does not return any value.<br />

Examples<br />

Tag Name<br />

Expression<br />

n/a ForceTagChange( "TagA", 5 )<br />

GetTagValue<br />

Gets the value of the specified tag from the project tags database.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetTagValue Tags Database Synchronous Supported Supported Supported<br />

Syntax<br />

GetTagValue( "strTagName", optNumRefresh )<br />

strTagName<br />

The name of the tag of which you want to get the value.<br />

optNumRefresh<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

Tag that you want to use as a trigger to refresh the function. When the value of the specified Tag<br />

changes, the function is executed again. (Normally, a function executes only when the object<br />

on which it is configured changes in some way, such as when a Pushbutton object is clicked.)<br />

To execute the function at a regular interval, you can use one of project's system tags such as<br />

Second, Minute or Hour.<br />

<strong>InduSoft</strong> Web Studio Page 687

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!