Toggle Signal as CNC Softwaredetection
- sutter.michi
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
06 Nov 2018 00:26 #120063
by sutter.michi
Toggle Signal as CNC Softwaredetection was created 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
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.
06 Nov 2018 02:21 #120068
by alan_3301
Replied by alan_3301 on topic Toggle Signal as CNC Softwaredetection
look at this: linuxcnc.org/docs/devel/html/man/man9/charge_pump.9.html
Please Log in or Create an account to join the conversation.
06 Nov 2018 07:42 #120079
by rodw
Replied by rodw on topic Toggle Signal as CNC Softwaredetection
Please Log in or Create an account to join the conversation.
- sutter.michi
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
06 Nov 2018 09:02 #120087
by sutter.michi
Replied by sutter.michi on topic Toggle Signal as CNC Softwaredetection
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
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.
- sutter.michi
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
06 Nov 2018 09:19 #120088
by sutter.michi
Replied by sutter.michi on topic Toggle Signal as CNC Softwaredetection
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
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.
07 Nov 2018 15:01 #120173
by andypugh
Replied by andypugh on topic Toggle Signal as CNC Softwaredetection
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.
use out-2 if 250Hz is better for you.
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
Please Log in or Create an account to join the conversation.
- sutter.michi
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
09 Nov 2018 23:47 #120363
by sutter.michi
Replied by sutter.michi on topic Toggle Signal as CNC Softwaredetection
Thanks a lot guys!!
I now have programmed the code below in the hal file. It works perfectly
Best regards
Michi
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.230 seconds