pub enum StopCategory {
Zero,
One,
Two,
}Expand description
The stop categories of IEC 60204-1 as servo drives make them (SINAMICS: STO / OFF2, OFF3, and a stop that holds).
Variants§
Zero
0: the torque off at once, as Command::Disable; the holding brakes engage after brake.engage_delay_s.
One
1: every drive brakes on its OFF3 ramp (drive.off3_ramp_s) within its torque and current limits; once all stand,
the brakes engage with the torque on, and after their engagement delay the torque goes off. When
drive.ss1_time_s runs out first, the torque goes off then (as SS1’s timer).
Two
2: the plan brakes along the direction it moves at the axes’ acceleration limits and holds there, torque on.
Implementations§
Source§impl StopCategory
impl StopCategory
Sourcepub fn from_number(n: u8) -> Option<Self>
pub fn from_number(n: u8) -> Option<Self>
0, 1 or 2.
Trait Implementations§
Source§impl Clone for StopCategory
impl Clone for StopCategory
Source§fn clone(&self) -> StopCategory
fn clone(&self) -> StopCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StopCategory
Source§impl Debug for StopCategory
impl Debug for StopCategory
Source§impl<'de> Deserialize<'de> for StopCategory
impl<'de> Deserialize<'de> for StopCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StopCategory
Source§impl PartialEq for StopCategory
impl PartialEq for StopCategory
Source§fn eq(&self, other: &StopCategory) -> bool
fn eq(&self, other: &StopCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StopCategory
impl Serialize for StopCategory
impl StructuralPartialEq for StopCategory
Auto Trait Implementations§
impl Freeze for StopCategory
impl RefUnwindSafe for StopCategory
impl Send for StopCategory
impl Sync for StopCategory
impl Unpin for StopCategory
impl UnsafeUnpin for StopCategory
impl UnwindSafe for StopCategory
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