4.
Select the desired programming Language. Depending on your
system configuration, some programming language are possibly
not available.
5.
Enter a
PLC type
6.
Click
, the new POU is inserted in the project tree. It contains
OK
one code worksheet in the chosen language, a variable worksheet
and a description worksheet.
7.
Expand the POU, and double-click the code worksheet, the
workplace appears.
8.
Drag the target function or function block from the Edit Wizard
pane, and the function or function block is displayed.
9.
Double-click the pin-outs of the function or function block, the
Variable Properties
10.
Accept the proposed name, or enter a new name or select an
already existing name from the
11.
Select the
Data Type
If you are creating a Program, there are two options for Usage:
l
VAR and VAR_GLOBAL.
If you are creating a Function Block, there are five options for
l
Usage: VAR, VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT and VAR_
GLOBAL.
If you are creating a Function, there are two options for Usage:
l
VAR and VAR_INPUT.
See the following table for the description of variables.
Variable
VAR
VAR_GLOBAL
VAR_INPUT
VAR_OUTPUT
VAR_IN_OUT
12.
Assign the initial value and I/O address.
13.
It is optional to select the target group from
Click
and the new variables are added to the selected groups.
OK
and/or a
Process type
dialog appears.
Name
and
from the drop-down lists.
Usage
Description
Local variable
Global variable
Local FB input variable
Local FB output variable
Local input/output variable
Chapter 4 - Software
if required.
combo box.
Global Variable Groups
.
63