CNC parking after executing a file

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

CNC parking after executing a file

Postby Koduvana » Fri Mar 04, 2022 2:20 pm

Hi!
How could I set up the rule that after executing a file the machine will go automatically to my custom coordinates instead of parking at home coordinates? Controller AXbb-E and CAM UCCNC.
Koduvana
 
Posts: 8
Joined: Fri Mar 04, 2022 2:16 pm

Re: CNC parking after executing a file

Postby ger21 » Fri Mar 04, 2022 3:32 pm

Edit the M200-M202 macros with your park position, and call the M codes from your g-code.
For example, M200 in your g-code will run the M200.txt macro, and send the machine to Park Position #1.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: CNC parking after executing a file

Postby Koduvana » Sat Mar 05, 2022 6:52 am

Thank you, Ger21.
It could be written then even by coordinates to the end of file. I'we been thinking something automatic as present system - I should not write anything and it goes to home at this sample.
Koduvana
 
Posts: 8
Joined: Fri Mar 04, 2022 2:16 pm

Re: CNC parking after executing a file

Postby Vmax549 » Sat Mar 05, 2022 2:47 pm

Modify the M30 macro so that the machine goes HOME when it runs. Z home then XY home. When UCCNC sees the G30 it runs the M30 macro and goes home. It becomes automatic. At program end the machine goes HOME.

THAT depends on of course that you actually have a G30 at the end of your program

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

Re: CNC parking after executing a file

Postby Koduvana » Mon Mar 07, 2022 9:52 am

Thank you!
At the moment M30 seems to be empty...
Should I write here just G00 Z100 X0 Y1000 for example?
Attachments
M30.jpg
Koduvana
 
Posts: 8
Joined: Fri Mar 04, 2022 2:16 pm

Re: CNC parking after executing a file

Postby Vmax549 » Mon Mar 07, 2022 11:06 am

I would try it this way. BUT remember when the M30 runns in the Gcode program the machine IS going to move to this location EVERY time so be aware that it will happen every time. It is programmed to move to machine coordinates. That way it goes back to the exact Table position regardless of what work offsets you may have set. Also programed this way you KNOW what directions the moves will be. First it retracts to Z home, then moves in the Yhome direction and then moves in the X home direction.
IF you want it to retract Z then WAIT for you to check clearance you can program a M00 after the Z move. That way it will stop and wait on you to press the {cyclestart} button to proceed to Y home then X home

(;-) TP


exec.Code("G00 G53 Z0.0000"); // retract Z up to home
while(exec.IsMoving()){}
exec.Code("G00 G53 Y0.0000"); // Move Y to home
while(exec.IsMoving()){}
exec.Code("G00 G53 X0.0000"); // Move X to home
while(exec.IsMoving()){}
Vmax549
 
Posts: 331
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: CNC parking after executing a file

Postby Koduvana » Mon Mar 07, 2022 11:43 am

I added your code to M30 - no any reaction. Then I added just G code as I write before - no action.
Can it be that M30 or even all macros are not related to anything and I should relate them?
.... But goto park1 works.....
Koduvana
 
Posts: 8
Joined: Fri Mar 04, 2022 2:16 pm

Re: CNC parking after executing a file

Postby ger21 » Mon Mar 07, 2022 12:15 pm

There's currently a bug in UCCNC that prevents this from working.

https://www.forum.cncdrive.com/viewtopic.php?f=3&t=2552
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: CNC parking after executing a file

Postby Koduvana » Mon Mar 07, 2022 12:47 pm

Thanks, ger!
Isnt there any fix for it??
Koduvana
 
Posts: 8
Joined: Fri Mar 04, 2022 2:16 pm

Re: CNC parking after executing a file

Postby ger21 » Mon Mar 07, 2022 1:23 pm

Should be fixed in the next release.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Bing [Bot] and 23 guests

cron