- Posts: 21
- Thank you received: 0
Intermittent air blast?
5 years 8 months ago #199493
by kotlikm
Intermittent air blast? was created 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.*?
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 to join the conversation.
5 years 8 months ago #199506
by rodw
Replied by rodw on topic Intermittent air blast?
siggen should do that for you with a square wave.
Please Log in to join the conversation.
5 years 8 months ago #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
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 to join the conversation.
5 years 8 months ago #199515
by andypugh
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,
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)
Replied by andypugh on topic Intermittent air blast?
kotlikm wrote: 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,
Code:
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)
Please Log in to join the conversation.
5 years 8 months ago #199518
by chris@cnc
i have great difficulties with these components. Although of course they are very universal and flexible.
Replied by chris@cnc on topic Intermittent air blast?
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:andypugh wrote:
It's pretty easy.
i have great difficulties with these components. Although of course they are very universal and flexible.
Please Log in to join the conversation.
5 years 8 months ago #200160
by andypugh
Replied by andypugh on topic Intermittent air blast?
Did you get there?
Please Log in to join the conversation.
5 years 8 months ago #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 to join the conversation.
Time to create page: 0.272 seconds
