
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Variable
Network variable via UDP
157
Adapt PLC_PRG in all projects.
So far we have "only" organised the data management. Now the executable parts of the projects will
be dealt with.
For each project only one POU is written which increases the contents of the corresponding variables
(x1, x2 or x3,
table at the top) by 1 in each PLC cycle. In our example the POU PLC_PRG for
DemoProj1.pro
is shown (
screenshot):
►
Create this program for each of the 3 devices:
DemoProj1.pro
: global variable x1,
DemoProj2.pro
: global variable x2,
DemoProj3.pro
: global variable x3.
8.2.7
Transmit projects
3654
►
Check whether all 3 devices together with the PC are available with their corresponding IP
addresses in the LAN.
►
Transmit the 3 created projects
DemoProj1...3
to the corresponding devices.
►
Start these projects there.
8.2.8
Test transmission of the global network variables
3656
►
Check the behaviour of the data transmission by looking at the corresponding global variable lists.
If, for example, in the project
DemoProj1.pro
you open the variable list
"
Globale_Variablen_Import_Proj2
", you should notice that the value of
x2
is increasing.
►
Also check the other projects and make sure that the transmission of the global variables in the
network functions.