Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Relaxis on March 05, 2021, 06:18:55 AM

Title: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 05, 2021, 06:18:55 AM
Hi,

In my chinese CNC router I make modernization for adding 4 Axis.
I  have problem of HOME position after  instalation new Mach3.
My HOME position is on the LEFT side of X Axis and after istalation Mach 3 all G-code looks like on the picture.
For me that mean: first istalation Mach 3 is  for  HOME position on RIGHT side of X axis.
Is any Expert of Mach3 who can explain How/where I must to change positon of HOME in Mach 3 for LEFT sides.?
but without changing direction in Motor Home/Soft limits etc, because it could make other problems.

After making position on the table and fixed 0,0,0. all values of XYZ are in + values, but should to be - values, if my Home position is on the LEFT of X Axis..
and the square G code should to be inside Machine Boundaries.

.... or mabe I make some other mistakes during instalation.

Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 05, 2021, 10:28:11 AM
Show us your G-Code file.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 05, 2021, 01:10:48 PM
It isnt problem with G code,
I opened in other laptop with Mach3 and looks correct, but for my CNC Router I must to use PC with LPT only. Laptops dosnt have connect by LPT.


N100G00G21G17G90G40G49G80
N110G71G91.1
N120T1M06
N130 (End Mill {3 mm})
N140G00G43Z15.000H1
N150S12000M03
N160
N170()
N180G94
N190X0.000Y0.000F2000.0
N200G00X-23.500Y-23.500Z10.000
N210G1X-23.500Y-23.500Z-1.000F500.0
N220G1X23.500Y-23.500Z-1.000F2000.0
N230G1X23.500Y23.500Z-1.000
N240G1X-23.500Y23.500Z-1.000
N250G1X-23.500Y-23.500Z-1.000
N260G00X-23.500Y-23.500Z10.000
N270G00Z15.000
N280G00X0.000Y0.000
N290M09
N300M30
%
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: ZASto on March 05, 2021, 02:45:43 PM
Do you have the same .xml file on your laptop as you have on work computer?
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 02:00:09 AM
your g-code is so that X0/Y0 is in Center of part.

on a normal Installation
x-movement (millbit related to part) moving from left to right is positive
y-movement (millbit related to part) moving from front to back is positive
 
related to your g-code workpiece X0/Y0 must be somewhere in the Center of table not at the border.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 06, 2021, 04:52:32 AM
My instalation Mac3 is absolutely normal.
but I have X and Y inversely than you wrote,  XY  buttons of MPG MODE  work  reversed and vertical and horizontal lines are  engraving  inversly too.
Z is correct.

Maybe  I should to change cables of A+- in drives of X and Y at first.?

By the way, my chinese machine have had secial istalation of Plugin for panel and mainboard and other separetely file Mach3Mill for changing in program Mach3.
Maybe that is reasone of my problem and I must to change some cables.
What are yuo thinking about such solution....
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 04:57:14 AM
Config -> Ports&Pins -> Motor Ouputs -Change DirLowActive should also invert direction without swapping wires
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 06, 2021, 06:09:29 AM
I know about such option, but if you change DirLA X and Y you changing direction for HOME and XYZ going in oposite.
of course XY  buttons of MPG MODE  working correct now.

... and still is problem with position of my G-code like on picture...
I didnt have had such problem before I changing minebord and instaling new Mach 3

And now values  of the - and +  in the Work Offsets are the opposite.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 08:55:53 AM
I know about such option, but if you change DirLA X and Y you changing direction for HOME and XYZ going in oposite.
of course XY  buttons of MPG MODE  working correct now.

Config -> Homing Softlimits -> Home Neg.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 09:15:26 AM
... and still is problem with position of my G-code like on picture...
I didnt have had such problem before I changing minebord and instaling new Mach 3
jog your machine somewhere in the middle press Zero X , Zero Y and Regen Toolpath


according to your screenshot X-Dro = 126.something and Y-Dro is 52.something
Center of your code is X0/Y0 and coordinates are from -23 to +23 so the toolpath view
is axactly showing the reality.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 06, 2021, 12:21:33 PM
Thank you TPS :)
Now is much better, but still is problem with Z.
After fixing all parameters for correct directions XYZ in MPG MODE and now HOME working correct too, but after pressing GOTO ZERO my X and Y going correct, but Z going UP... and my Gcode is over Machine Boudaries.
Do you know how  to solve this problem?

Do you know what values should to be fixed for A Axis in HOME limits?
I would like to use Helical Interpolation for G-codes.

By the way, I have licenses from 10 years and I still using in the first machine, but everything have been set up automatically by loading Puling and now I see other options for setting all.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 12:28:12 PM
for your z-axis up is positve and down is negative?

goto to Zero means goto Zero whereever you set the Zero of your z-axis
if the actual Position is negativ it will go up if it is positve it will go down.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 12:35:05 PM
are you still talking about this g-code ?:

Code: [Select]
N100G00G21G17G90G40G49G80
N110G71G91.1
N120T1M06
N130 (End Mill {3 mm})
N140G00G43Z15.000H1
N150S12000M03
N160
N170()
N180G94
N190X0.000Y0.000F2000.0
N200G00X-23.500Y-23.500Z10.000
N210G1X-23.500Y-23.500Z-1.000F500.0
N220G1X23.500Y-23.500Z-1.000F2000.0
N230G1X23.500Y23.500Z-1.000
N240G1X-23.500Y23.500Z-1.000
N250G1X-23.500Y-23.500Z-1.000
N260G00X-23.500Y-23.500Z10.000
N270G00Z15.000
N280G00X0.000Y0.000
N290M09
N300M30
%

here
N200 G00 X-23.500 Y-23.500 Z10.000
the g-code tells machine goto X-23.500
so if your left bouandary is X0 then it whants to go outside.


as sayed before, to run this code jog your machine somewhere to the Center of bed and lower Z-axis aprox 15mm

then press X-Zero and Y-Zero and z-Zero and THEN run the code
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 06, 2021, 12:42:54 PM
also here:
https://www.machsupport.com/wp-content/uploads/2013/02/Mach3Mill_1.84.pdf

chapter 7 would be a good reference.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 07, 2021, 05:15:08 AM
Hi,

I have to say true, that correct position of Gcode for inside Machine Boundaries were saved only after turn of Mach3 and PC too.
After next opening Mach3 were correct position of Gcode.
The same situation were after setting Z and position of Gcode.
That explain why I have had so much problem with setting all parameters.
For correct Save Setting don't enough just push buttons and confirm by Save Setting.
For totally saving parameter we have to turn off Mach3 and reset PC too.
After such operation are 100% saving Settings only.!
About such saving told me the expert who sold me the Mach 3 program, but I forgot about it.

Now Gcode position of Z is inside Machine Boundaries ofc.

"for your z-axis up is positive and down is negative?"
Yes , but after HOME I have X and Y in minus value, and Z in plus value.
Is it correct?

Maybe you know how to setting Gcode for Axis, because I dont see correct G code after GOTO ZERO.
Now Gcode looks like I attached.
Two option when  ToolPath / A-Rotations Enabled is active and without active A-Rotations Enabled.
and General Cofnig.

What is wrong?
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 07, 2021, 07:30:25 AM
sorry never used a 4th axis.
there are some setting's in Config -> Toolpath maybe one those help's.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 08, 2021, 01:31:06 AM
OK TPS
Thank you very much for your support :)
I have one more question,  what should be  the value of the Z axis  in the minus or in the plus after HOME?
I showing it above... on my screen.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 08, 2021, 01:40:38 AM
that depends on witch coorinats you have selected (machine coords or workpiece coords) with the button below
axis DRO's.
in machine coords it is normaly Zero or a small amount in minus
in workpiece coords it depends where you set the workpiece Zero, but normaly it will be positive.

just try it by set Z-Zero somewhere below upper end of Z-Axis then make a homing and the press the
Machine coords button to toggle the cordinate System.
Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 08, 2021, 04:50:57 AM
"just try it by set Z-Zero somewhere below upper end of Z-Axis then make a homing and the press the
Machine coords button to toggle the cordinate System."


Yes I make like that.. and have result like above.
Maybe my English isnt so good for technical explanation...

Could you check your HOME value XYZ and comparing with my screen ?
I dont have other router for such comparing.

Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: TPS on March 08, 2021, 05:08:01 AM
makes no sence to do a test on an other machine, coord's will allways be different.

Looks like you haven't read the suggested chapter of manaul about coords, Offsets and so on.

if you do a ref All, ONLY machine coord's will be zeroed and work coordinates will Display a value based on this
Zero and the actual work offstet.

go to diagnostic page, in the upper aeria all coords and offset's are displayed, Play arround with zeroing AND homing
and watch the values, maybe this helps to understand, why current Position can be differnt after homing.

Title: Re: How to chnage parameters for HOME position on LEFT sides of X Axis.?
Post by: Relaxis on March 08, 2021, 05:22:26 AM
i  thinking about - or + for Z after HOME only. I was reading Manual too, there isnt about Z Home at all.
I will be trying to asking someone with CNC router and inform you about my results
Kind Regards :)