04-18-2024, 07:31 AM
Hello Everyone,
I was generate ABB robot program using robodk and edit manually to use for loop (i need to change Z height every loop). Is there possible way to use "for" loop and program it inside RoboDK without manually edit after generate program? Thanks
regards,
Irham
I was generate ABB robot program using robodk and edit manually to use for loop (i need to change Z height every loop). Is there possible way to use "for" loop and program it inside RoboDK without manually edit after generate program? Thanks
regards,
Irham
Code:
FOR i FROM 20 TO 70 DO
MoveL [[1856.510,539.272,15.000 + (i-1)*15],[0.00000000,-0.07483079,0.99719625,0.00000000],[-1,0,-1,1],[2008.240000,9E+09,9E+09,9E+09,9E+09,9E+09]],[120.00,500,5000,1000],z1,Tool3 \WObj:=Wobj_print;
MoveL [[1856.060,537.297,15.000 + (i-1)*15],[0.00000000,-0.07483079,0.99719625,0.00000000],[-1,0,-1,1],[2007.790000,9E+09,9E+09,9E+09,9E+09,9E+09]],[120.00,500,5000,1000],z1,Tool3 \WObj:=Wobj_print;
MoveL [[1855.670,535.409,15.000 + (i-1)*15],[0.00000000,-0.07483079,0.99719625,0.00000000],[-1,0,-1,1],[2007.390000,9E+09,9E+09,9E+09,9E+09,9E+09]],[120.00,500,5000,1000],z1,Tool3 \WObj:=Wobj_print;
MoveL [[1850.610,511.385,15.000 + (i-1)*15],[0.00000000,-0.07483079,0.99719625,0.00000000],[-1,0,-1,1],[2002.340000,9E+09,9E+09,9E+09,9E+09,9E+09]],[120.00,500,5000,1000],z1,Tool3 \WObj:=Wobj_print;
ENDFOR