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

Transferring the new/modified configuration to the EAP devices 1:

=>

Init (INIT)

2.

Icon

Transferring the new/modified configuration to the EAP devices 2:

=>

Pre-Operational (PREOP)

3.

Icon

Transferring the new/modified configuration to the EAP devices 3:

=>

Safe-Operational (SAFEOP)

4.

Icon

Transferring the new/modified configuration to the EAP devices 4:

=>

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 Transferring the new/modified configuration to the EAP devices 5:. 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 Transferring the new/modified configuration to the EAP devices 6:, so that the configured process data are processed cyclically (see section Writing a new device configuration).

Transferring the new/modified configuration to the EAP devices 7:

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:

Transferring the new/modified configuration to the EAP devices 8: