Hello Guest it is March 19, 2024, 03:34:18 AM

Author Topic: Movement plug-in: motor tuning problem  (Read 5520 times)

0 Members and 1 Guest are viewing this topic.

Movement plug-in: motor tuning problem
« on: January 10, 2011, 07:15:22 PM »
Hello.
I'm writing a Movement plug-in for mach3. My hardware has a maximum pulserate of 50k steps/s.
I set the following code in the myInitControl function:

MachView->m_PrinterOn = false;
MainPlanner->ExternalType = EX_VMS;
MainPlanner->ExTime = .001;
MainPlanner->ExBufferHi = 200;
for( int x = 0; x < 7; x++ ) MainPlanner->ExternalPulseRates
  • = 50000;


I set  "Steps per"= 1000 in the motor tuning.
The maximum velocity should be (50000/1000)*60 = 3000. But I can't set this value.
The maximum value in velocity DRO is 2550.


Thanks,
Oleg
P.S.: Sorry for bad English

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Movement plug-in: motor tuning problem
« Reply #1 on: January 17, 2011, 11:56:54 PM »
Oleg,

Can you set your MainPlanner->ExTime to something like 4ms?  1ms may be putting the trajectory planner through too much.  Or dumping that much granular data to your device may be the bottle neck.  I've run some of my plugins at 32ms.  But I had the capability of matching that time slice in the hardware.  The reduced resolution is only noticed at very slow speeds.  You will never notice anything with a time slice of 16ms or lower.  So if 1ms is not a requirement, try some higher values.  The Galil plugin uses 4ms time slices and it flies (ExternalPulseRates @ 12000000).

Steve
Re: Movement plug-in: motor tuning problem
« Reply #2 on: January 18, 2011, 05:01:39 PM »
Thanks,Steve,  but it does not solve the issue problem.

Oleg.
Re: Movement plug-in: motor tuning problem
« Reply #3 on: April 18, 2011, 09:47:46 PM »
I'd like to chime  in here also on this issue . 
Oleg,  when you say you can't set velocity do you mean it reverts to 0 always ? This is the behavior I see with any movement plugin.  Were you able to resolve this ?
thanks
chaz