## Introduction
EtherCAT (Ethernet for Control Automation Technology) is a real-time industrial Ethernet standard for industrial automation applications, such as input/output (I/O) devices, sensors and programmable logic controllers (PLCs).
It was originally developed by Beckhoff Automation GmbH but is now overseen by the EtherCAT Technology Group that was set up to help with proliferation of the EtherCAT standard.
EtherCAT technology adds certain features on Ethernet and enforces certain configurations to make it a very efficient network technology for automation while fully conforming to the Ethernet specifications.
The design of EtherCAT enables any standard PC to be used as an EtherCAT master and communicate with EtherCAT slaves, which are specialized devices compliant with the EtherCAT specification.
Together, the master and slave EtherCAT devices can be used in all devices in the factory network – automation controllers, operator interfaces, remote input/output units, sensors, actuators, drives and others.
This module describes how to setup EtherCAT communication between an AM243x EtherCAT Slave and an AM64x EtherCAT Master using CODESYS. AM64x can also be used as an EtherCAT Slave.
## Test Environment Example Diagram

## What You Will Need
### Hardware
#### EtherCAT Slave
* [AM243x LaunchPad](https://www.ti.com/tool/LP-AM243) or [AM243x General Purpose EVM](https://www.ti.com/tool/TMDS243GPEVM) or [AM64x General Purpose EVM](https://www.ti.com/tool/TMDS64GPEVM)
* Windows or Linux PC
#### EtherCAT Master
* [AM64x Starter Kit](https://www.ti.com/tool/SK-AM64) or [AM64x General Purpose EVM](https://www.ti.com/tool/TMDS64GPEVM)
* Windows PC
### Software
#### EtherCAT Slave
* [MCU+ SDK for AM243x](https://www.ti.com/tool/MCU-PLUS-SDK-AM243X) or [MCU+ SDK for AM64x](https://www.ti.com/tool/download/MCU-PLUS-SDK-AM64X)
* [Code Composer Studio](https://www.ti.com/tool/CCSTUDIO)
#### EtherCAT Master
* [AM64x Linux-RT SDK](https://www.ti.com/tool/PROCESSOR-SDK-AM64X)
* [Codesys Control package for 64-bit ARM](https://us.store.codesys.com/codesys-control-for-linux-arm-sl-bundle.html)
* [Codesys Development System](https://us.store.codesys.com/codesys.html)
## Setting Up and Running The EtherCAT Slave
* Setup your AM243x or AM64x as the EtherCAT Slave as described in the MCU+ SDK docs:
* [Quickstart - AM243x EtherCAT Device](http://tigt_qa.dal.englab.ti.com/qacm/test_area/MCU_PLUS_SDK/08.01.00/am243x/08_01_00_32/exports/docs/industrial_protocol_docs/am243x/ethercat_slave/page_quickstart.html)
* [Quickstart - AM64x EtherCAT Device](http://tigt_qa.dal.englab.ti.com/qacm/test_area/MCU_PLUS_SDK/08.01.00/am64x/08_01_00_32/exports/docs/industrial_protocol_docs/am64x/ethercat_slave/page_quickstart.html)
## Setting Up and Running The EtherCAT Master
* If you haven't done so already, first setup your AM64x EVM running Linux-RT as described in the Quick Start Guide.
* [AM64x Starter Kit EVM Quick Start Guide](https://dev.ti.com/tirex/explore/node?node=ABAdBPmmXTJLfIV43c2tDA__FUz-xrs__LATEST)
* [AM64x General Purpose EVM Quick Start Guide](https://dev.ti.com/tirex/explore/node?node=AKP4hRPpxVP9PFnH21Uk4Q__FUz-xrs__LATEST)
* Setup the AM64x EtherCAT Master by following these steps in the MCU+ SDK docs: [Connect to PLC - CODESYS](http://tigt_qa.dal.englab.ti.com/qacm/test_area/MCU_PLUS_SDK/08.01.00/am243x/08_01_00_32/exports/docs/industrial_protocol_docs/am243x/ethercat_slave/plc_codesys_am64x.html)
## See Also
#### For further information on industrial protocols available on Sitara processors and MCUs and how they can be enabled on your production project, see:
[Industrial Communication Protocols Supported on Sitara™ Processors and MCUs Application Note](https://www.ti.com/lit/pdf/sprach6)
#### For a video tutorial on enabling Industrial Comms on AM64x and AM243x using CODESYS, see:
[Process This: Using Codesys Control for PLC Controller Stacks, Enabled by AM64x & RT Linux](https://training.ti.com/process-using-codesys-control-plc-controller-stacks-enabled-am64x-rt-linux)
{{r> [Back to Home](../overview.html)}}
{{r **Was this helpful? Let us know here:** [mcu_plus_academy_feedback@list.ti.com](mailto:mcu_plus_academy_feedback@list.ti.com)}}