DRO clear


Results 1 to 5 of 5

Thread: DRO clear

  1. #1
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    62
    Downloads
    0
    Uploads
    0

    Default DRO clear

    Hi Tom
    Please help, If I use the set button to put some number to DRO like #3
    and after I press INIT(reset) number 3 still there even i use the code:
    Zero(0,0); ch0->Position=0; EnableAxisDest(0,0); the #3 still there unless I use ZERO button to clear the DRO. I need to assign a TOUCH-PLATE script to a button but#3 still there in the DRO. what code used to clear DRO. Ltran

    Similar Threads:
    Last edited by ltran2000; 09-02-2012 at 06:19 AM.


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

    Default

    Hi LTran,

    I'm not sure I fully understand. But Yes the "Set" button on basically introduces an G92 offset.

    If you assign a C program to your "Touch Plate" button. After the C program does the probe operation it could then issue a KFLOP -> PC command to Set the DRO to zero or some other value. See the example:

    DoPCFloat(PC_COMM_SET_X,0.0);
    DoPCFloat(PC_COMM_SET_Y,0.0);
    DoPCFloat(PC_COMM_SET_Z,1.25);

    in the

    KFLOPtoPCCmdExamples.c

    Regards

    Regards
    TK http://dynomotion.com


  3. #3
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    62
    Downloads
    0
    Uploads
    0

    Default

    Thanks Tom, I have another question, after I start my machine and
    homing so xyz=0, and move to the material need to cut and I assigned
    these code to a button to zero XY :

    DisableAxis(0); // disable the axis
    while (!CheckDone(0)) ; // wait till we are stopped
    DisableAxis(1); // disable the axis
    while (!CheckDone(1)) ; // wait till we are stopped
    EnableAxisDest(0,0);
    EnableAxisDest(1,0);


    and while it cut and some error happen, I want it move back to material xy zero using these code:
    Move(0,0); Move(1,0);
    but it keep going back to cordinate zero(homing zero) not
    material xy=0 , hope you understand, Thanks



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

    Default

    Hi Ltran,

    If I understand you correctly I would think that would work.

    This code should zero the Machine Coordinates (although the "while" waits are not really needed) :

    DisableAxis(0); // disable the axis
    while (!CheckDone(0)) ; // wait till we are stopped
    DisableAxis(1); // disable the axis
    while (!CheckDone(1)) ; // wait till we are stopped
    EnableAxisDest(0,0);
    EnableAxisDest(1,0);

    You could verify this by displaying Machine Coord in KMotionCNC or looking at the Axis Screen in KMotion.exe

    Then

    Move(0,0);
    Move(1,0);

    Should move to Machine Coord 0,0


    But I thought in your earlier post it seemed you were using the Set Button to set an GCode G92 offset to set/zero the DROs. In this case Machine 0,0 would remain at the original Home location.

    Regards,

    Regards
    TK http://dynomotion.com


  5. #5
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    62
    Downloads
    0
    Uploads
    0

    Default

    These codes do move back to coordinate zero, I am confusing with something else, thanks Tom



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

DRO clear

DRO clear