Ethercat HAL driver
I do not have the Kollmorgen AKD servo drive, but if this helps you a little with your project, you broken down the control word with the correct form, this would be the enablement pin I think
<complexEntry bitLen="3" halPin="enable-operation" halType="bit"/>
Greeting
Chimeno
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
- Posts: 48
- Thank you received: 10
lcec_conf: ERROR: Invalid complexEntry bitLen 0
it doesn't seem to like a bitlength of 0 - is there a different attribute like bitNum?
I can see why bit length might be an error.
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
- Posts: 48
- Thank you received: 10
I did some researching, and it looks like the Kollmorgen AKD has a State Machine to enable the drive that consists of the first four bits of that control word.
To enable the axis I need to set that control word to 6, and then 15 to enable the amp and tell the drive to follow the set points over the bus.
Anyone have an idea how I would implement that logic?
if I could write teh control word to 6 when the estop was cleared and 15 when the machine was enabled that might work (then back to 6 when the machine disable) but I'm not sure how to implement that logic.
Best Regards,
Paul
Please Log in or Create an account to join the conversation.
sorry I was wrong, memory fails me, I attach a new file with the breakdown of the word status,Hmm, I tried implementing your change, but get an error on startup now:
lcec_conf: ERROR: Invalid complexEntry bitLen 0
it doesn't seem to like a bitlength of 0 - is there a different attribute like bitNum?
I can see why bit length might be an error.
I think you have to look at what status pins you need, for example word 6 is (0110) and 15 (0001 0101)To enable the axis I need to set that control word to 6, and then 15 to enable the amp and tell the drive to follow the set points over the bus.
Greeting
Chimeno
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
- Posts: 48
- Thank you received: 10
Best Regards,
Paul
Please Log in or Create an account to join the conversation.
- papagno-source
- Offline
- Senior Member
- Posts: 72
- Thank you received: 2
Exist a complete procedure for installation ethercat on actual master 2.9-pre0 on debian Wheezy ?
Thanks
Please Log in or Create an account to join the conversation.
Here in the forum there are several examples of installations, simply install
1 install "ec-debianize" github.com/sittner/ec-debianize
2 install "linuxcnc-ethercat" github.com/sittner/linuxcnc-ethercat
any questions you have here we are.
regards
Chimeno
Please Log in or Create an account to join the conversation.
- papagno-source
- Offline
- Senior Member
- Posts: 72
- Thank you received: 2
Excuse, i don't understand.
I dowload with git actual linuxcnc-dev.
Complile it on debian whhezy rtai.
After copy manually point 1 and pint 2 up link file and remake ?
Excuse i want know first step.
Please Log in or Create an account to join the conversation.
Currently the new version of ec-debianize does not work for systems with rtai kernel, it can work in rtai but my experience in ethercat is that you would have to change to rt-preempt kernel.Complile it on debian whhezy rtai.
here I leave you the link of how it is installed
forum.linuxcnc.org/27-driver-boards/3559...w-to-install?start=0
regards
Chimeno
Please Log in or Create an account to join the conversation.
I am hoping someone here has dealt with Beckhoff EL5151 and EL5152 terminals, as I cannot get mine working.
Last year I finally got my Hurco mill running again using EtherCAT with Beckhoff terminals. I have all of the them working correctly except for the EL5151 and EL5152 encoder terminals. I have several of these and I cannot get them working with LinuxCNC. I have looked at the pins through HAL meter and cannot see any change, so I temporarily fixed my problem last year with adding a parallel port with the encoders fed back through to LCNC. Speed is the issue and I want to get the EL515x's working. I am sure that there is a parameter that needs to be set or something to get them working. Just baffling there is no change in HAL meter when rotating the encoder. Nothing under any other pin.
I have tried using Beckhoff TwinCAT in the past, but my trial has expired plus I never could link the PC to a EK1100 coupler so that I could change things in CONFIG mode.
So I have been trying to upload through C prompt to re-set the encoder modules back to factory settings so that I can hopefully get them working. I looked up some of the configuration data on Beckhoff's website and then tried different arguments with no avail. I am not verse in this so, I have been throwing darts hoping to get close. I know there have been some others here on the forum under a different thread that have done this approach to set a EL7041 stepper terminal with encoder input, and change the encoder from external to internal. So I assume I can do this same type of process to re-set the EL515x's or get them into the correct mode.
I tried:
ethercat -p 3 upload --type uint8 0x6C6F6164
and got a 'upload' takes 2 arguments
then this
ethercat -p 3 upload --type uint8 0x6C6F6164 0x11
then
ethercat -p 3 upload --type uint8 0x7000:0 0x11
then tried:
ethercat upload -p 3 -t uint8 1011:0 0x01
got this back:
SDO transfer aborted with code 0x0602000: This object does not exist
in the object directory
then tried:
ethercat upload -p 3 -t uint8 0x6C6F6164 1011:0
got this back:
Invalid SDO index '0x6C6F6164'
What I am trying to do is simply reset the terminals back to where they are in regular encoder mode. Any help will be greatly appreciated. This is practically my last problem to get working.
Here is some links to Beckhoff where I was getting the info:
infosys.beckhoff.com/english.php?content....html#1523863051&id=
infosys.beckhoff.com/english.php?content...=3718412388311428681
infosys.beckhoff.com/english.php?content...=4909407311023276355
Thanks,
Robert
Please Log in or Create an account to join the conversation.