Hello
Can someone help my please with some ideas regarding the offset. The application is to move a cylinder part to a sensor and rotate A6 util the sensor is true.
I will use BRAKE and store POS_INT for the orientation of XHORIZ_0.
Then I have to move to several point using that orientation. I tried to move with offsets .
XAPR_15=XHORIZ_0 : {X -30,Y 0,Z -100, A 0,B 0,C 0}
PTP APR_15 CONT Vel=30 % I Tool[1]:GRIPPER Base[3]:POST CD
XAPR_05=XHORIZ_0 : {X -30,Y 0,Z 0, A 0,B 0,C 0}
LIN APR_05 Vel=0.5 m/s I Tool[1]:GRIPPER Base[3]:POST CD
LIN HORIZ_0 Vel=0.2 m/s I Tool[1]:GRIPPER Base[3]:POST CD
XHORIZ_180=XHORIZ_0 : {X 0,Y 0,Z 0, A 180,B 0,C 0}
LIN PERIERE_ORIZ_180 Vel=0.5 m/s I Tool[1]:GRIPPER Base[3]:POST CD
XDEP_10=XHORIZ_180 : {X 30,Y 0,Z 0, A 0,B 0,C 0}
LIN DEP_10 Vel=0.5 m/s R Tool[1]:GRIPPER Base[3]:POST CD
The problem is that if I rotate A6, the tool orientation changes random depending of the sensor detection. And when I make offset the robot can crash if the orientation is 180 different.
Should I use other method like Axis coordinates or LIN_REL? Or I don't understand right now how it will work because is don't have the sensor to test it:)
Thank you!