Persistent variables
The technology module provides the possibility of persistently saving the parameters determined (such as the layer counter or the reversal points) so that they are retained even after a mains switch. For this purpose, the following setting has to be made in the »PLC Designer« for the technology module.
The following procedure does not apply to the Application Template, since it already provides structures for persistent data of the machine modules.
-
How to create persistent variables in the »PLC Designer«:
-
Add the global list for managing persistent variables in the context menu to Application with the Add object
Persistent variables...
command.
-
Instance the reference of the persistent variables
"L_TW2P_PersistentVarTraverserBase" in the global structure of the persistent variables.
-
Interconnect the instance of the persistent variables with the PersistentVar input.
L_TW2P_PersistentVar_TraverserBase
Content of the persistent variables within the L_TW2P_PersistentVar_TraverserBase structure.
|
Identifier Data type |
Description |
|---|---|
|
diLayerCounter DINT |
Layer counter
|
|
lrModLowerPos LREAL |
Current lower reversal point
|
|
lrModUpperPos LREAL |
Current upper reversal point
|
|
scCoilData |
Data of the coil geometry summarised in a structure. |