Motion detection signal

More
04 May 2016 05:51 - 04 May 2016 05:52 #74210 by sdf
Motion detection signal was created by sdf
Is there a way to send a signal to pin9 in the LPT each time that any of the the axis move?
any of the the drivers get pulses, I need to get 1 logic in pin 9, when non of the drivers get pulses pin 9 go to 0 logic.
Something like that can be done with linux cnc??

I did it at at the past on mach3 using brain script and is was very easy.
any equivalent for that in linux cnc??
Last edit: 04 May 2016 05:52 by sdf.

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

More
04 May 2016 11:59 #74219 by Todd Zuercher
Perhaps using motion.in-position connected to parport.0.pin-09-in-not would do what you need?

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

More
04 May 2016 15:44 #74233 by andypugh
Replied by andypugh on topic Motion detection signal

Is there a way to send a signal to pin9 in the LPT each time that any of the the axis move?


There may be many ways, depending on exactly how you want the system to behave.

What are you using for step generation?

I would suggest setting up a Hal Meter to watch the motion.in-position pin that Todd mentioned first, to see if that has the required behaviour.
You can find the HAL Meter in the "Machine" menu of Axis, or you can start it from the command-line with "halcmd loadusr halmeter"

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

More
04 May 2016 17:35 - 04 May 2016 17:35 #74239 by Todd Zuercher
If you are just wanting and indicator of when a program is running, and when it is finished. a better pin to use might be halui.mod.is-auto. That pin is true whenever a g-code program is exicuting, and would stay on if the file were to say pause while the spindle starts or the axis movement stops while something else happens (say a tool change). You'd connect that to parport.0.pin-09-in (since it wouldn't need the not).

Like Andy said there are lots of possible ways to accomplish this. The best way may depend on what exactly you're trying to accomplish.
Last edit: 04 May 2016 17:35 by Todd Zuercher.

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

Time to create page: 0.340 seconds
Powered by Kunena Forum