control a solenoid from M3 command

Post anything you want to discuss with others about the software.

control a solenoid from M3 command

Postby voyager1972 » Mon Apr 01, 2024 10:45 am

is it possible to turn a a solenoid valve on or off with the m4 command in uccnc , so that when the spindle is on the air is off ,and how is it achieved.
voyager1972
 
Posts: 13
Joined: Thu Apr 16, 2020 8:56 pm

Re: control a solenoid from M3 command

Postby formantjim » Mon Apr 01, 2024 2:13 pm

This is very easy to do select the relays in the setup for the spindle.
I do something similar but reversed to you when the spindle is running and on I have the air blasting away and when the spindle is off the solenoid shuts the air off. You can choose how it operates .
Attachments
Screenshot 2024-04-01 100757.png
formantjim
 
Posts: 73
Joined: Fri May 31, 2019 5:28 pm

Re: control a solenoid from M3 command

Postby voyager1972 » Mon Apr 01, 2024 4:04 pm

thanks for the reply..
my m3 relay is pin 14 port 2 , how do i get that to operate the relay connected to the pneumatic solenoid ?
voyager1972
 
Posts: 13
Joined: Thu Apr 16, 2020 8:56 pm

Re: control a solenoid from M3 command

Postby voyager1972 » Mon Apr 01, 2024 4:23 pm

just going through uccnc setup , can i use my m3 pin 14 port 2 to trigger another output that i connect the relay to ?
voyager1972
 
Posts: 13
Joined: Thu Apr 16, 2020 8:56 pm

Re: control a solenoid from M3 command

Postby formantjim » Mon Apr 01, 2024 5:31 pm

You can indeed do that in fact any output you are not using can be assigned to the task.
I'm doing a retrofit of a Tree 325 with UCCNC and will be using a relay similar to your application where it will inhibit the use of the tool holder whilst the spindle is running as a safety feature.
Attachments
Screenshot 2024-04-01 132355.png
formantjim
 
Posts: 73
Joined: Fri May 31, 2019 5:28 pm

Re: control a solenoid from M3 command

Postby voyager1972 » Mon Apr 01, 2024 5:56 pm

thanks for your help , it is all becoming clear now how it works...it takes me a while to get my head around these things, a safety feature is also what i am trying to implement , i will get it hooked up in the next few days and let you know how i got on.
voyager1972
 
Posts: 13
Joined: Thu Apr 16, 2020 8:56 pm

Re: control a solenoid from M3 command

Postby voyager1972 » Tue Apr 02, 2024 12:13 pm

the breakout board i use is a ucbb , the manual states "The outputs are capable to drive 24V voltage levels and upto 1Amps of current with integrated Nchannel power mosfets."
im curious , can a 24v solenoid be connected directly to an output ??
voyager1972
 
Posts: 13
Joined: Thu Apr 16, 2020 8:56 pm

Re: control a solenoid from M3 command

Postby formantjim » Tue Apr 02, 2024 1:58 pm

Yes you can that is exactly what I'm doing with mine. As a safety measure I'm placing a diode across the coil to prevent the back EMF creating any issues. I'm sure some people here might chip in and say one does not need that as the MOSFET can handle it but I'm cautious. I too am using the UCBB.
formantjim
 
Posts: 73
Joined: Fri May 31, 2019 5:28 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 9 guests