Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Built-In Functions

  • Last UpdatedJul 18, 2023
  • 1 minute read

There are three built-in functions that can be used to manipulate strings in the XML template. The syntax to call a built-in function as follows:

{<FunctionName>(<arg1>, <arg2>,...)}

The three built-in functions are:

SubString(string, 'start', 'count')

This function extracts a substring from the given source string starting at character start and ending after count characters.

<string name="AddrWord">{SubString('{tagprefix}','3','2')}</string>

Split(string, delimiter)

This function splits the source string into parts separated by the delimiter and stores them in a zero based string array. For example:

<array name="tagid">
{split('VJA;VJT', ';')}
</array>

produces tagid[0] = VJA, tagid[1] = VJT.

ToProperty(string, separator, delimiter)

This function splits the source string parts separated by the delimiter, and then further into key value pairs separated by the separator. For example:

<array name="taginfo">
{ToProperty('VJA=Alarm;VJT=Trend', '=', ';')}
</array>

This produces taginfo[VJA] = Alarm, taginfo[VJT] = Trend.

Related Links
TitleResults for “How to create a CRG?”Also Available in