
HIMax System
5 Programming
HI 801 001 E Rev. 4.01
Page 49 of 122
5 Programming
The user programs for the HIMax system must be created using the programming system
(PADT) which is composed of one PC with the programming tool SILworX. A user program
is composed of standard function blocks in accordance with IEC 61131-3, of user-defined
function blocks and of variables and connectors. The elements are placed in the SILworX
FBD editor and graphically interconnected. Based on the resulting graphical representation,
SILworX generates an executable program that can be loaded into the controller.
For more information on the programming tool, refer to the SILworX online help.
Up to 32 user programs can be loaded into the controller. The controller processes the user
programs simultaneously. The user programs can be processed with tunable priorities.
5.1
Connecting the Programming System
The programming system must be connected to the HIMax system via an Ethernet
connection. The following interfaces are available:
Ethernet interfaces on the processor module.
Ethernet interfaces on the communication module.
Ethernet interfaces PADT on the system bus module. With these interfaces only
crossover cables may be used.
5.2
Using Variables in a Project
A variable is a placeholder for a value within the program logic. The variable name is used
to symbolically address the storage space containing the stored value.
Two essential advantages results from using symbolic names instead of physical
addresses:
The names of inputs and outputs used in the process cmust also be used in the user
program.
The modification of how the variables are assigned to the input and output channels
does not affect the user program.
There is local and global variables. Local variables are valid in a delimited project area, in a
user program or function block. Global variables can be used in several function blocks or
programs and can exchange data between the function blocks.
Global variables can be created at different project tree levels. Global variables are valid for
all sub-branches.
Example: If a project contains several resources, the global variables created under a
resource are only valid for the branching under this resource.
Hierarchy of the levels at which global variable can be defined.
1. Project
2. Configuration
3. Resource
5.2.1
Types of Variables
Depending on the program organization unit (POU) – project, configuration, resource, user
program, function block or function –, different types of variables can be used. The
following table provides an overview:
Содержание HIMax
Страница 1: ...SYSTEM HIMax System Manual...