coolant mist pulses
- Ismacr63
- Offline
- Premium Member
- Posts: 104
- Thank you received: 4
I've been looking around the forum for the possibility of having the coolant turn on and off every X seconds.
The information I've found is pretty confusing for me.... I'd really appreciate your help once again.
I hope I'm not too annoying asking about every thing I come across.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19350
- Thank you received: 6479
linuxcnc.org/docs/2.9/html/man/man9/siggen.9.html
it will do the same time on and off, so might not be exactly what you want, ex. at 0.5Hz it will do 1sec on and 1sec off.
There are other ways also, so we need to know if you do need separate times for on and off.
Please Log in or Create an account to join the conversation.
- Ismacr63
- Offline
- Premium Member
- Posts: 104
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19350
- Thank you received: 6479
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17858
- Thank you received: 4765
and drive the oneshot component with the siggen clock pin, then set the on time
with the onseshot width pin.
The oneshot component has a reset input that could be used for enabling
the output with the coolant-on signal
Please Log in or Create an account to join the conversation.
- Ismacr63
- Offline
- Premium Member
- Posts: 104
- Thank you received: 4
Can it be adapted to the parallel port?
I thank you very much for the help but I'm such a newbie that everything sounds like Chinese to me T_T
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17858
- Thank you received: 4765
something like this:
loadrt siggen
addf siggen.0.update servo-thread
setp siggen.0.frequency .1 # 10 second period)
loadrt oneshot
addf oneshot.0 servo-thread
setp oneshot.0.width 2 # 2 second on time
loadrt not
addf not.0 servo-thread
net cool-trigger siggen.0.clock oneshot.0.in
net coolant-out oneshot.0.out [some_parallel_port_pin]
net coolant-on not.0.in
net gate-coolant not.0.out oneshot.0.reset siggen.0.reset # when coolant is off, reset both siggen and oneshot
Please Log in or Create an account to join the conversation.
- Ismacr63
- Offline
- Premium Member
- Posts: 104
- Thank you received: 4
Tried to test it but received an error. If I remove the lines that I have added in hal linuxcnc starts normallyYes, all this will work on a parallel port.
something like this:
loadrt siggen
addf siggen.0.update servo-thread
setp siggen.0.frequency .1 # 10 second period)
loadrt oneshot
addf oneshot.0 servo-thread
setp oneshot.0.width 2 # 2 second on time
loadrt not
addf not.0 servo-thread
net cool-trigger siggen.0.clock oneshot.0.in
net coolant-out oneshot.0.out [some_parallel_port_pin]
net coolant-on not.0.in
net gate-coolant not.0.out oneshot.0.reset siggen.0.reset # when coolant is off, reset both siggen and oneshot
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3923
- Thank you received: 1684
[qtpyvcp.app.launcher][[36mINFO[0m] Loading POSTGUI_HALFILE: /home/ismael/linuxcnc/configs/Fresadora1/probe_basic_postgui1.hal (launcher.py:96)
not: already exists
Make sure you don't have another 'addf not.0 servo-thread' in your 'probe_basic_postgui1.hal'. If you do you need to use another number (eg 'not.1')
Please Log in or Create an account to join the conversation.
- Ismacr63
- Offline
- Premium Member
- Posts: 104
- Thank you received: 4
Please Log in or Create an account to join the conversation.