Welcome, Guest. Please login or register.
Did you miss your activation email?
August 27, 2014, 08:17:20 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  Movement plug-in: motor tuning problem
Pages: 1   Go Down
Print
Author Topic: Movement plug-in: motor tuning problem  (Read 2051 times)
0 Members and 1 Guest are viewing this topic.
eltex
Holding

Offline Offline

Posts: 2


View Profile
« 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
Logged
smurph
Mach4 Alpha

Offline Offline

Posts: 569


"That there... that's an RV."


View Profile
« 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
Logged
eltex
Holding

Offline Offline

Posts: 2


View Profile
« Reply #2 on: January 18, 2011, 05:01:39 PM »

Thanks,Steve,  but it does not solve the issue problem.

Oleg.
Logged
csherrit
Holding

Offline Offline

Posts: 2


View Profile
« Reply #3 on: April 18, 2011, 08: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 
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!