586,036 active members*
3,572 visitors online*
Register for free
Login
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    293
    Hello
    I wanted to readout the tool identifier of the current spindle tool and to continue processing in a MSG.

    So I wrote

    DEF REAL _TNR
    DEF STRING[15] WZINFO

    _TNR=$TC_MPP6[9998,1]
    WZINFO=$TC_TP2[_TNR,1]

    MSG ("T"<<WZINFO<<"........")

    But the controller just brings the alarm 12620: character access to this variable is impossible.

    Why? Does anyone have a solution?
    &quot;Geht nicht&quot;, gibt es nicht&#33;

  2. #2
    Join Date
    Apr 2005
    Posts
    652
    Hello
    I wanted to readout the tool identifier of the current spindle tool and to continue processing in a MSG.

    So I wrote

    DEF REAL _TNR
    DEF STRING[15] WZINFO

    _TNR=$TC_MPP6[9998,1]
    WZINFO=$TC_TP2[_TNR,1]

    MSG ("T"<<WZINFO<<"........")

    But the controller just brings the alarm 12620: character access to this variable is impossible.

    Why? Does anyone have a solution?
    The problem is in the following line:
    WZINFO=$TC_TP2[_TNR,1]

    There’s only one parameter allowed in clamp. The T-number is clear and it’s enough.
    What are you going to use the second one, I mean“1”, for?
    It has to look like this:
    WZINFO=$TC_TP2[_TNR]
    Gruß,<br /><br />Drehpapst<br /><br /><br />Willen braucht man. Und Zigaretten.<br />Wer Visionen hat, sollte zum Arzt gehen.<br />Helmut Schmidt

  3. #3
    Join Date
    Jan 2007
    Posts
    293
    Thanks. I’ll try that tomorrow during my late shift. I believe you’re right.
    &quot;Geht nicht&quot;, gibt es nicht&#33;

  4. #4
    Join Date
    Jan 2007
    Posts
    293
    It worked as I supposed!
    &quot;Geht nicht&quot;, gibt es nicht&#33;

  5. #5
    Join Date
    Apr 2005
    Posts
    652
    However I’d like to know your train of thought about “1” in
    WZINFO=$TC_TP2[_TNR,1]
    What did you want to reach with it? And where do you have it from?
    Gruß,<br /><br />Drehpapst<br /><br /><br />Willen braucht man. Und Zigaretten.<br />Wer Visionen hat, sollte zum Arzt gehen.<br />Helmut Schmidt

  6. #6
    Join Date
    Jan 2007
    Posts
    293
    I often deal with tool data. Some our tools are so short that one should first request the length for reasons of safety. Or in other case the remaining lifetime is requested before a tool is used. And ......[_TNR,1] is always there. So I just chose the $TC_TP2 and everything else was almost a habit
    &quot;Geht nicht&quot;, gibt es nicht&#33;

Posting Permissions

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