C programing Q


Results 1 to 7 of 7

Thread: C programing Q

  1. #1
    Registered
    Join Date
    Feb 2014
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default C programing Q

    Hi Tom and everyone else.

    I´m have some issues with my M6 program or g-code.

    After a toolchange my Z axis "loses" it´s position.

    When running a cycle on the ATC, in program mode, and using G43 comp the Z axis when trying to return to Z0. it ends up way above the position it should be. Sometimes above the Z limit...

    In my ATC program file i send the Z axis up to zero pos by using Move(2,0) and Checkdone(2).

    Can Move cmd change the G54 or Machine Pos?

    Is there a way to check if an axis is at 0 Machine cordinate, in the ATC C program? So I can skip the Move cmd in ATC C prog and just check if it is at Zero(Home Z). Then using just G28 Z0 before any toolchange.


    GCode example:

    ***before toolchange****
    N9888 M5
    N9890 G91 G28 Z0.
    N9896 T52 M6
    N9898 G0 G90 G54 X49. Y-36.6 S1500 M3
    N9900 G43 H52 Z0.
    *** After toolchange it end up above Zero(G54 Zero)****

    I don´t have the ATC C file on this computer, but i can send it if need be.

    Hope my explanation is understandable...

    /Lars
    Sweden

    Similar Threads:


  2. #2
    Registered
    Join Date
    Feb 2014
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default Re: C programing Q

    If I start a nc program and the correct tool is already is spindle, checks this first in ATC C program, It will go the correct Z hight (in G54) when theese lines run:

    N100 G21
    N102 G0 G17 G40 G49 G80 G90
    N104 T53 M6 (Already in spindle)
    N106 G0 G90 G54 X62.872 Y-43.231 S1500 M3
    N108 G43 H53 Z0.

    but if it would have to change tool rightaway it would end up above...



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

    Default Re: C programing Q

    Hi Lars,

    Is your M6 Program in KMotionCNC configured for "Exec/wait/Sync"? If any C Program moves any axis it should specify this in order to properly re-synchronize the GCode Interpreter with the new position.

    Regards

    Regards
    TK http://dynomotion.com


  4. #4
    Registered
    Join Date
    Feb 2014
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default Re: C programing Q

    Hi

    Yes, that was the problem, had it Exec/Wait.

    Working!


    Is there a way to get 4 axis fullscreen?

    Thanks!

    /Lars



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

    Default Re: C programing Q

    Hi Lars,

    Thanks for posting back.

    We are working on ways to make screen edits easier. But no promises when.

    Regards

    Regards
    TK http://dynomotion.com


  6. #6
    Registered
    Join Date
    Feb 2014
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default Re: C programing Q

    Tom

    I have to get one more Konnect board, total of 3 boards. Is it ok if the third board has a ribbon cable almost 20 cm long? Between the second and third board.



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

    Default Re: C programing Q

    Hi Lars,

    That should be ok.

    Regards

    Regards
    TK http://dynomotion.com


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

C programing Q

C programing Q