Calculatre the tool radius


Results 1 to 6 of 6

Thread: Calculatre the tool radius

  1. #1
    Registered
    Join Date
    Aug 2014
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Calculatre the tool radius

    Hello everyone,

    I use CamWorks 2015 with a postprocessor for Heidenhain iTNC530 (3 Axis) and i want on each TOOL CALL a "DR- <tool radius>" (Radius from the current Tool)
    For example it should look like this: "TOOL CALL 1 Z S6366 DR-4,98"

    In section Init Tool Change i tried this: ":T:<N><T!><AXIS_PLANE><S!><TOOL_RADIUS><EOL>"
    But ther is only a "R0" in the output.

    Then i tried this:
    I definded a new atribute in my HH530.LIB:
    :ATTRNAME=TOOL DR
    :ATTRTYPE=POST
    :ATTRVTYPE=DECIMAL
    :ATTREMARK= DR- after TOOL CALL
    :CODETYPE=FORMAT
    :ATTRCFUNC=CALC_DR
    :WORD_ADDRESS_BEF=|DR
    :ATTREND

    and a new section:
    :SECTION=CALC_DR
    :C: TOOL_RADIUS=(TOOL_DIAMETER/-2)

    But i have no idea how the section to calculate the tool radius have to look.
    Like this definitily not, because the following error drops when i compile the pp:
    -2)
    error 1 at 28 in CALC_DR
    Syntax error or unrecognized variable name


    I hobe it is understandable what i mean.
    It would be great if somebody can helb me.
    And sorry about my english......


    Best regards
    Beini

    Similar Threads:


  2. #2
    Member vincent.pomerleau's Avatar
    Join Date
    Feb 2010
    Location
    Canada
    Posts
    69
    Downloads
    3
    Uploads
    0

    Default Re: Calculatre the tool radius

    TRY
    :T:<N><T!><AXIS_PLANE><S!> DR-<#:TOOL_RADIUS><EOL>



  3. #3
    Registered
    Join Date
    Aug 2014
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by vincent.pomerleau View Post
    TRY
    :T:<N><T!><AXIS_PLANE><S!> DR-<#:TOOL_RADIUS><EOL>
    Thanks for your answer!
    No is the output: "DR-0" 12 TOOL CALL 1 Z S 6500 DR-0
    I don't understand, why the radius is always 0.

    In the .LIB file i found following entry:
    :ATTRNAME=TOOL RADIUS
    :ATTRTYPE=POST
    :ATTRVTYPE=DECIMAL
    :ATTREMARK=Tool Radius
    :CODETYPE=FORMAT
    :WORD_ADDRESS_BEF=|R
    :ATTREND
    Is this right like this?
    From where did the program take the "0"?



  4. #4
    Member vincent.pomerleau's Avatar
    Join Date
    Feb 2010
    Location
    Canada
    Posts
    69
    Downloads
    3
    Uploads
    0

    Default Re: Calculatre the tool radius

    Sorry I checked in the documentation and there isn't TOOL_RADIUS variable
    try this

    :T:<N><T!><AXIS_PLANE><S!> DR-<#TOOL_DIAMETER/2)><EOL>



  5. #5
    Member vincent.pomerleau's Avatar
    Join Date
    Feb 2010
    Location
    Canada
    Posts
    69
    Downloads
    3
    Uploads
    0

    Default Re: Calculatre the tool radius

    = : ( WITHOUT SPACE



  6. #6
    Registered
    Join Date
    Aug 2014
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Aaaahhhh, thank you very much for your help!!!
    Now it works



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

Calculatre the tool radius

Calculatre the tool radius