Karel Variable To TeachPendant PR

  • I created some KAREL variables which will contain Calculated positions. Can i grab these positions from a TeachPendant? example in the .TP file i would say something like PR[1,1]=Xpos[1] XPOS being part of an array in a self created .PC program.


    thanks!

  • No way to directly grab karel vars from tp. You would have to write a karel "getter" routine that could grab the variable you want, and write it to a register or PR that TP can access.

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

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

  • No way to directly grab karel vars from tp. You would have to write a karel "getter" routine that could grab the variable you want, and write it to a register or PR that TP can access.

    Thats what i thought but thought i would throw this out here incase something changed!

    Thanks

Advertising from our partners