Need Help! Setting Zero and divide by 2


Results 1 to 7 of 7

Thread: Setting Zero and divide by 2

  1. #1
    Member
    Join Date
    Dec 2012
    Location
    Norway
    Posts
    340
    Downloads
    0
    Uploads
    0

    Default Setting Zero and divide by 2

    Hi, Tom.

    When setting the 0-point, is there a way to divide by 2 when edgefinding both opposite sides of the stock to set 0 in the center? In both Mach3 and PathPilot you can set 0 in one edge and click the DRO on the edge of the other side press "/2" and Enter to divide the current DRO value in two. I tried this with KmotionCNC, but I got an error message. I checked the manual and the wiki, without finding anything.

    Similar Threads:


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3220
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    Hi Stigoe,

    You could configure a User Button to do this. See the CenterFindByHalfKMotionCNCDROX.c example.

    Code:
    #include "KMotionDef.h"
    
    #define TMP 10 // which spare persist to use to transfer data
    #include "KflopToKMotionCNCFunctions.c"
    
    main()
    {
        double DROx, DROy, DROz, DROa, DROb, DROc;
        GetDROs(&DROx, &DROy, &DROz, &DROa, &DROb, &DROc);
        DoPCFloat(PC_COMM_SET_X, DROx/2);
    }
    But that sounds like a good feature to add to the Set DRO dialogs. What Version of KMotionCNC are you using? If you want we can post a patch to add this.

    Regards
    TK http://dynomotion.com


  3. #3
    Member
    Join Date
    May 2012
    Location
    canada
    Posts
    438
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    Quote Originally Posted by TomKerekes View Post
    But that sounds like a good feature to add to the Set DRO dialogs. What Version of KMotionCNC are you using? If you want we can post a patch to add this.
    That sounds like a great idea Tom. I always have to break out the calculator and this would be much easier!



  4. #4
    Member
    Join Date
    Dec 2012
    Location
    Norway
    Posts
    340
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    Quote Originally Posted by TomKerekes View Post
    Hi Stigoe,

    But that sounds like a good feature to add to the Set DRO dialogs. What Version of KMotionCNC are you using? If you want we can post a patch to add this.
    Hi, Tom.

    I'm using the latest version (4.34).

    Br,
    Stig



  5. #5
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3220
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    Hi Stig,

    Here is a patch for V4.34. Copy to <>\KMotion\Release\ folder.

    The Set Dialog should then look like this:

    Setting Zero and divide by 2-usedro2-png

    Please let us know if it works for you. Changed sources are also on the server if needed.

    Regards
    TK http://dynomotion.com


  6. #6
    Member
    Join Date
    Dec 2012
    Location
    Norway
    Posts
    340
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    Quote Originally Posted by TomKerekes View Post
    Hi Stig,

    Here is a patch for V4.34. Copy to <>\KMotion\Release\ folder.

    Please let us know if it works for you.
    Hi, Tom.

    Thanks! Unfortunately, I've just left for work and will be gone for 5 weeks, so I won't have the chance to test until I'm back. Unless someone else tests in the meantime, I'll let you know when I'm back.

    Stig



  7. #7
    Member
    Join Date
    May 2012
    Location
    canada
    Posts
    438
    Downloads
    0
    Uploads
    0

    Default Re: Setting Zero and divide by 2

    I tried it last night Tom, seems to work fine. This will be very useful, thanks for adding this feature.



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Setting Zero and divide by 2

Setting Zero and divide by 2

Setting Zero and divide by 2