Hallo, please help me.
My robot is Kuka KR210 R3100 Ultra KRC 4 V8.3.32
Software Sprutcam X Robot 17 ver.16
I try to run the program from the teach pendant, the Kuka robot moves in the wrong direction and on teach pendant screen stop move to next line code.
For example;
on tech pendant start and going move to line code :
PTP {A1 -25.866, A2 -105.437, A3 126.643, A4 -0.862, A5 15.556, A6 -4.715, E1 0, E2 0, E3 0, E4 0, E5 0, E6 0}
the robot moves in the correct direction (same as simulation on sprutcam software).

However, when the syntax is move to line code:
LIN {X 300, Y 300, Z 11, A -153.845, B 0, C 180} C_DIS
the teach pendant display shows it stopping (don't move to the next line code), but the robot continues to move in the wrong direction (A4 and A6 rotated).

I was set tool calibration and base calibration.
DEF KUKA()
GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
INTERRUPT ON 3
BAS (#INITMOV,0)
$CIRC_TYPE = #PATH
BAS (#VEL_PTP,20)
BAS (#ACC_PTP,20)
$APO.CDIS = 0.5000
$BASE=BASE_DATA[3]
;$BASE={X 1350, Y 500, Z 841, A 0, B 0, C 0}
$ACT_BASE=3
$TOOL=TOOL_DATA[3]
;$TOOL={X 132.691, Y -16.083, Z 549.679, A -5.718, B 53.24, C 0}
$ACT_TOOL=3
$advance=5
$VEL.CP=0.167
PTP {A1 -25.866, A2 -105.437, A3 126.643, A4 -0.862, A5 15.556, A6 -4.715, E1 0, E2 0, E3 0, E4 0, E5 0, E6 0}
LIN {X 300, Y 300, Z 11, A -153.845, B 0, C 180} C_DIS
$VEL.CP=0
LIN {X 300, Y 300, Z 1, A -153.845, B 0, C 180} C_DIS
LIN {X 300, Y 0, Z 1, A -162.853, B 0, C 180} C_DIS
LIN {X 300, Y 0, Z 11, A -162.853, B 0, C 180} C_DIS
$VEL.CP=0.167
PTP {A1 -20.000, A2 -120.000, A3 110.000, A4 0.000, A5 0.000, A6 0.000, E1 0, E2 0, E3 0, E4 0, E5 0, E6 0}
END
Display More

Thanks for your Help.