Controlling a compressor with Linuxcnc.
- Creative25
- Offline
- Premium Member
Less
More
- Posts: 124
- Thank you received: 8
05 Nov 2024 06:11 #313795
by Creative25
Controlling a compressor with Linuxcnc. was created by Creative25
I have a serious problem with our power company.
The 60 amps connection to our house is not what they say. I have serious voltage drops between utilities transformer and our house and they will not fix it. Looks like common practice in our area.
I can reliably cut at 35 amps.
if I go higher depending how much power my neighbors are using The plasma cutter gets an undervoltage and cuts out.
So the table happily cuts until the compressor starts.
Then the plasma cuts out because it gets an undervoltage. Qtplasmac pauses and gives an arc lost warning.
If the torch is off during the probing and the compressor kicks in the program keeps running until the compressor cuts out because of undervoltage.
So I can not run plasma and compressor at the same time.
So I was wandering If I add a relay an electric unloaded valve and a pressure sensor to the compressor. Would it be possible to control the compressor with Linuxcnc.
I was thinking about the following. When pressure drops to a certain level. Well above what the plasma needs the program pauses. Preferably at the end of a cut.
then the compressor starts. When the tank is full the program resumes.
Is that possible?
The 60 amps connection to our house is not what they say. I have serious voltage drops between utilities transformer and our house and they will not fix it. Looks like common practice in our area.
I can reliably cut at 35 amps.
if I go higher depending how much power my neighbors are using The plasma cutter gets an undervoltage and cuts out.
So the table happily cuts until the compressor starts.
Then the plasma cuts out because it gets an undervoltage. Qtplasmac pauses and gives an arc lost warning.
If the torch is off during the probing and the compressor kicks in the program keeps running until the compressor cuts out because of undervoltage.
So I can not run plasma and compressor at the same time.
So I was wandering If I add a relay an electric unloaded valve and a pressure sensor to the compressor. Would it be possible to control the compressor with Linuxcnc.
I was thinking about the following. When pressure drops to a certain level. Well above what the plasma needs the program pauses. Preferably at the end of a cut.
then the compressor starts. When the tank is full the program resumes.
Is that possible?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19092
- Thank you received: 6394
05 Nov 2024 12:27 #313811
by tommylight
Replied by tommylight on topic Controlling a compressor with Linuxcnc.
Probably yes, it will be a bit tricky to figure out when to stop, one option would be when motion is rapid (going from one cut to another), still, i think you would need another sensor to notify LinuxCNC it is safe to continue.
2 pressure sensors should do just fine, one for low and the other for high, or use the existing one in compressor for the high side, but this complicates wiring and logic a bit more.
2 pressure sensors should do just fine, one for low and the other for high, or use the existing one in compressor for the high side, but this complicates wiring and logic a bit more.
Please Log in or Create an account to join the conversation.
06 Nov 2024 00:31 - 06 Nov 2024 00:35 #313865
by phillc54
Replied by phillc54 on topic Controlling a compressor with Linuxcnc.
The following should work but has only been tested in a sim. Use two pressure levels like Tom said and change the postgui file hal pins to suit how you wire up the pressure switches. All three files need to be in your plasma machine config directory. Due to response times you will need to move the torch to a suitable start point using the
cut recovery panel
after the job has paused.
custom_postgui.hal
qtplasmac_custom.py
user_periodic.py
custom_postgui.hal
Warning: Spoiler!
# Keep your post GUI customisations here to prevent them from
# being overwritten by updates or pncconf/stepconf changes.
net plasmac:low-pressure <input_pin_detecting_low_pressure>
net plasmac:high-pressure <input_pin_detecting_high_pressure>
qtplasmac_custom.py
Warning: Spoiler!
''' qtplasmac_custom.py - custom python code for qtplasmac '''
self.pressurePause = False
user_periodic.py
Warning: Spoiler!
''' user_periodic.py - custom periodic code for qtplasmac '''
if self.pressurePause:
if STATUS.is_auto_paused() and hal.get_value('plasmac:high-pressure'):
self.ext_resume(True)
self.pressurePause = False
elif not STATUS.is_auto_paused():
self.pressurePause = False
if hal.get_value('plasmac.state-out') in [6, 7, 8, 9, 10, 11, 12] and \
self.w.torch_enable.isChecked() and \
hal.get_value('plasmac:low-pressure'):
self.ext_pause_only(True)
self.pressurePause = True
Last edit: 06 Nov 2024 00:35 by phillc54.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
06 Nov 2024 08:45 #313881
by meister
Replied by meister on topic Controlling a compressor with Linuxcnc.
i use this sensor to check the compressor pressure,
but you need an analog input for that:
www.amazon.de/gp/product/B07YKZ773Z
but you need an analog input for that:
www.amazon.de/gp/product/B07YKZ773Z
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.210 seconds