I am running KRC4
I am trying to maneuver a robot with gripper attached into a restricted location but I need to have offsets. Due to restrictions of the gripper against the robot, I need to rotate A5 90 degrees along with the offset of the tool itself. The offset is based on a pre-taught point. Is there a way to have a combination of both the tool offset moves as well as the axis offsets?
Here is the code used with our movement:
TRIGGER WHEN DISTANCE=1 DELAY=0 DO g_nStep=2
PDAT_ACT=PPDAT
PDAT_ACT.ACC=100.0
PDAT_ACT.APO_DIST=20.0
FDAT_ACT=FPick_GP
BAS(#PTP_PARAMS,100)
PrePos1={x 0,y 0,z 500,a 0,b 0,c 0}:Pick_GP[g_nStyleNo]
PTP PrePos1 C_DIS
The PTP_PARAMS is a function we call to change speed settings on the move. Pick_GP[g_nStyle] is the point we are moving two based on a number called in from a PLC from an array of possible points.