Skip to main content

Kollmorgen Support Network

AKD and EtherCAT CSV Mode | 02 Apr 2018 | |

AKD and EtherCAT CSV Mode

General Information

With this EtherCAT Opmode, the trajectory generator is located in the control device, not in the AKD drive. In cyclic synchronous manner, the EtherCAT master provides a target velocity to the drive, which performs velocity control and torque control. If desired, the position control loop may be closed over EtherCAT.  Optionally, additive velocity and torque values may be provided by the control system in order to allow a second source for velocity and/or a torque feed forward. Measured by sensors, the drive device may provide actual values for position, velocity and torque to the control device.

In this suggested setup of a Kollmorgen AKD for CSV mode, I will be using the EtherCAT Master run-up, from PREOP to OP mode, to setup the drive's configuration.  In the chart below some parameters (as noted) can be set either in Workbench or by SDOs from the Master using the object number and subindices.

Note: PDO mapping or setting the Modes of Operation must be done by the EtherCAT master.

These cannot be done using Workbench or parameters saved in the drive.

In order to map your PDOs or setting the Modes of Operation from the EtherCAT master (method controller dependent) send SDOs when the EtherCAT master starts up

use one of the following methods:

  • Using the Startup/Init script  (a list of SDO that are sent at PREOP->SAFE OP).  Note some EtherCAT masters have a PDO mapping tool in their IDE.
  • Edit the ESI file for EtherCAT masters that do not have a tool for PDO mapping and/or a Startup/Init for the necessary PDO content and modes of operation for the application. Note the ESI file defaults to 7-Interpolated Position Mode.

In my examples:  My velocity command resolution is in 1/10 of a RPS (Rev per second).  Example:  A command of 20 will result in 2 RPS or 120 RPM command in the drive.  My position feedback resolution is 2^20 count/rev and is set by AKD parameter FB1.PSCALE.

CSV using fixed mapping of CoE Objects:

IndexDataDescription
0x1C12:000x00 (0)Clear SM PDO
0x1C13:000x00Clear SM PDO
0x1C12:010x1702Set fixed RXPDO map
0x1C12:000x01One item mapped
0x1C13:010x1B01Set fixed TXPDO
0x1C13:000x01One item mapped
0x6060:000x09Opmode = CSV
0x60C2:010x02Interpolation time period
0x60C2:020xFDInterpolation time index
0x36E9:000x90FBUS.PARAM05 = 144
0x204C:010x01DS402.VELSCALENUM = 1
0x204C:020x0ADS402.VELSCALEDENOM = 10

CSV using flexible mapping of CoE Objects

IndexDataDescription
0x1C12:000x00Clear RXPDO mapping
0x1C13:000x00Clear TXPDO mapping
0x1A00:000x00Clear 0x1A00 PDO
0x1A00:010x60630020Set position feedback
0x1A00:020x60410010Set status word
0x1A00:000x02Two items mapped
0x1A01:000x00Clear 0x1A01 PDO
0x1A02:000x00Clear 0x1A02 PDO
0x1A03:000x00Clear 0x1A03 PDO
0x1600:000x00Clear 0x1600 PDO
0x1600:010x60FF0020Set Vel cmd
0x1600:020x20400010Set control word
0x1600:000x02Two items mapped
0x1601:000x00Clear 0x1601 PDO
0x1602:000x00Clear 0x1602 PDO
0x1603:000x00Clear 0x1603 PDO
0x1C12:010x1600Set PDO
0x1C12:000x01One RXPDO set
0x1C13:010x1A00Set PDO
0x1C13:000x01One TXPDO set
0x6060:000x09Opmode = CSV
0x60C2:010x02Interpolation time period
0x60C2:020xFDInterpolation time index
0x36E9:000x90FBUS.PARAM05 = 144
0x204C:010x01DS402.VELSCALENUM = 1
0x204C:020x0ADS402.VELSCALEDENUM = 10

Note 1: Recommend tuning the AKD in velocity mode before attempting to connect with an EtherCAT master. 

Note 2: If closing the position loop in the EtherCAT master, best performance if AKD's VL.KI or the EtherCAT Master's position integral gain is set to "0".  You can not have two integrators in series.

Note 3: Position loop proportional gain and velocity loop integral gain have the same impact on phase margin (stability).  When increasing the position loop proportional gain, you may need to decrease the AKD's VL.KI gain to reduce overshoot and/or oscillations.

About this Article

Kollmorgen Support