Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
19
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

224 Overview of the Resources

Global Variables

external variable list ! External variable lists only can be edited externally and they will be read at each opening and compiling of the project.

Syntax:

VAR_GLOBAL

(* Variables declarations *)

END_VAR

6.1.3.3 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 WAGO-I/O-PRO 32. Persistent variables remain unchanged after a controlled shutdown of the runtime system (stop, start) or an 'Online' 'Cold reset' or a download.

Persistent variables are not automatically also Retain variables !

Remanent variables are additionally assigned the keyword RETAIN 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

6.1.4 Global Constants

Global constants additionally get the keyword CONSTANT.

Syntax:

VAR_GLOBAL CONSTANT

(* Variables declarations *)

END_VAR

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32