Hello endian,
great, in the end I found somebody who is brave enough to work on the kollmorgen servos! Awesome!
In the appendix, you can find a tarball of my current version. As I said, the drive is somehow communicating with lcnc, but I do have terrible timing issues.
In a nutshell, what I did or tried to do:
set up the EL 6731 using twincat3
- PDOs for parameter channel and process data
- cycle time 1ms
- use of Ethercat MDP Mapping and upload the config to the EL6731, hence no init commands or startup sdos in ethercat.xml on lcnc side necessary (Not sure here)
- not sure about settings for Distributed Clocks (just left it default, at the moment)
lcnc comp
- use parameter channel to set operation mode <--- velocity
- byte swapping magic (not sure If I got that right)
- scaling the velocity and position feedback (not sure about the scaling numbers, docu is a mess, as you probably know
lcnc ini/hal
- try to use a simple PID loop: position command (from motion, setpoint) position-feedback (from servostar. Here I do have the issue -- due to comm problems this data is very laggy, hence the PID cannot do its job) PID output == velocity command to servostar
Here are my issues / todos
- I'm not sure if I correctly use the parameter channel of profibus (PKW) Due to lack of understanding of SDOs, I simply put the PKW as an PDO and initialize the drive on startup -- IMHO it would be better to do that via SDO or some other hard-coded init sequence I'm not aware of. Maybe the constantly send/rec of the parameter channel causes the timing issues.
- I need to parameterize the velocity profile for the position loop. Where to do that? Drive GUI?
- Homing: I think of simply use the built-in homing method of lcnc, the implementation in the hal comp seems to be a bigger time effort. Here a question, in case the homing switch is reached (digital I/O of another EL card) how to set the position feedback of the kollmorgen servo to zero.
- Enable the drive is working, disable is buggy -- need to correct this
Sorry for the lengthy message, but maybe you have some hints on one of the issues. I'll definitly take a look at the other thread and your provided info. Thanks again!
BR Franz