Programming Over Industrial Ethernet

Overview

When the protocol manager is added, the EtherNet/IP Scanner library is automatically instantiated.

In addition, most Industrial Ethernet slave devices have a dedicated library containing function and function blocks.

Use these elements to facilitate the program writing.

EcoStruxure Machine Expert contains TVDA templates that can be used.

Manage the Operating Modes of the Devices

The EtherNet/IP Scanner library contains these functions:

  • EipControl: Start/Stop the EtherNet/IP scanner

  • EipGetHealth: Read the Health Bit value

For more details, refer to EtherNetIP Scanner Library.

For operational details, refer to Mastering slave devices operating modes and Impact of the controller States on the Industrial Ethernet.

Send Commands and Read Status from Devices

Cyclic data exchanges are used with generic devices that require deterministic data exchanges. Cyclic data exchanges are managed by the protocol manager.

To configure cyclic data exchanges, see EtherNet/IP Cyclic Data Exchanges Configuration. To use cyclic data in your program, see EtherNet/IP I/O Mapping.

In addition, you can send explicit messages.

For EtherNet/IP devices, with the EtherNet/IP Explicit Messaging library, you can use:

For EtherNet/IP devices, with the EtherNet/IP Scanner library, you can use EipDataExch for features not implemented in the EtherNet/IP Explicit messaging Library.

For operational details, refer to Slave devices configuration on start and Data exchanges on demand.

Use TVDA Templates

Most Industrial Ethernet slave devices are parts of TVDA.

EcoStruxure Machine Expert proposes to add a device from a template.

By this, the device is added with several already parametrized blocks and/or function blocks.