Sunteți pe pagina 1din 11

didactic from Rexroth Functions of the L40 37

Communication functions via Ethernet


The Indralogic L40 control can communicate with two different control generations.
With the old BOSCHControl generation and with the new Bosch Rexroth control
generation.

Bosch CLxxx Control generation


Connection is accomplished via Ethernet, using an interface module like the COME card.
The library BUEPE_Client is provided to control communication in an L40 program.
In this communication, the L40 is always the active partner (controls communication) and the
CLxxxcontrol acts as a Server (supplies information).

Bosch Rexroth new Control generation


The new control generation like L40, VPP21 etc., communicates via Network functions.

The following communication types are available:

Acyclic data transfer with support of library functions (NetVarUDP_LIB_V23.lib)


This type of communication uses normal communication telegrams to exchange information.
This communication type puts only a light load onto the network and the access to partners
outside of the actual segment is possible.

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 38

Acyclic data transmission


In principle, the acyclic data transmission is using the same methods used by the Network
variables. Therefore the function needs also the checkbox Support network variables
checked. The data transmission for the variables is performed only on request.
This puts only a light load onto the network and should be whenever possible the preferred
method of communication.
The variables, which should be transmitted are defined in the Parameter Manager and they
are linked with an Index / Subindex. The Partner control uses this Index / Subindex to get
access to the foreign variables. If more than one parameter list exists, each parameter list is
equipped with its own unique Identification number (COBID). This avoids that the wrong
variables are transmitted,

Project 1 Project 2
Global
Global Variable list
Variable list is empty
is empty
Implicit
Implicit Network
Network variables
variables
Global
Communic. Parameter
User list
program (Address
The implicit variables are reference)
inserted automatically.
They are used for data
handling and for diagnosis.

L40_1 L40_2
UDP
Port: 1202 Port: 1202

IPAddr. IPAddr.

Client Server

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 39

Communication via acyclic data transfer


Client parameters
Client Target Settings
1. Activate the switch Support network variables in the Target Settings of the
Clientcontrol, in order to activate the network variables functionality and the automatic
inclusion of the SysLibSockets and NetVarUDP_Lib_V23 libraries.

2. At least one Global Variable (e.g. a Dummy variable) has to be declared. which has
to be used together with a command (e.g. Dummy := Dummy ) in the program.
The variable must be declared as a Global network variable in its properties, in order to
activate the communication port (1202) .

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 10

Client Global variable as Network variable

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 11

Client Global variable as Network variable Add Network


connection
With Add Network, a network connection is assigned to all
variables of the Global_Variables_Net .
This is indicated by a modified icon
in front of the Global_Variables_Net.
Up to 4 network connections to different partners can be
activated.

Client Global variable as Network variable Adjustments for UDP


The only network type available at the moment is UDP.
By clicking onto the button Settings, the UDPParameters can be adapted.

After all settings, indicated in the screenshots, have been completed, the program has to be
compiled. As result, two new libraries have been added (SysLibSockets and
NetVarUdp_Lib_V23) to the Library window. The compiler has also added the implicit
variables for the management of the network.

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 12

Client Acyclic Services (Library)


Description of the parameters for the Acyclic Services

(Variables passed during initialisation *)

(* Internal variables, processed at Runtime *)

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 13

Client Program
In order to control the acyclic services, the following small program has to be written.

OD = Object Dictionary

0: ODStateFree
1: ODReadRequest
2: ODReadRequestReply
3: ODWriteRequest
4: ODWriteRequestReply
5: ODAcknowledgement
6: ODBootUpRequest

100 : ODStateBusy

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 14

Procedures at the Server


Server Target Settings
1. Activate the switch Support network variables in the Target Settings of the
Servercontrol, in order to activate the network variables functionality and the automatic
inclusion of the SysLibSockets and NetVarUDP_Lib_V23 libraries.
2. Activate the Parameter Manager in order to see and use it in the Resources window

3. Enter the Index and Subindex numbers to be used by the partnercontrol, in order to
access the variables in the Server controller.

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 15

Server Global Variable list


4. At least one Global Variable (e.g. a Dummy variable) has to be declared. which has
to be used together with a command (e.g. Dummy := Dummy ) in the program.
The variable must be declared as a Global network variable in its properties, in order to
activate the communication port (1202) .

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 16

Server Parameter Manager


Using the tool Parameter Manager, the variables of the controller used as Server, must
be entered into a Communication list .
Only these variables will be available on the network
The Clientcontroller uses the Index / Subindex, to access the variables from the server.
list
1. Open Parameter Manager in Resources and create a new list by clicking with the
right mouse button onto the left (white) section in the Parameter Manger window

2. Insert a new line in the right field


(press Right mouse button in the
white section of the window).

3. Define the addresses of the variables


according to the values defined in the
Target Settings.

Didactic 10/2004 Indracontrol L40


didactic from Rexroth Functions of the L40 3 17

Server Program
To see the changing of the variable in the ClientController over the network, add the simple
program below into the module PLC_PRG of the Server Controller.

Didactic 10/2004 Indracontrol L40

S-ar putea să vă placă și