Hallo Bocmok!
Das ist die interessante das der Achse im deaktiviertem modus auf 68.7° bewegt.
Gibts im Programm nirgendwo eine definition für diese 68.7°!
M8 ist meine achse.Habe eine zweite drinnen des ist M7(das ist die drehachse).
Beim M7 habe solche problem nicht.Es steht solange es nicht aktiviert und gestartet wird.
PROC main()
IF IsMechUnitActive (M8)
THEN
auswahl;
ELSE
ActUnit M8;
auswahl;
ENDIF
ENDPROC
PROC Drehen_start()
ActUnit M7;
n := (Drehzahl * 360) / 60;
IndCMove M7, 1, n\Ramp:=50;
WaitUntil IndSpeed(M7,1\InSpeed) = TRUE;
ENDPROC
PROC Drehen_stop()
IndrMove M7, 1\ToRelPos:=[[925.04,0.00,1527.70],[0.737275,4.22624E-06,0.675593,4.59001E-06],[-1,0,0,0],[0,9E+09,45,9E+09,9E+09,9E+09]]\Fwd,n;
WaitUntil IndInpos(M7,1);
IndReset M7, 1\RefPos:=[[925.04,0.00,1527.69],[0.737272,-4.2873E-06,0.675596,-1.42839E-06],[0,-1,-1,0],[0,9E+09,45,9E+09,9E+09,9E+09]]\Fwd;
DeactUnit M7;
ENDPROC