Hello Guest it is January 24, 2022, 08:33:36 AM

Author Topic: Milling Is Off Center  (Read 9218 times)

0 Members and 1 Guest are viewing this topic.

Re: Milling Is Off Center
« Reply #10 on: November 24, 2015, 02:23:27 AM »
Can I ask what your machine setup is?

Starting at the machine,
What leadscrew pitch do you have for each axis?
What stepper motors are you using (model no)?
What microstepping have you set for your drives?
What voltage is your power supply feeding your stepper drives?
Can you paste your XML file here (may need to rename it to *********.txt for it to upload)
The questions that it will answer:
What units the machine is set to run in
How many steps / unit you have set the machine up with?
What Max velocity you have set?
What acceleration you have set?
What step and dir pulse width you have set?
What lookahead you have set?
Have you set CV to turn off on certain angles?
CV turn off lookahead steps?
What kernal speed you have set Mach to?

Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”

Offline Tweakie.CNC

*
  • *
  •  8,881 8,881
  • Super Kitty
    • View Profile
Re: Milling Is Off Center
« Reply #11 on: November 24, 2015, 02:25:29 AM »
Can you post your .xml file  ??

Rename it something unique (ie. Jackson.xml) before posting.

Tweakie.
KEEP SAFE !
Re: Milling Is Off Center
« Reply #12 on: November 24, 2015, 03:30:30 AM »
Quote
Starting at the machine,
What leadscrew pitch do you have for each axis?
What stepper motors are you using (model no)?
What microstepping have you set for your drives?
What voltage is your power supply feeding your stepper drives?
Can you paste your XML file here (may need to rename it to *********.txt for it to upload)
The questions that it will answer:
What units the machine is set to run in
How many steps / unit you have set the machine up with?
What Max velocity you have set?
What acceleration you have set?
What step and dir pulse width you have set?
What lookahead you have set?
Have you set CV to turn off on certain angles?
CV turn off lookahead steps?
What kernal speed you have set Mach to?

I am not totally sure to many of these questions... I will go over them and report back.. With my machine I received an XLM file to paste into the Mach3 main file.. I have just been running the machine with these settings.. This is the only problem I have had so far...

Re: Milling Is Off Center
« Reply #13 on: November 24, 2015, 06:36:28 AM »
Initial comments...

On your motor tuning page you have no pulse width set for your step and direct.... Are you using a motion controller or the parrallel port?

Your machine is in inches, and you have a X, Y and Z set at 5833 steps / inch, and the machines maximum velocity set at 160 inches / min....   so, i'd suggest

changing your machine kernal speed from 35kHz down to 25kHz.... given 5833 x 160 / 60 = 15.5khz (maximum step speed).

I'd also suggest changing the step and direct pulse widths to 5usec (which would be 100kHz and seems to work with most stepper drivers quite well).

I'd also suggest changing the lookahead on the configuration page to 200 (2nd column from LHS).


The 5833 steps per inch is confusing me a little .... as I'm not sure how you worked it out as it does not seem to align with either a metric or imperial pitch (unless you've got gearing on the machine)

either (1 / 5833) x 200 = 0.034287673.....  (bit of an odd number... indicating it may be a metric leadscrew pitch... but)

5833 / 25.4 = 229.6456929133 .... again... little odd number

1 / 229.645.... x 200 = 0.87096908

so maybe a metric pitch of say .... 1.75mm threaded rod.... (on 1/2 stepping mode)  ... still a little off

If it is 1.75mm pitch threaded rod... it should be 5805.714285714.....


[I've never done it... but if you have metric leadscrews, it may be beneficial to set them up as such, and then add a "G20" code to the initilisation string on the config window and also prefix your code with a G20 code so that the machine will appear to be an imperial machine and it will do all the correct math internally with minimal rouding errors ... maybe worth a consideration / comment by some of the more experianced about as to whether this would work]
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”

Offline Tweakie.CNC

*
  • *
  •  8,881 8,881
  • Super Kitty
    • View Profile
Re: Milling Is Off Center
« Reply #14 on: November 24, 2015, 07:26:23 AM »
Nice work Rob - one thing you forgot to mention...

Config. / General Config.  -  uncheck 'Use WatchDog'  ;)

Tweakie.
KEEP SAFE !
Re: Milling Is Off Center
« Reply #15 on: November 24, 2015, 07:34:04 AM »
Thanks Tweakie
...I am at work so it was a quick check...
I was seeing some off numbering for the ports and pins and axis settings but suspect it was me as I looked at the XML file and couldn't see them (think it happens when there is a conflict on the ports and pins if they are shared or listed twice sometimes... I'll review later)

We just really need to try to understand your machine a little more... Photos sometimes help if you are not sure about what it is, or to get an idea of the gantry weights etc with regards to acceleration.
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”

Offline Tweakie.CNC

*
  • *
  •  8,881 8,881
  • Super Kitty
    • View Profile
Re: Milling Is Off Center
« Reply #16 on: November 24, 2015, 07:43:21 AM »
Hi Rob,

There are a few duplications of pin number allocations but I don't think they will cause a conflict during Mach3 operation - but I am always eager to learn.

Tweakie.
KEEP SAFE !
Re: Milling Is Off Center
« Reply #17 on: November 24, 2015, 01:30:49 PM »
May I ask....

What are you using OEM Trg #1 & #2 for?

You have used port 1/pin10 and Port 1/pin11 twice...

You have mapped your E-Stop and OEM Trig #1 to port 1/ pin 10

You have also mapped Input #1 and OEM Trig #2 to port 1/pin 11


What are you using Jog A++ / A-- for? (no pins assigned but are using a hokey 45 & 46?)

Why have you set output #3 and output #5 to share port #1/pin 14?
And Output #2 and output #6 to share port #1/pin#16

Do you have two parallel ports?
(given you've listed output #1 as port 1/pin1, and output #4 and port#2/pin1?)
[edit: you must have as you've got encoders setup and mpg on port 2]


You also have Charge Pump & Charge Pump2 sharing port 1/pin 17


.... again its quite hard to review a system that we can't see and don't really understand.... but there is probably a few bits there for you to think about.

I'd suggest only ever use one pin for one thing (although I'm no Mach3/4 Yoda / Guru by any stretch of the imagination) .... if you need to do something else with that output ... then run an M-code, macropump or brains.... I can help but need to understand our setup or what you're trying to do.

Rob
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”
Re: Milling Is Off Center
« Reply #18 on: November 24, 2015, 02:13:54 PM »
Okay,

Thanks for all the help...

First thing... I did not create the XML file it comes with the machine and load it into Mach3 file replacing the stock file for the machine settings...

The machine uses a Dewalt 611 router and works mainly with standard router bits on wood... 

The machine uses ballscrew/leadscrews

Here is some written files that come with the machine:

Motor outputs:

X axis   Port 1 Step pin: 2 Direction Pin: 6
Y axis   Port 1 Step pin: 3 Direction Pin: 7
Z axis   Port 1 Step pin: 4 Direction Pin: 8

Inputs:

Estop Port 1 Pin 10
Cycle Start Port 1 Pin 13
Feedhold Port 1 Pin 15


Motor tuning:

X, Y and Z axis: 5833 steps per inch.
Velocity: 160
Acceleration: 3

Thanks for the help!  I am new to this and really a bit lost on all the Mach3 setting stuff...
Re: Milling Is Off Center
« Reply #19 on: November 24, 2015, 03:12:38 PM »
What about all the other stuff? (Encoders and mpg, 2nd parallel port, OEM triggers etc)

Are you able to measure the leadscrew pitch... Are the ballscrews or threaded rod?... Number doesn't look right to me as far as steps per inch

Have you got access to the stepper drives, can you see any dipswitch settings?

What type of machine is it (manufacturing link... Photo)?

The setting up stuff is easy... Just got to start with the basics.
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”