Hello all,
I am not in front of the robot now and I can't test it till the next week. So, to gain a little bit of time I've thought of asking for help here.
I must store +/- 30 points and before and after all those points, the robot should move to a certain height.
MAIN ROUTINE (pseudocode)
CALL Move_To_Aprox(P[1]);
J P[1] 100% FINE ;
CALL Move_To_Aprox(P[1]);
CALL Move_To_Aprox(P[2]);
J P[2] 100% FINE ;
CALL Move_To_Aprox(P[2]);
I could use Excel to create that text for me.
Move_To_Aprox ROUTINE (pseudocode)
Notice:
* I've chosen using points instead of PR because there will be lots of programs and it could be a mess having all the points mixed.
* I could use offsets, which would be simpler, but I should calculate the value every time the point is modified to ensure the robot goes to the desired height.
* I could use a LPOS/JPOS instruction to read the coords of the robot once inside Move_To_Aprox, but that seems risky if CNTs are involved (which should not after the work point, but could be messy between the two union points).
Is there an easier way in Fanuc to achieve this?
Thank you all!