Expand description
Analysis for motor sizing: peak and RMS torque per cycle, operating points against the torque-speed curve, and the mechanical frequency response.
Structs§
- Band
- A verdict with what the uncertain parameters do to it: the lowest and the highest value it took, and
whether it passed every time.
verdictis the one of the config as it is; for a check that only a bound brings up (the braking resistor, once the DC link is full) it is the first one seen. - Budget
Row - One line of an energy budget.
- Cancelled
- The payload of the unwind that ends a cancelled job: it is raised with
resume_unwind, so no panic message is printed, andwith_progressturns it back intoErr(Cancelled). - Comparison
- The same cycle run twice, once with an effect on and once with it off (
compare_effect), for overlaying the two. - Conveyor
Load - One pick from the conveyor (
[conveyor]), the measured pass of the cycle. - Cycle
Load - Energy
Budget - Where the energy drawn from the supply over the measured pass went (see
analyse_cycle). - Front
Point - A setting on the energy-against-time front: cycle time (s), energy per cycle from the supply (
supply_energy, J), the highest utilisation of any motor’s torque-speed curve (MotorLoad::utilisation), and the setting: factors on the axes’ speed, acceleration and jerk, corner blending and input shaping. The lifts are not shown. - Guide
Load - One guide’s load over the cycle (
CycleLoad::guides). - Hammering
- A velocity loop that keeps oscillating on its own across a gearbox’s play after a kick at rest
(
backlash_hammering): the frequency, the peak of the torque the loop asks for about its mean (N m), and the pose it hammers at, an index intomargin_poses(0 the start pose). - Lift
Change - A lift, traverse and lower of the cycle that the optimiser changed: the three segments of the configured cycle
(counted from 0), the height of the traverse (the last axis) before and after, and the via points the path is rounded
through, where it took them (then the three segments are one: a path up, through the via points and down, see
control::via_pieces): one over the middle or over the nearest obstacle, or two per obstacle in the way, the height profile (lift_profiles). - Link
Account - The DC link’s running account of
resistor_excess, kept as the stretches come (Tally, where the motor’s room is known at the run:Controller::dc_link_room). Only the stretches until the link’s fill no longer depends on how full it entered the cycle are kept: until the pass entered empty and the one entered full meet, which they do the first time the link empties or fills whatever it held (a hanging axis at rest draws, so empties it at once). After that one fill stands for every entry, and what it spills and the most it holds are summed as they come. At most the stretches up to that point, so on a run at rest with noisy power the list stays at the few stretches before the link first emptied, where before it grew by one per sign change of the power (about 90 per cycle). Same figures as the two passes over the whole list, to rounding (the spills are summed in another order). - Loop
Margins - What an open-loop response says about the stability of the loop.
- Loop
Point - One point of the open-loop response of a motor’s velocity loop (
velocity_loop_response): the loop gain L as a complex number (real, imaginary part) and the sensitivity |S| = |1 / (1 + L)| as measured. L is NaN where the point is not a measurement of the linear loop: the torque limit was hit, or the loop moved on its own. - Lubrication
- What a_ISO of the pulley shaft bearing is worked out from: the lubricant’s kinematic viscosity at operating temperature ν (mm²/s), the contamination factor e_C (ISO 281:2007, Table 13, for a mean diameter below 100 mm: 1 extreme cleanliness, 0.8 to 0.6 high (typical of bearings sealed and greased for life), 0.6 to 0.5 normal, 0.5 to 0.3 slight, 0.3 to 0.1 typical, 0.1 to 0 severe, 0 very severe contamination), the bearing’s fatigue load limit C_u (N) and its mean diameter D_pw (mm).
- Motor
Load - The load on one motor over one pass of the cycle.
- Optimise
Options - What to optimise for: at most
max_runscycles in the search;robust: the result has to pass every verdict in the error bands too (verdict_bands, one bound of[bounds]at a time), not only as configured;pareto: the non-dominated set of cycle time, energy and peak utilisation (Optimised::front), with a sweep of slower settings;worst(withrobust): judged at the worst corner of all bounds at once (verdict_worst) instead of the bands. - Optimised
- A cycle made faster: the cycle before and after, the settings that changed (path, before, after) and
the number of cycles that were simulated on the way. Where the optimiser changed the cycle’s geometry,
changeshas the whole new cycle as the entry “cycle.segment” (TOML, forConfig::set_text), andliftssays what changed.runscounts the search’s cycles, the sweep ofOptimiseOptions::paretoamong them; the bands’ are inrobust. - Progress
- A long measurement’s progress, read from another thread: measurements done, measurements planned so far (the
refinement adds to them), and a switch that stops it (
velocity_loop_responsesthen answerscancelled). - Robust
- The fastest setting the search found on the verdicts as configured, judged in the error bands: its cycle time and
the checks it fails there (none where it passes); the checks the cycle as configured fails in the bands already,
which the result is not judged on (it cannot take back a margin the config does not have); how many accepted steps
the result went back from the fastest to the fastest one that passes the other checks in the bands; and the cycles
the bands took (2 n + 1 per setting judged, n the bounds). With
worst, all of it at the worst corner instead: there the search stops at the first batch of runs that fails a check judged on, sonominal_failsare the checks found failing by then (not every one), andrunscounts the worst-corner searches’ cycles. - Sensitivity
- What one parameter does to the cycle when it is lower and when it is higher than in the config.
- Step
Response - The answer of one axis to a small step of its position setpoint.
- Sweep
Point - One point of the frequency response from a motor’s torque to its own speed.
- Tally
- What a run adds up step by step, for a cycle or a trajectory, or for any run stepped from outside (a controller of
the user’s own,
kinematics_sim.Sim):stepafter eachSim::step, thenfinishgives the load the verdicts judge. The path, tracking and dwell errors are measured against the controller’s plan. - Verdict
- One judgement of a cycle: a value the cycle reached against what a part allows.
- Warm
Start - A cycle analysis started warm (effects.thermal_warm_start): the measured pass ran with the windings (with
effects.winding_heating) and the heated parts (with effects.thermal_feedback) at the rises the pass before settled
at, by
passespasses of cold → settled → warm → settled;changeis the most a rise the measured pass started at lies from the one it settles at, K (infinite where a rise does not settle, or the run stopped).period: the passes the measured span covers, more than one where the cycle repeats only every so many passes (a pick that alternates between two places loads the motors differently pass by pass): the rises then settle over the period, not per pass.repeat: where the passes converged neither per pass nor over a period, how far apart (K) the rises settle of two passes started at the same rises, the measured one and one more run after it (Nonewhere not measured). Beyond the tolerance the cycle’s motion does not repeat itself: what one pass leaves moving (a load still swinging) carries into the next and loads the motors differently, which no start temperature can settle. - Worst
- The worst combination of the bounds found for one verdict: the verdict as judged there, and per parameter of the
bounds (in their order) whether it is at its high bound (
Some(true)), its low one (Some(false)) or as configured (None: where a run with one parameter alone at a bound, or the config as it is, was the worst).
Constants§
- AT_
LEAST - The checks whose value has to stay at or above its limit (“belt-least-tension”: above); every other check’s value has to stay at or below it.
- BUDGET_
TOLERANCE - How far an energy budget may be off, as a share of the supply. The electrical side closes to
ELECTRICAL_TOLERANCE, so what is left is the machine’s own balance: its losses are taken at the end of each step and summed times the step, the trapezoid rule but for the ends (seetestkit::loss_budget). - CANCELLED
- The key of the error a cancelled measurement answers with (
ConfigError::Invalid). - ELECTRICAL_
TOLERANCE - How far the electrical side of an energy budget may be off (
EnergyBudget::electrical_unaccounted), as a share of the supply: the error of the fourth-order integration of the winding’s energy over a base step. - HAMMER_
SWEEP_ S - How long
backlash_hammeringsweeps, and the windows it watches the loop in afterwards. - HAMMER_
WINDOW_ S - LINK_
GRID - Entry fills over the voltage window a link account keeps passes for past
LINK_PREFIX_CAP(LinkAccount). - LINK_
PREFIX_ CAP - Stretches a link account keeps before it keeps passes over the voltage window in their place (
LinkAccount): some 1500 cycles of a machine at rest whose power changes sign about 90 times per cycle. - LOOP_
FLOOR_ HZ - The lowest frequency
velocity_loop_responsesfollows a loop down to when its gain crossover lies belowloop_frequencies(a loop with less band than this is no servo loop to judge). - LUBRICATION_
KEYS - The keys of
Lubrication, in its order. - MAX_
TORQUE_ REVOLUTIONS - The output revolutions a Siemens planetary gearbox takes at its maximum torque M2max (NRB, NRK, NLC: “for at most
30 000 output revolutions”, equipment manual 04/2025, chapter 6;
catalog/siemens/gearbox_nrb.meta.toml). - RATINGS_
BEYOND_ DEFAULT - Keys that no default config has and a config file may add (see
load_config): ratings thatverdictsjudges, the[conveyor]table (conveyor::Conveyor), whose cycle picks from a belt, the[gripper]table and the motor kinds’ own keys (drive::Motor: a stepper’s and an induction motor’s). - REFINE_
CLOSEST - Points closer than this ratio of frequencies are not split again (0.1 %, a twentieth of the half-power width of a mode with 1 % damping).
- REFINE_
GAIN_ DB - REFINE_
ROUNDS - At most this many rounds of splitting: 9.4 % halved eight times is 0.04 %.
- REFINE_
TURN_ DEG - Where neighbouring points of a response differ by more than this turn (degrees) or this change of magnitude (dB),
a sharp resonance may lie between them:
refinementmeasures their middle too. A first-order lag turns by at most 5 degrees between two of the 60 points ofloop_frequencies(9.4 % apart), the velocity loop’s delays by about 17 degrees at 2 kHz; a resonance with 1 % damping turns by 180 degrees within 2 % of its frequency. - SPEED_
BAND - The width of the speed bands of
MotorLoad::gearbox_torque_by_speed, rad/s of the motor. - SWEEP_
POINTS - How many frequencies a sweep has unless told otherwise. The first default machine’s lowest dip is about 2 Hz wide at 22 Hz; 120 points from 5 to 500 Hz put two points into it, 60 points one.
- WARM_
START_ PASSES - The most warm passes of a warm start (
analyse_cycle_with) before the last is measured, converged or not; as many again of periods, where the passes it took repeat every few (period_of). - WARM_
START_ PERIOD_ MOST - The most passes a cycle’s period may span for the warm start to find it (
period_of). - WARM_
START_ TOLERANCE_ K - How far the rises a warm pass starts at may lie from those it settles at for the warm start to count as converged, K: a tenth of a kelvin moves a winding’s resistance by 0.04 % and a guide’s viscosity by 0.5 %.
- WORST_
PASSES - How many passes of flipping one parameter at a time
verdict_worstmakes at most.
Functions§
- analyse_
cycle - Runs the configured cycle and measures its second pass, when the machine has settled into it. If a drive trips before, the cycle never gets there: what is measured then is the run up to the trip.
- analyse_
cycle_ with analyse_cycle, with the effect views (MotorLoad::torque_parts,CycleLoad::budget) only whereviewsasks for them: they cost one more evaluation of the machine per step, and no verdict needs them.- analyse_
trajectory - Runs a path given as poses at times (see
Command::Trajectory) and measures it, with 0.3 s of rest after its end so that the settling of the tool counts. With effects.thermal_warm_start asanalyse_cycle: the path counts as a cycle that repeats, and every pass starts from a copy of the machine’s start state (Sim::snapshot) with the rises the previous pass settled, so nothing that still rings carries over. - analyse_
trajectory_ with analyse_trajectory, with the effect views only whereviewsasks for them (seeanalyse_cycle_with).- any_
not_ finite - Whether a value or a limit of these verdicts is NaN or infinite: what an unstable, diverging loop leaves behind
(a result that is not a number is not a pass either). Front ends say so (
verdict-not-finite). - backlash_
hammering - Whether the velocity loop of
motorhammers across its gearbox’s play: a time run, as the small-signal measurement (velocity_loop_response) cannot tell. Inside the play the measurement sees the rotor alone; a loop that is stable there can still be unstable with the flanks in contact, and then the rotor swings from flank to flank in a limit cycle (the describing function of the play rises from 0 with the rotor inside it to the flanks’ stiffness with it far beyond, so the loop crosses -1 at some amplitude). The motor’s rated torque, swept over the band at rest (after_a_sweep), takes the rotor across the play at each frequency in turn. The loop hammers where, 0.1 to 0.3 s after the sweep, the torque it asks for still swings by more in RMS than the margin measurement’s test torque (loop_amplitude, beyond whichloop_pointsays a loop moves on its own) and has not fallen to half from the one window to the next, and where the same run witheffects.gearbox_backlashoff is quiet (otherwise the play is not the cause). On the measurement’s config (lossless), at each pose ofmargin_poses: where it hammers at several, the one with the largest peak of the torque.Nonewithout the play. - bandwidth
- The -3 dB bandwidth of a closed-loop response: where the gain first falls below 1 / sqrt(2), interpolated between the measured points on the logarithmic frequency axis.
- belt_
tooth_ utilisation - The tooth load of the belt on this motor’s pulley against its rating, by the method of Megadyne’s MEGALINEAR handbook
(02.2026, page 9): the effective pull Fu = output torque /
geometry.pulley_radius_mtimes the service factorratings.belt_service_factor, against the specific tooth load the teeth allow at the pulley’s speed (ratings.belt_tooth_load_n_cmatratings.belt_tooth_load_rpm, interpolated, held beyond the ends) times the width in cm (ratings.belt_width_mm/ 10) and the teeth in mesh (at most 12):ratings.belt_teeth_in_mesh, or with effects.belt_wrap those of the smallest wrap over the pass (MotorLoad::belt_wrap), wrap r /belt.tooth_pitch_m(wrap / (2 pi) of the pulley’s 2 pi r / p teeth). The highest ratio over the cycle, each speed band (MotorLoad::gearbox_torque_by_speed) at its upper speed, where the rating is lowest.Nonewhere the machine reports no output torque or the config lacks one of these values, and for a motor that turns no pulley (the machine reports neither its pulley’s radial load nor its wrap: a screw, rack or linear motor in a machine file whose other motors drive belts). A rating, not a life: no belt maker publishes a life in hours or load cycles for these belts. - bounds
- The low and high bound of every uncertain parameter of a config, as (path, low, high).
- check_
cancelled - Ends the current job at once (an unwind to
with_progress) where it was cancelled; does nothing outside a job. For the long loops that do not go throughon_all_cores. - closed_
loop_ response - Closed-loop frequency response of the position loop of one axis: a sine on the position setpoint, measured at the tool. Gain is tool amplitude over setpoint amplitude. Each frequency is measured on a simulation of its own, so they share the processors.
- compare_
configs - The cycle of
onagainst that ofoff: both run on simulations of their own; they are expected to be of the same machine, with the same signals. - compare_
effect - The cycle of
cfgwitheffects.<effect>on and with it off, whatever the config has it at. - default_
sweep_ amplitude - The torque amplitude of a sweep unless told otherwise: 1.5 N m, or 40 % of the drive’s peak torque where that is less. At 0.05 N m the stiction of the default machines holds the motors and there is no dip, and up to 1 N m friction still pulls the dip of the second default machine low (70 Hz at 0.5 N m, 81 at 1, 84 at 1.5); above 1.5 N m that machine shows a second, false dip (62 Hz at 2 N m) from its nonlinearities. The 40 % leave a small motor (0.56 N m peak) most of its torque to hold the axis with.
- frequency_
sweep - Mechanical frequency response without control: a sine torque on one motor on top of the holding torques, measured at that motor’s speed once the response has settled. Belt resonances show as peaks, the load swinging against the held motor as a dip. Each frequency starts from the same rest, on a machine of its own, so they share the processors.
- gearbox_
gearing_ life_ h - The fatigue life of the gearbox’s gearing in hours, where the machine reports the output torque and the config has
ratings.gearbox_rated_torque_nm(M2N),ratings.gearbox_max_torque_nm(M2max) andratings.gearbox_gearing_wohler_exponent(k):gearing_life_hover the cycle’s load spectrum (MotorLoad::gearbox_torque_spectrum), each band at its upper torque, with the output’s revolutions per hour in it. Siemens’ own damage sum over overload partial cycles is in its gearbox configuration manual, which is not in the repository; this is the textbook method on Siemens’ two figures (M2N continuous, M2max for 30000 revolutions) with an estimated exponent (the configs’ comments say how). Torque at or below M2N does no damage: a cycle that never exceeds it has no figure (None), as a rating left out is not judged; the life would be infinite. - gearbox_
life_ h - The life of a planetary gearbox’s planet bearings in hours by Siemens’ formula (configuration manual “Planetary
gearboxes for S-1FK2 and S-1FT2 servomotors”, 01/2023, section 6.3.3): L10h = 20000 h · (n2B / n2) · (M2N / M2eq)^(10/3),
with the rated torque M2N (
ratings.gearbox_rated_torque_nm), the reference output speed n2B (ratings.gearbox_reference_speed_rpm), the mean output speed n2 and M2eq the mean of the output torque with the exponent 10/3 weighted with the speed (MotorLoad::gearbox_life_torque). Where the machine reports the output torque and the config has both ratings. Times the life factor a1 (reliability_factor): Siemens’ figure is an L10 too. - gearing_
life_ h - The life of a gearing in hours by Palmgren and Miner’s damage sum over a load spectrum of (output torque, output
revolutions per hour), on a Wöhler line through the maximum torque M2max at
MAX_TORQUE_REVOLUTIONSwith the exponent k: a torque M above the rated torque M2N allows N = 30000 · (M2max / M)^k revolutions, one at or below M2N any number (the knee of the line at M2N). The damage per hour is the sum of the revolutions over the allowed ones, the life its inverse; infinite where no torque is above M2N. - guide_
life_ h guide_life_kmin hours: the distance over the mean speed of the guide’s axis over the cycle (GuideLoad::speed), times the reliability factor a1 as every other life (reliability_factor); the lowest over the guides whose axis is known.- guide_
life_ km - Nominal life of the guide that has the least, in km, where the machine reports guide loads and the config has
ratings.guide_dynamic_load_rating_n: L10 = (C / P)^3 * 50 km, the catalogue formula for ball guides, with the dynamic load rating C and for P the cubic mean of the guide load over the cycle’s distance (weighted by the axis’s |speed|, as the pulley’s radial load is; over time where the guide’s axis is unknown). The lowest over all guides (CycleLoad::guides). - life_
modification_ factor - The life modification factor a_ISO of ISO 281:2007 (section 6.3.3.3, radial ball bearings) for the viscosity ratio κ
and
load_ratio= e_C · C_u / P: a_ISO = 0.1 · [1 - x · (e_C · C_u / P)^(1/3)]^-9.3, x = (2.5671 - 2.2649 / κ^0.054381)^0.83 for 0.1 <= κ < 0.4, (2.5671 - 1.9987 / κ^0.19087)^0.83 for 0.4 <= κ < 1 and (2.5671 - 1.9987 / κ^0.071739)^0.83 for 1 <= κ <= 4; at most 50, as the standard limits it. - lift_
profiles - Per lift of the cycle with two or more obstacles in its way (as the optimiser finds them,
optimise_cycle_with): its three segments, its height profile asprofilebuilds it, and how far the optimiser raises those points for the planned spline through them to keep the clearance (smoothed_profile). Empty without obstacles; lifts with fewer than two obstacles in the way, or whose profile does not clear, are left out. - log_
spaced - Frequencies spaced evenly on a logarithmic axis, both ends included.
- loop_
amplitude - The amplitude of the test torque: a tenth of the rated torque of the motor
id(its own[drive.<id>], not the shared one). - loop_
frequencies - Frequencies of the velocity-loop measurement of
velocity_loop_margins: 10 Hz to a quarter of the velocity loop’s sampling rate (2 kHz at 125 us; above it a period has fewer than four samples), 60 points. - loop_
margins - Margins from an open-loop response, between neighbouring points interpolated linearly in log |L| and in the unwrapped phase. Points too far apart (more than 180 degrees of phase between them) can miss a sharp resonance. A point without a measurement (NaN) makes the margins not valid (and NaN).
- lubrication
- The pulley shaft bearing’s
Lubrication,Nonewhere the config has none of its keys (then a_ISO is 1). A config with some of them must have all: ν and D_pw above 0, e_C from 0 to 1, C_u not negative. - margin_
payloads - Whether the payload is on at each pose of
margin_poses: on at the start (the controller starts with it attached), then as the segment that arrives there has it (payloadis the gripper’s state once the segment has arrived). All on where the machine has no payload (effects.payloadoff), which changes nothing in it. - margin_
poses - The poses the loops are judged at (
velocity_loop_margins,backlash_hammering): the start pose first, then each other pose the cycle stops at (the targets ofcycle.segment), once each; a pose the cycle reaches with the payload on and with it off is listed once for each (margin_payloads). The start pose alone without a cycle. - modes_
along - The modes the machine reports (
Machine::modes) atpointsplaces spread evenly over the range of axisaxis, both ends included, the other axes whereposehas them: the resonances over a stroke, to choose shaper frequencies by (sim-cli modes, the app’s plot of them). Each place with its modes, which may be fewer at one place than at another. - motor_
bearing_ life_ h - The rating life of the motor’s own bearings in hours, where the belt’s pulley sits on the motor shaft: where the
config has
ratings.motor_bearing_load_rating_nand no gearbox (gearbox.ratio1),rating_life_hwith that C, the pulley shaft’s radial load (MotorLoad::radial_load_equivalent) and the motor’s mean speed, times a1. Behind a gearbox the motor’s bearings carry no belt pull, the gearbox’s output bearing takes it (pulley_bearing_life_h), and there is no figure. Siemens gives no load rating for the 1FK2’s bearings, only the radial force they allow for L10h = 25000 h at a mean speed; C is worked out from that by the same formula (catalog/siemens/motor_bearings_1fk2.csv). No a_ISO: Siemens’ 25000 h are for its own grease and seals. - non_
dominated - The points that no other one beats: none other is as good in all three figures and better in one. Fastest first; a point that is there twice is kept once.
- non_
dominated_ indices - The indices of the rows of figures (each the same number of figures, lower better) that no other row beats: none
other is as good in every figure and better in one. A row that is there twice is kept once, the first; in the order
of the rows. For the optimiser’s front (
non_dominated) and the catalogue search’s (search::front). - optimise_
cycle - Shortens the cycle of a config without breaking a verdict. Tries corner blending, then raises speed,
acceleration and jerk of all axes together in steps for as long as the cycle gets shorter and every
verdict of
verdictsstill passes, among them the settling tolerance, so a faster move that leaves the tool swinging at the pick does not count. Input shaping makes no cycle shorter by itself (every stop waits one period of the shaper), so it is tried where it can help: a faster setting that fails on “settling” alone is run again with the shaper, and with the shaper following the pose where the machine reports a resonance, and is taken if it then passes and is shorter. A setting with the shaper that still fails on “settling” alone is run again with a second shaper convolved with it, atprofile.shaper2_frequency_hzwhere the config has one, else at the machine’s second mode at the start pose (Machine::modes), else at the one resonance it reports there where that is more than 10 % off the first shaper’s frequency (no second shaper is tried where none of these is). Where a shaper is on already, switching it off is tried too. Simulates at mostmax_runscycles. - optimise_
cycle_ with optimise_cycle, and withoptions.robusta result that passes in the error bands: the fastest setting found is judged withverdict_bandsover the config’s[bounds]; where it fails, the accepted steps of the search are gone back one at a time, each judged in the bands, until one passes (2 n + 1 cycles each, n the bounds). Withoptions.pareto, every setting run that passes every verdict, and a sweep of slower ones from the result (its acceleration and jerk, and all three limits, at 0.8, 0.6 and 0.4 times: six cycles more), give the front of cycle time against energy and peak utilisation (Optimised::front).- play_
margin - The describing function’s gain margin of a velocity loop across its gearbox’s play, dB, from the loop measured with
the play (
play: small signals, the rotor swinging inside it) and with the flanks held together (closed, the config witheffects.gearbox_backlashoff). Two things in the loop depend on the swing’s amplitude A. Across the play the flanks pass their spring’s and their damper’s force only while in contact (Gearbox::torque): over a swing about it the first harmonic of both is kappa(A) = 1 - (2 / pi) (asin(b / A) + (b / A) sqrt(1 - (b / A)^2)) of the gear’s impedance y (b the half play), 0 inside the play, 1 far beyond it. And the friction on the rotor (its seals, the gearbox’s drag, the mesh), which damps the small-signal measurement (Re(1/P) some 0.2 N m s/rad on the five-bar’s tool turn, three times its J w at 650 Hz), is a Coulomb force whose first harmonic, 4 F / (pi A w), fades as the swing grows. The margin is taken with it faded: the rotor alone, J_m s (J_m the median of Im(1/P) / w over the upper half of the play’s band), on kappa y to the load J_L (J_m + J_L from the closed plant at its lowest frequency), 1 / P(kappa) = J_m s + kappa y J_L s / (kappa y + J_L s), y at each frequency from the closed plant (which so holds the friction’s small-signal share, scaled with kappa), and the rest of the loop, C = L / P, from the closed measurement. The least gain margin (loop_margins) of L(kappa) = C P(kappa) over kappa from 1e-3 to 1 (301 values, log spaced), each on 3000 frequencies over the band (C’s log gain and unwrapped phase and y interpolated in log f). A swing that the friction still damps is quieter: the five-bar’s tool turn reads -3.07 dB at 0.08 N m s/rad, so it would hammer from 0.0562, where the time run (backlash_hammering, bisected) hammers from 0.0782 with its friction and from 0.0478 with it off (the impacts’ harmonics and the damper that cannot pull, which the first harmonic leaves out). NaN where the play does not change the loop (none on that motor: the two measurements within 1e-3 at every common frequency), where a measurement is not valid, or the inertias do not come out positive. - pulley_
bearing_ a_ iso - a_ISO of the pulley shaft bearing at the equivalent load
pand the mean speedrpm:life_modification_factorof κ = ν / ν1 (reference_viscosity) and e_C · C_u / P. 1 where the config has nolubrication;Nonewhere it is invalid. κ is that of the mean speed. - pulley_
bearing_ life_ h - The rating life of the bearing that takes the belt’s pull on this motor’s pulley shaft, in hours, where the machine
reports that radial load and the config has
ratings.pulley_bearing_load_rating_n:rating_life_hwith that C, P the cubic mean of the radial load weighted with the speed (MotorLoad::radial_load_equivalent) and the pulley’s mean speed, times the life factor a1 (reliability_factor) and, where the config has the lubrication (lubrication), the life modification factor a_ISO (life_modification_factor): L_nm = a1 · a_ISO · L10. One bearing, all of the pull on it, no axial load. - rating_
life_ h - The basic rating life of a ball bearing in hours (ISO 281): L10h = (C / P)^3 · 10^6 / (60 n), with the dynamic load rating C and the equivalent load P in the same unit and the mean speed n in r/min.
- record_
cycle - Runs the configured cycle and keeps every signal once per millisecond over its second pass, as
analyse_cyclemeasures it, with the time counted from the start of that pass. - reference_
viscosity - The rated viscosity ν1 of ISO 281:2007 (section 6.3.3.2), mm²/s: what the lubricant needs at operating temperature
for a bearing of mean diameter D_pw (
mean_diameter_mm) at n (rpm, r/min): 45000 · n^-0.83 · D_pw^-0.5 below 1000 r/min, 4500 · n^-0.5 · D_pw^-0.5 from 1000 r/min. The viscosity ratio is κ = ν / ν1. - refinement
- The frequencies to measure next between neighbours of a response,
points(frequency, complex value) in frequency order: the geometric middle of each two that differ by more thanREFINE_TURN_DEGorREFINE_GAIN_DBand are further apart thanREFINE_CLOSEST. Points with a value that is not a number are not split. - reliability_
factor - The life factor a1 of ISO 281 for the reliability R of
ratings.bearing_reliability_percent, which turns the L10 of a bearing into the life R % of bearings reach: a1 = 0.95 · (ln(100 / R) / ln(100 / 90))^(2/3) + 0.05, the Weibull form behind the standard’s table (1 at 90 %, 0.64 at 95 %, 0.25 at 99 %). 1 where the config has no reliability;Nonefor one outside 90 to 99.95 %, where the standard gives no factor. - repeating_
peak - The highest a drive’s thermal image (
drive::Overload) reaches when a pass repeats for long. The pass ran from the nodes [slow, chips]startand ended atend(time, nodes), withsamples(time, nodes) between. Each node is linear in its start: one started at x0 lies (x0 - start) exp(-t / tau) above the pass’s at every t. The start a repeating pass returns to is x0 = f / (1 - exp(-T / tau)), where f = end - start exp(-T / tau) is what the pass itself added. The image is the nodes’ sum. - s1_
torque - The motor’s S1 torque at a speed, as Siemens sizes a cycle (RMS torque at the mean speed against it): from the static
torque kt I_0 at standstill (
motor.stall_current_a) straight to the rated torque at the rated speed, and on along that line above it.Nonewhere the config has no stall current. Where it has the maker’s printed curve (motor.s1_curve_speed_rad_sandmotor.s1_curve_torque_nm, digitised from the graph) the torque is read from it, linearly between its points (drive::s1_interpolated), with the bend the voltage limit gives above the rated speed. - second_
shaper_ frequency - The second input shaper’s frequency the cycle optimiser tries (Hz) with the plan at
pose:profile.shaper2_frequency_hzwhere set (above 0); otherwise the second of the modes the shaper acts on (Machine::sway_modes: a crane’s upper swing with the hook block, not the load’s bounce on its rope), or, where the machine tells only one, its resonance where that is more than 10 % offprofile.shaper_frequency_hz.None: no second shaper to try. - sensitivity
- The cycle with the config as it is, and with each of
pathsat a low and at a high value, one at a time: the bounds the config gives the parameter (seebounds), or the value scaled by 1 - delta and by 1 + delta where it gives none. Shows which of the uncertain parameters the results depend on, and so which are worth measuring. A parameter of value 0 without bounds (nothing to scale), one that is not a number, whose changed value the machine refuses, or that only an effect that is off uses (seebounds), is left out, and so are the analysis’ own choices inNOT_MACHINE_DATA. - set_
bounded - Sets a bounded value in the type its key has.
set_text("{path} = {value:?}")wrote a float, which an integer key refused with a Type error that ended the whole band run. An integer key takes the value rounded (boundskeeps its bounds whole; a sampled value between them is rounded to a count). - set_
max_ threads - Limits the threads the analyses run their cycles on to
count(0: one per processor, as by default). The results do not depend on it, only the time they take. - small_
amplitude_ along - The small-amplitude modes (
Machine::modes_small_amplitude) at the places ofmodes_along‘srows, orNonewhere they are the large-amplitude ones everywhere (no gearbox hysteresis): the front ends’ second column. - step_
response - Steps the position setpoint of one axis by
size(without feedforward, so only the feedback loops answer) and records the tool position. With friction on, a small step shows stiction too. - supply_
energy - The energy a cycle takes from the supply, J: what the drives drew less what they fed back, plus what the braking
resistor burned of what they fed back (with the DC link simulated; a shared one counted once). What the capacitors
hold more at the end than at the start counts as fed back. With the DC link simulated also what the bleeders took
out of it and the line module’s (or an S210’s rectifier’s) own loss,
effects.dc_link’sratings.line_module_efficiencyeta both ways: it drawsdrawn / etafrom the line for thedrawnit puts into the DC link and gives the mainseta * fedof thefedit takes out (effects.regenerative_supply), so it loses(1/eta - 1) drawn + (1 - eta) fed; with the load’sline_module_energy = drawn + fedandmains_energy = eta * fed,fed = mains_energy / eta. The DC link’s balance, drawn - fed = net + burned + bleeders (+ what the capacitors gain), makes this the energy drawn from the line less what the mains got back. A shared link is counted once, with the shared config’s efficiency; a link of its own with its motor’s (catalog::motor_config). - torque_
band_ floor - The lower torque of band
iofMotorLoad::gearbox_torque_spectrum, N m: 0.1 N m · 1.01^i. - utilisation
- Above 1 it fails (but “belt-least-tension” at exactly 1). A check of
AT_LEASTat or below zero (a contact, “collision” at no clearance; a belt section pushed, “belt-least-tension” with a negative tension) is infinitely far over: limit over value would be negative there, and read as a margin above 100 %. - velocity_
loop_ margins - The margins of every motor’s velocity loop for the config as it is, at each pose of
margin_poses(the start pose first) in the payload state the cycle has there (margin_payloads), and with each value ofboundsat its low and at its high bound, one at a time (asverdict_bands), at the start pose: per run its name (“” for the config as it is, “start.pose=[x y …]” at another pose, with “ effects.payload=false“ where the payload is off there, “path=value” otherwise) and the margins per motor, from the refined responses ofvelocity_loop_responses. A hammering’sposeis the run’s. - velocity_
loop_ response - The open-loop response of the velocity loop of one motor, measured on the closed loop as a drive’s own measurement function does: a sine torque d is added to what the loop asks for (u), before the limit, with the machine holding its start pose. The torque that reaches the motor is e = u + d, the loop answers u = -L e, so L = -U / E and S = E / D at the frequency. Everything between the two is in L: velocity filter, PI, torque filter, delays, current loop, the elastic mechanics, and the position loop around it. Sampled at the velocity cycle, over whole periods: at least 0.1 s to settle and 0.1 s to measure.
- velocity_
loop_ responses - Per config of
configs(of the same machine) per motor the open-loop response of its velocity loop (velocity_loop_response), in frequency order: atloop_frequenciesand the machine’s resonances (Machine::modesof the first config) at the config’s own start pose, below the band down to the gain crossover where it lies there (toLOOP_FLOOR_HZ), and where the loop gain or the plant changes fast between two points at their middle (refinement), in up toREFINE_ROUNDSrounds. Every point is measured on a simulation of its own: they share the processors.progresscounts them and can stop the measurement. - verdict_
bands - The verdicts of the cycle with error bands: the cycle is run with the config as it is and with each
parameter of
bounds(path, low, high; seebounds) at its low and at its high value, one at a time, two runs per parameter. A band is the envelope of all these runs. - verdict_
bands_ sampled - The verdicts of the cycle with error bands that count interactions: the cycle is run with the config as
it is and
samplestimes with every parameter ofboundssomewhere between its bounds, all at once. A band is the envelope of these runs, andBand::sharesays in how many of them the check passed. - verdict_
worst - A search for the worst combination of the uncertain parameters, per verdict. With n parameters the bounds have 2^n corners, too many to run; the search looks at few of them:
- verdict_
worst_ and_ bands verdict_worst, andverdict_bandsof the same bounds from the runs the search starts with, which are those of the bands (the config as it is, then each parameter at its low and at its high bound): the bands cost no cycle more.- verdicts
- 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. - with_
progress - Runs
jobas the jobprogressdescribes: every batch of runs it starts (on_all_cores) is counted inprogressand stops onceprogress.cancelis set, which endsjobwithErr(Cancelled). A panic ofjobstays a panic.