Skip to main content

verdicts

Function verdicts 

Source
pub fn verdicts(
    cfg: &Config,
    load: &CycleLoad,
) -> Result<Vec<Verdict>, ConfigError>
Expand description

Judges a cycle against the motor and drive data and the [ratings] of the config. A rating that the config leaves out is not judged. Gearbox and pulley torques are those the machine reports at the gearbox output (MotorLoad::gearbox_torque), so what the rotor’s own inertia takes is not in them, and a load that drives the gearbox back counts with what it puts on the output. On a machine that does not report them, these three checks are not made.

“motor-peak” judges the torque the velocity loop asks for before the torque limit (Drive::torque_demand), so a cycle that sits on the limit fails it.

“gearbox-thermal” and “guide-thermal” judge, with effects.part_heating (or thermal_feedback, which warms the parts too), the hottest gearbox and guide where they settle on the cycle (CycleLoad::part_rises) against thermal.<kind>_max_rise_k. Without either they are not judged.

“gearbox-continuous” judges the cubic mean of that torque against the gearbox’s rated torque, as gearbox makers do; it used to judge the RMS torque, which is for motors and their heat. “belt-least-tension” also fails when any belt section spent time without tension. With effects.dc_link the braking checks judge the simulated DC link: what the capacitors held at the highest voltage, the mean and peak power the resistor burned, and the highest voltage against the trip level. Without it they are estimated from the energy the motor fed back, as before.

“line-module-continuous” and “line-module-peak” judge, with effects.regenerative_supply (and the DC link), the line module’s mean and highest power either way against ratings.line_module_rated_power_w and _max_power_w.

“pulley-bearing-life”, “gearbox-life”, “gearbox-gearing-life”, “motor-bearing-life” and “guide-life” judge pulley_bearing_life_h, gearbox_life_h, gearbox_gearing_life_h, motor_bearing_life_h and guide_life_h against ratings.required_life_h (they pass at or above it); “belt-tooth-load” judges belt_tooth_utilisation against 1.

“singularity” judges the highest condition number of the kinematics’ Jacobian in the cycle (CycleLoad::condition_peak, where the machine reports it) against ratings.max_condition_number: near a singularity the motors’ torques and speeds for a tool force or speed grow without bound, and a tool force or speed for the motors’ shrinks.

“belt-tooth-jump” judges, with effects.belt_tooth_jump, the jumps of the belt’s teeth during the cycle against 0; “belt-span-resonance”, with effects.belt_span_vibration, how close a span’s first sideways mode came to an excitation at steady speed (CycleLoad::belt_span_detuning) against ratings.belt_span_resonance_band (it passes at or above it).

“collision” judges, where the config has obstacles, the least clearance of the run to them (CycleLoad::clearance) against profile.min_clearance_m: it passes at or above it, never at a contact. Without obstacles it is not judged, as a rating left out is not, so it cannot fail there. “self-collision” judges the least clearance between the machine’s own parts that are not joined at its start pose (CycleLoad::own_clearance) against the same limit, as “collision” does; where the machine has no such two parts it is not judged.