Problem C axis "H" rotation incorrect


Results 1 to 5 of 5

Thread: C axis "H" rotation incorrect

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    us
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default C axis "H" rotation incorrect

    Hello all,

    I'm looping a program with Macro to machine a bunch of OD splines on a HAAS SL-40 using the C-Axis using "While/DO/END". I'm using "H" incremental rotations.

    Problem: Macro Variable is being correctly calculated to the 22.5 degrees I need to rotate, however the machine itself is actually rotating 225.0 degrees!

    If I change the Variable to 2.25 degrees, the machine rotates 22.5 degrees.

    This leads me to believe this is a setting/parameter issue that put incremental rotation out one decimal point? Does anybody have any light to shed on this?

    Similar Threads:
    Last edited by z369; 04-14-2018 at 01:07 PM. Reason: spelling error


  2. #2
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default Re: C axis "H" rotation incorrect

    can you post the WHILE/DO part of the program



  3. #3
    Member
    Join Date
    Mar 2009
    Location
    us
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by rcs60 View Post
    can you post the WHILE/DO part of the program
    It's not exact, as I'm not at work, but code looks something like this:

    G103 P1
    ;
    ;
    ;
    ;
    ;
    #511=16 (number of splines)
    #512=0
    #513=[360/#511]
    ;
    (Tool call etc)
    G28 H0.
    G00 Zxxxx
    Xxxx
    C0.
    M08
    While#512LT#511DO1
    G01 G98 Xxxxx F25.
    Z-xxxx
    G00 Xxxxx
    Zxxxx
    G00 H[#513]
    #512=[#512+1.0]
    End1
    G103
    M09
    ( Ends and goes home )

    Last edited by z369; 04-14-2018 at 02:34 PM. Reason: Added missing code


  4. #4
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default Re: C axis "H" rotation incorrect

    I would take a close look at #511 and make sure that it is 16 and not 1.6 as the example posted is not the original
    If #511 was 1.60 then it would rotate 225.00 degrees
    If #511 is 16.0 then it would be 22.50 degrees
    the example you posted looks good for what you are trying to do



  5. #5
    Member
    Join Date
    Mar 2009
    Location
    us
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: C axis "H" rotation incorrect

    The Macro Variables are properly calculated via the Control screen. Unless I'm losing it (which is entirely possible), I triple checked it and it reads 22.5.

    This machine didn't even have the C-Axis enabled to use canned cycles, which forces the Main spindle to rotate at the same RPM as the live tool as soon as it hits the canned cycle
    This was fixed by changing Parameter 315 from 0 to 1.
    .
    The only other thing I can think of is somehow, because I'm not using decimal points, the calculation is correct but somehow it's transposing something when the actual movement is executed

    I will find out more and post any findings as it could possibly help someone else that runs into this.

    Thank you for the responses.



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 axis "H" rotation incorrect

C axis "H" rotation incorrect