one or several instance specific location assignment for symbolically represented variables The declaration of such a section is allowed before the end of a configuration (END_CONFIGURATION ) as well as before the end of a resource (END_RESOURCE ).
The following elements are possible with the appropriate hierarchy for name_1 , name_2 etc. (= icon ) or not (= icon ):
The elements must be separated from each other by specifying this character: . If a defined element within the VAR_CONFIG section is ambiguous (because e.g. a global variable and the program instance have the same name, now it is possible to define the prefix VAR_GLOBAL# or PROGRAM# in order to determine which element should be used (see example using prefixes below). In spite of this possibility, Neuron recommends to use a unique →IEC-identifier as name when declaring the appropriate element (e.g. a global variable).
Use the optional keyword AT to assign a physical address in the →PLC to the symbolic variable.
Examples for physical addresses:
Example
|
Explanation
|
%QB7
|
output, byte, 7th element (in the 1st level)
|
%IX1
|
input, bool, 1st element (in the 1st level)
|
%I1
|
input, bool, 1st element (in the 1st level)
|
%IW2.5.7.3
|
input, word, 3rd element in the 7th "module" in the 5th "rack" of the 2nd "bus"
|
Necessary structure for physical address
Enter a physical address according to this structure:
|
Character
|
Meaning
|
1.
|
%
|
initiates the address
|
2.
|
prefix for location
|
defines the location
|
|
I
|
input
|
|
Q
|
output
|
|
M
|
memory
|
3.
|
prefix for size
|
defines the size
|
|
X or none
|
bool (single bit)
|
|
B
|
byte (8 bits)
|
|
W
|
word (16 bits)
|
|
D
|
double word (32 bits)
|
|
L
|
long word (64 bits)
|
4.
|
one or more →unsigned integers You must separate the integers by . in order to enter hierarchical levels. Enter the highest level as leftmost number, the lower levels as numbers to the right.
Restriction
Depending on the PLC platform and the IO provider, Neuron Power Engineer supports max. 5 levels. Contact your system integrator for details. The highest possible number per level is: 4_294_967_295 (that corresponds to UINT32_MAX ) – The underscore characters _ are inserted as separators to make the value more readable, hence _ is not significant.
|
|
defines the address
|
The attribute SIZE is only required for specifying the bit size in case of not elementary data types. In case of elementary data types, this attribute is optional. You might want to use it in order to e.g. copy just one byte from the IO-segment into a WORD variable. If SIZE is not specified, the bit size of the appropriate data type is used (if an elementary data type is the basis).
Restrictions
On using the VAR_CONFIG sections: Currently, Neuron Power Engineer supports VAR_CONFIG sections only when using the →EtherCAT IO provider. For all other cases, it is possible to use the syntax but the corresponding code is not created yet and loaded onto the →PLC (so the VAR_CONFIG sections have no impact on the execution of the application). Currently, Neuron Power Engineer does not support VAR_CONFIG sections when using an IO provider for Neuron. Therefore, it is possible to use the syntax but the corresponding code is not created yet and loaded onto the →PLC (so the VAR_CONFIG sections have no impact on the execution of the application).
The VAR_CONFIG section does not provide an instance specific initialization.
|
|