Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: AGOMA on August 16, 2016, 03:21:33 AM

Title: Change direction of the work area
Post by: AGOMA on August 16, 2016, 03:21:33 AM
Hi. First post so please be gentle.  ;D
..and please excuse my bad english.

I can not find how to change direction of the work area?

When I run the machine to home pos, it goes to the lower right corner, which is correct.
But when I run a job I have to run to the upper left corner and put zero because the job would go toward + and not -.

Anybody know how to change this?
see attached image.

Many thanks
Title: Re: Change direction of the work area
Post by: Tweakie.CNC on August 16, 2016, 03:55:53 AM
I think you are going to get lots of differing views on this (perhaps controversial) topic.

Whilst the medium to upper range CAD/CAM software allows the home position (X0, Y0) to be in any corner (including centre) the basic CAD/CAM packages generally only allow the home position to be in the bottom left corner.

In my opinion, your machine should be set-up with X0, Y0 in the bottom left corner of the work-piece with +X moving the cutter to the right of the work and +Y moving the cutter to the rear of the work ( Axis direction can be changed by altering the Direction Active Low state in Config. / Ports & Pins / Motor Outputs ).

Tweakie.
Title: Re: Change direction of the work area
Post by: AGOMA on August 16, 2016, 04:55:26 AM
Thanx Tweakie for your answer.

humm,  controversial topic?? ???
Is it possible for you to suggest new topic so I can change, it is not meant to offend anyone. this is because my bad English.  :'(

I bought a broken multicam machine that I built for MACH 3.
This has its homing in the lower right corner.
I have been using Sketchup with sketchucam.
When I export gcode after moving the zero point to the other side of the job, it becomes empty in gcode. but I can try to move the home position to the lower left corner, so maybe it will be better.

but if I change the Direction Active Low state in the Config. / Ports & Pins / Motor Outputs. it will be mirrored then?

Many thanks for the reply
Title: Re: Change direction of the work area
Post by: Tweakie.CNC on August 16, 2016, 05:41:26 AM
Absolutely nothing wrong with your English sir - it is just my opinion that the topic is controversial only because many people will have different views regarding the origin and home positions.

Quote
but if I change the Direction Active Low state in the Config. / Ports & Pins / Motor Outputs. it will be mirrored then?

If +X moves the cutter to the right of the workpiece and +Y moves the cutter to the rear of the workpiece then it will not be mirrored.

Tweakie.
Title: Re: Change direction of the work area
Post by: Davek0974 on August 16, 2016, 10:44:35 AM
On your sketches, both appear wrong to  me - the Y is wrong in the first and the X is wrong in the second - this is of course assuming that machine home would be front-left corner.

The corner it moves to when doing a home does not really matter as it can be set to home on the right but in reality it will place the real home/zero position to the left - read up on home switch offsets ;)

Likewise the home position chosen in CAM does not matter - what DOES matter is that you set the same home point on the material as was chosen in CAM or odd things can happen.
Title: Re: Change direction of the work area
Post by: ger21 on August 16, 2016, 02:18:53 PM
As Dave says, you must use a standard right hand coordinate system, which neither of the ones you show are.
Title: Re: Change direction of the work area
Post by: AGOMA on August 16, 2016, 04:26:57 PM
Hi. Now I got it to work. I and as you say. I was wrong about the coordinates.
Now I home at the front right corner and x+ takes me to the far right and y+ to the left  8)

But I can't get the homing with my slave axis to work.  ???
My slave A axis stops when the X is home. So if The x i not straight I won't compensate for this..

I tried to change to refcombination(9) but not.
Are they any script the home them separately?
Starts at the same time and stops at the sensor?

Thanx  ::)
Title: Re: Change direction of the work area
Post by: Davek0974 on August 16, 2016, 04:33:12 PM
do you have two home switches on the slaved axis - you need one at each side
Title: Re: Change direction of the work area
Post by: AGOMA on August 16, 2016, 04:57:05 PM
Yes I have one for a and one for x.
They are tested and dedicated in ports and pins.
Title: Re: Change direction of the work area
Post by: ger21 on August 16, 2016, 09:41:59 PM
In General Config, make sure that Home Slave with Master is NOT checked.
Title: Re: Change direction of the work area
Post by: AGOMA on August 17, 2016, 01:28:55 AM
Yep. It's unchecked.
.. I tried to check it also..
Title: Re: Change direction of the work area
Post by: AGOMA on August 17, 2016, 09:26:46 AM
I've googled and YouTubeed but I can't get it to work.
Does anyone have an idea what I'm missing?
Title: Re: Change direction of the work area
Post by: Davek0974 on August 17, 2016, 10:22:14 AM
You have a switch on main axis and on slave axis, and they show up in Mach when triggered?

If yes then it has to be a software setting.
Title: Re: Change direction of the work area
Post by: AGOMA on August 17, 2016, 10:30:15 AM
Yes I have and yep they do.  :)
Feels like I have tried everything.. Well I will start over.
From the top  :D
Title: Re: Change direction of the work area
Post by: Davek0974 on August 17, 2016, 10:42:48 AM
Before you do that, have a read here, may find some answer....

https://www.machsupport.com/forum/index.php?topic=25867.0

Title: Re: Change direction of the work area
Post by: AGOMA on August 17, 2016, 11:04:53 AM
Thanx.
I will try to set up the B axis instead, just to be sure..
Title: Re: Change direction of the work area
Post by: AGOMA on August 21, 2016, 04:44:04 PM
Hello.
Seems like my UC300 isn't compatible with homing a slave axis separated.

I'm trying to swap axis, but can't get this to work either..
Does anyone have code for this.?
I have found some but they didn't work.

I've started with dooembutton for z then y then x with slave a.
Then swapaxis a with b and dooembutton for home b then reset swap..
..but no success :(

Big thanx..

Title: Re: Change direction of the work area
Post by: Hood on August 21, 2016, 04:50:07 PM
Best to confirm SwapAxis() is supported by your controller, good chance it is not.
If you contact the maker they will be able to tell you and if it does support it they can tell you the proper way to do it.
Hood
Title: Re: Change direction of the work area
Post by: ger21 on August 21, 2016, 06:26:31 PM
The UC300 manual list supported Mach3 functions, and SwapAxis() is not on the list.
Slaving is, though, and slaved homing should work.
Title: Re: Change direction of the work area
Post by: AGOMA on August 22, 2016, 05:49:58 PM
Thanx guys.
I've tried a couple of things. I and I did get the swap axis to work. So that's good, and I can see in pins and ports that they have mowed from a to b, I and then back to a after reset swap. But the b won't home during doOEMbutton.. Yhy? The Uc300 shouldn't care about that, only what is locked in pins and ports ? Again, thanx all for your help!  ;D