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«:

  1. Add the global list for managing persistent variables in the context menu to Application with the Add object Persistent variables... command.

  2. Instance the reference of the persistent variables

    "L_TW2P_PersistentVarTraverserBase" in the global structure of the persistent variables.

  3. 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

  • Initial value: 0

lrModLowerPos

LREAL

Current lower reversal point

  • Unit: units

  • Initial value: 0.0

lrModUpperPos

LREAL

Current upper reversal point

  • Unit: units

  • Initial value: 200

scCoilData

L_TW2P_scTraverser_CoilData

Data of the coil geometry summarised in a structure.