Programming Over Industrial Ethernet

 

Programming Over Industrial Ethernet

Overview

When the protocol manager is added, the Modbus TCP IOScanner 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 Modbus TCP IOScanner library contains these functions:

oIOS_GETSTATE: Read the state of the Modbus TCP IOScanner

oIOS_START: Start the Modbus TCP IOScanner

oIOS_GETHEALTH: Read the Health Bit value

oIOS_STOP: Stop the Modbus TCP IOScanner

oCONFIGURE_OTB: Send the software configuration of the Advantys OTB

For more details, refer to Modbus TCP IOScanner 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.

In addition, you can send explicit messages.

For Modbus TCP devices, you can use READ_VAR and WRITE_VAR.

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.