EasyManua.ls Logo

Phoenix Contact ILC 131 STARTER KIT - Creating Variables; Figure 5-24: Options Dialog Box, General Tab: Hide External Variables; Figure 5-25: Variable Properties Window - Icons

Phoenix Contact ILC 131 STARTER KIT
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ILC 131 STARTERKIT
50
PHOENIX CONTACT 105724_en_01
5.3.3 Creating variables
The onboard inputs and outputs of the ILC 131 ETH are mapped to system variables. The
variable for processing the analog input value (Input_Analog), for example, is created as a
user variable. In PC WORX EXPRESS, the use of a variable must be declared.
A variable that is used within a POU is declared as a local variable using one of the
keywords VAR, VAR_INPUT, VAR_OUTPUT or VAR_IN_OUT. A variable that is used in
the entire project is declared as a global variable using the keyword VAR_GLOBAL.
Figure 5-24 “Options” dialog box, “General” tab: “Hide external variables”
Local/global scope of
validity
These option buttons are always inactive. When a new variable is declared in PC WORX
EXPRESS, the validity can only be set via “Usage”. When selecting a variable that has
already been declared, its validity can be determined via the icons in the “Name” drop-down
menu.
Figure 5-25 “Variable Properties” window – icons
Local variable groups and
global variable groups
For reasons of compatibility with PC Worx, the “Local Variable Groups” and “Global
Variable Groups” items are shown in the “Variable Properties” dialog box, but cannot be set.
Make sure that the “Hide external variables” checkbox is selected in the “Options” dialog
box (“Extras, Options...” menu).
: Local variable
: Global variable

Table of Contents