Transferring the new/modified configuration to the EAP devices
Once all settings have been implemented, the configuration of the EAP device object is transferred to the TwinCAT EAP devices. To write a configuration, the respective TwinCAT EAP device first has to set to the required state (see section Writing a new device configuration).
A configuration can only be written successfully, if the TwinCAT EAP device is in state PREOP. The state can be switched using the icon bar in the EAP Config Tool Window (see section Displaying the object dictionary). The EAP Config Tool Window is opened by clicking the command Show in Tool Window from the context menu for the EAP device object. The icon bar is located at the top of the window. The first four icons are used to change the state of the TwinCAT EAP device.
1. |
Icon |
=> |
Init (INIT) | |
2. |
Icon |
=> |
Pre-Operational (PREOP) | |
3. |
Icon |
=> |
Safe-Operational (SAFEOP) | |
4. |
Icon |
=> |
Operational (OP) |
A device configuration can then be written by running the command Write All to Device, which can be found in the context menu of the EAP device object or in the icon bar . This command can be used to transfer all configuration data of the EAP device object to the TwinCAT EAP device.
Once the transfer is complete, the successfully written configuration data are marked in green. Any configuration data for which the transfer failed are marked in red. Finally, the EAP device must be set to OP state again with the aid of the icon , so that the configured process data are processed cyclically (see section Writing a new device configuration).
Recover online configuration A configuration, which was written to a TwinCAT EAP device with the aid of the TwinCAT EAP Configurator is referred to as an online configuration. When TwinCAT is switched from Run mode back to Stop/Config mode and then back to Run mode, this online configuration is lost. |
Two methods are available for restoring the online configuration:
- Use the TwinCAT EAP Configurator to write the configuration once more to the TwinCAT EAP device, after TwinCAT has started.
- In TwinCAT 3, for the EAP device the option Recover online configuration is enabled under I/O configuration. This option can be found in the context menu of the EAP device (see illustration). With this method the online configuration is persistently saved on hard disk of the PC when TwinCAT 3 is switched back to Stop/Config mode. When the Run mode is activated, the online configuration is restored from this backup.