EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Declare

SEW-Eurodrive IPOS plus
384 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Manual – IPOSplus®
181
14
#declare
Compiler – Programming
Compiler error due to missing definition:
14.7 #declare
This directive allows IPOS
plus®
variables to be declared symbolically and relative to a
base variable. This facilitates the portability of source text modules as far as assigning
variable numbers is concerned, because the user only has to change the number of the
base variable in order to change all the variable numbers used in the source text.
In this way, it is easier to integrate preconfigured modules into your own source text pro-
vided that these modules have relative variable numbers.
Syntax: #declare IdentifierNew IdentifierOld : Offset
The following example illustrates this function:
The following variables are now available as symbolic variables: setpoint, actual value
and i. Furthermore, it also specifies that the IPOS
plus®
variables H100, H101 and H105
are assigned.
493925131
#define basevariable H100
#declare setpoint basevariable:0
#declare actvalue basevariable:1
#declare i basevariable:5
INFORMATION
A maximum of 600 #define and #declare directives can be used.
INFORMATION
The task of integrating modules is made easier by forming variable blocks using de-
clare directives. However, this remains quite difficult to handle because the user
needs to have an overview of which variables have been occupied and which are still
available. As a result, it is a good idea to use structures, SEW standard structures or
user-defined structures particularly when a fixed sequence of variables has to be pro-
vided (e.g. SETSYS, GETSYS, MOVLNK, and so on). All other variables should be
declared with the keywords long or initial long as described below since this leaves the
task of assigning variable numbers up to the Compiler.
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents