Skip to main content

Module charts

Module charts 

Source
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 dt apart: frames of frame samples (a power of two) every half frame, each frame’s amplitudes as spectrum gives them. With the time of each frame’s middle and the bin width in Hz.
ToolError
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-side following_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.
TorqueSpeed
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_setpoint run on by setpoint_age with the speed and acceleration setpoints (Controller::plan_now, which the analysis measures against), less axis.<id>.position. A run without setpoint_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; None without 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_voltage signal saw (the voltage limit binds hardest there), or the bus the drive is set to where the run has none.
histogram
A histogram of values in bins bins 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_age of a run recorded without it, from the run’s own timing: its times time (the simulation’s, from 0) and its held setpoints held. 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’s run samples 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 --every past it) reads T as its sample period: the file does not hold the cycle then.
spectrogram
The Spectrogram of values, whose first sample is at start s.
spectrum
The amplitude spectrum of samples dt apart: (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 (direction zero) 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 ToolError of a run’s columns (axis_errors); None where the run has no axis positions with setpoints (a trace).
torque_parts
A motor’s torque split (TORQUE_PARTS, the signals motor.<id>.torque_<part>) as the run has it: (part, values), in the order of TORQUE_PARTS; empty where the machine reports none.
torque_speed
The chart of drive with the DC link at dc_voltage, its curves sampled at CURVE_POINTS speeds 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 against ratings.housing_max_rise_k where 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.