KOLLMORGEN MKD C, MKD N User manual

MKD®-C and MKD®-N
EtherCAT Communication
Edition: B, October 2020
Valid for firmware version 2.0
Part Number 904-200005-00
For safe and proper use, follow these instructions. Keep for future use.
Record of Document Revisions
Revision Remarks
A, 09/2019 First edition
B, 10/2020 Added ECAT.INPUTHANDLING and MOTOR.RSOURCE
Added objects 34D1h, 34D8h, 547Ah, 547Bh and 60E4h
Trademarks
l AKD is a registered trademark of Kollmorgen Corporation 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 HIPERFACE is a registered trademark of Max Stegmann GmbH l SpeedTec is a registered trademark of TE Connectivity Industrial GmbH l Windows is a registered trademark of Microsoft Corporation
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) l US Patent 8.566.415 (Safe Torque Off over network wiring) l US Patent 10.374.468 (System and method for improved DC power line communication)
Patents referring to fieldbus functions are listed in the matching fieldbus manual.
Technical changes which improve the performance of the device may be made without prior notice!
This document is the intellectual property of Kollmorgen. All rights reserved. No part of this work may be reproduced 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 2020
MKD EtherCAT | Table of Contents

1 Table of Contents

1 Table of Contents 3 2 General 9
2.1 About this Manual 10
2.2 Target Group 10
2.3 Symbols Used 11
2.4 Abbreviations Used 12
3 Installation and Setup 13
3.1 Important Instructions 14
3.2 Motion Bus Interface (X10/X11) 15
3.2.1 Pinout 15
3.2.2 EtherCAT 15
3.3 Guide to Setup 16
3.4 Important Configuration Parameters 17
3.5 Setting up Ethernet over EtherCAT (EoE) 19
3.5.1 EtherCATDevice Settings 19
3.5.2 Drive Settings 20
3.5.3 Connecting to the Drive 20
3.5.4 Performance Concerns 21
3.5.5 Restrictions 21
3.6 Setup via TwinCAT NC/PTP System Manager 22
3.6.1 Scan devices 23
3.6.2 Select the device 23
3.6.3 Scan for boxes 24
3.6.4 Add Slaves to NC tasks 24
3.6.5 Enable the network configuration 25
3.6.6 Enable the axis and move the axis 26
3.7 Setup WorkBench over TwinCAT 27
3.7.1 TwinCAT and WorkBench Configuration 27
3.7.2 Connecting to a Drive Using WorkBench 29
3.7.3 Configuring and Enabling a Drive 32
3.7.4 Download a Parameter File over TwinCAT 33
4 EtherCAT Profile 34
4.1 Slave Register 35
4.2 AL Event (Interrupt Event) and Interrupt Enable 36
4.2.1 Interrupt Enable Register (Address 0x0204:0x0205) 36
4.2.2 AL Event Request (Address 0x0220:0x0221) 37
4.3 Phase Run-Up 38
4.3.1 AL Control (Address 0x0120:0x0121) 38
4.3.2 AL Status (Address 0x0130:0x0131) 38
4.3.3 AL Status Code (Address 0x0134:0x0135) 39
4.3.4 EtherCAT communication phases 39
4.4 CANopen over EtherCAT (CoE) State Machine 40
4.4.1 Status Description 40
Kollmorgen | kdn.kollmorgen.com | October 2020 3
MKD EtherCAT | Table of Contents
4.4.2 Commands in the Control Word 41
4.4.3 State Machine Bits (status word) 42
4.5 Fixed PDO Mappings 42
4.6 Flexible PDO Mappings 45
4.6.1 Example: Flexible PDO Mapping 46
4.6.2 Example: Flexible PDOMapping with one byte gap in Rx-PDO 50
4.7 Supported Cyclical Setpoint and Actual Values 52
4.8 Supported Operation Modes 55
4.9 Adjusting EtherCAT Cycle Time 55
4.10 Maximum Cycle Times depending on operation mode 55
4.11 Synchronization 56
4.11.1 Synchronization behavior with distributed clocks (DC) enabled 56
4.11.2 Synchronization behavior with distributed clocks (DC) disabled 56
4.12 Latch Control Word and Latch Status Word 57
4.13 Mailbox Handling 58
4.13.1 Mailbox Output 59
4.13.2 Mailbox Input 60
4.13.3 Example: Mailbox Access 61
4.14 EEProm Content 62
5 Appendix 63
5.1 CANopen Emergency Messages and Error Codes 64
5.1.1 Error Codes for Drives 64
5.1.2 Error Codes for Power Supply 69
5.2 Object Dictionary MKD-C 70
5.3 Object Dictionary MKD-N 75
5.3.1 Float Scaling 75
5.3.2 Communication SDOs 76
5.3.3 Manufacturer specific SDOs 79
5.3.4 Profile Specific SDOs 100
5.4 CANopen Object Dictionary 104
5.4.1 Float Scaling 104
5.4.2 Effectiveness of PDO set-points 104
5.4.3 Communication SDOs 105
5.4.4 Manufacturer specific SDOs 108
5.4.5 Profile Specific SDOs 129
5.4.5.1 Object 1000h: Device Type (DS301) 133
5.4.5.2 Object 1001h: Error register (DS301) 133
5.4.5.3 Object 1002h: Manufacturer Status Register (DS301) 134
5.4.5.4 Object 1003h: Predefined Error Field (DS301) 135
5.4.5.5 Object 1005h: COB-ID of the SYNC Message (DS301) 136
5.4.5.6 Object 1006h: Communication Cycle Period (DS301) 136
5.4.5.7 Object 1008h: Manufacturer Device Name (DS301) 137
5.4.5.8 Object 1009h: Manufacturer Hardware Version 137
5.4.5.9 Object 100Ah: Manufacturer Software Version (DS301) 137
5.4.5.10 Object 100Ch: Guard Time (DS301)Response monitoring 138
5.4.5.11 Object 100Dh: Lifetime Factor (DS301) 138
4 Kollmorgen | kdn.kollmorgen.com | October 2020
MKD EtherCAT | Table of Contents
5.4.5.12 Object 1010h: Store Parameters (DS301) 139
5.4.5.13 Object 1011h: Restore Default Parameters DS301 140
5.4.5.14 Object 1012h: COB-ID of the Time Stamp (DS301) 141
5.4.5.15 Object 1014h: COB-ID for Emergency Message (DS301) 141
5.4.5.16 Object 1016h: Consumer Heartbeat Time 142
5.4.5.17 Object 1017h: Producer Heartbeat Time 143
5.4.5.18 Object 1018h: Identity Object (DS301) 143
5.4.5.19 Object 1026h: OS Prompt 145
5.4.5.20 Objects 1400-1403h: 1st - 4th RxPDO communication parameter (DS301) 146
5.4.5.21 Objects 1600-1603h: 1st - 4th RxPDO mapping parameter (DS301) 147
5.4.5.22 Objects 1800-1803h: 1st - 4th TxPDO communication parameter (DS301) 148
5.4.5.23 Objects 1A00-1A03h: 1st - 4th TxPDO mapping parameter (DS301) 150
5.4.5.24 Object 1C12h: RxPDO assign (DS301) 151
5.4.5.25 Object 1C13h: TxPDO assign (DS301) 152
5.4.5.26 Object 1C32h: SM output parameter (DS301, MKD-C) 153
5.4.5.27 Object 1C33h: SM input parameter (DS301, MKD-C) 155
5.4.5.28 Object 2000h: SystemWarnings 156
5.4.5.29 Object 2001h: SystemFaults 157
5.4.5.30 Object 2002h: Manufacturer status bytes 157
5.4.5.31 Object 2011h: DRV.RUNTIME in seconds 158
5.4.5.32 Object 2012h: Fault history: Fault numbers 158
5.4.5.33 Object 2013h: Fault history: Time stamps 159
5.4.5.34 Object 2014-2017h: 1st-4th Mask 1 to 4 for Transmit-PDO 160
5.4.5.35 Object 2018h: Firmware Version 161
5.4.5.36 Object 2026h: ASCII Channel 162
5.4.5.37 Object 204Ch: PV Scaling Factor 163
5.4.5.38 Object 2071h: Target Current 164
5.4.5.39 Object 2077h: Current ActualValue 164
5.4.5.40 Object 207Fh: Maximum Velocity 164
5.4.5.41 Object 2080h: Motion Task Select 165
5.4.5.42 Object 2081h: Active Motion Task 165
5.4.5.43 Object 20A0h: Latch position 1, positive edge 165
5.4.5.44 Object 20A1h: Latch position 1, negative edge 166
5.4.5.45 Object 20A2h: Latch position 2, positive edge 166
5.4.5.46 Object 20A3h: Latch position 2, negative edge 167
5.4.5.47 Object 20A4h: Latch Control Register 167
5.4.5.48 Object 20A5h: Latch Status Register 168
5.4.5.49 Object 20A6h: Latch position 1, positive or negative edge 168
5.4.5.50 Object 20A7h: Latch position 2, positive or negative edge 169
5.4.5.51 Object 20B8h: Reset of changed input information 169
5.4.5.52 Object 345Ah: Brake Control 170
5.4.5.53 Object 3474h: Parameters for digital inputs 172
5.4.5.54 Object 3475h: Parameters for digital outputs 173
5.4.5.55 Object 3496h: Fieldbus synchronization parameters 174
5.4.5.56 Object 34D1h: Legacy EtherCAT input handling 176
5.4.5.57 Object 6040h: Control word (DS402) 176
Kollmorgen | kdn.kollmorgen.com | October 2020 5
MKD EtherCAT | Table of Contents
5.4.5.58 Object 6041h: Status word (DS402) 178
5.4.5.59 Object 605Ah: Quick stop option code (DS402) 180
5.4.5.60 Object 6060h: Modes of Operation (DS402) 181
5.4.5.61 Object 6061h: Modes of Operation Display (DS402) 182
5.4.5.62 Object 6063h: position actual value* (DS402) 182
5.4.5.63 Object 6064h: position actual value (DS402) 183
5.4.5.64 Object 6065h: Following error window 183
5.4.5.65 Object 606Ch: Velocity actual value (DS402) 183
5.4.5.66 Object 6071h: Target torque (DS402) 184
5.4.5.67 Object 6073h: Max current (DS402) 184
5.4.5.68 Object 6077h: Torque actual value (DS402) 184
5.4.5.69 Object 607Ah: Target position (DS402) 185
5.4.5.70 Object 607Ch: Homing offset (DS402) 185
5.4.5.71 Object 607Dh: Software position limit (DS402) 186
5.4.5.72 Object 6081h: Profile velocity (DS402) 187
5.4.5.73 Object 6083h: Profile acceleration (DS402) 187
5.4.5.74 Object 6084h: Profile deceleration (DS402) 187
5.4.5.75 Object 6087h Torque slope (DS402) 188
5.4.5.76 Object 608Fh: Position encoder resolution (DS402) 188
5.4.5.77 Object 6091h: Gear Ratio (DS402) 189
5.4.5.78 Object 6092h: Feed constant (DS402) 190
5.4.5.79 Object 6098h: Homing method (DS402) 191
5.4.5.80 Object 6099h: Homing speeds (DS402) 193
5.4.5.81 Object 609Ah: Homing acceleration (DS402) 193
5.4.5.82 Object 60B1h: Velocity Offset 194
5.4.5.83 Object 60B2h: Torque Offset 194
5.4.5.84 Object 60B8h: Touch probe function 195
5.4.5.85 Object 60B9h: Touch probe status 196
5.4.5.86 Object 60BAh: Touch probe 1 positive edge 197
5.4.5.87 Object 60BBh: Touch probe 1 negative edge 197
5.4.5.88 Object 60BCh: Touch probe 2 positive edge 197
5.4.5.89 Object 60BDh: Touch probe 2 negative edge 198
5.4.5.90 Object 60C0h: Interpolation sub mode select 198
5.4.5.91 Object 60C1h: Interpolation data record 199
5.4.5.92 Object 60C2h: Interpolation time period 200
5.4.5.93 Object 60C4h: Interpolation data configuration 201
5.4.5.94 Object 60D0h: Touch probe source 203
5.4.5.95 Object 60E0h: Positive Torque Limit Value 204
5.4.5.96 Object 60E1h: Negative Torque Limit Value 204
5.4.5.97 Object 60E4h: Additional position actual value 205
5.4.5.98 Object 60E8h: Additional gear ratio – motor shaft revolutions 206
5.4.5.99 Object 60E9h: Additional feed constant – feed 207
5.4.5.100 Object 60EDh: Additional gear ratio – driving shaft revolutions 208
5.4.5.101 Object 60EEh: Additional feed constant - driving shaft revolutions 209
5.4.5.102 Object 60F4h: Following error actual value (DS402) 210
5.4.5.103 Object 60FCh: Position demand internal value (DS402) 210
6 Kollmorgen | kdn.kollmorgen.com | October 2020
MKD EtherCAT | Table of Contents
5.4.5.104 Object 60FDh: Digital inputs (DS402) 210
5.4.5.105 Object 60FEh: Digital outputs (DS402) 211
5.4.5.106 Object 60FFh: Target velocity (DS402) 212
5.4.5.107 Object 6502h: Supported drive modes (DS402) 212
6 Index 213
Kollmorgen | kdn.kollmorgen.com | October 2020 7
MKD EtherCAT | Table of Contents
--- / ---
8 Kollmorgen | kdn.kollmorgen.com | October 2020
MKD EtherCAT | 2 General

2 General

2.1 About this Manual 10
2.2 Target Group 10
2.3 Symbols Used 11
2.4 Abbreviations Used 12
Kollmorgen | kdn.kollmorgen.com | October 2020 9
MKD EtherCAT | 2 General

2.1 About this Manual

This manual, MKD EtherCAT Communication, describes the installation, setup, range of functions, and software protocol for the EtherCAT MKD product series. All MKD 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 MKD series include:
MKD Installation Manual This manual provides instructions for installation and drive setup. MKD WorkBench Online Help. This manual describes how to use your drive in common applications. It also provides tips for maximizing your system performance with the MKD. It includes the Parameter and Command Reference Guide which provides documentation for the parameters and commands used to program the MKD. MKD EtherCAT Communications Manual. This manual describes the CAN com­munication and delivers a lot of information for CAN over EtherCAT communication.
Accessories Manual. This manual provides documentation for accessories like cables
and regen resistors used with MKD. 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:
The qualified personnel must know and observe the following standards:
Installation: only by electrically qualified personnel. Setup: only by qualified personnel with extensive knowledge of electrical engineering and drive technology. Programming: software developers, project-planners.
ISO 12100, IEC 60364 and IEC 60664 National accident prevention regulations
10 Kollmorgen | kdn.kollmorgen.com | October 2020

2.3 Symbols Used

Symbol Indication
MKD EtherCAT | 2 General
Indicates a hazardous situation which, if not avoided, will res­ult in death or serious injury.
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 2020 11
MKD 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.
12 Kollmorgen | kdn.kollmorgen.com | October 2020
MKD EtherCAT | 3 Installation and Setup

3 Installation and Setup

3.1 Important Instructions 14
3.2 Motion Bus Interface (X10/X11) 15
3.3 Guide to Setup 16
3.4 Important Configuration Parameters 17
3.5 Setting up Ethernet over EtherCAT (EoE) 19
3.6 Setup via TwinCAT NC/PTP System Manager 22
3.7 Setup WorkBench over TwinCAT 27
Kollmorgen | kdn.kollmorgen.com | October 2020 13
MKD EtherCAT | 3 Installation and Setup

3.1 Important Instructions

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 rotat­ing.
Never remove electrical connections to the drive while it is live. 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. To be sure, measure the voltage in the DC bus link and wait until it has fallen below 50 V.
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 warn­ing. The drive might restart automatically after power on, voltage dip or interruption of the supply voltage, depending on the parameter setting.
Place a warning sign ("WARNING: Possible Automatic Start" or similar) to the machine. Ensure, that power on is not possible, while humans are in a dangerous zone of the machine.
High Voltage up to 900 V!
Automatic Restart!
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.
14 Kollmorgen | kdn.kollmorgen.com | October 2020

3.2 Motion Bus Interface (X10/X11)

Do not connect the Ethernet line for the PC or PAC with the setup software to the motion bus interface X10/X11. The setup Ethernet cable must be connected to X18.
The communication status is indicated by the built-in connector LEDs.
Connector LED# Name Function
X10 LED3 Link ON = active, OFF= not active
LED4 - -
X11 LED5 Link ON = active, OFF = not active
LED6 - -
MKD EtherCAT | 3 Installation and Setup
The motion bus interface has RJ45 connectors and can be used for communication with the EtherCAT master and other MKD-C.

3.2.1 Pinout

3.2.2 EtherCAT

Pin Signal X10 Signal X11
1 Transmit + Receive+
2 Transmit - Receive-
3 Receive+ Transmit +
4, 5 n.c. n.c.
6 Receive- Transmit -
7, 8 n.c. n.c.
MKD-C can be connected as slaves to the EtherCAT network (CoE) via RJ45 connectors X10 (in port) and X11 (out port).
Kollmorgen | kdn.kollmorgen.com | October 2020 15
MKD EtherCAT | 3 Installation and Setup

3.3 Guide to Setup

Only professional personnel with extensive knowledge of control and drive technology are allowed to setup the drive.
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 warn­ing. The drive might restart automatically after power on, voltage dip or interruption of the supply voltage, depending on the parameter setting.
Place a warning sign ("WARNING: Possible Automatic Start" or similar) to the machine. Ensure, that power on is not possible, while humans are in a dangerous zone of the machine.
Refer to chapter "Important Configuration Parameters" (p. 17) for fieldbus parameter set­ting (FBUS.PARAMx).
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.
Automatic Restart!
16 Kollmorgen | kdn.kollmorgen.com | October 2020

3.4 Important Configuration Parameters

The MKD holds several fieldbus-specific, general purpose parameters. Some of them con­tain the following relevant data:
The MKD-C includes three EtherCAT slave controllers (ESCs), which are used as com­munication node for each of the three strings.
Each MKD-N has only one ESC.
For each ESC, an EtherCAT station alias address can be configured by writing the emulated EEPROM through the EtherCAT master. On the write access, the station alias address is automatically stored in NV (a DRV.NVSAVE command is executed).
For MKD-C, the following parameters represent the station alias addresses:
l String 1: FBUS.PARAM03 l String 2: FBUS.PARAM01 l String 3: FBUS.PARAM06
For MKD-N, FBUS.PARAM01 is used.
FBUS.PARAM04:
This parameter enables (1) or disables (0) the synchronization supervision of the EtherCAT fieldbus. Default values for this parameter are as follows:
MKD EtherCAT | 3 Installation and Setup
EtherCAT drive: enabled (1) Synchronization supervision is active when FBUS.PARAM 04 = 1 and the first EtherCAT frame is received. When more than 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 controlword bit 7.
0 The reset can also be done using 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 to
state Operation enable.
0 If the state Operation enable or Switched on is active, it falls back to the
state Switch on disabled, if the Hardware enable goes to 0.
Bit 2 1 WorkBench/Telnet cannot software enable the drive when EtherCAT are
operational.
0 WorkBench/Telnet can software enable the drive.
During commissioning this bit should be set to 1 to avoid influences to DS402 power stage state machine. The fieldbus should not be in operation to avoid influ­ence to test functions of WorkBench.
Bit 3 1 DS402 - state machine is not influenced if the software enable is taken
away using Telnet.
0 DS402 - state machine is influenced if the software enable is taken away
using Telnet.
Bit 4 1 Scaling is done using special DS402 - objects (independent on units)
0 Scaling for position, velocity and acceleration objects is done using UNIT
parameters.
Kollmorgen | kdn.kollmorgen.com | October 2020 17
MKD EtherCAT | 3 Installation and Setup
Bit 5
1 FBUS.PARAM03 defines the station alias address if not 0. If
(EtherCAT
only)
FBUS.PARAM03 is set to 0, the address will be taken from rotary switches 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 is taken from FBUS.PARAM03 instead, if it is not 0.
Bit 6 1 Bit 0 of parameter MT.CNTL (object 35B9 sub 0) can be accessed.
0 Bit 0 of parameter MT.CNTL (object 35B9 sub 0) is exclusively used for
DS402 controlword.
Bit 7 1 All capture objects (0x20A0-0x20A3, 0x20A6, 0x20A7, 0x60BA to
0x60BD) are scaled as object 0x6063.
0 All capture objects (0x20A0-0x20A3, 0x20A6, 0x20A7, 0x60BA to
0x60BD) are scaled as object 0x6064.
Bit 8 1 DS402 - state Switched on means power stage disabled.
0 DS402 - state Switched on means power stage enabled.
Bit 9 1 SDO content of object 0x6063 is the same as PDO content.
0 SDO content of object 0x6063 depends on MKD unit parameters.
Bit 10
(Bit 10 is act-
ive only,
if Bit 8 is set)
1 State Switched on can be reached without the high-level voltage being act-
ive.
0 State Switched on can only be reached when the high-level voltage is act-
ive; otherwise the drive stays in Ready to switch on.
Bit 11 1 No emergency messages over CANopen are triggered when a drive warn-
ing occurs.
0 Emergency messages over CANopen are triggered when a drive warning
occurs.
Bit 12 reserved
Bit 13
(EtherCAT
1 Downloaded parameter file is stored automatically to nonvolatile memory.
0 Downloaded parameter file is not stored automatically to nonvolatile
only)
memory.
Bit 14 1 If a warning occurs which limits a movement of the motor bit 11 in the
DS402 statusword is additionally set to bit 7.
0 Only bit 7 is set when any warning occurs.
Bit 15 1 The bit 10 of the statusword (target reached) is also set as a reaction to the
halt bit (bit 8) of the controlword when the motor velocity is below CS.VTHRESH.
0 Bit 10 of the statusword is only set when the external setpoint value of a
movement is reached, e.g., target position in profile position mode.
Bit 16 1 The hardware enable input decides if the transitions between Switch on dis-
abled and Ready to switch on are taken.
0 The decision relies on the DS402 controlword.
FBUS.PARAM06 to FBUS.PARAM10:
Reserved.
18 Kollmorgen | kdn.kollmorgen.com | October 2020

3.5 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.5.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."
MKD EtherCAT | 3 Installation and Setup
Kollmorgen | kdn.kollmorgen.com | October 2020 19
MKD EtherCAT | 3 Installation and Setup

3.5.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.
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.5.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.
20 Kollmorgen | kdn.kollmorgen.com | October 2020

3.5.4 Performance Concerns

Since EoE is very demanding on EtherCAT Mailbox communication, all measures to improve Mailbox performance should be taken.
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.5.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.
MKD EtherCAT | 3 Installation and Setup
Kollmorgen | kdn.kollmorgen.com | October 2020 21
MKD EtherCAT | 3 Installation and Setup

3.6 Setup via TwinCAT NC/PTP System Manager

Before you set up the drive, make sure the following have been completed:
The MKD is configured with WorkBench and the servomotor is able to move A correctly configured EtherCAT card is present in the master. 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. The XML description of the drive is available (the XML file on the DVD or on the Koll­morgen website). An MKD EtherCAT slave is connected to the EtherCAT master PC. 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.
22 Kollmorgen | kdn.kollmorgen.com | October 2020

3.6.1 Scan devices

First ensure that the EtherCAT master is physically connected to the EtherCAT MKD. 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.
MKD EtherCAT | 3 Installation and Setup
A pop-up window informs you that not all devices can be detected by the TwinCAT software. Click OK to continue.

3.6.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.
Kollmorgen | kdn.kollmorgen.com | October 2020 23
MKD EtherCAT | 3 Installation and Setup

3.6.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.6.4 Add Slaves to NC tasks

TwinCAT should now have identified the MKD 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.
24 Kollmorgen | kdn.kollmorgen.com | October 2020

3.6.5 Enable the network configuration

Confirm that the MKD appears in the device tree. Next, activate the network configuration.
Press the button in order to generate the mappings, activate the mapping and set the drive into run-mode. Confirm afterwards that TwinCAT is allowed to jump into run-mode.
MKD EtherCAT | 3 Installation and Setup
Kollmorgen | kdn.kollmorgen.com | October 2020 25
MKD EtherCAT | 3 Installation and Setup

3.6.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:
26 Kollmorgen | kdn.kollmorgen.com | October 2020

3.7 Setup WorkBench over TwinCAT

This chapter describes a quick start guide to setup a WorkBench over TwinCAT system and make a motor spin under that system.
This chapter does not give 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:
TwinCAT and WorkBench configuration Connecting to a drive using WorkBench Configuring and enabling a drive

3.7.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 node in TwinCAT System Manager and axis must be added to Motion - NC as shown "Setup via TwinCATNC/PTPSystem Manager " in the EtherCATManual.
MKD EtherCAT | 3 Installation and Setup
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 → Devices → Device [x] → Box / Drive [x] node (see screen­shot below).
Kollmorgen | kdn.kollmorgen.com | October 2020 27
MKD EtherCAT | 3 Installation and Setup
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.
28 Kollmorgen | kdn.kollmorgen.com | October 2020

3.7.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.
MKD 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 2020 29
MKD 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 → Devices → Device [x] → Box / Drive [x] node.
30 Kollmorgen | kdn.kollmorgen.com | October 2020
Loading...
+ 186 hidden pages