beckhoff — 11.2.11.3.2 Generic NOV-RAM

Reference | I/O Devices Import Data from Disk: Formerly created NOVRAM XML files (XML files about complete NOVRAM size or even partial) can be read back into NOVRAM. E.g., this can be used to preset the NOVRAM with a "manufacturer data set" at a dedicated address offset prior to machine shipping. Just explore an exported NOVRAM XML file, and it will self-describe its meaning! Configuration example for TwinCAT 2.8: In difference to the configuration of an ordinary DP-RAM card [ } 263] with TwinCAT, the data which has to be transferred to the NOV-RAM is not supposed to be linked to I/O variables underneath the "Inputs" or "Outputs" area of the device. Instead, an ADS command (e.g.

from PLC) is used for direct writing of this persistent data to the NOV-RAM IC on the Fieldbus card. This means, the configured device has usually no variables underneath the "Inputs" and "Outputs" section in this case. Due to the technical habit of the NOV- RAM component, even cyclical data saving can be implemented. The following picture shows an example of how to set up a Fieldbus card with NOV-RAM extension. However, the PCI address and other necessary device info is not configured properly in this example.

For the address and data length information to be entered here, please use the displayed data of the already configured fieldbus card (in the sample above "Device 1 (FC5201-0002)" or use the following button: Search.. : With this button, the scan for PCI address corresponding to the Vendor ID, Device ID and Base Address of this card is started. For additional details see the description of the various Beckhoff Fieldbus cards. Access to the NOV-RAM via TwinCAT PLC Function Block: With the help of the Function Block " FB_NovRamReadWrite ", which is installed by default with the " TcIOFunctions.lib " library from TwinCAT v2.8 > Build 722, the NOVRAM IC can be read or written directly.

Important is the device ID (in this sample it is ID 2 , see picture below ) of the NOVRAM device inside the TwinCAT System Manager, which can also be read by name ( see : IOF_GetDeviceIDByName ) . For details, see the documentation of the PLC library. TwinCAT 2 266 Version: 1.7