
L-INX/L-GATE User Manual
92
LOYTEC
LOYTEC electronics GmbH
8.6.4 Using Persistent Data Points and Markers
Persistent data points are data points on the device that hold their value even after power loss.
In the IEC61131 program there is no difference in handling global variables connected to
persistent data points or to non-persistent data points. When using global variables on the
device resource that shall retain their values after a reboot, the respective data points need to
be configured with the persistent flag in the L-INX Configurator.
Global input variables marked as persistent, supply the IEC61131 program every time with
the last received, valid data, even after a power failure. To enable this behavior, set the
respective input data points persistent in the L-INX Configurator and download the data point
configuration to the device.
Global variables declared as marker can be used as input and output variable in IEC61131
programs. LogiCAD is not able to distinguish markers from global output variables used in
combination with the force update feature, see Figure 76. As a result it is not possible to
create a global variables object holding markers automatically. The procedure as described
in Section 8.5.1 is not able to decide when to create an output variable or a marker. Markers
must be created manually by adding them to the global variables object and setting the
physical address to %M.
8.6.5 Using Retain Variables
Retain variables can be used to maintain certain states or parameters of a program over a
reboot in those variables, which cannot be kept in persistent data points. Typically, input
variables (%I) will be marked as retain variables. For doing so check the
RETAIN
attribute
in the variable declaration when creating or editing a variable as shown in Figure 78.