Top Banner
Page 1 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A EtherCAT Connection Guide With Beckhoff TwinCAT 2 Introduction This document shows how to use Beckhoff EtherCAT host software TwinCAT 2 to connect and control an Applied Motion Products SSxx-EC-D EtherCAT step-servo drive. By following the steps below, you will be able to use TwinCAT 2 NC controller to control the motor via SSxx-EC-D EtherCAT drive. Two connection methods will be introduced: 1. Using a PC as the master controller 2. Using a Beckhoff PLC as the master controller For more advanced motion control functions, please contact Beckhoff. Applies to Beckhoff TwinCAT 2 PC software (using Beckhoff CX2020-0112 PLC + EK1110 EtherCAT extension as example) SSxx-EC-D step servo drives and compatible motors Date June, 2016 Connection Guide Step 1 Download XML file for SSxx-EC-D drive from Applied Motion Products website Step 2 Install Beckhoff TwinCAT 2 software
34

EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Jan 02, 2017

Download

Documents

doantram
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Page 1 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

EtherCAT Connection Guide With Beckhoff TwinCAT 2

Introduction

This document shows how to use Beckhoff EtherCAT host software TwinCAT 2 to connect and control an Applied Motion Products SSxx-EC-D

EtherCAT step-servo drive. By following the steps below, you will be able to use TwinCAT 2 NC controller to control the motor via SSxx-EC-D EtherCAT

drive.

Two connection methods will be introduced:

1. Using a PC as the master controller

2. Using a Beckhoff PLC as the master controller

For more advanced motion control functions, please contact Beckhoff.

Applies to

Beckhoff TwinCAT 2 PC software (using Beckhoff CX2020-0112 PLC + EK1110 EtherCAT extension as example)

SSxx-EC-D step servo drives and compatible motors

Date

June, 2016

Connection Guide

Step 1 Download XML file for SSxx-EC-D drive from Applied Motion Products website

Step 2 Install Beckhoff TwinCAT 2 software

Page 2: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Page 2 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Step 3 Copy the XML file for SSxx-EC-D drive to TwinCAT 2 installation location, C:\TwinCAT\Io\EtherCAT

Step 4 Connect the Ethernet cable from master PC or PLC to the drive’s “EtherCAT LINK IN” RJ45 port

Step 5 Apply power for drive; Apply power also for PLC if using PLC as the master controller

Step 6 Run TwinCAT 2 System Manager and set it to Config Mode

Page 3: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 3 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

If you use a PC as the master controller, please follow these steps:

� Install and enable the network card

Click on Options – Show Real Time Ethernet Compatible Devices

Page 4: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 4 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Select the network card. Click on Install, and then click on Enable. If the network card is successfully installed and enabled, its name will be shown

under Installed and ready to use devices

Page 5: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 5 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Scan Devices

Right click on I/O Devices and then click on Scan Devices

When this dialog shows, select OK

Page 6: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 6 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Select your network card and click on OK

When these dialogs show, select Yes to Scan for boxes and Append linked axis to NC-Configuration

Page 7: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 7 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Page 8: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 8 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

When this dialog shows, select Yes to Activate Free Run

After scan, EtherCAT drive will be shown under I/O Devices

Page 9: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 9 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Parameter settings for NC - Configuration

Click on Axis 1_Enc, find Parameter setting tab. Set values for Modulo Factor and Scaling Factor

This setting depends on drive’s Electronic Gearing setting in the Step-Servo Quick Tuner software.

If Electronic Gearing is set to 20000 Steps/Rev, then Scaling Factor = Modulo Factor/20000

For example, if Modulo Factor is set to 200mm, the Scaling Factor needs to be set to 200/20000 = 0.01mm.

Page 10: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 10 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Page 11: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 11 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Parameter settings for drive

Select drive and find DC setting tab. Set Operation Mode to DC-Synchron

Page 12: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 12 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Click on Activate Configuration under Actions to activate configuration and change TwinCAT to Run Mode

Page 13: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 13 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

When these dialogs show, select Yes or OK for all

TwinCAT is now in Run Mode.

Page 14: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 14 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Set the drive’s modes of operation to 8 (CSP mode)

Select Modes of operation under RxPDO 2. Find Online tab, and click on Write. In the pop up window, set value to 8.

Page 15: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 15 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Page 16: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 16 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Enable the motor

Select the drive and find NC: Online tab. Click on Set. In the pop up window, click on ALL

When the motor is successfully enabled, the LED on the drive will show that the motor has been switched to enabled status.

Page 17: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 17 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Then you can click on different buttons under the tabs shown below to control the motor.

NC: Online tab

Page 18: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a PC as the master controller

Page 18 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

NC: Function tab

Page 19: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 19 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

If you use a Beckhoff PLC as the master controller, please follow these steps:

� IP Setting

The IP address of Beckhoff PLC is usually 169.254.X.X, and the subnet mask is 255.255.0.0. You need to set the PC’s IP address in the same subnet of

Beckhoff PLC. For example, set PC’s IP address to 169.254.1.100 and subnet mask to 255.255.0.0

Page 20: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 20 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Search and connect to PLC

Select SYSTEM – Configuration and find General tab. Click on Choose Target

In the pop up window, Click on Search (Ethernet)

Page 21: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 21 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Page 22: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 22 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Click on Broadcast Search

Page 23: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 23 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

When the host PLC is found, it will be shown in below window.

When Connected column is empty, the PLC is not connected. If the PLC is connected, there will be an X under Connected

Page 24: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 24 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Select the host PLC. Select IP Address and click on Add Route

Page 25: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 25 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Enter User name and password

Factory default: for Windows XP/WIN7, User name: Administrator, Password: 1; For Windows CE, password is blank

Page 26: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 26 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

When the PLC is successfully connected, there will be an X under Connected

Page 27: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 27 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Click on Close and go back to previous window. The connected PLC will be shown in the list. Select the PLC and click on OK.

Page 28: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 28 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Click on Set/Reset TwinCAT to Config Mode under Actions to change TwinCAT to Config Mode.

Page 29: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 29 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

� Scan Devices

Right click on I/O Devices and then click on Scan Devices

When this dialog shows, select OK

Page 30: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 30 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

After I/O device is found, select EtherCAT only and click on OK

When these dialogs show, select Yes to Scan for boxes and Append linked axis to NC-Configuration

When this dialog shows, select Yes to Activate Free Run

Page 31: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 31 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

After scan, EtherCAT drive will be shown under I/O Devices

Page 32: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Using a Beckhoff PLC as the master controller

Page 32 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

The rest of the steps are the same as the previous section, starting from “Parameter settings for NC – Configuration” on page 8.

Page 33: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Page 33 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

Other:

� Update a drive’s EEPROM

If you need to update a drive’s EEPROM, select Device 2 (EtherCAT). Right click on the drive shown in the bottom right and select EEPROM Update.

Page 34: EtherCAT Connection Guide with Beckhoff TwinCAT 2.pdf

Page 34 of 34 EtherCAT Connection GuideWith Beckhoff TwinCAT 2 Applied Motion Products APPN 0038A

In the pop up window, select the drive’s EEPROM description file and click on OK to start updating the EEPROM.