coolant mist pulses
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
15 Nov 2024 18:23 #314548
by PCW
Replied by PCW on topic coolant mist pulses
Yes, there's another "not" component instantiated somewhere.
probably best to change the loadrt not command in the main hal
file so it instantiates all the "not" components needed
probably best to change the loadrt not command in the main hal
file so it instantiates all the "not" components needed
The following user(s) said Thank You: Ismacr63
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
15 Nov 2024 18:36 #314549
by PCW
Replied by PCW on topic coolant mist pulses
Another trick would be to sidestep the "not" issue
and use another (hopefully unused) function to get
the not functionality:
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 logic personality=2050
addf logic.0 servo-thread
setp logic.0.in01 true
net cool-trigger siggen.0.clock oneshot.0.in
net coolant-out oneshot.0.out [some_parallel_port_pin]
net coolant-on logic.0.in-00
net gate-coolant logic.0.nand oneshot.0.reset siggen.0.reset # when coolant is off, reset both siggen and oneshot
also note that "coolant-on" is a made up signal name, you need to replace it with the actual
signal name used in your configuration for this function
and use another (hopefully unused) function to get
the not functionality:
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 logic personality=2050
addf logic.0 servo-thread
setp logic.0.in01 true
net cool-trigger siggen.0.clock oneshot.0.in
net coolant-out oneshot.0.out [some_parallel_port_pin]
net coolant-on logic.0.in-00
net gate-coolant logic.0.nand oneshot.0.reset siggen.0.reset # when coolant is off, reset both siggen and oneshot
also note that "coolant-on" is a made up signal name, you need to replace it with the actual
signal name used in your configuration for this function
The following user(s) said Thank You: Ismacr63
Please Log in or Create an account to join the conversation.
- Ismacr63
- Offline
- Premium Member
Less
More
- Posts: 104
- Thank you received: 4
15 Nov 2024 19:01 #314550
by Ismacr63
I changed
Loadrt not for loadrt not count=3 in main hal.
In postgui hal I have commented loadrt not
I also realized that I didn't change the name of "coolant-on" to the one in my configuration.
Now it works perfect.
What for any of you is a minute for me turns into days T_T
but I really like it because I'm learning a lot about linuxcnc.
thank you very much for the help.
Replied by Ismacr63 on topic coolant mist pulses
I made it work with the "NOT"Another trick would be to sidestep the "not" issue
and use another (hopefully unused) function to get
the not functionality:
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 logic personality=2050
addf logic.0 servo-thread
setp logic.0.in01 true
net cool-trigger siggen.0.clock oneshot.0.in
net coolant-out oneshot.0.out [some_parallel_port_pin]
net coolant-on logic.0.in-00
net gate-coolant logic.0.nand oneshot.0.reset siggen.0.reset # when coolant is off, reset both siggen and oneshot
also note that "coolant-on" is a made up signal name, you need to replace it with the actual
signal name used in your configuration for this function
I changed
Loadrt not for loadrt not count=3 in main hal.
In postgui hal I have commented loadrt not
I also realized that I didn't change the name of "coolant-on" to the one in my configuration.
Now it works perfect.
What for any of you is a minute for me turns into days T_T
but I really like it because I'm learning a lot about linuxcnc.
thank you very much for the help.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17858
- Thank you received: 4765
15 Nov 2024 19:28 #314553
by PCW
Replied by PCW on topic coolant mist pulses
LinuxCNC/HAL is very powerful and customizable once you get
over the learning curve, looks like you are getting there...
over the learning curve, looks like you are getting there...
The following user(s) said Thank You: Lcvette, Ismacr63
Please Log in or Create an account to join the conversation.
Moderators: KCJ, Lcvette
Time to create page: 0.105 seconds