Page 1 of 2

Hod Do I ?

PostPosted: Tue Oct 29, 2019 9:10 am
by needleworks
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 :?

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 11:54 am
by beefy
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.

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 1:02 pm
by needleworks
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 ?

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 1:21 pm
by Vmax549
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

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 1:54 pm
by needleworks
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.

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 3:45 pm
by Vmax549
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

Re: Hod Do I ?

PostPosted: Tue Oct 29, 2019 8:40 pm
by beefy
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.

Re: Hod Do I ?

PostPosted: Wed Oct 30, 2019 8:33 am
by needleworks
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.

Re: Hod Do I ?

PostPosted: Wed Oct 30, 2019 8:41 am
by needleworks
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.

Re: Hod Do I ?

PostPosted: Wed Oct 30, 2019 10:47 am
by ger21
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.