586,075 active members*
3,993 visitors online*
Register for free
Login
Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2010
    Posts
    77

    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
    Join Date
    Dec 2003
    Posts
    24221
    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

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

  3. #3
    Join Date
    Jan 2010
    Posts
    77
    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
    Join Date
    Mar 2003
    Posts
    35538
    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

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  5. #5
    Join Date
    Jan 2010
    Posts
    77
    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. #6
    Join Date
    Mar 2003
    Posts
    35538
    Mach3 doesn't have the capability to correct for position errors.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  7. #7
    Join Date
    Mar 2011
    Posts
    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.

    [email protected]

  8. #8
    Join Date
    Sep 2010
    Posts
    22
    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. #9
    Join Date
    Mar 2011
    Posts
    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. #10
    Join Date
    Mar 2011
    Posts
    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.

    [email protected]

Similar Threads

  1. 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, 05:44 PM
  2. Mach closed loop?
    By HBFixedGear in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 04-21-2009, 07:40 AM
  3. question on closed loop vs open loop (servo systems)
    By boonie in forum Servo Motors / Drives
    Replies: 20
    Last Post: 11-09-2007, 07:30 PM
  4. Mach 3 closed loop ?
    By efrem in forum Mach Mill
    Replies: 5
    Last Post: 12-07-2006, 02:01 AM
  5. Closed Loop Driver vs. Closed Loop Computer
    By ojibberish in forum Gecko Drives
    Replies: 3
    Last Post: 06-08-2004, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •