Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

MoveAbsJ

Has anyone used the MoveAbsJ command in RS.  It seems that I am not able to get the MoveAbsJ to "Sync to Station".  I do have in the Instruction Template MoveAbsJ setup, so  I am not sure what I may be missing.

Thanks in advance,

Bob

Comments


  • Hello Bob,
    Below please find a solution to your problem :
    MoveAbsJ will not sync if the target is not declared as a named CONST jointtarget.
    Below, module1 will sync to station but module2 wont.
    MODULE module1
    CONST jointtarget ThisWorks:=[[0,0,0,0,30,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
    PROC routine1()
    MoveAbsJ ThisWorks,v1000,fine,tool0WObj:=wobj0;
    ENDPROC
    ENDMODULE
    MODULE module2
    PROC routine2()
    MoveAbsJ [[0,0,0,0,30,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]NoEOffs,v1000,z50,tool0;
    ENDPROC
    ENDMODULE
    Thomas Andersson
    Support Engineer
    ABB Automation Technologies
    ATMA/RO/AIS