Back to Blog
Applications and How-Tos

Setup Guide: KEB VFD EtherCAT Communication with a Beckhoff PLC

Colin Zauner | March 29th, 2022
A Beckhoff CX5120 PLC connected to a KEB EtherCAT S6 VFD
A Beckhoff CX5120 PLC connected to a KEB S6 EtherCAT Drive.

 

This post shows how to set up EtherCAT communication between a Beckhoff CX5120 Embedded PC and an S6 EtherCAT drive.

KEB’s EtherCAT drives are ideal for machine builders who serve the global market. The drives feature control loops with a 62μSec update rate. This allows precise motor control for motion control applications. Motor types include induction motors, AC servo motors, synchronous reluctance motors, and linear motors.

We have developed a guide to set up a KEB VFD with a Beckhoff PLC in four easy steps. You can watch the video below or follow the written guide depending on your preference.

 

Related Article: Setup Guide for Beckhoff PLC and C6 EtherCAT I/O modules

In this example, a Beckhoff CX5120 embedded PC is being used to connect with a KEB S6 VFD. However, the steps to set up a KEB F6 drive are nearly identical.

 

Application using an EtherCAT VFD connected to a Beckhoff CX5120 PLC
A KEB EtherCAT VFD is shown here, connected to a Beckhoff CX5120 PLC.

 

#1 – Create a KEB VFD device description and import it into TwinCAT

First, open Combivis 6 software and connect to the KEB VFD using the KEB USB-Serial converter. Project -> KEB Device Scan.

Watch this COMBIVIS Tutorial: Connecting to a KEB device

Once it is connected to the drive, navigate to Wizards and select Fieldbus. Load the standard PDO mappings from “Stored Mappings” or drag and drop parameters into the process data mappings.

 

Figure 1 – Combivis 6 wizard for process data mapping (tap to enlarge).

 

Next, select EtherCAT -> Export device description to generate an ESI file for the connected drive. Configure any necessary settings and save the description as an EtherCAT XML file.

 

Figure 2 – Export EtherCAT XML (tap to enlarge).

 

Copy the save the device description to the following directory: C:\TwinCAT\3.1\Config\Io\EtherCAT. To load the ESI file into TwinCAT, select TwinCAT -> EtherCAT devices -> Reload Device Descriptions or restart TwinCAT.

 

#2 – Insert KEB EtherCAT VFD modules into the project according to system configuration

 

Now, it’s time to set up the EtherCAT configuration according to the desired topology. First, add an EtherCAT master inside the TwinCAT project by right-clicking Add New Item under I/O devices. Insert the EtherCAT Master according to the Target controller type.

 

Screenshot showing how to Insert the EtherCAT Master according to the Target controller type
Figure 3 – Insert the EtherCAT master according to the target controller type.

 

Next, attach the KEB VFD to the EtherCAT Master. Right-click on the EtherCAT master and select insert device.

 

Figure 4 – Insert the KEB EtherCAT Device.

 

#3 – Create and link variables to the KEB VFD Process Data

If necessary, create variables to link to the KEB VFD.

 

Figure 5 – Create optional variables and link them to the KEB VFD. 

 

Next, ensure that variables are linked to the VFD process data.

 

Figure 6 – Confirm that the variables are linked to the KEB VFD.

 

#4 – Build a solution and download it to the Beckhoff PLC

At this point, the project can be compiled and downloaded into the PLC. After downloading the project, log in to the PLC and verify that EtherCAT is operational and that the process data is transferring.

 

Figure 7 – Download the KEB VFD project to the Beckhoff PLC.

 

Figure 8 – Confirm the download of the VFD project and communication with the Beckhoff PLC.

 

At this point, your EtherCAT configuration and setup of the KEB drive are complete. If you would like to discuss your application with a KEB engineer – contact us today!

 

Contact Us

Let's Work Together

Connect with us today to learn more about our industrial automation solutions—and how to commission them for your application.