I'll keep getting an error while I command with one of my two axis when I try to turn it. And it feels like the moment the second axis gives an error is random. one time he gives an error message after a position of 6 and the other time after a position of 170 and than to position of 84, it feels really random. I've even had a few times that he just turns correctly to his position To give you an idea of what I am trying to do I will briefly explain what needs to be done. A cable must be wound on a drum(x-axis). the cable is guided through a traverse(y-axis). The y-axis must follow the x-axis.What I have done now, I determine to which position the x-axis should go to get a correct cable length. then I send the x-axis to that position with arAxisCtrl_gb[X_Axis.AxisNo].PosMode.Position and right after that I send the y-axis to a certain factor of the actual x position. I get the actual position from Posistion_X := arAxisStatus_gb[X_Axis.AxisNo].Data.ActualPosition. I have already looked into the error codes but that doesn't help me. The x-axis rotates normally but the y-axis gives an error message every time it is rotating. See pictures to see the error codes and a bit of the code i use.
... View more