User Manual

12/06 AWB2724-1584GB
Configuring EC4-200 with
easy800 on the easy-NET
89
The EC4-200 scans this data unit. For this the following structure
variable entries are required:
The following program sequence can be used in the EC4-200 in
order to execute a PUT operation.
If the input IX0.0 is set High (=TRUE), the program sequence is
started after xTransferPending is switched to FALSE. The value of
the variable “Datum” (MN1) is sent to the network.
figure 108 shows an example how the NET_GET function is to be
used. In this example, the device with ID3 scans the value of the
module with the number 2.
At input “pstruNetGet”, a pointer to a structure of type
EASY_NET_GET declared in the user program must be entered
from which you read the data that is sent to the network with a
PUT operation from other stations a figure 108.
Configuring EC4-200 with easy800 on the easy-NET
In easy-NET every controller must be configured. Each controller is
assigned a network address, the ID and parameters like SEND IO
that define the behaviour of the PLC in the network.
The configuration is carried out in the programming software of
the PLC:
EASY-SOFT for easy800
easy Soft CoDeSys for XC200 and EC4-200
EASY-SOFT provides the support required for this configuration. As
soon as you add other PLCs to a single PLC, they are connected
symbolically via the network. The first PLC is assigned the ID = 1.
The IDs for the other PLCs and the parameters must be set as
follows:
X Click the “Communication Parameters” tab.
X Select the NET-ID via the NET-ID menu.
X Activate/deactivate the Sende IO and Remote RUN functions in
the NET Configurator field (only for ID = 2…8).
All controllers must be integrated in the network of easy800 with
XC200 or EC4-200 controllers using the EASY-SOFT Configurator.
This also applies to the XC200 and EC4-200. You also have to
assign the parameters for the XC200 and EC4-200 in the
configurator of easy Soft CoDeSys.
X Create a circuit diagram for each easy800 and a program for the
EC4-200.
X Connect the PC to a PLC and load the program/circuit diagram
including the configuration in the relevant PLC.
Other configuration options are described in section
“Programming via easy-NET (Routing)” on page 90.
(EASY_NET_GET).byModuleNumber := 2;
(EASY_NET_GET).byNET_ID := 3;
Figure: 106: Transfer of data according to the PUT-GET principle
Figure: 107: Transfer of data according to the PUT-GET principle (PUT)
Figure: 108: Transfer of data according to the PUT-GET principle (GET)