![Camille Bauer CENTRAX CU3000 Device Handbook Download Page 63](http://html.mh-extra.com/html/camille-bauer/centrax-cu3000/centrax-cu3000_device-handbook_487894063.webp)
PM 1001606 000 07
Device handbook CENTRAX CU3000-CU5000
63/106
8.7 Creating the CODESYS application
At this stage in the project the control application needs to be created. For that a POU (Programmable
Organisation Unit) with name
PLC_PRG
was generated during project creation. Double click on this item
to open the editor view.
In the declaration part variables and other POUs may be declared, which will be needed in this
PLC_PRG. In the bottom part the program code will be written. On the right side a ToolBox is
located, from where objects may be included into the program via Drag & Drop. The tool box depends on
the programming language selected.
The further process for creating an application is not part of these brief instructions.
8.7.1 Using remanent variables
The device stores remanent variables in such a way that their contents remains unchanged even if the
device is restarted or after a power-down.
The declaration of remanent variables is done by means of VAR RETAIN. The memory area for RETAIN
variables is limited to 1000 bytes.
The content of remanent variables is reset under two conditions:
•
Reset cold: All VAR and VAR RETAIN variables are reset
•
Reset origin: When the PLC is reset to its original state, the application is deleted and thus all
assiociated variables
The various reset options are described in a
8.7.2 Using the data logger
Exclusively for devices with performance class PROFESSIONAL a facility is provided to record data or
messages via CODESYS over a longer period of time.
To be able to use recording functions, the CENTRAX library must be added, which is part of the device
description. This is done using the library manager.
1
2
3