Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 12:43:02 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  Galil (Moderators: smurph, kcrouch)
| | |-+  Mach3 & Galil using stepper motor and encoder feedback
Pages: 1   Go Down
Print
Author Topic: Mach3 & Galil using stepper motor and encoder feedback  (Read 1405 times)
0 Members and 1 Guest are viewing this topic.
jmroberge
Active Member

Offline Offline

Posts: 10


View Profile
« on: December 27, 2010, 11:53:11 PM »

I have recently added an encoder on the x axis of my router. The system controller is a gall 2108 card from Galil. The feedback is from  a rack and pinion ygear mounted on an encoder.
How do I configure Mach3 to use the encoder feedback to drive the x axis rather than the open loop control that I currently have. Is this possible to do with this setup? I am able the see that the encoder does work properly in the Smartterm (Galil) as the motor position does increments/decrements  as the position changes.
Thanks 
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« Reply #1 on: December 28, 2010, 07:18:08 AM »

Mach is open loop and if the loop is to be closed at all it will have to be done in the Galil. Whether this can be done I dont know, you would be better posting on the Galil part of the forum for answers specific to Galil.
Hood
Logged
jmroberge
Active Member

Offline Offline

Posts: 10


View Profile
« Reply #2 on: December 28, 2010, 11:53:19 AM »

thanks, I moved this post to the Galil section.
Logged
smurph
Active Member

Offline Offline

Posts: 244


View Profile
« Reply #3 on: December 28, 2010, 12:18:23 PM »

If you are running steppers from the Galil, then it is open loop as well.  To get closed loop, you will need to run servos.  There is no PID loop involved with stepper motors.  Sad

Steve
Logged
HighOctane
Active Member

Offline Offline

Posts: 16


View Profile
« Reply #4 on: December 29, 2010, 10:19:21 PM »

It looks like galil supports that functionality, at least on some of their controllers...

http://www.galilmc.com/support/appnotes/optima/note2445.pdf
Logged
smurph
Active Member

Offline Offline

Posts: 244


View Profile
« Reply #5 on: December 30, 2010, 12:36:32 AM »

That's Stepper Position Maintenance (SPM).  You have to set up code to catch position errors.  Where the position error is "caught", the motor stopped, and then a POSERR subroutine is called to correct the error.  Unfortunately, this is nowhere near a closed PID loop.  Sad  

Also, this "mode" of correction is not suited to the way we stream data to the controller.  We don't download a Galil script to the controller at all.  If you run the plugin and enable debug output, then you can see what we are doing by looking at the GalilDebug.txt file.  

So, unfortunately, all that the plugin supports is open loop control for stepper motors on the Galil.  Sad

Steve
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!