RobotStudio event

How to find distance from TCP to next target?

Hi,

Is there way to know distance of TCP to next target or coordinates of next target?

I'm trying to make 3D-printer use E-values that I get from goEvalue_3DP from 3DP powerpac. Problem is that, to calculate feeding value to extruder, I would need to know distance between previous and next target.
As powerpac encrypts robot path file, I cannot use target coordinates from there to find the distance.

So is there any instruction etc. that would allow me to find robots current target or distance that robot has to move to that target?

Thanks
Tagged:

Answers

  • lemster68
    lemster68 ✭✭✭
    There is a function for distance from one target to another, Dist().  For retrieving the current position, the function is CRobT().
    Lee Justice
  • Careful, that distance is only a distance between points and not the interpolated path.