Display MoreDanny,
With this programm, I'm able-ish to make it rotate constantly
I'm saying -ish because there's a trick...
The first time I start the programm, the motor rotate half of a turn and stop (he reaches the velocity I guess)
But if I reload the programm and start it (from INI), now it turns constantly !
And then I can use an output to stop it (1319 i.g.)
It already happened to you ?
&ACCESS RVP
&REL 157
&PARAM EDITMASK = *
&PARAM TEMPLATE = C:\KRC\Roboter\Template\vorgabe
DEF testmda2( )
SIGNAL O_CONTROL_WORD $OUT[1300] TO $OUT[1315]
SIGNAL O_MODES_OF_OP $OUT[1316] TO $OUT[1323]
SIGNAL O_TARGET_POS $OUT[1324] TO $OUT[1355]
SIGNAL O_PROFILE_ACCEL $OUT[1356] TO $OUT[1387]
SIGNAL O_PROFILE_DECEL $OUT[1388] TO $OUT[1419]
SIGNAL O_PROFILE_VEL $OUT[1420] TO $OUT[1451]
SIGNAL O_TARGET_VEL $OUT[1452] TO $OUT[1483]...
$OUT[1300] = FALSE
WAIT SEC 1
$OUT[1300] = TRUE ; enable communication
O_CONTROL_WORD = 15
O_MODES_OF_OP = 3
O_PROFILE_ACCEL = 15000
O_PROFILE_DECEL = 500
O_PROFILE_VEL = 20000
$OUT[1318] = TRUE ; stop the motor
Did you tried this: