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 Vmax549 » Wed Mar 14, 2018 8:35 pm

exec.Callbutton(102)

or

exec.Code("G92 Z0.000") With this you can set Z to be anything you want just change teh value of Z from 0.0000 to whatever you want.

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

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 Vmax549 » Thu Mar 15, 2018 3:36 pm

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.

Just a thought, (;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

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: 31
Joined: Sun Jan 28, 2018 1:50 pm

Re: reset z to zero

Postby Vmax549 » Fri Jun 01, 2018 1:45 pm

I am not sure what you are asking for IF you already use sheetcam the IT will write all teh code needed to find the top of material from the SheetCam POST.

Are you wanting a macro to do what Sheetcam can already do?

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: reset z to zero

Postby Vmax549 » Fri Jun 01, 2018 1:46 pm

I am not sure what you are asking for IF you already use sheetcam then IT will write all the Gcode needed to find the top of material from the SheetCam POST.

Are you wanting a macro to do what Sheetcam can already do?

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

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: 31
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.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 820
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 26 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.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 820
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 1 guest