pub struct Precontrol {
pub fine_interpolation: bool,
pub constant_inertia: bool,
pub friction: Vec<[f64; 2]>,
pub machine_friction: bool,
pub balance_time: f64,
}Expand description
What the drive does with the setpoints between and beside the gains, as a SINAMICS S120/S210 in DSC is set up. The default is the drive before 14 November 2026: setpoint held, rigid model, no friction, no balancing.
Fields§
§fine_interpolation: booleffects.fine_interpolation: between profile cycles the position loop’s setpoint runs on from the last setpoints as pos + v t + a t^2 / 2, as the speed feedforward runs on as v + a t (its derivative), the drive’s fine interpolator. Off it is held for the profile cycle, as a position loop closed in the controller at the IPO cycle sees it.
constant_inertia: booldrive.torque_feedforward_model = “inertia”: the torque feedforward is one moment of inertia per motor times the motor’s acceleration setpoint (S120 p1498 with p1428 speed/torque precontrol), the inertia the rigid model has at the start pose; no gravity, no speed terms, no coupling. “rigid” (false): the rigid model’s inverse dynamics.
friction: Vec<[f64; 2]>effects.friction_feedforward: the friction characteristic, (speed rad/s, torque N m) points at rising speeds
(S120 p3820-p3839); empty when off. See friction_at.
machine_friction: booleffects.friction_feedforward with drive.friction_feedforward_model = “machine”: in place of the characteristic,
the friction of the machine’s own model at the planned speed (Machine::steady_friction, Drive::friction_ff).
balance_time: f64drive.precontrol_balance_s: the position setpoint passes a first-order lag of this time constant before the position loop compares it, so that it arrives with the motor that the speed precontrol moves through the closed speed loop (S120 p2536 balancing); 0 off.
Implementations§
Source§impl Precontrol
impl Precontrol
Sourcepub fn friction_at(&self, speed: f64) -> f64
pub fn friction_at(&self, speed: f64) -> f64
The friction feedforward at a speed setpoint: linear between the points, from (0, 0) to the first, held beyond the last, with the sign of the speed.
Trait Implementations§
Source§impl Clone for Precontrol
impl Clone for Precontrol
Source§fn clone(&self) -> Precontrol
fn clone(&self) -> Precontrol
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Precontrol
impl Debug for Precontrol
Source§impl Default for Precontrol
impl Default for Precontrol
Source§fn default() -> Precontrol
fn default() -> Precontrol
Source§impl<'de> Deserialize<'de> for Precontrol
impl<'de> Deserialize<'de> for Precontrol
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>,
Source§impl PartialEq for Precontrol
impl PartialEq for Precontrol
Source§fn eq(&self, other: &Precontrol) -> bool
fn eq(&self, other: &Precontrol) -> bool
self and other values to be equal, and is used by ==.