beckhoff TE1000 — 6.6 Restoring the online configuration

The CANopen object dictionary exported to an EAP Device Configuration (EDC) file (see section Protocol in chapter The TwinCAT EAP device [ } 41] ). The latter is a file in XML format containing the full Object Dictionary of the current configuration (see chapter The EAP Device Configuration (EDC) File [ } 76] ). 6.5 Configuration of Polled Data Exchange The Polled Data Exchange mode is configured with the help of the EAP Object Dictionary. To do this the RxPD which, as a client, is to receive the response of the server must be configured in one EAP device, while the TxPD which, as a server, defines the response to the client's request must be configured in another EAP device.

As shown in the following illustration, a TxPD is configured on the client side for the request and is cyclically transmitted as in Pushed Data Exchange mode. For receiving the server response, two RxPDs are configured on the client side in this sample. With both RxPDs the index of the TxPD that serves as the request is entered in the Poll Request TxPD property . On the basis of the transmission time of the request, an RxPD can determine a quality value on whose basis the time difference between request and response can be read. On the server side, an RxPD is configured for the reception of the request that works as in Pushed Data Exchange mode.

In this example two TxPDs are configured for the transmission of the response to the client request. With both TxPDs the index of the RxPD that serves as the recipient of the request is entered in the Poll Request RxPD property. In each processing cycle a TxPD checks with its configured Poll Request RxPD whether a request has been received. If so, the TxPD is sent back in this cycle as the response. 6.6 Restoring the online configuration If parameters of the CANopen OD are changed online for the EAP device, the current state of the CANopen OD is archived on the hard drive as soon as TwinCAT is switched back to the Stop/Config mode.

When restarting TwinCAT in Run mode, the created archive is usually irrelevant, because the configuration made offline is simply restarted. All changes configured online are discarded. If the online configuration is to be restored on restarting TwinCAT, then the option Recover Online Configuration must be switched on for this EAP device in TwinCAT (see following illustration) and the project must then be reactivated. In this case, when starting the controller, the offline configuration is initially loaded followed by the archive from the hard disk, so that the online configuration is active at the end of the start procedure. TE1000 74 Version: 1.7.1