You can read more about this and other Esmacat tutorials on the official Esmacat website. Check out our other Hackster.io demos as well.
Detailed documentation of the codes and steps for this tutorial can be found here.
Check out our EASE Crowd Supply Campaign Page: https://www.crowdsupply.com/harmonic-bionics/ease
Overview:
In this tutorial, you will learn how to set up a Raspberry Pi with Codesys to act as both a PLC and an EtherCAT master. It will be used to control the on-board LED found on the EtherCAT Arduino Shield by Esmacat (EASE) Slave device that is attached to an Arduino Uno.
- First, some general information about Raspberry Pi and Codesys is discussed.
- After learning to set up the Pi and Codesys, you will learn to implement a practical project to blink the onboard led on EASE based on user input by updating EASE registers using Codesys.
EtherCAT Arduino Shield by Esmacat (EASE):
EASE is an EtherCAT slave that connects to an EtherCAT master (PC/ Laptop/ Dedicated Master devices like the Esmacat Master S and Esmacat Master C.) It can be stacked on top of Arduino, other MCU boards with an Arduino Uno form factor, and shields. This shield allows high-speed communication with an industry-standard EtherCAT protocol for high-performance robotic applications. Esmacat's simple to use Arduino and Mbed libraries allow for easy coding on the base board and Esmacat's free open source master software has a high-level abstraction so users can run applications within minutes!
Raspberry Pi:
Raspberry Pi is a tiny, dual-display, low-cost desktop computer that is used widely in robot brains, smart home hubs, media centers, as a networked AI core and factory controllers. It can also be used as an EtherCAT master just like a Laptop/PC. However, it should be noted that the Pi is a Linux based computer.Codesys:
Hardware Connections:
The primary hardware components include,- EtherCAT slave (EASE...
@stefan.schnitzer glad that you are interested in this project. The Arduino Shield uses EtherCAT protocol to communicate with the master.
Regarding your query on advantages of EtherCAT over Modbus-TCP this material provides a good picture: https://www.ethercat.org/forms/taiwan2016/download/02_EtherCAT_vs_Modbus_vs_Mechatrolink_1609.pdf
A few of the feature highlights of EASE is as follows:
1) EASE connects Arduino boards, Arduino-like boards, and Arduino Shields for large-scale applications.
2) High speed communication (200Mbps, 200x faster than CAN bus) is supported with EtherCAT which is an industrial-standard fieldbus for automation.
3) The EtherCAT hardware/software is present only on EASE so there is no performance lost on the MCU base board
4) EASE has the form factor of Arduino Uno, and thus can take the advantage of the Arduino ecosystem.
5) Daisy chain connection between multiple EASE simplifies the topology of wiring.
Power-over-EtherCAT (POE) technology reduces the number of required wires and power outlets.
6) The data packet between Arduino Board and EASE is communicated via SPI, allowing EASE to be compatible with many different types of boards including Arduino boards and MBed boards.
7) Arduino and Mbed developed by Esmacat library allow users to easily develop code between the base board and EASE within minutes.
8) This shield has 8 registers that can be used to send/receive data between devices through the EtherCAT master via Ethernet cables attached to the shield.
Hope this helped !!!