pub struct SimDrive { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl AxisView for SimDrive
impl AxisView for SimDrive
Source§fn control_word(&self) -> u16
fn control_word(&self) -> u16
Read the current control word.
Source§fn set_control_word(&mut self, word: u16)
fn set_control_word(&mut self, word: u16)
Write the control word.
Source§fn set_target_position(&mut self, pos: i32)
fn set_target_position(&mut self, pos: i32)
Set the target position in encoder counts.
Source§fn set_profile_velocity(&mut self, vel: u32)
fn set_profile_velocity(&mut self, vel: u32)
Set the profile velocity in counts/s.
Source§fn set_profile_acceleration(&mut self, accel: u32)
fn set_profile_acceleration(&mut self, accel: u32)
Set the profile acceleration in counts/s².
Source§fn set_profile_deceleration(&mut self, decel: u32)
fn set_profile_deceleration(&mut self, decel: u32)
Set the profile deceleration in counts/s².
Source§fn set_modes_of_operation(&mut self, mode: i8)
fn set_modes_of_operation(&mut self, mode: i8)
Write the modes of operation register (0x6060).
Source§fn modes_of_operation_display(&self) -> i8
fn modes_of_operation_display(&self) -> i8
Read the modes of operation display (0x6061).
Source§fn status_word(&self) -> u16
fn status_word(&self) -> u16
Read the status word.
Source§fn position_actual(&self) -> i32
fn position_actual(&self) -> i32
Read the actual position in encoder counts.
Source§fn velocity_actual(&self) -> i32
fn velocity_actual(&self) -> i32
Read the actual velocity in counts/s.
Source§fn error_code(&self) -> u16
fn error_code(&self) -> u16
Read the drive error code. Returns 0 if not mapped.
Source§fn positive_limit_active(&self) -> bool
fn positive_limit_active(&self) -> bool
True when the positive-direction hardware limit switch is active. Read more
Source§fn negative_limit_active(&self) -> bool
fn negative_limit_active(&self) -> bool
True when the negative-direction hardware limit switch is active.
Source§fn home_sensor_active(&self) -> bool
fn home_sensor_active(&self) -> bool
True when the home reference sensor is active.
Source§fn dynamic_max_position_limit(&self) -> Option<f64>
fn dynamic_max_position_limit(&self) -> Option<f64>
Current maximum software position limit in user units, or
None
if no dynamic limit is configured. When Some, the axis rejects
moves whose target exceeds this value, and quick-stops if the
actual position passes it while moving in the positive direction. Read moreSource§fn dynamic_min_position_limit(&self) -> Option<f64>
fn dynamic_min_position_limit(&self) -> Option<f64>
Current minimum software position limit in user units, or
None
if no dynamic limit is configured. See dynamic_max_position_limit.Auto Trait Implementations§
impl Freeze for SimDrive
impl RefUnwindSafe for SimDrive
impl Send for SimDrive
impl Sync for SimDrive
impl Unpin for SimDrive
impl UnsafeUnpin for SimDrive
impl UnwindSafe for SimDrive
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