torayeff / fanucpy

Python Interface for FANUC robots
Apache License 2.0
109 stars 29 forks source link

Why are the coordinates returned by get_curpos different from that displayed in the teach pendant? #28

Open ArthurRyan0803 opened 1 year ago

ArthurRyan0803 commented 1 year ago

I have already selected the 8th User Frame and Tool Frame in the teach pendant, but the coordinates in the teach pendant are different from that returned by the get_curpos function

get_curpos: image

teach pendant: 1688696910004

ArthurRyan0803 commented 1 year ago

The data of 8th User Frame and Tool Frame are zeros.

Moon-Lord commented 7 months ago

The coordinates you get returned by get_curpos is dependend on the utool and uframe you have initialized in the system variables. You can navigate like this to get there:

Menu -> System -> Variables -> Group

I'm not sure why this is the case, maybe @torayeff can tell us more about that. Because get_curpos should return the TCP dependend on the $MNUTOOL variable, which is not the case