Thread: MACH3 Plasma help please
Hybrid View
-
02-01-2017 #1
It's not just you!
From what I can work out, the relays share control with the stepper controls, but SW3-5 allow you to disconnect the relays, and there is an option to use Relay3 via the coolant timer system. However I can't see anywhere that actually tells you what pins control the relays.Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
-
02-01-2017 #2
The pins to control the relays are on page 8 in the table I have one of these bobs it take a bit of getting used to but they are good.
..Clive
The more you know, The better you know, How little you know
-
02-01-2017 #3
Clive, this is good news as I've not come across anyone confessing to have one !
My system is using 4 axis (as A is used as a slave) - so in simple idiot proof terms, (remembering that I've not been able to interpret that table), what do I need to do to drive one of these relays on and off from G code or otherwise ? Presumably there are links and DIP switches as far as hardware is concerned, then some set up in MACH-3 ?
I'd much appreciate your input.
-
03-01-2017 #4I'd much appreciate your input
I have not altered my setup for some time so am a bit rusty on the BOB but I will get back to you tomorrow after I have checked it out re the pins...Clive
The more you know, The better you know, How little you know
-
03-01-2017 #5
Yes Clive just the one relay, which I can connect to any of the three relay output contacts of the BOB.
I am unclear how Mach treats these outputs. Is it by M code, do I need to write a diddy bit of code or what?
-
03-01-2017 #6
You need to allocate the output pin to an output in ports and pins, then activate that output either via an M-code, or via a Macro. I think you may be able to do it via the macropump by monitoring when certain things are active i.e. when the torch is active, but hopefully DaveK will be along shortly and tell us how he activates his extractor.
Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
-
03-01-2017 #7
How does your G-code turn on/Off the Torch. Does it use M3/M5.?
If so then just edit the M3/M5 macros so they turn output on/off.
In the M3 enter this at point want to come on:
ActivateSignal(Output 2) ...................change number to suit your output.
In M5 put this when want to go off:
Sleep 3000 ...................................(Pause before Output OFF Change number to suit delay in Milli/Secs.)
DeActivateSignal(Output 2) .................(change number to suit your output.)
Or if you want can just use the coolant codes and enter enter M7 or M8 in your code at the point want on Output on and setup coolant the Outputs in spindle setup to Output# you used.
Then in code to turn off enter:
G4 P3 (change number for pause time in secs)
M9Last edited by JAZZCNC; 03-01-2017 at 01:50 PM.
-
03-01-2017 #8
Ok My bob is the PCL6x But is similar. I may be shot for this but I think it would work, In Mach go to ports and pins page then click on tab spindle setup. Then untick the flood/mist relays and enter say 3 in the for the flood relay you could control a relay with flood M8 to turn on and M9 to turn off in your gcode file.
Then under the (output signals tab) then set output #3 to port 1 and pin 16 (you might have to change active low)
You have to set SW3 to on on the BOB.
I stress I am not an expert in Mach3 so can somebody please check this
Edit: it took me so long to answer I did not see Deans post but he for sure will check the aboveLast edited by Clive S; 03-01-2017 at 04:15 PM. Reason: added text
..Clive
The more you know, The better you know, How little you know
-
03-01-2017 #9
SORTED !
On the BOB DIP switch 4 set on = "Relay 2 is turned ON"
On Ports and Pins "Output 2" = Port 1 Pin 17
On Spindle Setup "Disable Mist / Flood Relays" = UNCHECKED, M08 set to "Relay 2"
In hardware - abandon Relay 3 and use Relay 2 - this I think is the crucial bit as RELAY 3 IS A SPECIAL CASE !!!!!!!!
So now I can turn on with an M08 and Off with an M09 at will and can presumably also tweak the post processor to do as has been suggested. I think ALL my issues were caused as Relay 3 is a special case on this BOB
Very many thanks to those whose help and support got me here - much appreciated.
-
03-01-2017 #10
Ok what clive said is fine but let me shed some light of how it works.
On the Board your using Lpt connections which is connector XP21. Pin 14 16 & 17 can be used for the Relays. However each relay can be deactivated using SW3, 4,5 also pin 14 can be used dual purpose. When SW2 is ON pin 14 provide PWM signal. SW2 off and it works like normal Output and turning Relay 3 on/off. Also when used for coolant By the looks if it there's circuit to pulse the relay on/off if required. Suspect you'll just wind Pots full for constant ON.
So to use any relay First make sure they are turned ON using SW3,4,5. If using Rly3 which uses pin 14 then you need SW2 OFF and set the timer pots so full on all the time.
Then in Mach3 ports/pins/Outputs/ Enable and Set output numbers #1 =pin 14, #2 = 16 #3 =17
This will give you full access to all your Relays.
Now if you want to use Clives approach after setting up in spindle control when command M8 Relay will turn ON Command M9 will turn it off. Try testing this using MDI.
However if you want more control like for pausing or doing some checks before actually turning on/off. IE Checking Torch is OFF or Axis stopped moving etc then using Macro will give more control.
This can be done by inserting code into existing macro like M3/M5 or creating your own custom (M) macros and placing reference to that in your G-code. IE: Lets say made two and called M901 M902 G-code look something like this.
(Start program)
M901 (activate custom macro which turn fans on using output #2 and switches kettle on using output #3 waits for it to boil by watching input #3)
M3 (Torch On)
G1 x345 y34
etc etc
M5 (Torch off)
M902 ( Activate custom macro which Wait 10s and then checks torch is off and axis stopped moving then turn output#2 OFF and puts kettle back on using out#3 and waits untill boiled watching input#3.)
Ok little extreme with the kettle but possible and gives idea why would use Macro rather than simply using Coolant M codes.
Hope this helps and clears thing up little.
Edit: Bugger see your sorted could have saved my poor fingers. . LolLast edited by JAZZCNC; 03-01-2017 at 05:26 PM.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
plasma table running mach3 will run through g code but wouldnt move motors or dro
By whensparksfly in forum Plasma Table MachinesReplies: 1Last Post: 08-03-2016, 06:41 PM -
Plasma, Mach3, Sheetcam and a Proma Torch height controller..
By Davek0974 in forum Plasma Table MachinesReplies: 2Last Post: 14-04-2014, 03:49 PM -
My first CNC plasma
By Walterronny in forum DIY Plasma Build LogsReplies: 30Last Post: 20-02-2013, 02:13 AM -
Brit made plasma THC for Hypertherm / Mach3 users
By stirling in forum Manufacturer NewsReplies: 3Last Post: 13-02-2013, 09:58 AM -
plasma cad
By jamied in forum Computer SoftwareReplies: 6Last Post: 20-08-2010, 03:33 PM
Bookmarks