TM - Accessing Robot Information
How to access robot data
In this article we will go through an example of how you can access Robot information such as the current Coordinates of the TCP.
This information can be particularly useful in programming the robot for certain startup conditions. For example, if you are wanting to verify the position of the robot prior to commencing a project or a particular set of motions.
Noteworthy
The below example goes through a case where you might want to utilise variable assignment to check or display the robot location.
The robot location can also be checked with an IF node, following for the most part the same procedure, without needing to create a variable first.
Procedure:
- Insert a SET node into the flow and click on the edit icon
- Select Variables from the list of options

- Click in the top box on the right hand side, then select your variable from the list and select insert

- Inside this variable window, scroll down until you see the “Parameterized” option with a drop down
This is where you will find a host of information to do with the robots operation such as Points, TCP Values, Bases, etc.
Select “Robot” from this list

- From the “Property” Selection box find “CoordRobot”
- Inside this you have a few options, you can either select the whole array or coordinates or you can grab the individual location data for X(0), Y(1), Z(2), RX(3), RY(4), RZ(5)

- Click in the bottom box on the right hand side and in this case insert the zeroth element of the array (X Coordinate)

When this SET functions runs, the X coordinate of the robot at the moment will be assigned to your variable, giving the ability to perform coordinate checks on the robot.