190
Manual – IPOSplus®
14
Identifiers
Compiler – Programming
14.14 Identifiers
Although we have already used identifiers several times, this section provides additional
information about them. An identifier is understood to be the name that can be adopted
by a Macro identifier (Define section), a symbolic variable name or a function name.
Only letters, numbers and an underscore can be used in an identifier, and the identifier
must start with a letter or an underscore.
An identifier can be up to 32 characters in length.
14.15 Constants
The IPOS
plus®
Compiler supports various types of constants which are differentiated in
the source text by their specific notation. Representation in different formats can im-
prove the legibility of the source text depending on how they are used.
The formats decimal, hexadecimal or binary are possible forms of representation.
Hexadecimal constants start with the '0x' string, binary constants with the '0b' string.
Here are a few examples:
The following identifiers are valid:
The following names are not identifiers:
TerminalX13_4
Setpoint1
_Control_word
TerminalX13.4
Setpoint 1
1st setpoint
1_Input
My function
ThisIdentifierNameIsMuchTooLong
INFORMATION
The IPOS
plus®
Compiler is case-sensitive.
Decimal constants
Hexadecimal constants
Binary constants
123
-50
030
0x23
=35 dec
0xabc
= 2748 dec
0xFFFFFFFF
= -1 dec
0b000100
= 4 dec
0b10
= 2 dec
0b11111111
= 255 dec
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n