Results 1 to 10 of 10

Thread: Closed loop positioning in Mach 3

  1. #1
    Registered saabman's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    64
    Downloads
    0
    Uploads
    0

    Closed loop positioning in Mach 3

    I am curious to know if anyone has connected X and Y dros to Mach 3 and used them to provide closed loop positioning. The current glass scales from Accurite output square waves and it would seem to be simply a matter of creating an interface box with a power supply in it to hook the scales to Mach through parallel port inputs.


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,932
    Downloads
    0
    Uploads
    0
    For servo's you would need Mach to close the PID loop.
    For steppers it would not really apply.
    The loop is closed if using Mach and the Galil card.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered saabman's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    64
    Downloads
    0
    Uploads
    0
    Let me rephrase, proxy closed loop. That is Mach knows where it want to go (calculated value), directs servo/stepper to get there, and DRO ultimately says if it go there. Mach adjusts as needed.


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Mach3 can't "adjust as needed". You can write a custom macro to stop if it's not where it's supposed to be. But that's about it.

    There's actually a commercial product to do this, with a Mach3 plugin.

    Page Title
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #5
    Registered saabman's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    64
    Downloads
    0
    Uploads
    0
    The problem I see with the closed loop acting at the servo/encoder level is it is not measuring table/sadle movement but ball screw movement. Any backlash will come in to play. My thinking is a physical DRO acts as an independent measure of table/saddle movement.

    I have a scale mounted on X (Y is in the works), and I can attest that there is quite a bit of backlash difference caused by gib tightness (duh). My point is with the DRO I can see it and I can adjust for optimum performance quickly and easily (sure you can do this with measuring blocks, etc) Mach could see if too (if properly coded) and automatically adjust for it. I have read where DRO external inputs can be copied to Machs main DRO. Mach would need to look at the DRO differently than it does, namely that it represents the true position not a computed display value.


  • #6
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Mach3 doesn't have the capability to correct for position errors.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #7
    Registered
    Join Date
    Mar 2011
    Location
    pakistan
    Posts
    39
    Downloads
    0
    Uploads
    0
    Hi,
    It is possible to connect with mach3 with servo as closed loop, but it is necessary that your hardward can support with this. If you want to do so u can build your own servo controller or purchase if available with EMC2 you can easly attached closed loop. I suggest you that dont use MACH(X) but use EMC2.

    saghirecho@yahoo.com


  • #8
    Registered MJ_cnc's Avatar
    Join Date
    Sep 2010
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0
    What you're asking about is often referred to as position maintenance for steppers. Make a move and then adjust at the end of the move. My only comment is that if you overshot your move, position maintenance doesn't do you much because you have already cut too much, then you move back.

    I have thought about doing this w/ Galil as was mentioned previously. You would need to do it with Servo's. However, I have not done it. W/ the Galil, you can input 2 encoders per axis, one would be for the motor (ON THE MOTOR) and the 2nd would be the glass scale. I would do it w/ Renishaw. anyway, the cool part about doing this is that you CAN compensate for backlash. The Galil takes care of it, you need to have at least 2:1 ratio for the motor to glass scale encoder. The motor needs to have finer adjustment to compensate. I had done some quick calcs and a 1000 line or 2000 line encoder w/ quadrature is enough for anything we'd need.

    Good luck and good question.

    Mark


  • #9
    Registered
    Join Date
    Mar 2011
    Location
    pakistan
    Posts
    39
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by ger21 View Post
    Mach3 doesn't have the capability to correct for position errors.
    Ok but it has suspend button which can easly control close loop.


  • #10
    Registered
    Join Date
    Mar 2011
    Location
    pakistan
    Posts
    39
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by saabman View Post
    I am curious to know if anyone has connected X and Y dros to Mach 3 and used them to provide closed loop positioning. The current glass scales from Accurite output square waves and it would seem to be simply a matter of creating an interface box with a power supply in it to hook the scales to Mach through parallel port inputs.
    U can easly use mach3 for close use. But if your hadware can support with it.

    saghirecho@yahoo.com


  • Similar Threads

    1. Problem- Mach EMC Maximum Encoder Count Closed Loop Servo EMC/MACH3
      By bad bearings in forum Open Source Controller Boards
      Replies: 11
      Last Post: 05-28-2009, 12:44 PM
    2. Mach closed loop?
      By HBFixedGear in forum Mach Software (ArtSoft software)
      Replies: 3
      Last Post: 04-21-2009, 02:40 AM
    3. question on closed loop vs open loop (servo systems)
      By boonie in forum Servo Motors and Drives
      Replies: 20
      Last Post: 11-09-2007, 01:30 PM
    4. Mach 3 closed loop ?
      By efrem in forum Mach Mill
      Replies: 5
      Last Post: 12-06-2006, 08:01 PM
    5. Closed Loop Driver vs. Closed Loop Computer
      By ojibberish in forum Gecko Drives
      Replies: 3
      Last Post: 06-08-2004, 12:30 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.