Offset

  • Hello
    Can someone tell a method to move in user frame offset from a PR.
    I'm using something like:
    PR[10]=PR [1] (PR[1] is the picking point)
    PR[10,3]=PR[10,3]+100
    L PR [10]...


    All the time I'm using PR[10], but like this I can't go BWD.
    It's there a way to set the offset like in ABB or other option.
    ex:
    Move P1 offset (x=100, y=500, z=100)
    Move P1 offset (y=500, z=100)


    Thank you!

  • Hi
    Fanuc's use similar instructions, you use a modifier following the motion command.
    L P[1] Offset PR[10]
    You store the offset vector in PR[10]
    You can also use tooloffset if you need to offset a position in tool frame

  • Thank You. Is there a way to write for one PR the values in a single line?
    Like that I have to use many PR because I have many programs. And I will like to use the same PRs in all programs just to init the values at beginning.
    Thank you

  • You would have to make a sub-program to set all the components of a PR on one line.


    Something like this:



    Then you would call it at the top of your program, like so:


    Also, I would recommend using the OFFSET command if you are going to set a bunch of moves to the same offset.



    Code
    : CALL SET_PR(0,0,10,0,0,0) ;
       : OFFSET CONDITION PR[99] ;
       :L P[1] 1000mm/sec CNT100 Offset ;
       :L P[2] 1000mm/sec CNT100 Offset ;
       :L P[3] 1000mm/sec CNT100 Offset ;
       :L P[4] 1000mm/sec CNT100 Offset ;
       :L P[5] 1000mm/sec CNT100 Offset ;
       :L P[6] 1000mm/sec CNT100 Offset ;

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

Advertising from our partners