pub struct SeekProbe {
pub done: bool,
pub error: bool,
pub state: StateMachine,
/* private fields */
}Expand description
Seek Probe function block.
Jogs an axis in the negative direction until a sensor triggers, then halts and reports completion.
Fields§
§done: boolOutput: operation completed successfully.
error: boolOutput: operation failed — check state.error_code.
state: StateMachineState machine with index, error_code, timers, and messages.
Implementations§
Source§impl SeekProbe
impl SeekProbe
Sourcepub fn call(
&mut self,
axis: &mut Axis,
view: &mut impl AxisView,
execute: bool,
sensor: bool,
)
pub fn call( &mut self, axis: &mut Axis, view: &mut impl AxisView, execute: bool, sensor: bool, )
Execute one scan cycle of the seek-probe state machine.
§Arguments
axis— The axis to jog. Must have been ticked already this cycle.view— The axis PDO view for issuing motion commands.execute— Rising edge triggers the seek operation.sensor— When this goes high during jogging, the axis halts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeekProbe
impl RefUnwindSafe for SeekProbe
impl Send for SeekProbe
impl Sync for SeekProbe
impl Unpin for SeekProbe
impl UnsafeUnpin for SeekProbe
impl UnwindSafe for SeekProbe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more