Material thickness in macro

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Material thickness in macro

Postby AUKURAS » Sat Feb 17, 2024 6:18 pm

Hello everyone,

I'm writing a macro for the automatic dust shoe.

What would be the function to get material thickness from the g-code loaded?

Cheers
AUKURAS
 
Posts: 3
Joined: Tue Apr 04, 2023 5:59 am

Re: Material thickness in macro

Postby ger21 » Sat Feb 17, 2024 6:57 pm

Most g-code does not specify the material thickness. And afaik, there is no g-code for material thickness.

I use an industrial machine that has an automatic dust shoe. It uses a proprietary g-code, and a proprietary controller. The g-code specifies the shoe position at the start of the cut.

One way to do it would be to assign the shoe to the B or C axis, and have your post processor output the shoe position.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Material thickness in macro

Postby AUKURAS » Sat Feb 17, 2024 7:34 pm

Dust shoe already has A axis assigned. My post processor in the beginning of the g-code specifies material dimensions:

Material Size
X:300 Y:300 Z:20

I thought that's universal and there is already a function for it.
I guess I have to do it on the processor side as you have said.

Thanks!
AUKURAS
 
Posts: 3
Joined: Tue Apr 04, 2023 5:59 am


Return to Macros

Who is online

Users browsing this forum: No registered users and 4 guests