reset z to zero

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

reset z to zero

Postby netdude » Wed Mar 14, 2018 5:14 pm

How can I reset z to zero or another value via macro or code? I have capacitive sensor for plasma THC that i use for initial sensing of material. I want to then turn off THC, set Z to either zero or 0.125 (1/8 inch) and adjust Z up from that height to 0.175 or some value via Sheetcam for it's pierce height setting. Sheetcam also will lower to cut height, so both of these need to have proper zero set to reference from.
netdude
 
Posts: 10
Joined: Fri Feb 02, 2018 12:19 am

Re: reset z to zero

Postby netdude » Thu Mar 15, 2018 1:42 pm

Great! Thx for the help.
netdude
 
Posts: 10
Joined: Fri Feb 02, 2018 12:19 am

Re: reset z to zero

Postby asuratman » Fri Jun 01, 2018 12:45 pm

That is expensive to find surface of material using cap THC ? Why not using floating head ? After finding the surface, then ignite flame torch. Sheetcam will continue controlling to cut. I'd like to know the macro if anybody here want to share ?
asuratman
 
Posts: 42
Joined: Sun Jan 28, 2018 1:50 pm

Re: reset z to zero

Postby asuratman » Sat Jun 09, 2018 5:55 am

Using SheetCam it can put all this into teh Gcode for you so it is automatic . It will find top of material with either G31 or G28.1 then apply G92Zxxx then raise Z G0 Zxxx . This sets teh Z0 point and raises to whatever height you set in Sheetcam.


Sorry Vmax,
I just do not know how to write macro, I have misunderstanding here.
Can I ask you here ? I have floating head to use to touch off plate. I also will use sheetcam. I do not understand how to implement the above. Do you have the macro as per your explanation above ? Thanks.
asuratman
 
Posts: 42
Joined: Sun Jan 28, 2018 1:50 pm

Re: reset z to zero

Postby Robertspark » Sat Jun 09, 2018 8:50 am

asuratman

What post processor are you using in sheetcam?

Can you provide a copy of the post processsor you've selected and I will make it automatic for you.

https://www.youtube.com/watch?v=ODyK90hh3YE
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2108, Neuron Lite
UCCNC v1.2108 Macro Manual
Robertspark
 
Posts: 1203
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: reset z to zero

Postby Robertspark » Sat Jun 09, 2018 10:05 am

..... alternative.....
you can add gcode to sheetcam which will call a macro within UCCNC which will do the touchoff sequence for you....

Below / attached is just such a macro which will work just fine
Attachments
M777.txt
(1.01 KiB) Downloaded 49 times
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2108, Neuron Lite
UCCNC v1.2108 Macro Manual
Robertspark
 
Posts: 1203
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: reset z to zero

Postby Robertspark » Sat Jun 09, 2018 10:17 am

To edit the sheetcam post processor search for the section that says "function OnPenDown()"

and edit as follows (this presumes that you will be using the M777.txt macro I posted earlier)

Code: Select all
function OnPenDown()
   post.Text (" M777\n")   -- touch off Macro
   post.Text (" M03\n")    -- fire torch M-code

      if (pierceDelay > 0) then    -- if required .... Pierce delay {need to add it for your plasma tool}
         post.Text (" G4 P")
         post.Number (pierceDelay * 100,"0.###")
         post.Eol()
      end
end
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2108, Neuron Lite
UCCNC v1.2108 Macro Manual
Robertspark
 
Posts: 1203
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: reset z to zero

Postby asuratman » Sat Jun 09, 2018 2:47 pm

Hi Rob,
Thanks for your help. I am still learning your question and the last macro. I have UCCNC, I did not find on sheetcam yet. I will be back soon.
asuratman
 
Posts: 42
Joined: Sun Jan 28, 2018 1:50 pm

Re: reset z to zero

Postby asuratman » Sun Jun 10, 2018 5:12 am

Hello guys and Rob,
Excuse me, can I continue in here ?
I have learned your question. I found that the pp is Mach3 flame with THC-G31. This one the closest pp to my UCCNC. I found "function OnPenDown()" in sheetcam to edit.
What I need is to touch off the material, found the the surface as zero. Then retract 2 inch to ignite the flame torch manually. Run sheetcam, since we know the zero, go to pierce height, then cut material at cut height. I want to use flame to cut thick material, I do not have big electricity here for plasma. Is this OK ? I got pics my machine attached. Now, I know what automatic in sheetcam PP, but still I need to learn how to write macro. Thanks in advance.
Attachments
20180607_150335_resize.jpg
Z axis with limit switch as floating head connected to P12 on CNC BOB.
20180607_150234_resize.jpg
I will replace z axis with the floating head, use the flame torch.
20180607_150107_resize.jpg
The controller use cheap chinese BOB, chinese M860 tested OK on milling and oxy plasma table
asuratman
 
Posts: 42
Joined: Sun Jan 28, 2018 1:50 pm

Re: reset z to zero

Postby Robertspark » Sun Jun 10, 2018 8:07 am

I've not done oxy-acetylene before.

Can you explain how you are going to control the cutting torch sequence?

Its been +25 years since I've used a cutting torch

how are you going to operate the torch for preheat?

how are you goiung to operte the torch for cutting?

do you have 3x valves?

{retracting the torch to 2" and having it wait for you to ignite the torh is easy..... I've just not figured out how you are going to switch from pre-heat to cutting operation}
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2108, Neuron Lite
UCCNC v1.2108 Macro Manual
Robertspark
 
Posts: 1203
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Next

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 3 guests