Im using an MTD mechanical unit (head stock) to demonstrate independent axis…
The system was built from layout with independent axis option.
I am getting a couple of problems…
The axis can’t rotate more than 1145 degrees in the station and stops at end of travel, FYI, the VC shows more than 1145 degrees…
When executing the IndRMove. the axis appears to move to zero in the graphic as i intended but the value still reads several hundred degrees in the station’s mechanism and VC.
The IndRmove is moving the axis but not updating the VC external axis position.
Example of code used in this very basic demo
ActUnit STN1;
MoveAbsJ
MoveJ
IndCMove STN1, 1, 360;
FOR i FROM 1 TO 2 DO
MoveL
MoveL
ENDFOR
IndCMove STN1, 1, 0;
WaitUntil IndSpeed(STN1,1eroSpeed);
IndRMove STN1, 1ToRelNum:=0Bwd, 180; ! this should rotate and reset axis to 0
WaitUntil IndSpeed(STN1,1eroSpeed);
IndReset STN1, 1;
MoveAbsJ