Programming with the EtherCAT Master Library

In this video, we demonstrate programming with the EtherCAT Master Library.

Show Full Transcript

Full Transcript

00:00:03.500

Welcome to Sybera – your expert for real-time communication and industrial automation under Windows.

00:00:06.080

In this video, we show you how to program the EtherCAT Master on your Windows PC to efficiently control EtherCAT devices.

00:00:13.860

For hardware, we use a desktop PC or notebook with the Windows operating system and an Ethernet port with a Realtek or Intel network chip for optimal real-time performance.

00:00:32.340

We configure the EtherCAT devices using Sybera's EtherCAT Verifier, copying the XML configuration file to the program folder, e.g., C:\ECT.

00:00:43.820

The XML file is converted to a native format. To do this, we start EtherCAT Verify and select "Params – XML to Native".

00:01:12.500

Under "Convert File," we select the source and target file and start the conversion of the EtherCAT parameter file.

00:01:25.320

The generated target file can be adjusted or extended at any time to implement custom control functions.

00:01:44.490

The target file is copied to the system folder Windows\System32 to be used by the EtherCAT Verifier.

00:02:03.960

To verify the configuration, we use the analysis functions of the EtherCAT Verifier. First, we initialize the stack with the desired Sample Period and the appropriate Sync Cycles.

00:02:29.660

We select the EtherCAT device from the Device List and check all required and optional device settings.

00:02:57.980

In the "Init" state, the physical station address, FMMU registers, and Sync Manager registers are set up.

00:03:46.920

The device can be moved to the Pre-Operational status. Function parameters can be defined via Mailbox communication.

00:04:02.600

The PDO mappings define the communication structure of the EtherCAT device and control data exchange at the Application Layer.

00:04:48.160

In the Operational status, data exchange between the Master and Slave begins. In our example, the first four output bytes control the motor speed.

00:05:38.020

We hope you enjoyed this presentation on EtherCAT Master Programming.

00:05:41.000

Visit our website to learn more about EtherCAT, real-time communication, and Sybera products.

00:05:44.280

Our team will be happy to answer your questions about automation, test systems, and EtherCAT configurations.