Support for expressions in QuickScript
- Last UpdatedNov 03, 2026
- 1 minute read
Any expressions in a Plant SCADA project will be converted to QuickScript when integrated into Application Server.
However, the conversion to QuickScript will not be successful if the following is detected.
-
A call to a Cicode function is detected in the expression.
There is limited support for some Cicode functions that perform mathematical expressions (see the table below).
-
A syntax error is detected in an expression.
-
A syntax error is detected in a template expression.
-
Arrays are detected (they are not supported).
-
An unsupported format operator is detected.
-
An unsupported escape character is detected.
-
An unsupported template parameter reference is detected.
Note: Cicode expressions in alarm descriptions will not be converted to QuickScript.
The following table lists the Cicode functions that can be converted to QuickScript and describes how the conversions are performed.
|
Cicode |
QuickScript |
|
Abs |
Abs |
|
Sign |
Sign |
|
Min |
System.Math.Min |
|
Max |
System.Math.Max |
|
Pow |
Converted to power operator. For example: |
|
Sqrt |
Sqrt |
|
Exp |
Exp |
|
Log |
Log10 |
|
Ln |
Log |
|
Pi |
Pi |
|
RadToDeg, DegToRad |
Converted to equivalent expression. For example: (rad * 180 / Pi()) (deg * Pi() / 180) |
|
Sin, Cos, Tan |
Sin, Cos, Tan Arguments are automatically converted from radians to degrees. For example: |
|
ArcSin, ArcCos, ArcTan |
ArcSin, ArcCos, ArcTan Return value is automatically converted from degrees to radians. For example: |
|
IntToStr |
StringFromIntg The argument 'base' is automatically added with value 10. |
|
RealToStr |
StringFromReal The Cicode arguments 'width' and 'separator' are not converted. The QuickScript argument 'format' is automatically added with value "f". |