Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Mike Nash on April 29, 2021, 06:14:25 PM
-
I'm migrating a project from DO-06 to BX that runs a stepper.
I see in Help where the instruction can be interrupted, but what happens to a move or timer or whatever, at the moment the Input Leg goes false? And where/how does it get back into the script when enabled?
I mostly want to know if a trapezoidal incremental move is going to decel to zero mid-move, finish the move first, or just turn off the axis outputs?
And how it completes the step when re-enabled?
I need it to interrupt the move by ramping to stop, then finish the move when re-enabled.
-
Look at the Axis structure .suspend member that will do what you want as long as it hi the motion will ramp to a stop and stay stopped once it clear ramp back up and finish the move.
-
Thanks,
I finally spotted the .Suspend, but had already done it with the regular trapezoidal and just loading the distance to complete the move before enabling again. That's how I had done the D0-06.
-
The 3 axis stepper system I made I wrote a whole different program for each axis just for testing and just the motor on the floor
Why guess if it might crash.....which I did several times anyways :)