2. Digital IO Example

In this example digital inputs and outputs are controlled using the Python programming language. Any industrial component such as light barriers, limit switches or conveyor belts can be connected to these digital IOs and thus programmed with Python.

2.1. Architecture

The architecture of this example is shown in Fig. 2. The voraus EtherCAT Master, to which the EtherCAT devices are connected, runs on an industrial PC (IPC). The master is configured with an EtherCAT Network Information (ENI) file and provides an OPC UA server for the process data. A Python script, which runs on the same IPC, though it does not have to, reads and writes the process data using the voraus-ecat package.

Digital IO Example Overview

Fig. 2 Digital IO example overview

2.2. EtherCAT Devices

The EtherCAT terminals EK1100 (bus coupler), EL1008 (digital inputs) and EL2008 (digital outputs) from Beckhoff Automation GmbH & Co. KG are used as examples, see Fig. 3. Other EtherCAT devices (like analog IOs, relays, tools, etc.) can also be connected to the voraus EtherCAT Master in the same way.

EtherCAT Devices (EK1100, EL1008, EL2008)

Fig. 3 EtherCAT devices used in this example (EK1100, EL1008, EL2008)

2.3. Contents