When you are moving to a target that is in another referential, you need to change the referential set in the program. Else it will try to reach the target relative to the wrong frame.
In your case, you need a "Set Ref.: Right_Frame" before the "MoveJ(Target 1)".
In your case, you need a "Set Ref.: Right_Frame" before the "MoveJ(Target 1)".