Toggle Signal as CNC Softwaredetection

More
06 Nov 2018 00:26 #120063 by sutter.michi
Hi @ All!

I designed a CNC interface which detects if the CNC Software is running or not, to protect my machine from undefined movements when the pc is starting or the software is not running.
I need to toggle one of the output Pins with 300Hz and if my Interface detect this signal, the enable for the spindle and for the motor drivers would be given.

Is there any way to produce such a 300Hz toggle signal, as soon as Linunx CNC has startet?

I am quite shure it is possible, but don`t know ecaxtly where.

Thanks a lot and best regard!!

Michi

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

More
06 Nov 2018 02:21 #120068 by alan_3301

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

More
06 Nov 2018 07:42 #120079 by rodw

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

More
06 Nov 2018 09:02 #120087 by sutter.michi
Ok that is exactly what I need! Thanks a lot guys!!

I have to write this in the hal file right? But which way can I connect it with the right pin on the Parallelport?
And starts this signal as soon as Linunx CNC is startet, or have I to define that?

Michi

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

More
06 Nov 2018 09:19 #120088 by sutter.michi
I found something there:

wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps

I only have to write that in the Hal.ini file right?

I would try it this way :)


Michi

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

More
07 Nov 2018 15:01 #120173 by andypugh
Yes, the charge-pump goes in the HAL file (not the INI file).
If your hardware interlock can run at 500Hz that would be a bit more convenient, as that is the easy frequency for charge-pump in a 1kHz servo-thread.
loadrt charge_pump
addf charge-pump servo-thread
net charge-pump-toggle charge-pump.out => parport.0.pin-14-out
use out-2 if 250Hz is better for you.

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

More
09 Nov 2018 23:47 #120363 by sutter.michi
Thanks a lot guys!!

I now have programmed the code below in the hal file. It works perfectly
:)

Best regards

Michi

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

Time to create page: 0.164 seconds
Powered by Kunena Forum