Parallel port stepper control and etherCAT I/O

More
07 Nov 2022 23:40 #256173 by rodw
What is the expected state of 
lcec.0.D3.din-0

Sometimes, the expected state of the ethercat pin is different to what LCNC provides. eg it wants true when lcnc is false or vice versa.
If this is the case, you can use the not component to invert the signal
linuxcnc.org/docs/devel/html/man/man9/not.9.html

Please Log in or Create an account to join the conversation.

More
08 Nov 2022 01:34 - 08 Nov 2022 03:43 #256182 by CORBETT

I tried to trigger LinuxCNC Estop button, but did not work. Only HAL config shows that estop-ext signal changes the state.
[code]net estop-ext <= lcec.0.D3.din-0
 
[/code]

 


O.R.
I have been busy with work for last few days and still busy tonight with paperwork.  Rod can check the code for 2.8 and fix below if I am not back in time

Ok you need to do the E-stop loop.  This is my code from 2.7, but I will have to look up 2.8, but you will see what needs to happen.  Just comment out the one line with # and then add the other line with your ecat pin

net voltage-on  iocontrol.0.emc-enable-in   lcec.0.D3.din-0
#net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in


rodw wrote:
Sometimes, the expected state of the ethercat pin is different to what LCNC provides. eg it wants true when lcnc is false or vice versa.
If this is the case, you can use the not component to invert the signal


If you need to invert the pin you can do;    lcec.0.D3.din-0-not


I'm super busy, will be back later,
Robert
 
Last edit: 08 Nov 2022 03:43 by CORBETT. Reason: make it clearer
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
23 Nov 2022 22:30 #257524 by O.R
Ok, i'm now at that point where i could test linear encoder. There is couple hundreds of an mm belt backlash under load that might could be compensated with linear encoder. If CORBETT or somebody else have time to show an example of .hal setup for software linear encoder system, that would be nice.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds
Powered by Kunena Forum