Intermittent air blast?

More
20 Feb 2021 02:35 #199493 by kotlikm
I am in the process of wiring up a solenoid to get an air blast setup on my CNC. I am curious if there is any way to create an intermittent blast as opposed to a binary on/off.

For example id like it to blow air for 2sec, off for 2sec, blow for 2sec, etc.

Is there any way to configure this in a hal? Maybe using timedelay.*?

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

More
20 Feb 2021 09:42 #199506 by rodw
Replied by rodw on topic Intermittent air blast?
siggen should do that for you with a square wave.

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

More
20 Feb 2021 10:18 #199511 by chris@cnc
Replied by chris@cnc on topic Intermittent air blast?
Hi,
look here... If my 4. axis running i will try to rename and write useful doku. It seems i am not alone to get one easy on / off switch.

forum.linuxcnc.org/24-hal-components/411...lay-flip-flop#195814

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

More
20 Feb 2021 11:25 - 20 Feb 2021 11:27 #199515 by andypugh
Replied by andypugh on topic Intermittent air blast?

For example id like it to blow air for 2sec, off for 2sec, blow for 2sec, etc.


It's pretty easy.

First set up a " siggen " component making a square wave at the right frequency, and just leave that running contnuously.
Then create an " and2 " component where one input is the square wave and the other is the coolant-flood output.
The output of the and2 will pulse at the siggen frequency only when coolant is on.

For more flexibility you could use a " mux_generic " component of type bit with 4 inputs and 2 select bits.
(loadrt mux_generic config=bb4)
Wire one select to coolant-flood and one to coolant-mist .
Then,
setp mux-gen.0.in-bit-00 0
setp mux-gen.0.in-bit-01 1
net pulse siggen.0.clock => mux-gen.0.bit-02-in
setp mux-gen.0.in-bit-03 1
net flood iocontrol.0.coolant-flood mux-gen.00.sel-bit-00
net mist iocontrol.0.coolant-mist mux-gen.00.sel-bit-01

This will give continous for coolant-flood, pulse for coolant-mist, and continuous for both (but it would be possible to do something else with both-on)
Last edit: 20 Feb 2021 11:27 by andypugh.

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

More
20 Feb 2021 12:00 #199518 by chris@cnc
Replied by chris@cnc on topic Intermittent air blast?


It's pretty easy.

well, for an mechanic it's not easy. my mind is more analog. push one button and get result. If i should push 3 together including morse code is my mind overflow :blink:
i have great difficulties with these components. Although of course they are very universal and flexible.
The following user(s) said Thank You: rodw

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

More
26 Feb 2021 01:02 #200160 by andypugh
Replied by andypugh on topic Intermittent air blast?
Did you get there?

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

More
26 Feb 2021 01:05 #200161 by kotlikm
Replied by kotlikm on topic Intermittent air blast?
I did yes thank you. Got some help getting the file just right but it is working great, flood is full air and mist is half second pulses.

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

Moderators: cncbasher
Time to create page: 0.464 seconds
Powered by Kunena Forum