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

AVEVA™ Plant SCADA

Constants

  • Last UpdatedJul 18, 2023
  • 1 minute read

In Cicode there is no equivalent of #defines of C language, or a type that will force variables to be constants (read-only variables). However, the variable naming convention makes constants easily identifiable so developers will treat those variables as read-only variables.

  • Constants are recommended to have the prefix `c'.

  • Constants need to be declared and initialized at the beginning of the Cicode file and under no circumstances assigned a value again.

For example:

INT ciTrendTypePeriodic = 1;
INT ciTrendTypeEvent = 2;
STRING csPageName = "Mimic";

See Also

Using Cicode Programming Standards

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