L-INX User Manual
260
LOYTEC
Version 4.0
LOYTEC electronics GmbH
When starting a new project, no global variables object is available; it must be created
before compiling the IEC61131 application. The global variables object can be created
automatically or manually, depending on the different workflows, please refer to Section
6.5.
Figure 207: Variables defined in global variables object
Figure 207 shows the contents of a sample global variables object. As shown a global
variable is defined by the fields
name
,
declaration
and
phys.addr.
.
Name:
The name of a global variable must be unique. The name is used from the IO driver to
identify the global variable and from the LINX Configurator to generate the
corresponding IEC61131 data points.
Declaration:
Here the type of the global variable is defined.
Phys.Addr.:
The IO driver needs to know the data flow direction to be able to update variables.
The direction is defined by adding %I for an input variable, %O for an output variable
and %M for a marker (input and output). If the address is empty, the I/O driver will
not handle the variable, but it may still be used by the tasks running on the device.
Important:
Only ASCII characters can be used for naming the global variables.
12.4.2 Build and Download the IEC61131 Program
IEC61131 programs, designed using logiCAD, must be cross compiled in order to run on
the LINX-110 device. The prerequisite to compile an IEC61131 program are as follows:
A program instance with associated program type
A corresponding global variables object
Right click on the LINX-110 resource, see Figure 206, and select Code Generation. Please
refer to the logiCAD online help for the meaning of the options. Take care about the option
breakpoint support, see section 12.4.5 for details.
After successfully finished code generation, the IEC61131 application can be downloaded
to the LINX-110. Right click on the LINX-110 resource and select download.
The IEC61131 program can be downloaded to the LINX-110 device via TCP/IP, CEA-709
and RS232.
TCP/IP:
Enter the IP address of the LINX-110 device. Do not change the default communication
port (2048). This is the easiest and fastest way to connect to the device.
CEA-709:
Select the network interface to use and fill out all other fields, see Figure 208. Alternatively,
select the network interface and press Auto-detect via Service-Pin. Then press the service