pub enum Command {
MoveTo(Vec<f64>),
StartCycle,
Stop,
Setpoint(Vec<f64>),
Trajectory(Vec<(f64, Vec<f64>)>),
RatedTrajectory(Vec<(f64, Vec<f64>)>, Vec<Vec<f64>>, Vec<Vec<f64>>),
Disable,
Enable,
Halt(StopCategory),
}Variants§
MoveTo(Vec<f64>)
Point-to-point move of all axes, synchronised.
StartCycle
Run the configured pick-and-place cycle until stopped.
Stop
Finish the current segment, then stay.
Setpoint(Vec<f64>)
A position setpoint from outside (the PLC). The controller interpolates towards it over one setpoint interval, so slow and jittery updates do not arrive as steps.
Trajectory(Vec<(f64, Vec<f64>)>)
A path given as poses at times (seconds from its start, the first at 0 and at the present setpoint, the last at rest). The controller runs a smooth curve through them.
RatedTrajectory(Vec<(f64, Vec<f64>)>, Vec<Vec<f64>>, Vec<Vec<f64>>)
Trajectory with the speed and acceleration at every point given (trace::replay of a trace that carries the
tool’s setpoints): a quintic through them (Hermite interpolation of position, speed and acceleration), so that at
the points the setpoints are exactly those given.
Disable
Switch the drives off: no torque, and a move or cycle under way is dropped. Machines with holding
brakes engage them. Until Enable, every other command is refused.
Enable
Switch the drives on again, holding where the motors stand.
Halt(StopCategory)
A stop as a servo drive makes it, by its stop category (StopCategory); a move or cycle under way is dropped.
(Stop above ends the cycle after its segment.)