L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 401

Advertising
background image

L-force | PLC Designer

The Resources



DMS 3.2 EN 02/2011 TD29

399

Example of a network variables list which was created by linking of an export file
*.exp and which got the name NETWORKVARIABLES_UDP:

Example of a network variables list, which has been created by loading an export file
*.exp and which was named Network_Vars_UDP:

Editing Remanent Global Variables Lists

If they are supported by the runtime system, remanent variables may be processed.
There are two types of remanent global variables:

Retain variables remain unchanged after an uncontrolled shutdown of the runtime
system (off/on) or an 'Online' 'Reset' in »PLC Designer«.

Persistent variables remain only unchanged after a program download.

Persistent variables are not automatically also Retain variables !

Remanent variables are additionally assigned the keyword RETAIN and/or PERSISTENT.

Network variables are also defined in this syntax.

Syntax:

VAR_GLOBAL RETAIN

(* Variables declarations *)

END_VAR

VAR_GLOBAL PERSISTENT

(* Variables declarations *)

END_VAR

Advertising