Using CitectSCADA > Using Labels > Using Arguments in Labels

Using Arguments in Labels

You can define labels that accept arguments enclosed in parentheses (). The following example shows a label that increments a variable by a specific value:

Label Name

Inc(X, STEP)

Expression

X = X + STEP

Here, "X" is the variable to be incremented and "STEP" determines the amount of the increment. You can then use this label in a command, as in the following example:

Key Sequence

FastInc

Command

Inc(SP12, 10);

An operator can use this command to increment the value of SP12 by 10.