Digital IO Example
In this example, digital inputs and outputs are controlled using the Python programming language. In addition, any industrial components such as light barriers, limit switches or conveyor belts can be connected to these digital IOs and thus programmed with Python.
Architecture
The architecture of this example is shown in figure Fig. 2. The EtherCAT master, to which the EtherCAT devices are connected, runs on an 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 can but does not have to run on the same IPC, reads and writes the process data using the voraus-ecat package.
EtherCAT Devices
The EtherCAT terminals EK1100 (bus coupler), EL1008 (digital inputs) and EL2008 (digital outputs) are used as examples, but other EtherCAT devices (like analog IOs, relays, tools, etc.) can also be connected to the voraus EtherCAT master in the same way.