Hello Guest it is November 08, 2024, 07:38:47 PM

Author Topic: MACH3 MOTOR TUNING  (Read 23820 times)

0 Members and 1 Guest are viewing this topic.

Offline mrpeja

*
  •  114 114
    • Embroidery Machines
MACH3 MOTOR TUNING
« on: April 10, 2009, 02:02:50 PM »
Hi,
There is a situation:
I have plasma table, step motor 400 steps/rev, gear ratio 1:5 and rack and pinion 30 mm pitch diameter. Here is my calculation:
400 * 5 = 2000 steps/revolution of pinion,
path per one revolution of pinion: 30 * pi = 94,347779 mm
path per step: 94,347779 / 2000 = 0,0471 mm.
steps per unit (mm): 1 / 0,0471 = 21,22.
So far so good.
Now Motor Tuning in Mach3:
I put 21,22 steps per unit (mm), and velocity 4000 mm/min (what is 66,66 mm/sec)
Step frequency will be 21,22 * 66,66 = 1414 Hz
But motor run to slow and oscilloscope measurement shows step frequency about ten time slower, e.g. 135 Hz!
Who is mistaking, me or Mach3?
PLEASE CONTROLL MY CALCULATION
Regards,
mrpeja

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: MACH3 MOTOR TUNING
« Reply #1 on: April 10, 2009, 03:42:45 PM »
What kind of drives do you have? Do they have microstepping?
Hood

Offline mrpeja

*
  •  114 114
    • Embroidery Machines
Re: MACH3 MOTOR TUNING
« Reply #2 on: April 11, 2009, 01:52:50 AM »
Hi Hood,
No, I don't have microstepping. I have bipolar motor, working in half step mode. So, 400 steps per revolution and 0,9 deg per step.
It's urgent!
mrpeja

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: MACH3 MOTOR TUNING
« Reply #3 on: April 11, 2009, 05:08:17 AM »
Ah ok thought maybe that was the case but just wanted to check that you were not using a 0.9 degree stepper.
 Your calcs seem to be fractionally out but not enough to make the difference you are seeing.
(400 steps per motor rev, 5:1 gearing is 2000 steps per pinion rev, one rev is 93.477795mm so 2000/93.47775=21.39545.......... per mm or unit)
 If your commanded speed is is much slower then maybe you possibly your rack or gearing is different. Not sure where you were scoping the pulse stream from but if it was the output of the drives  try disconnecting the parallel port cable and check direct on the port, obviously the motors wont move but at least you will get the true pulse stream.

Hood

Offline mrpeja

*
  •  114 114
    • Embroidery Machines
Re: MACH3 MOTOR TUNING
« Reply #4 on: April 11, 2009, 09:15:28 AM »
Hi Hood,
PROBLEM SOLVED!
First, I'm experienced electronics engineer and I can help about electronics, if somebody need.
I measured directly on parallel port, and frequency was like I said.
But  problem was on another place! I assumed when I jog, travel must be at maximal speed. But is not. I accidentally pressed Home axis bar and motor runs fast. So, I only need to find where to adjust jogging speed.
Thanks for your efforts to help me.
 Best regards
mrpeja
Re: MACH3 MOTOR TUNING
« Reply #5 on: April 11, 2009, 12:20:03 PM »
Do you have Home Switches installed? I have noticed that if an external E Stop is triggered that Jog speed is slow until I Home the machine.
If there are no Home switches, try double clicking the "Normal Condition" bar just above the feed rate box.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: MACH3 MOTOR TUNING
« Reply #6 on: April 11, 2009, 01:38:37 PM »
Press the Tab key on your keyboard and the flyout screen has a Slow Jog rate DRO, set that to 100% and it will jog at the velocity in motor tuning. If you wish to retain the slow jog you can override it by pressing the shift key while you jog.
Hood

Offline mrpeja

*
  •  114 114
    • Embroidery Machines
Re: MACH3 MOTOR TUNING
« Reply #7 on: April 11, 2009, 01:53:47 PM »
Hi,
I found jogging go slow because slow jog rate is set to 20%. When I jog holding Shift key then is going fast
mrpeja