Expand description
The numbers behind the views that show a drive’s real torque and the tool’s real error, for the app and the sizing report alike: the torque-speed chart per motor with its limits, the RMS point, the tool’s error split normal and tangential to the path, a histogram, the torque split stacked, the utilisation of the drive over time, and the spectrum. Everything works on a run’s signals as columns (one value per millisecond, the first column the time).
Structs§
- Spectrogram
- A spectrogram of samples
dtapart: frames offramesamples (a power of two) every half frame, each frame’s amplitudes asspectrumgives them. With the time of each frame’s middle and the bin width in Hz. - Tool
Error - The tool’s real error over a run (
split): the plan at each sample’s time less where the tool really is (axis_errors; belt stretch and sag included, not the drives’ encoder-sidefollowing_error), against the direction of their speed setpoints: of the axes in m (its place) in m, and of the axes in rad (its turn, an arm’s orientation) the length in rad, apart, so that metres and radians are never added. - Torque
Speed - A motor’s torque-speed chart: lines of (speed rad/s, torque N m), each as [highest, lowest].
Constants§
- CURVE_
POINTS - How many speeds the torque-speed chart’s curves are sampled at, from the highest speed backwards to the highest forwards: odd, so that standstill is one of them.
Functions§
- available_
torque - The torque the drive has available at a speed in the direction of
torque: the torque-speed curve (DriveParams::torque_curve), and the torque of the drive’s maximum current where that is lower. - axis_
errors - Per axis whose unit is
unit, the tool’s error (docs/model-reference.md, “Tool position error”): the plan at the sample’s time less where the tool is,axis.<id>.position_setpointrun on bysetpoint_agewith the speed and acceleration setpoints (Controller::plan_now, which the analysis measures against), lessaxis.<id>.position. A run withoutsetpoint_age(a file from before it) has the age worked out from its own timing (setpoint_age_of). Each with its axis’s speed setpoint, where the run has it. - braking_
share - The DC link’s braking threshold as a share of its overvoltage trip, for the utilisation timeline;
Nonewithout the DC link simulated. - current_
limit - The current the winding may carry: the motor’s maximum current, or the drive’s where that is lower.
- dc_
link_ of - The DC link a run’s chart is drawn at: the lowest the run’s
dc_link_voltagesignal saw (the voltage limit binds hardest there), or the bus the drive is set to where the run has none. - histogram
- A histogram of
valuesinbinsbins of equal width from the lowest to the highest: (lower edge, upper edge, how many). Empty for no values. - rms_
point - The RMS point of a cycle, (mean |speed|, sqrt(mean torque²)): where the motor sits on its S1 curve thermally. Samples equally spaced in time, as a run’s are.
- setpoint_
age_ of - The signal
setpoint_ageof a run recorded without it, from the run’s own timing: its timestime(the simulation’s, from 0) and its held setpointsheld. The profile cycle T is the shortest time between two samples whose setpoints differ (the sample period where they differ at every sample or only once), and the controller sets them at every multiple of T in the step from there (Controller::update), after the sample of that moment (the CLI’srunsamples before each step): at t > 0 the age is t less the last multiple of T before it, (0, T], and 0 at t = 0. A run sampled at a multiple of its profile cycle above one (the CLI’s--everypast it) reads T as its sample period: the file does not hold the cycle then. - spectrogram
- The
Spectrogramofvalues, whose first sample is atstarts. - spectrum
- The amplitude spectrum of samples
dtapart: (frequency Hz, amplitude) from 0 to the Nyquist frequency. Of the samples, zero-padded to a power of two, mean removed, through a Hann window; a sine of amplitude A on a bin gives A there. Empty for fewer than 8 samples. - split
- An error vector split against the direction of motion: (normal, tangential). The normal part is the length of what
is across the direction (the contour error), the tangential the signed part along it: with the error as setpoint
less actual, positive is lagging behind. With no motion (
directionzero) all of it is normal. - stack
- Parts stacked: the first, the first two added, and so on; the last line is their sum, the motor torque.
- tool_
error - The
ToolErrorof a run’s columns (axis_errors);Nonewhere the run has no axis positions with setpoints (a trace). - torque_
parts - A motor’s torque split (
TORQUE_PARTS, the signalsmotor.<id>.torque_<part>) as the run has it: (part, values), in the order ofTORQUE_PARTS; empty where the machine reports none. - torque_
speed - The chart of
drivewith the DC link atdc_voltage, its curves sampled atCURVE_POINTSspeeds up to a tenth beyond the highest of the no-load speed and the speed limit. - torque_
utilisation - How much of what is available at its speed a torque uses (
available_torque): 1 is all of it. Infinite where nothing is available and some torque is asked. - utilisation
- A motor’s utilisation over a run, each as a share of its limit, 1 at the limit: torque against what is available at
its speed; the phase current (q and d) against
current_limit; the drive’s two overload image nodes against the image’s trip level (with effects.drive_overload); winding and housing rise against the rated rise (the housing’s againstratings.housing_max_rise_kwhere the config has it, else the same; with effects.winding_heating; the housing’s with effects.motor_thermal_nodes); and the DC link voltage against the overvoltage trip, with the braking threshold below it. Only the lines whose signals the run has and whose effect was on. - winding_
voltage - The voltage limit at a DC link, as the winding gets it (
WINDING_PER_DC_LINK), for labels.
Type Aliases§
- Share
- One line of the utilisation timeline (
utilisation): its name (a translation key) and its share of its limit per sample.