Kollmorgen AKD-CC Installation Manual

AKD
®
EtherCAT Communication
Edition: P, October 2017
Valid for firmware version 1.17
Part Number 903-200005-00
Original Documentation
Keep all manuals as a product component during the life span of the product. Pass all manuals to future users and owners of the product.
Record of Document Revisions
Revision Remarks
... Table with lifecycle information of this document see "Record of Document Revisions" (p.
169)
L, 11/2015 Objects 60C1/60D0/20A4/20A5 updated, objects 1C12/1C13/605A/60E0/60E1/60FC added,
object dictionary updated
M, 09/2016 Supported cyclical actual values (3470) updated, object 6077 updated, chapter "Important Para-
meters" updated. Added objects 35B8h, 35BDh, and 6087h.
N, 03/2017 Setting up Ethernet over EtherCAT (EoE) (p. 18) added.
P, 10/2017 Added 0x1725 and 0x1B26 to Fixed PDO Mappings (p. 42). Corrections to Objects 1C12h
and 1C13h.
Trademarks
l AKD is a registered trademark of Kollmorgen Corporation l SynqNet is a registered trademark of Motion Engineering Inc. l EnDat is a registered trademark of Dr. Johannes Heidenhain GmbH l EtherCAT is a registered trademark and patented technology, licensed by Beckhoff Automation GmbH l Ethernet/IP is a registered trademark of ODVA, Inc. l Ethernet/IP Communication Stack: copyright (c) 2009, Rockwell Automation l sercos
l HIPERFACE is a registered trademark of Max Stegmann GmbH l PROFINET is a registered trademark of PROFIBUS and PROFINET International (PI) l SIMATIC is a registered trademark of SIEMENS AG l Windows is a registered trademark of Microsoft Corporation
®
is a registered trademark of sercos®international e.V.
Current patents
l US Patent 8,154,228 (Dynamic Braking For Electric Motors) l US Patent 8,214,063 (Auto-tune of a Control System Based on Frequency Response)
Technical changes which improve the performance of the device may be made without prior notice!
Printed in the United States of America This document is the intellectual property of Kollmorgen. All rights reserved. No part of this work may be repro­duced in any form (by photocopying, microfilm or any other method) or stored, processed, copied or distributed by electronic means without the written permission of Kollmorgen.
2 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | Table of Contents

1 Table of Contents

1 Table of Contents 3 2 General 7
2.1 About this Manual 8
2.2 Target Group 8
2.3 Symbols Used 9
2.4 Abbreviations Used 10
3 Installation and Setup 11
3.1 Important Instructions 12
3.2 EtherCAT Onboard 13
3.2.1 LED functions 13
3.2.2 Connection technology 13
3.2.3 Network Connection Example 13
3.3 EtherCAT activation with AKD-CC models 14
3.4 Guide to Setup 15
3.5 Important Configuration Parameters 16
3.6 Setting up Ethernet over EtherCAT (EoE) 18
3.6.1 EtherCATDevice Settings 18
3.6.2 Drive Settings 18
3.6.3 Connecting to the Drive 19
3.6.4 Performance Concerns 19
3.6.5 Restrictions 20
3.7 Setup via TwinCAT NC/PTP System Manager 21
3.7.1 Scan devices 22
3.7.2 Select the device 22
3.7.3 Scan for boxes 23
3.7.4 Add Slaves to NC tasks 23
3.7.5 Enable the network configuration 23
3.7.6 Enable the axis and move the axis 24
3.8 Setup WorkBench over TwinCAT 25
3.8.1 TwinCAT and WorkBench configuration 26
3.8.2 Connecting to a drive using WorkBench 27
3.8.3 Configuring and enabling a drive 30
3.8.4 Download a parameterfile over TwinCAT 31
3.9 Setup via KAS IDE 32
4 EtherCAT Profile 33
4.1 Slave Register 34
4.2 AL Event (Interrupt Event) and Interrupt Enable 35
4.2.1 Interrupt Enable Register (Address 0x0204:0x0205) 35
4.2.2 AL Event Request (Address 0x0220:0x0221) 36
4.3 Phase Run-Up 37
4.3.1 AL Control (Address 0x0120:0x0121) 37
4.3.2 AL Status (Address 0x0130:0x0131) 37
4.3.3 AL Status Code (Address 0x0134:0x0135) 38
Kollmorgen | kdn.kollmorgen.com | October 2017 3
AKD EtherCAT | Table of Contents
4.3.4 EtherCAT communication phases 38
4.4 CANopen over EtherCAT (CoE) State Machine 39
4.4.1 Status Description 39
4.4.2 Commands in the Control Word 40
4.4.3 State Machine Bits (status word) 41
4.5 Fixed PDO Mappings 42
4.6 Flexible PDO Mappings 44
4.6.1 Example: Flexible PDO Mapping 45
4.7 Supported Cyclical Setpoint and Actual Values 49
4.8 Supported Operation Modes 51
4.9 Adjusting EtherCAT Cycle Time 51
4.10 Maximum Cycle Times depending on operation mode 51
4.11 Synchronization 52
4.11.1 Synchronization behavior with distributed clocks (DC) enabled 52
4.11.2 Synchronization behavior with distributed clocks (DC) disabled 52
4.12 Latch Control Word and Latch Status Word 53
4.13 Mailbox Handling 54
4.13.1 Mailbox Output 55
4.13.2 Mailbox Input 56
4.13.3 Example: Mailbox Access 57
4.14 EEProm Content 58
5 Appendix 59
5.1 CANopen Emergency Messages and Error Codes 59
5.2 Object Dictionary 65
5.2.1 Float Scaling 65
5.2.2 Effectiveness of PDO set-points 65
5.2.3 Communication SDOs 65
5.2.4 Manufacturer specific SDOs 68
5.2.5 Profile specific SDOs 86
5.3 Object descriptions 90
5.3.1 Object 1000h: Device Type (DS301) 91
5.3.2 Object 1001h: Error register (DS301) 92
5.3.3 Object 1002h: Manufacturer Status Register (DS301) 93
5.3.4 Object 1003h: Predefined Error Field (DS301) 94
5.3.5 Object 1005h: COB-ID of the SYNC Message (DS301) 95
5.3.6 Object 1006h: Communication Cycle Period (DS301) 95
5.3.7 Object 1008h: Manufacturer Device Name (DS301) 96
5.3.8 Object 1009h: Manufacturer Hardware Version 96
5.3.9 Object 100Ah: Manufacturer Software Version (DS301) 96
5.3.10 Object 100Ch: Guard Time (DS301)Response monitoring 97
5.3.11 Object 100Dh: Lifetime Factor (DS301) 97
5.3.12 Object 1010h: Store Parameters (DS301) 98
5.3.13 Object 1011h: Restore Default Parameters DS301 99
5.3.14 Object 1012h: COB-ID of the Time Stamp (DS301) 100
5.3.15 Object 1014h: COB-ID for Emergency Message (DS301) 100
5.3.16 Object 1016h: Consumer Heartbeat Time 101
4 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | Table of Contents
5.3.17 Object 1017h: Producer Heartbeat Time 102
5.3.18 Object 1018h: Identity Object (DS301) 102
5.3.19 Object 1026h: OS Prompt 104
5.3.20 Objects 1400-1403h: 1st - 4th RxPDO communication parameter (DS301) 105
5.3.21 Objects 1600-1603h: 1st - 4th RxPDO mapping parameter (DS301) 106
5.3.22 Objects 1800-1803h: 1st - 4th TxPDO communication parameter (DS301) 107
5.3.23 Objects 1A00-1A03h: 1st - 4th TxPDO mapping parameter (DS301) 109
5.3.24 Object 1C12h: RxPDO assign (DS301) 110
5.3.25 Object 1C13h: TxPDO assign (DS301) 111
5.3.26 Object 2000h: SystemWarnings 112
5.3.27 Object 2001h: SystemFaults 112
5.3.28 Object 2002h: Manufacturer status bytes 113
5.3.29 Object 2011h: DRV.RUNTIME in seconds 114
5.3.30 Object 2012h: Fault history: Fault numbers 115
5.3.31 Object 2013h: Fault history: Time stamps 116
5.3.32 Object 2014-2017h: 1st-4th Mask 1 to 4 for Transmit-PDO 117
5.3.33 Object 2018h: Firmware Version 118
5.3.34 Object 2026h: ASCII Channel 119
5.3.35 Object 204Ch: PV Scaling Factor 120
5.3.36 Object 2071h: Target Current 121
5.3.37 Object 2077h: Current ActualValue 121
5.3.38 Object 20A0h: Latch position 1, positive edge 121
5.3.39 Object 20A1h: Latch position 1, negative edge 122
5.3.40 Object 20A2h: Latch position 2, positive edge 122
5.3.41 Object 20A3h: Latch position 2, negative edge 123
5.3.42 Object 20A4h: Latch Control Register 123
5.3.43 Object 20A5h: Latch Status Register 124
5.3.44 Object 20A6h: Latch position 1, positive or negative edge 124
5.3.45 Object 20A7h: Latch position 2, positive or negative edge 125
5.3.46 Object 20B8h: Reset of changed input information 125
5.3.47 Object 345Ah: Brake Control 126
5.3.48 Object 3474h: Parameters for digital inputs 128
5.3.49 Object 3475h: Parameters for digital outputs 129
5.3.50 Object 3496h: Fieldbus synchronization parameters 130
5.3.51 Object 6040h: Control word (DS402) 132
5.3.52 Object 6041h: Status word (DS402) 133
5.3.53 Object 605Ah: Quick stop option code (DS402) 135
5.3.54 Object 6060h: Modes of Operation (DS402) 136
5.3.55 Object 6061h: Modes of Operation Display (DS402) 137
5.3.56 Object 6063h: position actual value* (DS402) 137
5.3.57 Object 6064h: position actual value (DS402) 137
5.3.58 Object 6065h: Following error window 138
5.3.59 Object 606Ch: Velocity actual value (DS402) 138
5.3.60 Object 6071h: Target torque (DS402) 139
5.3.61 Object 6073h: Max current (DS402) 139
5.3.62 Object 6077h: Torque actual value (DS402) 139
Kollmorgen | kdn.kollmorgen.com | October 2017 5
AKD EtherCAT | Table of Contents
5.3.63 Object 607Ah: Target position (DS402) 140
5.3.64 Object 607Ch: Homing offset (DS402) 140
5.3.65 Object 607Dh: Software position limit (DS402) 141
5.3.66 Object 6081h: Profile velocity (DS402) 142
5.3.67 Object 6083h: Profile acceleration (DS402) 142
5.3.68 Object 6084h: Profile deceleration (DS402) 142
5.3.69 Object 6087h Torque slope (DS402) 143
5.3.70 Object 608Fh: Position encoder resolution (DS402) 143
5.3.71 Object 6091h: Gear Ratio (DS402) 144
5.3.72 Object 6092h: Feed constant (DS402) 145
5.3.73 Object 6098h: Homing method (DS402) 146
5.3.74 Object 6099h: Homing speeds (DS402) 147
5.3.75 Object 609Ah: Homing acceleration (DS402) 149
5.3.76 Object 60B1h: Velocity Offset 149
5.3.77 Object 60B2h: Torque Offset 149
5.3.78 Object 60B8h: Touch probe function 150
5.3.79 Object 60B9h: Touch probe status 151
5.3.80 Object 60BAh: Touch probe 1 positive edge 152
5.3.81 Object 60BBh: Touch probe 1 negative edge 152
5.3.82 Object 60BCh: Touch probe 2 positive edge 152
5.3.83 Object 60BDh: Touch probe 2 negative edge 153
5.3.84 Object 60C0h: Interpolation sub mode select 153
5.3.85 Object 60C1h: Interpolation data record 154
5.3.86 Object 60C2h: Interpolation time period 155
5.3.87 Object 60C4h: Interpolation data configuration 156
5.3.88 Object 60D0h: Touch probe source 158
5.3.89 Object 60E0h: Positive Torque Limit Value 159
5.3.90 Object 60E1h: Negative Torque Limit Value 159
5.3.91 Object 60E4h: Additional position actual value 160
5.3.92 Object 60E8h: Additional gear ratio – motor shaft revolutions 161
5.3.93 Object 60E9h: Additional feed constant – feed 162
5.3.94 Object 60EDh: Additional gear ratio – driving shaft revolutions 163
5.3.95 Object 60EEh: Additional feed constant - driving shaft revolutions 164
5.3.96 Object 60F4h: Following error actual value (DS402) 165
5.3.97 Object 60FCh: Position demand internal value (DS402) 166
5.3.98 Object 60FDh: Digital inputs (DS402) 166
5.3.99 Object 60FEh: Digital outputs (DS402) 167
5.3.100 Object 60FFh: Target velocity (DS402) 168
5.3.101 Object 6502h: Supported drive modes (DS402) 168
6 Record of Document Revisions 169 7 Index 171
6 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | 2 General

2 General

2.1 About this Manual 8
2.2 Target Group 8
2.3 Symbols Used 9
2.4 Abbreviations Used 10
Kollmorgen | kdn.kollmorgen.com | October 2017 7
AKD EtherCAT | 2 General

2.1 About this Manual

This manual, AKD EtherCAT Communication, describes the installation, setup, range of func- tions, and software protocol for the EtherCAT AKD product series. All AKD EtherCAT drives have built-in EtherCAT functionality; therefore an additional option card is not required.
A digital version of this manual (pdf format) is available on the DVD included with your drive. Manual updates can be downloaded from the Kollmorgen website.
Related documents for the AKD series include:
l AKD Installation ManualThis manual provides instructions for installation and drive setup. l AKD User Guide. This manual describes how to use your drive in common applications. It
also provides tips for maximizing your system performance with the AKD. The User Guide includes the Parameter and Command Reference Guide which provides doc-
umentation for the parameters and commands used to program the AKD.
l AKD CAN-BUS Communication. This manual describes the CAN communication and
delivers a lot of information for CAN over EtherCAT communication.
l Accessories Manual. This manual provides documentation for accessories like cables
and regen resistors used with AKD. Regional versions of this manual exist.
Additionally, an EtherCAT XML file, entitled AKD EtherCAT Device Description, describes the drive SDO and PDO. This file is available on the Kollmorgen website (part of the firmware zip archive).

2.2 Target Group

This manual addresses personnel with the following qualifications:
l Installation: only by electrically qualified personnel. l Setup : only by qualified personnel with extensive knowledge of electrical engineering
l Programming: software developers, project-planners.
The qualified personnel must know and observe the following standards:
l ISO 12100, IEC 60364 and IEC 60664 l National accident prevention regulations
and drive technology.
8 Kollmorgen | kdn.kollmorgen.com | October 2017

2.3 Symbols Used

Symbol Indication
DANGER
AKD EtherCAT | 2 General
Indicates a hazardous situation which, if not avoided, will res­ult in death or serious injury.
WARNING
CAUTION
Indicates a hazardous situation which, if not avoided, could res­ult in death or serious injury.
Indicates a hazardous situation which, if not avoided, could res­ult in minor or moderate injury.
Indicates situations which, if not avoided, could result in prop­erty damage.
This symbol indicates important notes.
Warning of a danger (general). The type of danger is specified by the text next to the symbol.
Warning of danger from electricity and its effects.
Warning of danger from suspended loads.
Warning of danger from high temperature.
Warning of danger from automatic start.
Kollmorgen | kdn.kollmorgen.com | October 2017 9
AKD EtherCAT | 2 General

2.4 Abbreviations Used

Abbreviation Meaning
AL Application Layer: the protocol that directly used by the process entities.
Cat Category – classification for cables that is also used in Ethernet.
DC Distributed Clocks Mechanism to synchronize EtherCAT slaves and master
DL Data Link(=Layer 2). EtherCAT uses standardized Ethernet (IEEE 802.3)
ESC EtherCAT Slave Controller
FPGA Field Programmable Gate Array
FTP File Transfer Protocol
HW Hardware
ICMP Internet Control Message Protocol: Mechanisms for signaling IP errors.
IEC International Electrotechnical Commission: The international standards
IEEE Institute of Electrical and Electronics Engineers, Inc.
LLDP Link Layer Discovery Protocol
MAC Media Access Control
MII Media Independent Interface: Standardized interface Ethernet controller <-> routing
MDI Media Dependant Interface: Use of connector Pins and Signaling.
MDI-X Media Dependant Interface (crossed): Use of connector Pins and Signaling with
OSI Open System Interconnect
OUI Organizationally Unique Identifier – the first 3 Bytes of an Ethernet-Address, that
PDI Physical Device Interface: set of elements that allows access to ESC from the pro-
PDO Process Data Object
PDU Protocol Data Unit: Contains protocol information transferred from a protocol
PHY Physical interface that converts data from the Ethernet controller to electric or
PLL Phase Locked Loop
PTP Precision Time Protocol in accordance with IEEE 1588
RSTP Rapid Spanning Tree Protocol
RT Real-time, can be run in Ethernet controllers without special support.
RX Receive
RXPDO Receive PDO
SNMP Simple Network Management Protocol
SPI Serial Peripheral Interface
Src Addr Source Address: Source address of a message.
STP Shielded Twisted Pair
TCP Transmission Control Protocol
TX Transmit
TXPDO Transmit PDO
UDP User Datagram Protocol: Non-secure multicast/broadcast frame.
UTP Unshielded Twisted Pair
ZA ECAT Access mode EtherCAT
ZA Drive Acces mode drive
equipment.
crossed lines.
will be assign to companies or organizations and can be used for protocoll iden­tifiers as well (e.g. LLDP)
cess side.
instance of transparent data to a subordinate level
optical signals.
10 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | 3 Installation and Setup

3 Installation and Setup

3.1 Important Instructions 12
3.2 EtherCAT Onboard 13
3.3 EtherCAT activation with AKD-CC models 14
3.4 Guide to Setup 15
3.5 Important Configuration Parameters 16
3.6 Setting up Ethernet over EtherCAT (EoE) 18
3.7 Setup via TwinCAT NC/PTP System Manager 21
3.8 Setup WorkBench over TwinCAT 25
3.9 Setup via KAS IDE 32
Kollmorgen | kdn.kollmorgen.com | October 2017 11
AKD EtherCAT | 3 Installation and Setup

3.1 Important Instructions

DANGER
High Voltage up to 900 V.
There is a danger of serious personal injury or death by electrical shock or electrical arcing. Capacitors can still have dangerous voltages present up to 7 minutes after switching off the supply power. Control and power connections can still be live, even if the motor is not rotating.
l Never remove electrical connections to the drive while it is live. l Wait at least seven minutes after disconnecting the drive from the
main supply power before touching potentially live sections of the equipment (e.g. contacts) or undoing any connections.
l To be sure, measure the voltage in the DC bus link and wait until it
has fallen below 50 V.
WARNING
Automatic Restart
Risk of death or serious injury for humans working in the machine. Drives with EtherCAT are remote-controlled machines. They can start to move at any time without previous warning. The drive might restart automatically after power on, voltage dip or interruption of the supply voltage, depend­ing on the parameter setting.
l Place a warning sign ("WARNING: Possible Automatic Start" or
similar) to the machine.
l Ensure, that power on is not possible, while humans are in a
dangerous zone of the machine.
Install the drive as described in the Installation Manual. The wiring for the analog setpoint input and the positioning interface, as shown in the wiring diagram in the Installation Manual, is not required. Never break any of the electrical connections to the drive while it is live. This action can result in destruction of the electronics.
The drive's status must be monitored by the PLC to acknowledge critical situations. Wire the FAULT contact in series into the emergency stop circuit of the installation. The emergency stop circuit must operate the supply contactor.
It is permissible to use the setup software to alter the settings of the drive. Any other alter­ations will invalidate the warranty. Because of the internal representation of the position-con­trol parameters, the position controller can only be operated if the final limit speed of the drive does not exceed:
rotary linear
at sinusoidal² commutation: 7500 rpm at sinusoidal² commutation: 4 m/s at trapezoidal commutation: 12000 rpm. at trapezoidal commutation: 6.25 m/s
All the data on resolution, step size, positioning accuracy etc. refer to calculatory values. Non-linearities in the mechanism (backlash, flexing, etc.) are not taken into account. If the final limit speed of the motor must be altered, then all the parameters that were previously entered for position control and motion blocks must be adapted.
12 Kollmorgen | kdn.kollmorgen.com | October 2017

3.2 EtherCAT Onboard

Connection to the EtherCAT Network via X5 (in port) and X6 (out port).

3.2.1 LED functions

The communication status is indicated by the built-in LEDs.
Connector LED# Name Function
X5 LED1 IN port Link ON = active
X6 LED3 OUT port Link ON = active
AKD EtherCAT | 3 Installation and Setup
OFF= not active
LED2 RUN ON = running
OFF = not running
OFF = not active
LED4 - -

3.2.2 Connection technology

You can connect to the EtherCAT network using RJ-45 connectors.

3.2.3 Network Connection Example

Kollmorgen | kdn.kollmorgen.com | October 2017 13
AKD EtherCAT | 3 Installation and Setup

3.3 EtherCAT activation with AKD-CC models

AKD-CC drive models are Drives, which support EtherCAT and CAN fieldbus types within one common software. CC drive models are delivered with EtherCAT set active. If you must change a drive from CANopen to EtherCAT, the DRV.TYPE parameter must be changed
1. by software: connect the PC to the AKD and change the parameter DRV.TYPE in the WorkBench terminal screen (see DRV.TYPE parameter documentation) or
2. by hardware: with the rotary switches S1 & S2 at the front and the button B1 on the top side of the Drive.
The following steps are needed for changing the fieldbus type from CAN to EtherCAT with the rotary switches.
1. Set the rotary switches on the front side of the AKD to the value of 89.
Set S1 to 8 and S2 to 9
2. Press the button B1 for about 3 seconds (starts DRV.NVSAVE).
The display shows En during the process of changing DRV.TYPE to EtherCAT.
Do not switch off the 24[V] power supply while the seven segment shows En!
3. Wait until the display returns to the original state.
4. Power cycle the drive by switching the 24 V power supply off and then on again.
The seven segment display shows Er (Error) in case that the DRV.TYPE instruction failed. In this case please power cycle the drive and contact the Kollmorgen customer support for fur­ther help.
14 Kollmorgen | kdn.kollmorgen.com | October 2017

3.4 Guide to Setup

Only professional personnel with extensive knowledge of control and drive technology are allowed to setup the drive.
Automatic Restart
Risk of death or serious injury for humans working in the machine. Drives with EtherCAT are remote-controlled machines. They can start to move at any time without previous warning. The drive might restart automatically after power on, voltage dip or interruption of the supply voltage, depend­ing on the parameter setting.
Refer to chapter "Important Configuration Parameters" (p. 16) for fieldbus parameter set­ting (FBUS.PARAMx).
AKD EtherCAT | 3 Installation and Setup
WARNING
l Place a warning sign ("WARNING: Possible Automatic Start" or
similar) to the machine.
l Ensure, that power on is not possible, while humans are in a
dangerous zone of the machine.
1. Check assembly/installation. Check that all the safety instructions in the product manual for the drive and this manual have been observed and implemented. Check the setting for the station address and baud rate.
2. Connect PC,start WorkBench. Use the setup software WorkBench to set the parameters for the drive.
3. Setup basic functions. Start up the basic functions of the drive and optimize the current, speed and position controllers. This section of the setup is described in the in the online help of the setup software.
4. Save parameters. When the parameters have been optimized, save them in the drive.
Kollmorgen | kdn.kollmorgen.com | October 2017 15
AKD EtherCAT | 3 Installation and Setup

3.5 Important Configuration Parameters

The AKD holds several fieldbus-specific, general purpose parameters. Some of them contain the following relevant data:
FBUS.PARAM01:
Sets the baud rate for the CANbus. Supported baud rates are 125, 250, 500 and 1000 kBaud. On AKD-C, FBUS.PARAM01 sets and stores the EtherCAT station alias for the ESC (Ether­CAT slave controller) of string 2.
FBUS.PARAM02:
This parameter activates the synchronization feature of the AKD. The DC feature must be activated in order to allow the AKD to get synchronized with the master. Only works when FBUS.TYPE= 3 (CANopen). Drive internal PLL (phase locked loop) functionality: enabled (1), Drive internal PLL functionality: disabled (0).
FBUS.PARAM03:
This parameter contains the Configured Station Alias address of the AKD. An EEPROM emu­lation write access to the Configured Station Alias address forces the AKD to store the drive parameters automatically using the DRV.NVSAVE command. On AKD-C, FBUS.PARAM03 sets and stores the EtherCAT station alias for the ESC (EtherCAT slave controller) of string
1.
FBUS.PARAM04:
This parameter enables (1) or disables (0) the synchronization supervision of the CANOpen or EtherCAT fieldbus. Default values for this parameter are as follows: CANopen drive: disabled (0) EtherCAT drive: enabled (1) Synchronization supervision is active when FBUS.PARAM 04 = 1 and the first CANOpen Sync message or first EtherCAT frame is received. When more than three CANOpen sync messages or seven EtherCAT frames have not been received and the drive is enabled, fault F125 (“Synchronization lost“), occurs.
FBUS.PARAM05:
Bit 0 1 Faults can only be reset using DS402 control word bit 7.
0 The reset can also be done via telnet or digital input and the DS402 state
machine reflects this condition.
Bit 1 1 The state of the hardware enable does not change the state machine state
Operation Enable.
0 If the state Operation Enable or Switched on is active it falls back to the
state switched On Disabled, if the Hardware enable goes to 0.
Bit 2 1 WorkBench/Telnet can not software enable the drive, when
CANopen/EtherCAT are Operational.
0 WorkBench/Telnet can software enable the drive.
NOTE: During commissioning this bit should be set to 1 to avoid influences to DS402 power stage state machine. The field bus should not be in operation as well to avoid influence to test func­tions of Workbench.
Bit 3 1 DS402-state machine is not influenced, if the software-enable is taken
away via Telnet.
0 DS402-state machine is influenced, if the software-enable is taken away
via Telnet.
16 Kollmorgen | kdn.kollmorgen.com | October 2017
Bit 4 1 Scaling is done via special DS402 - objects (independent on units)
Bit 5
(EtherCAT only)
Bit 6 1 Bit 0 of parameter MT.CNTL (object 35B9 sub 0) can be accessed.
Bit 7 1 All capture objects (0x20A0-0x20A3, 0x20A6, 0x20A7, 0x60BA to
Bit 8 1 DS402-state SWITCHED ON means power stage disabled.
Bit 9 1 SDO content of object 0x6063 is the same as PDO content.
Bit 10
(Bit 10 is act­ive only, if Bit 8 is set)
Bit 11 1 No emergency messages over CANopen are triggered when a drive warn-
Bit 12 reserved
Bit 13
(EtherCAT only)
AKD EtherCAT | 3 Installation and Setup
0 Scaling for position, velocity and acceleration objects is done via UNIT
parameters.
1 FBUS.PARAM03 defines the station alias address if not 0. If
FBUS.PARAM03 set to 0, the address will be taken from rotary switches instead, if they are not 0. The EtherCAT master has the ability to use the alias address, selected by the drive, or issue its own.
0 The rotary switches define the station alias address if not 0. If the rotary
switches are set to 0, the address will be taken from FBUS.PARAM03 instead, if it is not 0.
0 Bit 0 of parameter MT.CNTL (object 35B9 sub 0) is exclusively used for
DS402 controlword.
0x60BD) are scaled like object 0x6063.
0 All capture objects (0x20A0-0x20A3, 0x20A6, 0x20A7, 0x60BA to
0x60BD) are scaled like object 0x6064.
0 DS402-state SWITCHED ON means power stage enabled.
0 SDO content of object 0x6063 depends on AKD unit parameters.
1 State “Switch On” can be reached without the high-level voltage being act-
ive.
0 State “Switch On” can only be reached when the high-level voltage is act-
ive; otherwise the drive will stay in “Ready to Switch On”.
ing occurs.
0 Emergency messages over CANopen are triggered when a drive warning
occurs.
1 Downloaded parameter file is stored automatically to nonvolatile memory.
0 Downloaded parameter file is not stored automatically to nonvolatile
memory.
FBUS.PARAM06 to FBUS.PARAM10:
Reserved.
Kollmorgen | kdn.kollmorgen.com | October 2017 17
AKD EtherCAT | 3 Installation and Setup

3.6 Setting up Ethernet over EtherCAT (EoE)

If you are using firmware version 1.16 or later and your EtherCATmaster supports Ethernet over EtherCAT (EoE), a WorkBench connection to your drive can be established without con­necting to the drive’s service port.
If the service port and EoE network interface are used in parallel, the service port network interface shall be configured to be in a different subnet than the EoE network interface. Run­ning both network interface in the same subnet is NOT supported.
The master will use the EtherCAT mailbox to forward the Ethernet traffic from your PC to the drive, allowing you to access the drive as if it was connected over Ethernet.
The following walk through uses a TwinCAT master as an example.
3.6.1 EtherCATDevice Settings
The first step is to make sure your EtherCAT device has EoE enabled. TwinCAT has a ded­icated “EoE Support” page inside the EtherCAT device’s settings.
Enable "Virtual Ethernet Switch." Check the box "Connect to TCP/IP Stack."

3.6.2 Drive Settings

After setting up the EtherCAT device, you must enable EoE for the drive. In TwinCAT there is an EoE page within the Drive’s Mailbox settings. If the EoE page is not displayed, add the drive to the EtherCAT network again, using the latest device description.
18 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | 3 Installation and Setup
To enable EoE on your drive, check the “Virtual Ethernet Port” box, select “IP Port” and “IP Address and enter at least a valid IP address and subnet mask.

3.6.3 Connecting to the Drive

You should now be able to access your drive over WorkBench using EoE.
Open WorkBench and make sure the discovery protocol is enabled for the network interface that is in the subnet configured for your drive in the previous step. You can now connect to your drive as if it were connected over the service port.

3.6.4 Performance Concerns

Since EoE is very demanding on EtherCAT Mailbox communication, all measures to improve Mailbox performance should be taken.
Kollmorgen | kdn.kollmorgen.com | October 2017 19
AKD EtherCAT | 3 Installation and Setup
When releasing the EoE feature, the biggest allowed mailbox size has been increased from 512 to 1024 byte. A larger mailbox means fewer Mailbox transfers, resulting in a performance increase.
Furthermore an additional Fieldbus Memory Management Unit (FMMU) has been added. This allows the master to be notified of new data in the mailbox input without the need to poll the mailbox, leading to a decrease in reaction time, thus improving performance. If your master does not support this, you should at least try to decrease the period in which the master polls the drive’s mailbox.

3.6.5 Restrictions

l Since a firmware download restarts the drive in the resident firmware, which does not sup-
port Ethernet over EtherCAT, downloading firmware via EoE is not possible. To update your drive’s firmware use FoE instead.
l If your EtherCAT master uses the device description provided in the esi-file and you want
to automatically detect your drives, set the keyword ECAT.LEGACYREV to 0. The drive will then report a different revision number and will be recognized by the master as a device capable of Ethernet over Ethercat.
20 Kollmorgen | kdn.kollmorgen.com | October 2017

3.7 Setup via TwinCAT NC/PTP System Manager

Before you set up the drive, make sure the following have been completed:
l The AKD is configured with WorkBench and the servomotor is able to move l A correctly configured EtherCAT card is present in the master. l TwinCAT software from Beckhoff (NC/PTP-Mode setup) is installed. Install first the
TwinCAT System Manager, restart your PC, then install the option package NC/PTP­Mode.
l The XML description of the drive is available (the XML file on the DVD or on the Koll-
morgen website).
l An AKD EtherCAT slave is connected to the EtherCAT master PC. l The TwinCAT system manager resides in Config-Mode. The current mode of the system
manager is displayed of the bottom right side of the TwinCAT main-screen window.
Copy the XML description of the drive to the TwinCAT system (usually to the folder c:\TwinCAT\IO\EtherCAT) and restart the TwinCAT system since TwinCAT analyzes all device description files during start-up.
The following example explains the automatic EtherCAT network setup. The network setup can also be done manually; please refer to the TwinCAT manual for more details.
AKD EtherCAT | 3 Installation and Setup
Kollmorgen | kdn.kollmorgen.com | October 2017 21
AKD EtherCAT | 3 Installation and Setup

3.7.1 Scan devices

First ensure that the EtherCAT master is physically connected to the EtherCAT AKD. Create a new (empty) project. Right click I/O-Devices and scan for the devices. An example is included in the EtherCAT network card, which is plugged into the PC.
A pop-up window informs you that not all devices can be detected by the TwinCAT software. Click OK to continue.

3.7.2 Select the device

TwinCAT must be able to find the EtherCAT network card. An EtherCAT slave must be con­nected to the network card; otherwise TwinCAT will find a real-time EtherNET card instead of the EtherCAT card. Press the OK button.
22 Kollmorgen | kdn.kollmorgen.com | October 2017

3.7.3 Scan for boxes

Click Yes to allow TwinCat to scan for boxes. A box is an alias for a slave device and is always used in Beckhoff software products.

3.7.4 Add Slaves to NC tasks

TwinCAT should now have identified the AKD according to the Device Description file. TwinCAT next asks if the slaves should be connected to NC tasks. Click Yes to continue. An NC task can, for example, contain a PLC program, which can be programmed by the user.
AKD EtherCAT | 3 Installation and Setup

3.7.5 Enable the network configuration

Confirm that the AKD appears in the device tree. Next, enable the network configuration.
First press the button in order to generate the mappings, then press the button in
order to let TwinCAT check the configuration and use finally the button in order to step into run-mode. Confirm afterwards that TwinCAT is allowed to jump into run-mode.
Kollmorgen | kdn.kollmorgen.com | October 2017 23
AKD EtherCAT | 3 Installation and Setup

3.7.6 Enable the axis and move the axis

The Axis can be enabled by a mouse-click on the Set button within the Online window inside of each Axis, see also the next picture.
Afterwards a pop-up window appears.
The following setting enables the drive and allows command values in both directions.
Afterwards the motor should move in positive or negative direction as soon as the clicks on the following yellow buttons within the Online window:
24 Kollmorgen | kdn.kollmorgen.com | October 2017

3.8 Setup WorkBench over TwinCAT

This chapter describes a quick start guide for a user to be able to setup a WorkBench over TwinCAT system and be able to make a motor spin under that system.
This chapter does not give any specific details on TwinCAT system or WorkBench alone but is giving guidelines and information on how TwinCAT master and WorkBench works together.
Main steps in configuring a WorkBench over TwinCAT system are:
l TwinCAT and WorkBench configuration l Connecting to a drive using WorkBench l Configuring and enabling a drive
AKD EtherCAT | 3 Installation and Setup
Kollmorgen | kdn.kollmorgen.com | October 2017 25
AKD EtherCAT | 3 Installation and Setup

3.8.1 TwinCAT and WorkBench configuration

The EtherCAT network must be setup and managed using TwinCAT System Manager. To be able to connect to a drive and enable it, the drive must be loaded under the I/O Devices node in TwinCAT System Manager and axis must be added to NC - Configuration as shown p. 21 "Setup via TwinCATNC/PTPSystem Manager " in the EtherCATManual.
In order to connect to the drives using WorkBench, the drives must be either in Pre-Op, Safe­Op or Op state. State machine for a drive can be accessed from the Online tab for the cor­responding drive under the I/O Configuration → I/O Devices → Device [x] → Drive [x] node (see screenshot below).
Installation process for WorkBench is the same process as normal, except that it must be installed on the same machine as TwinCAT. Communication to the drive is done thru TwinCAT master and it's not possible to connect WorkBench to the master remotely.
26 Kollmorgen | kdn.kollmorgen.com | October 2017

3.8.2 Connecting to a drive using WorkBench

In order to connect to a drive, a TwinCAT device must be added in WorkBench. The start page of WorkBench can be used to do this. First, the type of drive (Online - TwinCAT) must be specified. Then, a list of available drives will be provided.
AKD EtherCAT | 3 Installation and Setup
The information provided for a drive are it's name, status, Net ID and Port number. After selecting a drive from the list, clicking on the "Connect" button will create a device in the left frame of WorkBenchand connect the device.
Kollmorgen | kdn.kollmorgen.com | October 2017 27
AKD EtherCAT | 3 Installation and Setup
The name, Net ID and port number are information comming from the TwinCAT master con­figuration file (the name may be different than the drive name returned by the DRV.NAME command). While the status is an indicator that tells if there is already a device created within WorkBench which is already connected to that particular drive.
Using TwinCAT System Manager, the drive name and port number can be found in the Gen­eral and EtherCAT tab respectively for the corresponding drive under the I/O Configuration → I/O Devices → Device [x] → Drive [x] node.
28 Kollmorgen | kdn.kollmorgen.com | October 2017
AKD EtherCAT | 3 Installation and Setup
The Net ID can be found in the EtherCAT tab in the I/O Configuration → I/O Devices → Device [x] node.
It is important to understand that these information are comming from the TwinCAT master and it's configuration file but not from the drive itself. Thus, if the TwinCAT configuration is not reflecting the actual network configuration,you may have a drive listed in WorkBench which is not be powered up or even connected in the EtherCAT network, or you have a drive powered up and connected to the TwinCAT network but not shown in the WorkBench list.
Kollmorgen | kdn.kollmorgen.com | October 2017 29
AKD EtherCAT | 3 Installation and Setup

3.8.3 Configuring and enabling a drive

Once connected with WorkBench, a drive can be configured using all normal functionnalities of WorkBench.
The only operation that is not possible to do using WorkBench over TwinCAT is the download of a new firmware in the drive. Downloading a new firmware in the drive must be performed using File over EtherCAT (FoE) feature of TwinCAT server.
If the cyclic communication of the TwinCAT master is enabled, it is possible that some com­mands sent by WorkBench using the ASCII channel are overwirtten by the TwinCAT master. Typically, the drive enable command will have no effect if sent from WorkBench because the control word is usually mapped.
Using TwinCAT, enabling the drive can be done with the following procedure:
1. Under NC Configuration → Axes → Axis [x] node, choose the Online tab.
2. Press the Set button within the Enabling section.
3. In the pop-up dialog box, check the Controller checkbox to enable the drive (or un-check to disable the drive) and press on the OK button.
30 Kollmorgen | kdn.kollmorgen.com | October 2017
Loading...
+ 144 hidden pages