- Posts: 43
- Thank you received: 14
Please Log in or Create an account to join the conversation.
roschi wrote: Hello,
This is a normal/expected reaction of the drive. Because some parameters have to be configured druing change the states of the bus. I guess that you have to set the operation mode to value 8. --> ethercat download -t uint8 -p0 0x6060 0 8 (see the normed drive profile scheme CIA 402 and also the original XML at the end, also the 'startup' tab in TwinCAT)
It was my mistake typing here, I mean 0x6040!!. For this drive I think it is needed to put the bus state to OP like I said before.roschi wrote: EDIT:
ethercat download 0x6041 0x0 6 --> This does not work (see post #44649) because the drivecontrol word has address 0x6040!
Perhaps there is no need to put the bus state to OP for simple non cyclic testing (see Video for ESTUN drive)
EDIT
I use github.com/sittner. There is a mistake in the makefile, they forgot to include "hal/drivers/ethercat/lcec_el5101.o \". Now I can load lcec without problem.roschi wrote: Which source have you used? From github.com/sittner or from github.com/aschiffler. Right now I can not get on the problem. Just some ideas: Is the file lcec_el5101.c compiled during build. Perhaps there went somthing wrong with the makefile or the linker commands.
Please Log in or Create an account to join the conversation.
Have you activated the "cylic-mode" in TwinCAT configurator? This is the button with the circle arrow.I check that with TwinCAT and it gives an error if I try to change to OP in config mode.
Please Log in or Create an account to join the conversation.
roschi wrote:
Additionally you have to add the functionsCode:addf lcec.read-all servo-thread addf motion-command-handler servo-thread addf motion-controller servo-thread addf lcec.write-all servo-thread ....(some other needed)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Coyote wrote: ...
What is begging me is the fact that you read inputs first, you process and then you output the new states. In some literature this is so called IPO cycle (input/process/output). From what I understood a single frame of ethercat consists of output that is sent from master and slave encodes the into the same frame on the fly its inputs.
...
Please Log in or Create an account to join the conversation.