ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Variable
Network variable via UDP
143
Example:
Information is to be exchanged between 3 devices (controller/PDM) and 1 PC. This is done by means
of the "global network variables" (
figure below). The example only shows the variables x1, x2 and
x3 in the global network variable lists of the corresponding projects.
DemoProj 1
DemoProj 2
DemoProj 3
ExportProj1.exp
ExportProj2.exp
ExportProj3.exp
PC
Ethernet Switch / Hub
The project "DemoProj1" contains the global network variable list "Global_Variables_Export_Proj1".
►
In the properties of this list enter the file
ExportProj1.exp.
►
Activate [Export before compile].
> When this project is compiled,
ExportProj1.exp
is updated.
The project "DemoProj2" contains the global network variable list "Global_Variables_Import_Proj1".
►
In the properties of this list enter the file
ExportProj1.exp.
►
Activate [Import before compile].
> When compilation of this project starts, the list "Globale_Variablen_Import_Proj1" is updated by
means of the file
ExportProj.exp
and then used for the compilation.
NOTE
If a project with variables to be exported is changed, all projects which
import
these global network
variable lists must then be rebuilt to update the lists:
►
Menu [Project] > [Rebuild all]
►
Menu [Online] > [Create boot project]
> The boot project is saved in the controller/PDM.