PLASMA CNC Material detection system

More
07 Oct 2019 08:17 #147318 by adnanBaig
Hi everyone, i am a new comer to LINUXCNC and currently using MACH3 for my home brew CNC PLASMA cutter. I want to switch to LINUXCNC ASAP, but there are some obstacles due to my hardware configuration i have,

I use a relay system to detect material and for that i need to trigger some output pins during torch touch down and before the torch fires up, in MACH3, it`s a simple VB script but i wonder how can i achieve it using LINUXCNC.

here is an example of that code

Sleep(1000)
ActivateSignal(Output2) 'Turn ON probe sensing


Cfr = GetDro(18)
Code"G31 Z200 F500"
While Ismoving()
Wend

DeActivateSignal(Output2) 'Turn OFF probe sensing

Sleep(200)

Code"G92 Z0.00"
While Ismoving()
Wend

Code"G0 Z -3.00 F700" 'Pierce Height
While Ismoving()
Wend

Sleep(1000)





DoSpinCW()

Code"G4 P 1.1" ' Time delay

While Ismoving()
Wend


SetDro(18,Cfr)
While Ismoving()
Wend


A quick response to the problem would be much helpful.

Please Log in or Create an account to join the conversation.

More
07 Oct 2019 09:32 #147320 by rodw
I'll talk about the old school way first. Linuxcnc is a bit more sophisticated than Mach when it comes to probing. There is no need to script anything as it can be done in gcode

BigJohnT has a n example touchoff procedure
o<touchoff> sub
(#1 pierce height, #2 pierce delay, #3 cut height)
F10
G38.2 Z-1.75 (Probe to find the surface)
G91
G1 Z0.070 (Raise up to Z0)
G90
G92 Z0 (Set Z0)
G1 Z#1
M3 S1
M66 P0 L1 Q5 (Wait for Arc OK from Torch)
G4 P#2 (Pause for pierce delay)
F25
Z#3 (goto cut height)
o<touchoff> endsub
M2

See gnipsel.com/shop/plasma/plasma.xhtml

This can be expanded somewhat to probe down fast with G38.2 than probe up more slowly with G38.5
See: linuxcnc.org/docs/2.8/html/gcode/g-code.html#gcode:g38

You can turn your relays on and off from gcode using M62-M65
linuxcnc.org/docs/2.8/html/gcode/m-code.html#mcode:m62-m65

But the better way would be to implement Phill's amazing Plasmac config in the docs for V 2.8 and V 2.9
See linuxcnc.org/docs/2.8/html/plasma/plasmac-user-guide.html

and don't forget to review the plasma primer
linuxcnc.org/docs/2.8/html/plasma/plasma-cnc-primer.html

So if you go down the Plasmac path you would reconfigure your relays as per the circuit diagram in the primer as follows:

1. 1 x double pole or 2 x single pole relays to keep the sensing circuit disconnected when not in use (triggered by an output)
2. 1 x single pole relay which is activated on material contact. It is used to trigger an input which is your probe signal.
The following user(s) said Thank You: chimeno, thefabricator03, adnanBaig

Please Log in or Create an account to join the conversation.

More
07 Oct 2019 13:18 #147331 by tommylight
Use PlasmaC, it has everything you will ever need, and then some.
The following user(s) said Thank You: adnanBaig

Please Log in or Create an account to join the conversation.

More
08 Oct 2019 04:29 #147422 by mariusl
Hi Tommy
Where is the best place to go look to get information to get started on PlasmaC?

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
08 Oct 2019 06:32 #147434 by phillc54

Please Log in or Create an account to join the conversation.

More
08 Oct 2019 17:35 #147474 by mariusl
Thanks Phil
That is one hugely comprehensive user guide. Absolutely awesome work.

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.091 seconds
Powered by Kunena Forum