![SEW-Eurodrive IPOS plus Manual Download Page 186](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042186.webp)
186
Manual – IPOSplus®
14
long
Compiler – Programming
14.10 long
As an alternative to assigning variables using #define, the key word long can be used to
declare an individual variable. In this case, the variable number is assigned by the Com-
piler during compilation.
The key word long initiates a declaration of one or more global variables. The following
example shows how to use the key word.
The syntax of a declaration of one or more global variables is as follows:
Example:
During compilation, the symbolic variables setpoint and actual value are assigned an
IPOS
plus®
variable. The user always accesses the variable by using the symbolic name.
14.11 initial long
'initial long' is available as another key word. 'initial long' declares a variable that is then
stored in the variable range from H0 to H127 during compiling. This means the variable
is stored in the variable range that is not lost when there is a power failure.
Example:
long Identifier1 [, Identifier n] ;
long setpoint,actual_value;
initial long start position, end position;
INFORMATION
The legibility of the program text is significantly enhanced if all constants are written
in capitals (e.g. SECOND, MAXIMUM, etc.) and variables are written in upper/lower
case (e.g. SpeedSetpoint, PositionCW, etc.).
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n