L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 123

Advertising
background image

L-force | PLC Designer

Concepts and Base Components

DMS 4.1 EN 03/2011 TD29

121

5. Test the network variables exchange:
To check the network variables in online mode, perform the following steps:
- in prog_sender in the sender application enter the following use of variable iglobvar:

- in prog_rec in the receiver application also use variable iglobvar:

- log on with sender and receiver application within the same network and start the
applications. Watch, if ivar_local in the receiver gets the values of iglobvar as currently
shown in the sender.

Network variables communication between V2.3 and V3 controllers:
A communication via network variables is even possible, if the participating
controllers work with applications of different versions (V2.3 <-> V3) of the
programming system. However in this case you cannot just use the export/import
mechanism for setting up the exactly matching variables lists, which are needed each
in the sender and receiver project. This is due to the fact, that the V2.3 and V3
variables' export files (*.exp vs *.gvl) contain different information. If a reading GNVL
list is set up in V3, the required network parameters configuration must be provided by
a *.gvl-file previously exported by a V3 sender. An export file *.exp created from a V2.3
sender however does not contain this information.
Possible solution for getting network variables exchanged between V2.3 and V3
applications:
1. Recreate the V2.3 NVL in V3 (add a GVL with network properties, containing the
same variables declarations as the 2.3 NVL)
2. Export the new GVL to a *.exp-file ("Link to File" properties)
Hint: Set the option "Exclude from build" and you will be able to keep the GVL in the
project without getting precompile errors and ambiguous names. Just disable the
option to recreate the exp-file again in case any modifications on the GVL are
required.
3. Reimport the list, that means create a new GNVL by using the previously generated
*.exp-file in order to get an appropriately configured receiver list.

Advertising