Using CitectSCADA > Genies and Super Genies > Super Genies > Constants
Constants

The ability to pass constants into Super Genies is restricted in that, the constant association can only be where you can enter a normal Cicode tag - keyboard command, symbol address field etc. The following types of constants are supported: STRING, INTEGER, DIGITAL, REAL, and LONG.

To pass a constant you need to format the argument in the Ass function to include a single quote on either side. For example, to pass the constant data 1.2345 into a Super Genie, you would call the Ass function like this:

Ass(hWin, sArg, "'1.2345'");

To pass a variable tag, you don't need the single quotes. For example, to pass variable tag TAG1 into a Super Genie, you would call the Ass function as follows;

Ass(hWin, sArg, "TAG1");

See Also