pub struct Settings {
pub reaction: Reaction,
pub off1_deceleration: f64,
pub off3_deceleration: f64,
pub pulse_off_speed: f64,
pub following_window: f64,
pub standstill_window: f64,
pub standstill_time: f64,
pub blocked_speed: f64,
pub blocked_time: f64,
pub torque_band: f64,
}Expand description
One drive’s fault reaction and monitoring, from [drive] (and its motor’s [drive.<id>]). Angles and speeds at the
motor, rad and rad/s (m and m/s for a linear motor).
Fields§
§reaction: Reaction§off1_deceleration: f64The ramps’ decelerations, rad/s^2: the rated speed over drive.off1_ramp_s and off3_ramp_s, the times from the
rated speed to standstill. The drive’s p1121 and p1135 count from its maximum speed p1082 instead (S120 List
Manual p. 528, 530): p1121 = off1_ramp_s x p1082 / rated speed, as sim-cli parameters converts it.
off3_deceleration: f64§pulse_off_speed: f64Once its ramp is down, a drive takes its pulses off below this speed (p1226).
following_window: f64§standstill_window: f64§standstill_time: f64§blocked_speed: f64§blocked_time: f64§torque_band: f64The band around the expected torque, as a share of the peak torque; 0: that monitor is off. The expected torque is
the feedforward (Drive::torque_ff) and, with drive.torque_feedforward_model = "inertia" (no gravity in it), the
torque that holds the planned pose (Drive::torque_hold), and the friction the machine’s own model takes of the
motor’s torque at its state (motor.<id>.torque_friction, given to Watch::check); where the machine does not
report that, the friction at the planned speed (the characteristic of the friction feedforward where the drive has
one, else Machine::steady_friction) in Drive::torque_hold. A held load and the friction are expected, a lasting
extra load is not.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn from_config(cfg: &Config, p: &DriveParams) -> Result<Self, ConfigError>
pub fn from_config(cfg: &Config, p: &DriveParams) -> Result<Self, ConfigError>
From a motor’s config (catalog::motor_config). A config without the keys (one written before 14 November
2026) gets the values of the shipped configs.
Sourcepub fn deceleration(&self) -> Option<f64>
pub fn deceleration(&self) -> Option<f64>
The deceleration of its stop ramp, rad/s^2: infinite at the current limit, None for STO (no ramp).