TCP Coordinate print

Hello,
I would like to print the TCP coordinates of the robot. Could you please help me?
image

Test.vcmx (65.3 KB)

Hi @MIN,
hope this helps:

2 Likes

Thank you !!

After creating subprograms in the program, I want the robot to print the coordinates every time it reaches a new point while moving along a specified path. However, when I add the code to print the coordinates, the robot doesn’t move. How can I fix this?

Please be aware that OnRun will execute its code when you press the play button.
Learn more: vcScript (visualcomponents.com)
It does not trigger, when the robot moves.
Maybe try the OnPosition event: vcRobotController (visualcomponents.com)

I’m a beginner, and I was wondering how you studied VC. It feels very difficult, and it seems like there aren’t enough example materials available.

On the Academy there are a lot of videos and documents. Here are some about the basics of Python scripting in VC:

1 Like