Hod Do I ?

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

Hod Do I ?

Postby needleworks » Tue Oct 29, 2019 9:10 am

Hi guys, maybe a stupid question but I'm trying to figure out how to do this simple task.

I recently had to swap out my pc and therefore had to re-install UCCNC, I have installed the latest version and have been going through getting it to run the way I like/as it was before !
My normal way of working is to first home the machine, and then click on "Park 1" ,which puts my cutter directly above the corner of my vice, which then becomes 0,0,0
I can't remember if it did this before or not, but after clicking on Park 1, it moves the Z axis down first, and then moves the X and Y axis.

Is it possible to move the X and/or Y axis first, or both together would be fine, and then have the Z axis come down last ? this would then completely avoid any possibilities of having a crash into any fixtures that may be there.
Sorry if this is a stupid question but I'm sure I had it this way previously :?
needleworks
 
Posts: 39
Joined: Mon Jan 02, 2017 9:03 am

Re: Hod Do I ?

Postby beefy » Tue Oct 29, 2019 11:54 am

The PARK 1 button activates the M200 macro in the Profiles folder.

Change the Z value in that macro and the Z will go to that location first.

If you wanted you could program that macro to do whatever when you press PARK 1.
beefy
 
Posts: 449
Joined: Mon Sep 05, 2016 10:34 am

Re: Hod Do I ?

Postby needleworks » Tue Oct 29, 2019 1:02 pm

beefy wrote:The PARK 1 button activates the M200 macro in the Profiles folder.

Change the Z value in that macro and the Z will go to that location first.

If you wanted you could program that macro to do whatever when you press PARK 1.

It's not the Z value I'm trying to change mate, I am tying to get the X & Y axis to move before the Z. Would it be as simple as changing the order of the axis moves in the M200 macro ?
needleworks
 
Posts: 39
Joined: Mon Jan 02, 2017 9:03 am

Re: Hod Do I ?

Postby Vmax549 » Tue Oct 29, 2019 1:21 pm

Looking at teh M200 macro it DOES move Z first to raise teh Z to safe Z but if your Z park position is lower than teh Z home it will lower teh Z to teh defined height in teh macro. (;-)

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

Re: Hod Do I ?

Postby needleworks » Tue Oct 29, 2019 1:54 pm

Vmax549 wrote:Looking at teh M200 macro it DOES move Z first to raise teh Z to safe Z but if your Z park position is lower than teh Z home it will lower teh Z to teh defined height in teh macro. (;-)

(;-) TP

Yes, that's exactly what happens Terry, all I want is the Z axis to be the last axis to move, so I can move the table first, to avoid the Z axis colliding with any fixtures I may have.
needleworks
 
Posts: 39
Joined: Mon Jan 02, 2017 9:03 am

Re: Hod Do I ?

Postby Vmax549 » Tue Oct 29, 2019 3:45 pm

As Beefy explained open teh M200 macro file and change teh XYZ values to what you want. Just remember those values NEED to be MACHINE COORD values not work coord values. Setting teh Z as ZERO would make sure it raised teh Z to teh Z home position each time. This assumes that you are homing teh Z to teh top of travel (Zup).

Lowering the Z back down would be a bad idea as teh machine does not know if anything is in the way or not. You could easily crash into the part. Z should be lowered manually to the top of the material. Then set work coords to zero.

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

Re: Hod Do I ?

Postby beefy » Tue Oct 29, 2019 8:40 pm

needleworks wrote:It's not the Z value I'm trying to change mate, I am tying to get the X & Y axis to move before the Z. Would it be as simple as changing the order of the axis moves in the M200 macro ?


Sorry, I'm full of flu and missed the bit about the order.

However, like I said mate, you can program the macro to do whatever you want. It's not safe or logical to move XY first because you are hoping/assuming the Z is already in the raised/clear position before XY moves occur. If you want the Z to end up in a certain position at the end of the park, I'd modify the macro to additionally put Z at the final position.

In a nutshell:
Raise Z to a safe level. If it's already there, no harm done.
Move to Park position
Move Z to whatever position bakes your biscuit.

If you had a need for it, you could even have your XY moves as 2 or more straight line moves, if for example you had an object on the table and you wanted to go around it. Just decide what you'd like and reprogram the macro to do that.
beefy
 
Posts: 449
Joined: Mon Sep 05, 2016 10:34 am

Re: Hod Do I ?

Postby needleworks » Wed Oct 30, 2019 8:33 am

beefy wrote:
needleworks wrote:It's not the Z value I'm trying to change mate, I am tying to get the X & Y axis to move before the Z. Would it be as simple as changing the order of the axis moves in the M200 macro ?


Sorry, I'm full of flu and missed the bit about the order.

However, like I said mate, you can program the macro to do whatever you want. It's not safe or logical to move XY first because you are hoping/assuming the Z is already in the raised/clear position before XY moves occur. If you want the Z to end up in a certain position at the end of the park, I'd modify the macro to additionally put Z at the final position.

In a nutshell:
Raise Z to a safe level. If it's already there, no harm done.
Move to Park position
Move Z to whatever position bakes your biscuit.

If you had a need for it, you could even have your XY moves as 2 or more straight line moves, if for example you had an object on the table and you wanted to go around it. Just decide what you'd like and reprogram the macro to do that.


Thanks beefy, that is exactly what I am trying to do. As I have already homed the machine, the Z axis is at the top of it's travel, the only way the Z axis can go after that is down. All my values are correct for going to "Park 1" , the only thing I am trying to achieve is to change the order in which the axis move. For example, where it says in the Macro :-

double parkZ = 100;
double parkX = 0;
double parkY = 0;

can I simply change this order to this, where the Z axis will move last :-

double parkX = 0;
double parkY = 0;
double parkZ = 100;

I'm "almost" sure I had it running this way before but I just can't remember how I done it.
needleworks
 
Posts: 39
Joined: Mon Jan 02, 2017 9:03 am

Re: Hod Do I ?

Postby needleworks » Wed Oct 30, 2019 8:41 am

edit to add

On the "Settings Page" there is a choice for "Home sequence" where you can specify the order in which the axis will move. I'm sure on Gerry's screenset this option is also available for the Park settings.
This is what I am trying to achieve.
needleworks
 
Posts: 39
Joined: Mon Jan 02, 2017 9:03 am

Re: Hod Do I ?

Postby ger21 » Wed Oct 30, 2019 10:47 am

With the 2017 Screenset, check the "Machine Coordinates" boc for the Park Position, and set the Safe Z2 value, and it will move the Z axis first to the Safe Z 2 position.

The 2017 Screenset uses M20524 for Park 1, not M200.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Next

Return to General discussion about the UCCNC software

Who is online

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