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: 922
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: 922
Joined: Sun Nov 22, 2015 3:25 am
Location: USA


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 3 guests