Get position of robot in real time


when using grove sensor, I can get notified in realtime.

But when moving the roboter with code:
#n G0 X100 Y100 Z100 F1000\n “

and then asking for the current position using code:
#n P2220\n “

I must wait until the first command is processed. I can only get the position of the robot when the move-position is finished.

Is there a way to get the robot position in realtime, like with sensor data?

Best regards

Sorry, I dont think this is was the correct forum. Can a admin please move it into uArm Swift (Pro) Troubleshooting forum?

You could use feedback commands M2120 V0.2 to get feedback every 0.2 s(or the circle you need).