# Get robtarget processed by a motion instruction

**URL:** <https://tech-community.robotics.abb.com/t/get-robtarget-processed-by-a-motion-instruction/10211>\
**Category:** RAPID Programming\
**Tags:** robtarget, motion\
**Created:** [May 31, 2021, 8:26pm UTC](https://tech-community.robotics.abb.com/t/get-robtarget-processed-by-a-motion-instruction/10211 "2021-05-31T20:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragolollo](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dragolollo](https://tech-community.robotics.abb.com/u/dragolollo)\
**Post date:** [May 31, 2021, 8:26pm UTC](https://tech-community.robotics.abb.com/t/get-robtarget-processed-by-a-motion-instruction/10211/1 "2021-05-31T20:26:03Z")

</div>

Hello,  
Is there a specific way for knowing the robtarget that is being processed by a motion instruction? It would be sufficient to know the pos (x,y,z). I try to explain better with an example: let imagine that the main task is processing a “MoveL P1”. Is it possible to know in a parallel task that the main task is processing robtarget P1 (and to know then x,y,z coordinates we are moving towards to)? (maybe I can save each position in a tasks-shared variable before each move instruction but is there a better way?)  
Thank you.

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [June 1, 2021, 12:10pm UTC](https://tech-community.robotics.abb.com/t/get-robtarget-processed-by-a-motion-instruction/10211/2 "2021-06-01T12:10:44Z")

</div>

Check out this thread

> **[ABB Robotics Community - Maintenance](https://forums.robotstudio.com/discussion/3764/log-position-of-robot)**
