beckhoff — 11.2.11.3.2 Generic NOV-RAM

Reference | I/O Devices Only for TwinCAT 2.8 Writing data to attached and linked output variables via PLC I/O refresh, without using the PLC function blocks, would result in the respective data areas in NOVRAM being written to NULL when the system stops. See also: Configuration example for TwinCAT 2.8 [ } 266] Configuration example (TwinCAT 2.9): Configuration example (TwinCAT 2.9) Especially for the confiuration of CX1000 controllers it is important, that some variables survive a reboot. Usually no UPS is used along with this kind of devices.

New to TwinCAT 2.9 is, that no PLC function blocks are necessary for read and write, and therefore synchronization, of dedicated remanent PLC variables anymore. ( Hint: The term "persistent" is not used in this context for a reason!). The below described feature can also be used for the FC xxxx-000 2 Fieldbus cards, of course. The following dialog describes the necessary settings for the I/O driver to establish synchronized (remanent) PLC outputs, which survive a reboot. Address: The address as well as the size of the NOVRAM which is to be set here, is usually found automatically after a "Scan for devices". Auto Init linked PLC Outputs:

This Checkbox must be activated for the implementation of remanent, means, with reboot synchronized variables. The next step is to define output variables - with the right size and optionally right address offset - underneath 'Outputs' in the tree view (in the above picture these are e.g. the array variables 'Save Data1' and 'Save Data2'). If these outputs are going to be linked to PLC outputs (e.g. declared with AT %Q* ), they will overwrite the initial values of these PLC variables after reboot/start of PLC boot project, automatically. Means, the PLC program will continue with the last stored NOVRAM values in this case.

A special declaration of those PLC variables is not necessary (besides the fact that they need to be declared as located output variables, of course). Especially, a declaration as VAR xxx PERSISTENT or VAR xxx RETAIN, is not allowed in the above context. Export Data to Disk: Writes the actual content of the NOVRAM to a XML based file on disk. Blocks of 1k (1024 Byte) size are separated within dedicated identifiers inside the XML file. That gives a better overview during reading/manipulating afterwards. TwinCAT 2 265 Version: 1.7