Overview and tour
What the simulator can tell you, what it cannot, and a five-minute tour of the command line with real output. Start with the README for installation.
What it can and cannot tell you
It can tell you, for a machine described in a config file:
- peak, RMS and cubic-mean torque, speed, current, winding temperature rise and energy per motor over a cycle or a path
- how much of each motor’s torque goes to inertia, gravity, friction and the belt, where the energy of a cycle is lost (each guide, shaft, gearbox, damper, winding, the braking resistor), and what each guide’s friction does at its operating point
- pass or fail of that cycle against the ratings in the config (torque-speed curve, S1, winding temperature, gearbox, belt tension, slack and tooth load, DC link and braking resistor, guide and shaft load, settling at the pick), and the machine’s own checks: a ball screw’s speed, DN value, buckling and life, a rack’s feed force, a strain wave gear’s life, a press’s force capacity, a wafer’s slip, a cable’s tension, a web’s tension at both ends of the roll, a stepper’s synchronism, a pneumatic cylinder’s cushion energy
- how many hours the pulley shaft bearings, the gearbox’s planet bearings and the guides last on that cycle, against a required life (ISO 281 with a_ISO, Siemens’ gearbox formula, the guide makers’ formula; the belt has a tooth load rating instead, because no belt maker publishes a life), and how long a gearbox’s gearing lasts above its rated torque
- how those results move when an uncertain value is at its low or high bound, or when all uncertain values are off at once
- how far the tool tip is from its path, and what gains, corner blending, input shaping and friction feedforward do to that
- how fast a path can be run within every limit a verdict judges at a point of the path (a time-optimal plan)
- how far the machine travels when it is stopped in category 0, 1 or 2 at its worst moment, with the brakes’ delays
- the machine’s resonances over its working range, to set the input shapers by, and their mode shapes
- which catalogue motor with its drive (and gearbox), on which catalogue axis, is the cheapest that passes, with the installed weight standing in for the price
- a shorter cycle (higher limits, corner blending, input shaping, lower or rounded lifts) that still passes every check, as written and within the error bands
- the energy per cycle against the cycle time: the settings no other beats in both, and in peak motor utilisation
- from a drive trace: the payload’s mass, per motor the added inertia, friction and constant torque (per link on the arms), and the belt’s stiffness from its moves
- what your own controller does with the machine: torque or velocity mode per motor from the FMU or Python’s
ks.Sim, judged by the same analysis and verdicts as the built-in drive
The motors are permanent-magnet servo motors, two-phase hybrid steppers on an open-loop drive, or induction motors on a frequency converter (V/f or field-oriented); a machine file can put pneumatic cylinders with their valves beside the servo axes.
What stands behind the numbers (docs/validation.md):
| Checked against | What | Where |
|---|---|---|
| Hand calculations | Every component and every analysis figure has a test that compares it with a number worked out by hand: belt frequency, friction levels, backlash, cycle torque, winding temperature, DC link voltage, guide and shaft loads, path error, stops, the stepper and induction motor, the cylinder, and more | validation |
| Independent implementations | The T-gantry’s open-loop move against SciPy (0.2 % of the travel); the arms’ rigid-body dynamics and flange pose against MuJoCo 4.0.1 (six URDF files, 60 states each, 2e-14 relative); the D3’s dynamics against a Lagrangian in SymPy and its mass split against a MuJoCo multibody model; the D2’s and the linear delta’s inverse dynamics against Lagrangians; the drive’s closed loop on the single axis against a Python implementation written from the model reference (four stages, 5e-10 to 1.1e-4 of each signal’s peak) | independent reference |
| Measured data | One ball screw bench of ISW, University of Stuttgart (public recordings), replayed and fitted; what matched and what did not is below. One row per dataset, generated from each one’s fit --dataset --report: datasets/RESULTS.md; to add a machine: contributing a measured machine | against measured data, results per dataset |
| Vendor formulas and documents | Festo’s own torque formula for the EXCT-30 within 2 %; the same Siemens motors read from two documents by two scripts must agree; catalogue values must fit their own physics | catalogue |
| Bad input | Property tests of configs, machine files, programs, traces, URDF and the FMU’s C functions; every number of every shipped config set to bad values; fuzz targets for the readers of untrusted input | validation |
These checks show that the equations are solved as documented and that the catalogue data was read correctly; MuJoCo, an implementation by other people, can also catch a wrong equation in the arms’ chain. They do not show that the parameters describe a real machine.
One machine has been measured, by others; no other. The ball screw bench of ISW Stuttgart (datasets/isw-ball-screw-axis, CC BY 4.0) was replayed from its recorded setpoints. With the friction fitted on its S-profile recording and the screw’s efficiency from its lead angle the simulated motor torque is off the measured by 4.6 % of the peak in RMS (27 % at the worst sample); on the two recordings kept as checks 13.1 % and 6.1 % (34 % and 25 %). The fit puts the moved mass 57 kg below the config’s 549 kg (92 kg before the screw’s efficiency), the held force at rest has the wrong sign on one check, and the model’s first mode is at 137 Hz where the bench’s sweeps give 123 to 134 Hz. For every other config friction, damping, guide and frame stiffness, belt pretension, winding resistance and inductance, DC link and braking resistor data are estimates. The configs say so: exct-30.toml marks every value [catalogue] or [estimate], and each config has a [bounds] table with a low and a high value for its estimates. Trends and comparisons (this motor against that one, with and without shaping) are sound. Absolute numbers are as good as the estimates. Use verdicts --bands to see how far a result moves with them.
Other limits that matter:
- The default configs of the two belt machines are made-up placeholder machines, not products. The deltas’ configs are sized like products (Autonox RL3-1200-3kg, Codian D2-800, Festo EXPT-95; Siemens motors and gearboxes from the catalogue), but their arm and rod lengths, masses and inertias are estimates: the makers do not publish them. The other machines are sized examples whose mechanics are estimates of a typical part of that size, not one maker’s article. Steppers, induction motors, vacuum cups and valve flow values have no catalogue data: theirs are estimates.
- A servo motor is one equivalent winding (R, L, back-EMF) that carries the RMS phase current and gets at most sqrt(3/2) times the DC link voltage; with field weakening (
effects.field_weakening, on in the shipped configs) it is the q axis of a d-q model whose d current follows its setpoint with the current loop’s time constant. There is no three-phase model and no PWM (model reference). - The time-optimal plan keeps the limits judged at a point of the path, not those judged over the whole cycle (warming, S1, RMS current, lives, mean braking power): four machines’ time-optimal cycles overheat a motor.
- Stops: category 2 brakes along the direction of motion without a jerk limit, one delay serves all brakes of a machine, and the stop verdicts are given by
sim-cli stoponly; no stop has been compared with a measured one. - The life figures are the makers’ formulas and nothing more: ISO 281’s life factor a1 on the bearings and a_ISO on the pulley shaft bearings alone, one bearing per pulley shaft, the gearing’s life from a Wöhler exponent and knee that are estimates, load ratings and lubrication values that are partly estimates. They are not validated.
- The OPC UA server was tested against a client written with the same library (its secured endpoints and jitter figures included), not against a PLC.
- The FMU was checked with fmpy’s validator and simulator and run in OpenModelica 1.27.1 through OMSimulator; not imported into Simulink or Dymola, and not with the Modelica Association’s
fmusimor the FMU Compliance Checker (docs/fmi.md). - The browser’s numbers agree with the command line’s to four or five significant digits, not bit for bit (docs/web.md).
- The app’s window is tested by synthetic mouse, keyboard and resize input and its pictures were read; its file dialogs were not tested, how the motion looks over time was not watched, and at 1280 x 720 the view’s controls cover much of the machine (validation).
- Trace import and the fit were tested on traces the simulator made and on the one bench’s recordings, converted to CSV by a script; no drive’s own export (Startdrive, TwinCAT, CODESYS) has been read.
- The hexapods and the spatial cable robot run only 1.35 to 2 times faster than real time on one core (processor time); on a slow or busy computer they can fall behind.
What is not built yet: ROADMAP.md.
Five-minute tour
All commands print CSV to standard output, or to a file with --out FILE. Messages and errors go to the error stream. The output below is real, with columns and rows left out where marked. More examples, each tested: examples/README.md.
The machines.
$ cargo run -q --release -p sim-cli -- list
t-gantry T-gantry
single-axis Single axis
delta-d3 Delta picker (3 arms)
delta-d2 Planar delta picker (2 arms)
parallel-scara Parallel SCARA (five-bar in the horizontal plane, Z stroke, tool turn)
delta-linear Linear delta (3 belt axes)
delta-d4 Delta picker (3 arms and a turning tool)
delta-h4 Quattro-type delta (4 arms, two-part plate)
screw-axis Ball screw axis
rack-axis Rack and pinion axis
linear-motor-axis Linear motor axis
rotary-table Rotary indexing table
urdf-arm Six-axis arm (URDF)
scara SCARA arm (URDF)
slider-crank Slider-crank (servo press)
rotary-knife Rotary knife (cross cutter)
flying-saw Flying saw
palletiser Palletiser (URDF, parallelogram)
hexapod Hexapod (6 electric cylinders)
cable-planar Planar cable robot (4 cables)
cable-spatial Spatial cable robot (8 cables)
disc-cam Disc cam with roller follower
tripod Tripod (3-RPS, 3 electric cylinders)
wafer-handler Wafer handler (R-theta-Z arm with banded links)
toggle-press Toggle press (knuckle-joint press)
arm-on-track Six-axis arm on a linear track (URDF, rack and pinion)
winder Winder and unwinder with dancer
hexapod-rotary Six-axis platform on cranks (6-RSS, rotary actuators)
geneva-drive Indexing table with Geneva drive
cam-indexer Indexing table with cam index drive
mover-track Mover track (independent movers on a closed loop)
overhead-crane Overhead crane (bridge, trolley, hoist)
A machine file is run like a registered machine: sim-cli verdicts --machine-file machines/h-bot.toml, or sim-app --machine-file machines/h-bot.toml.
Cycle analysis of the default T-gantry. One row per motor, measured over the second pass of the pick-and-place cycle. The first seven of 40 columns:
$ cargo run -q --release -p sim-cli -- analyze t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,...
a,6.080000,0.559815,0.168995,200.4655,0.1478,0.1331,...
b,6.080000,0.466646,0.156888,200.4541,0.1229,0.1235,...
Verdicts. The same cycle judged against the motor data and the [ratings] of the config:
$ cargo run -q --release -p sim-cli -- verdicts t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result
motor-peak,a,0.1478,1.000,ok
motor-thermal,a,1.282,100.0,ok
motor-s1,a,0.1690,1.270,ok
...
gearbox-peak,a,2.207,64.00,ok
pulley-bearing-life,a,471971,20000,ok
gearbox-life,a,6084053913,20000,ok
belt-tooth-load,a,0.1937,1.000,ok
dc-link-energy,a,6.205,6.205,ok
braking-resistor-continuous,a,0.009861,20.00,ok
braking-resistor-peak,a,4.671,500.0,ok
dc-link-overvoltage,a,224.7,257.6,ok
motor-peak,b,0.1229,1.000,ok
...
dc-link-energy,b,6.205,6.205,ok
braking-resistor-continuous,b,1.087,20.00,ok
braking-resistor-peak,b,35.76,500.0,ok
dc-link-overvoltage,b,224.7,257.6,ok
settling,,0.00004296,0.0001000,ok
belt-tension,,334.0,1500,ok
belt-least-tension,,203.9,0,ok
guide-load,,177.1,2000,ok
guide-life,,3823437,20000,ok
thermal-warm-start,,0.00001066,0.1000,ok
The three lives are in hours: the bearing that takes the belt’s pull on each pulley shaft (ISO 281, with its a_ISO for lubrication and contamination), the gearbox’s planet bearings (Siemens’ formula) and the guide, each against the 20000 h of ratings.required_life_h. The cycle is judged warm: with the windings at the temperature rises they settle at when it repeats for long (the first line, on the error stream, and the row thermal-warm-start). motor-s1 is the RMS torque at the mean speed against the motor’s S1 curve. belt-tooth-load is the belt’s tooth load over what its teeth allow at the pulley’s speed (Megadyne’s method): no belt maker publishes a life in hours.
The DC link is simulated (effects.dc_link). Motor B’s braking fills the capacitors: 6.2 J of room between the DC link voltage of 155 V and the chopper’s threshold of 224.65 V. That is ok because the config has a braking resistor, which burns the rest and is judged in the next two rows. Values are printed with four significant digits.
A catalogue machine. exct-30.toml is a Festo EXCT-30 with two Siemens 1FK2205-4AF motors:
$ cargo run -q --release -p sim-cli -- verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result
motor-peak,a,0.2981,1.000,ok
motor-thermal,a,9.045,100.0,ok
...
pulley-torque,a,3.158,12.50,ok
gearbox-radial-load,a,983.9,2000,ok
pulley-bearing-life,a,325701,20000,ok
belt-tooth-load,a,0.3566,1.000,ok
dc-link-energy,a,9.943,9.943,ok
braking-resistor-continuous,a,8.273,100.0,ok
braking-resistor-peak,a,204.4,5700,ok
dc-link-overvoltage,a,770.0,820.0,ok
...
settling,,0.00003544,0.0001000,ok
belt-tension,,556.0,2140,ok
belt-least-tension,,255.8,0,ok
guide-load,,184.5,2000,ok
guide-life,,3767969,20000,ok
thermal-warm-start,,0.00002810,0.1000,ok
The lowest belt tension in the cycle is 256 N. With --bands the same command runs the cycle with each bounded value at its low and at its high bound, one at a time: the slackest section keeps 156 N and the tool is at most 0.040 mm off in the dwell. With --bands --samples 200 all bounded values lie between their bounds at once in 200 runs: 139 N and 0.043 mm at worst. With --bands --worst (a search for the worst corner of the bounds) it is 88 N and 0.087 mm against 0.1 mm. Every check passes in all three, but one: the pulley shaft bearings last 324100 h as written and pass in both band modes (at least 72800 h one at a time, 55400 h in the samples), but fail 20000 h at the worst corner (9950 h, every bounded value against them at once); Festo publishes no data on them, and their load rating and lubrication values are estimates. An earlier state of this config failed belt-least-tension and settling in the worst case. For that the belt pretension was raised from 300 N to 450 N, the X jerk limit lowered from 500 to 150 m/s³, input shaping and corner blending switched on, and a second input shaper at 17.5 Hz added; the comments in the file give the reasons.
A motor by name. --motor ARTICLE puts a motor of the Siemens S210 catalogue into any config:
$ cargo run -q --release -p sim-cli -- verdicts t-gantry --motor 1FK2104-5AK
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result
motor-peak,a,0.1093,1.000,ok
motor-thermal,a,4.540,100.0,ok
...
dc-link-energy,a,6.610,75.18,ok
dc-link-overvoltage,a,565.4,896.7,ok
...
The motor brings the 540 V DC link of its supply. The config’s braking threshold and trip level are scaled with the DC link voltage (224.65 V and 257.6 V at 155.13 V become 782 V and 897 V), and its velocity gain is retuned for the motor’s rotor. See user guide.
The search. Every 1FK2 motor on the EXCT-30’s cycle, each with the converter the catalogue pairs with it, passing ones first, cheapest first (no catalogue has prices; the installed weight of motors and gearboxes stands in):
$ cargo run -q --release -p sim-cli -- search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 28 candidates
Search time on 16: ... s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k,...
,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5361,3.3060,22.16,...
,1FK2204-5AK,,6SL3210-5HE11-5UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5360,3.3052,26.00,...
,1FK2104-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.40,6.80,ok,settling,0.6739,3.3929,10.87,...
...
,1FK2205-4AF,,6SL3210-5HE11-5UF0,siemens,400v,5.20,10.40,ok,gearbox-radial-load,0.5008,3.6903,9.05,...
...
,1FK2104-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.85,5.70,FAIL,settling,1.5331,3.3423,20.26,...
,1FK2104-4AF,,6SL3210-5HE10-4UF0,siemens,400v,2.05,4.10,FAIL,settling,3.6107,3.2641,97.99,...
...
,1FK2210-4AC,,6SL3210-5HE17-0UF0,siemens,400v,27.00,54.00,FAIL,belt-least-tension,inf,13.1505,21.40,...
The lightest passing motors, the 1FK2204-5AF and -5AK (2.90 kg), are held by their S1 curve (0.54), the 1FK2104-6AF by the dwell (0.67 of the tolerance), and from the 1FK2204-6AF on the tightest check is the belt’s pull on a pulley shaft (1000 N of 2000 N), which the motor hardly changes; the lighter 1FK2104 fail settling (0.15 mm and, the 4AF and 4AK, 0.36 mm against 0.1 mm); winding_rise_k and peak_torque_nm tell those apart. --supply s120 searches the S120 motors with their Motor Modules, --gearboxes NRK adds gearboxes on a machine that has one, and --axes tries every motor on every axis of the catalogue of the machine’s kind as well (Festo EXCT and Bahr ELZI for this one: 338 candidates; the Bahr ELZI 40 comes out lighter than the EXCT-30). A drive, a belt or an axis can be named like a motor (--drive, --belt AT5-25, --axis ELZI-40). The table goes on with rank, energy, thermal and drive utilisation, following error, inertia ratio, the failing checks, what the catalogue left to estimates and one column per check; --rank-by energy (or a weighted mix) ranks by what matters, --drives neighbours tries the next drive sizes, several --config with --weights judge a duty mix, --robust N ranks the best again at the worst corner of their bounds, sim-cli transmission sweeps the gear ratio or pulley radius for its optimum, and sim-cli compare-kinematics TASK.toml --machines t-gantry,delta-d3,... runs one pick-and-place task on several kinematics side by side (which drive works best).
The optimiser. A shorter cycle that still passes every verdict, in the error bands too:
$ cargo run -q --release -p sim-cli -- optimise t-gantry --config crates/machine-t-gantry/exct-30.toml
setting,before,after
cycle_s,2.0480,1.7560
dwell_error_peak_m,3.544e-5,5.006e-5
dwell_angle_error_peak_rad,0.000e0,0.000e0
bands_fastest_cycle_s,,1.3900
bands_fastest_fails,,belt-least-tension settling
bands_steps_back,,4
bands_excused,,
Cycles simulated: search + error bands 40 + 834
axis.x.max_acceleration_m_s2,25.0,56.25
axis.x.max_velocity_m_s,2.5,3.75
axis.z.max_acceleration_m_s2,15.0,33.75
axis.z.max_velocity_m_s,1.5,2.25
effects.input_shaping,true,false
The search judges the config as written; its fastest setting, 1.39 s, fails belt-least-tension and settling in the error bands (each bounded value at its low and at its high bound, as verdicts --bands). So the optimiser goes back four steps of its search, to 1.756 s, which passes there too. The bands are one value at a time: at the worst corner of the bounds (verdicts --bands --worst with the five settings above) this result fails settling (0.24 mm against 0.1 mm; the belt keeps 33 N; and pulley-bearing-life, as the config as written does there), so it takes back the margins the config was given for its worst case. optimise --worst judges the result at that corner instead, at the cost of a far longer search.
A path file. Lines, arcs and splines, from where the machine stands (the default T-gantry starts at 0.1, 0.35):
$ cat examples/corner.path
# A path on the T-gantry's two axes (x, z in m): line, arc, line, from the start pose (0.1, 0.35).
# The first path file printed in docs/overview.md; see docs/user-guide.md, "Run a path and read path error".
line,0.5,0.35
arc,0.6,0.25,0.5,0.25,cw
line,0.6,0.05
$ cargo run -q --release -p sim-cli -- analyze t-gantry --path examples/corner.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,...
a,2.128000,0.542380,...,1.299e-4,4.397e-5,1.771e-4,...
b,2.128000,0.302509,...,1.299e-4,4.397e-5,1.771e-4,...
With --time-optimal the same path takes 1.658 s instead of 2.128 s (both include 0.3 s of rest at the end), and the path error rises from 0.13 mm to 0.17 mm. That plan takes speed and acceleration from what the machine can give instead of from the axis limits, and keeps the jerk limits of the axes. It keeps, point by point along the path, every limit a verdict judges at a point: the motors’ torque-speed curves and speeds, the drives’ maximum current, the gearbox’s torque and input speed, the pulley, the belt’s tension, the guides, the braking resistor’s peak power and the machine’s own parts; not what is judged over the whole cycle (warming, S1, RMS current, the lives), which the analysis shows.
Within the axis limits the path crawls into and out of the arc at 0.07 m/s, because the acceleration towards the centre steps there. --set profile.path_tolerance_m=0.0001 lets the planner put transition curves at both ends of the arc: the path is then off the file’s by up to 0.1 mm, enters the arc at 0.40 m/s and takes 1.890 s.
Lines of spline,x,z that follow one another form one smooth curve through their points:
$ cat examples/curve.path
# A path on the T-gantry's two axes (x, z in m): a line, a smooth curve through two via points (spline), a line,
# from the start pose (0.1, 0.35). The second path file printed in docs/overview.md; see docs/user-guide.md, "Run a path".
line,0.3,0.35
spline,0.45,0.3
spline,0.55,0.15
line,0.55,0.05
$ cargo run -q --release -p sim-cli -- analyze t-gantry --path examples/curve.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,...
a,2.101000,0.541474,...,1.373e-4,4.482e-5,1.771e-4,...
b,2.101000,0.297791,...,1.373e-4,4.482e-5,1.771e-4,...
The curve leaves the first line in its direction and ends in the direction of the last one. Where it joins a line the curvature steps, so the path is slow there, like a line into an arc.
More in the user guide: stopping distances (sim-cli stop), your own controller in torque or velocity mode (Python ks.Sim, the FMU’s command.mode.<motor>), a stepper belt axis and an induction motor lift, a pneumatic cylinder beside a servo axis, replaying and fitting a measured trace (user guide).
The app does the same from its right panel: the cycle analysis with its checks and their error bands (one value at a time or sampled, also drawn over the traces), the sensitivity ranking, the optimiser, the motor search with a button that puts a motor into the running machine, paths and traces from files (a planned path is also drawn in the 3D view, the travelled one coloured by its error, speed or utilisation; a replayed trace is plotted against its simulation), the operating points over the torque-speed curve, the frequency response of the mechanics with the fit of the belt stiffness, the mode shapes swung in the 3D view, the workspace map, and the tuning help.
Installing a release
Each release has a Windows zip and MSI, a Linux tarball and .deb, a macOS tarball (one universal build for Apple silicon and Intel), FMUs and SHA256SUMS. Check a download with sha256sum -c SHA256SUMS --ignore-missing, and that GitHub’s release workflow built it with gh attestation verify FILE --repo Sparkz400/KinematicsSimulation.
Nothing is code-signed. Windows SmartScreen may warn (“More info”, “Run anyway”). On macOS the build is neither signed nor notarised, so Gatekeeper refuses to open it when it came through a browser; after unpacking, take the quarantine flag off the folder and start the programs from a terminal:
tar -xzf kinematics-simulation-<version>-macos-universal.tar.gz
xattr -dr com.apple.quarantine kinematics-simulation-<version>-macos-universal
kinematics-simulation-<version>-macos-universal/bin/sim-app
(Or, after the first refusal, System Settings → Privacy & Security → “Open Anyway” for that program.) The macOS build is made on GitHub’s macOS runner and has not been run on a Mac by the authors.
User guide
One section per task. Each gives the command, what the output means, and the limits that matter for that task. The physics behind it is in the model reference; the config keys are in the config reference. Deutsche Fassung: Benutzerhandbuch.
The examples write sim-cli for cargo run -q --release -p sim-cli --. All output shown was produced by the commands shown.
Common to all commands
sim-cli COMMAND MACHINE [options]
MACHINE is t-gantry or single-axis (sim-cli list prints them). Options that every command but list takes:
| Option | Effect |
|---|---|
--machine-file FILE | In place of MACHINE: a machine defined in a TOML or JSON file, wired together from components without Rust code (an FMU of it carries the file). See machine files |
--config FILE | Use this config instead of the machine’s default. The EXCT-30 config is crates/machine-t-gantry/exct-30.toml |
--motor ARTICLE | Put a motor of the Siemens S210 catalogue into the config, e.g. 1FK2205-4AF. Sets parts.motor |
--supply 230v or 400v | The supply the motor data is for. Sets parts.motor_supply. Default as in the config |
--gearbox SIZE-FRAME-RATIO | Put a catalogue gearbox into the config, e.g. NRK070-04-5. Sets parts.gearbox |
--set path=value | Change one config value, e.g. --set mass.payload_kg=3.0. Repeatable. Applied after the parts, so single values can be set on top of a catalogue part; a drive’s installation conditions (ratings.drive_ambient_c, drive_altitude_m, drive_pulse_frequency_hz) before them, as the drive is derated when it is put in. A key the config has not got is added where a config file may have it: a motor’s own value in [drive.<id>] and the other per-motor tables (--set drive.b.velocity_kp_nm_s_rad=0.05), or a key a file may add (the ratings beyond the default, these conditions); any other is refused with the nearest key |
--out FILE | Write the CSV to a file instead of standard output |
--lang en or de | Language of messages. The CSV headers are not translated |
--catalog DIR | Read the component catalogue from DIR, a copy of catalog/ of the same schema version, instead of the one built in; every table of the built-in catalogue must be there (a copy older than a table is refused, naming the file), and a table with a missing column or a short row is refused, naming the file and the column or line (see catalogue). sim-app takes it too |
Rules that are easy to trip over:
-
--setonly changes values that exist. A misspelt key is refused and the nearest key is named where one is close (Configuration value is missing: mass.cariage_kg (did you mean mass.carriage_kg?)), and so is a value of the wrong type. A value out of range is shown with its path and value, and with the limit where a mass, radius, stiffness, damping, payload or other shared reading of the config refused it (Configuration value is out of range: mass.payload_kg = -5 (must not be negative), or(must be above 0), or the finite-number limit of at most 1e15); a check made elsewhere shows the value only. -
--motor,--supplyand--gearboxneed a[parts]table in the config. All three shipped configs have one. -
Every option except
--cycle,--time-optimal,--bandsand--worsttakes a value. An option without its value is refused (This option needs a value: --time), and so is an option the command does not know, such as a misspelt one (This command has no such option: --cylce). A number has to be finite:--time infis refused. -
--cycle,--move,--trajectoryand--pathexclude each other (Only one of these options can be given at a time: --cycle --move). -
A config file may only have keys that the machine’s default config has: a misspelt key is refused (
Configuration has a value this machine does not know: mass.cariage_kg). The exceptions are[bounds], which has its own check, andratings.pulley_max_torque_nm. -
Numbers are checked when a config is read. NaN and infinity are refused for every value, a negative number where the quantity cannot be negative (a payload, a damping, a backlash, the belt pretension), and a start pose outside the axis ranges. The message names the key:
Configuration value is out of range: gearbox.backlash_rad. -
A failure prints one line on the error stream and exits with code 2.
-
sim-cli helplists the commands, one to a line, in the language of--lang;sim-cli help COMMAND(orsim-cli COMMAND --help) prints the options of one command,sim-cli help optionsthose every command takes,sim-cli help pathsthe path file formats andsim-cli help unitsthe units of the columns. A call with wrong or missing arguments names the help of its command.sim-cli --version(or-V) prints the version. -
Exit codes: 0 when the command ran and everything it judged passes, 1 when it ran and printed a failing row (
FAILin the result column ofverdicts,margins,report’s checks,replay --toleranceandfit --within, or among the verdictsstopandaccuracyprint on the error stream), 2 for a usage or config error. The table is printed in full before the code is 1, so a script can read the rows and test the code. The overhead crane’s default config failsresidual-swayon purpose, soverdictsexits 1 on it. -
A result that is not finite (an unstable loop gives
infornan, and so does a winding that heats up without end) is named on the error stream after the table: runsim-cli margins MACHINEto measure the loops. -
If the axis limits ask more of a motor than the drive data allows, commands that start a simulation directly (
run) print a warning on the error stream and carry on:$ sim-cli run t-gantry --set axis.x.max_velocity_m_s=2.0 --time 0.01 --out x.csv The axis limits ask for more motor speed than the drive allows: Motor A: 600.0000 > 420.0000 The axis limits ask for more motor speed than the drive allows: Motor B: 600.0000 > 420.0000The check compares the motor speed at the highest axis speeds with
drive.rated_speed_rad_s, and the rigid-model torque at the highest axis accelerations withdrive.peak_torque_nm, for every combination of axis directions.
Size a motor for a cycle
The cycle is the list of [[cycle.segment]] in the config: target pose, dwell time, and whether the payload is attached on arrival. Edit a copy of the config to change it; --set cannot edit the cycle.
$ sim-cli analyze t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,energy_in_j,energy_regenerated_j,peak_regenerated_power_w,largest_regeneration_j,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,path_angle_error_peak_rad,path_angle_error_rms_rad,tracking_angle_error_peak_rad,dwell_angle_error_peak_rad,cubic_mean_torque_nm,braking_resistor_energy_j,braking_resistor_mean_power_w,dc_link_peak_voltage_v,belt_slack_time_s,radial_load_peak_n,guide_load_peak_n,guide_life_km,mains_energy_j,guide_life_h,pulley_bearing_life_h,gearbox_life_h,belt_tooth_utilisation,gearbox_gearing_life_h,motor_bearing_life_h,housing_rise_k,drive_overload,torque_unit,speed_unit
a,6.080000,0.559815,0.168995,200.4655,0.1478,0.1331,203.94,334.05,0.3757,1.28,86.325,11.097,28.85,6.261,1.065e-4,3.560e-5,1.812e-4,4.296e-5,0.000e0,0.000e0,0.000e0,0.000e0,0.201808,0.060,0.010,224.65,0.0000e0,6.4501e2,1.7711e2,3.6271e6,0.000,3.8234e6,4.7197e5,6.0841e9,1.9371e-1,,,0.00,0.0000,N m,rad/s
b,6.080000,0.466646,0.156888,200.4541,0.1229,0.1235,203.94,334.05,0.3488,1.10,76.318,16.854,35.76,8.361,1.065e-4,3.560e-5,1.812e-4,4.296e-5,0.000e0,0.000e0,0.000e0,0.000e0,0.179829,6.607,1.087,224.65,0.0000e0,6.4501e2,1.7711e2,3.6271e6,0.000,3.8234e6,4.7070e5,9.1482e9,1.5539e-1,,,0.00,0.0000,N m,rad/s
The simulator starts the cycle, lets the first pass go by, and measures the second. One row per motor. Columns that describe the machine, not one motor, repeat in every row.
| Column | Unit | Meaning |
|---|---|---|
cycle_s | s | Duration of the measured pass |
peak_torque_nm | N m | Highest absolute motor torque (from the winding current, at the motor shaft) |
rms_torque_nm | N m | RMS of the motor torque over the pass |
peak_speed_rad_s | rad/s | Highest absolute motor speed |
utilisation | fraction | Highest ratio of the torque the velocity loop asks for (before the torque limit) to the torque the torque-speed curve leaves at that speed. Above 1 the cycle asks for more than the curve gives: the drive sits on its torque limit and the axis falls behind |
thermal_utilisation | fraction | RMS torque over drive.rated_torque_nm. For information; the verdict motor-thermal judges the winding rise, which rests on motor.rated_current_a |
belt_tension_min_n, _max_n | N | Lowest and highest tension of any belt section, looked at once per millisecond. Machine-wide |
rms_current_a | A | RMS winding current |
winding_rise_k | K | Temperature rise the winding settles at if this cycle repeats for long |
energy_in_j | J | Electrical energy the winding drew while the power was positive |
energy_regenerated_j | J | Energy fed back while braking |
peak_regenerated_power_w | W | Highest power fed back |
largest_regeneration_j | J | Most energy fed back in one braking (one unbroken stretch of negative power) |
path_error_peak_m, _rms_m | m | How far the tool was from the path its setpoint drew, in the axes in m (its place). Machine-wide |
tracking_error_peak_m | m | The peak tool position error: how far the tool was from where its plan was at the same moment, in the axes in m. Machine-wide |
dwell_error_peak_m | m | Most the tool was off its target in the second half of a dwell, in the axes in m. Machine-wide |
path_angle_error_peak_rad, _rms_rad, tracking_angle_error_peak_rad, dwell_angle_error_peak_rad | rad | The same three of the axes in rad (the tool’s turn: the D4’s c, the SCARA’s c, an arm’s orientation or its joints, the table), apart: metres and radians are never added. 0 on a machine without such an axis. Machine-wide |
cubic_mean_torque_nm | N m | Cube root of the mean of torque cubed, weighted with speed, of the motor torque. The check gearbox-continuous takes the same mean of the gearbox output torque |
braking_resistor_energy_j | J | Energy the simulated braking resistor burned. 0 without effects.dc_link |
braking_resistor_mean_power_w | W | That energy over the cycle time |
dc_link_peak_voltage_v | V | Highest DC link voltage. Stays at drive.bus_voltage_v without effects.dc_link |
belt_slack_time_s | s | Time any belt section spent without tension. Machine-wide |
radial_load_peak_n | N | Highest pull of the belt on a pulley shaft. Machine-wide |
guide_load_peak_n | N | Highest load on the guide with the highest equivalent load. Machine-wide |
guide_life_km | km | L10 = (C / P)³ · 50 km for that guide. Empty without ratings.guide_dynamic_load_rating_n |
mains_energy_j | J | With effects.regenerative_supply: energy the line module fed back into the mains over the pass (after its efficiency). 0 without |
guide_life_h | h | guide_life_km over the mean speed of that guide’s axis. Machine-wide |
pulley_bearing_life_h | h | Rating life of the bearing that takes the belt’s pull on this motor’s pulley shaft: (C / P)³ · 10⁶ / (60 n), C = ratings.pulley_bearing_load_rating_n, P the cubic mean of the radial load weighted with the speed, n the pulley’s mean speed in r/min; times ISO 281’s a_ISO for lubrication and contamination where the config has the four values it needs |
gearbox_life_h | h | Life of the gearbox’s planet bearings by Siemens’ formula, 20000 h · (n2B / n2) · (M2N / M2eq)^(10/3). Empty without ratings.gearbox_rated_torque_nm and gearbox_reference_speed_rpm (the EXCT-30 has no gearbox) |
belt_tooth_utilisation | fraction | The belt’s tooth load on this motor’s pulley over what its teeth allow at the pulley’s speed (Megadyne’s method, with ratings.belt_service_factor), the highest over the cycle. Not a life: no belt maker publishes one |
gearbox_gearing_life_h | h | Life of the gearbox’s gearing from the torque above its rated torque (Palmgren–Miner on Siemens’ two torque figures). Empty where the cycle never takes the gearbox above ratings.gearbox_rated_torque_nm |
motor_bearing_life_h | h | Life of the motor’s bearings under the belt’s pull. Only where the pulley sits on the motor shaft (ratings.motor_bearing_load_rating_n set, no gearbox); empty in every shipped config |
housing_rise_k | K | With effects.motor_thermal_nodes: the rise the motor’s stator and housing settle at, the winding’s times the housing’s share of the thermal resistance; 0 without |
drive_overload | 1 = rated current held | With effects.drive_overload: the highest the drive’s thermal image (i²t) reaches when the cycle repeats for long; 0 without |
torque_unit, speed_unit | The unit of the torque and speed columns: N m and rad/s, on a linear motor N and m/s |
The exact definitions are in the model reference.
--points FILE also writes the operating points, one per millisecond and motor (motor,speed_rad_s,torque_nm), for plotting over the torque-speed curve.
Then judge the cycle:
$ sim-cli verdicts t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result
motor-peak,a,0.1478,1.000,ok
motor-thermal,a,1.282,100.0,ok
motor-s1,a,0.1690,1.270,ok
motor-speed,a,200.5,420.0,ok
drive-current,a,0.3757,3.000,ok
drive-peak-current,a,1.250,10.90,ok
gearbox-radial-load,a,637.2,1500,ok
gearbox-continuous,a,0.8206,40.00,ok
gearbox-input-speed,a,1914,13000,ok
gearbox-peak,a,2.207,64.00,ok
pulley-bearing-life,a,471971,20000,ok
gearbox-life,a,6084053913,20000,ok
belt-tooth-load,a,0.1937,1.000,ok
dc-link-energy,a,6.205,6.205,ok
braking-resistor-continuous,a,0.009861,20.00,ok
braking-resistor-peak,a,4.671,500.0,ok
dc-link-overvoltage,a,224.7,257.6,ok
...
settling,,0.00004296,0.0001000,ok
belt-tension,,334.0,1500,ok
belt-least-tension,,203.9,0,ok
guide-load,,177.1,2000,ok
guide-life,,3823437,20000,ok
thermal-warm-start,,0.00001066,0.1000,ok
| Check | Value | Limit | Unit |
|---|---|---|---|
motor-peak | utilisation (the torque asked for, not the torque delivered) | 1 | fraction |
motor-thermal | winding_rise_k (with effects.motor_thermal_nodes the winding node’s, which settles where the one node does) | motor.rated_temperature_rise_k | K |
motor-s1 | rms_torque_nm at the cycle’s mean speed, as Siemens sizes a cycle | the S1 curve there: the maker’s graph (motor.s1_curve_*, which a named S210 motor brings), else the static torque k_t motor.stall_current_a at standstill, straight to drive.rated_torque_nm at the rated speed | N m |
motor-speed | peak_speed_rad_s, where the config gives drive.max_speed_rad_s (a catalogue motor sets it) | drive.max_speed_rad_s | rad/s |
drive-overload | drive_overload, with effects.drive_overload only | the image’s trip level, r² − (r² − 1) exp(−ratings.drive_max_current_time_s / drive_overload_time_constant_s), r = maximum over rated current | 1 = rated current held |
pulley-torque | peak of the torque at the gearbox output (signal gearbox.<motor id>.output_torque) | ratings.pulley_max_torque_nm | N m |
gearbox-continuous | cubic mean of the torque at the gearbox output, weighted with speed | ratings.gearbox_rated_torque_nm | N m |
gearbox-input-speed | peak motor speed | ratings.gearbox_max_input_speed_rpm | r/min |
gearbox-peak | peak of the torque at the gearbox output, looked at every simulation step | ratings.gearbox_max_torque_nm | N m |
dc-link-energy | energy into the DC link capacitors | room between the DC link voltage (drive.bus_voltage_v) and the braking threshold | J |
braking-resistor-continuous | mean power of the resistor | ratings.braking_resistor_continuous_w | W |
braking-resistor-peak | peak power of the resistor | ratings.braking_resistor_peak_w | W |
dc-link-overvoltage | highest DC link voltage (only with effects.dc_link) | ratings.dc_link_overvoltage_v | V |
settling | dwell_error_peak_m | ratings.settling_tolerance_m | m |
settling-angle | dwell_angle_error_peak_rad | ratings.settling_tolerance_rad | rad |
tracking | tracking_error_peak_m | ratings.tracking_tolerance_m (no shipped config sets it) | m |
tracking-angle | tracking_angle_error_peak_rad | ratings.tracking_tolerance_rad (no shipped config sets it) | rad |
gripper-hold | the most the held part asks of a vacuum cup, m (a_z + g) + m | a_xy | / μ (with effects.gripper_time) |
belt-tension | highest belt tension | ratings.belt_max_tension_n | N |
belt-least-tension | lowest belt tension | ratings.belt_min_tension_n | N |
gearbox-radial-load | radial_load_peak_n | ratings.shaft_max_radial_load_n | N |
guide-load | guide_load_peak_n | ratings.guide_max_load_n | N |
pulley-bearing-life | pulley_bearing_life_h | ratings.required_life_h | h |
gearbox-life | gearbox_life_h | ratings.required_life_h | h |
gearbox-gearing-life | gearbox_gearing_life_h (only where the cycle exceeds the rated torque) | ratings.required_life_h | h |
motor-bearing-life | motor_bearing_life_h | ratings.required_life_h | h |
guide-life | guide_life_h | ratings.required_life_h | h |
belt-tooth-load | belt_tooth_utilisation | 1 | fraction |
gearbox-thermal | where the hottest gearbox settles on the cycle (only with effects.part_heating; none on a direct drive) | thermal.gearbox_max_rise_k | K |
guide-thermal | where the hottest guide settles on the cycle (only with effects.part_heating) | thermal.guide_max_rise_k | K |
belt-tooth-jump | how often the belt’s teeth jumped over a driven pulley in the cycle (only with effects.belt_tooth_jump) | 0 | count |
belt-span-resonance | how close a free belt span’s first sideways mode came to what the drive excites, at steady speed, as a share of the mode (only with effects.belt_span_vibration); passes at or above the limit | ratings.belt_span_resonance_band | fraction |
thermal-warm-start | how far the rises the measured pass started at lie from those it settles at (only with effects.thermal_warm_start, where something that warms acts back on the run) | 0.1 | K |
thermal-cycle-repeat | only where the warm start converged neither per pass nor over a period: how far apart two passes started at the same rises settle; beyond the limit the cycle’s motion does not repeat itself (a load still swinging from the pass before), which no start temperature settles | 0.1 | K |
Limits for this task:
- Which thermal start was used is on the error stream (
Thermal start: coldorwarm) and in the rowthermal-warm-start. Witheffects.thermal_warm_start(on in the shipped configs) the measured pass runs with the windings and, witheffects.thermal_feedback, the gearboxes and guides at the rises they settle at when the cycle repeats for long, found by repeating the cycle (at most 4 warm passes, to 0.1 K, then a period of 2 or 3 passes, or one more pass that tells whether the cycle repeats at all:thermal-cycle-repeat); off, it starts cold and a cycle of seconds sees every part at ambient. With the feedback on, the EXCT-30’s X guide settles at 15.9 K started warm, 23.7 K judged from cold (its oil thins as it warms). See the model reference. - A rating that the config leaves out is not judged. No row is not a pass. The same holds for
gearbox-thermalandguide-thermalwitheffects.part_heatingandeffects.thermal_feedbackoff, forbelt-tooth-jumpwithouteffects.belt_tooth_jumpand forbelt-span-resonancewithouteffects.belt_span_vibration. With it on, the EXCT-30’s X guide settles at 23.7 K of 40 K and fails the worst case of--bands(47.3 K at the high bound of its thermal resistance); the thermal resistances are estimates (see the config reference). belt-least-tensionand the lives are the checks where the value has to stay above the limit.belt-least-tensionalso fails if any section spent any time without tension.- The lives are the makers’ formulas with ratings that are partly estimates; see the model reference for what they leave out. The motors’ own bearings have no figure in these configs: the belt does not pull on a motor shaft.
dc-link-energyisokwhenever the config has a braking resistor to fall back on, even when the value is at or above the limit. The two resistor rows appear only when the resistor is needed. All three default configs simulate the DC link (effects.dc_link = true); with it off the braking rows are estimates from what the motor feeds back.- A braking threshold at or below
drive.bus_voltage_vis refused (Configuration value is out of range: ratings.braking_threshold_v), simulated or not: it is a rating for another DC link voltage. - Values are printed with four significant digits and no exponent, so
settlingshows as0.00004336. motor-peakjudges what the velocity loop asks for before the torque limit. A cycle that sits on the torque limit fails it; the delivered torque, which never exceeds the curve, ispeak_torque_nmofanalyze.- With input shaping, a dwell and the gripper wait until the shaped setpoint has arrived, one period of the shaper after the plan.
settlingis then judged from that moment. - Gearbox and pulley torques are the torque at the gearbox output, the signal
gearbox.<motor id>.output_torque. In the elastic model that is what the gear’s spring passes on to the pulley, with the efficiency applied (witheffects.gearbox_mesh_friction, on in the joint kit and the cable robots, the efficiency’s loss is a friction in the mesh: it holds a load at rest anywhere between the torques that lower and lift it, and a gear driven back passes 1 / (2 − η) of the power instead of η); in the rigid model it is the value the solver works out. The torque that accelerates the rotor itself does not count against the gearbox, and a load that drives the gearbox back (braking, lowering) counts with what it puts on the output.cubic_mean_torque_nmofanalyzeis still the motor’s. - The motor, friction and drive values of the default configs are placeholders. See the README on what the absolute numbers rest on.
The gripper’s time, and whether a vacuum cup holds. By default the gripper grips and lets go at once on arrival. With effects.gripper_time and a [gripper] table (see the config reference) jaws take close_s and open_s, and a vacuum cup the time its generator needs to evacuate it to the switch level and its vent to let go (a first-order build-up from cup volume and flow). The dwell at pick and place lasts at least that long and the payload comes or goes when the gripper is done, so a short dwell makes the cycle longer: on the single axis jaws of 0.3 s and 0.25 s against dwells of 0.1 s add 0.35 s. With a vacuum gripper and ratings.gripper_safety_factor the verdict gripper-hold judges the most the held part asks of the cup, m (a_z + g) + m |a_xy| / μ from the tool’s acceleration, against the cup’s hold A p_hold over the factor: on the rigid single axis (10 m/s², 2 kg, μ 0.5) 61.86 N, which a 70 N cup holds and a 55 N one does not. A faster cycle raises it, and optimise stops where the cup still holds. None of the shipped configs has the gripper’s time on.
One DC link for all drives. effects.shared_dc_link (off by default, needs effects.dc_link) gives the drives of a machine one DC link, as with one Line Module on a SINAMICS S120. What a braking motor feeds back, a motoring one draws; only the net power charges the capacitors. The link has the capacitance of all drives together (each brings ratings.dc_link_capacitance_uf), one chopper with one braking resistor of the [ratings] powers, and one trip. Every motor then shows the same DC link voltage and resistor power, and the braking checks appear once per motor with the same shared values. On a machine with one drive the switch changes nothing.
$ sim-cli verdicts t-gantry --set effects.shared_dc_link=true
...
dc-link-energy,a,6.205,6.205,ok
braking-resistor-continuous,a,0.06270,20.00,ok
braking-resistor-peak,a,21.80,500.0,ok
dc-link-overvoltage,a,224.7,257.6,ok
...
dc-link-energy,b,6.205,6.205,ok
braking-resistor-continuous,b,0.06270,20.00,ok
braking-resistor-peak,b,21.80,500.0,ok
dc-link-overvoltage,b,224.7,257.6,ok
...
On the default cycle the DC link reaches the chopper’s threshold, 224.65 V, with separate links (both motors) and with the shared one; the shared resistor burns 0.38 J per cycle, the two separate ones 6.67 J (0.06 J on motor A, 6.61 J on B). (On 17 November the shared link peaked at 224.45 V, below the threshold: since cb5f0a40 the belt’s vertical runs, 0.16 kg, weigh on Z, which then gives back more as it lowers.)
Feeding back into the mains. effects.regenerative_supply (off by default, needs effects.dc_link) puts a regenerative line module in place of the plain rectifier, as an Active Line Module on a SINAMICS S120: it holds the DC link at the bus level from above too and feeds what the motors give back into the mains, up to ratings.line_module_max_power_w, of which ratings.line_module_efficiency arrives there. The braking resistor then takes only what is beyond the line module’s power. analyze reports the energy fed back per motor (column mains_energy_j), the energy budget gets the rows mains and line_module (its loss), the app shows both, and two checks judge the line module: line-module-continuous (its mean power, drawn and fed back, against line_module_rated_power_w) and line-module-peak (its highest power against line_module_max_power_w). The shipped values are the smallest S120 Active Line Module, 16 kW rated and 35 kW at most, far above what these machines need. On the default T-gantry 27.4 J of the 28.0 J the motors regenerate per cycle go back into the mains; the resistor burns nothing and the DC link stays at 155.13 V.
Check a real catalogue machine
A config can describe a real machine with its values taken from the catalogue. exct-30.toml does that for a Festo EXCT-30 with two Siemens 1FK2205-4AF motors on S210 converters at 400 V. Every value in it is marked [catalogue] or [estimate].
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,...
a,2.048000,3.690330,1.480367,156.9733,0.2981,0.3218,255.84,556.02,1.1672,9.05,...
b,2.048000,3.064170,1.413208,156.9640,0.2478,0.3072,255.84,556.02,1.1127,8.62,...
Five values in this config are choices of the designer, made so that the checks pass in the worst case of the error bands (below): a belt pretension of 450 N, an X jerk limit of 150 m/s³, input shaping at a fixed 25 Hz with a second shaper at 17.5 Hz, and corner blending. The comments in the file give the reasons.
Like the default configs, this one has effects.dc_link = true, so the braking rows of verdicts are simulated, not estimated: the DC link voltage rises to the chopper threshold of 770 V and the resistor burns the rest.
dc-link-energy,a,9.943,9.943,ok
braking-resistor-continuous,a,8.273,100.0,ok
braking-resistor-peak,a,204.4,5700,ok
dc-link-overvoltage,a,770.0,820.0,ok
Parts by name. [parts] in a config, or --motor, --supply, --gearbox, --drive, --belt and --axis on the command line, name a motor, a gearbox, a drive, a belt and an axis from the catalogue. Their catalogue values then replace the config’s numbers. They go in in the order axis, belt, gearbox, motor, drive, so a belt named beside an axis replaces the axis’s belt:
| Part | What it sets |
|---|---|
| Motor | motor.rotor_inertia_kgm2, motor.torque_constant_nm_a (static torque over stall current), motor.max_current_a, motor.torque_constant_at_max_current_nm_a, motor.rated_current_a (the catalogue’s own, at most 1.05 times the stall current), motor.thermal_time_constant_s (where the configuration manual has it), drive.peak_torque_nm (capped by ratings.pulley_max_torque_nm over the gear ratio), drive.rated_torque_nm, drive.rated_speed_rad_s, drive.bus_voltage_v (the DC link voltage: 540 V for 400v, 325 V for 230v), drive.no_load_speed_rad_s (sqrt(3/2) × DC link voltage over the torque constant), and ratings.braking_threshold_v and ratings.dc_link_overvoltage_v scaled with the DC link voltage |
Motor on S120 (--supply s120) | The same keys from the S120 data: for a 1FK7 or 1FT7 motors_s120.csv and its data sheet (maximum torque and current, thermal time constant), for a 1FK2 or 1FT2 its S120 configuration manual. A 1FK7 or 1FT7 also brings its winding: motor.resistance_ohm and motor.inductance_h are three times the data sheet’s phase values (the model’s one winding carries the phase current at three times the phase voltage), and the current controller is retuned with them, drive.current_kp_v_a = L / T for the config’s own current loop time constant T (its inductance over its gain) and drive.current_tn_s = L / R. The DC link is 540 V |
| Gearbox | gearbox.ratio, gearbox.efficiency, gearbox.stiffness_nm_rad, gearbox.backlash_rad and gearbox.inertia_at_input_kgm2 (both where the manual gives them), ratings.gearbox_rated_torque_nm and ratings.gearbox_max_torque_nm (where the config has them) |
| Drive | An S210 converter (converters_s210.csv) or an S120 Motor Module (motor_modules_s120.csv) by article number: ratings.drive_rated_current_a and ratings.drive_max_current_a, its rated and maximum output current (per axis for a Double Motor Module). Where the config gives the drive’s installation conditions (ratings.drive_ambient_c, the cabinet’s air, not the machine’s ambient_c; drive_altitude_m; drive_pulse_frequency_hz; a config file may add them, absent means the rated 40 °C, 1000 m and the rated pulse frequency) the rated and the base load current are derated by Siemens’ tables (derating_s210.csv, derating_s120.csv), a condition beyond them is refused naming the key, and the factors of an S120 multiply (an assumption on the safe side: Siemens does not say how they combine). The maximum current is not derated (Siemens does not say whether it is); the search’s estimated names drive-derating. A config that names no drive part has its drive by hand, which the conditions cannot derate: sim-cli refuses them there, naming the key (search excepted, whose candidates bring their drives). verdicts judges the cycle’s RMS motor current against the first (drive-current) and its peak against the second (drive-peak-current). With effects.drive_current_limit (on in the shipped configs) the drive’s maximum current also limits the simulated current: a cycle that asks more lags behind its plan, and drive-peak-current judges the current asked for. The DC link: an S210 converter brings its internal braking resistor and trip level (braking_s210.csv); an S120 Motor Module its DC link capacitance (half per axis for a Double) and, as it has no resistor of its own, the Braking Module’s of braking_s120.csv: braking_resistor_continuous_w 1.5 kW, _peak_w 100 kW, braking_threshold_v 770 V, and dc_link_overvoltage_v 820 V, the booksize units’ trip. One Braking Module serves the whole line-up, so with an S120 Motor Module (drive.braking_module on) verdicts judges the axes’ braking power together, once for the machine: the mean of their sum against 1.5 kW and the peak of their summed power against 100 kW. An S210, with a resistor of its own, is judged per axis |
| Belt | As profile-width, e.g. AT5-25: a Megadyne MEGALINEAR belt with standard steel cords (megadyne/belts.csv; T5, AT3, AT5, AT10 and the HTD-compatible MTD3, MTD5, MTD8). belt.stiffness_ea_n (the allowable pull over the stretch at it, 4 mm/m), belt.mass_kg_m, belt.tooth_pitch_m, and where the config has them ratings.belt_max_tension_n (the allowable pull, a quarter of the breaking strength), ratings.belt_width_mm and the tooth load table ratings.belt_tooth_load_rpm and _n_cm. A width between two standard widths is interpolated, one outside them taken in proportion to the nearest |
| Axis | By name: EXCT-15, EXCT-30, EXCT-100 (Festo, festo/belt_axes.csv) and Bahr’s axes and X/Z gantries as series-size, e.g. ELZI-40 or ELZ-60S (bahr/belt_axes.csv). An X/Z gantry goes on a config with a Z stroke, a single axis on one with one stroke; the other way round, and a stroke the axis does not have, is refused. Sets geometry.pulley_radius_m, the belt (as above, for the axis’s profile and width: Festo’s EXCT as AT, Bahr’s HTD as MTD; Festo’s EA from its stated stretch), ratings.belt_teeth_in_mesh (half the pulley’s teeth), ratings.pulley_max_torque_nm where the config has it (Festo’s maximum torque; Bahr’s peak feed force times the radius), and the moved masses: Bahr’s gantry sheets give them per axis (Z axis, and the carriage as X less Z); Festo gives the Z mass of its torque formula, and the carriage is fitted so that the machine needs Festo’s torque at 45 degrees, as exct-30.toml was written. The strokes stay; an EXCT gets the shortest Z stroke Festo offers that holds the config’s. Bahr’s single axes state no moved mass, so the config’s carriage stays |
| Any but the drive | drive.velocity_kp_nm_s_rad, retuned for the part (see below) |
Mechanics of other makers (since 14 November 2026, see the catalogue): a gearbox by name also from WITTENSTEIN (SP+100MF-19-20, size-hub-ratio), Neugart, Apex and Harmonic Drive, with -r after it for the reduced backlash (SP100-05-20-r); an axis by name also a ball screw of HIWIN (25-20K4-FDC, into the config’s screw tables), a guide set of four carriages of HIWIN, Bosch Rexroth or THK (HGH25CAx4, FNS25x4, SHS25Cx4, the guide ratings, each on its maker’s own basis of 50 or 100 km), both joined with +, and Festo’s and Rexroth’s single belt axes (EGC-TB-KF-70, CKR-110); a motor by name also a linear motor (1FN3050-2WC00-0xAx at s120, AL8024-0G at beckhoff-400v). search --gearboxes takes a maker or a maker’s series (wittenstein-sp, neugart-ple), and search --axes on the screw, rack and linear motor axes tries the screws, guides and linear motors.
What a part by name does not set, and what follows from that:
- Winding resistance and inductance. Siemens does not publish them for the 1FK2 and 1FT2. The config’s resistance stays. A 1FK2 gets an inductance [estimate] from its maximum short-circuit braking torque in Siemens’ braking table, k_t² / (2 p M_br,max), and the current controller is retuned for it; a 1FT2 keeps the config’s inductance and gains. (For the 1FK7 and 1FT7 on S120 both are set from the data sheet, see above.)
- Brake and encoder.
parts.motor_brake = truetakes the motor’s inertia and weight with its holding brake (the search weighs it so too);parts.motor_encodernames the encoder (AS22DQC,AM22DQC, for a 1FT2 also the 26-bitAS26DQC,AM26DQC) and setsdrive.encoder_counts_per_rev. - The drive with the motor. Naming a motor does not name its drive; the config’s drive ratings stay. The search pairs each motor with its drive (below).
- The DC link capacitance and the braking resistor’s powers. They stay as the config has them. The braking threshold and the trip level keep their ratio to the DC link voltage, which is sound for placeholders and no more: set all five DC link ratings for the real drive before trusting the braking rows.
- Gearbox input speed, radial load and life. The gearbox files do not have them.
ratings.gearbox_max_input_speed_rpm,ratings.shaft_max_radial_load_n,ratings.pulley_bearing_load_rating_nandratings.gearbox_reference_speed_rpmstay as the config has them.
The velocity gain is retuned. A motor with a much lighter rotor oscillates with a gain tuned for a heavier one, which is a failure of the tuning, not of the motor. So wherever a part is named ([parts], --motor, --gearbox, the search), drive.velocity_kp_nm_s_rad is scaled by the square root of (ratio of the inertia the motors turn) × (ratio of the rotor inertias, the gearbox’s own included). The reference is the config’s own numbers as the file states them before the part goes in: the gain in a config is taken to be tuned for the rotor, gearbox and masses written in that config. Where the lower gain would leave the position loop too close to its edge of stability, drive.kv_1_s is lowered with it: a P position loop on a PI velocity loop on an inertia J is stable while (Kp / J) (Tn + 1/Kv) > 1, and the retune keeps that figure at 1.25 at least, or at the config’s own where that is smaller (velocity_tn_s stays: the integral holds the axis against friction in the dwell). A part that leaves the figure above that keeps the config’s Kv. --set drive.velocity_kp_nm_s_rad=... (or drive.kv_1_s) on the command line is applied after the parts and overrides the retuned value.
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --motor 1FK2204-6AF
motor-peak,a,0.3563,1.000,ok
motor-thermal,a,12.40,100.0,ok
...
settling,,0.00002974,0.0001000,ok
belt-least-tension,,251.6,0,ok
The rotor of the 1FK2204-6AF has a third of the inertia of the config’s 1FK2205-4AF; the gain goes from 0.45 to 0.14 N m s/rad. (0.45 happens to be calm for this motor too.) The 1FK2104-5AF has a ninth of the inertia: with the gain left at 0.45 it oscillates and its winding never settles. Retuned to 0.049 with Kv left at 50 (--set drive.kv_1_s=50) it sits at the edge of the position loop’s stability: it does not come to rest in the dwells (22.8 mm off its target) and its winding’s rise does not settle (Kv 49.9 gives 3.8 mm and a cycle that does not repeat, 50.1 gives 22 mm). The retune lowers Kv with the gain, to 24, and then it runs the cycle calmly with 1.22 N m RMS, and misses settling (0.15 mm against 0.1 mm): its gain, held to the rotor’s crossover, is too low to settle within the dwell.
An unknown article is refused: The catalogue has no such part: motor 1FK9. A motor that the catalogue does not offer at the chosen supply is refused the same way, and so are unknown drives, belts and axes.
Naming the axis of exct-30.toml gives its own numbers back (the test an_axis_by_name_gives_the_numbers_of_the_hand_written_exct_30): the carriage fitted again is 7.136 kg against the file’s 7.16 kg, the belt’s mass from the AT5 table 97.9 g/m against the file’s estimate of 0.1 kg/m.
Find the lightest motor
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 28 candidates
Search time on 16: 29.1 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5361,3.3060,22.16
,1FK2204-5AK,,6SL3210-5HE11-5UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5360,3.3052,26.00
,1FK2104-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.40,6.80,ok,settling,0.6739,3.3929,10.87
,1FK2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,7.00,ok,gearbox-radial-load,0.5016,3.3796,12.40
,1FK2205-2AF,,6SL3210-5HE11-0UF0,siemens,400v,3.75,7.50,ok,gearbox-radial-load,0.5013,3.5312,14.34
...
,1FK2208-3AC,,6SL3210-5HE13-5UF0,siemens,400v,12.60,25.20,ok,motor-peak,0.5404,6.6737,8.95
...
,1FK2104-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.85,5.70,FAIL,settling,1.5331,3.3423,20.26
,1FK2104-4AF,,6SL3210-5HE10-4UF0,siemens,400v,2.05,4.10,FAIL,settling,3.6107,3.2641,97.99
...
,1FK2203-2AK,,6SL3210-5HE10-4UF0,siemens,400v,1.16,2.32,FAIL,motor-thermal,inf,1.8519,inf
,1FK2103-2AH,,6SL3210-5HE10-4UF0,siemens,400v,1.18,2.36,FAIL,motor-thermal,inf,1.9507,inf
,1FK2210-4AB,,6SL3210-5HE15-0UF0,siemens,400v,27.00,54.00,FAIL,belt-least-tension,inf,13.0229,19.52
,1FK2210-4AC,,6SL3210-5HE17-0UF0,siemens,400v,27.00,54.00,FAIL,belt-least-tension,inf,13.1505,21.40
(The columns from rank on are left out here; see which drive works best.) On the EXCT-30 the lightest passing motor is the 1FK2204-5AF (2.90 kg): its tightest check is motor-s1 (0.54 of what the motor gives continuously at the cycle’s mean speed), and its winding settles 22.2 K warm. The 1FK2104-6AF’s tightest check is the dwell (0.67 of the tolerance), and for the others the belt’s pull on a pulley shaft (1000 N of 2000 N), which hardly depends on the motor: compare them by winding_rise_k and peak_torque_nm. The pulley shaft bearings last about 325000 h, against 20000 h required. The two lighter 1FK2104 fail: the 5AF misses settling (0.15 mm against 0.1 mm, see the retuned gain above), the 4AF misses it as well (0.36 mm), and its winding settles at 98 K of the 100 K allowed. Before 14 November the 1FK2208-3AC was ruled out without a simulation by the shared rated speed and peak torque (13 of the 28; see below), though it passes every verdict.
The search runs every motor of the catalogue that is offered at the supply on the config’s cycle, each with the drive the catalogue pairs with it, on all processor cores. Passing motors come first, cheapest first. Failing ones follow, nearest to passing first. A candidate whose drives trip on DC link overvoltage comes after all of these, with inf as its tightest_utilisation: its figures end at the trip.
Cost. No catalogue file has a price, and Siemens publishes no list prices on a server that can be read automatically (its Industry Mall refuses such access). The installed weight stands in for the price: cost_kg is motor and gearbox times the number of motors that take the candidate (not those with a motor of their own, [motor.<id>] or [parts.<id>]), plus the axis where one of the catalogue is tried (--axes). Passing candidates are ranked by it, then by mass_kg. For a motor search on a fixed machine the two give the same order.
Your own prices. Weight is a stand-in; a price list of your own replaces it (why no shipped table has prices). Write a CSV with the header part_number,price, one part per line, # notes and blank lines allowed, and give it as --prices FILE. The part numbers are the strings the table prints in its columns motor, gearbox, drive and axis; the price is a positive number in whatever currency you use (the file carries none and the program prints none). A candidate’s price is the sum over its motor, gearbox, drive and axis, each times how many of it the machine takes (three motors buy three of the motor, the gearbox and the drive; a motor with its own [parts.<id>] buys its own, one with hand-entered values none; the config’s kept axis and belt count too; a mechanical axis such as 25-10K3-FDC+FNS25x4 is its screw and its four FNS25 carriages; with --motor-id that motor’s parts alone), and exists only where every part is in your list. With --prices the default ranking becomes --rank-by price (priced passing candidates first, cheapest first, ties in the weight order; unpriced ones after them), the table gets a price column beside cost_kg (empty where there is none), and the error stream says how many candidates have no price and names up to ten part numbers to add. A duplicate part number, a price that is not a positive number or a missing header is refused with file and line. --rank-by price is also a criterion for mixes (price=1,energy=0.5), but a mix cannot place a candidate without a price, so it is refused while a passing one has none; without --prices it is refused too.
$ cat prices.csv
part_number,price
# EUR, supplier quote of March
1FK2104-6AF,900
6SL3210-5HE11-0UF0,200
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2104-6AF --prices prices.csv
(The EXCT-30 has two motors, each with its drive: 2 × 900 + 2 × 200 = 2200 in the price column of the 1FK2104-6AF’s row, beside its 6.80 in cost_kg.)
| Option | Effect |
|---|---|
--series PREFIX | Only article numbers that start this way, e.g. 1FK2, 1FT2105, 1FK7, AM804 or AKM2G |
--vendor NAME | The supplies of that maker, all of them unless --supply names one: siemens, beckhoff, br, kollmorgen, lenze, mitsubishi, rexroth, sew, yaskawa, or all for every supply of every maker. The candidates of all of them are ranked together; the columns vendor and supply say whose each is. E.g. --vendor beckhoff --series AM804 |
--supply 230v, 400v or s120 | 230v and 400v: the S210 motors (motors_s210.csv) at that supply, each with the S210 converter the D 32 catalogue lists beside it (at 230 V the single-phase one where there is one). s120: the motors on a SINAMICS S120 at 400 V, the 1FK7 and 1FT7 of motors_s120.csv with a data sheet and the 1FK2 and 1FT2 of their S120 manuals, each with its Single Motor Module (see parts by name). s210new-230v, s210new-400v: the S210 motors with the new 6SL5310 converters D 32 lists beside them. <vendor>-<volts>v (e.g. beckhoff-400v, kollmorgen-240v): another maker’s motors at that line voltage, each with the drive the maker pairs it with, or where the maker publishes no pairing the smallest of its drives that carries the motor’s stall current (the catalogue). Default 400v |
--gearboxes SERIES | Also try each motor with every gearbox of that series (NRB, NRK, NLC, or a size such as NRK070) that fits its frame and has a ratio between half and twice the config’s; on a direct drive (ratio 1) between half and twice the classic optimum for that motor, beside the motor without a gearbox (see which drive works best). Only for the motors the series is made for |
--axes | Also try every axis of the catalogue of the machine’s kind (below) |
--prices FILE | Your price list, part_number,price (see “Your own prices” above): adds the column price, ranks by it by default, and allows --rank-by price |
--motor-id ID | Size one motor of a machine with several, a machine file’s motor ID: each candidate becomes [parts.ID], the other motors stay as the file has them, that motor’s own velocity gain is retuned, --gearboxes fits its own ratio, and cost_kg is that one motor’s weight (see machine files). Not with --axes |
| Column | Meaning |
|---|---|
axis | The axis of the catalogue the motor was tried on; empty for the config’s own |
motor, gearbox | The candidate. gearbox is empty where the config’s own gearbox stayed |
drive | The drive the catalogue pairs with the motor; the cycle is judged against its currents (drive-current, drive-peak-current) |
vendor, supply | The maker and the supply the motor was tried at (siemens for 230v, 400v, s120, s210new-*) |
mass_kg | Mass of the motor without brake and of its gearbox (Siemens’ configuration manual 01/2023, see the catalogue) |
cost_kg | The stand-in for the price: installed weight, see above |
price | Only with --prices: your price for the candidate’s parts, empty where one of them is not in your list |
result | ok if every verdict passes |
tightest_check | The check closest to its limit, or furthest beyond it. Two DC link checks are left out while they pass, because their ratio says nothing about the margin: dc-link-energy when a braking resistor is in use (the capacitors then fill to their limit by design) and dc-link-overvoltage (the voltage is never below the DC link’s own level). The belt’s slack counts once it fails (a pushed section: inf). With --motor-id only that motor’s checks count, and the whole machine’s where they fail. For a candidate that was not simulated: why (config, a cycle error, axis-stroke, axis-payload, axis-speed) |
tightest_utilisation | Value over limit of that check |
peak_torque_nm | Highest peak torque of any motor of the machine; with --motor-id of that motor |
winding_rise_k | Highest settled winding rise of any motor; with --motor-id of that motor |
Every candidate is simulated. Before 14 November the catalogue numbers were a screen first: the motor speed at the highest axis speeds against the shared rated speed, the rigid torque at the highest accelerations against the shared peak torque, every axis at its limits at once. That ruled out motors that pass every verdict (on EXCT-30 at 400 V 32 of 84, on the CoreXY 21), so the verdicts judge now: motor-peak against the torque-speed curve, motor-speed against the maximum speed. A candidate that cannot run (a part the config cannot take, a cycle refused) is listed with NaN and why. The error stream says how many candidates that were, with --gearboxes how many motors no gearbox of the series fits (they are tried with the config’s own, gearbox empty), and how long the search took on how many cores.
Each candidate’s velocity gain is retuned by the rule of parts by name: the square root of (ratio of the inertia the motors turn) × (ratio of the rotor inertias), against the config’s own numbers. A linear motor’s gain goes with the whole moving mass alone: its coil moves with the load, joined by nothing elastic. --gearbox NAME for the whole search and --gearboxes SERIES give the same result for the same pair: the gearbox’s inertia has a key of its own (gearbox.inertia_at_input_kgm2) and stays when a motor goes in.
With gearboxes, on the single axis:
$ sim-cli search single-axis --series 1FK2104 --gearboxes NRK070
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 35 candidates
No gearbox of the series fits, so tried with the config's own gearbox (gearbox empty in the table): 0 candidates
Search time on 16: 2.9 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK2104-4AF,NRK070-04-10,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,motor-speed,0.6633,0.4611,1.31
,1FK2104-4AF,NRK070-04-3,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,gearbox-radial-load,0.4190,0.7650,3.85
,1FK2104-4AF,NRK070-04-4,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,settling,0.4568,0.6019,2.50
,1FK2104-4AF,NRK070-04-5,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,settling,0.4635,0.5300,1.91
...
The S120 motors on the EXCT-30:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --supply s120 --series 1FK7
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 61 candidates
Search time on 16: 41.4 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK7040-2AK7,,6SL3120-1TE13-0AD0,siemens,s120,3.20,6.40,ok,motor-s1,0.8352,3.3814,60.08
,1FK7034-2AK7,,6SL3120-1TE13-0AD0,siemens,s120,3.50,7.00,ok,motor-s1,0.8135,3.3326,56.19
,1FK7042-2AC7,,6SL3120-1TE13-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5109,17.27
,1FK7042-2AF7,,6SL3120-1TE13-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5114,18.05
,1FK7042-2AK7,,6SL3120-1TE15-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5109,18.93
...
Axis combinations. --axes keeps the config’s cycle, payload and strokes and tries every motor on every axis of the catalogue of the machine’s kind: on the T-gantry the Festo EXCT-15, -30 and -100 and Bahr’s X/Z gantries ELZI 30, 40 and 60; on the single axis Bahr’s 56 single axes. Each axis goes in as [parts] axis does (parts by name). Before any motor is tried, the axis’s catalogue numbers rule it out where the stroke is longer than it has (axis-stroke; an EXCT gets the shortest Z stroke Festo offers that holds the config’s), the payload is above its rating (axis-payload; Festo’s rated load, or Bahr’s dynamic vertical load on the slide against the Z axis and payload), or an axis limit of the config above its speed or acceleration (axis-speed). Such an axis has one row without motor. On the EXCT-30’s cycle, all S210 motors at 400 V:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --axes
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 2 / 338 candidates
Search time on 16: 268.0 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
ELZI-40,1FK2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,26.05,ok,dc-link-energy,0.7454,3.9838,14.62
ELZI-40,1FT2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,26.05,ok,dc-link-energy,0.7455,3.9814,14.62
ELZI-40,1FK2205-2AF,,6SL3210-5HE11-0UF0,siemens,400v,3.75,26.55,ok,dc-link-energy,0.8028,4.0718,14.46
...
EXCT-30,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,46.90,ok,motor-s1,0.5305,3.2708,21.65
...
EXCT-100,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,57.02,ok,motor-s1,0.7884,5.0837,54.06
...
ELZI-40,1FK2204-5AK,,6SL3210-5HE11-5UF0,siemens,400v,2.90,24.85,FAIL,settling,1.1441,4.1198,28.57
...
ELZI-30,,,,,,NaN,NaN,FAIL,axis-speed,NaN,NaN,NaN
EXCT-15,,,,,,NaN,NaN,FAIL,axis-stroke,NaN,NaN,NaN
The Bahr ELZI 40 is the lightest axis that carries this cycle (19.05 kg at 1 m by 0.25 m, against 41.1 kg for the EXCT-30), so it ranks first. The EXCT-15 has no 250 mm Z stroke; the ELZI 30 allows 2 m/s, the config asks for 2.5 m/s. Read the ELZI rows with care: the config’s shaper, belt pretension, friction, frame and tool estimates are the EXCT-30’s, and Bahr publishes neither the gantry’s rated payload nor the belt’s stretch (the belt is Megadyne’s HTD-compatible MTD5 at the sheet’s width).
Limits for this task:
- Weight stands in for price. See above. The drive’s weight is not counted: the converter files have none.
- The retuning is a rule of thumb, not a tuning from the machine’s frequency response. A candidate can still fail for its gain. Check a chosen motor with
tuning. - The axis search keeps everything of the config that the axis does not set: its gearbox, friction, frame, shaper and gains. Bahr’s single axes state no moved mass, so the config’s carriage stays for them; Bahr’s maximum lengths are taken as the longest stroke.
- Belts are not searched; a belt is named with
--belt. Combinations of different motors per axis are not searched. - The DC link capacitance and the braking resistor stay as the config has them; the braking threshold and the trip level are scaled to the motor’s DC link voltage (see the previous section). On a default config the braking rows of every candidate are judged against placeholders.
Which drive works best: rank, mix, sweep and compare
The search above answers “which is the lightest motor that passes”. The same search answers more with these options; the table has the same rows and more columns.
The wide table. After winding_rise_k every row has:
| Column | Meaning |
|---|---|
rank | The row’s place in the ranking (--rank-by, below) |
front | true for a passing candidate that no other passing one beats in all of cost, drive size (its rated current), margin (tightest_utilisation), energy and following error at once: the candidates worth a look whatever weighs most |
cycle_s | Cycle time (with a duty mix the mean per cycle, weighted) |
energy_j | Energy from the supply per cycle, J: what the drives drew less what they fed back, plus what the braking resistor burned (as the optimiser’s front counts it) |
thermal_utilisation | RMS torque over the torque the motor gives continuously, the highest of the motors |
drive_current_utilisation | The drive’s RMS current over its rated current (the drive-current check) |
following_error_m, settling_error_m | The most the tool lagged behind its setpoint, and the most it was off its target late in a dwell, m |
inertia_ratio | Load over motor inertia at mid travel: what the motor turns besides its rotor (the load, and a gearbox’s own inertia), reflected to its shaft, over the rotor’s; the highest of the motors (with --motor-id that motor’s). Per axis it is the rigid machine’s torque per unit of that axis’s acceleration over the motor acceleration it takes, standing |
failing | Every check that fails, separated by ; |
estimated | What the motor and drive leave to the config’s estimates (empty: everything from the catalogue): motor-winding (no phase resistance and inductance; Siemens prints them for the 1FK7 and 1FT7 only), motor-thermal-time, motor-pole-pairs, motor-standstill and motor-rated (another maker prints no standstill or no rated values; the other ones stand for them), drive-max-current (no peak current printed: Mitsubishi), drive-base-load (no base load current: every drive but the S120 Motor Modules), drive-derating (the drive’s currents derated by installation conditions that are not the rated ones) |
u_<check> | One column per check of any candidate: its utilisation, value over limit (for a life, limit over value), the highest of the motors. Empty where a candidate has no such check |
Rank by what matters. --rank-by orders the passing candidates by cost (the default), margin (the tightest check’s utilisation), energy, error (following error), thermal, inertia (inertia ratio), drive (the drive’s rated current) or price (your price list, --prices; the default with it), or by a weighted mix such as --rank-by cost=1,energy=0.5: each figure over the best one of the passing candidates, times its weight, summed, so that kilograms and joules weigh as the weights say. Failing candidates follow as before.
The drive as a dimension. --drives neighbours tries each motor with the drive the catalogue pairs with it and with the next size down and up by rated output current: among the S210 converters of the supply (at 230 V the 1 AC and 3 AC ones, at 400 V the 3 AC ones), the S120 Single Motor Modules, or the maker’s drives at the line voltage. --drives all tries every drive of the supply. A smaller drive is judged against its own currents (drive-current, drive-peak-current) and, with effects.drive_current_limit, limits the simulated current. On the EXCT-30 the 1FK2204-5AF runs on the 6SL3210-5HE10-4UF0 (1.2 A) at 0.998 of its rated current, on its paired 5HE10-8UF0 (2.3 A) at 0.52:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2 --drives neighbours
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 77 candidates
Search time on 16: 81.7 s
motor,drive,cost_kg,result,tightest_check,tightest_utilisation,rank,front,cycle_s,energy_j,thermal_utilisation,drive_current_utilisation,inertia_ratio,estimated
1FK2204-5AF,6SL3210-5HE10-4UF0,5.80,ok,drive-current,0.9983,1,true,2.0480,187.31,0.5298,0.9983,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AF,6SL3210-5HE10-8UF0,5.80,ok,motor-s1,0.5361,2,true,2.0480,187.31,0.5298,0.5209,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AF,6SL3210-5HE11-0UF0,5.80,ok,motor-s1,0.5361,3,false,2.0480,187.31,0.5298,0.3993,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AK,6SL3210-5HE11-0UF0,5.80,ok,drive-current,0.7819,4,false,2.0480,218.48,1.4128,0.7819,16.507,motor-winding;motor-pole-pairs;drive-base-load
...
(Columns picked from the table.) The catalogue has no weight of a drive, so cost_kg leaves the drive out; the front and --rank-by drive count its size instead.
Duty mix. A machine rarely runs one cycle only. Give each cycle as a config of its own, several --config FILE, and how often each runs with --weights W1,W2,... (1 each without): weight 3 against 1 is three cycles of the first to one of the second. Each candidate runs every cycle with the same parts and is judged on the worst result per check (a peak, a speed, a life) but on the heat over the mix, as the cycles take turns, each w times in a row, in the order given, over and over: the highest the winding’s temperature model reaches in that periodic state (its one node, or two with effects.motor_thermal_nodes, its resistance rising with its temperature), driven by each cycle’s heat; the drive’s RMS current through the drive’s thermal image (ratings.drive_overload_time_constant_s, with the chips where the config has drive_chip_share; without a time constant sqrt(Σ w I² t / Σ w t) of the cycles’ RMS currents I); motor-s1 and thermal_utilisation as each cycle’s share of its limit squared into the motor’s one node. Cycles far shorter than the time constants (minutes) give the heat of the mix’s mean, cycles far longer the worst cycle’s own. energy_j and cycle_s are the weighted mean per cycle. The parts and --set of the command line go into every config; the first config is the one the search is set up on. Each config may have its own path or timing. On the EXCT-30 with three cycles of an empty gripper to one with the 3 kg payload (exct-30-empty.toml, not in the repository: exct-30.toml with effects.payload = false), the 1FK2204-5AF’s thermal utilisation drops from 0.53 to 0.47, and its tightest check becomes the belt’s pull on its pulley shaft (the loaded cycle’s); the 1FK2104 fail settling on the loaded cycle, as alone (21 November 2026):
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --config exct-30-empty.toml --weights 1,3 --series 1FK2 --rank-by cost=1,energy=1
motor,drive,cost_kg,result,tightest_check,tightest_utilisation,rank,front,cycle_s,energy_j,thermal_utilisation,drive_current_utilisation
1FK2204-5AF,6SL3210-5HE10-8UF0,5.80,ok,gearbox-radial-load,0.5012,1,true,2.0480,173.88,0.4696,0.4813
1FK2204-5AK,6SL3210-5HE11-5UF0,5.80,ok,gearbox-radial-load,0.5012,2,true,2.0480,199.31,1.2521,0.4334
1FK2104-6AF,6SL3210-5HE11-0UF0,6.80,ok,settling,0.6739,3,true,2.0480,172.58,0.3464,0.3587
...
Robust ranking. --robust N judges the first N passing candidates once more, each at the worst corner of the bounds of its own config (verdicts --bands --worst; the bounds follow a part put in, as for verdicts), and adds the columns robust_rank, robust_result, robust_check and robust_utilisation; the error stream says whether the order of the N changes (those that pass at the worst corner first). It costs a worst-corner search per candidate, a few hundred cycles on a config with many bounds: on the EXCT-30 four candidates took 52 minutes on 16 cores that other jobs shared (11 minutes on 17 November 2026). There all four fail at their worst corner, on thermal-warm-start (utilisation 24.8, 9.08, 25.9 and 3.45: the rises the measured pass starts at lie far from those it settles at), and the order stays (26 November 2026; search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2 --robust 4; on 14 November the four failed pulley-bearing-life, utilisation 2.0; since the catalogue motors’ speed-loop gain is retuned within its bounds, 8ee76bb9, four warm passes no longer reach the fixed point at those corners). With a duty mix each config is judged at its own worst corner, and those verdicts are mixed as the search mixes the cycles (the heat over the mix).
Gear ratio and pulley radius. sim-cli transmission MACHINE sweeps the gearbox ratio (--key gearbox.ratio, the default) or the pulley radius (--key geometry.pulley_radius_m) from --from to --to in --count values spaced evenly on a log scale (by default half to twice the config’s, 9 values), each run on the cycle with the velocity gain retuned for it, and adds the classic optimum: the value at which the motors need the least torque per unit acceleration (for a pure inertia J_m i + J_L / i is least at i = sqrt(J_L / J_m)). A swept pulley radius takes the pulley’s inertia pulley.inertia_kgm2 with it as a disc of the same width and material, with r⁴. Each row has the torque per unit acceleration (of every axis in turn, summed), the inertia ratio, the cycle time and the result with its tightest check; the error stream says the classic optimum and the best value for the cycle (the passing row with the most margin). With --gearboxes SERIES and a motor (--motor, or the config’s [parts] motor) the series’ gearboxes that fit the motor within half to twice the best ratio are run as well, rows catalogue. The EXCT-30 is a direct drive (ratio 1):
$ sim-cli transmission t-gantry --config crates/machine-t-gantry/exct-30.toml --motor 1FK2104-5AF --from 1 --to 20 --count 7 --gearboxes NRK
Classic optimum (least torque per unit acceleration) and best value for the cycle of gearbox.ratio: 5.1970, 2.7144
kind,value,gearbox,torque_per_acceleration,inertia_ratio,cycle_s,result,tightest_check,tightest_utilisation,torque_unit
sweep,1.000000,,0.394342,35.3729,2.0480,FAIL,settling,1.5331,N m
sweep,1.647549,,0.254001,13.0315,2.0480,ok,settling,0.7810,N m
sweep,2.714418,,0.178307,4.8008,2.0480,ok,motor-speed,0.6071,N m
sweep,4.472136,,0.147993,1.7686,2.0480,FAIL,motor-speed,1.0018,N m
classic,5.197001,,0.146339,1.3097,2.0480,FAIL,motor-speed,1.1633,N m
...
catalogue,3.000000,NRK070-04-3,0.183699,4.2785,2.0480,ok,motor-speed,0.6710,N m
catalogue,4.000000,NRK070-04-4,0.165260,2.4572,2.0480,ok,motor-speed,0.8944,N m
...
The classic optimum (5.2) needs the least torque but fails: the motor would have to turn 1.16 times its maximum speed. The direct drive (ratio 1) fails as well, on settling (see parts by name). From 1.65 to 2.7 the cycle passes; at 4.5 the motor’s speed limit is passed. The best for this cycle is 2.71, and the NRK gearboxes of ratio 3 and 4 that fit the frame pass, those of ratio 5 do not. search --gearboxes SERIES does the same on a direct drive: it tries each motor without a gearbox and with the series’ gearboxes around its own classic optimum (the square root of the load’s inertia over its rotor’s); on a geared machine around the config’s ratio, as before.
Gearbox radial load per motor. gearbox-radial-load is judged per motor: each shaft’s peak radial load against that motor’s own ratings.shaft_max_radial_load_n (a smaller Z gearbox has its own, [ratings.<id>]). Before 14 November it was judged once for the machine, the highest shaft against the shared rating; a machine that reports no shaft of its own motors still is.
Which kinematics for a task
sim-cli compare-kinematics TASK.toml --machines ID,ID,... runs one task on several kinematics and gives per machine the best combination of parts side by side. The task file (examples/pick-place-task.toml) is in tool space:
| Key | Meaning |
|---|---|
pick, place | x, y, z in m from each machine’s origin, z up |
lift_m | How far the tool lifts above pick and place |
dwell_s | How long the gripper acts at pick and at place |
payload_kg | The payload, put into each config’s mass.payload_kg (refused on a machine whose config has none) |
cycle_time_s or rate_per_min | The target: one pick and one place in this time; meets says whether the best candidate passes and is that fast |
via | Optional points the way across passes through (the via of [[cycle.segment]]) |
set | Optional settings made on every machine’s config, e.g. ['cycle.timing = "time_optimal"'] |
[origin] | Optional, per machine id, its origin in its own tool coordinates (one value per axis); by default the middle of its axis ranges |
Each machine gets the cycle: start above the pick, down to it (the gripper closes and dwells), up, across through the via points, down to the place (it opens), up, back. A task position goes to the machine’s axis of id x, y or z (in m); its other axes stay at the origin. A machine the task cannot be mapped onto is listed with why: task-axis-missing (the task moves along an axis the machine has not, e.g. z on the H-bot), task-out-of-range (a pose beyond an axis’s range), the machine’s own reason for a pose it cannot reach (e.g. outside a delta’s working range), task-payload, task-origin or task-set. Then the catalogue search runs on each, at each machine’s own supply unless --supply or --vendor names one, with --series, --gearboxes, --drives and --rank-by as for search. Machines by id, and each --machine-file FILE as well, each with its default config and --set.
$ sim-cli compare-kinematics examples/pick-place-task.toml --machines t-gantry,delta-d3,delta-d2 --machine-file machines/h-bot.toml --series 1FK2
machine,result,refused,motor,gearbox,drive,supply,cost_kg,cycle_s,target_s,meets,energy_j,tightest_check,tightest_utilisation,thermal_utilisation,following_error_m,inertia_ratio,passing,tried,estimated
t-gantry,ok,,1FK2203-2AK,,6SL3210-5HE10-4UF0,400v,2.32,2.0720,1.5000,false,37.50,gearbox-radial-load,0.4350,0.4281,3.8514e-4,4.496,28,28,motor-winding;motor-pole-pairs;drive-base-load
delta-d3,ok,,1FK2104-5AF,,6SL3210-5HE10-8UF0,400v,8.55,0.7620,1.5000,true,26.67,motor-s1,0.7851,0.7852,1.1346e-3,41.220,22,28,motor-winding;motor-pole-pairs;drive-base-load
delta-d2,ok,,1FK2104-5AF,,6SL3210-5HE10-8UF0,400v,5.70,0.7620,1.5000,true,32.09,dc-link-energy,0.7303,0.7031,8.8303e-4,24.979,22,28,motor-winding;motor-pole-pairs;drive-base-load
h-bot,refused,task-axis-missing z,,,,,,,1.5000,false,,,,,,,0,0,
The gantry’s lightest motor passes, but its cycle at the gantry’s own axis limits takes 2.07 s against the 1.5 s asked; both deltas make it in 0.76 s. The cycle is timed as each config times it; to compare at the motors’ limits, set the timing in set.
The Python function sizing gives the same columns (Python).
See which unknown parameters matter, and judge with error bands
A config gives each uncertain value a low and a high bound in [bounds], a table that mirrors the config:
[bounds]
belt.pretension_n = [350.0, 550.0]
friction_x.coulomb_n = [12.0, 26.0]
A part named in [parts] or by --motor, --supply, --drive, … carries its own values, and the bounds of those values follow it: they are scaled by the part’s value over the config’s own, so a band keeps its width relative to the value (see config reference). EXCT-30’s braking threshold bounds, 750 to 790 V around 770 V on its 540 V bus, move with the threshold for a 230 V motor and drive, which follows their 325 V bus.
Sensitivity. The cycle is run with each parameter at its low and at its high value, one at a time, and the rows are sorted by how much the results change. ratings.bearing_reliability_percent is left out: it is a choice of how to judge, and 20 % either way leaves its range of 90 to 99.95 %:
$ sim-cli sensitivity t-gantry --config crates/machine-t-gantry/exct-30.toml --group mass --group friction_x --group belt
parameter,value,low,high,peak_torque_low,peak_torque_high,rms_torque_low,rms_torque_high,cycle_time_low,cycle_time_high,belt_tension_min_low_n,belt_tension_min_high_n
friction_x.viscous_n_s_m,20.0,10.0,40.0,-0.0428,+0.0861,-0.0168,+0.0457,+0.0000,+0.0000,263.27,240.08
mass.z_axis_kg,4.7,3.7600000000000002,5.64,-0.0625,+0.0623,-0.0668,+0.0683,+0.0000,+0.0000,267.20,244.23
mass.carriage_kg,7.16,5.728000000000001,8.592,-0.0555,+0.0552,-0.0466,+0.0481,+0.0000,+0.0000,270.13,241.08
mass.payload_kg,3.0,2.4000000000000004,3.5999999999999996,-0.0338,+0.0341,-0.0272,+0.0277,+0.0000,+0.0000,263.24,248.02
friction_x.coulomb_n,20.0,12.0,26.0,-0.0202,+0.0155,-0.0093,+0.0078,+0.0000,+0.0000,261.40,251.72
...
belt.pretension_n,450.0,350.0,550.0,+0.0000,-0.0000,+0.0000,-0.0000,+0.0000,+0.0000,155.84,355.83
...
belt.tooth_mesh_stiffness_n_m,5000000.0,2500000.0,10000000.0,+0.0000,+0.0000,+0.0000,+0.0000,+0.0000,+0.0000,255.84,255.84
| Column | Meaning |
|---|---|
parameter, value | Config path and its value in the config |
low, high | The two values the cycle was run with: the config’s bounds, or the value times (1 − delta) and (1 + delta) where it has none |
peak_torque_low, _high | Relative change of the peak torque (a fraction: +0.0671 is +6.71 %), of the motor it changes most |
rms_torque_low, _high | The same for the RMS torque |
cycle_time_low, _high | Relative change of the cycle time |
belt_tension_min_low_n, _high_n | Lowest belt tension in N at the low and at the high value. An absolute value, not a change |
| Option | Effect |
|---|---|
--group TABLE | Only vary this config table. Repeatable. Without it every table is varied except sim, effects, drive, profile, start, axis and temperature |
--delta FRACTION | Width for values without bounds. Default 0.2 |
The masses in the example have no bounds in the config, so they were varied by 20 %. A parameter whose changed value the machine refuses is left out of the table. The pretension hardly moves the torques, so it stands far down, but it sets the lowest belt tension: 156 N at its low bound. The last row shows a parameter of an effect that is switched off: it changes nothing.
Error bands on the verdicts.
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result,low,high,worst_case
motor-peak,a,0.2981,1.000,ok,0.2876,0.3199,ok
motor-thermal,a,9.045,100.0,ok,8.882,9.498,ok
motor-s1,a,1.480,5.836,ok,1.455,1.548,ok
motor-speed,a,157.0,628.3,ok,157.0,157.0,ok
drive-current,a,1.167,5.000,ok,1.147,1.222,ok
drive-peak-current,a,2.926,19.00,ok,2.822,3.141,ok
pulley-torque,a,3.158,12.50,ok,3.027,3.426,ok
gearbox-radial-load,a,983.9,2000,ok,783.9,1184,ok
pulley-bearing-life,a,325701,20000,ok,73146,1194182,ok
belt-tooth-load,a,0.3566,1.000,ok,0.2972,0.5095,ok
dc-link-energy,a,9.943,9.943,ok,4.971,23.79,ok
braking-resistor-continuous,a,8.273,100.0,ok,4.472,13.13,ok
braking-resistor-peak,a,204.4,5700,ok,147.5,221.8,ok
dc-link-overvoltage,a,770.0,820.0,ok,712.6,790.0,ok
...
settling,,0.00003544,0.0001000,ok,0.00003128,0.00003989,ok
belt-tension,,556.0,2140,ok,456.0,656.0,ok
belt-least-tension,,255.8,0,ok,155.8,355.8,ok
guide-load,,184.5,2000,ok,176.6,284.9,ok
guide-life,,3767969,20000,ok,470996,30143755,ok
thermal-warm-start,,0.00002810,0.1000,ok,0.000005736,0.00008921,ok
low and high are the lowest and highest value the check took over all runs: the config as it is, and each bounded parameter at its low and at its high bound. worst_case is ok only if the check passed in every run. Here every check passes in every run: with the belt set to its low bound of 350 N the slackest section keeps 156 N, the tool is at most 0.040 mm off its target in the dwell, and the belt pulls a pulley shaft with at most 1202 N. The pulley shaft bearings last 324100 h as written and at least 72800 h, against 20000 h required (motor B’s, the lower). Their load rating and the lubrication values behind a_ISO are estimates (Festo publishes none; see the config’s comments). This run simulated 139 cycles (69 bounded values, 2 · 69 + 1, as the optimiser’s error bands below count them) on all processor cores.
An earlier state of this config failed here: with 300 N of pretension a belt set to 200 N went slack, and with the frame at the soft end of its bounds the tool was 0.16 mm off in the dwell, against a tolerance of 0.1 mm (the tool position counts the frame’s sway). The pretension was raised to 450 N, the X jerk limit lowered from 500 to 150 m/s³, and input shaping and corner blending were switched on; later a second shaper at 17.5 Hz was added for the worst corner (below). The cycle takes 2.048 s now, against 2.136 s before.
All bounded values at once. With --samples N the cycle is run N times, each time with all bounded values between their bounds:
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --samples 200
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result,low,high,worst_case,pass_share
motor-peak,a,0.2981,1.000,ok,0.2853,0.3460,ok,1.000
motor-thermal,a,9.045,100.0,ok,8.775,9.927,ok,1.000
motor-s1,a,1.480,5.836,ok,1.439,1.616,ok,1.000
motor-speed,a,157.0,628.3,ok,157.0,157.0,ok,1.000
drive-current,a,1.167,5.000,ok,1.133,1.272,ok,1.000
drive-peak-current,a,2.926,19.00,ok,2.800,3.399,ok,1.000
pulley-torque,a,3.158,12.50,ok,2.984,3.735,ok,1.000
gearbox-radial-load,a,983.9,2000,ok,780.2,1192,ok,1.000
pulley-bearing-life,a,325701,20000,ok,55655,5820634,ok,1.000
belt-tooth-load,a,0.3566,1.000,ok,0.2914,0.5578,ok,1.000
dc-link-energy,a,9.943,9.943,ok,4.968,31.73,ok,1.000
braking-resistor-continuous,a,8.273,100.0,ok,0.1095,14.77,ok,1.000
braking-resistor-peak,a,204.4,5700,ok,14.88,234.0,ok,1.000
dc-link-overvoltage,a,770.0,820.0,ok,680.9,789.7,ok,1.000
...
settling,,0.00003544,0.0001000,ok,0.00002410,0.00004288,ok,1.000
belt-tension,,556.0,2140,ok,447.9,666.0,ok,1.000
belt-least-tension,,255.8,0,ok,138.6,356.4,ok,1.000
guide-load,,184.5,2000,ok,172.4,329.6,ok,1.000
guide-life,,3767969,20000,ok,186127,29594219,ok,1.000
thermal-warm-start,,0.00002810,0.1000,ok,0.0000003445,0.001168,ok,1.000
The values are drawn as a Latin hypercube: each value’s range is cut into N equal parts, each part is used in exactly one run, and the order of the parts is random per value. The random numbers come from --seed S (default 1), so the same call gives the same table. low, high and worst_case are the envelope of these runs and the config as it is. pass_share is the share of the runs, the config as it is included, in which the check passed. Here the bands are wider than one at a time (139 N instead of 156 N in the slackest section, 0.043 mm instead of 0.040 mm off in the dwell, 1210 N on a pulley shaft), and every check passes in all 201 runs. The pulley shaft bearings last 55400 h at least.
--samples without --bands, 0 samples, a fraction, and --seed without --samples are refused (exit code 2). The runs of both kinds use all processor cores.
The worst corner. With --worst the bands search, per check, for the combination of bounds that makes it worst:
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --worst
Cycles simulated in the search for the worst corners: 3101
check,motor,worst,limit,worst_case,at_high_bound,at_low_bound
motor-peak,a,0.4138,1.000,ok,...
...
pulley-bearing-life,a,10043,20000,FAIL,...
...
dc-link-energy,a,36.57,36.57,ok,...
...
settling,,0.00008666,0.0001000,ok,...
belt-tension,,688.5,2140,ok,...
belt-least-tension,,87.99,0,ok,...
guide-load,,392.3,1000,ok,...
guide-life,,103891,20000,ok,...
thermal-warm-start,,0.009977,0.1000,ok,...
It starts from the one-at-a-time runs: each check gets the corner where every bounded value is at the bound that made that check worse alone. Then, up to three times, each value that moved the check is flipped to its other bound, one at a time, and what made it worse is kept (all such flips together, or the best one alone, whichever is worse). The last two columns name the values at their high and at their low bound, separated by ;. “Worse” is judged by the margin to the limit, because some limits are bounded themselves: in this config the DC link’s capacitance and threshold, so the limit column shows the limit at that corner. dc-link-energy is judged by the energy instead: it fails only where the braking resistor is needed and has no rating, and with a resistor the link fills up to its room at every corner that brakes hard, so its margin says nothing (here all its 36.57 J of room on motor A, with the capacitance at its high bound; 9.94 J as configured). The one-at-a-time runs and the config as it is count as candidates too, so the worst is never better than the bands; where one of them is the worst, the values it leaves as configured are named in neither column. The search took 3101 cycles here.
On the EXCT-30 it found what neither band mode found: with the 25 Hz shaper alone and all values at their worst at once the tool was 0.115 mm off its target in the dwell, against 0.1 mm allowed (0.040 mm one at a time, 0.043 mm in 200 samples, both with the second shaper below). A second shaper at 17.5 Hz, the peak of the tool’s response, brings it to 0.087 mm (the comment of profile.shaper2_frequency_hz in the file lists what else was tried). The belt keeps 88 N in its slackest section and the shafts carry 1233 N of their 1500 N at the lowest rating bound. The pulley shaft bearings fail at their worst corner, every bounded value against them at once: 9955 h of 20000 h. Their rating and lubrication values are estimates, so this is the part to ask Festo about, not proof that the axis wears out.
--worst without --bands, or with --samples or --seed, is refused (exit code 2). The app has it as “worst corner” beside the error bands.
Global sensitivity: which bounded values to measure first. The sensitivity above moves one value at a time; --method moves all values of [bounds] at once and ranks them per result, so a value that matters only together with another one shows too.
$ sim-cli sensitivity t-gantry --method morris --samples 10
Cycles simulated for the global sensitivity: 320
Measure these first: motor-peak:a: gearbox.efficiency, motor.friction_coulomb_nm, friction_x.coulomb_n
...
result,rank,parameter,mu_star,mu,sigma
motor-thermal:a,1,motor.friction_coulomb_nm,0.2520,-0.2520,0.04314
motor-thermal:a,2,friction_x.viscous_n_s_m,0.2260,-0.2260,0.02800
motor-thermal:a,3,motor.friction_viscous_nm_s_rad,0.1665,-0.1665,0.02207
...
--method morris is Morris’ elementary-effects screening: from a random start on a grid of four levels per value (0, 1/3, 2/3 and 1 of its range) each value is stepped once by 2/3 of its range, in a random order; --samples such trajectories (10 by default) cost samples × (k + 1) cycles for k bounded values. --method sobol gives Sobol’ indices (Saltelli’s sampling, Jansen’s estimators) for the variance of a result: --samples N base rows (64 by default), N × (k + 2) cycles. Both use all processor cores and --seed S (default 1): the same call gives the same table.
| Column | Meaning |
|---|---|
result | What is ranked: a verdict’s margin, check or check:motor (its room to the limit in the check’s unit, as verdicts shows value and limit: limit − value, or value − limit for the checks that must stay above their limit; negative where it fails), or a figure of the cycle: peak-torque:motor, rms-torque:motor (N m), winding-rise:motor (K), path-error-peak, path-error-rms, dwell-error-peak (m; the dwell error is the settling) |
rank | 1 is the value to measure first for this result |
mu_star (Morris) | Mean of the absolute effects: how much the result changes when the value goes over its whole range, in the result’s unit. The ranking figure |
mu (Morris) | Mean of the effects with their sign. Near 0 with a large mu_star: the effect changes sign over the range |
sigma (Morris) | Spread of the effects: large against mu_star where the effect depends on the other values (interaction) or is curved |
first, first_low, first_high (Sobol) | Share of the result’s variance the value explains alone, with its bootstrap 95 % interval (200 resamples of the rows) |
total, total_low, total_high (Sobol) | Share with all its interactions; the ranking figure. A value with total 0 does not matter, whatever the others do |
| Option | Effect |
|---|---|
--method morris|sobol | Global instead of one at a time. Refused together with --delta |
--samples N | Morris trajectories (10) or Sobol’ base rows (64) |
--seed S | Another set of random numbers (1) |
--result NAME | Only the rows of this result. Repeatable; an unknown name is refused (after the runs, which name the results) |
--group TABLE | Only the bounds of this config table. Repeatable |
On the default T-gantry (31 bounded values that act on the cycle, 320 cycles) the ranking is what the physics says:
| Result | 1st | 2nd | 3rd |
|---|---|---|---|
motor-thermal:a (K of room) | motor.friction_coulomb_nm 0.25 | friction_x.viscous_n_s_m 0.23 | motor.friction_viscous_nm_s_rad 0.17 |
motor-peak:a | gearbox.efficiency | motor.friction_coulomb_nm | friction_x.coulomb_n |
settling (m of room) | belt.stiffness_ea_n 1.2e-5 | friction_z.stiction_n 4.5e-6 | frame.stiffness_n_m 3.5e-6 |
path-error-peak (m) | frame.stiffness_n_m 7.3e-5 | tool_flex.tilt_stiffness_nm_rad 6.6e-5 | belt.stiffness_ea_n 2.3e-5 |
belt-least-tension (N of tension) | belt.pretension_n 200 | friction_x.coulomb_n 8.5 | friction_x.viscous_n_s_m 7.0 |
pulley-bearing-life:a (h) | ratings.bearing_lubricant_viscosity_mm2_s | belt.pretension_n | ratings.bearing_contamination_factor |
The masses of the T-gantry have no bounds, so friction leads the heat: what is unknown about the drive train is its friction, and that is what to measure first (a constant-speed run per axis, see “Replay a drive trace and fit parameters”). The belt’s slackest section moves one to one with the pretension (μ* 200 N for a range of 200 N, σ 0.003 N): a value that acts alone and in a straight line has σ near 0. The frame’s stiffness has σ (6.7e-6 m) twice its μ* on settling: where the tool settles depends on it together with the shaper and the belt.
On the D3 (36 values, 370 cycles) the masses lead every torque and heat result (mass.platform_kg, mass.forearm_pair_kg, mass.elbow_kg, then geometry.upper_arm_m; μ* of rms-torque:1 0.38, 0.24, 0.13 N m), and the gearbox’s play leads the tool’s accuracy: gearbox.backlash_rad leads path-error-peak and settling, followed for the path by geometry.upper_arm_m and gearbox.stiffness_nm_rad, for the dwell by gearbox.lost_motion_band_rad. So: weigh the platform and the forearms, and measure the gearboxes’ lost motion.
Sobol’ on the D3’s masses alone, for its first motor’s RMS torque:
$ sim-cli sensitivity delta-d3 --method sobol --samples 32 --group mass --result rms-torque:1
Cycles simulated for the global sensitivity: 288
Measure these first: rms-torque:1: mass.platform_kg, mass.forearm_pair_kg, mass.elbow_kg
result,rank,parameter,first,first_low,first_high,total,total_low,total_high
rms-torque:1,1,mass.platform_kg,0.806,0.670,0.905,0.880,0.617,1.178
rms-torque:1,2,mass.forearm_pair_kg,-0.040,-0.388,0.311,0.123,0.082,0.184
...
32 rows are few: the first-order indices of the smaller values scatter around 0 (even below it, which the estimator allows) and their intervals are wide. Screen with Morris first, then run Sobol’ with --group on the few values that lead, and raise --samples until the intervals are narrow enough to decide. Python: ks.global_sensitivity(cfg, method="morris", samples=10, groups=None, results=None) returns the same columns.
Limits for this task:
- Plain
--bandsis one at a time. Two values that are both off can take a result beyond its band.--samplesshows that. - Samples do not find the worst corner. A sample never sits exactly on a bound (plain
--bandsdoes that), and a few dozen runs do not find the worst combination of many values.--worstsearches for it, but it is a search, not a proof: a worst case that no chain of single flips from the corner of the one-at-a-time signs reaches, or one between the bounds (a stiffness that puts a resonance on the cycle), can be missed. Run all three. - The bounds are themselves estimates. In the default configs only friction, damping, stiffness, pretension, ripple and gearbox efficiency are bounded, not the masses, inertias and backlash.
- Where a bound changes a rating (the EXCT-30 config bounds its DC link ratings), the
limitcolumn still shows the nominal limit. - A bound on a key that the config does not have is refused. So is a pair where low is above high.
Shorten a cycle
$ sim-cli optimise t-gantry --config crates/machine-t-gantry/exct-30.toml
setting,before,after
cycle_s,2.0480,1.7560
dwell_error_peak_m,3.544e-5,5.006e-5
dwell_angle_error_peak_rad,0.000e0,0.000e0
bands_fastest_cycle_s,,1.3900
bands_fastest_fails,,belt-least-tension settling
bands_steps_back,,4
bands_excused,,
Cycles simulated: search + error bands 40 + 834
axis.x.max_acceleration_m_s2,25.0,56.25
axis.x.max_velocity_m_s,2.5,3.75
axis.z.max_acceleration_m_s2,15.0,33.75
axis.z.max_velocity_m_s,1.5,2.25
effects.input_shaping,true,false
The optimiser tries corner blending and higher velocity, acceleration and jerk limits (all axes together, in steps of ×1.5 and ×1.2). It keeps a change if the cycle gets shorter and every verdict still passes, among them settling, so a faster move that leaves the tool swinging at the pick does not count. Input shaping makes no cycle shorter by itself, because 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 effects.shaper_follows_pose where the machine reports a resonance) and taken if it then passes and is shorter; one that still fails on settling alone with the shaper is run again with a second shaper (see Tune gains and use input shaping). Where the shaper is on already, switching it off is tried too. The first rows are the cycle time and the dwell error (position and angle) before and after. The other rows are what to change in the config. No config file is edited. The settings tried in one step of the search run side by side on the processor cores, a batch at a time (the first alone, as it is often taken, then twice as many each batch while they fail, up to one per core), and are then counted in their order as if they had run one after the other: the first faster one is taken and the runs after it are dropped, so the result and the number of runs are the same with any number of cores (with 16 threads the default single axis’s 40 runs took 9 s instead of 26 s). The steps themselves follow each other, each from the setting the step before took.
In the error bands. The result also has to pass every check in the error bands of the config’s [bounds] (one value at a time, as verdicts --bands), not only with the config as written. The search itself judges as written; then its fastest setting is judged in the bands, and where it fails there, the steps the search took are gone back, fastest first, until one passes (2n + 1 cycles per step judged, n the bounded values). A check that the cycle as configured fails in its bands already cannot be kept, so it is not judged: it is listed as bands_excused. The bands_* rows say how fast the search got on the config as written (bands_fastest_cycle_s), what that fails in the bands, and how many steps back the result is; the error stream says how many cycles the search and the bands took.
The EXCT-30 config has corner blending and the shaper on already, so here the optimiser raises the limits and switches the shaper off (both shapers). On the config as written that gives 1.39 s, but with the values at their bounds the belt goes slack and the tool fails settling in the dwell. Four steps back, with the jerk as configured, passes: 2.05 s to 1.76 s, the tool 0.050 mm off in the dwell instead of 0.035 mm. The shipped config passes every check in its bands, so nothing is excused (bands_excused is empty). The bands took 834 cycles (six settings at 139 each, 69 bounded values), the search 40. The default T-gantry goes from 6.08 s to 3.25 s (3.24 s as written, which fails settling in the bands), with 189 cycles of bands.
--nominal judges the config as written alone, as before: on the EXCT-30 1.39 s. --runs N limits the number of cycles of the search (default 40); the bands come on top.
At the worst corner. --worst judges the result at the worst corner of all bounds at once (as verdicts --bands --worst) instead of in the bands, rows worst_* in place of bands_*. A worst-corner search costs some 2000 cycles where the bands cost 2n + 1, so it is kept down three ways: the search stops at the first batch of runs that fails a check the result is judged on (a failing step costs about as much as its bands); the fastest step is judged first, and where it fails, the steps from the fastest down until one passes (until 17 November a bisection, which could end below a faster step that passes); and each search starts from the worst corners of the step judged before. All runs share the processors. A check the cycle as configured fails at its worst corner is excused, as in the bands; finding that out takes one whole search of the cycle as configured, where the fastest step fails. On the EXCT-30 no step the search took holds at the worst corner: the fastest, 1.390 s, fails belt-least-tension and settling there, so does every one of the eight steps, the cycle as configured fails pulley-bearing-life there already (excused), and the result is the cycle as configured, 2.048 s (worst_steps_back,,8): 40 cycles of search and 5371 of worst-corner search, 18 min on 4 threads (21 November 2026). The default T-gantry goes from 6.08 s to 3.38 s (3.25 s in the bands; the search’s 3.244 s fails settling at the corner), four steps back: 40 cycles of search and 3769 of worst-corner search, 97 min on 16 threads while other jobs ran on the machine (26 November 2026). That is too long for every run, so it is not the default: run it on a result before you build it. In the app, tick “worst corner” beside “with error bands” before you run the optimiser.
Energy against cycle time. --pareto FILE writes the settings that no other beats in cycle time, energy per cycle from the supply and peak motor utilisation at once, fastest first, as CSV: cycle_s,energy_j,peak_utilisation,velocity_factor,acceleration_factor,jerk_factor,corner_blending,input_shaping (the factors on the axes’ limits as configured). They come from the settings the search ran anyway that pass every check as written, and six slower ones from the result (acceleration and jerk, and all three limits, at 0.8, 0.6 and 0.4 times). The energy is what the drives drew less what they fed back, plus what the braking resistor burned; with no resistor (no DC link simulated) braking energy counts as fed back. On the EXCT-30 the front runs from 1.39 s at 383 J and a peak utilisation of 0.58 to 2.66 s at 138 J and 0.22; the result’s 1.76 s takes 243 J. A slower acceleration saves the kinetic energy a stop burns in the resistor, ½ m v² where the move does not reach its top speed (a_lower_acceleration_takes_the_hand_calculated_braking_energy_less_from_the_supply). The app draws the front below the optimiser’s table.
Lift heights and rounded lifts. The cycle’s geometry is a variable too. A lift, traverse and lower (lift straight up from the pick, traverse at that height, lower straight down to the place; the default T-gantry has two) is tried first as low as profile.min_clearance_m allows: that far above the higher of pick and place, and where the config has obstacles, that far above the obstacles in the way of the traverse, measured from the machine’s collision bodies (see below). The shipped T-gantry configs set it to the lifts they have, so nothing changes there. With an obstacle of 0.1 m:
$ sim-cli optimise t-gantry --set profile.min_clearance_m=0.1
setting,before,after
cycle_s,6.0800,2.3440
...
cycle.segment[1-2-3].lift_m,0.3500,0.1500
cycle.segment[4-5-0].lift_m,0.3500,0.1500
With the other steps (higher limits, corner blending, input shaping) the cycle takes 2.34 s (2.23 s with --nominal, which fails settling in the bands; the bands took 252 cycles, the search 40). Lowering alone saves 2.000 s: four Z moves of 0.2 m less at 0.4 m/s (the_optimiser_lowers_the_lifts_to_the_clearance_and_saves_the_hand_calculated_time). Segments are counted from 0. Last, once nothing else helps, the optimiser also tries to round a lift’s two corners: one segment that goes straight up, through a via point on a spline, and straight down (via in [[cycle.segment]]), timed by the path planner, as long as the path keeps the clearance; such a row reads cycle.segment[1-2-3].via_m,,0.5000 0.3000. On the default T-gantry it never won: an arch is slower than two stops with corner blending. In the app, “Apply” writes the new cycle into the config (saved, the file is then written without its comments).
Over obstacles. Where the config has obstacles, each lift is lowered no further than its traverse keeps profile.min_clearance_m to them with the machine’s collision bodies (the T-gantry’s Z axis, flange and payload), looked at every millimetre at rest. A box across the traverse puts the lift at its top plus the clearance plus how far the lowest body reaches below the tool. With a 0.1 m box under the middle of the default T-gantry’s traverse:
$ sim-cli optimise t-gantry --set profile.min_clearance_m=0.05 --set 'obstacles=[{ name = "box", centre_m = [0.65, -0.05, -0.65], size_m = [0.1, 0.2, 0.1] }]'
setting,before,after
cycle_s,6.0800,3.0520
...
cycle.segment[1-2-3].lift_m,0.3500,0.2521
cycle.segment[4-5-0].lift_m,0.3500,0.1521
By hand: the box’s top at -0.6 m in the view, the payload’s bottom 0.802 m below the tool on the way there, the flange’s 0.702 m on the way back: -0.6 + 0.05 + 0.802 = 0.252 m and 0.152 m (without the box both would go down to 0.1 m). The lifts end 0.1 mm higher: the run sways the payload 0.05 mm nearer than the plan at rest, and the bounds a little more, so the optimiser runs such a setting again with the lifts higher by what was missing (the_optimiser_lifts_each_traverse_over_a_box_across_it_by_hand). A lift that an obstacle raised is also tried rounded through a via point over the obstacle, its ends as low as pick and place allow; a via point whose planned path comes nearer to an obstacle than the clearance is not run.
A height profile. Where two or more obstacles are in a traverse’s way, the lift is also tried as a profile that passes each at its own height: two via points per obstacle, at its top plus the clearance plus the body below the tool, where the traverse at the lowest height begins and ends to come nearer to it than the clearance; obstacles whose stretches overlap are passed as one, at the higher height. The path runs on a spline through them, so the machine does not stop at each one, and goes down between them as far as the spline does. The spline sags a little between its points: where the planned path comes nearer than the clearance, the points are raised by what it lacks (three times at most), and a profile that still does not keep it is not tried. The optimiser takes it where it is faster; such a row lists every point, apart by ;. One obstacle in the way gives no profile: the lift at its height, as above (the_lift_passes_two_boxes_each_at_its_own_height). Two boxes under the default T-gantry’s traverse, 0.1 m wide at 0.3 m and 0.7 m of the axis, their tops at -0.7 and -0.6 m: on the way there the profile passes them at 0.152 m (from 0.151 to 0.449 m) and 0.252 m (from 0.551 to 0.849 m); the spline sagged 11.6 mm below that, so the points go 11.6 mm higher, and the cycle through them runs with effects.crash on and keeps 51 mm. On the way back only the second box is in the way of the flange: no profile. The optimiser does not take it there: with --runs 200 it ends at 2.626 s (140 cycles of search, 252 of bands) with the lifts flat at 0.252 and 0.152 m, corner blending and higher limits; on the default limits the profile on the way there with the way back flat takes 5.23 s with corner blending against 4.09 s for the flat lifts (26 November 2026, the profile written by hand as the test builds it); as with one via point, an arch on a spline is slower on this gantry than two stops with blending.
Limits for this task:
- A search by trial, not a proof of the optimum. It stops at the first setting from which no single step is an improvement.
- Only lifts, traverses and lowers are varied (heights, via points, profiles); pick and place and the other segments stay as configured.
- The cycle as configured has to pass every verdict to begin with, or the command is refused.
- A candidate whose axis limits exceed the motor limits (the warning of Common to all commands) is not accepted.
- Without
--worstit judges the error bands one value at a time, not the samples or the worst corner. Runverdicts --bands --worston the result, or optimise with--worst. The result above takes back the margins the config was given for its worst case: at the worst corner (3164 cycles) it failssettling(0.24 mm against 0.1 mm; the belt keeps 33 N), andpulley-bearing-lifeas the shipped config does.
Corner blending by hand: --set effects.corner_blending=true, with profile.blend_time_s as the longest lead. The next segment starts while the current one is still braking. It applies only where the machine need not stop: no dwell, no gripper action, no axis reversing, and only on the ramps. On lift-traverse-lower cycles every axis stays within its limits; for other shapes of cycle the sum of two segments on one axis is not checked against the limits.
Size a delta picker
delta-d3 is a three-arm rotary delta (Clavel), sized like the Autonox DELTA RL3-1200-3kg: working range 1200 mm across, 200 mm high at the edge and 386 mm at the centre, 3 kg payload, three Siemens 1FK2105-4AF motors on S210 converters behind planetary gearboxes of ratio 20. Autonox does not publish its arm lengths and masses; the config marks every value [catalogue] or [estimate] and bounds the estimates. Its cycle is the Adept cycle 25/305/25 mm (up 25 mm, across 305 mm, down 25 mm and back), each leg a move of its own with a stop, and 35 ms at pick and place for the gripper.
The tool is the platform’s centre, x, y and z in metres, z up from the plane of the arms’ shoulder axes (so the platform works at about −0.7 to −1.1 m). A target outside the working range is refused with its reason: outside the cylinder or below its spherical bottom, out of the arms’ reach, beyond an arm’s stop, or too near a singularity.
$ sim-cli analyze delta-d3
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.007 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,...,rms_current_a,winding_rise_k,...
1,0.720000,7.054946,2.507657,118.1266,0.4706,0.5451,,,2.3722,20.97,...
2,0.720000,4.032147,1.521630,64.6741,0.2695,0.3308,,,1.4207,7.22,...
3,0.720000,4.032147,1.521630,64.6741,0.2695,0.3308,,,1.4207,7.22,...
The cycle lies along x, so arm 1 (pointing along +x) works hardest, and arms 2 and 3 alike. Its 0.720 s are the S-curves by hand (traverse d/v + v/a + a/j = 0.1817 s, a 25 mm lift 4 (d / 2j)^(1/3) = 0.0684 s, 0.7069 s with the dwells) on the controller’s 1 ms profile cycle (the_adept_cycle_takes_the_hand_calculated_time). The makers’ figures for the same cycle are shorter (ABB IRB 360-3/1130: 0.40 s at 1 kg, 0.52 s at 3 kg): they round the corners instead of stopping, and run faster than the 3 m/s and 50 m/s² this config allows each axis. sim-cli optimise delta-d3 rounds the corners through via points (splines on three axes) and raises the limits as far as every check allows.
$ sim-cli verdicts delta-d3
motor-peak,1,0.4706,1.000,ok
motor-thermal,1,20.97,100.0,ok
drive-current,1,2.372,5.000,ok
gearbox-continuous,1,62.70,347.0,ok
gearbox-peak,1,126.6,278.0,ok
gearbox-life,1,16938396,20000,ok
...
settling,,0.0001793,0.0005000,ok
singularity,,2.072,5.000,ok
thermal-warm-start,,0.007320,0.1000,ok
Every check passes, with --bands too, at both bounds of every estimate (peak gearbox torque 118 to 136 N m, settling 0.13 to 0.22 mm); the search for the worst corner of all the estimates at once (--bands --worst, 1245 cycles) passes too, settling 0.37 mm of 0.5 mm (21 November 2026; 0.54 mm, failing, before). What to read from them:
- Gearbox. The arm’s gearbox, Siemens’ SP100 precision planetary (the SP+ 100 of WITTENSTEIN alpha), carries up to 127 N m of its 278 N m; the cubic mean, 63 N m, is what its 347 N m rating is for, and below it the gearing takes no damage. Its planet bearings last 16.9 million h. Its no-load torque (0.93 N m at the motor at 3000 r/min and 20 °C), the motor’s breakaway and the flanks’ lost motion with a hysteresis of half an arcmin are on (
effects.gearbox_drag,motor_stiction,gearbox_lost_motion, see the model reference); the drag’s heat warms the gearbox. Until 14 November 2026 the config had the economy NRB080 (192 N m maximum, 120 N m rated): its peaks above 120 N m wore its gearing to about 11600 h of the 20000 h required. - Settling: a sizing finding, settled by the gearbox. It is judged against 0.5 mm, an estimate of the positioning accuracy of the class (Festo EXPT: ±0.5 mm), not the 0.1 mm repeatability the makers state. The gearboxes’ twist and backlash under the platform’s weight leave the tool off where the motors’ encoders put it, the same every pass, which repeatability does not see. With the economy NRB080’s 9 arcmin the cycle failed: 0.64 mm at pick and place at rest, 0.68 mm in the dwell, up to 2.09 mm at the rim’s lower edge; every economy gearbox of this size and ratio (NRB, NRK, NLC) has 7 to 9 arcmin. So the config takes the precision SP100 with the reduced-backlash option: at most 3 arcmin (a typical 2.25 taken, bounds 1.5 to 3) and three times as stiff (31 N m/arcmin). Siemens fits it to 1FT2 motors only, so the motor is the 1FT2105-4AF, whose torque, current and inertia in D 32 are the 1FK2105-4AF’s Autonox names. 0.18 mm in the dwell, up to 0.66 mm at the rim’s lower edge at rest.
- Singularity: the highest condition number of the Jacobian in the cycle, against
ratings.max_condition_number(5). Near a singularity a little motor angle moves the platform a lot and the motor torques for a force grow without bound; the working range has up to 3.6, the cycle 2.07. - No belt, pulley or guide checks: the delta has none.
To size for another payload, change mass.payload_kg (and ratings where the parts change); for another motor or gearbox, name them as on the other machines (--motor, --gearbox, sim-cli search delta-d3). Paths on three axes are written line,x,y,z, spline,x,y,z and arc,x,y,z,cx,cy,cz,cw (see run a path).
The forearms are rigid rods with their mass and rotational inertia, their spin about their own axes included (effects.forearm_inertia; off, the lumped model of Codourey and Olsson, which put 2.7 % more RMS torque on motor 1 in this cycle with the NRB080: 2.645 against 2.576 N m, peak 7.791 against 7.643 N m; the spin alone changes the peak by 1e-6 N m). With effects.link_elasticity (off by default; its stiffnesses are estimates) the upper arms bend, in the plane they turn in and out of it, and the platform rings after a move: the cycle’s tracking error grew from 4.0 to 5.3 mm and the dwell error from 0.68 to 0.73 mm (with the NRB080). The lowest mode with the motors held (the gearboxes’ springs, with the switch the arms’ bending too) is what effects.shaper_follows_pose sets the input shaper to: at the centre with the arms level the platform’s sideways mode, 51 Hz on the SP100s alone, 32 Hz with bending arms (the forearms lumped; 28 and 23 Hz with the NRB080’s third of the stiffness). The forearm rods and the upper arms are collision bodies: a forearm or an arm that runs into an obstacle is a crash.
What the delta does not have: elastic rods and ball joints, the arms’ bending out of the plane they turn in, the ball joints’ cone limits (the stops and the working range stand in), a fourth axis, a transition curve where two arcs meet in different planes. Trace replay and fit take it since 13 November, the fit in its motors’ coordinates (see Replay a drive trace and fit parameters). Held by constant motor torques it is unstable in its vertical mode in the upper part of its range; the drives’ position loops hold it (see the model reference).
The planar delta D2
delta-d2 is a two-arm delta in the vertical x-z plane: two rotary arms, each with a pair of forearms down to a plate that keeps its orientation, sized like the Codian Robotics D2-800-S020 (working range 800 mm wide and 477 mm high, 5 kg payload, up to 210 picks a minute). Codian names no motors; the config uses the D3’s 1FT2105-4AF on S210 converters behind its SP100 gearbox of ratio 20, and marks every value [catalogue] or [estimate] (the config). The tool pose is (x, z); paths are written line,x,z and arc,x,z,cx,cz,cw as on the gantries. The cycle is the D3’s Adept cycle in the plane, 100 mm below the top of the range: 0.720 s.
$ sim-cli verdicts delta-d2
motor-peak,1,0.5599,1.000,ok
gearbox-continuous,1,67.45,347.0,ok
gearbox-peak,1,150.1,278.0,ok
...
settling,,0.0002105,0.0005000,ok
singularity,,1.135,5.000,ok
thermal-warm-start,,0.02321,0.1000,ok
Every check passes, with --bands too (settling 0.16 to 0.26 mm, gearbox peak up to 157 N m); the search for the worst corner of all the estimates at once (--bands --worst, 1117 cycles) passes narrowly, settling 0.496 mm of 0.5 mm (21 November 2026; 0.74 mm, failing, before). Two arms carry the 5 kg where the D3’s three carry 3 kg, so the gearbox works nearer its rating: the lines planned within the axis limits take it to 233 N m of the SP100’s 278 N m (the NRB080 the config had until 14 November 2026 was taken to 247 N m of its 192 N m). Its backlash, the SP100’s typical 2.25 arcmin with reduced backlash, was an estimate of 1 arcmin before: with the NRB080’s 9 arcmin the cycle failed settling, 0.85 mm, for the D3’s reason: both arms always hold the plate up and rest at one side of their backlash. The model keeps the plate level, as the real machine’s parallelograms do (see the model reference).
Size a linear delta
delta-linear is a linear delta: three vertical toothed-belt axes on the columns of a frame, each carriage with a pair of rods down to a plate that stays level. It is sized like the Festo EXPT-95 tripod: working range 950 mm across and 100 mm high, EGC-80 belt axes driven without gearbox, 1 kg rated load at its highest dynamics, here with three Siemens 1FK2205-2AF motors on S210 converters. Festo publishes neither rod length nor column layout nor moving masses; the config marks every value [catalogue] or [estimate] and bounds the estimates. Its cycle is the D3’s Adept cycle 25/305/25 mm, at the top of the range.
The tool is the plate’s centre, x, y and z in metres, z up from the carriages’ upper stop (the plate works at −1.12 to −1.22 m). A target is refused with its reason where it lies outside the cylinder, out of the rods’ reach, where a rod would stand at more than 60° to its column (upright: from the vertical), where a carriage would leave its stroke, or too near a singularity.
$ sim-cli analyze delta-linear
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.016 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,...
1,0.720000,4.912547,2.036777,106.1231,0.4562,0.6789,149.52,536.27,1.6547,27.26,...
2,0.720000,3.944539,1.368100,58.6634,0.3670,0.4560,149.52,536.27,1.1071,11.63,...
3,0.720000,3.944840,1.368100,58.6631,0.3670,0.4560,149.52,536.27,1.1071,11.63,...
The cycle lies along x, towards column 1 and away from it, so column 1 works hardest. Its 0.720 s are the D3’s: the same cycle and axis limits. Festo times the EXPT-95 at up to 150 of these cycles a minute at light loads (0.4 s each) with rounded corners and up to 7 m/s and 110 m/s²; sim-cli optimise delta-linear rounds the corners and raises the limits as far as every check allows.
$ sim-cli verdicts delta-linear
motor-peak,1,0.4562,1.000,ok
motor-thermal,1,27.26,100.0,ok
drive-current,1,1.655,3.000,ok
pulley-torque,1,4.135,5.000,ok
gearbox-radial-load,1,789.8,1500,ok
pulley-bearing-life,1,23462,20000,ok
belt-tooth-load,1,0.8254,1.000,ok
...
settling,,0.00007352,0.0005000,ok
belt-tension,,536.3,1000,ok
belt-least-tension,,149.5,0,ok
guide-load,1,116.9,3050,ok
guide-life,1,466602127,20000,ok
...
singularity,,3.278,5.000,ok
thermal-warm-start,,0.01605,0.1000,ok
Every check passes. With --bands two fail at a bound of an estimate: the pulley bearing’s life (5068 h on column 1 with C at its low bound of 3000 N; Festo publishes no bearing for the EGC’s drive shaft) and the belt’s teeth (1.16 with a service factor of 1.4 on Festo’s 350 N). What to read from them:
- Motor. A Compact motor, for its rotor: the High Dynamic 1FK2104-5AF has the torque (its 7.5 N m against 4.9 N m needed), but 0.65 kg cm² of rotor against about 6 kg cm² of carriage, plate and pulley at its shaft: its velocity loop rang near 450 Hz above 0.1 N m s/rad and the cycle settled to 2.5 mm, not 0.5 mm. The 1FK2205-2AF’s 4.0 kg cm² take a gain of 0.25 with at least 51.7° of phase margin over the bounds, 39.0° with the motors’ and guides’ friction off (21 November 2026), and an integral time of 0.012 s (0.01 s left 34°), short so that the integrator pushes the carriages through their guides’ friction soon after a move.
- Belts. Each column’s belt carries the carriage’s weight and its share of the plate’s (22 N at the centre) and what accelerating them takes: 150 to 536 N in its two sections, against the pretension of 300 N.
- Singularity. The condition number is 3.15 already at the centre: a metre of carriage moves the plate further sideways than up. The range has up to 3.98, at its bottom rim opposite a column.
- Guides, pulley bearings, belt teeth. The EGC-80’s guide carries at most 117 N across column 1 (3050 N allowed for Festo’s 5000 km): it holds the plate’s weight at rest (3.4 N at the centre) and, through the rods, what accelerating the plate sideways at 50 m/s² takes. Its life is far beyond the 20000 h. The pulley shaft’s bearing carries both belt sections’ pull, up to 790 N, and lasts 23462 h on column 1 with an estimated C of 5000 N. The belt’s teeth are at 0.83 of what gives Festo’s 350 N of feed force, as the pulley torque is at 4.135 of 5 N m: Festo gives one figure for both. No gearbox checks: the axes have none.
Inclined columns. geometry.column_incline_deg leans the columns, positive with their tops towards the axis; the carriages then travel along them (their stroke and upper stop count along the column), the belt holds the carriage’s weight times the cosine and the guide the rest. The shipped machine stands upright. The default range and cycle suit an outward lean and small inward ones; at +20° the cycle’s corner (−0.1525, 0, −1.13) is refused, column 1’s rod standing 60° from its column:
$ sim-cli verdicts delta-linear --set geometry.column_incline_deg=-20
pulley-torque,1,4.653,5.000,ok
belt-tooth-load,1,0.9289,1.000,ok
settling,,0.0001084,0.0005000,ok
guide-load,1,31.87,3050,ok
singularity,,3.716,5.000,ok
...
Leaning out, the columns run nearly along the rods: the guides carry less (32 N against 117 N upright), the condition number rises (3.72 against 3.28) and so do the motors’ torques. Leaning in by 10° every check passes (guide 149 N); by 20° with workspace.max_rod_angle_deg=65 too, but the pulley bearing of column 1 (16131 h against 20000 h; the guide carries 167 N).
What the linear delta does not have: the rods’ own rotational inertia, elastic frame, rods and joints, a fourth axis, the guides’ moments, and warming belts and pulleys (its guides warm with effects.part_heating: 9.1 K on the cycle). Trace replay and fit take it, the fit in its motors’ coordinates as on the D3. See the model reference.
The parallel SCARA
parallel-scara is the D2’s five-bar laid flat, as Mitsubishi’s RP series: the two arms turn about vertical axes and
the plate moves in the horizontal x-y plane; at the plate a Z stroke on a ball screw (motor 3, a 1FK2103-2AH behind a
coupling, 20 mm lead, 200 mm stroke) and a turn of the tool about z (motor 4, a 1FK2103-2AH behind an NRB060-03-8 of
ratio 8). Gravity is out of the plane: the arms’ motors hold nothing at rest, the Z motor holds the carriage and the
payload. The tool pose is (x, y, z, c); paths are written line,x,y,z,c. The cycle is the Adept cycle laid flat: down
25 mm on the stroke, up, across 305 mm with the tool turned by 90°, down, up and back, the pick 20 mm above the place,
so every axis moves on each traverse: 0.906 s.
$ sim-cli verdicts parallel-scara
motor-peak,1,0.4959,1.000,ok
gearbox-peak,1,137.4,278.0,ok
motor-peak,3,0.4585,1.000,ok
...
settling,,0.0003347,0.0005000,ok
screw-speed,3,1513,5160,ok
singularity,,1.135,5.000,ok
Every check passes, with --bands too. The plate carries 12.8 kg (the two units, the carriage and the payload) against
the D2’s 6.4 kg, so the axes accelerate at 30 m/s² instead of 50. Their gearboxes are the D2’s SP100 now, and at 50
(--set axis.x.max_acceleration_m_s2=50 --set axis.y.max_acceleration_m_s2=50) every check still passes: the arms’
gearboxes at 225 N m of their 278 N m, motor 1 at 0.83 of its peak. Switch an axis off with --set z_axis.enabled=false or --set tool_turn.enabled=false, and give the cycle
targets and start.pose with as many values, e.g.
$ sim-cli verdicts parallel-scara --set tool_turn.enabled=false --set 'start.pose=[0.1525,-0.5,0.075]' \
--set 'cycle.segment=[{target=[0.1525,-0.5,0.05],dwell_s=0.035,payload=false}, ...]'
The wafer handler
wafer-handler is the R-θ-Z arm of semiconductor handling: a column that lifts (motor 3, a 1FK2103-2AH on a ball screw
16 x 10) and turns (motor 1), and an arm of two links of 320 mm whose forearm and end effector are coupled to the
shoulder by steel bands at 2:1 and 1:2, so that motor 2 runs the wafer straight in and out along the radial line while
the effector keeps pointing outwards (motors 1 and 2: 1FK2103-2AH behind strain wave gears of ratio 50). The tool pose
is (r, θ, z): the wafer centre’s distance from the column’s axis, the effector’s direction (rad), the lift. The cycle
swaps a 300 mm wafer between a load port and a chamber 90° apart at r = 0.55 m and 0.2 m apart in height: turn to the
chamber while rising, extend and settle, lower the wafer onto it, draw back, turn back while lowering, extend under the
next wafer and settle, lift it, draw it back to r = 0.05 m: 7.76 s.
$ sim-cli verdicts wafer-handler
motor-peak,1,0.06877,1.000,ok
...
settling,,0.00004754,0.0001500,ok
settling-angle,,0.0001133,0.0002000,ok
wafer-slip,,1.830,2.452,ok
effector-direction,,0.00001268,0.0005000,ok
elbow-band-slack,,0.06467,0.5000,ok
wrist-band-slack,,0.01172,0.5000,ok
singularity,,1.226,4.000,ok
The motors are lightly loaded: what limits the cycle is the wafer on its friction pads (wafer.hold = "pads", μ 0.3),
wafer-slip, its in-plane acceleration against μ g over the safety factor 1.2. Turning fast pushes the wafer outwards
(r θ̇²) and motor 2 holds the arm against it; extending during a turn adds the Coriolis acceleration 2 ṙ θ̇. So the turn
happens with the wafer drawn back near the column’s axis, and faster limits fail: --set axis.r.max_acceleration_m_s2=3 --set axis.r.max_jerk_m_s3=30 slips the wafer (wafer-slip 3.40 m/s² against 2.45). Vacuum
pads (wafer.hold = "vacuum") or an edge grip ("edge") hold more. The bands stretch under the arm’s acceleration
(effects.band_elasticity): the forearm and the effector lag and ring on them near 20 Hz, the effector turns out of its
radial line (effector.direction_error, judged at the stations by effector-direction), and each span’s swing is
judged against half its pretension. sim-cli optimise wafer-handler keeps every verdict, wafer-slip among them. See
the mechanisms and the
model reference.
The four-axis delta D4
delta-d4 is the D3 with a fourth axis that turns the tool about the vertical, as ABB’s IRB 360 with its fourth axis: a fourth, smaller motor in the centre of the base (a 1FK2104-4AF on its own S210 converter), behind a planetary gearbox of ratio 8 (Siemens NRB060-04-8), drives a telescopic shaft with a cardan joint at each end down to the tool’s shaft in the platform. The tool pose is (x, y, z, c), c in rad; start.pose and the cycle’s targets have four values. Its cycle is the D3’s Adept cycle with the tool turned by 90° on each traverse (+90° to the pick, back to 0° to the place): still 0.720 s, the turn fits into the traverse. The two cardan joints are bent alike (both shafts vertical), so the tool turns exactly with the motor; only the shaft between them turns unevenly (shaft.speed). The shaft’s weight share and the telescope’s friction load the arms (the config, model reference).
$ sim-cli verdicts delta-d4
motor-peak,1,0.5534,1.000,ok
gearbox-peak,1,146.8,192.0,ok
...
motor-peak,4,0.1086,1.000,ok
gearbox-peak,4,2.223,29.00,ok
...
settling,,0.0003088,0.0005000,ok
settling-angle,,0.0001866,0.005000,ok
singularity,,2.072,5.000,ok
thermal-warm-start,,0.01540,0.1000,ok
Every check passes. Motor 1 carries more than on the D3 (peak 0.553 against 0.471 of its limit): the shaft’s 0.7 kg at the platform and the telescope’s friction, and the D4 keeps the NRB080 gearbox the D3 had until 14 November 2026. The fourth motor has its own motor, gearbox, drive and ratings ([motor.4], [gearbox.4], [drive.4], [ratings.4] over the shared tables): a 1FK2104-4AF at 11 % of its peak, its gearbox judged by the common gearbox-* checks against its own 18 and 29 N m. The still smaller 1FK2103-2AH has the torque and passes the cycle, but its rotor is too light for the speed loop behind the soft shaft: tuned to settle the tool, its loop kept 24° of phase margin at the payload inertia’s high bound. sim-cli search delta-d4 --motor-id 4 sizes it alone. The gearboxes’ backlash is an estimate of 3 arcmin on the arms and 1 arcmin on the tool (reduced-backlash precision planetaries, as on the D2): with the catalogue’s 9 and 10 arcmin (--set gearbox.backlash_rad=2.618e-3 --set gearbox.4.backlash_rad=2.909e-3) settling fails, 0.69 mm, the arms’ sag in their backlash; the tool rests 1.09 mrad off in its own, which settling-angle judges apart, against 5 mrad. With --bands every check passes too (settling at most 0.37 mm). A path with a turn is written line,x,y,z,c; arcs and splines take three axes and are refused on the D4. sim-cli modes delta-d4 lists the tool’s torsion (41 Hz with the payload: the telescopic shaft twists) beside the arms’ modes.
The Quattro-type delta H4
delta-h4 is a four-arm delta of the Quattro / H4 type, sized near the Omron Quattro s650H class: working range 1300 mm
across, 250 mm high at the edge and 450 mm at the centre, 6 kg payload, four Siemens 1FK2105-6AF on S210 converters
behind planetary gearboxes of ratio 20 (NRB120-05-20). Omron publishes no geometry, masses or drives; every such value is
an [estimate] with bounds (the config). There is no fourth motor for the
tool: the plate is in two parts, arms 1 and 2 carrying one and arms 3 and 4 the other, and the parts slide against each
other; a pinion between a rack on each part and a gear stage turn the tool by 30 rad per metre of half slide
(mechanisms). The tool pose is (x, y, z, c),
c in rad; the cycle is the D3’s Adept cycle with the tool turned by 90° on each traverse, at 100 mm below the top of the
range: 0.720 s. The signal plate.slide is the parts’ slide against each other (2 h), plate.amplifier_twist the
amplifier’s twist at the tool.
$ sim-cli verdicts delta-h4
motor-peak,1,0.5721,1.000,ok
motor-thermal,1,33.48,100.0,ok
gearbox-peak,1,244.8,416.0,ok
...
settling,,0.0004359,0.0005000,ok
singularity,,2.028,5.000,ok
thermal-warm-start,,0.009744,0.1000,ok
Every check passes, settling narrowly, a finding of the type: the tool’s turn is 30 times the plate’s slide, so the
arms’ gearbox twist and backlash, which the motors’ encoders do not see, and the ringing of the slide after the traverse
turn the tool in the dwell: 0.44 mm of the 0.5 mm allowed (a turning axis’s error in rad counted as mm). With the
catalogue’s 9 arcmin backlash (--set gearbox.backlash_rad=2.618e-3) it fails, 0.88 mm; with 1 arcmin and an input shaper at 12 Hz
(--set gearbox.backlash_rad=2.909e-4 --set effects.input_shaping=true --set profile.shaper_frequency_hz=12 --set profile.shaper_damping=0.1)
0.31 mm. Motor 1 (along +x, the cycle’s direction) works hardest: 0.57 of its peak, 33 K winding rise; motors 2
and 4 carry 0.26 and 0.27. sim-cli modes delta-h4 lists the arms’ four modes (30.5 Hz twice at the centre, 46.8 and 51.9 Hz;
20 Hz at the rim) and the tool’s turn on the amplifier (76.5 Hz with the payload).
SCARA and six-axis arm in tool space
By default the SCARA’s and the arm’s axes are their joints, so a move is a straight line of the joints and a curve of the tool. With kinematics.tool_space = true the axes are the flange’s pose (SCARA: x, y, z in m and the turn c in rad; arm: x, y, z and the orientation rx, ry, rz as a rotation vector), and moves, paths and cycles are straight lines of the tool, as on the deltas. Two configs have it on, with a cycle of straight lines:
sim-cli verdicts scara --config crates/machine-joint-kit/config/scara-tool.toml
sim-cli verdicts urdf-arm --config crates/machine-joint-kit/config/arm-tool.toml
Both pass every check. The SCARA picks 100 mm down, carries the part 500 mm across at x = 0.4 m turning it by 1.5 rad, and back: 2.542 s, motor 1 at 5 % of its peak and 288 of its 615 rad/s (the arm swings fastest where the line passes nearest the base), settling 0.03 mm. The arm does the same with its flange pointing down all along (ry = π/2): 3.858 s, motor 2 at 23 % of its peak, settling 2.3 mm of the 5 the config allows and the flange’s orientation 3.1 of 5 mrad (settling-angle): under the 6 kg payload the gears twist and the flange rests away from where the encoders put it (0.09 mm and 0.02 mrad in the rigid model, --set effects.joint_elasticity=false). A path in tool space is written line,x,y,z,c (or six numbers on the arm); --time-optimal times it as fast as the motors allow through the inverse kinematics: the SCARA’s line across (line,0.4,0.25,0.15,1.5 from the start pose) takes 0.751 s instead of 1.025 s, motor 1 at 547 of its 615 rad/s. A target the arm cannot reach is refused with the reason (The arm cannot reach the target.), as is one too near a singularity (the SCARA’s stretched arm: workspace.max_condition_number, 25), and a path through one. The SCARA’s elbow is kinematics.elbow (“right” or “left”); the arm keeps the branch of kinematics.home_joints (shoulder, elbow and wrist as there).
Six-axis arm on a linear track
arm-on-track is the six-axis arm on an 80 kg carriage that runs 4 m on a floor track, driven through a rack and pinion
by a 1FK2105-4AF behind a planetary gearbox of ratio 10: a seventh axis, the first, in metres. Track and arm are one
chain, so the arm’s swing pushes on the track and the track’s acceleration loads every joint of the arm; the carriage’s
four guide blocks carry the arm’s weight and its tilting moments, and guide-load and guide-life judge the most loaded
block (mechanisms).
sim-cli verdicts arm-on-track
sim-cli verdicts arm-on-track --config crates/machine-joint-kit/config/arm-on-track-tool.toml
The default cycle picks at 0.5 m on the arm’s left and places at 3.5 m on its right, the arm swinging round while the
track travels, and back empty: 7.27 s, every check passes; the track’s motor at 15 % of its peak torque and its rated
3000 r/min, the rack’s teeth at 583 of their 2400 N, the most loaded guide block at 896 N (3584 N for the set of four,
against 320 N a block from the weight alone). In tool space the axes are the track’s position beside the flange’s
x, y, z, rx, ry, rz (kinematics.tool_axes = ["j1", "x", ...]): seven axes for seven joints, the track given and the arm
solved for the pose, so a line moves the track and the flange straight together.
Size a press, a rotary knife or a flying saw
machine-crank-cam has the crank and cam cases of a servo sizing tool (mechanisms).
Their shipped cycles are ordinary segments; with cam.run = true each runs its electronic cam, and a pass is one master
period at speed:
$ sim-cli analyze slider-crank --set cam.run=true # 30 strokes a minute
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation
1,2.000000,1.961555,0.781834,117.4215,0.1308,0.1700
$ sim-cli analyze rotary-knife --set cam.run=true # 0.5 m formats at 1 m/s
1,0.500000,2.629456,0.503196,151.7660,0.1765,0.1094
$ sim-cli analyze flying-saw --set cam.run=true # 1.5 m lengths at 1 m/s
1,1.500000,4.539616,1.927127,159.1095,0.3031,0.4189
All three pass every verdict. The knife’s peak motor speed is the hand calculation’s: between cuts on a 0.5 m format the
roll turns 15.17 rad/s at mid-span (1 / R + 1.875 × (12.76 − 1 / R)), times the gearbox’s 10. The press’s own checks are
the rod force (2.7 kN against 20 kN), the ram guide’s load across and the crank bearing’s load. Change the format, the
web speed or the strokes and look again: --set knife.format_length_m=0.35 asks 26.6 rad/s of the roll, beyond its axis
limit of 20, and run and the app say so (limit-cam-speed, with acceleration and jerk). A press cam of your own goes
into [[cam.segment]], or as a CSV of master and slave (and slopes) into cam.table_file. In the app the scope shows the
ram’s position and force, the rod force and the inertia the crank feels over the stroke; the following error is that of
the slave against the cam.
The toggle press (toggle-press) is the knuckle-joint form: its crank pushes the knee of two links in line, and near
their dead centre a small crank torque holds a large ram force. sim-cli verdicts toggle-press judges, besides the
motor’s checks, the press force against the force capacity at every pose (press-capacity: the rated 20 kN, or less
where the crank’s torque over the ratio dx/dq gives less: 3989 N half way down the stroke), the links’ and the rod’s
forces and the frame’s stretch (frame-deflection, 0.23 mm under the 11.5 kN of the shipped part against 0.4 mm). Move
the forming force up the stroke (--set 'process.distance_m=[0.02, 0.021, 0.022, 0.023]') and press-capacity and
motor-peak fail (1.70 and 27.6), and with them the drive’s current, the motor’s heating, the gearbox’s peak and its
gearing’s life, and settling-angle: far from the dead centre the mechanism gives little force, and the crank stops
1.18 rad short of its target. In the scope the ram’s height stops
0.23 mm above the bottom dead centre (ram.height, the frame’s stretch, effects.frame_stretch), and in the dwell at
the dead centre the press force stays while the motor’s torque falls to almost nothing.
Size a hexapod or a cable robot
Two parallel kinematics, generic proportions with Siemens 1FK2105-4AF motors on S210 drives (every other value an estimate, bounded); see mechanisms and the config reference.
hexapod is a Stewart-Gough platform of 25 kg (up to 30 kg on it) on six electric cylinders, each a ball screw 25 x 10
on its own motor. The tool pose is x, y, z (m) and the platform’s orientation rx, ry, rz (rad, a rotation vector); its
cycle shifts, tilts and turns the platform and back.
$ sim-cli analyze hexapod
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,...
1,1.294000,1.012178,0.300390,109.8636,0.0675,...
3,1.294000,1.125365,0.472308,160.9470,0.0753,...
$ sim-cli verdicts hexapod
settling,,0.000001259,0.00005000,ok
screw-buckling,3,388.1,168353,ok
...
Every check passes. Each leg’s force (joint.<i>.force) is judged against its screw’s buckling load and static rating;
a target is refused where a leg would leave its stroke, stand steeper at a joint than 40°, or near a singularity
(workspace.max_condition_number; the workspace map shows the condition number). The velocity loop’s gain is 0.4 N m
s/rad: with 0.1 the platform settles 5.0 µm off at the dwells, against 1.3 µm with 0.4.
hexapod-rotary is the other build of a hexapod, a motion base on six cranks (6-RSS): six 1FT2104-5AF with planetary
gearboxes SP100 50:1 on the base, each turning a crank of 200 mm, each crank joined to the platform by a rod of 550 mm
with a ball joint at both ends; a platform of 35 kg carrying a seat with its occupant, 80 kg, 300 mm above the platform
joints. Its cycle heaves the platform up, then surges, sways, rolls, pitches and yaws it, each from the pose before,
and brings it back level.
$ sim-cli verdicts hexapod-rotary
settling,,0.0004185,0.001000,ok
singularity,,3.589,15.00,ok
gearbox-peak,3,144.6,278.0,ok
crank-dead-centre,1,0.4372,1.222,ok
rod-buckling,4,767.1,3530,ok
platform-ball-joint,1,0.5734,0.6981,ok
...
Every check passes. Beyond the motors’ and the gearboxes’ own, each leg is judged for its crank’s distance from the
dead centre (crank-dead-centre: the rod’s angle from the crank’s tangent against 90° less
ratings.crank_dead_centre_margin_deg, where the motor’s torque arm falls with its cosine), its rod’s buckling
(rod-buckling: the compression against the Euler load of the tube in [rod] over its safety) and both ball joints’
angles. A target is refused where a rod cannot reach, a crank comes nearer its dead centre than
workspace.min_dead_centre_margin_deg, a ball joint would leave its angle, two rods would come nearer than
workspace.min_rod_clearance_m, or near a singularity. crank.branch picks the cranks’ configuration ("out" or
"in") once for all legs.
On its cycle the motors use at most 37 % of their torque curve, the gearboxes see at most 145 of their 278 N m, the
cranks keep at least 65° from their dead centres, the rods carry at most 767 N against the 3530 N their buckling allows,
and the platform settles within 0.42 mm: much of it the gearboxes’ twist and backlash under the seat’s weight, which the
motors’ encoders do not see. The velocity loops’ gain is 0.10 N m s/rad (46.8° and 11.1 dB at the
level pose, 38.5° and 9.6 dB with the friction off, at least 38.0° over the poses the cycle stops at; 0.12 left 31.2°
at the least of them, 28 November 2026).
cable-planar hangs a carriage of 3 kg (up to 2 kg on it) in a vertical plane from 4 cables, cable-spatial a platform
of 4 kg (up to 4 kg) with six degrees of freedom from 8; each cable runs over a swivelling pulley onto a winch behind a
planetary gearbox 5:1. The tensions come from a small QP, those nearest the pretension (cable.reference_tension_n)
that carry the platform within the band from cable.min_tension_n to the breaking load over the safety factor:
$ sim-cli verdicts cable-planar
settling,,0.0001485,0.0003000,ok
cable-max-tension,2,186.7,400.0,ok
cable-min-tension,2,0,0,ok
...
$ sim-cli modes cable-planar
position,mode1_hz,mode1_damping,mode2_hz,mode2_damping
-0.600000,26.2007,0.04929,31.8525,0.06000
...
Every check passes on both. cable-min-tension fails when a cable fell below the least tension at any moment (its
value: by how much); with 60 N of pretension the planar robot’s bottom-left cable went slack while the carriage
accelerated up and right at 10 m/s², which 120 N prevent. A target where no tensions in the band hold the platform with
its payload is refused as outside the wrench-feasible workspace. The cables stretch with EA / l, so the stiffness and
the modes change over the workspace (sim-cli modes): 24.6 Hz at the planar robot’s centre. The spatial robot’s cables
run from corner to corner and hold little moment: turns of 0.05 rad already take some near the band’s top, and its
platform rests up to 1.03 mrad off its orientation in the dwells (settling-angle, against 2 mrad; its position
0.04 mm off, against 1 mm).
Size a tripod
tripod is a 3-RPS tilting table: a platform of 20 kg carrying 40 kg off its centre (0.05 m out, 0.1 m up) on three
electric cylinders, each a Hiwin 20-10K3-FDC ball screw on a Siemens 1FK2104-4AF with an S210, a trunnion at the base
and a ball joint at the platform (see mechanisms and the config
reference). The tool pose is z (m) and the tilts rx, ry (rad); the platform’s shift in x,
y and its turn about its normal follow from the legs and are reported (platform.x, platform.y, platform.turn,
platform.pose_error). Its cycle tilts about x, about y raised and both lowered with the part on the table, and goes back level without it:
$ sim-cli verdicts tripod
motor-peak,1,0.1971,1.000,ok
...
tripod-leg-force,1,382.0,1500,ok
tripod-leg-stroke,2,0.05162,0.1000,ok
tripod-revolute-angle,2,0.2100,0.5236,ok
tripod-cone-angle,2,0.3762,0.6109,ok
tripod-parasitic,,0.002874,0.005000,ok
Every check passes; the motors are used to a fifth of their peak and run 8 K warm, sized for a heavier load or faster
tilts. Beyond the screws’ checks each leg’s force is judged against the cylinder’s 1500 N, its extension against its
stroke, its swing at the trunnion and its cone at the ball joint against 30° and 35°; tripod-parasitic judges the
largest distance of a point of the joint circle from where a pure tilt would put it, 2.9 mm against the 5 mm of
ratings.parasitic_tolerance_m (leave the key out to judge none). A target is refused where a leg would leave its
stroke or a joint its range, or near a singularity (workspace.max_condition_number; level the condition number is
√2). The velocity loops (sim-cli margins tripod), with a gain of 0.03 N m s/rad, keep at least 60.4° and 18.20 dB, and 50.6° and 17.07 dB across the bounds (--bands).
Size a stepper or an induction motor
motor.kind puts another motor behind the drive (see model reference and
config reference); without it every machine keeps its servo motor. Two machine files
show them, both with [estimate] values:
$ sim-cli verdicts --machine-file machines/stepper-axis.toml
$ sim-cli verdicts --machine-file machines/induction-lift.toml
$ sim-cli verdicts --machine-file machines/induction-lift.toml --set geometry.incline_deg=0 --set 'drive.induction_control="vf"'
A stepper belt axis. A NEMA 23 stepper (1.26 N m holding torque at 2.8 A per phase, 0.9 Ω, 2.5 mH, 50 rotor teeth)
straight on a 16 mm pulley, 48 V, 16 microsteps, the drive set to 3.5 A (drive.stepper_current_a, 88 % of the rating:
holding torque 1.11 N m). The drive runs open loop: it counts the setpoint in microsteps and puts the current vector there,
and the rotor follows on the “magnetic spring” of the holding torque. Three checks size it:
stepper-synchronism: the highest load angle over the cycle against the pull-out angle, 90° electrical. The shipped cycle reaches 0.42 rad (24°). A rotor that falls out of step has lost position for good (the drive does not know): the value then is above π. With--set mass.payload_kg=25the 5 m/s² alone ask for 2.08 N m of the 1.11 N m, and it fails.motor-peak: the torque against the pull-out curve, the holding torque up to the corner speed, here 85 rad/s ((R I + k_E ω)² + (N ω L I)² = U²), falling above: 44 % on the shipped cycle. The torque-speed chart shows the curve.motor-thermal: a stepper carries its current at standstill too; the winding settles at 59 K of its 80 K. At the full 3.96 A it would sit at its rated rise.
Siemens’ S1 check (motor-s1) is a servo motor’s and is not made. In the scope the motor speed shows the rotor ringing
on its spring after each move (about 60 Hz here, sqrt(N T_hold / J) / 2π with the load’s inertia), and the following
error the load angle at the motor: the true position against the counted one.
An induction motor lift. A four-pole 1.5 kW, 400 V, 50 Hz motor (1440 rpm, 10 N m) through a gearbox 10 onto a
vertical belt lift with 50 kg, field-oriented (drive.induction_control = "foc") under the drive’s speed and position
loops. Its torque-speed curve is the breakdown curve of its equivalent circuit (27.1 N m at the rated voltage) and the
converter’s current limit; the copper loss of stator and rotor heats it. It passes every check: 24 % of the curve,
17.5 K, 0.2 mm off its target in the dwells against the 0.5 mm allowed. Laid flat and run on V/f (the third command) the
converter follows the plan’s speed open loop with the slip compensated, and the carriage stops about 9 mm off its targets:
V/f has no position. The motor’s data are the name plate (rated_voltage_v, rated_frequency_hz,
drive.rated_speed_rad_s for the rated slip) and the equivalent circuit (resistance_ohm, rotor_resistance_ohm,
magnetizing_inductance_h, the two leakages); makers publish the circuit for some series, else it has to be estimated
(the files say which and bound them).
Size a pneumatic axis beside a servo axis
Pick-and-place machines often lift with a pneumatic cylinder while servo axes travel. A machine file adds one with a
[[machine.cylinder]] node and a table of its values (bore, rod, stroke, moved mass, dead volumes, supply pressure,
the valve’s and tube’s ISO 6358 C and b, the meter-out throttles, the cushions, the seals; keys in
config-reference.md). The cycle commands it by its valve and
waits for its end-position sensors:
[[cycle.segment]]
target = [0.1] # X to the pick
dwell_s = 0.05 # counted once the sensor reports
payload = false
valves = { z = "extend" }
wait = ["z.extended"]
machines/pneumatic-axis.toml is a servo X with a Festo DSBC-32-100 Z hanging down from its carriage:
$ sim-cli verdicts --machine-file machines/pneumatic-axis.toml
$ sim-cli run --machine-file machines/pneumatic-axis.toml --cycle --time 5 --out z.csv
The verdicts judge the cylinder beside the motor: cushion-energy (the kinetic energy entering the cushion, 0.012 to
0.029 J here, against the cylinder’s rated 0.4 J) and load-factor (what it works against over its theoretical force
at supply pressure, 0.024 against the usual 0.7). The traces cylinder.z.* have the piston’s position and speed, both
chambers’ pressures and temperatures, the spool and the end sensors, the last stroke times (0.55 s out, 0.65 s back),
the speed entering the cushion and at the stop, bounce and settling, the air per double stroke (1.10 normal litres)
and its energy at the compressor (474 J at 0.12 kWh/m³). The extend speed is set by the rod side’s meter-out throttle:
choked, the piston runs at C p0 / A2 (0.216 m/s here), whatever the load. Within the cushion the bleed screw sets the
speed the same way (0.05 l/(s bar): 0.072 m/s). A cylinder whose dead volume is too small for the step is refused with
error-cylinder-unstable, which names the rate and the sub-step it needs (sim.substeps).
Festo prints C and b for no VUVG valve; the shipped valve’s are estimated from its nominal flow. The cylinder does not act back on the axis carrying it (its mass belongs in the carriage’s), and there is no proportional valve yet.
Size a winder
winder is a web line: an unwind roll, a dancer, a rewind roll, both rolls centre-driven (details in
mechanisms). Its axis is the line position in metres of
web; the shipped run is 3 m at the roll’s start, up to 2 m/s and down again, and back. A run takes metres of a roll of
1286 m, while the motors’ load changes with the roll: the speed is highest at the core, the torque at the full roll, the
inertia grows with r⁴. So beside the motors’ own checks the winder judges both ends of the roll:
$ sim-cli verdicts winder
check,motor,value,limit,result
...
web-tension,,102.6,250.0,ok
web-slack,,0.3106,1.000,ok
dancer-travel,,0.000007135,0.04000,ok
inertia-ratio,unwind,10.40,15.00,ok
torque-at-full-roll,unwind,4.088,18.00,ok
torque-at-core,unwind,1.205,18.00,ok
speed-at-core,unwind,311.1,508.8,ok
tension-torque-at-full-roll,unwind,2.204,5.400,ok
...
web-tension and web-slack are the web’s highest tension against what it may carry and its lowest against its
minimum (the minimum over the lowest: above 1 fails); dancer-travel the dancer’s largest travel against its room.
Per motor: the inertia ratio at the full roll (the roll’s inertia at the motor over rotor and gearbox), the motor torque at
the full roll and at the core for the line speed, acceleration and tension of each moment of the cycle, the motor speed
at the core, and the tension’s torque at the full roll against the rated torque. Read the inertia ratio first: here it,
not the torque, decides the motor (a smaller 1FK2 has the torque, and 22 times its inertia at the full roll).
What to change: web.tension_n and web.taper (the tension at the core and how it falls towards a large roll),
axis.web.max_velocity_m_s and max_acceleration_m_s2 (the line), roll.core_radius_m and full_radius_m, the web’s
thickness_m, width_m, density_kg_m3, gearbox.ratio (speed at the core against torque and inertia at the full
roll), and roll.run_from_m to run the cycle elsewhere on the roll. An emergency stop: sim-cli stop winder --category 2
brakes the line along its path and keeps the web’s tension; a category 1 stop brakes each motor on its own ramp, which
parts the rolls where their radii differ and overloads the web.
Run a path and read path error
A path file has one piece per line. The path starts where the machine stands (start.pose).
# line, arc, line from the start pose (0.1, 0.35)
line,0.5,0.35
arc,0.6,0.25,0.5,0.25,cw
line,0.6,0.05
| Line | Meaning |
|---|---|
line,a,b | Straight to this point: one position per axis, in metres |
arc,a,b,ca,cb,cw or ccw | On a circle around the centre (ca, cb) to the point (a, b). cw and ccw are seen with the first axis to the right and the second upwards |
spline,a,b | On a smooth curve through this point. Lines of spline that follow one another form one curve, one via point per line |
line,x,y,z, spline,x,y,z, arc,x,y,z,cx,cy,cz,cw or ccw | The same on a machine with three axes (the delta). An arc lies in the plane of its start, its end and its centre, and cw/ccw is seen from the side of that plane its normal points to, taken upwards (+z), for a vertical plane towards the viewer (−y), for the y-z plane from +x. A half or full turn leaves the plane open and is refused. Transition curves (profile.path_tolerance_m) are laid in the plane of the arc they meet; two arcs that meet in different planes keep their junction, and a line has to lie in its arc’s plane to 1 nm (write the numbers with all their digits) |
empty, or starting with # | Skipped |
An arc whose end is the end point of the piece before it (the same numbers, to a nanometre) is a full turn. Any other arc turns from that point to its own end, however short: an arc of 80 µm is an arc of 80 µm. The stated end has to lie on the circle around the centre through the end point of the piece before, within 10 µm. The arc is laid from where the path really stands and keeps the radius it has there, so it ends beside its stated end by what the two radii differ. Over arcs that follow one another around one centre these offsets add up if every stated end lies further out than the one before: four arcs, each 9 µm further out, end 36 µm beside the last stated end. Where the path ends beside a stated end, the largest such distance is part of the deviation the planner reports (The planned path is off ..., below, and “Planned path off the given one” in the app). The command line says it from 0.05 µm, the smallest it can show.
The first piece has no point before it. A path starts at the setpoint of the machine at rest, which belt stretch and gear twist put up to 0.1 mm from the start pose (some hundredths of a millimetre on the default gantry). So an arc as the first piece is judged against where the machine stands: its end may be 0.1 mm off the circle through that place, and it has to end at least 1 mm from that place. Nearer, a full turn cannot be told from a short arc, so neither is guessed and the path is refused (The path starts with an arc that ends less than 1 mm from where the machine stands. ...). To start a path with a full turn or with an arc shorter than that, state its start first with a line to the start pose; the arc is then judged against that point. Arcs need a machine with two axes, or three (in a plane, see the table), or more: then the arc is on the first three and the other axes go along evenly with the distance (arc,x,y,z,c,cx,cy,cz,cw on the SCARA or the D4, six positions and the centre on the arm in tool space). On the delta the setpoint at rest can be up to 2.3 mm from the start pose (Machine::setpoint_slack: what its gearboxes’ twist and backlash can sag under the platform’s weight anywhere in the range, worked out from stiffness, backlash and masses; 0.6 mm at the default start pose), and a first arc’s end may be that far off the circle. That slack is for where a path starts only: a pose further from the start than the slack has to lie within the range (on an axis whose start lies beyond an end, no further beyond than the start), so a path cannot run past the range where a move there is refused.
A spline runs through all its via points with no step in position, direction or curvature at a via point (a cubic spline over the straight distance between the points). It leaves the line or arc before it in that piece’s direction and ends in the direction the line or arc after it starts with. At an end of the path, or where there is no line or arc, it ends without curvature. Splines need a machine with two to six axes. Via points and directions that would make the curve turn back on the spot are refused (The path cannot be laid out: ...).
A spline can swing past its via points: between them the curve bulges outwards, the more the sharper it has to turn. A curve that leaves the travel range although every via point is inside is refused (The path leaves the travel range. ...). Move the via points inwards or add one where it bulges.
$ sim-cli analyze t-gantry --path corner.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,...
a,2.128000,0.542380,...,1.299e-4,4.397e-5,1.771e-4,0.000e0,...
$ sim-cli analyze t-gantry --path corner.path --time-optimal
a,1.658000,0.714051,...,1.744e-4,5.099e-5,2.475e-4,0.000e0,...
For a path, cycle_s is the planned duration plus 0.3 s of rest at the end, so that the settling of the tool counts.
Two planners time the path:
| Default | --time-optimal | |
|---|---|---|
| Speed and acceleration | The limits of every axis ([axis.*]) | What each motor allows by its own drive and motor: up to its maximum speed (drive.max_speed_rad_s, or the gearbox’s input speed rating where lower, less 1 %), its torque-speed curve at the speed it turns (above the rated speed falling) or the torque of the drive’s maximum current (ratings.drive_max_current_a) and as it brakes no more than the braking resistor takes, less (1 − profile.torque_reserve) of its torque at a standstill at every speed, and the same share of the gearbox’s and the pulley’s torque rating at the output; the guides’, the belt’s and the machine’s own parts’ ratings (screw, rack) |
| Jerk | The limit of every axis | The same |
| At a corner (direction turns by more than 1 mrad) | Stops; with profile.corner_tolerance_m a corner between two lines is rounded within that tolerance and passed without a stop | The same |
| Where a line meets an arc | Slows down so far that the step in acceleration stays within half the jerk limit; with profile.path_tolerance_m a transition curve takes the path into the arc at speed (below) | The same |
| On a spline | Each span between two via points gets one speed, one acceleration and one jerk limit, from its tightest curvature and the fastest change of curvature on it (sampled at 257 places, raised by 5 % as margin), shared out as on arcs | The same, from what the motors allow |
| Where a spline meets a line or an arc | The curvature steps, so it slows down as from a line into an arc; with profile.path_tolerance_m the spline’s end is eased to the curvature of its neighbour, and the junction is passed at speed (below) | The same |
| Model used to plan | None, only the axis limits | The rigid model: no friction, no belt stretch |
The time-optimal plan keeps every motor within its curve less the reserve and within its maximum speed, and every axis within its jerk limit at every planned pose. With the default jerk limit of 100 m/s³ the jerk decides nearly everywhere: the example’s motors turn at up to 394 rad/s, below their limit of 420 rad/s less 1 %, and ask for at most 0.19 of the torque available at their speed (utilisation). A higher jerk limit makes it faster (0.69 s plus rest at 2000 m/s³).
Reading the result:
path_error_peak_mis the distance of the tool tip from the line its setpoint has drawn, wherever along it. Lagging behind along the path does not count. This is the number for contour accuracy.tracking_error_peak_mis the distance from where the setpoint is at the same moment. It includes the lag.- On the T-gantry the tool tip is the tip of the leaning Z axis (
effects.tool_flex) on a frame that sways (effects.frame_compliance), seen from the floor where the workpiece stands. It is not the carriage’s position along the beam and not what the motor encoders say. - With
effects.base_compliance(every machine, off as shipped) the whole machine stands on a base on springs ([base]), and the tool tip moves with it too. By default one-way: the base sways under the machine’s reactions, but the motors do not feel it. Witheffects.base_reactionit is two-way: the base’s acceleration pushes on everything that moves on it, so the sway shows in the following error and the drives hold against it, and the base’s energy and damping loss are in the energy budget (power.base). It costs computing time: every step works the machine’s mass out from its energy at each of its speeds and each pair of them (model reference, “Compliant base”).
Arcs entered at speed. Where a line runs into an arc the acceleration towards the centre steps from 0 to v²/r, so the default planner passes that place at a crawl: 0.07 m/s for a radius of 0.1 m at 100 m/s³. With profile.path_tolerance_m above 0, both planners first put transition curves (clothoids) there, and where two arcs meet: curves whose curvature changes evenly with the distance. To fit one in, the arc keeps its centre and gets a slightly smaller radius, so the planned path is off the lines and arcs of the file by a small amount, and the error stream says by how much:
$ sim-cli analyze t-gantry --path corner.path --set profile.path_tolerance_m=0.0001
The planned path is off the given lines and arcs by up to 0.1000 mm (transition curves, and arcs that end beside their stated end).
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,...
a,1.890000,0.542306,...,7.953e-5,...
1.89 s instead of 2.13 s, with every axis still within its velocity, acceleration and jerk limit. The rules:
| Deviation of an arc of radius r with curves of length L | e = L² / (24 r). The arc moves in by this much; on the curves the path is closer to the given one |
| Length of the curves | Per arc, L = v³ dk / (0.4 j): what the faster of its two junctions needs to pass at the speed v of its slower piece, with 0.4 of the smallest jerk limit j. dk is the step of the curvature, 1 / r for a line into an arc. But no longer than the tolerance allows on that arc: L = sqrt(24 · tolerance · r). Arcs that hand over to one another turning the same way share one L |
| Speed on a curve that is shorter than needed | v = (0.4 j L / dk)^(1/3) |
| Example above (r = 0.1 m, 100 m/s³, arc at 0.4 m/s) | Needed 16 mm, allowed sqrt(24 · 0.0001 · 0.1) = 15.5 mm: the arc moves in by the full 0.1 mm and is entered at 0.396 m/s instead of 0.071 m/s. With a tolerance of 1 mm the curves are the 16 mm they need, and the path is off by 0.107 mm |
Each arc gets the curves its own junctions need. An arc at a corner, at the start or end of the path, or next to a spline has to end there where the file says. If its other end meets a line or an arc, it still gets its curve: its circle shrinks and moves towards the fixed end so that it passes through that end in the same direction, and leaves the room for the curve at the other end. An arc that turns more than half a circle that way moves by at most half the tolerance (halfway round the new circle is twice that inside the old one), so its curve is shorter. An arc fixed at both ends meets nothing in its direction and keeps its radius. If a piece is too short for its curves, or a curve would turn half a circle or more (a tolerance that is large against the radius of a tight arc), every length of the path is halved, up to eight times; after that the path is planned as given. On three axes (the delta) the curves lie in the plane of the arc they meet. With a tolerance of 0 (the default) nothing changes.
A path with a spline. Two via points between two lines:
# line, a curve through two via points, line; from the start pose (0.1, 0.35)
line,0.3,0.35
spline,0.45,0.3
spline,0.55,0.15
line,0.55,0.05
$ sim-cli analyze t-gantry --path curve.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,...
a,2.101000,0.541474,...,1.373e-4,4.482e-5,1.771e-4,0.000e0,...
$ sim-cli analyze t-gantry --path curve.path --time-optimal
a,1.640000,0.589072,...,1.856e-4,6.424e-5,1.856e-4,0.000e0,...
2.101 s within the axis limits and 1.640 s as fast as the motors allow, both with 0.3 s of rest. The curve leaves the first line horizontally and arrives on the last one going straight down, but with the curvature its via points ask for, so the path slows down at both junctions as into an arc. With --set profile.path_tolerance_m=0.0001 the spline’s ends are eased: near each junction the spline is bent so that its curvature there is that of the line (0), over a length l = sqrt(tolerance / (0.01728 dk)) for a step dk of the curvature, at most half the span, and only as long as the speed needs. The via points stay where they are; the spline moves by at most the tolerance. Here: 1.985 s within the axis limits and 1.521 s as fast as the motors allow. The eased part changes its curvature about nine times as fast as a clothoid of the same length would, so it is passed more slowly than a transition curve between a line and an arc (see the model reference).
Other ways to give a path:
--trajectory FILE: poses at times, CSV with the time in seconds and one position per axis per line. Lines that do not start with a number are skipped. The first time has to be 0 and the first pose where the setpoint stands, on each axis within the machine’s setpoint slack (Machine::setpoint_slack: 0.1 mm on the gantries, 2.3 mm on the delta); times have to rise; every pose has to lie within the travel range, except near the start (see the limits below); the path ends at rest. The controller runs a cubic curve through the points.sim-cli run MACHINE --path FILEor--trajectory FILEwrites all signals instead of the analysis.
Limits for this task:
- Without a path tolerance a rounded corner is slow with the default planner: 0.07 m/s into an arc of 0.1 m radius at 100 m/s³.
- Splines: without a path tolerance, where one joins a line or an arc the curvature steps, so the path passes that junction slowly, like a line into an arc. With one, the eased junction is passed at speed, but more slowly than a clothoid would allow for the same deviation. A span has one limit, from its tightest place, so a span with one tight bend is slow along its whole length.
- Transition curves between lines and arcs: none where two arcs meet in their direction in different planes (three axes), which the path passes slowly; a piece too short for its curves halves the curves of the whole path, not only its own. Their length follows the speeds the plan allows: the axis limits, or for
--time-optimalthe motors (the example takes 1.370 s with a tolerance of 0.1 mm, 1.658 s without). - The time-optimal plan knows the belt’s tension ratings (
ratings.belt_max_tension_n,belt_min_tension_n): it takesprofile.tension_margin_n(31 N on the default T-gantry, the guide friction the belt pulls) off both and keeps every section’s tension in the rigid model withinprofile.tension_reserve(0.5) of the room to what is left, because the belt’s vibration can add as much again as the rigid model’s change of tension (see the model reference). It also keeps every other rating whose verdict depends on the motion at a point of the path: the drive’s maximum current (ratings.drive_max_current_a, witheffects.drive_current_limitor without, as “drive-peak-current” judges it either way),profile.torque_reserveof the gearbox’s and the pulley’s torque rating at the output (ratings.gearbox_max_torque_nm,pulley_max_torque_nm, where the machine reports the gearbox’s output torque), the gearbox’s maximum input speed (ratings.gearbox_max_input_speed_rpm), the guides’ load rating (ratings.guide_max_load_n), the braking resistor’s peak power (ratings.braking_resistor_peak_w: a braking that would feed back more is not available), and the machine’s own parts: a screw’s speed, d n and axial force, a rack’s feed force. Speed ratings keep 1 % back for the loops’ following. It knows the gearbox’s losses (gearbox.efficiencywitheffects.gearbox_efficiency: the motor gives them on top), the motors’, guides’ and joints’ friction, and keepsprofile.torque_reserveof the guides’ rating, as of the motors’ torques.profile.time_optimal_margin(1 in the shipped configs) plans at that share of every limit: 0.9 for 90 %. What is judged over the whole cycle is not in the plan: the winding’s warming (“motor-thermal”, “motor-s1”), the drive’s RMS current, the lives and the braking resistor’s mean power. So a time-optimal cycle, run, passes the plan’s own checks on every shipped machine (a test per machine,crates/sim-machines/tests/time_optimal.rs), but can still overheat a motor: the linear motor axis’s, the flying saw’s, the parallel SCARA’s and the four-arm delta’s do. Runanalyzeorverdictson it. On the delta the gearboxes’ M2max binds where it is below what the motors give through the ratio: with the 192 N m of the NRB080 it had until 14 November a line across its range takes 0.434 s, with the shipped SP+ 100’s 278 N m 0.412 s (see the model reference). - The time-optimal plan reads the motors’ limits point by point (every 2 mm) and follows the highest speed they allow within a piece, up and down, but it is not proven the fastest one possible: the runs from both ends of a piece meet on a short cruise or on the speed curve, whichever is quicker, and on a curve the ramps get 0.4 of the jerk limit (see the model reference). Planning takes some milliseconds (2 to 21 ms on the shipped machines). On the full model the motors can pass the speed the plan keeps to by what the control loops and the belts’ twist add; the plan keeps that twist’s speed back too, so with a jerk limit of 2000 m/s³ the example’s motors reach 414.6 and 417.8 rad/s, within the drive’s 420 (before the plan kept the twist back, 420.7 and 423.5 rad/s).
- A machine that stands on an end of a stroke has its setpoint some hundredths of a millimetre beyond it: the setpoint is where the motors stand, under belt stretch and gear twist. A path from there starts that far outside the travel range and is run. Only near its start may a path leave the range: a pose within the machine’s setpoint slack of the start (0.1 mm on the gantries, 2.3 mm on the delta) may lie that far outside it; any other pose has to lie within the range (on an axis whose start lies beyond an end, no further beyond than the start; rounding of 1e-9 m aside). Other poses are refused (
The path leaves the travel range. ...for a path of pieces,The trajectory needs at least two points inside the travel range, at rising times from 0.for poses at times). - The payload is as the machine has it when planning (attached, at the start).
sensitivityworks on the cycle only, not on a path;verdicts,searchandoptimisetake--path(see Verdicts, search and optimise on a path). With--set 'profile.cycle_timing="time_optimal"'the commands judge the cycle timed as fast as the motors allow, each segment rest to rest (T-gantry 3.522 s against 6.080 s within the axis limits; see the config reference).- In the app paths are under “Path” (see Use the app); a PLC sends them over OPC UA (see Connect a PLC over OPC UA).
Check for obstacles and crashes
Put the obstacles of the work area into the config as boxes along the axes of the 3D view (see the config reference for where each machine’s tool is), and say how close the machine may come with profile.min_clearance_m:
$ sim-cli run single-axis --move 0.9 --time 1.5 --out run.csv --set "effects.crash=true" \
--set "effects.drive_monitoring=true" \
--set 'obstacles=[{name="wall",centre_m=[0.75,-0.03,0.06],size_m=[0.1,0.2,0.2]}]'
Planned path: least clearance to the obstacles -115.0 mm
Planned path: first contact with an obstacle at the pose 0.4700
Run: least clearance to the obstacles -0.4 mm
Run: first contact with an obstacle (name: time, speed of the tool, pose) wall: 0.4701 s, 1.0000 /s, 0.4700
Run: largest contact force, contact force now and impact energy 9821.9 N, 0.0 N, 3.0596 J
Run: the drives tripped (monitor: motor, time; fault reaction per motor) following error beyond its window: m, 0.4780 s; m: OFF3, the speed ramps down on the fast-stop ramp
Run: stopping distance per axis from the trip (the machine stood at) 0.0001 (0.5009 s)
runsays before the run what the move, path or cycle keeps from the obstacles as planned, and after it the run’s least clearance and its first contact: when, how fast the tool went and where; with the crash the largest contact force, the force now and the impact energy; and when the drives tripped, which monitor of which motor, how each drive stops and how far each axis went from the trip until the machine stood. Nothing is said without obstacles or a trip.verdictssays the same of the cycle as planned and judges the run with the checkcollision: its least clearance againstprofile.min_clearance_m, failing at any contact. Without obstacles the check is not made.effects.crash(off by default) makes the obstacles push back, with their contact stiffness and damping (stiffness_n_m,damping_n_s_min an obstacle’s entry; 1e7 N/m and 1e4 N s/m without), with the drives on or off: the axes in contact are blocked, the others go on. A drive at its current limit pushes with its peak torque times ratio over pulley radius (950 N on the single axis) and stays there as long as nothing trips it. Off, contacts are reported and the machine moves through.effects.drive_monitoring(off by default) has the drives watch themselves as servo drives do: the following error against a window (drive.following_error_window_rad, 1 rad at the motor), the following error at standstill against a tighter one, a motor held at its torque limit at low speed for 3 s, and optionally the torque against the model’s. The first that trips stops all drives, each bydrive.fault_reaction(per motor as[drive.<id>]):"off3"ramps down on the fast-stop ramp (off3_ramp_s, 0.1 s from the rated speed),"off1"on the normal ramp (off1_ramp_s, 1 s),"current_limit"brakes at the torque limit,"sto"lets the motor coast. A blocked axis trips some window / speed after the contact (8 ms on the single axis at 1 m/s); an axis not in contact stops within v² / (2a) of its ramp. Enabling the drives acknowledges the trip; enabled again, they can take the machine out of the obstacle, and a move into it trips them again. A PLCopen axis reports a crash as ErrorID 8 once the drives are off.--time-optimalrefuses a path that comes nearer than the clearance;optimisetakes no setting whose run does.- The app draws the obstacles as translucent boxes with their edges, red while touched, the clearance to the nearest as a red line with its value in mm, and the first contact as a red mark on the timeline. When the drives trip, Messages says at once which motor tripped when, on which monitor, and how each drive stops, while the 3D view and the scopes show the axes ramping down or coasting; once the machine stands, how far each axis went from the trip.
- The clearance is between the boxes of the tool, carriage, Z axis, platform and payload as the 3D view draws them (not their CAD shapes) and the capsules of the slanted parts: the delta’s forearm rods and upper arms and the D4’s telescope, each the points within half its drawn width of its drawn segment, exact however it slants.
- The machine’s own parts against each other.
runandverdictsalso say, apart from the obstacles’ figure, the least clearance between two parts of the machine itself along the planned path or cycle, in mm, which two (box Nis the Nth box,capsule Nthe Nth capsule of the machine’s collision parts, counted from 1) and at which pose:Planned path: least clearance between the machine's own parts (clearance, the two parts, pose) .... It is looked at at every pose the obstacle check samples (every millimetre, the machine at rest) and judged against the sameprofile.min_clearance_m: a gap below it, or an overlap, is said asthe machine's own parts come too close or touch. It does not need obstacles. Which pairs count: parts that touch (to 1 nm), overlap or lie closer than the clearance to each other at the machine’s start pose (start.pose, with the payload on and off) are taken as joined (a carriage on its rail, a payload on its carriage, a link at its joint) and not checked against each other, whatever pose a path starts from; every other pair is. That rule cannot see a collision between parts that are already in contact, or nearer than the clearance, at the start pose. The arms, SCARAs and the palletiser say their adjacency exactly instead (link with the next link, across a link of no length, and with the links of no length at the next one’s end, such as the point at a SCARA’s flange; the flange with the last two links) and draw their links as capsules for it; their bars as drawn do not include the base or the motors. A machine with no two parts left to compare (most of those that give only the tool, and the slides, whose payload sits on the carriage) saysThe machine's own parts are not checked against each otherinverdicts: that is “not checked”, not “clear”. The run is judged as the obstacles are: every millisecond of the run (as the obstacles, every step), the same pairs in the simulated pose, also where only the machine moves (a load swinging in a dwell, an axis coasting); the least over the run is the verdictself-collisionagainstprofile.min_clearance_m, failing at any contact, with the exit code; a machine not checked has no such row, ascollisionhas none without obstacles. A time-optimal path that brings two parts that near is refused (error-path-self-collision), one within the axis limits is planned and reported. The parts do not push each other in the simulation: nothing stops a run on it.
How far does it travel after an emergency stop?
Stop the cycle (or a path, --path FILE) at many moments and see how far the machine goes before it stands:
$ sim-cli stop t-gantry --category 1 --points 3
moment,trigger[s],tool_distance[m],stop_time[s],peak_deceleration[m/s2],hard_stop,peak_dc_link[V],braking_resistor_energy[J],tripped,x_distance[m],z_distance[m]
grid,0.0000,0.000001,0.0000,0.241,false,155.14,0.0000,false,0.000000,0.000001
grid,2.0263,0.025465,0.5653,44.419,false,184.09,0.0000,false,0.025465,0.000107
energy,2.0800,0.026026,0.5657,38.385,false,188.86,0.0000,false,0.026026,0.000121
fastest_x,2.0860,0.026022,0.5654,37.384,false,189.40,0.0000,false,0.026022,0.000107
grid,4.0527,0.000245,0.0174,17.273,false,224.04,0.0000,false,0.000033,0.000244
fastest_z,4.2740,0.006431,0.0488,17.171,false,186.45,0.0000,false,0.000043,0.006431
worst,2.0800,0.026026,0.5657,38.385,false,188.86,0.0000,false,0.026026,0.000121
Worst stop: triggered at 2.0800 s (energy)
Stop verdict: stop-dc-link: 224.0 / 257.6 ok
- The stop categories are those of IEC 60204-1 as a servo drive makes them (
--category, 0 without it): 0 takes the torque off at once (STO, as--disable-at): the axes coast until the holding brakes hold. 1 brakes every drive on its quick-stop ramp (drive.off3_ramp_s, the time from the rated speed), with its torque and current limits and the DC link and braking chopper acting as in any move; once all stand the brakes engage and the torque goes off, or whendrive.ss1_time_s(0.5 s) runs out first. 2 brakes the planned motion at the axes’ acceleration limits along the direction it moves and holds there with the torque on. - The moments: where each axis is fastest (
fastest_x), where the kinetic plus potential energy is largest (energy), and--pointsmoments evenly over the pass (grid, 20 by default). The last row repeats the worst, the stop that took the tool farthest. - Per stop: how far the tool got from where it was at the trigger (the farthest, over the axes in metres) and each axis, the time until every axis is below a hundredth of its speed limit, the peak deceleration over 1 ms, whether an axis went into its hard stop, the DC link’s peak voltage, the energy the braking resistor took, and whether a drive tripped on overvoltage (it then coasts, as in category 0).
stopping-distancejudges the worst againstratings.max_stopping_distance_m, which you add to[ratings]in a config file (--config);stop-dc-link(witheffects.dc_link) fails when a stop trips a drive.- A hanging axis falls while its brake engages: switch on
effects.brake_delay(off by default) and the brakes takebrake.engage_delay_s(0.03 s, an estimate) to hold andbrake.release_delay_s(0.06 s) to let go. On the T-gantry in category 0 (sim-cli stop t-gantry --points 3 --set effects.brake_delay=true) the worst stop then takes the tool 31.0 mm instead of 9.5 mm, and stopped where Z is fastest it goes 8.6 mm instead of 1.4 mm. - One stop at a time:
sim-cli run t-gantry --cycle --stop-at 5.076 --stop-category 1writes every signal around it. From Pythonks.Sim(config).stop(1)stops a stepped simulation,enable()switches it on again; the FMU’s inputcommand.stop_categorysays howcommand.enableturning false stops the drives; over OPC UA writing 0, 1 or 2 tocommand.stop_categorystops the machine. - What it does not know: category 2 brakes along the direction of motion, not along a curved path; no jerk limit in a stop; the brakes have one delay for all; nothing has been compared with a measured stop yet (see validation).
How accurate and repeatable is an axis?
Run the machine to a line of targets along each axis, as a laser interferometer test does, and see where the tool really stands at each one:
$ sim-cli accuracy t-gantry --points 3 --repeats 2
axis,unit,target,mean_up,mean_down,std_up,std_down,reversal
x,m,0.100000,1.1762e-5,2.5613e-5,7.5882e-8,5.3740e-10,-1.3851e-5
x,m,0.500000,-1.2844e-5,1.3340e-5,1.0489e-8,6.2349e-10,-2.6184e-5
x,m,0.900000,-2.5110e-5,-1.2003e-5,1.6311e-9,7.6690e-11,-1.3108e-5
Accuracy along ISO 230-2, axis x [m]: B 2.618e-5, R 2.621e-5, E 5.072e-5, M 3.724e-5, A 5.073e-5 (...)
z,m,0.050000,-5.1846e-5,-3.8927e-5,8.7854e-8,5.6135e-10,-1.2919e-5
z,m,0.250000,-5.3654e-5,-4.0058e-5,1.1370e-8,3.8474e-10,-1.3596e-5
z,m,0.450000,-5.2218e-5,-3.9019e-5,4.8047e-9,7.1230e-10,-1.3200e-5
Accuracy along ISO 230-2, axis z [m]: B 1.360e-5, R 1.362e-5, E 1.473e-5, M 1.469e-6, A 1.475e-5 (...)
Accuracy at the tool along ISO 9283, over the axes in metres: AP 5.625e-5, RP 1.565e-7, vAP 2.618e-5 (...)
-
The test (
sim_components::accuracy::study): per axis--pointstargets (5) evenly over the middle 80 % of its stroke, the other axes at the start pose; ISO 230-2’s linear cycle run--repeatstimes (5): up through all targets, each approached from below, then down, each approached from above, with an overrun of 5 % of the stroke before the first target of each pass. At each target the machine rests--dwellseconds (0.3) and the tool’s real pose is averaged over the last tenth of that. Targets the machine cannot reach (with their overruns) are left out; one simulation runs the whole test, so the parts warm as it goes. -
Per target the mean deviation (real less target) and its standard deviation from below (
up) and from above (down), and their difference, the reversal. Per axis ISO 230-2’s figures: B the largest reversal error, R the bidirectional repeatability (the largest of 2s↑ + 2s↓ + |B_j|, 4s↑ and 4s↓), E the systematic deviation (range of all means), M the range of the mean bidirectional deviation, A the accuracy (max(x̄ + 2s) − min(x̄ − 2s)). At the tool, over the axes in metres, ISO 9283’s: AP the largest distance of a target’s barycentre (per direction) from the target, RP the largest l̄ + 3 S_l, vAP the largest distance between the two directions’ barycentres. -
What puts the tool off: everything the simulation has, as configured: backlash, gearbox twist and belt stretch under the load the axis holds at rest, guide and frame compliance, the encoder’s step, sensor noise (
effects.sensor_noise, off in the shipped configs, so the repeatability there is the reversal alone), friction where the axis settles. On the T-gantry the Z axis stands 52 µm low under its own weight on the belt; on the single axis the gearbox’s 3 arcmin of backlash give 17 µm of the 29 to 52 µm reversal (sim-cli accuracy single-axis --points 3 --repeats 2). -
Two more effects, both off unless a config file switches them on in
[effects]:thermal_growth, the screw or belt grown with its temperature, andlead_error, a lead (pitch) error table. They act on the axes listed in[accuracy]:[effects] thermal_growth = true lead_error = true [accuracy] # Steel 11.5e-6 / K by default; the belt's [estimate] is that of its steel cords, 11.5e-6 / K. screw_expansion_per_k = 11.5e-6 belt_expansion_per_k = 11.5e-6 axes = [ # A screw fixed at x = 0, 4 K warm by itself plus the rise of the guide's heated part, with a pitch table # (position, error) in the axis's unit, linear between rows. { axis = "x", drive = "screw", fixed_end = 0.0, rise_k = 4.0, heated_part = "guide_x", lead_error = [[0.0, 0.0], [0.4, 6.0e-6], [0.8, -2.0e-6]] }, ] [ratings] max_positioning_error_m = 50.0e-6 max_repeatability_m = 20.0e-6The real position is then the one the motor encoder holds plus expansion × (rise_k + the heated part’s rise) × (x − fixed_end) plus the table’s error at x.
heated_partis one of the machine’s heated parts (effects.part_heating; the gearbox and guide ids of the thermal view); without part heating its rise stays 0. Witheffects.load_encoderneither effect applies: the scale reads the carriage itself. -
The verdicts:
positioning-accuracyjudges the largest A of the axes in metres againstratings.max_positioning_error_m,positioning-repeatabilitytheir largest R againstratings.max_repeatability_m; without the rating, no verdict. -
From Python:
ks.accuracy(config, points=5, repeats=5, dwell=0.3), the same columns, asummaryper axis, the tool’s figures and the verdicts. -
What it does not know: the growth and the pitch error are a map from the encoder’s position to the real one, applied to the tool pose at rest; the run’s signals and dynamics do not carry them. The frame’s own growth, a temperature gradient along the screw and the screw’s own heating from its nut are not modelled (give them as
rise_k). See validation.
Programs: G-code and robot programs
--path FILE (and the app’s path field) reads a program as well as a path file, by the file’s extension. Its moves become the lines and arcs of a path, timed by the same planners.
$ sim-cli analyze t-gantry --path pocket.nc
$ sim-cli run delta-d3 --path pick.mod --time-optimal
| Extension | Read as | What is read |
|---|---|---|
.nc, .ngc, .gcode, .g, .cnc, .tap | G-code (DIN 66025 / ISO 6983) | G0 rapid, G1 line, G2/G3 arc (centre I, J, K from the start, or R; R < 0 the longer arc), F feed per minute, G17/G18/G19 plane, G20 inch / G21 mm (default), G90 absolute (default) / G91 incremental; X, Y, Z, A, B, C for the axes of those ids (A, B, C in degrees); G4 P (dwell in seconds), G61, G64 and G64 P (corner modes, see below). Taken without effect: N, O, M, S, T words, G40, G49, G54, G80, G94, comments ( ) and ;, % lines; M2 and M30 end the program |
.src | KUKA KRL | PTP {X 100, Y 0, Z 500}, LIN {...}, CIRC {aux}, {end} in mm and degrees; components left out are kept from the point before; A, B, C, S, T and others move axes of those names where the machine has them and are left out otherwise. On an arm in tool space (axes x, y, z, rx, ry, rz) A, B, C are the orientation (Rz(A) Ry(B) Rx(C)). $VEL.CP = 0.2 (m/s) is the speed along the path of the LIN and CIRC moves after it; PTP runs at the axes’ limits |
.mod, .prg | ABB RAPID | MoveL, MoveJ, MoveC to robtargets in place ([[x, y, z], [q1, q2, q3, q4], ...]) or declared (CONST robtarget p10 := [[...]];), positions in mm; on an arm in tool space the quaternion is the orientation. The speed: v100 (mm/s), vmax (the axes’ limits), in place [250, 500, 5000, 1000] or declared (VAR speeddata vfast := [...];), its TCP speed; the zone is left out |
any other, with lines MoveL, MoveJ, MoveC | robot moves as CSV | MoveL,x,y,z, MoveJ,x,y,z, MoveC,via...,end...: one value per axis in m (rad) |
| any other | path file | as above |
- The program starts where the machine stands; an axis a block does not name stays.
- Each move at a feed (G1/G2/G3 at F, a RAPID move at its speed, a KRL LIN or CIRC at
$VEL.CP) is planned within the axis limits with its speed along the path capped at its own feed. In G-code F is modal and the moves between two G0 form one run, so a changed F changes the cap with no stop (a corner still stops the path); RAPID and KRL runs at different speeds follow one another with a stop between. F is read as Siemens SINUMERIK does with its default FGROUP: degrees per minute for a block that moves only rotary axes, and in a mixed block the rotary axes follow in the linear axes’ time. F is the speed along the path: G1 X100 Y100 F6000 runs the diagonal at 100 mm/s, each axis at 70.7 mm/s (before 14 November F capped each axis, and the diagonal ran at 141 mm/s). G0,vmax, PTP and robot CSV run at the axes’ limits, as fast as the motors allow with--time-optimal. On an arm in tool space (x, y, z, rx, ry, rz) a RAPID or KRL speed is the tool centre’s, and the tool turns at no more thanprogram.orientation_speed_rad_s(500 degrees per second where the config has none, RAPID’s defaultv_ori): a move takes the longer of the two times, and one that only turns the tool runs at that rate. G-code’s F counts as above. - G-code’s dwell and corner words follow LinuxCNC’s G-code reference (the G-code above is otherwise DIN 66025, with Siemens’ reading of F):
G4 P0.5stops the path at the end of the move before, stands 0.5 s (P in seconds, 0 to 3600; whole profile cycles, as a cycle segment’s dwell) and goes on; hereG4stands alone in its block, which LinuxCNC does not ask.G61is LinuxCNC’s exact path: corner tolerance 0 from there on, so corners are stopped at and moves in one direction run on (G61.1, exact stop at every block, is not read).G64 P0.02, with P in the program’s length unit (G20 inch, G21 mm), sets the corner tolerance from that block on, asprofile.corner_tolerance_mhas it: a curve nowhere further than P from the two lines (0.5 mm at a right angle starts 2.67 mm before the corner). LinuxCNC bounds the distance from the programmed corner instead, so at a right angle the curve here passes up to sqrt(2) P = 1.41 P from the corner, at a sharper turn further.G64without P, andG64 P0as in LinuxCNC, is the config’sprofile.corner_tolerance_m(0 in every shipped config: then G64 stops too), where LinuxCNC keeps the best speed at any deviation;G64 Qis not read. The mode in force for the block after a corner governs it; a change of mode, like a dwell, ends the run, so the corner at the change is stopped at, whichever way the mode changes (LinuxCNC’s reference does not say how it treats that corner). Siemens’G4 Fand Fanuc’sG4 Pin milliseconds, are not read in these forms. profile.feed_override(default 1, above 0 and at most 2: this simulator’s limit, not a vendor’s; Sinumerik’s and LinuxCNC’s override switches go to 200 %) multiplies the programmed feed of every move with one (G1, G2, G3, a RAPID move’s speed, a KRL LIN or CIRC’s$VEL.CP); G0,vmax, PTP and robot CSV, which have no feed, are not scaled, and the axes’ limits still hold, so 2 on a feed above half the limit runs at the limit. It is a planning value, set in the config or with--set; the running simulation (OPC UA) does not change it. At 1 the plan is the one without the key.- A PTP or MoveJ is a straight line in the machine’s axes, as a MoveL: the readers suit machines whose axes are positions (gantries, deltas) and arms in tool space.
- Anything else is refused with its line: another G code (G41, G81, …) or letter, a G4 without P or with a P outside 0 to 3600 or a move in its block, a negative G64 P, a G1 before any F, an axis the machine does not have, an arc that also moves the plane’s third axis (a helix), an arc whose start and end are at different distances from its centre, MoveAbsJ, PTP_REL, SPLINE, a named KRL point, an undeclared robtarget.
Verdicts, search and optimise on a path
verdicts, search and optimise judge the configured cycle; with --path FILE (and --time-optimal) they judge a path or program in its place, read as run --path reads it (path file, G-code, KRL, RAPID, robot CSV). The path is planned once first, so a line that cannot be read is said with its number before any run. Every run then plans the path anew from where the machine stands, with that run’s config: the bands with each bounded value, each catalogue candidate with its motor, gearbox and drive, each optimiser setting with its limits.
$ sim-cli verdicts t-gantry --path pocket.nc --bands
$ sim-cli search t-gantry --path corner.path --time-optimal --series 1FK2
$ sim-cli optimise t-gantry --path corner.path --runs 20
- The run is measured as
analyze --pathmeasures it: the path and 0.3 s of rest. Witheffects.thermal_warm_startit is repeated (back to the path’s start and a rest between passes) until the windings and parts start a pass at the rises they settle at, as a cycle is. - The optimiser shortens the path’s time: the axis limits (all three factors), the input shaper, and, where the config allows a deviation (the larger of
profile.path_tolerance_mandcorner_tolerance_m), the transition curves and the corners rounded within it. It has no lifts to lower on a path; its changes are config values (profile.*,axis.*,effects.*). - Under the hood the config gets an optional
[path]table (config reference); a config file with one judges its path in place of the cycle in every command and in Python.
Pick from a moving conveyor
crates/machine-delta-d3/conveyor.toml is the D3’s default with a [conveyor] table: a belt along x at 0.3 m/s brings a part every second through a window 0.5 m long; the delta meets each part with the belt’s speed, moves with it while the gripper closes, lifts it off and places it at a fixed place. The table works the same on the other deltas and the gantries (one value per tool axis).
$ sim-cli analyze delta-d3 --config crates/machine-delta-d3/conveyor.toml
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.011 K
Conveyor: picks, tracking error during the grip along the belt, parts missed 60.00 / min, 0.098 mm, 0.00 / min
$ sim-cli verdicts delta-d3 --config crates/machine-delta-d3/conveyor.toml
...
pick-tracking,,0.00009770,0.001000,ok
parts-missed,,0,0,ok
$ sim-cli analyze delta-d3 --config crates/machine-delta-d3/conveyor.toml --set conveyor.pitch_s=0.5
Conveyor: picks, tracking error during the grip along the belt, parts missed 63.63 / min, 0.063 mm, 63.63 / min
- The delta’s own pass takes 0.94 s; at a part a second it waits for each part to reach the window, and picks 60 a minute, all the belt brings. At a part every 0.5 s it cannot keep up: the parts that leave the window unpicked are missed, and
parts-missedfails. pick-trackingis the most the tool was from the part along the belt while the gripper closed, againstconveyor.tracking_tolerance_m.run --cycleruns the passes as any cycle; its trace shows the payload attached at the end of each grip.- In the app, open the file with “Open…” in the config panel and start the cycle: the 3D view draws the belt, its slats running with it, and the parts on it.
- The T-gantry, the D2, the D4 and the linear delta have a conveyor example next to their default config (
crates/machine-t-gantry/conveyor.tomland likewise): the deltas pick a part a second from a belt at 0.3 m/s (the D4 turns each by 90 degrees to the place), the T-gantry a part every 5 s from a belt at 0.1 m/s, its pass taking about 3.7 s. - With
conveyor.ramp_sthe belt speeds up first; parts are picked during the ramp too, met where they are with their speed then. - With input shaping the passes are planned for the shaped setpoint: the part a mean shaper delay ahead and grip and release longer by the shaper, so the gripper closes while the shaped setpoint is on the part.
Shape the moves
profile.shape sets the shape of every move from rest to rest (MoveTo, the cycle’s segments); a [[cycle.segment]] can name its own with shape = "...":
"s-curve"(default): seven segments, the jerk limit used fully."sin2": the speed rises as sin² over each ramp (Bestehorn); its peak acceleration is (π/2) v / T_ramp, its jerk smooth inside the ramp."poly345"and"poly4567": the polynomial motion laws of VDI 2143, which run the whole move without a cruise; 4-5-6-7 also starts and ends without jerk. Peak speeds 1.875 h / T and 2.1875 h / T for a move of h in T.
$ sim-cli analyze t-gantry --set 'profile.shape = "sin2"'
$ sim-cli analyze delta-d3 --set 'profile.shape = "poly4567"' --set profile.deceleration_ratio=0.8
profile.deceleration_ratio brakes within a share of the acceleration limits (the S-curve and sin² then brake on a ramp of their own). For an axis that lifts against gravity, profile.vertical_axis = "z" ("-z" where up is minus) and profile.up_acceleration_ratio give it less acceleration upwards than downwards: a move up speeds up gently and brakes hard, a move down the other way round.
Trajectories (--trajectory, planned paths, a segment’s via points) run a cubic spline through their poses whose acceleration is continuous (profile.trajectory_spline = "c2"); "hermite" runs the curve as before 14 November 2026, whose acceleration steps at each pose.
Tune gains and use input shaping
The gains are in [drive]: kv_1_s (position), velocity_kp_nm_s_rad and velocity_tn_s (velocity), current_kp_v_a and current_tn_s (current). The three commands below put a test signal on the position setpoint only, without feedforward, so they show the feedback loops.
Friction feedforward. effects.friction_feedforward adds friction to the torque feedforward, so that the velocity loop’s integrator need not build it up while the axis moves. drive.friction_feedforward_model says which: "characteristic", the points drive.friction_feedforward_* a drive records at constant speeds, or "machine", the friction of the machine’s own model at the planned speed (guides, motor shaft, gearbox drag, joints, idlers, cable chain), which every machine tells. It is on with "machine" in the shipped configs where it cuts the following error while moving and the settling at the pick (the T-gantry’s 199.9 um to 182.0 um and 48.4 um to 43.4 um; the screw axis 79.9 to 31.1 um and 45.2 to 7.4 um); the validation has the table for every config and why the single axis and the linear delta keep it off. A feedforward does not change the loop’s margins. Try it on any config with --set effects.friction_feedforward=true --set 'drive.friction_feedforward_model="machine"'.
One line per axis:
$ sim-cli tuning t-gantry
axis,rise_time_s,overshoot,settling_time_s,bandwidth_hz
x,0.03025,0.0550,0.40375,8.754
z,0.04875,0.0000,0.09400,8.163
$ sim-cli tuning t-gantry --set drive.kv_1_s=150
axis,rise_time_s,overshoot,settling_time_s,bandwidth_hz
x,0.01200,0.3109,0.50000,22.184
z,0.00575,0.1751,0.04350,57.798
| Column | Unit | Meaning |
|---|---|---|
rise_time_s | s | Time from 10 % to 90 % of a 1 mm step |
overshoot | fraction | Highest excursion beyond the step, as a fraction of it |
settling_time_s | s | After this time the tool stays within 2 % of the step |
bandwidth_hz | Hz | Where the closed-loop gain first falls below 1/√2. Empty if it never does up to 200 Hz |
With Kv = 45 1/s (50 until 22 November 2026, when X’s closed loop rode its frame mode above 1/√2 and its band read 20.5 Hz) the position loop behaves like a first-order lag with time constant 1/Kv: bandwidth about Kv / 2π = 7 Hz. Z shows that plainly. In X the tool position counts the frame’s sway: the step sets the lightly damped frame mode (about 21 Hz) ringing, which is the 5.5 % of overshoot and the 0.40 s until the tool stays within 2 %. Kv = 150 makes X overshoot by 31 %.
Stability margins of the velocity loops. margins measures each motor’s velocity loop open: a sine torque is added to what the loop asks for, with the machine holding its start pose, and the loop’s answer gives the open-loop response L at 60 frequencies from 10 Hz to 2 kHz (a drive’s own measurement function works this way). Where |L| is still below 1 at 10 Hz (the integrators put the crossover lower), the measurement steps on down at the same spacing until |L| > 1, to 1 Hz at the lowest. A sharp resonance can hide between two of those points, 9.4 % apart: the machine’s resonances at the start pose (sim-cli modes) are measured too, and wherever L or the plant (motor torque to speed) turns by more than 30° or changes by more than 3 dB from one point to the next, their middle is measured as well, in up to eight rounds, down to points 0.1 % apart. On the default configs this adds a few points and leaves the margins nearly as they were:
$ sim-cli margins t-gantry
run,motor,crossover_hz,phase_margin_deg,gain_margin_db,peak_sensitivity,peak_frequency_hz,play_margin_db,result
,a,178.1,57.7,9.93,1.773,277.3,,ok
,b,170.5,56.1,9.84,1.768,277.3,,ok
start.pose=[0.1 0.05],a,210.3,51.1,9.18,1.927,277.3,,ok
start.pose=[0.1 0.05],b,170.1,57.1,10.21,1.733,253.5,,ok
start.pose=[0.9 0.35],a,166.2,58.5,10.20,1.721,253.5,,ok
start.pose=[0.9 0.35],b,181.7,55.9,9.57,1.828,277.3,,ok
start.pose=[0.9 0.05] effects.payload=false,a,172.6,56.8,9.80,1.769,277.3,,ok
start.pose=[0.9 0.05] effects.payload=false,b,202.5,61.8,9.63,1.852,277.3,,ok
...
Motor A: least over the poses the cycle stops at: 51.09 deg start.pose=[0.1 0.05], 9.18 dB start.pose=[0.1 0.05] (phase margin, gain margin, then the margin across the backlash, each at its pose)
Motor B: least over the poses the cycle stops at: 55.93 deg start.pose=[0.9 0.35], 9.57 dB start.pose=[0.9 0.35] (phase margin, gain margin, then the margin across the backlash, each at its pose)
$ sim-cli margins single-axis --bands
run,motor,crossover_hz,phase_margin_deg,gain_margin_db,peak_sensitivity,peak_frequency_hz,play_margin_db,result
,m,181.5,59.9,11.56,1.607,253.5,,ok
start.pose=[0.9] effects.payload=false,m,142.8,65.2,11.34,1.494,211.8,,ok
belt.damping_n_s_m=50.0,m,186.7,54.4,11.59,1.652,231.7,,ok
belt.damping_n_s_m=200.0,m,175.1,66.0,11.45,1.602,253.5,,ok
...
| Column | Unit | Meaning |
|---|---|---|
run | Empty for the config as it is at its start pose; start.pose=[...] for each other pose the cycle stops at (the targets of cycle.segment, once each, with the payload the cycle has there; a pose it reaches with and without the payload is listed twice, the one without as start.pose=[...] effects.payload=false); with --bands one row per motor for each value of [bounds] at its low and at its high bound, at the start pose. With several poses stderr names per motor the least phase margin, gain margin and margin across the play over them, each with its pose | |
crossover_hz | Hz | Where |L| = 1, the crossover with the smallest phase margin. Below 10 Hz where the measurement stepped down (the single axis with its motor’s Coulomb friction at the high bound: 4.4 Hz, 92.0°). Empty, as is phase_margin_deg, where the loop has no gain crossover down to 1 Hz; the result is then the gain margin’s alone |
phase_margin_deg | ° | The angle between L and −1 there: 180° plus the phase of L (the phase followed without jumps), by whole turns to between −180° and 180°, either sign, the least over the crossovers (a resonance that lifts |L| over 1 after the phase has passed −180° inside the unit circle crosses again away from −1: the linear motor axis’s coupling at its damping’s low bound, 53° there, not 180° − 334°); negative where L encircles −1 (gain_margin_db negative): the loop is unstable |
gain_margin_db | dB | By how much the gain may rise before L reaches −1, at the worst place where the phase falls through −180° that a later rise through −180° with |L| > 1 does not undo (a Nyquist count, the net one: a fall and a rise beyond −1, in either order, undo each other; below the crossover that is the conditionally stable kind); negative where |L| > 1 there (unstable); inf if no such place up to 2 kHz |
peak_sensitivity | The highest |1 / (1 + L)|: 1 over the shortest distance of L from −1. Up to 2 means at least 6 dB and 29° | |
peak_frequency_hz | Hz | Where it is highest |
play_margin_db | dB | With effects.gearbox_backlash on: by how much the gain may rise before the loop hammers across the play, the describing function’s margin with the rotor’s friction faded (each run is measured a second time with the play closed for it; margins takes some 15 % longer). Empty where the play does not change the loop (it stays closed under the test torque, or there is none on that motor). Told, not judged: the time run below decides result. The five-bar’s tool turn: 3.56 dB at the shipped 0.033 N m s/rad, −4.18 dB at 0.08 (it hammers from 0.0497 by it, from 0.048 in a time run with the friction off, from 0.078 with it on) |
result | ok, or FAIL where a margin is negative or the measurement is not valid: the loop ran into its torque limit or moved on its own (oscillated) during it. Then the loop is unstable and its margins are NaN. Also FAIL where the loop hammers across its gearbox’s play: inside the play the measurement sees the rotor alone and the margins can look fine, so with effects.gearbox_backlash on each loop is also kicked at rest by a sweep of its motor’s rated torque and watched for 0.3 s; one that keeps swinging from flank to flank (and does not with the play off) is named on stderr, e.g. Motor tool turn: hammers across the backlash at 650 Hz, 0.77 N m (the frequency, and the peak of the torque the loop asks for), the five-bar’s tool turn at 0.08 N m s/rad |
The default configs’ velocity gains were chosen with it: at least 35° of phase margin and 6 dB of gain margin in every run of --bands, also with --set effects.motor_friction=false --set effects.guide_friction=false (friction damps the loop near standstill, as the measurement holds the machine, but not in a cruise). Found: T-gantry 0.04 N m s/rad, at least 46.2° and 8.38 dB, 35.7° and 7.42 dB with friction off, then 0.037 (22 November 2026), when the margins took the cycle’s poses: 0.04 left 33.0° with friction off at the left with Z down, 0.037 at least 35.7° and 7.7 dB there; single axis 0.025, at least 50.3° and 10.83 dB, 39.1° and 10.05 dB with friction off (measured 17 November 2026 on the configs as shipped). The gain of 0.08 the configs had before left the T-gantry 12° and 2 dB (motor B hunted in its gearbox backlash in a cruise) and the single axis 1° and 0.3 dB (it went unstable with the belt at its stiffest bound). The EXCT-30 was tuned the same way, from 0.6 (34.9° and 6.6 dB, 29.6° and 5.8 dB with friction off) to 0.45: at least 48.8° and 9.36 dB, 40.6° and 8.61 dB with friction off (17 November). The figures for the earlier gains are from before 13 November, measured without the phase unwrapped.
Finding the gains: sim-cli tune. tune MACHINE [--phase-margin DEG] [--gain-margin DB] [--no-notch] does by program what the paragraph above did by hand. For each motor, in the order the machine lists them, it looks for the largest drive.velocity_kp_nm_s_rad at which the least phase margin and the least gain margin over all poses of the cycle (the start pose and every target of cycle.segment, as margins takes them) reach the targets (35° and 6 dB, the pair the shipped configs are held to) and the loop is stable at every pose (result ok in margins). It starts at the config’s own gain, doubles or halves it up to eight times until the targets are met and missed, then bisects six times (1.1 % resolution): at most 15 measurements per motor, each measuring every motor at every pose, with friction as configured and again with motor and guide friction off (the switches margins is held to in the tests: effects.motor_friction and the first of effects.guide_friction, joint_friction, winch_friction, dancer_friction the config has; friction damps the loop near standstill but not in a cruise), so a gain has to meet the targets in both (the least margins in the table are over both passes, the pose of the second named friction=off ...; a config with friction off already is measured once). drive.velocity_tn_s stays. drive.kv_1_s stays at the config’s own where the gain rises and is lowered where the gain falls, so that the position loop keeps its own margin Kp/J (Tn + 1/Kv) (the catalogue’s retune does the same with a floor of 1.25); tune prints the rows of the keys it changed, and a motor’s --set words are on the error stream. Motors act on each other through the mechanics, so after the last motor all motors are measured once more with all tuned gains set; a motor that misses the targets there is lowered by 20 % (at most four times) and named. The gains it prints are those of that last measurement. Where no gain meets the targets (or the joint check fails after four rounds) the rows say FAIL, the exit code is 1 and the gains are the best found. --bands is not part of it: the shipped gains were also held over the [bounds], so a tuned gain can be higher than a shipped one; run margins --bands on the result (the single axis: tune gives 0.042 against the shipped 0.025, which keeps 50° and 10.8 dB over its bounds where 0.042 keeps 30° and 6.0 dB; the rotary knife 0.33 against 0.20, 26° and 5.4 dB over its bounds against 43° and 10.0 dB; those figures are from before 25 November 2026, when tune took friction as configured alone: the T-gantry’s 0.049 and 0.051 against the shipped 0.037 left 33° with friction off, which is why the shipped gain is lower). The table has per key before and after and the least phase margin and gain margin over the poses before and after, each with the pose it occurs at; nothing is written to a file. Unlike tuning, which only measures one axis’s step and frequency response, tune changes the gains and measures the loops. Notch: for each motor in turn, where the gain margin stops its gain (the next gain up misses the gain margin) at a resonance (the next gain’s sensitivity peaks at a mode of the machine or up to 1.5 times above it), tune puts the notch (effects.notch_filter, drive.notch_frequency_hz) on the machine’s mode that makes the peak (the highest mode sim-cli modes reports at or below it, at that pose; on the peak itself a notch lags the loop where it already turns), 0.7 times that frequency wide (the flying saw’s hand-tuned ratio), searches the gain again and keeps the notch only where the gain is at least 15 % higher with it; the --set words then include the notch. --no-notch leaves it out. The switch belongs to the whole machine: where a notch is kept it is on, and every motor without one gets drive.<id>.notch_frequency_hz=0 (0 Hz is no notch) in the --set words, which add a motor’s own key where the config has none. The desktop app and the Python module do not have this yet.
The step response as a trace:
$ sim-cli step t-gantry --axis-index 0
time_s,setpoint,response
0.000000,1.000000000e-3,0.000000000e0
0.000250,1.000000000e-3,2.442885061e-10
0.000500,1.000000000e-3,3.121861117e-9
...
--axis-index N (0 is the first axis; --axis names a catalogue axis, as for every command), --size M (default 0.001 m), --time SECONDS (default 0.5). response is the tool position relative to where it stood, four samples per millisecond.
The closed-loop frequency response:
$ sim-cli bode t-gantry --axis-index 0 --count 8
frequency_hz,gain,gain_db,phase_deg
1.0000,9.830301e-1,-0.149,-11.512
2.1317,9.699874e-1,-0.265,-21.141
4.5440,8.748395e-1,-1.161,-39.797
9.6863,6.761918e-1,-3.399,-68.123
20.6478,6.353218e-1,-3.940,159.079
...
gain is tool amplitude over setpoint amplitude. The phase turning past 157° at 20.6 Hz is the frame mode, which the tool position counts. Options: --from HZ (1), --to HZ (200), --count N (40), --amplitude M (0.0005 m). Frequencies have to be above zero here too.
The mechanics without control:
$ sim-cli sweep single-axis --from 20 --to 200 --count 12
frequency_hz,gain_rad_s_per_nm,phase_deg
20.0000,5.522398e1,-82.358
...
131.5866,9.881837e1,-60.793
A sine torque on one motor on top of the holding torques, measured at that motor’s speed. Belt resonances show as peaks; the load swinging against the held motor shows as a dip. Options: --motor N (index, 0 is the first), --from (5), --to (500), --count (120), --amplitude NM (1.5 N m, or 40 % of the drive’s peak torque where that is less). Frequencies have to be above zero: --from 0 is refused (Configuration value is out of range: frequency). With friction on, a small amplitude mostly measures stiction: at 0.05 N m neither default machine shows a dip. The default amplitude finds it on every motor of both default configs and of exct-30.toml (21.6 Hz on the T-gantry, 20.7 Hz on the EXCT-30, 84.3 Hz on the single axis). A larger one is no better: at 2 N m the single axis shows a second, false dip at 61 Hz, which fit --sweep then takes as the lowest. The rows may be in any order of frequency, and --from may be above --to.
The notch filter: --set effects.notch_filter=true, with drive.notch_frequency_hz and drive.notch_bandwidth_hz. It acts on the torque setpoint.
Input shaping. A ZVD shaper spreads every setpoint over three steps half a vibration period apart, so that the swings they start cancel:
--set effects.input_shaping=true --set profile.shaper_frequency_hz=25 --set profile.shaper_damping=0.03
profile.shaper_type picks the shaper: "zv" (two steps, the shortest, 31 % left at ±20 % off the frequency), "zvd" (default, three steps, 10 %), "zvdd" (four, 3 %), "ei" (three steps, V = profile.shaper_ei_tolerance left at the frequency and at most about V over ±20 %) and "ei2" (two-hump EI, four steps, a wider band within V). Further resonances go into profile.shaper_modes, each convolved with the others, and can act on some axes only; profile.shaper_axes limits the first and second shaper the same way:
--set 'profile.shaper_axes = ["x"]' --set 'profile.shaper_modes = [{ frequency_hz = 42.0, damping = 0.02, type = "ei", axes = ["z"] }]'
Set the frequency to the resonance of the tool. On the T-gantry that changes with the Z height, so --set effects.shaper_follows_pose=true lets the shaper take the frequency from the machine at the planned pose. The shaper takes the lowest mode the machine reports, on the T-gantry the frame swaying with the carriage on it (18.7 Hz at z = 0.05 m and 20.1 Hz at z = 0.15 m for the default config at x = 0.9 m, from sim-cli modes t-gantry --axis-index 1 --points 11 --set 'start.pose=[0.9,0.35]'). The single axis reports its carriage on the belt (65.8 Hz at x = 0.5 m). A second shaper (profile.shaper2_frequency_hz above 0) follows the machine’s second mode as well: on the T-gantry the carriage swaying against the frame with the Z axis leaning, 30.7 Hz at z = 0.05 m.
Resonances over the stroke, to choose the shaper frequencies: modes asks the machine for its modes at --points places (21 by default) over the stroke of one axis (--axis-index, the first by default), the other axes at the start pose. A machine that reports none writes the column position alone. The app’s tuning panel plots the same over the axis it measures, under the shaper frequencies configured.
$ sim-cli modes t-gantry --axis-index 1 --points 3
position,mode1_hz,mode1_damping,mode2_hz,mode2_damping,mode3_hz,mode3_damping,mode4_hz,mode4_damping
0.000000,17.5908,0.02270,27.8795,0.03654,75.6296,0.08121,120.9295,0.05001
0.250000,20.5810,0.01634,53.4229,0.03945,88.3456,0.07216,203.2193,0.02491
0.500000,19.2547,0.01567,34.1440,0.02848,79.2017,0.07949,96.6925,0.06845
The Z axis is stiffest where its centre of mass hangs at the carriage (z = 0.3 m here), and every mode rises towards there (with --points 11 the second mode peaks at 54.4 Hz at z = 0.3 m).
What it does on the EXCT-30 cycle. The config has the shaper on, at a fixed 25 Hz with a second one at 17.5 Hz; the first run switches both off:
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml --set effects.input_shaping=false
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,...,path_error_peak_m,...,dwell_error_peak_m
a,1.852000,...,5.346e-4,...,5.856e-5
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml
a,2.048000,...,4.460e-4,...,3.544e-5
With the shapers the tool is 0.035 mm off its target in the dwell instead of 0.059 mm, and the cycle takes 2.048 s instead of 1.852 s.
The tool swing after a traverse is the signal axis.x.tool_deflection of run.
A second resonance. --set profile.shaper2_frequency_hz=62 adds a second ZVD shaper (damping profile.shaper2_damping), convolved with the first: nine copies of the plan instead of three, and each move ends both periods later. A shaper at f_s leaves cos²(π f / (2 f_s)) of an undamped mode at f: one at 25 Hz leaves 53 % of a mode at 62 Hz, and the two together leave nothing of either (the test a_second_shaper_suppresses_a_second_resonance_by_the_zvd_formula). 0, as in the two default configs, is no second shaper; the EXCT-30 has one at 17.5 Hz. It stays at its frequency when the first follows the pose. optimise tries it where a faster setting with the shaper still fails settling alone, at this frequency or, where it is 0, at the resonance the machine reports at the start pose if that is more than 10 % off the first shaper’s.
Fieldbus delay and jitter. --set effects.fieldbus_delay=true makes the drives use the motor setpoints profile.fieldbus_delay_cycles profile cycles late. --set effects.fieldbus_jitter=true makes each frame take 0 to profile.fieldbus_jitter_cycles cycles more, drawn evenly and the same in every run (from drive.noise_seed); a late frame leaves the drives the one before. At 1 m/s on the single axis one cycle of jitter puts the drive’s position setpoint 0 or 0.25 rad behind, half the time each: an RMS of 0.18 rad. It works with or without the delay.
Limits for this task:
- The step is 1 mm. With friction on it also shows stiction.
- The shaper handles two resonances at most (
profile.shaper2_frequency_hz, below). The frame mode and the stiffness of the control loops are not in the frequency the machine reports. - Each move’s setpoint ends one vibration period later. Where the cycle dwells or the gripper acts, both wait for the shaped setpoint, so the cycle above is 196 ms longer: two dwells, each waiting about one period of each shaper (1/25 s + 1/17.5 s = 97 ms). Segments without a dwell and without a gripper action go on with the plan.
- Most of the path error on the EXCT-30 is the frame giving way under the acceleration forces (0.53 mm peak without the shapers, 0.45 mm with them), which a shaper set to the tool’s resonance does little about.
- No real drive has been compared. Drive vendors do not document their internal filters, and the delays here are whole cycles. The fieldbus can have jitter (below), the drives’ own loops have none.
- The margins are measured with a tenth of the rated torque. Near standstill the motor’s Coulomb friction (smoothed over 0.5 rad/s) damps the loop at that amplitude, so the margins are larger with friction on; take the ones with friction off for a cruise.
- A gain that is fine at the nominal values can be unstable when rotor inertia, belt stiffness or inductance are off. That was found on the EXCT-30 config, whose velocity gain was lowered from 1.4 to 0.6 for it (and later to 0.45 for the margins above). Run
sensitivityafter tuning.
Take the settings to the drive. The gains and filters above are config keys in the simulator’s own units. sim-cli parameters MACHINE lists, for each motor, the settings of the config as resolved (the parts applied, a motor’s own [drive.<id>] over the shared one) with the SINAMICS parameter that takes each and its value in that parameter’s unit:
sim-cli parameters t-gantry --config crates/machine-t-gantry/exct-30.toml
motor,key,value,unit,parameter,name,parameter_value,parameter_unit,basis
The columns motor,key,value,unit are the config’s; parameter,name,parameter_value,parameter_unit the drive’s (the name as the Siemens document prints it); basis is printed where the parameter’s quantity and unit are the document’s and the conversion only changes the unit (Nms/rad stays, 0.02 s is 20 ms), derived where the relation is worked out here from what the document prints, and none where there is no parameter (the parameter columns are empty; a number is never guessed). The family comes from the config’s drive part: an S210 converter of converters_s210.csv or an S120 Motor Module of motor_modules_s120.csv (--drive, or [parts] drive); --family s120|s210 names it where the config has none. A config without a catalogue drive, or with another maker’s, is refused with a message that names the two families (the S210 New generation, the 6SL5310 converters, is not in the document and is refused too). Rotary servo motors only: a linear motor’s gains have other units (N s/m), a stepper or an induction motor has no such cascade. A setting whose effect is off in the config (the notch, the speed filter, the monitoring settings) was not used by the simulation and has no row. One line on the error stream says that the list is an aid to be checked against the drive’s own firmware version: the numbers come from Siemens’ SINAMICS S120/S150 List Manual 07/2018 (LH1) and the S210 Operating Instructions 09/2022, the pages are in catalog/siemens/parameters_s120.meta.toml and parameters_s210.meta.toml.
| Config key | S120 servo | S210 | Conversion |
|---|---|---|---|
velocity_kp_nm_s_rad | p1460 (Nms/rad) | p1460 | unchanged: torque at the motor shaft per speed error at the motor shaft |
velocity_tn_s | p1462 (ms) | p1462 | seconds × 1000 |
kv_1_s | p2538 (1000 rpm) | none | p2538 = Kv / 16.667 (the manual prints the unit 1000 rpm; Kv in 1/s is 1000/60 times it, derived); needs the function module position control |
velocity_feedforward_factor | p2534 (%) | none | × 100 |
precontrol_balance_s | p2536 (ms) | none | seconds × 1000. Not p1429: that symmetrizes the speed setpoint of the speed controller for torque precontrol; the simulator lags the position setpoint |
current_tn_s | p1717 (ms) | none | seconds × 1000 (Tn = L/R holds in the simulator’s winding and the drive’s alike) |
velocity_filter_s | p1441 (ms) | p1441 | seconds × 1000 (a first-order low pass on the actual speed in both) |
notch_frequency_hz, notch_bandwidth_hz | current setpoint filter 1: p1657 = 2 (general 2nd order filter), p1658 and p1660 = the frequency, p1659 = D, p1661 = 0; switch it on with p1656 bit 0 | none | D = bandwidth / (2 × frequency), from the manual’s f_3dB = 2 D f_notch; the simulator’s bandwidth is the −3 dB width of its second order notch. Filters 2 to 4 are p1662 to p1676 |
peak_torque_nm | p1520 and p1521 (Nm) | p1520, p1521 | + and − the value; the drive’s limit is constant where the simulator’s also falls with the torque-speed curve |
max_speed_rad_s | p1082 (rpm) | p1082 | × 60/(2π) |
off1_ramp_s, off3_ramp_s | p1121, p1135 (s) | p1121, p1135 | the drive’s ramp times run from the maximum speed p1082, the simulator’s from the rated speed: p1121 = ramp × p1082 / rated speed |
pulse_off_speed_rad_s | p1226 (rpm) | none | × 60/(2π) |
blocked_speed_rad_s, blocked_time_s | p2175 (rpm), p2177 (s) | none | × 60/(2π); unchanged |
standstill_time_s | p2543 (ms) | none | seconds × 1000; needs the function module position control |
No direct parameter, listed as none, and why: current_kp_v_a (the simulator’s gain is that of its one winding, three times a phase’s, and Siemens prints no convention for p1715 to convert to; the S210 documents p1715 in an alarm remedy only, no entry), torque_filter_s (a first-order lag of the torque setpoint: the current setpoint filters take a PT2 or a general filter, no PT1, and the S210 lists none; p1414 to p1416 filter the speed setpoint, a different place in the loop), torque_feedforward_factor (a servo has no weighting parameter: p1402.4 switches the torque precontrol on and the inertia, p0341 and p0342 with p1498 for the load, sets it; p1496 is for vector control only), following_error_window_rad and standstill_window_rad (p2546 and p2542 are in the drive’s length units, which depend on the axis’s setting p2506), ss1_time_s (p9652 is a Safety Integrated parameter, not read here), and on an S210 every key it has no row for: the S210 holds no position controller (its Kv is read-only, r5276; the position loop is in the controller above it), no current controller or current setpoint filter parameters were found in its documents, and no jerk or acceleration limits. The friction characteristic (p3820 and on) is not listed: it is ten (speed, torque) pairs of an array, which the config holds as its own lists. Other parameter numbers the documentation names are not settings of the tuned loops and have no row: the motor’s winding resistance and inductance (p0350, p0356), the function modules (p0108, for example bit 6, DSC with spline) and the sign-of-life tolerance of a cyclic fieldbus (p0925).
An example by hand: with drive.kv_1_s 50 1/s on an S120, p2538 is 50 / 16.667 = 3.0; with a notch of 60 Hz and a bandwidth of 20 Hz, p1658 and p1660 are 60 Hz and p1659 is 20 / (2 × 60) = 0.167. --set goes on top of the resolved parts as in every command, so --set drive.velocity_kp_nm_s_rad=0.3 shows 0.3 in the list, where a motor by name would have had its gain retuned.
Replay a drive trace and fit parameters
What a trace is. A CSV file with a header line. Needed columns, at the motor shaft:
| Column | Unit |
|---|---|
time | s |
motor.<id>.angle_setpoint | rad |
motor.<id>.angle | rad |
motor.<id>.speed | rad/s |
motor.<id>.torque | N m |
<id> is a and b on the T-gantry and m on the single axis. A unit in brackets after a column name is ignored (time[s]), and so are other columns. So a file written by sim-cli run is a trace. One row per profile cycle (1 ms) reproduces the position setpoints exactly. At least four rows; a shorter trace is refused.
Replay. The position setpoints of the trace are turned into tool poses and run through the simulator:
$ sim-cli run single-axis --cycle --time 2.5 --set effects.payload=false --set mass.carriage_kg=5.5 --out measured.csv
$ sim-cli replay single-axis --trace measured.csv --set effects.payload=false --out overlay.csv
motor,torque_rms_nm,torque_peak_nm,following_error_rms_rad,following_error_peak_rad
m,2.262567e-2,6.525419e-2,6.285277e-4,4.242306e-3
The replay starts from the trace’s own state, whatever the config’s start pose: at rest at a pose before the first row, it runs up to the first row’s position setpoint at the first row’s measured speed (a smooth run-up of 0.25 s or more, within a quarter of each axis’s acceleration limit), so a trace cut out of a longer motion replays without the jolt of a start from rest; behind the last row the motion carries on, it is not forced to rest. The pose the run-up starts at has to be within the axes’ ranges. Where the source records its setpoint in the same cycle as the position it is compared with (the simulator’s trace holds the setpoint the drive worked with up to the row, the one of the cycle before), give the setpoint time_offset_s = one position cycle in the mapping, so that the following errors compare.
Here the “measured” machine is the simulator with a carriage 1.5 kg heavier than the config. The table gives, per motor, the RMS and the peak of the difference between measured and simulated torque and following error. --out writes both side by side, one line per row of the trace:
time,motor.m.torque_measured,motor.m.torque_simulated,motor.m.speed_measured,motor.m.speed_simulated,motor.m.following_error_measured,motor.m.following_error_simulated
Fit, stage 1: rigid values from a trace.
$ sim-cli fit single-axis --trace measured.csv --set effects.payload=false
quantity,of,config,fitted,standard_error,units
moved_mass_kg,x,6.551676e0,8.072046e0,6.987e-3,kg
viscous_friction_n_s_m,x,2.734540e1,2.674585e1,9.172e-2,N s/m
coulomb_friction_n,x,2.082094e1,2.145799e1,8.114e-2,N
constant_force_n,x,2.001275e-2,2.373566e-2,2.641e-2,N
presliding_stiffness_n_m,x,6.780653e5,7.133195e5,2.504e5,
Moved mass, axis x: +1.520 kg ± 0.007. Add this to the masses that move with the axis. The trace cannot tell load mass from rotor and pulley inertia.
Viscous friction, axis x: × 0.978 ± 0.003. Scale the viscous friction of the axis's guide and of the motor shafts by this factor; the trace cannot tell the two apart.
Coulomb friction, axis x: × 1.031 ± 0.004. Scale the Coulomb friction and stiction of the axis's guide and of the motor shafts by this factor; the trace cannot tell the two apart.
Constant force, axis x: +0.004 N ± 0.026. The measured axis needs this much more than the config gives: a weight, an incline or a cable pull the config lacks.
Per axis, a least-squares fit of force = mass × acceleration + viscous × speed + Coulomb × sign(speed) + constant. The same estimate is run on the trace (fitted) and on the config’s own simulation of the same setpoints (config). The difference between the two is what the config is off by: here +1.520 kg, for a true 1.5 kg. The last column names each row’s unit (the axis’s own: kg m², N m s/rad and N m on a rotary axis). The advice lines go to the error stream. No config is edited.
Where the trace shows them, three rows of what the friction does beyond its sliding level follow, each estimated alike on the trace and on the replay: held_force_n, the force the axis holds at rest after its last motion (a friction smoothed through zero holds none, one that sticks holds what the loops wound up at the stop); breakaway_force_n, the friction at 1 to 5 % of the top speed while the speed falls towards a stop or a reversal, against the Coulomb value (above it where the friction rises towards rest); presliding_stiffness_n_m, from the travel over which the friction turns through zero at each reversal (Dahl’s law: level · ln 2 / σ). They are compared, not advised: the guides’ presliding state is effects.slide_presliding on the joint kit’s slides, the LuGre bristles on the single axis and the gantries. The trace cannot tell the guides’ friction from the motor’s or a screw nut’s: both act as a sign of the speed, so the fit gives their sum. A rigid fit needs the axis to move both ways (above). The three rows are there only where the trace tells them, in the CLI, in Python’s fit and in the app alike: the held force after a stretch at rest of at least 0.1 s past its first 0.1 s that follows a motion; the breakaway force on at least ten windows (110 rows at 1 ms) of slow stretches towards a stop or reversal; the presliding stiffness from at least two reversals the trace resolves, and only where its standard error is below its value. On a machine whose friction has no presliding state (a Coulomb step smoothed over speed, LuGre bristles) the presliding row still reads, as a Dahl σ, how far the axis travels while its friction turns, the drive train’s give and the loops’ lag included: a value to compare with the replay’s, not one to set. Not fitted in the motors’ coordinates (the delta, the SCARA, the arm).
Fit, stage 1 in the motors’ coordinates: the delta, the SCARA, the arm. Where the motors do not turn in proportion to the axes (the delta’s arms), or the inertia a motor turns changes with the pose (a SCARA’s or an arm’s elbow; trace::per_axis_fit decides), fit --trace regresses the motor torques on the machine’s own rigid model in regressor form, τ = Y(q, q̇, q̈) θ: per motor k, τ_k − τ_k,rigid = (θ_payload − 1) × (the payload’s share of τ_k,rigid) + ΔJ_k q̈_k + b_k q̇_k + c_k sign(q̇_k) + τ0_k, the rigid torques from Machine::rigid_motor_torque at the trace’s angles, speeds and accelerations (the acceleration from the angle, which an encoder measures far more precisely than the speed it differentiates). A trace that swings every axis at several frequencies (here a file of poses at times every 10 ms: the delta from its start pose ±0.2 m in x at 0.6 Hz and in y at 0.9 Hz, ±0.06 m up and down at 1.1 Hz, faded in and out over the first and last second, 8 s), of a delta with 4 kg of payload for the config’s 3 and twice the joints’ friction:
$ sim-cli run delta-d3 --trajectory swing.csv --time 8 --out swing-trace.csv --set mass.payload_kg=4 --set joint.friction_coulomb_nm=0.6 --set joint.friction_viscous_nm_s_rad=0.1
$ sim-cli fit delta-d3 --trace swing-trace.csv
quantity,of,config,fitted,standard_error,units
payload_factor,payload,9.950890e-1,1.329952e0,2.678e-3,
added_inertia_kg_m2,1,1.911730e-6,7.229015e-7,2.235e-6,
viscous_friction_nm_s_rad,1,5.324047e-3,5.447034e-3,2.083e-5,
coulomb_friction_nm,1,1.073096e-1,1.223851e-1,4.643e-4,
constant_torque_nm,1,-1.529438e-3,-1.119261e-3,8.429e-4,
...
Payload: × 1.337 ± 0.003. Scale the payload's mass by this factor.
...
Coulomb friction at motor 1: +0.0151 N m ± 0.0005. Add this, at the motor shaft, to the Coulomb friction of the motor and its joint; the trace cannot tell it from gearbox losses.
...
The payload’s factor is 1.330 / 0.995 = 1.337 for a true 4 / 3; the joints’ Coulomb friction, doubled from 0.3 to 0.6 N m at the joint, is +0.015 N m at the motor behind the gearbox of 20 (0.3 / 20, the SP+ 100’s teeth taken as loss-free with its no-load torque on), and comes out 0.0151 to 0.0152 ± 0.0005 on the three motors. (This trace has no noise; the test the_delta_fit_finds_a_heavier_payload_and_more_joint_friction fits the same motion with noise.) Pairs of values whose estimates correlate by more than 0.95 are named on the error stream (Not told apart by this trace: ...): only their sum is known. A factor on the rest of the rigid model (arms, platform) is not fitted: on the delta it was one with the motors’ added inertias and constant torques. A rotor and its arm’s own inertia about the joint are one added inertia. On strain wave gears (the SCARA’s, efficiency 0.75) the losses grow with a heavier payload’s torque and show as Coulomb friction on the joint that carries it.
Links of an arm or a SCARA, and a payload that comes and goes. On a machine built from a URDF chain the regressor also has per link the change of the rigid torques with its mass, first moment and inertia doubled (link_mass_factor) and with its first moment along x, y or z of its frame changed (link_first_moment_x_kg_m, …), the link’s other parameters kept; the torques are linear in each. Which of these a trace tells apart, the fit finds itself: it takes the payload’s and the motors’ values, then each link’s, keeping a value only where no value’s variance is then inflated by more than 100 (identify::WEAK) by the others’; every other one is folded into those before it and reported in what it combines (fit-combined), or as having no effect at all (fit-no-effect: a link’s first moment along its own joint’s axis). On the SCARA: arm 1’s mass factor adds 0.3048 / 100² = 3.048e-5 kg m² to motor 1’s inertia and nothing else; the quill’s and the flange’s enter the payload’s with 1.5 / 3 and 1 / 3 (one mass on one axis). With arm 2 1.25 and the quill 1.5 times heavier than the config, the payload’s value changes by + 0.445 ± 0.007, which those shares make 0.441. On the six-axis arm (gears rigid) link 2’s mass factor is a value of its own: + 0.577 ± 0.013 for 1.2 times link 2 and 1.3 times link 3 (0.565 through the shares); with its gears elastic, as shipped, + 0.558 ± 0.025, the load put where each gear’s twist holds it. With the shoulder held still it is folded, and named so. A payload picked or dropped during the trace is found in the torques and fitted before and after (payload_step_s): on the delta a pick at 3.5 s came out at 3.503 s, × −0.01 ± 0.01 before and × 0.99 ± 0.01 after; a pick at 2.5 s and a drop at 5.5 s in one trace at 2.489 and 5.502 s, × 0.006, 0.990, 0.007. On the fit per axis a step is the change of the payload’s factor on each axis (fit-axis-payload-step). In the app’s trace panel the links’ rows carry the link’s name, and the step its own row.
Fit, stage 2: belt stiffness from a frequency sweep.
$ sim-cli sweep single-axis --from 50 --to 130 --count 30 --amplitude 1.5 --set belt.stiffness_ea_n=3.5e5 --out sweep.csv
$ sim-cli fit single-axis --sweep sweep.csv --amplitude 1.5
quantity,of,config,fitted,standard_error,units
resonance_hz,m,8.452246e1,7.242377e1,1.285e0,Hz
resonance_damping,m,7.932269e-2,7.912026e-2,,
Stiffness between motor and load: × 0.699 ± 0.029. Scale the belt stiffness by this factor. It holds only once the masses are right, so correct those first and sweep again.
The sweep file needs the columns frequency_hz and gain_rad_s_per_nm (motor torque to motor speed). fit runs the same sweep on the config, at the frequencies of the file, on motor --sweep-motor N (default 0) with --amplitude NM (default as for sweep), and compares where the dip is. Where the response has more than one dip (the T-gantry has three, near 22, 62 and 107 Hz), the one lowest in frequency is compared, in both. The “measured” belt here has 0.7 times the stiffness; the fit says 0.699 ± 0.029.
Fit, stage 2 without a sweep: belt stiffness from the moves.
$ sim-cli run single-axis --cycle --time 3 --out cycle.csv --set belt.stiffness_ea_n=3.5e5 --set effects.payload=false
$ sim-cli fit single-axis --trace cycle.csv --stiffness --set effects.payload=false
quantity,of,config,fitted,standard_error,units
...
stiffness_factor,belt.stiffness_ea_n,1.000000e0,6.976264e-1,1.297e-3,
ringing_rms_nm,belt.stiffness_ea_n,,6.463437e-3,,
ringing_left_rms_nm,belt.stiffness_ea_n,,1.491646e-4,,
...
Stiffness between motor and load, from the moves: × 0.698 ± 0.001. ...
--stiffness replays the trace with the belts’ stiffness (belt.stiffness_ea_n, or the key --stiffness-key names) times a factor and takes the factor whose motor torques ring as the trace’s do: torques less their mean over ±10 ms, least squares over all motors and rows; nine replays from 0.25 to 4, then parabolas through seven replays twice (24 in all, about 1 s on the single axis). The replay has the config’s loops, filters and friction, which damp the ringing as they do on the machine. The standard error comes from the curvature of the sum of squares and from how far the replays scatter about the parabola. The rows ringing_rms_nm and ringing_left_rms_nm are the ringing in the trace and what the fitted replay leaves of it. A trace whose moves do not ring the belt enough is refused, exit code 2: No stiffness from this trace: its moves do not ring the load on its springs enough against the noise ..., where the standard error is above a tenth of the factor or the best factor lies at an end of 0.25 to 4. On the single axis with noise a move of 2 mm at 1 m/s³ and 0.2 m/s² is refused; two moves of 0.8 m at the config’s limits give 0.708 ± 0.015 for 0.7.
What the fit can and cannot recover:
| Recovered | Not recovered, or not told apart |
|---|---|
| Moved mass per axis (rotors and pulleys counted as mass at the axis) | Load mass from rotor and pulley inertia |
| Viscous friction per axis | Guide friction from motor shaft friction |
| Coulomb friction per axis | The belt’s damping from friction (the damping of the dip includes friction and the gearbox) |
| Constant force per axis (weight, incline, cable pull) | A rotor from its arm or link on a delta, SCARA or arm: one added inertia per motor |
One factor on the stiffness between motor and load, from a sweep or from the moves of a trace (--stiffness) | Which spring between motor and load is off: the factor counts all of them |
| On a delta, SCARA or arm: the payload’s mass as a factor, per motor added inertia, viscous and Coulomb friction and constant torque at the shaft | A factor on the arms’ and platform’s masses (it is one with the motors’ inertias and constant torques); friction from gearbox losses |
Drive delays and filters: per motor with sim-cli identify (below), not per axis | |
| Backlash, tooth stiffness, frame and Z-axis stiffness |
Judging the twin. replay --tolerance NAME=LIMIT,... states how far the replay may be from the trace: the names are the columns of the replay table (torque_rms_nm, torque_peak_nm, following_error_rms_rad, following_error_peak_rad), and only the limits you give are judged. The table is then one row per motor and limit, motor,quantity,value,limit,result, with ok or FAIL and the exit code 1 on a FAIL (see the exit codes above); without the option the table is the one shown above. fit --within N judges the fit: two columns apart (the distance between the fitted value and the config’s, in standard errors, the “Apart” of the dataset report) and result are added, a row more than N standard errors apart says FAIL, and a row without a standard error or without a config value (the ringing rows, the payload steps) says not judged. Exit code 1 where a row fails.
$ sim-cli replay single-axis --trace measured.csv --set effects.payload=false --tolerance torque_rms_nm=0.005,torque_peak_nm=0.02
motor,quantity,value,limit,result
m,torque_rms_nm,2.262567e-2,5.000000e-3,FAIL
m,torque_peak_nm,6.525419e-2,2.000000e-2,FAIL
Writing a fit back. fit ... --write FILE writes the config (the file of --config with the --set values and parts of the command line, else the machine’s default) to FILE with every fitted quantity that is exactly one key of it set to the fitted value, and bounds.KEY = [value - K * error, value + K * error] beside it, K from --sigmas K (2 by default: about 95 % of a normal error). A bound is pulled in where the machine would refuse it (a stiffness must stay above 0). Today that is the factor on the stiffness of --stiffness (value = the config’s value times the factor, error likewise). The payload’s factor of a joint fit (payload_factor) is not written: on a cycle that picks and places, the trace holds the payload part of the time and the factor is a share of that time as much as of the mass (the delta’s cycle run with 4 kg against its 3 kg came out at 0.72 ± 0.28 times the config’s). The other quantities are the trace’s values of what several keys make up (the moved mass of an axis is carriage and payload and whatever else moves; a friction that the guide and the motor share), so no single key can take the difference without a guess of how it splits; each is listed on the error stream with that reason and not written. A key that a named part ([parts]) sets is not written either, because the part would overwrite it. Nothing is written where the fit failed or nothing can be written, and FILE is overwritten only where you name it (name the input config to update it in place). The comments of a written file are not kept, and its keys come in alphabetical order within their tables (the values are the same). verdicts --bands reads the written bounds like any others. Not for fit --dataset.
Limits for this task:
- The gripper. A trace does not say when a payload comes and goes, so a cycle trace is replayed with the payload as the config starts it. A cycle trace of a machine that grips, fitted against a config with the payload on, comes out wrong: the single axis’s own default cycle fits as −0.839 kg. Record without payload, or switch it off as above.
start.poseof the config has to be where the trace starts.- An axis that the trace does not move in both directions is not fitted (
Axis x: not fitted. The trace has to move it in both directions.). One direction cannot tell Coulomb friction from a constant force. - A wrong friction shows as a few percent of wrong mass and the other way round, because of gearbox losses. Change the config and fit again.
- The stiffness factor holds only once the masses are right.
- A sweep with a small amplitude finds no dip when friction is on. A sweep at 0.05 N m gives
No stiffness fitted: the measured sweep or the config's own shows no dip with both flanks inside the swept range.That is a failure like any other:fitends with exit code 2, after writing what a trace gave. The sweep also has to contain the dip and both its flanks. Its frequencies have to be above zero. - All of this was tested on traces the simulator made, with added noise. No trace of a real drive has been read.
Vendor traces. replay, fit and identify take --map FILE beside --trace FILE: a mapping that says which signals of an export of a SINAMICS (Startdrive), TwinCAT Scope or CODESYS trace, or of any CSV, are the position setpoint, position, speed, torque and torque setpoint, and how to convert their units (LU, increments, mm, 1/min, %, ‰) to rad, rad/s and N m at the motor shaft. A template is in datasets/template/map.toml.
Identification without a config. sim-cli identify --trace FILE --map FILE fits one motor’s drive train from its own trace: total inertia, viscous, Coulomb and (where the trace shows it) Stribeck friction, the LuGre presliding stiffness, a constant torque, and the lag and dead time from torque setpoint to torque and from position setpoint to position. With --from HZ --to HZ (a trace with a noise excitation), --sweep FILE or --step-from S (a torque step) also stiffness and damping between motor and load as a two-mass model. Every value with its standard error and 95 % interval, and how well each model reproduces the trace. Which test moves to record, at which sample rate, and how to read the result: Measuring a drive train. Measured datasets are published in datasets/ and checked with sim-cli check-dataset DIR.
See where torque and energy go
Six views take one effect apart instead of leaving it in the torque trace: where each motor’s torque goes, where the energy of a cycle goes, what each guide’s friction does, how warm windings, gearboxes and guides get, what each belt section carries, and what one effect changes when it is switched off. How each figure is computed is in the model reference.
Torque breakdown. --breakdown FILE writes, per motor, the peak and the RMS over the analysed pass of the four parts of its torque, and of the torque itself:
$ cargo run -q --release -p sim-cli -- analyze t-gantry --breakdown breakdown.csv
$ cat breakdown.csv
motor,part,peak_torque_nm,rms_torque_nm,torque_unit
a,inertia,2.903131e-1,6.233214e-2,N m
a,gravity,1.404312e-1,1.223996e-1,N m
a,friction,1.457093e-1,8.308908e-2,N m
a,rest,5.968775e-2,1.123096e-2,N m
a,torque,5.598153e-1,1.689952e-1,N m
b,...
- inertia: what accelerates every moved mass, and the rotors and pulleys turning with the load.
- gravity: what holds the load against its weight. On the T-gantry each motor holds (m_z + m_runs) g r / (2 i) = 0.140 N m, one up, one down, m_runs the 0.16 kg of the belt’s vertical runs.
- friction: guides, motor shafts and brakes, gearbox losses, idlers, cable chain.
- rest: everything else, mostly the belt and gearbox: the load lagging behind the motors on the belt, ringing, backlash. Also ripple and cogging, tooth meshing, the process force and the end stops.
At every moment the four parts add up to the motor torque. Their peaks and RMS values do not: they come at different times. A rest that is large against the torque means the belt or the gearbox is doing a lot of the work; on the rigid model it is nearly zero.
Energy budget. --budget FILE writes where the energy drawn from the supply over the pass went, in joules and as a share of the supply:
$ cargo run -q --release -p sim-cli -- analyze t-gantry --budget budget.csv
$ cat budget.csv
item,energy_j,share
supply,1.442442e2,1.000000
copper.a,3.450455e0,0.023921
copper.b,2.970988e0,0.020597
resistor,6.666756e0,0.046219
discharge,0.000000e0,0.000000
line_module,2.884884e0,0.020000
power.guide_x,5.099448e1,0.353529
power.guide_z,1.914197e1,0.132705
...
power.shaft_a,2.454090e1,0.170134
power.shaft_b,2.454094e1,0.170135
power.gearbox_a,4.569203e0,0.031677
power.gearbox_b,4.484409e0,0.031089
power.belt,2.756173e-3,0.000019
...
windings,-2.897288e-7,-0.000000
capacitors,-4.798364e-4,-0.000003
energy.kinetic,6.373269e-9,0.000000
energy.potential,-2.010274e-7,-0.000000
energy.elastic,1.020049e-8,0.000000
payload,-2.268427e-4,-0.000002
unaccounted,-4.028368e-4,-0.000003
| Item | What |
|---|---|
supply | Energy from the supply. With effects.dc_link what the rectifier (or the line module) drew from the line into the DC link; without, what the drives drew less what they fed back |
copper.<motor> | Copper loss in each winding |
resistor | The braking resistor (with effects.dc_link) |
discharge | With effects.dc_link: what the DC links of drives switched off lost through their bleeders (ratings.dc_link_discharge_time_constant_s), which the rectifier drew back; 0 while the drives are on |
mains | With effects.regenerative_supply: what the line module fed back into the mains |
line_module | With effects.dc_link: what the rectifier or line module lost of what it drew (2 % on the T-gantry), and with effects.regenerative_supply also of what it fed back |
power.<place> | Each loss of the machine: guide friction per guide, idlers, cable chain, shaft friction and brake per motor, gearbox per motor, belt damping, frame and Z guide damping, end stops, and power.other for ripple, cogging, tooth meshing and the process force (these can give energy as well as take it) |
windings, capacitors | What the windings’ inductance and the DC link capacitors hold more at the end than at the start |
energy.kinetic, .potential, .elastic | What the machine holds more at the end of the pass than at the start; near zero for a repeating cycle |
payload | Energy that left with the payload put down, less what came with the one picked up |
crash | With effects.crash: the work the obstacles’ pushes took out of the machine (what their damping lost and their springs hold) |
unaccounted | What the rows leave of the supply. Below 0.1 % of it on every config, the loss-free ones included. The electrical side alone (supply against copper, resistor, mains, line module, windings, capacitors and the work of the torques on the shafts) is checked to a millionth of the supply: the winding current is integrated together with the mechanics |
On the default T-gantry the guides take half the supply, the motor shafts a third, gearboxes, windings, the braking resistor and the rectifier a few percent each; the belt’s damping takes almost nothing.
Friction per guide and joint. The app draws, per guide (and per joint of an arm, as a torque in N m over its angular speed in rad/s), the friction force of steady sliding over the speed (Coulomb level, viscous part and the Stribeck rise towards standstill) at the guide load of the moment, and the point where the guide is now. A point off the curve is a guide that is not sliding steadily: breaking away, reversing, or held. The command line has no such view; sim-cli run writes the same signals (axis.<id>.friction_speed, _coulomb, _viscous, _stiction, _load_scale).
The torque parts, the loss powers and the energy parts are signals too, so sim-cli run writes them, the scopes of the app can show them and a PLC can read them.
Temperatures. The app draws the temperature rise of each motor winding over the scopes’ window and, with the effect “Gearbox and guide heating” (effects.part_heating, off by default) on, of each gearbox and guide. Each of these warms with its own loss (power.gearbox_*, power.guide_*) through a thermal resistance, with a time constant and up to a rated rise, all three in [thermal] of the config. The table gives each one’s rise now, where it settles when the analysed cycle repeats for long (for a part: thermal resistance times its mean loss), its rated rise and the share of the rating where it settles, marked “(above the rating)” over 100 %. The share is that of the settled rise, because the rise now is a few percent of it for many minutes; the checks gearbox-thermal and guide-thermal judge the same settled rise. On a direct drive (EXCT-30: gearbox ratio 1) there is no gearbox to warm; its power.gearbox_* is the coupling’s damping and is labelled so. In the 3D view the motor housings, gearboxes, the carriage and (T-gantry) the Z axis take the colour of their rise against their rated rise: blue cold, yellow at half, red at the rating, magenta above it; the view draws this scale. With the default time constants of 20 to 40 minutes, a minute of the scopes shows a slow climb; to watch a part settle, shorten its time constant. With the effect “Temperatures act on friction, gearbox losses and belt stiffness” (effects.thermal_feedback, off by default) the parts warm the same way and feed back: a guide’s viscous friction follows the viscosity of its lubricant (0.28 of it at 30 K above 20 °C), a gearbox loses less as its oil thins (a 95 % gearbox has 96.8 % at 30 K, with half its loss taken as viscous), and the belt’s stiffness follows the ambient temperature, a little. The values are in [thermal_feedback]: the ambient temperature, the reference temperature the config’s friction and efficiency hold at, the lubricant’s viscosity slope, the viscous share of the gearbox’s loss and the belt’s loss of stiffness per kelvin. It replaces effects.temperature, whose two hand-set factors are not used while it is on. Over one cycle of seconds the parts barely warm with the default time constants of 20 to 40 minutes, so the cycle’s figures move only where the ambient differs from the reference; to see a part settle where its loss and its heat flow balance, shorten its time constant. The command line writes the rises with run (signals motor.<id>.winding_temperature, temperature.<part>).
Belt teeth and spans. With effects.belt_tooth_jump (off by default) the belt’s teeth climb out of a motor pulley’s grooves when the pull there exceeds what the slack side’s tension holds them in with (belt.tooth_jump_factor times the teeth in mesh times pitch over radius, times the slack side’s tension: where both sides share the pull evenly, about 1.5 times the pretension with the defaults), and the belt slides one tooth on, or back. The signals pulley.<motor>.tooth_jumps count the jumps and pulley.<motor>.tooth_slip is how far the belt has slipped over the pulley; power.tooth_jump is what the jumps take, in the energy budget. Any jump in the cycle fails belt-tooth-jump. With effects.belt_span_vibration (off by default) each free span of the belt has its first sideways frequency, sqrt(tension / mass per metre) / (2 · length), as a signal belt.span.<i>.frequency, and belt.span_detuning says how far the closest of them is from what the drive excites: the tooth mesh (belt speed over pitch) and the motors’ ripple and cogging. belt-span-resonance fails where a span runs within ratings.belt_span_resonance_band (10 %) of an excitation while the axes move at a steady speed. Only the frequencies are computed, not how far a span swings.
Belt sections. Per section the tension (the pretension dashed) and the stretch in mm over the scopes’ window, and a table of both now with the tension allowed (ratings.belt_max_tension_n) and the share of it. The rating is not drawn: at five times the pretension it would flatten the lines. The stretch is the section’s length less its unstretched belt, so a section at pretension is stretched too (0.18 mm on 0.3 m at 300 N and EA = 5·10⁵ N). The 3D view colours each section by the same tension: the belt’s own dark grey at pretension, towards red above it (red at twice the pretension), towards blue below it (blue when slack); the view draws this scale with its numbers. sim-cli run writes the signals belt.<i>.tension and belt.<i>.stretch.
An effect on and off. compare --effect NAME runs the analysed pass of the cycle twice, with effects.NAME on and off, whatever the config has it at, and writes the chosen signals side by side, once per millisecond; --differences FILE writes the peak and the RMS of on less off per signal:
$ cargo run -q --release -p sim-cli -- compare t-gantry --effect guide_friction --signal motor.a.torque --signal motor.b.torque --out compare.csv --differences diff.csv
$ head -3 compare.csv
time[s],motor.a.torque.on[N m],motor.a.torque.off[N m],motor.b.torque.on[N m],motor.b.torque.off[N m]
0.0000,7.520407591e-2,1.125048092e-1,-1.330958343e-1,-1.125863287e-1
0.0010,7.469869879e-2,1.120541440e-1,-1.334750278e-1,-1.132823387e-1
$ cat diff.csv
signal,unit,peak_difference,rms_difference
motor.a.torque,N m,1.001877e-1,4.635342e-2
motor.b.torque,N m,9.671330e-2,4.672720e-2
Without --signal every signal is written. In the app, the part “Effect on and off” of the effect views picks the effect and one quantity of the scopes (torque, speed, following error, …), runs the comparison in the background on the config as it is, and overlays both runs: on solid, off dashed in the same colour, one colour per axis or motor, with a table of the difference. An effect that changes the cycle’s timing (corner blending, input shaping) is compared only over the time both passes have.
Record raw signals, switch the drives off
$ sim-cli run single-axis --cycle --time 2.5 --out trace.csv
Writes every signal as CSV, one column per signal with its unit in the header (axis.x.position[m], motor.m.torque[N m], …).
| Option | Effect |
|---|---|
--move a,b | A point-to-point move to this pose, all axes synchronised |
--cycle | Run the configured cycle |
--trajectory FILE, --path FILE [--time-optimal] | See Run a path |
| none of these | The machine stands at its start pose |
--time SECONDS | Simulated time. Default 2 |
--every STEPS | Write every N-th base step. Default 16, which is one row per millisecond |
--disable-at SECONDS | Switch the drives off at that time |
--stop-at SECONDS [--stop-category 0|1|2] | Stop the machine at that time in that stop category (0 without it; see emergency stop) |
The signals:
| Signal | Unit | Meaning |
|---|---|---|
time | s | Simulated time |
payload | 0 or 1 | Whether the payload is attached |
axis.<id>.position, .velocity | m, m/s | Tool position and speed (on the T-gantry in X: of the tool tip over the floor, which is the carriage on the beam plus frame.deflection plus axis.x.tool_deflection) |
axis.<id>.position_setpoint, .velocity_setpoint, .acceleration_setpoint | m, m/s, m/s² | The controller’s setpoints, after input shaping and before the fieldbus delay, as the last profile cycle set them |
setpoint_age | s | How long ago, at the sample, the profile cycle set those setpoints (0 to one cycle): the plan now is position + (velocity + acceleration · age / 2) · age, what the tool position error is measured against |
axis.<id>.following_error | m | Motor following errors transformed to the tool axes |
motor.<id>.angle, .speed | rad, rad/s | Motor shaft, before the gearbox |
motor.<id>.torque, .torque_command | N m | Torque from the winding current, and the velocity loop’s setpoint for it after the torque limit |
motor.<id>.current, .voltage, .electrical_power | A, V, W | Winding |
motor.<id>.winding_temperature | K | Temperature rise of the winding |
motor.<id>.dc_link_voltage, .braking_resistor_power | V, W | DC link. With effects.shared_dc_link the same for every motor |
motor.<id>.speed_command, .following_error, .angle_setpoint | rad/s, rad, rad | Position loop; the setpoint is the one the loop compared with (fine interpolation, balancing) |
motor.<id>.torque_feedforward, .torque_feedback, .speed_from_position | N m, N m, rad/s | The velocity loop’s output in its two parts, feedforward (rigid or inertia model, friction) and PI controller, and the position loop’s share of the speed command (Kv times the following error) |
gearbox.<motor id>.output_torque | N m | Torque at the gearbox output, on the pulley. What the checks pulley-torque, gearbox-peak and gearbox-continuous judge |
belt.<n>.tension | N | Tension of belt section n |
axis.<id>.belt_stretch | m | Tool position minus what the pulley angles say |
axis.<id>.friction | N | Guide friction force |
belt.slack_time | s | Seconds any belt section has spent without tension, counted up |
pulley.<id>.radial_load | N | Pull of the belt on the pulley shaft |
axis.<id>.guide_load | N | Load on the guide |
frame.deflection | m | Frame deflection in X (T-gantry) |
axis.x.tool_deflection | m | Tool tip against the carriage in X (T-gantry) |
Drives off. With --disable-at the drives give no torque from that time. The motor holding brakes engage (effects.holding_brake, on both machines, in the elastic and in the rigid model):
$ sim-cli run t-gantry --move 0.5,0.2 --time 1.5 --disable-at 0.5 --out disable.csv
In that run the Z axis is at 0.2276 m at 0.498 s, moving, and rests at 0.2190 m at 1.498 s: a brake that engages at speed slips with its torque (motor.brake_torque_nm) and no more until the axis stands. With --set effects.holding_brake=false it falls to the lower hard stop (z = −0.00008 m at 1.498 s). A move or cycle under way is dropped, not resumed. While the drives are off their windings cool (with effects.winding_heating, by the factor e every motor.thermal_time_constant_s), and a DC link above the bus level, after a trip, discharges through its bleeder with ratings.dc_link_discharge_time_constant_s (130 s, an estimate) down to the bus level.
Connect a PLC over OPC UA
cargo run --release -p sim-opcua -- t-gantry --port 4840 --lang en
This prints OPC UA server listening at opc.tcp://127.0.0.1:4840/ and the folder of its certificates (Certificates in ...\pki: ...), and runs the machine in real time until stopped. The machine name (or --machine-file), --config, --set and --trajectory as sim-cli reads them, --port (default 4840), --lang, --host (default 127.0.0.1), --cycle-ms (default 10) and the security options --pki, --trust-all, --user, --user-cert and --renew-certificate are the only arguments. A machine the simulator does not have, a config, port, language, address or cycle it cannot read and any other word are refused with a message and exit code 2. PLCopen function blocks per axis, the real-time pacing and its measurement, TwinCAT and CODESYS examples and the soak test are in PLC virtual commissioning.
| Property | Value |
|---|---|
| Endpoint | opc.tcp://127.0.0.1:PORT/ |
| Security | None, and Basic256Sha256, Aes128_Sha256_RsaOaep and Aes256_Sha256_RsaPss with Sign and with SignAndEncrypt; anonymous unless --user or --user-cert (see Security) |
| Namespace | urn:kinematics-simulation |
| Node ids | Strings in that namespace, as in the table below |
| Update rate | Every signal is published once per tick of the simulation loop: 100 times a second at the default --cycle-ms 10 |
| Node | Type | Access | Meaning |
|---|---|---|---|
signal.<signal id> | Double | read | Every signal of the signal table, e.g. signal.axis.x.position, signal.motor.a.torque |
command.target.<axis id> | Double | write | Target of the next point-to-point move, e.g. command.target.x. Reads the planned position until it is written |
command.move | Boolean | write | true starts the move to the targets |
command.setpoint.<axis id> | Double | write | Streamed position setpoint. The simulator interpolates towards it over profile.setpoint_interval_s. Reads the setpoint the controller follows |
command.cycle | Boolean | write | true starts the cycle, false stops it after the segment under way |
command.disable | Boolean | write | true switches the drives off; brakes engage |
command.enable | Boolean | write | true switches the drives on again |
command.stop_category | Int32 | write | 0, 1 or 2 stops the machine in that stop category (see emergency stop); reads −1 until written |
command.path | String | write | A path in the text of a path file (see Run a path), one piece per line. Reads back what was written |
command.path_time_optimal | Boolean | write | true plans the path as fast as the motors allow (as --time-optimal), false within the axis limits (the default) |
command.run_path | Boolean | write | true plans command.path from where the machine stands and runs it |
status.busy | Boolean | read | A move, a path or the cycle is under way |
status.refused | String | read | Key of the last refused command, or empty |
status.cycle_s, status.cycle_period_s, status.jitter_max_s, status.jitter_rms_s, status.overruns, status.cycles, status.realtime_factor, status.steps, status.client_*, command.reset_pacing | read (reset: write) | The real-time pacing and the clients’ read and write intervals, as PLC virtual commissioning describes them |
How commands behave:
- The servo loops stay inside the simulator. The PLC sends targets or position setpoints, not torque.
- Numbers may be written as Double, Float, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64 or UInt64 (64-bit integers up to 2^53). Anything else is answered with
BadTypeMismatch. - Setpoints of several axes written within the same 10 ms are taken together as one setpoint.
- An axis that is not written stays where it is.
command.target.<axis id>reads the planned position until it is written, and again once the move it was written for has been commanded.command.setpoint.<axis id>reads the setpoint the controller follows, which is the planned position whenever no setpoint is on its way. So after a move or a cycle, a write to one axis does not send the others back to where they were before. - A path is written first and then started: write
command.path(andcommand.path_time_optimal) together withcommand.run_path, or before it. Written together,command.pathandcommand.path_time_optimalcount in whichever order they come in the write: the path run is the one written last. The commands of one write are carried out in the order written, and the path is planned when its turn comes, from where the machine stands then (after acommand.enablewritten before it, for example), exactly assim-cli run --pathplans it, and runs in real time. status.refusedholds a key such aserror-busy,error-target-out-of-range,error-setpoint-too-farorerror-disabled. For a path:opcua-error-path-line(a line that cannot be read),error-path(e.g. an arc on a machine with one axis),error-path-first-arc,error-path-range(outside the stroke),error-path-long(more than ten million poses),error-path-torque,error-path-tension,error-path-guide,error-path-rating,error-path-singular,error-path-collisionanderror-path-self-collision(time-optimal only),error-busy,error-disabled. It stays until a command of the same kind (move, path, setpoint, cycle start, stop, disable, enable) is accepted. Accepted commands of another kind, such as a stream of setpoints, leave it.- A streamed setpoint is refused while a move or the cycle runs.
- A setpoint further from the last one (or, with none on its way, from where the axis stands) than the axis travels at its speed limit in one
profile.setpoint_interval_s(8 mm for the T-gantry’s X axis) is refused witherror-setpoint-too-farand not carried out. A PLC that has fallen further behind catches up with a move. A stream of one setpoint per interval is followed at its own speed, up to the speed limit; a setpoint that comes early finds the axis short of the last one and is followed that much faster. - If the host cannot keep up with real time, the simulation falls behind instead of piling up work.
Limits for this task:
- Not tested against a real PLC. The client in the tests is written with the same library as the server. Interoperability with Siemens, Beckhoff or CODESYS clients, their data types, security settings and cycle jitter are untested.
- The server binds to one address (127.0.0.1 unless
--hostnames another) and serves the config it was started with (--config,--set); the config cannot be changed while it runs. - One user name (
--user) or user certificates (--user-cert), no user accounts beyond those; no methods. - Paths:
status.refusednames the key, not the line that could not be read. Poses at times run only from--trajectoryat the start; there is no node for them. A path is planned inside the simulation’s tick (10 ms by default): a long time-optimal path that takes longer to plan makes the simulation fall behind real time for that moment. - The server writes its keys into a folder
pkiin the working directory, or the one--pkinames.
Use the model in Simulink / Modelica via FMI
cargo build --release -p sim-fmi # the FMU's binary, target/release/sim_fmi.dll
sim-cli fmu t-gantry --config crates/machine-t-gantry/exct-30.toml --out exct30.fmu
fmu writes the machine with its config (the default, or --config, --motor, --supply, --gearbox and --set as for every command) as an FMI 2.0 Co-Simulation FMU. The FMU runs the same simulation as sim-cli run: drives, controller, every switched-on effect. Import it in Simulink (FMU block), OpenModelica (File > Import > FMU, or importFMU), Dymola (File > Import > FMU) or any other FMI 2.0 tool; a controller or PLC model there sends the position setpoints and reads back the signals. FMI 2.0 is the default because every one of those tools imports 2.0 Co-Simulation; --fmi 3 writes an FMI 3.0 Co-Simulation FMU instead, with the same variables and the binaries under binaries/<architecture>-<system> (for example binaries/x86_64-windows). FMI export describes both versions, the FMU state, the derivatives, why there is no Model Exchange, how the FMUs were validated and how to import them.
What is in the FMU:
| File | Content |
|---|---|
modelDescription.xml | The variables below, generated from the machine’s signal list and config, with units and descriptions in the language of --lang |
resources/config.toml | The config as given on the command line, catalogue parts filled in |
resources/model.txt | Machine id and language |
binaries/win64/sim_fmi.dll | The simulator. One binary for every machine; the resources say which machine it runs |
By default fmu takes the binary built next to sim-cli (target/release/sim_fmi.dll, on Linux libsim_fmi.so); without it, it stops and says how to build it. --binary FILE names it instead and may repeat: a .dll goes to binaries/win64, a .so to binaries/linux64, a .dylib to binaries/darwin64 (the extension in any case: SIM_FMI.DLL is stored as sim_fmi.dll); two for the same platform are refused. An FMU for Windows and Linux is made by building sim-fmi on Linux (cargo build --release -p sim-fmi) and passing both files: --binary sim_fmi.dll --binary libsim_fmi.so. A machine file (--machine-file) goes into the FMU as resources/machine.toml, and the FMU builds its machine from it.
| Variable | Type | Causality | Meaning |
|---|---|---|---|
time | Real | independent | Simulated time, s, from the start time of the experiment. Declared in the FMI 3.0 model description only; FMI 2.0 leaves it out of the list, where it is implicit (importers such as OpenModelica’s refuse it without a start value, which FMI 2.0 forbids it), and its value reference 0 still answers |
| every other signal of the signal table | Real | output | E.g. axis.x.position, motor.a.torque, belt.1.tension, with its unit |
command.setpoint.<axis id> | Real | input | Position setpoint, as command.setpoint.<axis id> over OPC UA. Start value: the start pose |
command.enable | Boolean | input | false switches the drives off (brakes engage), true on again. Start value true |
command.cycle | Boolean | input | Turning true starts the configured cycle, turning false stops it at the end of its segment |
command.target.<axis id>, command.move | Real, Boolean | input | command.move turning true moves to the targets (start value: the start pose) |
command.path, command.path_file, command.trajectory_file, command.run_path | String, String, String, Boolean | input | command.run_path turning true plans the path (the text of a path file, or the file named) from where the machine stands and runs it; with command.trajectory_file set, it runs that file of poses at times (as sim-cli run --trajectory reads it) instead |
command.stop_category | String | input | How command.enable turning false stops the drives: “0” (start value) takes the torque off at once, “1” brakes on the quick-stop ramp, “2” brakes and holds with the torque on (see emergency stop) |
command.mode.<motor id>, command.torque.<motor id>, command.velocity.<motor id> | String, Real, Real | input | The drive’s mode, “position” (start value), “velocity” or “torque”, and its speed or torque setpoint from your own controller (below) |
time_optimal | Boolean | parameter | true times paths as fast as the motors allow (as --time-optimal), false (start value) within the axis limits |
machine | String | parameter | The machine id |
config_file | String | parameter | A config file to use instead of the one in the FMU; empty (the start value) for the one in the FMU |
effects.<name> | Boolean | parameter | Each effect switch, start value as in the config; a value set here wins over the config file’s |
The names are the signal ids as in the CSV columns (naming convention “flat”). The value reference of a variable is its place in the list, time counted as 0 (command.stop_category comes last, after the effects, so that the others keep theirs).
How a step works:
- The FMU steps by itself in its base step
sim.dt_s(62.5 µs in the shipped configs) with its own integrator. A communication step that is not a whole multiple of it is refused (fmi2Error, with a message), as is a step from another time than where the simulation stands, a time or step size that is not a finite number, and a step of more than 4294967295 base steps (about 3 days of simulated time at 62.5 µs).fmi2SetupExperimentrefuses a start time, and a stop time or tolerance it is told is defined, that is not a finite number. Nothing is interpolated. Outputs are read from initialisation mode on, as FMI 2.0 has it;fmi2GetRealbefore is refused. - At the start of each communication step a changed setpoint input goes to the controller as one setpoint, which it interpolates towards over
profile.setpoint_interval_s(10 ms), exactly as a PLC’s setpoint over OPC UA. The communication step should therefore be that interval: it is the step size of the model description’s default experiment. With shorter steps each new setpoint starts a new interpolation from where the last one had got to, which follows the stream with some lag; withprofile.setpoint_interval_sset to the communication step in the config the two agree. - A setpoint the controller refuses (too far for one interval,
error-setpoint-too-far; outside the stroke) is logged as a warning, the step runs without it, andfmi2DoStepreturnsfmi2Warning. An axis whose input is not set stays where the controller has it. - Parameters can be set until initialisation ends. A config file that changes the list of signals or their units is refused when initialisation ends, with the first signal that differs: export a new FMU for that config.
- Its signals are bit for bit those of
sim-cli runwith the same setpoints at the same times (tested). - After a DC-link overvoltage trip with a braking resistor too small for the braking energy,
command.enableset back totrueright away trips again, and again, until the axis coasting after the trip has stopped: its kinetic energy still flows into the DC link as soon as the drives brake it. Observed 7 to 57 trips again over 6 to 60 ms before the link settles at the bus level and the drives stay on. That is the physics of an undersized resistor, not a defect of the FMU; wait until the axis stands, or size the resistor (sim-cli verdicts).
Limits for this task:
- Checked with fmpy and OMSimulator (validation against the FMI schema, simulation compared with
sim-cli run; FMI export has the commands). Run in OpenModelica 1.27.1 through OMSimulator (FMI 2.0; its Modelica import takes Model Exchange only); import into Simulink or Dymola is untested. - Co-Simulation only, no Model Exchange (why). An FMU state holds a snapshot of the simulation and is set at once; a serialized one replays every step since initialisation, so setting it takes as long as simulating up to it (FMU state). The directional derivatives are zero, because the outputs depend on no input directly. No asynchronous steps.
- Inputs are position setpoints and the cycle, move and path triggers (FMI export); a setpoint input once set takes the axes over from a cycle, move or path. Torque and speed setpoints per motor go in through torque and velocity mode (Test your own controller); the current loop stays inside the FMU.
- Messages and descriptions in one language, the one of
--langwhen the FMU was written. - A 64-bit Windows binary unless a Linux one is added as above; no 32-bit binaries.
Test your own controller
The built-in drive closes the position, velocity and current loops itself. To try a control law of your own on the simulated mechanics, put a drive in torque mode (your torque replaces its velocity loop’s output) or velocity mode (your speed replaces its position loop’s output), as a real servo drive offers them; the torque limit, current loop, winding and DC link stay in, so the current, voltage and thermal limits are true.
- In Python:
sim = ks.Sim(cfg), then per cycle of your controllerout = sim.step(torque=[...], time=0.001)with the signals of the step’s end inout;sim.analyze()andsim.verdicts()judge the run as the built-in drive’s (Python module; the examplecrates/sim-py/examples/own_controller.pyruns a PD against the built-in cascade). - In Simulink or Modelica: the FMU’s inputs
command.mode.<motor id>(“torque” or “velocity”) andcommand.torque.<motor id>/command.velocity.<motor id>(FMI export).
Switching mode does not make the torque jump where the drive’s loops take over; while a drive is out of position mode the cycle, moves, paths and setpoints are refused.
Use the app
cargo run --release -p sim-app
sim-app --machine-file FILE starts with a machine defined in a file (machine files), sim-app --catalog DIR reads the catalogue from a directory instead of the built-in one. sim-app --set path=value (repeatable) starts with any config value changed, by its dotted path and with the value in TOML syntax, as sim-cli --set takes it: cargo run --release -p sim-app -- --set mass.payload_kg=3.0. It applies after --machine-file; a key the config does not have, a value of another type or one the machine refuses (outside its range) stops the start with the command line’s message. “Save” then writes the value in place, keeping the file’s order and comments.
The app remembers its language, theme, the rpm and mm switches, the speed and the config or machine file last opened (or saved; a JSON machine file too, which “Save” still never writes TOML over) with its machine, in settings.toml in the app’s folder (KinematicsSimulation) of the user’s config folder (%APPDATA% on Windows, $XDG_CONFIG_HOME or ~/.config on Linux, ~/Library/Application Support on macOS); SIM_APP_SETTINGS=FILE names another file. The environment and the command line win over what is stored: SIM_APP_LANG, --machine-file, --set. Without either, the language is the system’s (LC_ALL, LC_MESSAGES or LANG on Linux and macOS; English on Windows). A settings file that cannot be read or is of another version is ignored with a message; a stored config file that is gone gives a message and the default machine. A run with SIM_APP_SCREENSHOT neither reads nor writes the file unless SIM_APP_SETTINGS is set.
The window has a bar on top (machine, language, run controls, units, theme and the tightest checks), the 3D view in the middle, the setup on the left (motion, effects, parameters, config file), the tools on the right (analysis, effect views, search, path, trace, frequency response, tuning, runs, torque & error, loop response) and the scopes at the bottom. The tables below go through the controls by what they do; the panel each is in follows from that layout.
3D view. Built from simple shapes. Pulleys, motor shafts and idlers turn; belt teeth travel (drawn every 40 mm, not at the tooth pitch); belt sections shift to red above pretension and to blue below. Labels show each motor’s speed in rpm and each axis position. Drag with the left mouse button to orbit, with the right or middle button to pan, use the wheel to zoom; a drag that starts on a panel leaves the camera alone, and a smaller window or a wider panel moves the camera back as far as the machine needs. When a path is planned (the Path part of the right panel), the view draws the planned path as a wide yellow line where the tool will go, and over it in a thinner light blue line the path the tool tip really travels once the machine runs it. The view’s controls colour that travelled path by the tool’s speed or by its path error: its distance from the path the plan drew (the setpoints the drives follow), the same distance whose peak the path’s analysis gives as its path error. Until 14 November it was measured from the plan’s newest setpoint, which moves once per profile cycle (1 ms) while the tool moves on, and read up to the speed times the cycle too high (1.09 mm where the analysis gave 0.76 mm, on a square of the T-gantry). “Fixed scale” sets the scale’s top by hand, so that two runs read alike; with the path error, “Tolerance” draws points further off red. The timeline under the view scrubs the recorded scenes: the travelled path ends at the time shown, and the compared run (the ghost) is shown at that time too. Four switches among the view’s controls help to read it: “Axes” draws the machine’s x (red), y (green) and z (blue) in the bottom left corner as the camera sees them; “Grid” draws a grid on the floor in cells of 1, 2 or 5 times a power of ten, whose size in mm is written beside it; “Travel” draws, for each axis that moves the tool in the view, the line it travels from its lower to its upper limit (the other axes where the machine started), with the limits written at its ends; “Orthographic” draws without perspective, so that the Front, Side and Top buttons give true elevations. All four start off. Without a CAD model, a motor is a cylinder with a flange and a shaft stub, a long bar of nearly square section has grooves along its length, and the rest are boxes; a config’s scene.meshes_dir names a folder of <part id>.glb models (machine files). While the simulation is paused and nothing is touched, the window redraws only about four times a second (and at once on any input), so that it takes next to no processor or graphics time; it draws every frame while the simulation runs, the timeline replays, the view is recorded or a background job is under way.
Left panel, top to bottom:
| Control | Does |
|---|---|
| Machine | Switches machine. Restarts the simulation with that machine’s default config. Where the config has edits that no file has (the mark “modified” under the bar), it asks first: Save writes the config to the file the config field names (to one the file dialog asks for where the field is empty) and then switches, Discard switches, Cancel stays. The same question comes when the window is closed, and when a config or machine file is opened over such edits (“Open” and “Open…”): there “Save” writes the file the config was last opened from or saved to (the file dialog asks where there is none, or where it was a JSON machine file), never the file about to be opened, which is then opened |
| Undo, Redo (top of the left panel) | Take the last edit of the config back and do it again, also by Ctrl+Z and Ctrl+Y or Ctrl+Shift+Z while no text field has the keys: every edit of a parameter, an effect switch, a part named, a “Set a value” and the optimiser’s settings applied is one step, the last 50 are kept, and a drag on a value is one step, not one per frame. The simulation restarts on the config as before, as after any edit. “modified” shows while the config differs from the file it was opened from or saved to, or from the machine’s default; undoing back to it clears it |
| Language | English or Deutsch, switchable while running |
| Pause / Resume | Stops and continues the simulation |
| Speed (1 = real time) | Simulated seconds per real second, 0.01 to 10, on a logarithmic slider. It is a request: a slow computer or a heavy machine model falls behind it and does not pile up work |
| rpm, mm (top bar) | One choice of units for every plot and for the tables of the runs and the operating points: motor speeds in rpm in place of rad/s, lengths in mm in place of m. Off, the scopes scale an SI unit by a prefix to a readable size (µm, mm) |
| Light (top bar) | The light theme of the panels in place of the dark one. The 3D view keeps its colours |
| View: Front, Side, Top, Angled | Camera presets |
| More… / Less (view) | Opens or folds the view’s other controls (the overlays, mode, compare, path colours and exaggeration) below the presets. They start open where the view is at least 500 pixels tall, folded below that (at 1280 x 720 the view is 418 pixels tall, and opened they cover half of it) |
| Motion: one target per axis | Target of the next move |
| Move to target | Point-to-point move, all axes synchronised |
| Start cycle | Runs the configured cycle until stopped |
| Stop after segment | Finishes the segment under way, then stays. There is no fast stop |
| Disable drives / Enable drives | Drives off (brakes engage) and on again |
| Messages | Everything the app says: refused commands and config values, files that could not be opened or written, jobs that ended. At the top of the left panel on every tab, the newest first, with their number when there are several and a Clear button |
| Effects | One checkbox per [effects] switch. Takes effect at once, without a restart |
| Parameters | Every numeric config value, grouped by table. Drag to change; applied to the running simulation. A value the simulation refuses is reported under Messages and taken back. Hovering a value or its name shows its dotted config path (the key --set takes). “Filter” lists only the values whose name or path holds what is typed (any case); the groups with a match open. Once a value differs from the machine’s default, “Changed from the default” lists each as it was and is. At the top, “Set a value: key = value” takes any key of the config, as --set does (mass.payload_kg = 3.0, effects.crash = true, parts.motor = "1FK2104-4AF"), applied with Set or Enter; a key the config does not have, a value of another type or a value the simulation refuses is answered right below the field with the command line’s message, and the config stays as it was |
Scopes and tools:
| Control | Does |
|---|---|
| Time window [s] | Seconds of history the scopes show, 0.2 to 60 |
| Freeze | Keeps the traces in the window as they are; the simulation runs on. Only the window is kept, so a larger window afterwards shows no more |
| Export CSV | Writes every signal over the visible window to a file the system’s dialog asks for, named traces-<date>_<time>.csv to start with, in the background (a minute of the six-axis arm is some hundred megabytes of text); a message says when it is written |
| Live, Runs (scopes’ bar) | Live: the scopes of the running machine. Runs: the kept runs (see Runs below) as plots per quantity, each motor in its colour and each run in its own line (solid, dashed, dotted), and under each the runs less the reference on the reference’s time. All share one time axis and cursor |
| Keep window as run | Keeps what the scopes show (every signal over the window) as a run |
| Save as SVG…, Save as PNG… | A right click on a plot (scopes, runs, trace against replay, operating points, path, the effect views’ plots) saves it: as SVG, drawn as the sizing report draws its plots, or as PNG, a picture of the plot as the window shows it. Not yet on the frequency response, tuning, friction and optimiser plots |
| Runs | Runs kept side by side, at most eight (the oldest goes): every analysed cycle and every path that was run (judged, with their checks), the measured trace and its replay, the scopes’ window (“Keep window as run”), the compared run beside the machine (“Keep ghost as run”, while it is on), and the cycle of another config: “Changes” takes values as --set does, separated by ; (parts.motor = "1FK2208-4AF"; drive.velocity_kp = 0.2), “Config file” a config or machine file of any machine to start from (empty: the config shown), and “Record cycle” runs it in the background. A run of the same machine, kind and label as one kept takes its place. Each run can be shown or hidden, made the reference, or forgotten. “Key figures” lists them side by side: duration, checks passed and failed, per motor peak and RMS torque, peak speed, peak and RMS following error, RMS torque of the rated torque, peak torque of the drive’s peak torque and the electrical energy drawn net, and the tool’s peak and RMS position error; after the runs’ columns, one per other run with its value less the reference’s (“Δ” and the run’s label; on the checks’ row, its failed checks less the reference’s). Runs of different machines are compared by quantity: a motor’s torque, speed and following error by its place in the machine’s list (motor 1 with motor 1), the tool’s position error as the length of the axes’ following errors in metres. The time of each run counts from its start |
| Scopes (heading) | Which quantities are plotted |
| Config file: File, Open, Save | A file name, typed in. “Open” loads it as a config of the machine shown, as --config FILE does: it replaces the running config and restarts the simulation, as switching machine does. A config of another machine (one the machine shown refuses and another reads) switches to that machine and opens it there. A file that cannot be read or that no machine takes (a misspelt key, a value out of range) is answered under Messages, and the running config stays. “Save” writes the config as it is now, every change of the Effects and Parameters panels and of the part names included. Where only values were changed, the file keeps the comments and the layout of the file the config was read from (the opened file, or the machine’s default config); where an array was changed it is written plainly, without comments. Switching machine empties the file field, and “Save” does not write over a file that holds another machine’s config: it says so under Messages and leaves the file as it is |
| Config file: Open…, Save as… | The same with the system’s file dialog, which starts where the field points. The window waits while the dialog is open |
| Config file: Motor article, Supply, Gearbox, Drive article, Belt, Axis, Use parts | The parts [parts] of the config names, shown as the config has them. Beside each field a “Catalogue” list of the articles that fit what is named before it (the supply’s motors and drives, the motor’s gearboxes, the standard belts as profile and width, the axes), narrowed by typing in it; picking one puts it in the field, which can still be typed in. “Use parts” names what is typed there in the running config, as --motor, --supply, --gearbox, --drive, --belt and --axis do and as “Use” of the motor search does: a motor by its article number (1FK2104-5AK), the supply 230v, 400v or s120, a gearbox as size-frame-ratio (NRK070-04-5), a drive by its article number (6SL3210-5HE11-5UF0), a belt as profile-width (AT5-25), an axis by name (EXCT-30, ELZI-40); an empty field names none. A name the catalogue does not have is refused under Messages, and so is any name in a config without [parts] |
| Analysis: Analyse and judge the cycle | The cycle analysis and the verdicts, as three tables: the figures of the machine (cycle time, path error, off target while dwelling, lowest belt tension, slack time, radial load, guide load, guide life), the load on each motor (peak, RMS and cubic-mean torque, winding rise, energy drawn and fed back, the braking resistor’s energy and mean power, highest DC link voltage) and one row per check |
| Analysis: with error bands, samples | Ticked, “Analyse and judge the cycle” also runs the cycle with every value of [bounds] at its low and its high bound (two more cycles per value) and adds a fourth table: per check the lowest and the highest value, the worst-case result and “Runs passed [%]”. The same as sim-cli verdicts --bands. With a number above 0 in the field “samples” beside the tick box, the cycle is instead run that often with all values of [bounds] between their bounds at once, and the table is headed “The checks with all uncertain values between their bounds at once”. The same as --bands --samples N; the app always uses seed 1. With “worst corner” (only together with the error bands) it also searches per check for the worst corner of the bounds and shows a table of the worst value, the limit there, the result and the values at their high and at their low bound. The same as --bands --worst; it takes many more cycles |
| Analysis: operating points | After “Analyse and judge the cycle”: one chart per motor (small multiples), each from that motor’s own drive: the motor torque over the motor speed once per millisecond of the cycle, coloured from the start of the cycle (dark blue) to its end (light rose), over the peak curve (dashed: the peak torque, faded or field-weakened as the drive model gives it, sampled at 241 speeds), the rated S1 torque (dotted, both ways up to the rated speed), the voltage limit at the lowest DC link voltage of the cycle (red: what the winding’s R, L and kE leave at that voltage, DriveParams::voltage_limited_torque) and the drive’s current limit (red dashed, ratings.drive_max_current_a times Kt). The large marker is the RMS point: the RMS torque at the mean absolute speed. Below it the same points as a table that scrolls. The same as sim-cli analyze --points. There is no S3 line: no catalogue the simulator reads gives S3 data |
| Torque & error | The views of one kept run, the reference (picked in the list at the top, or made the reference in Runs; “Keep window as run” keeps the scopes’ window for them). Torque over speed per motor: as the operating points above, with the points of every shown run in its own marker over the reference run’s charts. Tool position error (the one definition, as in the run figures and the analysis): normal (across the path, the contour error) and tangential (along it, positive when the tool lags) in m, the plan at that moment less where the tool really is (belt stretch and sag included, unlike the drives’ encoder-side following error), split against the direction of their speed setpoints; for an analysed cycle or path also the analysis’s distance to the drawn path each millisecond (dotted); the tolerance of the 3D view’s coloured path as a red band; a histogram of the error across the path; the angle error apart on a machine with axes in rad. Torque split, stacked: per motor its torque to inertia, gravity, friction and the rest (belt, coupling, process) added one by one, the last line being the motor torque; and the velocity loop’s feedforward against its feedback (the PI part). Utilisation: per motor in % of each limit over time: torque of what is available at its speed, current (q and d) of the drive’s limit, both nodes of the drive’s overload image of its trip level (with effects.drive_overload), winding and housing rise of the rated rise (with effects.winding_heating), DC link voltage of its overvoltage trip with the braking threshold dotted (with effects.dc_link). Spectrum: of each motor’s following error and torque over the run (Hann window, the newest power of two of samples, amplitudes on a log scale) with the machine’s resonances (Machine::modes at the start pose) as amber lines, and per motor the following error’s spectrogram (frames of 256 ms every 128 ms). Scrubbing the timeline draws the tool’s error at that moment in the 3D view as an arrow from the path to the tool, as many times longer as the deflections |
| Effect views | Opens when a cycle has been analysed; its own button “Analyse and judge the cycle” does the same as the Analysis part’s. “Where each motor’s torque goes”: per motor a plot over the scopes’ time window of the four parts of its torque (inertia, gravity, friction, belt and the rest) and, dashed, the torque itself, which they add up to; it shares the scopes’ time axis and cursor. “Torque parts over the analysed cycle”: per part and motor the peak and the RMS, as sim-cli analyze --breakdown writes them. “Energy budget of the analysed cycle”: the supply, every loss and store that is not exactly zero, and what is not accounted for, in J and in percent of the supply, as --budget writes it, and below it the same as a flow diagram: from the supply (and any store that gave energy back) on the left to what the electrical side lost (copper, braking resistor, mains) and the shaft work in the middle, and from the shaft work on to what the machine lost or stored (guides, shafts, gearboxes, dampers, kinetic and potential energy) on the right, each band as wide as its energy; a bar too thin for its name has it in its tooltip. “Friction per guide”: per guide the friction force of steady sliding over the speed (solid) and its Coulomb, viscous and stiction parts (dashed) at the guide load of the moment, the point where the guide is now, and a table of the speed, the three parts, the force and the load factor now. “Temperatures”: the rise of each winding and, with gearbox and guide heating on, of each gearbox and guide over the scopes’ window, the table of now, where each settles on the analysed cycle, its rated rise and the share of the rating where it settles, and the colour scale of the 3D view. “Belt sections”: tension (pretension dashed) and stretch per section, the table of both now, and the belt’s colour scale. “Effect on and off”: an effect, a quantity and “Compare”; both runs overlaid, off dashed, and per line the peak and RMS of the difference. Above each plot, its lines’ names in their colours. See See where torque and energy go |
| Analysis: Sensitivity | The eight parameters with [bounds] that the cycle depends on most |
| Analysis: Optimise the cycle | The optimiser; with “error bands” ticked, its result has to pass in the bands too (the rows below the settings say how fast it got on the config as written and what that fails there). Below the table the front of energy per cycle against cycle time, the result marked. “Apply these settings to the running machine” puts its result into the config |
| Motor search | Supply (230v, 400v, s120, s210new-230v/-400v or another maker’s, e.g. beckhoff-400v), how the article numbers start (empty: every motor of the catalogue) and optionally a gearbox series such as NRK or NRK070; ticked, “Every axis of the catalogue” tries each motor on every catalogue axis of the machine’s kind as well (--axes). “Search” runs every such motor on the cycle and lists them, passing ones first, cheapest first (installed mass stands in for the price), with gearbox, axis, the mass of motor and gearbox, the installed mass, and the check nearest to its limit or the reason a motor or an axis was not run. “Use” in a row names that motor, its supply, its gearbox, its drive and its axis in [parts] of the running config. The same as sim-cli search |
| Path | A file name, typed in. “Lines, arcs and splines” is a path file, planned within the axis limits or, ticked, “As fast as the motors allow”; “Poses at times” is a trajectory file. “Plan, run and analyse” plans the path from where the machine’s setpoint stands (its first pose is the live setpoint: the simulation of its own stands its tool one rest sag off it, so that its setpoint is there), analyses it on a simulation of its own (duration, deviation by transition curves, path error, tool position error, loads, checks), draws the planned path as a plot in the panel and as a line in the 3D view, and has the machine in the 3D view run it. The same as sim-cli analyze --path or --trajectory. Below the tables, the path’s operating points over the torque-speed curves, as for the cycle (--points with --path). On the delta, the workspace map: a horizontal slice at the height the slider sets, from the travel range to half its width beyond each side, each point coloured by the condition number of the Jacobian (1 dark, the rated ratings.max_condition_number light, red beyond it); faint where the arms reach but the machine does not go (outside the working envelope, beyond a joint’s stop, above workspace.max_condition_number), empty out of reach; the frame is the travel range, and the pointer shows the condition number under it |
| Trace, Mapping | A file name, typed in, and for a vendor’s export its mapping file (as --map takes it; empty for a trace in the simulator’s columns). “Replay and fit” replays the drive trace and shows per motor how far the simulation is from it (torque and following error, RMS and peak), per axis the fitted mass, friction and constant force next to the config’s (on the delta, the SCARA and the arm the payload’s factor and per motor added inertia, friction and constant torque), with what to change in the config; ticked, “Belt stiffness from the moves” adds the factor on the belts’ stiffness (fit --stiffness, some twenty replays more); and per motor what the trace says by itself: inertia, friction, the loops’ lags, each with its standard error and 95 % interval, and how well each model reproduces the trace. The same as sim-cli replay, fit --trace and identify --trace. The config’s start pose has to be where the trace starts. Below, “Trace against replay”: motor torque, motor speed and following error at the motor over the time, the trace solid and the simulation dashed, one colour per motor. “Export CSV” there writes them to a file the system’s dialog asks for (replay-overlay-<date>_<time>.csv to start with), the same file as sim-cli replay --out Under the overlay, the residual: measured less simulated, per motor for the torque and the following error, on the overlay’s time axis and cursor. |
| Frequency response of the mechanics | From, to, frequencies and torque amplitude as sim-cli sweep takes them (5 to 500 Hz, 120, and 1.5 N m or 40 % of the drive’s peak torque where that is less, at the start). “Measure every motor” measures the open-loop response from each motor’s torque to its speed, as sim-cli sweep --motor N does for one: gain in dB and phase over the frequency, one line per motor, and per motor the dip where the load swings on the belt (resonance and damping ratio of the dip lowest in frequency; empty where the range does not hold a dip with both its flanks). The defaults show it on every motor of the default machines. Before, they did not: the amplitude was 0.05 N m, at which stiction holds the motors, not the range. Switching machine or opening a config sets the amplitude to that config’s default unless another one was typed |
| Frequency response: Measured response, taken on, Fit the belt stiffness | A file as sim-cli sweep writes it (the columns frequency_hz and gain_rad_s_per_nm), measured on the motor ticked with the torque amplitude above. “Fit the belt stiffness” runs the config’s own response at the file’s frequencies and shows resonance and damping ratio of both, and what to change in the config: the factor on the belt stiffness. The same as sim-cli fit --sweep FILE --sweep-motor N --amplitude A |
| Tuning: Measure step and frequency response | Step response and closed-loop response of one axis, with rise time, overshoot, settling time and bandwidth; below them the modes the machine reports over that axis’s stroke, with the shaper frequencies dashed |
| Loop response: Measure the velocity loops | Measures every motor’s velocity loop as sim-cli margins does (the same measurement, refined around resonances), in the background on a copy of the machine: a progress bar counts the points measured of those planned (the refinement adds to them), and “Cancel” stops it. Per motor (picked at the top): crossover, phase margin, gain margin and peak sensitivity, green where the loop is stable and red where not; a Bode plot of magnitude and phase with the open loop L, the closed loop T = L / (1 + L) and the plant from the motor’s air-gap torque to its speed (in dB of 1 rad/s per N m: the mechanics with friction, without current loop, filters and delays), the phase margin marked at the crossover and the gain margin where the phase crosses −180°, the machine’s resonances at the start pose as grey dotted lines, and the input shaper’s frequencies (amber) and the notch filter’s (pink) dashed where they are on; under it the Nyquist plot of L where |L| is at most 4, with the critical point −1 and the unit circle. With friction on, the plant leads at low frequencies: at a tenth of the rated torque the friction’s bristles hold the axis like a spring (the single axis +47° at 10 Hz); without friction it lags by 90°, an inertia |
| Scope plots | One plot per quantity, one line per axis or motor; a motor has one colour in every plot of the app (the scopes, the operating points, the sweep, the runs). Setpoints are dashed in the colour of their actual value. Shared time axis and cursor; min, max, span and RMS per trace, the names in their colours below the plot (no legend over the lines); units switch to mm and µm by themselves unless rpm or mm is picked in the top bar. A long window is drawn with the lowest and highest sample of each of 3000 stretches, so a peak one sample wide still shows |
Modes, the coloured path, the workspace’s quality and the error bands
Modes at the pose (top of the Tuning tab). “Find the modes” asks the machine for its modes at the pose its setpoint stands at and lists them: the frequency and damping the machine reports (the ones the input shaper takes; most machines take the drive as holding the motor, so these are the modes with the pulley held), the mode of the linearised model the shape is of, where the shape comes from, and the kinds of stiffness that hold at least 5 % of its strain energy (belt, gearbox, guide, frame, base, link). Where the machine gives a shape of its own (Machine::mode_shape, the lowest mode on most), that one is shown; for every other mode the shape is the eigenvector of the small-motion problem of the elastic model at that pose: the machine’s equations are differentiated by central differences at rest, their torques held, once with the motors free and once with the rotors held (the states that move a motor’s angle or speed kept at rest, as the reported modes have them), and of the two the oscillation nearest the reported mode is taken, found by inverse iteration; a real eigenvalue (a friction’s slope at rest, which damps without swinging) is never taken. Its own frequency and damping are in the column “Linearised”; they differ from the reported ones where the motors’ being free matters. The stiffness shares come from the reported frequency: each kind’s stiffnesses in the config are made 10 % stiffer and the share is twice the change of ln f over ln 1.1 (Rayleigh), so they add up to 1 where every stiffness the mode lives in is one of these kinds. “Show” swings that mode in the 3D view, at one swing a second and as large as the exaggeration slider says, with its frequency by the tool; “Show” again goes back to the machine’s own mode. On the single belt axis the two-mass mode (carriage against pulley and rotor) comes out with the frequency and the motor-to-carriage amplitude of the hand calculation of three masses on two springs (the_belt_axis_two_mass_mode_has_the_hand_calculated_shape). The same as CSV: sim-cli modes MACHINE --shapes writes per mode the reported and linearised frequency and damping, the shape’s source, the stiffness shares and the shape, per state its real and imaginary part.
The path coloured by what happened on it (Path tab, under the planned path’s plot). After “Plan, run and analyse”, “Path coloured by” colours the path the analysis ran in the 3D view along its length, once per millisecond at the tool’s place: by the path error (the distance to the path the analysis measured, the values of path_error_series), the tool position error (to where the plan is at that moment, as defined), the speed, each motor’s utilisation (its torque over what its drive gives at that speed, 100 % on the torque-speed curve) or the highest belt tension. The scale shows the lowest and the highest value along the path, the worst point is marked red in the view, and its button reads out every quantity there; the slider “Along the path”, or a click on the path in the 3D view, reads them out at any other point, marked cyan. “nothing” draws the planned and the travelled path as two plain lines as before.
Workspace map by acceleration (Path tab). The map, for every machine that tells the condition number of its kinematics (the deltas, the parallel SCARA, the arms in tool space, the hexapod, the cable robots; the linear delta since 15 November 2026), is coloured by the condition number or by the largest acceleration the motors can give the tool there in its worst direction: with T = A a + g the rigid model’s motor torques, motor k holds |g_k| + |A_k . d| a up to its peak torque, so the acceleration in every direction is the smallest (T_peak,k - |g_k|) / |A_k| (the weight is held). Dark where the machine does best, light where it does worst, for both. The pointer shows both numbers. sim-cli workspace MACHINE [--z Z] [--points N] writes the map as CSV: x, y, condition number, whether the machine goes there, acceleration in m/s². At the linear delta’s centre both numbers are those of the hand calculation (the_workspace_map_has_the_hand_calculated_condition_and_acceleration_at_the_linear_deltas_centre).
Error bands drawn on the traces (Analysis tab, under the bands’ table). “Run the bounds” runs the cycle with each bounded value at its low and at its high bound, one at a time (as verdicts --bands does; a bound whose low is its high runs nothing), keeps each motor’s torque and following error and each belt section’s tension, and draws per signal the envelope of those runs, from the lowest to the highest value at each millisecond, as a grey band under the nominal trace. Their operating points are drawn as a grey cloud under the cycle’s own on the torque-speed charts. The bands are of the bounds one at a time, not of the samples (--samples).
The right panel scrolls as a whole, and each of its parts (Scopes, Config file, Analysis, Effect views, Motor search, Path, Trace, Frequency response of the mechanics, Tuning) folds away under its heading. A part opens by itself when its result arrives. The tables are laid out for the panel’s default width: long names wrap, and numbers have four digits.
The buttons of these parts run in the background on simulations of their own, with the config as it is at that moment; a spinner stands in for the button meanwhile, with a bar of the runs done of those planned (it grows as the job plans more) and a “Cancel” button. Cancelling stops the job within the time of the runs already started (a single simulation run is not interrupted, the motor search’s and the kinematics comparison’s candidates included), says so in the message strip, and leaves the earlier results as they were. Switching the machine and opening another config or machine file cancel the jobs under way in the same way; an edit of a parameter does not, since the result is still shown, marked as computed for an earlier configuration. A cycle analysis or a run of the checks with bands that leaves a value that is not finite (the loop is unstable or diverges, or a winding heats up without end) says so once in the message strip. The running machine is not disturbed. A result is not redone when a parameter changes afterwards. It is marked “computed for an earlier configuration” instead, and nothing of it is applied to the changed config: “Apply these settings”, “Use” and the run of a planned path answer with a message then (take the change back, or compute again). Naming a motor with “Use” does not outdate the search it came from, so another row can be tried after it; naming an axis of the axis search does, as the search ran on the config’s own axis otherwise.
A file that is missing or cannot be read, a line of it that cannot be read, a supply the catalogue does not have and a search that finds no motor, or no gearbox of the series that fits one, are answered under Messages. So is a path that the machine cannot run because it has moved since the plan was made, or is busy.
A drive that trips on DC link overvoltage is reported under Messages, once per trip, for the running machine and for an analysed cycle or path. “Enable drives” brings the drives back.
What the running machine does with a change:
- A changed
gearbox.ratioorgeometry.pulley_radius_mrebuilds the machine’s state at the tool’s pose and speed, with belts and gears as they are at rest there. The belt tensions stay within some percent of what they were. The linear delta keeps its belts’ stretch, its couplings’ torque and its guides’ friction as they were instead: at speed its belts carry 34 N more than at rest. - A change to the input shaper (its switch, frequency, damping, or following the pose) is taken when the planned motion next stands still, so the setpoint does not jump. A cycle without a dwell and without a gripper action never stands still; there the change waits for Stop.
- A cycle that loses segments while it runs goes on within the segments it has.
Messages: one that only repeats the last one is not added. If the simulation or a background computation ends unexpectedly, a message says so; choosing the machine again starts the simulation anew. If the window stalls for more than ten seconds of simulated time, the scopes lose the samples before that.
Limits for this task:
- The app starts with the machine’s default config; another one, such as the EXCT-30 config
crates/machine-t-gantry/exct-30.toml, is opened under Config file. Values are changed with--setat the start or in the parameter panel. - A number of a named part that is changed in the parameter panel is overwritten again.
- The cycle itself cannot be edited in the app.
- Not in the app, only on the command line: a sensitivity run over tables without
[bounds]. - The search table shows the tightest check only; peak torque and winding rise of a candidate are in
sim-cli search, or in the cycle analysis after “Use”. - File names of paths, traces and measured frequency responses are typed; only the config file has a file dialog. A relative name is relative to the directory the app was started in.
- The lines of the planned and the travelled path in the 3D view were not checked on screen by a person.
- A path is analysed from where the machine stands when the button is pressed. A machine that is moving then will refuse the run.
- The base time step
sim.dt_scannot be changed while running. - The mouse handling was not checked by a person. Screenshots of the window in both languages were.
- Desktop only.
Machine files
A machine file defines a machine without Rust code and without a rebuild: the components of sim-components wired
together like a netlist (motor, gearbox, pulley, belt sections, carriages, guides, and ball screws, racks, linear motors,
rotary tables and worm gears beside the belts, or a parallel linkage of two or three arms, or a scissor lift), with the
axes, ratings, bounds,
control loops and cycle of a machine config. CLI, app and PLC link load it from a path at run time.
Deutsche Fassung: Maschinendateien.
- What a machine file is
- Use one
- Worked example: an H-bot
- The nodes
- Motors that differ
- Screws, racks, linear motors and rotary tables
- Linkages: the planar and the spatial delta
- A scissor lift
- Worm gears
- The belt’s wrap and a leaning axis
- The other examples: a CoreXY and an XYZ portal
- Meshes for the 3D view
- What is checked, and how errors read
- The model behind it
- What machine files cannot do yet
- How it is validated
- JSON, the JSON Schema and editors
- Rust API
What a machine file is
A machine config as the config reference describes it ([sim], [parts], [effects],
[belt], [motor], [gearbox], [drive], [ratings], [profile], [bounds], [start], [[cycle.segment]], …),
plus one table [machine] that says what is connected to what:
format_version = 1 # of the config, as in every config
# ... the value tables of a machine config ...
[machine]
version = 1 # of [machine]; a file of a later version is refused, not misread
id = "h-bot" # how the front ends list it; default: the file name without extension
name = "H-bot (machine file)" # a translation key or plain text; default: the id
[[machine.axis]] # one table per node, each with a stable id
id = "x"
stroke_m = "geometry.stroke_x_m" # a number, or the path of a number in the file
# ...
The values stay in the value tables, under the same keys as for the shipped machines. That is what makes everything
else work on a machine file as it is: the parameter panel, --set, the catalogue (--motor, --axis, …), the
error bands of [bounds], the sensitivity analysis, saving the config. A number field of a node can name such a value
by its path (radius_m = "geometry.pulley_radius_m"); then changing the value changes the machine. A plain number is
fixed.
Fourteen files ship in machines/:
| file | what it is |
|---|---|
machines/single-axis.toml | the single axis of crates/machine-single-axis, rewired as a netlist |
machines/t-gantry.toml | the T-gantry of crates/machine-t-gantry, rewired as a netlist, with its idlers, frame, cable chain, belt spans and its leaning Z axis (a lean node and [tool_flex], off as shipped; below) |
machines/h-bot.toml | the worked example below: an X-Y table, not a real machine |
machines/corexy.toml | a CoreXY X-Y table: two fixed motors, two crossed belts (below) |
machines/xyz-portal.toml | a three-axis cartesian portal, X, Y and Z each on its own belt, with a smaller Z motor of its own |
machines/screw-portal.toml | the XYZ portal with its Z on a ball screw (below) |
machines/rack-gantry.toml | a two-axis gantry, X on a rack and pinion, Y on a belt |
machines/planar-delta.toml | the planar delta of crates/machine-delta-d2 as a linkage of two arms (below) |
machines/delta-d3.toml | the spatial delta of crates/machine-delta-d3 as a linkage of three arms |
machines/scissor-lift.toml | a two-stage scissor lift table on a ball screw (below) |
machines/stepper-axis.toml | the single axis’s netlist with a stepper motor on an open-loop drive (motor.kind = "stepper", user guide) |
machines/induction-lift.toml | the single axis’s netlist as a vertical lift with an induction motor, field-oriented (motor.kind = "induction") |
machines/dual-gantry.toml | a dual-drive gantry: a yawing bridge on two racks, its drives in plain, master/slave or cross-coupled synchronisation (below) |
machines/portal-c.toml | the screw portal with a C axis turning a gripper, its tip the tool centre point |
machines/five-axis.toml | the screw portal with a fork head (C and A), its tool’s tip the tool centre point |
machines/five-axis-table.toml | the screw portal over a tilting rotary table (A and C carry the workpiece, table/table), the tip on the workpiece the tool centre point |
The easiest way to a new machine is to copy the one nearest to it and change [machine].
Use one
Command line: --machine-file FILE takes the place of the machine’s id, for every command.
sim-cli verdicts --machine-file machines/h-bot.toml
sim-cli run --machine-file machines/t-gantry.toml --cycle --time 2 --out run.csv
sim-cli verdicts --machine-file machines/t-gantry.toml --bands --set belt.pretension_n=350
sim-cli fmu --machine-file machines/h-bot.toml --fmi 3 --out h-bot.fmu
An FMU of a machine file carries the file among its resources (resources/machine.toml) and builds the machine from it
when it is instantiated, for FMI 2.0 and 3.0 alike; the tool that imports it needs nothing else.
App: Open in the config file row (or Open… for the file dialog) opens a machine file like a config, and the machine changes with it.
Save writes the edited values back over the file, keeping its comments; a JSON file is not written over. The app
can also start with one: sim-app --machine-file machines/h-bot.toml.
PLC link: sim-opcua --machine-file machines/h-bot.toml [--port N] [--lang en|de], in place of a machine’s id.
Worked example: an H-bot
An H-bot is an X-Y table whose two motors stand still at the ends of the X beam and drive one belt that runs around the
carriage and the head. Both motors turning the same way move X, turning against each other move Y. It is the T-gantry’s
belt routing with the second axis lying flat, so machines/h-bot.toml is the T-gantry’s file with these changes:
- In
[geometry],stroke_z_mbecomesstroke_y_m, and[axis.z]becomes[axis.y](the limits of axisy). [machine]names the axesxandy, givesyno incline (flat; the T-gantry’s Z hasincline_deg = 90), and drops the overhang: the head runs on its own guide on the carriage.
The belt first. The two motor pulleys cut it into three sections, each with one tension along it. Section 1 runs from
its clamp to motor A, and gets longer by 1 m for every metre of x and of y; motor A turning forward feeds belt into it
(+1). Section 2 runs from A around the head to B, shortens by 2 m per metre of y; A takes belt out of it (-1), B
feeds it (+1). Section 3 runs from B to its clamp:
[[machine.section]]
id = "1"
length_m = 0.3 # with x = y = 0
axes = { x = 1, y = 1 } # how much longer per metre of each axis
pulleys = { pulley_a = 1 } # +1: this pulley's forward turn feeds belt in
pos = [450, -80] # where a node editor draws it; not read
[[machine.section]]
id = "2"
length_m = 2.6
axes = { y = -2 }
pulleys = { pulley_a = -1, pulley_b = 1 }
[[machine.section]]
id = "3"
length_m = 1.3
axes = { x = -1, y = 1 }
pulleys = { pulley_b = -1 }
From these alone the loader works out the kinematics: the belt has to keep its length, so x = r/2 (a + b) and y = r/2 (a - b) for pulley angles a and b. A routing whose sections cannot all keep their length for some motion of the axes, or whose motors do not set every axis, is refused.
The drive trains: each motor turns one gearbox, each gearbox one pulley. The motor and gearbox data are in [motor],
[drive] and [gearbox], shared by all motors:
[[machine.motor]]
id = "a"
[[machine.gearbox]]
id = "gearbox_a"
motor = "a"
[[machine.pulley]]
id = "pulley_a"
gearbox = "gearbox_a"
radius_m = "geometry.pulley_radius_m"
inertia_kgm2 = "pulley.inertia_kgm2"
(and the same for b). Then what moves, and what guides it. A body moves with the axes it lists; the head moves with
X and Y and carries the payload:
[[machine.body]]
id = "carriage"
mass_kg = "mass.carriage_kg"
axes = ["x"]
[[machine.body]]
id = "head"
mass_kg = "mass.z_axis_kg"
payload_kg = "mass.payload_kg"
axes = ["x", "y"]
[[machine.guide]]
id = "guide_x"
axis = "x"
friction = "friction_x" # the table its friction values are in
carries = ["carriage", "head"] # whose weight across the axis loads it
[[machine.guide]]
id = "guide_y"
axis = "y"
friction = "friction_z"
carries = ["head"]
Run it:
sim-cli verdicts --machine-file machines/h-bot.toml
check,motor,value,limit,result
motor-peak,a,0.09924,1.000,ok
motor-thermal,a,0.4460,100.0,ok
motor-s1,a,0.09988,1.270,ok
motor-speed,a,200.4,420.0,ok
drive-current,a,0.2220,3.000,ok
drive-peak-current,a,0.8388,10.90,ok
gearbox-radial-load,a,632.2,1500,ok
gearbox-continuous,a,0.3802,40.00,ok
gearbox-input-speed,a,1914,13000,ok
gearbox-peak,a,1.334,64.00,ok
pulley-bearing-life,a,475735,20000,ok
gearbox-life,a,71921110348,20000,ok
belt-tooth-load,a,0.1171,1.000,ok
dc-link-energy,a,1.147,6.205,ok
dc-link-overvoltage,a,170.1,257.6,ok
motor-peak,b,0.09276,1.000,ok
motor-thermal,b,0.4597,100.0,ok
motor-s1,b,0.1014,1.270,ok
motor-speed,b,200.5,420.0,ok
drive-current,b,0.2254,3.000,ok
drive-peak-current,b,0.7839,10.90,ok
gearbox-radial-load,b,637.6,1500,ok
gearbox-continuous,b,0.3887,40.00,ok
gearbox-input-speed,b,1914,13000,ok
gearbox-peak,b,1.213,64.00,ok
pulley-bearing-life,b,474906,20000,ok
gearbox-life,b,68166077481,20000,ok
belt-tooth-load,b,0.1065,1.000,ok
dc-link-energy,b,1.146,6.205,ok
dc-link-overvoltage,b,170.1,257.6,ok
settling,,0.00001324,0.0001000,ok
belt-tension,,346.8,1500,ok
belt-least-tension,,228.3,0,ok
guide-load,,107.9,2000,ok
guide-life,,6789383,20000,ok
thermal-warm-start,,0.000009028,0.1000,ok
Every check passes. The motors run cooler than on the T-gantry (motor-thermal 0.45 against its 1.28): nothing has to
be held up against gravity. Signals follow the ids: axis.y.position, motor.a.torque, belt.2.tension, power.guide_y, …
The nodes
Every node has an id: letters, digits, _ and -, unique in the file (not only in its list), so that a reference
cannot mean two things and an editor can keep it when the node moves. Every node may have a pos = [x, y], where a
node editor draws it; the simulation does not read it. A number field takes a number or the dotted path of a number in
the file. The order of the motors in the file is the order of the motor signals and of --motor N.
| list | field | meaning | |
|---|---|---|---|
axis | id | required | the axis; signals axis.<id>.*, its limits in [axis.<id>] |
key | translation key of its name; default axis-<id> | ||
stroke_m | stroke, m; the axis runs from 0 to it. Every axis has it but a rotary one (which has stroke_rad) and a linkage’s or scissor lift’s (whose range the node sets) | ||
stroke_rad | a rotary axis’s range from 0, rad, in place of stroke_m | ||
incline_deg | angle above the horizontal, deg, 90 vertical and rising towards +; default 0; on a rotary axis the tilt of the axis it turns about from the vertical (0, a C axis) towards x (90, an A axis) | ||
motor | id | required | a servo motor with its drive; signals motor.<id>.* |
key | translation key of its name; default motor-<id> | ||
gearbox | motor | required | the motor that drives it; one gearbox per motor (none for a linear motor); ratio 1 is a coupling |
pulley | gearbox | required | the gearbox whose output turns it; one pulley, screw, rack or rotary per gearbox |
radius_m | required | pitch radius, m | |
inertia_kgm2 | required | inertia without the belt, kg m² | |
section | length_m | required | geometric length with every axis at 0, m |
axes | required | per axis id: how much longer the section gets per metre of that axis | |
pulleys | required | per pulley id: +1 where its forward turn feeds belt in, -1 where it takes belt out | |
key | translation key of its name; default belt-section-<id>; signals belt.<id>.* | ||
body | mass_kg | required | mass, kg |
payload_kg | payload it carries while effects.payload is on and the gripper holds it, kg | ||
axes | required | the axes it moves with; rotary axes among them carry it round, the first outermost | |
offset_m | its centre of mass from where its axes put it, [x, y, z], m: on rotary axes from where their axes meet at angle 0, turning with them (below); on straight axes alone a constant offset that only its place in the frame momentum takes (the T-gantry’s carriage geometry.z_com_drop_m above its Z axis: each entry of a point, here and in every at_m, tool_m and table_pivot_m, is a number or the path of one, as a number field) | ||
guide | axis | required | the axis it guides; one guide per axis at most; its loss is power.<id> |
friction | required | the table of its friction values, laid out as [friction_x] | |
carries | bodies whose weight across the axis it carries | ||
overhang | a body that overhangs the guide: accelerated along overhang_axis it tilts the guide’s carriages | ||
overhang_axis, lever_m, spacing_m | with overhang | the axis, the lever of the overhang’s centre of mass and the spacing of the guide’s two carriages, m; the tilt puts 2 m a lever / spacing on them | |
lever_axis | an axis whose travel shortens the lever | ||
side_load | the guide also carries the overhang’s inertia force m a; default false | ||
axis | cable_chain | the axis drags a cable chain fixed at its 0 end (effects.cable_chain, values in [cable_chain]); default false | |
pulley | at_m | where the 3D view draws it, [x, y, z], m (from its body where it has one); default at an end of the first axis; its place in its belt’s plane (the section’s plane), which the wrap (effects.belt_wrap) and the places of the belt’s runs in the frame momentum are worked out from | |
body | a body it rides on (a motor on a moving axis, as the portals’ Y motor on the bridge): at_m is then from that body | ||
pulley, idler | clockwise | the belt runs round it clockwise, followed along the routes in their order, seen in its belt’s plane: from the front (x right, z up) in x-z, from above (x right, y away) in x-y, from +x (y right, z up) in y-z; its spin in the frame momentum and the wrap take this sense; default false | |
section | route | the pulleys, idlers and bodies (a clamp on it) the section runs past, in order, for the 3D view; default its pulleys and the body it is clamped to | |
plane | the plane its belt runs in, whose normal its wheels turn about: "x-z" standing along x (about y), "x-y" flat (about z), "y-z" standing along y (about x); the places of its route’s wheels in it give the belt’s runs their places in the frame momentum, the wrap and the wheels’ check; sections that share a pulley or an idler lie in one plane (else refused); default "x-z", or "x-y" for every section where one section’s length changes with axes along x and along y and none along z (an H-bot’s, a CoreXY’s). The shipped portals’ and gantries’ Y belts lie flat ("x-y", the pulley on the bridge); the 3D view draws a "y-z" belt’s wheels facing the front | ||
idler | speed | required | belt speed past it per speed of each axis, m/s per m/s (effects.idlers), positive the way a positive turn of the first pulley feeding its section moves the belt (the sense of its spin in the frame momentum) |
radius_m, inertia_kgm2, friction_nm | required | its radius, inertia and bearing friction torque | |
body, at_m | a body it rides on and where the 3D view draws it (from that body) | ||
frame | axis | required | the horizontal axis the frame sways along (effects.frame_compliance, elastic model); at most one |
mass_kg, stiffness_n_m, damping_n_s_m | required | the frame’s mass, stiffness and damping in its sway | |
span | section | required | a free belt span of that section, for its sideways mode (effects.belt_span_vibration); yaw_lever_m and yaw_lever_axes where it lies across a yawing bridge from its centre (m, and per metre of each axis): the yaw moves its belt with it |
length_m | required | its length with every axis at 0, m | |
axes | how much longer it gets per metre of each axis | ||
screw | gearbox, axis | required | a ball screw on that gearbox’s output, its nut driving that axis (below) |
values | required | the table of its values, laid out as [screw] of the joint kit’s screw axis | |
rack | gearbox, axis | required | a pinion on that gearbox’s output, driving that axis along a rack |
values | required | the table of its values, laid out as [rack] of the joint kit’s rack axis | |
linear_motor | motor, axis | required | that motor is a linear motor driving that axis; it has no gearbox node |
values | required | the table of its values, laid out as [linear_motor] of the joint kit’s linear motor axis | |
rotary | gearbox, axis | required | a rotary table on that gearbox’s output: the axis turns, in rad |
inertia_kgm2 | required | the inertia it turns, kg m² | |
payload_inertia_kgm2 | its payload’s while effects.payload is on and the gripper holds it, kg m² | ||
friction_coulomb_nm, friction_viscous_nm_s_rad | its bearing’s Coulomb and viscous friction at the axis, with effects.guide_friction; default 0 | ||
strain_wave | the table of its strain wave gear’s life values, laid out as [strain_wave] | ||
worm | gearbox | required | that gearbox is a worm stage (below); one worm per gearbox |
ratio | required | its ratio, in place of the gearbox’s | |
efficiency, back_efficiency | required | driven by the worm (above 0, at most 1) and back by the wheel (at most 1; 0 or less locks itself, which needs a driven efficiency below 0.5) | |
lean | body, axis | required | a body leaning on its carriage along a horizontal axis it moves with (effects.tool_flex, elastic model); at most one (below) |
com_drop_m, tool_drop_m | required | its centre of mass and the tool tip below the guide with lever_axis at 0, m | |
lever_axis | an axis whose travel raises both towards the guide | ||
lateral_stiffness_n_m, tilt_stiffness_nm_rad, damping_n_s_m | required | the guide’s stiffness sideways and in tilt, the lean’s damping | |
belt_offset_m | with effects.belt_run_offset: how far the belt’s runs that reach the body from above meet it to either side of its line (the side their other wheel is on), m; the guide’s tilt lengthens one and shortens the other by it times the tilt; default 0 | ||
gantry | axis | required | a bridge travelling along this horizontal straight axis yaws (effects.gantry_yaw); at most one (below) |
across | the straight axis along the bridge; its bodies’ lever about the bridge’s centre changes with it | ||
width_m, inertia_kgm2 | required | the distance between the bridge’s two sides, m; its own inertia about a vertical axis through its centre, kg m² | |
stiffness_nm_rad, damping_nm_s_rad | required | what holds the yaw beside drives and belts (its joints and guides), and its damping | |
across_start_m | where across is at 0 from the first side, m; default its stroke in the middle | ||
drives | per motor whose screw, rack or linear motor drives axis: its place across the bridge from the centre, m; two make a dual-drive gantry | ||
sections | per belt section that pulls the bridge’s ends: its length per rad of yaw, m | ||
tolerance_m | the synchronisation error (width x yaw) check gantry-sync allows, m | ||
tcp | axes | required | the tool centre point: the three straight axes along x (the file’s first), y (horizontal) and z (vertical); at most one |
rotaries | the rotary axes that carry the tool (a head), outermost first; rotaries or table or both | ||
table | the rotary axes that carry the workpiece (a rotary or tilting table), outermost first: the tool’s x, y and z are the tip’s on the workpiece | ||
table_pivot_m | with table: where the table’s axes meet, in the straight axes’ coordinates, [x, y, z], m; default [0, 0, 0] | ||
tool_m | required | the tool’s tip from where the head’s rotaries’ axes meet (from the straight axes’ point without a head), [x, y, z] at angle 0, m |
There are as many motors as axes, and one more for each drive of a gantry beyond the first. A file names each list it uses; axis and motor are always there, gearbox,
pulley and section where belts are driven, body where an axis moves one, and the others may be left out.
An effect that needs nodes the file has not (frame_compliance without a frame, belt_span_vibration without a
span, tool_flex without a lean) refuses the file with machine.<list>; belt_wrap without the places it is worked
out from is refused with what is missing.
A file may also have pneumatic cylinders, which are neither axes nor motors:
| list | field | meaning | |
|---|---|---|---|
cylinder | values | required | the table of its values: bore, rod, stroke, masses, dead volumes, supply, valve, tube, throttles, cushions, seals, sensors and ratings (config-reference.md); signals cylinder.<id>.*, checks cushion-energy and load-factor |
key | translation key of its name; default cylinder |
A cylinder sits at the tool (its weight belongs in the body of the axis that carries it), and the cycle commands its
valve: a [[cycle.segment]] with valves = { <id> = "extend" } (or "retract", "centre") switches it once the
segment has arrived, and wait = ["<id>.extended"] holds the segment’s dwell until the end-position sensor reports.
It works beside any mechanism of a file. machines/pneumatic-axis.toml is a servo X with a pneumatic Z; the model is
“Pneumatic cylinder” in model-reference.md, the example in mechanisms.md.
Motors that differ
[motor], [gearbox], [drive], [ratings] and [parts] hold for every motor. A table [<table>.<motor id>] gives
one motor its own values over them, key by key; it may only hold keys the shared table has:
[gearbox.mz] # the Z motor of machines/xyz-portal.toml has its own gearbox ratio
ratio = 10.0
[motor.mz] # and a smaller motor
rotor_inertia_kgm2 = 0.15e-4
rated_current_a = 1.411
[drive.mz] # its drive retuned for it
peak_torque_nm = 1.9
rated_torque_nm = 0.635
velocity_kp_nm_s_rad = 0.01
[ratings.mz] # and what its smaller gearbox and drive allow
gearbox_rated_torque_nm = 18.0
drive_rated_current_a = 1.5
[parts.mz] # or a motor, gearbox and drive from the catalogue, for this motor alone
motor = "1FK2203-2AG"
That motor’s drive train in the machine (rotor, gearbox, motor friction, ripple, brake), its drive in the controller
(current and velocity loops, torque-speed curve, winding, DC link) and its verdicts (motor, drive current, gearbox,
bearing, belt teeth, braking) take its own values; the machine-wide checks keep the shared ones. A part named in
[parts.<id>] sets that motor’s values over the numbers, as [parts] does; belt and axis are the machine’s and are
refused there. What stays shared: the drives’ cycle times, the noise seed, a shared DC link and the braking module.
sim-cli search searches the shared motor; a motor with its own [parts.<id>] keeps its part through the search.
sim-cli search --machine-file FILE --motor-id ID searches one motor alone: each candidate (with its paired drive, and
with --gearboxes the fitting gearboxes for that motor’s own ratio) becomes [parts.<ID>], the other motors stay as
the file has them, that motor’s velocity gain drive.<ID>.velocity_kp_nm_s_rad is retuned for it as the shared one is
for a shared part (by the inertia that motor turns and its rotor’s; its kv_1_s lowered with it where its position
loop needs it), and the cost is that one motor’s weight. On the
XYZ portal, --motor-id mz sizes the Z motor behind its gearbox of ratio 10 while X and Y keep theirs.
The time-optimal path planner takes the shared [drive]’s torque curve for every motor.
Screws, racks, linear motors and rotary tables
A motor may drive an axis without a belt: through a screw, rack or rotary node on its gearbox’s output (a gearbox
of ratio 1 is the coupling), or as a linear_motor, which is the motor itself and has no gearbox node. Each drives one
axis, an axis has at most one, and belts and these mix in one file:
[[machine.screw]] # machines/screw-portal.toml: X and Y on belts, Z on a ball screw 16 x 10
id = "screw_z"
gearbox = "gearbox_z" # the coupling: [gearbox.mz] has ratio = 1
axis = "z"
values = "screw_z" # the table [screw_z], laid out as [screw] of the joint kit's screw axis
The values are the joint kit’s (mechanisms), in a table the node names, so that two screws have two
tables: [screw]’s layout for a screw (lead, nominal and root diameter, length between the bearings, mounting,
efficiency, nut and bearing stiffness, preload, load ratings and factors, max_dn), [rack]’s for a rack (module,
teeth, helix angle, efficiency, stiffness, backlash, pinion inertia, rated feed force, service factor),
[linear_motor]’s for a linear motor (attraction force, pole pitch, guide friction coefficient), [strain_wave]’s for
a rotary’s strain wave gear (rated torque, input speed and life). The drive train is built as the joint kit builds it
(transmission::Converter behind the gearbox): the screw’s lead / 2 pi or the pinion’s radius as a lever, its stiffness
in series with the gearbox’s, its efficiency on the gearbox’s, the screw shaft’s or pinion’s inertia on the rotor. So a
screw axis’s motor needs T = J a / lever + F lever / eta to lift a load F at an acceleration a (J the rotor, coupling
and shaft), and a rack’s motor turns i x / r.
- With
effects.guide_frictionthe nut’s preload drags at the motor, and a linear motor’s attraction adds its guide friction coefficient times itself; the attraction and the forcer’s weight also press on the axis’s guide (axis.<id>.guide_load, judged by the guide checks). - A linear motor’s
[motor.<id>]and[drive.<id>]read in N for N m and m for rad (force constant in N/A, the forcer’s mass asrotor_inertia_kgm2); its[gearbox.<id>]has ratio 1 and is the forcer’s mounting. - A rotary turns its axis in rad: the axis has
stroke_radforstroke_m, its limits are[axis.<id>]’smax_velocity_rad_s,max_acceleration_rad_s2andmax_jerk_rad_s3, and what it moves is the rotary’sinertia_kgm2(andpayload_inertia_kgm2), and the bodies that ride on it (below). Itsincline_degtilts the axis it turns about; it has no guide and no cable chain. Its bearing drags with the rotary’sfriction_coulomb_nm+friction_viscous_nm_s_radw at the axis whileeffects.guide_frictionis on, taken at the rotor as c / i + v w_rotor / i² (in the motor’s shaft friction and its loss); no shipped file sets it. - Signals and checks are named by the motor, as the joint kit’s are by its joint:
joint.<motor>.force(what the screw, rack, linear motor or rotary passes to its axis),screw.<motor>.speed,.dnand.damage_rate,rack.<motor>.feed_force,strain_wave.<motor>.damage_rate;gearbox.<motor>.output_torqueis the torque ahead of the screw or rack. The checks are the kit’s:screw-speed,screw-dn,screw-buckling,screw-static,screw-life,rack-feed-force,strain-wave-life(the lives whereratings.required_life_his set). A motor that turns no pulley reports nopulley.<motor>.radial_load, so the belt-tooth and pulley-bearing checks pass it over. - A rack’s pinion loads the gearbox’s output shaft sideways: the tooth force F, tangential, and the force that pushes
pinion and rack apart, F tan(alpha_n) / cos(beta) (alpha_n = 20 degrees, beta the helix angle), at right angles to it,
|F| sqrt(1 + (tan(alpha_n) / cos(beta))²) together:
rack.<motor>.radial_load, judged asgearbox-radial-loadagainst the motor’sratings.shaft_max_radial_load_nwhere that is set. The helical pinion’s axial force and the tilt it puts on the shaft are left out. The rack gantry’s X: 208.0 N of 1500. effects.belt_stretchswitches the elastic model of the whole machine: with it the screws’, racks’ and rotaries’ gearboxes twist too (the converter’s stiffness in series), and the belt’s mode at a pose includes them, with the rotors held.
machines/screw-portal.toml is the XYZ portal with its Z belt replaced by a ball screw 16 x 10 behind a bellows coupling,
the Z motor’s brake holding the slide (0.055 N m of its 0.5); its X and Y belts (and those of the C portal and both
five-axis files built on it) are loops round a far idler each, far_x on the frame and far_y on the bridge, 0.1 m +
stroke + 0.1 m from the pulley (X’s mode at its far end 39.69 Hz, 74.48 when they shared their lengths out;
the_screw_portals_belts_ring_on_their_loops_by_hand); machines/rack-gantry.toml is a two-axis gantry with a
3 m X on a rack and pinion (module 2, 200 mm per turn) behind a gearbox of ratio 10 and Y on a belt. Both pass every
verdict on their cycles (screw-speed 2402 of 9833 r/min allowed, rack-feed-force 180 of 2400 N). The joint kit’s
screw, rack, linear motor and rotary table axes written as files give the kit’s verdicts digit for digit.
Linkages: the planar and the spatial delta
A linkage node is a parallel linkage. With two arms it is planar: two arms in the vertical x-z plane, one at each
side of the base, each
turned by a motor through its gearbox and carrying a pair of forearms down to a plate that keeps its orientation (a
five-bar whose lower links are parallelograms). The tool is the plate’s centre, x across and z up from the shoulders’
axis. machines/planar-delta.toml is the registered planar delta (delta-d2) written so, its values unchanged:
[[machine.axis]] # no stroke: the linkage's working range sets the range
id = "x"
[[machine.axis]]
id = "z"
[[machine.motor]] # and "2"; key = "motor-arm-1" names it as the crate does
id = "1"
[[machine.gearbox]] # and gearbox_2 on motor 2
id = "gearbox_1"
motor = "1"
[[machine.linkage]]
id = "delta"
arms = ["gearbox_1", "gearbox_2"] # the arm at +x, then the one at -x
axes = ["x", "z"] # across, then up
base_radius_m = "geometry.base_radius_m"
upper_arm_m = "geometry.upper_arm_m"
forearm_m = "geometry.forearm_m"
upper_arm_kg = "mass.upper_arm_kg"
# ... the other lengths, masses and the working range, see the file
Its fields: the geometry (base_radius_m, platform_radius_m, upper_arm_m, forearm_m longer than the upper arm,
forearm_spacing_m for the 3D view), the masses (upper_arm_kg with its upper_arm_cg_m and
upper_arm_inertia_kgm2 about the shoulder, elbow_kg, forearm_pair_kg with the forearm_elbow_share counted at the
elbow, platform_kg, payload_kg) and the working range (half_width_m, top_z_m, height_edge_m,
height_centre_m: a band below the top whose bottom is an arc through both edges and the centre) with the highest
condition number of the Jacobian a target may have, max_condition_number. Each is a number or the path of one; the
planar delta’s file names the crate’s [geometry], [mass] and [workspace].
The model is the crate’s (model reference): inverse kinematics elbow out, forward kinematics as
the lower meeting point of two circles of the forearm’s length round the elbows, the Jacobian J = J_x^-1 J_q of the
leg constraints, and the dynamics of two arms about their joints plus a point mass at the plate (each forearm pair’s
mass split, the share r at the elbow): M(theta) theta’’ = tau_gear + Q_g - m_nt J^T J_x^-1 w + tau_joint with
M = I_b 1 + m_nt J^T J. Each arm’s joint is a RotaryJoint, elastic or rigid (effects.joint_elasticity), its drive
train from its motor’s own config (above), its bearing friction and stops from [joint]. A
target outside the working range, out of reach, beyond a joint’s stop or above the condition number is refused with
the crate’s reasons, and the singularity verdict judges the cycle against ratings.max_condition_number. The signals
are the crate’s: arm.<motor>.angle, gearbox.<motor>.output_torque, kinematics.condition, the torque breakdown, loss
powers and energies; the gearboxes warm as gearbox_<motor>, the name of their loss.
Three arms make the spatial delta (Clavel’s): the arms at 0, 120 and 240 degrees round the base, each with a
parallelogram of two forearms down to a platform that stays level; the tool is x, y and z, so the node names three
axes (x, y, then up) and three gearboxes. Its fields are the planar one’s with the working range a cylinder about z
(radius_m in place of half_width_m, the bottom a sphere’s cap through the edge and the centre), and three more:
forearm_rod_spin_inertia_kgm2 (each rod’s inertia about its own axis, with effects.forearm_inertia), and the upper
arms’ bending with effects.link_elasticity, bending_stiffness_nm_rad and lateral_stiffness_n_m (required) with
bending_damping_nm_s_rad and lateral_damping_n_s_m. A planar linkage refuses the spatial values and the spatial one
half_width_m. machines/delta-d3.toml is the registered spatial delta (delta-d3) written so, its values
unchanged, naming the crate’s [geometry], [mass], [upper_arm] and [workspace].
One implementation: the delta crates are these linkages read from their own tables (sim_netlist::linkage and
sim_netlist::spatial; crates/machine-delta-d2 and crates/machine-delta-d3 are built on sim-netlist), so a fix
to the arms reaches the crates and the files at once, and each file gives its crate’s numbers to the bit.
A file with a linkage has as many axes as arms (with a key at most: no stroke, incline or cable chain), one motor
per arm, a gearbox on each and the linkage; a pulley, section, body, guide, idler, frame, span, screw, rack, linear
motor, rotary, worm, lean or scissor beside it is refused, as is a second linkage. The effects are the crate’s
([effects] as in its config); a belt effect switched on (belt_wrap, belt_stretch, …) is refused, as the
linkage has no belt to apply it to.
A scissor lift
A scissor node is a scissor lift table: stages stages of crossed arm pairs, each arm arm_m from pin to pin,
stand on the base; a screw of lead lead_m, turned by the motor through its gearbox, pulls the sliding foot of the
lowest stage towards the fixed one and so raises the platform. The tool is the platform’s height z, from
min_height_m to max_height_m.
[[machine.axis]] # no stroke: min_height_m and max_height_m set the range
id = "z"
[[machine.motor]]
id = "lift"
[[machine.gearbox]]
id = "gearbox"
motor = "lift"
[[machine.scissor]] # machines/scissor-lift.toml
id = "scissor"
gearbox = "gearbox"
axis = "z"
stages = 2.0
arm_m = 1.0
lead_m = 0.01
min_height_m = 0.6
max_height_m = 1.4
arms_kg = 40.0
platform_kg = 60.0
payload_kg = 200.0
screw_efficiency = 0.9 # with effects.gearbox_efficiency; default 1
screw_inertia_kgm2 = 6.47e-4
With u the span between the feet a stage stands s = sqrt(L² - u²) high and the platform h = n s; the screw turned by
theta moves the foot by c theta, c = lead / 2 pi. By virtual work the screw pulls the foot with
F = W dh/du = W n u / s = W n cot(alpha) for a weight W on the platform, alpha the arms’ angle to the base: the lift
needs three times the force at 0.6 m that it needs at 1.4 m. The dynamics are in theta as the linkage’s:
M(theta) theta’’ + m h’ h’’ theta’² = tau_gear + Q_g, M = J_screw + m h’², Q_g = -g m_g h’, m the platform, the
payload and the arms’ vertical motion ((4 n² - 1) / (12 n²) of them), m_g the platform, the payload and half the
arms. The joint is a RotaryJoint on the motor’s config, elastic or rigid (effects.joint_elasticity), the screw’s
efficiency on the gearbox’s. Signals: gearbox.<motor>.output_torque, scissor.<id>.actuator_force (the force on the
foot), the torque breakdown, loss powers and energies. A file with a scissor lift has one axis, one motor, its gearbox
and the scissor; anything else beside it is refused, as is a belt effect switched on.
Held by a constant torque the lift is unstable at every height: it needs less torque the higher it stands (gravity’s stiffness -g m_g h’’ is negative), so a little too much torque lifts it ever faster; the drive’s position loop holds it. Its standard suite runs without gravity for that reason.
Worm gears
A worm node makes a gearbox a worm stage: its ratio replaces the gearbox’s, and with effects.gearbox_efficiency
it loses by its own efficiencies, the gearbox’s stiffness, backlash and inertia staying:
[[machine.worm]]
id = "worm_c"
gearbox = "gear_c" # the gearbox in front of a rotary table, say
ratio = 40.0
efficiency = 0.76 # driven by the worm: tan(gamma) / tan(gamma + rho')
back_efficiency = 0.69 # driven back by the wheel: tan(gamma - rho') / tan(gamma); 0 or less locks itself (then eta < 0.5)
While the motor drives it passes its spring’s torque t on as t eta to the output and t / i to the rotor, as a gearbox
does (mech::Gearbox, the efficiency fading in over 0.5 W). Driven back by the load it passes t / eta_back: a back
efficiency of 0.5 has the rotor take half the load’s power. A back efficiency of 0 or less locks it: the load cannot
turn the worm. Driven back it passes t to the output and eta_back t / i to the rotor, against the motion, so the motor
has to push to lower a load, by -eta_back of the load’s torque over i, and the load’s and the motor’s power both go
into the worm’s friction; with no motor torque a lowering load brakes to a stop. At rest it holds any load with no
motor torque (its holding torque is 0). In the rigid model its output sticks at rest while the worm can take what the
motor and the load ask of it: from -(1 / eta - 1) of the held torque (lifting) to (1 - eta_back) of it (lowering);
beyond, it breaks loose. With the same efficiency both ways it is the joint kit’s rotary table with
table.gear = "worm". With effects.thermal_feedback its efficiencies follow its temperature as a gearbox’s does:
1 - eta becomes (1 - eta) (1 - s + s nu / nu_ref) both ways, a self-locking worm staying locked.
The belt’s wrap and a leaning axis
The belt’s wrap (effects.belt_wrap). With it the teeth in mesh at each driven pulley are wrap r / p (p the tooth
pitch) in place of ratings.belt_teeth_in_mesh, in the tooth-jump law and the belt’s tooth load. The wrap is worked out
at the pose from the places of the wheels in the belt’s plane (the section’s plane: x and z of the 3D view by default; x and y where the belt lies flat, as an H-bot’s or a CoreXY’s): the pulley’s at_m (from its body where it rides on one), and the
wheels before and after it along the belt, the last point but one of the route of the section that ends at the pulley
and the second of the route of the section that starts there (an idler with its at_m, from its body where it rides on
one; a body, a clamp on it, where the 3D view draws it; another pulley). Each wheel’s clockwise says which way the
belt runs round it, followed along the routes; the belt’s straight runs are the tangents that fit, and the wrap is how
far the belt turns round the pulley between them. For the shipped crates’ layouts that is mech::wrap_angle, half a
turn less the lean of both runs. A motor with a screw, rack, linear motor or rotary has no wrap (NaN in
Machine::belt_wraps; the tooth load passes it over). A file is refused where a belt pulley does not end one route
and start another, or it or a wheel next to it has no at_m. The screw portal with the wrap on: X’s belt runs from the
bridge’s clamp round its pulley to the far idler on the frame (a loop), pi + asin(r / D) + asin((r - r_f) / d) round
it, D from the clamp and d from the far idler.
The 3D view draws each belt section round its wheels, as the wrap sees them: from tangent to tangent between the wheels
of its route and round each wheel inside the route in the wheel’s sense, and round each motor pulley between the
section that ends there and the one that starts there (geometry::contacts, geometry::arc).
A leaning axis (effects.tool_flex, elastic model): a lean node is a body that leans on its carriage along a
horizontal axis, as the T-gantry’s Z axis does on its X carriage. Its centre of mass moves sideways by w against the
guide, which gives way sideways and in tilt: with h = com_drop_m less the lever_axis‘s travel, the stiffness at the
centre of mass is k = 1 / (1 / lateral + h² / tilt), and the tool tip, h_tool below, moves
k (1 / lateral + h h_tool / tilt) per metre of w. The body moves at its axis’s speed plus w’ over ground, so its mass
couples the axes and w; the spring acts inside, between carriage and body, the process force on the tool tip, and as
the lever axis travels the stiffer spring pushes back on it by -w² / 2 dk/dz. The tool is at the tip (tool_state),
the lean’s damping is power.tool_flex, its tip travel axis.<axis>.tool_deflection, and the belt’s mode includes it.
[[machine.lean]] # machines/t-gantry.toml
id = "z_lean"
body = "z_axis"
axis = "x"
com_drop_m = "geometry.z_com_drop_m"
tool_drop_m = "geometry.z_tool_drop_m"
lever_axis = "z"
lateral_stiffness_n_m = "tool_flex.lateral_stiffness_n_m"
tilt_stiffness_nm_rad = "tool_flex.tilt_stiffness_nm_rad"
damping_n_s_m = "tool_flex.damping_n_s_m"
belt_offset_m = "tool_flex.belt_offset_m" # with effects.belt_run_offset
The T-gantry’s file has both, off as shipped (the crate has its tool flex on): its pulleys at the ends of X at the carriage’s height and its carriage idlers r + r_idler above and below, so the belt leaves both pulleys level, half a turn at every pose, as in the crate; with either effect on it is its crate to 1e-9.
With effects.belt_run_offset (off as shipped) the runs that reach the leaning body from above (the clamp’s, whose
length changes with the lever axis alone) meet it belt_offset_m to the side their other wheel is on: the guide’s tilt
theta = k w h / tilt lifts the end on the + side by e theta and lowers the other, so those sections are longer and
shorter by e k h / tilt per metre of lean, first order. Their tension difference turns the lean, their stretch holds it,
and damping, energy and modes follow from the lengths (the crate’s lean_offset). With effects.beam_vertical_mode
the belt’s runs ride on the beam’s mode w as in the crate (belt_on_beam): a run that moves along the vertical axis
goes down with the carriage whole, one whose length changes with the beam’s axis alone tilts from its post’s pulley,
a third of its mass in the kinetic energy and half in the weight, the first moment and the momentum; their weight sags
the beam and their inertia is in its damping. The T-gantry file: its beam mode in the middle 58.776 Hz (59.32 Hz before
21 November), its rest sag 60.33 um (58.78), the hand values of machine_file_lean_beam.rs; the riding runs must keep
their length together (a file whose do not is refused). Both are their crate to 1e-9, alone and together
(the_effects_of_a_machine_file_are_its_crates, the_file_and_the_crate_agree_with_the_beam_mode_at_a_leaning_state,
with the offset on and off, and the modes, the_t_gantry_file_tells_its_crates_modes).
A gantry that yaws, and tools on rotary axes
A yawing bridge (machine.gantry, effects.gantry_yaw). A gantry’s bridge travels along a horizontal axis and
yaws a little about the vertical: its two sides, width_m apart, run apart by the width times the yaw angle psi (small
angles). psi is one more coordinate beside the axes. What holds it: the bridge’s joints on its carriages and their
guides, a spring stiffness_nm_rad with damping_nm_s_rad; screws, racks or linear motors at its sides (drives,
each with its place across the bridge from the centre, so that its output travels x + side psi); and belt sections
that pull its ends (sections, m of length per rad: the section’s pull along the axis times the end’s place across).
What it turns: its own inertia_kgm2, and the bodies that move with the axis and along the bridge (across). Such a
body sits e = q_across + shift from the centre and moves along the axis by e psi, so its mass couples the axis and the
yaw (m e) and adds m e² to the yaw’s inertia, through the Jacobian of its place (below); the tool on it moves with it.
Signals gantry.<id>.yaw (rad), .sync_error (width x yaw, m: how far the sides are apart) and .moment (k psi +
c psi’, N m, what the joints carry); loss power.gantry_<id>; check gantry-sync, the highest |sync error| against
tolerance_m. ConfigMachine::racking_moment gives the racking moment at a pose and acceleration in the loss-free
rigid model: what the belts, the drives and gravity put on the yaw beyond what turns the bodies with the bridge square.
The effect is off in the H-bot, CoreXY and rack gantry files as shipped, so that their results stay, and on in the
dual-drive gantry’s.
[[machine.gantry]] # machines/dual-gantry.toml
id = "bridge_yaw"
axis = "x"
across = "y"
width_m = "gantry.width_m"
inertia_kgm2 = "gantry.inertia_kgm2"
stiffness_nm_rad = "gantry.stiffness_nm_rad"
damping_nm_s_rad = "gantry.damping_nm_s_rad"
drives = { mx1 = -0.6, mx2 = 0.6 }
tolerance_m = "gantry.sync_tolerance_m"
- Two drives. Two racks on the gantry’s axis, one at each end: the file has one motor more than axes, and the two
set x and psi together. As shipped (
gantry.sync = "plain") each drive follows the axis’s setpoint on its own encoder (setpoint coupling), so the two position loops keep the bridge square, and their torques share the load by the lever rule: F2 - F1 = 2 m e a / B for a carriage m at e accelerated at a. With the effect off the guides hold the bridge square and the two share equally.machines/dual-gantry.tomlhas a 3 m X on two racks with catalogue motors (1FK2103-4AH on S210) and a 0.8 m Y belt on a 1.2 m bridge. It passes every verdict on its cycle:gantry-sync14 um of 100, and the end the carriage starts near carries more (rack-feed-force111 against 96 N). Its yaw rings at sqrt((k + 2 k_end (B / 2)²) / J) / 2 pi with the carriage in the middle: 425.4 Hz as shipped (J = 2.657 kg m²), above the Y belt (82.2 Hz) and X on its racks (262.3 Hz); the carriage at an end couples X and the yaw (255.6 and 394.8 Hz).sim-cli modes --machine-file machines/dual-gantry.toml --axis-index 1lists all three with their damping ratios (the yaw 0.144, X 0.088, the belt 0.039 in the middle); with J raised to 20 kg m² the yaw is 155.0 Hz in the middle, 151.7 Hz with the carriage at an end (the_dual_gantry_reports_its_yaw_among_its_modes_by_hand). - Synchronising the two drives (
gantry.sync,gantry.sync_gain_1_s, read where a gantry has two drives; the first is the master)."master_slave": the slave’s position loop follows the master’s actual position, its setpoint less the master’s following error, so the slave’s lag comes on top of the master’s: at a steady speed v with the speed feedforward off and the same loops the ends run v / Kv apart, the master’s following error (2 mm at 0.1 m/s and Kv 50 1/s), where the plain scheme keeps them together. With the feedforward on both lag little, and what the scheme changes is how a disturbance at the master reaches the slave."cross_coupled": the synchronisation error e (the slave’s actual position less the master’s, in the slave’s units) is fed back to both speed commands with the gain k, the slave’s losing k e and the master’s gaining k e; unequal loops then run apart by e0 / (1 + k (1 / Kv1 + 1 / Kv2)) instead of e0 = v (1 / Kv2 - 1 / Kv1) at a steady speed, so k = Kv1 Kv2 / (Kv1 + Kv2) halves the yaw (16.7 1/s for Kv 50 and 25). Tests:the_master_slave_sync_error_is_the_master_s_following_error,the_cross_coupled_gain_halves_the_yaw_of_unequal_loops(sim-machinesmachine_file_gantries.rs). - One drive. The rack gantry’s one rack drives its bridge at one end (
drives = { mx = -0.5 }): the joints’ spring alone holds the far end, which lags while the bridge accelerates; with the effect on the path error of its cycle grows from 0.07 to 0.23 mm. - H-bot and CoreXY. Belts pull the bridge’s ends. In the H-bot (
sections = { "1" = -0.3, "2" = 0.6, "3" = -0.3 }) the belt’s moment on the bridge is -0.3 m times its pull on the head along the bridge: it racks whenever the head is pushed along the bridge, wherever the head is (-4.2 N m for the 7 kg head at 2 m/s²), and a head off the centre racks it as the bridge accelerates (-m e a). A rigid belt lets the H-bot rack (the head can move along the bridge with the motors held), so it racks in both models; with the effect on the path error of its cycle grows from 0.06 to 1.09 mm. In the CoreXY each belt pulls both ends: its moment is the one belt’s tension sum against the other’s, -0.19 N m for the 8 N pull that would rack an H-bot with -2.4, and its path error stays 0.02 mm. A rigid belt holds a CoreXY’s yaw: its rigid model has none. (These figures were 0.80, 0.20 and 0.06 mm in the text of 14 November; its own build gives 1.07, 0.25 and 0.06 mm. The H-bot’s 1.07 became 1.12 mm, the rack gantry’s 0.224 became 0.225 mm, on 16 November (024b876a): the files’ belt runs carry their own mass, the H-bot’s mu (L + 8 (0.65 - y)) on X where the lumps had mu L (0.86 against 0.42 kg at y = 0.1 m) and 2 mu (2 x - 1) between X and Y; with effects.belt_mass off the figure is 1.07 mm before and after. Which of the two terms racks the bridge more was not separated. The belt’s runs along the bridge follow its yaw since 25 November (yaw_lever_m, below): the H-bot’s 1.12 became 1.09 mm with that, run on 26 November (sim-cli analyze --machine-file machines/h-bot.toml --set effects.gantry_yaw=true; the CoreXY 0.02 mm, the rack gantry 0.23 mm). The CoreXY’s 0.06 became 0.02 mm on 14 November, with the merge d360b7ed.)
Bodies on rotary axes, and the tool centre point. A body may move with rotary axes: offset_m is its centre of
mass from where their axes meet at angle 0, and it rides round on them, the first in its axes outermost. A rotary
axis’s incline_deg tilts the axis it turns about from the vertical (0, a C axis) towards x (90, an A axis). Such a
body’s place p(q) is the straight axes’ travels plus its offset turned by its rotaries; its share of the mass matrix is
m J^T J (J = dp/dq, by central differences), of gravity -m g J_z, and of the forces its speed asks -m J^T (dJ/dt q’),
the centripetal and Coriolis forces: Lagrange’s equations, so the energy keeps. A tcp node makes the tool’s
coordinates those of the tip: three straight axes along x (the file’s first), y and z, the rotaries that carry the
tool, and tool_m, the tip from where their axes meet. The axes stand at the tip less tool_m turned by the rotaries,
so a path moves the tip straight while the rotaries turn, the straight axes making up for them, and the feedforward has
the speed’s part (feedforward_torque_moving). The tool’s ranges are where its tip can be whatever the head’s angles
(the strokes shifted by tool_m turned by the rotaries, at their least), and a pose beyond the straight axes’ strokes
is refused (error-tcp-joint-range). The 3D view draws the tool from the rotaries to the
tip, and the tool’s path at the tip.
[[machine.tcp]] # machines/five-axis.toml
id = "tool_tip"
axes = ["x", "y", "z"]
rotaries = ["c", "a"] # C about the vertical carries A about x
tool_m = [0.0, 0.0, -0.2]
machines/portal-c.toml is the screw portal with a C axis on its Z slide turning a gripper whose tip is 0.1 m off the
axis: its cycle carries a part while C turns it a quarter turn, the tip on a straight line. machines/five-axis.toml is
the screw portal with a fork head, C about the vertical and A about x inside it, the tip 0.2 m below where they meet: its
cycle tilts A and swings C half a turn round the still tip, X and Y running on a circle, and the spindle’s weight on A.
Both pass every verdict on their cycles. Their rotaries’ gearboxes, inertias and the heads’ masses are estimates.
A rotary table that carries the workpiece (table, table_pivot_m). The tool’s x, y and z are then the tip’s
place on the workpiece, as it lies at the table’s angles 0; a point w of it lies in the room at p + R_table (w - p), p
where the table’s axes meet and R_table its rotaries’ turn (the outermost last). So the straight axes stand at
q = p + R_table (w - p) - R_head tool_m: a path on the workpiece is cut while the table turns it, the straight axes
making up for the table, and the head’s rotaries (rotaries) may tilt the tool beside it (head/table). The tool’s
ranges are the box about p as wide as p’s least distance from an end of X’s and Y’s strokes, the workpiece the table
can turn under the tool; a pose beyond the straight axes’ strokes is refused (error-tcp-joint-range).
machines/five-axis-table.toml is the screw portal over a trunnion: A about x carries C, the table, about its own axis,
meeting at (0.5, 0.25, -0.2) m, the tool hanging 0.2 m below the Z slide. Its cycle tilts the table with the tip held on
a point of the workpiece, turns the table half a turn under the still tip (X and Y on a circle round C’s axis), and
moves the tip on the workpiece with all five axes. The trunnion and the table ride on A and C (offset_m), so tilting
A lifts their weight on A’s motor. Test a_table_table_tcp_keeps_the_tool_on_a_line_while_the_table_turns: the tip on
a straight line of the workpiece while C turns 2 rad at A 0.3 rad, every motor against its hand-worked angle; a
head/table variant (A in the head, C in the table) in
a_head_table_tcp_turns_the_tool_in_the_head_and_the_workpiece_on_the_table.
[[machine.tcp]] # machines/five-axis-table.toml
id = "tool_tip"
axes = ["x", "y", "z"]
table = ["a", "c"] # A about x carries C, the table
table_pivot_m = [0.5, 0.25, -0.2]
tool_m = [0.0, 0.0, -0.2] # without a head: from the straight axes' point
The other examples: a CoreXY and an XYZ portal
machines/corexy.toml is a CoreXY table. Its two motors stand at the front corners; each drives a belt clamped to the
head at both ends, so each motor’s pulley cuts its belt into two sections. Belt A gets longer by x + y on one side of
its pulley, belt B by x - y, so the pulley angles are a = (x + y) / r and b = (x - y) / r: the loader finds that from
the sections alone, and one motor turning alone moves the head along a diagonal. The gantry moves in Y, the head on it
in X. Its idler nodes (four, off by default) and the route of each section are what the 3D view draws.
machines/xyz-portal.toml is a three-axis portal: X, Y and Z each on a belt loop of its own, round its motor’s pulley
and an idler at the far end, clamped to its carriage, Z vertical. Its Z motor is smaller, with a gearbox of ratio 10,
its drive tuned for it and its own ratings (above); it holds the slide and payload,
m g r / i = 3.5 kg * 9.81 m/s² * 0.02 m / 10 = 0.0686 N m.
Both pass every verdict on their cycles with the T-gantry’s placeholder values (sim-cli verdicts --machine-file ...);
neither is a real machine.
Meshes for the 3D view
The app draws every part a machine reports as a box, a cylinder (with a flange and a shaft stub where it is a little
longer than wide), a grooved bar (a long box of nearly square section) or a strip. A part can be drawn from a CAD model
instead. The config or machine file says where the models are, in an optional table [scene]:
[scene]
meshes_dir = "meshes" # a directory, relative to this file (or absolute)
In that directory the app looks for <part id>.glb for every part of the scene, as the 3D view’s part ids are named
(motor, belt, …; picking a part in the view shows its id). A part with a file is drawn from it; a part without one
stays as it was, and so does the whole view where the key is absent or the directory is not there. Nothing is reported,
since most parts have no model. Only glTF binary files (.glb) are read, and each must hold all it needs (embedded
textures). A model keeps the size it was made at, with its origin at the part’s place in the scene and glTF’s axes as
the 3D view has them (x to the right, y up, z towards the viewer); it moves and turns with the part and is not
stretched to it. Vendor CAD files may usually not be passed on: keep the meshes beside your own config, not in a
repository you publish. Where the key is absent, the meshes in the app’s own assets/meshes/<config file name>/
folder are still found.
scene.meshes_dir is a key that every machine’s config takes. The app reads it again when the config changes (the
parameter field takes scene.meshes_dir = "meshes") and draws the parts anew; the command line and the other front
ends ignore it.
What is checked, and how errors read
A machine file is checked in full when it is loaded, before anything runs:
- the TOML or JSON itself,
format_versionandmachine.version; - every node: no field its kind does not have, every required field there, each value of the right type, ids valid and unique, every reference to a node that exists, every path to a number that exists;
- the machine: masses, radii and lengths positive, one gearbox per motor (none for a linear motor) and one pulley, screw, rack or rotary per gearbox, at most one of these per axis (but two at a gantry’s sides), a screw at least as long as its stroke, as many motors as axes and one more per gantry drive beyond the first, a gantry’s drives on its axis, a tool centre point’s axes along x, y and z, a routing that keeps the belt’s length and sets every axis;
- every other key against the keys the registered machines’ configs have (so
pretensoin_nis refused by name), plus[axis.<id>]for each axis, a friction table for each guide, the value tables of screws, racks, linear motors and strain wave gears laid out as the joint kit’s, and every key the netlist names by path; - then everything the simulation reads at its start, as for a config: the drive, the cycle, the start pose, the catalogue parts the file names.
An error names the file, the line and the key, in the front end’s language:
$ sim-cli verdicts --machine-file broken.toml
Configuration has a value this machine does not know: broken.toml:674: machine.guide[guide_z].side_lod
A node is named by its list and its id, machine.guide[guide_z]; before its id is read, by its place in the list,
machine.gearbox[#2] (from 1). Where an error is about a value a node names by its path, the line is that of the
node’s field. The line is found for TOML files; for JSON the key alone is given.
The model behind it
A machine file builds a ConfigMachine: a belt gantry of any routing with n axes q and as many motors. It is the model
of the single-axis and T-gantry crates, written for any routing (model reference has their
derivations):
- Belt section s has the length L_s = L0_s + Σ_i c_si q_i, plus the teeth in mesh at each driven pulley it ends at
(
Belt::tooth_length), and pulley k feeds f_sk r_k of belt into it per radian. - The belt pulls axis i with -Σ_s c_si T_s and turns pulley k with r_k Σ_s f_sk T_s (of the belt’s material, with the
elastic law of
Belt). - Rigid (effects.belt_stretch off), the belt keeps its length: C q = F diag(r) a, so a = K q with K the least-squares solution of F diag(r) K = C. The loader refuses a routing where K does not reproduce C exactly, or is not invertible.
- At rest the tensions hold every axis against gravity, and each closed belt keeps its material: sections that share a pulley are one belt, and it is closed where each of its pulleys feeds it on one side and takes it out on another. A machine may have several belts (one per axis, say); a belt that ends on a drum has no such sum.
- The mass on axis i is the sum of the bodies that move with it; the axes are taken square to each other, so the bodies’ mass matrix is diagonal, but for the bodies on rotary axes or across a yawing bridge, which add m J^T J, their share of gravity and the forces of their speed (above). Pulleys and rotors (J_pulley + i² J_rotor per motor, the belt’s mass shared out on the pulleys equally) add K^T J K. Gravity pulls axis i with m_i g sin(incline_i).
- Gearbox (backlash, stiffness, efficiency), motor friction, torque ripple and cogging, tooth meshing, holding brake,
hard stops at both ends of every stroke, LuGre guide friction with its load scaling: the components of
sim-components::mech, as the crates use them. Each motor’s from its own config (above). - Idlers (
machine.idler,effects.idlers): idler d passes belt at s_d . v (itsspeed), so its inertia J / r² adds m_d s_d s_d^T to the axes’ mass matrix (which is then full), and its bearing pulls the axes back with F_d tanh(s_d . v / (w r)) s_d, F_d its friction torque over its radius. They carry no weight. - A cable chain on an axis: its moving mass m(q) = mu (L0 + q / 2) takes m dv/dt + m’ v² / 2, and it drags.
- A process force per axis,
process.force_<axis>_n, on the tool while the cycle dwells. - The frame (
machine.frame, elastic model): it sways by u along a horizontal axis f; the bodies move at v + e_f du/dt over ground, and the frame takes back the forces its belt, guides, idlers, chain and stops put on them, but not the process force, which the workpiece on the floor takes. The tool moves with the frame. - Thermal feedback: each gearbox’s efficiency and each guide’s viscous friction follow their temperature, the belt’s
stiffness the ambient one (
mech::ThermalFeedback). - Belt tooth jump (elastic model): at each motor pulley between the section it feeds and the one it takes from
(
mech::ToothJump); a pulley with a section on one side only (a drum) refuses the effect. - Span vibration (
machine.span): each span’s first sideways mode at its section’s tension, against what the drives excite (mech::span_frequency). - The belt’s mass run by run: where every span gives its belt’s speed over ground per axis speed (
velocity_x,velocity_y,velocity_z, along the 3D view’s axes) and the spans together are the whole belt (refused otherwise), each run, L_s = L0_s + c_s . q long, moves at V_s v over ground, and with the frame’s sway e du on top: the belt’s kinetic energy ½ mu Σ_s L_s |V_s v + e du|² replaces the half of it on each pulley in the axes’ (and the frame’s) mass matrix, with Lagrange’s speed terms, and its momentum and first moment are in the frame’s momentum. Its weight sits at that first moment: the potential has g mu Σ_s (L0_s + c_s . q / 2) V_s,z . q and gravity its gradient (runs_height), so the T-gantry’s vertical runs weigh 0.16 kg on Z as in its crate, and the XYZ portal’s Z belt nothing (a loop: the run from its motor to the far idler, 0.5 m, falls as the two with the slide rise; its X and Y belts are loops the same way, 1.2 and 0.7 m from the motor to the far idler). The T-gantry’s file gives its spans so; its crate derives the same from its belt path (belt_mass). So do the other files whose belt runs move over ground, each with its table of runs in its comment: the H-bot (the T-gantry’s path with Y for Z: its belt weighs mu (L + 8 (0.65 - y)) on X, 0.86 kg at y = 0.1 m where the lumps had 0.42, and 2 mu (2x - 1) between X and Y), the CoreXY (each belt moves as a whole along X and along Y, as the lumps had it, and adds mu (1.2 - 1.3) m = -0.01 kg between them), and the portals and gantries whose Y (and Z) belt rides on the axes that carry it (on X 0.32 kg more on the XYZ portal, 0.19 kg on the C portal, 0.2 and 0.14 kg on the dual and rack gantries). Checked by hand and for energy and feedforward (the_belts_runs_keep_the_energy_and_give_the_moved_mass_by_hand). - The belt’s runs on a yawing bridge (
yaw_lever_m,yaw_lever_axesof a span, witheffects.gantry_yawandmachine.gantry): where a run lies across the bridge, l_s = l0_s + b_s . q from its centre (m; b_s per metre of each axis for a run that ends on the head), the yaw moves it along the bridge’s axis d by l_s times the yaw angle, as it moves a body at that lever. Its speed over ground is V_s v + l_s psi’ d + e du, so the yaw’s column of V_s holds l_s d and the mass matrix gets mu L_s V_s’ V_s with it (span_rows); Lagrange’s speed terms carry the lever’s change with the coordinates, -mu L_s [(b . v) (d . y) on the yaw’s row, and on every row i: (V_i . d) (b . v) psi’ - (d . y) b_i psi’]. A span without a lever is as before (the yaw does not move it). The H-bot’s runs along x and the CoreXY’s along y carry their ends’ ±0.3 m, which their sections’ yaw coefficients fix (axes times lever: the H-bot’s -0.3, 0.3 + 0.3, -0.3; the CoreXY’s -0.3, -0.3, 0.3, 0.3); the runs across the bridge (the H-bot’s and CoreXY’s along the other axis, the dual and rack gantries’ Y belts) have none, since their files do not say where along the bridge each lies, so the yaw leaves them at their bridge’s speed. By hand on the H-bot at x = 0.37 m the yaw’s entry of the belt’s mass matrix grows by mu 0.3² 2.6 m = 0.0234 kg m², its coupling to x by 0.0156 and to y by -0.078 kg m (the_belts_runs_along_the_bridge_ride_its_yaw); the energy closes (the_energy_closes_with_the_belts_runs_on_the_yaw). Not in: the frame’s momentum (effects.base_compliance) still takes the runs at the axes’ speeds without the yaw. - The belt’s mode (elastic model): the axes, and the frame where it sways, on the belt’s stiffness with the pulleys
held, K = Σ_s EA / l_s c_s c_s^T (l_s the section’s unstretched belt at rest, as the crates take it), against their mass matrix; the lowest is
resonance_hzat a pose, soeffects.shaper_follows_posesets the shaper to it, and the app shows its shape (scaled to 1 m of tool travel).Machine::modes(sim-cli modes, the app’s plot) gives every mode of K and M, the yaw’s, the screws’, racks’ and rotaries’ gearboxes with them, lowest first, each with its damping ratio x^T C x / (2 w) (x its shape, x^T M x = 1): C the belt sections’ c + c_t EA / l, the gearboxes’ dampers at the mode’s frequency, the yaw’s, the frame’s, the lean’s and the beam’s. The T-gantry’s file gives its crate’s two modes and their damping to 1e-9 (the_t_gantry_file_tells_its_crates_modes). Until 21 November 2026 a file told its lowest mode alone, damping 0. - A screw, rack, linear motor or rotary (
machine.screw, …): its motor’s gearbox becomes one in the axis’s unit, of ratio i / lever (the joint kit’sRotaryJointwith thetransmission::Converterbehind it), and its “pulley” is the axis itself: K has the row e_i for it, the axis takes the gearbox’s output as its force, the belt’s equations leave the axis to it (at rest and in the rigid tensions), and in the elastic model the pulley’s states follow the axis. A rotary axis’s mass is its rotary’s inertia and what rides on it. A drive at a yawing gantry’s side has the row e_i + side e_psi. - A gantry’s yaw (
machine.gantry,effects.gantry_yaw): one more coordinate psi after the axes, with its spring and damper, the belt sections’ yaw coefficients in C, the drives’ sides in K. Where fewer motors than coordinates set it (one drive, or belts), the motors set the axes and the spring the yaw (forwardand the feedforward take the axes’ rows); where belts cannot keep their length with it (a CoreXY), the rigid model has no yaw. - A tool centre point (
machine.tcp): the tool’s pose maps to the axes and back through the rotaries’ turn oftool_m; speeds and accelerations by differentiating that map. - A worm stage (
machine.worm): its gearbox’s output gets t eta^x and its rotor t / i, x = tanh(t w / 0.5 W), with the back efficiency where the load drives (x below 0). A self-locking one follows Coulomb’s law at its mesh without the fade, its friction (1 / eta - 1) times the torque on the driving flank and (1 - eta_back) times it on the overhauling one, so the mesh only ever takes power. In the elastic model the torque is the gear spring’s: the output gets it as it is and the rotor the flank’s friction besides; the friction never exceeds what stops the rotor within 1 ms (worm::STICK_TIME_S), so it sticks at rest within the two flanks’ levels and holds its load with no motor torque (ConfigMachine::worm_drag). Lowering a heavy wheel with too little push it jams: the overhauling flank’s friction rises with the spring’s torque as the rotor slows, the rotor stops within milliseconds and the wheel rings on the spring. In the rigid model, with a self-locking worm, the gearboxes’ outputs are solved for beside the accelerations, and a moving self-locking worm’s drag at the wheel is the larger of the driving flank’s, (1 / eta - 1) times the torque the wheel takes, and the overhauling flank’s, (1 - eta_back) times the torque the output holds at rest against the axes’ forces (a drag in proportion to the dynamic torque there has no rigid solution with a heavy wheel, Painleve’s paradox). That drag rises with the wheel’s torque, so the solve has one answer. At rest, and below 1e-3 rad/s (worm::STICK_SPEED), the output sticks within the worm’s bounds (ConfigMachine::rigid_locking). - A leaning body (
machine.lean, elastic model): one more coordinate w beside the axes, the body’s mass coupling it to its axis, [[M, m e_a], [m e_a^T, m]] [a; w’‘] = [F; tip p_a - k w - c w’], k and tip fromgeometry::flex_at. - The belt’s wrap (
effects.belt_wrap):geometry::wrapat each pulley from its neighbours’ tangents, at the pose. - A linkage of two or three arms builds a
LinkageMachineor aspatial::Delta, a scissor aScissorMachine, not aConfigMachine: their models are above.
The controller, drives, DC link, winding heat, analyses, verdicts, sensitivity and error bands are those of every machine; nothing about them is particular to machine files.
What machine files cannot do yet
-
The wrap’s places are the 3D view’s: the section lengths are not checked against them by a file’s reading (the wheels’ check of the shipped files in
sim-netlistcompares them). -
tool_flex: one leaning body, along a horizontal axis; it leans in the elastic model only (as in the crate). -
A self-locking worm’s rigid model takes the overhauling flank’s friction from the torque the wheel holds at rest, so it brakes a heavy wheel smoothly where the elastic model jams; both agree at a steady speed.
-
A rotary’s bearing friction acts at the axis behind the gearbox’s spring and efficiency in the elastic model, at the rotor (c / i + v w / i^2) in the rigid one; a screw’s preload acts at the rotor in both.
-
A rack’s pressure angle is 20 degrees for every rack, and its pinion’s axial force is left out of the shaft’s load.
-
The scissor lift’s arms count as uniform rods (their vertical and sideways motion and their turning are in its mass; the sliding feet’s rollers have none of their own), it has one screw on the lowest stage’s foot (no cylinder between the arms), and it does not mix with belts, screws or bodies. A linkage’s or scissor lift’s file cannot carry other mechanisms beside it. The spatial delta’s modes take each arm’s own gearbox.
-
A gantry’s yaw: one per file, small angles (the sides move by the width times the angle); the drives each follow the common setpoint, so there is no master/slave or cross-coupled synchronisation in the drives (the controller’s to add) and the sync error is what two equal position loops leave. A section’s yaw coefficients are numbers from its routing, not worked out from its
route; a body on the bridge that does not move across sits at its centre; idlers and spans do not follow the yaw. -
A body on rotary axes is a point mass at its centre of mass: its own inertia about that is in the rotary’s
inertia_kgm2. A tool centre point needs three straight axes square to each other (the 3D view’s x, y, z) and the rotaries on the tool’s side (a head), or a rotary table carrying the workpiece (tcp.table). The analysis’s settling and path errors add a rotary axis’s error in rad to the straight axes’ in m. -
A screw’s stiffness follows the nut with
effects.screw_stiffness_with_position(on in the shipped screw files), as in the joint kit; off, the one at its softest nut position for the whole stroke. Its preload’s drag sits at the motor with a smoothing in rad/s. -
Modes other than the belt’s: the frame enters the belt’s mode where it sways, but the guides’ and the motors’ own stiffness do not, and a body’s bending is not modelled.
-
Section and span lengths are numbers (or paths), not formulas: one whose length depends on a stroke does not follow a change of that stroke by itself.
-
sim-cli listand the app’s machine list show the registered machines only; a file is opened, not listed.
How it is validated
crates/sim-machines/tests/machine_files.rs loads machines/single-axis.toml and machines/t-gantry.toml and holds
them against their crates:
- the machine itself, in five sets of effects (default, rigid, without losses, without gravity, without belt details and payload), at three poses with the payload held, set down and with the brakes on: kinematics, the state at rest and its holding torques, the derivatives of a state moved off rest under torques, energy, feedforward, rigid tensions, and every signal both have: agree to 1e-9;
- the full cycle (controller, drives, DC link, winding), elastic and rigid, without the encoder’s counts: every motor load and verdict value agrees to 1e-5. Closer is not possible: the two sum in another order, and while a guide breaks away from stiction a difference of 1e-36 grows tenfold every 30 steps before it closes again in the cruise;
- the same with the encoder’s counts as shipped: the same verdicts, limits and pass or fail. There a last-bit difference moves one count by a step, and switching thresholds (the braking chopper) carry that on: the crate run with its carriage 1e-9 heavier spreads its peak braking power by 0.5 %, and the file is held to three times the crate’s own spread, or 1e-4.
The same comparison runs with each effect machine files have had since 13 November switched on (frame, idlers, cable
chain, process force, thermal feedback with warm parts, belt tooth jump, span vibration), elastic and rigid, and with
all of them at once: the T-gantry’s file names its five idlers, frame and eight spans, and gives the crate’s numbers to
1e-9 (the_effects_of_a_machine_file_are_its_crates); since 14 November also with the leaning Z axis (machine.lean)
and the belt’s wrap from the places of its pulleys and idlers, whose wraps agree too. The effects’ own hand checks are
the crate’s.
The H-bot, the CoreXY and the portal have no crate to be held against. All five files pass the standard suite every machine passes (round trip, static hold, determinism, energy conservation without losses, the loss budget with them), and hand calculations check the H-bot’s and the CoreXY’s motor angles and torques, the portal’s per-motor gearbox ratio (in its Z motor’s angle and speed), the torque its Z motor holds the slide with, its Z motor’s own drive and ratings, the single axis’s belt mode, and the belt strips the 3D view draws. The CoreXY and the portal lie flat (in X and Y) as the H-bot does and run the suite without backlash for the same reason. Its suite run has the gearbox backlash off: nothing pulls its gears to one flank, and the suite’s small pulse knocking them across the backlash drifts the energy by 0.17 %, over the 0.1 % allowed. That is the gearbox contact at the suite’s step size, not the netlist: the T-gantry crate with gravity off drifts by 0.19 % the same way.
crates/sim-machines/tests/machine_file_mechanisms.rs holds the screws, racks, linear motors and rotary tables: the
joint kit’s screw axis written as a file is its crate to 1e-9 (elastic and rigid, payload held, set down and braked:
kinematics, rest state, derivatives, energy, feedforward, the screw’s signals and torque breakdown, its checks); by
hand, the screw portal’s Z motor torque for a load and acceleration and its screw’s critical speed, the rack gantry’s
motor angle x i / r and feed force, a linear motor’s current for a force and its guide load, a rotary table’s torque in
rad, a rotary’s bearing friction at the motor ((2 + 0.5) / 100 = 0.025 N m), the rack pinion’s radial load on the
gearbox shaft (37.5745 N for 35.05 N on the teeth); both new files pass the standard suite; and a broken screw is
refused by key and line.
crates/sim-machines/tests/machine_file_linkage.rs holds the linkage: machines/planar-delta.toml is the planar delta’s
crate to 1e-9 in its default config and with each of its 36 effects switched from its default, one at a time (axes and
motors, kinematics, rest state and holding torque, the derivatives of a state moved off rest, energy, both
feedforwards, every signal, the parts’ warmth, what the working range refuses); its cycle, elastic, rigid and with
every effect that is off by default switched on, gives the crate’s signals at every 16th step of the first half second
and the crate’s motor loads and verdicts, to 1e-9 (the two sum in the same order, so they agree to the bit, encoder
counts and all); the file passes the standard suite with the crate’s loss-free configs; by hand, the arm angles at
(0.1, -0.5) m (-asin 0.2 = -11.537 degrees and 16.474 degrees) and the holding torque at the centre (-18.368 N m at
each gearbox); and a broken linkage is refused by key and line (a belt effect switched on and a spatial value on the
planar linkage among them). machines/delta-d3.toml is the spatial delta’s crate the same way, with each of its
effects switched from its default, and its cycle gives the crate’s signals and verdicts to 1e-9. The scissor lift’s
holding torque and the force on its foot at 0.6 and 1.4 m are the hand’s (W n cot(alpha): 17462.6 and 5602.7 N), as
its force ratio n cot(alpha) at two heights is (scissor.rs), and its file passes the standard suite without gravity.
crates/sim-machines/tests/machine_file_geometry.rs holds the belt’s wrap from the places of a pulley’s neighbours by
hand at two poses (an offset idler and a clamp that is not level), the worm gear against the joint kit’s table with its
worm (rigid and elastic, driving and driven back), a self-locking worm’s hold and a turning worm’s back-driven
acceleration by hand, the self-locking worm braking a lowering load with no torque, needing 0.05 N m of push to lower it
and sticking from rest short of what moves it, the moving self-locking worm’s one answer over a sweep of speeds and
torques against both flanks by hand and its lowering at speed (the motor’s 5 W and the load’s 10 W lost in the worm;
with no torque it brakes to rest and holds), the elastic self-locking worm standing at rest under load, costing the
rigid model’s torques and losses at a steady speed both ways, and never giving power through breaking loose, a reversal
and its jam with the loss budget closed, the belts’ wraps of the screw portal beside its Z screw, and the
catalogue search for the XYZ portal’s Z motor alone.
crates/sim-machines/tests/machine_file_review.rs holds what an independent review found by experiment and what was
fixed: a machine with two or three separate belt loops (its rest state was wrong where an axis is vertical), a
guide on an overhang where the drive masses couple the axes, an axis no body moves, the H-bot’s Y drawn along X,
unchecked machine.id and machine.name, error lines that pointed elsewhere, and a JSON version written 1.0.
The tests also check that a JSON file gives the same machine as its TOML, that schema/machine-file.schema.json is
current, that nine kinds of broken file are refused with the right key and line, and (in sim-cli, sim-app and
sim-opcua) that each front end loads, runs and refuses machine files.
JSON, the JSON Schema and editors
A file whose name ends in .json is read as JSON: the same tables as objects, the node lists as arrays of objects.
format_version and machine.version are integers (1, not 1.0).
schema/machine-file.schema.json (JSON Schema, draft 2020-12) describes [machine] in full, with every field’s
meaning; the value tables it lists as objects (their keys are in the config reference). It is
written from the same list the loader checks against (sim_netlist::netlist::NODES). After a change to that list,
rewrite it with
MACHINE_SCHEMA_WRITE=1 cargo test -p sim-machines --test machine_files the_json_schema_file_is_current
The format is meant for a node editor too: ids are stable and unique in the file, references are by id, pos holds a
node’s place on the canvas and is otherwise ignored, and nothing depends on the order of the nodes but the order of the
motors and axes.
Rust API
sim_machines::load_file(path) -> Result<&'static MachineEntry, FileError>: what the front ends call. The entry is used like one ofMACHINES(Sim::new(entry, &entry.config()), the analyses,translations). It lives as long as the program.sim_netlist::from_text(toml_text, lines, fallback_id, known): the same on a file’s TOML text, with the configs whose keys a file may use given (known); it returns the error with its line wherelinesis set. JSON is converted insim_machines, the only layer that reads it; the machine crates’ layer hastomlalone.FileError { file, line, error },erroraConfigError(a translation key and the path it is about), as for any config.sim_netlist::build(&Config): theMachineEntry::buildof every machine file; the netlist is in the config.sim_netlist::Netlist::parse(&Config),ConfigMachine::new(&Config, &Netlist),json_schema()(as a value;sim_machines::json_schema()writes it),line_of(text, path).sim_components::catalog::motor_config(&Config, motor_id): the config one motor sees (motors that differ);Controller::drive_params_of(k)is its drive.sim_machines::load_text(toml_text, id): a machine file’s text asload_filereads it (what an FMU does with itsresources/machine.toml).
Config reference
One TOML file per machine. Units are in the key names. The key list below was generated from the three shipped configs, so every key they have is here:
| Short | File | Machine |
|---|---|---|
| T | crates/machine-t-gantry/default.toml | T-gantry, made-up mid-size machine. Placeholder values |
| E | crates/machine-t-gantry/exct-30.toml | T-gantry: Festo EXCT-30 with Siemens 1FK2205-4AF. Each value marked [catalogue] or [estimate] in the file |
| S | crates/machine-single-axis/default.toml | Single belt axis. Placeholder values |
| D | crates/machine-delta-d3/default.toml | Delta picker D3, sized like the Autonox RL3-1200-3kg with Siemens 1FT2105-4AF (the 1FK2105-4AF Autonox names, as a 1FT2 for the SP100 precision gearbox). Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| D2 | crates/machine-delta-d2/default.toml | Planar delta picker D2, sized like the Codian D2-800-S020 with Siemens 1FT2105-4AF and the SP100 gearbox. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| Parallel SCARA | crates/machine-parallel-scara/default.toml | Parallel SCARA: the D2’s five-bar in the horizontal plane with a Z stroke on a ball screw and a tool turn at the plate. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| C | crates/machine-delta-d3/conveyor.toml | The D3’s default with a [conveyor] table: it picks from a belt conveyor instead of running the Adept cycle. So do the conveyor examples beside the T-gantry’s, the D2’s, the D4’s and the linear delta’s defaults (crates/machine-t-gantry/conveyor.toml, crates/machine-delta-d2/conveyor.toml, crates/machine-delta-d4/conveyor.toml, crates/machine-delta-linear/conveyor.toml) |
| D4 | crates/machine-delta-d4/default.toml | Four-axis delta picker D4: the D3 with a turning tool on a telescopic shaft, sized after the ABB IRB 360 with its fourth axis. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| H4 | crates/machine-delta-h4/default.toml | Quattro-type four-arm delta H4: four arms at 90°, a plate in two parts that slide against each other and turn the tool through a rack, a pinion and a gear stage; sized near the Omron Quattro s650H class (1300 mm across, 6 kg) with Siemens 1FK2105-6AF. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| L | crates/machine-delta-linear/default.toml | Linear delta, sized like the Festo EXPT-95 with Siemens 1FK2205-2AF. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| H | crates/machine-hexapod/default.toml | Hexapod on six electric cylinders, generic proportions with Siemens 1FK2105-4AF. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| TR | crates/machine-tripod/default.toml | Tripod (3-RPS tilting table) on three electric cylinders, generic proportions with Siemens 1FK2104-4AF and Hiwin 20-10K3-FDC screws. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| HR | crates/machine-hexapod-rotary/default.toml | Hexapod on six cranks (6-RSS), a small motion base with Siemens 1FT2104-5AF and SP100-04-50. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| CP, CS | crates/machine-cable-robot/config/ | Planar (4 cables) and spatial (8 cables) cable robots, generic proportions with Siemens 1FK2105-4AF. Each value marked [catalogue] or [estimate] in the file. Their keys are in their own section |
| W | crates/machine-wafer-handler/default.toml | Wafer handler: an R-theta-Z arm of two equal links in the horizontal plane, its forearm and effector coupled to the shoulder by bands at 2:1 and 1:2, on a column that turns and lifts; sized as an atmospheric handler for 300 mm wafers with Siemens 1FK2103-2AH. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| OC | crates/machine-overhead-crane/config/crane.toml | Overhead crane of 250 kg: bridge, trolley and hoist on Siemens 1FK2104-6AF and 1FK2105-6AF with S210, the load swinging on an elastic rope. Each value marked [catalogue], [estimate] or [hand] in the file. Its keys are in their own section |
| MT | crates/machine-mover-track/default.toml, flying.toml | Six movers on a closed track of two 1 m straights and two 180° clothoid curves, sized as a Beckhoff XTS (AT2000 modules, AT9014 movers); flying.toml runs its flying-process cam. Each value marked [catalogue] or [estimate] in the file. Its keys are in their own section |
| ST, IL | machines/stepper-axis.toml, machines/induction-lift.toml | Machine files with a stepper motor (a NEMA 23 stepper on a small belt axis) and an induction motor (a 1.5 kW four-pole motor on a frequency converter, gearbox 10, vertical belt lift). [estimate] values. Their own keys are in motor kinds |
The In column says which configs have the key. “T E” means the key exists on the T-gantry only; “S” on the single axis only; “E” in the EXCT-30 config only. A key marked for one machine is not read by the other.
The Source column says where a value of this kind normally comes from:
- datasheet: published by the vendor of the part
- estimate: not published; a guess of the right order, to be bounded in
[bounds]and replaced by a measurement - measurement: can only be had from the machine
- choice: a setting, not a property of the machine
For the EXCT-30 config the file itself is the authority: its [catalogue] and [estimate] comments say for each value which it is.
Rules
format_version = 1is required. Any other value is refused.- A config has to be complete. There are no built-in defaults for a missing key: a key that the machine reads and the file lacks is refused (
Configuration value is missing: ...). Only[ratings]entries,[parts],[bounds],obstacles,[conveyor]anddrive.braking_module(off) may be left out, andeffects.thermal_warm_startandeffects.drive_current_limit(off: a config written before 13 November 2026), andeffects.field_weakening,drive_overload,motor_thermal_nodes,iron_loss,magnet_temperatureandbraking_resistor_heating(off: a config written before 14 November 2026), whose keys are read only with them on, andeffects.drive_monitoring(off) with the[drive]keys fromfault_reactiontotorque_band(the values of the shipped files). - A config file (
--config) may not have a key that the machine’s default config lacks: it is refused by name (Configuration has a value this machine does not know: ...), so a misspelt key cannot pass for the default’s value.[bounds]has its own check, andratings.pulley_max_torque_nmis the one rating no default config has, and[conveyor]the table none has. A name in[parts]has to be text. --set path=valueand the app’s parameter panel can only change values that exist, and cannot change their type. An integer is accepted where a float is expected.- Most physical values must be strictly positive (masses, radii, stiffnesses, cycle times, friction levels). A zero there is refused as out of range.
- Values that may be zero must not be negative: the payload, dampings, viscous and shaft friction, backlash, belt pretension and belt mass, the gearbox’s inertia, idler and cable chain values, feedforward factors, the blend time, the path tolerance, the start temperature rise.
gearbox.efficiency,profile.torque_reserveandprofile.tension_reserveare above 0 and at most 1;motor.ripple_fractionandprofile.shaper_dampingare from 0 to below 1;drive.no_load_speed_rad_sis abovedrive.rated_speed_rad_s.- Free in sign: forces (
process.*,belt.tooth_force_n,motor.cogging_nm),geometry.incline_deg, the two drops of the Z axis, the ripple and cogging orders. - NaN and infinity are refused for every number, and so is a number larger than 1e15 or (zero aside) smaller than 1e-15 in size, in its SI unit: a slip of the exponent.
start.posehas one position per axis within its range, and a cycle segment’sdwell_sis finite and not negative. - Every refusal names the key (
Configuration value is out of range: gearbox.backlash_rad). Most values are checked whether or not their effect is switched on. - Loop cycle times must be whole multiples of
sim.dt_s, anddrive.current_cycle_smust equal it.drive.position_cycle_smay equalvelocity_cycle_s(DSC) andprofile.cycle_smay be longer than it: witheffects.fine_interpolationthe drive interpolates between profile cycles. - A changed config can be applied to a running simulation (the app does), except
sim.dt_s. That includesprofile.cycle_swhile a motion is under way: the controller counts its own profile cycles and converts what it has stored in them, so the setpoint goes on from where it is. Switchingeffects.belt_stretchwhile an axis moves carries the tool’s position and speed over into the other model. So does a changedgearbox.ratioorgeometry.pulley_radius_m: the state is rebuilt at the tool’s pose and speed, with belts and gears as they are at rest there. A changed input shaper (switch, frequency, damping, following the pose) is taken when the plan next stands still. A cycle that loses segments while it runs goes on within those it has, and ends if none is left.
Top level
| Key | In | Unit | Meaning |
|---|---|---|---|
format_version | T E S | – | Format of the file. Must be 1 |
scene.meshes_dir | every machine | – | Optional table [scene] with one key, read by the app’s 3D view only: a directory, relative to the config or machine file (or absolute), in which <part id>.glb is the CAD mesh of the part with that id (glTF binary, textures embedded, sized and placed as the part is). A part without a file, and a config without the key, are drawn as boxes, cylinders and bars as before. In no shipped config; a file or the parameter field may add it (scene.meshes_dir = "meshes"). See machine files |
obstacles | T E S D | – | Obstacles in the work area: a list of boxes with their edges along the axes of the 3D view (scene coordinates, m: x right, y into the depth, z up), each a table with name (text), centre_m and size_m (three numbers each, the sizes above 0), and optionally its contact stiffness_n_m (above 0, [estimate] 1e7: a steel fixture on a machine bed, some 10 N/µm; [bounds] 1e6 to 1e8) and damping_n_s_m (not negative, [estimate] 1e4: near critical for a few kilograms), which push back on a part in it with effects.crash; another key in an entry is refused. [] in all four files: no obstacles, and nothing changes. Write obstacles = [{ name = "fixture", centre_m = [...], size_m = [...] }], or [[obstacles]] tables at the end of a file without the obstacles = [] line. A config without the key has none. The tool is where the 3D view draws it: T and E at (geometry.span_min_m + x, −0.05, z − stroke_z_m − span_min_m − 0.042), S at (span_min_m + x, −0.03, 0.06), D at (x, y, z). What can hit an obstacle, the clearance kept (profile.min_clearance_m) and the crash are in the model reference |
[sim]
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
dt_s | T E S | s | Base time step. Also the current-loop cycle. 62.5 µs in all configs | choice |
substeps | T E S | – | RK4 sub-steps per base step. A whole number, at most 1000. 2 to 4 in the shipped configs | choice |
[parts]
Parts by name from the catalogue. The catalogue values of a named part replace the numbers the file has for it when the config is loaded. "" names none. What each part sets is listed in the user guide.
| Key | In | Meaning |
|---|---|---|
motor | T E S | Article number of a motor, e.g. "1FK2205-4AF": for "230v" and "400v" one of catalog/siemens/motors_s210.csv; for "s120" a 1FK7 or 1FT7 of motors_s120.csv (with its data sheet in motors_s120_electrical.csv) or a 1FK2 or 1FT2 of motors_1fk2_s120.csv, motors_1ft2_s120.csv. E names its motor; T and S name none |
motor_supply | T E S | "230v" or "400v": the S210 data at that supply; "s120": the motor on a SINAMICS S120 at 400 V (DC link 540 V); "s210new-230v", "s210new-400v": the S210 data with the new 6SL5310 converters; "<vendor>-<volts>v" another maker’s motors and drives at that line voltage (beckhoff-400v, beckhoff-480v, br-400v, kollmorgen-240v, kollmorgen-400v, lenze-400v, mitsubishi-200v, mitsubishi-400v, rexroth-400v, sew-400v, yaskawa-200v, yaskawa-400v; DC link 1.35 times the line voltage). See the catalogue. "400v" in all configs |
motor_brake | T E S | true: the motor with its holding brake, the catalogue’s inertia and weight with brake (refused for a motor without brake data). false in all configs; may be left out (false) |
motor_encoder | T E S | The encoder ordered with the motor (encoders_1fk2_1ft2.csv): "AS22DQC" or "AM22DQC" (22 bit), for a 1FT2 also "AS26DQC" or "AM26DQC" (26 bit); sets drive.encoder_counts_per_rev. "" keeps the config’s; may be left out |
gearbox | T E S | A gearbox as size-frame-ratio, e.g. "NRK070-04-5", from the three gearbox_*.csv files. None named in any config |
drive | T E S | Article number of an S210 converter (converters_s210.csv) or an S120 Motor Module (motor_modules_s120.csv). Sets ratings.drive_rated_current_a and drive_max_current_a. An S210 converter also sets dc_link_overvoltage_v and, unless it is a 3 AC converter on the "230v" supply (external resistor required), braking_resistor_continuous_w and _peak_w (braking_s210.csv); a braking_threshold_v at or above its trip level becomes the midpoint between its highest line peak and the trip. An S120 Motor Module sets dc_link_capacitance_uf (half per axis for a Double). E names its converter, "6SL3210-5HE11-5UF0"; T and S name none |
belt | T E S | A belt as profile-width, e.g. "AT5-25", from megadyne/belts.csv (T5, AT3, AT5, AT10, MTD3, MTD5, MTD8; a width between the standard ones is interpolated). Sets belt.stiffness_ea_n, belt.mass_kg_m, belt.tooth_pitch_m and, where the config has them, ratings.belt_max_tension_n, belt_width_mm and the tooth load table. None named in any config |
axis | T E S | An axis by name: "EXCT-15", "EXCT-30", "EXCT-100" (festo/belt_axes.csv) or a Bahr axis as series-size, e.g. "ELZI-40", "ELZ-60S" (bahr/belt_axes.csv; not the XY gantries ELZU and not the DLZPVI). An X/Z gantry needs a config with geometry.stroke_z_m, a single axis one with geometry.stroke_m. Sets pulley radius, belt, teeth in mesh, the pulley’s torque rating and the moved masses; keeps the strokes (an EXCT takes the shortest Z stroke offered that holds the config’s) and refuses a stroke the axis does not have. None named in any config: E’s numbers are those "EXCT-30" gives |
The parts go in in the order axis, belt, gearbox, motor, drive. A part by name other than the drive also retunes drive.velocity_kp_nm_s_rad: the gain is scaled by the square root of (ratio of the inertia the motors turn) × (ratio of the rotor inertias, the gearbox’s own included), new over old. The reference is the config’s own numbers as the file has them before the part goes in, so a config states its gain for the rotor, gearbox and masses it has as numbers, whichever part it names. A motor by name sets drive.bus_voltage_v to the DC link voltage of its supply and scales ratings.braking_threshold_v and ratings.dc_link_overvoltage_v with it. The gearbox is put in before the motor, so the motor’s peak torque is capped with the ratio in effect.
[parts] is not shown in the app’s parameter panel, which shows numbers only; the app’s part fields and the “Use” button of a row of its motor search set it. A gain edited there is the gain for the config’s own numbers; with a part named, the simulation runs with the retuned value.
[effects]
One switch per effect. “Default” is the value in T, E and S; where they differ it says so. Keys marked “T E” do not exist in the single-axis config.
Mechanics
| Switch | In | Default | What it models |
|---|---|---|---|
gravity | T E S | on | Gravity on the Z axis and payload (T-gantry) or along an inclined axis (single axis) |
payload | T E S | on | The payload mass, attached and released by the cycle. Off: no payload at all |
gripper_time | none | off | The gripper takes its time to grip and let go ([gripper]): the dwell lasts at least that long, and the payload comes or goes when the gripper is done, not on arrival. In no shipped config; a config may add it with the table |
payload_swing | arms | off | The payload hangs on a pivot at the flange and swings (arm.payload_swing_*): two joints no motor drives, their damper’s loss power.payload_swing, their angles swing.1.angle, swing.2.angle |
bar_rocking | arms with a parallelogram rod | off | The forearm the rod turns rocks on the rod’s axial spring k c² as a joint of its own (arm.bars_axial_stiffness_n_m, bars_carries, bars_axial_damping_n_s_m): passive, after the motors’ joints and before a swinging payload’s, its angle bar.rocking, its damper’s loss power.bar_rocking; bar_elasticity’s series spring is then off. A config without it has it off |
belt_stretch | T E S | on | The elastic model: belt sections as springs, pulleys and motor shafts as separate states. Off selects the rigid reference model, in which belt damping, slack, tooth stiffness, backlash, gear stiffness, the frame mode, the leaning Z axis and the holding brakes have no effect |
belt_damping | T E S | on | Damping on the stretch rate of each belt section |
belt_slack | T E S | on | Belt tension cannot go below zero |
belt_mass | T E S | on | Belt mass: lumped on the pulleys (exact where every run moves at pulley speed, the single axis), summed run by run on the T-gantry and in the machine files whose spans give their speeds over ground |
belt_tooth_stiffness | T E S | off | The teeth in mesh on a driven pulley give way, as a spring in series with each belt section |
belt_material_damping | T E S | off | Damping in proportion to a section’s stiffness (belt.damping_time_s) instead of one constant. Needs belt_damping on |
guide_friction | T E S | on | LuGre friction in the linear guides; in a machine file also a screw nut’s preload drag, a linear motor’s attraction on its guide and a rotary’s bearing friction (friction_coulomb_nm, friction_viscous_nm_s_rad of its node, see machine files) |
load_dependent_friction | T E S | on | Friction levels scale with the guide load |
motor_friction | T E S | on | Coulomb and viscous friction on the motor shafts |
gearbox_backlash | T S on, E off | Backlash as a dead zone. Off in E: direct drive | |
gearbox_efficiency | T S on, E off | Torque loss in the direction of power flow. Off in E: direct drive | |
gearbox_mesh_friction | T | on in the joint kit and the cable robots; off (absent) elsewhere: a config without it has it off. Off on the T-gantry, whose light pulleys the friction sticks to the housing faster than the base step resolves | The efficiency’s loss as a friction in the mesh, in proportion to the torque the gear passes, against the motion at any speed and sticking at rest inside its band (see the model reference); the back-driving efficiency follows as 1 / (2 − η). Off: the faded factor. Elastic models only |
gearbox_drag | T E S D | off; on in the delta pickers D2 and D3 (and the planar delta file) | The gearbox’s no-load running torque at its input over speed and temperature (gearbox.no_load_*, Palmgren’s (ν n)^(2/3)); gearbox.efficiency then holds at gearbox.efficiency_torque_nm, and the efficiency falls at part load, slow and cold (see the model reference). Never on a coupling (ratio 1) |
motor_stiction | T E S D | off; on in D2 and D3 | The motor shaft breaks away at motor.friction_breakaway_nm and falls to its Coulomb level along a Stribeck curve. Needs motor_friction |
slide_presliding | the joint kit’s slides (screw, rack, linear motor, the SCARA’s quill) | off; on in the measured ball screw’s datasets/isw-ball-screw-axis/machine.toml | The guides’ friction (with a screw nut’s preload drag and a linear motor’s attraction friction) is a presliding state (Dahl’s law, slide.presliding_stiffness_n_m) in place of the smoothed Coulomb step: it holds a load within its level at rest without creeping and turns over within a presliding travel at a reversal; its level the breakaway force slide.friction_breakaway_n at rest, falling to the Coulomb level over friction_stribeck_m_s (see the model reference). Needs joint_friction. A config without the key has it off |
screw_lead_efficiency | every machine with a ball screw ([screw]: the joint kit’s screw axis and SCARA, hexapod, tripod, parallel SCARA, wafer handler) | off; on in the measured ball screw’s datasets/isw-ball-screw-axis/machine.toml | The screw’s efficiency from its lead angle β = atan(lead / (π d)) and the balls’ friction screw.friction_coefficient μ (THK): (1 − μ tan β) / (1 + μ / tan β), in place of screw.efficiency, which is a catalogue’s lumped figure holding the nut’s preload drag that the model drags apart (screw.preload_n). Acts on the whole force the screw passes, inertial force included, η driving and 1 / η driven back. Needs gearbox_efficiency. A config without the key has it off |
screw_stiffness_with_position | every machine with a ball screw ([screw]: the joint kit’s screw axis and SCARA, hexapod, tripod, parallel SCARA, wafer handler; [screw_*] of the machine files) | on; off in the measured ball screw’s datasets/isw-ball-screw-axis/machine.toml (its fit was made with the far end’s stiffness) | The screw’s axial stiffness follows the nut: the shaft between the fixed bearing and the nut, E A / a (fixed-fixed a (L − a) / (E A L)), with a = |s − screw.fixed_bearing_at_m| (s the nut’s place, the rotor’s angle over the ratio), in series with the nut and the bearings, in the dynamics, the modes and the equilibrium at a pose; the rotor feels the place’s own T² c′ / 2 from the spring’s energy. The screw’s damper keeps its ratio screw.axial_damping_ratio there (c ∝ √k), with the gear’s damper in series laid out anew. Off, the softest place’s stiffness for the whole stroke. Acts only with joint_elasticity. A config without the key has it off |
thermal_growth | none | off | The positioning accuracy test (sim-cli accuracy) only: the screw or belt of each axis in [accuracy] grows with its temperature, the real position the encoder’s plus expansion × (rise) × (x − fixed end). Applied to the tool pose at rest, not fed back into the dynamics. Not with load_encoder. In no shipped config; a config may add it (absent: off) |
lead_error | none | off | The positioning accuracy test only: each axis in [accuracy] adds its lead (pitch) error table lead_error to the real position. As thermal_growth, not fed back and not with load_encoder. In no shipped config (absent: off) |
gearbox_lost_motion | T E S D | off; on in D2 and D3 | The flanks take the load over gearbox.lost_motion_band_rad beyond the backlash, the stiffness rising from 0, and a hysteresis gearbox.hysteresis_rad (a Dahl friction state per gearbox: see the model reference) |
gearbox_stiffness_curve | T E S D | off | A strain wave gear’s three-segment stiffness, K1 (stiffness_nm_rad) to T1, K2 to T2, K3 beyond (gearbox.stiffness_*), as Harmonic Drive gives it |
torque_ripple | T E S | on | Torque ripple (proportional to torque) and cogging (independent of it) |
tooth_meshing | T E S | on | A small periodic force at the tooth-pass frequency |
frame_compliance | T E | on | One spring-mass mode of the frame in X: the portal’s posts swaying under its beam, coupled to the belt both ways |
base_compliance | every machine and machine file | off | The base the whole machine stands on gives way ([base]): up to six spring-mass directions under the motors’ reactions and the moving masses, the tool moving with it. In series with frame_compliance |
base_reaction | every machine and machine file | off | With base_compliance: two-way. The machine feels the base’s acceleration (its motors see the sway and hold against it), base and machine solved together; the base’s energy is in energy.* and its damping in power.* (power.base). Off: one-way, the base sways under the machine |
z_axis_bending | T E | off | The Z axis bends as a cantilever from the carriage (tool_flex.z_axis_bending_stiffness_nm2), in series with its guide’s give; with tool_flex off it only bends. Elastic model |
beam_sag | T E | off | The X beam sags under the carriage and the Z axis as a simple span ([beam]), quasi-static, lowering the tool. Elastic model |
beam_vertical_mode | T E | off | The beam’s first vertical mode with the carriage on it as one more coordinate ([beam]): rests at the beam_sag value, driven by the Z axis’s acceleration and by the carriage’s weight moving along the beam; supersedes beam_sag. Elastic model |
tool_flex | T E | on | The Z axis leans against the carriage; the reported X position is the tool tip. In a machine file the body its machine.lean node names leans (elastic model), off in machines/t-gantry.toml as compared with its crate |
belt_run_offset | T E | off | With tool_flex: the belt’s upper vertical runs reach the clamp tool_flex.belt_offset_m to either side of the Z axis’s line, so the guide’s tilt lengthens one and shortens the other; their tension difference turns the lean and their stretch holds it. Off: on the line. In machine files through machine.lean’s belt_offset_m. Elastic model |
idlers | T E | off | Inertia and bearing friction of the five idlers |
gantry_yaw | T E | off | Read by machine files only: the bridge of a machine.gantry node yaws, one more coordinate held by its drives, belts and joints’ spring (values in [gantry], see machine files); signals gantry.<id>.yaw, .sync_error, .moment, check gantry-sync. On in machines/dual-gantry.toml, off in the H-bot, CoreXY and rack gantry files, so that earlier results stay as they were; the crates have no such bridge |
cable_chain | T E S | off | A cable chain whose moving mass grows with x, plus drag. On an inclined single axis the moving run is lifted too |
process_force | T E S | off | A force on the tool (single axis: the carriage) while the cycle dwells |
frame_stretch | the crank and cam machines (read by the toggle press) | on | The press frame stretches under the press force, a spring in series with the part (frame.stretch_stiffness_n_m): the ram stops short of the links’ bottom by F / k, signal frame.deflection, check frame-deflection |
hard_stops | T E S | on | Spring-damper stops beyond both ends of each stroke |
holding_brake | T E S | on | Motor holding brakes that act while the drives are disabled, in the elastic and in the rigid model |
brake_delay | T E S | off | The holding brakes engage brake.engage_delay_s after they are asked to hold (the torque off, or the end of a category 1 stop) and release brake.release_delay_s after they are asked to let go; a hanging axis sags while its brake engages. Off: at once, as before. Optional in a config file (off) |
temperature | T E S | off | Scale factors on friction and belt stiffness, set by hand in [temperature]; not used while thermal_feedback is on |
Drive and control
| Switch | In | Default | What it models |
|---|---|---|---|
velocity_feedforward | T E S | on | Speed setpoint added to the position loop’s output |
torque_feedforward | T E S | on | Rigid-model torque (inertia and gravity, no friction) added to the velocity loop’s output |
fine_interpolation | T E S D | on | Between profile cycles the drive runs the position setpoint on from the last setpoints as pos + v t + a t²/2, as it runs the speed feedforward on as v + a t: a SINAMICS drive’s fine interpolation, which the position loop needs when it runs faster than the profile (DSC: drive.position_cycle_s down to velocity_cycle_s, profile.cycle_s the controller’s IPO cycle of 2 to 8 ms). Off, the setpoint is held for the profile cycle as a position loop closed in the controller sees it, and its steps reach the torque (4 ms IPO: single axis 2.1x the peak torque). On in the shipped configs, where it changes nothing: their position and profile cycles are equal. A config without the switch has it off. See the model reference |
friction_feedforward | T E S D | see text | The drive adds friction to the torque feedforward: with drive.friction_feedforward_model = "characteristic" the characteristic drive.friction_feedforward_* at the speed setpoint (S120 p3820-p3839, recorded by the drive at constant speeds, p3845), with "machine" the friction of the machine’s own model at the planned speed. On with "machine" where it cuts the following error and the settling (the table in validation): the T-gantry (default, conveyor, EXCT-30), the D3, D2 and D4 (default and conveyor), the linear delta’s conveyor config, the screw, rack and linear motor axes, the rotary table, the SCARA (joints and tool space), the hexapod, both cable robots, the rotary knife and the disc cam (with their cam configs), and the machine files t-gantry, delta-d3, planar-delta, screw-portal and xyz-portal. On with the characteristic in the rest of the crank-and-cam and joint configs (the flying saw’s is its carriage’s friction at the motor; the others’ are 0 N m, so it changes nothing). Off elsewhere: the single axis and the linear delta settle worse with it (21 to 42 um, 74 to 113 um), the parallel SCARA, the H4 and the arms in tool space follow worse in some axis, and the palletiser gains under 4 % |
load_encoder | T E S D | off | The position loop closes on a load-side scale (S120 direct measuring system), the tool axes measured in steps of drive.load_encoder_step and turned into motor angles by the rigid kinematics; the speed loop stays on the motor encoder. The following error is then the load’s: belt stretch and gear twist are inside the loop. Off in the shipped configs |
encoder_resolution | T E S | on | The position is measured in whole encoder counts; speed is the difference of positions |
velocity_filter | T E S | on | First-order low-pass on the measured speed |
torque_filter | T E S | on | First-order low-pass on the torque setpoint |
notch_filter | T E S | off; on in the flying saw (360 Hz, 250 Hz wide) | A notch on the torque setpoint. In machine-crank-cam each machine’s own: the first key of its file, which follows config/common.toml’s [effects] table |
torque_limit | T E S | on | The torque setpoint is limited to the peak torque and the torque-speed curve |
drive_current_limit | T E S D | on | The drive gives no more than its maximum output current ratings.drive_max_current_a: the torque setpoint is held to the torque of that current where it is below the motor’s limit, with the velocity loop’s anti-windup, so a cycle that asks more lags behind (see the model reference). Nothing is held without the rating. On in the shipped configs (the joint machines’ common.toml and the machine files too); it changes nothing there, as every shipped drive gives more than its motor takes. Off, the drive’s maximum current is only judged (drive-peak-current) |
field_weakening | T E S D | on; off in the hexapod, the tripod, the hexapod with rotary actuators, the cable robots, the crane and the machine files dual-gantry, five-axis, five-axis-table, portal-c, scissor-lift, stepper-axis, induction-lift; absent: off | The motor as a permanent-magnet synchronous motor in d-q axes (motor.pole_pairs, d_inductance_h): above base speed the drive sets a negative d current within the voltage and current circles, and the torque-speed curve follows from the model instead of fading between rated and no-load speed (see the model reference). On in most shipped configs since 14 November 2026 (a 1FK2 by name brings an inductance estimated from Siemens’ short-circuit braking table; a 1FK7 or 1FT7 its data sheet’s). Off, the curve fades linearly between rated and no-load speed, which on the shipped 1FK2205-4AF at 400 V leaves 1.6 N m at 500 rad/s where the d-q model gives 17.8 N m |
drive_overload | T E S D | off | The drive’s thermal image (i²t, ratings.drive_overload_time_constant_s): once it reaches the level at which the drive has given its maximum current for drive_max_current_time_s from the rated load, the drive’s current limit falls to its base load current drive_base_load_current_a until the image is back at the rated current’s; in two nodes since 14 November 2026, the slow heat sink and the fast chips on it (ratings.drive_chip_share, drive_chip_time_constant_s; a share of 0 is the one node); judged by drive-overload (see the model reference). Off in the shipped configs |
motor_thermal_nodes | T E S D | off | With winding_heating: the motor’s heat in three nodes, winding, stator and housing, surroundings (motor.winding_resistance_share, winding_time_constant_s); the settled rise motor-thermal judges is the winding’s and the same as the one node’s (see the model reference). Off in the shipped configs |
iron_loss | T E S D | on; off in machines/stepper-axis.toml and machines/induction-lift.toml; absent: off | With winding_heating: the stator’s iron loss, R (I_0² − I_N²) at the rated speed (what Siemens’ rated data leave of the copper loss at the stall current motor.stall_current_a), times (speed / rated speed)^1.5, heats the motor (the housing’s node with motor_thermal_nodes); the copper loss then reaches the rated rise at the stall current, not the rated one. A servo’s shaft is dragged against the motion by the speed losses, T_N (ω/ω_N)^0.5 with T_N what the printed rated point leaves, k_t I_N (with saturation) − drive.rated_torque_nm − the motor’s own friction at the rated speed (at least 0), so the shaft gives the printed rated torque at the rated current and speed; also with the drive disabled (the shaft power is the air-gap power less the drag’s; the budget books it in the emf row). The two are different numbers on purpose: on the 1FK7/1FT7 rows with a printed resistance the drag’s power at the rated speed is a median 2.9 times R (I_0² − I_N²) (iron and bearings heat the winding less than its copper does). Signal motor.<id>.iron_loss, MotorLoad::iron_loss. On in the shipped configs but the stepper and induction motor files (no change where a config’s stall current is its rated current) |
magnet_temperature | T E S D | off | With winding_heating: the magnets’ flux, and so torque constant and back-EMF, change with the motor’s temperature by motor.magnet_temperature_coefficient_1_k per kelvin from the catalogue’s value at the rated rise (a cold motor has about 12 % more). The drive’s back-EMF feedforward keeps the catalogue’s. Off in the shipped configs |
braking_resistor_heating | T E S D | on; absent: off | With dc_link: the braking resistor’s temperature, one heat capacity with ratings.braking_resistor_time_constant_s that settles at braking_resistor_rated_rise_k at its continuous power; signal motor.<id>.braking_resistor_temperature. On in the shipped configs (a signal only; nothing trips on it) |
back_emf | T E S | on | Back-EMF of the turning rotor in the winding |
voltage_limit | T E S | on | The winding voltage is limited to sqrt(3/2) times the DC link voltage |
winding_heating | T E S | on | The winding warms with its copper loss and its resistance rises with it |
part_heating | T E S | off | Each gearbox and guide warms with its loss power, as one thermal mass with the values of [thermal]. Only computed and shown (signals temperature.<part>, the thermal view, the 3D colours), unless thermal_feedback is on |
thermal_warm_start | T E S D | on | The cycle analysis (analyze, verdicts, the search, the optimiser, the app’s analysis) measures its pass with the windings (winding_heating) and, with thermal_feedback, the gearboxes and guides at the rises they settle at on the cycle, iterated from cold to a fixed point within 0.1 K, at most 4 warm passes; not a physical effect but how the analysis starts (see the model reference). Nothing to do where nothing that warms acts back on the run. On in the shipped configs (the joint machines’ common.toml and the machine files too), as sizing should judge a machine that has run for a while. Off, the analysis starts from cold |
thermal_feedback | T E S | off | Guide friction and gearbox losses (in a machine file a worm stage’s efficiencies too) follow the parts’ temperatures, the belt’s EA the ambient temperature ([thermal_feedback], see the model reference). Warms the parts as part_heating does, whether that is on or not. Replaces temperature: its hand-set factors are not used while this is on. Off by default, so that earlier results stay as they were |
belt_tooth_jump | T E S | off | Elastic model: the belt’s teeth climb out of a driven pulley’s grooves when the effective pull there exceeds belt.tooth_jump_factor · ratings.belt_teeth_in_mesh · pitch / radius times the slack side’s tension, and the belt slides over the pulley until it falls into the next groove (a jump) or back. Signals pulley.<motor>.tooth_jumps, .tooth_slip, power.tooth_jump; check belt-tooth-jump. Needs belt_mass. See the model reference. Off by default |
belt_span_vibration | T E S | off | The first sideways mode of each free belt span, a string at its section’s live tension (signals belt.span.<i>.frequency), against the tooth mesh and the motors’ ripple and cogging (belt.span_detuning); check belt-span-resonance against ratings.belt_span_resonance_band at steady speed. Signals and a check only. Off by default |
belt_wrap | T E S | off | The teeth in mesh on each driven pulley from the angle the belt wraps it at the pose, found from the places of the pulleys and idlers (in a machine file their at_m and clockwise along the sections’ routes, see machine files; off in machines/t-gantry.toml): wrap · r / belt.tooth_pitch_m, in place of ratings.belt_teeth_in_mesh, in the tooth-jump law (the climb-out limit becomes belt.tooth_jump_factor · wrap) and the tooth load (the smallest wrap of the pass). In these machines the spans leave the motor pulleys level at every pose: half a turn, 12.6 teeth (T S) and 10 (E). See the model reference. Off by default, so that earlier results stay as they were |
torque_saturation | T E S | on | The torque constant falls towards the maximum current |
drive_delay | T E S | on | Computation delay of the current and the velocity loop, in whole cycles |
dc_link | T E S | on | A simulated DC link per drive with capacitance, braking chopper, resistor and overvoltage trip, built from [ratings]. The ratings of T and S are placeholders. Off, the DC link voltage stays at drive.bus_voltage_v and the braking checks are estimates |
shared_dc_link | T E S | off | With dc_link: the drives of the machine share one DC link (one Line Module, as on a SINAMICS S120). What a braking motor feeds back a motoring one draws. The link has the capacitance of all drives together (each brings ratings.dc_link_capacitance_uf), one chopper with one braking resistor of the [ratings] powers, and one trip; every motor reports the same voltage and resistor power. Switched on while the machine runs, links that differ put their energies together. Changes nothing on a machine with one drive. An S120 Motor Module by name switches it on, an S210 converter off |
regenerative_supply | T E S | off | With dc_link: a regenerative supply (an Active Line Module, as on a SINAMICS S120). Above the bus level it feeds the DC link’s energy back into the mains, up to ratings.line_module_max_power_w, of which ratings.line_module_efficiency arrives there; the braking resistor takes only what is beyond that power. Reported as energy fed back into the mains and as line module loss (analysis, budget, analyze column mains_energy_j, the app), and judged by line-module-continuous and line-module-peak. Off by default, so that earlier results stay as they were |
fieldbus_delay | T E S | off | The motor setpoints reach the drives some profile cycles late |
fieldbus_jitter | T E S | off | Each frame of motor setpoints takes from 0 to profile.fieldbus_jitter_cycles more cycles than the delay, evenly and pseudo-random from drive.noise_seed (every run the same); the drives use the newest frame that has arrived, so a late frame leaves them the one before. Works with or without fieldbus_delay. Off by default, so that earlier results stay as they were |
sensor_noise | T E S | off | Gaussian noise on the measured position and current, repeatable from a seed |
crash | T E S D | off | The obstacles of obstacles push back on a part that goes into them, with their contact stiffness and damping, with the drives on or off: the axes in contact are blocked, the others go on until the drives’ monitoring (drive_monitoring) trips them (see the model reference). Contacts are found and reported whether it is on or not; off, the machine moves through the obstacle. Changes nothing without obstacles. Off by default, so that earlier results stay as they were |
drive_monitoring | T E S D | off | Each drive watches its following error, its following error at standstill, whether it is held at its torque limit at low speed, and optionally its torque against the model’s (the [drive] keys from fault_reaction on); the first that trips stops all drives, each by its fault reaction. Changes nothing until a drive trips, which no shipped cycle does. Optional in a config file (off: a config written before 14 November 2026). Off by default, so that earlier results stay as they were |
cylinder_friction | files with cylinders | on | The pneumatic cylinders’ seal friction, a Stribeck curve rising with the chambers’ pressure (friction_* of the cylinder’s table, see “A machine file’s pneumatic cylinders”) |
cylinder_cushion | files with cylinders | on | The cylinders’ end-position cushions: within cushion_length_m of an end the chamber exhausts through the bleed screw alone. Off, the piston runs into its elastic end stops at the throttled speed |
Motion planning
| Switch | In | Default | What it does |
|---|---|---|---|
corner_blending | T S off, E on | The next cycle segment starts while the current one is still braking | |
input_shaping | T S off, E on | Input shaper (profile.shaper_type, zvd by default; zv, zvdd, ei, ei2) on the setpoints of the axes in profile.shaper_axes (all where empty) | |
shaper_follows_pose | T E S | off | With input_shaping: the shaper takes its frequency from the resonance the machine reports for the planned pose, and a second shaper (profile.shaper2_frequency_hz above 0) that of the machine’s second mode there (sim-cli modes); one the machine does not report stays as configured. The T-gantry reports up to four modes (carriage, Z axis, frame, lean), the single axis one |
[geometry]
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
pulley_radius_m | T E S | m | Effective radius of the motor pulleys. E: half Festo’s effective diameter of 31.82 mm | datasheet | always |
stroke_x_m | T E | m | Stroke of X; the axis runs from 0 to this value | datasheet | always |
stroke_z_m | T E | m | Stroke of Z | datasheet | always |
stroke_m | S | m | Stroke of the single axis | datasheet | always |
incline_deg | S | deg | Incline of the single axis. 0 is level, 90 is vertical; gravity pulls towards −x | choice | gravity |
span_min_m | T E S | m | Shortest free belt span. Sets the lengths of the belt sections | estimate (from a drawing) | belt_stretch |
z_com_drop_m | T E | m | Centre of mass of the Z axis below the carriage at z = 0; it rises with z. Arm of the tilting moment | estimate | load_dependent_friction, tool_flex |
guide_spacing_m | T E | m | Distance between the guide blocks that take the tilting moment | estimate (from a drawing) | load_dependent_friction |
z_tool_drop_m | T E | m | Tool tip below the carriage at z = 0; it rises with z | estimate | tool_flex |
[mass]
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
carriage_kg | T E S | kg | Carriage. On the T-gantry it moves in X only. E: chosen so that the simulator needs the torque Festo’s formula gives | datasheet | always |
z_axis_kg | T E | kg | The vertical axis without payload. It moves in X and Z. E: the mass Festo’s formula holds against gravity | datasheet | always |
payload_kg | T E S | kg | Payload, attached and released by the cycle | choice | payload |
guide_carriages_kg | kg | Optional: the part of carriage_kg that is the guide set’s carriages. A guide set named as axis (parts.axis = "HGH25CAx4") puts its carriages’ mass (per carriage times their number) in its place in carriage_kg, and here. Absent = 0: the carriage holds no guide carriages, and the named ones are added | catalogue (named guide) | always |
[belt]
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
stiffness_ea_n | T E S | N | Specific stiffness EA. A section of length L has the stiffness EA / L. E: from 0.045 % elongation at 300 N | datasheet | belt_stretch |
pretension_n | T E S | N | Tension of the belt at rest without load | estimate, measurement | belt_stretch |
damping_n_s_m | T E S | N s/m | Damping of every section on its stretch rate, whatever its length | estimate | belt_damping (not with belt_material_damping) |
mass_kg_m | T E S | kg/m | Belt mass per length | datasheet (estimate in E) | belt_mass |
tooth_pitch_m | T E S | m | Tooth pitch | datasheet | tooth_meshing |
tooth_force_n | T E S | N | Amplitude of the tooth-meshing force | estimate | tooth_meshing |
tooth_mesh_stiffness_n_m | T E S | N/m | Stiffness of the teeth in mesh on one driven pulley | estimate | belt_tooth_stiffness |
damping_time_s | T E S | s | A section damps with its stiffness times this time | estimate | belt_material_damping |
tooth_jump_factor | T E S | – | k of the climb-out law: the teeth jump when the effective pull exceeds k · z_m · p / r times the slack side’s tension; 1 / the tangent of an effective flank angle (flank, friction and the tooth’s give together). 2.4: a pulley drive with 10 of 25 teeth in mesh jumps at 1.5 times its pretension of effective pull (E, 10 of 20 teeth: 1.58), between the makers’ rule of a pretension at least the effective pull and the slack side going slack at twice the pretension | estimate, bounds 1.2 to 4.8 (runs only with the effect) | belt_tooth_jump |
[friction_x] and [friction_z]
One table per linear guide. [friction_z] exists on the T-gantry only (T E). On the single axis [friction_x] is its one guide.
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
coulomb_n | T E S | N | Coulomb (sliding) friction level, at the nominal guide load | estimate, measurement | guide_friction |
stiction_n | T E S | N | Breakaway level. A value below coulomb_n counts as coulomb_n | estimate, measurement | guide_friction |
viscous_n_s_m | T E S | N s/m | Viscous friction | estimate, measurement | guide_friction |
stribeck_m_s | T E S | m/s | Speed over which the level falls from stiction to Coulomb. On the T-gantry friction_x.stribeck_m_s also sets how the cable chain’s drag fades out at rest | estimate | guide_friction |
bristle_stiffness_n_m | T E S | N/m | LuGre bristle stiffness σ₀ | estimate | guide_friction |
bristle_damping_n_s_m | T E S | N s/m | LuGre bristle damping σ₁ | estimate | guide_friction |
preload_n | T E S | N | Guide preload. The friction levels scale with (preload + load) | estimate | load_dependent_friction |
seal_drag_n | N | Optional: the part of coulomb_n and stiction_n that is the guide carriages’ seals. A guide set named as axis (parts.axis) puts its seals’ drag (HIWIN’s printed maximum of two end seals per carriage, times the carriages; a guide row that prints none, Rexroth’s and THK’s, leaves the levels as they are) in its place in both levels, and here; in [friction] of the linear delta and in [slide] (friction_coulomb_n, friction_breakaway_n) alike where the config has no [friction_x]. Absent = 0: the levels hold no seal drag, and the named one is added | catalogue (named guide) | guide_friction |
Festo gives the friction of the EXCT only as a graph of torque over speed, so all of these are estimates in E.
[motor]
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
rotor_inertia_kgm2 | T E S | kg m² | Rotor inertia, the motor’s alone. The gearbox’s own inertia is gearbox.inertia_at_input_kgm2 | datasheet | always |
friction_coulomb_nm | T E S | N m | Coulomb friction on the motor shaft | estimate | motor_friction |
friction_viscous_nm_s_rad | T E S | N m s/rad | Viscous friction on the motor shaft | estimate | motor_friction |
friction_smoothing_rad_s | T E S | rad/s | Speed over which the Coulomb step is smoothed. On the T-gantry it also smooths the idlers’ bearing friction | choice | motor_friction |
friction_breakaway_nm | T E S D | N m | The shaft’s breakaway torque at rest (seals and bearings). 1.5 times friction_coulomb_nm in every shipped config; a value below the Coulomb level counts as that level | estimate, bounds the Coulomb level to twice it | motor_stiction |
friction_stribeck_rad_s | T E S D | rad/s | Speed over which the level falls from breakaway to Coulomb, exp(−(ω / ω_st)²). 2 | estimate, bounds 0.5 to 10 | motor_stiction |
ripple_fraction | T E S | fraction | Torque ripple as a fraction of the torque | estimate | torque_ripple |
ripple_order | T E S | 1/rev | Ripple periods per motor revolution | datasheet (poles and slots) | torque_ripple |
cogging_nm | T E S | N m | Cogging torque amplitude | estimate | torque_ripple |
cogging_order | T E S | 1/rev | Cogging periods per revolution | datasheet | torque_ripple |
torque_constant_nm_a | T E S | N m/A | Torque per current. Also the back-EMF constant, unless drive.back_emf_constant_v_s_rad gives another. E: static torque 6 N m over stall current 4.7 A | datasheet | always (back_emf for the EMF) |
resistance_ohm | T E S | Ω | Winding resistance of the equivalent winding. Siemens does not publish it for the 1FK2 | estimate in E; datasheet where published | always |
inductance_h | T E S | H | Winding inductance. Not published for the 1FK2 either | estimate in E | always |
thermal_time_constant_s | T E S | s | Thermal time constant of the winding. E: 31 min | datasheet | winding_heating |
pole_pairs | T E S D | – | Pole pairs: the electrical speed per shaft speed, and with the torque constant the flux linkage ψ = k_t / p. 4 in the shipped configs. Siemens publishes it for the 1FK7 and 1FT7 (a motor by name sets it), not for the 1FK2 | estimate, bounds 3 to 5; catalogue for a 1FK7 or 1FT7 by name | field_weakening |
d_inductance_h | T E S D | H | d-axis inductance as the winding has it (three times the phase value); inductance_h is the q axis’s. The shipped configs and a 1FK7 or 1FT7 by name take it equal to inductance_h (surface magnets) | estimate, bounds ±20 % | field_weakening |
winding_resistance_share | T E S D | share | The winding’s share of the thermal resistance to the surroundings; the rest is the stator and housing’s. 0.3 | estimate, bounds 0.2 to 0.5 | motor_thermal_nodes |
winding_time_constant_s | T E S D | s | Thermal time constant of the winding against the stator and housing, below winding_resistance_share times thermal_time_constant_s. 60 s | estimate, bounds 20 to 120 | motor_thermal_nodes |
stall_current_a | T E S D | A | Stall current I_0: the static torque is k_t I_0. With effects.iron_loss the copper loss at it brings the winding to its rated rise, and the S1 check motor-s1 starts at k_t I_0. A motor by name sets it; the rated current where the motor is an estimate (no iron loss then) | catalogue (by name); estimate | iron_loss, analysis |
s1_curve_speed_rad_s, s1_curve_torque_nm | T E S D | rad/s, N m | Optional. The maker’s printed S1 curve as points, the two arrays of the same length (at least two), speeds rising from 0 or above, torques not negative. The motor-s1 verdict and the torque-speed chart read the torque linearly between them (the first below the first speed, the last beyond the last). Absent: the straight line from k_t I_0 to the rated point, as before | none | digitised from the maker’s graph |
magnet_temperature_coefficient_1_k | T E S D | 1/K | The magnets’ flux per kelvin, −0.0012 (NdFeB loses about 0.12 % of its remanence per kelvin) | estimate, bounds −0.0013 to −0.0009 | magnet_temperature |
rated_current_a | T E S | A | Rated current (RMS): the current at which the winding settles at the rated temperature rise. T S: rated torque over torque constant, 2.822 A. E: the catalogue’s 3.75 A at 400 V. A motor by name sets the catalogue’s own figure, which is up to 18 % above rated torque over the static torque constant | datasheet | winding_heating; motor-thermal always |
rated_temperature_rise_k | T E S | K | Temperature rise the winding settles at with the rated current. Also the limit of motor-thermal | datasheet | winding_heating; the verdict always |
start_temperature_rise_k | T E S | K | Temperature rise at the start of a simulation | choice | winding_heating |
max_current_a | T E S | A | Maximum current. Where saturation is referred to, and with saturation on the limit of the current setpoint | datasheet | torque_saturation |
torque_constant_at_max_current_nm_a | T E S | N m/A | Torque constant at the maximum current. Must not exceed torque_constant_nm_a. E: 18 N m at 15.1 A | datasheet | torque_saturation |
brake_torque_nm | T E S | N m | Torque each motor’s holding brake holds while the drives are disabled; it slips beyond. The most the brake ever gives, also when it engages at speed | datasheet (estimate in E) | holding_brake |
[brake]
The holding brakes’ timing, one for all brakes of a machine. In every shipped config and machine file that has a holding brake; optional in a config file (0).
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
engage_delay_s | T E S | s | From the moment the brakes are asked to hold until they hold (a spring-applied brake’s closing time). 0.03 in all files, bounds 0.01 to 0.06 | estimate: the Siemens motor data in catalog/ gives no brake times | brake_delay |
release_delay_s | T E S | s | From the moment the drives come on until the brakes let go (opening time); meanwhile the drive holds against the brake. 0.06 in all files, bounds 0.03 to 0.15 | estimate, as above | brake_delay |
[gearbox]
Between motor shaft and pulley. Stiffness, damping and backlash are given at the output side. In E this is the coupling: ratio 1, no backlash, no loss.
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
ratio | T E S | – | Motor revolutions per pulley revolution | datasheet | always |
efficiency | T E S | fraction | Efficiency at full load | datasheet | gearbox_efficiency |
backlash_rad | T E S | rad | Backlash at the output. 8.7e-4 rad is 3 arcmin | datasheet | gearbox_backlash |
stiffness_nm_rad | T E S | N m/rad | Torsional stiffness | datasheet (estimate in E) | belt_stretch |
damping_nm_s_rad | T E S | N m s/rad | Torsional damping | estimate | belt_stretch |
inertia_at_input_kgm2 | T E S | kg m² | The gearbox’s own inertia at its input. It turns with the rotor and is added to motor.rotor_inertia_kgm2 in the model. 0 in all three configs; a gearbox by name sets the catalogue value | datasheet | always |
efficiency_torque_nm | T E S D | N m | The output torque at which efficiency holds: the rated torque, where makers give “efficiency at full load” (T S: 40, the NRB060’s; D2 D3: 259, the SP+ 100’s T2N; the joint kit’s strain wave gears their rated torque). With the drag, the teeth’s efficiency is what is left of efficiency there | datasheet | gearbox_drag |
no_load_torque_nm | T E S D | N m | No-load running torque at the input at no_load_speed_rpm and 20 °C. T S: 0.125 (Neugart PLE060 one stage, the NRB060: 0.10 to 0.15); D2 D3: 0.93 (WITTENSTEIN SP+ 100 MF two stages, i = 20, T012); D4: 0.2 (PLE080 two stages); the arm 0.5 and SCARA 0.2 (read off Harmonic Drive’s chart, sizes 32 and 25 at 2000 r/min); 0 on a coupling | datasheet, bounds the maker’s range or ±20 to 25 % | gearbox_drag |
no_load_speed_rpm | T E S D | r/min | Input speed at which no_load_torque_nm holds. 3000 (2000 for the strain wave gears) | catalogue convention | gearbox_drag |
lost_motion_band_rad | T E S D | rad | Twist beyond the backlash over which the flanks’ stiffness rises from 0 to stiffness_nm_rad. 1.454e-4 (half an arcmin) for the planetary gearboxes, 0 for strain wave gears and couplings | estimate, bounds 0 to 1 arcmin | gearbox_lost_motion |
hysteresis_rad | T E S D | rad | Width of the hysteresis loop at zero torque, 2 T_h / K1. 2.909e-4 (1 arcmin) for the strain wave gears (Harmonic Drive’s hysteresis loss); 1.454e-4 for the belt machines’ planetary gearboxes and the SP+ 100 of D2 and D3 (half an arcmin; WITTENSTEIN publishes none) | datasheet (strain wave), estimate, bounds 0 to 1 arcmin | gearbox_lost_motion |
hysteresis_stiffness_factor | T E S D | – | Optional. Dahl’s stiffness at a reversal of the hysteresis loop (how fast the friction torque builds up when the twist turns round) over stiffness_nm_rad. Absent: 1 (no maker publishes the loop’s shape at a reversal; a measured loop sets it) | optional, default 1 | gearbox_lost_motion |
mesh_stiffness_factor | T E S D | – | Optional. The mesh friction’s presliding stiffness (the bristle against the housing) over stiffness_nm_rad. Absent: 1 (K1; no maker publishes a gear’s presliding) | optional, default 1 | gearbox_mesh_friction |
stiffness_t1_nm, stiffness_t2_nm | T E S D | N m | The knees T1 and T2 of the three-segment stiffness. Harmonic Drive’s Table 43, ratio 80 and up: 29 and 108 (size 32), 14 and 48 (size 25). A planetary gearbox: both at its rated torque | datasheet | gearbox_stiffness_curve |
stiffness_k2_nm_rad, stiffness_k3_nm_rad | T E S D | N m/rad | K2 between the knees, K3 beyond. 1.1e5 and 1.2e5 (size 32), 5.0e4 and 5.7e4 (size 25). A planetary gearbox: both stiffness_nm_rad | datasheet | gearbox_stiffness_curve |
[pulley]
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
inertia_kgm2 | T E S | kg m² | Inertia of one motor pulley, without the belt. Estimate in E | datasheet |
[frame]
T-gantry, and machine files whose machine.frame names these values. With effects.frame_compliance: the beam and its mounting as one mass on a spring in X.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
mass_kg | T E | kg | Modal mass of the frame | estimate, measurement |
stiffness_n_m | T E | N/m | Stiffness of the frame in X | estimate, measurement |
damping_n_s_m | T E | N s/m | Damping of the frame mode | estimate, measurement |
[tool_flex]
T-gantry, and machine files whose machine.lean node names these values (machines/t-gantry.toml). With effects.tool_flex: the guide of the Z axis gives way sideways and in tilt.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
lateral_stiffness_n_m | T E | N/m | Sideways stiffness of the Z guide | estimate |
tilt_stiffness_nm_rad | T E | N m/rad | Tilt stiffness of the Z guide | estimate |
damping_n_s_m | T E | N s/m | Damping of the leaning motion | estimate |
z_axis_bending_stiffness_nm2 | T E | N m² | With effects.z_axis_bending: the Z axis’s bending stiffness E I. Its centre of mass h below the carriage gives way h³ / (3 E I) more, and the tool at h_t moves h² (3 h_t − h) / (6 E I) per newton there. An aluminium profile of about 60 × 40 mm: 1.4e4; bounds 0.7e4 to 2.8e4 | estimate |
belt_offset_m | T E | m | With effects.belt_run_offset: how far the belt’s two upper vertical runs (sections 1 and 3) reach the clamp to either side of the Z axis’s line: the guide’s tilt θ lifts one run’s end and lowers the other’s by it times θ, the moment (T₁ − T₃) times it on the lean. The pulleys’ diameter: 0.04 m (EXCT-30 0.0318 m). In machine files the lean node’s belt_offset_m names it | estimate |
[beam]
T-gantry. With effects.beam_sag: the X beam as a simple span between the posts; carriage, Z axis and payload, m g, sag it under the carriage at a from the left post by m g a² b² / (3 E I L), b = L − a (L³ / (48 E I) per newton in the middle), and the tool is that much lower. That is quasi-static; with effects.beam_vertical_mode the beam’s first vertical mode with the carriage on it is a coordinate of its own (in the middle of the default gantry 58.78 Hz with a stiff belt; on the default belt the Z axis’s own mode on it, 83 Hz, rides on the beam through −m_z and the belt’s vertical runs and the two couple to about 51.0 and 142.2 Hz: M = [[13.457, −7.16], [−7.16, 7]] kg in (w, z), K = diag(1.835·10⁶, 1.92·10⁶) N/m; higher towards the posts): mass m_c + m_z + M and the belt’s runs riding on it (0.16 kg of vertical runs and a third of the tilting horizontal ones, 0.087 kg; their weight, 0.29 kg, sags the beam with beam_sag too), stiffness the span’s 1 / span_compliance, M = ∫ μ φ² for the span’s static shape (17 μ L / 35 in the middle).
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
span_m | T E | m | Span between the posts. T: the motors at geometry.span_min_m beyond each end of the stroke, 1.3; E: Festo’s drive heads 1354 mm apart | T geometry, E CAD |
carriage_at_zero_m | T E | m | The carriage’s distance from the left post at x = 0. T 0.15, E 0.177 (the stroke in the middle) | T geometry, E estimate |
bending_stiffness_nm2 | T E | N m² | The beam’s E I: an aluminium profile of about 80 × 80 mm, 8.4e4; bounds 4.2e4 to 1.7e5 | estimate |
mass_kg_m | T E | kg/m | With effects.beam_vertical_mode: the beam’s mass per metre, for the mode’s modal mass. A light 80 × 80 mm aluminium profile: 3.5; bounds 2 to 6 | estimate |
damping_ratio | T E | With effects.beam_vertical_mode: the mode’s damping ratio ζ with the carriage and the Z axis on the beam, c = 2 ζ √(k (m_c + m_z + M)). A bolted aluminium structure: 0.01; bounds 0.003 to 0.03 | estimate |
[base]
Every machine and machine file. With effects.base_compliance the frame or stand under the whole machine is a rigid body on springs: each direction with a stiffness above 0 is a state of its own (sim_components::base, model reference “Compliant base”). Directions in the frame of the tool pose’s x, y, z (the slides’ x along their axis); a tilt turns about pivot_m. Off in every shipped config: the values are typical, not measured. Signals base.<x|y|z|rx|ry|rz> (m, rad). With effects.base_reaction the coupling is two-way (model reference “Compliant base”), with the signal power.base (W), and mass_kg (inertia_*_kgm2) has to be more than what the machine moves on the base along that direction.
| Key | Unit | Meaning |
|---|---|---|
pivot_m | m | The point the base tilts about, (x, y, z) in the tool pose’s frame |
mass_kg | kg | Everything that sways with the base, the machine on it included: the frequency of a direction is sqrt(k / M) / 2π |
inertia_x_kgm2, inertia_y_kgm2, inertia_z_kgm2 | kg m² | The same about the axes through the pivot, for the tilts |
stiffness_x_n_m, stiffness_y_n_m, stiffness_z_n_m | N/m | Translation stiffness; 0 rigid |
tilt_stiffness_x_nm_rad, tilt_stiffness_y_nm_rad, tilt_stiffness_z_nm_rad | N m/rad | Tilt stiffness; 0 rigid |
damping_ratio_x, _y, _z, _rx, _ry, _rz | – | Damping ratio of each direction, c = 2 ζ sqrt(k M); 0.02 (welded steel) in all configs |
The shipped values, all estimates with [bounds] (stiffness ÷ 2.5 to × 2.5, mass 0.6 to 1.6 times, damping 0.01 to 0.05):
| Machines | Base | Values |
|---|---|---|
D2, D3 (and its conveyor config), D4, H4, linear delta, parallel SCARA, planar-delta.toml | A welded steel picker frame with the robot, 300 kg | x, y 2.7e6 N/m (15 Hz), z 1.9e7 N/m (40 Hz); tilts rigid |
| T-gantry, EXCT-30, the gantry machine files, hexapod | The stand under the gantry with it, 150 kg | x, y 2.4e6 N/m (20 Hz), z 1.5e7 N/m (50 Hz); tilts rigid |
Single axis, screw, rack and linear motor axes, single-axis.toml | The machine bed, 100 kg | along the axis 2.5e6 N/m (25 Hz); the rest rigid |
| Rotary table; the cable robots and the crank and cam machines (the same values) | The table’s stand, 20 kg m² about z | twist 7.1e5 N m/rad (30 Hz) |
| Six-axis arm | The pedestal, 60 kg m² about the floor in tilt, 10 about z | tilts 1.5e6 N m/rad (25 Hz), twist 6.3e5 N m/rad (40 Hz) |
| SCARA | The column and its table, 30 kg m² in tilt, 5 about z | tilts 1.1e6 N m/rad (30 Hz), twist 3.2e5 N m/rad (40 Hz) |
[gantry]
Machine files whose machine.gantry node names these values (machines/dual-gantry.toml, and the H-bot, CoreXY and rack gantry files with the effect off). With effects.gantry_yaw: the bridge’s yaw. The node may name any keys; these are the shipped files’.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
width_m | files | m | Distance between the bridge’s two sides (its guides, where its drives are) | geometry |
inertia_kgm2 | files | kg m² | The bridge’s own inertia about a vertical axis through its centre, without the bodies that move across it | estimate, bounds |
stiffness_nm_rad | files | N m/rad | What holds the yaw beside drives and belts: the bridge’s joints on its carriages and their guide blocks | estimate, bounds |
damping_nm_s_rad | files | N m s/rad | Damping of the yaw | estimate, bounds |
sync_tolerance_m | dual gantry | m | The synchronisation error (width times yaw) check gantry-sync allows; 0.1 mm | choice |
sync | dual gantry | – | How the gantry’s two drives keep in step (read where its node names two drives, the first the master, whether or not the bridge yaws): "plain" each follows the common setpoint; "master_slave" the slave’s position loop follows the master’s actual position; "cross_coupled" the synchronisation error goes back to both speed commands with sync_gain_1_s (machine files). "plain" as shipped | choice |
sync_gain_1_s | dual gantry | 1/s | With sync = "cross_coupled": the gain k of the synchronisation error on both speed commands; Kv1 Kv2 / (Kv1 + Kv2) halves the yaw of unequal loops at a steady speed. 25 as shipped (unused there) | choice |
[idler]
T-gantry, and machine files whose machine.idler nodes name these values. With effects.idlers: the four carriage idlers and the one at the bottom of the Z axis, all alike. The table has to be present and radius_m positive even with the effect off.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
inertia_kgm2 | T E | kg m² | Inertia of one idler | estimate |
radius_m | T E | m | Radius at which the belt runs | estimate |
friction_nm | T E | N m | Bearing friction torque of one idler | estimate |
[cable_chain]
With effects.cable_chain: the chain is fixed at the x = 0 end, so half of every metre the carriage travels joins the run that moves with it. On the single axis with an incline, the weight of that run pulls along the axis like the carriage’s.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
mass_kg_m | T E S | kg/m | Mass of the chain with its cables per length | estimate |
length_at_zero_m | T E S | m | Length of chain that moves with the carriage at x = 0 | estimate |
drag_n | T E S | N | Constant drag force against the motion in X | estimate |
[process]
With effects.process_force: a force on the tool tip (single axis: on the carriage) while the cycle dwells.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
force_x_n | T E S | N | Force on the tool in X. May be negative | choice |
force_z_n | T E | N | Force on the tool in Z (positive is upwards) | choice |
force_<axis>_n | machine files | N | Force on the tool along each axis of a machine file (force_y_n on the H-bot, the CoreXY and the portal). Read only with the effect on | choice |
Motor kinds
motor.kind chooses the motor each drive turns (see model reference). Without it, or with "servo", the permanent-magnet servo motor of the rest of this page, bit for bit as before. The keys below are read only for their kind, and any config may have them (analysis::RATINGS_BEYOND_DEFAULT). The servo’s keys stay required for every kind (the stepper and the induction motor read resistance_ohm, inductance_h, torque_constant_nm_a, rated_current_a, max_current_a, the thermal and the drive’s keys as said below; the rest is read and not used).
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
motor.kind | ST IL | – | "servo" (default), "stepper" or "induction" | choice |
motor.rotor_teeth | ST | – | Stepper: rotor teeth N, 50 for a 1.8° motor (4 N full steps a turn) | datasheet |
motor.detent_torque_nm | ST | N m | Stepper, with effects.detent_torque: the detent torque’s amplitude, 4 N periods a turn | estimate (a few % of the holding torque), bounds |
effects.detent_torque | ST | – | Stepper: the detent torque on (false or absent: off) | choice |
drive.microsteps | ST | – | Stepper: microsteps per full step, a whole number up to 4096 | choice |
drive.stepper_current_a | ST | A | Stepper: the current vector’s amplitude the drive sets, sqrt 2 times a phase’s current in a full step. The holding torque is torque_constant_nm_a times it; rated_current_a (the same kind of amplitude) is where the winding settles at its rated rise. Every stepper rating here (stepper_current_a, rated_current_a, max_current_a, the drive’s ratings.drive_*_current_a) is judged as that vector amplitude, a phase’s peak current: phase peak, and a datasheet RMS value must be multiplied by √2 (the catalogue has no stepper maker, so nothing is converted for you); a datasheet that gives RMS amperes per phase needs them multiplied by sqrt 2 (a catalogue’s A/phase of a sine-driven winding is RMS, a chopper’s current setting often a peak). For a stepper resistance_ohm, inductance_h and torque_constant_nm_a are a phase’s, the supply is drive.bus_voltage_v | datasheet’s A/phase, choice |
motor.rated_voltage_v, motor.rated_frequency_hz | IL | V, Hz | Induction: the name plate’s line-to-line voltage and frequency. Its rated speed is drive.rated_speed_rad_s (rated slip against the synchronous speed), its rated torque drive.rated_torque_nm, its pole pairs motor.pole_pairs | datasheet |
motor.rotor_resistance_ohm, magnetizing_inductance_h, stator_leakage_inductance_h, rotor_leakage_inductance_h | IL | Ω, H | Induction: the equivalent circuit per phase (star); the stator resistance is resistance_ohm | datasheet where the maker gives it, else estimate, bounds |
drive.induction_control | IL | – | Induction: "foc" (field-oriented, under the speed and position loops; current_kp_v_a = sigma L_s / T, current_tn_s = sigma L_s / R_sigma) or "vf" (open loop) | choice |
drive.vf_boost_v | IL | V | Induction, V/f: the line-to-line voltage at 0 Hz | choice |
drive.vf_slip_compensation | IL | – | Induction, V/f: raise the frequency by the rated slip times the estimated torque over the rated torque | choice |
drive.slip_compensation_filter_s | IL | s | Optional, induction V/f with slip compensation: the time constant of the filter on the estimated torque. Absent: the rotor’s time constant L_r / R_r, as before | choice |
A motor’s own tables
In a machine file and on the arms, [motor.<id>], [gearbox.<id>], [drive.<id>], [ratings.<id>], [strain_wave.<id>], [joint.<id>] and [parts.<id>] give the motor
<id> its own values over the shared tables, key by key; each key has to be one the shared table has, with its meaning,
unit and mark there. [parts.<id>] takes motor, motor_supply, gearbox and drive (not belt or axis, which
are the machine’s). A motor with parts of its own and no drive.<id>.velocity_kp_nm_s_rad gets that gain retuned for
them as [parts] retunes the shared one (from the shared gain, by its own inertia and rotor; drive.<id>.kv_1_s
lowered with it where its position loop needs it, see user guide); one
the config gives stays. See machine files. The portal of machines/xyz-portal.toml
has them for its Z motor, the arms’ configs for their wrists ([motor.4] to [motor.6] on the six-axis arm, joints 3 and 4 on the SCARA) and the palletiser for each of its joints. A config of a registered machine may give a motor its own tables though the default config has none for it (a seventh joint).
A machine file’s screws, racks, linear motors and strain wave gears
In a machine file, each screw, rack, linear_motor node and each rotary node’s strain_wave names a table of
its values by its path (any name: [screw_z] in machines/screw-portal.toml, [rack_x] in
machines/rack-gantry.toml). That table is laid out as the joint kit’s [screw], [rack], [linear_motor] or
[strain_wave] (the tables below; every key is required there as in the kit; the models in
mechanisms), and is checked against that layout key by key. A screw’s and a rack’s dimensions and
ratings are what its maker’s catalogue lists for the article ([catalogue] where one is named, placeholders in the
shipped files); efficiency, stiffness, preload and the load ratings of an unnamed size are [estimate] and have
[bounds] entries, as screw_z.efficiency = [0.85, 0.95] and rack_x.stiffness_n_m = [6.0e7, 1.5e8]. A rotary
node’s axis takes its limits in rad ([axis.<id>] below).
The same tables, under their own names, are read by the joint kit (crates/machine-joint-kit/config/), the hexapod,
the tripod, the parallel SCARA, the wafer handler, the flying saw and the mover track. Each key is required where its
table is read, unless it says otherwise.
[screw]
A ball screw (transmission::BallScrew) coupled straight to its motor. Read by the joint kit’s screw axis
(screw.toml), the SCARA’s quill (scara.toml, scara-tool.toml), an arm’s prismatic joint without [rack], the
hexapod’s and the tripod’s legs, the parallel SCARA’s quill, the wafer handler’s lift, the measured ball screw
(datasets/isw-ball-screw-axis/machine.toml) and as [screw_z] the machine files screw-portal, portal-c,
five-axis and five-axis-table. parts.axis with a ball screw by name (catalog/hiwin/ball_screws.csv) sets lead,
both diameters and both load ratings, and where the row has them the nut’s stiffness, preload, efficiency and max_dn;
length and mounting stay the config’s. Its signals are screw.<id>.speed, .dn and .damage_rate.
Values in the order screw axis / SCARA and parallel SCARA (16 x 20) / hexapod (25 x 10) / tripod (Hiwin
20-10K3-FDC) / wafer handler (16 x 10) / [screw_z] of the machine files (16 x 10) / measured ball screw (40 x 40).
All [estimate] (placeholders in the machine files), except the tripod’s diameters, lead, load ratings, nut stiffness
and d n ([catalogue]) and the measured screw’s nominal diameter and length (its source).
| Key | Unit | Meaning | Default |
|---|---|---|---|
lead_m | m | Travel per turn of the screw; the ratio is 2π / lead | 0.02 / 0.02 / 0.01 / 0.01 / 0.01 / 0.01 / 0.04 |
nominal_diameter_m | m | Nominal diameter d: the shaft’s inertia (a solid steel cylinder of it), the lead angle atan(lead / (π d)), d n | 0.025 / 0.016 / 0.025 / 0.02 / 0.016 / 0.016 / 0.04 |
root_diameter_m | m | Root diameter: the section for the shaft’s stiffness, critical speed and buckling load; at most the nominal diameter | 0.0212 / 0.0135 / 0.0212 / 0.017324 / 0.0135 / 0.0132 / 0.0337 |
length_m | m | Between the bearings (from the fixed bearing to the free end with fixed-free): the stroke, the nut and the run-outs | 1.0 / 0.3 / 0.35 / 0.35 / 0.4 / 0.45 / 1.8 |
mounting | – | The shaft’s ends: "fixed-free", "supported-supported", "fixed-supported" or "fixed-fixed"; sets the factors of the critical speed and the buckling load, and with "fixed-fixed" the shaft’s stiffness over the nut’s place | fixed-supported / fixed-free / fixed-supported / fixed-supported / fixed-free / fixed-supported / fixed-supported |
efficiency | – | Above 0 and at most 1: a catalogue’s lumped efficiency, driving and driven back. Replaced by the lead’s efficiency with effects.screw_lead_efficiency | 0.9 in all; bounds 0.85 to 0.95 (screw axis, hexapod, tripod, machine files, measured screw) |
friction_coefficient | – | With effects.screw_lead_efficiency (read only then): the balls’ rolling friction μ, η = (1 − μ tan β) / (1 + μ / tan β); a screw that locks itself driven back is refused. THK’s general value | 0.003 (not in the machine files); bounds 0.002 to 0.01 |
nut_stiffness_n_m | N/m | The nut’s axial stiffness, in series with the shaft and the bearings | 4e8 / 2e8 / 4e8 / 4.118793e8 / 2e8 / 2e8 / 1e9; bounds 2.5e8 to 6e8 (screw axis, hexapod), 1.2e8 to 3e8 (machine files), 5e8 to 2e9 (measured) |
bearing_stiffness_n_m | N/m | The fixed bearing’s axial stiffness, in the same series | 7.5e8 / 4e8 / 7.5e8 / 5e8 / 4e8 / 3e8 / 1e9; bounds 5e8 to 1e9 (screw axis, hexapod), 3e8 to 8e8 (tripod), 2e8 to 4.5e8 (machine files), 5e8 to 2e9 (measured) |
fixed_bearing_at_m | m | With effects.screw_stiffness_with_position (read only then): the joint’s travel at which the fixed bearing stands; the nut is |q − it| from the bearing. [estimate] at the motor, half the run-out (length_m less the stroke) before the stroke’s start | −0.1 / −0.05 (SCARA, quill travelling down), 0.25 (parallel SCARA, motor on the plate above) / −0.075 / −0.075 / −0.05 / 0.375 (motor above the Z stroke) / −0.54 |
axial_damping_ratio | – | Optional, 0 where absent, below 1: the damping ratio ζ of the mass behind the nut on the screw’s axial spring k (nut, bearings, guides), a damper c = 2ζ √(k m) across the screw’s spring alone, k at the softest place (with effects.screw_stiffness_with_position the ratio holds wherever the nut is: c follows √k, and the gear’s damper in series is laid out anew there), m the mass the screw moves without the payload; the gearbox’s damper bridges its own spring, the two in series (transmission::Converter) | 0.04 in all; bounds 0.02 to 0.06 (where the stiffnesses have bounds). [estimate] Hosseinkhani, PhD thesis, University of Waterloo 2013, Table 3.5: the axial mode of a ball screw drive at 865 rad/s, ζ 0.04 |
preload_n | N | The nut’s preload, at least 0: its drag torque K F l / (2π), K = 0.05 / sqrt(tan β) (THK), with effects.guide_friction or joint_friction, and the equivalent load of the life (Hiwin) | 600 / 200 / 600 / 400 / 200 / 150 / 1953; bounds 300 to 900 (screw axis, hexapod), 100 to 300 (SCARA, parallel SCARA, wafer handler), 200 to 600 (tripod), 75 to 225 (machine files), 1000 to 4000 (measured) |
dynamic_load_rating_n | N | Ca, for the life L10 = (Ca / (fw F))³ 10⁶ turns (ISO 3408-5); screw-life against ratings.required_life_h | 13000 / 7000 / 13000 / 11081.5145 / 7000 / 9000 / 40000; bounds 11000 to 15000 (screw axis, hexapod), 7500 to 10500 (machine files), 30000 to 60000 (measured) |
static_load_rating_n | N | C0a: screw-static holds the axial force within C0a over static_safety_factor | 26000 / 12000 / 26000 / 26085.689 / 12000 / 14000 / 80000 |
load_factor | – | fw on the load in the life: smooth running without shocks, 1.0 to 1.2 in the makers’ tables | 1.2 in all |
static_safety_factor | – | See static_load_rating_n | 2 in all |
critical_speed_factor | – | screw-speed: the screw’s speed within this share of its first bending mode’s speed (makers ask 0.8) | 0.8 in all |
buckling_safety_factor | – | screw-buckling: the axial force (pulling too) within Euler’s buckling load over this | 2 in all |
max_dn | mm r/min | screw-dn: d n allowed for the nut’s ball return, d in mm; 0 judges none | 70000; tripod 220000, measured 160000 |
[rack]
A pinion on a rack (transmission::RackPinion) behind the joint’s gearbox. Read by the joint kit’s rack axis
(rack.toml), the arm on a track (arm-on-track.toml, arm-on-track-tool.toml, see arms),
the flying saw (flying-saw.toml, flying-saw-cam.toml) and as [rack_x] the machine files rack-gantry and
dual-gantry. All shipped files have the same values, [estimate] a ground rack of module 2 as the makers’ catalogues
list it (placeholders in the machine files), with the same bounds. Signal rack.<id>.feed_force.
| Key | Unit | Meaning | Default |
|---|---|---|---|
module_m | m | Normal module m | 0.002 |
teeth | – | The pinion’s teeth z; its pitch radius m z / (2 cos β) | 30 (31.831 mm, 200 mm per turn) |
helix_angle_deg | ° | Helix angle β, at least 0 and below 45 | 19.5283 |
pressure_angle_deg | ° | Optional: normal pressure angle α_n, above 0 and below 45; the separating force F tan(α_n) / cos(β) in the radial load on the gearbox’s shaft (ratings.shaft_max_radial_load_n) | absent in all: 20 (DIN 867) |
efficiency | – | Above 0 and at most 1: the mesh’s efficiency, driving and driven back | 0.97; bounds 0.95 to 0.98 |
stiffness_n_m | N/m | The mesh and the rack’s mounting along the travel | 1e8; bounds 6e7 to 1.5e8 |
damping_ratio | – | Optional, 0 where absent, below 1: the damping ratio ζ of the mass behind the pinion on the mesh’s spring k, a damper c = 2ζ √(k m) across that spring alone, as the screw’s axial_damping_ratio | 0.026; bounds 0.01 to 0.05. [estimate] Franco, Beudaert, Erkorkmaz, J. Manuf. Mater. Process. 4 (2020) 33, Fig. 4b: 2.6 % at 35 Hz, the mode a rack and double-pinion drive’s servo sees (carriage rocking and ram bending; none is published for the mesh alone) |
backlash_m | m | At least 0, along the travel | 0 (a preloaded dual pinion) |
pinion_inertia_kgm2 | kg m² | The pinion’s inertia | 1e-4 |
rated_feed_force_n | N | The pair’s permissible feed force; rack-feed-force holds the force on the teeth within it over service_factor | 3000 |
service_factor | – | Application factor K_A for smooth running | 1.25 |
[linear_motor]
An ironcore linear motor (transmission::LinearMotor): the forcer on the carriage, the magnets along the axis; its
force constant, resistance and the rest are the drive’s [motor] values, read with N for N m and m for rad. Read by the
joint kit’s linear motor axis (linear-motor.toml) and the mover track (each mover’s magnet plate over the coils). A
linear motor by name (parts.motor) sets attraction_force_n and pole_pitch_m where its catalogue row has them.
All [estimate]: no maker of the shipped motors publishes them.
| Key | Unit | Meaning | Default |
|---|---|---|---|
attraction_force_n | N | At least 0: the magnetic attraction between forcer and magnets, a load on the guides (axis.x.guide_load, the guide ratings); on the mover track what holds a mover on its rollers against the centrifugal force in a curve | linear motor axis 2500 (bounds 2000 to 3000); mover track 300 (200 to 450) |
pole_pitch_m | m | North to north: the cogging repeats once per pole pitch (motor.cogging_order is replaced by 2π / pitch) | 0.024; mover track 0.012 (bounds 0.01 to 0.025) |
guide_friction_coefficient | – | At least 0: with effects.joint_friction the guides’ Coulomb friction (and with presliding their breakaway) rises by this times the attraction | 0.005; bounds 0.003 to 0.01 (axis), 0.002 to 0.01 (mover track) |
[strain_wave]
The life of a strain wave gear by Harmonic Drive’s method (transmission::StrainWave): L10 = Ln (Tr / Tav)³ (nr /
nav), Tav the cubic mean of the output torque weighted with the input speed, nav the mean input speed; strain-wave-life
against ratings.required_life_h, signal strain_wave.<id>.damage_rate. Read by the arms (one gear per joint,
[strain_wave.<k>] per joint over it, see a motor’s own tables) and by the rotary table with
table.gear = "strain-wave" (as shipped). All [estimate].
| Key | Unit | Meaning | Default |
|---|---|---|---|
rated_torque_nm | N m | Tr, the rated output torque at the rated input speed | six-axis arm (arm.toml, arm-tool.toml, arm5-tool.toml, arm7-tool.toml, the arm on a track) and table 137 (size 32; bounds 120 to 150), the arm’s [strain_wave.4] to [strain_wave.6] 40; SCARA 67 (bounds 60 to 75), its [strain_wave.4] 7.8; palletiser 600 (bounds 500 to 700), its [strain_wave.4] 67 |
rated_input_speed_rpm | r/min | nr, 2000 in the catalogues | 2000 |
rated_life_h | h | Ln: 7000 h for CSF, 10000 h for CSG | 10000 |
[worm]
A worm gear (transmission::WormGear) at the rotary table, read with table.gear = "worm" (table.toml ships
"strain-wave", so it is not read as shipped); the ratio is the gearbox’s. With effects.gearbox_efficiency its
efficiency tan γ / tan(γ + ρ′), ρ′ = atan(μ / cos α_n), replaces gearbox.efficiency, and tan(γ − ρ′) / tan γ is the
back-driving one; a worm that locks itself (back efficiency not positive) is refused. [estimate] in table.toml,
no bounds.
| Key | Unit | Meaning | Default |
|---|---|---|---|
lead_angle_deg | ° | Lead angle γ, above 0 and below 45 | 8 |
friction_coefficient | – | μ on the flanks, at least 0 | 0.04 |
pressure_angle_deg | ° | Normal pressure angle α_n, at least 0 and below 45 | 20 |
motor_axis | – | Optional: the worm motor’s axis (x, y, z fixed to the base, across the table’s axis z, any length but 0), the one its rotor’s spin is about; absent: x | (1, 0, 0) |
A machine file’s pneumatic cylinders
Each [[machine.cylinder]] node names the table of its values by values ([cylinder_z] in
machines/pneumatic-axis.toml); every key is required, and a file with cylinders has the effect switches
effects.cylinder_friction (the seals’ friction) and effects.cylinder_cushion (the end-position cushions). The model
is “Pneumatic cylinder” in model-reference.md. Shipped values: a Festo DSBC-32-100 PPV
([catalogue] from catalog/festo/cylinders_dsbc.csv), a VUVG-L10 valve whose C and b Festo does not print ([estimate]
from its nominal flow), the rest [estimate] with [bounds].
| Key | Unit | Meaning | pneumatic-axis |
|---|---|---|---|
piston_diameter_m, rod_diameter_m | m | Bore and rod; A1 = π D²/4, A2 = A1 − π d²/4 | 0.032, 0.012 |
stroke_m | m | Stroke, 0 retracted | 0.1 |
moved_mass_kg | kg | Piston, rod and what is fixed to the rod | 0.5 |
payload_kg | kg | On the rod while the gripper holds it (effects.payload) | 0.5 |
incline_deg | deg | Extending direction above the horizontal; −90 extends downwards | −90 |
dead_volume_cap_m3, dead_volume_rod_m3 | m³ | Each chamber’s volume at its own end of the stroke, the tube to the valve included | 8e-6, 8e-6 |
supply_pressure_bar | bar | Supply, gauge | 6 |
ambient_pressure_pa, ambient_temperature_k | Pa, K | The atmosphere; the supply and the walls are at this temperature | 101325, 293.15 |
heat_transfer_w_k | W/K | α A between each chamber’s air and its wall; 0 adiabatic, large isothermal | 0.3 |
valve | – | "5/2" or "5/3" (closed centre) | “5/2” |
valve_c_dm3_s_bar, valve_b | l/(s bar), – | The valve’s ISO 6358 sonic conductance and critical pressure ratio (b below 0.95) | 0.87, 0.3 |
valve_switch_time_s | s | From a command to the spool’s switch | 0.007 |
tube_c_dm3_s_bar, tube_b | l/(s bar), – | The tube and fittings between valve and cylinder | 1.0, 0.4 |
throttle_extend_c_dm3_s_bar, throttle_retract_c_dm3_s_bar, throttle_b | l/(s bar), – | Meter-out flow controls: the rod side’s (sets the extend speed) and the cap side’s (retract) | 0.15, 0.2, 0.3 |
cushion_length_m | m | Length of the end-position cushion at each end; at most half the stroke | 0.017 |
cushion_bleed_c_dm3_s_bar, cushion_bleed_b | l/(s bar), – | The cushion’s bleed screw | 0.05, 0.3 |
stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | The elastic end stops behind the cushions | 1e6, 500 |
friction_coulomb_n, friction_coulomb_n_bar | N, N/bar | The seals’ sliding friction and its rise with the chambers’ mean gauge pressure | 10, 2 |
friction_stiction_ratio, friction_stribeck_m_s, friction_viscous_n_s_m, friction_smoothing_m_s | –, m/s, N s/m, m/s | Breakaway over sliding (at least 1), the Stribeck speed, viscous friction, the smoothing through zero speed | 1.5, 0.01, 20, 0.002 |
load_force_n | N | A process force on the rod against extending | 0 |
sensor_band_m, sensor_delay_s | m, s | The end sensors switch this near the end, after this delay | 0.002, 0.005 |
start | – | "retracted" or "extended": where it rests at the start, its valve driving it there | “retracted” |
rated_cushion_energy_j | J | The cylinder’s maximum impact energy (check cushion-energy) | 0.4 |
load_factor_limit | – | Check load-factor | 0.7 |
compressor_energy_kwh_m3 | kWh/m³ | The compressor’s electrical energy per m³ of air (ANR) | 0.12 |
sim.dt_s / sim.substeps must be small enough for the cylinder’s stiffest rate (error-cylinder-unstable says which
and how small): a dead volume below about 1 cm³ with these flows, or very stiff stops, ask for more sub-steps.
[hard_stop]
With effects.hard_stops: a spring and a damper at both ends of each stroke that act only beyond it.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
stiffness_n_m | T E S | N/m | Stiffness of a stop | estimate |
damping_n_s_m | T E S | N s/m | Damping of a stop | estimate |
[temperature]
Applied only with effects.temperature on, and not with effects.thermal_feedback, which computes what these set by hand. A cold machine has more friction and a stiffer belt.
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
friction_scale | T E S | factor | On the Coulomb, stiction and viscous levels of the guides | estimate |
belt_stiffness_scale | T E S | factor | On belt.stiffness_ea_n | estimate |
[thermal]
With effects.part_heating. Each gearbox and guide is one thermal mass behind a thermal resistance to the air: under a steady loss P its temperature rise settles at resistance × P, with the time constant (see the model reference). The rated rise is the limit of the checks gearbox-thermal and guide-thermal (judged only with the effect on), where the 3D view’s heat colour reaches red and what the thermal view’s share is of. Estimates: no maker of the parts in the configs publishes them. T and S: a size 60 to 70 planetary gearbox (surface about 0.04 m² at 15 W/(m² K) gives 1.7 K/W; 1.5 kg of steel and aluminium, about 800 J/K, gives 20 minutes) and a size 15 ball guide with its rail and the aluminium profile the rail is bolted to: the carriage runs over the whole stroke and spreads its heat along the rail, so about 0.35 m² of profile at 10 W/(m² K) (still air and radiation) with a fin efficiency of about 0.6 gives 0.5 K/W, and about 5 kg of aluminium and steel (5 kJ/K) 40 minutes. The first estimate, the carriage with a piece of rail at 2 K/W, put the guides of two of the three shipped configs above their rated rise (EXCT-30 X guide 101 K, single axis 50 K, against 40 K; default T-gantry 16.8 K). E: the same values; the EXCT has no gearbox (ratio 1: [gearbox] is the coupling), so no gearbox warms and its gearbox values are only there for a gearbox put in.
| Key | In | Unit | Meaning | Source | Bounds (T S E) |
|---|---|---|---|---|---|
gearbox_resistance_k_w | T E S | K/W | Thermal resistance of a gearbox to the air | estimate | 0.8 to 3.0 |
gearbox_time_constant_s | T E S | s | Thermal time constant of a gearbox | estimate | 600 to 2400 |
gearbox_max_rise_k | T E S | K | Rated rise of a gearbox: 90 °C on the housing at 40 °C around | estimate (typical maker limit) | none: a limit, like [ratings] |
guide_resistance_k_w | T E S | K/W | Thermal resistance of a guide (rail and the profile it is bolted to) to the air. 0.5 | estimate | 0.25 to 1.0 |
guide_time_constant_s | T E S | s | Thermal time constant of a guide. 2400 | estimate | 1200 to 4800 |
guide_max_rise_k | T E S | K | Rated rise of a guide: 80 °C at 40 °C around | estimate (typical maker limit) | none |
With effects.part_heating (or thermal_feedback, which warms the parts too) the resistances move the two thermal checks and have bands; the time constants move no verdict unless the feedback is on. Without either effect nothing depends on these values, and their bounds get no runs: verdicts --bands and the sensitivity leave them out.
[thermal_feedback]
With effects.thermal_feedback (see the model reference). The config’s friction, efficiency and belt stiffness hold at the reference temperature; the machine stands at the ambient temperature; each gearbox and guide is warmer by its rise ([thermal]). Without the effect nothing depends on these values, and their bounds get no runs.
| Key | In | Unit | Meaning | Source | Bounds (T S E) |
|---|---|---|---|---|---|
ambient_c | T E S | °C | Temperature of the air around the machine (not the drive’s: see drive_ambient_c). 20 | estimate | 10 to 40 |
reference_c | T E S | °C | Temperature at which the config’s friction, gearbox efficiency and EA hold. 20, as gearbox makers quote their no-load torque at 20 °C | catalogue convention | none |
viscosity_slope_k | T E S | K | B of the lubricant’s viscosity, exp(B (1/T − 1/T_ref)). 4000: a mineral oil ISO VG 68 (68 and 8.7 mm²/s at 40 and 100 °C); VG 32 gives 3470, VG 220 4730 | estimate | 3470 to 4730 |
gearbox_viscous_loss_share | T E S | – | Share of a gearbox’s loss (1 − η) that is churning and bearing drag and follows the viscosity; the rest, tooth friction, stays. 0.5. No maker publishes it. In E only for a gearbox put in. Taken as 0 with effects.gearbox_drag, whose no-load torque is that share | estimate | 0.25 to 0.75 |
seal_viscosity_exponent | T E S D | – | m of the motor shaft’s seal friction (motor.friction_coulomb_nm, friction_breakaway_nm) over the gearbox’s lubricant, (ν / ν_ref)^m at the gearbox’s temperature. 0.33 | estimate | 0 to 0.5 |
belt_stiffness_coefficient_1_k | T E S | 1/K | How much of its EA the belt loses per kelvin above the reference: the polyurethane softens, the steel cords (about 2.5e-4 per K) carry the load. 3e-4. The belt is taken at ambient | estimate | 0 to 1e-3 |
[axis.x] and [axis.z]
Limits of the motion planner per tool axis. [axis.z] exists on the T-gantry only (T E).
| Key | In | Unit | Meaning | Source |
|---|---|---|---|---|
max_velocity_m_s | T E S | m/s | Highest planned speed | choice, within the datasheet |
max_acceleration_m_s2 | T E S | m/s² | Highest planned acceleration | choice, within the datasheet |
max_jerk_m_s3 | T E S | m/s³ | Highest planned jerk | choice |
max_velocity_rad_s, max_acceleration_rad_s2, max_jerk_rad_s3 | machine files | rad/s, rad/s², rad/s³ | The same for a rotary axis of a machine file (one a rotary node turns), in place of the m keys | choice, within the datasheet |
E stays below Festo’s limits of 5 m/s and 50 m/s², which hold “under ideal conditions”.
[drive]
One drive per motor, all with the same settings. The parameter numbers of a SINAMICS S120 servo or S210 that take these settings, converted to their units, are what sim-cli parameters lists (tables catalog/siemens/parameters_s120.csv and parameters_s210.csv; the user guide says which settings have no parameter and why).
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
current_cycle_s | T E S | s | Current loop cycle. Must equal sim.dt_s | datasheet | always |
velocity_cycle_s | T E S | s | Velocity loop cycle | datasheet | always |
position_cycle_s | T E S | s | Position loop cycle | datasheet | always |
current_delay_cycles | T E S | cycles | Current-loop cycles between computing the voltage and it acting. Whole number, 0 to 1000 | estimate | drive_delay |
velocity_delay_cycles | T E S | cycles | Velocity-loop cycles between computing the torque setpoint and it acting | estimate | drive_delay |
kv_1_s | T E S | 1/s | Position gain Kv | choice | always |
velocity_kp_nm_s_rad | T E S | N m s/rad | Velocity loop gain Kp. 0.037 in T (0.04 until 22 November 2026, when the margins over the cycle’s poses found 33.0° with friction off at [0.1, 0.05]), 0.025 in S (tuned with sim-cli margins --bands for at least 35° phase and 6 dB gain margin in every bounds run, with friction as configured and off; 0.08 before, which left T 12° and S 1°), 0.45 in E (tuned the same way: at least 48.8° and 9.36 dB, with friction off 40.6° and 8.61 dB, re-run 21 November 2026; 0.6 before, 29.6° and 5.8 dB). Stated for the rotor, gearbox and masses the config has as numbers; a part by name retunes it from there (see [parts]) | choice | always |
velocity_tn_s | T E S | s | Velocity loop integral time Tn | choice | always |
velocity_feedforward_factor | T E S | factor | Weight of the velocity feedforward | choice | velocity_feedforward |
torque_feedforward_factor | T E S | factor | Weight of the torque feedforward | choice | torque_feedforward |
torque_feedforward_model | T E S D | "rigid" or "inertia" | What the torque feedforward is. rigid: the rigid model’s inverse dynamics, inertia, gravity and the speed terms of a kinematics that is not linear, coupled between the motors: what a controller with a dynamic model (SIMOTION, a robot controller) sends. inertia: one moment of inertia per motor, the rigid model’s at start.pose (its own acceleration, the others standing), times the motor’s acceleration setpoint: what a drive does with speed/torque precontrol and the load’s inertia set (S120 p1498), as most commissionings of a single axis or a gantry leave it; gravity is left to the speed loop’s integrator. rigid in the shipped configs; a config without the key has it | choice | torque_feedforward |
friction_feedforward_speed_rad_s, friction_feedforward_torque_nm | T E S D | rad/s, N m | The friction characteristic: torques at rising speeds above 0, linear between the points, from (0, 0) to the first, held beyond the last, with the sign of the speed setpoint. [10.0], [0.0] in the shipped configs (none recorded), but the flying saw’s [0.314, 188.5], [0.591, 1.441]: its guides’ and motor’s friction through rack and gearbox, by hand | measurement | friction_feedforward |
friction_feedforward_model | T E S D | Which friction effects.friction_feedforward adds: "characteristic", the points above; "machine", in their place the friction of the machine’s own model at the planned pose and speed (guides, motor shaft, gearbox drag, joints, idlers, cable chain; see the model reference). A config without the key takes the characteristic | choice | friction_feedforward | |
precontrol_balance_s | T E S D | s | The position setpoint passes a first-order lag of this time constant before the position loop compares it, so that it arrives with the motor that the speed feedforward moves through the closed speed loop (S120 p2536, the PT1 of the position controller’s speed precontrol; its dead time p2535 is not modelled; p1429 is the speed controller’s symmetrizing for torque precontrol, not this). Typically the speed loop’s equivalent time constant, a few ms, with 100 % speed feedforward. The following error is then the one against the balanced setpoint. 0 (off) in the shipped configs and where a config lacks the key | choice | always |
load_encoder_step | T E S D | m, rad | The step of the load-side scales, in each tool axis’s unit; 0 is an ideal scale. 1e-6 in the shipped configs | datasheet | load_encoder |
current_kp_v_a | T E S | V/A | Current controller gain. Kp = L / T gives the current loop the time constant T | choice | always |
current_tn_s | T E S | s | Current controller integral time. Tn = L / R | choice | always |
bus_voltage_v | T E S | V | The DC link voltage: the level the rectifier holds the DC link at. The winding gets sqrt(3/2) times it at most, because the model’s one winding carries the RMS phase current and its voltage times that current is the power of all three phases. T S: 155.13 V, which is 190 V at the winding. E: 540 V, 661 V at the winding. A motor by name sets 540 V or 325 V | datasheet | voltage_limit, dc_link |
overmodulation | T E S D | – | Bool: the winding’s voltage limit is the fundamental of the six-step (square) wave: 2√3/π = 1.103 times the space-vector limit of a three-phase bridge (servo, induction motor), 4/π times the sinusoidal limit of a stepper’s H-bridges. The model then carries the fundamental only, without the harmonics’ current ripple and loss; the linear fade (field weakening off) moves its speeds to the higher voltage. false in the shipped configs; absent: false | choice | voltage_limit |
peak_torque_nm | T E S | N m | Highest torque of motor and drive. E: the 12.5 N m the EXCT-30 allows at the pulley; the motor could give 18 N m | datasheet | torque_limit; analysis always |
rated_torque_nm | T E S | N m | What the motor can give continuously. The analysis reports the RMS torque over it (thermal_utilisation); the winding’s heating rests on motor.rated_current_a | datasheet | analysis |
rated_speed_rad_s | T E S | rad/s | Full torque up to this speed. 314 rad/s is 3000 r/min | datasheet | torque_limit; analysis always |
no_load_speed_rad_s | T E S | rad/s | The torque-speed curve falls linearly from the rated speed to zero here. E: 518 rad/s | datasheet, or sqrt(3/2) × DC link voltage over torque constant | torque_limit; analysis always |
back_emf_constant_v_s_rad | T E S D | V s/rad | Optional, servo motors: the back-EMF per speed of the model’s one winding (√3 times the line-to-line RMS voltage constant a datasheet prints), where it is not the torque constant. Absent or 0: equal to motor.torque_constant_nm_a, as in every shipped config. It forms the back-EMF in the winding equation and the voltage limits; the torque stays with the torque constant, and the difference (k_e − k_t) i ω is booked as its own loss row of the energy budget (emf.<motor>). A motor by name sets the catalogue’s printed constant. Not read for a stepper or an induction motor | datasheet | back_emf |
max_speed_rad_s | T E S D | rad/s | The highest speed the motor may turn at. E: 628.3 rad/s, the 1FK2205-4AF’s 6000 r/min [catalogue]; elsewhere [estimate] the no-load speed, where the torque-speed curve ends. A motor by name sets the catalogue’s: the S210 table’s mechanical limit, the converter’s for a 1FK2 or 1FT2 on S120, the lower of the two for a 1FK7 or 1FT7. The time-optimal plan turns each motor up to it along its torque-speed curve; check_limits warns of axis limits beyond it; the verdict motor-speed judges the peak speed against it. Per motor in [drive.<id>] where the file has the key there. Not in [bounds]: a limit, not a property to measure | datasheet | time-optimal plan, check_limits, motor-speed |
encoder_counts_per_rev | T E S | counts | Encoder resolution. 1048576 is 20 bit, 4194304 is 22 bit | datasheet | encoder_resolution, sensor_noise |
velocity_filter_s | T E S | s | Time constant of the speed filter | choice | velocity_filter |
torque_filter_s | T E S | s | Time constant of the torque setpoint filter | choice | torque_filter |
notch_frequency_hz | T E S | Hz | Centre of the notch; 0: no notch for this motor (in its [drive.<id>], where the notch is on for another; sim-cli tune sets it so) | choice | notch_filter |
notch_bandwidth_hz | T E S | Hz | Width of the notch | choice | notch_filter |
encoder_noise_counts | T E S | counts | Standard deviation of the noise on the measured position | estimate | sensor_noise |
current_noise_a | T E S | A | Standard deviation of the noise on the measured current | estimate | sensor_noise |
noise_seed | T E S | – | Seed of the noise and of the fieldbus jitter. A whole number, not negative. Each motor has a stream of its own, and the jitter one more | choice | sensor_noise, fieldbus_jitter |
fault_reaction | T E S D | – | With effects.drive_monitoring: how the drive stops when the drives trip. "off1" ramps the speed setpoint down on off1_ramp_s (S120 OFF1, p1121), "off3" on off3_ramp_s (OFF3, p1135), "sto" takes the torque off at once (the motor coasts), "current_limit" brakes at the torque limit (OFF3 with no ramp). Per motor as [drive.<id>]. "off3" in all files | choice | drive_monitoring |
off1_ramp_s | T E S D | s | OFF1 ramp: the time from the rated speed to standstill; 0 brakes at the torque limit. 1.0 in all files. The drive’s p1121 is the time from its maximum speed p1082 (sim-cli parameters converts) | estimate | drive_monitoring |
off3_ramp_s | T E S D | s | OFF3 ramp, the same. 0.1 in all files, a fast stop as commissioned. Also the ramp of a category 1 stop (sim-cli run --stop-category 1, sim-cli stop), whatever fault_reaction is | estimate | drive_monitoring, stops |
ss1_time_s | T E S D | s | A category 1 stop takes the torque off after this long at the latest, also when a motor still turns, as SS1’s timer (p9652). 0.5 in all files. Optional in a config file (no limit). A setting: no [bounds] | estimate | stops |
pulse_off_speed_rad_s | T E S D | rad/s | Once its ramp is down, the drive takes its pulses off below this speed (p1226). 2.09 (20 r/min); 0.02 m/s on a linear motor | estimate | drive_monitoring |
following_error_window_rad | T E S D | rad | The drive trips when its following error (at the motor) is beyond this (p2546). 1.0; 0.005 m on a linear motor. A setting, not a physical value: no [bounds] | estimate | drive_monitoring |
standstill_window_rad | T E S D | rad | Once the setpoint has stood still standstill_time_s, the drive trips when its following error is beyond this (p2542). 0.1; 0.0005 m on a linear motor | estimate | drive_monitoring |
standstill_time_s | T E S D | s | How long the setpoint stands still before the standstill window applies (p2543). 1.0 | estimate | drive_monitoring |
blocked_speed_rad_s | T E S D | rad/s | A motor slower than this while its velocity loop asks for more than the torque limit counts as blocked (F07900, p2175). 12.57 (120 r/min); 0.05 m/s on a linear motor | estimate | drive_monitoring |
blocked_time_s | T E S D | s | A blocked motor trips after this long (p2177). 3.0 | estimate | drive_monitoring |
torque_band | T E S D | – | The drive trips when its torque is further from the torque the model expects (its torque feedforward, before its weight) than this share of its peak torque, as a robot controller detects a collision; 0 off. 0 in all files. With drive.torque_feedforward_model = "inertia" the feedforward has no gravity, so the expected torque also holds what the rigid model needs to hold the planned pose (its torque at rest there, worked out with the setpoints): a held load is expected and does not trip the band, a lasting extra load does. The expected torque also has the friction: what the machine’s own friction model takes of the motor’s torque at the machine’s state (motor.<id>.torque_friction), so the guides’ breakaway and presliding, the shaft’s Stribeck curve and the gearbox’s mesh friction count as they act through a start or a reversal; on a machine that does not report that signal, the friction at the planned speed (the friction feedforward’s characteristic where the drive has one, else the machine’s steady model) | choice | drive_monitoring |
braking_module | T E S D | on/off | The axes brake through one braking resistor for all, as an S120 line-up through its Braking Module: verdicts judges the sum of their braking power against ratings.braking_resistor_continuous_w (the mean of the sum) and _peak_w (the peak of the summed power, step by step), once for the machine. Off in all four files: each axis has a resistor of its own, as an S210, and is judged alone. A drive by name sets it: on for an S120 Motor Module, off for an S210. Optional in a config file (off) | choice | verdicts |
[ratings]
What the parts allow. sim-cli verdicts judges a cycle against these. A rating that is left out is not judged. With effects.dc_link the capacitance, the braking threshold, the resistor’s peak power, the trip level and the discharge time constant are required, because the simulated DC link is built from them (with effects.regenerative_supply also the line module’s maximum power and efficiency), and the threshold has to lie between drive.bus_voltage_v and dc_link_overvoltage_v. verdicts refuses a threshold at or below drive.bus_voltage_v with the effect off as well: it would leave the capacitors a negative room.
| Key | In | Unit | Meaning | Judged by | Source in the shipped configs |
|---|---|---|---|---|---|
belt_max_tension_n | T E S | N | Allowable belt tension. E: 2140 N. Festo publishes no allowable belt tension for the EXCT. It states the 5 mm pitch, the steel cords, the 30 mm width and the stretch of the belt: 0.045 % at 300 N, which is 667 kN per unit strain. Megadyne’s Megalinear handbook lists for 5 mm pitch steel-cord polyurethane belts, at 4 mm/m stretch: T5 840 N at 25 mm and 1060 N at 32 mm (about 250 kN per unit strain at 30 mm), AT5 1805 N at 25 mm and 2275 N at 32 mm (about 535 kN). Festo’s belt is somewhat stiffer than AT5 with standard steel cords and far stiffer than T5, so the limit is the AT5 figure between the two widths: 2140 N at 30 mm. The figures were read from the handbook itself (average values for open-ended belts, a quarter of the breaking strength); that Festo’s belt has cords of that class is concluded from the stretch, not stated by Festo. The teeth give way before the cords do: that is judged by pulley_max_torque_nm. | belt-tension | placeholder (T S), estimate (E) |
belt_min_tension_n | T E S | N | Lowest tension allowed. Below it the teeth can jump | belt-least-tension | choice (0) |
settling_tolerance_m | T E S | m | How far the tool’s place (its axes in m) may be from its target in the second half of a dwell | settling | choice |
max_stopping_distance_m | none | m | How far the tool may travel after a stop at the worst moment of the cycle or path (sim-cli stop: the farthest it gets from where it was at the trigger, over the axes in m). Any config may add it | stopping-distance (in sim-cli stop, not in verdicts) | – |
max_stopping_angle_rad | none | rad | As max_stopping_distance_m on a machine without an axis in m (the tool distance is then in rad). Any config may add it | stopping-distance (in sim-cli stop) | – |
max_positioning_error_m / max_positioning_error_rad | none | m / rad | The largest positioning accuracy A of the axes in m (sim-cli accuracy); on a machine without an axis in m the axes in rad against the _rad key. 0 or absent: not judged. Any config may add it | positioning-accuracy | – |
max_repeatability_m / max_repeatability_rad | none | m / rad | The largest repeatability R, chosen as the positioning limit above | positioning-repeatability | – |
settling_tolerance_rad | arms, table, D4, cable-spatial | rad | How far the tool’s turn (its axes in rad: an arm’s joints or orientation, the SCARA’s and the D4’s c, the table) may be from its target then, apart from the place: metres and radians are not added. Any config may add it | settling-angle | arm 3 mrad in joints, 5 mrad in tool space; SCARA 1 mrad (2 in tool space); table 0.2 mrad; palletiser and D4 5 mrad; cable-spatial 2 mrad; estimates |
tracking_tolerance_m, tracking_tolerance_rad | none | m, rad | How far the tool may be from where its setpoint is at the same moment while it moves (lagging along the path counts), its place and its turn each on its own. Any config may add them; without, the tracking is reported, not judged | tracking, tracking-angle | none shipped: a limit is the process’s |
gripper_safety_factor | any | 1 | With effects.gripper_time and a vacuum gripper: the cup’s hold A p_hold is divided by this before the most the held part asks is judged against it. Any config may add it; without it the hold is not judged | gripper-hold | none shipped; vacuum makers ask 2 for vertical lifts and 4 for sideways moves, estimate |
pulley_max_torque_nm | E | N m | Allowable torque at the pulley. Also caps the peak torque of a motor by name, and the time-optimal plan keeps profile.torque_reserve of it at the gearbox output | pulley-torque | datasheet (Festo: 12.5 N m) |
gearbox_rated_torque_nm | T S | N m | Gearbox rated (continuous) torque at the output. A gearbox by name sets it | gearbox-continuous | datasheet (as Siemens NRB060, ratio 5) |
gearbox_max_torque_nm | T S | N m | Gearbox maximum torque at the output. A gearbox by name sets it. The time-optimal plan keeps profile.torque_reserve of it at the output (where the machine reports gearbox.<motor>.output_torque) | gearbox-peak | datasheet (as Siemens NRB060, ratio 5) |
gearbox_max_input_speed_rpm | T S | r/min | Highest speed at the gearbox input. Not in the catalogue’s gearbox files | gearbox-input-speed | placeholder |
shaft_max_radial_load_n | T E S | N | Radial load the belt may put on a pulley shaft; in a machine file and on the arm on a track also what a rack’s pinion may put on the gearbox’s output shaft (rack.<motor>.radial_load; the track’s 2500 N, estimate). Not in the gearbox files; not published by Festo | gearbox-radial-load | placeholder (T S), estimate (E) |
guide_max_load_n | T E S | N | Highest load on a guide (on the arm on a track: its four blocks’ set, C0 over 2 of four HGH20CA, 73360 N, catalogue). The time-optimal plan keeps the guides’ loads in the rigid model within it where the machine gives them (T-gantry, single axis) | guide-load | placeholder (T S), estimate (E) |
guide_carriages | – | Optional: the carriages of the guide set, a whole number of at least 1, which the catalogue’s guide search (search --axes) sizes the set with. Absent = 4 (two rails with two carriages each); a value that is not a whole number of at least 1 is refused when the config is loaded | – (the search) | absent | |
guide_rail_length_m | m | Optional: the rails’ length, which the catalogue’s guide search takes the installed weight from. Absent = the stroke plus two carriage lengths | – (the search’s cost) | absent | |
guide_moment_x_nm, guide_moment_y_nm, guide_moment_z_nm | N m | Optional (linear delta): the guide’s highest moments about the column, the tangential and the outward axis (Festo’s Mx, My, Mz); an absent one leaves that moment out of the equivalent load | absent | ||
guide_dynamic_load_rating_n | T E S | N | Dynamic load rating C of the life estimate L10 = (C / P)³ · 50 km (on the arm on a track: four HGH20CA, 108400 N, catalogue) | guide_life_km of analyze; in hours guide-life | placeholder (T S), estimate (E) |
required_life_h | T E S | h | The life bearings, gearbox, gearing and guide are to last. 20000 h in all three, the life Siemens rates its planetary gearboxes’ planet bearings for | pulley-bearing-life, gearbox-life, gearbox-gearing-life, motor-bearing-life, guide-life (each passes at or above it) | choice |
bearing_reliability_percent | T E S | % | Reliability of the two bearing lives: the life factor a1 of ISO 281 turns their L10 (90 %) into the life this share of bearings reaches (0.64 at 95 %, 0.25 at 99 %). 90 to 99.95; 90 in all three, which leaves the lives as they were | pulley-bearing-life, gearbox-life | choice |
pulley_bearing_load_rating_n | T E S | N | Dynamic load rating C of the bearing that takes the belt’s pull on a pulley shaft, for the rating life (C / P)³ · 10⁶ / (60 n) h. T S: 8469 N, the output bearing of a Siemens NRB120 (1500 N for 30000 h at 100 r/min, Table 7-14 of the planetary gearbox configuration manual 01/2023; the NRB060 whose torques T S take would allow 340 N, less than their 600 N of pretension on the shaft). E: 9500 N for two deep-groove ball bearings of about 5.85 kN that share the pull (a pair lasts as one bearing of 1.62 C) | pulley-bearing-life | placeholder from the catalogue (T S); estimate (E), bounds 8000 to 12000 N |
bearing_lubricant_viscosity_mm2_s | T E S | mm²/s | Kinematic viscosity ν of the pulley shaft bearing’s lubricant at operating temperature, for a_ISO of ISO 281:2007 (L_nm = a1 · a_ISO · L10): κ = ν / ν1, ν1 = 45000 · n^−0.83 · D_pw^−0.5 below 1000 r/min, 4500 · n^−0.5 · D_pw^−0.5 above. 60: a grease of ISO VG 100 base oil at about 50 °C. This and the next three go together: with none of them a_ISO is 1, with some but not all verdicts refuses the config by the missing key | pulley-bearing-life | estimate, bounds 30 to 120 |
bearing_contamination_factor | T E S | – | Contamination factor e_C of ISO 281:2007, Table 13 (mean diameter below 100 mm): 1 extreme cleanliness; 0.8 to 0.6 high (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. 0 to 1, others refused. 0.7 | pulley-bearing-life | estimate, bounds 0.6 to 0.8 |
pulley_bearing_fatigue_limit_n | T E S | N | Fatigue load limit C_u of the pulley shaft bearing. Where the maker gives none, ISO 281’s approximation for ball bearings below 100 mm, C_u = C0 / 22. T S: 193 N for a 6004-like bearing of the placeholder’s C (C0 = 0.5 C = 4235 N). E: 259 N for the pair of 6002 (C0 2.85 kN each) | pulley-bearing-life | placeholder (T S); estimate (E), bounds 200 to 320 |
pulley_bearing_mean_diameter_mm | T E S | mm | Mean diameter D_pw of the pulley shaft bearing, (bore + outer) / 2, for ν1. T S: 31 mm (20 × 42); E: 23.5 mm (15 × 32) | pulley-bearing-life | placeholder (T S); estimate (E), bounds 20 to 28 |
motor_bearing_load_rating_n | in none | N | Dynamic load rating C of the motor’s own bearings, where the belt’s pulley sits on the motor shaft and gearbox.ratio is 1: their rating life (C / P)³ · 10⁶ / (60 n) · a1 with the pulley shaft’s radial load. Siemens gives no C for the 1FK2, only the radial force allowed for 25000 h at a speed: C = F · (25000 · 60 · n / 10⁶)^(1/3), the 1FK2205’s 13104 N from 1000 N at 1500 r/min, 20 mm from the shoulder (catalog/siemens/motor_bearings_1fk2.csv). No shipped config has it: their belts pull on a gearbox output or Festo’s drive head. A config file may add it (like pulley_max_torque_nm) | motor-bearing-life | estimate from the catalogue |
gearbox_gearing_wohler_exponent | T E S | – | Exponent k of the gearing’s Wöhler line through Siemens’ figures, gearbox_max_torque_nm (M2max) for at most 30000 output revolutions and no damage at or below gearbox_rated_torque_nm (M2N): a torque M between allows 30000 · (M2max / M)^k output revolutions, and Palmgren–Miner sums the damage over the cycle. 8.7: the tooth root’s S-N slope of case-hardened gears in ISO 6336-3, ln(3000) / ln(2.5). No figure where the cycle stays at or below M2N. In E not used: no gearbox | gearbox-gearing-life | estimate, bounds 6.6 to 10 |
gearbox_reference_speed_rpm | T E S | r/min | Output speed at which a planetary gearbox’s planet bearings last 20000 h at the rated torque, for Siemens’ life formula. 175 r/min, the NRB060 with ratio 5 (Table 7-15). A gearbox by name does not set it. In E not used: no gearbox and no gearbox_rated_torque_nm | gearbox-life | catalogue |
belt_tooth_load_rpm, belt_tooth_load_n_cm | T E S | r/min, N/cm | Two arrays of the same length, speeds rising: the specific tooth load the belt’s teeth allow per cm of width and tooth in mesh, at the pulley’s speed; interpolated, held beyond the ends. Megadyne’s table for open-ended AT5 (MEGALINEAR handbook 02.2026, page 52). Not in the parameter panel (arrays) | belt-tooth-load | catalogue (E); placeholder (T S) |
belt_width_mm | T E S | mm | Belt width. E: 30 mm (Festo); T S: 25 mm | belt-tooth-load | catalogue (E), placeholder (T S) |
belt_service_factor | T E S | – | Factor on the effective pull at the pulley. 1.4, Megadyne’s factor for low shock loads (Table 4 of the handbook) | belt-tooth-load | choice |
belt_teeth_in_mesh | T E S | – | Teeth in mesh on a driven pulley; at most 12 count, as the handbook says. 10 in all three (half of the EXCT-30’s 20-tooth pulley). With effects.belt_tooth_jump also z_m of the climb-out law (see belt.tooth_jump_factor). Not used with effects.belt_wrap, which counts them from the wrap | belt-tooth-load | estimate, bounds 6 to 12 (T S), 7 to 12 (E) |
drive_rated_current_a | T E S | A | Rated output current of the drive, against which the RMS motor current of the cycle is judged. A drive by name sets it. E: 5 A, its converter 6SL3210-5HE11-5UF0; T S: 3 A, the S210 converter 6SL3210-5HE11-0UF0, which carries the placeholder motor’s rated current (2.8 A) | drive-current | catalogue (E), placeholder (T S) |
drive_max_current_a | T E S | A | Maximum output current of the drive, against which the peak motor current is judged; with effects.drive_current_limit also the limit of the simulated current and, through the torque constant, of the time-optimal plan’s torque. E: 19 A; T S: 10.9 A (above the placeholder motor’s 9.5 A) | drive-peak-current | catalogue (E), placeholder (T S) |
drive_base_load_current_a | T E S D | A | With effects.drive_overload: the current the drive falls back to once its thermal image trips, below drive_rated_current_a. A drive by name sets it: an S120 Motor Module’s from the catalogue; 0.85 of an S210 converter’s rated current, which Siemens does not publish (the share of the S120 Motor Modules up to 30 A). 0.85 of the rated current in the shipped configs | drive-overload | catalogue (S120 by name); estimate, bounds 0.8 to 0.9 of the rated current |
drive_ambient_c | none | °C | Temperature of the air around the drive (the cabinet’s air inlet; not ambient_c, which is the machine’s and feeds the motor’s, gearbox’s and belt’s thermal models). Rated conditions where the key is absent: 40 °C. A drive by name (S210 converter, S120 Motor Module) derates its rated and base load current by the factor of the vendor’s table for the conditions: S210 by altitude and ambient together (operating instructions Table 12-9: 40 to 50 °C; an altitude takes the row “up to” the next table altitude, the ambient is linear between the columns), S120 booksize 2.67 % per K above 40 °C up to 55 °C. Refused, naming the key: below 0 °C, above 50 °C (S210) or 55 °C (S120), and above 45 °C at 16 kHz (S120). Any config file may add it; --set reaches it only where the file has it. A drive of another maker named by part has no derating data and is refused when a condition is set; a config that names no drive part (in [parts] or a motor’s [parts.<id>]) has a hand-entered drive, which the keys cannot derate: sim-cli refuses the condition there (error-drive-derating-none, naming the key), except in search, whose candidates bring their drives; sim-app and the Python module do not check it yet. The factors multiply (S120: altitude, ambient, pulse frequency); Siemens does not say how they combine, so this is the simulator’s assumption on the safe side. Siemens does not say whether the maximum current is derated either: drive_max_current_a is left as printed (an open point), so drive-peak-current is not derated. The search lists drive-derating under estimated when a factor other than 1 was applied | drive-current, drive-overload | catalogue (derating_s210.csv, derating_s120.csv) |
drive_altitude_m | none | m | Installation altitude of the drive above sea level; rated conditions where absent: 1000 m. S210: the table of altitude against ambient temperature; S120: 10 % per 1000 m above 1000 m (Siemens’ alternative of 5 K lower ambient per 1000 m is not implemented; the C/D-type manual also prints 3.5 K per 500 m, which disagrees). Refused above 4000 m. Same notes as drive_ambient_c | drive-current, drive-overload | catalogue |
drive_pulse_frequency_hz | none | Hz | Pulse frequency of the drive; rated where absent: 4000 Hz (S120 booksize) or 8000 Hz (S210). The S210’s is fixed: any other value is refused. S120: 100 % up to 4 kHz, then by the module group’s curve (3 to 132 A and Double: 60/40/30 % at 8/12/16 kHz; 200 A: a line to 40 % at 12 kHz, 30 % at 16 kHz); refused above 16 kHz or not above 0. Same notes as drive_ambient_c | drive-current, drive-overload | catalogue |
drive_overload_time_constant_s | T E S D | s | With effects.drive_overload: time constant of the drive’s thermal image. 10 s | drive-overload | estimate, bounds 2 to 60 |
drive_max_current_time_s | T E S D | s | With effects.drive_overload: how long the drive gives its maximum current from the rated load; sets the image’s trip level r² − (r² − 1) exp(−t / τ), r = max over rated current. 0.25 s | drive-overload | estimate, bounds 0.1 to 1 |
drive_chip_share | T E S D | share | With effects.drive_overload: the chips’ share of the power unit’s rise, the fast node of the two-node image; 0 for one node. 0.3 | drive-overload | estimate, bounds 0 to 0.5 |
drive_chip_time_constant_s | T E S D | s | With effects.drive_overload: time constant of the chips’ node. 1 s | drive-overload | estimate, bounds 0.1 to 5 |
belt_span_resonance_band | T E S | share | With effects.belt_span_vibration: how close a span’s first sideways mode may come to an excitation of the drive at steady speed, as a share of the mode. 0.1: belt makers ask to keep the two apart without a figure; 10 % is the separation usually kept from a resonance | belt-span-resonance (passes at or above it) | estimate, a limit, not bounded |
dc_link_capacitance_uf | T E S | µF | DC link capacitance of one drive | dc-link-energy | placeholder (T S); estimate from S120 data (E) |
braking_threshold_v | T E S | V | DC link voltage at which the chopper switches the braking resistor in. T S: 224.65 V. A motor by name scales it with the DC link voltage | dc-link-energy | placeholder (T S); estimate (E) |
braking_resistor_continuous_w | T E S | W | Continuous power of the braking resistor. A drive by name sets it (S210) | braking-resistor-continuous | placeholder (T S); catalogue (E, 100 W, its converter’s internal resistor) |
braking_resistor_peak_w | T E S | W | Peak power of the braking resistor. The simulated resistor never takes more. A drive by name sets it (S210) | braking-resistor-peak | placeholder (T S); catalogue (E, 5.7 kW) |
braking_resistor_time_constant_s | T E S D | s | With effects.braking_resistor_heating: the resistor’s thermal time constant. 60 s; Siemens gives duty cycles (braking_s120.csv), not this | none (signal) | estimate, bounds 20 to 300 |
braking_resistor_rated_rise_k | T E S D | K | With effects.braking_resistor_heating: the resistor’s rise at its continuous power. 200 K | none (signal) | estimate, bounds 100 to 300 |
dc_link_overvoltage_v | T E S | V | DC link voltage at which the drive trips. T S: 257.6 V. A motor by name scales it with the DC link voltage; an S210 converter by name sets its trip level (410 V on 1 AC, 820 V on 3 AC), an S120 Motor Module the Active Line Modules’ 820 V (dc_link_trip_s120.csv, booksize equipment manual) | dc-link-overvoltage (only with effects.dc_link) | placeholder (T S); catalogue (E, 820 V) |
dc_link_discharge_time_constant_s | T E S | s | With effects.dc_link: time constant R C with which a disabled drive’s DC link discharges through its bleeder and the drive’s own consumption, down to the bus level the rectifier holds. 130 s in all three: Siemens asks to wait 5 minutes after switching off for the DC link to discharge, taken as 600 V falling to 60 V, 300 s / ln 10. Required with effects.dc_link. No cycle uses it, so its bounds get no runs | none | estimate, bounds 30 to 300 s |
line_module_rated_power_w | T E S | W | With effects.regenerative_supply: rated power of the line module. 16 kW, the smallest S120 Active Line Module 6SL3130-7TE21-6AA4 in line_modules_s120.csv | line-module-continuous: the mean power through it, drawn and fed back | catalogue |
line_module_max_power_w | T E S | W | With effects.regenerative_supply: the most it feeds back; the simulated line module never feeds back more. 35 kW, the same module’s maximum power. Required with the effect | line-module-peak: the highest power through it either way | catalogue |
line_module_efficiency | T E S | fraction | With effects.dc_link: the line module’s (or an S210’s rectifier’s) efficiency both ways: of what it draws from the line that share arrives in the DC link, of what it feeds back (effects.regenerative_supply) that share arrives in the mains; the rest is its loss (budget row line_module). Above 0, at most 1. 0.98 from the catalogue’s 0.28 kW loss at 16 kW; at the small powers of these machines a guess. Required with dc_link since 14 November 2026; its bounds get runs only with it | none | estimate, bounds 0.95 to 0.99 |
housing_max_rise_k | T E S | K | Optional. The housing’s highest rise that the utilisation chart (charts-housing) holds its rise against, with effects.motor_thermal_nodes. Absent: the winding’s rated rise motor.rated_temperature_rise_k, as before | none |
The DC link ratings of T and S are placeholders for the drive those configs were written for: a DC link of 155.13 V, with 6.2 J of room in 470 µF up to the threshold. When a catalogue motor goes into such a config, the threshold and the trip level keep their ratio to the DC link voltage (782 V and 897 V at 540 V); capacitance and resistor powers stay. See the user guide.
[accuracy]
Read by the positioning accuracy test (sim-cli accuracy, sim_components::accuracy) with effects.thermal_growth or
effects.lead_error on, and ignored with both off or with effects.load_encoder on. In no shipped config; any config
may add it (analysis::RATINGS_BEYOND_DEFAULT). Without the table no axis grows or has a lead error. The test and its
verdicts (ratings.max_positioning_error_m, max_repeatability_m and their _rad keys) are in the
user guide.
| Key | Unit | Meaning | Default |
|---|---|---|---|
screw_expansion_per_k | 1/K | Linear expansion of a ball screw, taken by the entries with drive = "screw" | absent: 11.5e-6, hardened bearing steel (EN 1.3505 / 100Cr6; makers give 11 to 12e-6) |
belt_expansion_per_k | 1/K | Linear expansion of a toothed belt along its length, taken by the entries with drive = "belt" | absent: 11.5e-6, [estimate] that of its steel cords; no belt maker gives one (a glass fibre cord about 5e-6, an aramid one about −2e-6) |
axes | – | A list of tables, one per tool axis that grows or has a lead error; another key in an entry is refused (accuracy.axes.<key>) | absent: none |
axes[].axis | – | Required: the id of a tool axis ("x", "z", …) | – |
axes[].drive | – | "screw" or "belt": which expansion it takes | absent: "screw" |
axes[].fixed_end | axis unit | Where the axis does not grow from (a screw’s fixed bearing, a belt axis’s home) | absent: 0 |
axes[].rise_k | K | A temperature rise of the screw or belt the config gives, added to the heated part’s | absent: 0 |
axes[].heated_part | – | The id of one of the machine’s heated parts (effects.part_heating; the gearbox and guide ids of the thermal view), whose rise is added during the test; without part heating its rise stays 0 | absent: none |
axes[].lead_error | axis unit | Rows [position, error], positions rising: the error is linear between rows and that of the nearest row beyond them | absent: none |
The real position is the one the motor encoder holds plus expansion × (rise_k + the heated part’s rise) × (x −
fixed_end) plus the table’s error at x (thermal_growth adds the first term, lead_error the second).
[profile]
| Key | In | Unit | Meaning | Source | Effect switch |
|---|---|---|---|---|---|
cycle_s | T E S | s | Cycle of the profile generator. Can be changed while a motion is under way | choice | always |
fieldbus_delay_cycles | T E S | cycles | Whole profile cycles between the controller computing the motor setpoints and the drives using them. 0 to 1000 | datasheet, measurement | fieldbus_delay |
fieldbus_jitter_cycles | T E S | cycles | The most whole profile cycles a frame can take beyond the delay; each frame takes 0 to this many, evenly. 0 to 1000; 1 in all three files | measurement | fieldbus_jitter |
setpoint_interval_s | T E S | s | Setpoints from the PLC are interpolated over this interval. A whole multiple of cycle_s | choice | always (OPC UA) |
blend_time_s | T E S | s | How long before the end of a cycle segment the next one may start | choice | corner_blending |
shaper_frequency_hz | T E S | Hz | Resonance the input shaper is set to | measurement, or the machine’s own figure | input_shaping |
shaper_damping | T E S | fraction | Damping ratio of that resonance. From 0 to below 1 | estimate, measurement | input_shaping |
shaper2_frequency_hz | T E S | Hz | A second resonance: a second ZVD shaper at this frequency is convolved with the first, so that both are suppressed; each move then takes both periods longer. Not negative; 0 for none (T S). E: 17.5 Hz, the peak of the tool’s response, so that the worst corner of the bounds passes settling (0.095 mm against 0.115 mm with the 25 Hz shaper alone). With effects.shaper_follows_pose it follows the machine’s second mode instead, where the machine reports one | measurement (sim-cli sweep), or the machine’s own figure | input_shaping |
shaper2_damping | T E S | fraction | Damping ratio of the second resonance. From 0 to below 1 | estimate, measurement | input_shaping, with shaper2_frequency_hz above 0 |
shaper_type | all | – | The shaper of the first and second resonance: "zv", "zvd", "zvdd", "ei" (extra-insensitive) or "ei2" (two-hump EI); "zvd" in every file (as before 14 November 2026). Their weights and what each leaves at ±20 % are in the model reference | choice | input_shaping |
shaper_ei_tolerance | all | fraction | The vibration the EI shapers allow, V: EI leaves V at its frequency, the two-hump EI humps of V either side. Above 0, below 1; 0.05 in every file | choice | input_shaping, with ei or ei2 |
shaper_axes | all | – | The axes (ids) the first and the second shaper act on; [] (in every file) for all | choice | input_shaping |
shaper_modes | all | – | Further resonances, each a shaper convolved with the others on its axes: [{ frequency_hz = 40.0, damping = 0.02, type = "ei", axes = ["z"] }], type (else shaper_type) and axes (else all) may be left out. Frequencies above 0, dampings from 0 to below 1. They keep their frequency with shaper_follows_pose. [] in every file | measurement (sim-cli modes, sweep) | input_shaping |
shape | all | – | The shape of moves (MoveTo, cycle segments, the conveyor’s are S-curves): "s-curve" (seven segments), "sin2" (Bestehorn’s sin², a = (π/2) v / T_ramp), "poly345" or "poly4567" (VDI 2143, no cruise). A [[cycle.segment]] may name its own. "s-curve" in every file | choice | always |
deceleration_ratio | all | fraction | Braking within this share of the axes’ acceleration limits; the S-curve and sin² then brake on a ramp of their own, a polynomial law keeps the lower limit. Above 0, at most 1; 1 in every file | choice, measurement (a drive that brakes into a small DC link) | always |
vertical_axis | all | – | The axis that lifts against gravity, by id ("z"), with - before it where up is its minus direction ("-z"); "" (in every file) for none | the machine | always |
up_acceleration_ratio | all | fraction | The share of the vertical axis’s acceleration limit it has for an acceleration upwards (the motor lifts the weight as well); downwards the full limit. Above 0, at most 1; 1 in every file | estimate: (F / m − g) / (F / m + g) of the axis’s force and moved mass | always, with vertical_axis |
trajectory_spline | all | – | The curve Command::Trajectory runs through its poses (an imported trajectory, a planned path, a segment’s via points): "c2" (in every file), the cubic spline whose acceleration is continuous at every pose, or "hermite", the cubic with the slopes of the neighbours as before 14 November 2026, whose acceleration steps at each pose | choice | always |
torque_reserve | T E S | fraction | Share of the torque-speed curve a time-optimal path may use, and of the torque of the drive’s maximum current (ratings.drive_max_current_a, with effects.drive_current_limit or without since 15 November 2026), of the gearbox’s and pulley’s torque rating at the output (ratings.gearbox_max_torque_nm, pulley_max_torque_nm) and of a machine part’s force rating (a screw’s axial force, a rack’s feed force). Beside it the plan takes each motor’s friction at the speed it turns off its room: the shaft’s (motor.friction_coulomb_nm, friction_viscous_nm_s_rad with effects.motor_friction), the gearbox’s drag (gearbox.no_load_torque_nm with effects.gearbox_drag), on machine files the guides’ ([friction_*] with effects.guide_friction) and on the joint machines the joints’ (joint.friction_*, slide.friction_* with effects.joint_friction). The plan also keeps the gearbox’s input speed, the braking resistor’s peak power and a screw’s speed rating, less at least 1 % of each speed rating, more for a velocity loop that follows less closely and for an elastic drive train (see the model reference). Above 0, at most 1 | choice | --time-optimal |
tension_reserve | T E S | fraction | Share of the room between the belt tension that holds the tool and ratings.belt_max_tension_n / belt_min_tension_n (each less tension_margin_n) that a time-optimal path may use in the plan’s rigid model. 0.5 in all three files: a change of acceleration quick against the belt’s period makes a lightly damped belt overshoot by up to the change itself, so the full model swings up to twice the rigid model’s dynamic tension (0.8 let the default T-gantry pass a 330 N rating by 1.4 N at 100 m/s³ and go slack at 1000 m/s³). Above 0, at most 1. Without a tension rating the belt is no limit of the plan | choice (E: estimate) | --time-optimal |
tension_margin_n | T E S D | N | Taken off both belt tension ratings before tension_reserve, for the guide friction the belt pulls, which the loss-free rigid model leaves out: the X guide’s coulomb friction plus its viscous friction at the axis’ top speed (T 15 + 20 · 0.8 = 31 N, E 20 + 20 · 2.5 = 70 N, S 15 + 20 · 1.0 = 35 N; D 0, no belt). At least 0. A path whose holding tension alone is beyond a rating less the margin is refused | estimate | --time-optimal |
time_optimal_margin | all | – | 1.0. The share of every limit the time-optimal plan may use, on top of the reserves: it multiplies torque_reserve, tension_reserve’s room, the speed ratings (motor, gearbox input, screw) and the braking resistor’s peak power; 0.9 plans at 90 % of them. Above 0 and at most 1. Left out (an older machine file): 1 | choice | --time-optimal |
min_clearance_m | T E S D | m | The least clearance the machine keeps from every obstacle of obstacles (surface to surface, between the obstacle and the parts that can hit one): the check collision judges the run’s least clearance against it, and a time-optimal path that comes nearer is refused (error-path-collision). The same clearance between the machine’s own parts that are not joined at the start pose: the check self-collision (error-path-self-collision). Also, for sim-cli optimise and the app’s optimiser: how far the tool has to stay beyond the farther of pick and place (along the last axis, the side the lift goes to) while it traverses between them. The optimiser lowers each lift, traverse and lower of the cycle to this, and rounds its corners through a via point only where the planned path keeps it (less the path tolerance). Not negative. T 0.3 and E 0.17: the lifts as configured (no obstacle is known); S 0 (no lift); D 0.025, its 25 mm lift | choice, or the height of an obstacle | optimise |
path_tolerance_m | T E S | m | How far a planned path may leave the lines, arcs and splines of its file, so that transition curves can take it from a line into an arc at speed, and a spline’s end can be eased to the curvature of the line or arc it meets. The deviation is L² / (24 r) for curves of length L at an arc of radius r, 0.01728 dk l² for a spline eased over l against a step dk of the curvature, and is reported. Not negative; 0 (in all three files) plans the path as given | choice | --path, and the app’s Path |
corner_tolerance_m | T E S D | m | How far a planned path may leave a corner between two lines (the direction turns by more than 1 mrad) to round it instead of stopping there, as a CNC’s G642 or a robot’s zone: a curve from d before the corner to d after it that leaves and arrives in the lines’ directions with no curvature at either end (no step in any axis’s acceleration), d such that the curve is nowhere further than this from the two lines (d = 16/3 of it at a right angle, where the curve’s tightest radius is sqrt(2) d / 3 = 2.51 times it), at most half of either line. Applies to paths (--path, the app, OPC UA) and to cycle segments with via points. A corner next to an arc or a spline is rounded too, by a quintic from d back along the piece before to d on along the one after that keeps both pieces’ directions and curvatures there (G2), d found so that its deviation is the tolerance (for a right angle next to a wide arc again about 16/3 of it). A turn of nearly half a circle and a corner on more than six axes stay stops. Whether it is quicker depends on the jerk limit: at the shipped 100 m/s³ a 20 mm rounding of a right angle on the T-gantry is slower than the stop (1.365 s against 1.306 s time-optimal), at 2000 m/s³ quicker (0.920 s against 0.978 s). At least 0; 0 in every shipped file: corners are stopped at | choice | none |
feed_override | all | – | 1.0. The factor on the programmed feed of the moves of a program (--path, the app’s Path, Sim::plan_program): G1, G2 and G3 at F, a RAPID move’s speed, a KRL LIN or CIRC’s $VEL.CP. G0 rapids, vmax, PTP and robot CSV have no feed and are not scaled; the axes’ limits still cap every move, so a factor above 1 never takes a move past them. Above 0 and at most 2: this simulator’s limit (Sinumerik’s and LinuxCNC’s override switches go to 200 %), not a vendor figure. 1 plans exactly as without it. A planning value: read when the config is loaded, not changed by OPC UA while the simulation runs. No shipped file has it: a config adds it, or --set profile.feed_override=0.5 sets it, and without it the factor is 1. A program’s G64 P and G61 set the corner tolerance (corner_tolerance_m) from their block on, see the user guide | choice | --path |
cycle_timing | T E S D | text | How the cycle’s segments are timed: "axis_limits" (the S-curves within [axis.*], and a segment with via points by path::plan), or "time_optimal" (each segment rest to rest as fast as the motors allow, path::plan_time_optimal: the motors’ torque-speed curves within torque_reserve, the gearbox’s and pulley’s ratings, the belt’s tensions, the guides’ load rating and the jerk limits, the straight way as a line and a segment with via points along its path). With "time_optimal" the config is refused (profile.cycle_timing) where a segment’s straight way cannot be planned so from the segment before, and corner blending (profile.blend_time_s) does not apply. analyze, verdicts, search and optimise then judge the cycle at the motors’ limits. "axis_limits" in every shipped file | choice | none |
[bounds]
Low and high bound of the values that are estimates. The table mirrors the config: where the config has [friction_x] coulomb_n = 15.0, [bounds] has friction_x.coulomb_n = [10.0, 20.0], in the unit of the value. Used by sim-cli verdicts --bands, by sim-cli sensitivity and by the app’s sensitivity ranking.
- A bound on a key the config does not have is refused.
- A bound has to be two numbers with low ≤ high.
- A test holds every bound around its value (
the_bounds_of_every_config_bracket_their_values). - Arrays are not shown in the parameter panel, so bounds cannot be edited in the app.
- A bound follows a part named in
[parts](or by--motor,--supply,--drive, …): where the part puts its own value in place of the config’s, the bound is scaled by the same factor, the part’s value over the config’s (a bound of a value that was 0 stays as written). So a band written for the config’s own motor and drive keeps its width relative to the value around the named part’s: EXCT-30’s braking threshold has bounds of 750 to 790 V around its 770 V on a 540 V bus; a 230 V motor and drive by name scale the threshold and the bounds with the bus. Before, the bounds stayed absolute andverdicts --bandsaborted there (out of range: ratings.braking_threshold_v), and the DC link capacitance and base load current bands stayed those of the config’s drive.
| Config | Bounded values | What is bounded | What is not |
|---|---|---|---|
| T | 37 | Belt stiffness, pretension, damping, tooth force, tooth jump factor; guide Coulomb, stiction and viscous friction of both axes; motor shaft friction, ripple, cogging; gearbox efficiency, stiffness, damping; frame stiffness and damping; the three tool_flex values; the thermal resistances and time constants of [thermal]; the four estimates of [thermal_feedback]; the DC link’s discharge time constant and the line module’s efficiency; the belt’s teeth in mesh; the bearing lubricant’s viscosity and contamination factor; the gearing’s Wöhler exponent | Masses, inertias, backlash; values of effects that are off by default, but for [thermal], [thermal_feedback] and the tooth jump factor; the shape of the friction curve (Stribeck speed, bristles, preload); the rated rises of [thermal]; the reference temperature; the span resonance band (a limit) |
| S | 29 | As T, without friction_z, frame and tool_flex | As T |
| D | 32 | The geometry and the masses (not the payload), the rods’ spin inertia, the joint’s friction, the motor’s friction, ripple, cogging and winding resistance, the gearbox’s stiffness and damping, [thermal], three of [thermal_feedback], the DC link’s discharge and the line module’s efficiency, the gearing’s Wöhler exponent, the upper arms’ bending stiffnesses and dampings (in and out of their planes) | The stop angles and stiffness, the working range, the axis limits, the loop gains, every [catalogue] value |
| D2 | 26 | As D, with the gearbox’s backlash in place of its stiffness (the stiffness is the catalogue’s, the backlash an estimate) | As D |
| D4 | 50 | As D, with the arms’ backlash, and the estimates of [gearbox.4] (backlash, damping), [motor.4] (winding, friction), [ratings.4], [tool] and [shaft] | As D; the shaft’s slide smoothing speed |
| H4 | 49 | As D, with the arms’ backlash (an estimate here), and the estimates of [plate] (pinion radius, gear ratio, the amplifier’s stiffness, damping and backlash) and [tool] | As D; the upper arms’ bending ([upper_arm]: the tube’s diameter, wall and modulus and the two dampings, with effects.arm_bending) and the elbow block’s twist inertia are bounded too |
| E | 75 | Every [estimate] of the file, including geometry estimates, belt mass, all friction values, winding resistance and inductance, brake torque, pulley inertia, frame mass, idler, cable chain, process force, hard stops, sensor noise, the estimated ratings (the discharge time constant and the line module’s efficiency among them), the thermal resistances and time constants, the tooth jump factor and the four estimates of [thermal_feedback] | The ripple and cogging orders and the loop gains; all [catalogue] values; the rated rises of [thermal]; the span resonance band (a limit) |
Since 15 November 2026 every config with a holding brake also bounds brake.engage_delay_s and brake.release_delay_s, two more than the counts above. No cycle uses them (the brakes act only while the drives stop or start), so verdicts --bands runs nothing for them; sim-cli stop with the bounds set by hand shows what they do.
Keys with bounds in one config only:
| Bounded in T and S, not in E | Bounded in E only |
|---|---|
belt.stiffness_ea_n (a catalogue value in E), gearbox.efficiency (1.0 in E) | geometry.span_min_m, .z_com_drop_m, .guide_spacing_m, .z_tool_drop_m; belt.mass_kg_m, .tooth_mesh_stiffness_n_m, .damping_time_s; friction_x and friction_z: .stribeck_m_s, .bristle_stiffness_n_m, .bristle_damping_n_s_m, .preload_n; motor.friction_smoothing_rad_s, .resistance_ohm, .inductance_h, .brake_torque_nm; pulley.inertia_kgm2; frame.mass_kg; all of idler, cable_chain, process, hard_stop; drive.encoder_noise_counts, .current_noise_a; ratings.dc_link_capacitance_uf, .braking_threshold_v, .braking_resistor_continuous_w, .braking_resistor_peak_w, .dc_link_overvoltage_v, .shaft_max_radial_load_n, .guide_max_load_n, .guide_dynamic_load_rating_n, .pulley_bearing_load_rating_n |
[start]
| Key | In | Unit | Meaning |
|---|---|---|---|
pose | T E S | m | Tool pose the simulation starts at, at rest: one position per axis. T: [0.1, 0.35], E: [0.1, 0.2], S: [0.1]. A path, a trajectory and a replayed trace have to start here |
Delta picker D3
The D3’s config (machine-delta-d3/default.toml) has the tables every machine has as T and S have them: [sim], [parts], [motor], [gearbox], [thermal] (gearbox values only), [thermal_feedback], [drive], [ratings] (without the belt, pulley and guide ratings), [profile], [bounds], [start], [[cycle.segment]], and the effects of the drives and the controller. It has no belt, guide, pulley, frame, idler, cable chain, process force or [temperature]. Its own keys:
[effects]
| Key | Meaning | Default |
|---|---|---|
joint_elasticity | The gearboxes twist (stiffness, damping, backlash): motor and arm are two bodies per joint. Off: the rigid reference model (the switch that belt_stretch is on the belt machines) | true |
forearm_inertia | Each forearm pair a rigid rod with its mass and rotational inertia (m/6 at each end, 2m/3 at its middle: exact for a slender rod), and the rods’ spin about their own axes as the pair’s plane turns (mass.forearm_rod_spin_inertia_kgm2; one switch, as it is the rest of the same rigid body’s inertia). Off: the lumped model, mass.forearm_elbow_share at the elbow, the rest at the platform | true |
link_elasticity | The upper arms bend ([upper_arm]): in the plane they turn in, the elbow turns against the arm’s root on a spring and damper; out of it, the elbow moves along its axis on the tube’s lateral spring and damper. The platform rings after a move. The stiffnesses are estimates | false |
arm_tube_inertia | With link_elasticity: the arm tube’s own share of the bending modes, in a cantilever’s static deflection shape, the mode consistent with the springs (its tube as much of mass.upper_arm_kg as upper_arm_inertia_kgm2 allows a uniform tube, the rest a hub on the axis: 33/140 of its mass, 33/140 m L_a² of its inertia and 3/8 m L_a of its first moment move from the root to the elbow, the cross term 11/40 m L_a² θ’ δ’ of its kinetic energy joins the root to the elbow; 33/140 of its mass moves with the elbow out of the plane), and the elbow block’s twist as the arm bends out of its plane (mass.elbow_twist_inertia_kgm2 and the forearms’ share at the rods’ ends, times (1.5 / L_a)²) | false |
joint_friction | Friction in the arms’ joints at the base, [joint] | true |
hard_stops | The stops at the ends of the arms’ angle range, [joint] | true |
gravity, payload, motor_friction, gearbox_backlash, gearbox_efficiency, torque_ripple, holding_brake | As on the other machines | true |
[geometry] (all estimates, bounded)
| Key | Unit | Meaning | Value |
|---|---|---|---|
base_radius_m | m | Centre of the base to a shoulder axis, R | 0.2 |
platform_radius_m | m | Centre of the platform to a forearm pair’s centre, r. The equations use e = R − r | 0.05 |
upper_arm_m | m | Upper arm, shoulder axis to elbow, L_a | 0.4 |
forearm_m | m | Forearm, elbow to platform (the parallelogram’s centre line), L_b. Longer than the upper arm | 0.95 |
forearm_spacing_m | m | Distance of the two rods of a pair; for the 3D view only | 0.1 |
[workspace]
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
radius_m | m | Radius of the working cylinder; also the x and y axis ranges ±radius | 0.6, catalogue (Autonox: Ø1200) |
top_z_m | m | Height of its top, negative below the shoulder plane; the upper end of the z axis range | −0.675, estimate (the bottom sphere’s centre on the shoulder plane) |
height_edge_m | m | Its height at the edge | 0.2, catalogue |
height_centre_m | m | Its height at the centre, at least the edge’s: the bottom is a sphere through both; the lower end of the z axis range is top less this | 0.386, catalogue (Autonox: approx. 386, sphere R1060.74) |
max_condition_number | – | A target whose Jacobian has a higher condition number is refused (error-delta-singularity) | 10, estimate |
[mass] (all estimates but the payload, bounded)
| Key | Unit | Meaning | Value |
|---|---|---|---|
upper_arm_kg | kg | An upper arm without the elbow block | 0.9 |
upper_arm_cg_m | m | Its centre of mass from the shoulder axis | 0.2 |
upper_arm_inertia_kgm2 | kg m² | Its inertia about the shoulder axis (uniform tube: m L²/3) | 0.048 |
elbow_kg | kg | The elbow block with its ball studs, at the arm’s end | 0.3 |
forearm_pair_kg | kg | A pair of forearm rods with their ball cups | 0.5 |
forearm_elbow_share | share | The share of a pair’s mass counted at the elbow, the rest at the platform (0 to 1), with effects.forearm_inertia off. 2/3 matches the rod’s inertia about its end (Codourey, Olsson) | 0.6667 |
forearm_rod_spin_inertia_kgm2 | kg m² | Each rod’s inertia about its own axis, with effects.forearm_inertia. A carbon tube 20 × 1.5 mm of 0.15 kg: m (r_o² + r_i²) / 2 = 1.29e-5; bounds 0.6e-5 to 2.6e-5 | 1.3e-5, estimate |
elbow_twist_inertia_kgm2 | kg m² | With effects.arm_tube_inertia: the elbow block’s inertia about the arm’s normal through it. An aluminium block of 0.3 kg, 0.1 m across: m w² / 12 = 2.5e-4; bounds 1.2e-4 to 5e-4 | 2.5e-4, estimate |
platform_kg | kg | The platform with its flange | 1.2 |
payload_kg | kg | Payload, with effects.payload | 3.0, catalogue (Autonox rated payload) |
[upper_arm] (with effects.link_elasticity; estimates, bounded)
| Key | Unit | Meaning | Value |
|---|---|---|---|
bending_stiffness_nm_rad | N m/rad | The arm’s bending as a turn of the elbow about the shoulder: 3 E I / L_a (a cantilever’s tip deflection F L³ / (3 E I) over L_a). A carbon tube 50 × 2 mm, E 100 GPa: 65250; bounds 40000 to 100000 | 65000 |
bending_damping_nm_s_rad | N m s/rad | Its damping, about 2 % of critical at the platform’s sideways mode; bounds 2 to 10 | 5.0 |
lateral_stiffness_n_m | N/m | The arm’s bending out of the plane it turns in, as a move of the elbow along its axis: 3 E I / L_a³ (the same round tube): 407800; bounds 250000 to 620000 | 400000 |
lateral_damping_n_s_m | N s/m | Its damping, about 2 % of critical with the elbow’s share of mass (0.47 kg with the rods); bounds 6 to 30 | 15.0 |
[joint] (read by the rotary joint component; estimates)
| Key | Unit | Meaning | Value |
|---|---|---|---|
friction_coulomb_nm | N m | Coulomb friction of an arm’s joint, at the arm, with effects.joint_friction | 0.3 |
friction_viscous_nm_s_rad | N m s/rad | Viscous friction of the joint | 0.05 |
friction_smoothing_rad_s | rad/s | The Coulomb step is smoothed with tanh over this speed | 0.01 |
min_angle_deg, max_angle_deg | ° | The stops: arm angle, 0 horizontal and positive down. A target that asks an arm beyond them is refused (error-delta-joint-stop); with effects.hard_stops a spring and damper act beyond them | −55, 95 |
stop_stiffness_nm_rad, stop_damping_nm_s_rad | N m/rad, N m s/rad | The stops’ spring and damper | 2e4, 20 |
[axis.x], [axis.y], [axis.z]: the tool’s speed, acceleration and jerk limits along x, y and z, as for the other machines’ axes: 3 m/s, 50 m/s², 2500 m/s³ (estimates; Autonox publishes none).
[ratings]: one more rating, judged on any machine that reports the signal kinematics.condition:
| Key | Unit | Meaning | Judged by | Value |
|---|---|---|---|---|
max_condition_number | – | The highest condition number of the Jacobian the cycle may reach | singularity | 5, estimate (a design rule; the working range has up to 3.6) |
D’s values of the shared tables: motor 1FK2105-4AF at 400 V (catalogue: rotor 1.7 kg cm², 1.07527 N m/A, 15 N m peak, 4.6 N m rated at 3000 r/min, 18 A and 4.35 A, 37 min; winding R and L estimates), gearbox Siemens NRB080-05-20 (catalogue: ratio 20, 96 %, 35752.6 N m/rad, 9 arcmin backlash, 0.406 kg cm² at the input), converter 6SL3210-5HE11-5UF0 (5 A, 19 A), DC link capacitance and chopper threshold estimates as the EXCT-30’s, the converter’s internal braking resistor (100 W, 5.7 kW) and trip level (820 V) from braking_s210.csv, settling_tolerance_m 0.5 mm (an estimate of the positioning accuracy of the class, Festo EXPT ±0.5 mm; the gearboxes’ sag under the platform’s weight puts the tool 0.64 mm off at pick and place at rest and 0.68 mm in the dwell, so the cycle fails settling: a sizing finding, the NRB080’s backlash is too large for the class; 3 arcmin pass with 0.33 mm), gearbox_reference_speed_rpm 100 (estimate), gearbox_gearing_wohler_exponent 8.7 (estimate, bounds 6.6 to 10; arm 1’s NRB080 runs up to 137 N m against its 120 N m rated, and its gearing life comes out at about 9000 h: it fails 20000 h, a finding about the estimate), the velocity loop 0.25 N m s/rad, 0.03 s with 0.1 ms filters (tuned with sim-cli margins delta-d3 --bands). Its cycle is the Adept cycle 25/305/25 mm with stops at the corners and 35 ms gripper dwells, one pass = one place and one pick; profile.min_clearance_m is its 25 mm lift, start.pose above the place position (near the edge of the range one arm carries little of the weight and its velocity loop cannot be measured), mass.forearm_elbow_share bounded 0.5 to 0.667. The suite’s loss-free configs (suite_configs) set workspace.top_z_m to −0.85, see the model reference.
Delta picker D2
The D2’s config (machine-delta-d2/default.toml) has the D3’s tables and keys, with these differences. The tool pose, start.pose and the cycle’s targets are (x, z); there is no [axis.y].
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
geometry.base_radius_m, platform_radius_m, upper_arm_m, forearm_m | m | As on the D3, in the x-z plane: the shoulder axes at x = ±R | 0.15, 0.05, 0.4, 0.7, estimates (the whole range reachable with condition numbers up to 1.56) |
geometry.forearm_spacing_m | m | The rods of a pair apart along y; for the 3D view only | 0.1 |
workspace.half_width_m | m | Half the width of the working range; also the x axis range ±half width. In place of the D3’s radius_m | 0.4, catalogue (Codian: 800 mm) |
workspace.top_z_m | m | Height of its top below the shoulder axes; the upper end of the z axis range | −0.4, estimate |
workspace.height_edge_m, height_centre_m | m | Its height at the edges and at the centre; the bottom is an arc through both | 0.25 estimate, 0.477 catalogue (Codian: 477 mm) |
mass.upper_arm_kg, upper_arm_cg_m, upper_arm_inertia_kgm2, elbow_kg, forearm_pair_kg, forearm_elbow_share, platform_kg | As on the D3 | 1.2, 0.2, 0.064, 0.4, 0.6, 0.6667, 1.0, estimates | |
mass.payload_kg | kg | Payload | 5, catalogue (Codian D2-800-S020) |
joint.min_angle_deg, max_angle_deg | ° | The stops | −60, 85, estimates |
gearbox.backlash_rad | rad | Backlash of an arm’s gearbox | 2.909e-4 (1 arcmin), estimate, bounded 0.5 to 2 arcmin: a reduced-backlash precision planetary. The NRB080-05-20, whose other values the config has (catalogue), has 9 arcmin, with which the cycle fails settling (0.85 mm against 0.5 mm) |
The motor, drive, ratings, axis limits (3 m/s, 50 m/s², 2500 m/s³ along x and z) and loop gains are the D3’s.
Parallel SCARA
The parallel SCARA’s config (machine-parallel-scara/default.toml) has
the D2’s tables and keys with the D2’s values, laid in the horizontal x-y plane, with these differences. The tool pose,
start.pose and the cycle’s targets are (x, y, z, c) with both extra axes on, (x, y, z) or (x, y, c) with one, (x, y)
with none: switching an axis off needs the cycle’s targets and start.pose changed with it.
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
geometry.forearm_spacing_m | m | The rods of a pair apart along z (the joints’ axis); for the 3D view only | 0.1 |
workspace.near_y_m | m | The range’s near edge, y in front of the shoulder axes; the upper end of the y axis range. In place of the D2’s top_z_m | −0.4, estimate |
workspace.depth_edge_m, depth_centre_m | m | The range’s depth at the edges and at the centre; the far edge is an arc through both. In place of the D2’s height_edge_m, height_centre_m | 0.25 estimate, 0.477 catalogue (the D2’s) |
mass.upper_arm_inertia_kgm2 | kg m² | The arm’s tube about its joint | 0.064, estimate |
mass.upper_arm_kg, mass.upper_arm_cg_m | kg, m | The arm tube’s mass and its centre’s distance from the joint; its weight is out of the plane, so only the frame’s momentum (a base’s tilt under it) takes them | 1.2, 0.2 (the uniform tube of the inertia, m L² / 3), estimates |
z_axis.enabled | The Z stroke at the plate: axis z, motor 3 | true | |
z_axis.unit_kg | kg | What the plate carries for it: housing, screw, Z motor with brake | 2.95, estimate (the motor’s 1.55 kg catalogue) |
z_axis.carriage_kg | kg | What the screw lifts: quill, flange, gripper (the payload is added while held) | 1.0, estimate |
slide.* | The Z carriage’s stroke (0.2 m), friction and stops, as for the screw axis | estimates, the SCARA’s quill | |
screw.* | The Z stroke’s ball screw (16 x 20, fixed-free, 0.3 m), as for the screw axis; its checks screw-* | estimates, the SCARA’s | |
tool_turn.enabled | The tool’s turn about z: axis c, motor 4 | true | |
tool_turn.unit_kg | kg | What the plate carries for it: C motor with brake and its gearbox | 2.43, catalogue (1FK2103-2AH 1.55 kg, NRB060-03-8 0.88 kg) |
tool_turn.inertia_kgm2, payload_inertia_kgm2 | kg m² | Quill, flange and gripper about the tool’s axis; the payload’s, while held | 2e-3, 8.33e-3 (5 kg, 100 x 100 mm), estimates |
tool_turn.friction_coulomb_nm, friction_viscous_nm_s_rad, friction_smoothing_rad_s | The quill’s spline and bearings (effects.joint_friction) | 0.02, 1e-4, 0.01, estimates | |
axis.y.* | The plate’s limits along y | 3 m/s, 30 m/s², 2500 m/s³ | |
axis.x.max_acceleration_m_s2, axis.y.max_acceleration_m_s2 | m/s² | 30, not the D2’s 50: the plate carries 12.8 kg against the D2’s 6.4 kg; at 50 the arms’ gearboxes see 235 N m of their 192 N m | estimate |
axis.z.* | The stroke’s limits | 0.9 m/s (2700 r/min on the 20 mm lead), 15 m/s², 1000 m/s³, estimates | |
axis.c.* | The turn’s range and limits: no stops, the range is the controller’s | ±360°, 30 rad/s, 600 rad/s², 30000 rad/s³, the D4’s | |
[motor.3], [motor.4] | The Z and C motors over [motor] | 1FK2103-2AH at 400 V (catalogue), resistance and inductance estimates as the D4’s tool motor | |
[gearbox.3] | The Z motor’s coupling: ratio 1, nothing warms | estimates | |
[gearbox.4] | The turn’s gearbox | NRB060-03-8, ratio 8 (catalogue) | |
[drive.3], [drive.4] | The Z and C drives over [drive] | 1.95 N m peak, 0.59 rated (catalogue); velocity gain 0.0443 (Z, behind a speed filter of 1 ms of its own: behind the shared 0.1 ms the screw’s axial mode rang at the peak torque), 0.033 with 10 ms (C: with friction 18.8 dB of gain margin, without it 6.95 dB, where 0.0443 left 4.0 dB) | |
drive.velocity_kp_nm_s_rad, velocity_tn_s | The arms’ velocity loop | 0.33, 80 ms: the D2’s 0.25 and 30 ms leave arm 2 at 31° phase margin with the heavier plate | |
[ratings.3], [ratings.4] | The S210 6SL3210-5HE10-4UF0’s currents and braking resistor; the turn’s gearbox | catalogue |
Without effects.gravity the Z motor holds nothing either.
Linear delta
The linear delta’s config (machine-delta-linear/default.toml) has the tables every machine has as T and S have them: [sim], [parts], [motor], [gearbox] (here a coupling of ratio 1), [pulley], [hard_stop], [temperature], [thermal], [thermal_feedback], [drive], [ratings] (with the guide, pulley-bearing and tooth-load ratings of the EGC-80; no gearbox ratings), [profile], [bounds], [start], [[cycle.segment]], the belt’s [belt] keys the belt sections read (no tooth meshing or tooth jump), and the effects of the drives and the controller. It has no frame, idler, cable chain or process force. Its own keys:
[effects]: belt_stretch (off: the rigid reference model), belt_damping, belt_slack, belt_mass, belt_tooth_stiffness, belt_material_damping, guide_friction, load_dependent_friction (the guides’ levels follow their load across the rail at rest: the rods’ pull and, on an inclined column, the carriage’s weight across it), part_heating (the three guides warm with their loss, and the gearboxes where a config has some; off as shipped), thermal_feedback (each guide’s viscous friction and each gearbox’s efficiency follow its temperature; off as shipped), belt_pulley_conduction (with part_heating: each belt also gives heat to its two pulleys through the half wrap on each; on as shipped, which moves no figure while part_heating is off), motor_friction, gearbox_backlash, gearbox_efficiency, torque_ripple, temperature, hard_stops (the carriages’ stroke ends), holding_brake, as on the single axis; the shipped values as there, belt_tooth_stiffness, belt_material_damping and temperature off.
[geometry] (estimates, bounded but the stroke and the stop)
| Key | Unit | Meaning | Value |
|---|---|---|---|
column_radius_m | m | Centre of the frame to a carriage’s joint line, R | 0.52 |
plate_radius_m | m | Centre of the plate to a rod pair’s centre, r. The equations use e = R − r | 0.07 |
rod_m | m | Rod length, carriage joint to plate joint (the parallelogram’s centre line), L | 1.1 |
rod_spacing_m | m | Distance of the two rods of a pair; for the 3D view only | 0.08 |
rod_joint_along_m, rod_joint_outward_m, rod_joint_tangent_m | m | Where the rod pairs’ joints stand from the guide’s centre, along the column, outward (away from the axis) and tangentially. The pull’s moments about the guide’s centre are Mx (about the column), My (tangential axis), Mz (outward axis), signals carriage.<id>.guide_moment_x/y/z; with the ratings guide_moment_x_nm, _y_, _z_ they enter the equivalent load P = F + guide_max_load_n · Σ|M|/M_max, the guide’s load, its verdict and its friction’s load. 0: the force through the centre | 0, 0, 0, estimates (the EGC-80’s ball studs’ standoff is not in the sources) |
column_incline_deg | ° | The columns’ lean from the vertical, positive with their tops towards the axis, negative away from it; below 60° either way. The carriage’s place (carriage_top_m, stroke_m) is then its travel along the column, its joint standing at that times cos α; column_radius_m is measured at z = 0. Not an estimate: a choice of design, no bound | 0 (upright; Festo gives no angle for the EXPT) |
carriage_top_m | m | The carriages’ upper stop: their joints’ travel along the column from z = 0 (upright: the joints’ height) | 0.0 |
stroke_m | m | The carriages’ stroke below it | 0.7 |
pulley_radius_m | m | Drive pulley radius (EGC-80-TB: 90 mm per revolution) | 0.014324 |
span_min_m | m | Shortest free belt span between a carriage and either pulley | 0.1 |
[workspace]
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
radius_m | m | Radius of the working cylinder; also the x and y axis ranges ±radius | 0.475, catalogue (Festo EXPT-95: Ø950) |
top_z_m, bottom_z_m | m | Its top and bottom, the z axis range | −1.12, −1.22: 100 mm, catalogue (EXPT nominal height); where it hangs an estimate |
max_rod_angle_deg | ° | A target where a rod stands at a larger angle to its column (upright: from the vertical) is refused (error-delta-linear-rod-angle) | 60, estimate (the range needs up to 57.2) |
max_condition_number | – | A target whose Jacobian has a higher condition number is refused (error-delta-singularity) | 10, estimate (the range has up to 3.98) |
[mass] (estimates but the payload, bounded)
| Key | Unit | Meaning | Value |
|---|---|---|---|
carriage_kg | kg | A carriage (EGC-80 slide) with its ball studs | 1.3 |
rod_pair_kg | kg | A pair of rods with their ball cups | 0.35 |
rod_carriage_share | share | The share of a pair’s mass counted at its carriage, the rest at the plate (0 to 1) | 0.5 |
plate_kg | kg | The plate (front unit without rotary drive) | 0.8 |
payload_kg | kg | Payload, with effects.payload | 1.0, catalogue (EXPT rated load at the highest dynamics) |
[friction]: each carriage’s guide, the keys of the single axis’s [friction_x], its values. With load_dependent_friction a guide’s load is the one it carries while moving, solved with the carriages’ acceleration (the friction changes the acceleration that loads the guide; settled by rounds, each about 0.015 of the last); the load scales the bristles’ stiffness and damping with the levels, so the steady friction is the load factor times the levels plus the viscous part.
[belt] specific_heat_j_kg_k 1500 J/(kg K) and convection_w_m2_k 15 W/(m² K), estimates (polyurethane with steel cords; a moving belt in still air), bounded 1200 to 1800 and 8 to 25: with effects.part_heating each column’s belt is a thermal part heated by its damping loss (power.belt_<k>), its capacity the mass per metre (belt.mass_kg_m) times the loop’s length (the sections’ geometric length) times specific_heat_j_kg_k, its resistance to the air 1 / (h A) with A = 2 × ratings.belt_width_mm × the loop’s length (both sides): 0.126 kg, 189 J/K and 0.96 K/W at the shipped 1.8 m loop and 19.3 mm, a time constant of 3 minutes. With effects.belt_pulley_conduction (on as shipped) in parallel the conductance into its two pulleys through the half wrap on each, 2π r w k / (t/2) with belt.thickness_m 3 mm and thermal_conductivity_w_m_k 0.2 W/(m K), estimates (PU with steel cords, 0.17 to 0.25 for PU), bounded 2.5 to 3.5 mm and 0.15 to 0.3: 0.2316 W/K beside the air’s 1.0422 W/K, so 0.785 K/W and 148 s; the pulleys at the air’s temperature, the contact’s own resistance left out; thermal.belt_max_rise_k 60 K, estimate (polyurethane belts are rated to about 80 °C at 20 °C around). [thermal] (with effects.part_heating): guide_resistance_k_w 0.5 K/W, guide_time_constant_s 2400 s, guide_max_rise_k 40 K, estimates as the single axis’s guide (the heat goes into the rail and the column’s EGC-80 profile, about 0.35 m² at 10 W/(m² K), fin efficiency 0.6; about 5 kJ/K), bounded 0.25 to 1 K/W and 1200 to 4800 s; gearbox_resistance_k_w 1.5, gearbox_time_constant_s 1200, gearbox_max_rise_k 50 as the delta picker’s, read only where a config has a gearbox (ratio not 1), so not bounded.
[ratings] of the EGC-80-TB-KF (Festo, “Toothed belt axes EGC-TB-KF”, 2024/01):
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
pulley_max_torque_nm | N m | The axis’s driving torque (pulley-torque) | 5, catalogue (max. driving torque, page 12; the max. feed force 350 N is the same at the 28.65 mm pulley). Was 10, an estimate |
guide_max_load_n | N | Each guide’s highest load across the column (guide-load, per carriage) | 3050, catalogue (Fy max = Fz max for 5000 km, page 16) |
guide_dynamic_load_rating_n | N | C of the guide life L10 = (C / P)³ 50 km (guide-life, per carriage, at the carriage’s speed) | 14157, from the same figure: 3050 (5000 / 50)^(1/3); Festo’s 100 km figure (11236 N, page 17) gives 14156 |
pulley_bearing_load_rating_n | N | C of the bearing that takes the belt’s pull on the drive shaft (pulley-bearing-life) | 5000, estimate (Festo publishes neither bearing nor radial load; a 6002 of the pulley’s size has about 5.9 kN), bounded 3000 to 10000 |
belt_tooth_load_rpm, belt_tooth_load_n_cm | r/min, N/cm | The belt’s specific tooth load (belt-tooth-load) | [0, 3333], [15.1, 15.1], estimate: what gives Festo’s 350 N with 12 teeth in mesh on the 19.3 mm belt, 350 / (1.93 · 12), up to the axis’s 5 m/s |
belt_width_mm | mm | Belt width | 19.3, catalogue (page 13) |
belt_service_factor | – | Factor on the effective pull | 1.0, estimate (Festo’s 350 N is already the limit), bounded 1.0 to 1.4 |
belt_teeth_in_mesh | – | Teeth in mesh on the drive pulley (the method counts at most 12) | 15, half the 30-tooth pulley (90 mm / 3 mm pitch) |
The guide’s moments (Mx, My, Mz) are not judged.
L’s values of the shared tables: motor 1FK2205-2AF at 400 V with brake (catalogue: rotor 4.0 kg cm², 1.241379 N m/A, 10.8 N m peak, 3.0 N m rated at 3000 r/min, 9.5 A and 2.5 A; R, L, thermal time constant and brake torque estimates; the High Dynamic 1FK2104-5AF, 0.65 kg cm², left the velocity loop ringing near 450 Hz against about 6 kg cm² of load), a coupling of ratio 1 (3000 N m/rad, estimate as the EXCT-30’s), converter 6SL3210-5HE11-0UF0 (3 A, 10.9 A; its internal braking resistor 50 W, 3 kW, 820 V), belt EA 6e5 N and 300 N pretension (estimates as the EXCT-30’s), settling_tolerance_m 0.5 mm (catalogue: EXPT positioning accuracy), belt_max_tension_n 1000, pulley_max_torque_nm 5 (catalogue, EGC-80) and shaft_max_radial_load_n 1500 (estimate), ratings.max_condition_number 5, the velocity loop 0.25 N m s/rad, 0.012 s with 0.2 ms filters (tuned with sim-cli margins delta-linear --bands). Its cycle is the D3’s Adept cycle 25/305/25 mm at the top of the range; start.pose above the place position.
Delta picker D4
The D4’s config (machine-delta-d4/default.toml) has the D3’s tables and keys with the D3’s values, but for the arms’ gearbox.backlash_rad (8.727e-4, 3 arcmin, estimate, bounded 2 to 4 arcmin: a reduced-backlash precision planetary; the NRB080-05-20’s 9 arcmin fail settling, 1.21 mm with the tool’s 10). The tool pose, start.pose and the cycle’s targets are (x, y, z, c), c in rad. These keys are its own:
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
effects.shaft_mass | – | The shaft’s weight share at the platform (on the arms) and its spin inertia at the tool | on |
effects.shaft_torsion | – | The shaft twists in series with the tool’s gearbox (with joint_elasticity) | on |
effects.tool_gearbox_body | – | The tool gearbox’s output is a body of its own, tool.gearbox_output_inertia_kgm2, between the gearbox’s spring and the shaft’s (two more states; needs joint_elasticity and shaft_torsion, else ignored): the gearbox’s own motion (1.5 kHz, overdamped by its 5 N m s/rad) next to the tool’s 41 Hz, the gearbox keeping its own damping; the body’s J / ratio² leaves the inertia at the input. Off: the two springs are one in series (with gearbox_lost_motion the shaft stretches over the band too) | off |
effects.telescope_friction | – | The telescope’s sliding friction along the shaft, a force on the platform that the arms take | on |
axis.c.min_angle_deg, max_angle_deg | ° | The controller’s range of the tool’s turn (the machine has no stops) | −360, 360, choice |
axis.c.max_velocity_rad_s, max_acceleration_rad_s2, max_jerk_rad_s3 | rad/s, rad/s², rad/s³ | The turn’s limits | 30, 600, 30000, estimates (ABB publishes none; 30 rad/s is the motor’s 240 rad/s behind ratio 8) |
motor.4.rotor_inertia_kgm2, torque_constant_nm_a, rated_current_a, thermal_time_constant_s, max_current_a, torque_constant_at_max_current_nm_a | The tool turn’s motor over [motor] | 3.5e-5, 1.0672269, 1.19, 1980, 4.2, 0.8928571, catalogue (Siemens 1FK2104-4AF at 400 V) | |
motor.4.resistance_ohm, inductance_h | Ω, H | Its winding | 6, 0.03, estimates (L/R 5 ms as the arms’), the resistance bounded 4 to 9 |
motor.4.friction_coulomb_nm, friction_viscous_nm_s_rad | N m, N m s/rad | Its bearings’ friction (effects.motor_friction) | 0.02, 8e-5, estimates (1.5 % of the static torque), bounded 0.01 to 0.04 and 4e-5 to 1.6e-4 |
motor.4.brake_torque_nm | N m | Its brake | 2, estimate |
gearbox.4.ratio, efficiency, stiffness_nm_rad, inertia_at_input_kgm2 | The tool’s gearbox over [gearbox] | 8, 0.97, 8250.592, 8.8e-6, catalogue (Siemens NRB060-04-8) | |
gearbox.4.backlash_rad | rad | Its backlash | 2.909e-4 (1 arcmin), estimate, bounded 0.5 to 2 arcmin (catalogue: 10 arcmin) |
gearbox.4.damping_nm_s_rad | N m s/rad | Its damping (replaced by the shaft’s with shaft_torsion) | 5, estimate, bounded 2 to 10 |
drive.4.peak_torque_nm, rated_torque_nm, rated_speed_rad_s, no_load_speed_rad_s | Its drive over [drive] | 3.75, 1.27, 314.159, 619.7016, catalogue (1FK2104-4AF; no-load speed √(3/2) · 540 V / kt) | |
drive.4.velocity_kp_nm_s_rad, velocity_tn_s, kv_1_s, current_kp_v_a | Its loops | 0.05, 0.02, 80, 120: tuned with sim-cli margins delta-d4 --bands (at least 45.9°, 8.92 dB, 26 November 2026; the 0.081 catalog::with_motor_part retunes to keeps 34.6°, 5.4 dB), the shorter integral time and higher position gain for settling; the current loop’s L over 0.25 ms as the shared | |
ratings.4.gearbox_rated_torque_nm, gearbox_max_torque_nm | N m | The tool gearbox’s limits, judged by the common gearbox-* checks of motor 4 | 18, 29, catalogue (NRB060-04-8) |
ratings.4.gearbox_reference_speed_rpm | r/min | Its planet bearings’ reference speed (gearbox-life) | 110, estimate (NRB060 ratio 5’s 175 r/min scaled to ratio 8) |
ratings.4.drive_rated_current_a, drive_max_current_a, braking_resistor_continuous_w, braking_resistor_peak_w | A, W | Its S210 converter | 1.2, 4.2, 50, 1200, catalogue (6SL3210-5HE10-4UF0) |
ratings.4.drive_base_load_current_a | A | Its base load current (effects.drive_overload) | 1.02, estimate (0.85 of rated), bounded 0.95 to 1.08 |
tool.inertia_kgm2 | kg m² | Flange and gripper about the tool’s axis | 2e-3, estimate, bounded 1e-3 to 4e-3 |
tool.payload_inertia_kgm2 | kg m² | The payload about the tool’s axis (with effects.payload) | 5e-3, estimate (3 kg, 100 × 100 mm), bounded 2.5e-3 to 1e-2 |
tool.friction_coulomb_nm, friction_viscous_nm_s_rad, friction_smoothing_rad_s | The tool bearing’s friction (effects.joint_friction) | 0.02, 1e-4, 0.01, estimates; the first two bounded | |
tool.gearbox_output_inertia_kgm2 | kg m² | The tool gearbox’s output (planet carrier and flange: a steel disc of 50 mm × 15 mm, m r²/2 = 7.2e-5, and the carrier), with effects.tool_gearbox_body; a share of gearbox.4.inertia_at_input_kgm2, refused above ratio² times it | 1e-4, estimate, bounded 7.2e-5 (the disc alone) to 2e-4 |
shaft.upper_joint_z_m | m | Height of the upper cardan joint on the base’s axis | 0, estimate, bounded ±0.05 |
shaft.lower_joint_offset_m | m | The lower cardan joint above the platform’s centre | 0.05, estimate, bounded 0.03 to 0.08 |
shaft.min_length_m, max_length_m | m | Shortest and longest the telescope can be; beyond: error-delta-shaft-stroke | 0.6, 1.1, estimates, bounded |
shaft.max_cardan_angle_deg | ° | Largest bend of a cardan joint; beyond: error-delta-cardan-angle | 45, estimate, bounded 40 to 50 |
shaft.mass_kg, platform_share | kg, – | The shaft’s mass and the share of it the platform carries | 1.4, 0.5, estimates, bounded |
shaft.spin_inertia_kgm2 | kg m² | Tube, shaft and joints about the shaft’s axis, at the tool | 8e-5, estimate, bounded |
shaft.torsional_stiffness_nm_rad, torsional_damping_nm_s_rad | N m/rad, N m s/rad | The shaft’s twist (effects.shaft_torsion) | 500, 0.075, estimates, bounded 250 to 1000 and 0.03 to 0.2 |
shaft.slide_friction_n, slide_friction_viscous_n_s_m, slide_friction_smoothing_m_s | N, N s/m, m/s | The telescope’s sliding friction (effects.telescope_friction) | 5, 2, 0.005, estimates; the first two bounded |
The fourth motor has tables of its own, [motor.4], [gearbox.4], [drive.4], [ratings.4], over the shared ones as in a machine file (catalog::motor_config): its joint, its drive and its verdicts read them, and sim-cli search delta-d4 --motor-id 4 sizes it alone. A key left out is the shared one. The arms share [motor] and [gearbox] unless an arm has tables of its own: [motor.1] to [motor.3], [gearbox.1] to [gearbox.3] and [parts.1] to [parts.3] over the shared ones (a key left out is the shared one), each arm’s joint and modes taking its own. Until 14 November the fourth motor was the arms’ 1FK2105-4AF with their drive, judged against their gearbox’s ratings, and [tool_gearbox] with ratings.tool_gearbox_max_torque_nm (check tool-gearbox-peak) stood for its gearbox; a config with those keys now fails as having unknown keys: rename [tool_gearbox] to [gearbox.4] and the rating to ratings.4.gearbox_max_torque_nm.
Quattro-type delta H4
The H4’s config (machine-delta-h4/default.toml) follows the D3’s section by
section: [geometry] (with plate_radius_m for the D3’s platform_radius_m), [workspace], [mass], [joint],
[motor], [gearbox], [thermal], [thermal_feedback], [axis.x] to [axis.z], [drive], [ratings],
[profile], [bounds], [start] and the Adept cycle, with its own values: four arms of 500 mm, forearms of 1100 mm,
working range 1300 mm across, 250 mm high at the edge and 450 mm at the centre (top 750 mm below the shoulders), 6 kg
payload; motor 1FK2105-6AF at 400 V (catalogue: rotor 2.7 kg cm², 1.19403 N m/A, 24 N m peak, 6.6 N m rated, 5.6 A
rated, 24 A maximum), gearbox NRB120-05-20 (catalogue: ratio 20, 96 %, 75630 N m/rad, 1.57 kg cm², 260 N m rated,
416 N m maximum; backlash 3 arcmin, an estimate for a reduced-backlash planetary, bounded 2 to 4 arcmin), converter
6SL3210-5HE12-0UF0 (7 A, 24 A; its internal braking resistor 100 W, 6 kW), the velocity loop 0.5 N m s/rad, 0.03 s
with 0.1 ms filters (tuned with sim-cli margins delta-h4 --bands: at least 46.4°, 8.88 dB). Its upper arms bend as the D3’s do with
effects.arm_bending (off as shipped, [upper_arm]). The tool pose, start.pose and the cycle’s targets are
(x, y, z, c), c in rad. These keys are its own:
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
effects.amplifier_compliance | – | The tool turns on the amplifier’s spring (rack, pinion and gear stage twist), a body of its own; off, it turns with the slide times the ratio | on |
effects.amplifier_backlash | – | With amplifier_compliance: the amplifier’s play at the tool, a dead band in its spring | on |
effects.arm_bending | – | The upper arms bend as the D3’s do with link_elasticity: in the plane they turn in, the elbow turns against the arm’s root on a spring k_b = 3 E I / L_a and damper; out of it, the elbow moves along its axis on the tube’s lateral spring k_l = 3 E I / L_a³ and damper, E I from the tube’s keys. The tube stays with the root, the elbow block and the forearms’ share move with the elbow; the plate rings after a move | off |
effects.arm_tube_inertia | – | With arm_bending: the tube’s own share of the bending modes in a cantilever’s static deflection shape, the mode consistent with the springs, its tube as much of mass.upper_arm_kg as upper_arm_inertia_kgm2 allows a uniform tube (the rest a hub on the axis): 33/140 of its mass, 33/140 m L_a² of its inertia and 3/8 m L_a of its first moment move with the elbow, the cross term 11/40 m L_a² θ’ δ’ of its kinetic energy joins the root to the elbow; out of the plane 33/140 of its mass moves with the elbow, and the elbow block twists by 1.5 y / L_a (mass.elbow_twist_inertia_kgm2 and the forearms’ share at the rods’ ends) | off |
mass.elbow_twist_inertia_kgm2 | kg m² | With effects.arm_tube_inertia: the elbow block’s inertia about the arm’s normal through it. The 0.35 kg block, 0.1 m across: m w² / 12 = 2.9e-4; bounds 1.5e-4 to 6e-4 | 2.9e-4, estimate |
upper_arm.tube_outer_diameter_m, tube_wall_m, youngs_modulus_pa | m, m, Pa | With effects.arm_bending: the arm tube, round: I = π (D⁴ − (D − 2 s)⁴) / 64, k_b = 3 E I / L_a, k_l = 3 E I / L_a³. A carbon tube 60 × 2.5 mm, E 100 GPa (the class’s 6 kg payload on a 0.5 m arm): E I = 18699 N m², k_b = 112195 N m/rad, k_l = 448781 N/m; bounds 50 to 70 mm, 2 to 3 mm, 70 to 135 GPa; a wall over half the diameter is refused | 0.06, 0.0025, 1e11, estimates |
upper_arm.bending_damping_nm_s_rad | N m s/rad | Its damping in the plane: 2 % of critical at the plate’s sideways bending mode with the roots held (33.3 Hz at the centre 950 mm down); bounds 8 to 42 | 21.0, estimate |
upper_arm.lateral_damping_n_s_m | N s/m | Its damping out of the plane, about 2 % of critical with the elbow’s share of mass (0.58 kg with the rods’ middles, 139.6 Hz); bounds 8 to 40 | 20.0, estimate |
geometry.plate_radius_m | m | From a plate part’s centre to each of its two forearm pairs (both parts alike) | 0.07, estimate, bounded 0.06 to 0.08 |
mass.plate_part_kg | kg | Each of the two plate parts, without the forearms’ share | 0.7, estimate, bounded 0.5 to 1.0 |
mass.carriage_kg | kg | The carriage between the parts at the tool’s point: pinion, gear stage, flange | 1.0, estimate, bounded 0.7 to 1.4 |
plate.pinion_radius_m | m | Pitch radius of the pinion between the two racks; the tool turns by gear_ratio h / pinion_radius_m | 0.04, estimate, bounded 0.038 to 0.042 |
plate.gear_ratio | – | The gear stage between the pinion and the tool | 1.2, estimate, bounded 1.1 to 1.3 (30 rad/m with the pinion: ±180° are h = ±104.7 mm) |
plate.amplifier_stiffness_nm_rad, amplifier_damping_nm_s_rad | N m/rad, N m s/rad | The amplifier’s twist at the tool (effects.amplifier_compliance): the tool and payload ring at 76.5 Hz on it, 159 Hz without the payload | 3000, 0.25 (2 % of critical), estimates, bounded 1500 to 6000 and 0.1 to 0.5 |
plate.amplifier_backlash_rad | rad | The amplifier’s play at the tool (effects.amplifier_backlash) | 2.909e-4 (1 arcmin), estimate, bounded 0.5 to 2 arcmin |
tool.inertia_kgm2 | kg m² | Flange, gripper and the gear stage, about the tool’s axis | 3e-3, estimate, bounded 1.5e-3 to 6e-3 |
tool.payload_inertia_kgm2 | kg m² | The payload about the tool’s axis (with effects.payload) | 1e-2, estimate (6 kg, 100 × 100 mm), bounded 5e-3 to 2e-2 |
axis.c.min_angle_deg, max_angle_deg | ° | The tool’s turn: the controller’s range, and so the plate’s slide | −180, 180, estimate |
axis.c.max_velocity_rad_s, max_acceleration_rad_s2, max_jerk_rad_s3 | rad/s, rad/s², rad/s³ | The turn’s limits | 30, 300, 15000, estimates |
The ratio kappa = gear_ratio / pinion_radius_m is a trade: the tool’s inertia counts in the slide times kappa², and
the arms’ twist and backlash count in the turn times kappa. At 60 rad/m (pinion 25 mm, stage 1.5, the first choice) the
slide weighed 47 kg and the drives’ loops, tuned for the rotors, let a turn of 1.5 rad overshoot by 0.27 rad and ring at
6 Hz, growing; at 30 rad/m it settles in about 0.3 s.
Arms (six-axis arm, SCARA, palletiser, arm on a track)
The configs of urdf-arm (config/arm.toml), scara
(config/scara.toml), palletiser
(config/palletiser.toml) and arm-on-track
(config/arm-on-track.toml) have these keys. The arm, the SCARA
and the arm on its track are shipped with tool space off, so the axes are the joints as before; the palletiser with it
on. config/arm-on-track-tool.toml is the arm on its track
in tool space.
config/scara-tool.toml and
config/arm-tool.toml are the same configs with it on, a start pose
and a cycle of straight lines in tool space (and their settling tolerances for the place and the turn of the tool);
config/arm5-tool.toml and
config/arm7-tool.toml the five-axis and the seven-axis example arm
in tool space. See mechanisms.
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
arm.urdf_file | – | The chain’s bodies, joints, masses and inertias: a path to a URDF file (no xacro), or "builtin:six-axis", "builtin:scara", "builtin:five-axis", "builtin:seven-axis", "builtin:palletiser", "builtin:arm-on-track" for the files in crates/machine-joint-kit/urdf/; a file that cannot be read is refused | arm and arm-tool six-axis; SCARA scara; palletiser palletiser; arm on a track arm-on-track; arm5-tool five-axis; arm7-tool seven-axis; choice |
kinematics.redundancy | – | In tool space with the numerical inverse (not the SCARA’s closed form): what a redundant arm (one joint more than tool axes) spends its spare joint on. "home" keeps the joints nearest kinematics.home_joints; "joint_limits" nearest the middles of their ranges, each joint’s offset weighed by (narrowest range / its range)², off their stops. Another value is refused | "home" in all that have it (the arm, the palletiser, the arm on a track and the tool-space configs; not the SCARA’s); choice |
arm.payload_inertia_kgm2 | kg m² | The payload’s inertia about its centre in the URDF’s tip frame: xx, yy, zz, xy, xz, yz. With effects.payload | arm 0.03125, 0.01625, 0.025 (a 6 kg box of 0.1 x 0.2 x 0.15 m); SCARA 0.004375, 0.004375, 0.00375 (3 kg, 0.1 m across and high); palletiser 0.41667, 0.75, 0.86667 (a 20 kg carton of 0.6 x 0.4 x 0.3 m); estimates |
arm.joint_coupling | – | The URDF’s joints as sums of the motors’ joints, one row per URDF joint, one factor per motor (a parallelogram); [] one motor per URDF joint | []; palletiser rows (1,0,0,0), (0,1,0,0), (0,−1,1,0), (0,0,−1,0), (0,0,0,1): its geometry, choice |
arm.bars_on, arm.bars_turns_with, arm.bars_pin_m, arm.bars_mass_kg, arm.bars_com_m, arm.bars_inertia_kgm2 | –, –, m, kg, m, kg m² | Optional: the parallelogram’s bars (or any rigid piece the URDF leaves out) as bodies of their own. Bar i is pinned on the link of the URDF joint bars_on[i] (1-based) at bars_pin_m (x, y, z in that link’s frame, three per bar; empty: its origin) and stays parallel to the link of bars_turns_with[i], turning with it (empty: with the link it is pinned on, a rigid piece of that link, merged into it); its points move at the pin’s speed plus that link’s turn (a palletiser’s rod: pinned on the forearm’s lever, parallel to the upper arm). Its mass, its centre from the pin (x, y, z) and its inertia about its centre (xx, yy, zz, xy, xz, yz, six per bar; the array may be empty: 0), both in the frame of the link it turns with. With effects.link_bending a bar pinned before a bent link that turns with a body beyond it holds that body’s turn against the link’s bend in its plane (see the model reference). All empty: no bars | palletiser: the crank and the rod of its forearm’s parallelogram ([1, 3], [3, 2], 6 and 8 kg), estimates; the other arms [] |
arm.bars_axial_stiffness_n_m, arm.bars_carries | N/m, – | With effects.bar_elasticity (off as shipped; a config without it has it off): each bar’s axial stiffness k (0: rigid) and the motor joint (1-based, 0: none) whose turn it carries on the lever c of its pin’s distance from its link’s joint: k c² in series with that joint’s gearbox, K = 1 / (1 / k_g + 1 / (k c²)), in the dynamics, the held modes and the planner’s trains (the gearbox’s damper and a stiffness curve’s upper segments unchanged) | palletiser: 0 and 2.14e8 (the rod a 1 m steel tube of 8 kg), 0 and 3; estimate |
arm.bars_axial_damping_n_s_m | N s/m | With effects.bar_rocking: each bar’s axial damper c_a, c_a c² on the rocking (the one bar with an axial stiffness is the rod; it needs a crank, a bar pinned before the forearm that turns with it). Without the switch not read | palletiser: 0 and 7.35e3 (1 % of critical with the crank held); the other arms []; estimate |
arm.four_bar_ground_on, four_bar_ground_pin_m, four_bar_crank_on, four_bar_crank_pin_m, four_bar_normal, four_bar_lengths_m, four_bar_masses_kg, four_bar_branch | –, m, –, m, –, m, kg, – | A planar four-bar the URDF leaves out: the follower’s pivot on a link (1-based; 0: none), the crank point on another, the loop’s plane’s normal in the pivot’s link’s frame, the coupler’s and the follower’s lengths and masses (uniform rods), the loop’s branch (±1). The loop’s point from its closure, its rates from the loop’s Jacobian; with effects.link_bending its pins move with the modes (a loop at a dead point at zero joints refused there) | 0 (none) in every config |
worm.motor_axis | – | With table.gear = "worm": the worm motor’s axis (x, y, z, fixed to the base, across the table’s axis z, any length but 0), the one its rotor’s spin (the frame’s momentum) is about; a planetary gear’s rotor spins about z with the table, a strain wave gear’s against it | x (1, 0, 0), an estimate |
arm.payload_swing_stiffness_nm_rad, arm.payload_swing_damping_nm_s_rad | N m/rad, N m s/rad | With effects.payload_swing: the spring and damper per axis of the payload’s pivot at the flange | arm and SCARA 20, 0.5 (bounds 10 to 40, 0.2 to 1); palletiser 120, 3 (60 to 240, 1 to 6, its carton at 1.6 to 1.8 Hz); estimates |
kinematics.tool_space | – | On: the axes are the flange’s pose (kinematics.tool_axes), start.pose and the cycle’s targets too; off: the motors’ joints | arm, SCARA off; palletiser on; choice |
kinematics.tool_axes | – | Of “x”, “y”, “z”, “rx”, “ry”, “rz” in that order: the tool’s axes, as many as motors or one fewer (redundant); “j1” ahead of them makes the first joint’s position an axis of its own (a track: mechanisms). [“x”, “y”, “z”, “rz”] on a SCARA chain is its closed form with the axis c | arm all six; SCARA x, y, z, rz; palletiser x, y, z, rz; five-axis x, y, z, rx, ry; arm on a track “j1” and all six; choice |
kinematics.elbow | – | SCARA only: “right” (joint 2 counter-clockwise from the stretched arm) or “left” | “right”, choice |
kinematics.home_joints | rad | Numerical inverse only: the joint pose whose branch the inverse keeps, which the solver starts from where the last solution does not get there, and which a redundant arm stays nearest | arm 0, 0.4, 0.2, 0, 0.97, 0 (flange 0.99 m out, 0.83 m up, pointing down); palletiser 0, 0.2, 0.3, 0; choice |
workspace.tool_min, tool_max | m, rad | In tool space: each axis’s range, x, y, z in m, the turns in rad (from the flange’s orientation at zero joints); poses in it out of reach or beyond a joint’s stop are refused | SCARA 0.15 to 0.6, −0.45 to 0.45, 0 to 0.2, −3 to 3; arm 0.5 to 1.2, −0.6 to 0.6, 0.3 to 1.1, then −0.6 to 0.6, 0.97 to 2.17, −0.6 to 0.6 (pointing down ±0.6 rad); palletiser 1 to 1.8, −0.7 to 0.7, 0.6 to 1.6, −1.7 to 1.7; choice |
workspace.max_condition_number | – | In tool space: a target whose Jacobian has a higher condition number is refused (error-arm-singularity); SCARA: of d(x, y)/d(joints 1, 2); others: of the tool’s axes, the turns times the flange’s distance from joint 2 at the home; also the warm-started inverse’s guard | SCARA 25 (11° of elbow), arm 30, palletiser 30, estimates (design rules) |
axis.x, axis.y, axis.z: max_velocity_m_s, max_acceleration_m_s2, max_jerk_m_s3 | m/s, m/s², m/s³ | In tool space: the flange’s limits along each axis | SCARA 1, 5, 200 (z 0.8, 8, 400); arm 0.9, 4, 80; palletiser 1.2, 4, 40; estimates |
axis.c (SCARA), axis.rx, axis.ry, axis.rz: max_velocity_rad_s, max_acceleration_rad_s2, max_jerk_rad_s3 | rad/s, rad/s², rad/s³ | In tool space: the turn’s limits | SCARA 4, 30, 1000; arm 1.5, 8, 150 (2 rad/s with every axis at its limit asked 373 rad/s of a motor); palletiser rz 2.5, 10, 100; estimates |
axis.j7 | rad/s, … | Read only where the URDF has a seventh joint | 3, 20, 400, estimate |
track.block_spacing_m, track.rail_spacing_m | m | [track]: the first joint is a carriage on four guide blocks, this far apart along the rails and the rails this far apart; their load from the chain’s reaction at that joint, the most loaded block’s times four (axis.j1.guide_load, the guide verdicts with ratings.guide_max_load_n and guide_dynamic_load_rating_n). Only where the first joint slides along its frame’s x | arm on a track 0.4, 0.5 (bounds 0.3 to 0.5, 0.4 to 0.6), estimates |
track.rack_side, track.rack_lever_m | 1, m | Which side of the carriage’s centre line the rack is on (+1 or -1 along the carriage’s y) and how far its line is from it. The helical pinion’s separating force loads the blocks’ F_y by rack_side times that force; the drive’s push F_x at the lever adds rack_side · rack_lever_m · F_x to the yaw moment M_z on the blocks. A config without them has +1 and 0, as the loads were counted before | arm on a track +1, 0, estimates |
[rack], [slide] in an arm’s config | – | A prismatic joint runs on a pinion on the [rack] (as the rack axis’s) behind its own gearbox, ratio arm.gear_ratios’, with the [slide] friction and stops; without [rack], on the [screw]. ratings.shaft_max_radial_load_n judges the pinion’s radial load on the gearbox shaft | arm on a track: the rack axis’s rack and guides, 4 m stroke; 2500 N, estimate |
[motor.<k>], [drive.<k>], [gearbox.<k>], [strain_wave.<k>], [ratings.<k>], [parts.<k>] | – | A joint’s own motor, drive, gear and ratings over the shared tables, k = 1, 2, … (see a motor’s own tables) | arm: joints 4 to 6 the 1FK2104-5AF on a 6SL3210-5HE10-8UF0 (catalogue), a size-20 strain wave gear (25000 N m/rad, 40 N m rated, 49 and 76 N m ratings; estimates); SCARA: joints 3 and 4 the 1FK2104-5AF; palletiser: joints 1 to 3 the 1FK2106-4AF on a 6SL3210-5HE15-0UF0, the flange the 1FK2104-5AF |
These are choices and design rules, not properties of a part, so they have no [bounds] (the swing’s spring and damper
have theirs).
effects.link_bending (in all joint kit configs, acting on the arms only, the slides and the table refuse it on, as do the
crank-cam machines and the mover track, which have the key too; off as shipped) and [link_bending] (in the
arms’ configs): each link from its joint to the next joint (the flange after the last) bends as a cantilever, in the
plane its joint turns it in; its own URDF mass spread along it, everything beyond at its tip. One-way each bend has two
modes, a Ritz pair over the static shapes under a tip force and a tip moment (its first within 0.48 % of the exact
beam’s frequency, the static sag exact); two-way the exact first mode alone. Signals link.<n>.bend (m, the first
mode’s tip deflection), link.<n>.bend_2 (one-way, the second mode’s coordinate), link.<n>.bend_static and link.<n>.bend_across_static (two-way, the tip’s static deflection beside the first mode’s, in and across the joint’s plane), link.<n>.bend_across,
link.<n>.bend_across_2 (m) and link.<n>.twist (rad) for the other directions. Estimates: cast aluminium. effects.link_bending_reaction (in the same configs, off as shipped;
acts only with effects.link_bending): the bending acts back on the joints, joints, gearboxes and links one coupled
system, the bending’s energy and its damping (power.link_bending) in the machine’s; off, the bending is one-way.
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
outer_diameter_m | m | Per joint, the link as a round tube: its outer diameter; 0 keeps the link rigid. A link along its joint’s axis (the arm’s base column) does not bend in that plane | arm 0, 0.14, 0.12, 0.1, 0.08, 0; SCARA 0.12, 0.1, 0, 0; estimates |
wall_m | m | Per joint, the tube’s wall | arm 0, 0.008, 0.008, 0.006, 0.005, 0; SCARA 0.008, 0.006, 0, 0; estimates |
youngs_modulus_pa | Pa | E of all links: cast aluminium 7e10; bounds 6.5e10 to 7.2e10 | 7.0e10, estimate |
damping_ratio | – | Of every link’s mode; bounds 0.01 to 0.05 | 0.02, estimate |
directions | – | The directions each link deflects in, each its first mode: in_plane (bending in the plane its joint turns it in), out_of_plane (bending across that plane), torsion (twisted about its length) | ["in_plane"] |
shear_modulus_pa | Pa | G of all links, read with torsion: cast aluminium 2.6e10; bounds 2.4e10 to 2.7e10 | 2.6e10, estimate |
Slider-crank, rotary knife, flying saw, disc cam (machine-crank-cam)
Beside each machine’s config in crates/machine-crank-cam/config/ lies <id>-cam.toml, the same config (common.toml
and the machine’s file) with cam.run = true and nothing else changed (a test keeps it so): a whole config that runs
the cam as its cycle, sim-cli verdicts <id> --config crates/machine-crank-cam/config/<id>-cam.toml.
What the seven machines of machine-crank-cam (slider-crank, rotary knife, flying saw, disc cam, toggle press, Geneva
drive, cam indexer) read beside [motor], [gearbox], [drive], [ratings] and the rest (the
crank and the knife a [joint] as the rotary table’s, the saw a [slide] and [rack] as the rack axis’s). Formulas in
mechanisms. effects.process_force switches the press force and the
cuts (on in all three); effects.frame_stretch (in the crate’s common.toml, read by the toggle press alone, on) the
press frame’s stretch under the press force.
| Key | Unit | Meaning | Mark |
|---|---|---|---|
crank.radius_m, rod.length_m | m | Crank radius r and rod length l (l > r) | [estimate] |
crank.inertia_kgm2 | kg m² | The crank disc and shaft about their axis | [estimate], [bounds] |
crank.motion | – | With cam.run: "constant" (one turn per stroke at constant speed) or "cam" ([[cam.segment]] or cam.table_file) | choice |
crank.strokes_per_min | 1/min | The master’s speed with cam.run: master periods per minute | choice |
rod.mass_kg, rod.crank_end_share | kg, – | The rod’s mass and the share of it at the crank pin (0 to 1); the rest moves with the slider | [estimate], [bounds] |
slider.mass_kg | kg | The slider (ram) | [estimate], [bounds] |
slider.incline_deg | ° | The guide from the crank towards the slider against the horizontal, −90 to 90 (−90: a ram below the crank) | choice |
mass.payload_kg | kg | With effects.payload: the die on the ram, the knife bars at the knife’s radius, the saw on the carriage | [estimate], [bounds] |
process.distance_m, process.force_n | m, N | The press force over the ram’s distance from the bottom dead centre, linear between the points, 0 outside them | [estimate] |
process.smoothing_m_s | m/s | The press force fades in between this ram speed and twice it | choice |
ratings.rod_max_force_n, ratings.slider_guide_max_load_n, ratings.crank_bearing_max_load_n | N | The verdicts rod-force, slider-guide-load, crank-bearing-load | [estimate] |
knife.radius_m, knife.inertia_kgm2, knife.knives | m, kg m², – | Knife radius (the blade’s tip), the roll’s inertia, blades on the roll (a whole number) | [estimate], inertia [bounds] |
knife.sync_angle_deg | ° | The synchronous zone ± about each cut (2 × it below the blade pitch) | choice |
knife.format_length_m | m | Web per cut (more than the zone, 2 R α) | choice |
knife.transition_law, saw.return_law | – | "3-4-5", "4-5-6-7", "cycloid" or "harmonic" | choice |
web.speed_m_s, material.speed_m_s | m/s | The master’s speed with cam.run | choice |
cut.angle_deg, cut.force_n (knife) | °, N | The cut’s force at the blade’s tip over the angle from the cut | [estimate] |
cut.position_m, cut.force_n (saw) | m, N | The cut’s force on the carriage along the material over the way into the window | [estimate] |
saw.home_m | m | Where the carriage waits; home + stroke within slide.stroke_m | choice |
saw.cut_length_m, saw.cut_window_m | m | Material per cut, and the window the carriage runs with it while cutting; L > 2 v² / a + W | choice |
saw.sync_acceleration_m_s2 | m/s² | The mean acceleration to the material’s speed (peak 1.5 times it) | choice |
cam.run | true/false | The controller runs the cam as the cycle instead of [[cycle.segment]]. Off in the shipped configs | choice |
joint.stop_min_deg, joint.stop_max_deg | ° | Optional, on the crank, the knife, the disc cam and the indexers, whose joint turns on and has no stops of its own (joint.min_angle_deg, max_angle_deg are the axis range the cycle and paths use; a cam runs the joint on past it and ramps it down there when taken away): end stops (effects.hard_stops, joint.stop_stiffness_nm_rad, stop_damping_nm_s_rad) at these angles, either alone; absent, none | choice |
indexer.stations (Geneva drive, cam indexer) | – | The table’s stations n, a whole number (at least 3 on the Geneva drive, 2 on the cam indexer): one index of 2π / n per turn of the driver | 6 in both, [estimate] |
indexer.crank_radius_m (Geneva drive) | m | The crank’s radius a to its pin; the wheel’s centre distance C = a / sin(π / n). The index runs over (n − 2) / (2 n) of the driver’s turn | 0.06, [estimate] |
indexer.index_angle_deg (cam indexer) | ° | The cam’s turn over which it moves the turret by the modified sine (VDI 2143), below 360; it holds the turret by its dwell ridge over the rest | 120, [estimate] |
indexer.roller_pitch_radius_m (cam indexer) | m | The turret’s rollers’ pitch radius r_p: the contact force along the turret’s tangent is the wheel’s torque over it | 0.08, [estimate] |
indexer.driver_inertia_kgm2 | kg m² | The driver about its axis: the Geneva’s crank with its pin and locking disc, the indexer’s cam | Geneva 0.01 (bounds 0.008 to 0.012), cam 0.012 (0.01 to 0.014), [estimate] |
indexer.wheel_inertia_kgm2 | kg m² | The Geneva wheel or the turret with its rollers; it turns with the table’s angle φ(θ), and the locking disc or the cam holds it in the dwell | Geneva 0.03 (bounds 0.025 to 0.035), cam 0.02 (0.015 to 0.025), [estimate] |
indexer.locking_play_rad | rad | At least 0: the locking disc’s (the dwell ridge’s) play against the wheel; the index error in the dwell is half of it at table.station_radius_m (table.index_error) | Geneva 2e-4 (bounds 1e-4 to 3e-4), cam 5e-5 (2e-5 to 1e-4), [estimate] |
indexer.turns_per_min | 1/min | The driver’s speed with cam.run (one turn, one index, per master period) | 60 in both, choice |
table.inertia_kgm2 (indexers) | kg m² | The table with its fixtures, the parts apart | 0.4 (bounds 0.3 to 0.5), [estimate] |
table.station_radius_m (indexers) | m | Where the parts (mass.payload_kg, 3 kg: six of 0.5 kg; bounds 2 to 4) sit; the radius the index error and the settling tolerance are measured at | 0.2, [estimate] |
table.stiffness_nm_rad, table.damping_ratio (indexers) | N m/rad, – | The table’s shaft against the held wheel: the mode the table rings in after each index, ω_n² = k / J (table and parts), damping ratio ζ; a passive joint of its own with effects.table_twist | 2e5 (bounds 1e5 to 4e5), 0.03 (0.01 to 0.06), [estimate] |
ratings.indexer_max_contact_force_n (indexers) | N | Verdict indexer-contact-force (signal indexer.contact_force): the pin’s or the roller’s load | Geneva 1500 (a stud-type track roller of 22 mm), cam 2000 (a cam follower of 26 mm), [estimate] |
ratings.index_max_error_m (indexers) | m | Verdict index-accuracy (signal table.index_error): the index error at the station radius in the dwell | 5e-5, [estimate] |
ratings.index_settling_tolerance_m (indexers) | m | Required: the band at the station radius the table’s ring has to settle into after an index (signal table.settling_time) | 1e-5, [estimate] |
ratings.index_max_settling_s (indexers) | s | Verdict index-settling: how long the table may ring beyond that band after an index (15 % of the dwell at 60 indexes a minute) | 0.1, [estimate] |
indexer.cam_radius_m (cam indexer) | m | Optional: the cam’s radius where the rollers touch. With it the contact force along the normal is the tangential force over cos α, tan α = r_p φ’ / R_c (signal indexer.pressure_angle); absent, α = 0. 0.10 in the shipped config (bounds 0.08 to 0.125): the peak contact force 2.1 % more | [estimate] |
effects.table_twist (the two indexers) | true/false | The table’s twist on its shaft is a passive joint of its own, so the ring acts back on the driver (signal table.twist, the index error adds it, its damper’s loss power.table_twist); off: the ring is worked out beside the dynamics (the same ring to 0.2 %). Its mode is among the machine’s modes (sim-cli modes). Off as shipped; the other crank-cam machines refuse it on | choice |
cam.ramp_s | s | The master’s sin² ramp from rest to speed and back | choice |
cam.table_file (crank) | – | A CSV cam table (master, slave[, slope], a header and # lines skipped; the last row closes the period); "": the segments | choice |
[[cam.segment]] master, slave, law (crank) | rad | One segment: master span, slave rise, law (linear, dwell, 3-4-5, 4-5-6-7, cycloid, harmonic) | choice |
disc.base_radius_m (disc cam) | m | The disc’s base circle r_b, where the follower stands at lift 0 | [estimate] |
disc.inertia_kgm2 (disc cam) | kg m² | The disc and its shaft about their axis | [estimate], [bounds] |
disc.turns_per_min (disc cam) | 1/min | The disc’s speed with cam.run (its master turns it one turn per period) | choice |
disc.table_file, [[disc.segment]] master, slave, law (disc cam) | rad, m | The lift law over one turn of the disc: as [cam]’s table or segments; the spans add up to 2 pi, the rises to 0 | choice |
follower.mass_kg (disc cam) | kg | The follower, its slide and roller, the tool on it apart (mass.payload_kg) | [estimate], [bounds] |
follower.roller_radius_m, follower.offset_m (disc cam) | m | The roller’s radius, and the follower’s axis off the disc’s centre (lowers the pressure angle on the rise where positive) | [estimate] |
follower.spring_n_m, follower.spring_preload_n (disc cam) | N/m, N | The return spring that holds the roller on the disc, and its force at the base circle | [estimate], [bounds] |
effects.follower_lift_off (disc cam) | true/false | The follower may leave the disc: its gap g to the cam is a passive joint, the contact a one-sided spring and damper (compression only, so the force on the disc is never negative), the guide’s friction acts; the damper’s and the friction’s power is the loss power.follower_contact; signals follower.gap (negative: pressed in), follower.off_disc (the contact carries nothing). Off as shipped: the roller stays on the disc; the other crank-cam machines refuse it on | choice |
follower.roller_width_m, follower.contact_damping_ratio (disc cam, with effects.follower_lift_off) | m, – | The roller’s width for its steel line contact (Palmgren: d = 3.84e-5 Q^0.9 / l^0.8, mm and N; 0.014, a stud-type track roller of 30 mm, bounds 0.012 to 0.016) and the damper as a share of critical damping with the follower’s mass and the contact’s stiffness at its depth (0.5, bounds 0.3 to 0.7) | [estimate] |
follower.guide_friction_n (disc cam, with effects.follower_lift_off) | N | The guide’s Coulomb friction against the follower’s speed (tanh over 1 mm/s; bounds 2 to 10) | [estimate] |
ratings.disc_max_contact_force_n, ratings.disc_max_pressure_angle_deg (disc cam) | N, ° | The verdicts disc-contact-force (the roller’s load) and disc-pressure-angle (30° for a translating follower) | [estimate] |
toggle.upper_link_m, toggle.lower_link_m (toggle press) | m | The links between the top pivot and the knee, and the knee and the ram (lower ≥ upper) | [estimate] |
toggle.upper_link_mass_kg, toggle.lower_link_mass_kg, toggle.lower_link_knee_share (toggle press) | kg, kg, – | The links’ masses (the upper a uniform bar about its pivot) and the share of the lower one at the knee; the rest moves with the ram | [estimate], masses [bounds] |
crank.angle_at_dead_centre_deg (toggle press) | ° | The crank’s angle from the rod where the links stand stretched, the rod level there (0 to 180, 0 excluded): 90 across the rod, towards 180 in line with it | [estimate] |
rod.mass_kg, rod.crank_end_share (toggle press) | kg, – | As the slider-crank’s; the rest moves with the knee | [estimate], [bounds] |
ram.mass_kg (toggle press) | kg | The ram on its gibs, the die apart (mass.payload_kg) | [estimate], [bounds] |
frame.stretch_stiffness_n_m (toggle press) | N/m | With effects.frame_stretch: the frame between the top pivot and the bed under the press force, a spring in series with the part | [estimate], [bounds] |
process.distance_m, process.force_n, process.smoothing_m_s (toggle press) | m, N, m/s | The press force over the ram’s height above the bottom dead centre; it acts while the ram moves down or stands and fades out over the smoothing speed as it rises | [estimate], choice |
ratings.rated_press_force_n (toggle press) | N | The press’s rated force, what frame and links are built for: the verdict press-capacity holds the press force within min(it, the crank’s torque over x’) | [estimate] |
ratings.link_max_force_n, ratings.rod_max_force_n, ratings.frame_max_deflection_m (toggle press) | N, N, m | The verdicts upper-link-force and lower-link-force (links and pins), rod-force, frame-deflection | [estimate] |
All four have [axis.crank], [axis.knife], [axis.x] or [axis.disc] with max_velocity_*, max_acceleration_* and
max_jerk_* as every machine; with cam.run the cam’s peaks at the master’s speed are checked against them when the
config is applied (limit-cam-speed, limit-cam-acceleration, limit-cam-jerk) and judged as verdicts of the cycle
(cam-speed, cam-acceleration, cam-jerk, per slave axis). A new master speed under a running cam (another
web.speed_m_s, say) ramps the master from its speed to the new one over cam.ramp_s by the same sin² ramp, from where
it stands.
Hexapod
The hexapod’s config (machine-hexapod/default.toml) has the tables of the
ball screw axis ([parts], [effects], [thermal], [thermal_feedback], [profile], [sim], [screw], [gearbox]
here a coupling of ratio 1, [motor], [drive], [ratings], [bounds], [start], [[cycle.segment]]) with the same
meanings; one motor, coupling, screw and drive per leg, all alike. The screw is a 25 x 10 (lead_m 0.01, length_m
0.35, estimates, bounded as the axis’s); drive.velocity_kp_nm_s_rad 0.4 (tuned with sim-cli margins hexapod; on 21 November 2026, with the
screw’s damping and its stiffness at the nut: 127.7 Hz, 100.0 degrees, 7.78 dB, across the bounds at least 90.1 degrees and 7.48 dB, the same on 28 November, at the poses the cycle stops at without the payload at least 86.0 degrees and 7.64 dB; 145 Hz, 89 degrees, 10.6 dB before: the coupling’s damper bridging its own spring, not the screw’s too, 60e59797, and the screw’s stiffness at the nut, ddd3bbc9); profile.vertical_axis “z”. The tool pose, start.pose and the targets are x, y, z (m), rx,
ry, rz (rad, a rotation vector); [axis.x], [axis.y], [axis.z] take max_velocity_m_s, max_acceleration_m_s2,
max_jerk_m_s3 (0.2, 3, 100, estimates), [axis.rx], [axis.ry], [axis.rz] the same in rad (0.8, 10, 400,
estimates). Its own effect: rotor_gyroscopic (off as shipped, since on it moves the default cycle’s peak torques by up to 0.078 %; each leg’s rotor, spinning along its leg, turns with it and pushes the platform by the couple F = J i q’ (u × u’) / L at its joint, which does no work; off, the spin is in the frame’s momentum only; a config without the key has it off). Effects as on the ball screw axis: joint_elasticity (each leg’s coupling, screw, nut and bearings
stretch; off: the rigid reference model), joint_friction (the rod’s guide and the nut’s preload), hard_stops (the
legs’ stroke ends), the gearbox and motor effects; shipped as there. Its own keys (all estimates; the masses and the
legs’ friction bounded):
| Key | Unit | Meaning | Value |
|---|---|---|---|
hexapod.base_radius_m | m | Circle of the base joints | 0.4 |
hexapod.base_half_angle_deg | ° | A base pair’s joints sit at 120 k ± this | 15 |
hexapod.platform_radius_m | m | Circle of the platform joints (also the length the condition number weighs turns by) | 0.2 |
hexapod.platform_half_angle_deg | ° | A platform pair’s joints sit at 120 k ± (60 − this) | 10 |
leg.closed_length_m | m | A leg retracted, joint to joint | 0.45 |
leg.stroke_m | m | Its stroke (the joint’s range, its stops) | 0.2 |
leg.friction_coulomb_n, friction_viscous_n_s_m, friction_smoothing_m_s | N, N s/m, m/s | The rod’s guide and seal (effects.joint_friction), plus the nut’s preload drag | 20, 60, 0.002 |
leg.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | Buffers at the stroke’s ends (effects.hard_stops) | 2e6, 2000 |
leg.mass_kg | kg | A leg: body, motor, rod and nut | 4 |
leg.platform_share | – | The share of it that is the rod part on the platform joint; the rest is the body part on the base joint | 0.3 |
leg.base_part_centre_m, leg.base_part_inertia_kgm2 | m, kg m² | The body part: its centre’s distance from the base joint along the leg, its inertia about the centre across the leg (the part swings with the leg; 0, 0: no swing) | 0.1, 0.058, estimates, bounded |
leg.platform_part_centre_m, leg.platform_part_inertia_kgm2 | m, kg m² | The rod part: its centre’s distance from the platform joint towards the base, its inertia about the centre across the leg (0, 0: a point at the joint) | 0.175, 0.012, estimates, bounded |
mass.platform_kg | kg | The platform | 25 |
mass.platform_inertia_kgm2 | kg m² | Its inertia about its centre, x, y, z (the legs’ parts are separate bodies) | 0.4, 0.4, 0.7 |
mass.payload_kg | kg | Payload at the centre (effects.payload) | 30 |
mass.payload_inertia_kgm2 | kg m² | The payload’s inertia about the platform centre, x, y, z (platform frame; turns with the platform; with effects.payload). 0: a point mass | 0, 0, 0 |
workspace.tool_min, tool_max | m, rad | The tool’s box, the axes’ ranges | −0.06, −0.06, 0.44, −0.08, −0.08, −0.12 to 0.06, 0.06, 0.54, 0.08, 0.08, 0.12 |
workspace.max_joint_angle_deg | ° | Steepest leg against the base’s or the platform’s normal; beyond: error-hexapod-joint-angle | 40 |
workspace.max_condition_number | – | Of the Jacobian, turns weighed by the platform radius; beyond: error-hexapod-singularity | 20 |
Tripod
The tripod’s config (machine-tripod/default.toml) has the hexapod’s tables
with the same meanings, one motor, coupling, screw and drive per leg, all alike: the screw a Hiwin 20-10K3-FDC
(catalogue: diameters, lead, load ratings, nut stiffness, d n; length_m 0.35 and the rest estimates), the motor a
1FK2104-4AF on an S210 6SL3210-5HE10-4UF0 (catalogue; its resistance an estimate, its inductance from the catalogue’s
short-circuit braking table, the current loop at 0.25 ms), the coupling 6000 N m/rad (estimate);
drive.velocity_kp_nm_s_rad 0.03 (sim-cli margins tripod, against the legs’ axial modes damped through the nut:
60.4° and 18.20 dB, friction off 57.7° and 12.54 dB; across the bounds at least 50.6° and 17.07 dB, friction off 36.3°
and 10.64 dB (28 November 2026; 38.6° and 13.20 dB on 21 November); with friction off 0.1 left 6.9° and 2.20 dB). The cycle carries the part through its three tilts and puts it off at the level pose. The tool pose,
start.pose and the targets are z (m), rx, ry (rad: R = Rx(rx) Ry(ry) Rz(g), the turn g dependent); [axis.z] takes
max_velocity_m_s, max_acceleration_m_s2, max_jerk_m_s3 (0.2, 2, 50, estimates), [axis.rx], [axis.ry] the same in
rad (0.5, 5, 200, estimates); profile.vertical_axis “z”. Its own keys and those that differ from the hexapod’s (all
estimates; the masses, the legs’ friction and force bounded):
| Key | Unit | Meaning | Value |
|---|---|---|---|
tripod.base_radius_m | m | Circle of the base joints (revolute about its tangent), at 0, 120, 240° | 0.3 |
tripod.platform_radius_m | m | Circle of the platform joints (spherical), at the same angles; also the length the condition number weighs tilts by | 0.2 |
leg.closed_length_m, stroke_m | m | A leg retracted, joint to joint; its stroke (the joint’s range, its stops) | 0.45, 0.2 |
leg.friction_coulomb_n, friction_viscous_n_s_m, friction_smoothing_m_s | N, N s/m, m/s | The rod’s guide and seal (effects.joint_friction), plus the nut’s preload drag | 15, 40, 0.002 |
leg.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | Buffers at the stroke’s ends (effects.hard_stops) | 2e6, 2000 |
leg.mass_kg, platform_share | kg, – | A leg: body, motor, rod and nut; the share that is the rod part on the platform joint (the rest is the body part on the base joint) | 3, 0.3 |
leg.base_part_centre_m, leg.base_part_inertia_kgm2 | m, kg m² | The body part: its centre’s distance from the base joint along the leg, its inertia about the centre across the leg (the part swings with the leg; 0, 0: no swing) | 0.1, 0.044, estimates, bounded |
leg.platform_part_centre_m, leg.platform_part_inertia_kgm2 | m, kg m² | The rod part: its centre’s distance from the platform joint towards the base, its inertia about the centre across the leg (0, 0: a point at the joint) | 0.175, 0.0092, estimates, bounded |
leg.max_force_n | N | The feed force the cylinder allows; judged by tripod-leg-force | 1500 |
mass.platform_kg, platform_inertia_kgm2 | kg, kg m² | The platform; its inertia about its centre, x, y, z (the legs’ parts are separate bodies) | 20; 0.35, 0.35, 0.65 |
mass.payload_kg | kg | Payload (effects.payload) | 40 |
mass.payload_offset_m | m | Its centre in the platform frame, from the platform centre | 0.05, 0, 0.1 |
mass.payload_inertia_kgm2 | kg m² | Its inertia about its centre, x, y, z (platform frame) | 0.6, 0.6, 0.6 |
workspace.tool_min, tool_max | m, rad | The tool’s box (z, rx, ry), the axes’ ranges; the forward kinematics starts at its centre (tilts within ±1 rad) | 0.5, −0.2, −0.2 to 0.58, 0.2, 0.2 |
workspace.max_revolute_angle_deg | ° | A leg’s swing at its base joint from the base’s normal; beyond: error-tripod-revolute-angle, judged by tripod-revolute-angle | 30 |
workspace.max_cone_angle_deg | ° | A leg against the platform’s normal at its spherical joint; beyond: error-tripod-cone-angle, judged by tripod-cone-angle | 35 |
workspace.max_condition_number | – | Of the Jacobian, tilts weighed by the platform radius; beyond: error-tripod-singularity | 5 |
ratings.parasitic_tolerance_m | m | The pose’s error against the pure tilt (platform.pose_error) the cycle may reach; judged by tripod-parasitic, left out: not judged | 0.005 |
Hexapod with rotary actuators
The config of hexapod-rotary (machine-hexapod-rotary/default.toml)
has the tables of the delta picker D3 for its drives ([parts], [effects], [thermal], [thermal_feedback],
[profile], [sim], [joint] for each crank’s bearing and stops, [gearbox], [motor], [drive], [ratings],
[bounds], [base], [brake]) with the same meanings; one motor, gearbox and drive per crank, all alike: the
1FT2104-5AF on an S210 6SL3210-5HE10-8UF0 and the SP100-04-50 (ratio 50, 106570 N m/rad, 0.54 kg cm² at the input,
catalogue; backlash 2.25 arcmin, estimate). drive.velocity_kp_nm_s_rad 0.10 (tuned with sim-cli margins hexapod-rotary --bands: 46.8° and 11.1 dB at the start pose, 38.5° and 9.6 dB with the friction off, over the poses the cycle stops at at least 38.0° and 9.5 dB, 28 November 2026); profile.vertical_axis “z”. The tool pose, start.pose and the
targets are x, y, z (m), rx, ry, rz (rad, a rotation vector), as on the hexapod; [axis.x] to [axis.z] 0.3 m/s,
4 m/s², 40 m/s³, [axis.rx] to [axis.rz] 0.6 rad/s, 5 rad/s², 100 rad/s³ (estimates; the linear jerk reaches the acceleration in
0.1 s, a swing of the platform’s lowest mode on the gearboxes, some 10 Hz). joint.min_angle_deg,
max_angle_deg are the cranks’ stops (−100, 50; the working range needs −92 to 38). gearbox_drag and gearbox_lost_motion are off (no catalogue figure for
this ratio). Its own keys (all estimates; the masses bounded):
| Key | Unit | Meaning | Value |
|---|---|---|---|
platform.base_radius_m | m | Circle of the crank axes’ centres | 0.5 |
platform.base_half_angle_deg | ° | A base pair’s crank axes sit at 120 k ± this | 5 |
platform.platform_radius_m | m | Circle of the platform joints (also the length the condition number weighs turns by) | 0.3 |
platform.platform_half_angle_deg | ° | A platform pair’s joints sit at 120 k ± (60 − this) | 5 |
crank.length_m | m | Crank, axis to the ball joint’s centre | 0.2 |
crank.axis_turn_deg | ° | Each crank axis (horizontal) is the base radius turned by ± this, mirrored in a pair | 30 |
crank.branch | – | "out": the closed form’s minus root, the tip away from the pair’s partner; "in": the plus root | “out” |
crank.mass_kg, cg_m, inertia_kgm2 | kg, m, kg m² | The crank’s mass, its centre of mass from the axis, its inertia about the axis | 2, 0.08, 0.02 |
rod.length_m | m | Rod, ball joint to ball joint | 0.55 |
rod.mass_kg | kg | A rod with its ball joints, taken as a uniform rod (a sixth at each end, two thirds at its middle) | 0.4 |
rod.outer_diameter_m, wall_m, youngs_modulus_pa | m, m, Pa | The rod’s tube, for its Euler load π² E I / L² | 0.02, 0.002, 7e10 |
mass.platform_kg, platform_cg_m, platform_inertia_kgm2 | kg, m, kg m² | The platform, its centre of mass (platform frame, from the joints’ centre) and its inertia about it, x, y, z | 35, (0, 0, 0.05), (1.5, 1.5, 2.8) |
mass.payload_kg, payload_cg_m, payload_inertia_kgm2 | kg, m, kg m² | The payload (effects.payload), as the platform | 80, (0, 0, 0.3), (5, 5, 2) |
workspace.tool_min, tool_max | m, rad | The tool’s box, the axes’ ranges | −0.08, −0.08, 0.34, −0.15, −0.15, −0.2 to 0.08, 0.08, 0.46, 0.15, 0.15, 0.2 |
workspace.min_dead_centre_margin_deg | ° | Least angle of a crank from its dead centre; nearer: error-rss-dead-centre | 10 |
workspace.crank_joint_max_angle_deg, platform_joint_max_angle_deg | ° | The ball joints’ limits: the rod out of the crank’s plane, against the platform’s normal; beyond: error-rss-ball-joint; also the verdicts’ limits | 35, 40 |
workspace.min_rod_clearance_m | m | Least distance between two rods’ axes; nearer: error-rss-rods-cross | 0.03 |
workspace.min_body_clearance_m | m | Least distance of a rod’s axis from the platform’s and the base’s hexagon edges (the edges at its own joints apart); nearer: error-rss-rods-cross-body; 0: no check | 0.02, estimate |
workspace.max_condition_number | – | Of the inverse Jacobian, turns weighed by the platform radius; beyond: error-rss-singularity | 30 |
ratings.crank_dead_centre_margin_deg | ° | Verdict crank-dead-centre: the rod’s angle from the crank’s tangent at most 90° less this | 20 |
ratings.rod_buckling_safety_factor | – | Verdict rod-buckling: the rod’s compression at most its Euler load over this | 3 |
Cable robots
The configs of cable-planar and cable-spatial (machine-cable-robot/config/,
common.toml and the machine’s own file) have the tables of the ball screw axis but [screw] and [slide], with
[gearbox] a planetary gearbox 5:1 at each winch (estimates: 0.95, 5 arcmin, 3.4e4 N m/rad, bounded) and
profile.vertical_axis “z”. The tool pose is x, z (m) for the planar one, x, y, z (m), rx, ry, rz (rad, a rotation
vector) for the spatial one; the [axis.<id>] tables as on the hexapod (planar 1.5 m/s, 10 m/s², 500 m/s³; spatial 1,
8, 400 and 1 rad/s, 10, 400; estimates). ratings.settling_tolerance_m is 0.3 mm (planar) and 1 mm (spatial), a
requirement of their size (estimate). Effects:
| Switch | Default | What it models |
|---|---|---|
cable_stretch | on | The cables stretch (EA / l) and go slack, each winch’s gearbox twists: platform, drums and rotors are bodies of their own. Off selects the rigid reference model: the cables keep their length, the motors turn with them |
cable_damping | on | With cable_stretch: the cables’ material damping, cable.specific_damping_n_s / l |
cable_inertia | off | With cable.mass_per_m_kg: the cable runs along itself at the drum’s speed, all of winch.capacity_m a mass at the cable beside the drum’s J / r², and each straight span swings across itself with its anchor, ρ l_f / 3 (1 − u uᵀ) there with its velocity terms; in the frame’s momentum the cable on the drum turns with it (the paid-out cable’s momentum left out, as its mass is) |
winch_friction | on | Friction of the winches’ bearings and the pulleys, at the cable |
The gearbox, motor and drive effects as on every machine (hard_stops: an empty and a full drum). Own keys (all
estimates, values planar / spatial; bounded where they are a part’s property):
| Key | Unit | Meaning | Value |
|---|---|---|---|
platform.spatial | – | Six degrees of freedom; off: a point in the x-z plane (no anchors_m, inertia_kgm2) | false / true |
platform.mass_kg | kg | The carriage or platform | 3 / 4 |
platform.payload_kg | kg | Payload, a point mass at the centre (effects.payload) | 2 / 4 |
platform.inertia_kgm2 | kg m² | Spatial: its inertia about its centre, x, y, z | – / 0.03, 0.03, 0.05 |
platform.anchors_m | m | Spatial: each cable’s anchor on the platform, in its frame (the planar one’s meet at its centre) | – / the corners of 200 x 200 x 100 mm |
frame.exits_m | m | Each cable’s pulley, where the cable runs onto it (the swivel point); 4 or 8 entries, one per winch and motor | the corners of 2 x 1.6 m / of 2 x 1.6 x 1.8 m |
frame.winch_directions | – | The direction from each pulley to its winch (its swivel axis); the pulley faces the frame’s centre at rest | up for the top pulleys, down for the bottom ones |
frame.run_lengths_m | m | With effects.cable_inertia: how far each drum sits from its pulley’s swivel point along the winch’s direction (one per cable). The run’s cable runs at the drum’s speed, the cable paid out is lifted from the drum’s height to the pulley’s (ρ g h l, h = −r a_z), and the frame carries the cables’ mass and momentum. Replaces winch.drop_m (until 22 November) | 0.15 each, estimate |
frame.winch_spin_axes | – | The axis each winch’s drum and rotor turn about (one row per cable): their spin (J w) is in the frame’s load. Empty: horizontal and square to the cable’s direction at the winch | [] |
pulley.radius_m | m | The pulleys’ radius | 0.025 / 0.03 |
cable.ea_n | N | The cable’s EA: a cable of free length l is a spring of EA / l | 1e5 / 3e5 |
cable.specific_damping_n_s | N s | Its damping times its free length: c = this / l (effects.cable_damping) | 60 / 150 |
cable.breaking_load_n | N | Its breaking load | 4000 / 10000 |
cable.safety_factor | – | The band’s top is the breaking load over this (the rating of cable-max-tension) | 10 |
cable.min_tension_n | N | The band’s bottom, the least tension that keeps a cable taut (cable-min-tension); with the top, the band the time-optimal plan keeps each cable’s tension within (profile.tension_reserve of the room) | 10 / 20 |
cable.reference_tension_n | N | The pretension the distribution keeps the tensions nearest to | 120 / 250 |
cable.mass_per_m_kg | kg/m | The cable’s own mass: half the weight of its free span hangs on the platform, and the cable sags (its stiffness Ernst’s modulus E / (1 + (w l_h)² E A / (12 T³)), see the mechanisms); 0 or left out: both left out | 0.003 / 0.010 |
winch.drum_radius_m | m | The drum’s radius: the lever behind the gearbox | 0.025 / 0.03 |
winch.drum_inertia_kgm2 | kg m² | The drum’s inertia | 2e-4 / 4e-4 |
winch.capacity_m | m | The cable a drum holds: its stops at 0 and here | 5 |
winch.friction_coulomb_n, friction_viscous_n_s_m, friction_smoothing_m_s | N, N s/m, m/s | Bearings and pulley at the cable (effects.winch_friction) | 2, 1 / 3, 2; 0.002 |
winch.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | The stops (effects.hard_stops) | 1e6, 1000 |
workspace.tool_min, tool_max | m, rad | The tool’s box, the axes’ ranges; poses in it outside the wrench-feasible workspace are refused (error-cable-wrench-infeasible) | −0.6, 0.3 to 0.6, 1.3 / −0.4, −0.3, 0.8, −0.05 (each turn) to 0.4, 0.3, 1.4, 0.05 |
Wafer handler
The wafer handler’s config (machine-wafer-handler/default.toml) has the
tables every machine has ([sim], [parts], [motor], [gearbox], [thermal], [thermal_feedback], [drive],
[ratings], [profile], [brake], [base], [bounds], [start], [[cycle.segment]]) and the effects of the drives
and the controller. Motors 1 (the column’s turn) and 2 (the upper arm) share [motor], [gearbox] and [drive]; motor
3 (the lift) has its coupling in [gearbox.3] and its velocity loop in [drive.3]. The tool pose, start.pose and the
cycle’s targets are (r, theta, z): the wafer centre’s distance from the column’s axis (m), the effector’s direction (rad),
the lift (m). Its own keys:
| Key | Unit | Meaning | Value, source |
|---|---|---|---|
effects.joint_elasticity | The gearboxes of motors 1 and 2 and the Z stroke’s coupling and screw twist (two bodies per joint; the column rings on its screw and coupling at 321 Hz with the rotor held); off, the rigid model | true | |
effects.band_elasticity | The bands in the links stretch: the forearm and the effector on the bands’ springs; off, rigid bands | true | |
geometry.link_m | m | Both links’ length, shoulder to elbow and elbow to wrist (equal, or the bands would not keep the wrist on the radial line) | 0.32, estimate |
geometry.effector_m | m | The effector’s length from the wrist to the wafer centre | 0.18, estimate |
workspace.min_reach_m, max_reach_m | m | The r axis’s range; both must lie within the upper arm’s stops and the condition number | 0.04, 0.78, estimates |
workspace.max_condition_number | Targets where 1 / sin(phi) passes this are refused (near the full extension) | 5, estimate | |
mass.column_inertia_kgm2 | kg m² | What turns with the column: its head, motor 2 and its gearbox, the shoulder pulley | 0.05 (bounds 0.03 to 0.08), estimate |
mass.upper_arm_kg, mass.upper_arm_inertia_kgm2, mass.upper_arm_centre_m | kg, kg m², m | The upper arm’s mass, inertia about its own centre (a uniform bar, m L² / 12) and the centre’s distance from the shoulder | 1.5 (bounds 1.2 to 1.8), 0.0128, 0.16, estimates |
mass.forearm_kg, mass.forearm_inertia_kgm2, mass.forearm_centre_m | kg, kg m², m | The forearm’s, the centre’s distance from the elbow | 1.2 (bounds 0.9 to 1.5), 0.01024, 0.16, estimates |
mass.effector_kg, mass.effector_inertia_kgm2, mass.effector_centre_m | kg, kg m², m | The effector’s (fork, pads, wrist pulley), the centre’s distance from the wrist | 0.4 (bounds 0.3 to 0.6), 0.004, 0.12 (bounds 0.1 to 0.14), estimates |
mass.payload_kg, payload_inertia_kgm2 | kg, kg m² | The wafer, its centre at geometry.effector_m, and its inertia about its axis | 0.1276, 1.4355e-3: 300 mm, 775 µm of silicon, catalogue (SEMI M1) |
elbow_band.pulley_radius_m | m | The band in the upper arm: the elbow pulley’s radius (the shoulder pulley’s is twice it) | 0.03, estimate |
wrist_band.pulley_radius_m | m | The band in the forearm: the wrist pulley’s radius (the elbow pulley’s is half of it) | 0.035, estimate |
elbow_band., wrist_band.span_stiffness_n_m | N/m | A span’s stiffness, E A over its length | 9.4e5 (0.15 × 10 mm spring steel over 0.32 m), estimate |
elbow_band., wrist_band.span_damping_n_s_m | N s/m | A span’s damping, while it holds tension | 750 (about 5 % of critical on the forearm’s mode), estimate |
elbow_band., wrist_band.pretension_n | N | Each span’s tension at rest; a span goes slack once k s passes it | 150, estimate |
wafer.hold | "pads" (friction, the wafer’s weight), "vacuum" (vacuum pads) or "edge" (an edge grip), for wafer-slip | "pads" | |
wafer.friction_coefficient | The pads’ friction on the wafer | 0.3, estimate | |
wafer.vacuum_area_m2, vacuum_pa | m², Pa | With "vacuum": the pads’ area and vacuum, A p pressing the wafer on | 3e-4, 6e4, estimates |
wafer.edge_grip_acceleration_m_s2 | m/s² | With "edge": the in-plane acceleration the grip holds | 9.81, estimate |
joint.* | The column’s joint: friction, stops at ±200° | estimates | |
[joint.2] | The upper arm’s stops over [joint]: min_angle_deg, max_angle_deg from the radial line; between 0 and 180 degrees | 10, 110, estimates | |
z_axis.carriage_kg | kg | What the screw lifts besides the links, the effector and the wafer (the column, motors 1 and 2) | 8, estimate |
slide.*, screw.* | The lift’s guides (0.3 m stroke) and ball screw (16 x 10), as for the screw axis | estimates | |
axis.r.*, axis.theta.*, axis.z.* | The axes’ limits; axis.theta.min_angle_deg, max_angle_deg the turn’s range | 0.8 m/s, 1.5 m/s², 15 m/s³; ±190°, 4 rad/s, 36 rad/s², 360 rad/s³ (the turn at r = 0.05 m); 0.25 m/s, 2 m/s², 40 m/s³; sized against wafer-slip | |
ratings.wafer_slip_safety_factor | The hold at rest over this is the limit of wafer-slip | 1.2, estimate | |
ratings.direction_tolerance_rad | rad | effector-direction: how far the effector may turn out of its radial line while it dwells | 5e-4, estimate |
ratings.band_max_pretension_share | elbow-band-slack, wrist-band-slack: the most a span may lose or gain of its pretension | 0.5, estimate | |
ratings.settling_tolerance_m, settling_tolerance_rad | m, rad | The hand-off: the wafer centre’s r and z, and theta | 1.5e-4, 2e-4, estimates |
Without effects.gravity the pads hold nothing (wafer-slip’s limit 0) and the Z motor holds nothing either.
Winder with dancer (machine-winder)
The winder’s config (machine-winder/default.toml) has the common tables
([parts], [effects], [thermal], [thermal_feedback], [profile], [sim], [base], [brake], [motor],
[drive], [ratings], [bounds], [start], [[cycle.segment]]) with the same meanings; both rolls have the same
motor, gearbox (gearbox.ratio, inertia_at_input_kgm2, efficiency, efficiency_torque_nm, no_load_torque_nm,
no_load_speed_rpm) and drive. Its one axis is the line position, [axis.web] (max_velocity_m_s the line speed,
max_acceleration_m_s2, max_jerk_m_s3), over the stretch of the roll roll.run_from_m to run_from_m + run_m (0 has
the unwind full, the roll’s capacity π (r_f² − r_c²) / h the rewind). A cycle segment’s payload hangs the weight on the
dancer (true) or takes it off. Model in model-reference.md. Its own keys:
| Key | Unit | Meaning | Shipped |
|---|---|---|---|
effects.web_stretch | true/false | The web’s spans stretch, carry their strain and go slack (off: the rigid model, an inextensible web) | true |
effects.web_damping | true/false | The web’s material damping, web.damping_time_s | true |
effects.dancer_friction | true/false | The dancer slide’s and its roller’s friction | true |
effects.tension_taper | true/false | The tension setpoint falls over the rewind’s radius by web.taper | true |
effects.gearbox_efficiency, gearbox_drag, motor_friction, hard_stops (the dancer’s end stops), holding_brake, brake_delay, gravity, payload | true/false | As on every machine; with thermal_feedback the gearboxes’ efficiency and drag follow their temperature | true; gearbox_drag, brake_delay false |
web.thickness_m, width_m, density_kg_m3 | m, m, kg/m³ | The web: each turn adds the thickness to a roll’s radius | 50e-6, 0.4, 1390 (PET), estimate; the density as wound bounds 1250 to 1400 (air between the layers) |
web.modulus_pa | Pa | Young’s modulus: EA = E h w | 4e9, estimate, bounds 3.5e9 to 5e9 |
web.damping_time_s | s | The material damping, EA times it per unit of strain rate | 2e-4, estimate, bounds 1e-4 to 5e-4 |
web.tension_n | N | The tension setpoint at the rewind’s core, T0 | 100 |
web.taper | – | k of the taper T0 (1 − k (1 − r_c / r)), 0 to below 1 | 0.3 |
roll.core_radius_m, full_radius_m | m | Both rolls’ core (outside) and full radius | 0.045, 0.15 |
roll.core_inertia_kgm2 | kg m² | Core, shaft and chuck about the roll’s axis | 0.01, estimate, bounds 0.006 to 0.015 |
roll.wound_tension_n | N | The tension the unwind roll was wound at: its web comes off at that strain | 100 |
roll.run_from_m, roll.run_m | m | The stretch of the roll the line position runs over: from this much web on the rewind, this long; within the capacity | 0, 6 |
span.unwind_m, span.rewind_m | m | The spans’ length from each roll to the dancer roller with the dancer in the middle | 1.0, 1.0 |
mass.dancer_kg | kg | Slide and roller, moving with the dancer | 4, estimate, bounds 3 to 6 |
mass.payload_kg | kg | A weight the cycle hangs on the dancer (effects.payload), taken off by the cylinder’s force setpoint | 2 |
dancer.roller_radius_m, roller_inertia_kgm2 | m, kg m² | The dancer roller | 0.04, 2e-3 (bounds 1.5e-3 to 3e-3) |
dancer.air_spring_n_m | N/m | The cylinder’s air spring: its force falls by k y as the dancer goes down | 1000, estimate, bounds 500 to 3000 |
dancer.stroke_m | m | The dancer’s travel from the middle to its end stops | 0.05 |
dancer.friction_coulomb_n, friction_viscous_n_s_m, friction_smoothing_m_s | N, N s/m, m/s | The slide’s friction (effects.dancer_friction) | 3, 20, 0.005 |
dancer.roller_friction_coulomb_nm, roller_friction_viscous_nm_s_rad, roller_friction_smoothing_rad_s | N m, N m s/rad, rad/s | The roller’s bearings | 0.02, 1e-4, 0.5 |
dancer.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | The end stops (effects.hard_stops) | 1e6, 2000 |
dancer.position_loop | true/false | The dancer’s position loop trims the unwind’s speed | true |
dancer.trim_kp_1_s, trim_tn_s, trim_max_m_s | 1/s, s, m/s | Its PI: trim = −(Kp y + Kp / Tn ∫ y dt), held to ± the most | 5, 1, 0.2 |
ratings.web_max_tension_n, web_min_tension_n | N | The verdicts web-tension (the highest span tension) and web-slack (the lowest, as the minimum over it) | 250, 30 |
ratings.dancer_max_travel_m | m | The verdict dancer-travel | 0.04 |
ratings.max_inertia_ratio | – | The verdict inertia-ratio: the full roll’s inertia at the motor over rotor and gearbox input | 15 |
The two speed loops have their own gains: drive.velocity_kp_nm_s_rad (1.2) for the rewind on its core at the shipped
stretch, [drive.unwind] velocity_kp_nm_s_rad (3.0) for the unwind on its full roll, ten times the inertia at the
motor. A roll’s inertia at the motor changes 45-fold from core to full; a run elsewhere on the roll needs its gains set
for the radii there (near the roll’s end the two swap), as the drive model does not adapt them to the roll’s inertia.
The verdicts torque-at-full-roll and torque-at-core judge against drive.peak_torque_nm, speed-at-core against
drive.max_speed_rad_s and tension-torque-at-full-roll against drive.rated_torque_nm; a rating left out is not
judged. With effects.part_heating both gearboxes warm (thermal.gearbox_*); with effects.thermal_feedback their
efficiency and drag follow it ([thermal_feedback]; the seals’ exponent and the belt’s coefficient are read and not
used). The torque at each gearbox’s output (gearbox.<motor>.output_torque) is judged against
ratings.gearbox_max_torque_nm and gearbox_rated_torque_nm as on every geared machine.
Overhead crane
The config of overhead-crane (machine-overhead-crane/config/crane.toml)
has the common tables ([parts], [effects], [thermal], [thermal_feedback], [profile], [base], [sim],
[motor], [gearbox], [drive], [ratings], [brake], [bounds], [start], [[cycle.segment]]) with the same
meanings. Its three motors have the ids bridge, trolley and hoist: the shared [motor], [gearbox], [drive] and
[ratings] are the bridge’s (the shared [motor] and [drive] the trolley’s too), and [gearbox.trolley],
[motor.hoist], [gearbox.hoist], [drive.hoist], [ratings.hoist] give the others their own values over them
(catalog::motor_config; a [drive.trolley] would do so for the trolley’s drive). The tool pose is
the hook as the drives place it (the bridge’s x, the trolley’s y, the load’s height z; m), [axis.x], [axis.y],
[axis.z] their limits (0.8, 0.6, 0.25 m/s; 0.4 m/s²;
2 m/s³; estimates); [workspace] tool_min, tool_max the box it may be in. profile.vertical_axis is “z”,
profile.shaper_axes [“x”, “y”], effects.shaper_follows_pose on (the shaper follows the sway’s period of the rope’s
length; effects.input_shaping itself off, on with --set effects.input_shaping=true). A segment’s payload is whether
the hook holds the load once the segment has arrived. Model in mechanisms.md.
Its own keys (estimates, each with a [bounds] entry where it is a part’s property):
| Key | Unit | Meaning | Shipped |
|---|---|---|---|
effects.rope_stretch | true/false | The rope stretches (EA / l) and goes slack. Off selects the rigid reference model: the rope keeps its free length, its tension the constraint force (it may push) | true |
effects.rope_damping | true/false | With rope_stretch: the rope’s material damping, rope.specific_damping_n_s / l | true |
effects.guide_friction | true/false | The bridge’s and the trolley’s wheels roll against crane.rolling_coefficient times their load | true |
effects.rope_mass | true/false | The rope’s own mass rope.mass_per_m_kg_m: its inertia (a straight rope whose material runs off the sheave at the drum’s speed, its velocity linear down to the hook, and the rope wound on the drum) and weight in the equations of motion, so the tension at the drum is the load’s plus the rope’s weight; rope.tension is the drum’s end, rope.shortfall the hook’s | false |
effects.hook_block | true/false | The hook block (crane.hook_mass_kg) hangs on the rope and the payload under it on a sling of crane.sling_length_m, swinging on its own (a spherical double pendulum); the sling a rope of the main rope’s rope.ea_n and rope.specific_damping_n_s that goes slack (a load standing on the floor under a lowered hook block, a bounce); the load signals are the payload’s, load.sling_angle | false |
effects.joint_elasticity | true/false | The three drives are elastic: the gearbox’s stiffness, damping and backlash ([gearbox]) between the motor’s rotor (a state) and the wheel or drum | false |
effects.bridge_skew | true/false | The bridge a rigid girder on two end carriages with a drive each (the bridge’s command shared equally), the wheels’ lateral stiffness holding the skew; signals bridge.skew_angle, bridge.travel_a/b, bridge.torque_a/b | false |
crane.floor_friction_coefficient | – | With effects.floor_contact: Coulomb friction of the standing load on the floor (smoothed over rolling_smoothing_m_s) | 0.3 |
crane.hook_block_friction_coefficient | – | With effects.hook_block and effects.floor_contact: Coulomb friction of the hook block rubbing along the payload’s faces (smoothed over rolling_smoothing_m_s) | 0.3 |
crane.sling_length_m | m | With effects.hook_block: the sling from the hook block to the load’s centre of mass | 1.0 |
crane.bridge_gauge_m, bridge_wheelbase_m | m | With effects.bridge_skew: the rails’ distance and an end carriage’s wheelbase | 5.6, 2.0 |
crane.bridge_wheel_lateral_stiffness_n_m | N/m | With effects.bridge_skew: the lateral stiffness of one carriage’s wheels; the girder’s yaw is held with k b^2 / 2 per rad | 2e6 |
crane.bridge_skew_damping_ratio | – | With effects.bridge_skew and effects.guide_friction: the flanges’ damping of the yaw, as a share of the critical | 0.05 |
rope.mass_per_m_kg_m | kg/m | With effects.rope_mass: the rope’s mass per metre (0.0035 d^2 for a steel wire rope of d mm: 0.126 for 6 mm) | 0.126 |
effects.floor_contact | true/false | The load stands on the floor until the rope carries it (one-sided contact with Coulomb friction crane.floor_friction_coefficient, also on the rigid rope): a fast lift shows the rope’s snatch, setting down with a slack rope leaves the load standing; signal load.floor_force. Off: the load hangs from the start | false |
crane.floor_height_m | m | With effects.floor_contact: the hook’s height when the load stands on the floor (the payload’s box under it) | 0.5 |
crane.rope_exit_height_m | m | Where the rope leaves the trolley’s sheave, over the floor | 5.0 |
crane.bridge_mass_kg, trolley_mass_kg, hook_mass_kg | kg | Girder with end carriages and its drive; trolley with the hoist; hook block | 600, 120, 15 |
crane.payload_kg | kg | The load on the hook, with effects.payload and a segment’s payload | 250 |
crane.bridge_stroke_m, trolley_stroke_m | m | Travel between the buffers, from 0 | 10, 5 |
crane.bridge_wheel_radius_m, trolley_wheel_radius_m | m | The driven wheels: the lever behind each gearbox | 0.08, 0.05 |
crane.rolling_coefficient | – | Travel resistance as a share of the wheel load (5 to 7 N/kN with rolling bearings) | 0.006 |
crane.rolling_smoothing_m_s | m/s | The speed over which the rolling resistance builds up from rest (tanh) | 0.005 |
crane.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | The rails’ buffers (effects.hard_stops) | 1e6, 2000 |
crane.residual_sway_max_m | m | Verdict residual-sway: the load’s sway amplitude at a dwell at most this | 0.05 |
hoist.drum_radius_m, drum_inertia_kgm2, capacity_m | m, kg m², m | The drum: the lever behind the hoist’s gearbox, its inertia, the rope it holds | 0.08, 0.05, 6 |
hoist.stop_stiffness_n_m, stop_damping_n_s_m | N/m, N s/m | Stops at an empty and a full drum | 1e6, 2000 |
hoist.brake_safety_factor | – | Verdict hoist-brake: the rope’s torque at the hoist’s motor at most motor.hoist.brake_torque_nm over this | 1.6 |
rope.ea_n | N | The rope’s stiffness EA (a 6 mm 6x19 steel wire rope) | 1.44e6 |
rope.specific_damping_n_s | N s | Its damping times its free length, so c / l | 1660 |
rope.breaking_load_n, safety_factor | N, – | Verdict rope-max-tension: the tension at most their quotient | 20000, 4.5 |
rope.min_tension_n | N | Verdict rope-min-tension: the tension never below this (no slack rope) | 50 |
Movers on a closed track (machine-mover-track)
The config of mover-track (machine-mover-track/default.toml) has the
tables of the joint kit’s linear motor axis ([parts], [effects], [thermal], [thermal_feedback], [profile],
[sim], [slide], [linear_motor], [gearbox], [motor], [drive], [ratings], [base], [brake], [bounds],
[start], [[cycle.segment]]) with the same meanings, one motor and drive per mover, all alike: [motor] is the coils
under one mover, read in N for N m and m for rad (100 N peak, 30 N continuous, 4 m/s on 48 V [catalogue], Beckhoff XTS
AT2000 and AT9014; force constant 10 N/A, resistance 1 Ω, inductance 2 mH [estimate]; rotor_inertia_kgm2 0.2 is the
magnet plate’s mass), [gearbox] the plate’s mount on the body (ratio 1, 2e7 N/m, bounds 1.5e7 to 5e7, [estimate]),
the DC link the movers’ shared 48 V supply (effects.shared_dc_link on). The tool pose, start.pose and the cycle’s
targets are each mover’s distance along the loop’s centre line (m), unwrapped. flying.toml
is the same config with track.cycle = "flying", cam.run = true and its start poses. Model in
mechanisms. Its own keys (MT: default.toml; flying:
flying.toml where it differs):
| Key | Unit | Meaning | Default |
|---|---|---|---|
track.straight_m | m | Each of the two straights, a whole number of modules | 1.0 |
track.module_m | m | A motor module (segment) of a straight; each curve is one segment | 0.25, [catalogue] AT2000-0250 |
track.curve_radius_m | m | The radius R of each 180° curve’s arc, between its clothoids | 0.1303 (bounds 0.125 to 0.1335), [estimate]: with the clothoids the curve is 267 mm across, [catalogue] |
track.clothoid_m | m | At least 0 and below π R: the length of the clothoid at each end of a curve, over which the curvature rises linearly; a curve is π R + this long | 0.1 (bounds 0 to 0.15), [estimate] |
track.cycle | – | The cam the controller runs with cam.run: "index" (every mover one station pitch, the loop over the movers, on and standing there) or "flying" (each mover in turn synchronous with a conveyor over the process, back round the loop for the rest) | "index"; flying "flying" |
track.index_rate_hz | 1/s | "index": indexes per second | 1.5, choice |
track.index_share | – | "index": the share of a period the index takes, below 1; the movers stand at their stations for the rest | 0.6, choice |
track.index_law | – | "index": the move’s law, "3-4-5", "4-5-6-7", "cycloid" or "harmonic" (VDI 2143) | "4-5-6-7", choice |
track.conveyor_speed_m_s | m/s | "flying": the conveyor’s speed, the cam’s master | 1.0, choice |
track.product_pitch_m | m | "flying": the products’ pitch on the conveyor; one mover goes round once per movers × pitch of conveyor | 0.3, choice |
track.process_length_m | m | "flying": how far a mover runs synchronous with the conveyor; below movers × pitch and below the loop | 0.3, choice |
track.return_law | – | "flying": the law of the return round the loop, blending into the synchronous run at both ends; laws as index_law | "4-5-6-7", choice |
cam.run, cam.ramp_s | –, s | The controller runs the track’s cam instead of [[cycle.segment]]; the master comes up to speed in ramp_s | false, 0.5; flying true |
mass.mover_kg | kg | A mover’s body without its magnet plate (the plate is motor.rotor_inertia_kgm2) | 0.451 (bounds 0.42 to 0.48): [catalogue] 651 g of the AT9014 with its plate, less the plate’s [estimate] 0.2 kg |
mass.payload_kg | kg | What each mover carries (effects.payload) | 0.6, [catalogue] the AT9014’s life test |
mass.centre_offset_m | m | How far outside the centre line the body’s and payload’s mass centre runs: in a curve on R + e at v (1 + e k), its mass m (1 + e k)²; the plate stays on the centre line | 0 (the drawn mover is 35 mm out) |
mover.length_m | m | The body’s length along the track: the gap between neighbours is the distance along the centre line less it; start poses closer than it are refused | 0.07, [catalogue] AT9014-x070 |
mover.wheelbase_m | m | At least 0: the rollers’ spread; the body follows the curvature’s mean over it | 0.05 (bounds 0.03 to 0.07), [estimate] |
mover.magnet_length_m | m | The magnet plate’s length over the coils: a mover’s current is shared among the segments by the plate’s length on each | 0.06 (bounds 0.05 to 0.07), [estimate] |
slide.friction_coulomb_n, friction_viscous_n_s_m, friction_smoothing_m_s | N, N s/m, m/s | The rollers’ rolling resistance and drag (effects.joint_friction), to which linear_motor.guide_friction_coefficient times the attraction is added | 0.1 (bounds 0.05 to 0.3), 0.5 (0.1 to 2.0), 0.002, [estimate] |
slide.friction_breakaway_n, friction_stribeck_m_s, presliding_stiffness_n_m | N, m/s, N/m | With effects.slide_presliding (off) | 0.15, 0.001, 1e6, [estimate] |
slide.stroke_m, stop_stiffness_n_m, stop_damping_n_s_m | m, N/m, N s/m | Read, not used: a closed track has no ends | 1.0, 2e6, 2000 |
linear_motor.* | The plate’s attraction to the coils (it holds the mover against the centrifugal force), the pole pitch and the rollers’ friction from the attraction: see [linear_motor] | 300 N, 0.012 m, 0.005, [estimate] | |
segment.thermal_resistance_k_w | K/W | Each segment’s thermal resistance to the surroundings; it warms with the copper loss of the movers’ currents in it (segment.<j>.temperature_rise) | 2 (bounds 1 to 4), [estimate] |
segment.thermal_time_constant_s | s | Its thermal time constant | 600 (bounds 300 to 1200), [estimate] |
axis.s1 to axis.s6: max_velocity_m_s, max_acceleration_m_s2, max_jerk_m_s3 | m/s, m/s², m/s³ | One table per mover (up to axis.s7): its limits. The cams are not held to them | 3, 30, 2000, [estimate] (the motor’s 4 m/s [catalogue]) |
start.pose | m | One position per mover, 1 to 7 movers, rising, each at least mover.length_m ahead of the one before and all within one loop | 0.125 and on by the station pitch 0.503116; flying 0.3, 0.6, 0.940636, 1.553169, 2.36553, 2.978063 |
ratings.settling_tolerance_m | m | As every machine’s (settling) | 3e-5 |
ratings.station_tolerance_m | m | station-settling, per mover, with the index cam only: how far a standing mover may be off its station | 1e-5, [catalogue] AT20xx repeatability ±0.01 mm |
ratings.min_gap_m | m | mover-gap: the least gap between neighbours | 0.002, [catalogue] AT20xx |
ratings.segment_max_current_a | A | segment-current: the highest current in a segment, the sum of its movers’ shares | 48, [catalogue] AT2000 peak |
ratings.segment_max_rise_k | K | segment-temperature: the rise a segment’s loss, averaged over about a pass, settles at | 40 (bounds 30 to 60), [estimate] |
ratings.mover_guide_max_load_n | N | mover-guide-load, per mover: the rollers’ load sqrt((F_a − m v² k)² + (m g)²) | 500 (bounds 300 to 800), [estimate] |
ratings.mover_max_liftoff_ratio | – | curve-holding, per mover: the share m v² k / F_a of the attraction the centrifugal force may take (at 1 the mover lifts off) | 0.7 (bounds 0.5 to 0.9), [estimate] |
The movers’ ratings are optional: one left out is not judged.
[[cycle.segment]]
The cycle is a list of segments, run in order and repeated. All three configs have one. It cannot be edited in the parameter panel; --set "cycle.segment = [{...}, ...]" replaces it whole (TOML inline tables), and so does “Apply” of the app’s optimiser where it changed the cycle’s lifts.
| Key | Unit | Meaning |
|---|---|---|
target | m | Tool pose to move to, one position per axis, inside the strokes |
dwell_s | s | Time to stay there. Rounded to whole profile cycles. With input shaping the dwell starts when the shaped setpoint has arrived |
payload | true/false | State of the gripper once the segment has arrived (with input shaping: once the shaped setpoint has): true picks up or keeps the payload, false releases it. With effects.gripper_time the state is reached when the gripper is done ([gripper]) |
shape | – | Optional, in no shipped file. The shape of this segment’s move, as profile.shape, which it replaces for this segment |
via | m | Optional, in no shipped file. Via points, each one position per axis inside the strokes: the segment then runs a path planned within the axis limits (path::plan, with the transition curves of profile.path_tolerance_m and the rounded corners of profile.corner_tolerance_m; with profile.cycle_timing = "time_optimal" as fast as the motors allow) instead of the straight move: a line to the first via point, a smooth curve (spline) through the others, and a line from the last to target. With via points straight above pick and place and one between, a lift, traverse and lower without a stop; the optimiser writes such segments. One via point is two lines with a stop between. The path is planned from the segment before’s target when the config is read, and refused (cycle.segment[i].via) where it cannot be planned or leaves the strokes. A segment with via points does not blend (corner_blending) with the one before. The first segment of a run starts from the start pose; were its path refused from there, it runs the straight move |
| corners_m | m | Optional, in no shipped file; with via. The via points are then joined by lines (to the first, between them and from the last to target), and their corners rounded within this tolerance in place of profile.corner_tolerance_m: the optimiser writes it for a lift whose two corners it rounds (via points the two corners at the lift’s height, the tolerance 3/16 of the height above the lowest the clearance allows, so that the curves start there). At least 0 |
| valves | – | Optional; a machine with pneumatic cylinders (machines/pneumatic-axis.toml). Commands to cylinders’ valves by the cylinder’s id, given once the segment has arrived, as the gripper acts: { z = "extend" }, "retract" or "centre" (the closed centre of a 5/3 valve; a 5/2 valve stays where it is). The valve switches after its own delay. An unknown id or command is refused (cycle.segment[i].valves) |
| wait | – | Optional, with cylinders. End-position sensors the segment’s dwell waits for, ["z.extended"] or "z.retracted": the dwell counts from when all of them report (each after its sensor delay), so the next segment, an X move say, starts only with the cylinder there. A sensor that never reports holds the cycle there |
T and E: lower, dwell (grip), lift, traverse, lower, dwell (release), lift, traverse back; six segments. S: a shuttle between x = 0.9 and x = 0.1 with a dwell of 0.1 s at each end; two segments.
[path]
A path in place of the cycle, optional and in no shipped file: sim-cli verdicts, search and optimise --path FILE (and Python’s path=) put it into the config, and a config file may have it itself. With it every analysis of the cycle (analyze without a motion, verdicts, search, optimise, sensitivity, the bands) plans this path from where the machine stands and measures its run (the plan and 0.3 s of rest, repeated with effects.thermal_warm_start as a cycle is) instead of the segments, which stay in the file unused. Without the table, or with an empty program, the cycle runs as before.
| Key | Unit | Meaning |
|---|---|---|
file | text | The file name the program was read from: its extension picks the reader (.nc G-code, .src KRL, .mod RAPID, else a path file or robot moves as CSV), as --path picks it |
program | text | The text of the path file or program |
time_optimal | true/false | Timed as fast as the motors allow (--time-optimal); else within the axis limits. Left out: false |
[program]
Optional and in no shipped file; read with [path]. On a machine whose tool space has an orientation (axes x, y, z, rx, ry, rz) a robot program’s speed (KRL $VEL.CP, RAPID’s TCP speed) is the tool centre’s, the position alone, and the reorientation is limited on its own: a move takes the longer of the tool centre’s distance over its speed and the angle between the two orientations over this rate. A move that only reorients runs at it. G-code keeps its feed rule.
| Key | Unit | Meaning |
|---|---|---|
orientation_speed_rad_s | rad/s | How fast a robot program turns the tool. Left out: 500 degrees per second (8.7266 rad/s), the default of ABB RAPID’s v_ori |
[conveyor]
Picking from a moving belt conveyor (goal 3), for every machine whose tool axes are Cartesian positions: the deltas D3, D2 (x and z only: a belt along x), D4 and the linear delta, and the gantries. Only in C and the conveyor examples beside the other machines’ defaults (T-gantry: a belt at 0.1 m/s, a part every 5.0 s, its pass about 3.6 s; D2, D4, linear delta: 0.3 m/s, a part every 1.0 s, each picking all 60 a minute); no default config has the table, and a config without it runs its [[cycle.segment]] as before. With it (and enabled = true) the cycle (--cycle, analyze, verdicts, the app’s cycle) is one pass per part instead of the segments, which stay in the file unused: from rest above the place to above the part, meeting it with the belt’s speed; down onto it, the grip moving with it, up; to above the place, down, the release (moving with a second belt, if the place is on one), up; and, from a moving place, to rest above it. How each move is planned, and what is a pick or a miss, is in the model reference. All keys are choices of the process, not properties of the machine: no [bounds]. Poses and directions are tool coordinates, one value per axis (0 on the D4’s rotation).
| Key | Unit | Meaning | C |
|---|---|---|---|
enabled | true/false | The cycle picks from the belt; false runs [[cycle.segment]] | true |
direction | – | Along the belt, one value per axis; scaled to length 1, not all 0 | [1, 0, 0] |
speed_m_s | m/s | The belt’s speed, not negative (0: parts stand where they come) | 0.3 |
ramp_s | s | The belt reaches its speed this long after the start, at a constant acceleration (0: at once). Parts are picked during the ramp too, met where they are with their speed then | 0 |
origin | m | The grip pose of a part where it enters the belt, belt position 0 | [−0.5, 0.25, −0.8] |
length_m | m | The belt’s length from the origin, above 0; the 3D view draws it and the parts on it | 1.0 |
pitch_s | s | Parts pass the origin at n pitch_s + each of arrivals_s, n = 0, 1, …; above 0 | 1.0 |
arrivals_s | s | The times within a pitch, at least one, each from 0 to below pitch_s | [0.0] |
window_m | m | The stretch along the belt from the origin in which a grip may run, [start, end], 0 ≤ start ≤ end ≤ length_m. A part the tool would meet before the start is waited for; one whose grip would end beyond the end is missed | [0.3, 0.8] |
lift | m | Added to a grip or place pose for the pose above it, which the tool comes from and lifts to | [0, 0, 0.05] |
grip_s, release_s | s | How long the tool moves with the part while the gripper closes, and with the place while it opens; the payload is attached at the end of the grip and let go at the end of the release | 0.035, 0.035 |
place | m | The place pose | [0, −0.3, −0.8] |
place_direction, place_speed_m_s | –, m/s | A second belt the place lies on, as direction and speed_m_s; speed 0: a fixed place | [1, 0, 0], 0 |
tracking_tolerance_m | m | The verdict pick-tracking: the most the tool may be from the part along the belt during a grip, above 0 | 0.001 |
The results: analyze says the picks a minute (60 / the measured pass’s time, one part per pass), the tracking error and the parts missed a minute on its error stream; verdicts judges pick-tracking against tracking_tolerance_m and parts-missed (parts a minute that pass the window unpicked) against 0.
[gripper]
The gripper of the [[cycle.segment]] cycle, with effects.gripper_time (in no shipped file; any config may add the switch and the table, and a config without them grips and lets go at once on arrival, as before). Where a segment changes the gripper’s state, its dwell lasts at least the gripper’s time (rounded up to whole profile cycles) and the payload comes or goes when the gripper is done. A conveyor’s pass keeps its own grip_s and release_s. The model is in the model reference; the verdict gripper-hold needs ratings.gripper_safety_factor as well.
| Key | Unit | Meaning | Example (estimate) |
|---|---|---|---|
kind | – | "mechanical" (jaws) or "vacuum" (a cup and a vacuum generator) | "vacuum" |
close_s, open_s | s | Jaws: the time to close and to open, from the gripper’s data sheet (a pneumatic parallel gripper of 16 to 25 mm stroke: 30 to 80 ms) | 0.05, 0.04 |
cup_volume_m3 | m³ | Vacuum: the volume evacuated, the cup and its hose to the generator (a 30 mm bellows cup and 0.5 m of 4 mm hose: about 2e-5, bounds 1e-5 to 4e-5) | 2.0e-5 |
generator_flow_m3_s | m³/s | The generator’s suction flow (a small ejector: 10 to 20 l/min, 1.7e-4 to 3.3e-4) | 1.67e-4 |
vacuum_pa | Pa | The vacuum it reaches, as a pressure difference to the air (ejectors: 60 to 90 kPa) | 80000 |
holding_pressure_pa | Pa | The vacuum switch’s level at which the grip counts as made and the move starts, below vacuum_pa | 60000 |
vent_flow_m3_s | m³/s | The flow that vents the cup (an ejector pulse: about four times the suction flow) | 6.67e-4 |
release_pressure_pa | Pa | The vacuum at which the part is let go, below vacuum_pa | 10000 |
cup_area_m2 | m² | The cup’s effective area (30 mm: 7.07e-4) | 7.07e-4 |
friction_coefficient | – | The cup’s friction on the part sideways (rubber on dry sheet metal 0.5, on oily 0.1 to 0.2) | 0.5 |
With the example the cup grips in 0.12 ln(80/20) = 0.166 s, lets go in 0.03 ln 8 = 0.062 s and holds 42.4 N. No vendor table of cups and generators is in catalog/ yet: the example values are typical of vendors’ catalogues (Festo, Schmalz, Piab) but not taken from one.
Model reference
The equations the simulator solves, taken from the code and its comments. Each section names the source file. Config keys are written as table.key; their units are in the config reference.
- Structure of one time step
- Integrator
- Components: belt, guide friction, motor shaft, slide presliding, tooth meshing, gearbox, hard stops, drive and motor
- Machines: T-gantry, single axis, delta picker D3, linear delta, toggle press
- Motion: controller, profile generator, corner blending, path planners, input shaper
- Analysis quantities, verdicts, other analyses, effect views, fit
- Known shortcuts, other simplifications
Notation: x, z tool axes; a, b pulley angles (after the gearbox); φ motor shaft angle; r pulley radius; i gear ratio; T belt tension; τ torque; ω speed; g = 9.80665 m/s².
Structure of one time step
Source: sim.rs, control.rs.
One base step sim.dt_s (62.5 µs):
- The controller reads the motor angles and speeds from the state at the start of the step and runs the loops that are due:
- profile generator, every
profile.cycle_s(1 ms): new tool setpoints, input shaping, inverse transformation, fieldbus delay - position loop, every
drive.position_cycle_s(1 ms) - velocity loop, every
drive.velocity_cycle_s(125 µs) - current loop, every base step: the voltage each winding gets over the step
- profile generator, every
- The machine is told whether the payload is attached, whether the cycle dwells and whether the drives are disabled.
- The mechanics and the winding currents are integrated together over the base step with the voltages held constant (zero-order hold, as an inverter holds its voltage over a PWM period); the motor torque follows the current within the step. With the drives disabled, the mechanics alone, with no torque from the current; a servo rotor that turns keeps the drag of its iron loss (
effects.iron_loss), held over the step at the step start’s speed (iron loss). - The drives take the step’s end: current, electrical energy, copper loss and shaft work; then the DC links (a shared one after all drives), the trip, and the winding’s heating.
- The machine ends the step (
Machine::after_step: tooth jumps, the gearboxes’ and slides’ friction anchors), and witheffects.part_heatingthe parts warm by the losses at the step’s end.
The simulation never looks at the wall clock. The same config and the same commands give bit-identical results.
Integrator
Source: integrate.rs.
Classical fourth-order Runge-Kutta with sim.substeps (4) sub-steps per base step, so the mechanical step is 15.6 µs. The integrator treats the state as one vector and does not know which entries are positions. The simulation (Sim::step in sim.rs) hands it the machine’s state with seven entries per drive appended (WINDING_STATES), and one more for the work of an obstacle’s push (effects.crash). For the servo the first four are the winding current and, from zero at the start of the step, the electrical energy ∫ u i dt, the copper loss ∫ R i² dt and the shaft work ∫ τ ω dt; the other three rest. A stepper and an induction motor keep their phase currents or fluxes there. The machine and the core know nothing of the windings; the drive gives their rates (DriveParams::winding_rates).
Assumptions: the winding voltages are held over a base step (zero-order hold), as an inverter would; the torque follows the current within the step. Friction, backlash and belt slack are not handled as events; they are integrated through with the fixed step. The step-size test (halving the step changes the travel by less than 1 %) is what justifies that.
Belt sections
Source: Belt in mech.rs.
A section is the belt between two points that hold it: a driven pulley or a clamp. Idlers in between are free, so the tension is the same along the whole section. A section has a geometric length geo (set by the pose) and holds mat of unstretched belt (changed by the pulleys feeding belt in or out).
e = geo − mat stretch
k = EA / mat stiffness
T_el = EA · e / mat elastic tension
T = T_el + c_s · (d geo/dt − d mat/dt) with damping
tension = max(0, T) with effects.belt_slack
Damping variants. c_s is one of:
| Switches | c_s |
|---|---|
belt_damping on, belt_material_damping off | belt.damping_n_s_m, the same for every section whatever its length |
| both on | belt.damping_time_s · EA / mat: in proportion to the section’s stiffness, so a short section damps more |
belt_damping off | 0 |
Slack. With effects.belt_slack the tension cannot go below zero. With the switch off the belt can push. Each machine counts the seconds during which any section has a tension of zero or less (signal belt.slack_time). The teeth jumping over a pulley is an effect of its own (belt tooth jump).
Energy-consistent form. The force that pulls on the clamps and the load is tension. The force on the belt material that a pulley feeds into the section is larger:
material = tension + T_el · e / (2 · mat) = tension + T_el · strain / 2
V = ½ · EA · e² / mat stored energy
Stretched belt carries its strain energy along when it passes a pulley, and material is −∂V/∂mat. The pulleys are driven with material, the load with tension. The factor is about 1.0003 and makes the model conserve energy exactly. A slack section (e < 0) has tension and material force both max(0, T) and no stored energy.
Pretension and pulley radius. A section of length geo at pretension T₀ holds geo / (1 + T₀/EA) of unstretched belt. The pulley radius is taken to hold at pretension, so a pulley feeds r_mat = r / (1 + T₀/EA) of unstretched belt per radian. That makes the kinematics exact for an evenly tensioned belt.
Tooth stiffness (effects.belt_tooth_stiffness). The teeth in mesh on a driven pulley are a spring belt.tooth_mesh_stiffness_n_m in series with the section. It is modelled as extra belt length EA / k_tooth, added to the geometric length once per driven pulley the section ends at. Then k = EA / mat is belt and teeth in series: 1/k = L/EA + 1/k_tooth.
Belt mass (effects.belt_mass). Lumped on the pulleys as inertia, not spread along the belt: see each machine.
Temperature (effects.temperature). EA is multiplied by temperature.belt_stiffness_scale; with effects.thermal_feedback also by the belt’s stiffness factor at its temperature (ThermalFeedback::belt_stiffness_factor, see temperature feedback). A product that leaves EA at zero or below is refused.
At rest. The unstretched belt per section at an equilibrium is found by bisection from two conditions: the tension differences the load needs, and the total amount of belt, which is fixed.
Not modelled: the tooth’s contact beyond its stiffness and the jump below, wear, a belt mass that moves with the load. The spans’ sideways vibration is reported as a frequency only (below).
Belt tooth jump
Source: ToothJump in mech.rs; effects.belt_tooth_jump, off by default, elastic model only (the rigid model has no tensions). Needs effects.belt_mass: the belt’s mass is what slides.
Climbing out. At a driven pulley with the sections a and b on either side (tensions T_a, T_b), the teeth climb out of the grooves when
|T_a − T_b| > c · max(0, min(T_a, T_b)) c = k · z_m · p / r
Each of the z_m teeth in mesh (ratings.belt_teeth_in_mesh) is held in its groove by the tension’s radial pull over one pitch, T · p / r, and pushed out by its share of the effective pull times the tangent of an effective flank angle; k = 1 / that tangent is belt.tooth_jump_factor (an estimate, 2.4, bounds 1.2 to 4.8: flank, friction and the tooth’s give together, not derived from the tooth profile). Summed over the teeth the pull the pulley takes is proportional to the slack side’s tension, as the torque at which timing belts jump is reported to rise with their installation tension (no maker’s chart was read for the factor). On a pulley drive with both sides at P ± F/2 the teeth jump at F = c P / (1 + c/2): with 10 of 25 teeth in mesh, c = 2.4 · 10 · 5 mm / 20 mm = 6 and F = 1.5 P, between the makers’ rule of a pretension at least the effective pull (slack side at P/2) and the slack side going slack at 2 P. With the EXCT-30’s 10 of 20 teeth c = 7.54 and F = 1.58 P.
The jump. Per driven pulley the elastic state carries six more entries (JUMP_STATES): the belt’s slip over the pulley u (m of belt), its rate w, the direction of a jump under way (0 while in mesh), u where it began, the jumps counted and the ridge force F_s. The sections see the pulley angle plus u / r, so a slip of u feeds u · r_mat / r of material from one section into the other. While the teeth are out (decided after each base step, Machine::after_step):
m · (r · d²a/dt² + d²u/dt²) = F − F_s · sin(2π d / p) belt, F = belt torque / r its pull towards +u, d = u − u_start
J' · d²a/dt² = gear + r · F_s · sin(2π d / p) + mesh pulley, J' = J_pulley − m r²
F_s = c · min(T_a, T_b) at the moment it climbed out, held over the jump
m is the belt’s mass that the machine lumps on that pulley (single axis: the whole belt; T-gantry: half of it on each). The belt moves on its own and the pulley holds it back with a ridge force, the potential F_s p / (2π) (1 − cos(2π d / p)); with its kinetic energy ½ m ((v + w)² − v²) on top of what the pulley’s lumped inertia counts (v = r da/dt), the energy is exact. Where the belt crosses the next groove (|d| = p) the teeth fall in: u is set to u_start ± p, the jump is counted (pulley.<motor>.tooth_jumps), and belt and pulley run on at the speed that keeps their momentum (a plastic impact). Where it slides back over the groove it left, it falls in there, uncounted. Where the pull settles below the ridge the belt stays half out, carrying the load through the ridge. What changes the energy at once (the start, the landing) is reported as power.tooth_jump over that base step, so the energy budget closes; a jump is found at the end of a step and lands up to one step late, so in a run that ratchets the budget’s remainder grows (the single axis at 90 N of pretension, sim-cli analyze single-axis --set effects.belt_tooth_jump=true --set belt.pretension_n=90 --budget FILE: 11.18 J, 15 % of the 74.59 J supply, in the jumps and 0.37 % unaccounted at the base step; the test jumping_teeth_fail_the_check_and_close_the_energy_budget records 0.21 % at half the step and 0.14 % at a quarter and holds it within 1 %).
Signals: pulley.<motor>.tooth_jumps (count) and pulley.<motor>.tooth_slip (u, m), power.tooth_jump (W). Verdict belt-tooth-jump: the jumps during the measured pass, which must be 0.
Assumptions: one jump law per pulley, with the configured teeth in mesh or, with effects.belt_wrap, those of the wrap at the pose (Belt wrap); no radial motion of the belt, so the energy with which the tension presses a tooth back into its groove is not modelled (a tooth that climbs out and falls back takes nothing); the teeth themselves are not hurt (their load is belt-tooth-load).
Belt wrap
Source: wrap_angle in mech.rs, Machine::belt_wraps; effects.belt_wrap, off by default (so that earlier results stay as they were). The teeth in mesh on a driven pulley are counted from the angle φ by which the belt wraps it at the pose, in place of ratings.belt_teeth_in_mesh:
z_m = φ / (2π) · 2π r / p = φ · r / p teeth in mesh
lean = atan2(h, d) − asin((r + r₂) / sqrt(d² + h²)) per span, to the next wheel at (d, h), radius r₂
φ = π − lean_upper − lean_lower
r₂ is positive where pulley and wheel lie on either side of the belt, negative where on the same side, 0 for a clamp; a span that leaves level leans by 0. With it the tooth-jump law’s c = k · z_m · p / r becomes c = k · φ, whatever the pitch and radius, and the belt’s tooth load (belt-tooth-load) counts φ · r / p teeth (at most 12) at the smallest wrap of the measured pass.
Both machine crates give their geometry: the T-gantry its carriage idlers (idler.radius_m) beside the carriage at the heights ±(r + r_i), the single axis the clamp at the pulley’s height and the idler as large as the pulley at the far end. In both the spans leave the motor pulleys level at every pose: φ = π wherever the carriage is, 12.6 teeth on the default configs’ pulley (r = 20 mm, p = 5 mm, against the 10 configured), 10 of the EXCT-30’s 20. The tooth-jump limit is then 2.4 π = 7.54 times the slack side, against 6 with the configured 10 teeth. Machine files give no geometry and keep the configured value.
Assumptions: the wheels stand where the scene draws them; the belt’s sag and the teeth’s give do not change the wrap.
A machine file works the wrap out for any layout (geometry::wrap in sim-netlist): each wheel has a radius signed by the way the belt runs round it (+ anticlockwise, − clockwise, 0 a clamp), the straight run from wheel a to wheel b leaves in the direction t = cos α e + sin α e⊥ with e the unit vector between the centres, D their distance and sin α = −(ρ_b − ρ_a) / D, and the wrap is how far t turns round the pulley, in its sense, from 0 to 2π. For the crates’ layouts that is the φ above (machine files).
Sideways vibration of the belt spans
Source: span_frequency, span_detuning, drive_excitations in mech.rs; each machine’s span_signals; effects.belt_span_vibration, off by default. Signals and a check only: nothing acts back on the motion.
Each free span between two of the points that guide the belt (pulleys, idlers, clamps) is a string at the live tension of its section:
f1 = sqrt(T / μ) / (2 L) μ = belt.mass_kg_m, L the span's length, T its section's tension; 0 when slack
The belt’s own speed would lower it by 1 − v² / c² (c = sqrt(T / μ), 55 m/s at 300 N and 0.1 kg/m), below 0.2 % here, left out. The drives excite the belt at the tooth mesh |v_pulley| / p and, with effects.torque_ripple, at the motors’ ripple and cogging orders times their turns per second. belt.span_detuning is the smallest min |f1 − f_e| / f1 over spans and excitations, capped at 1 (a span far from every excitation, a slack span or a machine at rest). Spans: single axis 3 (motor pulley to carriage, motor pulley to idler, idler to carriage), T-gantry 8 (clamp to carriage idler, carriage idler to motor A, motor A to the lower left carriage idler, down to the Z-bottom idler and up again, to motor B, motor B to the carriage idler, carriage idler to the clamp), their lengths those of the sections’ geometry without the teeth in mesh.
Verdict belt-span-resonance: the lowest belt.span_detuning while the axes run at a steady speed (every acceleration setpoint 0, some speed setpoint not), sampled once per millisecond, must stay at or above ratings.belt_span_resonance_band (0.1). A sweep through a resonance while speeding up passes in moments; a cruise on one does not. On a linear axis the spans’ lengths change during a cruise, so their frequencies sweep, and a sweep across an excitation in a cruise fails the check as well: it is slow, the ±10 % band of a 200 Hz span 0.5 m long takes 0.2 L / v = 0.1 s at 1 m/s, 20 periods, enough for a lightly damped span to ring up. The default T-gantry fails it so (sim-cli verdicts t-gantry --set effects.belt_span_vibration=true: detuning 6.44e-6; its Z axis runs at 0.4 m/s: the tooth mesh at 0.4 m / 5 mm = 80 Hz meets spans 4 and 5, down to and up from the Z-bottom idler, whose frequency changes with z). Belt makers ask to keep a span’s natural frequency away from the drive’s excitations without a figure; 10 % is the separation usually kept from a resonance (an estimate).
Not built: the amplitude. A lumped first-mode oscillator driven by the tension’s fluctuation would need a damping of the sideways motion that nobody publishes and a forcing term (tension times the span’s curvature) that has no measurement to be checked against; the frequency and the check need neither. Only the first mode; its harmonics n f1 are not checked.
Guide friction (LuGre)
Source: Lugre in mech.rs.
One internal state s per contact, the bristle deflection:
g(v) = λ · ( F_c + (F_s − F_c) · exp(−(v / v_s)²) )
ds/dt = v − σ₀ · |v| · s / g(v)
F_f = σ₀ · s + σ₁ · ds/dt + b · v
F_c coulomb_n, F_s stiction_n, v_s stribeck_m_s, σ₀ bristle_stiffness_n_m, σ₁ bristle_damping_n_s_m, b viscous_n_s_m. In steady sliding F_f = g(v)·sign(v) + b·v. A stiction_n below coulomb_n counts as coulomb_n (F_s = max(F_s, F_c)): breaking away never takes less than sliding. That matters where the uncertainty bounds of the two overlap, as for the X guide in exct-30.toml. With effects.temperature, F_c, F_s and b are multiplied by temperature.friction_scale.
Load dependence (effects.load_dependent_friction). The factor λ scales the Coulomb and stiction levels with the guide load:
λ = (preload + |load|) / (preload + |nominal load|)
The nominal load is the load the levels were given for. What the load is, per machine:
| Guide | Load | Nominal load |
|---|---|---|
| Single axis | m · g · cos(incline), m with the payload if attached | carriage alone |
| T-gantry X | (carriage + Z axis + payload) · g + |tilt| | (carriage + Z axis) · g |
| T-gantry Z | |side| + |tilt| | 0 |
The bristle state settles at the rate σ₀ |v| / (λ g(v)). Stiff bristles on a light contact at speed take that beyond what the integrator follows (1e6 N/m, 12 N, 2.5 m/s: 2.1e5 1/s, against 1.8e5 1/s for RK4 at the default step), and the friction force then grew without bound. Above 1e5 1/s the bristles therefore settle at 1e5 1/s, with their force scaled by 1e5 / rate so that sliding still takes the level. No shipped config reaches that with its own values; the EXCT-30’s bounds do, with the X guide’s Coulomb level low and its bristle stiffness high together.
with, on the T-gantry, side = m_z · a_x and tilt = 2 · side · (z_com_drop − z) / guide_spacing. The viscous term does not scale.
Simplification. a_x here is not the true acceleration. It is the X acceleration that the commanded motor torques would give a loss-free rigid machine at the pose, over the rigid model’s mass matrix (commanded_ax in the T-gantry crate):
F_x = i (τ_A + τ_B) / r F_z = i (τ_A − τ_B) / r − W_z
a_x = (F_x · M_z − M_xz · F_z) / (M_x · M_z − M_xz²)
M_x the masses X moves (carriage, Z axis, payload, the motors’ and idlers’ equivalent masses, the cable chain, the belt runs), M_z those Z moves, M_xz the belt runs’ coupling of X and Z. The Z axis’s weight is in F_z as the rigid model has it (M a = F + gravity): without it the torque that holds the Z axis up would, through the coupling, count as X acceleration. The true acceleration would make friction depend on itself, and its absolute value would turn every belt vibration into extra friction. The same loads are what the signals axis.<id>.guide_load report.
Feedforward and planner. The friction feedforward (Lugre::feedforward, see fine interpolation and precontrol) takes g(v) · tanh(v / v_s) + b · v at the load at rest. The time-optimal planner takes each guide’s Coulomb and viscous part as c + b v at the motors (Machine::rigid_friction) and its Stribeck rise apart, per guide (Machine::rigid_friction_rise): λ (F_s − F_c) · exp(−(v_p / v_s,p)²) at the path speed v_p, with v_s,p the guide’s Stribeck speed over its axis’s rate along the path, so that the planner holds room for the most it takes at the speeds up to v_p. The machine files give it (path planners).
Motor shaft: friction, ripple, cogging
Source: ShaftFriction, Ripple in mech.rs.
g(ω) = s_seal · (T_c + (T_s − T_c) · exp(−(ω / ω_st)²)) sliding level, from breakaway to Coulomb
τ_shaft = g(ω) · tanh(ω / ω_s) + b · ω + T_0(ω, ν) friction opposing the speed
τ_out = τ · (1 + ρ · sin(n_r · φ)) + T_cog · sin(n_c · φ) torque at the shaft for a torque τ from the current
T_c friction_coulomb_nm, b friction_viscous_nm_s_rad, ω_s friction_smoothing_rad_s; ρ ripple_fraction, n_r ripple_order, T_cog cogging_nm, n_c cogging_order. The Coulomb step is smoothed with tanh so that a shaft at rest sees no chattering torque. Ripple and cogging are one harmonic each.
- Breakaway (
effects.motor_stiction). The level falls from the breakaway torque T_sfriction_breakaway_nmat rest to T_c along a Stribeck curve over ω_stfriction_stribeck_rad_s. A breakaway below T_c counts as T_c, as for the guides; off, T_s = T_c. With the tanh smoothing the shaft holds up to T_s near rest as a steep viscous slope, not as a stuck state: a drive that pushes below T_s creeps at a fraction of ω_s. - The gearbox’s no-load torque T_0 (
effects.gearbox_drag, see gearbox) acts on the shaft too: the motor turns the gearbox’s input. - Seals over temperature (
effects.thermal_feedback). On a geared motor the shaft’s seal is the gearbox’s input seal and runs in its lubricant: s_seal = (ν / ν_ref)^m with mthermal_feedback.seal_viscosity_exponentand ν the gearbox’s lubricant at its temperature (see temperature feedback); 1 without the feedback.
Assumptions: the tanh smoothing stands for the bristles of a friction state (no presliding displacement, no dwell-time growth of the breakaway); the seal exponent is an estimate (0.33, bounds 0 to 0.5): no seal maker’s curve of breakaway over temperature was read.
Slide: presliding friction
Source: ShaftFriction::presliding_force, torque_at, commit in mech.rs; read by RotaryJoint::linear_from_config in joint.rs, committed by JointMachine::after_step in chain.rs.
The joint kit’s slides (screw, rack and linear motor axis, the SCARA’s quill) smooth their guides’ Coulomb step with tanh, as the motor shafts do. A load below the level then makes the carriage creep at v_s · atanh(F / g) (0.49 mm/s for a fifth of the level at v_s = 2 mm/s), and a drive at rest holds no force against it: its integrator unwinds as the carriage creeps. With effects.slide_presliding the level is a state of its own, Dahl’s law over the travel x:
g(v) = F_c + (F_s − F_c) · exp(−(v / v_st)²) level, from breakaway to Coulomb
z(x) = s g − (s g − z0) · exp(−σ |x − x0| / g) from the anchor [x0, z0], s = sign(x − x0)
F_f = z(x) + b v friction opposing the motion
F_c is the Coulomb level of [slide] with the nut’s preload drag (screw) or the attraction friction (linear motor), F_s friction_breakaway_n plus the same, v_st friction_stribeck_m_s, σ presliding_stiffness_n_m, b the viscous friction. After each base step the anchor moves to where the step ended, [x, z(x)] (Machine::after_step; Machine::memory carries it, so a snapshot restores it). Sliding one way the force goes to ±g within a few g / σ; at rest it stays where it is, however long, since the travel and not the time moves it; at a reversal it turns over a presliding travel, through zero after g ln 2 / σ from a sliding level. Before the first step it is 0. Off, the friction is the smoothed step as before, to the bit.
Assumptions and shortcuts: Dahl’s law closes no small loop, so a carriage that rings on its screw while a load pulls it moves on a little with each swing until the ringing has died (12 µm on the screw axis inclined by 5° with its drive disabled, a_presliding_slide_holds_its_load_without_creeping); no damping of the bristles (LuGre’s σ₁), no dwell-time growth of the breakaway; the level is evaluated at the speed within the step; the motor shaft’s own friction stays smoothed. A reload (Sim::reconfigure) starts the state again from 0.
Tooth meshing
Source: ToothMesh in mech.rs.
A force along the belt at each driven pulley, periodic in the belt travel:
F_mesh = F_t · sin(2π · travel / pitch)
F_t belt.tooth_force_n (0 with effects.tooth_meshing off), pitch belt.tooth_pitch_m. It acts on the pulley as the torque r · F_mesh(r · angle).
Gearbox
Source: Gearbox in mech.rs.
Between motor shaft (angle φ) and pulley (angle θ). Stiffness, damping and backlash are at the output side.
twist = φ / i − θ
e = max(|twist| − β/2, 0) twist beyond the dead zone; β = backlash_rad
ẇ = dφ/dt / i − dθ/dt the twist's rate
τ = sign(twist) · f(e) + z(x) + c_g · ẇ while e > 0, else 0; z the hysteresis (below), x = sign(twist) · e
τ_out = τ · η^t t = tanh(τ · ω_out / 0.5 W) ≥ 0, driving
τ_out = τ · (η · r_b)^t t < 0, driven back (η · r_b at most 1)
τ_rotor = τ / i reaction on the motor shaft
r_b (Gearbox::back_ratio) is the efficiency driven back over the one driving: 1 for a gear that loses alike both ways, so that the load driving back gets τ / η; a screw sets it from its lead angle (screws and worms). Without play (no backlash and no lost-motion band) the flanks touch at zero twist too, where the hysteresis holds.
The spring f(e), as gearbox makers measure the torsional characteristic with the input locked:
f(e) = K1 · e² / (2 b) e < b: the lost-motion band, the flanks come into full contact
f(e) = F(e − b/2) beyond it
F(x) = K1 · x x ≤ T1 / K1
F(x) = T1 + K2 · (x − T1 / K1) up to T2
F(x) = T2 + K3 · (x − T1 / K1 − (T2 − T1) / K2) beyond
The band behind a converter. Behind a screw, rack or drum (Converter::apply_back in transmission.rs) the converter’s spring (compliance c, in m/N) is in series with the flanks, and over the band the flanks stiffen while the converter’s spring does not (Gearbox::band_compliance). With the flanks’ own stiffness k_f = K1 / (1 − c K1) and T_b = k_f b / 2 the torque at which they leave the band:
e = sqrt(2 b T / k_f) + c T T < T_b: in the band, a quadratic in sqrt(T)
e = b/2 + T / K1 (and the segments above) beyond it; 1 / K1 = 1 / k_f + c
The band itself is the gearbox’s angle times the lever; the line beyond the band keeps its offset b/2. The hysteresis’s friction is scaled so that its loop is as wide at the joint as the gear’s, 2 · lever · T_h / K1, and its reversal stiffness becomes series(K1 + σ) − series(K1). Without the converter c = 0 and f(e) = K1 e² / (2 b) as above. Test: the_gear_behind_a_converter_is_in_series_with_its_spring_over_the_band_and_the_hysteresis (transmission.rs).
b lost_motion_band_rad and T_h = K1 · w / 2 with w hysteresis_rad (effects.gearbox_lost_motion, else both 0); T1, T2, K2, K3 stiffness_t1_nm, stiffness_t2_nm, stiffness_k2_nm_rad, stiffness_k3_nm_rad (effects.gearbox_stiffness_curve, else T1 = T2 = ∞: one stiffness K1 = stiffness_nm_rad). The twist at a torque T is then Harmonic Drive’s T / K1, T1 / K1 + (T − T1) / K2 or T1 / K1 + (T2 − T1) / K2 + (T − T2) / K3 (plus b/2 past the band). T_h is a friction in the flanks and bearings: loading and unloading run on curves apart by 2 T_h / K1 = w in angle, Harmonic Drive’s “hysteresis loss” (1 arcmin for sizes 25 and 32 at ratio 50 and up). It is a state, Dahl’s friction model on the contact twist x (the twist beyond the backlash, signed), in parallel with the spring:
dz/dx = σ · (1 − sign(ẋ) · z / T_h) |z| < T_h, σ = gearbox.hysteresis_stiffness_factor · K1 (1 where the key is absent)
τ = f(e) · sign(twist) + c · ẋ + z
Each gearbox keeps the anchor (x₀, z₀) where the last base step ended (Gearbox::commit from every machine’s after_step); within a step z = s T_h − (s T_h − z₀) exp(−σ |x − x₀| / T_h), s the sign of x − x₀, which is Dahl’s law solved exactly for a twist that runs one way. Loaded far one way z reaches ±T_h and the loop is w wide at zero torque; at rest the gear holds the z it stopped with; at the small amplitudes of a frequency response z is a spring of σ beside K1 (the gear is K1 + σ stiff there, not locked). The energy is the spring’s plus z² / (2σ), the hysteresis takes s · ẋ · z² / T_h, so the energy balance holds with all of it. Tests: the_hysteresis_loop_is_as_wide_as_given_and_holds_its_torque_at_rest (T_h = 1.4545 N m on K1 = σ = 1e4 N m/rad: zero torque at ±1.4545e-4 rad after loading to ±0.01 rad, −1.4545 N m held at zero twist, z = T_h (1 − 1/e) = 0.919419 N m at x = T_h / σ, 0.290592 W lost at 0.5 rad/s either way), a_gear_with_hysteresis_answers_small_signals_as_its_stiffness (1e-7 rad at 100 Hz: (K1 + σ) in phase within 1 %, almost nothing in quadrature; the old rate-switched friction gave 45 times the spring’s torque in quadrature).
No-load running torque (GearDrag, effects.gearbox_drag), at the input, added to the motor shaft’s friction:
T_0(ω, ν) = T_0,ref · (ν / ν_ref · |ω| / ω_ref)^(2/3) · sign(ω)
η_teeth = 1 / (1 / η − i · T_0,ref / T_η) at most 1
η(T2, ω, ν) = T2 / (i · (T2 / (i · η_teeth) + T_0(ω, ν))) the gearbox's efficiency map
T_0,ref no_load_torque_nm at ω_ref no_load_speed_rpm and 20 °C (thermal_feedback.reference_c), as makers quote it (Neugart: “average idle torque”; WITTENSTEIN: T012 “at n1 = 3000 rpm and 20 °C gearbox temperature”; Harmonic Drive: charts over speed and temperature). The exponent 2/3 is Palmgren’s law for the drag of rolling bearings in oil, M0 ∝ (ν n)^(2/3) (SKF’s rolling bearing catalogue), which carries both speed and viscosity. Harmonic Drive’s chart of a size 32 gear at 2000 r/min falls from about 50 to 27 N cm from 20 to 40 °C, a factor 0.54; the law with B = 4000 K gives 0.56. With the drag the configured efficiency η (gearbox.efficiency) holds at the output torque T_η efficiency_torque_nm at ω_ref and 20 °C: the teeth’s own efficiency η_teeth is what is left of it. Below T_η, at speed and in the cold the drag takes a larger share, so the efficiency falls, as the makers’ charts show (Siemens’ gearbox manual: in the partial load range, especially cold, the efficiency is always lower). This one map serves planetary, strain wave and worm gears; its points are tested in the_efficiency_map_falls_at_part_load_slow_speed_and_in_the_cold_as_calculated. With the drag on, temperature feedback takes the viscous share of the efficiency as 0: the drag is that share.
-
Stiffness and backlash. Inside the dead zone nothing is transmitted. With
effects.gearbox_backlashoff, β = 0. -
Flanks cannot pull. With backlash on, if the damping term would reverse the torque while the flanks separate (τ · engaged < 0), the torque is zero. With backlash off the connection is a plain spring-damper and can pull, as a coupling does.
-
Efficiency. The loss is on the output torque. When the gearbox drives the load (power positive) the output gets τ · η; when the load drives back it gets τ / (η · r_b), τ / η for a gear that loses alike both ways. The exponent fades with tanh below 0.5 W of transmitted power, so a gearbox at rest has no torque step. Near zero power that fade is a damper of up to τ² |ln η| / 0.5 W on the output’s speed; held at a large torque it is stiffer than a sub-step h resolves on the inertia J the gear drives there, so the simulation cuts that base step’s sub-steps into ⌈c h / (κ J)⌉, κ = 1 (0.5 gives the same holds to 1e-11 at twice the cuts, 2 holds a lift on a compliant base 3 N off), at most 256 (
Machine::substeps_wanted, from the step’s start, for a gear within 40 widths of zero power; the joint machines and the scissor file tell it): the model is the same and the results converge to it. A lift held at 27 kN against a ceiling: 28 225.43 N (28 242.9 N at the plain 4 sub-steps, 28 225.43 N at 64), budget 4.2e-8 of the supply (2.3e-4 before); on a compliant base 5.3e-8 (1.9e-4); a six-leg platform at 52.95 kN against a slab, the 64-sub-step run’s force to 2e-7 (53.4 kN at the plain 4), budget 2.7e-7, its 1.5 s hold 187 s instead of 40 s. No default cycle reaches it. Witheffects.gearbox_efficiencyoff, η = 1. -
Mesh friction (
effects.gearbox_mesh_friction, in place of the faded factor). The efficiency’s loss is a friction in the mesh, at the output against the housing, in proportion to the torque the gear passes and against the output’s motion at any speed, and it sticks at rest:τ_s = sign(twist) · f(e) + z what the spring and hysteresis pass (the damping left out) μ = 1 − η η the teeth's efficiency (with the drag: η_teeth) μ_b = μ for r_b = 1; μ_b = max(0, 1 / (η · r_b) − 1) for a gear with its own back efficiency F = clamp(σ_m · (θ − a), lower, upper) [−μ_b |τ_s|, μ |τ_s|] for τ_s ≥ 0, [−μ |τ_s|, μ_b |τ_s|] below τ_out = τ − F a ← θ − F / σ_m at each step's end (`Gearbox::commit`)σ_m is
gearbox.mesh_stiffness_factortimes K1 (1 where the key is absent), a the anchor where the last step ended. Sliding forward the output gets τ_s (1 − μ) = η τ_s, as with the efficiency; driven back it takes τ_s (1 + μ), so the back-driving efficiency follows as 1 / (1 + μ) = 1 / (2 − η): 0.833 at η = 0.8, where the faded factor gives η either way. A gear with r_b ≠ 1 (a screw’s or worm’s lead angle) is driven back at exactly η r_b, as the faded factor has it (the_mesh_friction_is_bounded_by_the_back_efficiency_when_driven_back). At rest a gear holding a load L stands while τ_s lies between L / (2 − η) and L / η: it holds anything in between, and breaks away lifting at L / (i η) at the motor and lowering at L / (i (2 − η)) (a_held_gear_stands_inside_its_friction_band_and_breaks_away_at_its_ends). Around zero load the friction μ K |x| takes, from one turning point A₁ to the next, μ K (A₁² + A₂²) / 2 of the spring’s K (A₁² − A₂²) / 2: the friction law alone keeps (1 − μ) / (1 + μ) of the amplitude a cycle, ζ = ln((1 + μ) / (1 − μ)) / 2π = 6.45 % at η = 0.8 (a_ring_around_zero_load_decays_by_the_hand_calculated_damping, with a stiff bristle). With the bristle of K1 the friction first turns round by sticking on 2 K, from the bound at A to the other at x₁ = A (1 − μ) / (1 + μ), then slides on K (1 − μ) and K (1 + μ): A₂² / A² = ((1 + μ²)(1 − r²) + (1 − μ) r²) / (1 + μ) with r = (1 − μ) / (1 + μ), 7/9 a half cycle at η = 0.8, so a cycle keeps 7/9 and ζ = ln(9/7) / 2π = 4.0 % (the_shipped_bristle_rings_down_by_its_hand_calculated_ratio), where the faded factor leaves a small ring (below its 0.5 W) about 1 %. With the no-load running torque (effects.gearbox_drag) the two make the efficiency map above: the catalogue’s η at its rated point, less at part load (mesh_friction_and_drag_give_the_catalogue_efficiency_and_less_at_part_load: 0.9 at 50 N m, 0.774527 at 5 N m). The friction’s power F ω is booked as its loss, where the gearbox’s loss goes (its loss row,part_heating,thermal_feedback, which sets η and so μ); the bristle’s store F² / (2 σ_m), at most (μ τ)² / (2 σ_m) (4e-7 J on the planar cable robot’s winches), is counted with it and not inGearbox::energy. Booking the store’s rate instead, sticking or sliding as decided at a step’s end, missed 1.80 J of the planar cable robot’s 38.17 J: within a step the anchor stands and the friction slides at its bound throughout, also where the ends said it sticks. Shortcuts: σ_m is K1 unless the factor is set, as the hysteresis’s Dahl stiffness (presliding takes μ of the twist). The energy budget does not choose it: with the friction booked as its whole power the belt axes, whose light pulleys stick to the housing first, close their passes at K1, 3 K1 and 10 K1 alike (the single axis under 1e-6 of its pass unaccounted, the T-gantry 4e-6, as with the friction off; gearbox loss per pass 3.04659 J on the single axis at all three, 8.70004, 8.70027 and 8.70029 J on the T-gantry, against 3.04944 and 8.82445 J with the friction off); the 1.4 and 2.0 % they missed at 10 K1 were the earlier bookkeeping’s. It is off on the belt machines as shipped, and on in the arms, cable robots and mover. Behind a screw, rack or drum (Converter::apply_to) σ_m is capped where the bristle on the lighter of the rotor’s inertia seen at the load and the output’s own would settle faster than a quarter of the bristle rate limit (2e8 N/m for the cable robots’ 0.32 kg drums; no shipped gear reaches it); before a gearbox’s first step and in a machine that does not commit its gearboxes after each step (the four-arm delta’s arms, the gearboxes of a rigid model) the faded factor stays; the rigid models’ gearboxes keep it. -
At rest under an output torque the twist is τ / k_g + β/2 on the matching side; without one it is 0, the middle of the backlash (
Gearbox::static_twist).
Assumptions: the hysteresis’s stiffness at a reversal σ is K1 where gearbox.hysteresis_stiffness_factor is absent, as in every shipped file (no maker publishes the loop’s shape at a reversal), so the D3 and D2 gearboxes (half an arcmin) are twice as stiff at small amplitudes: the D3’s velocity loop crosses over at 305 Hz with it and 259 Hz without (the old rate-switched friction locked it at 19 Hz). Inside one base step a twist that turns back follows the curve from the step’s start, not Dahl’s reversal (the steps are 62.5 µs). The machine’s state vector does not carry z: a state set from outside (a crash’s stop, adopt_state) keeps the gearbox’s anchor from before. The lost-motion band is in the gearbox’s angle; behind a screw or rack its stretch by the converter’s spring is left out. The drag acts on the motor shaft with its friction, but its loss is the gearbox’s (ShaftFriction::drag_power): it is in the gearbox’s loss row and with part_heating it warms the gearbox (the_gearbox_drag_warms_the_gearbox_to_its_resistance_times_the_drag_power: the single axis cruising at 250 rad/s at the motor, 0.107342 N m of drag, 26.8355 W, 53.671 K at 2 K/W). A worm’s tooth efficiency does not fall with sliding speed. The tooth efficiency is at most 1: where the catalogue’s no-load torque at its reference speed is more than its whole loss (the SP+ 100: 0.93 N m at 3000 r/min, where 6 % of 259 N m at ratio 20 is 0.78 N m), the gearbox reaches 93.3 % instead of 94 % at T2N and 20 °C. The gearbox’s own inertia (gearbox.inertia_at_input_kgm2) turns with the rotor: J_rotor in the equations is motor.rotor_inertia_kgm2 plus it.
Screws and worms driven back
Source: BallScrew, WormGear, Converter::apply_back in transmission.rs; sim-netlist/src/worm.rs.
A thread of lead angle β (γ for a worm) and friction angle ρ loses differently driving and driven back. The gearbox carries the difference as its back ratio r_b = η_back / η (above): a converter applied behind it multiplies the gearbox’s efficiency by its own η and r_b by η_back / η (Converter::apply_back, with effects.gearbox_efficiency).
ball screw (THK), tan β = lead / (π d): η = (1 − μ tan β) / (1 + μ / tan β) driving the nut
η_back = (1 − μ / tan β) / (1 + μ tan β) the load driving the screw
worm, ρ' = atan(μ / cos α_n): η = tan γ / tan(γ + ρ') the worm driving
η_back = tan(γ − ρ') / tan γ the wheel driving
-
Screw (
effects.screw_lead_efficiency; a config without the switch has it off). μ isscrew.friction_coefficient, dscrew.nominal_diameter_m; the two efficiencies replacescrew.efficiency, which is a catalogue’s lumped figure (the nut’s preload drags apart). Off, both arescrew.efficiency. A screw whose η_back is 0 or less (tan β ≤ μ) locks itself and is refused. Test:the_screw_driven_back_loses_by_thks_back_efficiency_and_a_locking_one_is_refused(μ = 0.003, tan β = 0.318310: 0.9896302 back against 0.9897172 driving). -
Worm in the joint kit’s rotary table (
table.gear = "worm",[worm]lead_angle_deg,friction_coefficient,pressure_angle_deg, both angles below 45°): the gearbox gets η and r_b = η_back / η. A worm with η_back ≤ 0 is refused. Test:a_worm_gear_has_the_hand_calculated_efficiencies(γ = 5°, μ = 0.05, α_n = 20°: η_back = 0.38997; at 2° below 0). -
Worm stage in a machine file (
machine.worm, counted witheffects.gearbox_efficiency; the motor’s gearbox then keeps only what a screw or rack behind it loses). A worm that turns back multiplies the gearbox’s output torque by η^t driving and η_back^t driven back, t = tanh(τ ω / 0.5 W) as the gearbox’s fade (worm::factors). Witheffects.thermal_feedbackboth efficiencies warm by the gearbox’s law, 1 − η → (1 − η) f, forward at least 0.01; a locking worm stays locked. -
Self-locking worm (η_back ≤ 0, machine files only). Coulomb’s law at the mesh without a fade. With o the torque the wheel takes and s the sign of the speed, the mesh drags
D = (1 / η − 1) · s o on the driving flank, s o > 0 D = (1 − η_back) · (−s o) on the overhauling flank, s o < 0so D ω ≥ 0 always: driven back the motor has to push, by −η_back of the load’s torque over i. Elastic model (
worm_drag): the drag acts on the rotor, at the levels the gear spring’s torque gives (worm::levels), never along the motion; where the level would stop the rotor withinSTICK_TIME_S(1 ms) it takes the rotor’s speed out over that time, so at rest it holds anything between the two levels: a locking worm holds its load with no motor torque. Rigid model (rigid_locking): o is an unknown beside the accelerations; the overhauling flank takes its load from the torque the wheel holds at rest (overhauling_drag), since a heavy wheel on that flank has no unique rigid solution (Painlevé’s paradox); below a wheel speed ofSTICK_SPEED(1e-3 rad/s) it sticks, decelerating at −v /STICK_TIME_S.
Screw stiffness along the stroke
Source: BallScrew::travel, TravelCompliance, Gearbox::at, Gearbox::travel_force in transmission.rs and mech.rs.
A ball screw’s axial stiffness is the shaft between the fixed bearing and the nut in series with the nut and the support bearings (THK, Hiwin):
1 / K_screw(a) = c_shaft(a) + 1 / K_nut + 1 / K_bearing
c_shaft(a) = a / (E A) fixed-free, fixed-supported, supported-supported (one end holds it axially)
= a (L − a) / (E A L) fixed-fixed
a = |s − q_b| clamped to [L/1000, L]
with A the root section, E = 2.06e11 Pa, q the joint’s travel and q_b screw.fixed_bearing_at_m, the travel at which the fixed bearing stands. Without effects.screw_stiffness_with_position (off where absent; on in the shipped configs with a screw and the machine files, off in the measured screw’s dataset, whose fit was made with the far end’s) the gearbox gets K_screw at the softest place for the whole stroke (BallScrew::softest_position: a = L, or L/2 fixed-fixed). With it the gearbox is still built there, and with the nut at s its springs K1, K2, K3 are each in series with dc = c_shaft(a) − c_shaft(softest), and the band’s series spring is c + dc (Gearbox::at; the flanks’ own k_f stays).
The hysteresis along the stroke. The hysteresis (gearbox.hysteresis_rad, its Dahl stiffness gearbox.hysteresis_stiffness_factor times K1) is a friction across the gear’s own flanks, so it acts on the gear’s own twist, which the spring’s force tells (F / K_g), not on the twist x through gear and screw, which grows with the shaft at the same force. Converter::apply_back reduces it to x at the softest place: a friction T_h K1 l / K_g at the joint, a loop 2 T_h / K1 wide in x, σ′ = series(K1 + σ) − K1. With the nut at s its state lives on y = r x, r = K1(s) / K1 (K1 x at the softest place and K1(s) x are the same force), with the softest place’s T_h and σ; in x that is r T_h, r² σ and the anchor (y₀ / r, r z₀) (Gearbox::at, commit). The anchor’s twist stays y₀ with r beside it (Gearbox::twist_scale): the branch compares x r with y₀, the product commit stored, so that at the anchor it is not rounding’s, and there it goes by the gear’s own twist’s rate y′ / r = x′ + x (r′ / r) s′, which a nut travelling at a standing twist turns alone. The friction follows K1 as the build has it, the loop keeps its width in x, and a load carried along the stroke leaves the state where it was: on the twist x with the far end’s values a constant force wound it up, the twist changing by F dc (1 − e^{-2} = 0.865 of the friction at the far end slid back to 0.131 at a place 4/3 as stiff, against the 1.153 it holds there now). The reversal stiffness r² σ′ is the softest place’s series value, elsewhere off from series(K1 + σ) − K1(s) by second order in σ / K1 (both the gear’s own estimate: no maker publishes the loop’s shape at a reversal). The store z² / (2σ′) is the softest place’s in y; the place moves y by x r′(s) against the friction z / r, work the rotor does: the rotor feels z x r′ / r per unit of s (r′ / r = −K1(s) c′(s)) and loss_power books the store’s change along y as stored (Gearbox::hysteresis_place), so what is lost is z (z / T_h) y′ / r and nothing less than 0. No shipped config has a hysteresis behind a screw whose stiffness follows the nut (effects.gearbox_lost_motion off or hysteresis_rad 0 there), so no shipped figure moves.
The mesh friction’s bristle (gearbox.mesh_stiffness_factor times K1) is a stiffness of the gear’s own flanks, as the hysteresis’s Dahl stiffness is, and since 21 November 2026 follows K1 along the stroke as that does: σ_m r with the nut at s (Gearbox::at), and commit leaves its anchor by the bristle there (the_mesh_bristle_behind_a_screw_follows_the_nut: pulled back by 1.5e-6 m after sliding, 0.186667 N where the far end’s anchor read 0.315556). Its bound μ |held| follows the nut through the spring’s force. Its store F² / (2σ_m) stays out of the budget (loss_power: the friction’s whole power F w is booked as lost; booked as a rate the store missed 1.80 J of 38.17 J on a carriage hung in cables, the stick or slide of a step not known at its end), at most (μ |held|)² / (2σ_m) per gear. A budget run with the joint kit’s mesh friction on (screw axis, SCARA; their screws follow the nut): unaccounted −8.97e-6 J before, −8.80e-6 J after of 215.3 J on the screw axis’s cycle, −1.73e-7 and −1.78e-7 J of 89.5 J on the SCARA’s; their gearbox losses the same to 1e-6 (the SCARA’s screw 0.8233404 to 0.8233412 J), the bristle being a factor no maker publishes whose tenth to ten times leave them the same.
The damper along the stroke. screw.axial_damping_ratio ζ is the damping ratio of the mass m behind the nut on the screw’s own axial spring K_screw, wherever the nut is: c_c = 2ζ √(K_screw(a) m). That is the ratio a loss factor η = 2ζ of the screw (nut, bearings, the shaft’s material) gives at that mode as well, η K / ω with ω = √(K / m), so a structural loss and a viscous damper held at its ratio agree; a dashpot c held constant would let the ratio fall as √(K_far / K) where the screw is stiffer. With the nut at s, c_c = c_c(softest) √(K_screw(a) / K_screw(softest)), and the gear’s damper and the screw’s in series are laid out anew for K_screw(a) (TravelCompliance::dampers, with the formulas of Converter::apply_back, mech::series_dampers): the damper b, the Maxwell arm’s K_m and τ. An arm the build folded into the damper (τ under 10 µs at the softest place) stays folded, its K_m τ at the place. The arm’s store K_m (x − u)² / 2 changes with s at a fixed state u like the spring’s, by (x − u)² K_m′(s) / 2: the rotor feels it and loss_power books it as stored (Gearbox::arm_place), so the dampers’ own power is what is lost. The wafer handler’s column (the coupling’s damper in series) rings with 0.0421, 0.0410, 0.0404 at the nut 0.1, 0.2, 0.3 m from the bearing and 0.0401 at the far end; with the far end’s dampers held it was 0.0293, 0.0333, 0.0368.
Where the nut is, and its energy. The nut sits on the shaft’s point the rotor has turned to it, s = φ / i (the joint’s travel q plus the twist): the shaft between the bearing and the nut is the material the rotor has turned in, so its length follows the rotor, not the load. With the spring’s torque T and the twist e held, its energy changes with s by ∂V/∂s = −T² c′(s) / 2 (its complementary energy holds c T² / 2 of the converter’s compliance, for any curve of the gear’s in series). So the nut passes the shaft’s force T alone, as a free body of the nut has it, and the rotor’s reaction is (T − T² c′ / 2) / i (Gearbox::travel_force): turning new shaft into the loaded length takes or gives that energy. The term is booked in loss_power as stored, not lost. At rest the spring carries the load F, twisted as at s = q plus the twist (static_twist_at), and the rotor holds F − F² c′ / 2 (Gearbox::held_at): the wafer handler’s column (110 N) by 2e-4 N less, 1.9e-6 of its weight.
The modes, the equilibrium and the planner’s train (RotaryJoint::train_at, Machine::trains of chain.rs, the wafer handler and the machine files) take the stiffness at the pose (chain.rs, the wafer handler, the parallel SCARA’s stroke, the machine files’ drives). The pose tolerance of chain.rs (rest_sag) takes the twist at the nut at each of its poses (static_twist_at); the wafer handler’s and the parallel SCARA’s (their own rest_sag, an allowance with no pose) take the screw where it is softest on the stroke (Gearbox::softest: an end of the travel, or the shaft’s middle where both ends are held and the travel reaches it), not the shaft’s far end beyond the stroke (the_rest_sag_takes_the_screw_where_it_is_softest_on_the_stroke in both crates); as shipped other terms set both allowances, unchanged (the wafer handler’s 0.1 mm floor, the parallel SCARA’s arms’ play, 0.2596 mm). The loop margins (sim-cli margins) are measured at the start pose and at each pose the cycle stops at (below, hammering across a backlash). The fit’s twist of a train (identify::fit_joints) takes the spring where the nut is, the trace’s motor angle over the ratio (Machine::twist_at, JointMachine’s; by default twist, whose stiffness holds along the stroke): the screw axis with 1 N m twists 2.7146e-4 rad more with the nut at 0.3 m than at 0.1 m, i² T Δs / (E A) by hand (the_fits_twist_behind_a_screw_is_the_springs_at_the_nut); twist alone keeps the far end’s. At the start pose, with the switch on, at its stiffness, not the softest: on the shipped configs all stay ok, the gain margins moving by −0.7 to +3.4 dB (tripod 18.90 to 18.20 dB, screw axis 17.62 to 17.15 dB, SCARA’s quill 15.66 to 19.10 dB; 26 November 2026).
Tests: the_screw_compliance_along_the_travel_is_the_stiffness_at_the_nut (dc and its slope against BallScrew::stiffness, both mountings), a_gear_behind_a_screw_takes_the_nuts_travel_force_from_its_energy (the output’s force and the rotor’s reaction are the energy’s slopes through the band and the three segments; the rotor’s misses by up to 1.2e-4 without T² c′ / 2), the_column_rings_stiffer_with_the_nut_near_its_bearing (the wafer handler’s column 438.4518, 386.1882, 349.0392, 320.8907 Hz with the nut 0.1 to 0.4 m from the bearing, by hand; at rest nothing moves), the_energy_closes_with_the_screw_stiffness_following_the_nut (loss-free energy and the loss budget with the switch on), the_hysteresis_behind_a_screw_acts_on_the_gears_own_twist (the friction, the loop’s width, the state carried along the stroke at a force, the loss against the power in less the store’s rate), the_budget_closes_with_a_hysteresis_behind_the_screw (the wafer handler’s cycle with a 1e-3 rad hysteresis: 6.4e-6 J of 48.13 J unaccounted, 4.7e-6 J without it).
Hard stops
Source: HardStop in mech.rs.
For an axis whose stroke runs from 0 to S:
beyond = pos − clamp(pos, 0, S)
F = −k_s · beyond − c_s · v only while F pushes back towards the stroke, else 0
A stop never holds on. With effects.hard_stops off there is none.
The damper takes hold at once as the axis touches, a step in the force that a sub-step across it integrates with an error at each contact (about the third power of the sub-step). A base step in which an axis may cross a stop’s face (the face nearer than two steps at the axis’s speed: the one it moves towards from outside, the one it is beyond from inside, HardStop::met_within) has its sub-steps cut 16 times finer (mech::STOP_SUBSTEPS, Machine::substeps_wanted), on every machine with stops: joints, slides, carriages, the crane’s travels and hoist, the cable robots’ winches, pneumatic cylinders. An axis resting in a stop is not cut: the linear delta’s carriages held up in theirs for 10 s took 5.9 s to run, against 68.5 s when every step in a stop was cut, the energy alike to 6e-8 J of 32.6 J. The palletiser’s upper arm swinging into its stop keeps its energy to 5.3e-9 J of 2.8 mJ over 10 s (1.3e-5 J before); every machine and machine file pushed into a stop from rest near an axis’s end keeps it to 6e-7 of the push’s work at most (a_machine_driven_into_a_stop_keeps_its_energy; up to 2e-4 without the cuts, the toggle press). Of the default cycles only the pneumatic axis’s meets stops (its cylinders end on them): its results move by about 1e-10; the others are not cut and are as before.
Drive and motor
Source: drive.rs. One drive per motor; all have the same settings. The loops close on the motor’s own encoder.
Winding
The motor is one equivalent winding with resistance R, inductance L and the back-EMF of the turning rotor:
L · di/dt = u − R · i − k_e · ω
τ = k_t · i − T_Fe(ω)
k_e = k_t in SI units (effects.back_emf off: k_e = 0). T_Fe is the drag of the iron loss on the shaft, 0 without effects.iron_loss (iron loss); with field weakening the reluctance torque joins k_t i, with effects.magnet_temperature both constants scale with the magnets’ flux. Each base step the voltage u (and the resistance R, at the temperature the step starts with) is held, and the current is integrated together with the mechanics (see integrator), with ω the motor’s speed at each stage of the integration:
di/dt = (u − R · i − k_e · ω) / L in the integrated state, with the torque k_t · i(t) on the shaft
E_el = ∫ u · i dt electrical energy of the step; P = E_el / dt, negative while the motor feeds back
E_cu = ∫ R · i² dt, W = ∫ τ · ω dt copper loss and shaft work of the step
With the back-EMF on, u · i = R i² + d(½ L i²)/dt + τ · ω + T_Fe ω at every moment (also under saturation, see below), so the electrical energy, the copper loss, the winding’s stored energy and the work on the shaft close to the integration’s error (the energy budget checks it). Before 12 November the current was stepped exactly over a base step with the speed of its start, its power taken by the trapezoid rule, and the mechanics turned under the torque of the current at the end of the step. That held torque was a numerical phase lead of half a step: on undamped elastic configs it put 3 to 5 % of the supply into the mechanics, and on damped ones it hid part of the ringing (peak motor torque 3 % lower on the default T-gantry, 8 % on the single axis; see PROGRESS).
Assumptions: no three phases, no PWM, no inverter dead time. Field weakening (the winding as the q axis of a d-q model) and iron loss are effects of their own, below (field weakening). Below the current loop there is nothing.
Torque saturation
effects.torque_saturation: the torque constant falls with the square of the current to torque_constant_at_max_current_nm_a at max_current_a:
τ = k_t · i · (1 − s · min(1, (i / i_max)²)), s = 1 − k_t,max / k_t
The current setpoint is the inverse of this curve, limited to max_current_a (Newton’s method from below; exact to rounding). So the motor gives the torque that is commanded, up to its maximum torque at its maximum current. A curve that loses more than a third of its torque constant (s > 1/3) turns down before the maximum current; the setpoint then stops at the top of the curve, i_max / sqrt(3 s).
The back-EMF constant falls with the torque constant: e = k_e · ω · (1 − s · min(1, (i / i_max)²)). The electrical power u · i is then the copper loss plus the shaft power, with saturation as without.
A back-EMF constant of its own. drive.back_emf_constant_v_s_rad (optional; absent or 0: equal to the torque constant, the shipped configs’ behaviour) is the maker’s printed voltage constant in the one winding’s scale (√3 times the line-to-line RMS constant, as catalog converts it). The servo winding then has k_e ≠ k_t: the winding equation, the back-EMF feedforward of the current loop, the voltage limits (voltage_limited_current, field weakening’s d_current_for and field_weakened_torque) and the DC link’s power u · i use k_e, the torque stays k_t i. The electrical power is then the copper loss plus the shaft power plus (k_e − k_t) · i · ω (times the saturation and magnet factors both constants share). A real motor has one flux linkage: the two printed constants differ because they are measured apart, the voltage constant at no load with the magnets cold (about 20 °C), the torque constant at the rated point with the magnets warm (their flux falls by about 0.1 % per kelvin) and with the iron loss and saturation of the load taken off the shaft. (k_e − k_t) · i · ω is therefore not a loss the motor has but the model’s bookkeeping of using both constants at once: the voltage side (conservative for the voltage limits) and the torque side each as printed. The drive books it as Drive::emf_loss (the winding’s step energies less copper, shaft and stored energy, exact) and the energy budget shows it as the row emf.<motor> next to the copper loss, where a constant is set apart from k_t or the iron loss drags the shaft (that drag’s power is booked in the same row); the constants’ share is signed as i ω is: motoring it is positive (it then stands roughly for the iron loss), braking negative, the winding returning (k_e − k_t) |i| ω more than the shaft gives, which no real motor does; over a cycle that share is (k_e / k_t − 1) times the shaft’s net work (sim-cli analyze single-axis --set drive.back_emf_constant_v_s_rad=0.5175 --set effects.iron_loss=false, k_e 15 % above k_t: 11.34 J of a 90.50 J supply, the budget closing to 2e-9 of it). It does not warm the winding model (the rated rise of the catalogue holds the real losses already). A stepper keeps one constant for both and an induction motor has none: the key is read for the servo only. Test: drive::tests::a_back_emf_constant_apart_from_the_torque_constant_costs_voltage_and_books_the_difference (k_e 0.5, k_t 0.45, R 4 Ω: 2.25 N m at 340 rad/s on 190 V where equal constants give 4.1625 N m; 100 rad/s at 2 A takes 116 W = 16 W copper + 90 W shaft + 10 W loss).
Winding heating
effects.winding_heating: one thermal mass. ϑ is the temperature rise of the winding above its surroundings.
R(ϑ) = R · (1 + 0.0039 · ϑ) copper
I_rated = motor.rated_current_a
P_rated = R(ϑ_rated) · I_rated² with effects.iron_loss: R(ϑ_rated) · I_0², I_0 = motor.stall_current_a
dϑ/dt = ( ϑ_rated · (P_cu + P_Fe) / P_rated − ϑ ) / τ_th P_cu = E_cu / dt, the mean R(ϑ) · i² of the step
P_Fe is the iron loss’s heat (iron loss, 0 without it). At the rated current the winding settles at rated_temperature_rise_k; with the iron loss at the stall current at standstill and at the rated current at the rated speed. The warmer resistance is used in the winding equation above. A disabled drive has no current, so its winding cools by the same equation with P_cu = 0: ϑ falls by the factor e every τ_th (a_disabled_winding_cools_by_the_exponential). Stepped once per base step (explicit Euler; with dt / τ_th of 3.5e-8 its error is far below anything that shows). The thermal time constant is half an hour, so a simulated cycle hardly warms the winding; the analysis therefore reports the rise the winding would settle at (see analysis quantities).
Assumptions: copper loss and, with effects.iron_loss, the iron loss heat; the surroundings are at a fixed temperature; no housing, no second thermal mass (but see the three nodes below); the torque constant does not change with temperature (but see the magnet temperature below).
Motor thermal nodes
effects.motor_thermal_nodes (off in the shipped configs; read as off where a config has no switch): three nodes, the winding ϑ_w, the stator and housing ϑ_h, and the surroundings, as two heat capacities in a chain. The resistances add up to the one-node model’s, R = ϑ_rated / P_rated, and the heat capacities too, C = τ_th / R; the winding has the share s = motor.winding_resistance_share of the resistance and the time constant τ_w = motor.winding_time_constant_s against the housing (both [estimate]: Siemens publishes one thermal time constant per motor, the catalogue’s τ_th):
R_w = s · R C_w = τ_w / R_w
R_h = (1 − s) · R C_h = C − C_w = (τ_th − τ_w / s) / R τ_w < s · τ_th, or the config is refused
τ_w · dϑ_w/dt = s · P_cu · R − (ϑ_w − ϑ_h)
(τ_th − τ_w / s) · dϑ_h/dt = (ϑ_w − ϑ_h) / s − ϑ_h / (1 − s)
The steady state is ϑ_w = P · (R_w + R_h), the one-node model’s, and ϑ_h = P · R_h: the settled rise the analysis reports and motor-thermal judges is the winding’s and does not change; the analysis reports the housing’s settled rise beside it (MotorLoad::housing_rise). On the way the winding warms much faster than the one node: with s = 0.25, τ_w = 60 s, τ_th = 1800 s it is at 16.2 K after 60 s (one node: 3.3 K) and 78.3 K after 1800 s (one node: 63.2 K) of a loss that settles at 100 K. A winding started warm (start_temperature_rise_k, the warm start) starts with its housing where that rise settles it. The one-node model stays the fallback with the switch off.
Test: three_thermal_nodes_settle_at_the_sum_of_the_resistances_and_step_as_by_hand (drive.rs; the step response by its two eigenvalues, −7.36e-4 and −1.935e-2 1/s, at 60 s and 1800 s, and the steady state 100 K / 75 K).
Current loop
Every base step:
i_meas = i + noise
e_i = i(τ_cmd) − i_meas i(τ): τ / k_t, or the inverse of the saturation curve
u_wanted = K_pi · e_i + I_i + e the drive adds the back-EMF e it expects at its measured speed ω_f:
e = k_e · ω_f · (1 − s · min(1, (i / i_max)²)), saturated (below) at
the winding's current i of the step's start, not the measured one
u = clamp(u_wanted, −U_q, +U_q) U_q = sqrt(U_max² − u_d²): the q axis gets what the d axis leaves of the voltage circle
u_applied = u, `drive.current_delay_cycles` base steps later (effects.drive_delay; 0 without)
I_i += (K_pi / T_ni) · e_i · dt only while u is not clamped (anti-windup)
The d axis comes first. Its steady voltage is u_d = R · i_d − p · ω · L · i, the reactance of the q current with p the pole pairs (motor.pole_pairs; no reactance where the config has none) and, with effects.field_weakening, the d current i_d of the winding’s own model (below). Without field weakening i_d = 0 and the winding meets (R i + k_E ω)² + (p ω L i)² ≤ U_max² at most (the torque-speed chart’s voltage limit, DriveParams::voltage_limited_current; the kt = kE = 0.45, R = 4 Ω, L = 10 mH, 4 pole pairs, 190 V test winding has 3.474 N m at 300 rad/s, 2.709 at 330 and 1.956 at 360 where the reactance-free R i + k_E ω ≤ U gave the current limit’s 4.275 at 300), and braking at the peak torque is held to the current that circle allows (beyond it the q voltage cannot oppose the back-EMF and the current runs away). Above the speed where k_E ω alone exceeds U the circle (k_E ω − R i)² + (p ω L i)² ≤ U² leaves an interval of braking currents; its smaller end is the current the inverter’s diodes force (forced_braking_current), which the drive, with effects.torque_limit, does not command below; where the circle leaves none, the nearest current R k_E ω / (R² + (p ω L)²) (test braking_above_the_back_emf_equal_to_the_voltage_solves_the_voltage_circle: 3.9743 to 12.7267 A at 450 rad/s, the current loop settling on the smaller). With field weakening the d current follows its setpoint with the voltage that moves it, held within the circle first (d axis first), and the q setpoint within the phase current’s circle on the references, i_q,ref² + i_d,ref² ≤ min(motor, drive maximum current)², with the d setpoint, not the d current that is there, as a drive limits its current reference vector (test the_current_circle_holds_the_q_reference_with_the_d_reference: 5 A drive, d current −2 A, q reference 5 A at standstill where the d setpoint is 0 and 4.1922 A at 500 rad/s where it is −2.725 A; from the d current after the cycle’s lag share it was 4.7512 and 4.5092 A). The currents themselves follow through the current loop and can stand above the circle while the drive goes into field weakening at full current: the single axis with the 1FK2205-4AF at 200 m/s² to 2 m/s (sim-cli run single-axis --motor 1FK2205-4AF --set axis.x.max_acceleration_m_s2=200 --set axis.x.max_velocity_m_s=2 --set axis.x.max_jerk_m_s3=1e6 --move 0.9, the audit’s case) reaches 10.944 A against the drive’s 10.9 A, 0.41 %, above it for 8.75 ms between 0.0226 and 0.0332 s (439 to 645 rad/s); with the circle taken from the d current it reached 10.980 A, 0.74 %. What is left is the q loop’s lag behind its falling reference (the d setpoint grows with the speed, the q reference falls at up to 270 A/s): with twice the current gain (drive.current_kp_v_a 80) 10.926 A, 0.24 %. Without field weakening the q reference stands still at the circle and the q current overshoots it by at most 0.03 % accelerating and 0.2 % braking. motor.<id>.voltage is, for every motor kind, the amplitude of the phase voltage’s space vector: the induction motor’s and the stepper’s vectors are phase amplitudes, the servo’s (u, u_d), in the winding’s units of three times the RMS phase voltage, is multiplied by sqrt(2) / 3 (a DC link U gives sqrt(3/2) · U at most, which is U / sqrt(3) at the phase).
U_max is sqrt(3/2) times drive.bus_voltage_v, or sqrt(3/2) times the DC link voltage of the moment with effects.dc_link, or unlimited with effects.voltage_limit off; with drive.overmodulation both times the six-step gain below. The factor: the one winding carries the RMS phase current I, and u · i is the power of all three phases, 3 · U_phase · I, so u is three times the RMS phase voltage. A DC link U gives a phase amplitude of U / sqrt(3), which is U / sqrt(6) RMS, and 3 / sqrt(6) = sqrt(3/2). drive.bus_voltage_v is the DC link voltage itself, and the DC link’s energy bookkeeping below works with it unscaled. With K_pi = L / T and T_ni = L / R the current follows its setpoint with the time constant T (0.25 ms in the default configs).
Overmodulation (drive.overmodulation, a drive key, off in the shipped configs and where absent). The inverter runs into six-step (square-wave) operation, and the model raises the voltage limit to the square wave’s fundamental, without its harmonics:
U_max = g · sqrt(3/2) · U_dc g = 2 sqrt(3) / π = 1.10266 three-phase bridge (servo, induction): six-step's 2 U / π over U / sqrt(3)
g = 4 / π a stepper's H-bridges: the square wave ±U over U
It acts wherever the voltage limit does: the current loop, the field weakening’s d current, the voltage-limit curve of the torque-speed chart. The linear fade of the torque-speed curve holds at the sinusoidal limit, U_max / g; at the raised voltage its two speeds move as at any other voltage. Test: overmodulation_raises_the_voltage_limit_to_the_six_step_fundamental (440 rad/s, e = 198 V, R = 4 Ω on 190 V of winding voltage: (190 · 1.10266 − 198) / 4 = 2.87625 A, 1.29431 N m, where the sinusoidal limit leaves none).
Forced braking current. Without field weakening and with effects.torque_limit, braking above the speed at which k_E ω alone exceeds U_max, the drive does not command less than the current the inverter’s diodes force (forced_braking_current):
i_forced = (R e − sqrt(a U² − x² e²)) / a, e = k_E |ω|, x = p |ω| L, a = R² + x² 0 while e ≤ U
i_forced = R e / a where a U² < x² e² (the circle leaves no current)
at most the motor’s maximum current; a setpoint that brakes less, or motors, is set to −i_forced in the direction of the speed.
Velocity loop
Every velocity cycle T_v:
ω_raw = (encoder − encoder_before) / T_v or the true speed with an ideal encoder
ω_f += α_v · (ω_raw − ω_f) α_v = 1 − exp(−T_v / velocity_filter_s); 1 with the filter off
ω_cmd = K_v · e_pos + w_v · (ω_set + α_set · t) speed setpoint interpolated between profile cycles
e_ω = ω_cmd − ω_f
τ_wanted = K_p · e_ω + I_ω + w_τ · τ_ff + τ_fr(ω_set + α_set · t)
PI part and feedforward part are the signals
motor.<id>.torque_feedback and .torque_feedforward
τ_filt += α_τ · (τ_wanted − τ_filt) torque setpoint filter
τ_notch = notch(τ_filt) with effects.notch_filter
τ_cmd = clamp(τ_notch + τ_inj, torque range at ω_f), `drive.velocity_delay_cycles` velocity cycles later
(effects.drive_delay; τ_inj is the analysis's test injection, 0 otherwise)
I_ω += (K_p / T_n) · e_ω · T_v unless that pushes further into the limit (anti-windup)
Drive current limit
effects.drive_current_limit (on in the shipped configs): the drive gives no more than its maximum output current ratings.drive_max_current_a (a drive by name sets it). The velocity loop’s torque range above is narrowed to the torque of that current, where that is below the motor’s:
torque range = [low, high] ∩ [−τ(I_drive), +τ(I_drive)] τ(i) = k_t · i · (1 − s · min(1, (i / i_max)²)), the saturation curve
So the current setpoint i(τ_cmd) stays within min(motor, drive maximum current), and the velocity integrator stops while the setpoint sits on the limit, the same anti-windup as at the motor’s limit; the same with effects.torque_limit off. A cycle that asks more than the drive gives then shows it: the axis accelerates at what the drive’s current gives, a = (k_t · I_drive · i / r − F_friction) / m_total, falls behind its plan and catches up later. drive-peak-current judges the current the velocity loop asks for (i(τ_demand), at most the motor’s maximum current under saturation), so a cycle held at the drive’s limit fails it, as one held at the motor’s limit fails motor-peak. The demand that a following error built up may then fail motor-peak too. Without the rating, or with the effect off, nothing is held and the drive’s maximum current is only judged. check_limits (the warning that the axis limits ask more of a motor than it has) takes the torque of that current too, where it is below the curve.
Tests: the_drive_current_limit_holds_the_torque_to_the_lower_of_motor_and_drive (drive.rs: 5 A at 0.45 N m/A holds 3.8 N m to 2.25 N m; 10.9 A leaves the motor’s 3.8), a_move_held_at_the_drive_current_limit_accelerates_at_the_hand_calculated_rate (single axis, 0.5 A: a = (0.225 · 250 − 15) / 6.125 = 6.735 m/s²; with the motor at 0.18 N m, below the drive, 4.898 m/s²; the shipped cycle at 70 % of its peak current fails drive-peak-current and lags further).
Drive overload
effects.drive_overload (off in the shipped configs; read as off where a config has no switch): SINAMICS drives give their maximum current only for a short time and then fall back to their base load current. Since 14 November 2026 the image has two nodes, as the SINAMICS power units model a slow heat sink and the fast chips on it: x = x_s + x_c, x_s’ = ((1 − w) q − x_s) / τ_drive, x_c’ = (w q − x_c) / τ_c, q = (i / I_rated)², w = ratings.drive_chip_share and τ_c = drive_chip_time_constant_s ([estimate]s, 0.3 and 1 s; w = 0 is the one node below). The trip level becomes r² − (r² − 1) ((1 − w) exp(−t_max / τ_drive) + w exp(−t_max / τ_c)); repeating_peak repeats each node by itself. Hand calculation: the_two_node_overload_image_trips_after_the_hand_calculated_time (3 A module, 9 A for 0.25 s: trip 1.66914, at 6 A from the rated load after 0.8203 s, where one node takes 0.6811 s). The drive keeps a thermal image of its power unit (i²t), stepped exactly every base step with the RMS phase current i (with field weakening the hypotenuse of q and d current):
x' = ((i / I_rated)² − x) / τ_drive x = 1 at the rated current held
trip = r² − (r² − 1) · exp(−t_max / τ_drive) r = I_max / I_rated: the maximum current from the rated load for t_max
x ≥ trip → limit = I_base, until x ≤ 1 again
I_rated, I_max and I_base are ratings.drive_rated_current_a, drive_max_current_a and drive_base_load_current_a (a drive by name sets them: an S120 Motor Module’s base load current is the catalogue’s, about 0.85 of its rated current; Siemens publishes none for the S210, so 0.85 of its rated current is taken, [estimate]); τ_drive = drive_overload_time_constant_s and t_max = drive_max_current_time_s are [estimate]s (10 s and 0.25 s in the shipped configs: the Siemens load duty cycles are not in the catalogue files). While tripped, the velocity loop’s torque range is narrowed to the torque of I_base, as for the drive current limit above.
drive-overload judges the image’s peak when the cycle repeats for long against the trip level. The image is linear in its start: one started at x₀ lies (x₀ − x_start) · exp(−t / τ) above the measured pass’s at every t, and the start a repeating pass returns to is x₀ = f / (1 − exp(−T / τ)), with f = x_end − x_start · exp(−T / τ) what the pass added (analysis::repeating_peak; sampled once per millisecond). Where the image tripped in the pass the drive was not linear any more; the check fails there anyway.
Tests: a_step_at_twice_the_rated_current_clamps_after_the_hand_calculated_time (drive.rs: 3 A rated, 2.6 A base load, 9 A for 0.25 s, τ = 10 s: trip 1.19752; 6 A from cold clamps to 2.6 A after −10 s · ln(1 − 1.19752 / 4) = 3.558 s, and the image is back at 1 after another 5.842 s), the_overload_image_of_a_repeated_cycle_peaks_at_the_hand_calculated_level (1.5 I_rated held: 2.25; 2 I_rated for 0.5 s of 1 s: 2.04999).
w_v and w_τ are the feedforward factors (0 with the switch off). The notch is a biquad with centre notch_frequency_hz and Q = frequency / bandwidth.
Margins. Drive::torque_injection is a test torque d added to τ_notch before the limit; a drive’s own measurement function works the same way. With the machine holding a pose (the start pose, and each pose the cycle stops at, below), a sine d on one motor gives the loop’s answer u = τ_notch and the torque that acts e = u + d, both correlated with sine and cosine at the velocity cycle over whole periods (at least 0.1 s to settle, 0.1 s to measure). Then L = −U / E is the open-loop response at that motor, with everything in it: velocity filter, PI, torque filter, delays, current loop, the elastic mechanics (the other motors’ loops closed) and the position loop around it; and |S| = |E| / |D| = 1 / |1 + L|. analysis::loop_margins follows the phase of L along the frequency axis without jumps and shifts it by whole turns so that it lies between −360° and 0° at the first gain crossover (without a crossover: between −270° and 90° at the lowest point). It reads off, interpolated in log |L| and phase between points, the phase margin 180° + ∠L at each gain crossover (the smallest counts; negative: unstable) and the peak of |S|. Stability is a Nyquist count of the crossings of the negative real axis (the phase through −180° or an odd multiple) beyond −1, |L| > 1: a falling one is an encirclement of −1, a later rising one undoes the last falling one not yet undone. The count starts at a phase of 0 at the gain of the lowest point, as the small circle of the Nyquist contour around s = 0 turns the phase by −90° per integrator, so a loop whose integrators lag past −180° below the measured range counts that crossing too. The loop is stable when no falling crossing is left. The gain margin is −20 log |L| at the worst falling crossing not undone: those with |L| < 1 (in practice above the crossover) give a positive margin, one left with |L| > 1 a negative one (L encircles −1, unstable). A falling crossing beyond −1 that a rising one undoes (the phase turned past −180° and back below the crossover) is the conditionally stable kind: a gain that falls would be the danger there, and the margin for that is not given. A point at which the torque limit was hit, or at which the loop moved on its own (what of e is neither the injected sine nor a constant is larger in RMS than the injection), is no measurement of L: it is NaN, the margins are not valid and NaN (LoopMargins::valid, stable); sim-cli margins says FAIL for an invalid or unstable loop. Tests: margins_are_signed_and_say_an_unstable_loop_is_unstable (L = ωc e^(−jωτ) / (jω): 100 Hz, 0.5 ms: 72°, 13.979 dB; 200 Hz, 0.5 ms: 54°, 7.959 dB; 300 Hz, 1 ms: −18°, −1.584 dB; 400 Hz, 1 ms: −54°, −4.082 dB), a_conditionally_stable_loop_is_stable (L = K (1 + s/a)² / (s (1 + s/b)² (1 + s/c)), a, b, c = 2π · 300, 30, 3000 Hz: stable at K = 3e5, 6.1e5, 1.2e6 with 30.7°, 41.6°, 42.4°), a_lead_with_positive_phase_at_the_first_point_keeps_its_phase_margin (a type-0 lead loop: 24.0° at 1516 Hz, not −336°), analysis; an_unstable_velocity_loop_is_reported_unstable (single axis at 0.3 N m s/rad), axis. velocity_loop_margins does this for every motor at 60 points from 10 Hz to a quarter of the velocity loop’s rate (2 kHz), and where |L| < 1 at 10 Hz (the gain crossover below the band: a soft-geared loop of a few hertz) on down at the same spacing until |L| > 1, to 1 Hz, plus the machine’s resonances at the start pose (Machine::modes) inside that band, plus, in up to 8 rounds, the geometric middle of each two neighbours whose response turns by more than 30° or changes by more than 3 dB and that lie more than 0.1 % apart (refinement), each point on a simulation of its own started from one settled snapshot, with a tenth of each motor’s own rated torque, for the config and for each value of [bounds] at its low and at its high bound (sim-cli margins MACHINE [--bands]). The velocity gains of all three configs were chosen with it (see the user guide). The measurement runs with effects.gearbox_efficiency off: at standstill the efficiency’s fade with the transmitted power (η^tanh(P / 0.5 W)) acts as a large damper on the small test torque and would hide the loop. And it runs with the motor encoders unrounded and without noise (Controller::unrounded_encoders), the speed still their difference per velocity cycle: above a few hundred hertz the test torque swings the motor by less than a count (the mover track’s 3 N its 1.05 kg by 0.03 µm at 1.6 kHz against 1 µm counts), and the rounding, not the loop, was read: the six movers of the mover track gave 16.3 to 32.9 dB over the poses with the payload (13.4 to 34.7 dB with the force ripple off, 21.0 to 26.8 at the start pose), each as it stood in its count, where the loop has 17.13 dB (16.96 to 17.29 dB with the force ripple, ±2 % of force with the mover’s place in its pole pitch, ±0.17 dB), the linear motor axis 24.03 dB, 35.07 dB with the ripple off, where it has 22.10 dB (the_loop_margins_do_not_read_the_encoder_counts, control). An ideal encoder (effects.encoder_resolution off) would not do: its speed is the true one, without the difference’s half-cycle lag, and the mover track would read 11.39 dB. Without a gain crossover in the measured band the phase margin is NaN (not measurable), the gain margin infinite. Friction near standstill damps the loop at this amplitude (the motor’s Coulomb friction is smoothed over 0.5 rad/s), so the margins are lower with friction off, as in a cruise.
Hammering across a backlash. Inside a gearbox’s play the measurement sees the rotor alone, without the load: a loop that is stable there can be unstable with the flanks in contact. In between, the play’s describing function (the spring force of a dead band of half-width δ under a sine twist of amplitude A, k (1 − (2/π)(asin(δ/A) + (δ/A)√(1 − (δ/A)²))) for A > δ) rises from 0 to the flanks’ stiffness k, so where the loop with the load engaged reaches −1 at some effective stiffness, there is an amplitude at which the rotor swings from flank to flank in a limit cycle: it hammers. Whether that limit cycle is reached, and whether it lasts, is a question of large signals, so analysis::backlash_hammering decides it by a time run, with effects.gearbox_backlash on, on the measurement’s config (gearbox efficiency off): from the settled start pose a sine of the motor’s own rated torque is added to what the loop asks for, its frequency rising logarithmically from 10 Hz to a quarter of the velocity loop’s rate in 0.2 s (it takes the rotor across the play at each frequency in turn), then taken off. The loop hammers when, in both 0.1 s windows from 0.1 to 0.3 s after the sweep, the torque it asks for swings about its mean by more in RMS than the margin measurement’s test torque (a tenth of the rated torque, the size beyond which a point counts as moving on its own), the later window at least half the earlier (not a ring that dies away), and when the same run with the play off stays below that (otherwise the play is not the cause). It reports the frequency (crossings of the mean in the later window) and the peak of the torque asked for about its mean. velocity_loop_margins runs it per motor and run, and LoopMargins::stable is false for a loop that hammers, whatever its small-signal margins; sim-cli margins then says FAIL and names the motor on stderr (“hammers across the backlash at 650 Hz, 0.77 N m”), the app’s loop-response tab in red. A falling sweep did not set it off reliably (it ends at low frequency, where the loop holds the rotor), a single torque pulse only sometimes; the rising sweep set it off in all eight of its variants tried at 0.08 and 0.1 (rated or peak torque, from 10 or 100 Hz, in 0.05 or 0.2 s). Test: the_tool_turn_hammering_across_its_play_is_found_by_the_margins, five-bar: its tool turn’s loop at 0.08 N m s/rad reads 78.2° and 10.54 dB inside the play and hammers at 650 Hz with 0.77 N m (0.1: 705 Hz, the 710 Hz the config’s note found in a traverse); at the shipped 0.033 and at 0.06 it does not. The margin across the play (analysis::play_margin, LoopMargins::play_margin_db, the last column of sim-cli margins): how far a loop that does not hammer is from it. With the play on, velocity_loop_margins measures each run a second time with it off (the flanks held together). The spring’s and the damper’s force pass only in contact, so over a swing both are scaled by the dead band’s describing function κ(A) ∈ [0, 1]; the friction on the rotor, which damps the small-signal measurement (Re(1/P) some 0.2 N m s/rad on the tool turn, three times its J ω at 650 Hz), is a Coulomb force whose first harmonic 4F / (πAω) fades as the swing grows, and is taken faded. The loop is L(κ) = C P(κ), 1 / P(κ) = J_m s + κ y J_L s / (κ y + J_L s): J_m the rotor’s inertia from the plant with the play (the median of Im(1/P)/ω over the upper half of its band), J_m + J_L from the closed plant at its lowest frequency, y at each frequency and C = L / P from the closed measurement. The margin is the least gain margin over κ from 1e-3 to 1 (301 values) on 3000 frequencies over the band; the predicted hammering gain is kv · 10^(margin/20). Five-bar’s tool turn: −4.18 dB at 0.08, +3.56 dB at the shipped 0.033, both putting the onset at 0.0494 to 0.0497 N m s/rad; the time run with the friction off (bisected) hammers from 0.04758 to 0.04797, within 4 % (quiet at 0.95 and hammering at 1.05 times the prediction, the_margin_across_the_play_says_where_the_tool_turn_hammers); with the friction on from 0.0782 (bisected: 0.07813 quiet, 0.07828 hammering), the friction still damping a swing of a few rad/s at the rotor. A κ-only family with the rotor’s measured friction kept would not predict it at all: closing the play only stabilises this loop (10.53 dB inside the play, 12.86 dB closed). The arms read 7.46 and 7.68 dB (their small-signal 8.59 and 8.84). Empty where the play does not change the small-signal loop (the T-gantry’s and the single axis’s stay closed under the test torque). The figure is told, not judged: the time run is the verdict. Over the cycle’s poses (analysis::margin_poses): the margins, the margin across the play and the kicks are measured at the start pose and at each other pose the cycle stops at (the targets of cycle.segment, once each; the start pose alone without a cycle), each pose a run of its own named start.pose=[...] in sim-cli margins (the start pose’s run is still “”), with the machine’s resonances at that pose among its points; --bands varies the bounds at the start pose only (values of the config, not poses: bounds times poses would multiply the 8600 s of the shipped sweep). LoopMargins::stable is judged per run, so a loop that fails at any pose says FAIL; on stderr sim-cli margins names per motor the least phase margin, gain margin and margin across the play over the poses with the pose. backlash_hammering kicks the loop at every pose and reports the hardest hammering with its pose (Hammering::pose, an index into margin_poses). The five-bar’s tool turn at 0.1 N m s/rad hammers hardest over the pick (2.63 N m at [−0.1525, −0.5, 0.095, π/2]); its margin across the play is the least at the start pose (3.56 dB) on all four poses alike. The T-gantry’s lowest margins are not at its start pose: motor A 51.1° and 9.18 dB at [0.1, 0.05] (|S| 1.93), motor B 55.9° and 9.57 dB at [0.9, 0.35], against 57.7° and 9.93 / 9.84 dB at the start (26 November 2026). Run time of sim-cli margins on 4 cores: the five-bar 26.8 s at the start pose alone, 99.4 s over its four poses; the T-gantry 8.6 s and 31.8 s.
Position loop
Every position cycle T_p, t the time since the profile cycle wrote the setpoints:
φ_target = φ_set + ω_set · t + α_set · t² / 2 effects.fine_interpolation; φ_set held without it
φ_cmd += β · (φ_target − φ_cmd) β = 1 − exp(−T_p / precontrol_balance_s); 1 with it 0
e_pos = φ_cmd − φ_measured motor encoder, or the load-side scale (effects.load_encoder)
K_v · e_pos is held until the next position cycle signal motor.<id>.speed_from_position
One encoder sample per base step serves both loops: the position loop and the velocity loop of the same step see the same reading, with the same noise.
Fine interpolation and precontrol
A SINAMICS S120 or S210 in DSC (dynamic servo control) closes the position loop in the drive at the speed loop’s cycle, with Kv, the controller’s position setpoint and its speed precontrol, while the controller’s interpolator (IPO) sends them every 2 to 8 ms. Between two setpoints the drive interpolates. effects.fine_interpolation does so here: the position setpoint runs on as pos + v t + a t²/2 from the last frame, the derivative of which is the speed feedforward the velocity loop already ran on as v + a t, so the two agree and the following error does not see the setpoint’s steps. At the next frame the extrapolation is off by the jerk’s j T³/6 (4 ms, 1000 rad/s³: 11 µrad), against v T of a held setpoint (100 rad/s: 0.4 rad). Siemens’ cubic fine interpolator needs the next frame and delays by one IPO cycle; this one needs none and is as smooth where the acceleration is continuous. drive.position_cycle_s may equal velocity_cycle_s. Without the switch (a position loop in the controller, at the IPO cycle) the setpoint is held, and its steps of v T go through Kv into the torque (14 November measurements in PROGRESS).
The motor speed and acceleration setpoints come from the inverse kinematics at the setpoint pose moved a moment h = 1 ms along the plan, x ± v h + a h²/2: the first difference is the speed, the second the whole acceleration, J⁻¹ a plus the term d(J⁻¹)/dt · v that a kinematics that is not linear (the deltas, the arms) adds at speed.
The torque feedforward (effects.torque_feedforward, weight drive.torque_feedforward_factor) is, by drive.torque_feedforward_model:
rigid: the rigid model’s inverse dynamics at the setpoint pose, speed and acceleration, gravity included and coupled between the motors. What a controller with a dynamic model sends as torque precontrol. The shipped configs use it.inertia: J_k · α_set,k per motor, J_k the torque the rigid model needs for a unit acceleration of motor k alone atstart.poseless what it needs at rest. What a drive’s own speed/torque precontrol does with the load inertia entered (S120 p1498), as the commissioning of a belt axis or a gantry usually leaves it: no gravity (the speed loop’s integrator takes it; on a vertical axis the controller often adds it as a supplementary torque), no speed terms, no coupling, one inertia for the whole workspace.- off (
effects.torque_feedforward = false): the speed loop alone.
effects.friction_feedforward adds the friction characteristic τ_fr at the speed setpoint, S120 p3820-p3839: points (ω_i, τ_i) at rising speeds, linear between them and from (0, 0) to the first, held beyond the last, with the sign of the speed. A real drive records them at ten constant speeds (p3845); a config takes the recorded points. With drive.friction_feedforward_model = "machine" it adds in place of the characteristic the friction of the machine’s own model at the planned pose and speed (Machine::steady_friction), worked out by the controller every profile cycle and sent with the setpoints: the guides at their steady sliding level, faded in over the Stribeck speed so that a stop puts no step on the axis (LuGre: g(v) tanh(v / v_s) + b v, under the load at rest; Lugre::feedforward), the motor shaft’s friction with the gearbox’s drag, the joints’ friction, idlers, the cable chain and the drums, each at its own speed through the kinematics’ Jacobian and carried to the motor through the ratios, and through the gearbox’s efficiency in the direction of what the gearbox passes at rest (friction plus the weight it holds, or a cable’s tension). What it leaves out: the gearbox’s efficiency on the inertia and gravity torques (the rigid feedforward is loss-free), extra guide load from acceleration, the brake and the stops, and damping, which does no work at steady speed. Every registered machine tells it, and so do the machine files’ belt, screw and rack machines, linkages and deltas (a self-locking worm’s drag left out); the scissor lift’s file tells none. At a constant speed the velocity loop’s integrator then carries nothing (the_machine_friction_feedforward_is_the_steady_friction_and_the_integrator_carries_nothing, single axis: 0.197548 N m at 1 m/s by hand; one such test per machine crate). Where it is on in the shipped configs, and what it does there, is in validation.
drive.precontrol_balance_s balances the speed precontrol (S120 p2536, the PT1 of the position controller’s speed precontrol): the position setpoint goes through a first-order lag before the position loop compares it. The speed feedforward moves the motor through the closed speed loop, which lags by about its equivalent time constant; delaying the setpoint by as much leaves the position loop less to correct. The following error is then the one against the balanced setpoint. The dead time p2535 is not modelled. Off (0) in the shipped configs, as a drive comes commissioned.
effects.load_encoder closes the position loop on a load-side measuring system (S120 direct measuring system): the tool axes as the elastic model has them, in steps of drive.load_encoder_step, turned into motor angles by the inverse kinematics. The speed loop stays on the motor encoder. Belt stretch, gear twist and backlash are then inside the position loop, and the following error is the load’s.
Tests: fine_interpolation_runs_the_setpoint_on_between_profile_cycles, the_friction_feedforward_is_the_characteristic_at_the_speed_setpoint, balancing_lags_the_position_setpoint_by_its_time_constant (drive.rs); the_constant_inertia_feedforward_is_j_times_the_motor_acceleration, a_load_side_encoder_measures_the_following_error_at_the_load, both_loops_read_one_encoder_sample_per_step, a_long_profile_cycle_with_fine_interpolation_keeps_the_peak_torque (sim-machines control tests).
Electronic cam
A machine that has a cam (Machine::cam, the crank and cam machines of machine-crank-cam with cam.run = true) runs it as
its cycle: the controller moves a master m from rest to its speed V by a sin² ramp of cam.ramp_s (m’ = V sin²(π t /
2T), m’’ = V π / (2T) sin(π t / T)), steady after, and down by the mirror ramp after a stop. The slave’s setpoint is
s(m) + offset, its speed s’(m) m’ and acceleration s’‘(m) m’² + s’(m) m’’ (cam::slave_motion), s from
sim_components::cam (VDI 2143 segments or a cubic through a table). The offset keeps the slave where it stands when the
cam starts; the master keeps its position between runs. These setpoints go through the inverse kinematics, the torque
feedforward and the drives as every other motion’s. One pass of the cycle is one master period once the master is up to
speed, so the analysis measures the second steady period. The cam’s peaks at speed V, |s’| V, |s’‘| V² and |s’‘’| V³, are
checked against the axis limits (limit-cam-*). A mechanism’s process force (Mechanism::process_torque: a press force,
a cut) is a generalized force at the joint outside the rigid model: in the dynamics, not in the feedforward, among the
rest in the torque breakdown, and its power given to the process is power.process.
Torque-speed curve
fade = clamp( (ω₀ − |ω|) / (ω₀ − ω_rated), 0, 1 )
motoring : |τ| ≤ peak_torque · fade in the direction of rotation
braking : |τ| ≤ min(peak_torque, τ(i_brake)) i_brake the braking current the voltage circle allows (`voltage_limited_current`)
ω₀ no_load_speed_rad_s. Full torque up to the rated speed, falling linearly to zero at the no-load speed. Braking is held to the peak torque only, without the circle, where the config has no motor.pole_pairs or the voltage is unlimited. With effects.torque_limit off the torque setpoint is not limited; the analysis still judges against the curve. What it judges is the velocity loop’s output before this limit (torque_demand), so a drive that sits on the limit shows as a utilisation above 1. This curve is a separate, configured limit; the voltage limit of the winding acts as well. It holds at the config’s voltage (the sinusoidal limit of drive.bus_voltage_v); at another one (a sagging DC link, drive.overmodulation) each of ω_rated and ω₀ moves by the ratio of the speeds at which the voltage circle (R i + k_E ω)² + (p ω L i)² = U² still leaves that point’s current (voltage_limited_current at the printed voltage) at the new and the printed voltage, solved for ω in closed form, so R, L and k_E enter; without R the speeds scale with the voltage (test the_linear_fade_follows_r_and_ke_at_another_voltage: 314 and 420 rad/s at 190 V move to 235.5 and 335.6 rad/s at 152 V, 1.3504 N m at 300 rad/s). With field weakening the curve follows from the d-q model instead (below).
Field weakening
effects.field_weakening (on in the shipped configs since 14 November 2026; read as off where a config has no switch): the permanent-magnet synchronous motor in d-q axes. The one winding above is the q axis, scaled as it is (current the RMS phase current, voltage three times the RMS phase voltage, so R, L and U_max are the winding’s: three times the data sheet’s phase values); the d axis is scaled alike. The flux linkage is ψ = k_e / p, from the torque constant; p = motor.pole_pairs, L_q = motor.inductance_h, L_d = motor.d_inductance_h. With the electrical speed ω_e = p · ω:
u_q = R · i_q + L_q · di_q/dt + k_e · ω + ω_e · L_d · i_d
u_d = R · i_d − ω_e · L_q · i_q
u_q² + u_d² ≤ U_max² voltage circle (the DC link through the modulation, as above)
i_q² + i_d² ≤ I_max² current circle (the motor's maximum current; the drive holds the q reference to it with the d reference, i_q,ref² + i_d,ref² ≤ I_max², the current loop follows)
τ = k_t · i_q + p · (L_d − L_q) · i_d · i_q
Above base speed the drive sets a negative d current: the least that brings the steady voltage within the circle for the q setpoint, from (c₀ + a · i_d)² + (R · i_d − b · i_q)² = U_max² with c₀ = R · i_q + k_e · ω, a = ω_e · L_d, b = ω_e · L_q (DriveParams::d_current_for). The q axis’s current controller adds ω_e · L_d · i_d to the back-EMF it expects and gets what u_d leaves of the voltage, sqrt(U_max² − u_d²). The d current is held over the base step like the voltage: u_d · i_d joins the electrical power, R · i_d² the copper loss (and so the heating), the reluctance torque the shaft, so u_q · i_q + u_d · i_d = R (i_q² + i_d²) + L_q · i_q · di_q/dt + τ · ω still closes. The drive’s thermal image, the RMS current of the analysis and drive-current see the phase current sqrt(i_q² + i_d²).
The torque-speed curve is then the most torque within both circles at each speed, over d currents from 0 to −I_max (golden section), up to drive.peak_torque_nm, motoring and braking apart; motor-peak, the report’s curve and the app’s plot use it. Towards high speed the best d current tends to the characteristic current −ψ / L_d.
Catalogue: Siemens publishes R, L, k_E and the pole pairs of the 1FK7 and 1FT7 (motors_s120_electrical.csv, motors_s120.csv); a motor by name sets pole_pairs and takes L_d = L_q (surface magnets, [estimate]). For the 1FK2 and 1FT2 none of these is published (not in the S120 configuration manuals 02/2022, the S210 operating instructions 06/2020 and 09/2022, nor the configurator’s data sheet per article); the config’s [estimate]s stay.
Tests: field_weakening_gives_the_hand_calculated_torque_above_the_voltage_limit (drive.rs: 0.45 N m/A, 190 V, 9.5 A, 4 pole pairs, 10 mH, R → 0, at 500 rad/s: the circles cross at i_d = −5.625 A, i_q = 7.6557 A, 3.4451 N m, where the fading curve has none; the current loop settles there with |u| = 190 V and the power balance closes), the_d_q_model_holds_the_published_points_of_a_1fk7 (1FK7042-2AF7 at 600 V: the rated 2.6 N m at 2.0 A and 314.16 rad/s within 6 % and inside the curve without d current; torque left at n_max,inv = 670.2 rad/s, where the fading curve ends at 538.9 rad/s; the best d current at 942.5 rad/s within 1 % of −ψ / L_d = −3.247 A). Siemens’ torque-speed curves themselves are printed only as graphs and are not in the catalogue files, so the model is not checked against curve points.
Assumptions: the d current follows its setpoint at once (no d-axis winding state); the back-EMF in the d-current choice and the curve is unsaturated, the drive’s own model of the motor, while the winding’s is saturated: the d current leaves a voltage reserve of up to the saturation’s share of the back-EMF. Taken saturated, the steady point sits on the voltage circle, where braking beyond the curve is unstable (the q voltage the circle leaves falls as the braking current rises, faster than R and the back-EMF’s fall hold it): the test winding with 11 % saturation ran away to 18.8 A of its 9.5 A at 400 rad/s; the reserve costs it 3.6 % of torque at 380 rad/s (3.3255 against 3.4514 N m); the velocity loop’s torque limit and the current loop take the DC link’s voltage of the moment (Drive::max_voltage), the planner’s and the analysis’s curves the nominal bus; no MTPA below base speed for L_d < L_q beyond what the curve’s search finds; check_limits judges the axis limits against the maximum speed and the curve at that speed, as a warning only (see the axis-limit check).
Axis limits and the motors
check_limits (Sim::limit_violations, the warning at start-up) judges each motor by its own drive and motor ([drive.<id>], [motor.<id>], [parts.<id>]): the motor speed with every axis at its highest speed, in every combination of directions, at the middle pose, against its maximum speed (drive.max_speed_rad_s), and the rigid torque with every axis at its highest acceleration against its torque-speed curve at that speed (and the torque of the drive’s maximum current, where lower). It is a warning, not a verdict: it takes every axis at its limits at once, which a cycle need not ask. The catalogue search and the optimiser used it as a screen before 14 November, against the shared rated speed and peak torque, and so ruled out motors that passed every verdict (on EXCT-30 at 400 V 32 of 84, the 1FT2205-2AC among them, which turns 157 of its 209 rad/s rated). Now they simulate every candidate, and the verdicts judge what the cycle asks: motor-peak against the curve, motor-speed against the maximum speed.
Measurement effects
| Effect | Model |
|---|---|
encoder_resolution | The position is rounded to whole counts of 2π / encoder_counts_per_rev. The speed is the difference of two positions per velocity cycle |
sensor_noise | Gaussian noise (twelve uniform numbers summed) on the position, encoder_noise_counts counts standard deviation, before rounding; and on the measured current, current_noise_a. Pseudo-random from noise_seed, one stream per motor, so runs repeat |
velocity_filter, torque_filter | First-order low-passes, computed once per velocity cycle |
drive_delay | The voltage acts current_delay_cycles current cycles after it was computed, the torque setpoint velocity_delay_cycles velocity cycles after. Whole cycles |
DC link and braking chopper
effects.dc_link: one DC link per drive, built from [ratings].
E = ½ · C · U² − P · dt the capacitors give what the motor draws and take what it feeds back
fed = clamp( E − ½ · C · U_bus², 0, P_line · dt ) with effects.regenerative_supply: the line module feeds back
burned = clamp( E − fed − ½ · C · U_th², 0, P_peak · dt ) the chopper switches the resistor in above the threshold
U = sqrt( 2 · (E − fed − burned) / C ) but never below the bus voltage: the rectifier feeds from the line
drawn = ½ · C · U_bus² − (E − fed − burned) what the rectifier puts into the link, where that is positive
line = drawn / η_line what it takes from the line; η_line = ratings.line_module_efficiency
mains = η_line · fed what a regenerative supply gives the mains
loss = (1 / η_line − 1) · drawn + (1 − η_line) · fed the line module's (or the S210's rectifier's) loss, budget row line_module
trip : U > dc_link_overvoltage_v
ratings.line_module_efficiency (at most 1) is read with effects.dc_link; the shipped configs have 0.98. Without the DC link simulated the supply gives what the motors draw, without loss.
Stepping the energy instead of the voltage is exact for any step size. P is the step’s electrical energy E_el over dt (see winding). When a drive trips, all drives go off as with a Disable command, and stay off until Enable. Without the effect the DC link voltage stays at drive.bus_voltage_v.
Motor model additions of 14 November 2026
d-axis dynamics and warm resistance. With field weakening the d current no longer jumps to its setpoint: it follows it as the tuned current loop does, with the time constant L_d / K_p (the controller’s T_n = L / R cancels the winding’s own), exactly per base step, as far as the voltage circle lets it: the d voltage that moves it is held within U_max (d axis first), and the q axis gets the rest. A q setpoint beyond what the two circles leave together (above the curve) gets the d current of the most q current that fits, not one that fills the current circle and leaves no torque. The d current’s setpoint and u_d take the winding’s resistance at its temperature, as the winding integration does. Tests: the_d_current_follows_its_setpoint_with_the_current_loop_time_constant (0.25 ms: −3.5289 A of −5.625 A after four cycles, the first cycle’s 199 V held to the 190 V circle; −3.5557 A unbounded), the_d_current_takes_the_warm_resistance, braking_at_the_voltage_limit_does_not_run_away (the audit’s −19.1 N m at 42.5 A at 400 rad/s on the old code, now within 3.8 N m, 9.5 A and 190 V at 380 to 450 rad/s, motoring and braking, saturation on and off).
Voltage limit from R, L and the DC link. the_voltage_limit_gives_the_hand_calculated_torque_from_r_l_and_the_dc_link: the 1FK2205-4AF at 540 V (R = 2 Ω, L = 15.67 mH from Siemens’ short-circuit braking table, 4 pole pairs) has 15.614 N m at 600 rad/s and 17.818 N m at 500 rad/s by a hand search over the d current, where the old linear fade gave none and 1.595 N m. The current loop and the velocity loop’s torque limit use the DC link’s voltage at each moment (DriveParams::torque_range_at), so a sagging DC link limits the torque at speed: a_dc_link_ten_percent_low_lowers_the_velocity_loops_torque_limit_at_speed (the field weakening test’s motor at 500 rad/s, 171 V of 190: i_d = −6.38711 A, i_q = 7.03241 A, 3.16459 N m against 3.4451 N m; without field weakening the fade’s speeds scale with the voltage, 1.91195 against 3.22642 N m at 330 rad/s). The planner’s curve uses the nominal bus.
Iron loss. effects.iron_loss (on in the shipped configs): Siemens’ static data (M_0 at I_0) and rated data (M_N at I_N, n_N) both hold for the rated rise of 100 K, so at the rated speed iron and the other speed-dependent losses take P_Fe,N = R(ϑ_rated) (I_0² − I_N²). Over speed P_Fe = P_Fe,N (n / n_N)^1.5 (hysteresis with the frequency, eddy currents with its square; one exponent stands for both, as no maker prints the split). The copper loss is then referred to the stall current, at which it alone brings the winding to its rated rise. The iron loss heats the one node, or with motor_thermal_nodes the housing’s. Test: iron_loss_at_a_speed_is_the_hand_calculated_share_of_the_rated_loss (R 4 Ω, I_0 3 A, I_N 2.5 A: 15.29 W at the rated speed, 1.911 W at a quarter; settled 100 K at the rated current and speed, and at the stall current at standstill).
The same losses drag a servo’s shaft. The printed rated point holds them too: the shaft gives M_N at I_N and n_N, so k_t I_N (with the model’s saturation) − M_N is what iron and friction take there. The drag at the rated speed is T_N = k_t I_N − M_N − the motor’s own friction at n_N (motor.friction_* with motor_friction), at least 0, and over speed T_N ω / √(|ω| ω_N), so its power follows the same (n / n_N)^1.5; smooth through standstill. The shaft gets the air-gap torque less it, the budget books its power in the emf.<motor> row, and a disabled drive’s turning rotor has it too (its work over the step is the integrated one: the torque held over the step times the angle turned, or with the pulses off after a trip the drag integrated with the step’s stages). This power and P_Fe,N above are two numbers on purpose: P_Fe,N is the heat as the winding feels it, in copper-loss watts, the drag’s power what the shaft loses. On the 144 1FK7/1FT7 rows of motors_s120.csv with a printed winding resistance the torque gap’s power (k_t I_N − M_N) ω_N is a median 2.9 times R (I_0² − I_N²), and the printed efficiency’s losses beyond copper side with the gap (median 0.75 of it, 2.3 times the thermal split): iron and bearings sit nearer the housing and heat the winding less than its own copper. Taking the thermal split as the drag, as first written, left the shaft above the printed rated torque by the rest of the gap (a median two thirds of it); taking the gap as the heat would put the rated point above its rated rise. On the S210 catalogue 97 of the rows the single axis’s config can take have a drag; on the others the model’s saturation curve gives at most 2.91 % less than M_N at I_N (the 1FT2108-5SB at 230 V), which no drag can fix. Tests: the_iron_loss_drags_the_shaft_and_the_budget_closes_with_it (T_N 0.1 N m: 0.05 N m at a quarter of the rated speed, the budget’s row 31.4 W at the rated speed, the heat 15.29 W), every_catalogue_motor_reaches_its_rated_point_inside_the_voltage_limit (the shaft at I_N and n_N is M_N to 1e-9 on the 97 rows).
Magnet temperature. effects.magnet_temperature (off): k_t and k_e scale with 1 + α (ϑ − ϑ_rated), α = motor.magnet_temperature_coefficient_1_k (−0.0012/K), ϑ the winding’s rise (the housing’s with motor_thermal_nodes). The catalogue’s k_t holds at the rated rise; a cold motor has 12 % more. With motor_thermal_nodes the magnets sit at the housing’s rise, which at the rated state is (1 − s) times the rated rise, and the flux is compared with that: 1 at the rated state (it compared the housing’s rise with the winding’s rated one before, 1.03 at s = 0.25). Test: cold_magnets_give_the_hand_calculated_torque_per_amp.
S1 check. motor-s1 (servo motors only) judges the RMS torque at the mean speed against the S1 curve:
printed curve (ω_k, T_k): T_S1(ω) = T_k−1 + (T_k − T_k−1) (|ω| − ω_k−1) / (ω_k − ω_k−1) T_1 below ω_1, the last T beyond the last ω
line: T_S1(ω) = max(0, k_t I_0 + (M_N − k_t I_0) |ω| / ω_N) continued beyond the rated speed
The printed curve is motor.s1_curve_speed_rad_s and motor.s1_curve_torque_nm: the same number of points, at least two, speeds rising from 0 or above, torques not negative, else the config is refused; both absent or empty: the line (drive::s1_curve_of, s1_interpolated). An S210 motor named in [parts] brings the curve catalog/siemens/s1_curves_s210.csv has for it, digitised from Siemens’ graph: 88 of the 96 motors, each at one supply (400 V where it has a rated point at 400 V, else 230 V), and only when the motor is named at that supply; at another supply, or for a motor without a curve, the keys are taken out and the line holds (catalog::set_s1_curve). The line needs motor.stall_current_a (I_0, read whether or not effects.iron_loss is on); without it there is no motor-s1 verdict, and the chart draws the rated torque flat. motor-speed judges the peak speed against drive.max_speed_rad_s. Test: the_s1_check_judges_the_rms_torque_at_the_mean_speed_by_hand (1FK2205-4AF: 5.4832 N m at 157.08 rad/s on the graph’s curve, 5.3 N m on the line), the_printed_s1_curve_is_read_linearly.
Braking resistor heating. effects.braking_resistor_heating (with dc_link): ϑ’ = (ϑ_rated P / P_continuous − ϑ) / τ_R, stepped exactly. Test: the_braking_resistor_warms_by_the_hand_calculated_rise_in_a_pulse (100 kW for 1 s on the 1.5 kW resistor, τ_R 60 s, 200 K: 220.38 K, 72.15 K at the end of its 68 s cycle).
Line module loss when drawing. With the DC link simulated, the line module (an S210’s rectifier alike, with or without effects.regenerative_supply) draws P / η from the line for P into the DC link; the difference is its loss (Drive::line_loss, budget row line_module; at η = 0.98 it is 1 / 0.98 − 1 = 2.04 % of what the rectifier puts into the link). Test: a_regenerative_supply_feeds_back_into_the_mains_up_to_its_power (49 W motoring: 50 W drawn, 0.1 J lost in 0.1 s; η = 1 draws the 4.9 J the motor takes, as before 14 November 2026).
Enable without DC link. A drive enabled while holding a load draws its winding’s L i² / 2 from the supply in its first step (Drive::enable_energy); with the DC link simulated it comes out of the link, as before.
Signals per motor: d_current, housing_temperature, drive_overload_image, drive_overload_chip, iron_loss, braking_resistor_temperature (0 where their effect is off).
Regenerative supply. effects.regenerative_supply (with effects.dc_link, off by default): the line module, an Active Line Module as on a SINAMICS S120, holds the DC link at the bus level from above as the rectifier does from below. What the motors feed back goes into the mains up to ratings.line_module_max_power_w; of it line_module_efficiency arrives there (Drive::mains_power) and the rest is the line module’s loss (Drive::line_loss). Only what is beyond its power charges the capacitors and reaches the chopper. The shipped values are the smallest S120 Active Line Module of the catalogue (16 kW rated, 35 kW maximum) and an efficiency of 0.98 from its 0.28 kW loss at rated power. Hand calculation: a_regenerative_supply_feeds_back_into_the_mains_up_to_its_power (41 W fed back: 4.018 J into the mains and 0.082 J lost in 0.1 s at 190 V; limited to 20 W, the other 21 W charge 470 µF to 212.217 V); on every config the energy fed back is the efficiency times what the motors regenerated (the_regenerative_supply_feeds_back_what_the_motors_regenerate).
Disabled. A disabled drive’s DC link discharges through its bleeder and the drive’s own consumption, C dU/dt = −U / R_b: every step U ← U · exp(−dt / τ) with τ = ratings.dc_link_discharge_time_constant_s, exact for any step, then the step above with P = 0, so the rectifier catches it at the bus level and a regenerative supply takes what is above at once (a_disabled_drives_dc_link_discharges_by_the_rc_exponential: 220 V with τ = 0.2 s are 171.336 V after 0.05 s and the bus level after 69.9 ms).
Assumptions: the rectifier holds the bus voltage as a source with one efficiency at every power; no ripple; the chopper is an ideal power limiter up to braking_resistor_peak_w, not a switched resistor; the resistor heats only with effects.braking_resistor_heating (above), else its continuous rating is judged against the cycle’s mean power; the line module is an ideal power limiter with one efficiency at every power, both ways; the bleeder draws only while the drive is disabled (enabled, its power, U² / R_b ≈ 0.1 W at 155 V, is left out).
Shared DC link. effects.shared_dc_link (with effects.dc_link): the drives of a machine have one DC link, as with one Line Module on a SINAMICS S120. After the current loops of all drives, one step of the same energy balance runs with the sum of their powers:
E = Σ ½ C U_k² − Σ P_k · dt C_link = n · C
then chopper, rectifier and trip as above, once, with one resistor of braking_resistor_peak_w. Every drive then has the link’s voltage and reports the resistor’s power and the trip as its own, so the braking checks show the same shared values for each motor; dc-link-energy compares one drive’s share of the stored energy with one drive’s share of the room, which is the same ratio as for the whole link. What a braking motor feeds back, a motoring one draws: only the net power charges the capacitors. Switched on while the machine runs, the sum above puts the energies of links at different voltages together (the voltages step to the common one; no energy appears or is lost). Assumptions beyond those above: the capacitance is the sum of the drives’ (a Line Module’s own is not counted), and the busbars have no resistance.
Stepper motor
motor.kind = "stepper". Source: stepper.rs. A two-phase hybrid stepper in its usual sinusoidal form behind an open-loop step and direction drive. With N rotor teeth (motor.rotor_teeth, 50 for 1.8°) and the rotor’s electrical angle e = N (θ − θ₀), counted from where the drive was enabled:
τ = k_t (i_b cos e − i_a sin e) − T_d sin 4e T_d: effects.detent_torque, motor.detent_torque_nm (4 N periods a turn)
L di_a/dt = u_a − R i_a + k_e ω sin e
L di_b/dt = u_b − R i_b − k_e ω cos e
R, L and k_t are a phase’s (resistance_ohm, inductance_h, torque_constant_nm_a), k_e = k_t (0 with effects.back_emf off). Both phase currents are integrated with the mechanics as the servo’s winding is; the electrical power is u_a i_a + u_b i_b, the copper loss R (i_a² + i_b²), the shaft work the whole torque’s, the detent’s included (the magnets give that share: see “Enable and detent”).
Drive. The step generator runs the position setpoint on between profile cycles (pos + v t + a t²/2; in velocity mode or a fault’s stop ramp it integrates the speed setpoint) and counts it in microsteps of 2π / (4 N drive.microsteps). The current vector of amplitude I = drive.stepper_current_a stands at the commanded electrical angle e_c: i_a = I cos e_c, i_b = I sin e_c, so τ = k_t I sin(e_c − e): the rotor sits on the magnetic spring of the holding torque T_hold = k_t I, at the load angle δ = e_c − e. The small-angle stiffness is N T_hold, the resonance sqrt(N T_hold / J) / 2π. Beyond the pull-out angle δ = π/2 the spring weakens; past π the rotor falls into the next equilibrium, four full steps (one electrical turn) on, and the open-loop drive goes on counting: the position is lost for good. There is no speed loop: the drive takes no torque setpoint (torque mode is refused, error-open-loop).
The chopper sets each base step the voltages that bring both currents to their setpoints by the step’s end against the back-EMF of the step’s start (the exact solution over the step, as a current-regulated chopper does over its PWM periods), the voltage vector held within the supply U (drive.bus_voltage_v, the simulated DC link with effects.dc_link). So the current falls short at speed and the torque with it.
Pull-out curve. In steady state at the electrical frequency N ω, with phasors (the back-EMF E = k_e ω as the real axis, Z = R + j N ω L): τ = k_t Re(I) and V = Z I + E. The pull-out torque is k_t times the highest Re(I) within |I| ≤ I and |Z I + E| ≤ U, the rightmost point of the intersection of two discs (braking: E with the other sign). It is the holding torque up to (R I + k_e ω)² + (N ω L I)² = U² and falls above. It is the stepper’s torque-speed curve: “motor-peak” judges the delivered torque against it (open loop nothing asks for a torque), and the chart shows it.
Enable and detent. The electrical grid (the electrical zero and the detent’s) is the rotor’s own: the first enable puts it where the rotor stands, later enables keep it, and the drive’s count starts on the grid’s full step nearest the rotor, which the magnetic spring then pulls there by the model’s dynamics (no jump of the state); the count stays that far from the controller’s setpoint, as an open-loop drive’s does (Stepper::re_enabled, Phases::offset; test an_enable_keeps_the_grid_and_pulls_the_rotor_to_the_nearest_full_step). The detent torque is the magnets’ and acts with the drive enabled or disabled (since 22 November; before, a disabled drive gave none): disabled, the controller adds −T_d sin 4e at the step’s start angle to the iron’s drag and holds it over the step as it does the drag (Controller::update). It is conservative, its potential U = −T_d cos(4e) / (4N) (Stepper::detent_potential). Its work is part of the shaft’s, and what the magnets give for it, the step’s change of U from the rotor’s angle at the step’s start to its end, is booked as the drive’s emf_loss (the budget’s row “emf”, Drive::detent_moved; disabled, the held torque’s work as for the drag): U is never stored, so nothing appears or vanishes at an enable or a disable, and the budget closes inside a step (the_budget_closes_inside_one_step_with_the_detents_potential, 1e-9 J, and the step’s U by hand to 1e-15 J). Before 22 November U was stored while the drive was enabled only, so up to T_d / (4N) entered or left the books unbooked at each switch: on the stepper axis without its losses, moved, disabled 50 ms and enabled again, 9.8e-5 J open, now 2.3e-6 J, the same moves with the detent off 2.1e-6 J (the_steppers_detent_neither_appears_nor_vanishes_at_a_disable_or_an_enable, sim-machines). Left out: a drive whose pulses a trip took off coasts on the iron’s drag alone, without the detent (Sim::advance_with_windings; the books stay closed, the detent’s torque is missing there).
Assumptions: sinusoidal phases (no full-step or half-step current shapes); drive.overmodulation raises the H-bridges’ limit to the square wave’s fundamental, 4/π of the sinusoidal one, without the harmonics; no standstill current reduction; after a trip’s pulse stop the detent torque is left out (above); no iron loss; the detent torque’s shape is its first harmonic. Tests (stepper::tests): holding torque k_t I and the load angle asin(0.99) under 0.99 of it; the resonance 112.5 Hz of N = 50, T_hold = 1 N m, J = 1e-4 kg m² within 1 %; the corner speeds 31.89 rad/s (current, unloaded) and 39.70 rad/s (torque); a load of 1.3 T_hold slips by whole multiples of four full steps; jerk-limited ramps at 80 % of the pull-out torque keep in step and at 110 % fall out, below the corner and at 55 rad/s (0.793 N m by hand).
Induction motor
motor.kind = "induction". Source: induction.rs. The standard d-q model with stator and rotor flux as states, in the frame the converter turns at the electrical speed ω_k, amplitude-invariant (a vector’s length is a phase’s amplitude), p pole pairs, ω_r = p ω:
dψ_s/dt = u_s − R_s i_s − j ω_k ψ_s ψ_s = L_s i_s + L_m i_r, L_s = L_m + L_σs
dψ_r/dt = −R_r i_r − j (ω_k − ω_r) ψ_r ψ_r = L_m i_s + L_r i_r, L_r = L_m + L_σr
τ = 3/2 p (ψ_s × i_s) P = 3/2 u_s · i_s, copper loss 3/2 (R_s |i_s|² + R_r |i_r|²)
R_s is motor.resistance_ohm (warming with effects.winding_heating), R_r, L_m, L_σs, L_σr are motor.rotor_resistance_ohm, magnetizing_inductance_h, stator_leakage_inductance_h, rotor_leakage_inductance_h. The four fluxes are integrated with the mechanics; the energy closes with the magnetic energy 3/4 (ψ_s · i_s + ψ_r · i_r). The drive’s current is the RMS phase current |i_s| / √2; the phase voltage’s amplitude is at most U_dc / √3.
V/f (drive.induction_control = "vf"): open loop, the frequency follows the speed setpoint, ω_k = p ω_set, and the voltage rises from the boost (drive.vf_boost_v, line-to-line volts at 0 Hz) to the rated voltage at the rated frequency (motor.rated_voltage_v, rated_frequency_hz) and stays there above. With drive.vf_slip_compensation the frequency is raised by the rated slip (from the name-plate speed drive.rated_speed_rad_s) times the estimated torque over the rated torque; the converter estimates the torque from its own air-gap power, 3/2 u · i less the stator’s copper loss, over the synchronous speed, filtered first order with drive.slip_compensation_filter_s (absent: the rotor’s L_r / R_r; unfiltered the compensation rings at a few hertz). The rotor slips behind on the equivalent circuit’s torque-slip curve; Kloss’s formula τ = 2 τ_b / (s / s_b + s_b / s) holds when R_s is neglected.
Field-oriented ("foc"): the drive models the rotor flux, dψ̂/dt = (R_r / L_r)(L_m i_sd − ψ̂), turns its frame with it by the slip the model gives, ω_k = ω_r + R_r L_m i_sq / (L_r ψ̂), and controls i_sd for the flux (the rated flux up to the rated frequency, falling with 1/ω above: field weakening, and weaker only where the voltage and current circles leave no room at that flux for the torque asked for: the largest flux that does, control_flux) and i_sq for the torque τ = 3/2 p (L_m / L_r) ψ i_sq, both within the current limit (the smaller of motor.max_current_a and the drive’s). PI current controllers with the decoupling the model gives: σ L_s di/dt = u − R_σ i + coupling, σ L_s = L_s − L_m² / L_r, R_σ = R_s + (L_m / L_r)² R_r; drive.current_kp_v_a = σ L_s / T and current_tn_s = σ L_s / R_σ give the current loop the time constant T. The servo’s speed and position loops run on top.
Torque curve. The breakdown curve: the Thevenin form of the equivalent circuit with R_s, τ_b = 3/2 p / ω_e · U_th² / (2 (R_th + |R_th + j (X_th + X_σr)|)), at the V/f voltage (V/f) or the converter’s (field-oriented, then also the current limit at the flux setpoint), and the peak torque drive.peak_torque_nm. V/f takes the maximum over the slip: the stator frequency runs ahead of the rotor by it, so the voltage is the V/f law’s at ω_r + slip and the curve is the best torque of the circuit over that slip, motoring and generating apart (at 10 rad/s 17.95 N m motoring, where the breakdown at the rotor’s own frequency gave 7.79; generating at the rated voltage and frequency −52.0 N m against −27.1). Field-oriented, the curve takes the flux of the most torque (flux_setpoint): the rated one up to the rated frequency and falling with 1/ω above, and weaker where the converter’s voltage circle U_dc / sqrt(3) and the current circle leave more torque at a weaker flux, the top of ψ · i_q(ψ) (i_q the most both circles leave at ψ, i_d = ψ / L_m, motoring; a golden section finds the top, and none is searched where the rated flux is it: the voltage not binding and i_d at most the current amplitude over √2). The control keeps the rated flux (above the rated frequency its 1/ω cap) while the circles leave room at it for the torque asked for, and weakens it only as far as that torque needs, to the largest flux that leaves it (control_flux, a bracketed secant, Illinois, between the cap and the flux of the most torque: a handful of evaluations where a bisection took 30); asked for the curve’s torque it sets the curve’s flux, and the q current is held to what the circles leave at the flux set, so curve and delivered torque agree (by a run within 1 % at 110 to 150 rad/s on the 540 V link, asked_for_the_curves_torque_the_field_oriented_control_delivers_it). On a 540 V link the rated flux 0.995 Wb leaves 23.05 N m at 115 rad/s and 0.774 Wb 27.29 N m, which the control sets when asked for that torque (the curve said 25 N m before, and a flux held at 0.9 of the voltage on the d axis was no round number’s worth of torque); at 140 rad/s 7.24 N m against 20.68 N m at 0.650 Wb; at 60 rad/s the current circle binds and the rated flux stays. The V/f scan is checked against the Thevenin breakdown at fixed frequency and a dense sweep (the_v_f_scan_agrees_with_the_thevenin_breakdown_and_a_dense_sweep). The drive’s maximum current limits the curve through the currents, not through the servo torque constant. Heat: the copper loss of stator and rotor warms the one winding; the reference is the copper loss at the name-plate point (rated voltage, frequency and slip) from the equivalent circuit, which brings it to its rated rise (Drive::thermal_current).
Assumptions: no saturation of L_m, no iron loss, no skin effect in the rotor bars (R_r constant); V/f without a current limit controller; the field-oriented drive knows the motor’s parameters exactly (no detuning unless the config’s values differ from the motor’s, which they cannot here). Tests (induction::tests, a 1.5 kW four-pole motor of round numbers): synchronous speed 1500 rpm and rated slip 4 % from the name plate; Kloss with R_s = 0 at three slips within 0.2 % (τ_b = 37.96 N m at s_b = 0.2846) and the breakdown with R_s, 27.10 N m, against the curve’s top; the starting current 22.385 A amplitude (15.83 A RMS); a 5 N m load step under V/f costs 2.947 rad/s of slip by hand (within 6 %) and less than 0.4 rad/s compensated; the flux builds with L_r / R_r = 134 ms (63.2 % at one, 95 % at three); a torque step answers with the current loop’s 0.5 ms.
Machine files and verdicts. machines/stepper-axis.toml (a NEMA 23 stepper on a small belt axis, 48 V, 16 microsteps) and machines/induction-lift.toml (a 1.5 kW four-pole motor, gearbox 10, vertical belt lift, field-oriented), [estimate] values both. Siemens’ S1 check (“motor-s1”) is a servo motor’s and not made for the other kinds; “stepper-synchronism” judges a stepper’s highest load angle over the pass against the pull-out angle π/2 (above π it has lost steps). Tests: crates/sim-machines/tests/motor_kinds.rs.
Start, disable, enable
A drive starts at rest already delivering the torque that holds the load, so a hanging axis does not sag: the velocity integrator, the torque filter and delay hold that torque, the current loop’s integrator, output and delay the voltage R(ϑ) · i that holds its current, with the winding’s resistance at its start temperature (before 14 November 2026 the cold one: a winding started or enabled warm began with a step of (R(ϑ) − R) i). At the start the holding torque is the machine’s equilibrium at the pose the tool stands at (since 15 November 2026; before, at the pose the motor encoders read, the forward transformation of the motor angles, which the gearbox’s twist or a belt’s stretch puts some micrometres away: on the single axis with its backlash 8.7 µm, 5.3e-4 N m against 0.8e-4 N m of cogging and tooth meshing). An Enable has no machine state and holds at the pose the encoders read. At the start the DC link is at the bus voltage: the ½ L i² of the holding current is taken from it only at an Enable (below). Disabled drives give zero torque, current and voltage; their windings cool (with effects.winding_heating) and their DC links discharge (with effects.dc_link). The current in a winding when the pulses stop freewheels through the inverter’s diodes into the DC link within microseconds, so in the first disabled step its energy ½ L i² is fed back (the drive’s power for that step is −½ L i² / dt; without the DC link simulated it goes back to the supply). Enable restarts the loops holding where the motors stand; a winding keeps the temperature it has and a DC link the charge it has, less the ½ L i² of the current that holds the load (below the bus level the rectifier makes that up at the next step). A drive that tripped and is enabled again while its link is still above the trip level trips again unless the chopper brings it below within the step. Test: disable_and_enable_conserve_the_electrical_energy (windings plus capacitors across Disable and Enable, to 1e-9 relative).
Stops
Command::Halt(category) stops the machine as a servo drive does, by the stop categories of IEC 60204-1 (sim-cli run --stop-at SECONDS --stop-category N, sim-cli stop, the FMU’s command.stop_category, ks.Sim.stop, the OPC UA node command.stop_category). A move, path or cycle under way is dropped in each.
- Category 0 (SINAMICS STO / OFF2): the torque off at once, as
Command::Disable. The motors coast against what holds them (friction, gravity, the process) until the holding brakes engage. - Category 1 (OFF3, then off; as SS1): every drive’s speed setpoint ramps down from the speed it measures on its OFF3 ramp, ω_rated /
drive.off3_ramp_s(the same ramp as the fault reaction"off3", whateverdrive.fault_reactionis), the velocity and current loops following it with their torque and current limits, the DC link and the braking chopper as in any move (the position loop open). Once every ramp is at zero and every motor belowdrive.pulse_off_speed_rad_s, the brakes are asked to hold with the torque still on; afterbrake.engage_delay_sthe torque goes off. Ifdrive.ss1_time_sruns out first, the torque goes off then, the brakes asked to hold at the same moment, as SS1’s timer does. - Category 2: the controller brakes the plan, the drives stay on. From where the plan stands at its speed v, every axis decelerates evenly to rest in T = max_i |v_i| / a_max,i (the axis limits
axis.*.max_acceleration_*), so the tool keeps the direction it moved in and stops |v| T / 2 further on; then it holds there with torque on. A stop that would end outside the axes’ range ends in T halved until it is inside (at most 8 times). The deceleration steps in and out (no jerk limit).
category 1: s = v² / (2 a) + lag t = v / a + lag a = ω_rated / off3_ramp_s · (load per motor angle)
category 2: s = v T / 2 T = max_i |v_i| / a_max,i
category 0: s = v t_d − F t_d² / (2 m) + m v₁² / (2 (F + F_b)) v₁ = v − F t_d / m
with F what holds the axis (friction), F_b the brake’s torque at the carriage and t_d the brake’s engagement delay. The velocity loop follows a ramp somewhat behind, so the peak deceleration over 1 ms overshoots the ramp’s at its start (6.0 against 5 m/s² on the single axis below); in category 2 the position loop follows the plan’s steps in deceleration the same way (13.3 against 10 m/s²).
Brake delays (effects.brake_delay, off by default): the brakes engage brake.engage_delay_s after they are asked to hold (the drives off, or the end of a category 1 stop) and release brake.release_delay_s after they are asked to let go (the drives on again), to the nearest base step; the brake model of Holding brakes is unchanged. Meanwhile a disabled hanging axis falls: g_eff t_d² / 2, g_eff the weight less what friction holds over the moved mass; a drive enabled again holds against the brake until it lets go. Off, or with both delays 0, the brakes follow the drives within the step as before.
The stop’s state (the SS1 timer, the brakes’ timer) is the controller’s and goes with its snapshot. Tests on the rigid, loss-free single axis (ideal_rigid: 6.125 kg reflected, 4 kg carriage), each seen to fail with its part taken out:
| Test | By hand | Simulated |
|---|---|---|
the_stops_travel_the_hand_calculated_distance_in_the_hand_calculated_time | category 1 at 1 m/s, ramp 0.2512 s from 314 rad/s = 5 m/s²: 0.1 m in 0.2 s; category 2 at 10 m/s²: 0.05 m in 0.1 s | within 3 %; the tool’s last 1 mm/s in category 2 within 20 % of the time (the position loop’s lag) |
a_category_0_stop_coasts_the_hand_calculated_distance_with_the_brake_delay | 10 N friction, 50 N brake, 0.03 s delay: 0.075435 m; no delay 0.051042 m | within 1 % |
a_hanging_axis_sags_by_hand_while_its_brake_engages | upright, 39.227 N weight less 10 N friction on 6.125 kg: 2.1473 mm in 0.03 s (480 steps) | within 2 % |
a_category_1_stop_brings_the_hand_calculated_energy_to_the_dc_link | 3.0625 J less 0.0593 J copper loss: 470 µF to 191.95 V; 4.7 µF: the resistor 2.9412 J | within 0.3 V and 2 % |
Stopping distance (sim-cli stop MACHINE [--category N] [--points N], stop::study): the cycle (or the [path], or --path FILE) runs once; the moments where each tool axis is fastest, where the machine’s kinetic plus potential energy (Machine::energy) is largest, and N moments evenly over the pass (20 by default) are kept as snapshots of a second, identical run, and from each the stop is run until every axis stays below a hundredth of its speed limit for 0.1 s (at most 3 s; a carriage ringing on its belt and brake after the torque is off is not travelling any more). Per stop: how far the tool got from where it was at the trigger, over the axes in metres (over all axes on a machine without one), and how far each axis got, the farthest (not the path, so that ringing does not add up), the stopping time, the peak deceleration over 1 ms, whether an axis went beyond its range by more than Machine::setpoint_slack (a hard stop), the DC link’s peak voltage and the braking resistors’ energy, and whether a drive tripped (it then coasts, as a disabled drive). The worst is the stop with the longest tool distance; stopping-distance judges it against ratings.max_stopping_distance_m where the config has it (on a machine without an axis in m, where the distance is in rad, against ratings.max_stopping_angle_rad), and stop-dc-link (with effects.dc_link) the stops’ highest DC link voltage against the trip level, failed when a stop tripped a drive.
T-gantry
Source: machine-t-gantry/src/lib.rs.
Two fixed motors A (left) and B (right) at the ends of the X beam drive one belt. The belt ends are clamped at the top of the Z axis, and it runs around an idler at the bottom of the Z axis:
clamp → carriage idler → motor A → carriage idler → Z-bottom idler → carriage idler → motor B → carriage idler → clamp
Kinematics
With pulley angles a and b after the gearbox:
x = r/2 · (a + b) z = r/2 · (a − b)
φ_A = i/r · (x + z) φ_B = i/r · (x − z) motor shaft angles
Both motors the same way moves X, against each other moves Z. With a stretching belt this holds only on average: motor angles, pulley angles and load positions are separate states.
The three belt sections
The two motor pulleys cut the belt into three sections of uniform tension. With s = span_min_m, S_x and S_z the strokes:
| Section | From → to | Geometric length | Belt fed in |
|---|---|---|---|
| 1 | clamp → motor A | 2s + x + z | + r_mat · a |
| 2 | motor A → motor B | 4s + S_x + 2 S_z − 2z | − r_mat · a + r_mat · b |
| 3 | motor B → clamp | 2s + S_x − x + z | − r_mat · b |
The total length does not depend on the pose. With tooth stiffness, sections 1 and 3 get one tooth length and section 2 two.
F_x = T₃ − T₁ belt force on the carriage
F_z = 2 T₂ − T₁ − T₃ belt force on the Z axis
τ_A = r_mat · (M₁ − M₂) belt torque on pulley A (M: material force)
τ_B = r_mat · (M₂ − M₃) belt torque on pulley B
Belt mass: half of the free belt is lumped on each motor pulley, J_pulley += ½ · ρ · L_total · r², which is exact for the runs that move at pulley speed. Summed run by run along the belt path (belt_mass), the runs at the clamp move with it, (v_x, v_z), the upper runs at the pulleys’ surface speeds v_x ± v_z and the lower ones back at −(v_x ± v_z), and the runs down the Z axis, which pass the lower carriage idlers at 2v_x ± v_z, at (v_x, 2v_x + v_z) and (v_x, −(2v_x − v_z)): 2T / ρ = L_total (v_x² + v_z²) + 8 (s + s_z − z) v_x² + 4 (2x − s_x) v_x v_z (s the free span at each end, s_x, s_z the strokes). Beyond the lumps that is T = ½ m_xx v_x² + m_xz v_x v_z with m_xx = 8ρ (s + s_z − z) and m_xz = 2ρ (2x − s_x): the X coefficient ρ (L_total + 8 (s + s_z − z)) in all and the cross term 2ρ (2x − s_x) v_x v_z. Lagrange’s equations give the speed terms 8ρ v_x v_z on X and −8ρ v_x² on Z. Where the frame sways at q’ the whole belt sways with it, which adds ρ (4s + 2s_z) q’ v_x (the vertical runs; the horizontal ones cancel) and ½ ρ L_total q’². Both models, the energy, the modes, the frame’s momentum (for a base) and the feedforward at speed (feedforward_torque_moving) have all of it; the machine file sums it the same way from its spans’ speeds over ground (machine files).
Belt weight: the vertical runs hang from the clamp, s + z long down to the upper carriage idlers, and from the lower idlers down to the Z bottom, s + s_z − z long; the horizontal runs keep their heights. The belt’s potential is ρ g ((s + z)² − (s + s_z − z)²) + const = ρ g (2s + s_z)(2z − s_z) + const, so the belt holds up W_z = (m_z + ρ (4s + 2s_z)) g, the Z axis’s weight and that of the runs that move with it (0.16 kg on the default gantry, z_weight): up a run the tension grows by ρ g per metre, so at rest 2T₂ − T₁ − T₃ = W_z (70.216 N, not m_z g = 68.647 N) in the sections’ tension where they leave the pulleys. The potential energy is W_z z, the frame momentum’s first moment has ρ (4s + 2s_z) z of the runs, and V + g · c stays the same along any motion (the_belts_weight_is_at_its_first_moment; until 21 November the runs moved in the momentum without their weight: V + g · c drifted by 0.4708 J = 0.16 kg · g · 0.3 m over the default cycle). The machine file weighs its runs where its frame momentum has them, from its spans’ vertical speeds (runs_height), which gives the same 0.16 kg on its Z.
States of the elastic model
23 states: positions x, z, a, b, φ_A, φ_B, q, u, w; their nine rates; the two LuGre states of the guides; the slack-time counter; the two brake states. With effects.belt_tooth_jump six more per motor pulley.
- x is the carriage relative to the frame. q is the frame deflection in X.
- u is the Z axis’s centre of mass in X relative to the carriage.
- w is the beam’s deflection under the carriage (beam’s vertical mode).
q, u and w stay 0 with their effects off.
Equations of motion
Masses: m_z = Z axis + payload (if attached); m_car the carriage; m_c = m_car + moving chain mass m(x); m_idler,x and m_idler,z the idlers.
Carriage, Z axis, frame, leaning Z axis and beam mode, Lagrange’s equations solved together over (x, z, q, u, w), each coordinate only with its effect on:
T = ½ m_c v² + ½ m_z (v + u')² + ½ m_idler,x x'² + ½ (m_z + m_idler,z) z'² + ½ m_f q'² v = x' + q'
+ ½ m_xx x'² + m_xz x' z' + ρ (4s + 2s_z) q' x' + ½ ρ L_total q'² the belt's runs (above)
+ ½ (m_car + m_z + M_b(x)) w'² − m_z z' w' the beam mode
M · (x'', z'', q'', u'', w'') = (F_x, F_z, F_q, F_u, F_w) M the mass matrix of T
F_x = T₃ − T₁ − F_f,x − F_idler,x − F_chain drag + F_stop,x + F_p,x + m′ v (½ v − x') + 8ρ x' z'
+ ½ M_b′ w'² − ½ k_b′ w²
F_z = 2T₂ − T₁ − T₃ − F_f,z − ½ u² (dk/dz + dc_g/dz) − ½ u² Σ T_i c_i′ − F_idler,z
+ F_p,z (1 + a′ u²) + F_p,x tip′ u + F_stop,z − W_z − 8ρ x'²
F_q = −k_f q − c_f q' + F_p,x − m′ x' v
F_u = tip · F_p,x + 2 a F_p,z u − Σ T_i c_i u − (k(z) + c_g(z)) u − c_u u'
F_w = (m_car + m_z) g − F_p,z − k_b(x) w − c_b w' − M_b′ x' w'
The process force acts at the tool tip, at x + q + tip · u, so on each of them; the lean’s spring acts between carriage and Z axis, on u alone. The idlers spin with the belt’s speed past the carriage, in which the frame’s sway cancels, so they ride on x’ alone. Without effects.tool_flex (and effects.z_axis_bending) m_z rides on v and u stays 0; without effects.frame_compliance q stays 0. c_g is the lean’s pendulum stiffness, c_i and a the belt runs’ geometric stiffness and the tip’s rise, k_b, M_b and c_b the beam mode.
Pulleys and motor shafts, for k = A, B:
J_pulley · d²θ_k/dt² = τ_gear,out + τ_belt,k + r · F_mesh(r · θ_k)
J_rotor · d²φ_k/dt² = ripple(τ_motor,k, φ_k) − τ_gear,rotor − τ_shaft(dφ_k/dt) − τ_brake,k
Frame mode
effects.frame_compliance: the beam and its mounting are one mass frame.mass_kg on a spring frame.stiffness_n_m with damping, in X only. Belt, guide, idlers, chain and end stop push back on the beam with the force they put on the carriage. This is the portal’s own sway, coupled to the belt both ways. What the whole gantry stands on is the compliant base (effects.base_compliance), in series with it.
Leaning Z axis
effects.tool_flex: the guide of the Z axis gives way sideways and in tilt. A force at the distance h from the carriage tilts with the arm h, so the compliance at the centre of mass is the sum of both:
h = z_com_drop_m − z centre of mass below the carriage
h_tool = z_tool_drop_m − z tool tip below the carriage
k(z) = 1 / ( 1/k_lat + h²/k_tilt )
tip = k · ( 1/k_lat + h · h_tool / k_tilt ) tool-tip travel per u
f_z,flex = −½ · u² · dk/dz, dk/dz = 2 · k² · h / k_tilt
The axis is softer the further it hangs below the carriage. The spring gets stiffer as the Z axis rises, which pushes back on Z (the last line; it keeps the energy balance exact).
The Z axis also hangs like a pendulum: held out by the spring’s force F = k u, its centre of mass rises by F² r(h), r(d) = ½ ∫₀^d θ(s)² ds the shortening of the leaning bar (θ(s)/F = h/k_tilt + (h s’ − s’²/2)/E I with s’ = min(s, h), integrated by the 3-point Gauss rule, exact for it). Its weight adds the stiffness
c_g(z) = 2 k² m_z g r(h) (k² m_z g h³ / k_tilt² for a guide that only tilts)
on the lean, beside k, and −½ u² dc_g/dz on Z (lean_weight_stiffness). It is 0 without gravity. The X position the simulator reports is the tool tip over the floor: x + q + tip · u, and its speed likewise. The workpiece stands on the floor, not on the frame, so the frame’s sway is part of path error, tracking error and the settling verdict. q and tip · u are also signals of their own. The process force acts at the tool tip: the share tip of it bends the Z axis, the rest pushes the carriage.
A machine file’s machine.lean node is the same for any body leaning along a horizontal axis, its lean w beside the axes with the body’s mass coupling it to its axis, [[M, m e_a], [m e_a^T, m]] · [a; ẅ] = [F; tip · F_p,a − k w − c ẇ] (machine files); the T-gantry’s file gives this crate’s numbers to 1e-9.
effects.z_axis_bending: the Z axis also bends, a cantilever from the carriage of bending stiffness E I (tool_flex.z_axis_bending_stiffness_nm2), in series with the guide’s give (alone with tool_flex off, whose stiffnesses are then infinite):
k(z) = 1 / ( 1/k_lat + h²/k_tilt + h³/(3 E I) )
tip = k · ( 1/k_lat + h · h_tool / k_tilt + h² (3 h_tool − h) / (6 E I) )
dk/dz = k² · ( 2 h / k_tilt + h² / (E I) )
The Z axis alone at z = 0: k = 3 · 1.4e4 / 0.3³ = 1.556e6 N/m, the tool moving (3 h_t − h)/(2 h) = 3 times as far as the centre of mass; with the guide 1.2206e5 N/m against 1.3333e5 without the bending.
Assumptions: the Z axis is a rigid body on a compliant guide (with z_axis_bending one bending cantilever lumped at its centre of mass, the same state u). Only its lean in X is a degree of freedom, not in Y and not in rotation as a state of its own. The payload sits at the centre of mass used for h.
Beam sag
effects.beam_sag (elastic model): the X beam is a simple span beam.span_m between the posts, E I beam.bending_stiffness_nm2, the carriage beam.carriage_at_zero_m from the left post at x = 0. Carriage, Z axis and payload sag it under the carriage, and the tool is that much lower:
a = carriage_at_zero + x, b = L − a
sag(x) = (m_car + m_z) g · a² b² / (3 E I L) (L³ / (48 E I) per newton in the middle)
z_tool = z − sag(x), ż_tool = ż − sag'(x) ẋ
At rest the Z axis stands sag(x) higher on its belt so that the tool is at its pose. With the default values: 107.87 N, L = 1.3 m, E I = 8.4e4 N m²: 58.8 µm in the middle, 9.8 µm at the ends of the stroke. This is quasi-static.
With effects.beam_vertical_mode (elastic model; it takes the [beam] keys above even with beam_sag off) the beam’s first vertical mode with the carriage on it is a coordinate w, the beam’s deflection under the carriage (down), and the Z axis’s z is relative to the carriage. Its keys: beam.mass_kg_m μ (3.5, an [estimate]) and beam.damping_ratio ζ (0.01). The carriage is kept 0.1 % of the span off the posts, where the stiffness would be infinite.
shape φ: the span's static deflection under a point load at the carriage, φ = 1 there
k(x) = 1 / span_compliance = 3 E I L / (a² b²), M(x) = μ ∫ φ² ds (17 μ L / 35 in the middle)
T = ½ (m_car + m_z + m_b + M(x)) w'² − (m_z + m_v) z' w' + …, V = ½ k(x) w² − (m_car + m_z + m_g) g w, c = 2 ζ √(k (m_car + m_z + m_b + M))
m_v = μ (4 s + 2 s_z) the belt's vertical runs, m_b = m_v + μ (4 s + 2 s_x) / 3, m_g = m_v + μ (4 s + 2 s_x) / 2
z_tool = z − w (+ the lean's rise)
So the Z axis’s acceleration drives the beam through −m_z, and the carriage’s weight riding along the beam drives it through k(x) (a force on x of −½ k’ w², and ½ M’ w’² from the modal mass). At rest w is the quasi-static sag. By hand in the middle (k = 1.835e6 N/m, M = 2.21 kg, m_car + m_z = 11 kg, the belt’s 0.247 kg below): 58.78 Hz with the Z axis held on a stiff belt (59.32 Hz without the belt riding on w, before 21 November); on the default belt the Z axis’s own mode there (83 Hz) rides on w through −m_z and the vertical runs and the two couple to 51.0 and 142.2 Hz by the same two masses (M = [[13.457, −7.16], [−7.16, 7]] kg, K = diag(1.835·10⁶, 1.92·10⁶) N/m; 51.5 and 140.0 Hz without the belt on w) (the former estimate of about 100 Hz left out the carriage and the Z axis). The Lagrangian drops what the shape’s change with x adds to the kinetic energy: a coupling ½ M′ w ẋ ẇ and ½ ∫ μ φₓ² w² ẋ², of the relative size w / L ≈ 5·10⁻⁵ and 10⁻⁹ of the kept terms at the 59 µm sag. The belt rides on w (since 21 November 2026, belt_on_beam): its vertical runs (μ (4 s + 2 s_z) = 0.16 kg) go down with the carriage whole, at z’ − w’ in Z as the Z axis (−0.16 kg more between z and w), and its horizontal runs, from the posts’ pulleys to the carriage’s idlers, tilt with it, a point at the share ξ of the way going down by ξ w: a third of μ (4 s + 2 s_x) = 0.087 kg in the kinetic energy, half (0.13 kg) in the weight on w, the first moment and the vertical momentum; about y the vertical runs at the carriage’s x (their idlers’ pairs either side of it), the tilting runs μ ẇ Σ len (x_post / 6 + x_idler / 3), their carriage end at the carriage’s idler x_c ∓ d (d = 0.03 m and the idler’s radius, as drawn; at x_c until 22 November), and their momenta along X w lower. The weight on the beam, carriage, Z axis and those 0.29 kg, also sags it quasi-statically (effects.beam_sag: 60.33 µm in the middle, 58.78 µm before). The mode falls by 0.93 % (59.32 to 58.78 Hz); the runs’ lengths change with w only to second order, left out (the_belt_riding_on_the_beam_is_in_its_momentum, the_beams_vertical_mode_is_where_the_hand_value_has_it). The beam’s own mass moves with the mode in the frame momentum (vertical momentum −(p₀ ẇ + p₀′ ẋ w), p₀ = μ ∫ φ, 5 μ L / 8 = 2.84 kg in the middle, beside the 11 kg it carries); its weight on those points, −g p₀ w, is in the potential energy, and the beam’s spring holds the stress of the beam’s own sag, whose cross term with the mode is +g p₀ w (virtual work, EI u’‘’’ = μ g): the two cancel, so V above and the dynamics stand, and the potential changes as −g · dc/dt at any x. ζ is the mode’s damping ratio with the carriage and the Z axis on the beam. The damping is the loss row power.beam; the signal beam.deflection is w.
The belt’s vertical runs hold the leaning Z axis back with their geometric stiffness. A run goes from a carriage idler, at the carriage where the guide tilts, to a point of the Z axis d below the carriage: the clamp (d = −(s + z)) or the Z-bottom idler (d = s + sz − z). Under the spring’s force F = k u that point is out sideways by δ = F g(d) (g the guide’s give, tilt and bending at that distance) and has risen along the Z axis by F² ρ(d) (ρ = ½ ∫ θ² of the leaning bar), so the run is longer by δ²/(2|d|) − sign(d) F² ρ(d), and K_uu gains Σ T_i c_i over the runs. A guide that only tilts turns the end about the idler and leaves the run as long as it was; what is left is the guide’s sideways give and its product with the tilt, c = k² (1/(lateral² |d|) + 2 sign(d) h / (lateral · tilt)) per run without bending: about 5 N/m on the default gantry at z = 0.05 m, 3·10⁻⁵ of the lean’s spring. With effects.belt_run_offset (off as shipped; since 21 November 2026) the upper runs of sections 1 and 3 reach the clamp e = tool_flex.belt_offset_m (0.04 m, the pulleys’ diameter) to either side of the Z axis’s line. The clamp, above the carriage, turns with the guide’s tilt θ = k u h / tilt, so it lifts the right run’s end by e θ and lowers the left one’s: section 3 is longer and section 1 shorter by e k h u / tilt, first order in u (lean_offset; at z = 0.1 m 0.19704 u). In the lengths, the rest follows: the tensions put (T₁ − T₃) e k h / tilt on the lean (and its change with z on Z), the sections’ own stiffness EA / l holds the lean with (k₁ + k₃)(e k h / tilt)² and couples it to X through K_xu = −(k₁ + k₃) e k h / tilt, and damping and energy go with them (the_belt_runs_offset_puts_their_tension_difference_on_the_lean). It is not small: the lean’s lowest mode on the loss-free gantry at x = 0.9, z = 0.05 m falls from 18.75 to 17.55 Hz, which is why it has its own switch. Without it the runs are on the line. The process force’s vertical part works on the tip’s rise a(z) u² (the leaning bar is shortened by θ² d / 2): it is in the lean’s and the Z axis’s equations, in the modes and in the process row of the budget, and tool_state has the rise in the tool’s height.
The modes the machine reports (modes; the lowest is resonance_hz, the input shaper’s) are the generalised eigenvalues K v = ω² M v over the elastic coordinates the model has at that pose (pulleys taken as held): the carriage x on the frame, the Z axis’s z on its belt, with effects.frame_compliance the frame’s sway q, with the leaning Z axis its lean u:
T as in the equations of motion, belt's runs and all; the pulleys and the belt lumped on them stand
K = Σ k_i g_i g_iᵀ + k_f e_q e_qᵀ + k_u e_u e_uᵀ, k_i = EA / l_i (l_i the section's unstretched belt at rest)
g₁ = (1, 1), g₂ = (0, −2), g₃ = (−1, 1) in (x, z): the sections' lengths change with x + z, −2z, −x + z
K_xx = k₁ + k₃, K_xz = k₁ − k₃, K_zz = k₁ + 4k₂ + k₃
ζ = vᵀ C v / (2 ω vᵀ M v)
Only modes that move the tool (along X by x + q + tip · u, or along Z) are reported, so that the input shaper aims at the lowest that does and the second shaper at the next one. With the default frame and the leaning Z axis that is four modes: the frame swaying with the carriage on it, the carriage swaying against the frame with the Z axis leaning, the Z axis on its belt, the Z axis’s lean against the carriage. By hand without the lean at x = 0.5 m, z = 0.25 m, in (x, q): M = [[11.32, 11.16], [11.16, 41.42]] kg (11 kg, the belt’s runs 0.32 kg on x, the whole belt’s 0.42 kg swaying, its 1.6 m of vertical runs coupling), K = diag(k_b, 7.4·10⁵) with k_b = 2 · 5·10⁵ / l, l = 1.05 / (1 + 282.84 / 5·10⁵) m: 20.60 Hz and 55.64 Hz (the Z axis’s mode on the belt above them). Against the model’s own linearised equations at rest (the_modes_are_those_of_the_linearised_derivatives_with_the_pulleys_held), loss-free with the backlash off: 18.75 / 30.68 / 76.05 / 116.30 Hz at x = 0.9 m, z = 0.05 m and 20.53 / 53.23 / 83.05 / 201.02 Hz at (0.5, 0.25); without the belt’s mass 18.81 / 30.79 / 78.52 / 119.47 and 20.64 / 53.91 / 83.05 / 206.56 Hz, as an independent reference has them (crates/machine-t-gantry/reference/modes_reference.py, to 1e-5 Hz). C holds the two sections’ damping on the same g_i (belt.damping_n_s_m each, or with material damping belt.damping_time_s · k_i more), frame.damping_n_s_m on q and tool_flex.damping_n_s_m on u; the cross terms of a damping that is not proportional are left out. The stiffness of the control loops is not in it: under the servo the swing is a little faster (about 36 Hz where 34.59 Hz is reported, frame off, x = 0.9 m, z = 0.15 m).
The single axis reports one mode, its carriage on the belt with the pulley held: f = sqrt(k / m) / (2π), k = EA/l₁ + EA/l₂ (dT/dL of the belt section, l its unstretched belt at rest there: 1 + T/EA shorter than the geometric length, 0.06 % at 300 N on 5·10⁵ N), m the carriage with payload and cable chain, ζ = c / (2 m ω) (65.82 Hz at x = 0.5 m). The machine file takes the same l (rest_tensions in sim-netlist), so file and crate agree to rounding. None in the rigid model.
Idlers
effects.idlers: the four carriage idlers and the one at the bottom of the Z axis, all alike, turn with the belt that passes them. Belt passes the two upper carriage idlers at v_z, the lower carriage idlers at 2v_x + v_z (left) and 2v_x − v_z (right), and the Z-bottom idler at 2v_x. With m = J_idler / r_idler² per idler that is
½ · m · ( 2 v_z² + (2v_x + v_z)² + (2v_x − v_z)² + (2v_x)² ) = ½ · (12 m) · v_x² + ½ · (4 m) · v_z²
so 12 idler masses on X and 4 on Z. They add inertia in Z but no weight. Bearing friction: each idler holds back the belt that passes it with the force friction_nm / radius_m, smoothed with tanh around rest:
F_idler,x = 2 d · ( sg(2v_x + v_z) + sg(2v_x − v_z) + sg(2v_x) )
F_idler,z = d · ( 2 sg(v_z) + sg(2v_x + v_z) − sg(2v_x − v_z) )
Cable chain
effects.cable_chain: the chain is fixed at the x = 0 end, so half of every metre the carriage travels joins the run that moves with it.
m_chain(x) = mass_kg_m · ( length_at_zero_m + x/2 ), m′ = mass_kg_m / 2
drag = drag_n · tanh( v_x / friction_x.stribeck_m_s )
The mass grows as the carriage moves, so the equation of motion is d/dt(m · w) − ½ · m′ · w² = force. In the carriage equation that appears as chain_x = m′ · w · (w/2 − v_x), and the frame feels −½ · m′ · w².
Process force
effects.process_force: the force (force_x_n, force_z_n) acts on the tool tip while the cycle dwells at a target, and not otherwise. It is constant.
Hard stops
One per axis, at 0 and at the stroke, as above.
Holding brakes
effects.holding_brake: while the drives are disabled, a brake on each motor shaft holds up to motor.brake_torque_nm and slips with that torque beyond. Each brake has one state, its deflection s:
ds/dt = ω − (s − clamp(s, −s_max, +s_max)) / T_slip s_max = 1 mrad, T_slip = 50 µs
τ_brake = clamp( (τ_max / s_max) · s + c · ds/dt, −τ_max, +τ_max )
Held, the shaft sits on a spring that reaches the brake torque at 1 mrad, with the damping c critical for the rotor on that stiffness. The torque never exceeds the brake torque: beyond it the brake slips, and what s is deflected beyond 1 mrad is forgotten within 50 µs. A brake that engages at speed therefore decelerates the rotor with brake torque over inertia until it stands, at any speed. (The brake was a LuGre contact before; its bristle damping gave many times the brake torque when it engaged at speed, and above 178 rad/s its state was too stiff for the integration step.) A released brake forgets its deflection within 1 ms. With effects.brake_delay a brake engages and releases its delay after it is asked to (see Stops). Brakes exist in the elastic and in the rigid model, and on both motors (there is no separate “brake on Z”; holding Z takes both).
Rigid reference model
effects.belt_stretch = false. Eight states: x, z, their rates, the two LuGre states, the two brake deflections. With belt force F_k = i · (ripple(τ_k) − τ_shaft − τ_brake,k) / r per motor (τ_brake,k the holding brake at the rotor speed i (v_x ± v_z) / r), reflected rotor mass m_r = i² J_rotor / r² and the gearbox loss factors λ_A, λ_B:
( m_X + (λ_A + λ_B) m_r ) · a_x + ((λ_A − λ_B) m_r + m_xz) · a_z = λ_A F_A + λ_B F_B + mesh − F_f,x + 8ρ v_x v_z + extras_x
((λ_A − λ_B) m_r + m_xz) · a_x + ( m_Z + (λ_A + λ_B) m_r ) · a_z = λ_A F_A − λ_B F_B + mesh − F_f,z − W_z − 8ρ v_x² + extras_z
m_X includes both pulleys (2 J_pulley / r²), the idlers, the chain and the belt’s runs m_xx; m_Z the pulleys and the idlers; extras_x holds the process force, the end stop, the idlers’ and the chain’s drag and the chain’s −½ m′ v_x². The gearbox loses torque only on what it transmits, which is the motor torque minus what accelerates the rotor itself; that depends on the acceleration being solved for, and the loss factors are iterated to their fixed point (mech::settled_loss; three passes left up to 1.5e-4 of the acceleration). With a loss-free gearbox and a massless belt this collapses to two independent axes:
( m_x + 2J/r² ) · a_x = F_x − F_f,x ( m_z + 2J/r² ) · a_z = F_z − W_z − F_f,z
The rigid model has no belt stretch, slack, damping, tooth stiffness, backlash, gear stiffness, frame mode or leaning Z axis. Its brakes hold the whole machine on their spring (the damping is critical for the rotor alone, so held it rings a little before it stands). It reports the pretension as belt tension and twice the pretension as radial load.
Feedforward torque and static hold
The torque feedforward and the motor-limit check use the loss-free rigid model, with the belt’s runs and their speed terms at the tool’s speed (feedforward_torque_moving; J = J_pulley + i² J_rotor):
f_x = ( m_x + 2J/r² + m_idler,x + m_chain(x) + m_xx ) · a_x + m_xz a_z + ½ m′ v_x² − 8ρ v_x v_z
f_z = ( m_z + 2J/r² + m_idler,z ) · a_z + m_xz a_x + W_z + 8ρ v_x²
τ_A = r/(2i) · (f_x + f_z) τ_B = r/(2i) · (f_x − f_z)
Friction is not in it (the friction feedforward is steady_friction: guides at their load at rest, idlers, chain, the gearbox’s loss on force and weight, the shaft’s friction). At rest each motor holds W_z r / (2i), with opposite signs.
Signals
Besides the signals every machine gets: belt.1/2/3.tension, axis.x/z.belt_stretch (tool position minus r/2 (a ± b)), axis.x/z.friction, frame.deflection (q), axis.x.tool_deflection (tip · u), beam.deflection (w), belt.slack_time, belt.span_detuning (with effects.belt_span_vibration), pulley.a/b.radial_load, axis.x/z.guide_load, gearbox.a/b.output_torque. And those of the effect views: torque parts, loss powers, energy parts, the friction split per guide and belt.1/2/3.stretch; the simulation adds temperature.gearbox_a/b and temperature.guide_x/z.
The gearbox output torque is the torque that turns the pulley, positive forwards. Elastic model: τ_gear,out, what the gear’s spring and damper pass on, times the loss factor. Rigid model: λ_k · (F_drive,k − m_r · (a_x ± a_z)) · r from the solver’s last pass, the motor’s force less what its own rotor takes, times the loss factor.
Scene. Machine::scene_point maps a tool pose to the place where the scene draws the tool, so that a front end can draw a path there: (span + x, −0.05, z − stroke_z − span − 0.042), the flange under the Z axis. The scene itself draws the flange at the carriage’s place on the beam, so at rest the two coincide; in motion the tool tip is off the drawn flange by the frame’s deflection and the lean of the Z axis.
The belt wraps each motor pulley by half a turn, so the two sections that end there pull its shaft the same way: radial load A = T₁ + T₂, B = T₂ + T₃. The guide loads are those of the friction model: weight, side force and tilting moment from the commanded acceleration, without moments on single blocks. The X guide carries m_x g + |tilt|, the Z guide |m_z a_x| + |tilt|, tilt = 2 m_z a_x (z_com_drop − z) / guide_spacing. a_x is what the motor torques would give the loss-free rigid model (commanded_ax), over its mass matrix with the belt’s runs, and with the Z axis’s weight on the Z row: through the runs’ coupling m_xz the torque that holds the Z axis up would otherwise count as X acceleration.
Single axis
Source: machine-single-axis/src/lib.rs.
A motor at the left end drives a carriage through a belt loop around an idler at the right end. x = r · a. The axis can be inclined (geometry.incline_deg).
| Section | From → to | Geometric length | Belt fed in |
|---|---|---|---|
| 1 | pulley → carriage, straight | s + x | + r_mat · a |
| 2 | pulley → idler → carriage | 3s + 2S − x | − r_mat · a |
Elastic model, 9 states (x, a, φ, their rates, the LuGre state, the slack-time counter, the deflection of the holding brake):
m · d²x/dt² = T₂ − T₁ − F_f + F_stop + F_extra − m · g · sin(incline)
J_pulley · d²a/dt² = τ_gear,out + r_mat · (M₁ − M₂) + r · F_mesh(r · a)
J_rotor · d²φ/dt² = ripple(τ_motor, φ) − τ_gear,rotor − τ_shaft(dφ/dt) − τ_brake
F_extra = F_process (while dwelling) − drag − ½ · m′ · v²
m is the carriage plus the payload if attached, plus the moving run of the cable chain m_chain(x) with effects.cable_chain; drag and m′ are the chain’s, with the Stribeck speed of friction_x. The chain’s run has weight along an inclined axis like the carriage (lifting it from 0 to x takes mass_kg_m · (length_at_zero_m · x + x²/4) · g · sin(incline)), and does not load the guide. F_process is process.force_x_n with effects.process_force. τ_brake is the holding brake of the T-gantry, the same component (HoldingBrake in mech.rs, as CableChain), on the one motor shaft; in the rigid model (states x, v, the LuGre state and the brake deflection) it takes i · τ_brake / r off the drive force. The whole belt runs at carriage speed, so all of its mass sits on the pulley: J_pulley += ρ · (L₁ + L₂ − 2 l_tooth) · r², the belt less the teeth in mesh. The idler at the far end is free and has no inertia.
Rigid model, 4 states (x, v, LuGre state, brake deflection), with m_r = i² J_rotor / r²:
a = ( λ · F_drive + F_mesh − F_f − m g sin(incline) + F_stop + F_extra ) / ( m + J_pulley/r² + λ · m_r )
λ is the gearbox loss factor on the transmitted force, taken at its fixed point (mech::settled_loss).
Signals: belt.1/2.tension, axis.x.belt_stretch (x − r · a), axis.x.friction, belt.slack_time, pulley.m.radial_load (T₁ + T₂), axis.x.guide_load (m · g · cos(incline), without the chain), gearbox.m.output_torque (elastic: τ_gear,out; rigid: λ · (F_drive − m_r · a) · r). And those of the effect views, with belt.1/2.stretch; the simulation adds temperature.gearbox_m and temperature.guide_x.
Machine::scene_point maps x to where the scene draws the carriage: (span + x, −0.03, 0.06).
Not on the single axis: frame mode, leaning tool, idler inertia and friction. Its one mode, the carriage on the belt, is described under the T-gantry’s modes; none in the rigid model. In the rigid model, as in the elastic one, disabled drives leave it to the holding brake.
Delta picker D3
Source: sim-netlist/src/spatial.rs (the crate reads its tables into it; a machine file’s linkage node of three arms builds the same machine), with the joint of joint.rs. Equations after the research note of 13 November 2026: Williams, “The Delta Parallel Robot: Kinematics Solutions” (Ohio University, 2016), for the kinematics; Codourey (IJRR 17(12), 1998) as used by Olsson (“Modeling and control of a Delta-3 robot”, Lund 2009) for the dynamics.
Three arms at the azimuths φ_i = 0°, 120°, 240° turn about horizontal axes at the base radius R; each carries a parallelogram of two forearms down to a platform of radius r, which stays level. The tool is the platform’s centre p = (x, y, z), in a frame with its origin at the centre of the shoulder plane and z up (the platform works below 0). θ_i is the arm angle, 0 horizontal and positive downwards. Because the platform never turns, its offset folds into the base: e = R − r.
Kinematics
elbow c_i(θ) = R_z(φ_i) · (e + L_a cos θ, 0, −L_a sin θ)
constraint |p − c_i|² = L_b² (the parallelogram's centre line)
inverse (x′, y′, z) = R_z(−φ_i) p, A = −2 L_a (x′ − e), B = 2 L_a z, C = (x′ − e)² + y′² + z² + L_a² − L_b²
A cos θ + B sin θ + C = 0 → θ = 2 atan( (−B − sqrt(A² + B² − C²)) / (C − A) ) (elbow out)
forward the point at L_b from all three elbows (trilateration), the lower of the two
Jacobian J_x ṗ = J_q θ̇, J_x rows u_i = p − c_i, J_q = diag(u_i · ∂c_i/∂θ_i), ṗ = J θ̇, J = J_x⁻¹ J_q
J_x p̈ = J_q θ̈ + w, w_i = θ̇_i² (u_i · ∂²c_i/∂θ²) − |ṗ − ∂c_i/∂θ θ̇_i|²
No solution of the inverse (A² + B² < C²): out of reach. The forward kinematics fails where the elbows cannot be joined (z² < 0) and at a direct singularity (J_x singular). The condition number of J (2-norm: the square root of the largest over the smallest eigenvalue of JᵀJ, by the closed form for a symmetric 3 × 3) is the signal kinematics.condition, and the check singularity judges its highest value in the cycle against ratings.max_condition_number. Machine::condition gives it at any pose (infinite out of reach) for the app’s workspace map; the other machines have none to give.
Working range (Machine::unreachable): a cylinder of workspace.radius_m below workspace.top_z_m, its bottom a sphere through the edge at height_edge_m and the centre at height_centre_m below the top (Autonox’s drawing: R 1060.74 mm = (600² + 186²) / (2 · 186)). The axis ranges are the box around it. A target outside the cylinder or the sphere, out of reach, with an arm beyond joint.min_angle_deg / max_angle_deg, or with a condition number above workspace.max_condition_number is refused with its reason (error-delta-outside-envelope, -out-of-reach, -joint-stop, -singularity). The controller checks moves, setpoints, cycle targets and every pose of a planned path against it; a straight move between two poses in the range stays in it (the range is convex). The standard suite’s round trip runs over the poses of its grid that are in the range.
Dynamics
Lumped (effects.forearm_inertia off), each forearm pair’s mass m_fb is split: a share s (mass.forearm_elbow_share, default 2/3, which matches the rod’s inertia about its end, m L²/3) turns with the arm at the elbow, the rest moves with the platform. The forearms’ own rotational inertia is left out. The share is the inertia’s; a rod’s weight acts at its middle, half at each end (exact with the rods, effects.forearm_inertia). The kinetic energy is the split’s, ½ m_fb (s v_E² + (1 − s) v_P²) with v_E, v_P the speeds of the rod’s ends, against the rod’s exact (m_fb / 6)(v_E² + v_E · v_P + v_P²): no two-point split has the cross term. With s = 2/3 the difference is (m_fb / 6) v_E · (v_P − v_E), nil where the elbow stands or the rod only translates; with s = 1/2 it is −(m_fb / 12)|v_P − v_E|², the rod’s turn always missed. The split is the model’s, so the energy, the mass matrix and the energy balance keep it; the exact one is the rods’. The frame momentum (for a base) takes the forearms as the rods they are in either model: a sixth at each end and two thirds at the middle, which gives a rod’s momentum m_fb (v_E + v_P) / 2, its first moment at its middle, where its weight is, and its angular momentum in the arm’s plane (frame_momentum; until 21 November the lumped model had the momentum at the split, so that the weight’s potential V and the first moment c drifted apart along a cycle: V + g · c by 0.060 N s of momentum and 2.6 N of vertical reaction on the D2, 0.076 N s / 3.0 N on the D3 and 0.077 N s / 3.2 N on the D4, testkit::weight_is_at_the_first_moment). The planar delta and the parallel SCARA, which have only the lumped model, do the same. Then the machine is three arms about their joints and a point mass at the platform:
m_nt = m_platform + m_payload + 3 (1 − s) m_fb
I_b = I_arm + L_a² (m_elbow + s m_fb) (I_arm about the joint; rotor and gearbox not in it)
m_LG = m_arm l_cg + L_a (m_elbow + ½ m_fb)
M(θ) θ̈ = τ_out + Q_g − m_nt Jᵀ J_x⁻¹ w + τ_joint
M = I_b · 1 + m_nt JᵀJ, Q_g,i = g m_LG cos θ_i − (m_nt + 3 (s − ½) m_fb) g J_zi
This is exact for the lumped model’s kinetic energy: the platform’s kinetic energy ½ m_nt |J θ̇|² is what M holds, the velocity term is the platform’s m_nt p̈ through Jᵀ with p̈ = J θ̈ + J_x⁻¹ w, and Q_g = −∂V/∂θ with V = (m_nt + 3 (s − ½) m_fb) g z − g m_LG Σ sin θ_i. The weight is not the share’s: (s − ½) m_fb of each pair’s weight moves from the elbow to the platform (weight_shift), so it acts half at each end, as the D2’s does. τ_joint is the joint’s friction (Coulomb, smoothed with tanh over joint.friction_smoothing_rad_s, and viscous; effects.joint_friction) and its stops (springs and dampers beyond the stop angles, effects.hard_stops).
Elastic model (effects.joint_elasticity), 15 states: θ, θ̇, rotor angles φ, rotor speeds, brake deflections. Each joint is a RotaryJoint: the gearbox’s spring, damper, backlash and efficiency (the gearbox) pass τ_out to the arm, and
J_rotor φ̈_i = ripple(τ_motor,i, φ_i) − τ_gear,rotor,i − τ_shaft(φ̇_i) − τ_brake,i
with J_rotor the motor’s rotor and the gearbox’s input inertia. Rigid model, 9 states (θ, θ̇, brakes): φ = i θ, and with the torque the motor puts on its arm through a loss-free gearbox with a massless rotor, d_i = i (ripple(τ_motor) − τ_shaft − τ_brake),
(M + diag(λ_i i² J_rotor)) θ̈ = λ ⊙ d + Q_g − m_nt Jᵀ J_x⁻¹ w + τ_joint
λ_i the gearbox loss factor on what passes through it (d_i − i² J_rotor θ̈_i), taken at its fixed point (mech::settled_loss) as on the other machines. Feedforward: the rigid, loss-free model, τ_motor = (I_b θ̈ + m_nt Jᵀ p̈ − Q_g) / i + J_rotor i θ̈ with θ̈ = J⁻¹ (p̈ − J_x⁻¹ w) and θ̇ = J⁻¹ ṗ (feedforward_torque_moving, which the controller uses; feedforward_torque is the same at rest). The gearboxes’ springs are not in it.
Static hold, and stability. At rest each gearbox holds −Q_g,i (with the twist τ / k plus half the backlash in the elastic model). Held by constant motor torques, as the standard suite holds it after a pulse, the D3 is unstable in its vertical mode in the upper part of its range: the stiffness of V − τ θ in the symmetric mode is −1.68 N m/rad at the middle of the default range (868 mm below the shoulders) and +2.64 N m/rad at 1000 mm (the_vertical_mode_under_constant_torques_is_unstable_high_up). The drives’ position loops hold it; the suite’s loss-free configs put the range, the start pose and the cycle 175 mm lower, where it is stable, so that the suite’s 10 s energy check measures the integration and not this. Their stops keep their springs and lose their damping. The gearboxes’ twist and backlash under the weight put the motors’ pose (the setpoint of the machine at rest) off the tool: 0.66 mm at the rim’s lower edge between two arms with the shipped 2.25 arcmin (the_setpoint_slack_covers_the_sag_at_rest, after 0.5 s at rest). Machine::setpoint_slack follows from that: the delta works it out when it is built (rest_sag) as the most that each gearbox’s twist under its holding torque plus half its backlash either way, all eight combinations, moves the forward kinematics over a grid of the range (5 radii, 24 directions, 9 heights and the bottom, payload on and off), plus a tenth: 0.73 mm on the shipped config, by the same test’s comment (0.1 mm on the belt machines, and in the rigid model). The controller lets a path or trajectory start that far from the tool and beyond the range or the envelope, and no further: a pose further from the start than the slack has to lie in the range (near_start).
Forearm inertia (effects.forearm_inertia, on in the shipped config). Each forearm pair is a rigid slender rod from the elbow c_i to the platform p (the two rods of a pair move alike, the platform never turning; their spin about their own axis below). Its kinetic energy (m/6)(|ċ|² + ċ·ṗ + |ṗ|²) is exactly that of m/6 at each end and 2m/3 at its middle, and so is its weight (its centre is the middle). So the model above holds with s = 1/6 and m_nt = m_platform + m_payload + 3 m_fb / 6, plus per leg a point mass m_mid = 2 m_fb / 3 at (c_i + p) / 2:
J_m,i = (J + ∂c_i/∂θ_i e_iᵀ) / 2 (the middle's Jacobian; e_i the unit vector of arm i)
M += Σ_i m_mid J_m,iᵀ J_m,i
v += Σ_i m_mid J_m,iᵀ (J_x⁻¹ w + ∂²c_i/∂θ² θ̇_i²) / 2
Q_g −= Σ_i m_mid g (J_m,i)_z
(Delta::load_n, which builds every point mass’s share from its Jacobian). With the arms level at the centre the rods translate and both models give the same torque for a vertical acceleration; sideways at 1 m/s the rods’ kinetic energy is 0.313 J against the lumped 0.376 J. In the shipped Adept cycle (sim-cli analyze delta-d3) the lumped model puts 2.5 % more RMS torque on motor 1 (2.570 against 2.508 N m; peak 7.170 against 7.055 N m) and 1.8 % more on motors 2 and 3 (1.549 against 1.522 N m).
The rods’ spin (with effects.forearm_inertia: the rest of the same rigid body’s inertia, so no switch of its own). The parallelogram keeps the plane of a pair through the elbow’s axis a_i (fixed, along the base’s tangent) and the forearm u_i = p − c_i, so each rod turns about its own axis as that plane does. With σ = a_i · u_i, n = a_i · (u̇_i × u_i) and L = L_b the spin is
s_i = −σ n / (L (L² − σ²)) = g_i · q̇, g_i = −σ / (L (L² − σ²)) J_u,iᵀ (u_i × a_i) (J_u,i = J − ∂c_i/∂q)
M += Σ_i I_s g_i g_iᵀ, v += Σ_i I_s (ṡ_i,0 g_i + s_i J_u,iᵀ (u̇_i × u_i) / L³)
by Kane’s equations with the rod’s angular velocity e × ė + s e (e = u / L) and its angular momentum about its axis I s e; ṡ_i,0 is the spin’s rate at no acceleration of the coordinates. I_s is twice mass.forearm_rod_spin_inertia_kgm2 (the key is one rod’s), the kinetic energy I_s s² / 2 (Delta::add_spin, rod_spin). Where a forearm lies square to its elbow’s axis (σ = 0: at the centre, or a leg whose plane holds the platform) its rods do not spin. At (0, 0.1, −0.8) moving 1 m/s square to leg 1’s forearm, leg 1’s rods spin at 0.1114 rad/s. In the Adept cycle (on y = 0, so leg 1’s rods never spin) the 1.3e-5 kg m² per rod change motor 1’s peak torque by 3e-4 N m (7.0553 against 7.0549 N m) and the RMS torques by less than 1e-6 N m: negligible, as expected of a slender rod.
Bending arms (effects.link_elasticity, off in the shipped config), 12 more states after the brakes: the bend δ_i and its rate, then the move y_i and its rate. Each upper arm bends in the plane it turns in; the elbow’s angle is θ_i + δ_i, and a spring k_b = 3 E I / L_a (a cantilever’s tip deflection F L³ / (3 E I) as a turn about the shoulder) with a damper c_b ([upper_arm]) joins it to the arm’s root. The arm’s tube stays with the root, the elbow and all beyond move with the elbow angle:
I_arm θ̈_i = τ_out,i + g m_arm l_cg cos θ_i + k_b δ_i + c_b δ̇_i + τ_joint,i
M_d(θ + δ, y) (θ̈ + δ̈, ÿ) = Q_d − v_d − (k_b δ + c_b δ̇, k_l y + c_l ẏ) (of the elbows and beyond, at the elbow angles and moves)
and out of that plane the elbow moves by y_i along its axis a_i, on the tube’s lateral stiffness k_l = 3 E I / L_a³ with a damper c_l (upper_arm.lateral_stiffness_n_m, lateral_damping_n_s_m). The elbow is then c_i + y_i a_i: the kinematics take it (the forward and inverse kinematics with the elbows moved, Legs::forward_moved, inverse_moved), and the platform’s Jacobian by the moves is J_x⁻¹ diag(u_i · a_i) (Legs::jacobians), so a move pushes the platform only where the forearm is not square to the axis. M_d is 6 × 6: every point mass (platform, rods’ middles, the elbow mass on the moves) with its Jacobian in (θ + δ, y), the rods’ spin too. The kinematics (tool, condition number, scene, collision bodies) take the elbow angles and moves; the arm angle signal, the stops and the gearbox the joint’s. At rest δ = Q_d / k_b and y = Q_y / k_l (three rounds from y = 0; Q_y hardly changes with y). Both dampers’ loss is power.arm_bending, both springs’ energy is elastic energy. The feedforward stays the rigid model’s. In the Adept cycle the tracking error grows from 1.13 to 2.28 mm, the dwell error from 0.18 to 0.23 mm, motor 1’s RMS torque from 2.508 to 2.534 N m. The moves out of the plane add little: with the lateral stiffness raised from 4e5 to 1e8 N/m the figures stay within 0.5 % (dwell error 0.228 against 0.229 mm; the cycle runs on y = 0, where leg 1’s forearm is square to its axis).
The tube’s own share and the elbow’s twist (effects.arm_tube_inertia, with link_elasticity; off as shipped). The tube bends in the static shape of a cantilever under a tip load, ψ(ξ) = (3ξ² − ξ³)/2, ψ(L) = 1 at the elbow, the single mode consistent with the springs’ 3 E I (Rayleigh; beam::STATIC_SHAPE_MASS): 33/140 of its mass (∫ψ²) moves with the elbow’s bend, so 33/140 m L_a² of its inertia about the shoulder and 3/8 m L_a of its first moment (what its weight drives the mode with, ∫ψ) go from the root to the elbow. The tube is as much of the arm’s mass as its inertia allows a uniform tube, m = min(m_arm, 3 I_arm / L_a²), the rest a hub on the shoulder’s axis. Its kinetic energy, its sections at s θ’ + ψ(s) L_a δ’, is m L_a² (θ’²/3 + 2 · 11/40 θ’δ’ + 33/140 δ’²) / 2: in θ and the elbow’s angle e = θ + δ the root keeps I_arm − 33/140 m L_a² − 2B and is joined to the elbow by B θ’ e’, B = (11/40 − 33/140) m L_a², which the joints’ and the elbows’ equations solve together; the arm turned whole keeps both sums. (Moving only the mode’s share of the inertia without B, as before, puts the gearboxes’ modes some 40 % low.) Out of the plane 33/140 of its mass moves with the elbow’s move y, and the elbow block turns with the tube’s tip slope, 3/2 y / L_a, about the arm’s normal: its twist inertia (mass.elbow_twist_inertia_kgm2, plus the forearms’ share at the rods’ ends, s m_fb (spacing/2)²) counts J (1.5 / L_a)² on y. Default arm (all of it a uniform tube, 0.9 kg): 0.03394 kg m² and 0.135 kg m to the elbow, B = 0.005657 kg m² (the root keeps 0.002743 and 0.045), the lateral mass 0.383 + 0.212 + 0.0064 = 0.602 kg, which lowers the elbows’ lateral mode from sqrt(4e5 / 0.383) / 2π = 162.6 Hz to 129.7 Hz. The twist turns the rods’ ends at the elbow in opposite senses along the arm; their mean, which the platform follows, stays (to first order the platform does not move). In the Adept cycle with the bending arms the tube’s share raises the tracking error from 2.28 to 2.32 mm and the dwell error from 0.229 to 0.235 mm (both as with the earlier shape, to these digits).
The shape against the exact beam. Until 22 November the tube took the first exact mode’s shape (∫φ² = 1/4, ∫φ = 0.3915, ∫ξφ = 0.2844, tip slope 1.3765) with the static stiffness 3 E I / L, an inconsistent pair. Against the exact Euler-Bernoulli cantilever with the elbow (and out of the plane its twist inertia) at its tip, root clamped (beam::cantilever_first_frequency, the characteristic equation; 1.247917 for a tip mass equal to the beam’s, as Blevins), it read the arm’s modes 0.88 % (in the plane) and 0.82 % (out of it) low on the D3 and D4, 0.98 and 0.95 % on the H4, and the arm’s sag under its own weight and the elbow’s 2.1 % (D3, D4) and 2.3 % (H4) high: the weight drove the mode with 0.3915 m where the static beam has 3/8. The static shape reads the modes +0.19 / +0.15 % (D3, D4) and +0.25 / +0.23 % (H4) from above, as Rayleigh does, and the sag exactly (tests the_tubes_mode_and_sag_are_the_exact_cantilevers, D3 and H4; the_exact_cantilever_with_a_tip_mass_has_the_textbook_frequency). The joint kit’s link bending keeps the exact mode with its own modal stiffness (βL)⁴/4 E I / L³, consistent too.
Resonance (Machine::modes, resonance_hz, mode_shape; what effects.shaper_follows_pose sets the input shaper to). The modes with the motors held by their position loops: per arm the gearbox’s spring k_g (with joint_elasticity) from the held rotor to the arm’s root, the bending spring k_b (with link_elasticity) from the root to the elbow, the lateral spring k_l on the elbow’s move, the root I_arm and everything beyond the mass matrix M_d at the elbow angles (and moves). The coordinates (roots, elbow angles, moves) with the flexibility per arm K⁻¹ = [[1/k_g, 1/k_g], [1/k_g, 1/k_g + 1/k_b]] and 1/k_l (a rigid spring 0): with M = L Lᵀ (Cholesky) the eigenvalues μ = 1/ω² of the symmetric Lᵀ K⁻¹ L by Jacobi rotations, a rigid connection’s μ = 0 left out (arm_modes). Each mode’s damping ratio is vᵀCv / (2 ω vᵀMv) with C the gearboxes’, the bending’s and the lateral dampers (the cross terms of a damping that is not proportional left out). 3 modes with the gearboxes alone, 6 with the bending alone, 9 with both; resonance_hz is the lowest. Gravity’s stiffness (a few N m/rad) and backlash are left out. With rigid gearboxes and arms there is none. The gearbox’s k_g is K1, its stiffness for the moves that excite the mode (twists above about 1e-3 rad); with gearbox_lost_motion and a non-zero hysteresis_rad its small-amplitude stiffness is K1 + σ = 2 K1 (gearbox), so a small vibration rings about 41 % higher: on the shipped D3 (which has the hysteresis) at (0, 0, −0.75) m 51.24 / 51.24 / 84.74 Hz become 72.46 / 72.46 / 119.84 Hz (sim-cli modes delta-d3). Machine::modes reports the large-amplitude K1 (what a shaper for the move’s own swing takes), Machine::modes_small_amplitude the same modes with K1 + σ (what a shaper for the residual ringing below about 1e-4 rad at the joint takes; the four-arm delta H4 does the same for its arms’ four modes, its amplifier’s mode unchanged, though it ships with no hysteresis, the_small_amplitude_modes_stand_sqrt_two_above_the_large_ones_with_hysteresis in its crate; the other machines return modes). At the centre with the arms level the lowest is the platform’s sideways mode (twice): the forearms lumped, 38.76 Hz on the bending alone (vertical: 68.39 Hz), 28.14 Hz on gearboxes alone of 35 752.6 N m/rad (the stiffness the config had until 14 November 2026, which the test keeps for its hand calculation). There every forearm is square to its axis, so the elbows’ moves ring on their own: lumped sqrt(k_l / (m_elbow + s m_fb)) / 2π = 126.48 Hz three times; with the rods, whose middles also move with the platform, 147.35 Hz for all three elbows moving the same way round and up to 0.3 % more for the two that couple to the sideways modes.
Signals
arm.<k>.angle (rad), gearbox.<k>.output_torque (N m; elastic: the spring’s torque on the arm, rigid: λ (d − i² J_rotor θ̈)), kinematics.condition. Effect views: the torque breakdown per motor with inertia = ((M θ̈ + velocity term)_k + i² J_rotor θ̈_k) / i, gravity = −Q_g,k / i, friction = shaft + brake + gearbox loss at the rotor + joint friction / i; the loss powers power.joint_<k>, power.shaft_<k>, power.gearbox_<k>, power.hard_stops, power.other (ripple), with bending arms power.arm_bending; the energies. With bending arms the joint carries the tube and the spring: gravity = −(g m_arm l_cg cos θ + Q_d) / i, inertia the rest of the spring’s torque. The joints are offered as rotary friction contacts joint.<k> (signals joint.<k>.friction_speed in rad/s at the arm, _coulomb, _viscous, _stiction in N m, _load_scale 1): the friction view draws their torque over the angular speed up to the motor top speed over the gearbox ratio. Each gearbox warms with effects.part_heating (temperature.gearbox_<k>) and follows its temperature with effects.thermal_feedback.
Machine::scene_point is the platform’s centre: the machine’s frame is the scene’s. The scene: base plate, per arm a motor and a gearbox box with a bar turned by the rotor angle, the arm (to its elbow, bent or not) and the two rods of its forearm pair as segments, the platform as a box, the payload under it. The collision bodies are the platform and the payload as boxes, and each forearm rod and each upper arm as a capsule along its drawn segment, of half its drawn width (6 mm for a rod, 20 mm for an arm). An obstacle an upper arm runs into is a crash as any other.
Not modelled: the tube’s share of the bending modes beyond its first cantilever mode and its static stiffness 3 E I / L (one shape for both), elasticity of rods and ball joints (no figures published for any product), friction in the ball joints (lumped into the joint friction), the ball joints’ cone angles (the stops and the working range stand in), collisions between the links, a fourth axis (see the D4).
Delta picker D2
Source: sim-netlist/src/linkage.rs (the crate reads its tables into it; a machine file’s linkage node of two arms builds the same machine). The planar delta: two arms in the vertical x-z plane, their shoulder axes along y at x = ±R, each with a pair of forearms down to a plate that keeps its orientation (a five-bar whose lower links are parallelograms, as in Codian’s D2 or ABB’s two-axis FlexPicker). The tool is the plate’s centre p = (x, z), z up from the shoulder axes. The equations are the D3’s with two legs at φ = 0° and 180° and y = 0; leg i points along s_i x (s_1 = +1, s_2 = −1):
elbow c_i(θ) = (s_i (e + L_a cos θ), −L_a sin θ)
inverse x′ = s_i x, A = −2 L_a (x′ − e), B = 2 L_a z, C = (x′ − e)² + z² + L_a² − L_b², θ = 2 atan((−B − sqrt(A² + B² − C²)) / (C − A))
forward the lower of the two points at L_b from both elbows (two circles)
Jacobian 2 × 2: J_x rows u_i = p − c_i, J_q = diag(u_i · ∂c_i/∂θ_i), J = J_x⁻¹ J_q; condition number from the eigenvalues of JᵀJ in closed form
dynamics m_nt = m_plate + m_payload + 2 (1 − s) m_fb, M = I_b · 1 + m_nt JᵀJ (I_b as on the D3)
weight: Q_g,i = g m_LG,w cos θ_i − m_w g J_zi, m_LG,w = m_arm l_cg + L_a (m_elbow + m_fb / 2), m_w = m_plate + m_payload + m_fb
The joints, the elastic and rigid models (10 and 6 states), the feedforward, the signals (arm.1/2.angle, gearbox.1/2.output_torque, kinematics.condition), the effect views, part heating and the refusals (error-delta-*) are the D3’s. Working range: the band |x| ≤ workspace.half_width_m below top_z_m, its bottom an arc through both edges at height_edge_m and the centre at height_centre_m below the top. Static hold, and stability: held by constant motor torques the plate’s vertical mode is unstable in the upper part of the range, −3.778 N m/rad at the middle of the default range (638.5 mm below the shoulders), +7.428 N m/rad at 788.5 mm; the sideways mode is stable (13.714 and 19.125 N m/rad; the forearms’ weight a half at each end). The standard suite’s loss-free configs put range, start and cycle 150 mm lower. Machine::setpoint_slack is rest_sag over 41 columns of the range: 0.340 mm with the shipped SP+ 100 and its 2.25 arcmin backlash (at most 0.287 mm found at rest in the simulation at six poses, the_setpoint_slack_covers_the_sag_at_rest). The D2 reports no modes.
The model takes the plate as kept level. The 3D view draws each forearm pair as two rods apart along y, as on the D3; in the plane, a plate on two legs needs a parallelogram in the x-z plane (or a third link) to keep it from turning about y, which real D2s have. The scene: a base beam, per arm a motor and gearbox box with the rotor bar, the arm, the two rods, the plate and the payload; the collision bodies are the plate and the payload. Not modelled: the forearms’ rotational inertia (the D3’s rods carry it, effects.forearm_inertia), elastic links, friction in the ball joints, collisions between links.
Linear delta
Source: machine-delta-linear/src/lib.rs, with the belt, guide, coupling and motor components of the single axis. The parallel kinematics are the D3’s with the arms replaced by carriages on vertical columns (as the Festo EXPT tripod and the Kossel printers); the dynamics are at the D3’s level (Codourey 1998, Olsson 2009).
Three columns stand at the azimuths φ_i = 0°, 120°, 240° at the column radius R. Each carries a carriage on a toothed-belt axis; a parallelogram of two rods of length L joins it to a plate of radius r that stays level. The columns stand upright or lean by α = geometry.column_incline_deg, positive with their tops towards the machine’s axis (a tripod whose columns meet above it), negative away from it. The tool is the plate’s centre p = (x, y, z), in a frame with its origin on the column axis at z = 0 and z up (the plate works below 0). h_i is carriage i’s travel along its column from z = 0 (upright: its joint’s height), x_i = h_i − h_min its place in its stroke. Because the plate never turns, e = R − r, both measured at z = 0.
Kinematics
column d_i = (−sin α cos φ_i, −sin α sin φ_i, cos α)
joint c_i = (e cos φ_i, e sin φ_i, 0) + h_i d_i
constraint |p − c_i|² = L²
inverse h_i = q_i · d_i + sqrt(L² − ρ_i²), q_i = p − c_i(0), ρ_i = |q_i − (q_i · d_i) d_i| (carriage above the plate)
forward the point at L from all three joints (trilateration), the lower of the two
Jacobian J_x ṗ = J_q ḣ, J_x rows u_i = p − c_i, J_q = diag(u_i · d_i), ṗ = J ḣ, J = J_x⁻¹ J_q
J_x p̈ = J_q ḧ + w, w_i = −|ṗ − d_i ḣ_i|²
ρ_i is the plate’s distance from column i’s joint line; upright (α = 0, d_i = e_z) it is the horizontal distance sqrt((x − e cos φ_i)² + (y − e sin φ_i)²) and h_i = z + sqrt(L² − ρ_i²), the formulas of the vertical machine to the bit (a test compares them).
Upright, raising all three carriages alike lifts the plate alike: the z row of J sums to 1, the x and y rows to 0 (inclined, not: the joints then also move towards or away from the axis). The condition number of J is the signal kinematics.condition, judged by singularity as on the D3; the default range has up to 3.98 (at its bottom rim, opposite a column), the centre 3.15: a metre of carriage moves the plate further sideways than up.
Working range (Machine::unreachable): a cylinder of workspace.radius_m from workspace.bottom_z_m to top_z_m; the axis ranges are the box around it. A target outside it (error-delta-outside-envelope), out of the rods’ reach (-out-of-reach), where a rod would stand at a larger angle to its column than workspace.max_rod_angle_deg (error-delta-linear-rod-angle: ρ_i > L sin of it; upright, the angle from the vertical), where a carriage would leave its stroke from geometry.carriage_top_m − stroke_m to carriage_top_m (error-delta-linear-carriage-stop), or with a condition number above workspace.max_condition_number (-singularity) is refused with its reason.
Dynamics
Each rod pair’s mass m_rod is split: a share s (mass.rod_carriage_share, default 1/2) moves with its carriage, the rest with the plate. The rods’ rotational inertia is left out. Then
m_c = m_carriage + s m_rod, m_nt = m_plate + m_payload + 3 (1 − s) m_rod
M(h) ḧ = F_belt + Q_g − m_nt Jᵀ J_x⁻¹ w − F_guide + F_stop
M = m_c · 1 + m_nt JᵀJ, Q_g,i = −g m_c cos α − m_nt g J_zi
exact for the lumped model as on the D3 (V = g (m_nt z + m_c cos α Σ h_i)): the carriage’s weight acts on its belt with m_c g cos α, the rest, m_c g sin α, on its guide.Each column is a belt axis as on the single axis, upright with its motor at the top: section 1 runs from the motor pulley straight down to the carriage (length span + stroke − x), section 2 from the motor pulley down round an idler and up to the carriage (3 span + stroke + x); the belt pulls the carriage up with T₁ − T₂ and turns the pulley with r (m₂ − m₁), the material forces of the belt sections. The guide of each carriage is a LuGre contact. Its load across the rail is what the rods’ pull and the carriage’s weight have at right angles to the column:
plate m_nt p̈ = −m_nt g e_z − J_xᵀ λ (force of rod pair i on its carriage: λ_i u_i)
guide load G_i = |f_i − (f_i · d_i) d_i|, f_i = λ_i u_i − m_c g e_z
with p̈ = J ḧ + J_x⁻¹ w from the carriages’ acceleration in the state (carriage.<i>.guide_load, so that the verdicts judge the cycle’s highest load). The carriage moves along its column only: its own acceleration loads the belt, not the guide. Upright at rest G_i = |λ_i| ρ_i.
Moments on the guide. Where the rod pair’s joints stand off the guide’s centre by o = a d_i + b e_r + c e_t (geometry.rod_joint_along_m, rod_joint_outward_m, rod_joint_tangent_m; e_t the column’s tangent, e_r = e_t × d_i), the pull has the moment M = o × λ_i u_i about it, Mx = M · d_i, My = M · e_t, Mz = M · e_r (Festo’s axes; signals carriage.<k>.guide_moment_x/y/z, offered only with an offset). The catalogue’s combination F/F_max + Σ M_j/M_j,max ≤ 1 makes the equivalent load
P_i = G_i + F_max Σ_j |M_j| / M_j,max F_max = ratings.guide_max_load_n, M_j,max = ratings.guide_moment_x/y/z_nm
over the moments that have a rating. P_i is the guide load and the friction’s load. The shipped offsets are 0 (an [estimate]: the pull through the centre).
Friction with the load. With effects.load_dependent_friction the factor x_i of each guide’s LuGre force follows P_i while the plate accelerates. That load holds the acceleration the friction itself changes, so x is taken at its fixed point x = G(x) (scales_at, mech::settled_loss, from the factors at rest): the factors give the friction, the friction the carriages’ acceleration (elastic: the carriages’ balance with the belts’ forces as they are; rigid: the rigid model solved anew, gearbox losses and all), that the plate’s p̈ and the guides’ load, the load the factors. The factor scales the bristles’ force, F = x (σ₀ s + σ₁ ṡ) + b v with ṡ of the levels without load, the viscous b v unscaled; steady that slides at x g(v) + b v. The levels hold for the guide under its preload alone. The stops are springs and dampers beyond the stroke.
Elastic model (effects.belt_stretch), 25 states: h, pulley angles, rotor angles, their speeds, the guides’ friction states, the brakes and the time a belt section has spent without tension (belt.slack_time, as on the single axis). The pulley: J_pulley ä = τ_gear,out + r (m₂ − m₁); the rotor as on the single axis, behind the coupling (or gearbox). Rigid model, 12 states (h, ḣ, friction, brakes): x = r a, rotor = i a, and
(M + diag(J_pulley / r² + λ_i i² J_rotor / r²)) ḧ = λ ⊙ d + Q_g − m_nt Jᵀ J_x⁻¹ w − F_guide + F_stop, d_i = i (ripple(τ_i) − τ_shaft − τ_brake) / r
λ_i the gearbox loss factor, taken at its fixed point (mech::settled_loss) as on the other machines. Feedforward: the rigid, loss-free model, τ_k = ((m_c + J_pulley / r²) ḧ_k + m_nt (Jᵀ p̈)_k − Q_g,k) r / i + J_rotor i ḧ_k / r with ḧ = J⁻¹ (p̈ − J_x⁻¹ w) (feedforward_torque_moving). rigid_tensions shares each carriage’s force F = m_c ḧ_k + m_nt (Jᵀ p̈)_k − Q_g,k between its two sections so that the belt keeps its length: T₁ = P + F L₂ / (L₁ + L₂), T₂ = P − F L₁ / (L₁ + L₂).
Static hold. At rest each belt holds −Q_g,i: at the centre the carriage’s weight and a third of the plate’s, 22.07 N with the default masses (the_belts_hold_the_carriages_and_the_plates_weight_through_the_jacobian). Held by constant motor torques the hanging plate is stable sideways (it rises to second order when two carriages move apart) and neutral in the vertical mode, so the standard suite’s loss-free configs keep the default range. The belts’ stretch and the couplings’ twist put the motors’ pose 0.01 to 0.02 mm off the tool at rest; setpoint_slack is worked out over a grid of the range as on the D3 (rest_sag) and stays at the default 0.1 mm.
Guide ratings (Machine::rating_checks): guide-load per carriage, the highest carriage.<i>.guide_load against ratings.guide_max_load_n, and guide-life, from the damage rate carriage.<i>.guide_damage_rate = 3600 |ḣ_i| (G_i / C)³ / 50 km per hour (the catalogue life L10 = (C / G)³ 50 km used up at the carriage’s speed, C ratings.guide_dynamic_load_rating_n), the life 1 / its mean over the pass, against ratings.required_life_h. The generic guide checks follow a tool axis (axis.<id>.guide_load), which a carriage is not. The pulley shaft’s bearing (pulley-bearing-life) and the belt’s teeth (belt-tooth-load) are judged by the generic checks from pulley.<i>.radial_load and the coupling’s output torque.
Part heating (effects.part_heating): each guide warms with its friction loss power.guide_<i>, each belt with its damping loss power.belt_<i>, and each gearbox, where a config has one in place of the couplings, with power.gearbox_<i> (thermal_parts); the 3D view colours the carriage, the belt (and the gearbox) by its rise. A belt is one node: resistance to the air R = 1 / (h · 2 w L) over both sides (h belt.convection_w_m2_k, w ratings.belt_width_mm, L the loop’s length less the teeth in mesh), capacity C = ρ L c_p (belt.specific_heat_j_kg_k), time constant R C. With effects.thermal_feedback each guide’s viscous friction follows its own temperature, each gearbox’s efficiency its own (one Lugre and one Gearbox per column); the belts’ warming changes nothing. With effects.belt_pulley_conduction (on as shipped) the belt also gives heat to its two pulleys through the half wrap π r it lies on each, from its middle through half its thickness: G = 2π r w k / (t/2) in parallel with the air, R = 1 / (h · 2 w L + G) (belt.thickness_m, belt.thermal_conductivity_w_m_k); shipped, 0.2316 W/K beside the air’s 1.0422 W/K (22 %), R = 0.785 instead of 0.960 K/W and τ = 148 instead of 181 s, so the belt settles 18 % cooler under the same loss (test a_belt_gives_heat_to_its_pulleys_through_the_wrap). The heat path is quasi-steady: the belt’s own conduction time through half its thickness, (t/2)² ρ c_p / k ≈ 20 s, is long against a loop’s turn, so each section’s face keeps the belt’s mean gradient. Pulleys do not warm: they sit in the axis’s end housings at the air’s temperature; the contact’s own resistance (PU on aluminium, some kW/(m² K) against 133 W/(m² K) through the half thickness) is left out.
Signals
Per column k: carriage.<k>.height (m), belt.<2k−1>.tension and belt.<2k>.tension (N; rigid: the pretension), pulley.<k>.radial_load (T₁ + T₂, judged by gearbox-radial-load), carriage.<k>.guide_load (N), gearbox.<k>.output_torque (N m, judged by pulley-torque); kinematics.condition; belt.slack_time (s, elastic model). Effect views: the torque breakdown per motor with inertia = r / i ((M ḧ + velocity term)_k + (J_pulley + i² J_rotor) / r² ḧ_k), gravity = −r / i Q_g,k, friction = shaft + brake + gearbox loss at the rotor + r / i guide friction; the loss powers power.guide_<k>, power.shaft_<k>, power.gearbox_<k>, power.belt_<k>, power.hard_stops, power.other; the energies; the friction contacts carriage.<k> with their friction_* signals; belt.<i>.stretch. The six belt sections are offered to the belt view.
Machine::scene_point is the plate’s centre. The scene: a frame plate, per column a column, its belt loop with motor, pulley and idler (drawn in the plane parallel to x–z through the column), the carriage and the two rods of its pair, the plate and the payload under it. An inclined column’s belt loop is drawn upright in its x-z plane with z the travel along the column, then sheared onto the column, (x, y, z) → (x, y, 0) + z d_i: pulleys, belt, carriage and label follow the column, the pulleys’ axes stay along y; the column is a strip from its foot to its head. The collision bodies (plate, payload) follow the plate.
Not modelled: the rods’ rotational inertia; elasticity of frame, columns, rods and ball joints; friction in the ball joints; collisions between the links; a fourth axis; the warming of pulleys and the heat from belt to pulley; tooth meshing, tooth jump and belt-span vibration.
Delta picker D4
Source: machine-delta-d4/src/lib.rs. The D3 with a fourth axis that turns the tool about the vertical, as on ABB’s IRB 360 with its fourth axis: a fourth motor with its gearbox in the centre of the base drives a telescopic shaft through a cardan (universal) joint, and the shaft drives the tool’s shaft in a bearing of the platform through a second cardan joint. The tool pose is (x, y, z, c), c the tool’s turn about +z from +x (rad). The arms are the D3’s Delta, built from the D4’s config with the shaft’s share of mass added to mass.platform_kg: its kinematics, Jacobian, dynamics, forearm rods and their spin, bending arms (in and out of their planes), modes, rest sag, refusals and collision bodies of rods and arms are the D3’s, unchanged. The D3 gained one public hook for it, PlatformDrag (Delta::set_platform_drag): a force on the platform along the line from a fixed point, against its lengthening, added as Jᵀ F to the velocity term of load_at (so to the dynamics and the bending arms’; the feedforward, the rigid loss-free model, leaves it out, so that its speed terms stay quadratic in the speed as the time-optimal planner reads them) and moved to the friction part of the torque breakdown; the D3 has none.
shaft d = p + (0, 0, h) − (0, 0, z_u) upper joint on the base's axis at z_u = shaft.upper_joint_z_m, lower one h = lower_joint_offset_m above the platform
L = |d|, β = angle(d, −z), ψ = atan2(d_y, d_x) length, the bend of both joints, the bending plane's azimuth
cardan tan χ = tan φ / cos β, χ′/φ′ = cos β / (1 − sin²β cos²φ) one joint, φ and χ from the bending plane (the input yoke's pin in it at φ = 0)
pair tan φ_out = cos β tan χ = tan φ the second joint, yokes of the intermediate shaft in phase: undoes the first
tool J_c c̈ = τ_gear + τ_bearing, J_c = J_tool + J_payload + J_s
arms the D3's, with m_platform + r_s m_s at the platform, and Jᵀ F, F = −f(L̇) u, u = d / L, L̇ = u · ṗ (the telescope's friction)
Why the pair cancels. A single cardan joint bent by β turns its output unevenly, between cos β and 1/cos β of the input’s speed, twice per turn. The D4’s motor shaft and the tool’s shaft are both vertical (the parallelograms keep the platform level), so the two joints are bent by the same β in the same plane: the Z arrangement. With the yokes of the intermediate shaft in phase the second joint undoes the first, and the tool turns exactly as the gearbox’s output, c = θ_out, at any pose and while the platform moves. Only the shaft between the joints turns unevenly: the signal shaft.speed is the tool’s speed times cos β / (1 − sin²β cos²(c − ψ)) (the platform’s own motion adds a part to it that is left out). Its spin inertia J_s counts at the tool’s speed: its mean over a turn would be J_s (1 + cos²β) / (2 cos β), 1 % more at 30° and of a part that is 1 % of J_c. Yokes out of phase (by 90°) would double the unevenness at the tool; that is a fault of assembly, not modelled.
The tool’s joint is a RotaryJoint (joint.rs): motor 4’s own [motor.4] and [gearbox.4] over the shared tables (catalog::motor_config, as its drive and verdicts read them: a 1FK2104-4AF on an NRB060-04-8), brake and ripple as on the arms, the tool bearing’s friction ([tool], effects.joint_friction), no stops (the turn is endless; axis.c.min_angle_deg/max_angle_deg are the controller’s range). Rigid (effects.joint_elasticity off) the rotor turns with the tool times the ratio, with the gearbox’s efficiency as on the arms; elastic, rotor and tool are two bodies behind the gearbox’s spring, and with effects.shaft_torsion the shaft’s torsional stiffness is in series with it, 1 / (1/k_gear + 1/k_shaft), damped by the shaft’s torsional_damping_nm_s_rad (the shaft is the softer by far: 500 against 8251 N m/rad), in series with the whole gear as a lever-1 converter (transmission::Converter): with effects.gearbox_lost_motion it stretches over the band too, and the hysteresis is the series spring’s. The gearbox’s output as a body (effects.tool_gearbox_body, off as shipped; it needs joint_elasticity and shaft_torsion): the planet carrier and output flange J_o (tool.gearbox_output_inertia_kgm2, 1e-4 kg m², an [estimate]) sit between the gearbox’s spring and the shaft’s. The catalogue’s inertia at the input holds it as J_o / i², so that much leaves the rotor (a J_o / i² not below gearbox.inertia_at_input_kgm2 is refused) and the chain’s inertia is the same with the body as without it:
J_o θ̈_o = τ_gear(rotor, θ_o) − τ_s τ_s = k_s (θ_o − c) + c_s (θ̇_o − ċ) the shaft's torque
J_c c̈ = τ_s + τ_bearing the gearbox keeps its own stiffness, damping, band and hysteresis
rotor held: J_o J_c λ² − (J_c (k_g + k_s) + J_o k_s) λ + k_g k_s = 0
Two modes: the tool’s (the series spring’s as J_o → 0) and the gearbox’s against the shaft’s spring. As shipped with the switch on (sim-cli modes delta-d4): 41.07 Hz at 2.27 % damping, and 1488.8 Hz with a damping ratio of 2.71, overdamped. The shaft’s spring and J_o’s kinetic energy are stored, the shaft’s damping is booked with the gearbox’s loss.
The tool’s torsional mode with the motor held, √(k/J_c), is among Machine::modes: 41.07 Hz with the payload (2.1 % damping), 75.77 Hz without (3.8 %). resonance_hz and mode_shape stay the arms’ (what an input shaper on the path is for). States: the D3’s, then c, ċ, (rotor angle and speed, elastic), brake: 3 or 5 more, and the body’s angle and speed with effects.tool_gearbox_body.
Each arm’s own drive. Each arm reads its own [motor.<id>], [gearbox.<id>] and [parts.<id>] (ids 1 to 3) over the shared tables (catalog::motor_config); without them the three share [motor] and [gearbox]. Each arm’s modes take its own gearbox.
Coupling to the arms. Nothing turns the parallelograms, so the shaft acts on the arms only through its weight (effects.shaft_mass: shaft.platform_share of shaft.mass_kg at the platform, the inner shaft and the lower joint; the outer tube hangs from the upper joint) and through the telescope’s sliding friction (effects.telescope_friction, shaft.slide_friction_n Coulomb, smoothed over slide_friction_smoothing_m_s, and a viscous part), a force along the shaft against its lengthening which the arms take through Jᵀ. The torque the shaft passes and the joints’ bending moments on the platform do no work on the arms: the platform cannot tilt or turn. The shaft’s own swing about the upper joint is not counted (as the D3 leaves out the forearms’ spin).
Signals beyond the D3’s: tool.angle, gearbox.4.output_torque (judged by the common gearbox-* checks of motor 4 against [ratings.4]), shaft.length, shaft.cardan_angle, shaft.speed, and in the effect views motor.4.torque_*, power.joint_4 (tool bearing), power.shaft_4, power.gearbox_4, power.telescope, power.other_4; the energies include the tool’s. The tool’s gearbox warms as a fourth gearbox_4. Refusals beyond the D3’s: error-delta-shaft-stroke (the telescope shorter than min_length_m or longer than max_length_m), error-delta-cardan-angle (a joint bent beyond max_cardan_angle_deg); with the defaults every pose the arms reach the shaft reaches too (0.625 m at the top of the centre, 1.020 m at the edge’s bottom, at most 43.8° at the top of the edge). Scene: the D3’s, then the fourth motor, gearbox and rotor bar in the base’s centre, the telescope as an outer tube from the upper joint and an inner shaft from the lower one, the two joints, and a bar under the platform turned with the tool. Collision bodies: the D3’s and the tube and the inner shaft as capsules along them, of half their drawn widths (15 and 8 mm).
Paths with a turn: line,x,y,z,c (lines work on any number of axes); arcs and splines are on two and three axes only, so they are refused on the D4. Not modelled: yokes out of phase, the cardan joints’ friction and play, the shaft’s bending and swing.
Arms in tool space (SCARA, six-axis arm)
Source: machine-joint-kit/src/tool.rs, wired in arm.rs; the joint machine’s side in chain.rs. With kinematics.tool_space the axes of scara and urdf-arm are the flange’s pose; the joints’ dynamics (Newton-Euler on the URDF chain), drives, losses and signals are unchanged, in joint coordinates. Details, refusals and the branch kept by the six-axis inverse: mechanisms.
SCARA x = x1 + L1 cos(q1 + φ1) + L2 cos(q1 + q2 + φ2), y likewise with sin, z = z0 + s q3, c = c0 + q1 + q2 + q4
cos β = (r² − L1² − L2²) / (2 L1 L2), β = ±acos (elbow), q1 = atan2(y, x) − atan2(L2 sin β, L1 + L2 cos β) − φ1, q2 = β − φ2 + φ1
six joints (x, y, z) = p_tip(q), r = (rx, ry, rz) = log(R_tip(q) R_0ᵀ); Δq = Jᵀ (J Jᵀ + λ² I)⁻¹ e, e = (p* − p, ℓ (r* − r)), J = ∂(p, ℓ r)/∂q, λ = 1 mm, ℓ = |p_tip − p_joint2| at the home
speeds q̇ = J⁻¹ v, q̈ = J⁻¹ (a − J̇ q̇), J̇ q̇ = [f(q + h q̇) − 2 f(q) + f(q − h q̇)] / h², h |q̇| = 1e-4, J = ∂f/∂q by central differences
feedforward τ = (M q̈ + h(q, q̇)) / i + J_rotor i q̈ per motor (in joint space the speed terms are left out, as before)
condition κ = √(λ_max / λ_min) of Jᵀ J (Jacobi rotations): SCARA of ∂(x, y)/∂(q1, q2), six joints of the geometric 6 × 6 (turn rows the angular velocity, × ℓ, not the rotation vector's rate)
A redundant arm (fewer axes than joints) takes q̇ and q̈ from central differences of its inverse over 1e-3 of the tool’s units, the null space settled by Newton steps to 1e-13 rad (to the rounding of J where that is not reached), so that the feed-forward does not depend on the call before.
The limits of rx, ry, rz (max_velocity_rad_s and the rest) act on the rates of the rotation vector, not on the angular velocity: they differ by (θ/2) / sin(θ/2) about the vector’s own axis and more across it, so at the home (θ = π/2) a limit of 1.5 rad/s on rz allows a spin of 1.91 rad/s. The machine’s own checks tool-angular-speed and tool-angular-acceleration therefore hold the flange’s angular speed |ω| and acceleration |dω/dt| (from the geometric Jacobian, Pose::angular_motion; signals tool.angular_speed, tool.angular_acceleration) to the smallest of the picked rx, ry, rz velocity and acceleration limits in the time-optimal plan, which fits them as c·a + b·v + d·v² of the rigid model (exact on a line, whose slerp turns about one axis: |ω| = |J_ω p′| v, |dω/dt| = |J_ω p′| |a|); the checks name the signals plan.tool.angular_speed and plan.tool.angular_acceleration, and the verdicts judge them on the setpoint’s rigid motion (the plan’s pose, speed and acceleration through rigid_checks once per millisecond), not on the simulated pass (there the gears’ ringing alone gave 22 rad/s² on the arm’s tool cycle, whose plan holds the orientation): a cycle planned within them passes, one planned faster fails (the_flanges_angular_limits_are_judged_on_the_planned_motion). The signals show the simulated values. A cycle timed by axis_limits keeps them too (MotionLaw::spin, profile::spin_rates): a move straight in the rotation vector bounds its speed by |ω| ≤ g₁ ṡ and its acceleration by |dω/dt| ≤ g₁ |s̈| + g₂ ṡ² (g₁, g₂ the most |J ṙ| and |d(J ṙ)/ds| along it, sampled at 65 places; half the acceleration limit at most for g₂ ṡ²), then the acceleration raised while the move’s own |dω/dt| = |J ṙ s̈ + d(J ṙ)/ds ṡ²| (the two as vectors, at 1024 times of the profile) stays within the limit, a slerp of path::plan_within (also on the arm on a track, whose rotation vector follows its track axis) by the angle over its length. At the home a pure 0.5 rad turn on rz spins at 1.351 rad/s: the rz limit binds there, as the flange turns at |J e_z| = 2√2/π = 0.900 of the rate across its rotation vector; 0.5 rad on rx and rz at once spun at 1.91 rad/s without the flange’s limits and keeps 1.499 rad/s and 7.99 rad/s² with them (the_flanges_spin_on_a_move_uses_its_limits); moves of the place alone are timed as before (a_reorientation_timed_by_the_axis_limits_keeps_the_flanges_angular_limits).
Link bending (effects.link_bending, the arms only; off as shipped). Each link with a section in [link_bending] bends as a cantilever from its joint to the next (the flange after the last) in its first Euler-Bernoulli mode, in the plane its joint turns it in (across = axis × along), one state d (its tip’s deflection) and its rate per link, after the joint machine’s states (chain::Mechanism::flex_modes, beam::cantilever_mode):
E I = E π (D⁴ − d⁴) / 64, L the link's length, m its URDF mass (spread evenly)
k_mod = 1.875104⁴ / 4 · E I / L³ = 3.0906 E I / L³, c = 2 ζ sqrt(k_mod m_mod)
m_mod d̈ + c ḋ + k_mod d = Q_g − ṗ (one-way; m_mod, Q_g and p below)
turn = along × across. The bodies beyond the link ride on its tip whole, with their turning inertia (field; below; those a parallelogram’s bar holds move with the tip without turning, see “Bending links with bars”), and m_mod is the diagonal of M_d at zero joints (m / 4 and everything beyond, a swinging payload as if fixed where it hangs). So a link alone rings at the Euler-Bernoulli frequency 1.875104² / 2π · sqrt(E I / (m L³)) (a 60 × 4 mm steel tube of 0.8 m and 4.5 kg: 88.96 Hz), and a tip load F bends it F L³ / (3.09 E I), the static cantilever’s within 3 %. The bodies’ accelerations come from the joints’ (central differences over ±1 µs along q̇ and q̈ of Chain::body_states). One-way, as the compliant base: the joints do not feel the links’ bending (two-way with effects.link_bending_reaction, below). In tool space the flange moves with each link’s tip and turns with its slope, d · across + 1.3765 d / L · turn × (flange − tip), its turn added to the rotation vector through exp and log; in joint space the tool pose is the joints, which the bending does not move (its signals link.<n>.bend show it). A link along its joint’s axis (the base column) has no bend (shortcut in arm.rs). Link bending and parallelogram bars that are bodies of their own (arm.bars_turns_with) are refused together: a bar closes a loop the links’ cantilever modes do not have. Against the exact beam the one-mode method stands 1.2 to 2.6 % high with a tip mass and up to 15.7 % with a tip inertia (the 4.5 kg tube with J = 0.3 m L² at its tip), which is why one-way it is no longer used (below); two-way it still is, with the static coordinate of the two-way section below for the sag and a static tip load.
One-way: a Ritz pair per bend (since 22 November). One-way (without effects.link_bending_reaction) each bend has two modes, w = a ξ² + b ξ³ (ξ = x / L): a Ritz pair over the cantilever’s static shapes under a tip force and under a tip moment. Its K = E I / L³ [[4, 6], [6, 12]] (∫ w″ v″) and M from modal at zero joints in the raw shapes (the own body m ∫ w v: [[1/5, 1/6], [1/6, 1/7]]; the tip moves by a + b and turns by (2a + 3b) / L; the own body’s share ∫ w = a/3 + b/4) give det(K − ω² M) = 0, and the two eigenvectors become the modes (Arm::ritz), uncoupled at zero joints in mass and stiffness, so each runs one-way on its own: the lower scaled to a tip deflection of 1 (link.<n>.bend), the higher to ∫ w² = 33/140 (link.<n>.bend_2; across the plane bend_across, bend_across_2). The pair spans the static shapes, so a tip force, a tip moment or the link’s own weight bend its tip as the exact beam (the 60 × 4 mm tube under its weight: 48.506 µm, the sum of both modes’ tips; the exact mode alone gave 49.16 µm), and the lowest frequency is the exact beam’s with what the link carries within 0.48 %: +0.475 % bare (89.381 Hz against 88.958 Hz; the Ritz bound for x², x³), at most +0.11 % with anything at the tip, over tip masses 0 to 3 m and tip inertias 0 to 0.3 m L² (the_bend_modes_lowest_is_the_exact_beams_over_tip_masses_and_inertias). The second is an upper bound, not the beam’s second mode (880.6 Hz for the bare tube, whose second mode is at 557.5 Hz). The exact first mode with the static shape (the pair first considered) would stand 1.4 % high at a tip inertia of 0.1 m L² and 3.9 % at 1 m L². link.<n>.bend is now the first mode’s coordinate, its tip’s share of the deflection; the tip’s deflection is the two coordinates weighted by their tips. Two-way the pair is not used: beside its joint two shapes let the joint turn without moving what the link carries, and on that small inertia the gearbox’s efficiency (its smoothed switch between driving and driven under load) acts as a damper too stiff for the integrator: on the six-axis arm with gravity, elastic gears and the links two-way in their planes the largest eigenvalue of the state’s rates grew from 5.0e4 to 3.4e5 1/s (RK4 holds to some 1.8e5 at the 15.6 µs step; 2.1e4 with gearbox_efficiency off), and the arm drifted 5.9e-6 rad in a second at rest.
Directions (link_bending.directions, shipped ["in_plane"], the model above). out_of_plane adds the bend across that plane (across’ = along × across, turning about along × across’ = −across), torsion the twist about the link’s length: one more first mode each per link, states after the others in the order of the list. The twist is a shaft from the joint, its tip turning by d (rad) about the link’s line, stiffness k = G I_p / L, I_p = 2 I = π (D⁴ − d⁴) / 32 (link_bending.shear_modulus_pa), its shape growing evenly along the link. Signals link.<n>.bend_across (m) and link.<n>.twist (rad).
Every mode, the one-way bend in the joint’s plane too, takes the bodies beyond its link whole: each rides on the tip, its centre moving by t_k = u + r × (c_k − tip) and turning by r per unit of d (a bend: u = across, r = 1.3765 / L · turn; a twist: u = 0, r = along), its turning inertia counted. The link’s own body takes its share: a bend 0.3915 u (its turning left out), a twist half of r and of r × (c − origin). Per mode
p_i = Σ_k m_k t_ik · v_k + r_ik · I_k ω_k the mode's momentum (B q̇: B's column j is p at unit speed of joint j)
Q_g,i = Σ_k m_k t_ik · g its load by gravity
M_d = Σ_k m_k t_i · t_j + r_i · I_k r_j + own own: a bend m (1/4 − 0.3915²), a twist J_line / 12 (J_line about the link's line)
so that the own body’s modal mass is the mode shape’s (m / 4, J_line / 3) and M_d stays positive definite with the joints’. One-way the load is Q_g − ṗ (ṗ by central differences along q̇ and q̈) and the modal mass M_d’s diagonal at zero joints. A tube with a tip inertia J twists at sqrt(G I_p / (L (J + J_own / 3))) / 2π: 60 × 4 mm steel (G 8.1e10 Pa), 0.8 m, J = 0.5 kg m², J_own = 3.546e-3 kg m²: 53.2699 Hz, 53.3328 Hz without the tube’s share, the exact root of β tan β = J_own / J 53.26988 Hz; a round tube bends alike in both planes.
Two-way (effects.link_bending_reaction; off as shipped, then all of the above is unchanged to the bit). The modes are coordinates of their own beside the joints, one mass matrix for both (chain::FlexCoupling, Mechanism::flex_coupling):
T = ½ q̇ᵀ M q̇ + ḋᵀ B q̇ + ½ ḋᵀ M_d ḋ, V = V(q) − dᵀ Q_g(q) + ½ dᵀ K d
M q̈ + Bᵀ d̈ = τ − h + G G_j = ∂(dᵀ Q_g) / ∂q_j = Σ_i d_i Σ_k m_k g · ∂t_ik/∂q_j (the bent links' weight shift)
B q̈ + M_d d̈ = Q_g − Ḃ q̇ − ½ Ṁ_d ḋ − K d − C ḋ
solved together (in the rigid model with the rotors’ reflected inertia, in the elastic one behind the gearboxes’ springs). Ḃ q̇ and Ṁ_d by central differences over ±1 µs along q̇; ∂t/∂q_j from the bodies’ speeds at unit speed of joint j. With those terms T + V changes by the joints’ work less the links’ damping C ḋ² alone, which the machine reports as power.link_bending; T, V and ½ dᵀ K d are in energy.*. (Lagrange’s terms of second order in the small d, ḋ — the centrifugal stiffening and the gyroscopic terms in ḋ q̇ — are left out; dropping the ½ Ṁ_d ḋ and G as well would leave a drift.) At rest the gears hold the weight less G. The joints feel the bending: the bending link’s spring force reaches the joint through B, the motors see it in their following error and excite it through the loop.
Two-way static coordinate (arm::Static). Beside each bend’s exact first mode sits a coordinate without inertia: the shape w₂ = p − c w₁ of the tip-force shape p = (3ξ² − ξ³) / 2 less its part along the first mode, c = K(p, w₁) / K(w₁, w₁) = 3 / (1.875104⁴ / 4) = 0.97069 (K(p, w₁) / (E I / L³) = 1.37651 (2a + 6b) − 6b by parts, = 3 for (a, b) = (3/2, −1/2)), so that w₂ is K-orthogonal to w₁ and no frequency of the modes moves. It has no kinetic energy, so it is not a state: its amplitude s = Q₂ / K₂₂, Q₂ = Q_p − c Q₁ the weights’ load on it (modal‘s load on the shapes), K₂₂ = K(p, p) − c K(p, w₁) = 0.0879 E I / L³, is worked out at the joints’ q whenever it is needed. It adds V_s = −Q₂² / (2 K₂₂) to the potential and G_j = s ∂Q₂/∂q_j to the joints’ load (as d’s), so the energy closes, and moves the tool by s w₂’s tip and slope in tool space (Mechanism::static_shift; its rate is left out). The span of w₁ and p holds the cantilever’s static shape under a tip force, and under the link’s own weight its tip’s deflection is the exact beam’s (Ritz: the tip is exact where the tip-force shape is in the span): the 60 × 4 mm tube lying level sags 48.506 µm, the first mode alone 49.16 µm (1.3 % high); link.<n>.bend is w₁’s coordinate (the first mode’s share), link.<n>.bend_static the static part’s tip (−0.64 µm; across the joint’s plane link.<n>.bend_across_static). Not fixed: the frequencies, which stay the first mode’s (1.2 % high with a tip mass, up to 15.7 % with a tip inertia), since they need the carried inertia on the second shape (a coordinate with inertia is the Ritz pair that RK4 cannot hold beside a joint at 15.6 µs, largest rate eigenvalue 3.4e5 1/s against 5.0e4), and a massless coordinate that moved them would move the bare beam’s too (a_level_link_sags_under_its_weight_as_a_cantilever_does_two_way).
modes lists, two-way, the modes of joints and links together with the motors held: K x = ω² M x over the joints (on their gearboxes’ stiffness where elastic; held where rigid; passive joints held) and the modes, M of the load (chain::generalized_modes: Cholesky, Jacobi rotations), each with its damping ratio from the damped problem (C the gearboxes’ and the links’ dampers): the eigenvalue λ of M λ² + C λ + K that belongs to the mode (that of the companion matrix [[0, I], [−M⁻¹K, −M⁻¹C]] nearest −ζ₀ω + iω√(1 − ζ₀²), ζ₀ = xᵀ C x / 2ω on the undamped shape, shapes::eigen_near), C(ω) of a Maxwell arm taken anew at |λ| until it holds, ζ = −Re λ / |λ| (chain::matrix_modes_at; the crane’s and the cable robot’s matrix_modes too). A mode’s hz stays the undamped ω / 2π of K x = ω² M x, the frequency a shaper that follows the mode takes; |λ| differs from it where C couples modes that lie close (the SCARA’s link pair with the links bending two-way: 680.11 and 737.46 Hz undamped, |λ| 687.36 and 729.68 Hz). Taken on the undamped shape that pair was damped 0.0756 and 0.0844 against 0.0741 and 0.0860 of the linearised machine; from the damped problem 0.074087 and 0.085952, the linearised machine’s to 3e-7 (the_modes_are_damped_as_the_linearised_machine_at_the_nut, every mode; coupled_modes_are_damped_as_the_damped_problems_roots: two joints with C not proportional, against the roots of det(M λ² + C λ + K) by Newton’s method, 0.10338 where the shape’s estimate gave 0.10636). An overdamped mode (ζ₀ ≥ 1), or one whose eigenvalue lies nearer another mode’s start than its own, keeps the estimate. resonance_hz takes the frequencies alone. A tube of 0.45 kg with 20 kg at its tip on a gearbox of k_g = 2e5 N m/rad, its motor held: joint and link are two springs in series for the tip, L² / k_g + 1 / k_b, k_s = 165420 N/m; the coupled mode 14.43363 Hz, the series spring on the modal mass sqrt(k_s / M_d) / 2π 14.43276 Hz (one-way the joint rings alone at 19.82 Hz and the tube clamped at 21.04 Hz); let go from straight the tip rings about its static sag L τ / k_g + Q_g / k_b = 1.1976 mm at that frequency.
Without the links two-way an arm (more than one joint, elastic) lists its joints’ modes the same way with the motors held, K x = ω² M x over the joints alone on their gearboxes’ stiffnesses with the gearboxes’ dampers (JointMachine::held_modes), beside its links’ own bending modes; resonance_hz, what effects.shaper_follows_pose sets the input shaper to, is the lowest (with the links two-way, the lowest of the coupled modes). Before 15 November 2026 an arm reported no resonance: the two-mass formula, motor and load on the gear with the motor free, is one joint’s and stays so. Checks: two joints on 100 and 50 N m/rad with M = [[2, 0.5], [0.5, 1]] kg m² ring at 0.967314 and 1.399712 Hz, uncoupled each at √(k / J) / 2π (held_joint_modes_are_the_hand_solved_eigenvalues). The palletiser’s turret at its arm’s full reach reports 5.95 Hz (8.30 Hz at the long move’s start); after the move it rings at 5.30 Hz. The motor is not held rigidly: its cascade holds the rotor with Z = Kp (1 + 1 / (jω Tn)) (Kv + jω) − ω² J, i² Z at the joint in series with the gear’s k, which lowers the mode to 5.36 Hz, 1.0 % from the ring (the_palletisers_turret_rings_at_its_held_mode_softened_by_the_velocity_loop): the reported mode is the upper bound a stiff loop approaches. With the gears’ mesh friction the ring rises again as it dies away (5.60 Hz over its first 3 s), the turret stuck to its housing for more of each cycle.
One joint (JointMachine::single_joint_modes) lists the gearbox’s twist x = q − r between the free rotor (J i² at the joint) and the joint beside each passive joint on its own spring (an indexer’s table twist), coupled through the load’s mass with the joint’s rigid motion taken out (the Schur complement M_ss − M_sq M_qs / M_qq over s = (x, p)); a passive joint with no spring of its own (the disc cam’s follower gap) is held. Without passive joints this is the two-mass mode, ζ = c / (2 √(k μ)), μ = M J i² / (M + J i²) (before 21 November 2026 its damping was reported 0, and the table twist was missing). With effects.table_twist the cam indexer in its dwell lists 98.704 Hz, ζ 0.030 (√(2e5 / 0.52) / 2π, the_table_twist_is_among_the_modes_with_its_damping), and resonance_hz is that lowest one. sim-cli modes --shapes shows beside it the nearest mode of the model linearised with the motors free; at standstill that model holds the smoothed Coulomb friction’s slope, μ F / v_s, as a damper, which on the disc cam gives 247 Hz at ζ 0.40 for the reported 364.24 Hz (ζ 0.16 from the gearbox’s damper): with the joint’s friction off 362.50 Hz at ζ 0.033, with the motor’s and the gearbox’s efficiency off as well 364.21 Hz. Mid-index the cam indexer’s twist couples to the driver: 102.76 Hz at θ = 0, against the 98.70 Hz of the dwell, where the table rings after an index.
The six-axis arm’s cycle in tool space (arm-tool.toml, the shipped [link_bending] estimates, sim-cli analyze), m and rad:
| Bending | Path error peak | Path error RMS | Tracking peak | Dwell peak (settling) | Dwell angle peak |
|---|---|---|---|---|---|
| off (shipped) | 3.782e-3 | 1.717e-3 | 5.673e-3 | 2.330e-3 | 3.139e-3 |
| one-way, in_plane | 3.923e-3 | 1.798e-3 | 5.875e-3 | 2.454e-3 | 3.329e-3 |
| two-way, in_plane | 3.927e-3 | 1.795e-3 | 5.775e-3 | 2.501e-3 | 3.393e-3 |
| two-way, all three directions | 3.933e-3 | 1.798e-3 | 5.775e-3 | 2.501e-3 | 3.393e-3 |
The links’ own modes (45.3, 78.7, 210.8, 428.5, 1014.8 and 3890 Hz at 2 % damping, two to a link, sim-cli modes with the bending on one-way) lie above the arm’s lowest modes (8 to 28 Hz) and the position loops, so the bending adds 3 to 6 % to the tool’s errors and the reaction changes them against one-way by less than 2 % (re-run 28 November 2026), the other directions by less again: the shipped default stays as it was (bending off, one-way when switched on); two-way is for links soft enough to come near the gears’ or the loops’ frequencies, and where the bending’s energy or its load on the motors matters.
The joints’ units are their own (JointSpec::unit), no longer the axes’: a joint’s position signal, its force’s unit and whether it has a gearbox output torque follow the joint. The time-optimal planner reads the motors’ limits through feedforward_torque_moving, so along a line of the tool it slows where a motor reaches its rated speed. Before timing a path as fast as the motors allow, Controller::plan_path checks the path as planned within the axis limits: a pose on it the machine cannot go to (a singularity, where the motors would have to turn infinitely fast) is refused with error-path-range at once, where the time-optimal timing would slow to a standstill there.
Tripod
Source: machine-tripod/src/lib.rs. A 3-RPS platform: three electric cylinders,
each a revolute joint at the base (about the tangent of the base’s circle, radius rb), a ball screw leg of length
L_i = L_closed + q_i, and a spherical joint at the platform (radius rp), the joints at t_i = 0, 120, 240 degrees. Each
leg is a joint of chain::JointMachine (screw, coupling, friction, stops, motor; rigid and elastic as there). The tool
pose is x = (z, rx, ry); the platform’s place follows in closed form:
pose R = Rx(rx) Ry(ry) Rz(g), p = (p_x, p_y, z)
constraints e_i . (p + R a_i) = 0 (e_i = (−sin t_i, cos t_i, 0), each platform joint in its leg's plane)
⇔ R12 = R21, p_x = rp (R11 − R22) / 2, p_y = −rp R21
closed form tan g = −sin rx sin ry / (cos rx + cos ry), p_x = rp (cos ry cos g + sin rx sin ry sin g − cos rx cos g) / 2,
p_y = rp cos ry sin g (second order: p_x ≈ rp (rx² − ry²)/4, p_y ≈ −rp rx ry / 2, g ≈ −rx ry / 2)
inverse d_i = p + R a_i − B_i, L_i = |d_i|, u_i = d_i / L_i, b_i = R a_i
twist G xi = (q', 0), G = [u_i, b_i × u_i ; e_i, b_i × e_i], A = G⁻¹[:, 0..3], xi = A q'
rates z' = v_z, rx' = w_x + tan ry (sin rx w_y − cos rx w_z), ry' = cos rx w_y + sin rx w_z; K⁻¹ = S A
forward chord x += K(home)⁻¹ (q − q(x)), then K(x1)⁻¹ while each step halves the miss; to 1e-13 m
accelerat. G xi' = (q'' − a0, −c0), a0_i = (|w_i|² − (u_i · w_i)²) / L_i + u_i · (w × (w × b_i)), w_i = v + w × b_i,
c0_i = e_i · (w × (w × b_i)); xi' = A q'' + β, β = G⁻¹ (−a0, −c0)
platform M_xi = [[m 1, −[s]×], [[s]×, I_p]], s = R s_b, I_p = R I_b Rᵀ (about the platform centre)
c = (w × (w × s), w × I_p w), g = (0, 0, m g, g s_y, −g s_x, 0)
joints M_q = Aᵀ M_xi A, h = Aᵀ (M_xi β + c + g), M_q q'' + h = f (Aᵀ Cᵀ = 0, Aᵀ Jᵀ = 1)
potential V = g (m p_z + s_z)
momentum L = m v + w × s, H_O = s × v + I_p w + p × L, first moment m p + s
m, s_b and I_b (platform frame, about the centre) sum the platform (mass.platform_kg, platform_inertia_kgm2)
and, attached, the payload (mass.payload_kg at payload_offset_m with its own payload_inertia_kgm2, by the
parallel axis theorem). Each leg is two more bodies swinging with its direction u, added to M_xi and c + g by d’Alembert:
the rod part (leg.platform_share of leg.mass_kg, centre leg.platform_part_centre_m from the platform joint) at
X = P − c u and the body part (the rest, centre leg.base_part_centre_m from the base joint) at X = B + c u, each with
its inertia I_t about its centre across the leg (leg.*_part_inertia_kgm2, 0 a point mass; u’ = (1 − u uᵀ) d’ / L, d’ the
platform joint’s velocity): m A_pᵀ A_p + I_t A_uᵀ A_u on M_xi and m A_pᵀ (a0 + g e_z) + I_t A_uᵀ u’’ on c + g, with
A_u = (1 − u uᵀ) [1, −[b]×] / L, A_p = c A_u (body part) or [1, −[b]×] − c A_u (rod part), a0 the part’s acceleration
at ξ’ = 0. A leg.platform_share outside 0 to 1 is refused. Each part’s spin about the leg’s own axis is free between
the two joints and nothing excites it. The
constraint forces at the base joints (along e_i) do no work along the platform’s admissible motions, so projecting the
Newton-Euler equations with Aᵀ removes them; at rest f = Aᵀ g. Level with the load centred each leg carries m g / (3
u_z); off centre by c the vertical shares are m g (1/3 + 2 c · â_i / (3 rp)).
Signals: the screws’ per leg; leg.<i>.from_middle (q_i − stroke/2), leg.<i>.swing (atan2(u_i · r̂_i, u_iz), the
revolute joint’s angle from the base’s normal), leg.<i>.cone (acos(u_i · R e_z)); platform.condition (of diag(1,
rp, rp) K⁻¹, which K shares), platform.x, platform.y, platform.turn (p_x, p_y, g) and platform.pose_error, the
largest distance of a point of the joint circle from the pure tilt’s place, sqrt(|d|² + c² + 2 c |(R0ᵀ d)_xy|), d = (p_x,
p_y, 0), c = 2 rp |sin(g/2)|. Verdicts: tripod-leg-force, tripod-leg-stroke, tripod-revolute-angle,
tripod-cone-angle per leg and tripod-parasitic (with ratings.parasitic_tolerance_m). Refusals:
error-tripod-revolute-angle, error-tripod-cone-angle, error-tripod-singularity, and the joint machine’s
error-joint-beyond-stop. Base: frame_momentum as above with the rotors’ spin along u_i, for base::mount.
The rotors’ gyroscopic moment h u’ needs no term: a leg swings in its plane, so u’ and the moment lie square to the
trunnion’s axis e_i, which its bearing carries (passed to the platform it would be a force along e_i, a constraint
force, A^T of it 0: the_rotors_turning_with_their_legs_do_not_push_the_platform); it is in the frame’s momentum.
Not modelled: the rods’ faces against platform and base (no plates or housings in the config; the revolute and cone
angle verdicts bound the legs’ slant), friction and play in the revolute and spherical joints, the joints’ and the platform’s
elasticity (the legs’ screws are the only springs).
Wafer handler
Source: machine-wafer-handler/src/lib.rs. The R-θ-Z arm of semiconductor and flat-panel handling: a column lifts (z, motor 3, a ball screw behind a coupling) and turns (θ, motor 1) an arm of two links of equal length L in the horizontal plane. Motor 2 rides on the column and turns the upper arm; a band in the upper arm from a pulley fixed to the column (radius 2 r₁) to one on the forearm (r₁) turns the forearm against the upper arm at 2:1, a band in the forearm from a pulley fixed to the upper arm (r₂ / 2) to one on the effector (r₂) turns the effector against the forearm at 1:2. One motor runs the wrist along the radial line and the effector keeps pointing outwards. The tool pose is (r, θ, z): r the wafer centre’s distance from the column’s axis along the effector, θ the effector’s direction, z the stroke.
coordinates q = [θ, φ, β, γ]: θ the column, φ the upper arm from the radial line, β and γ the bands' stretch (0 when rigid)
angles a₁ = θ + φ, a₂ = θ − φ + β, a₃ = θ + γ upper arm, forearm, effector
wafer C = L u(a₁) + L u(a₂) + e u(a₃) = (2 L cos φ + e) u(θ) β = γ = 0; e the effector's length to the wafer centre
reach r = 2 L cos φ + e, dr/dφ = −2 L sin φ, condition 1 / sin φ (1 with the wrist over the column, ∞ at full extension)
inverse φ = acos((r − e) / 2 L), motors i₁ θ, i₂ φ, i₃ z
dynamics M(q) q̈ + h(q, q̇) = Q, M = J_c e₀e₀ᵀ + Σ m J_vᵀ J_v + I a_k a_kᵀ, h = Σ m J_vᵀ (J̇_v q̇)
J_v = Σ over the segments to a body's centre l n(a_j) a_jᵀ, J̇_v q̇ = −Σ l (a_j · q̇)² u(a_j)
bands s₁ = −r₁ β, s₂ = r₂ (β / 2 − γ); span tensions T₀ ± k s + c ṡ (0 once a span is slack)
Q_β = r₁ ΔT₁ − r₂ ΔT₂ / 2, Q_γ = r₂ ΔT₂; stored ∫ T over both spans: k s² while both are taut
The bodies are the upper arm, the forearm, the effector and the wafer while it is held (each with its mass, its inertia about its centre and its centre on its link’s line, [mass]), and the column’s inertia J_c (mass.column_inertia_kgm2: the column’s head, motor 2, the shoulder pulley) on θ. h carries the coupling of the two motors: turning at θ̇ pulls the arm outwards, h_φ = −½ ∂M_θθ/∂φ θ̇² (M_θφ is the same at every pose, so no other term at rest), which motor 2 holds; extending during a turn gives the wafer the Coriolis acceleration 2 ṙ θ̇ across its line, which motor 1 takes. M_θθ grows with r² (the wafer’s m r², the effector’s m (2 L cos φ + c₃)²); M_φφ seen along r, M_φφ / (dr/dφ)², grows without bound towards the full extension. Gravity acts along −z, on the joints’ bearings: the plane’s motors hold nothing at rest, the Z motor everything it lifts (column, motors 1 and 2, links, effector and wafer: m g lead / 2π).
Motors 1 and 2 drive θ and φ through RotaryJoints ([joint], and [joint.2] for the upper arm’s stops over it), elastic with effects.joint_elasticity (rotor and link two bodies on the gearbox’s spring) or rigid (the rotor at i q, its inertia i² J_rotor on the diagonal of M), with friction, efficiency, brake and ripple as on every joint. With effects.band_elasticity β and γ are states on the bands’ springs ([elbow_band], [wrist_band]: the distal pulley’s radius, a span’s stiffness and damping, the pretension); off, the bands are rigid and the arm has θ and φ alone. The stroke is a RotaryJoint on the shared BallScrew ([slide], [screw], motor 3’s [gearbox.3] coupling), elastic or rigid by the same effects.joint_elasticity: elastic, the coupling’s and the screw’s stiffness in series, K = 1 / (1/K_coupling + 1/K_screw) in N/m, is a spring between the rotor (J_rotor, a body of its own) and the column (m, what it lifts): m z̈ = F_gear + stops and friction + weight, J_rotor ω̇ = τ_motor − τ_gear. The screw’s stiffness is taken at its softest place in the stroke (BallScrew::softest_position, the nut at the far end), or with effects.screw_stiffness_with_position at the nut’s place (screw stiffness along the stroke); a screw.length_m shorter than the stroke is refused. States: θ, φ (β, γ) and their rates; with elastic gearboxes the two rotors’ angles and speeds; the two brakes; then z, ż and the Z brake, and with elastic gearboxes the Z rotor’s angle and speed.
Signals: arm.1.angle (θ), arm.2.angle (φ), gearbox.1.output_torque, gearbox.2.output_torque, kinematics.condition, effector.direction_error (the effector’s angle a₃ less the wafer centre’s polar angle: its turn out of the radial line through its wafer, from the bands’ stretch; 0 with rigid bands), effector.direction_error_at_station (the same while the cycle dwells, else 0), wafer.acceleration (the wafer’s in-plane acceleration from the arm’s accelerations, as the in-plane acceleration that asks the same share of the hold at rest: |a_xy| (g + F/m) / (g + a_z + F/m) on pads and vacuum, |a_xy| on an edge grip), band.elbow.pretension_share and band.wrist.pretension_share (k s / T₀ of a span from the stretch; with rigid bands ΔT / 2T₀ from the forces G = M q̈ + h the rigid model asks on β and γ: ΔT₂ = G_γ / r₂, ΔT₁ = (G_β + G_γ / 2) / r₁), joint.z.force and the screw’s; in the effect views the torque parts, losses (power.band_elbow, power.band_wrist: the spans’ dampers) and energies.
Verdicts beyond the common ones and the screw’s: wafer-slip (the highest wafer.acceleration against the hold at rest over ratings.wafer_slip_safety_factor: μ g on friction pads, μ (g + A p / m) on vacuum pads, wafer.edge_grip_acceleration_m_s2 on an edge grip; [wafer]), effector-direction (effector.direction_error_at_station against ratings.direction_tolerance_rad), elbow-band-slack and wrist-band-slack (the tension swing against ratings.band_max_pretension_share of the pretension). The settling verdicts judge the wafer centre’s r and z (settling) and θ (settling-angle). The gripper-hold verdict of gripper.rs judges a cup above its part, which gravity pulls off; a wafer lies on its pads, which gravity presses on, so the hold is the machine’s own (it takes gripper::gravity and the wafer’s mass from mass.payload_kg). rigid_checks gives the time-optimal plan the screw’s rows and the bands’ swings (linear in the acceleration); wafer-slip is no row of it: the wafer’s acceleration is a vector’s length, and the plan’s rows are linear in the acceleration and the speed squared along the path. The shipped cycle is timed within axis limits sized for the hold, and sim-cli optimise judges it with every verdict.
Modes: with the motors held, the generalised eigenvalues of K and M over the coordinates that move (Cholesky, Jacobi rotations): the bands’ K = [[K₁ + K₂/4, −K₂/2], [−K₂/2, K₂]] on β, γ (K = 2 k r²), the gearboxes’ stiffness on θ and φ when they are elastic; and the column on its screw, sqrt(K / m) / 2π with the Z rotor held. Shipped (sim-cli modes wafer-handler): 18.2, 51.6, 70.1, 186.3 Hz at r = 0.114 m, 16.8, 41.4, 83.5, 175.3 Hz at r = 0.743 m, and the column’s 432.3 Hz at every r (at the start pose’s lift; it follows the nut with effects.screw_stiffness_with_position, on as shipped; 320.9 Hz with the far end’s stiffness).
Shortcuts: motor 2’s rotor counts at its speed against the column (its own spin with the column, J_rotor θ̈, 1.0e-3 N m at the turn’s 36 rad/s², is left out); the fit’s twist (Machine::twist_at, identify::fit_joints) takes the gearboxes’ spring under the motor’s torque, the lift’s where its nut is (Machine::twist: the screw’s far end; the planner’s train, Machine::trains, takes the pose’s, per motor the other joints held and the bands rigid; the dynamics and the modes follow the nut with effects.screw_stiffness_with_position, on in the shipped config: the column rings at 438 Hz with the nut 0.1 m from the bearing against 321 Hz at the far end); the wafer is fixed to the effector (its slip is judged, not simulated); the links’ centres lie on their lines; the bands’ own mass is in the links’.
Toggle press
Source: toggle.rs; the mechanism in
mechanisms. One motor-driven joint (chain::JointMachine,
as every machine of the crate): the crank angle q from the links’ dead centre is the joint and the tool axis, so the
motor, gearbox (twist and backlash in the elastic model), drive and checks are the common ones, and the friction
feedforward (steady_friction), the time-optimal plan’s friction and checks (rigid_friction, rigid_checks), the
two-mass mode (resonance_hz, modes) come from the joint machine. No condition number: the tool is the joint.
Kinematics. Top pivot O at the origin, x across, z up. Pin P(q) = C + r (cos t, sin t), t = t0 + q; knee K = (a sin φ, −a cos φ) with φ = atan2(P_z, P_x) − acos((a² + |P|² − c²) / (2 a |P|)) + π/2 (the branch below O-P); ram x = a cos φ + √(b² − a² sin² φ) below O. Rates from |K − P| = c: φ’ = D·P_q / D·K_φ, φ’’ = −(E·E + D·(K_φφ φ’² − P_qq)) / D·K_φ, D = K − P, E = K_φ φ’ − P_q; x’ = x_φ φ’, x’’ = x_φφ φ’² + x_φ φ’‘. The build refuses a geometry whose four-bar does not close over the joint’s range or comes near its own dead point (|φ’| ≥ 50). The inverse from the ram’s distance d above the bottom dead centre: cos φ = (a² + x² − b²) / (2 a x), φ = ±acos (before, after the dead centre), then the crank on the circle of radius c about K, its assembly the one that puts it at t0 with the links stretched.
Dynamics. Lumped masses: the rod’s crank end m_pin at P, the upper link a uniform bar (J = m_up a² / 3 about O,
first moment at a / 2), the knee m_knee (the rod’s other end and toggle.lower_link_knee_share of the lower link), the
ram m_x (ram, die, the rest of the lower link). M(q) = J_crank + m_pin r² + (m_up / 3 + m_knee) a² φ’² + m_x x’²,
h = ((m_up / 3 + m_knee) a² φ’ φ’’ + m_x x’ x’‘) q’² + g (m_pin r cos t + (m_knee + m_up / 2) a sin φ φ’ − m_x x’).
frame_momentum gives the same bodies (pin, knee, the bar’s centre and its spin about −y, ram, crank, rotor) and the
press force on the ram, so the machine stands on the compliant base as the others of the crate.
Process force and frame. d = a + b − x. Without effects.frame_stretch F = table(d); with it the frame (stiffness
k) is a massless spring in series and F the root of F = table(d + F / k): on the table’s segment i (from d_i, F_i, slope
s_i), F = (F_i + s_i (d − d_i)) / (1 − s_i / k), the first segment on which d + F / k falls. The force acts while the
ram moves down or stands, times clamp(1 + v / v_s, 0, 1) with v = x’ q’ the ram’s speed down and v_s =
process.smoothing_m_s: a dwell holds it, and it is gone once the ram rises at v_s (the part springs back). Its torque
at the crank −F x’ (process_torque, outside the feedforward); the frame’s stretch F / k is the signal
frame.deflection, and the ram’s height above the bottom dead centre ram.height = d + F / k; ram.speed and ram.acceleration are its first and second derivatives, the stretch’s included (by differences of F / k over the crank’s angle and speed; where the force fades as the ram rises the stretch also follows the crank’s speed, so the ram’s acceleration takes the crank’s jerk, s_w q⃛, which the machine reads with a process force and the frame on, reads_jerk). The energy the frame
takes on the way down is lost when the force fades on the way up (no rebound into the drive).
Loads. Ram along z: C_b w / b = m_x (ẍ − g) + F, w = x − a cos φ, C_b the lower link’s compression. Upper link about O: across it at the knee T = (−m_up g a sin φ / 2 − J φ̈) / a. Knee: m_knee K̈ = C_a u_a + T n_a − C_b u_b + C_rod u_rod + m_knee g, u_a = K / a, n_a = K_φ / a, u_b = (R − K) / b, u_rod = (K − P) / c, solved for C_a and C_rod. The links and the rod are two-force members, so their pins carry the same. Capacity at q: min(F_rated, τ_max / |x’|), τ_max = peak torque · ratio · efficiency, at most the gearbox’s maximum torque.
Limits. The crank-driven form only (the screw-driven toggle is the same links with a linear joint at the knee, not built); the links, the pins and the crank are rigid (only the gearbox and the frame give); the frame’s stretch is quasi-static (no frame mode); the part’s springback is a fade over a speed, not a stiffness.
Arm on a track
Source: machine-joint-kit/src/arm.rs (Arm::guide_load, the rack in build), the tool axis in tool.rs; the machine arm-on-track, urdf/arm-on-track.urdf, config/arm-on-track.toml. The six-axis arm on a carriage whose prismatic joint along x comes first in the URDF chain: the track is a joint of the Newton-Euler model like the arm’s, so M(q) couples them both ways (the arm’s swing in the track’s force, the track’s acceleration in every arm joint’s torque) with nothing added. The track’s joint runs on a pinion and rack behind its gearbox ([rack], the rack axis’s transmission::RackPinion as a converter), its tooth force rack.1.feed_force and the pinion’s radial load on the gearbox shaft rack.1.radial_load = |F| √(1 + (tan 20° / cos β)²) (RackPinion::radial_load, as the machine files’ racks).
Guide blocks ([track]: block_spacing_m l, rail_spacing_m w; four blocks at (±l/2, ±w/2) of the first joint’s frame, its origin between them):
F = dP/dt + Σ_k m_k g ẑ the base's force on the chain (P its momentum; payload with the last body)
M_O = dH_O/dt + Σ_k c_k × m_k g ẑ its moment about the base's origin (H_O the angular momentum about it)
M = M_O − o × F, (F, M) into the carriage's frame (o, R its origin and rotation)
F_y += s F_sep, M_z += s λ F_x s = `rack_side` (±1), λ = `rack_lever_m`, F_sep the helical pinion's separating force
R_i = F_z/4 + s_y M_x/(2w) − s_x M_y/(2l) on the rail, block at (s_x l/2, s_y w/2)
T_i = F_y/4 + s_x M_z/(2l) across it
P_i = |R_i| + |T_i|, axis.j1.guide_load = 4 max_i P_i
dP/dt and dH/dt by central differences over ±1 µs along q̇ and q̈ (as the link bending’s loads); F_x is the rack’s. The motors’ rotors are part of what the carriage carries: each spins at its ratio times its joint’s speed about its axis, its angular momentum J i q̇ along that axis is in H_O, so dH_O/dt holds the gyroscopic moment (the axis turning with its body) and the reaction of the rotor’s own acceleration. The rack on the side s at the lever λ: the helical pinion’s separating force F_x tan α / cos β pushes the carriage off the rack, so the blocks’ F_y is the chain’s plus s of it, and the rack’s push at y = s λ turns the carriage by −s λ F_x about z, which the blocks carry. Four times the most loaded block, because the guide verdicts share a load equally among a set of catalog::GUIDE_CARRIAGES = 4 and rate the set (guide-load against ratings.guide_max_load_n, guide-life (C/P)³ 50 km over the track’s mean speed). Shortcuts: the rack’s push along x through the carriage’s origin but for its lever λ, the blocks rigid and statically shared; rigid_guide_loads is not given, so the time-optimal plan does not keep the guide rating.
Tool space with the track (kinematics.tool_axes = ["j1", "x", …, "rz"], tool::FIRST_JOINT): the first joint’s position is a tool axis of its own ahead of the pose’s, its row of the Jacobian (1, 0, …, 0) unweighted, so seven axes for seven joints: not redundant, the track given and the arm solved by the damped least squares above with it where it is. A line moves the track and the flange straight together.
Winder with dancer
Source: machine-winder/src/lib.rs. A web runs from an unwind roll down over a
dancer roller and up to a rewind roll; both rolls are centre-driven by a servo motor through a gearbox of ratio i; the
dancer is a roller on a vertical slide pushed down by a pneumatic cylinder. The tool axis is the line position L (m), the
web wound onto the rewind since it was empty, which is the web the unwind has paid out since it was full when the dancer
stands in the middle: 0 has the unwind full and the rewind on its core, the roll’s capacity π (r_f² − r_c²) / h the other
way round. The axis runs over a stretch of the roll (roll.run_from_m, run_m; shipped its first 6 m). Of a state the
line position is the mean of the two rolls’, ½ (s_u − trim + s_r) (the dancer’s trim below); in the rigid model the web’s
travel at the dancer roller.
Rolls. A roll of web of thickness h gains h per turn, an Archimedean spiral: r = r_c + h φ / 2π (rewind, wound from the core), r = r_f − h φ / 2π (unwind, paid out from full), and r² = r_c² + h s / π with s the web on it, s(φ) = φ (r_0 + r) / 2. Its inertia is the web’s as a thick-walled cylinder plus core and shaft, J(r) = ½ ρ w π (r⁴ − r_c⁴) + J_core; the motor’s rotor and gearbox input add i² J_m. A roll that gains or loses web where the web moves with its surface gets no torque from the mass flow, so
unwind (J_u + λ_u i² J_m) ω_u' = λ_u i (τ_u − τ_f) + T1 r_u (ω_u in the paying-out sense)
rewind (J_r + λ_r i² J_m) ω_r' = λ_r i (τ_r − τ_f) − T2 r_r
not d(J ω)/dt: the kinetic energy ½ λ v³ per second the web carries from roll to roll (λ = ρ w h) is booked with the
web’s transport below. λ_k is the gearbox’s factor, η^tanh(P / 0.5 W) on the power P it passes (effects.gearbox_efficiency,
as every machine’s gearbox; with effects.thermal_feedback η and the drag at the gearbox’s temperature), τ_f the shaft’s
friction, the gearbox’s no-load drag (effects.gearbox_drag, booked as the gearbox’s loss) and, while the drives are
off, the holding brake (mech::HoldingBrake, a deflection state per motor). The torque each gearbox passes on,
λ i τ_in, is the signal gearbox.<motor>.output_torque.
Web (effects.web_stretch). Two spans, unwind to dancer and dancer to rewind, each vertical, of length L_k0 + y (y the
dancer’s travel down from the middle), each holding M_k of web unstretched; T = EA (L / M − 1) + EA τ_d ε̇ while L > M, 0
while slack (web.slack_time counts the seconds). The web carries its strain: what crosses a boundary crosses it at the
strain of the side it comes from,
dM1/dt = v_u / (1 + ε_0) − v_d / (1 + ε_1), dM2/dt = v_d / (1 + ε_1) − v_r / (1 + ε_2)
ε_0 = roll.wound_tension_n / EA the strain the unwind roll was wound at, v_d the roller’s surface speed; backwards the
upstream side is the other one (the rewind giving off web at the tension setpoint’s strain). To first order this is the
span equation L dT2/dt = EA (v2 − v1) + v1 T1 − v2 T2 (+ EA dL/dt); the form in M keeps the web’s length exactly. The span
lengths do not change with the rolls’ radii (the web leaves each roll over a fixed idler, not modelled), and the web’s own
mass in the spans is left out.
Dancer. The roller turns with the web, J_d ω_d’ = R (T2 − T1) − drag; the slide carries it, m y’’ = F_cyl − k_air y + m g
− T1 − T2 − friction + stops, m the slide and roller (mass.dancer_kg) and a weight a cycle segment’s payload hangs on
it (mass.payload_kg). The cylinder’s force is set to hold the tension setpoint, F_cyl = 2 T_set − m g, the dancer’s
weight (with the weight on it) taken off, with the taper T_set = T0 (1 − k (1 − r_c / r_rewind))
(effects.tension_taper). Its potential is −(F_cyl + m g) y + ½ k_air y²; while the taper changes F_cyl the loss row
power.cylinder = dF_cyl/dt · y books the energy that puts in.
Rigid model (effects.web_stretch off): the web does not stretch, the dancer stands at y = (s_u − s_r) / 2 and the
roller turns at (v_u + v_r) / 2R. With a_k = b_k ± k_k T_k the surfaces’ accelerations (b from the drive, k = r² / J), y’’ =
(a_u − a_r) / 2 and R ω_d’ = (a_u + a_r) / 2 into the dancer’s and the roller’s balance give two linear equations in T1 and
T2, solved loss-free and again with the gearboxes’ factors.
Energy. energy.*: the rolls with their rotors, the dancer and its roller; the dancer’s weight and the cylinder; the
spans’ EA (L − M)² / 2M and the stops. The loss rows: each shaft, each gearbox, the dancer (slide and roller), the web’s
damping, the stops, power.web_transport (the balance of what the tensions do on the bodies, what the spans store and
what their damping takes, plus the kinetic energy the web carries from roll to roll: ½ λ (v_u³ − v_r³) and the strain
energy the web brings into and out of the spans, T v (ε_in − ε) to first order) and power.cylinder.
Control. Both motors follow the line position by electronic gearing: inverse gives each roll’s angle at the radius
of its wound length (2 s / (r_0 + r)), so the speed setpoint is i v / r and the position loop holds the roll on the line.
The torque feedforward (feedforward_torque_moving) is the tension’s torque and the inertia compensation at that radius,
τ = (J(r) ω' ∓ T r) / i, ω' = (a ± h ω² / 2π) / r (unwind −T r and +; rewind +T r and −)
T1, T2 = T_set ∓ J_d a / (2 R²) (the roller's inertia between the spans)
The dancer’s position loop (dancer.position_loop), a PI as a winder’s technology controller runs it, trims the
unwind: trim = −(Kp y + Kp / Tn ∫ y dt), within ± trim_max_m_s, every base step while the drives are on (after_step).
The trim’s integral, the web it has had the unwind pay out beyond the line, goes into the unwind’s wound length in
inverse: the unwind runs on the line speed over its radius plus the trim, and its radius follows the web it gave.
Without the loop a roll wound at another tension than the web runs at drifts the dancer at v (ε − ε_0) / 2 (the draw).
Signals. The spans’ tensions web.span.<k>.tension, the highest web.tension_peak, web.slack_ratio (the minimum
tension over the lower span’s), web.tension_setpoint, web.slack_time; dancer.position, speed, load_force,
trim_speed; rewind.radius_from_speeds (r_u ω_u / ω_r, as a drive works the radius out); per roll its radius, inertia
ratio now and at the full roll, and the figures of the sizing at both ends of the roll.
Own verdicts. web-tension (highest span tension, ratings.web_max_tension_n), web-slack (the minimum over the
lowest, at most 1), dancer-travel (ratings.dancer_max_travel_m), and per motor: inertia-ratio (the full roll’s
J / (i² J_m), ratings.max_inertia_ratio), torque-at-full-roll and torque-at-core (the torque of the formula above at
the full roll and at the core, at the line’s speed and acceleration of the moment and the tension the span would have
there: the setpoint at that end of the roll plus what the span is off its setpoint now; against drive.peak_torque_nm),
speed-at-core (i v / r_c, drive.max_speed_rad_s) and tension-torque-at-full-roll (T r_f / i, drive.rated_torque_nm).
A run takes metres of a roll of hundreds; these carry the cycle’s line speed, acceleration and tension to both ends, where
the speed is highest at the core and the torque at the full roll. rigid_checks gives them for the time-optimal plan
(the dancer’s travel: none in the rigid model).
Modes. The dancer on the spans with the rolls held, k = EA / L1 + EA / L2 + k_air on the dancer and what it carries; the roller turning on the spans, R² (EA / L1 + EA / L2) on J_d.
Stops. A category 2 stop brakes the line along its path and keeps the web’s tension at every radius. A category 1 stop
brakes each motor on its own OFF3 ramp, the same angular deceleration: the surfaces slow in proportion to their radii, so
where the radii differ the rolls part and the web is overloaded or goes slack (tests
an_emergency_stop_along_the_line_keeps_the_web_within_its_limits,
a_stop_on_each_drives_own_ramp_overloads_the_web_where_the_radii_differ). A category 0 stop takes the torque off and the holding brakes take the rolls within some 50 ms, while the dancer’s roller runs on and the web loses its tension: in the middle of the roll down to 0.068 N of its 30 N at least (the same test; it asserts below 0.1 N). What keeps the web from going slack there is the coasting rotors’ drag from the stator’s iron loss (effects.iron_loss, on as shipped: 0.0057 N m per motor at the rated speed, from the shipped motor’s printed rated point; the drive has the law); with it left out the web went slack for a while, so slack or not is no robust outcome of that stop. Once the drives are off, the holding brakes
keep the rolls and with them the tension; meanwhile the trim takes up what the unwind paid out more than the rewind took
(the dancer’s travel), so that enabled again each motor holds where it stands and the dancer’s loop brings the dancer
back.
Drives. The shipped config has the two Motor Modules of an S120 line-up with a Braking Module (drive.braking_module),
each with its own 110 µF of DC link; with effects.shared_dc_link (off as shipped, as on every machine) the two share
one link and what the unwind brakes, the rewind takes. On S210 converters of 66 µF the unwind’s DC link tripped on
overvoltage under a stream of setpoints at the speed limit, its roll’s inertia braked in steps.
Hexapod with rotary actuators (6-RSS)
machine-hexapod-rotary (id hexapod-rotary): six cranks on the base, each turned by its motor through a gearbox
(joint::RotaryJoint in chain::JointMachine, as the arms), each crank’s tip joined to the platform by a rod with a
ball joint at both ends. The joints are the crank angles θ_i; the tool pose is the platform centre p and its rotation
vector.
Kinematics
Crank i turns about the horizontal axis k_i = d_i × z through B_i, d_i its zero direction (horizontal, in its plane):
tip C_i = B_i + r (cos θ d_i + sin θ z), t_i = dC/dθ, t2_i = d²C/dθ²
rod |P_i − C_i| = L, P_i = p + b_i, b_i = R a_i, u_i = (P_i − C_i) / L
inverse e = P_i − B_i: a cos θ + b sin θ = c, a = e · d_i, b = e_z, c = (|e|² + r² − L²) / 2r
θ = atan2(b, a) ∓ acos(c / √(a² + b²)) ("out" −, "in" +; refused where |c| > √(a² + b²))
rates A ξ = diag(m) θ', A row i = (u_i, b_i × u_i), m_i = u_i · t_i (the torque arm), ξ = K θ', K = A⁻¹ diag(m)
A ξ' = diag(m) θ'' + s, s_i = u_i · t2_i θ_i'² − |v + w × b_i − t_i θ_i'|² / L − u_i · (w × (w × b_i))
forward Newton on the twist from the centre of the tool's box: ξ = A⁻¹ (L − |P_i − C_i|), p += v, R = exp(w) R
The torque arm is m_i = e · t_i / L = r √(a² + b²) sin δ / L, δ the closed form’s acos: zero at the dead centres δ = 0
and π, where the rod lies in the plane of the crank and its axis. condition is the condition number of diag(m)⁻¹ A
with the turns’ columns over the platform radius.
Dynamics
By virtual work in θ (M θ’’ + h = τ at the cranks):
- the platform with the payload, one rigid body: mass m, first moment S = R s and inertia I = R I_p R^T about p, s and
I_p from both bodies’ centres of mass (
mass.platform_cg_m,payload_cg_m) and inertias; M_ξ = [m 1, −[S]×; [S]×, I], c = (w × (w × S), w × I w), G = (m g, S × g): M += K^T M_ξ K, h += K^T (M_ξ A⁻¹ s + c − G); - each rod a uniform slender rod as three points, m/6 at C_i and at P_i and 2m/3 at the middle (exact in mass, centre and the inertia across; the spin about its own axis, free between two ball joints, is left out), each with its Jacobian P in θ and its acceleration a0 at θ’’ = 0: M += m P^T P, h += m P^T (a0 − g);
- each crank its inertia about its axis and its weight at
crank.cg_m: h_i += m_c g r_cg cos θ_i.
The rods’ forces (signal rod.<i>.force, compression positive): A^T f = W, W the body’s required wrench plus each rod’s
upper sixth and half its middle at P_i; the test the_virtual_work_agrees_with_the_forces_along_the_rods checks that
each crank’s torque from M and h equals its own Newton-Euler balance with f_i m_i (to 1e-9).
Signals and verdicts
Per leg crank.<i>.dead_centre_angle (acos(|m_i| / r), 90° at the dead centre), rod.<i>.force, rod.<i>.compression
(its positive part), crank.<i>.ball_joint_angle (asin |u_i · k_i|) and platform.<i>.ball_joint_angle (acos(u_i ·
R z)); kinematics.condition. The verdicts crank-dead-centre, rod-buckling (π² E I / L² of the tube over
ratings.rod_buckling_safety_factor), crank-ball-joint and platform-ball-joint judge their peaks; the gearboxes’
output torque (gearbox.<i>.output_torque) is judged by the common gearbox verdicts.
Four-arm delta H4
Source: machine-delta-h4/src/lib.rs (id delta-h4); the plate and its
amplifier in mechanisms. Four arms at 90°,
arms 1 and 2 carrying plate part A, arms 3 and 4 part B. The parts slide against each other along d = (1, −1, 0)/√2 by
the half slide h each, A at p − h d and B at p + h d; a pinion between racks on the parts turns the tool through a gear
stage, c = κ h, κ = i_p / r_p. The tool is (x, y, z, c).
kinematics per leg the D3's at q_k = p + σ_k h d (σ = −1 on A, +1 on B); J_x row k = (u_k, σ_k u_k · d)
dynamics M(θ) θ̈ = τ_gear + Q_g − v + τ_joint every body a point with its Jacobian P in θ: m Pᵀ P, m Pᵀ a0, −m g P_z
the parts m_part + 2 (1 − s) m_fb each (P = J_p ∓ d J_h), carriage and payload at p, the tool I_t κ² ḣ² / 2
With effects.forearm_inertia the forearms are rods as on the D3 (a sixth at each end, two thirds at the middle, and
their spin). Lumped (off), the split s is the inertia’s only, as on the D3: a rod’s weight acts at its middle, so the
weight takes (s − ½) m_fb of each pair from the elbow to its plate end (in Q_g and the potential), and the frame
momentum takes the forearms as rods (a sixth at each end, two thirds at the middle); the kinetic energy stays the
split’s. Until 21 November the lumped H4 had weight and momentum both at the split, 2/3 at the elbow (test
the_holding_torque_at_the_centre_is_a_quarter_of_the_plates_weight_and_the_arms_own: −18.58980 N m at each gearbox
at the centre 850 mm down, −18.60312 before; the_forearms_weight_is_at_their_middles: V + g · c along the default
cycle within 1e-6 J). effects.amplifier_compliance: the tool is a body of its own on the amplifier’s spring, τ_a = k (κ h − φ) +
c (κ ḣ − φ̇), I_t φ̈ = τ_a, the arms feeling −κ J_hᵀ τ_a; with effects.amplifier_backlash a dead band in it.
Arm bending (effects.arm_bending, off as shipped): each upper arm bends as the D3’s do with
link_elasticity, in its plane on k_b = 3 E I / L_a with a damper and out of it on k_l = 3 E I / L_a³ with a damper, E I
from the arm tube’s own dimensions ([upper_arm] tube_outer_diameter_m D, tube_wall_m s, youngs_modulus_pa;
I = π (D⁴ − (D − 2s)⁴) / 64). The tube stays with the root at θ; the elbow block, the forearms’ share and all beyond move
with the elbow angle e = θ + δ and the moves y along the elbows’ axes a_k:
|q_k − c_k − y_k a_k|² = L_b², J_x ẋ = J_q ė + J_y ẏ, J_y = diag(u_k · a_k)
M_d (ë, ÿ) = Q_d − v_d − (k_b δ + c_b δ̇, k_l y + c_l ẏ) − κ P_hᵀ τ_a (8 coordinates beyond the tubes)
I_arm θ̈ = τ_gear + g m_arm l_cg cos θ + k_b δ + c_b δ̇
The springs’ energy (k_b δ² + k_l y²)/2 is elastic energy, the dampers’ power the loss arm_bending. With
effects.arm_tube_inertia as well the tube takes its share of the bending in the cantilever’s static shape, with the
coupling B and the elbow block’s twist, exactly as on the D3 (joint_load_at, bend_rates).
The modes (Machine::modes): the arms on their gearboxes, bending springs and lateral springs with the motors held, as
on the D3, plus the amplifier’s; modes_small_amplitude with the hysteresis’s stiffness for the arms. The rods’ spin is
in the frame’s momentum.
Five-bar in the horizontal plane (parallel SCARA)
Source: machine-parallel-scara/src/lib.rs (id parallel-scara). The
D2’s five-bar laid flat in the x-y plane: two arms about vertical axes, each with a forearm pair to
a plate that keeps its orientation; the same kinematics with y for z, the forward solution the point further from the
shoulders. Optional at the plate: a Z stroke on a ball screw ([z_axis], motor 3) and the tool’s turn ([tool_turn],
motor 4); tool (x, y[, z][, c]).
M(θ) θ̈ = τ_gear − m_nt Jᵀ J_x⁻¹ w + τ_joint, M = I_b 1 + m_nt JᵀJ, I_b = I_arm + L_a² (m_elbow + s m_fb)
m_nt = plate + payload + 2 (1 − s) m_fb + what the plate carries (Z and C units, carriage)
Gravity acts along −z on the joints’ bearings and gives the arms no torque; the stroke lifts its carriage, m_z q̈ = F −
m_z g, the turn spins the tool, J_c c̈ = T, both felt by the plane’s motors only through their masses in m_nt. With
effects.joint_elasticity the stroke and the turn are elastic like the arms’ joints: the rotor a body of its own and the
gearbox’s spring between rotor and carriage (for the stroke the screw’s and the coupling’s stiffness in series, N/m) or
tool. The arm’s first moment is m c from mass.upper_arm_kg and upper_arm_cg_m.
Modes (with elastic gearboxes): the plane’s two, the arms on K = diag(k_1, k_2) against the load’s mass matrix at the
pose, det M λ² − (k_1 M_22 + k_2 M_11) λ + k_1 k_2 = 0, damping vᵀCv / (2 ω vᵀMv); the stroke’s carriage and the tool on
their gearboxes with their rotors held, √(K / m) / 2π, damping c / (2 √(K m)); lowest first. resonance_hz is the
plane’s lowest (what a shaper on the path is for). Shipped, at x = −0.04 m on the start pose’s line: 45.60 and 47.27 Hz in the plane, 142.24 Hz
and 501.11 Hz (the stroke’s screw at the start pose’s height, effects.screw_stiffness_with_position) (sim-cli modes parallel-scara).
Hexapod (six electric cylinders)
Source: machine-hexapod/src/lib.rs (id hexapod); the geometry in
mechanisms. A Stewart-Gough platform on six ball-screw cylinders, each a joint of
chain::JointMachine (RotaryJoint with a BallScrew). Tool (x, y, z, rx, ry, rz), the orientation a rotation vector.
inverse P_i = p + R a_i, d_i = P_i − B_i, L_i = |d_i|, q_i = L_i − L_closed
twist q̇_i = u_i · v + (b_i × u_i) · w (rows of J), forward: Newton on the twist from the home pose to 1e-13 m
dynamics M_ξ ξ̇ + c + g = Jᵀ f, q̈ = J ξ̇ + a0, M_q = J⁻ᵀ M_ξ J⁻¹, h = J⁻ᵀ (c + g − M_ξ J⁻¹ a0), M_q q̈ + h = f
Each leg is two bodies, as on the tripod: the rod part (leg.platform_share of leg.mass_kg, centre
leg.platform_part_centre_m from the platform joint) and the body part (the rest, centre leg.base_part_centre_m from
the base joint), each with its inertia across the leg, turning with u = d / L; each adds m Aᵀ A + I_t A_uᵀ A_u to M_ξ and
m Aᵀ (a0 + g e_z) + I_t A_uᵀ ü to c + g. The payload is a point mass at the platform centre with its own inertia
(mass.payload_inertia_kgm2, turning with the platform). The rotors spin along their legs (in the frame’s momentum) and turn with them (effects.rotor_gyroscopic, off as shipped): a rotor’s angular momentum h = J i q’ along u turns as u does, so its leg must give it the moment h u’; the base’s universal joint carries no moment square to the leg, so the leg passes it to the platform as a couple across its joints, F = h (u × u’) / L at the platform joint with its moment b × F (rotor_gyroscopic). F is square to the joint’s velocity: it does no work. h takes the rotor’s speed as i q’ (the elastic model’s rotor differs by the screw’s stretch rate). Checked against the rate of the rotors’ momentum in frame_momentum to 1e-7 (the_rotors_turning_with_their_legs_push_the_platform_as_their_momentum_turns: J i = 0.185583 N m s per m/s, the rotor’s 2.9537e-4 kg m² being the motor’s with the screw’s and the coupling’s, the chain’s own h; at home moving along x at 0.1 m/s leg 1 gives its rotor 1.410e-3 N m and the platform (0, −2.563e-3, −2.653e-4) N; 0.030 N and 1.3e-3 N m at the test’s twist; the energy holds with it on); on, the default cycle’s peak torques move by up to 0.078 % (motor 2), so it is off as shipped.
Refusals: error-hexapod-joint-angle, a leg steeper than workspace.max_joint_angle_deg against the base’s or
the platform’s normal (the rods checked against both), and error-hexapod-singularity. Verdicts: the screws’.
Not modelled: friction and play in the joints. The rods’ bodies against the platform’s and the base’s faces: the config has no plate or joint housing, so no contact; the joint-angle refusal (workspace.max_joint_angle_deg, 40°) keeps every accepted pose’s legs at least 50° from either face (over the shipped box, 5⁶ poses, the steepest leg stands 41.4° from the base’s normal and 47.0° from the platform’s, the corners beyond 40° refused).
Cable robots
Source: machine-cable-robot/src/lib.rs: cable-planar (a point-mass
carriage in a vertical plane on 4 cables, tool x, z) and cable-spatial (a platform on 8 cables, tool x, y, z, rx, ry,
rz); geometry and statics in mechanisms. Each cable leaves its winch over a swivelling
pulley of radius r and runs straight to its anchor: L = r β + l_f, dL/dP = −u.
Tensions. The structure matrix A (columns (u, b × u)) holds a wrench w with A t = w; the tensions are the ones
nearest cable.reference_tension_n within cable.min_tension_n to cable.breaking_load_n / cable.safety_factor
(a small QP, distribute). A pose whose weight no tensions in the band hold is refused. The time-optimal plan keeps
the tensions of each pose, speed and acceleration in that band (rigid_tensions_moving, tension_band), with the share
profile.tension_reserve of the room kept back.
Dynamics. M ξ̇ + c + g = A t. Each winch is a RotaryJoint in metres of cable (the drum’s radius the lever, its
inertia J / r² at the cable, bearing friction winch.friction_*, stops at its capacity). Elastic (effects.cable_stretch)
a cable of free length l pulls with t = EA (L − l) / l while taut, the drum with t (1 + (L − l) / (2l)); with
effects.cable_damping a damper c / l (cable.specific_damping_n_s). Rigid, l = L(pose) and the winches’ inertia joins
the platform’s through G = −Aᵀ.
Cable weight and sag (cable.mass_per_m_kg ρ, always in when the key is set; 0 where it is left out). The free span
hangs from both ends: V = ρ g L (z_P − z_E) / 2, at the anchor the force ρ g / 2 (L e_z − (z_P − z_E) u) and its moment.
The sag is the shallow parabola: with w = ρ g, l_h the span’s horizontal part and t0 = EA (L − l) / l,
T³ − t0 T² − c / 2 = 0, c = (w l_h)² EA l_f / (12 L) the chord tension T, its one positive root (`sagged`)
dT/dt0 = 1 / (1 + c / T³) Ernst's equivalent modulus
W = T² / 2 − c / T, energy (l / EA) W the platform takes T, the drum T L / l − W / EA
so a cable is taut at any t0 (slack, it hangs at T = √(c / (2|t0|))). Rigid cables have no sag. W changes with the pose
through c too (since 22 November): at a fixed t0, dW/dc = −1/(2T) (from dT/dc = T / (2 (T³ + c))), so the anchor takes
F = l / (2 EA T) ∇_P c beside T u, with its moment (sag_pull). ∇_P c in closed form (sag_gradient):
c (2 ∇l_h / l_h + ∇l_f / l_f + u / L), ∇l_f = q / l_f (q from the pulley’s centre to the anchor; the swivelling pulley’s
centre moves across its plane only), and the cable’s direction turning by ∇u = −n nᵀ / l_f + (e_z × u) e_vᵀ / P_u (n its
normal in the pulley’s plane, e_v the plane’s normal, P_u the anchor’s distance from the swivel’s axis), l_h = l_f |u_h|;
within 1.2e-14 N of central differences over 202 spatial poses (the_sags_gradient_is_its_differences) and within
1e-9 N along the whole spatial cycle (checked once by a run). 1.9e-5 N on the
planar robot at 0.01 kg/m and 100 N, 3.6e-3 N on a spatial cable hanging nearly slack at 0.4 N, against the at-rest
tensions’ 1e-11 N. The dynamics, the state at rest and the elastic forward take it, so the cables’ force is the
gradient of their energy (the_sagging_cables_pull_is_the_gradient_of_their_energy: 1.2e-9 N, 1.9e-5 N without it).
The spatial cycle’s run takes 6.5 s against 5.0 s without the pull (9.4 s with forward differences). Its figures: the
RMS torques and errors unchanged to their digits; motor 1’s peak torque 2.454134 N m without the pull, 2.454051 with
it (2.454135 with the differences, whose force differs by about 1e-11 N: the peak sits on a moment that small forces
shift), the other motors’ within 4e-6 N m.
The run from drum to pulley (with effects.cable_inertia; frame.run_lengths_m r, one per cable, [estimate]
0.15 m): each drum sits at D = E + r a, a the winch’s direction from the pulley’s swivel point E. The run’s cable, ρ r,
runs at the drum’s speed (a mass at the cable beside the drum’s), and the cable paid out is lifted from the drum’s
height to the pulley’s, h = z_E − z_D = −r a_z: its potential ρ g h l, the drum pulled back by ρ g h (0.049 N at 10 g/m
and 0.5 m; the top drums, over their pulleys, pulled on) and, rigid, the platform by ρ g h u. Until 22 November that
lift was winch.drop_m (0 as shipped), apart from the run. In the energy (the_cables_run_along_with_the_drums).
With the switch the cable is in the frame’s mass, first moment and momentum too (cable_momentum): all ρ (capacity +
r) of it, the wound cable at D, the run from D to E moving along it at l’, the free length l from E to the anchor P
(the pulley’s wrap taken straight) with its points at the share f moving at (1 − f) a + f P’, a = l’ (P − E) / l, as
the kinetic energy has them: first moment ρ ((capacity − l) D + r (D + E) / 2 + l (E + P) / 2), momentum
ρ (l’ (E − D) + l (a + P’) / 2), its rate exactly, angular momentum ρ (l’ D × E + l (E × (a + P’) / 2 + (P − E) ×
(a / 6 + P’ / 3))); against 4000 points of each span summed by hand to 1e-9, the first moment moving at the momentum
and the weight at the first moment (testkit), rigid and elastic. The weight’s V and the first moment take the same mass
for the span, ρ l (elastic, l the free length, a state; rigid, l = L): V + g · c is the same at any two states to
rounding (1e-12, the_cables_run_along_with_the_drums).
The cables’ own inertia (effects.cable_inertia, off as shipped, with ρ). The cable runs along itself at the
drum’s speed l’: the turns on the drum with it (at the drum’s radius, so at l’), the paid-out cable along its run and
span. All of it, the drum’s winch.capacity_m from its end on the drum to the anchor, is a constant mass ρ · capacity
at the cable beside the drum’s J / r² (0.05 kg beside 0.444 kg on the spatial robot, 0.015 kg beside 0.32 kg on the
planar), in the equations of either model, the feedforward and the kinetic energy. In the frame’s momentum the cable
on the drum, ρ (capacity − l), turns with it about h; the paid-out cable’s momentum along its span, ρ l l’ a cable, is left
out with its mass (not in the frame’s mass and first moment, as the cables’ weight is the potential’s; so the swing below is
not in it either, and a base under the robot does not feel the cables’ momentum). Since 22 November the switch also
takes the span’s swing across itself: the straight span pivots at its exit point, its sections at s / l_f of the
anchor’s speed across the cable, so T = μ |v_⊥|² / 2 with μ = ρ l_f / 3: a mass M = μ (1 − u uᵀ) at the anchor that
changes with its place, in the platform’s mass matrix (platform_mass_at, the feedforward’s and the modes’ too) and
the kinetic energy. Its velocity terms by Lagrange on the anchor as a particle (swing_bias):
F = M (w × (w × b)) + μ’ v_⊥ − μ (u’ (u · v) + u (u’ · v)) − ρ/6 ∇l_f |v_⊥|² + μ (u · v) ∇uᵀ v, μ’ = ρ/3 ∇l_f · v,
u’ = ∇u v (the gradients of span_gradients), with its moment b × F. Tests: the planar robot’s mass at the centre
by hand, the swing’s power along a motion of the spatial one against its energy’s rate to 4.5e-7
(the_cables_swing_with_their_anchors), the energy budget closed rigid and elastic. Left out: the fixed run from the
drum to the pulley (its length not in the config). Switched on (along-motion and swing), the spatial cycle’s peak
torque goes from 2.4541 to 2.4562 N m (+0.09 %), its tracking error from 0.2045 to 0.2055 mm, its dwell error from
0.0357 to 0.0344 mm; the planar’s tracking error from 0.6499 to 0.6502 mm. The run takes 14.7 s against 6.5 s off.
A drum 0.5 m below its pulley moves the spatial peak torque by −0.01 %.
The winches’ spin is in the frame’s momentum about
frame.winch_spin_axes.
The motor angles of a pose (inverse) are those of the free lengths that hold the platform at rest there with the
distribution’s tensions, l = L / (1 + t / EA), so position setpoints and torque feedforward ask the same pretension.
Overhead crane
Source: machine-overhead-crane/src/lib.rs, with the extended model in
full.rs; the machine in mechanisms.
A bridge on a runway (x), a trolley on its girder (y) and a hoist winding the rope on its drum; each drive a motor behind
a gearbox with its wheel or drum as the lever (RotaryJoint with a Converter). The tool is the hook as the drives
place it: x, y and the height the drum’s rope gives the empty hook. The rope runs straight from the sheave T = (x_b, y_t,
H) (crane.rope_exit_height_m) to the load P:
L = |P − T|, u = (P − T) / L, e = L − l l the free rope the drum has paid out
t = EA e / l + c / l (L̇ − l̇) while e > 0, never below 0 (effects.rope_stretch; c with effects.rope_damping)
(m_b + m_t) ẍ = drive_x + t u_x − F_roll,x + stops m_t ÿ = drive_y + t u_y − F_roll,y + stops
J_drum / r² l̈ = drive_l + t (1 + e / (2l)) + stops m P̈ = −t u − m g e_z
F_roll = w N tanh(v / v_s), N = (wheels' mass) g + t (−u_z) (effects.guide_friction, `crane.rolling_*`)
The drives are rigid with the rotors at the axis (i² J_rotor) and the gearbox’s loss factor on the power it passes.
resonance_hz is the pendulum’s 1 / (2π) √(g / L) at the rope’s length where the plan stands. At rest the load hangs on
a rope stretched by its weight, l = L / (1 + m g / EA); the motor angles count on the empty hook’s weight alone, so the
drum stands still when the payload goes on or off. With effects.rope_stretch off the rope is rigid, L = l, its tension
the constraint force.
Five further effects, each its own switch (off as shipped; off, the model above exactly), solved together by one mass matrix over q = (x_c, y, l, P1 (3) [, d (3)] [, ψ]), M(q) q̈ = f(q, q̇), each point mass adding m Jᵀ J to M and Jᵀ (F − m J̇ q̇) to f:
effects.rope_mass(rope.mass_per_m_kg_mμ): the free rope’s material runs off the sheave at the drum’s speed, its velocity linear from v_A = v_S + l̇ u to v_P, K = μ l / 6 (|v_A|² + v_A · v_P + |v_P|²); the wound rope moves with the trolley and the drum’s surface, K_w = μ (capacity − l) (|v_S|² + l̇²) / 2; V = μ g [l (H + z_P) / 2 + (capacity − l) H]. Lagrange’s equations with the growing mass μ l; nothing is booked as loss.rope.tensionis the drum’s end, (m + μ l) g at rest,rope.shortfallthe hook’s.effects.hook_block: the hook block (crane.hook_mass_kg) at P1 on the rope, the load at P2 = P1 + d on a sling ofcrane.sling_length_ml_s: a spherical double pendulum. The sling is a rope of the main rope’s EA and specific damping, t_s = EA e_s / l_s + c ė_s / l_s with e_s = |d| − l_s, never below 0 and 0 while e_s ≤ 0: it goes slack when the load stands on the floor and the hook block is lowered further, or in a bounce, and takes the jerk when it comes taut again in its stretch (its damper, witheffects.rope_damping, books what that loses as the rope’s). At rest it is stretched to l_s (1 + m g / EA); a pick hangs the payload plumb under the hook block at that length, or, where that is under the floor, stands it on the floor with the sling slack. The load’s signals are P2’s. Lowered further than that, the hook block lands on the payload: its box (0.16 m tall) on the payload’s (0.4 m), the scene’s, its point h = 0.28 m over the payload’s, over the payload’s box. A one-sided contact on the sling’s span, d_z ≥ −h: at rest against it a constraint d̈_z = 0 whose push (hook block up, payload down) is never negative, solved with the floor’s; one coming down lands at the step’s end, plastic, the two at one vertical speed (the payload’s where it stands on the floor, else their common momentum’s), booked withpower.otheras the floor’s landing. Since 21 November 2026 (it passed through before): lowered 1.2 m past the payload’s touchdown, the hook block rests 0.28 m over it, the rope slack and the floor carrying both, (15 + 250) g = 2598.762 N; the fall’s 114.37 J booked at the landing, no step made energy, and a taut rope lifts it off again (a_hook_block_lowered_beyond_the_sling_lands_on_the_payload; on the rigid rope the same, and the rope taken in lifts the hook block alone, the payload standing where it was:a_hook_block_on_the_rigid_rope_lands_on_the_payload_and_lifts_off_alone, 2 mm of the payload’s lift before 22 November). Since 22 November its sides too (Crane::faces): with the boxes overlapping in height and along a side, h = 0.36 m along x and 0.34 m along y, the same one-sided contact on the span’s d_x or d_y, resting and landing (plastic, at the common momentum’s speed; the top first where both qualify); 0.5 m/s into a standing payload’s side leaves both at 15 x 0.5 / 265 m/s and books 1.769 J (the_hook_block_meets_the_payloads_sides). Along the faces it rubs with Coulomb friction mu_f N (crane.hook_block_friction_coefficient, N the face’s push, its power in the floor’s row:the_hook_block_rubs_along_the_payloads_top); the payload’s bottom face too (a payload over the hook block’s box, 0 < d_z <= 0.28 m, resting on it or let fall onto it: plastic, the payload put back up on the box’s top,a_payload_let_fall_onto_the_hook_block_lands_on_its_top). A payload let go (free, with the hook block and the floor) stays in the machine as a free body: its span’s coordinates are its own, the sling gives no force, its weight and the contacts (the floor, the faces, the floor’s and the faces’ friction) are the only ones, and its kinetic and potential energy are in the machine’s energy, so that letting go books only the sling’s elastic energy with the grip (some 2 J for the 250 kg on the 1 m sling at EA 1.44e6 N) and a pick in place nothing. It falls from the grip’s place and speed (exact for a constant g), lands on the floor (plastic, the fall’s m g h booked withpower.other:a_payload_let_go_in_the_air_falls_to_the_floor) and stands there, a box the hook block meets (drawn aspayload-set-down); a hook block resting on it stays (it dropped through before,a_hook_block_on_the_payload_stays_on_it_when_the_payload_is_let_go), and one lowered onto it from above lands on its top as before. The next pick takes it where it lies when the sling reaches it (the span at most the sling’s length: the sling slack, nothing booked); else this payload is gone and the load of the pick appears plumb under the hook block as the first pick’s did (the cycle’s pick station). The books close through pick, release in the air, fall, rest, a hook block lowered onto it and the re-pick (the_energy_closes_through_pick_release_fall_rest_hook_block_on_top_and_re_pick). Without the floor or the hook block the payload leaves with the grip as before. A pick at the grip with the hook block inside the payload is refused in the simulation as the segment is at load (Sim::pick_refused). A set-down on a slack rope no longer puts the hook block at the rope’s end (28 J made before). A hook block already deeper than the payload’s top at a pick (hanging under 0.28 m over the payload’s point) is neither pushed out, which would make energy, nor held in (a_hook_block_inside_the_payload_at_a_pick_is_neither_pushed_out_nor_held).effects.joint_elasticity: each drive the elastic joint of the other machines, the gearbox’s stiffness, damping and backlash between the rotor (a state) and the wheel or drum. With it on the shipped loops are stable (sim-cli margins overhead-crane --set effects.joint_elasticity=true): bridge 177.4 Hz, 51.7°, 9.68 dB; trolley 182.8 Hz, 51.0°, 9.86 dB; hoist 49.5 Hz, 78.2°, 20.68 dB.effects.bridge_skew: the bridge a rigid girder on two end carriages at x_A,B = x_c ∓ ψ g / 2 (g =crane.bridge_gauge_m), each with a drive of the bridge’s config sharing its command, Q_x = F_A + F_B, Q_ψ = (F_B − F_A) g / 2; the wheels’ lateral stiffness (crane.bridge_wheel_lateral_stiffness_n_m, overcrane.bridge_wheelbase_m) holds the yaw with k_ψ ψ, damped atcrane.bridge_skew_damping_ratio. The trolley sits at x_c + ψ (y − y_c) and its place shares the wheels’ load between the two sides.effects.floor_contact: the standing body (the load’s point, or the hook block’s) is a one-sided constraint a_z = 0 atcrane.floor_height_mwith N ≥ 0, N = −a_z,free / (J_z M⁻¹ J_zᵀ), and Coulomb friction μ_f N (crane.floor_friction_coefficient, smoothed overcrane.rolling_smoothing_m_s) iterated with N; the rigid rope respects the floor too, and a rope that comes taut lifts the load. A body falling onto the floor runs on through the step, which puts it back on the floor at rest (plastic, booked withpower.other); the constraint holds a body that stands still only, so the floor’s push does no work.
Modes (Machine::modes, lowest first): the swing (and with the hook block the double pendulum’s upper root), the
modes along the rope with the motors held, and the girder’s yaw. Along the rope, down positive: the drum with
effects.joint_elasticity (J / r² and the wound rope on the hoist gearbox’s k_g), the hook on the elastic rope, the
payload on the sling. The rope linearised at its rest stretch, K = EA / l [L² / l², −L / l; −L / l, 1] on (l, L) and
its damper c / l on L̇ − l̇, its own mass μ l / 6 [2, 1; 1, 2]; the rigid rope ties the hook to the drum. Held rigid
drives hold the drum: the bounce is √(EA / (l m)), 6.77 Hz for the 265 kg at z = 2 m. With elastic drives the travels on
their gearboxes too (the bridge on both carriages’ with the skew), the load on its pendulum left behind: the bridge
10.49 Hz, the trolley 41.09 Hz, the hoist and the bounce 108.2 and 6.30 Hz. The model linearised with its motors free has
the rotors in and higher figures (the drives at 65.7, 88.0 and 111.0 Hz, the bounce at 11.4 Hz; on rigid drives 12.14 Hz
with drum and rotor free). The held bridge mode is what the config calls the drive’s anti-resonance: the shipped
velocity loop (some 4.5 Hz on the rigid drive) does not hold the rotor there.
Left out: the rope’s bending at the sheave and the load’s own turning (a point mass; the hook block meets the payload on its top and sides, not its bottom, and without friction along them).
Crank and cam machines
Source: machine-crank-cam; the mechanisms in
mechanisms. Each is one motor-driven joint
(chain::JointMachine), so motor, gearbox, drive, friction feedforward, rigid_checks and the two-mass mode are the
joint machine’s; each can run its electronic cam (cam.run, off as shipped: then the config’s cycle segments run).
The toggle press is the sixth.
Slider-crank (slider-crank, crank.rs): x(θ) = r cos θ + √(l² − r²
sin² θ) from the crank’s centre, θ = 0 at the outer dead centre. The rod’s mass is split at rod.crank_end_share:
J(θ) = J_crank + m_pin r² + m_x x'², speed term m_x x' x'' θ̇², V = g (m_x x sin β + m_pin r sin(θ + β))
β = slider.incline_deg. The process force (effects.process_force, a table over the slider’s distance from the outer
dead centre) pushes back while the slider moves outwards, not on the way back: torque −F x’. Rod force, guide load and
crank bearing load are judged (ratings.rod_max_force_n, slider_guide_max_load_n, crank_bearing_max_load_n).
Rotary knife (rotary-knife, knife.rs): a roll of radius R with n
blades; in the synchronous zone ±α about each cut the blade runs with the web (slope 1/R), between cuts a VDI 2143 law
takes the rest of the pitch 2π/n − 2α over L − 2Rα of web. The cut brakes the roll with a table over the angle while it
turns forwards.
Flying saw (flying-saw, saw.rs): a carriage on a rack; per cut length
it synchronises (speed blended as 3u² − 2u³, v²/(2a) of travel), runs with the material over the cut window W, leaves
it, and returns by saw.return_law over the rest, L − 2v²/a − W of material. The cut pushes along the material with a
table over the way into the window.
Disc cam (disc-cam, disc.rs): a roller follower on a slide, offset e,
on a disc of base radius r_b; lift s(θ) from VDI 2143 segments, s0 = √((r_b + r_r)² − e²), tan φ = (s’ − e) / (s0 + s).
On the disc, N = (m s̈ + F0 + k s + m g) / cos φ, J(θ) = J_disc + m s’², spring and weight torque (F0 + k s + m g) s’.
effects.follower_lift_off (off as shipped) lets the follower leave the disc: its lift is s + g with the gap g a passive
joint, and with the guide’s Coulomb friction F_f = F_g tanh(v / 1 mm/s) (F_g = follower.guide_friction_n), which the model
without lift-off does not have:
(J_disc + m s'²) θ̈ + m s' g̈ + m s' s'' θ̇² + (F0 + k s_f + m g + F_f) s' = τ
m s' θ̈ + m g̈ + m s'' θ̇² + F0 + k s_f + m g + F_f = F_c
F_c = max(0, Q(d) + c_d ḋ), d = −g, d = 3.84e-5 Q^0.9 / l^0.8 (mm, N, mm) Palmgren's roller line contact
c_d = 2 ζ √(Q / (0.9 d) m) (`follower.contact_damping_ratio`), energy 9/19 d Q
The damper’s power and the guide’s friction are booked as losses, so the energy budget closes through an impact. Signals
follower.gap, follower.off_disc; the feedforward takes the follower on the disc.
Indexing tables (Geneva drive, cam indexer)
Source: indexer.rs (geneva-drive, cam-indexer). A driver steps a
table of n stations on by one per turn and holds it in the dwell. θ = 0 at mid-index; the index runs over |θ − 2πk| < h.
Geneva λ = sin(π/n), tan φ = λ sin x / (1 − λ cos x), φ' = λ (cos x − λ) / (1 − 2λ cos x + λ²), h = π/2 − π/n
cam φ = (2π/n) s(u), u = (x + h) / (2h), s the modified sine (peak acceleration 5.528, speed 1.760)
load J(θ) = J_driver + J_t φ'², J_t = J_wheel + J_table + m r_s², speed term J_t φ' φ'' θ̇²
The Geneva’s acceleration jumps by tan(π/n) θ̇² at the pin’s entry (the driver does not feel it, φ’ = 0 there); the pin
pushes the slot with F = T / r. The cam’s rollers on the pitch radius r_p take F = T / r_p; with indexer.cam_radius_m
R_c the contact leans by the cam’s pressure angle, tan α = r_p φ’ / R_c, N = F / cos α (signal indexer.pressure_angle
only with the key; without it α = 0). In the dwell the locking disc (dwell ridge) holds the wheel within
indexer.locking_play_rad. The ring’s ω_n² = k / J_s takes the table side’s own inertia, the wheel held by the cam.
The table rings on its shaft (table.stiffness_nm_rad k, table.damping_ratio ζ). By default that ring is worked out
beside the dynamics, x’’ + 2ζω_n x’ + ω_n² x = −φ’’ θ̇², ω_n² = k / J_s, its amplitude A at the index’s end settling as
exp(−ζ ω_n t) to ratings.index_settling_tolerance_m at the station radius, without acting back. With
effects.table_twist (off as shipped) the twist x is a passive joint (J_s = J_table + m r_s²):
(J_d + J_t φ'²) θ̈ + J_s φ' ẍ + J_t φ' φ'' θ̇² = τ
J_s φ' θ̈ + J_s ẍ + J_s φ'' θ̇² = −k x − c ẋ, c = 2ζ √(k J_s)
so the ring acts back on the driver and its loop; signal table.twist, loss power.table_twist; the index error in the
dwell adds |x| at the station radius. The feedforward knows the rigid table.
Frame momentum (for a compliant base; since 21 November 2026, before none): in the scene’s frame
the wheel turns about +y at φ’ θ̇ and the table with its twist’s rate on top, the parts a point each at the station
radius (n of them evenly round the table: no momentum, their first moment at its centre), the driver and the rotor on
the driver’s shaft, the Geneva’s crank about −y beside the wheel, the cam’s shaft square to the turret’s, along z. In
the middle of the index at θ̇ = 2 rad/s with the rotor’s 0.01 N m s: Geneva of six 1.1 − 0.02 − 0.01 = 1.07 N m s about
y (1.33 with the twist turning at 0.5 rad/s), cam indexer 0.950186 about y and 0.034 about z
(the_frame_momentum_is_the_hand_calculated_one). The table is level as the potential has it (0): its weight does no
work and testkit::weight_is_at_the_first_moment has nothing to judge (it asks the first moment to move vertically).
Axes of the joint kit (screw, rack, linear motor, rotary table)
Source: slide.rs, table.rs;
the transmissions in mechanisms. One chain::JointMachine joint each.
screw-axis,rack-axis,linear-motor-axis: M = m (carriage and payload), h = m g sin(slide.incline_deg). Screw and rack aretransmission::Converters behind the gearbox; the linear motor drives the carriage directly, its[motor]read in N and m (the forcer’s mass as the rotor’s inertia), its attraction pressing on the guides (axis.x.guide_load) and adding friction. The slides’ presliding is above.rotary-table: an inertia about z, no gravity torque, behindtable.gear= “planetary”, “strain-wave” or “worm”. A worm drives with tan γ / tan(γ + ρ’) and is driven back with tan(γ − ρ’) / tan γ (WormGear, the gearbox’s back-drive ratio); a worm whose back efficiency is not positive locks itself and the table refuses it (worm.lead_angle_deg). The worm’s motor spins about the worm’s own axis (worm.motor_axis, across z), a planetary gear’s rotor about z with the table, a strain wave gear’s against it.
Palletiser
Source: arm.rs, config/palletiser.toml
(palletiser): a four-axis arm from builtin:palletiser, its URDF joints sums of the motors’ joints (arm.joint_coupling)
so that a parallelogram keeps the flange level; Newton-Euler on the chain as the arms.
The parallelogram’s bars the URDF leaves out can be bodies of their own (arm.bars_on, bars_turns_with, bars_pin_m,
bars_mass_kg, bars_com_m, bars_inertia_kgm2): bar i pinned at a point of one link, staying parallel to another and
turning with it, its points moving at v_pin + ω_turns × (r − pin). The palletiser ships its forearm’s drive
parallelogram so since 22 November (estimates): the crank, 6 kg, on motor 3’s shaft at the upper arm’s pivot, turning
with the forearm, its centre 0.15 m behind the pivot; the rod, 8 kg, from the crank’s end to the forearm’s rear lever
(0.3 m behind the elbow), parallel to the upper arm. With the arm upright and the forearm level their weights take
(8 × 0.3 + 6 × 0.15) g = 32.36 N m off the forearm’s joint, 0.2023 N m at motor 3, nothing at motor 2
(the_palletisers_rod_and_crank_hold_by_hand); the turret’s held mode at the start pose is 8.21 Hz (8.30 without
them). The MuJoCo reference compares the URDF’s chain alone.
The rod’s stretch (effects.bar_elasticity, off as shipped; arm.bars_axial_stiffness_n_m, bars_carries). The
forearm is pinned at the upper arm’s tip and turned by the rod alone, so the rod’s axial stiffness k does not lie in
series with the arm’s bend (the bend moves the rod’s end across it, a change of its length of second order) but with
the gearbox of the joint whose turn it carries, on the lever c of its pin’s distance from its link’s joint:
K = 1 / (1 / k_g + 1 / (k c²)). The palletiser’s rod, a 1 m steel tube of its 8 kg, E A / L = 2.14e8 N/m on 0.3 m:
1.926e7 N m/rad beside motor 3’s 2e5, K = 197944.6 N m/rad, its train 0.9948 times as high
(the_parallelogram_rod_stretches_in_series_with_motor_threes_gearbox). The gearbox’s damper stays in parallel with K.
The forearm rocking on the rod (effects.bar_rocking, off as shipped, since 22 November; with it on the series
spring above is off). The forearm rocks on the rod’s spring as a joint of its own, r, passive, after the motors’ joints
(before a swinging payload’s): k c² holds it, arm.bars_axial_damping_n_s_m c_a damps it with c_a c² (its loss
power.bar_rocking, its angle bar.rocking). If r only added to the elbow, the crank would turn with the forearm and
the columns of the motor joint and of r in the mass matrix would be equal: singular. So r turns the URDF joints as the
carried motor joint does (its column of arm.joint_coupling: the forearm, and the wrist back, the flange’s own levelling
being rigid), and the crank, pinned before the first body r moves, turns with the motor joint alone (Arm::bodies takes
it from the bodies at r = 0); its inertia is all that tells the two apart, and a config without such a crank is refused.
On a one-motor rocker (crank 0.18 kg m², forearm and rod 6.72 kg m² about the pivot) with the motor held the modes are
the two masses’ by hand, det(diag(k_g, k c²) − ω² [[I_c + I_f, I_f], [I_f, I_f]]) = 0: 26.96 Hz and 1676 Hz (the crank
between the springs), to 1e-6 (the_rocking_forearm_rings_as_the_two_masses_by_hand). At rest the forearm sags on the
rod by −h_r / (k c²) (passive_rest, by fixed point): on the palletiser upright, forearm level, carton on, g (20 × 0.55 +
33 × 1.2 − 8 × 0.3) / 1.926e7 = 2.4542e-5 rad, to 1e-6 (the_palletisers_forearm_sags_on_its_rod_by_hand); the energy
holds rigid and elastic (1.0e-8 J of 2.8 mJ, 6.1e-9 J of 10.2 mJ) and the loss budget closes
(the_rocking_forearm_keeps_the_energy). The rocking is in the tool pose in tool space (Mechanism::passive_shift: the
flange with r less that without; it stands 1.2 m × 2.45e-5 rad ≈ 29 µm lower at rest, which equilibrium takes out of
the joints it inverts to, so the pose reads as commanded, the_rocking_forearm_moves_the_tool_pose). The planner’s
trains and the held modes of an arm of several motors take it free as a coordinate of its own (the train of the
carrying motor is the low two-mass mode’s, 26.96 Hz and not the 27.10 Hz of the forearm held), and the rod’s damper
c_a c² is in the modes’ damping figures, φᵀCφ / (2 ω φᵀMφ) by hand
(an_arms_held_modes_and_trains_take_the_rocking_forearm_free). Not in: the two-way link bending’s coupled modes,
which still hold the passive joints.
A four-bar of unequal links (arm.four_bar_*, since 22 November). A loop the URDF leaves out whose bars do not
stay parallel to a link: a crank point C on one link drives a coupler of length l_c to the point T, which a follower of
length l_f holds from its pivot F on another, in the plane square to n. T from the loop’s closure: d the in-plane part
of C − F, e = d / |d|, cos a = (l_f² + |d|² − l_c²) / (2 l_f |d|), T = F + l_f (cos a e ± sin a n × e). The rates from
the loop’s Jacobian in the pivot’s link’s frame (turning at ω_g): C moves at c’ there, the follower turns at λ n with
λ = (T − C) · c’ / ((T − C) · (n × (T − F))), the coupler at μ n with μ = (T’_rel − c’) · (n × (T − C)) / l_c². Each bar a
uniform rod; their mass matrix and bias by Kane’s equations as the parallel bars’ (bar_dynamics), their weight in the
potential. On the SCARA (follower 0.12 m and 0.3 kg on link 1, coupler 0.2 m and 0.5 kg from 0.08 m out on link 2) the
mass matrix over joints 1 and 2 matches the closed form’s to 1e-7 at two poses, and the energy holds
(a_four_bar_of_unequal_links_closes_and_carries_its_bars_mass_by_hand). On bending links (since 22 November, refused
before): the two pins move with a mode as their bodies’ points do (on the bent link at its shape), and the bars turn as
the loop’s Jacobian has them at those deflected pins (bar_field; the ground’s turn drops out). Its limit, a
parallelogram with the pivot on joint 1’s axis, gives the two parallel bars’ modes to 1e-9; the energy holds with the
bend acting back (a_four_bar_on_a_bending_link_has_the_parallelograms_modes_in_its_limit). The modes’ masses are taken
at zero joints, so a four-bar at a dead point there (flat, or open) is refused with bending.
Bending links with bars (since 22 November; refused before). A bar pinned on a body before a bent link that turns
with a body beyond it (the crank: pinned on the turret, turning with the forearm, across the upper arm) drives that
body’s turn from before the link: the link’s bend in its joints’ plane (the plane the pins turn in) moves that body and
all beyond it with the tip but does not turn them (BentLink::held_from; field gives them the tip’s move only, as
field_rate and the flange’s shift do), so they count with their mass and not their turning inertia, as on a
cantilever with a tip mass and no tip inertia. The bars have fields of their own (bar_field): the pin moves as the
points of its body (on the bent link itself at the mode’s shape where it sits, BentLink::shape_at, nothing behind
the joint), the bar turns as the body it turns with; a bar turning with the bent link while pinned beyond it (the rod)
is the parallelogram’s side across from the link and turns with its chord, w(1) d / L, so it swings about its other
end. Out of the joints’ plane and in twist the pins do not hold, and the bodies take the tip’s slope as before. The
palletiser’s upper arm (steel tube 150 × 10 mm, 25 kg) in its plane, one-way: by hand the Ritz pair of 25 kg with
53 + 8/3 = 55.67 kg at its tip, 52.9823 Hz (and 1015.8 Hz), which the machine’s modes give; the exact Euler-Bernoulli
cantilever with that tip mass and no tip inertia rings at 52.9800 Hz (the exact mode alone, two-way still, 53.626 Hz,
+1.2 %); without the bars, the forearm turning with the tip’s slope, 29.79 Hz (35.17 Hz with the exact mode alone). Two-way the energy holds with gravity to the integrator’s level, 1.8e-8 J of the 2.8 mJ a pulse puts in over 10 s (6.9e-9 J without the bars), the joints’ stops off. With the stops on the swinging upper arm reaches its stop at 0.9 rad, whose damper takes hold within a step: the steps that meet a stop are cut 16 times finer (mech::STOP_SUBSTEPS, HardStop::met_within: in a stop, or nearer than two steps at the speed), 5.3e-9 J (the_parallelogram_holds_the_forearm_against_the_upper_arms_bend; 1.3e-5 J before 22 November, in a step at each contact). No default cycle meets a stop, so none is cut.
Left out: the loop’s own stiffness beyond holding the turn (the rod and crank rigid), and a loop’s general geometry: the
rule is the parallelogram’s (the rod parallel to the link’s chord). With effects.payload_swing the payload hangs on a pivot about two axes, two passive
joints on arm.payload_swing_stiffness_nm_rad and _damping_nm_s_rad.
Mover track
Source: machine-mover-track/src/lib.rs (mover-track); the track in
mechanisms. Independent movers on a closed loop of two
straights and two 180° curves (constant radius or with clothoids), each a joint of chain::JointMachine along the
centre line s (m), driven by the coils under it in N and m as the linear motor axis. The track is level: M = m per
mover, no bias.
k(s) = (θ(s + w/2) − θ(s − w/2)) / w the curvature over the wheelbase w
guide load = √((F_a − m v² k)² + (m g)²) attraction less centrifugal force, and the weight
mass centre e outside: radius R + e, lateral acceleration v² k (1 + e k), mass m (1 + e k)²
Above m v² k = F_a the mover lifts off (mover.<k>.liftoff_ratio). A mover’s current is that of its force, I = F / k_t
less what saturation takes towards the maximum current (DriveParams::current_for), shared among the segments under its
magnet plate by the plate’s length on each; each segment’s copper loss R I² warms it through one thermal resistance and
time constant (segment.temperature_rise). The cycle is a cam (track.cycle “index” or “flying”), or with cam.run = false the config’s segments.
Modes (Machine::modes, resonance_hz, what the input shaper follows): with the motors held, each mover’s body and
payload on its coupling (joint_elasticity, the gearbox’s stiffness k = 2e7 N/m as shipped) to the held plate,
sqrt(k / m (1 + e k̄)²) / 2π: 694.28 Hz on the shipped mover (1.051 kg), its damping ratio c ω / 2k; the planner’s
train (Machine::trains) is the same, the load’s share 1.051 / 1.251. With the plate free the two-mass mode is
sqrt(k (1/m + 1/m_plate)) / 2π = 1736.39 Hz; until 21 November a track of one mover reported that one (the chain’s
single-joint mode) while its train was the held one (the_movers_modes_are_the_held_two_mass_mode).
Frame momentum (for a compliant base; since 21 November 2026, before none), in the track’s plane
(x along the first straight, y across, z up): each mover’s body and payload at its mass centre p(s) + e n(θ̄), θ̄ the
heading averaged over the wheelbase (Track::mean_heading), whose rate along s is the curvature k̄ the dynamics take,
so it runs at v t + e k̄ v along θ̄ (v (1 + e k) on a constant radius, as its mass m (1 + e k)² has it); the magnet plate,
the rotor, on the centre line at the rotor’s speed, as the joint kit’s forcer. p(s) and its direction t are the curve’s
table’s (Track::tangent), so the first moment moves at the momentum exactly. A mover on the second straight at 1.5 m/s:
−1.8765 N s along x and d · 1.8765 N m s about z (d the track’s width); in a constant-radius arc with e = 35 mm, about
its centre 1.051 · 1.5 (R + e)² / R + 0.2 · 1.5 R = 0.36968 N m s (the_frame_momentum_is_the_hand_calculated_one).
The track is level: the weight does no work, the first moment keeps its height, and
testkit::weight_is_at_the_first_moment has nothing to judge.
Worm stage (machine files)
Source: sim-netlist/src/worm.rs (machine.worm of a machine file).
A worm that turns back (back efficiency above 0) passes its spring’s torque t on as a gearbox does: t η forward, t
η_back⁻¹ while the load drives it back, η fading in from rest over 0.5 W. A worm whose back efficiency is 0 or less locks
itself and follows Coulomb’s law at its mesh, without the fade, in both models. Of what the wheel takes, o, the mesh puts
in a drag D = into − o of
(1/η − 1) s o on the driving flank (s o > 0), η = tan g / tan(g + p)
(1 − η_back) (−s o) on the overhauling one (s o < 0), η_back = tan(g − p) / tan g (below 0 where g < p)
s the sign of its speed, so the mesh only ever takes power. At rest the friction holds anything between the two flanks’
levels; a locking worm holds its load with no motor torque. Elastic (worm_drag): o is the gear spring’s torque, the
rotor gets the drag besides, and below 1e-3 rad/s of the wheel (STICK_SPEED, Karnopp’s band) it sticks, the drag taking out the speed
over 1 ms (STICK_TIME_S) inside the levels. Rigid (rigid_locking): o is solved beside the accelerations; on
the overhauling flank, which has no unique rigid solution with a heavy wheel (Painlevé’s paradox), the drag takes its
load from the torque the wheel holds at rest, o_rest, the larger of the two flanks’ drags joining them so that the
solve has one answer; a worm moving under an overhauling load with no motor torque brakes by (1 − η_back) o_rest and
stops, and sticks below the stick speed.
Compliant base
Source: sim-components/src/base.rs. With effects.base_compliance every machine and machine file stands on a base that gives way: a rigid body on springs in up to six directions, translation along x, y, z and a small tilt about x, y, z through base.pivot_m, in the frame of the tool pose (x, y, z of the tool; the slides’ x along their axis). Each direction with a stiffness above 0 is a state d and its rate after the machine’s own:
M d'' + 2 ζ sqrt(k M) d' + k d = L (per direction; M = base.mass_kg, or base.inertia_*_kgm2 for a tilt)
F = −dp/dt + m g + F_ext, T = −dL/dt + c × g + r_ext × F_ext (about the origin; about the pivot T − P × F)
L = (F, T) − (F, T) at rest at the start pose
p and L are the momentum and the angular momentum of everything that moves on the base (Machine::frame_momentum: bodies, arms, rotors and pulleys spinning), m and c its mass and first moment, F_ext a process force from a workpiece on the floor; the motors push on their stators as they push the load, so the base takes dp/dt back. dp/dt is taken along the machine’s own state rates, by central differences over ±1 µs. What stays put cancels against the start pose’s load, at which the base was set up: a machine’s weight does not sag it, its weight moving out does. M is everything that sways with the base, the machine on it included, so a direction’s frequency is sqrt(k / M) / 2π (the modes list them, and resonance_hz takes the lowest that moves the tool along its first axis, for the input shaper).
The tool rides on the base and the workpiece stands on the floor: the tool pose is the machine’s plus the base’s move at the tool, u + θ × (r − P) for the axes x, y, z and θ for the turns (rx, ry, rz, c about z; Machine::base_shift); the motors’ angles are measured on the base and do not see it. At rest the machine stands off by the base’s deflection under its load so that the tool is at its pose. The scene moves as a whole by the base’s move at the tool, exaggerated. Signals base.<x|y|z|rx|ry|rz>.
Checks: a force held at rest moves the base and the tool by F / k (single axis, 50 N on 2.5e6 N/m: 20 µm); after a move an undamped base rings at sqrt(k / M) / 2π (100 kg on 2.5e6 N/m: 25.165 Hz, half period 19.869 ms, in the tool’s position); every machine’s momentum is the rate of its first moment (testkit::frame_momentum_moves_its_first_moment). Two-way: a slider (4 kg) on a spring (2e5 N/m) to a base of 200 kg on 8e5 N/m swings in the two-mass system’s closed-form modes, 10.057 Hz and 35.981 Hz, each in its shape (to 1e-6 of the amplitude; one-way the base rings at 10.066 Hz whatever the slider does); a free base and an arm swung on it keep their momentum (to 1e-9); the arm in gravity on a base along x, z and in tilt keeps its energy (testkit::energy_conservation; without the tilt’s turn of gravity it drifts by 0.32 %) and closes the loss budget, and so does the H4 (one-way it drifts by 4.5 %); on the T-gantry a two-way base along X of the frame’s mass plus what rides on it (30 + 11 kg and the belt’s 0.42 kg), its stiffness and damping, gives the frame mode’s motion (effects.frame_compliance) to 5e-15 m against a sway of 0.149 mm.
Two-way (effects.base_reaction, with base_compliance; off in every shipped config). Without it the coupling is one-way: the machine’s own dynamics do not feel the base’s acceleration, the motors neither see the sway in their following error nor hold against it, and the base’s energy is not in the budget; exact where the base is much heavier than what moves on it or the servo holds the axes stiffly to it. With it the base’s acceleration acts on everything that moves on it as an inertial force, derived from the same momentum, not written per machine. The machine’s momentum is linear in its speeds v (the states its momentum moves with and whose change moves more than speeds: a frame mode or a tool flex switched off, held at zero, is none; found at the start pose), P = A(q) v, linear and angular about the pivot; A turns the base’s acceleration a into the generalised forces −Aᵀ a on the speeds, as it turns gravity into A_linᵀ g. The machine’s mass matrix over its speeds is the Hessian of its kinetic energy, M = ∂²E/∂v², from Machine::energy at unit speeds (by polarisation: exact, E being quadratic in v). Base and machine are solved together at every evaluation of the derivatives, no lag:
(M_B − A M⁻¹ Aᵀ) a = L − k d − c d' − A M⁻¹ Aᵀ w (over the compliant directions; L as above, with the machine's own rates)
v'' = v₀'' + M⁻¹ Aᵀ (w − a) (v₀'': the machine's own accelerations)
w = (g × θ, 0) (the base's tilt θ turns gravity in the machine's frame)
E_B = ½ M_B d'² + d' · P + ½ k d² − θ · (c × g − c₀ × g)
E_B, the base’s energy (its sway, its sway with the machine’s momentum, its springs, the weight’s work on its tilt), is in Machine::energy and in the signals energy.kinetic, energy.elastic and energy.potential; its damping c d’² is the signal power.base, so the loss budget closes with the base on. M_B − A M⁻¹ Aᵀ has to be positive: a base lighter than what the machine moves on it is refused (base.mass_kg, base.inertia_*_kgm2). The cost: each evaluation takes the machine’s energy at 1 + n + n(n − 1)/2 speed settings and its momentum at n + 3 (n speeds: 4 on the rigid H4, 9 elastic with its amplifier).
Assumptions (shortcut in base.rs): the gyroscopic and centrifugal terms of the base’s tilt rates on the machine (second order in the small tilt; they do no work, so the energy stays conserved) and the change of the base’s inertia with the machine’s pose are left out; the process force’s work on the moving base is not in the budget. The frame of the T-gantry and the machine files (frame_compliance) is the two-way base along one axis, in series with this one. The machine files’ belt drives count their pulleys’, rotors’ and idlers’ spin about the normal of the belt’s plane (a screw’s rotor about its axis); the table’s worm motor spins about the worm’s own axis (worm.motor_axis), the T-gantry counts its idlers’ spin and its belt runs’ angular momentum (idler_angular, belt_angular); the parallel SCARA’s arm has its first moment m c from mass.upper_arm_cg_m (its weight being out of the plane), the crank-cam machines’ rotors turn about −y with their crank, roll or disc (the saw’s pinion about y), and the knife’s cut acts at the cut point.
The cycles of the default configs with the shipped estimates ([base] of each config): base off → on one-way → on two-way (base_reaction), tracking error peak and dwell error peak (what the settling verdict judges), m (rad where the tool is a turn or the joints). Measured on 15 November 2026, re-run 17 November; after the model changes of November 2026 spot-checked on the D3 (off, one-way), the T-gantry (off) and the single axis (off, two-way), which agree to the third digit, and on 21 November 2026 the T-gantry, screw axis, rack axis, parallel SCARA and hexapod rows (after the screw and rack damping, the screw stiffness at the nut and the T-gantry’s belt runs’ weight), and every row but the six-axis arm and the palletiser again on 26 November 2026 (the figures above; those two on 28 November) (sim-cli analyze ID --set effects.friction_feedforward=false, with --set effects.base_compliance=true and then --set effects.base_reaction=true); the two-way runs took 3 to 10 times as long as the one-way ones (the H4 161 s against 17 s, the SCARA 301 s against 34 s).
| Machine | Base | Tracking peak off → one-way → two-way | Dwell peak off → one-way → two-way |
|---|---|---|---|
| D2 | 300 kg, 15/15/40 Hz | 1.061e-3 → 1.270e-3 → 1.277e-3 | 3.696e-4 → 3.714e-4 → 3.555e-4 |
| D3 | 300 kg, 15/15/40 Hz | 1.460e-3 → 1.601e-3 → 1.625e-3 | 3.052e-4 → 3.177e-4 → 3.002e-4 |
| D4 | 300 kg, 15/15/40 Hz | 3.655e-3 → 3.806e-3 → 3.844e-3 | 3.879e-4 → 3.463e-4 → 3.707e-4 |
| H4 | 300 kg, 15/15/40 Hz | 2.477e-3 → 2.750e-3 → 2.769e-3 | 4.359e-4 → 4.255e-4 → 4.311e-4 |
| H4, its turn c (rad) | 2.451e-2 → 2.451e-2 → 2.404e-2 | 3.589e-3 → 3.589e-3 → 4.176e-3 | |
| Linear delta | 300 kg, 15/15/40 Hz | 7.004e-4 → 7.136e-4 → 6.811e-4 | 7.352e-5 → 9.171e-5 → 6.653e-5 |
| Parallel SCARA | 300 kg, 15/15/40 Hz | 1.012e-3 → 1.227e-3 → 1.336e-3 | 3.347e-4 → 5.910e-4 → 3.200e-4 |
| T-gantry | 150 kg, 20/20/50 Hz | 2.015e-4 → 2.759e-4 → 2.358e-4 | 4.88e-5 → 5.03e-5 → 5.49e-5 |
| Single axis | 100 kg, 25 Hz along x | 2.011e-4 → 2.115e-4 → 2.078e-4 | 2.076e-5 → 2.534e-5 → 2.542e-5 |
| Screw axis | 100 kg, 25 Hz along x | 7.985e-5 → 1.764e-4 → 1.819e-4 | 4.52e-5 → 1.181e-4 → 1.040e-4 |
| Rack axis | 100 kg, 25 Hz along x | 1.184e-4 → 4.012e-4 → 3.643e-4 | 6.17e-5 → 1.634e-4 → 9.30e-5 |
| Linear motor axis | 100 kg, 25 Hz along x | 5.652e-5 → 2.538e-4 → 2.776e-4 | 2.954e-5 → 1.324e-4 → 1.460e-4 |
| Rotary table (rad) | 20 kg m², 30 Hz twist | 2.584e-3 → 2.753e-3 → 2.794e-3 | 3.41e-5 → 9.18e-5 → 4.92e-5 |
| SCARA (rad, joints) | 30 kg m² tilts, 5 twist | 1.776e-3 → 1.776e-3 → 1.834e-3 | 2.699e-4 → 2.699e-4 → 2.717e-4 |
| Six-axis arm (rad, joints) | 60 kg m² tilts, 10 twist | 4.286e-3 → 4.286e-3 → refused | 2.053e-3 → 2.053e-3 → refused |
| Palletiser (m) | as the six-axis arm | 5.794e-3 → 7.071e-3 → refused | 2.185e-3 → 2.735e-3 → refused |
| Slider-crank, rotary knife, flying saw, disc cam | 20 kg m², 30 Hz twist about z | unchanged (4.444e-3 rad, 11.15e-3 rad, 3.814e-4 m, 3.190e-4 rad off; one-way and two-way equal them, 26 November) | unchanged |
| Hexapod | 150 kg, 20/20/50 Hz | 2.540e-5 → 1.470e-4 → 1.482e-4 | 1.551e-5 → 4.144e-5 → 4.65e-5 |
| Planar cable robot | 20 kg m², 30 Hz twist about z | 7.142e-4, unchanged | 1.577e-4, unchanged |
| Spatial cable robot, its turn (rad) | as the planar | 1.441e-3, unchanged (place 2.977e-4 m unchanged) | 7.217e-4 → 7.204e-4 → 7.138e-4 (place 3.674e-5 → 3.680e-5 → 3.704e-5 m) |
The deltas’ dwell error is their own settling, which the base’s 0.1 mm sway shifts in phase; the T-gantry’s tracking error grows by 37 % one-way, its traverse pushing the stand along x, and by 17 % two-way, where the drives hold the carriage against the stand’s sway, but its dwell error is 13 % higher. The axes on their bed (25 Hz) feel it most: one-way the bed’s sway is all in the tool’s error, two-way the rack axis’s dwell error is 43 % lower, as its drive holds the carriage still over the moving bed. Where the tool is the joints (SCARA, six-axis arm) the one-way base moves nothing (base_shift) and only the two-way base shows, in the motors. Two-way refused the six-axis arm and the palletiser: their pedestal’s 60 kg m² about x is less than what the arm moves on it there (64.6 kg m²; the palletiser 110 and 185 kg m² about x and y), so base.inertia_*_kgm2 of those configs has to be raised before they can stand on a two-way base. The crank and cam machines’ base turns about z only, and their motion is in the x-z plane: it does not move. The hexapod’s two-way cycle (elastic legs), stopped after 20 minutes on 15 November, ran on 17 November.
Motion controller
Source: control.rs.
The controller plans in tool coordinates and runs one drive per motor. Each profile cycle:
- The motion under way gives position, velocity and acceleration setpoints per tool axis: a point-to-point move, the cycle, a trajectory, or an interpolated external setpoint.
- The input shaper spreads them over time, if on.
- The inverse transformation gives the motor position setpoints. Motor speed and acceleration setpoints are the inverse transformation along the plan a moment ahead and behind (first and second central difference, see fine interpolation).
- The machine’s rigid model gives the torque feedforward for the setpoint pose, speed and acceleration, or each motor’s constant inertia times its acceleration (
drive.torque_feedforward_model). - With
effects.fieldbus_delaythe drives get what was computedprofile.fieldbus_delay_cyclescycles ago. Witheffects.fieldbus_jittereach frame takes j more cycles, j drawn evenly from 0 toprofile.fieldbus_jitter_cyclesper frame (pseudo-random fromdrive.noise_seed, a stream of its own, so every run is the same), and the drives use the newest frame that has arrived: a late frame leaves them the one before, which they carry on from by its speed and acceleration (the time since the setpoint runs on, so the extrapolated setpoint does not stand still for a cycle and then jump two), and frames never arrive out of order. With N cycles of jitter the frame in use is older than the delay by more than i cycles with probability Π_{k=0..i} (N − k) / (N + 1): N = 1 gives 0 or 1 cycle, half each.
The setpoint signals and the path error of the analysis are the controller’s, before the fieldbus delay. The signals axis.<id>.position_setpoint, .velocity_setpoint and .acceleration_setpoint are those the last profile cycle set, held until the next; setpoint_age is how long ago that was at the sample (0 to one profile cycle).
Tool position error
The tool position error is the plan at the moment of the sample less where the tool is, the length over the axes in m (the axes in rad apart, in rad): per axis p + (v + a t / 2) t − x, with p, v, a the held setpoints above, t = setpoint_age and x = axis.<id>.position (the tool as the machine has it: belt stretch, sag and frame deflection included, unlike the drives’ encoder-side following_error). The plan is the controller’s, after shaping and before the fieldbus delay, so a fieldbus delay is part of the error. It is the analysis’s “Tool position error, peak” (tracking_error_peak_m, Controller::plan_now at every sample of the pass), the desktop app’s run figure, path colouring and Views tab chart (charts::axis_errors, from the run’s columns) and the report’s chart. Not against the setpoint held for the cycle: that counts the tool off by up to a cycle’s way at speed, 0.79 mm at 1 m/s on the T-gantry’s 1 ms profile cycle where the error is 0.18 mm. A run file without setpoint_age (recorded before it) has the age worked out from its own timing (charts::setpoint_age_of): the profile cycle T is the shortest time between samples whose axis setpoints differ (the sample period where they differ at every sample), the controller sets them at every multiple of T of the simulation’s time after the sample of that moment, so the age at t > 0 is t less the last multiple of T before it, in (0, T]. A file sampled at a multiple of its profile cycle above one does not hold the cycle and reads it as its sample period. Tests: the_tool_error_is_one_number_in_the_run_the_chart_and_the_analysis (sim-app), a_run_file_without_the_setpoint_age_has_it_from_its_timing (sim-machines, the T-gantry sampled every 1 and 0.25 ms: the age within 1e-13 s of the recorded one, the error the same; as held it read 0.446 against 0.082 mm), the_setpoint_age_of_a_run_without_it_follows_from_its_timing.
| Command | Behaviour |
|---|---|
| Move | Synchronised point-to-point move. Refused while busy or outside the strokes |
| Cycle | Runs the configured segments in order, repeating. On arrival the payload switches to the segment’s state and the dwell runs. With effects.gripper_time a segment that changes the gripper’s state dwells at least the gripper’s close or open time (in whole profile cycles), and the payload comes or goes when the gripper is done, not on arrival (see “Gripper” below). With input shaping, a segment with a dwell or a gripper action has arrived when the shaped setpoint has |
| Stop | Finishes the segment under way, then stays. There is no fast stop ramp |
| Setpoint (PLC) | Linear interpolation from the present setpoint to the new one over profile.setpoint_interval_s, counted from the profile cycle in which the setpoint came, so that a stream of one setpoint per interval is followed without a pause. The speed setpoint is that of the interpolation, up to and including the cycle of arrival; the acceleration setpoint is 0. A setpoint further from the last one than the axis travels in one interval at its speed limit is refused |
| Trajectory | Poses at times. A cubic spline through the points with a continuous acceleration (C2, profile.trajectory_spline = "c2"), at rest at both ends: the speeds at the points solve m_{i−1}/h + 2 m_i (1/h + 1/h′) + m_{i+1}/h′ = 3 ((p_i − p_{i−1})/h² + (p_{i+1} − p_i)/h′²), h and h′ the spacings before and after point i (a tridiagonal system). With "hermite" as before 14 November 2026: the speed at each point the slope between its neighbours (of five where evenly spaced), the acceleration stepping at each point. Poses up to Machine::setpoint_slack beyond the travel range are taken (0.1 mm by default; some machines set their own, among them the delta H4, the wafer handler and the cable robots what their gearboxes can twist at rest anywhere in the range and the crane the payload’s stretch of the longest rope plus 0.1 mm): the setpoint of a machine at rest is where its motors stand, which at an end of a stroke is some hundredths of a millimetre beyond it. A planned path’s poses that rounding puts beyond the range (by less than a nanometre) are set onto its end |
| Disable / Enable | Drives off: the motion under way is dropped. Every other command is refused until Enable |
Gripper (effects.gripper_time, [gripper], crates/sim-components/src/gripper.rs). Jaws (kind = "mechanical") close in close_s and open in open_s. A vacuum gripper (kind = "vacuum"): the generator of suction flow Q evacuates the cup of volume V as a first-order lag towards its vacuum p_v, Δp(t) = p_v (1 − e^(−tQ/V)), and the grip is made when the vacuum switch sees p_hold: t_grip = V/Q · ln(p_v / (p_v − p_hold)). Vented with Q_vent it lets go at p_release: t_release = V/Q_vent · ln(p_v / p_release). The cup of area A holds A · p_hold along its axis. While the cycle stands at the pick or place for that time the settling verdict judges it as before (the second half of the dwell, which now lasts at least the gripper’s time).
The verdict gripper-hold (vacuum gripper, with ratings.gripper_safety_factor S): the cup sits above the part, its axis vertical. The held part of mass m (the payload) at the tool’s acceleration a pulls off the cup with m (a_z + g) and pushes sideways with m |a_xy|, which the cup holds by friction μ (gripper.friction_coefficient) on what the pull leaves of its force; it slips when m |a_xy| > μ (A p_hold − m (a_z + g)). The verdict judges the most the part asks over the measured pass, m (a_z + g) + m |a_xy| / μ, against A p_hold / S. The acceleration is the tool’s along its axes x, y, z (in m), from its speed sampled a millisecond apart while the gripper holds and is not acting; a machine without such axes is not judged. The optimiser judges it as any other verdict. Tests: the_vacuum_gripper_takes_the_hand_calculated_times_and_holds_area_times_pressure, the_part_asks_the_hold_exactly_at_the_hand_calculated_slip_acceleration (gripper.rs); the_gripper_time_lengthens_the_dwells_and_moves_the_payload_switch_by_hand, the_gripper_hold_judges_the_held_part_against_the_cup_and_the_optimiser_keeps_to_it (single axis).
The controller’s setpoint starts where the motors stand, a few micrometres from the configured start pose (belt stretch and gear twist under load), so the first step has no jolt.
The following error per tool axis (signal axis.<id>.following_error) is the motor following errors transformed with the forward transformation. It is an encoder-side figure and does not see belt stretch or the leaning tool, unless the position loops close on load-side scales (effects.load_encoder).
Check of axis limits against motor limits. When a config is applied, for every combination of axis directions at the middle of the workspace: the motor speed at the axis speed limits against drive.rated_speed_rad_s, and the feedforward torque at the axis acceleration limits against drive.peak_torque_nm. A diagonal move loads one motor with both axes. Violations are reported, not enforced.
Profile generator
Source: profile.rs.
A jerk-limited seven-segment S-curve from rest to rest: jerk up, constant acceleration, jerk down, cruise, and the mirror image. With limits v, a, j:
t_j = a / j, t_a = v/a − a/j if v · j ≥ a² (acceleration limit reached)
t_j = sqrt(v / j), t_a = 0 otherwise
If the distance is too short to reach the cruise speed, the peak speed is lowered: the constant-acceleration phase is shortened, and for very short moves dropped (t_j = cbrt(d / 2j)).
A move of several axes is one profile that runs a straight line from 0 to 1. Its limits are the tightest of all moving axes (limit / |distance|), so all axes start and finish together and none exceeds its own limits.
Shapes (profile.shape, or shape of one [[cycle.segment]]):
| Shape | Law | Peaks over a move of h in T |
|---|---|---|
s-curve | seven segments (above) | the limits |
sin2 | speed v·sin²(π t / (2 T_r)) over each ramp of T_r, cruise between (Bestehorn) | a = (π/2) v / T_r at the ramp’s middle, jerk (π²/2) v / T_r² at its ends; T_r = max(π v / (2a), π sqrt(v / (2j))) |
poly345 | s = h (10u³ − 15u⁴ + 6u⁵), u = t / T (VDI 2143), no cruise | v 1.875 h/T, a 5.7735 h/T², jerk 60 h/T³ (at the ends) |
poly4567 | s = h (35u⁴ − 84u⁵ + 70u⁶ − 20u⁷), no cruise | v 2.1875 h/T, a 7.5132 h/T², jerk 52.5 h/T³ (zero at the ends) |
A polynomial law takes the shortest T that keeps all three peaks: T = max(c_v h/v, sqrt(c_a h/a), cbrt(c_j h/j)).
Braking of its own: with profile.deceleration_ratio below 1 the braking ramp has that share of the acceleration limits; the S-curve and sin² then speed up on one ramp and brake on another, each the shortest within its limit, and the cruise speed is the limit where both ramps fit the distance, else the speed at which they cover it alone (bisection: they cover v (T_up(v) + T_down(v)) / 2). A polynomial law keeps the lower of the two. With the ratio 1 the S-curve is the closed form above.
Gravity (profile.vertical_axis, up_acceleration_ratio): the axis that lifts has that share of its acceleration limit for an acceleration upwards. Speeding up, each axis accelerates towards its target, braking away from it; so a move up speeds up within the reduced limit and brakes (accelerating downwards) within the full one, a move down the other way round.
Time scaling (Profile::stretched): a profile stretched to k times its shortest duration has the same shape with the limits v/k, a/k², j/k³, for a planner that synchronises moves to one duration.
Programs: G-code and robot programs
Source: program.rs. sim-cli run|analyze --path FILE and the app’s path field read a file by its extension into path pieces (lines and arcs, path::Piece) for the path planner below: .nc, .ngc, .gcode, .g, .cnc, .tap as G-code, .src as KUKA KRL, .mod and .prg as ABB RAPID, a file with lines starting MoveL, MoveJ, MoveC as robot moves in CSV, and anything else as a path file. The subsets, and what is refused with its line, are listed in the user guide.
- Arcs: G2/G3 in the plane of G17 (X, Y), G18 (Z, X) or G19 (Y, Z), clockwise as seen from the plus side of the normal (Z, Y, X). The centre is the start plus I, J, K, or from R: on the chord’s perpendicular bisector at sqrt(R² − d²/4) from its middle, to the right of the chord for G2 with R > 0 (the shorter arc), to the left with R < 0. Start and end must lie within 1e-4 of the radius (and 1 µm) of the centre. The direction is turned into the planner’s (
cwseen with the first axis right and the second up on two axes; from +z, -y or +x on three) by the orientation of the plane’s axes among the machine’s. The plane’s normal goes with the arc (Piece::Arc::plane, from G17/G18/G19 by position, from the three points of a MoveC or CIRC): on three axes or more a half turn, whose end lies opposite its start, is in that plane, where start, end and centre alone leave it open; a piece without a plane takes the first of the x-y, x-z and y-z planes that holds the start’s radius. - MoveC and CIRC: the circle through start, via and end, its centre s + ((|u|² w − |w|² u) × n) / (2 |n|²) with u = via − s, w = end − s, n = u × w; the direction by n against the planner’s viewing side.
- Feeds: each move has the speed along the path it is capped at (G1/G2/G3 with F per minute, in length units, in degrees for a block that moves only rotary axes, and for a block of both the linear axes’ distance at F sets the time and the rotary axes follow in it, so
G1 C90 F3600takes 1.5 s andG1 X10 C90 F6001 s; G2/G3 with I, J, K and no end is a full circle, planned as three arcs of 120 degrees; RAPID’s speed,v100in mm/s or a speeddata’s TCP speed; KRL’s$VEL.CPin m/s for LIN and CIRC); the reading of F is Siemens SINUMERIK’s with its default FGROUP (the geometry axes; Fanuc’s counting of degrees like mm in a mixed block is not taken, no primary source). A run is planned within the axis limits with each piece’s speed along the path capped at its own feed (path::plan_feeds: each piece’s speed limit, and the speed its transition curves are sized for, no higher than its feed). In G-code F is modal and the moves between two G0 are one run, so a feed that changes between blocks changes the cap with no stop (F600 G1 X10,F1200 G1 X20,F600 G1 X30run 10 mm at 10 mm/s, 10 mm at 20 mm/s, 10 mm at 10 mm/s; the junctions are passed at the lower feed, and no corner is rounded or transition curve laid across the change); a corner stops the path as it does without a feed. A KRL or RAPID run follows the speed it was read with and the runs follow one another with a stop between; G0,vmax, PTP and robot CSV run at the axes’ limits, as fast as the motors allow with--time-optimal. Before 14 November the feed capped each axis, and a diagonal ran up to sqrt 2 faster. On an arm in tool space (axes x, y, z, rx, ry, rz) a robot program’s speed is the tool centre’s, the position alone, and the reorientation has its own limit,program.orientation_speed_rad_s(default 500 degrees per second, the default of RAPID’sv_ori; RAPID’s own speeddatav_oriand KRL’s$VEL.ORI1are not read): a move takes the longer of the tool centre’s distance (along the arc on a CIRC or MoveC) over its speed and the angle between its two orientations over that rate, and its cap along the path, whose length counts the rotation vector’s radians with the metres, is that length over that time (program::tcp_cap); a move that only reorients runs at the rate. G-code keeps its feed rule. The orientation goes by slerp on lines and arcs alike, at an even rate about one axis. - Orientations: on a machine with the axes rx, ry, rz (an arm in tool space) RAPID’s quaternion [q1, q2, q3, q4] (q1 the scalar part, normalised) and KRL’s A, B, C (R = Rz(A) Ry(B) Rx(C), components left out kept) are turned into the rotation vector those axes take (
rigid::from_quaternion,rigid::log).
Corner blending
effects.corner_blending: the next cycle segment starts while the current one still has its braking ahead, and the remaining distance of the old move is added on top of the new one. The lead is the smallest of profile.blend_time_s, the braking time of the current move and the ramp time of the next. It happens only where the machine need not stop: the segment has no dwell and no gripper action, no axis reverses, and no other blend is under way.
Because both moves are on their ramps, the speeds add up to no more than either cruise speed on lift-traverse-lower cycles. For other shapes of cycle the sum of two segments on one axis is not checked against the limits.
Path planners
Source: path.rs. Both planners turn lines, arcs and splines into poses at times, one per profile cycle, which then run as a trajectory. A corner is a junction where the direction turns by more than 1 mrad; both planners stop there, unless profile.corner_tolerance_m rounds it (below).
Corner rounding (profile.corner_tolerance_m, round_corners). A corner between two lines with directions t_a and t_b is replaced by a curve from d before the corner to d after it, a polynomial in u from 0 to 2d:
p(u) = corner − d t_a + t_a u + (t_b − t_a) (u³ / (4 d²) − u⁴ / (16 d³))
It leaves and arrives in the lines’ directions at a speed by u of 1 and with no second derivative at either end, so the path has no step in position, direction or curvature (G2), and no axis’s acceleration steps. Its middle is 3 d / 16 · (t_b − t_a) from the corner, 3 d sin θ / 16 off each line for a turn θ; there it turns at a curvature of 3 |t_b − t_a| / (d |t_a + t_b|²), for a right angle 3√2 / (2d), a radius of √2 d / 3. d is chosen so that the curve’s largest distance from the two lines (measured at 65 places, it scales with d) is the tolerance: d = 16/3 of it at a right angle, where the tightest radius is 2.51 times the tolerance (a circular fillet of the same deviation would have 3.41 times: the curve pays for G2 with a tighter middle). d is no more than half of either line, so two rounded corners never overlap. The curve is a spline span for the planners. A turn of nearly half a circle (the curve would nearly stop) and a corner on more than six axes stay stops.
A corner next to an arc or a spline (round_corner) is rounded by the quintic Hermite curve in u from 0 to h = 2d that leaves the piece before d back from the corner with its direction t₀ and curvature vector k₀ and arrives d on along the piece after with t₁ and k₁, at a speed by u of 1 at both ends (in τ = u / h):
p = p₀ + h t₀ τ + h² k₀ τ² / 2 + (10 (p₁ − p₀) − h (6 t₀ + 4 t₁) − h² (3 k₀ − k₁) / 2) τ³
+ (15 (p₀ − p₁) + h (8 t₀ + 7 t₁) + h² (3 k₀ / 2 − k₁)) τ⁴ + (6 (p₁ − p₀) − 3 h (t₀ + t₁) − h² (k₀ − k₁) / 2) τ⁵
so the path keeps its place, direction and curvature at both ends (G2); between two lines (k = 0) it is the curve above. Its deviation is measured at 65 places against the parts of the two pieces it replaces (as broken lines of 64 parts each), and d is scaled by the tolerance over the deviation until the deviation is within 2 % below the tolerance (at most 30 times, at most half of either piece). A line into an arc of 1 m radius at a right angle with 0.1 mm starts the curve 0.533 mm before the corner, as between two lines, the arc’s bend over d being d² / (2R) = 0.14 µm; the curve ends with the arc’s curvature of 1 / m (a_line_arc_corner_is_rounded_within_the_corner_tolerance). What remains of the arc is the same arc from the curve’s end on; of a spline span the polynomial from that parameter on. Rounding is not always quicker than stopping: the curve has to be passed at a speed whose centripetal acceleration and its change keep within the limits, which on the T-gantry at 100 m/s³ is slower than the stop and the start (the square path line,0.5,0.35 line,0.5,0.05 from (0.1, 0.35), sim-cli analyze t-gantry --path FILE --time-optimal [--set profile.corner_tolerance_m=0.02], cycle_s with its 0.3 s of rest: 1.262 s time-optimal stopped, 1.365 s rounded within 20 mm, 17 November 2026; 1.306 s stopped before). At 2000 m/s³ (--set axis.x.max_jerk_m_s3=2000 --set axis.z.max_jerk_m_s3=2000) rounding was quicker on 15 November (0.978 s against 0.920 s) and is no longer: 0.869 s stopped against 0.888 s rounded. Test: a_right_angled_corner_is_rounded_within_the_tolerance_at_the_hand_calculated_radius.
More than three axes. A line runs on any number of axes. A spline runs on two to six: the cubic spline through all positions of its via points, its parameter the straight distance over all axes. An arc on three axes or more (arc, the end with a position per axis, the centre with three) lies on the first three as on the delta, and the other axes (a SCARA’s or the D4’s turn, an arm’s orientation in tool space) go evenly with the distance along the arc (Geo::Carried): the piece counts the distance over all axes, sqrt(L² + |Δ|²) for the arc’s L and the change Δ of the other axes, so that its direction has length 1 as on a line. Test: a_four_axis_arc_keeps_its_fourth_axis_linear_in_the_arc_length. An arm’s orientation (rx, ry, rz) goes along by the quaternion slerp between its two ends, as on a line (Geo::Slerp; on an arc Geo::Carried::turn, arc_on): the tool turns at an even rate about one fixed axis, which per component of the rotation vector it would not where the two rotation vectors are not parallel. Where they are (one_axis), slerp and per-component interpolation are the same and the piece is timed as before. Transition curves and eased splines stay two- and three-axis things.
Within the axis limits (default)
Each piece gets one speed, acceleration and jerk limit along the path that hold on all of it:
-
Line: the tightest of limit / |direction component| over the axes.
-
Arc of radius R: the direction turns through the axes, so the smallest limit of any axis holds for the length of the vector. Along the path (t) and towards the centre (n), at the speed v:
acceleration = t · dv/dt + n · v²/R jerk = t · (d²v/dt² − v³/R²) + n · 3 · v · dv/dt / RThe limits are shared out 3 : 4 : 5. Acceleration: 0.6 along, 0.8 towards the centre. Jerk: 0.4 for the ramps and 0.4 for v³/R², and 0.6 towards the centre. So v ≤ min(v_max, sqrt(0.8 a R), cbrt(0.4 j R²)), and the acceleration along the arc is at most min(0.6 a, 0.2 j R / v).
-
Arc with other axes carried along (a helix,
Geo::Carried): with s the share of the piece’s distance that is on the arc, it counts as an arc of radius R / s² for the acceleration and R² / s³ in place of R² in the jerk’s v³ term. -
Torsion (a spline span on three axes or more): the jerk has a third part, b · v³ κ τ along the binormal. It takes the share g of the jerk limit that v³ κ τ needs at the speed the full limit allows, at most 0.3 (
BINORMAL_SHARE), and the other two parts take sqrt(1 − g²) of their shares, so the three stay within the limit together; on its own the binormal caps v at cbrt(0.3 j / max κτ). A plane curve has g = 0. -
Orientation by slerp (an arm’s line
Geo::Slerp, or an arc whose orientation turns by slerp): the rotation vector’s rates are not the chord’s and the piece bends (up to 0.2 per rad on a quarter turn about a tilted axis). Its derivatives by distance p′, p″, p‴ are read along it (p′ and p″ at 257 places, the best place’s parabola for the top of p′; p‴ by third differences at 33 places a twentieth of the piece apart), and per axis row w, with P1, P2, P3 the most of |w · p′|, |w · p″|, |w · p‴|: v ≤ min(v_max / P1, sqrt(0.5 a_max / P2), cbrt(0.25 j_max / P3)); the acceleration ≤ min((a_max − P2 v²) / P1, 0.25 j_max / (3 P2 v)); the ramps’ jerk ≤ (j_max − 3 P2 v a − P3 v³) / P1 (sampled). A turn about one fixed axis does not bend (P2 = P3 = 0), and the limits are those of a line over P1. -
Junction (no corner): the direction may turn a little and the curvature may jump (line into arc), which steps the axis speeds and accelerations. Taken over one profile cycle, each of the two steps may use half an axis’s jerk limit. For a line into an arc that is v = sqrt(0.5 j T R): 0.07 m/s for 0.1 m at 100 m/s³ and a cycle of 1 ms. Transition curves (below) take the jump away.
-
Transition curve: counts as an arc of its tightest radius R. Its curvature changes along it by dk per distance, which adds n · v³ · dk to the jerk; that gets 0.4 of the 0.6 towards the centre, and the 3 v dv/dt / R term the other 0.2. So v ≤ cbrt(0.4 j / dk) in addition, and the acceleration along the curve is at most 0.2 j R / (3 v).
-
Spline span: consecutive
splinepieces are one cubic spline through their points: the parameter u runs with the straight distance between the via points, each span is a cubic in u, and first and second derivative by u agree at every via point, so position, direction and curvature have no step there. At an end the curve takes the direction of the line or arc it joins (the first derivative is that unit direction); without one it ends with no second derivative. The derivatives at the points follow from a system with three entries per row. Each span is one piece for the timing. Distance along it is a table at 65 values of u (five-point Gauss-Legendre per part), inverted by Newton’s method. Its curvature k = (p′ × p″) / |p′|³ and the change of curvature per distance are taken at 257 places; the largest of each, raised by 5 % for what lies between, give the span its limits like a transition curve: an arc of radius 1 / k_max with dk = max |dk/ds|. So a span runs no faster than its tightest place allows, and the speed changes from span to span, not within one. Where a spline joins a line or an arc the curvature steps, and the junction rule above slows the path there, unless a path tolerance lets the spline’s end be eased (below). A span is a polynomial of the fifth degree where it was eased, a cubic elsewhere. A curve whose |p′| falls below 0.05 anywhere (1 on average) is refused: its via points and end directions would make it turn back on the spot.
Look-ahead then lowers the junction speeds until every piece is long enough to change from the speed at its start to the speed at its end. On each piece the speed goes by a jerk-limited ramp to the highest speed the piece has room for, stays there, and goes by a second ramp to the speed at its end. Two cycles at steady speed are kept on either side of a junction.
Transition curves (profile.path_tolerance_m)
With a tolerance above zero, both planners time a changed path: where a line and an arc, or two arcs, meet in the same direction, a curve is put in whose curvature k goes evenly with the distance from that of the one piece to that of the other (a clothoid). At the speed v the acceleration towards the centre then changes at the rate v³ dk / L instead of stepping (L: length of the curve, dk: step of the curvature, 1/R for a line into an arc).
Such a curve does not fit between a line and a circle that touch. It fits when the circle is moved in by
e = L² / (24 R) first term; the code solves the exact length by halving
So every blended arc keeps its centre and gets the radius R − e, and the curves replace about L/2 of the pieces on either side of each junction. The planned path is nowhere further from the given one than the largest e, which path::deviation reports. Each arc gets its own L:
L = min( max over the arc's two junctions of v³ dk / (0.4 j), sqrt(24 · tolerance · R) )
with v the speed limit of the slower of the two pieces of a junction and j the smallest jerk limit of any axis. With an arc moved in by its e, a line beside it is apart from it by e and the curve there comes out about L long. Two arcs turning opposite ways are apart by the sum of their e, which fits whatever their L. Two arcs turning the same way are apart by the difference of their e (the tighter one moves in more), which is positive only for one L: arcs that hand over to one another turning the same way share one L, the longest any of them needs and the shortest any of them allows. Each curve is then fitted exactly: its length is the one for which the circles that fit its two ends are as far apart as the real ones, and it is turned and placed so that they coincide. A point on the curve is the direction added up along it (Simpson’s rule, 64 intervals).
An arc with one end fixed. An arc at a corner, at an end of the path, or where a spline joins it has to end at that end where it is given to, in the given direction. If its other end meets a line or an arc in its direction, its circle shrinks by s and its centre moves towards the fixed end by s: the new circle passes through the fixed end in the same direction (it touches the old one there from inside), and is inside the old one by s (1 − cos φ) at the other end, φ being the angle the arc turns through. That gap is made e = L² / (24 R), so s = e / (1 − cos φ), and the curve towards the line or the next arc is fitted as above (next to an arc the gap is taken as e for that arc’s moving in, and the curve is fitted to where the circles are). At the angle θ from the fixed end the new circle is r − sqrt(r² − 2 s (r − s)(1 − cos θ)) from the old one, which grows up to θ = π, where it is 2 s: about e at the free end of an arc of up to half a turn. An arc that turns further gets s ≤ tolerance / 2, so e = (tolerance / 2)(1 − cos φ) and a shorter L (an_arc_fixed_at_one_end_that_turns_three_quarters_gets_its_curve: 270°, r = 0.1 m, 0.1 mm: s = e = 0.05 mm, L = sqrt(24 e r) = 10.95 mm, 0.1 mm reported). The larger of e and that distance is reported. This is done for arcs whose radius stays above half of what it was, not for a whole turn (no free end); for a quarter turn s = e, and the numbers are those of a free arc (an_arc_at_an_end_or_a_corner_gets_its_transition_curve: 15.49 mm, 0.3957 m/s into the arc instead of 0.0707 m/s at 0.1 mm).
On three axes. A line that meets an arc in its direction lies in the arc’s plane, and so does a line or an arc that meets that line in its direction and lies in the plane (to 1 nm). Such a run of pieces is blended in its plane, on the coordinates along the first arc’s start and its direction there, with the speeds of the pieces in space, and laid back into space; the curves keep their plane, and the deviation is the one in the plane. A line between two arcs in different planes lies in both and is cut in half, each half going with its arc. Two arcs that meet in their direction in different planes keep their junction, which the path passes at the junction speed: a curve between them would have to turn from one plane into the other (with torsion), and the planar fit has no counterpart there. Spline junctions are eased as on two axes. a_path_in_a_tilted_plane_gets_its_transition_curves (delta, a quarter arc of 0.1 m in a plane tilted by 30°, 0.1 mm): L = sqrt(24 e r) = 15.49 mm, e = 0.1 mm reported, 0.551 s against 0.616 s within the axis limits.
A spline eased into a line or an arc. A spline leaves a line or an arc in its direction at a speed by u of 1, but with the curvature its via points ask for, so the curvature steps by dk at the junction. With a tolerance the span next to the junction gets, over a length l from the junction (u from 0 to l, w = u / l),
delta(u) = D · l² · w² (1 − w)³ / 2
added, D being the change of the second derivative across the direction that makes the curvature at the junction that of the neighbour (|D| = dk). delta has no value, first or second derivative at w = 1 and only the second (D) at w = 0, so the junction keeps its place and direction, the curvature there becomes the neighbour’s, the rest of the spline stays as it was, and the eased part is a polynomial of the fifth degree, timed as a span. The largest of w² (1 − w)³ / 2 is 0.01728 (at w = 0.4), so the spline moves by at most 0.01728 dk l², and
l = min( sqrt(tolerance / (0.01728 dk)), 9 · 1.05 · dk · v³ / (0.4 j), half the span )
The second term is the length needed: at the junction the curvature changes per distance by 9 dk / l (the third derivative of w² (1 − w)³ / 2 at 0 is −9, and nowhere larger), and with the margin of the spans’ limits that has to allow the speed v of the slower of the two pieces. The third keeps the via points where they are. Each junction gets its own l. The curvature overshoots on the eased part by up to 0.36 dk (the second derivative of w² (1 − w)³ / 2 falls to −0.36), and the change of curvature at the junction is about nine times that of a clothoid of the same length, so an eased junction is passed more slowly than a clothoid would allow: about 1.8 times for the same deviation (a clothoid between a spline and a line would need the spline moved as an arc is, which a spline cannot be without changing its via points). Example (a_spline_eased_into_a_line_is_entered_at_the_hand_calculated_speed): a span leaving a line with 10 1/m is eased over 24.06 mm at 0.1 mm and entered at 0.2189 m/s instead of 0.0707 m/s.
Limits: an arc with both ends fixed, or with one end fixed and an arc at the other, keeps its radius and gets no curve; where a curve would not fit (a wider arc moved in beside a tighter one that was not) both arcs stay as given; pieces too short for their curves halve L for the whole path, up to eight times, and then the path stays as given. What a curve takes of an arc is the angle from the arc’s own end to where the curve meets it; curves that together take more than the arc has are too long, and so is a curve that turns half a circle or more (a tolerance that is large against a tight radius). The time-optimal planner times the same kind of path, with L and l worked out with the speeds its motors allow, so its curves can be longer than those of the plan within the axis limits, and its deviation (path::deviation_time_optimal) larger, up to the tolerance. One L still serves all curves between lines and arcs of a path: an arc whose own junctions would need less is moved in all the same by its e = L² / (24 R).
As fast as the motors allow (--time-optimal)
The path the timing within the axis limits lays out (above, transition curves included, their lengths for the speeds the motors allow), timed point by point within what the motors allow. The jerk limits stay those of the axes, and so do the look-ahead over the junctions, the speed at a junction and the stop at a corner (path::plan_time_optimal).
Places. Each piece is read at places about 2 mm apart (at least 32 and at most 1000 per piece). With p′, p″ and p‴ the derivatives of the pose by the distance along the path there, the speed v and the acceleration a along the path give
tool velocity = v p′
tool acceleration = a p′ + v² p″
tool jerk = j p′ + 3 v a p″ + v³ p‴ (j: the jerk along the path)
and the rigid model gives each motor’s torque as τ = c a + d v² + e: c per acceleration along the path, d per speed squared (the centripetal and Coriolis torque, Machine::feedforward_torque_moving, and the part of p″), e the torque that holds the tool there. With w the motor’s angle per distance (central differences of the inverse kinematics) each place bounds:
| w | v ≤ maximum speed (`drive.max_speed_rad_s`)
−T_b(| w | v) ≤ c a + d v² + e ≤ T_m(| w | v), T(ω) = min(curve(ω), k_t I_drive) − (1 − profile.torque_reserve) · T(0)
3 | p″_i | v | a | + | p‴_i | v³ ≤ J_i − j_ramp | p′_i | per axis i, J_i its jerk limit
Each motor has its own drive and motor ([drive.<id>], [motor.<id>], [parts.<id>]; before 14 November every motor had the shared [drive] here). T_m is what the curve gives in the direction the motor turns and T_b as it brakes, at the speed it turns: level up to the rated speed, then falling (linearly to the no-load speed, or as the d-q model has it with field weakening). The plan keeps back (1 − reserve) times the torque at a standstill at every speed, for friction and elasticity, which the rigid model leaves out and which do not shrink with the speed: up to the rated speed that is the reserve times the curve, as before; above it the room falls faster than the curve, and where the curve has less than that left the rigid torque has to stay as far on the braking side. Within a place the bound is taken at the highest speed of the range, as the curve does not rise (MotorCurve, read at 257 speeds up to the maximum and taken at the next one up). Friction comes off the motoring side of T at each speed: the shaft’s steady friction and the gearbox’s drag, c tanh(ω / ω_s) + b ω + T₀ (ω / n₀)^(2/3) (PlanLimits::friction, from each motor’s own config as mech::ShaftFriction reads it, without the breakaway’s Stribeck rise), and per place the guides’ friction as torque at the motors where the machine gives it (Machine::rigid_friction: machine files, each guide’s Coulomb and viscous force on its axis through the map of the rigid forces, behind a lossy gearbox over its efficiency), c + b v at the speed v along the path, and on the machine files each guide’s Stribeck rise on top (Machine::rigid_friction_rise, a [level, speed] per guide and motor): f(v) = c + Σ level · exp(−(v / v_s)²) + b v. It is taken at its largest over the speeds up to the place’s (none at a standstill) off the room on its side; with rises of either sign on one motor (two axes that turn against each other) the largest is found among the ends and the interior extremes of f, by bisection of every change of sign of f′ on a grid 2 % apart from a thousandth of the least Stribeck speed to six times the largest (Friction, two_rises_have_the_extremes_of_their_sum). As the motor brakes, friction would help; that is not counted. Before 14 November only the reserve stood for friction: the XYZ portal’s Z motor held to 0.2 N m (0.04 N m kept back) has 0.02 + 1e-4 · 400 = 0.06 N m of shaft friction at 400 rad/s and 0.02 N m of the Z guide’s, and its run asked for more than its peak; now the path down and across (0.1, 0.1, 0.02), (0.3, 0.2, 0.2) takes 1.064 s instead of 0.886 s without friction, and at its fastest upwards (249 rad/s) the holding torque 0.0686 N m and the friction fit under the curve less the reserve (a_motor_whose_friction_exceeds_its_reserve_is_planned_slower_within_its_peak). Before 14 November the plan stopped every motor at its rated speed with its full torque: no plan used the curve above it. The single axis now cruises a 1 m move at up to 398.8 rad/s, 420 − 106 · 0.76 / 3.8 (the_time_optimal_plan_turns_a_motor_above_its_rated_speed_along_its_curve). With effects.drive_current_limit the drive holds the current to ratings.drive_max_current_a, so T is also no more than the reserve times the torque of that current (DriveParams::torque_of, with saturation where it is on): a single axis whose drive gives 2 A to a 0.45 N m/A motor accelerates at (0.8 · 0.9 N m · i / r ∓ F) / m up and down a 30° incline (the_drive_current_limits_the_time_optimal_acceleration_to_the_hand_calculated_one: 26.186 and 32.590 m/s², 0.68649 s at the top speed less 1 %, below). Gravity counts for each direction as it is (before 13 November | e | was taken off both). The plan keeps 0.02 % of T back for what falls between two places. A place’s top speed is the highest at which it holds all of its bounds without acceleration.
Gearbox and pulley. Where the machine reports a gearbox’s output torque (gearbox.<motor>.output_torque) and the config rates it, ratings.gearbox_max_torque_nm (M2max) or pulley_max_torque_nm (the pulley sits on the output; the lower of the two counts), the output torque is a row too: the ratio i times what the motor gives less what turns the inertia at the gearbox’s input (rotor and gearbox, J_in), with the motor’s angular acceleration w a + w′ v² (w′ by second differences of the inverse kinematics along the path):
−M ≤ i ((c − J_in w) a + (d − J_in w′) v² + e) ≤ M, M = profile.torque_reserve · min(M2max, pulley rating)
The reserve is the motor’s: the rigid model leaves out the output’s friction and the elasticity’s swing there as well. The output torque is what the load takes, whatever the gearbox loses. What it loses the motor gives on top: with the efficiency η (gearbox.efficiency, with effects.gearbox_efficiency) the motor gives J_in (w a + w′ v²) + (τ − J_in (w a + w′ v²)) / η while it drives the load (the load’s torque turns the way the motor turns) and J_in (w a + w′ v²) + η (τ − J_in (w a + w′ v²)) while the load drives it (it brakes the load). For a motor that turns forwards along the path that is the larger of the two forms, for one that turns backwards the smaller, whatever the sign of the load’s torque and of the rotor’s own J_in α: so the η form holds against both bounds, and the 1 / η form against the high bound where the motor turns forwards and the low bound where it turns backwards (Place::against). Friction, which helps braking, is not counted: it is nil at a standstill, and the bound holds at every speed. With the 1 / η form alone against the high bound, a rotor whose inertia outweighs a load that pushes on would have been planned over its torque (0.4227 N m on a 0.4 N m bound in the unit test). On the single axis with η = 0.9 accelerating takes 0.0075 + 0.017 / 0.9 = 0.026389 N m per m/s² against 0.0245 lossless: 15.158 m/s² instead of 16.327, and braking 0.0075 + 0.017 · 0.9 = 0.0228 N m per m/s²: 17.544 m/s² (a_lossy_gearbox_lowers_the_time_optimal_acceleration_by_its_loss). A gearbox enters the plan where it is rated or lossy. Where it binds, a single axis accelerates at 0.8 · M / 0.085 N m per m/s² (a_gearbox_or_pulley_rating_that_binds_limits_the_time_optimal_acceleration: 94.118 m/s² at M2max 10 N m, 75.294 m/s² with the pulley rated 8 N m). On the shipped delta it binds (0.8 · 192 N m at the output against the motors’ 0.8 · 15 N m · 20): its line across the range took 0.434 s instead of 0.412 s with the gearbox rated 192 N m (--set ratings.gearbox_max_torque_nm=192; the shipped SP+ 100 is rated 278 N m since, and its line takes 0.412 s), and each output torque stays within 0.8 · M2max (0.1 %). A holding torque beyond M is refused (error-path-torque).
Guides. Where the machine gives its guides’ loads in the rigid model (Machine::rigid_guide_loads: a load at rest plus the size of a part linear in the tool’s acceleration; the T-gantry, the single axis, the linear delta’s carriages (the part of the rods’ pull and the carriage’s weight at right angles to its column, at rest and from what accelerating the plate takes, m a, through the same rods), the linear motor axis (attraction and weight, nothing from the acceleration along the rail) and machine files (weight and press, and an overhang’s tilt and side load, m a (2 |lever| / spacing (+ 1)))) and the config rates them (ratings.guide_max_load_n), each guide is a row with the same room both ways: | g · (a p′ + v² p″) | ≤ R L − rest, R = profile.torque_reserve, as the motors keep R of their torque: the rest is for what the rigid model leaves out (vibration, friction). Before 14 November the guides used their whole rating. On the T-gantry the X guide carries m_X g + | 2 m_Z a_x (z_com − z) / s | and the Z guide | m_Z a_x | (1 + | 2 (z_com − z) / s |); rated 150 N, a line along X at z = 0.35 m accelerates at (150 − 107.87) / 5.833 = 7.222 m/s² (the_guide_load_rating_limits_the_time_optimal_acceleration). A load at rest beyond the rating is refused (error-path-guide). No reserve: what friction adds to the acceleration the motors command (commanded_ax) is not in it.
The rest of what the verdicts judge (since 15 November 2026). The plan reads every rating whose verdict depends on the motion at a point of the path, so that a time-optimal plan, run, passes its own checks:
- The drive’s maximum current,
ratings.drive_max_current_a(“drive-peak-current”), whether or noteffects.drive_current_limitholds the drive to it (before, the plan read it only with the effect on, while the verdict judges it always): T is no more than the torque of that current. - The gearbox’s input speed,
ratings.gearbox_max_input_speed_rpm(“gearbox-input-speed”): the motor’s maximum speed is the lower of its own and that. - Speed ratings keep a share back for the velocity loops’ following (
PlanLimits::speed_kept): a plan at the motors’ 420 rad/s ran the T-gantry’s up to 420.66 rad/s, and “motor-speed” failed by 0.16 %. The share is the most over the motors ofpath::speed_kept_of: a PI velocity loop on a ramp of acceleration a, with the share f of the torque J a from the precontrol, lags by at most (1 − f) a / ω_n, ω_n = sqrt(k_i / J), and that over the motor’s top speed is kept back, at least 1 % (SPEED_KEPT) and at most 50 %; J is the rigid model’s inertia at the place the plan is at (since 25 November 2026 each place of a piece keeps back the share of its own pose, with its own trains, inertia and jerks:PlanLimits::kept_at,the_share_kept_back_is_taken_at_the_place_not_the_start;PlanLimits::speed_keptis the start pose’s, which the pieces’ pre-timing keeps) and a what the torque reserve gives, R T_peak / J (the_speed_kept_back_follows_the_velocity_loop: k_i = 100 N m/rad, J = 0.01 kg m², 1000 rad/s² with half the torque precontrolled lag by 5 rad/s, 0.025 of 200 rad/s). With the shipped full precontrol it is the 1 %: the top speed of the single axis is 0.99 · 314 · 0.02 / 5 = 1.2434 m/s where it was 1.256 m/s. On top, where a motor’s drive train is elastic (Machine::trains: the gearbox’s spring K1 in series with the belt sections; behind a screw or rack K1 holds the converter’s spring already, and the train is the elastic model’s two-mass mode,the_screw_axis_train_is_its_two_mass_mode; the rotor on one side, the rest of the motor’s rigid inertia J at the start pose on the other), the speed its twist adds (path::train_speed): two masses on a spring k, the load’s share s of J and its frequency w = sqrt(k / J_load) with the motor held, the motor driven with the rigid J a(t), run ahead of the common speed by s j / w² while the acceleration changes at the jerk j (the most the axes’ jerk limits give the motor,control::motor_jerks), and by at most s a W / w² after a step of the acceleration a (the swing’s own W = w / sqrt(1 − s)), the lower of the two (an_elastic_train_puts_the_motor_ahead_by_the_hand_calculated_speed: J_m = 1e-4, J_L = 3e-4 kg m², k = 30 N m/rad, 1e6 rad/s³ put it 7.5 rad/s ahead on average over the ramp;an_elastic_train_after_a_step_of_acceleration_leads_by_the_swing: a step of 1e3 rad/s² 4.743 rad/s). The T-gantry’s corner timed with the axes’ jerk at 2000 m/s³ ran its motors to 420.7 and 423.5 rad/s with the 1 % alone, past the drive’s 420 (with the belts rigid 416.5); with the trains’ 2.6 % to 414.3 and 416.8 rad/s (21 November 2026; 414.4 and 416.7 before the runs met at their exact crossing) (a_jerky_corner_on_the_belt_gantry_keeps_its_motors_within_their_speed). The shipped jerks keep the shares within 1.0 to 2.1 %. An arm whose joints couple through the load (JointMachine::trains: each joint’s M_kk with the others held) rings lower with its motors held than the trains: the hexapod’s lowest held mode is 183.2 Hz, its trains 289.6 Hz. The jerk term takes the trains’ frequency rightly: with motor k driven and the others held the twists y obey M y″ + K y = M e_k a, so under a jerk y_k′ = [K⁻¹ M]_kk j = M_kk j / K_k (K diagonal), which is the modal sum of the held modes’ column k, Σ φ_ki (M φ_i)_k / ω_i² (K⁻¹ = Φ Ω⁻² Φᵀ); the lower modes come in through the step’s swing alone, Σ |φ_ki (M φ_i)_k| / ω_i, which the cap’s s a W / w² does not hold. On the default cycles the cap is not the one taken: at the start pose the jerk is 2.8e-4 to 7.6e-3 of a W on the tripod, the hexapod, the wafer handler and the joint-kit SCARA (21 November 2026), and the trains keep back 0.0044 to 0.015 rad/s on the tripod and the hexapod (of 620 and 615 rad/s), 0.0015 to 0.078 rad/s on the wafer handler (of 838). - The braking power,
ratings.braking_resistor_peak_wwhere the config rates the DC link (dc_link_capacitance_uf; “braking-resistor-peak”): as a motor brakes at the speed ω its torque is held to P / |ω| as well, the mechanical power, which while braking exceeds the electrical by the losses, so the bound is on the safe side; a line-up that brakes through one Braking Module (drive.braking_module) shares P out evenly over its motors. Up to the speed P / (m a_max) the motor’s torque binds, above it the power: the single axis held to 50 W brakes at no more than 50 / (6.125 kg · v), 6.565 m/s² from 1.2434 m/s (the_braking_resistor_bounds_the_time_optimal_deceleration; the speed levels of the runs make it up to 4 % softer). A braking that the DC link cannot take is not available. The resistor’s mean power (“braking-resistor-continuous”, over the whole cycle with its dwells) is not a bound at a point of the path and is not in the plan. - The machine’s own parts (
Machine::rigid_checks): for each check ofMachine::rating_checksthe machine gives the value of its signal in the rigid model at a tool pose, speed and acceleration (NaN for a life or a signal the rigid model does not give). The joint machines give their mechanism’s signals and each joint’s force M q″ + h: a screw’s speed and d n (“screw-speed”, “screw-dn”), its axial force (“screw-buckling”, “screw-static”), a rack’s feed force (“rack-feed-force”). The plan reads each at rest, at the acceleration 1 and at the speeds 1 and 2 along the path, which gives c a + b v + d v² + e, and keeps | c a + b v + d v² + e | within the limit: the reserve’s share of it where it grows with the acceleration (as the torques), the speed kept back off it where it is a speed alone, and all of it (times the margin) for a limit of the plan itself (aplan.signal: the flange’s angular speed and acceleration, judged on the planned motion, which the rigid model gives exactly), less, where it grows with the acceleration, what the controller’s cubics between the plan’s points add: where a ramp of jerk J ends in a plateau the C2 spline overshoots the plateau by up to 0.0851 J h, the Hermite cubic by 0.138 J h with the five-point slopes and 2/3 J h with the neighbours’ (which it takes next to the trajectory’s ends), so the plan keeps back 0.0851 (withprofile.trajectory_spline = "hermite"2/3) of the quantity’s change per acceleration times the ramps’ jerk (and, per axis the piece bends, that axis’s jerk left beside the ramps’) times the cycle; the palletiser’s turn uses 9.93 of its 10 rad/s² (2/3 · 100 rad/s³ · 1 ms = 0.067 back; before 17 November the reserve’s 8, and with nothing kept back for the cubics its cycle timed time-optimal reached 10.003). The part b v takes its room off its side at its most over the speeds up to the place’s, as the guides’ friction does. A value at rest beyond the limit is refused (error-path-rating). The 1.6 m screw whirls at 1250 r/min: the plan runs it at 0.99 · 1250 / 60 · 0.02 m = 0.4125 m/s (the_time_optimal_plan_keeps_the_screws_speed_rating); a rack rated 500 N over the service factor 1.25 pushes 80 kg at 0.8 · 400 / 80 = 4 m/s² (the_time_optimal_plan_keeps_the_racks_feed_force). A rack’s feed force is the force over the efficiency while the pinion drives and times it while the load drives it back (RackPinion::feed_force), so where the load at rest pulls against the motion the force is not of the form c a + b v + d v² + e and the fit from the four readings is not exact there. - The joints’ friction (
Machine::rigid_frictionof the joint machines: each joint’s Coulomb level and viscous part through its ratio and what a screw or rack passes on), taken off the motor’s room as the guides’ friction is. Before, the plan of the joint machines left it out: the linear motor axis’s friction took some 210 N of its 900 N at 6 m/s, and the run asked 944 N of the motor (“motor-peak” 1.05). - A margin
profile.time_optimal_margin(1 in the shipped configs; at most 1): the share of every limit the plan may use, on top of the reserves. It multiplies the torque reserve, the belt’s share, the speed ratings and the braking power, so 0.9 plans at 90 % of the limits (the_time_optimal_margin_plans_at_its_share_of_the_limits).
Not in the plan: what is judged over the whole cycle (the winding’s and the parts’ warming, “motor-s1”, “drive-current”, the lives, the mean braking power), the settling at the targets, the cable robots’ cable tensions, the parallel SCARA’s and the netlist machines’ own checks (they give no rigid values yet), and whatever the full model adds to the rigid one beyond the reserves. Found on the way, not solved: a short piece whose speed curve rises into its end faster than a run from the end can follow at the jerk (the four-arm delta’s 25 mm descent from its place pose, the curve rising at 195 m/s² against a jerk of 2500 m/s³) has no top speed that fits, as the run from the end is held at rest; the search for its top then looped for ever (the planar delta’s time-optimal cycle hung before 15 November; the_search_for_a_top_speed_ends_where_nothing_above_zero_fits). Now the piece is refused (error-path-singular), and a cycle times that segment within the axis limits. A winding that overheats on the cycle repeated runs away in temperature and its resistance takes the torque the plan counts on (the linear motor axis, the flying saw, the parallel SCARA and the four-arm delta on their time-optimal cycles): there “motor-peak” can fail as a result of “motor-thermal”.
Test over the machines (crates/sim-machines/tests/time_optimal.rs, one test per machine of MACHINES): each machine’s cycle, timed with profile.cycle_timing = "time_optimal", run and judged with the shipped config, passes every verdict the plan keeps (“motor-peak”, “motor-speed”, “drive-peak-current”, “gearbox-peak”, “pulley-torque”, “gearbox-input-speed”, “guide-load”, “belt-tension”, “belt-least-tension”, “braking-resistor-peak” and the machine’s own checks with a rigid value); where “motor-thermal” fails, with the winding at its starting temperature (effects.winding_heating off).
Jerk along the path. On a line the ramps may use the axes’ jerk limits in full: j_ramp = min over the axes of J_i / | p′_i |. On a curve they get 0.4 of the least of that over the piece, and the rest of each axis’s limit is for the terms of speed and acceleration (the third bound), as curved shares it out for the plan within the axis limits.
The speed curve. Each piece gets a curve of the highest speed it may follow (path::smoothed, as squared speeds x at its places): it starts at the places’ top speeds and is only lowered, in sweeps forwards and backwards, until its acceleration x′ / 2 is within 0.9 of what the places allow at its speed (where a slow place would come too fast to brake for, the curve comes down to it in time) and its jerk, v times the change of x′ / 2 per metre, within half of j_ramp (a peak too sharp is lowered onto the bound, a dip too sharp gets its sides lowered). It never falls below the slowest place’s top. The rest of the acceleration and of the jerk is for a run to catch up with the curve and follow its bends (the_speed_curve_comes_down_to_a_slow_place_within_its_acceleration_and_jerk: from a place at 0.5 m/s among places at 1 m/s, 10 m/s² and 10 mm apart, x rises 0.25, 0.43, 0.61, 0.79, 0.97, 1 m²/s²).
The runs. Between the speeds at its junctions a piece runs: two cycles steady where a junction is passed at speed, a run up from its start to its top speed, cruise, a run down to its end (path::follow; the run down is planned from the end backwards under the bounds for braking). A run is integrated in steps of a quarter of the profile cycle at a constant jerk per step. Each step the acceleration rises at j_ramp as far as three things allow: the most acceleration the places allow ahead (worked out at 32 speed levels between zero and the curve’s highest, each torque row at its worst speed up to the level, the jerk bound at the level; the run takes the level of the highest speed it reaches if its acceleration falls to zero from there, v + a² / (2 j_ramp); lowered ahead of where it falls by j_ramp times the least time between two places, so that the jerk can follow it); that it can still fall to zero just as the speed reaches the top speed ((a + Δa)² ≤ 2 j_ramp (top − v)); and that it can still come down onto the speed curve with the jerk left beside the curve’s own (y² ≤ 2 k g for the acceleration y above the curve’s and the gap g to it), unless falling to zero at once keeps the speed below the curve all the way. So a run rises along the most acceleration, meets the speed curve, follows it up and down, and goes on to the top speed; until it brakes for the top speed it is the same run whatever the top speed. On a line with constant limits this is the jerk-limited ramp of the plan within the axis limits, to a fraction of a step.
The top speed of a piece is the highest, up to the curve’s highest, for which both runs reach it before they meet and the cruise between them holds at every place it passes, found by halving to 1e-9 of it. A higher top that fits is the quicker, since the runs are the same until they brake for it.
Joining on the curve (curve_join). Where the runs would meet while the speed curve still rises or falls, a top with no acceleration makes the plan cruise below where they meet, and a piece that has to slow down below both its end speeds somewhere has no top at all. So each piece is also timed by two runs with no top, each following the curve as far as the piece goes (one that gets more than 0.1 % above the curve started faster than the curve lets it slow down, and is refused), joined at the first place where the run from the start is as fast as the run from the end: there both are on the curve, at its speed and acceleration (to 0.02 % and four steps’ jerk), and the plan switches from one to the other directly. The quicker of the two timings is taken. Test: a_path_without_the_forced_cruise_is_quicker_than_with_it.
Junction speed. A junction is passed no faster than junction_speed allows (the step of the axes’ rates, as within the axis limits) and than the speed curve of either piece allows at the junction (its last or its first place, from where the curve can still slow down), and no faster than a run into either piece from there can follow its curve; the look-ahead then lowers it until both pieces fit. Before 14 November it was no faster than the slowest place of either piece: two tangent arcs of 0.2 and 0.1 m radius, the second slow (0.05 m/s) only at its far end, are now joined at sqrt(0.5 · 100 · 0.001 / 5) = 0.1 m/s, the junction’s own limit, not at 0.05 m/s (the_junction_of_two_arcs_is_passed_at_the_hand_calculated_speed). Where the speeds the look-ahead gives leave a piece that does not fit, that piece’s two junctions fall back to the rule before (where that is slower) and the look-ahead runs again, as long as pieces are left that do not fit (at most once per piece; then the whole path as before 14 November, which until then was taken at the first such piece).
Singularities. Where the inverse kinematics gives no finite angle, or a motor turns more per distance along the path than its top speed times 1000 s over the piece’s length (singular_turn: crawling slower than the length over 1000 s would be needed; at most 1e6 rad per metre: 400 rad/s on a piece of 2 m gives 2e5), or the plan would take more than 1000 s (PLAN_LONGEST) (a crawl near a singularity, a pose per cycle without bound), the path is refused (error-path-singular; the_time_optimal_plan_refuses_a_crawl_that_would_take_unbounded_poses).
Long plans. A plan within the axis limits, as a program with a feed gets, of more than ten million poses (2.8 hours at a profile cycle of 1 ms) is refused as well (error-path-long; programs_beyond_any_plan_are_refused_in_bounded_time in sim-machines): a feed of 0.000001 mm/min would otherwise be planned until the memory is full.
Cycles (profile.cycle_timing = "time_optimal"). Each cycle segment is planned so, rest to rest, from where the segment before ended: the straight way as one line, a segment with via points along its path. A config whose segment cannot be planned so from the segment before is refused (profile.cycle_timing); the first segment, from the start pose, falls back to the timing within the axis limits where it is refused. The single axis’s segment 0.1 → 0.9 m takes 0.8 / v + v / a + a / j = 0.71970 s with 0.8 · 0.5 N m and v = 1.2434 m/s (0.71404 s before 15 November, at 1.256 m/s) (a_time_optimal_cycle_segment_takes_the_hand_calculated_time).
So every planned pose keeps each motor’s torque from the rigid model within its curve less what the reserve keeps back, each motor’s speed within its maximum speed, each rated gearbox, pulley and guide within its rating, and each axis’s jerk within its limit. The tests check that on the planned poses by differences over one cycle, with a margin of 0.1 %. Planning a path takes 2 to 21 ms (release build; see the table in docs/development/PROGRESS.md), against 0.2 to 1 ms with one limit per piece.
Where the holding torque alone is above the reserve at a place of the path, the path is refused (error-path-torque).
Belt tension as a limit. Where the config rates the belt (ratings.belt_max_tension_n, belt_min_tension_n), the rigid model also gives each belt section’s tension at each place (Machine::rigid_tensions). It is linear in the acceleration, T = c + g · acceleration: the belt pulls the moved masses (not pulleys and rotors) and keeps its length, Σ (T_i − P) L_i = 0 over the geometric section lengths (the elastic law to first order in T / EA). T-gantry, with F_x = (m_X + idlers + chain) a_x and F_z = (m_Z + idler) a_z + m_Z g:
d1 = −((F_x + F_z) L2 / 2 + F_x L3) / (L1 + L2 + L3) d3 = d1 + F_x d2 = d1 + (F_x + F_z) / 2 T_i = P + d_i
Single axis, F = (m + chain)(a + g sin incline): T1 = P − F L2 / (L1 + L2), T2 = P + F L1 / (L1 + L2). Each section and place is one more row of the bounds, with the same room on both sides (the belt’s vibration after a change of tension swings as far the other way, below):
| g · (a p′ + v² p″) | ≤ profile.tension_reserve · min( T_max − m − c, c − T_min − m ), m = profile.tension_margin_n
The margin m and the share are for what the rigid model leaves out. The margin is the guide friction the belt pulls, roughly absolute (coulomb plus viscous at top speed: 31 N on the default T-gantry). The share (0.5) is for the belt’s vibration: a change of acceleration Δa in a ramp of time T_r on a lightly damped mode of angular frequency ω leaves a swing of g Δa |sin(ω T_r / 2) / (ω T_r / 2)|, up to g Δa itself when the ramp is quick against the period, so the full model’s dynamic tension is up to twice the rigid one. A share of 0.8 without a margin (until 13 November 2026) let the full model pass the rating: 331.4 N on a 330 N rating at the default 100 m/s³, 405.5 N on 400 N at 2000 m/s³, and the slack side reached 0 N (−117 N with belt_slack off: the belt rings at about 18 Hz after a corner). With 0.5 and the margin the full model kept both ratings on every path, rating (330 to 1500 N) and jerk (100 to 5000 m/s³) tried on the default T-gantry, 40 m/s² and 2 m/s (the_full_model_keeps_the_belt_ratings_on_a_time_optimal_plan_at_high_jerk; the_time_optimal_plan_keeps_the_belt_within_its_tension_limit: 6.355 m/s² at the line’s far end by hand, 7.05 m/s² where it accelerates (6.328 and 7.02 before the belt’s vertical runs weighed on Z), each taken where it is, 358 N on the full model; without the limit 19.3 m/s² and 423 N). That is a judgement backed by those runs, not a proof: several quick ramps one after another can add their swings. A path on which the holding tension alone is beyond a rating less the margin is refused (error-path-tension). The shipped examples are not limited by the belt at their axis limits; the user guide’s corner at 2000 m/s³ is (0.78 s → 0.80 s plus rest with one limit per piece, 0.79 s point by point; it went slack before).
Assumptions and limits: the rigid model, so no friction and no elasticity (that is what the margin and the share are for); the velocity and acceleration limits of the axes play no part; the plan is not proven the fastest one possible: the two runs of a piece meet on a cruise at no acceleration, so where they meet while the speed curve still rises or falls the top is a little below where they would meet; the speed curve keeps 0.1 of the acceleration and half of the jerk for catching up with it, and its sweeps stop at a change of 1e-7 of it (at most 300); a run’s acceleration bound is taken at the worst speed up to its speed level (32 levels); on a curve the ramps get the share of the jerk its bends leave at the piece’s own speed and acceleration ceilings, at least 0.4 (a slight curve keeps nearly all of it), and the jerk’s three terms are bounded each by its size; the bounds are read at places 2 mm apart and taken as straight between them, with 0.02 % kept back; without a path tolerance it crawls into an arc as the plan within the axis limits does; what is judged over a whole cycle is not in the plan (the belt’s tension, the drive’s current, the gearbox’s and pulley’s torque and input speed, the guides’ load, the braking power, the joints’ friction and the machine’s own parts are, above); the payload is as the machine has it when planning. Until 14 November 2026 a piece cruised at one speed between two ramps (where its speed limit rose and fell between them, at the lowest of it), passed a place slower than its top at no more than 0.9 of that place’s speed, took the quickest of 16 + 16 top speeds, read each ramp’s bounds at its worst speed up to the top, and took the lowest of three neighbouring places; the drive’s current, the gearbox, the pulley and the guides were judged after planning only. The user guide’s spline example then took 1.380 s (1.340 s on 17 November 2026, 1.349 s on 16 November), the T-gantry line at 300 m/s³ and a 400 N belt 0.851693 s (0.851565 s on 14 November, 0.857 s since the belt’s own mass), the delta’s line across its range 0.411 s, its motors’ 0.8 · 15 N m through the ratio 20 allowed up to 240 N m on gearboxes rated 192 N m M2max (0.434 s at that rating; 0.412 s with the shipped SP+ 100’s 278 N m). Until 13 November 2026 the plan had one speed and one acceleration limit per piece, from nine poses, shared out 3 : 4 : 5 on arcs: the line, arc, line of the user guide took 1.429 s (1.397 s now), its spline example 1.674 s (1.381 s now), a line across the delta’s range 0.429 s (0.415 s now). Until 12 November 2026 this was the classic time-optimal parameterisation on a grid of points, without a jerk limit and smoothed by a moving mean (profile.path_smoothing_s, which no longer exists). It was faster (0.69 s against 1.43 s on the line, arc, line of the user guide) and passed the motors’ limits on arcs, many times over on short ones.
Input shaper
Source: shape in control.rs.
Source: the impulses in shaper.rs.
effects.input_shaping: a shaper on the position, velocity and acceleration setpoints. The shaped setpoint is a weighted sum of copies of the plan at multiples of half a damped period (profile.shaper_type, ZVD by default: three copies, now, half a period ago and a whole period ago). With profile.shaper2_frequency_hz above 0 a second shaper of the same type (its damping shaper2_damping) is convolved with the first: copies at the sums of the two shapers’ delays with the products of their weights; every entry of profile.shaper_modes adds one more. The first and the second act on the axes of profile.shaper_axes (all where it is empty), an entry of shaper_modes on its own axes (all where it has none): each axis convolves the modes that act on it, so axes can have shapers of their own frequency and damping. For an undamped mode at f a ZVD shaper at f_s with no damping leaves |H| = cos²(π f / (2 f_s)) of the vibration, two convolved the product of theirs.
| Type | Undamped weights at 0, T/2, T, 3T/2 | Left at the design frequency, at ±20 % |
|---|---|---|
zv | 1 : 1 | 0, cos(0.4 π) = 0.309 |
zvd | 1 : 2 : 1 | 0, 0.095 |
zvdd | 1 : 3 : 3 : 1 | 0, 0.030 |
ei | (1+V)/4 : (1−V)/2 : (1+V)/4 | V, |0.475 + 0.525 cos(0.8 π)| = 0.0503 at V = 5 % |
ei2 (two-hump EI) | A : 1/2 − A : 1/2 − A : A, A = (3X² + 2X + 3V²)/(16X), X = (V² (sqrt(1 − V²) + 1))^(1/3) | 0, humps of V either side |
V is profile.shaper_ei_tolerance. Damped, weight i of ZV, ZVD and ZVDD is multiplied by K^i (and all divided by their sum): that cancels the decay between the copies, the textbook damped shaper, which leaves nothing at the design frequency. The damped EI shapers are solved, not weighted (weighting left V K^n / Σ a_i K^i at the design frequency, 0.0424 for V = 0.05 at ζ = 0.05): with r the mode’s frequency over the design frequency and g = ζ / sqrt(1 − ζ²), the vibration left is |G(r)|, G(r) = Σ A_i exp(π r (t_i − t_n) g) exp(i π r t_i), t_i in half damped periods. The EI’s unknowns are A_1, A_2, t_2, t_3 and its two flank zeros r_1, r_2, its six equations G(r_1) = G(r_2) = 0, |G(1)| = V and d|G|/dr = 0 at 1; the two-hump EI’s are A_1..A_3, t_2..t_4, its outer zeros r_l, r_h and humps r_a, r_b, its ten equations G = 0 at 1, r_l and r_h and |G| = V with zero slope at each hump. Newton’s method solves them from the undamped closed form, carried to the damping in steps of at most 0.01, to 1e-12 at the design frequency; damped, the two-hump EI is Singhose’s (his curve fit for V = 5 % has the solved amplitudes to 6e-4 and times to 2 % up to ζ = 0.2). Where the iteration does not converge (damping near 1) the weighted shaper stands in. The residual vibration of a shaper is checked against Singer and Seering’s e^(−ζωt_n) sqrt(C² + S²), C and S the sums of A_i e^(ζωt_i) cos and sin(ω_d t_i).
K = exp( −ζ · π / sqrt(1 − ζ²) )
T_half = 1 / ( 2 · f · sqrt(1 − ζ²) )
shaped(t) = ( plan(t) + 2K · plan(t − T_half) + K² · plan(t − 2 T_half) ) / (1 + K)²
f shaper_frequency_hz, ζ shaper_damping (the ZVD; the other types likewise with their weights). A copy between two profile cycles is the plan itself at that moment, not an interpolation of the cycles around it: the shaper keeps the motion that made each stored cycle (a move with its blended tail, a path, a cam, a conveyor pass, a stop ramp, a setpoint from outside) and works it out there as the profile generator does at a cycle; where the plan stood (idle, a dwell, waiting for a part) it is where the cycle before left it. So the copies carry no interpolation error, and at a constant period the shaped setpoint steps per cycle by no more than the plan does (a cubic through the cycles overshot the speed limit by 2.6e-9 of it where the acceleration ended, straight lines kinked the shaped acceleration). The weights add up to one, so once the plan has stood still for a whole shaper the setpoint is the plan exactly. Where a cycle segment has a dwell or switches the payload, both wait until the shaped setpoint has arrived, the ceiling of the longest axis’s shaper in profile cycles after the plan (ZVD ceil(2 · T_half / cycle), with a second ZVD ceil(2 · (T_half + T_half,2) / cycle)); the process force starts with the dwell. Segments without a dwell and without a gripper action go on with the plan. A plain move (Move) is no longer busy when its plan has arrived.
With effects.shaper_follows_pose the half period of the first shaper is that of the resonance the machine reports for the planned pose, and that of a second shaper (shaper2_frequency_hz above 0) the machine’s second mode there of the modes a shaper acts on (Machine::sway_modes: by default modes; the crane gives its swings alone, the load’s and with the hook block the double pendulum’s upper one, not the load’s bounce on its rope, which its mode list has second without the hook block: 8.30 Hz at the start pose); one the machine does not report stays at its frequency. The T-gantry reports two modes, the single axis one. sim-cli modes and the app’s tuning panel show them over an axis’s stroke. Its resonance also depends on the payload: when the gripper closes at the start of a dwell it drops (on the delta D3 from 41.5 to 27.2 Hz, on the palletiser from 10.63 to 8.29 Hz). The period does not step with it: a step in the delays reads the copies off other points of the plan at once, a step in the setpoint wherever the plan has not stood still for the whole shaper (the palletiser’s plan stands 3 ms at the pick; holding the period while the plan stood and taking the new one when it moved stepped the setpoint by 16 µm against its speed, and taken at once the longer period reached back into the D3’s lift and took an arrived setpoint 0.1 mm off). A change of the machine is told from one of the pose by asking the machine again at the last cycle’s pose. From that cycle on, the half periods go over from the old to the new by the quintic smoothstep 10u³ − 15u⁴ + 6u⁵, over 1.875 · Δτ_max / 0.1 (Δτ_max the change of the longest delay), so that no delay changes faster than a tenth of the time passing (SHAPER_RAMP_RATE; each copy runs at 0.9 to 1.1 times the plan’s pace). The delays keep a continuous first and second derivative, and the speed and acceleration setpoints are the shaped position’s own rates, with each copy’s (1 − τ̇_i) and τ̈_i (x_s’ = Σ A_i v (1 − τ̇_i), x_s’’ = Σ A_i (a (1 − τ̇_i)² − v τ̈_i), v and a the plan’s τ_i ago). As every delay changes slower than time passes, the moment each copy reads only moves forward: a setpoint that has arrived stays on its target while the period goes over at rest. During the ramp the shaper sits between the old and the new resonance, and a dwell or a grip waits for the longer of the two spans. Without a change of the machine nothing ramps: a constant period, and a period following the pose alone, shape as before.
A changed shaper setting in a running simulation (the switch, the frequency, the damping, following the pose) is held back until the plan stands still and the shaper’s store holds nothing but that pose. Then the setpoint is the plan with the old shaper and with the new one, and does not step. Taken at speed, the three copies of the plan were suddenly read at other delays, or two of them dropped, and the setpoint jumped by up to 16 mm on the T-gantry’s X axis at 0.8 m/s.
When profile.cycle_s is changed in a running simulation, the stored plan of the shaper is read off again at the new spacing and every stored cycle count of the motion under way is converted, so the setpoint does not jump. The fieldbus queue keeps its count of cycles.
Following the pose applies to the first and the second shaper; the modes of shaper_modes keep their frequency. The optimiser (sim-cli optimise) switches the first and second shaper as before; it does not choose per-axis frequencies.
Analysis quantities
Source: analysis.rs.
What is measured. For a cycle: the simulation starts the cycle and measures its second pass, from the moment the first segment starts for the second time to the moment it starts for the third time. If a drive trips on DC link overvoltage before that, the drives are off and the cycle never gets there: the figures are then those of the run from its start to the trip, duration is that time, and the load is marked as tripped. For a path or trajectory: from its start to 0.3 s after its planned end.
Per motor, summed over every base step of the measured pass (N steps):
| Quantity | Definition |
|---|---|
| Peak torque | max |τ|. τ is the drive’s torque from the winding current, before ripple and shaft friction |
| RMS torque | sqrt( Σ τ² / N ) |
| Cubic-mean torque | cbrt( Σ |τ|³ · |ω| / Σ |ω| ): weighted with the speed, so that a turn under load counts and standing still does not |
| Peak speed | max |ω| of the motor shaft |
| Utilisation | max of |τ_demand| / (torque the torque-speed curve leaves at that speed in the direction of τ_demand). τ_demand is the velocity loop’s output after its filters and before the torque limit. The delivered torque is clamped to the curve and could never exceed it |
| Thermal utilisation | RMS torque / drive.rated_torque_nm. Not judged; motor-thermal judges the winding rise |
| RMS current | sqrt( Σ i² / N ) |
| Peak current | max |i| |
| Winding rise (settled) | With q = ϑ_rated / (1 + 0.0039 ϑ_rated) · (I_rms / I_ref)²: ϑ = (q + h) / (1 − 0.0039 q) (DriveParams::settled_rise). The copper loss with the resistance at that temperature, against the loss at I_ref: the rated current motor.rated_current_a, or with effects.iron_loss the stall current motor.stall_current_a (the rated current then carries iron loss too; an induction motor’s I_ref takes its rotor’s copper loss). h = ϑ_rated · P_iron / (R(ϑ_rated) I_ref²) is the mean iron loss’s share (0 without the effect; with effects.motor_thermal_nodes the housing’s share 1 − s of it). Infinite if 0.0039 q ≥ 1 |
| Energy in | Σ P · dt over the steps with P ≥ 0 |
| Energy regenerated | −Σ P · dt over the steps with P < 0 |
| Peak regenerated power | max(−P) |
| Largest regeneration | Most energy fed back in one unbroken stretch of negative power |
| Resistor energy, peak power | Σ and max of the simulated braking resistor’s power (0 without effects.dc_link) |
| DC link peak voltage | max of the DC link voltage |
| Mains energy | With effects.regenerative_supply: Σ of the power fed back into the mains, after the line module’s efficiency (analyze column mains_energy_j) |
| Line module energy, peak power | With effects.regenerative_supply: Σ and max of the power through the line module either way, drawn from the line plus fed back (before its efficiency) |
| Mean speed | Σ |ω| / N, for the lives in hours |
| Gearbox life torque | Where the machine reports gearbox.<motor>.output_torque: ( Σ |τ_out|^(10/3) · |ω| / Σ |ω| )^0.3, Siemens’ equivalent torque M2eq of its planet bearings’ life |
| Output torque per speed band | Where the machine reports the output torque: its peak in each band of 5 rad/s of |ω| (SPEED_BAND), for the belt’s tooth load |
| Radial load, equivalent | Where the machine reports pulley.<motor>.radial_load: cbrt( Σ F³ · |ω| / Σ |ω| ), sampled once per millisecond: the equivalent load P of a bearing whose load and speed change (ISO 281) |
With a shared DC link every motor reports the link’s resistor, rectifier and line module, as above.
For the machine, sampled once per millisecond:
| Quantity | Definition |
|---|---|
| Belt tension, lowest and highest | Over all signals belt.<n>.tension |
| Belt slack time | Increase of belt.slack_time over the pass. Counted every integration step, so it also catches what falls between the samples |
| Radial load peak | max over all signals pulley.<id>.radial_load |
| Guide load | Per guide the peak and the cubic mean over distance, cbrt(Σ load³ |
| Guide life | L10 = (C / P)³ · 50 km with C = ratings.guide_dynamic_load_rating_n and P that cubic mean |
| Guide speed, guide life in hours | The mean |speed| of that guide’s axis (the tool’s speed along it, once per millisecond); L10 · 1000 / (v · 3600) h |
| Path error | Distance from the tool position to the polyline of the setpoints of the last 0.5 s (the nearest of its pieces). Peak and RMS. The tool position is the machine’s tool state: on the T-gantry the tool tip over the floor, frame deflection included |
| Tracking error | The tool position error: distance from the tool to the plan of the same moment. Peak |
| Dwell error | In the second half of a dwell: distance from the tool to the planned target. Peak. With input shaping the dwell starts when the shaped setpoint has arrived |
Notes:
-
Path error looks only at the setpoints of the last half second: the piece of the path the tool can be near.
-
The setpoints used are the controller’s (after shaping, before the fieldbus delay), so a fieldbus delay shows in the tracking error.
-
The lives (
pulley_bearing_life_h,gearbox_life_h,gearbox_gearing_life_h,motor_bearing_life_h,guide_life_hinanalysis.rs):Life Formula Source Pulley shaft bearing L10h = (C / P)³ · 10⁶ / (60 n): C = ratings.pulley_bearing_load_rating_n, P the equivalent radial load above, n the pulley’s mean speed in r/min (the motor’s over its owngearbox.ratio: a[gearbox.<id>]table over the shared one,own_ratio, so on a machine whose motors have different ratios each gearbox has its own output speed; the planet bearings’ n2, the gearing’s revolutions and the motor bearings’ test for a ratio of 1 take the same)ISO 281 basic rating life of a ball bearing (as SKF and Schaeffler print it); Siemens uses the same form for its gearboxes’ output bearings, L10h = 30000 h · (F_R,eq allowed / F_R,eq)³ Pulley shaft bearing, a_ISO L_nm = a1 · a_ISO · L10. a_ISO = 0.1 · [1 − x · (e_C · C_u / P)^(1/3)]^−9.3, at most 50, 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, (2.5671 − 1.9987 / κ^0.071739)^0.83 for 1 ≤ κ ≤ 4 (κ above 4 as 4, below 0.1 as 0.1: a shortcut, the standard gives none there). κ = ν / ν1, ν1 = 45000 · n^−0.83 · D_pw^−0.5 below 1000 r/min and 4500 · n^−0.5 · D_pw^−0.5 from 1000 r/min (mm²/s, n in r/min, D_pw in mm). ν = ratings.bearing_lubricant_viscosity_mm2_s, e_C =bearing_contamination_factor, C_u =pulley_bearing_fatigue_limit_n, D_pw =pulley_bearing_mean_diameter_mm; κ at the pulley’s mean speed. Without all four, a_ISO = 1ISO 281:2007, sections 6.3.3.2 and 6.3.3.3 (radial ball bearings), Table 13 for e_C; C_u ≈ C0 / 22 for ball bearings below 100 mm (its Annex B) where the maker gives none Gearbox planet bearings L10h = 20000 h · (n2B / n2) · (M2N / M2eq)^(10/3): M2N = ratings.gearbox_rated_torque_nm, n2B =ratings.gearbox_reference_speed_rpm, n2 the output’s mean speed, M2eq the gearbox life torque aboveSiemens, configuration manual “Planetary gearboxes for S-1FK2 and S-1FT2 servomotors”, 01/2023, section 6.3.3 Gearbox gearing Palmgren–Miner: life = 1 / Σ (n_i / N_i) h over the cycle’s torque spectrum above M2N, n_i the output revolutions per hour in torque band i (1 % wide from 0.1 N m, each at its upper torque; MotorLoad::gearbox_torque_spectrum, every step), N_i = 30000 · (M2max / M_i)^k; at or below M2N no damage, and no figure where the cycle never exceeds it. M2max =ratings.gearbox_max_torque_nm, k =ratings.gearbox_gearing_wohler_exponent(8.7, an estimate: the tooth root’s S-N slope of case-hardened gears in ISO 6336-3, ln(3000) / ln(2.5))Siemens’ two figures: M2N continuous, M2max for at most 30000 output revolutions (equipment manual 04/2025, chapter 6). Siemens’ own damage sum is in its configuration manual, not in the repository: this is the textbook method on its figures, an estimate Motor bearings L10h = (C / P)³ · 10⁶ / (60 n) · a1 with C = ratings.motor_bearing_load_rating_n, P the pulley shaft’s equivalent radial load, n the motor’s mean speed; only where the pulley sits on the motor shaft (the key set, andgearbox.ratio1). Behind a gearbox the gearbox’s output bearing takes the belt’s pull and the motor’s bearings carry none. C from Siemens’ allowable radial force F for 25000 h at a mean speed n: C = F · (25000 · 60 · n / 10⁶)^(1/3), e.g. the 1FK2205’s 1000 N at 1500 r/min and 20 mm from the shoulder, 13104 N (catalog/siemens/motor_bearings_1fk2.csv)Siemens, S210 operating instructions 09/2022, sections 11.1.1 (about 25000 h at medium load) and 12.1.12 (the diagrams) Guide L10 in km over the mean speed of its axis The catalogue formula above One bearing per pulley shaft takes all of the radial load (a config can fold a pair into one C, as the EXCT-30’s does); no axial load. The bearing lives are multiplied by the life factor a1 of ISO 281 for
ratings.bearing_reliability_percentR: 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 %); R from 90 to 99.95 %, others refused byverdicts. The guide life is not, its makers use factors of their own. a_ISO is on the pulley shaft bearing only: Siemens’ figures for the planet bearings (20000 h) and the motor bearings (25000 h) are for their own lubrication already. The motors’ own bearings have no figure in any shipped config: the belt does not pull on a motor shaft there (a gearbox, or Festo’s drive head with a coupling, is between). The gearing’s figure appears on the delta’s first arm only (about 11600 h: its NRB080 runs up to 134 N m against 120 N m rated); the belt machines’ cycles stay below M2N. -
The belt’s teeth (
belt_tooth_utilisation): no belt maker publishes a life in hours or load cycles, or a Wöhler curve, for polyurethane steel-cord belts (Megadyne’s MEGALINEAR handbook, Gates’ polyurethane belt catalogue and BRECO’s data sheets were read; Optibelt’s could not be reached). They size by the tooth load and the cord tension with a service factor, so this is a rating, not a life: per motor the highest over the cycle of τ_out / r · c_s / (F_spec(n) · b / 10 · min(z_m, 12)), with r =geometry.pulley_radius_m, c_s =ratings.belt_service_factor, F_spec the allowed specific tooth load at the pulley’s speed n (ratings.belt_tooth_load_n_cmoverbelt_tooth_load_rpm, interpolated, held beyond the ends; each speed band taken at its upper speed), b =ratings.belt_width_mm, z_m =ratings.belt_teeth_in_mesh. Megadyne’s method (handbook 02.2026, page 9). The cords are judged bybelt-tension. -
The guide life is the catalogue formula and nothing more: no load factors for shock, temperature or hardness, no moments on single blocks (but on the arm on a track, which reports its most loaded block), and a guide load that is itself an estimate from the rigid model. It is not validated.
Verdicts
Source: verdicts in analysis.rs. Each verdict is a value against a limit; it passes if value ≤ limit, except where noted. A rating that the config leaves out gives no verdict.
Per motor:
| Check | Value | Limit |
|---|---|---|
motor-peak | Utilisation | 1 |
motor-thermal | Settled winding rise | motor.rated_temperature_rise_k |
motor-s1 | RMS torque, servo motors only, where the config has motor.stall_current_a (see S1 check) | The S1 torque at the mean speed (s1_torque) |
stepper-synchronism | A stepper’s highest load angle over the pass, electrical rad (above π it has lost steps); only for motor.kind = "stepper" (see stepper motor) | π/2, the pull-out angle |
motor-speed | Peak motor speed in rad/s, where the config gives a maximum speed (a catalogue motor does) | drive.max_speed_rad_s |
drive-current | RMS current | ratings.drive_rated_current_a: the drive’s rated output current (a drive by name sets it). The cycle’s RMS against the rated current: the power unit warms in seconds to minutes, about as long as a cycle |
drive-peak-current | Peak current; with effects.drive_current_limit the current the velocity loop asks for where that is higher (see drive current limit) | ratings.drive_max_current_a: the drive’s maximum output current. With the effect the simulated current stays within it, and a cycle that needs more lags and fails here; without, the motor’s maximum current stays the limit of the run |
drive-overload | With effects.drive_overload: the peak of the drive’s thermal image when the cycle repeats for long (1 at the rated current held) | The image’s trip level |
pulley-torque | Peak torque at the gearbox output | ratings.pulley_max_torque_nm |
gearbox-continuous | Cubic mean of the torque at the gearbox output, weighted with the speed | ratings.gearbox_rated_torque_nm |
gearbox-input-speed | Peak speed in r/min | ratings.gearbox_max_input_speed_rpm |
gearbox-peak | Peak torque at the gearbox output | ratings.gearbox_max_torque_nm |
dc-link-energy | See below | room = ½ C (U_th² − U_bus²). A threshold at or below U_bus is refused as out of range |
braking-resistor-continuous | See below | ratings.braking_resistor_continuous_w |
braking-resistor-peak | See below | ratings.braking_resistor_peak_w |
dc-link-overvoltage | Peak DC link voltage; only with effects.dc_link | ratings.dc_link_overvoltage_v |
line-module-continuous | Line module energy / cycle time: its mean power either way; only with effects.regenerative_supply | ratings.line_module_rated_power_w |
line-module-peak | Line module peak power either way; only with effects.regenerative_supply | ratings.line_module_max_power_w |
pulley-bearing-life | Rating life of the pulley shaft bearing, h. Passes at or above the limit | ratings.required_life_h |
gearbox-life | Life of the gearbox’s planet bearings, h; needs gearbox_rated_torque_nm and gearbox_reference_speed_rpm. Passes at or above the limit | ratings.required_life_h |
gearbox-gearing-life | Life of the gearbox’s gearing, h (see the lives above); no row where the cycle never exceeds M2N. Passes at or above the limit | ratings.required_life_h |
motor-bearing-life | Life of the motor’s own bearings, h, where the pulley sits on the motor shaft. Passes at or above the limit | ratings.required_life_h |
belt-tooth-load | The belt’s tooth load over its rating (see analysis quantities) | 1 |
The braking checks need dc_link_capacitance_uf and braking_threshold_v. They come in two forms:
Without effects.dc_link (estimated) | With it (simulated) | |
|---|---|---|
dc-link-energy value | Most the link would hold (the fill below, before the resistor) | ½ C (U_peak² − U_bus²) |
| Resistor needed | That fill > room | The resistor burned any energy |
braking-resistor-continuous value | What spills over the room per cycle / cycle time | Resistor energy / cycle time |
braking-resistor-peak value | Peak regenerated power | Peak resistor power |
dc-link-energy passes if the resistor is not needed, or if the config has a continuous resistor rating to fall back on. The two resistor checks appear only when the resistor is needed. The estimate keeps the link’s energy account over the cycle’s stretches of one sign (MotorLoad::regeneration_events): what a braking feeds back fills the capacitors, what is above their room goes to the resistor, and what the motor draws between brakings empties them first (down to the bus, no lower). Brakings with too little drawn between them add up, and the cycle is counted as repeated (the link enters it as the cycle before left it). A run keeps this account online (analysis::LinkAccount, the motor’s room from its ratings at the run): it keeps the stretches only until the link has emptied or filled whatever it held (from then on one fill stands for any entry), so the list no longer grows by one per sign change of the power (about 90 per cycle, without bound at rest with noisy power); a load built by hand gives the list. It leaves out the link’s own losses, so it errs high; on the T-gantry’s motor b it gives the simulated link’s 0.958 W, where all that is fed back would be 2.61 W (the_estimated_braking_resistor_power_is_not_below_the_simulated_one; single axis with 47 µF: 2 (2.983 − 0.620) J / 2.202 s = 2.146 W, verdicts_match_the_hand_calculation_and_fail_where_a_part_is_too_small).
For the machine:
| Check | Value | Limit |
|---|---|---|
settling | Dwell error peak | ratings.settling_tolerance_m |
settling-angle | The same for the turning axes on their own (an arm’s orientation, a turning tool or table), rad: no metres and radians added | ratings.settling_tolerance_rad |
tracking, tracking-angle | The tool’s most from where its setpoint was at the same moment while it moves (tracking_error_peak, lagging along the path included), of the axes in m and in rad each on its own; judged only where the config sets the limit, none shipped does. The drives’ following error window (drive.following_error_window_rad, p2546) trips a drive at its motor; this judges the tool | ratings.tracking_tolerance_m, ratings.tracking_tolerance_rad |
belt-tension | Highest belt tension | ratings.belt_max_tension_n |
belt-least-tension | Lowest belt tension | Passes if it is above ratings.belt_min_tension_n and no section spent any time slack |
gearbox-radial-load | Radial load peak | ratings.shaft_max_radial_load_n |
guide-load | Peak load of the reported guide | ratings.guide_max_load_n |
guide-life | Guide life in hours. Passes at or above the limit | ratings.required_life_h |
belt-tooth-jump | With effects.belt_tooth_jump: how often the belt’s teeth jumped over a driven pulley in the cycle (see belt tooth jump) | 0 |
belt-span-resonance | With effects.belt_span_vibration: the lowest distance of a span’s first sideways mode from an excitation at steady speed, as a share of the mode (see belt spans). Passes at or above the limit | ratings.belt_span_resonance_band |
gearbox-thermal | With effects.part_heating: where the hottest gearbox settles on the cycle, R_th × its mean loss (CycleLoad::part_rises, see thermal model); not judged on a direct drive, which has no gearbox | thermal.gearbox_max_rise_k |
guide-thermal | With effects.part_heating: where the hottest guide settles on the cycle | thermal.guide_max_rise_k |
thermal-warm-start | With effects.thermal_warm_start, where something that warms acts back on the run: the most a rise the measured pass started at lies from the one it settles at, K (see thermal warm start). No row: the pass started cold, or the change has no value (a run that stopped, a winding that does not settle), whose cause fails its own row (the trip’s, collision, motor-thermal) | 0.1 K (WARM_START_TOLERANCE_K) |
thermal-cycle-repeat | Only where the warm start converged neither per pass nor over a period: how far apart two passes started at the same rises settle, K. Beyond the tolerance the cycle’s motion does not repeat itself (motion left over from one pass, a load still swinging, carries into the next), which no start temperature settles | 0.1 K (WARM_START_TOLERANCE_K) |
collision | Where the config has obstacles: the least clearance to them over the run, m (see obstacles and crash). Passes at or above the limit, never at a contact (clearance 0 or less). Without obstacles it is not judged, so it cannot fail | profile.min_clearance_m |
self-collision | Where the machine has two parts not joined at its start pose: the least clearance between such parts over the run, m (the machine’s own parts, under obstacles and crash). Passes at or above the limit, never at a contact. Where it has none it is not judged | profile.min_clearance_m |
Without effects.part_heating (or effects.thermal_feedback, which warms the parts too) the two thermal checks are not judged, as a rating left out is not.
Gearbox and pulley torques are those at the gearbox output, the signals gearbox.<motor>.output_torque, looked at every simulation step: peak, and the cubic mean cbrt( Σ |τ_out|³ · |ω| / Σ |ω| ). The rotor’s own acceleration torque is not in them (it never passes through the gearbox), and the efficiency is: driving, the output carries η times what the gear’s spring transmits, driven back 1/η times. The motor torque times the ratio, which these checks used before, reads too high while the motor accelerates its own rotor and too low while the load drives the gearbox back. On a machine that does not report the signal the three checks are not made. In the elastic model the peak includes the ringing of the gear’s spring and the knocks of its backlash.
Obstacles and crash
Source: collision.rs, Sim::check_obstacles and Sim::pushes in sim.rs, the drives’ monitoring and fault reactions in fault.rs and Controller::react in control.rs. The config’s obstacles are boxes with their edges along the axes of the 3D view. What can hit one is Machine::collision_bodies, boxes of the machine’s scene at its state, and Machine::collision_capsules, its slanted parts as capsules (every point within a radius of a segment). By default the tool alone, as a point where the scene draws it; the T-gantry gives its Z axis, flange and payload, the single axis its carriage and payload, the D3 its platform and payload as boxes and its six forearm rods (radius 6 mm, half the 12 mm drawn) and three upper arms (20 mm) as capsules along the segments it draws, the D4 the D3’s and its telescope’s tube (15 mm) and inner shaft (8 mm) as capsules. The payload counts only while it is attached.
- Clearance between two boxes: the distance of their nearest points; where they overlap, minus the depth of the overlap: how far one would have to move to part from the other, along the axis where that is least. Between a capsule and a box: the least signed distance of the capsule’s segment to the box, less the radius. The signed distance of a point to a box is convex along a line, so its least along the segment is found by a golden-section search to the last bit of the segment’s parameter: exact, not a box around the slanted part (which made the D3’s rods up to 95 mm and its arms 40 mm wider than they are until 14 November). A contact is a clearance of 0 or less. The clearance of the machine is the least over its parts and the obstacles.
- Before a run (
check_path,check_cycle): the path is followed straight from pose to pose, at least every millimetre, with the machine at rest at each pose (Machine::equilibrium). The cycle goes from the start pose to its first target with the payload attached, then target to target with the payload as the segment before left it, and round from the last target to the first; a segment with via points follows the path the planner times through them. Corner blending is not followed: it cuts the corners, and the run is checked anyway. Reported are the least clearance and the first pose in contact. - The machine’s own parts (
PlanCheck::own, a figure apart from the obstacles’): at every posecheck_pathsamples, the least clearance between any two of the machine’s own parts that are not joined, overcollision_bodies(boxes, then the capsules ofMachine::self_collision_capsules, by defaultcollision_capsules). Box with box:Aabb::gap; capsule with box:Capsule::gap; capsule with capsule: the distance of the two segments (closest points of Ericson’s Real-Time Collision Detection 5.1.9) less both radii, negative in an overlap (up to the radii’s sum where the segments cross: the depth is not exact). Joined pairs are thoseMachine::connected_bodiesnames; by default (None) those that touch (within 1 nm,TOUCHING: faces drawn at the same place miss by rounding), overlap or lie closer thanprofile.min_clearance_mat the machine’s start pose, with the payload off and on (PlanCheck::at_start; a carriage on its rail, a payload on its carriage, a link at its joint), whatever pose a path starts from; a number of boxes and capsules the start pose did not show is joined at the first pose with it. The default rule cannot see a collision between parts already in contact, or nearer than the clearance, at the start pose: the four-arm delta’s (delta-h4) rods of neighbouring arms, capsules 6 and 8, start within its 25 mm clearance and so are joined, though they come within 14.3 mm of each other at one pose of the shipped cycle. The chain machines with links (Mechanism::collision_links: the URDF arms, SCARA and palletiser; their drawn “link” bars, radius half the width) give the exact adjacency: link i with i + 1, across a link of no length (coincident frames of a spherical wrist) to the next that has one, and with the links of no length at that one’s end (the point at a SCARA’s flange, a quill’s length from the arm before it whatever the pose); the tool’s boxes with the last two links of a length and those after them (the flange box reaches back over the link before the last). The base and the motors are not among the parts. The cost is linear in the samples (n (n - 1) / 2 pairs per sample, most spared by the distance of the parts’ extents; no allocation per pair, the table of joined pairs made once per number of parts); with fewer than two parts, or all joined, nothing is checked andownisNone: “not checked”, not “clear”. It is judged againstprofile.min_clearance_m(PlanCheck::own_fails: below it, or touching) and reported byrunandverdictsbefore the run; a time-optimal path that fails it is refused (error-path-self-collision). The run (Sim::own_parts) looks at the same pairs in the simulated state after the first base step and then every 1 ms (OWN_PARTS_EVERY_S: a look draws the machine, which on an arm costs about a step), also where the setpoint stands (a swinging load, a coasting axis); its least isCycleLoad::own_clearanceand the verdictself-collision. The machines’ steps are not touched: parts do not push each other in the simulation. - While it runs: after every base step. The simulation keeps the clearance now and the least so far (
Sim::clearance,least_clearance), marks the obstacles touched, and records the first contact: the time at the end of the step that found it, the tool’s pose and its speed (the length of its speed vector) then, and the obstacle; with the crash also the largest contact force since and the impact energy (below). - The check
collisionjudges the run’s least clearance (the way to the cycle and its first pass included) againstprofile.min_clearance_m. That key was the optimiser’s clearance over pick and place; it is now the one clearance the machine keeps, from the obstacles as well. A time-optimal path that comes nearer to an obstacle than it, or touches one, is refused (error-path-collision); a path planned within the axis limits is planned all the same and reported. The cycle optimiser judges every candidate by the verdicts, so it takes no lower lift that comes too near, and lowers each lift no further than its traverse keeps the clearance (see Optimiser below). - The crash (
effects.crash): an obstacle pushes back on a part that goes into it, with its contact stiffness k and damping c (stiffness_n_m,damping_n_s_min its entry; [estimate] 1e7 N/m, a steel fixture on a machine bed, and 1e4 N s/m, near critical for a few kilograms; [bounds] 1e6 to 1e8 N/m), F = k d + c ḋ for a depth d, pushing only. The axes in contact are blocked by it; the others go on, until the drives’ monitoring trips them (below) and each stops by its fault reaction. The push is a spring on the motors’ angles θ: before each base step, for every obstacle a part has come within 10 mm of, the depth d₀ of the rigid kinematics at the motors’ angles (forward, thenequilibrium, then the clearance, negated) and its slope g = ∂clearance/∂θ by central differences of 1 µrad are taken, and over the step d = d₀ − g · (θ − θ₀) and ḋ = −g · θ̇ at every stage of the integration, with the torques τ = F g added to the motors’ torques; the work −∫ τ · θ̇ dt it takes out of the machine is integrated with the motion and booked as the budget’scrashrow (Sim::crash_energy: what the damping lost and the spring holds), and the budget of the move into a box closes as the others do. At rest against a box a drive at its current limit T_max with ratio i and pulley radius r pushes F = T_max i / r (the single axis: 3.8 · 5 / 0.02 = 950 N). Reported: the force now (Sim::contact_force), and in the first contact the largest force since (peak_force) and the impact energy (impact_energy: the most work the pushes had taken out of the machine at any time since, at the deepest point of an impact the kinetic energy it took). The single axis at 1 m/s into a box: 9.8 kN at the impact, 3.1 J, with the push at the carriage (7.2 kN and 1.3 J when it was pushed at the motor); held there it pushes 958 N, the torque ripple (2 %) at the angle its motor then stands at (950 N without the ripple). The contact’s speed is the tool’s at the start of the step that found it, before the push braked it. On a machine that takes a force at its tool (Machine::set_tool_force: the machine files’ConfigMachine, the joint machines ofchain::JointMachine(screw, rack, linear-motor axes, rotary table, URDF arm, SCARA, palletiser, arm on track, mover track, hexapods, tripod, the crank and cam mechanisms) and the crates single axis, T-gantry, linear delta, H4, cable robots, parallel SCARA and wafer handler; the files’ linkage, spatial delta and scissor,sim_netlist::linkage,spatialandscissor, J^T F on the arms in their equations of motion, not their feedforward (with bending arms P^T F on the elbows and their moves beyond the tubes; h’ F on the scissor’s angle), and with them the D2, D3 and the D4, whose turn takes the push’s c component) the push acts there instead: d₀ is the clearance of the parts where they are (after the last step: the parts on the T-gantry’s leaning Z axis stand back from its tool point by the lean), g is taken along the tool’s coordinates x by the rigid kinematics, the force’s generalised forces go into the machine’s equations beyond its transmissions as the process force does, F · ∂v_tool/∂q̇ⱼ on each coordinate’s rate (sim_core::tool_force_on_rates, exact since the tool’s speed is linear in the rates; the joint machines take the joints’ Jacobian and the links’ bending modes’flex_shift; on the T-gantry the lean, sway and beam take their share, on the H4 with bending arms the elbows and their moves, with the amplifier’s compliance the tool’s turn; the extra axes of the parallel SCARA and the wafer handler’s lift their own), worked out at every stage, and the work −∫ F g · ẋ dt is thecrashrow as before (the budget of the single axis’s file into a wall closes to 3e-7 of the supply, the five-axis file’s tilted tip onto a slab to 1.1e-7 (8e-8 before its X and Y belts were loops round their far idlers, 1e-8 while the depth was the rigid kinematics’); with the force put straight on the joints that one was 17 % off; the crates’ moves into a slab close to between 3e-9 (tripod) and 2.3e-5 (T-gantry, 1.9e-5 the hexapod) of the supply and the potential energy’s change,collision.rs). The contact’s spring then acts on the load’s own coordinates, the machine’s highest frequency: over a base step with a push at the tool the sub-steps are four times finer (PUSH_SUBSTEPS; withsim.substepsalone the fourth-order steps left 3.5e-4 of the T-gantry’s and 2.8e-4 of the hexapod’s budget, falling with the third and second power of the sub-step), and finer still where a machine asks (Machine::push_substeps: the T-gantry with the lean four times more, its lean held by the contact’s spring through its lever, a mode faster than the load’s on the belt; its move into a slab left 6.3e-5 of the supply at four times, 2.3e-5 at sixteen). The joint machines take the push’s Jacobian again only where the joints have moved 1e-5 from where it was taken (the hexapod’s move into a slab: 39 s against 63 s). After each step the machine is given the push at the step’s end, which the losses sampled then see. Where the parts that can touch do not move with the tool alone, the push acts on contact coordinates of their own (Machine::contact_state,contact_placed, the slopes taken by moving them, the work booked through their rates): the T-gantry with its leaning Z axis (witheffects.tool_flex: the elastic model’s own coordinates x, z, the frame’s sway q, the lean u and the beam’s deflection, so that the slopes along them are those of whichever part touches, the payload or the Z axis’s foot, whose speeds differ by the lean’s rate times their distance; pushed at the payload’s point alone the foot, leaning on as the payload stood at the slab, went into it unheld and the move sprang back off it;a_leaning_z_axis_is_pushed_on_its_coordinates_at_whichever_part_touches), the crane’s load (the hook’s point with the payload under it, witheffects.hook_blockthe hook block’s and the payload’s points; the bridge travelling into a slab, the payload stands at its face by F / k and the budget closes to 7e-8) and the winder’s dancer (its travel, in the dancer’s balance; it stands on a slab by F / k at 141 N). A load on a soft belt then stops at the obstacle’s face (0.096 mm in it at 961 N, F / k; the single axis crate 0.0943 mm at 943 N, its impact at most 0.38 mm deep), where pushed at the motors it swings on into it by its transmission’s give (2.6 mm on the single axis’s belt at 1 m/s, 2.8 mm in the test’s move) and springs back. No machine keeps that since 22 November. The power identity is checked for every machine that takes the push: grad E · (ṡ with F − ṡ without) = F · v to 1e-5, v the contact coordinates’ rates (a_push_at_the_tool_works_on_the_machine_at_the_tools_speed). Witheffects.base_compliancethe base’s deflections are contact coordinates of their own after the machine’s (base::Based::contact_state): the slopes along them are taken by deflecting the base (the parts moved with it), and the push’s generalised forces on them act on the base directly (Based::pushed); before, the push reached the base through the tool’s move by the base’s deflection, which is the touching part’s only where it is at the tool (the T-gantry with its lean sprang back off a slab on its base). It does not act through the machine’s outside force (FrameMomentum::externalleaves it out: booked there and in the crash row it was counted twice, 9e-4 of the supply on the single axis); two-way (effects.base_reaction) its budget closes to 6.5e-7. One-way the base is outside the budget (neither its energy nor its damping is booked: the machine does not feel it, and nothing in the budget drives it), so there the contact coordinates’ rates leave the base’s out and the crash row books the push’s work on the machine alone (Based::contact_state); the push still deflects the base, F / k_base (Based::pushed), and the budget closes to 7e-7. One-way the T-gantry with its lean does not hold at a slab: the machine does not feel the base, yet the contact pins its parts to the ground, so the base’s sway moves them in the machine’s own frame and comes back to the base as a load that is not its own; the base’s sway grows (0.8 mm away from the slab to 9 mm, the move springs back), where two-way it stands by F / k (budget 2.6e-5) and one-way without the lean or on a stiff base it settles too (8.9e-4 off while the crash row booked the work on the base as well). The machine files’ outside force (FrameMomentum::external) leaves the push out too (ConfigMachine, the linkage and the spatial delta): there it pushed the base a second time, 2 F / k_base back (0.78 against 0.39 mm on the single-axis file, 0.129 against 0.064 mm on the planar delta file). Off, contacts are still found and reported, and the machine moves through the obstacle. - Drive monitoring (
effects.drive_monitoring): each drive watches, every base step after its loops (fault::Watch), in this order: its following error againstdrive.following_error_window_rad(S120 p2546); once its setpoint has stood still forstandstill_time_s, the following error against the tighterstandstill_window_rad(p2542, p2543); whether its velocity loop has asked for more than the torque limit while the motor turned slower thanblocked_speed_rad_sforblocked_time_s(“motor blocked”, F07900 with p2175 and p2177); and, wheretorque_bandis above 0, its torque against the torque the model expects (its torque feedforward, before its weight), out by more than that share of the peak torque, as a robot controller detects a collision (withdrive.torque_feedforward_model = "inertia"that feedforward has no gravity, so the expected torque adds what the rigid model needs to hold the planned pose, its torque at that pose at rest, which the controller works out with the setpoints: a held load is expected, a lasting extra load is not; and the friction the machine’s own model takes of the motor’s torque at the machine’s state, its signalmotor.<id>.torque_friction, so the guides’ bristles, the shaft’s breakaway and the gearbox’s mesh friction count as they act through a start or a reversal, where the steady friction at the planned speed, which the monitor took before 17 November 2026, was off by nine tenths of the friction as the axis broke away behind the plan (the_torque_band_expects_the_model_s_friction_through_a_reversal: within 0.038 N m against 0.089 of a 0.098 N m friction, the rest the axis catching up with the plan; a machine that does not report the signal still gets the friction at the planned speed, the drive’s characteristic where it has one, elsesteady_friction), so a band of the friction’s size trips nothing on the hanging single axis with its friction on,the_torque_band_expects_the_friction_at_the_planned_speed). The first monitor that trips stops every drive by its fault reaction and drops the move or cycle;Controller::faultrecords which monitor of which drive, when, the tool pose then, how far each tool axis has gone since (the stopping distance) and when the machine stood. A blocked axis trips on its following error when that crosses the window: the setpoint runs on at its speed ω while the motor stands, so some window / ω after the contact (the single axis at 1 m/s: 1 rad / 250 rad/s = 4 ms, seen at the position loop’s next cycle). Enabling the drives acknowledges the trip. The windows are settings, not physical values: [estimate] 1 rad (5 mm on a linear motor), 0.1 rad after 1 s, 3 s below 12.57 rad/s (120 r/min, the S120 defaults), no torque band; no shipped cycle trips with them. - Fault reactions (
drive.fault_reaction, per motor as[drive.<id>]):off1ramps the speed setpoint down from the speed at the trip at the rated speed overoff1_ramp_s(p1121),off3overoff3_ramp_s(p1135; on the drive both ramp times count from its maximum speed p1082, not the motor’s rated speed, whichsim-cli parametersconverts: p1121 =off1_ramp_s· p1082 / rated), with the velocity and current loops following it and the position loop open;current_limitdrops the setpoint to zero at once, so the velocity loop brakes at the torque limit;stotakes the pulses off at once and the motor coasts. A ramping drive takes its pulses off once its ramp is down and its motor belowpulse_off_speed_rad_s(p1226). A drive with its pulses off gives no torque and its winding is left out of the integration, while the others may still ramp. When the last is off the drives are disabled and holding brakes engage (effects.holding_brake; the brake is the machine’s, for all axes at once). An axis not in contact, on OFF3 with ramp time t and rated speed n, stops within v² / (2a), a = n / t · r / i at the carriage, plus the speed loop’s lag behind the ramp (about a millisecond): the xyz portal’s X axis from 0.8 m/s in 26.3 mm against 25.5 mm by hand, on OFF1 in 254.9 mm against 254.8 mm, on STO without a brake coasting 148 mm on its friction. The holding brake is the machine’s (Controller::brake_engaged, one for all axes), engaged once all drives are off, not per axis as each stops.
Hand calculations in sim-machines/tests/collision.rs, sim-core/src/scene.rs, fault.rs and machine-delta-d3/src/tests.rs: a box beside a straight move of the single axis keeps 0.13 m, planned and run; a move into a box at 1 m/s is blocked at its face at x = 0.47 with an impact speed of 1 m/s and trips on the following error 4 to 6 ms after the contact; unmonitored, it pushes the box with 950 N at its current limit; the xyz portal’s X axis stops on OFF3 and OFF1 within v² / (2a) while its Z axis is blocked on a slab; a capsule slanted at 45 degrees keeps (0.2 − 0.1) / √2 − 0.006 = 64.711 mm from a cube; a D3 rod is no wider than its 6 mm radius plus 0.1 mm; a point inside a cube is as deep as its way out; each monitor trips at the step counted by hand; a box under the T-gantry’s traverse keeps 0.048 m, which fails at the default 0.3 m and passes at 0.04 m.
Picking from a conveyor
Source: conveyor.rs, the conveyor cycle in control.rs. With a [conveyor] table the cycle picks parts from a moving belt, one pass per part, on any machine whose tool axes are Cartesian positions; it knows the machine through its tool pose, axis limits and range alone.
- The belt and its parts: the belt has run S(t) = v t from the start, or v t² / (2 t_r) during a ramp of t_r (then v (t − t_r / 2)); part k passes the origin at its arrival time and is S(t) − S(arrival) along the belt from there, its grip pose the origin plus that times the belt’s direction.
- A move of a pass is a superposition: a jerk-limited straight move (
profile::Move, as a cycle segment’s) from where the phase starts to a point Q, plus a belt term whose velocity blends from the start velocity va to the end velocity vb as va + (vb − va) h(u), h(u) = 3u² − 2u³, u = t / T. The blend has no acceleration at either end, so the phases join without a jump in acceleration; it covers T (va + vb) / 2. A target that is at P now and moves with vb is met at T, with its velocity, where Q = P + T (vb − va) / 2. - The intercept: the move is planned with each axis’s limits less what the belt term takes: max(|va|, |vb|) of the speed, 1.5 |vb − va| / T of the acceleration (the blend’s peak, at u = 1/2) and 6 |vb − va| / T² of the jerk (at its ends). Since these and Q depend on T, T is the shortest time in which the move to Q fits into T, found by bisection (60 halvings from a bracket found by doubling); with va = vb at once, the move’s own time. For a trapezoidal move with cruise it is the root of a α T² − (α c + a β + v′) T + β c = 0 (α = 1 − v / (2 v′), β = D / v′, c = 1.5 v, v′ = v_max − v), which the test checks. The sum of move and belt term keeps the axis limits; as the reservations hold over the whole move, it may use less than them: a faster belt makes the moves gentler and longer, and so need not raise the RMS torque (the validation has an 11 % fall).
- A pass, from rest above the place (or the start pose): to above the part (va = 0, vb = the belt’s velocity), down onto it, the grip (
grip_s) and up (all with the belt’s velocity, the move only along the lift), to above the place (vb = the place’s velocity), down, the release (release_s), up, and from a moving place to rest above it. The payload is attached at the end of the grip and let go at the end of the release. - During the belt’s ramp the part speeds up: the intercept meets it where it is at T, P(T), with its velocity then, vb(T), by Q = P(T) − T (va + vb(T)) / 2 (the same bisection), and the grip follows the belt’s own motion S(t). The setpoint’s acceleration steps by the belt’s, v / t_r, where the grip begins and ends.
- With input shaping the shaped setpoint of a plan at the belt’s speed lags it by the mean of the shaper’s delays, Σ A_i t_i, and is on the plan only once the whole shaper (its last delay) has passed. So the pass is planned for the part that mean ahead on each axis, and the grip and the release last their time plus the shaper’s span; the grip as the gripper and the tracking error count it begins once the shaped setpoint is on the part, and lasts
grip_s. Planned without this, the tool trailed a part on a belt at v by v Σ A_i t_i through the grip (10 mm for a 25 Hz ZVD at 0.5 m/s). - Waiting and missing: passes start also while the belt speeds up. The first part not yet planned for is taken; where the grip would begin before the window, the pass starts later, at the time found by bisection at which it begins at the window’s start; on a belt that stands, not before the part has arrived. Where the grip would end beyond the window, or a pose of the pass (every 5 ms) leaves the machine’s range, the part is missed and the next is taken. After a thousand misses in a row the cycle ends, and the analysis says that no part can be picked (
error-conveyor-unreachable). - Results (
CycleLoad::conveyor): the measured pass is one pick, so the picks a minute are 60 / its time; a machine faster than the parts waits, and its passes come a pitch apart. The tracking error is the most the tool’s measured pose, taken along the belt, was from the part’s during the grip. The parts missed a minute are those the belt brings beyond the picks a minute, or those missed in the measured pass, whichever is more: one pass cannot see misses that come in bursts. The verdicts arepick-tracking(againstconveyor.tracking_tolerance_m) andparts-missed(against 0). - Obstacles:
check_cycleplans the passes for two pitches’ worth of parts from the start pose at time 0 (without input shaping) and checks them every 5 ms with the payload as each holds it; the live check (see above) judges the run, andcollisionfails where a pass comes too near. - The optimiser leaves
[[cycle.segment]]alone with a conveyor (it does not run): it tries no lifts or via points, only the limits and switches. - The scene draws the belt as a band under the grip poses (300 mm wide), slats every 100 mm that run with the belt, and each part on it that is not in the gripper as a 50 mm cube.
Simplifications (not marked in the code): the acceleration step at the grip’s ends during the belt’s ramp; the shaper’s lead is the mean delay at the pose the pass starts from (a shaper that follows the pose may differ at the part); the reserved limits are conservative (the moves are slower than a planner that shares the limits along the move would make them); the second belt carries no parts in the scene, and its slot is wherever the place pose is when the tool leaves for it.
Other analyses
| Analysis | Definition |
|---|---|
| Error bands | The cycle is run with the config as it is and with each parameter of [bounds] at its low and at its high value, one at a time. A bound on a value that only an effect that is off uses ([thermal] without effects.part_heating or thermal_feedback, [thermal_feedback] without effects.thermal_feedback, belt.tooth_jump_factor without effects.belt_tooth_jump, ratings.line_module_efficiency without effects.regenerative_supply), or that no cycle uses (ratings.dc_link_discharge_time_constant_s, which acts only while the drives are disabled), gets no runs, here and in the sensitivity. A band is the envelope of the verdict’s value over all runs; the worst case passes only if every run passes. The runs share the processor cores |
| Sampled error bands | --bands --samples N: N runs with every parameter of [bounds] between its bounds at once, as a Latin hypercube: the range of each parameter is cut into N equal parts, each part is used in exactly one run at a random place inside it, and each parameter has its parts in a random order of its own. Random numbers from the simulator’s own generator and a seed, so a call repeats. Reported per check: the envelope, the worst case, and the share of the runs (the config as it is among them) that pass; a run in which a check does not come up has passed it. It finds what two or more values do together; it does not put a value exactly on a bound, and N runs do not find the worst of the 2ⁿ corners |
| Worst corner | --bands --worst (analysis::verdict_worst): per verdict a search among the 2ⁿ corners. (1) The one-at-a-time runs above. (2) The corner where each parameter is at the bound that made this verdict worse alone (at its high bound where it moved the verdict not at all); for a verdict that is monotone in each parameter and whose effects do not depend on each other, that is the worst corner. (3) Up to WORST_PASSES = 3 passes: every parameter that moved the verdict alone is flipped to its other bound, one at a time; the flips that made it worse are taken together, and the worse of that corner and the best single flip becomes the corner if it is worse than before; a pass that finds nothing worse ends it. “Worse” is the margin, value − limit (limit − value for belt-least-tension and the lives, AT_LEAST), not the value, because some limits are bounded too (DC link capacitance and threshold). dc-link-energy is the exception: it fails only where the braking resistor is needed and has no rating, and with a resistor the link fills up to its room at every corner that brakes hard (margin 0 at all of them), so it is ranked by the energy in the capacitors, a failing run above any passing one. A corner is run once for all verdicts that land on it; reported per verdict is the worst at any run, the one-at-a-time runs and the config as it is included (so the worst is never better than the bands), with its value, limit, result and where the parameters were (a parameter left as configured is at neither bound). Cost: 2n + 1 runs, plus per pass up to the number of parameters per verdict; on the EXCT-30 (24 checks) 3101 cycles on the command line on 21 November 2026, on the single axis (14) about 300 in 3.5 s. A search, not a proof: a worst case that no chain of single flips from the sign corner reaches, or one inside the bounds (a resonance hit by a stiffness between them), can be missed |
| Sensitivity | The same runs, reported as relative changes of peak torque and RMS torque (each of the motor it changes most) and of the cycle time. Ranked by the largest of these six changes |
| Optimiser | Starts from the config. Candidates: toggle corner blending, switch input shaping off where it is on, raise velocity, acceleration or jerk of all axes by 1.5 or 1.2. A candidate without input shaping that fails settling and nothing else is run again with the shaper, and with the shaper following the pose where the machine reports a resonance; one with the shaper that still fails settling alone, with a second shaper at profile.shaper2_frequency_hz, or where that is 0 at the machine’s second mode a shaper acts on at the start pose (Machine::sway_modes; the crane’s upper swing with the hook block, 2.55 Hz), or with one alone at the resonance the machine reports there if that is more than 10 % off shaper_frequency_hz (analysis::second_shaper_frequency; the crane without the hook block: none, its one swing is the first shaper’s). Where a second shaper is on, switching it off is a candidate too. The first of these that is shorter by more than 0.1 ms, has no motor-limit violation and passes every verdict is taken; repeat until none is. Geometry (analysis::lifts): a lift, traverse and lower is three segments in a row of which the first moves along the last axis only, away from both the start (the target before) and the end of the three, the second along the other axes only at that height, the third along the last axis only; the first two neither dwell nor change the payload. Its lowest height is the farther of the two ends plus profile.min_clearance_m. Candidates, before all others: every lift at its lowest, then each alone at its lowest and halfway there. After all others: a lift rounded through a via point (control::via_pieces: a line straight up from the start to the lift height, a spline through the via point to the point straight above the end, a line down; timed by path::plan within the axis limits, with the transition curves of profile.path_tolerance_m), the via point at the middle and 1/2, 1/4, 1/8 of the width above the lift height; a via point moved by 1/8 or 1/32 of the width along each axis; the rounding dropped. A via candidate whose planned poses between the two ends (along the other axes) come nearer to the ends than the lowest height, less the path tolerance, is not run. The new cycle is reported as a whole (changes entry cycle.segment, applied by set_text) and per lift (Optimised::lifts). On the default T-gantry with a clearance of 0.1 m the lifts go to 0.15 m and the cycle from 6.08 s to 2.228 s with the other steps (2.344 s robust; sim-cli optimise t-gantry --set profile.min_clearance_m=0.1 [--nominal], 17 November 2026 and re-run 21 November; 3.36 and 3.44 s before); a rounded lift never won there (300 runs, with and without a path tolerance of 2 mm): the arch’s curvature and its slower speed cost more than the two stops it saves. Obstacles (over_obstacles): where the config has obstacles, a lift’s lowest height is the lowest at which its traverse, followed straight at that height with the machine at rest every millimetre (as check_path), keeps the clearance to them with the collision bodies; from the height above, it is moved by what the clearance lacks (or has too much, never below the height above) until it is the clearance to 1 nm, at most 40 times within the axis range (none found: the lift is not lowered). The bodies move with the last axis one to one, so a box across the traverse is cleared in one step: lift = top of the box + clearance + how far the lowest body reaches below the tool. The run sways a little (0.05 mm on the T-gantry), so a candidate that fails collision alone by less than 1 mm is run again, at most twice, with the lifts the obstacles raised higher by what it lacked and 1 µm. A lift an obstacle raised is also tried rounded through a via point over the obstacle’s nearest pose at that height and 1/8 of the width above it, its ends at the height above pick and place; every via candidate’s planned path is checked against the obstacles (clearance kept) before it runs. Profile (profile, lift_profiles): per obstacle, over_obstacles with it alone; those it raises are in the way, with the stretch of the traverse (every mm, at the lowest height, at rest) nearer to it than the clearance; overlapping stretches merged at the higher height; with two or more, two via points per stretch at its height, at its ends. The ends of the path at the height above pick and place. The planned spline is checked as every via candidate, and where it lacks clearance, all points are raised by what it lacks and 1 µm, three times at most; a profile that still lacks it is dropped. It is a candidate beside the via over the nearest pose; a profile is not moved, only kept or dropped. Robust (OptimiseOptions::robust; sim-cli optimise without --nominal, the app with “error bands” ticked): the fastest setting found is judged with the error bands (one bound at a time, 2n + 1 runs); where it fails a check there that the cycle as configured passes there, the accepted steps of the search are judged from the fastest down, each 2n + 1 runs, until one passes; the cycle as configured passes by definition. A step that fails collision alone in the bands, by less than 1 mm, is judged again (one run and its bands) with the lifts the obstacles raised higher by what the bands lacked and 1 µm. Checks the configured cycle fails in its bands already are reported (Robust::excused) and not judged. EXCT-30 (21 November 2026): the search’s 1.390 s fails belt-least-tension and settling in the bands; four steps back, 1.756 s, passes; 6 × 139 = 834 band runs, nothing excused. Default T-gantry: 3.244 s fails settling, one step back, 3.248 s, passes; 3 × 63 = 189. Worst corner (OptimiseOptions::worst; sim-cli optimise --worst, the app with “worst corner” ticked): the same, judged with verdict_worst in place of the bands. The search stops after the first batch of runs (the 2n + 1 runs alone, the corners, a pass’s single flips, its combined flips) in which a check judged on fails; it starts per verdict from the sign corner and from the previous judged step’s worst corner (its parameters left as configured at the sign corner’s bound), the worse of the two. The fastest is judged first, stopping at any failure; where it fails, the configured cycle is searched whole for the excused checks, the fastest judged again on the rest where it failed only excused checks or collision, then the accepted steps from the fastest down until one passes (step 0 passes by definition): pass and fail need not follow the steps, so none above the result is left out (fastest_passing; until 17 November a bisection, which could end below a faster step that passes). EXCT-30 (17 November 2026, from the fastest down): the fastest (1.390 s) fails belt-least-tension and settling at the corner, and so does every one of the eight steps, pulley-bearing-life excused; the result is the configured 2.048 s, 5444 corner runs, 63 min on 4 threads (21 November 2026: the same result, 5371 corner runs) (the bisection judged three steps of seven, 3001 runs). Default T-gantry (26 November 2026): the search’s 3.244 s fails at the corner; four steps back, 3.382 s (velocity × 1.8, acceleration and jerk × 1.5, corner blending on) passes, settling the tightest at 0.0968 of 0.1 mm; 3769 corner runs. Not the default for that time. Front (OptimiseOptions::pareto): every setting run that passes every verdict, and from the result its acceleration and jerk, and all three limits, times 0.8, 0.6 and 0.4 (six runs), as (cycle time, energy per cycle from the supply, highest MotorLoad::utilisation); kept are those no other is as good as in all three and better in one (non_dominated). Energy from the supply (supply_energy): what the drives drew less what they fed back, plus what the braking resistor burned (a shared one once); with the DC link simulated also what the bleeders took and the line module’s (or rectifier’s) loss, (1/η − 1) of what it put into the DC link and (1 − η) of what it fed back, so that it is what the line gave less what the mains got back (the_supply_energy_closes_with_the_dc_links_books, within 1e-6) |
| Frequency sweep | No control. A sine torque on one motor on top of the holding torques; that motor’s speed is correlated with sine and cosine over whole periods (at least 0.2 s) after settling (at least 0.3 s). Gain in rad/s per N m |
| Step response | The machine settles for 0.05 s, then the position setpoint of one axis is offset by the step size, without feedforward. Rise time 10 % to 90 %; overshoot as a fraction; settling to within 2 % |
| Closed-loop response | Without feedforward, as the step response: a sine offset on the position setpoint, measured at the tool. Bandwidth: where the gain first falls below 1/√2, interpolated on the logarithmic frequency axis |
| Motor search | See the user guide. Velocity gain of a candidate = the config’s gain × sqrt( ratio of inertia seen × ratio of rotor inertias ), rotor inertia with the gearbox’s own, against the config’s own numbers. The same rule applies wherever a part is named ([parts], --motor, --gearbox). “Tightest check” leaves out dc-link-overvoltage and, with a braking resistor in use, dc-link-energy while they pass. Duty mix (search::mix_verdicts_with): over several duties (weight, cycle) each check is the worst duty’s (failing before passing, then the highest utilisation), but the heat goes over the mix as the duties take turns, each for its weight times its cycle time, in the order given, over and over: the periodic state of the winding’s thermal model (one node, or winding and housing with effects.motor_thermal_nodes, with each duty’s settled rise and iron loss, winding_stretch), whose peak is found in closed form (periodic_peak: a period maps the state x₀ to M x₀ + v, the periodic state is (I − M)⁻¹ v, and within a stretch the output has at most one turning point). motor-thermal is the highest winding rise of that state; drive-current the root of the highest of the drive’s thermal image driven by each duty’s mean square current where the config has ratings.drive_overload_time_constant_s (else the time-weighted RMS, sqrt(Σ w RMS² t / Σ w t)); motor-s1 each duty’s (RMS torque / S1 limit)² through the motor’s one node. Duties much shorter than the time constants give the heat of the mix’s mean, much longer ones the worst duty’s own; in between the order matters. Cycle time and supply energy are the means per cycle, weighted by the duties’ weights |
Positioning accuracy
accuracy::study (sim-cli accuracy, ks.accuracy) runs each tool axis through ISO 230-2’s linear cycle and judges the real tool pose at rest; see the user guide for the procedure.
| Quantity | Definition |
|---|---|
| Deviation x_ij | Real tool position less the target, averaged over the last tenth of the rest at target j, approach i |
| x̄↑, x̄↓, s↑, s↓ | Mean and sample standard deviation (n − 1) of the approaches from below and from above |
| B | max_j |x̄↑ − x̄↓| |
| R | max_j max(2s↑ + 2s↓ + |x̄↑ − x̄↓|, 4s↑, 4s↓) |
| E | max of all x̄↑, x̄↓ − min of them |
| M | max_j (x̄↑ + x̄↓)/2 − min_j of the same |
| A | max_j max(x̄↑ + 2s↑, x̄↓ + 2s↓) − min_j min(x̄↑ − 2s↑, x̄↓ − 2s↓) |
| AP, RP, vAP (tool) | Over the axes in metres, per target and direction: the distance of the barycentre of the attained poses from the target; l̄ + 3 S_l, l the distances from the barycentre; the distance between the two directions’ barycentres. Each the largest over targets and directions |
Thermal growth (effects.thermal_growth) and lead error (effects.lead_error), both optional keys, off where a config does not have them, for the axes of accuracy.axes: the real position is x + α (ΔT_config + ΔT_part) (x − x_fixed) + e(x), x the position the controller holds, α accuracy.screw_expansion_per_k (11.5e-6 / K, hardened bearing steel) or accuracy.belt_expansion_per_k (11.5e-6 / K, [estimate]: the steel tension cords set the pitch; no belt datasheet found gives a coefficient; a glass-fibre cord would be about 5e-6, aramid about −2e-6), ΔT_part the rise of the named heated part (Sim::heated), e the lead error table linear between its rows and constant beyond them. The map is applied to the measured tool pose, not inside the machine’s equations: a lead changed by 1e-4 changes the inertia the motor sees by 2e-4, far below what matters for a static test. With effects.load_encoder neither is applied.
Effect views
Sources: losses and view_signals (the machine’s loss_powers and effect_signals) in each machine’s lib.rs; Lugre::steady, Lugre::split and the loss_power functions in mech.rs; EnergyBudget, Tally, Comparison and compare_effect in analysis.rs; HeatedPart and Sim::scene in sim.rs; the conventions TORQUE_PARTS, LOSS_PREFIX, ENERGY_PARTS, FRICTION_SIGNALS, THERMAL_KINDS, TEMPERATURE_PREFIX and the methods friction_contacts, friction_curve, belt_sections and thermal_parts in machine.rs.
A machine tells the effect views what it knows through signals with fixed names and four methods with defaults; a machine that has none of them still runs, and the views say nothing about it. Front ends and the analysis find the signals by their names only.
Cost. The torque breakdown needs the machine’s accelerations, one more evaluation of its derivatives. So the machine gives its signals in two parts: base_signals (tensions, guide loads, gearbox torques: what the verdicts look at every step) and effect_signals (the signals of the views, after them), and the loss powers alone as loss_powers, without derivatives. Sim::sample and run take both parts; Sim::step takes only the loss powers, and only with effects.part_heating or thermal_feedback; the analysis adds up breakdown and budget only where they are asked for (analyse_cycle_with(sim, views): the app’s analysis and sim-cli analyze --breakdown/--budget ask, bands, sensitivity, optimiser and motor search do not). Every number is the same either way (the_cheap_signals_and_the_lean_analysis_change_no_number).
Run time of the analyses (13 November). Where a cycle run’s time goes, release build, measured on one run each: the integration of the machine (16 evaluations of its derivatives per base step: RK4 with 4 sub-steps, 176 ns each on the T-gantry) is 90 %; the analysis’s tally 10 %, of which the path error (the tool against the last 500 setpoints, every millisecond) was 6 %, the machine’s own signals every step 2 %, the sample of all signals every millisecond 1 %. Changed without changing a number: the sensitivity’s runs share the processor cores (they ran one after the other); the tally samples only the signals of base_signals where every signal it looks at is among them (Sim::sample_base); the path error skips a piece of setpoint path that the tool is beyond along one axis by more than the nearest distance found so far (plus 1 pm), looking at the newest pieces first, and reuses the oldest setpoint’s storage; the bands and the worst-corner search in the app share their first 2 n + 1 runs (verdict_worst_and_bands). The searches were on all cores already, and 8 cores with 16 threads are the limit there.
Torque breakdown
Per motor four signals motor.<id>.torque_inertia, _gravity, _friction, _rest. The machine’s own forces are mapped onto the motors with the transpose of its rigid kinematics, the mapping the torque feedforward uses. T-gantry, with k_r = r / (2 i) and s = +1 for motor A, −1 for B:
inertia = k_r · (I_x + s · I_z)
I_x = m_c · (ẍ + q̈) + m_z · (ẍ + q̈ + ü) + m_M · ẍ + m′ · w · (v_x − w/2) elastic
I_x = (m_x + m_M + m_idler,x + m_chain(x)) · a_x + ½ · m′ · v_x² rigid
I_z = (m_z + m_idler,z + m_M) · z̈
gravity = s · k_r · m_z · g
friction = τ_shaft(ω) + τ_brake + τ_gear loss + k_r · (F_f,x + F_idler,x + drag + s · (F_f,z + F_idler,z))
rest = τ − inertia − gravity − friction
m_M = 2 (J_pulley + i² J_rotor) / r² is both pulleys and both rotors seen at the tool; m_c is the carriage with its idler and chain mass; w the carriage’s speed over ground. The gearbox loss at the rotor is τ_g / i − τ_out / i in the elastic model (what the rotor gives the gear less what reaches the pulley, over the ratio) and (τ_through − τ_out) / i in the rigid one. Single axis, with r / i in place of k_r: inertia = r / i · ((m + J / r²) · a + ½ m′ v²) with J = J_pulley + i² J_rotor, gravity = r / i · m g sin(incline), friction = τ_shaft + τ_brake + τ_gear loss + r / i · (F_f + drag).
Inertia is taken at the load’s acceleration, with rotors and pulleys turning as a rigid machine would turn them at it. Rotors and pulleys that ring against the load on the belt or knock through the gearbox backlash are then in the rest, together with the belt force that drives the ringing. Taken at the rotors’ own accelerations instead, the backlash knocks of the default T-gantry put peaks of 1.3 N m into the inertia part and the opposite into the rest, with a peak motor torque of 0.64 N m (measured before the winding was integrated with the mechanics; 0.67 N m now).
The rest holds: the belt’s and the gearbox’s elastic forces beyond what the load needs (stretch, ringing, backlash), the force of the leaning Z axis’s spring on Z, ripple and cogging (τ − ripple(τ)), tooth meshing, the process force and the end stops. In the rigid model only ripple, meshing, process force and end stops are left; with those off, the rest of a rigid model is zero to rounding (a_pure_inertia_move_is_all_inertia).
The parts add up to the motor torque at every step to rounding (1e-9 relative is tested), because the rest is defined as what the other three leave. A breakdown that left the rest out would have to add up by itself; this one cannot fail to, so what the tests check is that the three named parts are right (hand calculations) and that the rest is nothing where nothing elastic is.
The analysis looks at the parts every step and reports per part its peak of |value| and its RMS (MotorLoad::torque_parts). Peaks and RMS values of the parts do not add up to those of the torque: they come at different times.
Loss powers and energy parts
Signals power.<place> in W. Each is what goes into a place of the machine less what that place stores, so that together they close the machine’s balance: the work of the motor torques Σ τ_k Δφ_k equals the change of Machine::energy plus the time integral of all power.* (testkit::loss_budget, 0.1 %; measured 1e-4).
| Signal | Power |
|---|---|
power.guide_x, power.guide_z | F_f · v, the LuGre force times the guide’s speed. Counts what the bristles store as lost; that is below a millijoule |
power.idlers | F_idler,x · v_x + F_idler,z · v_z |
power.cable_chain | drag · v_x |
power.shaft_<motor> | (τ_shaft(ω) + τ_brake) · ω |
power.gearbox_<motor> | Elastic: (τ_g / i) · ω − τ_out · θ̇ − k_g · twist · (ω / i − θ̇), the efficiency loss and the damping. Rigid: (τ_through − τ_out) / i · ω. On a direct drive (ratio 1, Gearbox::is_coupling) the [gearbox] table is the coupling, and this is the coupling’s damping c_g · (ω − θ̇)², labelled “Coupling damping loss”: the EXCT-30’s 9.1e-5 J per cycle |
power.belt | Per section T · d(geo)/dt − M · d(mat)/dt − dV/dt; c_s · (rate)² while taut |
power.frame, power.tool_flex | c_f · q̇², c_u · u̇² |
power.hard_stops | −(F_stop + k_s · beyond) · v per axis |
power.other | (τ − ripple(τ)) · ω per motor, less what the tooth meshing and the process force put in. What the process takes is work done on the workpiece; ripple and meshing can give or take |
Signals energy.kinetic, energy.potential, energy.elastic in J; they add up to Machine::energy. Elastic is belt, gearbox springs, frame spring, the leaning Z axis’s spring and the end stops.
Energy budget
EnergyBudget of a cycle or path, over the measured pass (for a cycle from the state after the step in which the pass begins):
supply = Σ P · dt drives' electrical power, net; without the DC link
= Σ drawn with effects.dc_link: what the rectifier (or line module) drew from the line
rows = copper loss per motor Σ E_cu integrated with the mechanics (see the winding)
+ braking resistor (with the DC link; a shared link's one resistor once)
+ DC link discharge of drives switched off with the DC link: ½ C (U² − U'²) per step through the bleeder
+ fed back into the mains with effects.regenerative_supply
+ line module (or rectifier) loss with effects.dc_link: (1/η − 1) of what it put into the link + (1 − η) of what it fed back
+ every power.* · dt
+ ΔE windings (½ L i² of all motors)
+ ΔE capacitors (with the DC link)
+ Δenergy.kinetic, Δenergy.potential, Δenergy.elastic
+ carried off with the payload = −(sum of the steps of Machine::energy when the payload switched)
+ crash = work the obstacles' pushes took out of the machine with effects.crash
unaccounted = supply − rows
electrical = supply − copper − resistor − discharge − mains − line module − ΔE windings − ΔE capacitors − Σ W (W: shaft work)
η is ratings.line_module_efficiency (a link of its own takes its motor’s): an S210’s rectifier loses its share of what it draws too, whether or not anything is fed back, so with a DC link the supply is 1/η of what the DC link received (η = 0.98 in the shipped configs: 2.04 % more). The rectifier’s energy is counted on its own, every step, as what lifts the capacitor energy back to that of the bus voltage. A payload picked up brings its kinetic and potential energy into the machine and one put down takes it away; the simulation adds up these steps (Sim::payload_energy). The stores are read after the last step counted: a cycle’s measured pass leaves out the step in which it begins and the one in which the next begins, flows and stores alike. (Until 12 November the stores were read one step later than the flows ended, which on the loss-free elastic configs put up to 0.8 % into “not accounted for”, taken then for backlash knocks.)
The electrical side is checked on its own (EnergyBudget::electrical_unaccounted): the supply against copper loss, resistor, the discharge of drives switched off, mains, line module, the windings’ and the capacitors’ stored energy and the work the torques did on the shafts, integrated with the windings (EnergyBudget::shaft_work). Within ELECTRICAL_TOLERANCE = 1e-6 of the supply on every machine and config, the loss-free ones included: measured at most 3.2e-7 (single axis, loss-free inclined), 1e-12 on the default configs; it falls by 15 with each halving of the integration step, as fourth order does. With effects.back_emf off the shaft work comes from nowhere and this does not close; no shipped config has it off. What unaccounted holds beyond it is the machine’s own balance.
Tolerance. What is not accounted for stays below BUDGET_TOLERANCE = 0.1 % of the supply on every config, the loss-free ones included: measured 0.0004 % on the default T-gantry (−6.4e-4 J of 144.1 J, sim-cli analyze t-gantry --budget FILE, 21 November 2026; −7.1e-4 J of 142.9 J on 17 November, −5.4e-4 J of 143.0 J earlier that day; 0.009 %, 1.2e-2 J of 139.5 J before), 0.00001 % on the single axis, 0.0004 % on the EXCT-30, at most 0.03 % on the loss-free elastic T-gantry (the_energy_budget_closes_on_every_machine_and_config). It is the machine’s losses taken at the end of each base step and summed times the step, the trapezoid rule but for the ends of the pass, and the undamped ringing knocking through the gearbox backlash on the loss-free configs, which the fixed step integrates through without events.
Friction view
Per contact that friction_contacts names (the X and Z guides of the T-gantry, the X guide of the single axis), friction_curve(i, v, λ) is the steady sliding force of the LuGre model split into three parts:
[ λ · F_c · sign(v), b · v, λ · (F_s − F_c) · exp(−(v / v_s)²) · sign(v) ] sum: g(v) · sign(v) + b · v
Its signals <id>.friction_speed, _coulomb, _viscous, _stiction and _load_scale give where the contact is now: the guide’s own speed (on the T-gantry the carriage along the beam, not the tool tip over the floor), λ, and the force of the LuGre state split as b · v and the bristle force σ₀ s + σ₁ ds/dt shared in the proportion λ F_c : λ (F_s − F_c) e^(−(v/v_s)²). In steady sliding these are the curve’s parts; held at rest the bristle force is shared in the proportion of F_c to F_s − F_c. The three add up to the signal <id>.friction. The app draws the curve at the load factor of the newest sample, at 200 speeds from −v_max to v_max of the axis, closer together near standstill (v_max · (j/100)³), and the point (speed, force) of the newest sample on it; off the curve means the bristles are not in steady sliding (breaking away, reversing).
Not in the friction view: the motor shafts’ friction (Coulomb and viscous, no stiction), idlers and cable chain. They are in the breakdown’s friction part and in the energy budget.
Thermal model and view
Windings (effects.winding_heating, on by default): one thermal mass per winding, as before (see the drive). At a constant current i the rise follows τ dϑ/dt = R(ϑ) i² · R_th − ϑ with R_th = ϑ_rated / (R(ϑ_rated) i_rated²), so it settles at the rated rise at the rated current and rises with the time constant τ = motor.thermal_time_constant_s.
Gearboxes and guides (effects.part_heating, off by default): thermal_parts names the parts that warm, each by the id of its loss signal power.<id> and its kind (gearbox or guide). Each is one thermal mass with a thermal resistance R_th to its surroundings:
tau · d(rise)/dt = R_th · P − rise P = power.<id>, the loss the energy budget counts
rise(t + dt) = rise + (1 − exp(−dt / tau)) · (R_th · P − rise) every base step, P at the end of the step
The step is the exact answer of the first-order lag to a loss held over the step. Under a steady loss the rise settles at R_th · P, and the gap to it shrinks by the factor e every τ. R_th, τ and the rated rise come per kind from thermal.<kind>_resistance_k_w, _time_constant_s and _max_rise_k. The model lives in the simulation (Sim), not in the machine: the machine’s state, its energy and the standard suite are untouched, and nothing feeds back (friction and efficiency do not change with the temperature; effects.temperature stays the hand-set factors). The rises are the signals temperature.<id> (K), present whether or not the effect is on; switched off, they stay where they are. A reconfigure keeps the rise of every part that is still there.
| Machine | Parts | Shown in the 3D view by |
|---|---|---|
| T-gantry | gearbox_a, gearbox_b (power.gearbox_a/b), guide_x, guide_z (power.guide_x/z) | the gearboxes, the carriage, the Z axis’s column |
| Single axis | gearbox_m, guide_x | the gearbox, the carriage |
A direct drive (gearbox.ratio = 1, as the EXCT-30) has no gearbox: its gearboxes are not among the parts that warm, are not in the thermal view and not judged; what power.gearbox_* counts there is the coupling’s damping (see the loss powers).
The view draws, over the scopes’ window, the rise of each winding and, with effects.part_heating, of each heated part, and a table: now, where it settles on the analysed cycle, its rated rise and the share of the rating where it settles (marked “above the rating” over 100 %). The share is that of the settled rise, not of the rise now: with time constants of 20 to 40 minutes the rise now is a few percent of where the part ends up. A winding settles at MotorLoad::winding_rise (the copper loss of the cycle’s RMS current at the resistance of that temperature); a part at R_th times its mean loss over the measured pass, CycleLoad::part_rises = R_th · Σ P dt / cycle time, the same as its row of the energy budget over the cycle’s duration. Winding rises are rated by motor.rated_temperature_rise_k. The checks gearbox-thermal and guide-thermal judge the same settled rises.
Estimates. The guide’s R_th is that of the rail and the aluminium profile it is bolted to, not of the carriage alone: the carriage runs over the whole stroke and spreads its heat along the rail, and aluminium conducts well. About 0.35 m² of profile at 10 W/(m² K) (still air about 5, radiation of anodised aluminium about 5) with a fin efficiency of about 0.6 gives 0.5 K/W (bounds 0.25 to 1); about 5 kJ/K of aluminium and steel gives τ ≈ 40 min. The carriage alone, 2 K/W as first estimated, put the EXCT-30’s X guide at 101 K (50.7 W mean loss) and the single axis’s at 50 K, above the 40 K rating with the effect on (the default T-gantry’s 16.8 K passed). With 0.5 K/W they settle at 25.3 K and 12.5 K; at the high bound of 1 K/W the EXCT-30’s X guide reaches 50.7 K and fails the band’s worst case. One R_th per kind: the T-gantry’s Z guide sits on a smaller profile and is taken with the X guide’s value.
Colour. Sim::scene gives a part a heat value h = rise / rated rise (Part::heat): the k-th motor housing (scene::MOTOR_PART, drawn by drive_unit) with motor k’s winding while effects.winding_heating is on, and the part thermal_parts names with its rise while effects.part_heating is on. The 3D view then draws the part in the heat scale in place of its own colour: blue at 0, yellow at 0.5, red at 1, magenta above 1 (model::heat_color).
Temperature feedback
Source: ThermalFeedback in mech.rs; effects.thermal_feedback, off by default. It replaces effects.temperature: while it is on, the hand-set factors of [temperature] are not used. It warms the parts as effects.part_heating does (sim::heats), whether that is on or not, and before each base step Sim tells the machine the rises the last one ended with (Machine::set_part_temperatures). The config’s friction, efficiency and EA hold at thermal_feedback.reference_c (20 °C, the temperature gearbox makers quote their no-load torque at); the machine stands at ambient_c, and a part is at ambient plus its rise.
nu(T) / nu_ref = exp(B · (1/T − 1/T_ref)) T in K, B = thermal_feedback.viscosity_slope_k
guide: b = b_config · nu(T_guide) / nu_ref Coulomb and stiction levels stay
gearbox: 1 − eta = (1 − eta_config) · (1 − s + s · nu(T_gearbox) / nu_ref), at least 0.01 s = gearbox_viscous_loss_share
belt: EA = EA_config · (1 − alpha · (T_ambient − T_ref)) alpha = belt_stiffness_coefficient_1_k
- Viscosity. Andrade’s (Arrhenius) law for a lubricant’s viscosity. B from a mineral oil’s viscosities at 40 and 100 °C (viscosity index about 100): ISO VG 32 (32 and 5.4 mm²/s) gives 3470 K, VG 68 (68 and 8.7) 4000 K, VG 220 (220 and 19.4) 4730 K; 4000 K, bounds 3470 to 4730. 30 K above the reference the oil has 0.2817 of its viscosity, at −10 °C 4.74 times.
- Guide. The viscous coefficient is the lubricant’s drag and follows the viscosity; the Coulomb level of a rolling contact and its seals is taken as constant.
- Gearbox. Without
effects.gearbox_dragthe model has one efficiency and no no-load torque. Makers quote the no-load running torque at 20 °C and it falls as the gearbox warms (churning and bearing drag in thinner oil), while the tooth friction under load does not. So a share s of the loss (1 − η) follows the viscosity, the rest stays: an estimate, s = 0.5, bounds 0.25 to 0.75. 30 K warm, a 95 % gearbox has 96.80 %. Witheffects.gearbox_dragthe churning and bearing drag is the no-load torque itself, T_0 ∝ (ν / ν_ref)^(2/3) at the gearbox’s temperature, and s is taken as 0: the efficiency is the teeth’s. Harmonic Drive’s chart of a size 32 gear (20 to 40 °C: 0.54) agrees with this law at B = 4000 K (0.56). - Shaft seals. The motor shaft’s Coulomb and breakaway levels are its seals’ and bearings’; on a geared motor the seal is the gearbox’s input seal in its lubricant: (ν / ν_ref)^m at the gearbox’s temperature, m
seal_viscosity_exponent(estimate 0.33, bounds 0 to 0.5). At −10 °C (ν 4.74 times) that is 1.67 times the level, at 30 K above the reference 0.66. - Belt. Polyurethane softens as it warms, but the steel cords carry EA, and steel’s modulus falls by about 2.5e-4 per K: alpha = 3e-4 per K (bounds 0 to 1e-3), 0.6 % at 20 K. The belt is taken at ambient: it has no loss of its own in the model, and an EA that changed while running would change the stored energy without a loss to account for it. So the belt’s factor acts only when ambient differs from the reference.
- Without part heating’s losses the parts stay at ambient; the windings are not part of this (their resistance already follows their temperature,
effects.winding_heating).
Tests: the_temperature_laws_follow_their_formulas (the factors at fixed temperatures), with_thermal_feedback_friction_and_gearbox_loss_follow_the_temperature (the machines at 30 K), a_guide_settles_where_its_loss_and_heat_flow_balance (single axis, R 2 K/W at 1 m/s: rise = 2 (λ F_c + b ν/ν_ref v) v settles at 40.2 K instead of 72.5 K).
Thermal warm start
Source: analyse_cycle_with and analyse_trajectory_with in analysis.rs; effects.thermal_warm_start, on in the shipped configs. It is not a physical effect but how the analysis starts; it sits among the effects because every switch of a run does, the app shows it there, and a config without it keeps starting cold. With thermal time constants of 20 minutes to an hour, a cycle of seconds analysed from cold sees every part at the temperature it started with: the winding’s resistance at ambient, and with effects.thermal_feedback the guides’ friction and the gearboxes’ losses cold. A machine that sizing judges has run for a while.
The rises that act back on the run are the windings’ (with effects.winding_heating: their resistance) and the gearboxes’ and guides’ (with effects.thermal_feedback). Where there are such rises, the cycle repeats:
pass 1 from cold, not measured (as before)
pass 2 measured from where pass 1 left the rises r_2: settles them at s_2
(winding: settled_rise(I_rms); part: R_th × its mean loss, as the thermal checks judge)
pass 3 measured with every rise put at s_2 at its start: r_3 = s_2
pass k + 1 a secant step per rise: r_(k+1) = r_k + (s_k − r_k) / (1 − m), m = (s_k − s_(k−1)) / (r_k − r_(k−1))
m clamped to [−20, 0.5]
stop when max |s_k − r_k| ≤ 0.1 K (WARM_START_TOLERANCE_K), or after 4 warm passes (WARM_START_PASSES)
The secant step: a warmer guide or gearbox loses less (its lubricant thins), so the rise a pass settles at falls with the rise it starts at, and plain substitution r = s oscillates towards the fixed point; on the EXCT-30’s guide (slope about −0.4) it was still 0.3 K off after four passes. A winding’s settled rise depends on its current alone (m = 0).
The last measured pass is the result; CycleLoad::warm_start has the warm passes and the last change, and the verdicts a row thermal-warm-start (that change against 0.1 K). A rise that does not settle (a winding loaded beyond what its copper can shed) ends the iteration at once, not converged. So does a run that stops (a drive trips, the machine hits an obstacle) in a warm pass; one that stops before a warm pass began was measured from cold, as CycleLoad::warm_start then says. Neither has a thermal-warm-start row: the trip, the crash or motor-thermal fails for it. Over a measured pass the rises drift with their time constants, by a hundredth of a kelvin in a cycle of seconds. A trajectory or path (analyze --path) counts as a cycle that repeats: between passes the machine goes back to its start (Command::MoveTo) and rests 0.3 s; the rises are set after that, and what the way back left ringing in a lightly damped machine is in the next pass. Each warm pass costs one more cycle. On the shipped configs one (the windings alone converge in one: their settled rise depends only on the current); with part heating and the feedback on, two (T-gantry, delta picker) or three (single axis, EXCT-30, which ends 0.045 K off). verdicts on the default T-gantry with the feedback on took 3.8 s against 2.9 s from cold.
Where the passes do not converge within the 4 warm passes, the settled rises may repeat over a period of 2 or 3 passes
(a pick that alternates between two places): period_of finds it, and the warm start goes on with spans of that period,
measured as one. Where there is none, one more span is run from the rises the last one started at, the last one staying
the measured pass (WarmStart::repeat, verdict row thermal-cycle-repeat): two passes started at the same rises settle alike unless the
cycle’s motion itself differs from pass to pass, so a gap beyond the tolerance says the cycle does not repeat. The crane
with effects.hook_block on its unshaped cycle is such a one: the double pendulum carries the swing one pass leaves
(0.5 m at the dwells) into the next, the bridge’s winding settles at 1.9 to 4.7 K pass by pass at about the same start,
and no start temperature settles that; shaped, the swing taken out, it converges to 0.015 K.
What it moves: the windings settle at 1 to 2 K on the shipped cycles, so the shipped verdicts move in the fourth digit. With part heating and the feedback on, the single axis’s guide settles at 10.03 K instead of 12.51 K (its viscous friction is 0.637 of the cold one there, not 1) and its gearbox-continuous falls from 0.806 to 0.695 N m; the T-gantry’s guide at 3.86 K instead of 4.19 K; the EXCT-30’s X guide at 15.90 K instead of 23.68 K, its windings at 8.87 and 8.51 K instead of 9.04 and 8.62 K (sim-cli verdicts with --set effects.part_heating=true, and --set effects.thermal_feedback=true added, 26 November 2026, windings by sim-cli analyze; 9.05 on 21 November; 8.81 and 8.46 K instead of 8.98 and 8.56 K on 17 November; 6.62 and 6.08 K instead of 6.88 and 6.24 K before). A 0.5 A-rated winding (single axis) settles at 73.8 K, and the measured pass’s copper loss is R (1 + 0.0039 · 73.8) I² = 1.026 W instead of the cold 0.797 W.
Tests: a_winding_started_warm_loses_the_hand_calculated_copper_power_at_its_settled_rise, a_guide_started_warm_has_the_hand_calculated_friction_at_its_settled_rise, the_warm_start_converges_on_the_default_t_gantry_within_its_pass_limit (belt_and_heat).
Belt view
belt_sections names the belt sections, each with its pretension. Signals <id>.tension (N, the existing belt.<i>.tension) and <id>.stretch (m):
stretch = geo − mat the section's length less its unstretched belt; T = EA · stretch / mat (+ damping)
rigid model: stretch = geo − geo / (1 + P / EA) = geo · P / (EA + P), tension = P
At rest without a load every section has the pretension P and the stretch geo · P / (EA + P). Held against gravity the sections balance the weight: on the single axis T₂ − T₁ = m g sin(incline); on the T-gantry, whose Z axis hangs in the loop of section 2, 2 T₂ − T₁ − T₃ = m_z g and T₁ = T₃. The view draws tension (with the pretension as a dashed line) and stretch (mm) per section over the scopes’ window, and a table of the newest sample with ratings.belt_max_tension_n and the share of it.
Colour. Each machine’s scene colours the strips of a section by h = (T − P) / P, clamped to ±1, from the same tensions as the signals. The 3D view moves the belt’s own colour towards red by h above 0 (red at T = 2 P) and towards blue below (blue at T = 0, slack). The view draws this scale as its legend.
Effect comparison
compare_effect(entry, cfg, effect) copies the config twice, sets effects.<effect> true in one and false in the other, and runs each on a simulation of its own (two threads) through the configured cycle. As in analyse_cycle, the second pass is the one measured: every signal is kept once per millisecond, with the time counted from the start of that pass. Comparison::difference(i) is the peak of |on − off| and the RMS of on − off of signal i over the rows both runs have; where the effect changes the timing (corner blending, input shaping), the longer pass’s rest is not compared. A config compared with itself differs in nothing (the simulation is deterministic).
At constant speed the difference of a friction effect is the friction force through the drive train: guide friction on against off changes the motor torque by r / i · (λ F_c + b v) / η on a motor that drives its gearbox (× η on one that is driven back); on the T-gantry each motor carries half (r / (2 i)), plus or minus the force the Z guide’s bristles hold while Z stands still.
Fit
Source: identify.rs, trace.rs.
Replay. The motor position setpoints of the trace become tool poses through the forward transformation and run as a trajectory. Each row is commanded one row earlier, because a run writes a row before it computes the step at that time. The simulator’s own controller makes the speed and torque feedforward from the poses. The simulation starts from the trace’s own state: at rest at p0 − v0 T / 2 (p0 the first row’s setpoint pose, v0 its measured speed in tool units), it runs up along p0 − v0 T / 2 + v0 T (2.5 u⁴ − 3 u⁵ + u⁶), u = t / T, a smootherstep of the speed with zero acceleration at both ends, over T = max(0.25 s, 1.875 |v0| / (a_max / 4)) per axis, and reaches p0 at v0 one row before the first row; the rows are recorded from there. The run-up starts at the setpoint the machine has at rest there (its motors, a sag away from the tool) and takes that difference up along a smoothstep. A trace that starts at rest where the config’s machine stands at rest (its drives’ setpoints those of the first row, as in a trace a run of the config wrote) runs no run-up: the replay starts from that state, row 0 the machine at rest. Behind the last row two points carry the motion on with the last rows’ speed and acceleration before it stops, unrecorded.
Friction beyond the sliding level (identify::friction_details, rows of fit). From an axis’s force F, speed v and travel, with its rigid values m, b, c (Coulomb), k (constant): the force held at rest after the last motion, the mean of F − k over the last stretch whose 11-row mean speed is within 1 % of the top speed, after its first 0.1 s; the breakaway level, the mean of sign(v) (F − m a − b v − k) on the rows between 1 and 5 % of the top speed whose speed falls in size and keeps its sign across the window; the presliding stiffness, σ = c ln 2 / x0 with x0 the travel from the turning point at which sign(v_after) (F − m a − k) passes zero, the median over the reversals (Dahl’s law above). Means with the standard error of n rows widened by (1 + ρ) / (1 − ρ) for their lag-one correlation ρ; the median with 1.25 times the reversals’ spread over the root of their count. The same on the replay, as for the rigid values.
Stage 1, rigid values. Motor torques become axis forces through the machine’s transformation (motor angle per axis travel; the same power on both sides), so the fit works per axis even where every motor moves every axis. Per axis, least squares of
force = mass · acceleration + viscous · speed + coulomb · sign(speed) + constant
The acceleration is the second difference of the axis’s travel (an encoder’s position is far less noisy than the speed differentiated, and noise on a regressor pulls its value towards zero); force, speed and every column are smoothed alike by a triangle of half-width h (identify::smoothing_span, 40 ms where the trace allows), the same as the fit in the motors’ coordinates. Rows slower than 5 % of the top speed, or whose window holds a reversal, are left out. A payload picked or dropped during the trace (found as in the fit in the motors’ coordinates) adds a column per step, the payload’s force on the axis from the step on. The same estimate runs on the trace and on the config’s own simulation of the trace’s setpoints, on the rows both take and on the trace’s columns; what the simple estimate gets wrong (gearbox losses that grow with torque, load-dependent friction) it gets wrong on both sides, so the difference is what the config is off by. Its standard errors are those of that difference: the noise’s variance from the residual of (trace − replay), Σ (r_trace − r_replay)² / (N − m · per) · per, where per ≈ 1.5 h rows count as one measurement and each of the m values fitted takes per rows’ worth of freedom; at least 0.001 of the trace’s own residual, the floor a replay of the config’s own run, without noise, would otherwise fall to. On the config’s own trace with noise the bands cover it (standard deviation of (fitted − config) / error 0.88 to 1.15 over 80 seeds); on a machine that differs from the config the rigid model mixes the changes a little (on the single axis 1.5 kg more mass shows as 1.57 kg), which a second pass with the config corrected takes out. The same errors in the motors’ coordinates.
Stage 2, resonance. In a sweep of motor torque to motor speed, the load resonating on the belt shows as a dip. Gain times frequency is level for a pure inertia; the dip’s flanks are where that has twice the power of the lowest point. Frequency = geometric mean of the two flanks; damping ratio = (high − low) / (2 · frequency); frequency error = half the spacing of the sweep’s points there. The config’s sweep is run up to a factor of √2 beyond the measured range so that a dip near its end keeps both flanks. Which of the config’s dips is the measured mode is told by how they move with the stiffness (fit_sweep): the config is swept again with belt.stiffness_ea_n raised by 1.1 (STIFFNESS_PROBE), and each dip matched to the probe’s dip of the same mode (the nearest, within a factor 1.2) gives its exponent s in f ∝ k^s, s = ln(f_probe / f) / ln 1.1: 1/2 for a mode the belt carries alone, less for one it shares, 0 for one it does not carry. Each dip with s ≥ 1/4 is tried as the measured one: the stiffness that puts it on the measured frequency moves every dip by its own exponent, and the dip is taken whose moved dips meet the measured ones best (the sum of the log distances, each measured dip to the nearest moved one and each moved one inside the measured range to the nearest measured one; of equal sums the nearer). The factor is then found by sweeping the config at it: a secant on ln f over ln k from the config’s own and the probe’s dip, at most four more sweeps (SECANT_STEPS), each step’s dip the one nearest where the secant puts it (within a factor 1.2), as a mode the belt shares does not move as sqrt(k) over a wide range. Its error is the measured frequency’s, factor · (error / f) / s, with s the chord from the solution to the nearest swept point at least the probe’s step away. With no dip of s ≥ 1/4, or no belt.stiffness_ea_n in the config, the nearest dip in frequency with the pure belt law, (measured / config frequency)².
Pneumatic cylinder
Source: pneumatic.rs. A machine file attaches one with a
[[machine.cylinder]] node (machine-files.md); the cylinder is no tool axis and has no drive: the
cycle commands its valve and waits for its end-position sensors ([[cycle.segment]] valves and wait, see
config-reference.md). Its states follow the machine’s: piston position x (0 retracted, s
extended) and speed v, and per chamber the air’s mass m and internal energy U, then running totals for the balances.
Chambers. Cap side 1 (area A1 = π D²/4), rod side 2 (A2 = A1 − π d²/4), each a control volume of an ideal gas (R = 287.058 J/(kg K), κ = 1.4, c_p = κ R/(κ − 1)):
V1 = V01 + A1 x, V2 = V02 + A2 (s − x), p = (κ − 1) U / V, T = p V / (m R)
dm/dt = ṁ, dU/dt = c_p T_in ṁ + α A (T_wall − T) − p dV/dt
T_in is the port’s temperature for air flowing in, the chamber’s for air flowing out. Thermal assumption:
adiabatic with heat transfer to the wall, heat_transfer_w_k = α A per chamber. 0 is the adiabatic limit (a closed
chamber’s air spring has the exponent κ); a heat transfer quick against the process (α A ≫ m c_v / t) is the
isothermal limit (exponent 1). Both limits are tested on the natural frequency. The wall and the supply are at
ambient_temperature_k.
Flow elements (ISO 6358). Every flow path is a sonic conductance C (m³/(s Pa), ANR; the config gives l/(s bar)) and a critical pressure ratio b:
ṁ = C p_up ρ0 sqrt(T0 / T_up) ψ(r), r = p_down / p_up, ρ0 = 1.185 kg/m³, T0 = 293.15 K (ANR, ISO 8778)
ψ = 1 for r ≤ b (choked), ψ = sqrt(1 − ((r − b) / (1 − b))²) above
The last 0.5 % of r before 1 is a straight line through zero (the root’s slope is infinite there, which no fixed step integrates; a shortcut, see below). Elements in series combine to C = (Σ C_i⁻³)^(−1/3) and 1 − b = C² Σ (1 − b_i)/C_i²: the cube rule for the choked flow, and b so that at small pressure drops (where the elliptic law is Δp ∝ ṁ² (1 − b)/C²) the drops add up.
Valve and paths. A 5/2 valve (or 5/3 with a closed centre) switches valve_switch_time_s after its command
changes; extending, chamber 1 is on the supply (supply_pressure_bar gauge plus ambient) and chamber 2 on the exhaust
(ambient), retracting the other way. Air into a chamber passes valve and tube (the throttles’ and cushions’ check
valves open); air out of it passes valve, tube and its meter-out throttle (throttle_extend_* on the rod side’s port,
throttle_retract_* on the cap side’s). Within cushion_length_m of its end (effects.cylinder_cushion), the cushion
spear closes the main bore and the chamber exhausts through valve, tube and the cushion bleed alone, blended in over the
first millimetre.
Piston.
(m + payload) dv/dt = p1 A1 − p2 A2 − p_atm (A1 − A2) − F_load − (m + payload) g sin(incline) − F_seal + F_stop
F_seal = (F_c + k_p p̄_g) (1 + (r_s − 1) exp(−(v/v_s)²)) tanh(v / v_ε) + b v (effects.cylinder_friction)
p̄_g is the chambers’ mean gauge pressure (friction_coulomb_n_bar per bar), r_s the breakaway ratio, v_s the Stribeck
speed, v_ε the smoothing; a Stribeck curve rather than the LuGre bristles of the guides, whose bristle stiffness would
add a stiff state for no gain at a cylinder’s speeds. F_stop is mech::HardStop with the cylinder’s own
stop_stiffness_n_m and stop_damping_n_s_m (the elastic bumpers), always on. The payload rides on the rod while the
gripper holds it (effects.payload).
What it reports (cylinder.<id>.*): position, speed, both pressures (absolute) and temperatures, the spool, the two
end sensors (on once the piston has been within sensor_band_m of the end for sensor_delay_s), the supply’s flow and
the air drawn in normal litres (ANR), the air of the last double stroke (between two switches to extend), the
compressor’s energy for it (compressor_energy_kwh_m3), the last stroke times out and back (from the spool switching
to within the sensor band), the speed and kinetic energy entering the cushion (at the end stop without a cushion), the
speed at the end stop, the bounce back from it and the settling time (until the piston last left the sensor band), and
the load factor. Checks: cushion-energy (the highest kinetic energy entering the cushion against
rated_cushion_energy_j) and load-factor (the force the cylinder works against, load and weight, over p_g A1
extending or p_g A2 retracting, the worse, against load_factor_limit, 0.7 by the usual rule).
Energy. The cylinder is an open system: Machine::energy and the energy view leave it out. Its own balance: the
change of U1 + U2 + ½ m v² + (m g sin + F_load + p_atm (A1 − A2)) x + the stops’ springs equals the enthalpy from the
supply less that to the exhaust, plus the heat from the wall, less the seals’ and the stops’ dampers’ work, each
integrated as a state.
Step. The model is stiff where a chamber is small: the flow law’s straight end, the air spring of the dead volume,
the stops, the seal’s smoothing and the heat transfer each give a rate; a cylinder whose largest rate times the
integrator’s sub-step (sim.dt_s / sim.substeps) exceeds 2 is refused with error-cylinder-unstable, naming the rate
and the largest sub-step that would do (RK4 is stable to 2.8). Not modelled: a proportional valve with a position loop
(servo-pneumatics), the valve’s spool travel (it switches at once after its delay), tube dynamics (a tube is a flow
element; its volume belongs in the dead volumes), the cylinder’s reaction on the axis that carries it.
Known shortcuts
Every place where the code carries a shortcut: comment (git grep -n "shortcut:", 26 on 17 November 2026), in the Rust crates, the Python package, and three Python tools outside the simulator (marked tool).
| Where | Shortcut | When to upgrade |
|---|---|---|
sim-components/src/pneumatic.rs, module | The ISO 6358 flow law’s last 0.5 % of pressure ratio before 1 is a straight line through zero (LINEAR), not the root. The same comment: the cylinder rides on the machine without acting back on it, exact only at right angles to the linear axes that carry it and on no rotary one, which attach checks (along_carrying_axis) | ISO 6358-3’s laminar region, if a test against measured data needs the last 0.5 % of a pressure |
sim-components/src/mech.rs, Lugre::eval | Bristles that would settle faster than BRISTLE_RATE_MAX settle at that rate, their force scaled so that sliding still takes the level | Step the friction state implicitly, if what bristles do within 10 µs ever matters |
sim-components/src/path.rs, smoothed | The speed curve’s sweeps stop at a change of 1e-7 of its highest or after CURVE_SWEEPS; a sharp dip converges by about 1 % a sweep | Solve the bends directly (a parabola around each dip) if a machine’s dips need more |
sim-components/src/analysis.rs, repeating_peak | Where the drive’s overload image tripped in the pass, the drive lowered its current and the image is no longer linear in its start; the peak is that of the pass as it ran, corrected as if it were (it is at or above the trip anyway) | — (the verdict fails either way) |
sim-components/src/analysis.rs, life_modification_factor | κ below 0.1, where ISO 281 gives no factor, is taken as 0.1 (a_ISO 0.1); above 4 as 4, as the standard says | If a machine runs its bearings that slowly with that thin a lubricant |
sim-components/src/analysis.rs, loop_margins | A rising crossing of the gain beyond −1 with nothing to undo (an unstable open loop) is not counted | — |
sim-components/src/catalog.rs, motor_data | A maker that prints no standstill values (Yaskawa, Mitsubishi) has its rated ones stand for them, one that prints no rated torque (SEW CMP) its standstill one: a few per cent too much at speed | With the makers’ rated data |
sim-components/src/catalog.rs, apply_motor | The winding resistance from the Siemens braking table stays an estimate; the table’s conditions (rated values, no saturation) hold for the peak alone | With the motor’s data sheet |
sim-components/src/catalog.rs, apply_drive | The makers publish no base-load current; the S210’s share of the rated current stands in | With published base-load currents |
sim-components/src/catalog.rs, motor_config | Per-motor parts keep the shared [drive]’s cycle times, noise seed and DC link | If drives of one machine need different cycles |
sim-components/src/catalog/mechanics.rs, fitting | A flange is taken to have an adapter plate, and the shaft’s length is not checked | With the makers’ motor-specific adapter lists (their configurators) |
sim-components/src/charts.rs, torque_speed | No S3 line in the torque-speed chart: no catalogue the simulator reads gives S3 data | With that data |
sim-components/src/drive.rs, flux | The rotor has no temperature of its own | Give it a node if magnet heating by eddy currents matters |
sim-components/src/report.rs, width | Bold text is taken as 6 % wider; the bold metrics are not in the table | If a bold column ever needs to fit exactly |
machine-joint-kit/src/arm.rs, dynamics | Without the payload the swing’s joints carry a unit inertia of their own, apart from the arm, so that they stay solvable | Drop them when the payload goes and add them back when it comes |
sim-netlist/src/lib.rs, no_suite_configs | A machine file brings no loss-free configs for the standard suite; the tests build their own | — |
sim-netlist/src/machine.rs, ConfigMachine::new | An axis without a guide fades its cable chain’s drag out below 1 cm/s | Give the axis a guide to set the speed |
sim-app/src/main.rs, cad_mesh | The CAD mesh has the size of the config as it was converted (stroke, Z length); edited in the app, the mesh no longer matches | Check the stroke, if someone edits it often |
sim-app/src/ui.rs, usage | dc-link-energy is named, as a verdict does not say how it judges; at its limit the chopper holds the voltage, so a share there says only that the resistor took over | When verdicts carry how they judge |
sim-app/src/ui.rs, concerns | Load colours rely on the scene’s part ids and on the k-th “motor”, “gearbox”, “pulley” being motor k’s | The machine naming the parts each check concerns |
sim-app/src/ui.rs, inspector | A label is near its part within 0.2 m of the part’s middle | Labels naming their part, when a machine puts them further away |
sim-py/src/lib.rs, PySim | A step holds Python’s GIL (a cycle is short) | Release it, if long steps from several threads are wanted |
sim-py/python/kinematics_sim/mcp.py, LIMITS | A summary of a section of docs/overview.md, kept by hand (the wheel cannot carry docs/) | Update it with that section |
tool catalog/tools/cataloglib/pdfvec.py, module | Reads unencrypted PDFs with flate and object streams only, no images, no font decoding | A PDF library, if a document needs more |
tool tools/cad/onshape_mass.py, module | The URL path is untested (no keys), and whether Onshape’s inertia tensor is about the centroid or the origin is open (--inertia-about) | Verify both against a box once keys exist |
tool tools/validation_dashboard.py, outcomes | A test name defined in two crates gets both crates’ outcomes together | — (the source links tell them apart) |
Other simplifications
Not marked as shortcuts in the code, but worth knowing. Most are stated in the sections above.
| Area | Simplification |
|---|---|
| Motor | One equivalent winding; with effects.field_weakening (on in the shipped configs) the q axis of a d-q model. No phases, PWM or inverter dead time; the speed losses (effects.iron_loss) heat the motor by the rated data’s thermal split and drag the shaft by the printed rated torque’s gap, one exponent over speed for both. The field-weakening d current takes the unsaturated back-EMF (a voltage reserve of up to the saturation’s share). The stepper and the induction motor are models of their own |
| Drive | Delays are whole cycles; the fieldbus jitter is whole profile cycles, evenly spread, frame by frame independent. The same settings for every drive. The filters are generic, not a vendor’s |
| Thermal | One thermal mass per winding, gearbox and guide (effects.part_heating); no belt temperature (the belt is at ambient). With effects.thermal_feedback guide friction and gearbox losses follow the temperatures (one viscosity law for all lubricants); without it effects.temperature is two factors set by hand |
| DC link | One per drive, or one for all with the sum of their capacitances; feedback into the line only through an ideal line module of one efficiency (effects.regenerative_supply); no resistor heating, no Line Module capacitance or busbar resistance; the bleeder draws only while the drives are disabled |
| Belt | Mass lumped on the pulleys, or summed run by run where the runs move over ground otherwise (T-gantry, the coupled-belt and portal machine files). Sideways span vibration as first-mode frequencies only, no amplitude (effects.belt_span_vibration); tooth jump with a quasi-static climb-out law and the belt sliding over a sinusoidal ridge (effects.belt_tooth_jump); no wear |
| Friction | Guide loads from the commanded acceleration of a loss-free rigid machine, not from the true one. No moments on single guide blocks |
| Gearbox | One teeth’s efficiency (with effects.gearbox_drag the efficiency falls at part load and with speed and the cold; with effects.gearbox_mesh_friction its loss is a mesh friction that sticks, in the elastic models only); the friction’s bound in proportion to the torque the spring passes, not to the mean of input and output; constant stiffness unless effects.gearbox_stiffness_curve; hard dead zone |
| Frame | One mode, in X only |
| Z axis | Rigid body leaning on a compliant guide, in X only |
| Stop | Categories 0, 1 and 2 (Stops); category 2 brakes along the direction of motion, not along a curved path, and without a jerk limit; the OFF3 ramp is a time from the rated speed; no safe torque monitoring beyond the SS1 timer |
| Brakes | A spring up to the brake torque, then slipping with it; no wear. Engagement and release delays one for all brakes of a machine (effects.brake_delay); during the release delay the drive holds against the brake (a drive’s brake control would wait for it). In the rigid model the spring holds the whole machine with the damping meant for the rotor |
| Cycle | The payload’s mass switches as a step, on arrival or, with effects.gripper_time, when the gripper is done; the gripper’s times are fixed or a first-order vacuum build-up, no gripper dynamics or compliance. The vacuum cup’s hold is judged with its axis vertical and its vacuum at the switch level. A swinging payload only on the joint machines (effects.payload_swing) |
| Feedforward | Rigid model with inertia and gravity, loss-free: the gearbox’s efficiency on them stays in the integrator. The friction feedforward (a recorded characteristic, or the machine’s own steady friction) is on where it improves following and settling, off elsewhere (validation) |
Mechanisms and transmissions
Beside the belt machines the simulator has machines built from one motor-driven joint per axis: a ball screw axis, a
rack and pinion axis, a linear motor axis, a rotary indexing table, a six-axis arm and a SCARA arm, both read from URDF
files. Their parts are components in sim-components, so that a machine described in a config file can wire them
later; the six machines live in the crate machine-joint-kit and are run and sized like every other machine.
The German version of this document is de/mechanismen.md.
- The machines
- How they are built
- Ball screw
- Rack and pinion
- Linear motor
- Rotary table: strain wave and worm gear
- Arms from URDF files
- Banded R-theta-Z arm (wafer-handler)
- Parallel kinematics: hexapod and cable robots
- Pneumatic cylinder beside servo axes
- Winder and unwinder with a dancer
- Overhead crane
- What is checked by hand
- Limits
The machines
| Id | Mechanism | Transmission | Tool pose | Own checks |
|---|---|---|---|---|
screw-axis | carriage, 800 mm | ball screw 25 x 20 behind a coupling | x (m) | screw-speed, screw-dn, screw-buckling, screw-static, screw-life |
rack-axis | carriage, 3 m | helical pinion on a rack behind a planetary gearbox of ratio 10, backlash-free | x (m) | rack-feed-force |
linear-motor-axis | carriage, 1 m | ironcore linear motor, none | x (m) | guide-load, guide-life from the attraction |
rotary-table | table of 3 kg m^2 plus the work | strain wave gear of ratio 100 (or worm, or planetary) | c (rad) | strain-wave-life |
urdf-arm | six-axis arm, urdf/six-axis.urdf | strain wave gears of ratio 120 and 80 | six joint angles (rad), or x, y, z, rx, ry, rz in tool space | strain-wave-life per joint |
scara | SCARA arm, urdf/scara.urdf | strain wave gears; the quill on a ball screw | joints (rad, m, rad), or x, y, z, c in tool space | strain-wave-life, the screw’s checks on joint 3 |
palletiser | four-axis palletiser, urdf/palletiser.urdf, a parallelogram keeping the flange level | gears of ratio 160, the flange’s strain wave gear 50 | x, y, z, rz (shipped in tool space), or the four motors’ joints | strain-wave-life per joint |
arm-on-track | the six-axis arm on an 80 kg carriage on a 4 m floor track, urdf/arm-on-track.urdf | the track: a pinion on a rack behind a planetary gearbox of ratio 10; the arm as urdf-arm | the track (m) and the six joints (rad), or the track beside x, y, z, rx, ry, rz in tool space | rack-feed-force, gearbox-radial-load on the track; guide-load, guide-life of its guide blocks; strain-wave-life per arm joint |
parallel-scara | five-bar with parallelogram forearms in the horizontal plane (its own crate, not a joint machine); a Z stroke and a tool turn at the plate | planetary gearboxes of ratio 20 on the arms; the Z stroke on a ball screw 16 x 20 behind a coupling; the turn behind a planetary gearbox of ratio 8 | x, y (m), z (m), c (rad) | screw-speed, screw-dn, screw-buckling, screw-static, screw-life on the Z stroke |
wafer-handler | R-theta-Z arm of two equal links in the horizontal plane, its forearm and effector coupled to the shoulder by bands at 2:1 and 1:2 (its own crate, not a joint machine); a column that turns and lifts | strain wave gears of ratio 50 on the column and the upper arm; the lift on a ball screw 16 x 10 behind a coupling | r (m), theta (rad), z (m) | wafer-slip, effector-direction, elbow-band-slack, wrist-band-slack; the screw’s checks on the lift |
Every one of them also gets the checks every machine gets: motor peak and RMS torque (motor-peak, motor-thermal),
drive currents, gearbox peak, cubic-mean torque, input speed and life where [ratings] gives them, DC link and braking
resistor, settling. sim-cli list names them, and every command takes them:
sim-cli verdicts screw-axis
sim-cli run rack-axis --set rack.service_factor=1.5
sim-cli margins linear-motor-axis
Each default config is a sized example: its cycle passes all its verdicts (test
every_default_cycle_passes_its_verdicts). Its values are marked [catalogue] where they come from a maker’s document
(the Siemens 1FK2105-4AF motor and the S210 drive the delta picker uses) and [estimate] everywhere else: a screw, rack,
linear motor or strain wave gear of this size as the makers’ catalogues list them, not one maker’s article. Replace them
with your part’s data sheet.
How they are built
A joint machine (chain::JointMachine) is a mechanism plus one joint::RotaryJoint per joint. The mechanism gives the
load’s dynamics in joint coordinates, M(q) q’’ + h(q, q’) = tau, and its own signals, rating checks and scene. The joint
gives everything between the motor and the joint: motor friction, ripple and cogging, holding brake, the gearbox
(ratio, torsional stiffness, damping, backlash, efficiency), friction in the joint and its end stops. With
effects.joint_elasticity the motors are bodies of their own behind the gearboxes’ springs; without, the rigid model,
the rotor turns with the joint times the ratio and each gearbox loses its efficiency on what passes through it.
A joint’s coordinate is an angle (rad) or a travel (m). A screw or rack turns the gearbox’s output rotation into travel
(transmission::Converter): put behind the gearbox, the pair becomes one gearbox in N and m with
- ratio i / lever, the lever the travel per radian (lead / 2 pi, or the pinion’s pitch radius);
- stiffness 1 / (lever^2 / k_gearbox + 1 / k_converter): the gearbox’s torsional stiffness seen at the joint, in series
with the screw’s or rack’s own. A screw’s own is its shaft between the fixed bearing and the nut, E A / a, in series
with nut and bearings: with
effects.screw_stiffness_with_positionat the nut’s place (screw.fixed_bearing_at_mthe travel at the bearing), otherwise at the softest place for the whole stroke; - damping: the gearbox’s over lever^2 across the gearbox’s spring alone, and the screw’s or rack’s own across its
spring alone, c = 2 zeta sqrt(K_c m) from
screw.axial_damping_ratioorrack.damping_ratioand the mass m it moves (nut, bearings, guides), K_c at the nut’s place where the stiffness follows it (zeta kept along the stroke); two damped springs in series, the machine carries one more state for them (Gearbox::arm). With the gearbox’s damper alone (K_g = k_gearbox / lever^2) a mass on the pair rings with c (K_c / (K_c + K_g))^2 at low frequency, not c; - backlash: the gearbox’s seen at the joint plus the converter’s (with
effects.gearbox_backlash); - efficiency: the product (with
effects.gearbox_efficiency); - the screw shaft’s or pinion’s inertia added at the rotor over i^2.
The signal gearbox.<motor>.output_torque is the joint force times the lever, over the converter’s efficiency while
the motor drives and times it while the load drives back, so the gearbox ratings judge the torque at the gearbox
output, before the screw or pinion. The converter’s efficiency is kept apart from the gearbox’s
(RotaryJoint::extra_efficiency): with effects.thermal_feedback the gearbox’s temperature changes only its own
share. A sliding joint reads its guides’ friction, stroke and stops from
[slide] (RotaryJoint::linear_from_config).
With effects.slide_presliding (in the joint kit’s common.toml, off as shipped; a config without the key has it off)
the guides’ friction, with a screw nut’s preload drag and a linear motor’s attraction friction, is a presliding state
(model reference, “Slide: presliding friction”) in place of the smoothed Coulomb step. Its keys in [slide], in every
slide config of the kit (screw, rack, linear motor, the SCARA’s quill):
| Key | Unit | What | Shipped |
|---|---|---|---|
friction_breakaway_n | N | The guides’ breakaway force at rest; the nut’s drag and the attraction friction are added to it as to the Coulomb level; below the Coulomb level it counts as that level | 1.5 times friction_coulomb_n, estimate, bounds the Coulomb level to twice it |
friction_stribeck_m_s | m/s | The speed over which the level falls from breakaway to Coulomb, exp(−(v / v_st)²) | 0.001, estimate, bounds 2e-4 to 5e-3 |
presliding_stiffness_n_m | N/m | Dahl’s σ: the friction’s slope over the travel where it turns at a reversal; from one sliding level it passes zero after level · ln 2 / σ | 1e7, estimate, bounds 2e6 to 5e7 |
Ball screw
transmission::BallScrew, config [screw]. The formulas are those of ISO 3408-5 and of the screw makers’ catalogues:
| Quantity | Formula |
|---|---|
| Critical speed | n_cr = 60 / (2 pi) (lambda L)^2 / L^2 sqrt(E I / (rho A)), a uniform steel beam of the root diameter; lambda L = 1.875, pi, 3.927, 4.730 for fixed-free, supported-supported, fixed-supported, fixed-fixed. Allowed: critical_speed_factor (0.8) times it. |
| Buckling | F_k = factor pi^2 E I / L^2, factor 1/4, 1, 2.046, 4; allowed F_k / buckling_safety_factor. |
| Static load | C0a / static_safety_factor. |
| d n | nominal diameter (mm) times speed (r/min), against max_dn (0 judges none). |
| Axial stiffness | shaft A E / x (fixed-fixed: A E L / (x (L - x))), nut and fixed bearing in series; at the nut’s place with effects.screw_stiffness_with_position (on in the shipped configs but the measured ball screw’s), else at the softest nut position. |
| Preload drag | T = K F_pr l / (2 pi), K = 0.05 / sqrt(tan beta) (THK); added to the guides’ friction as T 2 pi / l. |
| Life | L10 = (Ca / (fw F_m))^3 10^6 turns. A preloaded nut carries F_pr (1 + F / (2.83 F_pr))^(3/2) until the force lifts the preload (Hiwin). |
The screw’s signals: screw.1.speed (r/min), screw.1.dn, screw.1.damage_rate (the share of its life used per hour,
60 |n| (fw F_eq / Ca)^3 / 10^6). The life a check reports is one over the damage rate’s mean over the measured pass
(Palmgren-Miner), times the life factor a1 of ratings.bearing_reliability_percent (0.25 at 99 %, as for every
bearing life), against ratings.required_life_h. The axial force checks take |force|, pulling too, which is on the
safe side for buckling.
A vertical axis: slide.incline_deg = 90 (gravity pulls along the travel by the sine of the incline).
Rack and pinion
transmission::RackPinion, config [rack]: normal module, teeth and helix angle give the pitch radius m z / (2 cos
beta). The check rack-feed-force holds the highest force on the teeth (signal rack.1.feed_force: the force the load
gets over the rack’s efficiency while the pinion drives, times it while the load drives back) against
rated_feed_force_n over the application factor K_A (service_factor). Rack makers publish the permissible feed force of a pair, not a life formula, so the rack
has no life check; the planetary gearbox before it has its own (gearbox-life). pressure_angle_deg (normal section, optional, 20 as DIN 867 where
absent, below 45) gives the force pushing pinion and rack apart, F tan(alpha) / cos(beta), that the pinion’s radial load on the
gearbox shaft counts.
Linear motor
No transmission: the joint’s gearbox has ratio 1 and stands for the forcer’s mounting (its stiffness in N/m). The
motor’s [motor] and [drive] values read in N for N m and m for rad: force constant in N/A, the forcer’s mass as the
rotor’s inertia (not part of mass.carriage_kg), speeds in m/s, encoder counts per 2 pi m. The cogging repeats once per pole pitch: motor.cogging_order
is replaced by 2 pi / linear_motor.pole_pitch_m.
The attraction between forcer and magnet track (attraction_force_n) presses on the guides: the signal
axis.x.guide_load is the attraction plus the weight of carriage, payload and forcer across the guide, and the guide checks (guide-load against
ratings.guide_max_load_n, guide-life from ratings.guide_dynamic_load_rating_n, L10 = (C / P)^3 50 km) judge it.
guide_friction_coefficient times the attraction is added to the guides’ Coulomb friction.
The scene labels the motor’s speed in m/s; it has no shaft to turn.
Rotary table: strain wave and worm gear
The table turns about a vertical axis: M = table plus work inertia, no gravity torque. table.gear selects the gear:
"strain-wave":transmission::StrainWave, Harmonic Drive’s catalogue method: L10 = L_n (T_r / T_av)^3 (n_r / n_av), T_av the cubic mean output torque weighted with the input speed. Signalstrain_wave.1.damage_rate, checkstrain-wave-life."worm":transmission::WormGeargives the efficiency from lead angle gamma, flank friction mu and normal pressure angle alpha_n: tan gamma / tan(gamma + rho’), rho’ = atan(mu / cos alpha_n). Its back efficiency, tan(gamma - rho’) / tan gamma, is computed (zero or below: the gear locks itself) but not yet used by the dynamics, see the limits. The worm’s efficiency is kept apart from the configured gearbox’s, as a converter’s is. A machine file’swormnode is this drive with a back efficiency of its own, which locks itself at 0 or less (machine files)."planetary": the[gearbox]as it is.
Arms from URDF files
rigid::Chain reads a URDF file (links with their inertials, joints of type revolute, continuous, prismatic and fixed;
fixed joints merge into the body before them; no xacro, no branches) and computes the dynamics by the recursive
Newton-Euler algorithm (Luh, Walker and Paul 1980): the joint torques for given accelerations, the mass matrix, gravity
and velocity terms. The payload is a rigid body on the last link: its mass arm.payload_kg, its centre
arm.payload_offset_m from the URDF’s tip frame and its inertia about the centre arm.payload_inertia_kgm2 (xx, yy, zz,
xy, xz, yz in the tip frame), merged into the last body by the parallel axis theorem (Inertial::merged).
Config [arm]: urdf_file is a path, or builtin:six-axis, builtin:scara, builtin:five-axis,
builtin:seven-axis, builtin:palletiser or builtin:arm-on-track for the examples in crates/machine-joint-kit/urdf/. gear_ratios has one
entry per motor; each motor joint’s limits are in [axis.j1], [axis.j2], … (max_velocity_rad_s, or
max_velocity_m_s for a prismatic joint, and so on). The URDF’s limits are the joints’ stops; a continuous joint takes
[joint] min_angle_deg and max_angle_deg. A prismatic joint slides on the [screw], coupled to its motor (its
ratio must be 1; the [gearbox]‘s stiffness and damping stand for the coupling, its efficiency and inertia do not
count), with the [slide] friction (the SCARA’s quill); where the config has a [rack], it runs on a pinion on that rack
behind its own gearbox instead (ratio gear_ratios’, any), as the rack axis does, with rack-feed-force and the
pinion’s radial load on the gearbox shaft (rack.<k>.radial_load, the tooth force times sqrt(1 + (tan 20° / cos
beta)^2), against ratings.shaft_max_radial_load_n: gearbox-radial-load, as on the machine files’ racks). A URDF
limit left out is 0; an empty range is refused. With a [strain_wave] table each revolute joint’s gear gets the life
check.
Each joint has its own motor, drive and gear where the config says so: [motor.<k>], [drive.<k>], [gearbox.<k>],
[strain_wave.<k>], [joint.<k>], [ratings.<k>] and [parts.<k>] over the shared tables, k = 1, 2, … (catalog::motor_config,
as on the machine files). The shipped arms are sized so: the six-axis arm’s wrist (joints 4 to 6) has the catalogue’s
1FK2104-5AF on an S210 6SL3210-5HE10-8UF0 behind a size-20 strain wave gear, its joints 1 to 3 the 1FK2105-4AF behind
size 32; the SCARA’s quill and flange the 1FK2104-5AF. ratings.gearbox_reference_speed_rpm is refused where a motor’s
ratio differs from its own gearbox.ratio, which the gearbox life takes the motor’s speed through.
The tool pose is the joint positions: cycles are given in joints and the sizing judges motors, gears and screws along
them. Their dwell is judged by ratings.settling_tolerance_rad for the joints in rad and settling_tolerance_m for those
in m (the SCARA’s quill); it counts the gears’ twist under the arm’s weight, which the motors’ encoders do not see (2.6
mrad at joint 2 of the six-axis example reaching out). The controller’s feedforward takes the velocity terms in joint
space too: the Coriolis and centripetal torques of M(q) changing with the pose (two links of a planar arm at q2 = 90
degrees and q’ = (1, 2) rad/s ask -6 and 0.75 N m that the feedforward left out before; on the shipped cycles, which
turn their joints at up to 2 rad/s, the motors’ peak and RMS torque change by less than 0.3 %).
Coupled joints: a parallelogram
URDF has no closed chains. A parallelogram that couples joints, as a palletiser’s keeps its flange level, is
arm.joint_coupling: one row per URDF joint, the URDF’s joints as sums of the motors’ joints, q_urdf = C q. The machine
has one motor per column; the dynamics are the chain’s taken to the motors’ joints, M = C^T M_urdf C and h = C^T h_urdf
(C is constant, so it adds no term; the coupling’s forces do no work). A motor joint alone in a row of factor c takes
that URDF joint’s limits over c. [] is one motor per URDF joint.
The bars the URDF leaves out can be bodies of their own (arm.bars_*): the palletiser’s rod and crank are (model reference).
The palletiser (palletiser, urdf/palletiser.urdf, about 20 kg payload, 1.6 m reach) has five URDF joints and four
motors: the turret, the upper arm, the forearm’s angle against the base (a parallelogram from the base drives it: joint 3
= motor 3 - motor 2) and the flange’s turn, the wrist turning back the forearm’s angle (joint 4 = - motor 3), so that the
flange stays level everywhere. Its joints 1 to 3 have the catalogue’s 1FK2106-4AF on 6SL3210-5HE15-0UF0 drives behind
gears of 600 N m rated (an estimate), the flange a 1FK2104-5AF. Shipped in tool space: x, y, z and the flange’s turn rz.
The app draws it as it draws the arms.
A swinging payload
With effects.payload_swing (off in every shipped config) the payload hangs on a pivot at the flange, about two axes
across the line from the flange to its centre (arm.payload_offset_m, the pendulum’s length), held towards its rest by
arm.payload_swing_stiffness_nm_rad and damped by arm.payload_swing_damping_nm_s_rad per axis: a carton in a soft
vacuum gripper or a sack in a sling. The two swing joints are joints no motor drives (chain::Mechanism::passive_joints):
their angles and speeds follow the joint machine’s other states, their dynamics are the chain’s with the swing’s bodies,
the damper’s power is the loss power.payload_swing and the angles the signals swing.1.angle, swing.2.angle. The
feedforward and the poses at rest see the payload fixed to the flange. The palletiser’s carton swings at 1.61 Hz
about the axis across its 0.6 m side and 1.82 Hz about the other (sqrt((k + m g l) / (m l^2 + I)) / 2 pi with 120 N m/rad,
20 kg, 0.2 m and the carton’s own inertia I = 0.75 and 0.4167 kg m^2: 159.2 / (0.8 + 0.75), 159.2 / (0.8 + 0.4167)).
shortcut: without the payload the swing’s joints carry a unit inertia of their own, apart from the arm.
An arm on a track
arm-on-track (urdf/arm-on-track.urdf, config/arm-on-track.toml) is the six-axis example arm on a carriage that
runs 4 m along x on two rails: a prismatic first joint, then the arm’s six. The carriage (80 kg: plate, riser, guide
blocks, the track’s motor, gearbox and pinion) is a body of the chain like any link, so the track is one more joint of
the Newton-Euler model and the coupling between track and arm is in the chain’s equations: the arm’s swing pushes on
the track (joint 2 turning at 3 rad/s² with the arm stretched across the track asks -3 · Σ m y = -43.5 N of the track,
Σ m y = 14.505 kg m of the arm and payload), and the track’s acceleration reaches every joint of the arm (at 2 m/s²
joint 2 holds -2 · 14.505 = -29.0 N m). The track’s motor is the catalogue’s 1FK2105-4AF on an S210, behind a Siemens
NRB080 of ratio 10 (catalogue values, its backlash left out for a preloaded pinion) and the rack axis’s pinion of 200 mm a
turn; 130.5 kg move on it at up to 1 m/s and 3 m/s².
[track] puts the carriage on four guide blocks, block_spacing_m (0.4 m) apart along the rails and rail_spacing_m
(0.5 m) across them. Their load comes from the chain’s reaction at its first joint: what the base passes to the chain,
F = dP/dt + Σ m g z and M_O = dH_O/dt + Σ c × m g z (the rates of the chain’s momentum P and its angular momentum H
about the base’s origin by central differences), taken to the carriage’s frame between the blocks. Its push along the
rails is the rack’s; the rest the blocks share as rigid supports, each F_z / 4 ± M_x / (2 w) ∓ M_y / (2 l) on its rail and
F_y / 4 ± M_z / (2 l) across it, its load the sum of both magnitudes (the catalogue’s equivalent load). The rack’s side (track.rack_side, ±1 along the carriage’s y) decides on which side the helical pinion’s separating force adds to F_y, and its lever (track.rack_lever_m) turns the drive’s push into a yaw moment on the blocks, M_z + side · lever · F_x; the defaults, +1 and 0, are the loads as they were counted. The signal
axis.j1.guide_load is the most loaded block’s load times four, so that the guide verdicts, which share a load equally
among a set of four and rate the set as one (parts.axis = "<block>x4"), judge that block: guide-load against
ratings.guide_max_load_n, guide-life from ratings.guide_dynamic_load_rating_n and the track’s speed. The moments
decide the size: on the default cycle the most loaded block carries 896 N at its peak against the 320 N a quarter of
the weight gives. Shipped: four HIWIN HGH20CA (catalogue), 3584 N against 73360 N, a life of 1.6 million hours.
Redundancy: seven joints for a tool pose of six. In tool space (config/arm-on-track-tool.toml) the track’s position
is an axis of its own, "j1" ahead of the pose’s in kinematics.tool_axes: seven axes, the track given and the arm’s
six joints solved by damped least squares for the flange’s pose with the track where it is. A line of a path moves the
track and the flange together, each straight; the flange held while the track moves makes the arm reach back. The
default cycle in joints picks at 0.5 m on the arm’s left and places at 3.5 m on its right, the arm swinging round and
reaching out while the track travels; the tool-space cycle picks and places with straight lines of the flange, the
track carrying it 3 m while the flange moves from 0.9 m ahead and 0.6 m left of the arm to 0.7 m ahead and 0.3 m right,
150 mm up and turned by 0.5 rad.
Tool space
With kinematics.tool_space = true the machine’s axes are the flange’s pose, and every planner, the cycle, the CLI
and the app move the tool as they move a delta’s: a line of a path is a straight line of the tool. The joint machine
maps the pose to the joints through the mechanism’s inverse and back through forward, the tool’s speed to the
joints’ through the Jacobian of forward (central differences). The controller’s feedforward takes the speed terms:
the joints’ accelerations J^-1 (a - J’ q’), J’ q’ the second difference of forward along q’, and the centripetal and
Coriolis torques of the Newton-Euler model. Targets are refused out of reach (error-arm-out-of-reach), beyond a joint’s
stop (error-joint-beyond-stop) or where the Jacobian’s condition number is above workspace.max_condition_number
(error-arm-singularity); a path through such a pose with error-path-range, as on the deltas. The workspace map and
ratings.max_condition_number take the same number. The time-optimal planner refuses a plan of more than ten million
points (error-path-torque): where the motors allow only a crawl it would fill the memory.
- SCARA (four joints: two arms about vertical axes, a vertical quill, a turning flange,
kinematics.tool_axes = ["x", "y", "z", "rz"]): the axes are x, y, z of the flange (m) and its turn c about the vertical (rad: joints 1 + 2 + 4 plus the turn at zero), in closed form. The arms’ lengths and directions at zero, joint 1’s place, the quill’s direction and the flange’s turn come from the URDF at zero and are checked against the chain at three poses. Joint 2 by the cosine law, cos(beta) = (r^2 - L1^2 - L2^2) / (2 L1 L2), withkinematics.elbow“right” (beta > 0: joint 2 counter-clockwise from the stretched arm, the elbow to the right of the line from the base to the tool, seen from above) or “left”; joint 1 = atan2(y, x) - atan2(L2 sin beta, L1 + L2 cos beta). The condition number is that of d(x, y)/d(q1, q2): infinite at the stretched and the folded arm (25 at 11 degrees of elbow, the example’s limit). - Any other chain of 4 to 7 joints: the axes are those of x, y, z (m) and rx, ry, rz (rad) that
kinematics.tool_axesnames, as many as the motors or one fewer (a redundant arm);"j1"ahead of them makes the first joint’s own position an axis (a track’s: see An arm on a track). The orientation is the rotation vector (axis times angle, base frame) of the turn from the flange’s orientation at zero joints: a URDF whose flange points down at zero is at 0 there, not half a turn from the base frame. With two of the three turns (the five-axis arm’s rx, ry) they are where the tool points: the shortest turn from the flange’s direction along the missing axis at zero joints to where it points now, whose missing part is 0, whatever the joints turn the tool about that direction; the flange’s angular checks judge that turn alone, and a move keeps them with the missing turn at 0. A pose within 0.01 rad of half a turn from that is refused (error-arm-orientation-half-turn): there the rotation vector jumps. The joints by damped least squares on the Jacobian of the tool’s axes (central differences; dq = J^T (J J^T + lambda^2 I)^-1 e, lambda 1 mm, the turns times the flange’s distance from joint 2 atkinematics.home_joints), along the straight line from the last solution to the target in steps of at most 20 mm and 0.05 rad, each settled to 1 um, the last to 1e-13 m. A walk from the last solution that ends a step beyondworkspace.max_condition_numbermay have changed the branch and is walked again from the home, as is one that does not get there; so the solution stays on the home’s branch (shoulder, elbow, wrist). From the last solution an inverse along a cycle takes 7.7 us on the six-axis arm in release, from the home 74 us. A redundant arm (seven joints, six axes) spends its spare joint on staying nearest its home posture: each iteration also moves within the null space of J, by (I - J^T (J J^T)^-1 J)(home - q), until that move is below 1e-11 rad; its joint speeds and accelerations are those of the inverse itself, by central differences along the tool’s speed and acceleration. Withkinematics.redundancy = "joint_limits"("home"as shipped) the spare joint keeps the joints off their stops instead: the null space moves them by (I - J^T (J J^T)^-1 J) W (m - q) towards the middles m of their ranges s, W = (s_min / s)², so the arm settles where sum W (q - m)² is least among the poses near it that reach the target (Liégeois 1977), each offset counted as a share of its joint’s range. The condition number is that of the weighted Jacobian (of its transpose on a redundant arm).
A line of a path in x, y, z, rx, ry, rz moves the place straight and turns the orientation by slerp (path, the
quaternions’ spherical interpolation, Shoemake 1985): about one fixed axis at a steady rate, also between rotation
vectors that are not parallel, where the straight line between them is another turn (a quarter turn about x to one about
y: 70.5 degrees about their bisector halfway, the straight line’s 63.6 degrees). Lines in fewer orientation axes (the
SCARA’s c, the palletiser’s rz, the five-axis arm’s rx, ry) run each axis straight.
config/scara-tool.toml and config/arm-tool.toml are the default configs with tool space on, a start pose and a cycle
of straight lines (the arm’s settling tolerances 5 mm and 5 mrad: under the payload its flange rests 2.3 mm off the
encoders’ pose and turned 3.1 mrad). config/arm5-tool.toml and config/arm7-tool.toml are the five-axis example (urdf/five-axis.urdf:
the six-axis arm without the flange’s roll, pointing down at zero; axes x, y, z, rx, ry, where the tool points) and the
seven-axis one (urdf/seven-axis.urdf: a roll joint in the upper arm; axes x, y, z, rx, ry, rz), each with a cycle of
straight lines, for --config with the urdf-arm machine. Their proportions are generic, every value an estimate.
Telescopic shaft with two cardan joints (delta-d4)
The four-axis delta delta-d4 (its own crate, built on the D3, not a joint machine) turns its tool through a telescopic
shaft with a cardan joint at each end. One cardan joint bent by beta turns its output unevenly: tan chi = tan phi /
cos beta, the speed between cos beta and 1 / cos beta of the input’s, twice a turn. Two joints bent alike in one plane,
the intermediate shaft’s yokes in phase (the Z arrangement), cancel: the second gives phi back. On the delta both the
motor’s shaft and the tool’s are vertical (the platform stays level), so the pair cancels at every pose and the tool
turns with the gearbox’s output; only the shaft between turns unevenly. The shaft twists in series with the tool’s
gearbox (effects.shaft_torsion), its weight share loads the arms (effects.shaft_mass) and the telescope’s sliding
friction pulls on the platform along the shaft (effects.telescope_friction). See the
model reference.
Bending links and the base under the machine
With effects.link_bending (off as shipped) every link of an arm with a section in [link_bending] (a round tube per
joint: outer diameter, wall, Young’s modulus) bends as a cantilever from its joint to the next in its first
Euler-Bernoulli mode, in the plane its joint turns it in: modal mass a quarter of its URDF mass plus everything beyond
it, stiffness 1.875104^4 / 4 E I / L^3, driven by what the bodies beyond need from its tip (their m (a - g), its moment
through the tip’s slope) and its own weight and inertia spread along it. The tool rings with it in tool space; the
joints do not feel it (one-way). A 60 x 4 mm steel tube of 0.8 m and 4.5 kg alone rings at the Euler-Bernoulli 88.96 Hz
and sags under its weight by 49.2 um, 1.3 % above the exact q L^4 / (8 E I). link_bending.directions adds the bend
across that plane (out_of_plane) and the twist about the link’s length (torsion, shear modulus
link_bending.shear_modulus_pa), a first mode each, with the bodies beyond as a tip mass and a tip inertia. With
effects.link_bending_reaction the bending acts back: joints, gearboxes and links are one coupled system, the motors
feel the links ring and excite them through their loops, the bending’s energy and damping are in the machine’s, and
modes gives the coupled modes with the motors held (a link on a gearbox rings as the two springs in series).
With effects.base_compliance (every machine and machine file, off as shipped) the machine stands on a base of up to
six spring-mass directions ([base]): it takes the rate of change of the momentum of everything that moves on it,
rotors included (Machine::frame_momentum; the slides, table and arms give theirs through Mechanism::frame_momentum),
and the tool moves with it. The arm on its pedestal tilts, the table’s stand twists, a slide’s bed sways along it. See
the model reference.
Crank and cam mechanisms (machine-crank-cam)
The core cases of a servo sizing tool (Siemens SIZER) that a joint alone does not cover: a crank that turns a rotary motion
into a stroke, and two axes that work on a moving web or bar through an electronic cam. Each is one motor-driven joint
(chain::JointMachine), so the motor, gearbox, drive loops, heating and every common check are the same as above.
| Id | Mechanism | Transmission | Tool pose | Own checks |
|---|---|---|---|---|
slider-crank | servo press: crank 50 mm, rod 200 mm, ram 15 kg and die 10 kg below it, press force up to 3 kN | planetary gearbox of ratio 20 | crank angle (rad), 0 at the bottom dead centre | rod-force, slider-guide-load, crank-bearing-load |
rotary-knife | cross cutter: knife roll of 100 mm radius, one blade, cuts a web at 1 m/s into 0.5 m formats | planetary gearbox of ratio 10 | roll angle (rad), 0 with a blade at the cut | |
flying-saw | carriage 40 kg with a saw of 25 kg, material at 1 m/s cut into 1.5 m lengths in a window of 0.2 m | helical pinion on a rack behind a planetary gearbox of ratio 5 | x (m) | rack-feed-force |
disc-cam | disc cam: base circle 60 mm, a roller follower of 2 kg (and a 1 kg tool) lifted 30 mm against its return spring, 60 turns a minute | planetary gearbox of ratio 10 | disc angle (rad) | disc-contact-force, disc-pressure-angle |
toggle-press | knuckle-joint press: links of 150 mm in line between crown and ram, a crank of 50 mm pushing the knee through a rod of 250 mm, ram 20 kg and die 8 kg, stroke 57.7 mm, rated 20 kN, press force up to 12 kN | planetary gearbox of ratio 10 | crank angle (rad), 0 at the links’ dead centre | press-capacity, upper-link-force, lower-link-force, rod-force, frame-deflection |
geneva-drive | rotary indexing table of 6 stations by a Geneva wheel of 6 slots, crank 60 mm, centre distance 120 mm; table 0.4 kg m² with six parts of 0.5 kg at 200 mm; an index a second | planetary gearbox of ratio 20 | crank angle (rad), 0 halfway through an index | indexer-contact-force, index-accuracy, index-settling |
cam-indexer | the same table stepped by a cam index drive (roller-gear cam, modified sine over 120° of the cam’s turn, rollers at 80 mm) | planetary gearbox of ratio 20 | cam angle (rad), 0 halfway through an index | indexer-contact-force, index-accuracy, index-settling |
Slider-crank. The slider’s distance from the crank’s centre is x(θ) = r cos θ + √(l² − r² sin² θ), its speed ratio
x’(θ) = −r sin θ − r² sin θ cos θ / w with w = √(l² − r² sin² θ), and x’‘(θ) = −r cos θ − r² cos 2θ / w −
r⁴ sin² θ cos² θ / w³. The rod’s mass is split into a share at the crank pin (rod.crank_end_share) and the rest at the
slider. The inertia the crank feels changes with the angle: J(θ) = J_crank + m_pin r² + m_x x’², m_x the slider, the die
(payload) and the rod’s slider end; its speed term is m_x x’ x’’ θ’² (dJ/dθ θ’² / 2), which the feedforward takes too.
Gravity along the guide (slider.incline_deg, −90 for a ram below the crank) and on the pin. The process force
(effects.process_force) is a table over the ram’s distance from the bottom dead centre ([process]); it pushes back
while the ram moves out (forming), not on the way back, and reaches the crank as −F x’(θ): near the dead centre a large
force costs little torque. Signals: the ram’s position, speed and acceleration, the process force, the rod force
T = (F_along − m_x ẍ) l / w, the guide’s load across |m_x g cos β − T r sin θ / l|, the crank bearing’s load (the rod’s
pull plus the pin’s mass on its circle) and J(θ). Judged against ratings.rod_max_force_n,
slider_guide_max_load_n and crank_bearing_max_load_n.
Rotary knife. The cam’s master is the web, in metres. In the synchronous zone ±α about each cut
(knife.sync_angle_deg) the blade’s tip runs with the web, slope 1 / R; between cuts a motion law takes the roll the rest
of a blade pitch, 2π / n − 2α, over the rest of the format, L − 2Rα. A format shorter than the circumference over n speeds
the roll up between cuts, a longer one slows it: on average (2π / n − 2α) / (L − 2Rα) rad per metre of web, and with
3-4-5 at mid-span 1 / R + 1.875 × (that − 1 / R). The cut (effects.process_force) brakes the roll with a force at the
tip over the angle from the cut ([cut]).
Flying saw. The cam’s master is the material. Per cut length: the carriage comes up to the material’s speed v while
the material runs v² / a (saw.sync_acceleration_m_s2 = a, the mean acceleration), its speed blending as 3u² − 2u³ (no
jump in acceleration, peak 1.5 a), so it covers the synchronisation distance v² / (2a); it runs with the material through
the cut window W for W / v seconds; it leaves the material over another v² / (2a), and returns over the stroke W + v² / a
by a motion law in the rest of the cut length, L − 2v² / a − W of material. A cut length that leaves no room is refused
(saw.cut_length_m). The cut pushes on the carriage along the material over the way into the window ([cut]).
Disc cam. A mechanical cam: the servo turns the disc, and the disc lifts a roller follower on a straight slide,
held on it by a return spring (F0 + k s, follower.spring_preload_n, spring_n_m) and its weight. The follower’s lift
s(θ) is the disc’s lift law, segments of the laws of VDI 2143 over one turn ([[disc.segment]], a 3-4-5 rise of 30 mm
over 120°, a dwell, the return, a dwell). The follower’s axis is off the disc’s centre by e (follower.offset_m), its
roller of radius r_r rolls on the disc of base circle r_b: the roller’s centre is s0 + s above the centre,
s0 = √((r_b + r_r)² − e²), and the pressure angle, between the follower’s axis and the common normal at the contact, is
tan φ = (s’ − e) / (s0 + s), s’ = ds/dθ (a positive offset lowers it on the rise). The contact force along the normal is
N = (m s̈ + F0 + k s + m g) / cos φ with s̈ = s’‘(θ) θ’² + s’(θ) θ’‘; the guide takes N sin φ across. The disc feels
J(θ) = J_disc + m s’², the speed term m s’ s’’ θ’², and the spring’s and the weight’s torque (F0 + k s + m g) s’ (their
potential F0 s + k s² / 2 + m g s): the torque swings with the lift law, driving the disc back on the return. Signals:
the follower’s lift, speed and acceleration, the contact force, the pressure angle, the guide’s load and J(θ); judged
against ratings.disc_max_contact_force_n and disc_max_pressure_angle_deg. With cam.run the disc turns on at
disc.turns_per_min, its master virtual. With effects.follower_lift_off the follower leaves the disc where N would fall below
zero: its gap g to the cam is a passive joint (lift s + g), the contact the roller’s steel line contact (Palmgren’s d =
3.84e-5 Q^0.9 / l^0.8 in mm and N over its width l, follower.roller_width_m: 4e8 N/m at 160 N) and a damper at
contact_damping_ratio of critical with that stiffness, in compression only, so the force on the disc is never negative
and does not jump at the touch, and the guide’s friction (follower.guide_friction_n) acts. At rest the roller sits
pressed in by its load (0.45 µm). Lagrange’s equations: (J + m s’²) θ’’ + m s’ g’’ + m s’ s’’ θ’² + (F0 + k (s + g) + m g + F_f) s’ = torque
and m s’ θ’’ + m g’’ + m s’’ θ’² + F0 + k (s + g) + m g + F_f = F_c; the damper’s power is booked as a loss, so the budget closes through an
impact (power.follower_contact). Signals follower.gap (negative: pressed in) and follower.off_disc (the contact
carries nothing). Off, the roller stays on the disc and the signal alone shows where N would
fall below zero. The middle of the disc’s
range lies on the first half of the rise, where s’’ > 0 and spring and weight hold the disc where it is held against
them; past the rise’s middle they turn it away.
Toggle press. A knuckle-joint press: two links in line between the crown’s pivot O and the ram, the upper one a, the
lower one b, their joint the knee; a crank of radius r pushes the knee across through a rod of length c. The crank and
not a ball screw: the crank-driven knuckle joint is the classic form and keeps the crate’s turning drive and cam; the
screw-driven toggle (the knee on the nut) is not built. With the upper link at φ from straight down, the ram stands
x = a cos φ + √(b² − a² sin² φ) below O (the slider-crank’s formula, the upper link its crank), x = a + b where the
links stand stretched (φ = 0, the dead centre). The joint is the crank angle q from that dead centre; the crank’s
centre lies where the rod is level at it, at crank.angle_at_dead_centre_deg from the rod (90: across it, the ratio falls
linearly into the dead centre; towards 180 in line with it, a long flat dwell). The knee closes the four-bar O-knee-pin-
crank centre: φ from the two circles in closed form, φ’ = D·P_q / D·K_φ and φ’’ = −(E·E + D·(K_φφ φ’² − P_qq)) / D·K_φ
from the rod’s constant length (D = K − P, E = K_φ φ’ − P_q), so x’ = x_φ φ’ and x’’ = x_φφ φ’² + x_φ φ’‘. The ratio
x’ (m/rad) is zero at the dead centre: a crank torque τ holds the ram force τ / x’, which grows without bound into
it. The inverse from the ram’s height has two branches, before and after the dead centre
(TogglePress::crank_angle); the stops (joint.max_angle_deg) say whether the crank may go through it. The masses:
the crank and the rod’s crank end at the pin, the upper link a uniform bar (m a² / 3 about O), the knee with the rod’s
other end and a share of the lower link, the ram with the die and the rest:
J(q) = J_crank + m_pin r² + (m_up / 3 + m_knee) a² φ’² + m_x x’², with its speed term and the weights’ torque. The
process force ([process], over the ram’s height above the bottom dead centre) pushes the ram up while it moves down
or stands, so that it holds through a dwell at the dead centre, and fades out over process.smoothing_m_s as the ram
rises. The frame stretches under it (effects.frame_stretch, frame.stretch_stiffness_n_m = k), a spring in
series: the ram stops F / k short of where the links put it, and the force is the root of F = table(d + F / k), solved
segment by segment of the table. Signals: the ram’s height above the bottom dead centre (with the stretch), speed and
acceleration, the ratio x’, the press force, the force capacity at the pose and its use, the frame’s stretch, the
forces of the two links (two-force members, so their pins carry the same) and of the rod, and J(q). Checks:
press-capacity, the press force within min(ratings.rated_press_force_n, τ_max / |x’|) at every pose, τ_max the
drive’s peak torque through the gearbox’s ratio and efficiency (at most gearbox_max_torque_nm): the rated force
only over the last millimetres, falling with the distance from the dead centre, so that a forming force early in the
stroke fails it (and the motor’s motor-peak); upper-link-force and lower-link-force against
ratings.link_max_force_n, rod-force against rod_max_force_n, frame-deflection against
frame_max_deflection_m. The shipped cycle goes from the ram’s top dead centre (the crank in line with the rod, where
it holds the ram’s weight without torque) into the dead centre in one move, the ratio slowing the ram over the last
millimetres, dwells there under 11.5 kN while the motor gives almost nothing, and returns; config/toggle-press-cam.toml does the same by a cam at 30
strokes a minute.
Electronic cam. sim_components::cam holds a cam as the slave’s position over a master’s, periodic, the slave rising
by its advance per master period (a crank or knife one turn, the saw 0). Segments take the motion laws of VDI 2143:
linear (a synchronous run), dwell, 3-4-5 and 4-5-6-7 (the 5th and 7th order polynomials), cycloid and
harmonic. Where a law meets a linear segment or a dwell it takes its neighbour’s slope and has no acceleration there
(velocity in velocity); between two laws the slave rests (rest in rest). A cam table (cam.table_file, CSV of master,
slave and an optional slope) runs a cubic through its points: with the slopes given between each two points, without them
the periodic cubic spline (the slave’s acceleration continuous). With cam.run = true the controller runs the cam as the
cycle instead of [[cycle.segment]]: the master comes up to speed by a sin² ramp in cam.ramp_s, the slave’s speed is
s’(m) m’ and its acceleration s’‘(m) m’² + s’(m) m’’; a pass is one master period at speed, so analyze and verdicts
measure the steady state; a stop runs the master down over the same ramp, and a new master speed under a running cam
(another web.speed_m_s applied while it runs) ramps from the speed the master has to the new one over cam.ramp_s,
from where it stands: travel v0 t + (v1 − v0) U(t), U the ramp of unit height (cam::master_change). A cam that asks
more slave speed, acceleration or jerk at the master’s speed than the axis limits allow is reported when the config is
applied as limit-cam-speed, -acceleration, -jerk (with the motor limits), and judged as the cycle’s verdicts
cam-speed, cam-acceleration, cam-jerk, per slave axis, against the axis limits. The slider-crank runs either at constant speed (crank.motion = "constant", one turn per stroke, as a
mechanical press’s flywheel) or by the servo-press cam of [[cam.segment]] (fast approach, slow through the forming
zone, fast return) at crank.strokes_per_min.
The shipped configs keep cam.run = false: the cycle swings the crank from the top dead centre down to the bottom and
back (a servo press in pendulum mode), indexes the knife by half a turn and back, moves the saw’s carriage over its
stroke, turns the disc half a turn and back, takes the toggle press’s ram from its top dead centre into the bottom one and back. Beside each lies config/<id>-cam.toml, the same config with
cam.run = true, which passes every verdict (the cam’s limits among them); or run the cams with --set cam.run=true
(app: the cam group’s switch):
sim-cli verdicts slider-crank --config crates/machine-crank-cam/config/slider-crank-cam.toml
sim-cli verdicts slider-crank --set cam.run=true
sim-cli analyze rotary-knife --set cam.run=true --set knife.format_length_m=0.4
sim-cli verdicts flying-saw --set cam.run=true --set material.speed_m_s=1.2
The torque and following error come out of the drive model as on every machine; the cams’ and the mechanisms’ formulas are
checked by hand in cam.rs and machine-crank-cam’s tests (below).
Indexing table: Geneva drive and cam index drive (geneva-drive, cam-indexer)
A rotary indexing table steps on by one of its n stations per turn of its driver and stands still between (the dwell)
while the stations work. The joint is the driver’s angle theta, 0 halfway through an index; the table’s angle phi(theta)
follows it over |theta - 2 pi k| < h and stands outside, a station on per turn (src/indexer.rs).
- Geneva wheel (
geneva-drive): n radial slots, the pin on a crank of radius a entering a slot radially at the centre distance C = a / sin(pi / n). With lambda = sin(pi / n) and x the crank’s angle from the line of centres: tan(phi) = lambda sin x / (1 - lambda cos x), phi’ = lambda (cos x - lambda) / (1 - 2 lambda cos x + lambda²), phi’’ = -lambda (1 - lambda²) sin x / (1 - 2 lambda cos x + lambda²)². The pin is in a slot over 2h = pi - 2 pi / n of the turn: the table moves over (n - 2) / (2n) of it and dwells over (n + 2) / (2n) (n = 6: a third and two thirds; the “(n - 2) / (2n)” sometimes quoted as the dwell is the motion’s share). Peak speed ratio lambda / (1 - lambda) (2.414, 1, 0.620 for n = 4, 6, 8), peak acceleration ratio 5.41, 1.35, 0.700. The wheel starts and stops at rest but with phi’’ = ±tan(pi / n): its acceleration jumps, the jerk is infinite, and the torque on the wheel and the pin’s force on the slot step by J tan(pi / n) theta’² (12.5 N m and 121 N on the shipped table at 60 turns a minute). The crank does not feel the step (its torque is J phi’ phi’’ theta’², phi’ = 0 there); the table does. The pin’s force is the wheel’s torque over its distance from the wheel’s centre, C sqrt(1 - 2 lambda cos x + lambda²), across the radial slot. The locking disc holds the wheel during the dwell. - Cam index drive (
cam-indexer), the modern alternative: a roller-gear (globoid) cam moves the turret by the modified sine (VDI 2143: a quarter sine of acceleration over the first and last eighth, a half sine of a third the frequency between; peak acceleration 4 pi² / (4 + pi) = 5.528, peak speed 1.760) overindexer.index_angle_degof its turn, and holds it on its dwell ridge over the rest. No step in acceleration at either end: its jerk is finite. The rollers on the turret’s pitch radius take the turret’s torque over that radius, along the normal withindexer.cam_radius_m(R_c): tan α = r_p φ’ / R_c, N = F / cos α (shipped: α = 35° at the fastest; the peak force, in the deceleration, 2.1 % more: 359.8 N against 352.5 N at 60 indexes a minute).
The wheel, the table and its parts (mass.payload_kg at table.station_radius_m) give J(theta) = J_driver + J_t phi’²
and the speed term J_t phi’ phi’’ theta’²; the table is horizontal, so gravity does nothing (as process force and frame
stretch, a switch these machines do not read). Index accuracy in the dwell is the lock’s: half
indexer.locking_play_rad at the station radius (index-accuracy against ratings.index_max_error_m), whatever the
motor’s following error, as the locking disc or the dwell ridge holds the table, not the servo. Settling: the table
twists on its shaft against the held wheel (table.stiffness_nm_rad k, table.damping_ratio); through the index its
twist follows x’’ + 2 zeta w_n x’ + w_n² x = -phi’’ theta’², w_n² = k / J_s with J_s the table and its parts (the
wheel, held by the cam or the pin, is not in the mode), and the ring left at the index’s end dies as exp(-zeta w_n t). The
signal table.settling_time is the time the table rings beyond ratings.index_settling_tolerance_m (at the station
radius) after an index run at the driver’s present speed, solved over 2000 steps by the oscillator’s exact solution for a
held force; index-settling judges it against ratings.index_max_settling_s. On the shipped table (w_n = 620 rad/s,
zeta 0.03) the Geneva’s step leaves 59 µrad, 11.9 µm, settling to 10 µm in 9.1 ms at 60 indexes a minute (9.6 ms in the
run) and 60 ms on the servo cycle that runs the index at up to 10 rad/s; the cam indexer’s modified sine leaves 8 µrad
(its jerk over w_n³) and is settled when the index ends. The ring is worked out beside the dynamics, not in them: the drive does not see
it. With effects.table_twist the twist is a passive joint x of its own: (J_d + J_t φ’²) θ’’ + J_s φ’ x’’ + J_t φ’ φ’’ θ’²
= torque and J_s (φ’ θ’’ + x’’ + φ’’ θ’²) = −k x − c x’, J_s the table with its parts, J_t with the wheel, c = 2 ζ √(k J_s); the
ring then acts back on the driver (signal table.twist, the damper’s loss power.table_twist), and the cam’s torque on
the wheel is J_w a_w less the shaft’s k x + c x’. The ring as a joint is the one worked out beside: 5.930e-5 rad against
5.940e-5 after the Geneva’s index at 60 a minute.
The shipped cycle turns the driver one turn (one index) from the middle of a dwell and back; config/geneva-drive-cam.toml
and config/cam-indexer-cam.toml turn it on at 60 turns a minute:
sim-cli verdicts geneva-drive --config crates/machine-crank-cam/config/geneva-drive-cam.toml
sim-cli verdicts cam-indexer --set cam.run=true --set indexer.turns_per_min=90
Five-bar in the horizontal plane (parallel-scara)
The parallel SCARA parallel-scara (its own crate, not a joint machine) is a five-bar lying flat: two arms turn about
vertical axes at x = ±R, each carries a pair of forearms (a parallelogram, so the plate keeps its orientation) to the
plate, as on Mitsubishi’s RP series. Its kinematics and dynamics are the planar delta D2’s, laid flat (copied into the
crate: a machine may not use another machine’s crate); the plate’s coordinates are x and y. Gravity acts along -z, out
of the plane, on the joints’ bearings, so the arms’ motors carry no weight at all: they accelerate the plate and what it
carries, and hold nothing at rest. At the plate two axes can be switched on: a Z stroke ([z_axis], motor 3), a quill
on a ball screw behind a coupling, which holds the carriage and the payload against gravity (m g lead / 2 pi, 0.187 N m
for 6 kg on a 20 mm lead), and a turn of the tool about z ([tool_turn], motor 4) behind its own gearbox. Each has
its own motor, gearbox, drive and ratings tables ([motor.3], [gearbox.4], …). Everything at the plate (the units
with their motors, the carriage, the payload) adds to the plate’s mass in the plane; the stroke and the turn are
perpendicular to the plane, so they do not couple with it otherwise. The tool pose is (x, y), (x, y, z), (x, y, c) or
(x, y, z, c), as the two switches say. With effects.joint_elasticity (on as shipped) the stroke and the turn are
elastic like the arms’ joints: the rotor a body of its own and the coupling’s and screw’s spring (in series) or the
turn gearbox’s between it and what it moves. See the model reference.
Two-part plate with a rack-and-pinion amplifier (delta-h4)
The four-arm delta delta-h4 (its own crate, not a joint machine) is of the Quattro / H4 type (Pierrot’s H4, the
Adept/Omron Quattro): four arms on the base at 90 degrees, each with a parallelogram of forearms, down to a travelling
plate in two parts. Arms 1 and 2 carry part A, arms 3 and 4 part B: two neighbouring arms, whose elbow axes are at
right angles, so that each part cannot turn at all (a parallelogram leaves its plate end one turn, about its elbow’s
axis; two opposite arms’ axes are parallel and would leave a part free to turn about them). The parts slide against each
other along the horizontal d = (1, -1, 0) / sqrt 2, each by the half slide h from the tool’s point the other way; along
the line between them, d = (1, 1, 0) / sqrt 2, the slide would move the four forearms’ ends as the plate’s descent does
at the centre, and the Jacobian would be singular there. A pinion between a rack on each part rolls by h / r_p (its
centre, on a carriage the parts guide between them, stays at the tool’s point), and a gear stage of ratio i_p turns the
tool: c = kappa h, kappa = i_p / r_p (30 rad/m shipped: +-180 degrees are h = +-104.7 mm).
The kinematics are the D3’s per leg at the forearm’s end p -+ h d (closed-form inverse; forward by Newton on the four
constraints from the D3’s trilateration), the dynamics the D3’s by virtual work with each body’s Jacobian: the two parts,
the carriage and payload at p, and the tool’s turn I_t c’^2 / 2 = I_t kappa^2 h’^2 / 2. That last term is the
machine’s character: the tool’s inertia counts in the slide times kappa squared (the shipped tool and payload’s
0.013 kg m^2 as 11.7 kg), and the arms’ gearbox twist and backlash count in the tool’s turn times kappa. With
effects.amplifier_compliance the tool is a body of its own on the amplifier’s spring (with
effects.amplifier_backlash a dead band in it), as the D4’s tool on its shaft. See the
config reference.
Banded R-theta-Z arm (wafer-handler)
The wafer handler wafer-handler (its own crate, not a joint machine) is the R-θ-Z arm of semiconductor and flat-panel
handling. A column lifts (z, motor 3, a ball screw 16 x 10 behind a coupling) and turns (θ, motor 1) an arm of two links
of the same length L = 0.32 m. Motor 2 rides on the column and turns the upper arm by φ, its angle from the radial line.
Inside the upper arm a steel band runs from a pulley fixed to the column to a pulley on the forearm of half its radius:
the forearm turns against the upper arm by −2 φ. Inside the forearm a band from a pulley fixed to the upper arm to one on
the effector of twice its radius turns the effector against the forearm by φ. So the wrist stays on the radial line at
2 L cos φ from the column’s axis, and the effector keeps pointing along it: one motor moves the wafer straight in and out
(r = 2 L cos φ + e, e = 0.18 m from the wrist to the wafer centre). The tool pose is (r, θ, z).
dr/dφ = −2 L sin φ is largest with the wrist over the column (φ = 90°) and vanishes at full extension (φ = 0), the
singular pose: the condition number 1 / sin φ is refused above workspace.max_condition_number (5: φ above 11.5°, r up
to 0.807 m), and the upper arm’s stops are at 10° and 110°. The R motor’s inertia changes strongly with the reach: the
links’ 0.55 kg m² at r = 0.12 m is 1.35 kg along r, their 0.19 kg m² at r = 0.75 m 2.22 kg (and without bound towards the
full extension), while the θ motor feels the whole arm, 0.15 kg m² at r = 0.12 m and 0.60 kg m² at r = 0.75 m, growing with
r². The two motors are coupled through the arm’s motion: turning pulls the arm outwards (motor 2 holds it, the wafer is
accelerated towards the axis at r θ̇²), extending during a turn drags on motor 1 (the wafer’s Coriolis acceleration
2 ṙ θ̇).
The wafer lies on the effector’s friction pads (or vacuum pads, or an edge grip, wafer.hold). Its in-plane
acceleration over the cycle is the verdict wafer-slip, against μ g (μ (g + A p / m) on vacuum pads, the grip’s
acceleration at the edge) over a safety factor: what limits a handler’s cycle time. The shipped cycle between a load port and a chamber 90° apart at r = 0.55 m and 0.2 m apart in height (turn to the chamber
while rising, extend and settle, lower the wafer onto it, retract, turn back while lowering, extend under the next
wafer and settle, lift it, retract: 7.76 s) is sized for it: 0.3 g over 1.2 allows 2.45 m/s² (2.04 at the low bound of
μ), the reach’s limit is 1.5 m/s² and the turn’s 4 rad/s and 36 rad/s² with the wafer drawn back to r = 0.05 m, near the
column’s axis (0.8 m/s² outwards and 1.8 m/s² along); the wafer reaches 1.83 m/s². The bands are springs with pretension (each span
k = 9.4e5 N/m, 150 N): their stretch lets the forearm and the effector lag behind the column and the upper arm, the
wafer lags in r and the effector turns out of its radial line (effector.direction_error; judged while it dwells at a
station, effector-direction); a span that loses all its pretension runs slack (elbow-band-slack, wrist-band-slack
judge the swing against half of it). With the gearboxes elastic (effects.joint_elasticity) the lift’s coupling and screw
are a spring too (in series 4.56e7 N/m at the nut’s far end; with effects.screw_stiffness_with_position, on as
shipped, at the nut’s place): the column rings on it with the rotor held at 432 Hz at the start pose’s lift (321 Hz at the
far end), and the screw’s peak force on the default cycle rises from 171.9 N (rigid) to 184.5 N. See the model reference and the
config reference.
Parallel kinematics: hexapod and cable robots
Three parallel kinematics have crates of their own, machine-hexapod, machine-tripod and machine-cable-robot, run
and sized like every other machine (sim-cli analyze hexapod, sim-cli verdicts cable-planar, the app’s 3D view,
search):
| Id | Mechanism | Drives | Tool pose | Own checks |
|---|---|---|---|---|
hexapod | Stewart-Gough platform, 25 kg plus up to 30 kg, on six electric cylinders (450 mm retracted, 200 mm stroke) | per leg a ball screw 25 x 10 behind a coupling on a 1FK2105-4AF | x, y, z (m), rx, ry, rz (rad, a rotation vector) | the screw’s screw-speed, screw-dn, screw-buckling, screw-static, screw-life per leg, under the leg’s force |
hexapod-rotary | Stewart platform on six cranks (6-RSS), 35 kg plus a seat of 80 kg, cranks 200 mm, rods 550 mm | per crank a planetary gearbox SP100 50:1 on a 1FT2104-5AF | x, y, z (m), rx, ry, rz (rad, a rotation vector) | crank-dead-centre, rod-buckling, crank-ball-joint, platform-ball-joint per leg, the gearbox’s torque |
cable-planar | a carriage of 3 kg plus up to 2 kg, a point in a vertical plane, on 4 cables from a frame 2 m x 1.6 m | per cable a winch: 25 mm drum behind a planetary gearbox 5:1 | x, z (m) | cable-max-tension, cable-min-tension per cable |
cable-spatial | a platform of 4 kg plus up to 4 kg, six degrees of freedom, on 8 cables from the corners of a frame 2 x 1.6 x 1.8 m | as the planar one, 30 mm drum | x, y, z (m), rx, ry, rz (rad) | as the planar one |
tripod | 3-RPS tilting table, 20 kg plus 40 kg off its centre, on three electric cylinders (450 mm retracted, 200 mm stroke), a revolute joint at the base and a spherical one at the platform | per leg a ball screw 20 x 10 (Hiwin 20-10K3-FDC) behind a coupling on a 1FK2104-4AF | z (m), rx, ry (rad, tilts about x and y) | the screw’s checks per leg; tripod-leg-force, tripod-leg-stroke, tripod-revolute-angle, tripod-cone-angle per leg; tripod-parasitic |
Their proportions are generic, every value an [estimate] but the motor’s and drive’s (catalogue, as above). Each
default cycle passes all its verdicts; the cable robots’ settling tolerances are requirements of their size (0.3 mm
planar, 1 mm and 2 mrad spatial), not the ball screw axis’s 0.05 mm.
Hexapod
Each leg is a joint of chain::JointMachine whose coordinate is the cylinder’s extension q_i, so the screw, its nut and
bearings, the coupling, backlash, the friction of the rod’s guide and the nut’s preload, the stops at the stroke’s ends
and the motor are those of the ball screw axis above. The mechanism gives the platform’s kinematics and dynamics:
- Inverse kinematics in closed form: leg i runs from its base joint B_i to the platform joint p + R a_i, its length L_i =
leg.closed_length_m+ q_i. The joints sit in pairs: base pairs at 120 k ±hexapod.base_half_angle_deg, platform pairs at 120 k ± (60 −platform_half_angle_deg), each leg to the neighbouring pair. - Forward kinematics by Newton’s method on the platform’s twist, from the centre of the tool’s box: xi = J^-1 (q − q(x)), p += v, R = exp(w) R, until the legs miss by less than 1e-13 m; legs that no pose fits (no convergence within 40 steps) give NaN, which every caller refuses. The dynamics, four times an integration step, starts Newton instead from the pose at the nearest point of a 1 mm grid of leg extensions (found from the box’s centre, kept until the legs leave its cell) moved by J^-1 (q − q_grid): two steps instead of about five. That pose differs from the one from the box’s centre by Newton’s tolerance, and depends on q alone, not on what was called before (a run, its replay and a fit’s perturbed runs give the same numbers); the default cycle’s figures move with it as much as a change at the rounding of the pose moves them anyway.
- J’s rows are (u_i, b_i × u_i), u_i the leg’s direction and b_i = R a_i. Dynamics by the platform’s twist: M_xi xi’ +
c + g = J^T f, so in leg space M_q = J^-T M_xi J^-1 and h = J^-T (c + g − M_xi J^-1 a0), a0 the legs’ length
acceleration at the twist (checked against the Lagrange equations of M_q by differences: equal to 1e-9). Each leg is
two bodies swinging with its direction: the rod part (
leg.platform_shareofleg.mass_kg, centreleg.platform_part_centre_mfrom the platform joint) and the body part (the rest, centreleg.base_part_centre_mfrom the base joint), each with its inertia about its centre across the leg; their kinetic energy enters M_xi and c, their weight g. The payload may have an inertia of its own (mass.payload_inertia_kgm2, 0: a point mass). - Refused: a leg beyond its stroke (
error-joint-beyond-stop), a leg steeper against the base’s or the platform’s normal thanworkspace.max_joint_angle_deg(error-hexapod-joint-angle), a pose whose Jacobian has a condition number aboveworkspace.max_condition_number, the turns weighed by the platform radius (error-hexapod-singularity). The workspace map shows that condition number; the signalplatform.conditionfollows it along the cycle. - Verdicts: each leg’s force (
joint.<i>.force) against its screw’s buckling load and static rating over their safety factors, the screw’s speed, d n and life; the motors and drives as on every machine.
Under its weight the platform held by constant leg forces is unstable (d²/dz² of m g z − Σ f_i L_i < 0), a real property that the position loops hold; the standard suite’s loss-free configs therefore run without gravity, as the six-axis arm’s do, and gravity is checked by the hand-calculated leg forces and the default config.
Tripod
A platform on three legs of variable length: z and two tilts, as tilting tables, tool heads and motion bases use them.
The form is 3-RPS: each leg an electric cylinder as on the hexapod (motor in line, ball screw, coupling), on a trunnion
at the base (a revolute joint about the tangent of the base’s circle, so the leg swings in the vertical plane through
the base’s centre) and on a ball joint at the platform. The other common form, 3-PRS (vertical slides carrying struts of
fixed length, as in the Sprint Z3 head), has the same constraints and the same dependent motion; legs of variable length
are the hexapod’s electric cylinders, parts the simulator has. Each leg is a joint of chain::JointMachine as on the
hexapod; the mechanism gives:
- The pose: z, the platform centre’s height, and the tilts rx, ry, with R = Rx(rx) Ry(ry) Rz(g): the pure tilt R0 = Rx(rx) Ry(ry), then a turn g about the platform’s normal. The three constraints (each platform joint stays in its leg’s plane, e_i · (p + R a_i) = 0 with the joints at 0, 120 and 240 degrees) give the three dependent coordinates in closed form: tan g = −sin rx sin ry / (cos rx + cos ry), p_x = rp (cos ry cos g + sin rx sin ry sin g − cos rx cos g) / 2, p_y = rp cos ry sin g; to second order p_x ≈ rp (rx² − ry²) / 4, p_y ≈ −rp rx ry / 2, g ≈ −rx ry / 2. The platform’s normal is exactly the pure tilt’s: the turn is about it alone.
- Inverse kinematics in closed form (the legs’ lengths |p + R a_i − B_i|). The twist (v, w) of the platform solves G xi = (q’, 0), G’s rows (u_i, b_i × u_i) for the legs and (e_i, b_i × e_i) for the constraints; the tool’s rates are S xi (z’ = v_z and the tilts’ rates from w), so the Jacobian is K = (S A)^-1, A the first three columns of G^-1.
- Forward kinematics by chord iterations x += K(home)^-1 (q − q(x)) from the centre of the tool’s box; after the first,
steps with K at that first iterate (far faster near the solution: 5 to 6 evaluations of the legs over the box) as
long as each halves the legs’ miss, else the chord again for good; until the legs miss by less than 1e-13 m, NaN
(refused) after 100 steps. Why it converges over the working range: weighing the error as (dz, rp drx, rp dry) in the max norm, every pose of the box
lies within r = 0.04 m of its centre, and a chord step shrinks the error by at least kappa = max ||W (1 − K0^-1 K(x))
W^-1|| over the box grown by r (z 0.46 to 0.62 m, tilts ±0.4 rad), which holds every segment the iterations run along.
On a grid of 17³ points there kappa is at most 0.595 and changes by less than 0.07 between neighbours, so kappa < 0.7:
the iterations converge from the centre to every pose of the box (test
the_chord_iteration_contracts_over_the_grown_working_range); the faster steps cannot stop that, as each must halve the miss or hand back to the chord. - Dynamics by the twist with the constraint forces projected out: G xi’ = (q’’ − a0, −c0) gives xi’ = A q’’ + beta; the
platform M_xi xi’ + c + g = J^T f + C^T lambda, M_xi with the first moment s = R s_b of a payload off centre; A^T takes
lambda out (C A = 0) and A^T J^T = 1, so M_q = A^T M_xi A, h = A^T (M_xi beta + c + g). The payload is a body of its own
(
mass.payload_kg,payload_offset_m,payload_inertia_kgm2); each leg’s mass split as on the hexapod. - Signals: per leg
leg.<i>.from_middle(its extension from the middle of the stroke),leg.<i>.swing(its angle in its plane from the base’s normal, at the revolute joint),leg.<i>.cone(its angle against the platform’s normal, the spherical joint’s cone); the platform’splatform.condition, the parasiticplatform.x,platform.y,platform.turnandplatform.pose_error, the farthest any point of the joint circle lies from where the pure tilt about (0, 0, z) puts it, sqrt(|d|² + c² + 2 c |(R0^T d)_xy|) with d = (p_x, p_y, 0) and c = 2 rp |sin(g/2)|. - Refused: a leg beyond its stroke (
error-joint-beyond-stop), a swing beyondworkspace.max_revolute_angle_deg(error-tripod-revolute-angle), a cone angle beyondworkspace.max_cone_angle_deg(error-tripod-cone-angle), a condition number of K (tilts weighed by rp) aboveworkspace.max_condition_number(error-tripod-singularity). Level the condition number is √2; over the shipped box at most 1.62. - Verdicts: the screws’ as on the hexapod;
tripod-leg-force(joint.<i>.forceagainstleg.max_force_n),tripod-leg-stroke(from_middleagainst half the stroke),tripod-revolute-angle,tripod-cone-angle(against the joints’ limits), andtripod-parasitic(platform.pose_erroragainstratings.parasitic_tolerance_m, where given).
Hexapod with rotary actuators (6-RSS)
hexapod-rotary (crate machine-hexapod-rotary) is the build of motion simulators and fast six-axis positioners: six
servo motors with planetary gearboxes on the base, each turning a crank of 200 mm, each crank’s tip joined to the
platform by a rod of 550 mm with a ball joint at both ends. The default is a small motion base: a platform of 35 kg
carrying a seat with its occupant, 80 kg (its centre of mass 300 mm above the platform joints, with its own inertia), on
six 1FT2104-5AF with SP100-04-50 gearboxes on S210 converters 6SL3210-5HE10-8UF0 (catalogue). Tool pose and axes as on the hexapod; the joints are the crank
angles (rad, 0 horizontal, positive lifting the tip). Each crank is a joint of chain::JointMachine with a
joint::RotaryJoint (gearbox stiffness, backlash, efficiency, the crank bearing’s friction, stops), as on the delta
pickers. See the model reference and the
config reference.
- Geometry: the crank axes’ centres in pairs at 120 k ±
platform.base_half_angle_degonplatform.base_radius_m, the platform joints in pairs at 120 k ± (60 −platform_half_angle_deg) onplatform_radius_m; each crank axis horizontal, the base radius turned by ±crank.axis_turn_deg(mirrored in a pair) so that the rod leans little out of the crank’s plane. - Inverse kinematics per leg in closed form: with e = P_i − B_i, a cos θ + b sin θ = c, a = e · d_i, b = e_z,
c = (|e|² + r² − L²) / 2r; θ = atan2(b, a) ∓ acos(c / √(a² + b²)), the branch fixed once by
crank.branch(“out”: the tip away from the pair’s partner; “in” the other); no solution where |c| > √(a² + b²). - Forward kinematics by Newton’s method on the platform’s twist from the centre of the tool’s box, as on the hexapod; the dynamics too starts from the pose at the nearest point of a 1 mrad grid of crank angles, moved by K (q − q_grid).
- Jacobian: A ξ = diag(u_i · t_i) θ’, A’s rows (u_i, b_i × u_i), u_i the rod’s direction and t_i the crank tip’s
tangent; u_i · t_i is the motor’s torque arm. The condition number of the inverse Jacobian (turns weighed by the
platform radius) is the workspace map’s and the signal
kinematics.condition; it grows without bound as one crank nears its dead centre (all six there at once scale its rows alike and leave it as it is: the dead centre’s own margin refuses that pose). - Refused: a rod that cannot reach (
error-target-out-of-range), a crank nearer its dead centre (the rod in the plane of the crank and its axis, the torque arm zero) thanworkspace.min_dead_centre_margin_deg(error-rss-dead-centre), a ball joint beyondworkspace.crank_joint_max_angle_deg(the rod out of the crank’s plane) orplatform_joint_max_angle_deg(against the platform’s normal;error-rss-ball-joint), two rods nearer thanworkspace.min_rod_clearance_maxis to axis (error-rss-rods-cross), a rod nearer thanworkspace.min_body_clearance_mto an edge of the platform’s or the base’s hexagon (error-rss-rods-cross-body), a condition number aboveworkspace.max_condition_number(error-rss-singularity), a crank beyond its stops. - Dynamics by virtual work in the crank angles: the platform and payload as one rigid body with its centre of mass off the platform centre, each rod as a slender rod (a sixth of its mass at each end and two thirds at its middle: exact for a uniform rod’s mass, centre and inertia across, which the lumped split of the delta crates is not), each crank with its inertia and weight, the rotors through the ratio; gravity; energy and frame momentum for the standard suite and the compliant base.
- Verdicts beyond the motors’: the gearboxes’ torques (
gearbox-peak,gearbox-continuous,gearbox-input-speedagainst the SP100’s ratings), per legcrank-dead-centre(the rod’s angle from the crank’s tangent against 90° lessratings.crank_dead_centre_margin_deg, 20°),rod-buckling(the rod’s compression against its Euler load π² E I / L² of the tube in[rod], overratings.rod_buckling_safety_factor),crank-ball-jointandplatform-ball-joint(the joints’ angles against their limits), andsingularity. - The default cycle: heave up 50 mm, then surge and sway 60 mm, roll and pitch 0.12 rad, yaw 0.15 rad, each from the pose before (one turns back while the next sets in), and back to the level pose, where the seat is taken off and put on again (the payload’s switch).
As on the hexapod, the platform held by constant crank torques runs away from its pose under its weight, so the standard suite’s loss-free configs run without gravity (and without the gearboxes’ backlash, which no load then holds against a flank); gravity is checked by the hand-calculated holding torques and the default config.
Cable robots
A cable leaves its winch along the swivel axis of a pulley of radius r (frame.exits_m, frame.winch_directions,
pulley.radius_m), wraps it and runs straight to its anchor on the platform (platform.anchors_m; the planar one’s
cables meet at the carriage’s centre). The pulley swivels into the plane of the anchor; in that plane the length is the
arc r beta plus the tangent l_f = sqrt(m² − r²), and dL/dP = −u, u the unit vector from the anchor to the exit point.
- Statics: the structure matrix A (n x m) has the columns (u_k, b_k × u_k) in the platform’s degrees of freedom; the
cables hold a wrench w when A t = w with every tension in the band from
cable.min_tension_nto the ratingcable.breaking_load_n/cable.safety_factor. Cables only pull, so the tensions are distributed by a small QP: those nearestcable.reference_tension_nthat hold the wrench within the band. Where no cable sits at a bound that is the closed form t = t_ref + A^+ (w − A t_ref); where one does, the QP holds it there and shares the rest out, and unlike the improved closed-form method (which fixes one cable at a time and never frees it again) its tensions change continuously with the pose. It is solved by an active-set method on the penalised problem (which also says which cables sit at a bound) and then exactly on the free cables. - Wrench-feasible workspace: a pose whose platform weight (with the payload) no tensions in the band hold is refused
(
error-cable-wrench-infeasible), also as a target, a path or a cycle pose. At the planar robot’s centre the four cables carry 139.81 N (top) and 100.19 N (bottom); 5 cm below the top pulleys the top cables would need 1284 N each. - Elastic (
effects.cable_stretch, on): a cable of free length l is a spring of EA / l while taut (cable.ea_n), slack below; its stiffness changes over the workspace. The platform’s stiffness on its cables, elastic and geometric part with the drums held, gives its natural frequencies (sim-cli modes, the input shaper’s resonance): 24.6 Hz at the planar robot’s centre.effects.cable_dampingaddscable.specific_damping_n_s/ l. Rigid (off), the cables keep their length. - The cables’ own mass (
cable.mass_per_m_kg, 3 g/m and 10 g/m shipped, [estimate]; 0 leaves it out): half of each span’s weight hangs on the platform, and a cable sags (shallow parabola): at the chord tension T it is longer than its chord by (w l_h)² l_f / (24 T²), so with t0 = EA (L − l) / l the straight cable’s tension, t0 = T − c / (2 T²), c = (w l_h)² EA l_f / (12 L); its stiffness dT/dt0 is Ernst’s equivalent modulus E / (1 + (w l_h)² EA / (12 T³)), and a slack cable still hangs with a small tension. Against the exact elastic catenary the pull on the anchor agrees to 9e-5 N at 20 N and 2e-4 N at 5 N (the straight cable misses it by 0.17 N and 1.6 N there). - The winches’ drums and rotors spin about
frame.winch_spin_axes(default horizontal and square to the cable’s direction at the winch; with a vertical one the pulley’s axle at rest), and their spin is in the frame’s load. - The time-optimal plan keeps every cable’s tension of the rigid model within the band (
cable.min_tension_nto the rating,profile.tension_reserveof the room): the planar default cycle takes 1.684 s instead of 1.653 s without the band, where a cable went down to 0.63 N; cable-spatial 1.207 s instead of 1.143 s. - Each winch is a
joint::RotaryJointin metres of cable: motor, gearbox with the drum’s radius as its lever, the drum’s inertia, friction of bearings and pulley (effects.winch_friction), stops at an empty and a full drum. Elastic, drum and rotor are bodies of their own behind the gearbox’s spring; rigid, the cables keep their length and the winches’ inertia joins the platform’s. - The gears’ mesh friction (
effects.gearbox_mesh_friction) holds (1 - eta) of the torque each gear passes, and a winch’s gear always passes the cable’s pretension: at cable-spatial’s 250 N, 30 mm drum, ratio 5 and eta 0.95 a band of +-12.5 N at the cable (+-0.075 N m at the motor) inside which the drum stands still. A turn of the platform moves each cable by little (at the home pose 35, 28 and 14 mm per rad for rx, ry, rz), so the sum of the eight bands along a turn, 3.5, 2.8 and 1.4 N m, against the position loop’s proportional stiffness through the cables (830, 530 and 130 N m/rad) is a dead band of 4, 5 and 11 mrad without the integrator: by hand, a 0.5 mrad sine of rx at 1 Hz asks the loop for 1.0 to 1.1 times the band’s torque, rz for 0.4, so with the speed loop’s Tn at 30 ms rx and ry followed to 1.41 and 1.25 Hz and rz had no band (simulated alike; 4.44, 4.37 and 4.06 Hz with the friction off). The friction is physical, so the tuning changed: Tn 5 ms, by the symmetric optimum from the speed loop’s 80 Hz crossover (phase margin 60 degrees), lets the integrator break the meshes away within the turn: 5.6, 5.2 and 4.4 Hz. A lower pretension would narrow the band too, but below 200 N the cycle takes cable 7 under its 20 N. The machine friction feedforward (drive.friction_feedforward_model = "machine") now has the meshes’ friction on the tension at rest, (1 - eta) of each gear’s held torque along the planned motion, so that the integrator no longer carries it through a move and takes it past the target when the move stops; it acts on the planned speed and does not reach a step or a sine on the setpoint. In the PLCopen test’s 5 mrad move of rz the platform then stands 0.31 mrad past the target 0.3 s after Done and 0.17 mrad 1 s later (0.55 and 0.20 before), inside the 2 mrad turn tolerance the spatial config now states (ratings.settling_tolerance_rad). The planar robot moves its cables by its translations alone and keeps 30 ms (9.3 and 9.8 Hz). - The motors’ angles of a pose are those of the free lengths that hold the platform there at rest, l = L / (1 + t / EA), t the tension distribution’s wherever one exists (the closed form’s only beyond the wrench-feasible workspace), so position setpoints and the torque feedforward (the distribution’s tensions for the platform’s wrench, plus the winches’ inertia) ask the same pretension of the cables. The forward kinematics is Gauss-Newton on these lengths; the controller uses it twice a position cycle (the following error in tool space), so it takes cheap steps first and the numerical Jacobian only near the workspace’s edge. With stretching cables it then finds the platform’s rest on them by Newton, from the pose at the nearest point of a 1 mm grid of free lengths (found as before, kept until the lengths leave its cell) with its Jacobian (a chord method, the Jacobian recomputed where a step fails), which saves the Gauss-Newton and most residuals. The pose differs by Newton’s tolerance (1e-12 m) and depends on the motor angles alone; the default cycles’ figures move by up to 1.5e-5 with it.
- Signals per cable:
cable.<k>.tension,cable.<k>.shortfall(how far it is below the least tension),cable.<k>.length;platform.condition, the structure matrix’s condition number. Verdicts:cable-max-tension(highest tension against the rating) andcable-min-tension(any shortfall fails), the motors and drives as on every machine.
The press’s cam changes speed by 4-5-6-7 laws: a 3-4-5 into the slow zone asks 6 Δv / Δm² + 60 c / Δm³ = 67.4 rad/rad³
of jerk at its ends (Δv 1.468, Δm 0.5 rad, c −0.067 rad), at π rad/s of master 2090 rad/s³, more than the crank’s
2000; the 4-5-6-7 has no jerk of its own there. The four machines’ speed loops have Tn 0.01 s (the knife’s Kp 0.25):
the integrator takes up the friction at the end of a move three times as fast as with 0.03 s, and the dwell errors fall
to 0.13 mrad (crank), 0.06 mrad (knife), 0.03 mm (saw) and 0.02 mrad (disc) (the knife, saw and disc with the friction
feedforward their configs ship with), with at least 36.5° and 10.0 dB of margin in every run across the bounds (sim-cli margins <id> --bands); the settling tolerances are 0.3 mrad, 0.3 mrad, 0.25 mm and
0.5 mrad. Retuned on 15 November so that the margins hold with friction off too (the sweep across_the_bounds): the
knife’s Kp 0.18 (at the softest gearbox damping of its bounds 0.25 left 29.7°; now at least 37.8° and 9.9 dB; its
cycle’s following error 8.86 → 12.1 mrad, the cam’s 4.72 → 5.70 mrad, settling 0.042 → 0.072 mrad), the saw’s Tn
0.04 s, position loop kv 57 1/s, Kp 0.25 with a notch at its gearbox and rack’s resonance (360 Hz, 250 Hz wide;
the friction-free 45 kg carriage left 33.9° with Tn 0.03 s and no notch; now 40.2° and 11.51 dB; it comes to rest
moving 12.3 µm in 0.2 s after a long move, 13.5 before, under the test’s 20; at 400 Hz the notch’s phase lag
below its centre drove the undamped gearbox mode at 367 Hz unstable in the loss-free configs). The notch’s switch is each crank and cam
machine’s own (effects.notch_filter, the first key of its file, which follows the [effects] table that ends
config/common.toml); the other four keep it off.
Pneumatic cylinder beside servo axes ([[machine.cylinder]])
Most pick-and-place machines carry a pneumatic actuator beside their servo axes: a Z stroke, a gripper slide, a
stopper. A machine file adds one with a [[machine.cylinder]] node whose values table holds the cylinder, its valve,
tube, throttles and cushions (sim_components::pneumatic, keys in config-reference.md, model
in model-reference.md). It is no tool axis: no drive moves it and the controller plans nothing
for it. The cycle commands its valve once a segment has arrived (valves = { z = "extend" }) and waits for its
end-position sensors (wait = ["z.extended"]) before the dwell counts and the next segment starts.
machines/pneumatic-axis.toml: the belt-driven servo X of single-axis.toml carrying a Festo DSBC-32-100-PPVA-N3
(32 mm bore, 12 mm rod, 100 mm stroke, PPV cushions 17 mm, 0.4 J) hanging downwards on a 5/2 valve with meter-out
throttles; 0.5 kg moved, 0.5 kg picked. The cycle: X to the pick, Z down, wait, grip, Z up, wait, X to the place, Z
down, release, Z up. With the shipped settings Z extends in 0.55 to 0.56 s and retracts in 0.65 s (valve 7 ms, the rod side
exhausting from supply, 0.216 m/s throttled, the cushion’s bleed at the end), enters the cushion at 0.22 to 0.24 m/s
with a kinetic energy of 0.012 to 0.029 J against the 0.4 J rated (cushion-energy). The check is the vendor’s rule for
the cylinder’s own cushioning, the kinetic energy at the cushion’s entry against the maximum impact energy of the
table (Festo DSBC data sheet, “Forces and impact energy”, v = sqrt(2 E / (m1 + m2)), p. 13); the weight’s work over
the cushion length, m g L, belongs to Festo’s rule for external shock absorbers and is not added (hanging 1 kg over
the 17 mm: 0.167 J more, which this check does not count). It stops at 0.06 to 0.09 m/s on the bumper without
bouncing out of the sensor band, and has a load factor of 0.024 (load-factor, the 1 kg weight against 415 N
retracting). A double stroke draws 1.10 normal litres, 474 J at the compressor (0.12 kWh/m³); by hand at the supply
pressure and the wall’s temperature 1.15 l, the 4 % less because the dwells are too short for the hot air to cool.
What the cylinder gives for sizing: stroke times out and back, the speed profile, the speed and kinetic energy entering the cushion against its rating, the speed at the end stop, bounce and settling, the load factor, the air per double stroke and its energy at the compressor, the pressure and temperature traces of both chambers.
Winder and unwinder with a dancer (machine-winder)
The classic servo sizing problem of converting machines, and the one machine whose motors a material couples and whose
load changes over the run: winder runs a web (film, paper, foil) from an unwind roll over a dancer roller to a rewind
roll, at a line speed, under a tension. The shipped config: a PET film of 50 µm, 400 mm wide, at up to 2 m/s (up to speed
in half a second, 4 m/s²) and 100 N, on 3-inch cores (r_c 45 mm) growing to 300 mm (r_f 150 mm; 1286 m of film, 36 kg),
each roll on a 1FK2206-2AF with a holding brake behind a planetary gearbox of ratio 7, on an S120 Motor Module of 5 A
with a Braking Module for both; the dancer a roller of
80 mm on a vertical slide, 4 kg plus a 2 kg weight, pushed down by a pneumatic cylinder, ±50 mm of travel. The line
position runs over the roll’s first 6 m (roll.run_from_m, run_m), where the unwind is full and the rewind on its
core; the cycle runs 3 m forward and back. Model in the model reference.
| Id | Mechanism | Transmission | Tool pose | Own checks |
|---|---|---|---|---|
winder | unwind roll, two web spans of 1 m over a dancer roller, rewind roll | planetary gearbox of ratio 7 per roll | line position (m), the web wound up | web-tension, web-slack, dancer-travel; per motor inertia-ratio, torque-at-full-roll, torque-at-core, speed-at-core, tension-torque-at-full-roll |
What changes over a run. A roll’s radius grows by the web’s thickness per turn, r² = r_c² + h s / π; the motor’s speed for a line speed v is i v / r, highest at the core (311 rad/s at 2 m/s), the torque for a tension T r / i, highest at the full roll (2.14 N m at 100 N), and the inertia it sees grows with r⁴: from 0.23 to 10.4 times the rotor’s and gearbox’s over the roll. A sizing has to hold both ends; a cycle runs metres of a roll of 1286 m, so the own verdicts carry the cycle’s line speed, acceleration and tension to the full roll and to the core (model reference, “Own verdicts”). With the shipped motor the inertia ratio (10.4 of 15 allowed) decides the motor, not its torque: a 1FK2205-2AF (3.15 kg cm²) has the torque but 22 times its inertia at the full roll.
The web stretches in two spans of EA / L (80 kN/m each), carries its strain from span to span, and goes slack below zero tension. The dancer on them rings at 26.1 Hz, its roller at 56.9 Hz. The rolls follow the line position by electronic gearing at the radius of their wound length, with the tension’s torque and the roll’s inertia fed forward; the dancer’s position loop trims the unwind’s speed: a roll wound at 100 N run at 80 N would drift the dancer by 0.25 mm/s at 2 m/s (the draw), which the loop takes out. The tension setpoint tapers over the rewind’s radius, 100 N at the core to 79 N at the full roll, through the cylinder’s force.
Stops. A category 2 stop (sim-cli stop winder --category 2, the line braked along its path at the axis’s 4 m/s²)
keeps the web between 30 and 250 N at every radius. A category 1 stop brakes each motor on its own OFF3 ramp: in
the middle of the roll, where the radii are equal, the web keeps its tension; near either end the two surfaces slow in
the ratio of their radii (1.35 against 0.40 m/s² on the full roll and the core), the dancer runs into its stop after
0.47 s and the web is stretched beyond 1100 N. Category 0 lets the holding brakes take the rolls within some 50 ms and the
web goes slack. On a winder only a stop along the line keeps the web; after a category 1 stop the holding brakes keep
the tension the dancer holds.
Speed loops. The rewind on its core has a tenth of the full unwind’s inertia at the motor, so each has its own gain
(1.2 and 3.0 N m s/rad, Tn 30 ms): sim-cli margins winder gives 68.9° and 20.45 dB on the unwind, 57.5° and 9.50 dB on
the rewind (51.6° and 9.18 dB without friction), at least 53.6° and 8.85 dB across the bounds (--bands).
sim-cli verdicts winder
sim-cli run winder --cycle --time 10 --stop-at 7.5 --stop-category 2 --out winder.csv
sim-cli stop winder --category 2
sim-cli verdicts winder --set web.tension_n=150 --set axis.web.max_velocity_m_s=3.0
Movers on a closed track (machine-mover-track)
A linear transport system as Beckhoff XTS or B&R ACOPOStrak: motor segments of linear-motor coils in a closed loop, and on them independent movers, each a mass on rollers carrying a magnet plate, each driven by the coils under it with a position loop of its own. The shipped config: six movers of 651 g (AT9014) with 600 g each, on a loop of two 1 m straights of four 250 mm modules (AT2000) and two 180° curves 267 mm across, a 100 mm clothoid at each end of an arc of 130.3 mm (the split is an estimate; Beckhoff publishes the width and that it is a clothoid); 3.019 m round. A mover gives 100 N peak and 30 N continuous, 4 m/s, 10 g unloaded (the 5-pin magnet plate on 48 V; with the payload the plate moves 1.25 kg at 79.9 m/s², the axes are limited to 30 m/s²); force constant, coil resistance, the attraction (300 N) and the pole pitch are estimates.
| Id | Mechanism | Transmission | Tool pose | Own checks |
|---|---|---|---|---|
mover-track | 1 to 7 movers on a closed loop of straights and curves (6 shipped) | linear motor per mover: the coils under it | each mover’s distance along the loop (m), unwrapped | per mover mover-guide-load, curve-holding, station-settling (index cycle); mover-gap; per segment segment-current, segment-temperature |
Two cycles, both electronic cams. A closed track only goes forward, so the cycle is a cam ([cam]): track.cycle = "index" moves every mover one station pitch (the loop over the movers, 0.503 m) by a 4-5-6-7 law in 0.4 s and
stands it at its station for the rest of the period, 1.5 times a second (2.75 m/s, 23.6 m/s² peak); flying.toml runs
"flying": each mover in turn rides with a conveyor at 1.0 m/s over 0.3 m of the first straight, synchronous with it,
then back round the loop and into the process again (6 products of 0.3 m per loop: the movers close up to a product
pitch over the process and run back at up to 2.78 m/s). default.toml ships cam.run = false, as the crank and cam
machines do: there the movers jog 0.25 to 0.3 m forward to take a product and back with it through a point they pass
without stopping, to hand it over at the start, by the [[cycle.segment]], the cycle the generic tests and tools run;
--set cam.run=true runs the index cycle.
Curves. A mover’s rollers span its wheelbase w, so the curvature its body follows is the curvature’s mean over it:
the lateral acceleration v² k rises over the wheelbase where a constant-radius curve begins and over the clothoid where
there is one; its rate, the lateral jerk 2 v a k + v³ dk/ds, is what the clothoid takes down (at 2 m/s 1228 m/s³ into a
circle, 614 m/s³ into the clothoid). The movers run outside the loop with the plate facing the coils, so the centrifugal
force m v² k pulls a mover off the coils against the attraction: the rollers carry sqrt((F_a − m v² k)² + (m g)²)
(mover-guide-load), and the share m v² k / F_a (curve-holding) must stay below 1, where the mover lifts off.
mass.centre_offset_m = e puts the movers’ mass centre outside the centre line (the drawn mover’s is 35 mm out; 0
ships): in a curve it runs on R + e at v (1 + e k), its lateral acceleration v² k (1 + e k) (38.9 m/s² mid-arc at 2 m/s
with e = 35 mm, 30.7 at e = 0) and its kinetic energy ½ m v² (1 + e k)², with the tangential force of that mass changing
over the clothoid in the dynamics (the energy is kept). The offset moves the mover body and payload, not the plate.
Coils and segments. A mover’s current is its force over the force constant; it flows in the coils under its magnet
plate, shared among the segments by the plate’s length on each. A segment’s current is the sum of its movers’ shares
(segment-current, against the module’s 48 A peak), its copper loss R I² of each; it warms through one thermal
resistance and time constant (segment.<j>.temperature_rise), and segment-temperature judges the rise its loss settles
at averaged over a pass: movers stopping on one segment heat it. The gap between neighbours along the centre line, less
a body’s length, against the 2 mm least distance (mover-gap); a standing mover’s error at its station against the
±10 µm repeatability (station-settling).
Model and limits in the crate’s documentation (crates/machine-mover-track/src/lib.rs).
sim-cli verdicts mover-track --set cam.run=true
sim-cli verdicts mover-track --config crates/machine-mover-track/flying.toml
sim-cli verdicts mover-track --set cam.run=true --set track.index_rate_hz=2.5 --set track.clothoid_m=0.0
Overhead crane (machine-overhead-crane)
overhead-crane is a single-girder overhead crane of 250 kg safe working load: a bridge travelling 10 m on its runway
(x), a trolley travelling 5 m along the girder (y), and a hoist on the trolley whose drum winds a single fall of 6 mm
steel wire rope down to the hook. The tool is the hook as the drives place it: the bridge’s x, the trolley’s y and the load’s height z over the floor
(m); the load’s sway is not in it (a crane is positioned by its bridge and trolley) but has signals and a verdict of its own. Each drive
is a servo motor behind a planetary gearbox (Siemens 1FK2104-6AF on the bridge and the trolley, 1FK2105-6AF on the
hoist, S210 drives), its wheel or drum the lever: 30:1 on 80 mm wheels, 25:1 on 50 mm wheels, 40:1 on an 80 mm drum.
- The rope. It leaves the trolley’s sheave at T = (x, y, H), H = 5 m, and runs straight to the load’s point P (hook
and load one point mass). Its length L = |P − T| over its free length l (paid out by the drum) is a stretch e = L − l;
while taut it pulls with t = EA e / l + c / l (L’ − l’) (
rope.ea_n,rope.specific_damping_n_switheffects.rope_damping), its potential EA e² / (2 l), and it cannot push: below zero it is slack. It pulls the load with −t u (u the unit vector from the sheave to the load), the trolley with t u (x on the bridge’s drive, y on the trolley’s, z into the rails) and the drum, through the potential’s slope over l, with t (1 + e / (2 l)): the load’s sway acts back on both travel drives, and its swing stretches the rope on the hoist. - The load is a spherical pendulum on that rope, P’’ = −t u / m − g e_z. Its small swing has the period
2π √(L / g): 2.84 s on a 2 m rope, 4.01 s on 4 m (
sim-cli modes overhead-cranereports the frequency over z). With the trolley free to roll it is a two-mass pendulum, ω² = g / L (1 + m / M), M the trolley with its rotor at the rail. Rigid (effects.rope_stretchoff) the rope keeps its free length: its tension is the constraint force that keeps L’’ = l’’, solved in closed form each step; that model’s rope also pushes (it is the reference for a taut rope). - The drives are rigid (
joint::RotaryJointwith atransmission::Converter; the gearboxes’ backlash and twist are read and not used, the crane’s give is its rope’s), the gearbox’s efficiency on the power it passes, the motors’ own friction, ripple and holding brake as on every machine. The wheels roll againstcrane.rolling_coefficient(0.006) times their load, the bridge’s and trolley’s weight and the rope’s pull down (effects.guide_friction). Buffers at the rails’ ends and stops at an empty and a full drum (effects.hard_stops). - The motors’ angles of a pose are the empty hook’s: l = (H − z) / (1 + m_hook g / EA). The payload hangs lower than
the pose by its own stretch (6.8 mm on 4 m), and the drum stands still when the hook takes the load or lets it go, as
a hoist’s does (
setpoint_slack7.8 mm). Pick and set-down are quasi-static: the payload goes on (off) with the rope at once at the stretch of the new weight, as a load standing on the floor that the hoist takes up slowly; without that the rope would snatch the load from rest at twice its weight and fling the empty hook up off a slack rope. - Input shaping against the sway. The machine reports the sway’s frequency √(g / L) / 2π at a pose
(
Machine::resonance_hz), and witheffects.shaper_follows_pose(on in the shipped config) the input shaper’s period follows the rope’s length where the plan stands, so a move that hoists while it travels is shaped for the length as it changes;profile.shaper_axes = ["x", "y"]leaves the hoist unshaped.effects.input_shapingitself is off in the shipped config (as on every machine, so that a setpoint from outside arrives as sent); switch it on with--set effects.input_shaping=true(machine_overhead_crane::shaped_config()). Measured on the empty hook’s way back, which hoists from 4 m to 2 m of rope while it travels 7 m: unshaped 0.43 m of sway left, the following ZV (the shippedprofile.shaper_type, half a sway period behind the plan) 0.017 m, a ZV set for the length at the move’s end 0.124 m, one set for its start 0.105 m (ZVD, a whole period behind: 0.012, 0.047 and 0.041 m). A move without a dwell starts when the plan arrives, the shaper’s tail still under way, so a segment that lowers right after a travel has the sway’s period change under that tail: the default cycle travels and lowers in one move instead. - The time-optimal plan (
profile.cycle_timing = "time_optimal") knows the load as carried along with the trolley, not swinging: the config keeps 30 % of every limit for the swing (profile.time_optimal_margin0.7; planned at the motors’ full speed, the swing ran the bridge’s motor past its no-load speed). It is no sway-aware plan. - The default cycle (travel and lower, back, pick, hoist): a short positioning cycle, 7.0 s a pass (12.8 s shaped),
so that every check of every machine’s cycle sees it whole. From the travel height (z = 3 m, a 2 m rope) over the
pick place the load travels 0.2 m and 0.1 m to the place while it is lowered by 0.15 m, and is let go; the empty hook
goes up and back in one move, down to the next load, 0.3 s to sling it, and hoists it. Every move but the pick’s
lowering and hoisting travels and changes the rope’s length at once, so every drive moves from the start. Shaped,
every verdict passes (residual sway 4.4 mm, the rope 2721 N at most and never below its least tension, the hoist brake
loaded to 5.4 of 7.5 N m); unshaped, the load is left swinging by 0.30 m and
residual-swayfails (its warm start converges on the default cycle, 0.019 K; witheffects.hook_blockthe sway one pass leaves carries into the next and the verdictthermal-cycle-repeatnames it). A workshop crane’s real cycle over the runway takes a minute: a segment’s target of [8.0, 4.0, 1.0]. - The drives’ velocity loops are tuned as stiff as the other machines’ (bridge and trolley some 60 Hz, 2.0 and 0.24
N m s/rad). The hoist’s is measured at rest under the 265 kg (
sim-cli margins) with the gearbox’s efficiency effect off: with it on, the 92 % gearbox’s efficiency, faded in below 0.5 W, is a damper of 2601² ln(1 / 0.92) / 0.5 W = 1.1e6 N s/m at the rope, 4.5 N m s/rad at the motor, which the test torque does not break away from, and the loop shows no gain crossover. Without the gear’s losses, with a tenth of the hoist’s own rated torque (0.66 N m) as the test torque, it crosses over at 50.5 Hz with 77.6° and 20.95 dB (at 0.32 N m, a tenth of the shared drive’s rating: 48.5 Hz, 83.1°, 21.3 dB, where the motor’s friction damps the smaller signal more). - Verdicts of its own:
rope-max-tension(the highest tension againstrope.breaking_load_n/safety_factor, 4444 N),rope-min-tension(any fall belowrope.min_tension_n, 50 N, fails: no slack rope),residual-sway(the load’s sway amplitude √(d² + (d’ / ω)²) at every dwell, d its horizontal offset from under the sheave, againstcrane.residual_sway_max_m, 50 mm),hoist-brake(the rope’s torque at the hoist’s motor, t (1 + e / (2 l)) r / i, againstmotor.hoist.brake_torque_nm/hoist.brake_safety_factor, 12 / 1.6 = 7.5 N m). Signalsrope.tension,rope.shortfall,rope.length,load.sway_angle,load.sway,load.residual_sway,hoist.brake_load. - 3D view: the runway’s rails on their columns, the girder, the trolley with its drum, each drive’s motor and gearbox, the rope coloured by its tension against the load’s weight, the hook and the load; labels with the motors’ speeds, the rope’s tension and the sway in mm.
sim-cli verdicts overhead-crane --set effects.input_shaping=true
sim-cli verdicts overhead-crane
sim-cli modes overhead-crane --axis-index 2
Left out (shortcuts in the code): the rope’s own mass (0.14 kg/m against 265 kg) and its bending at the sheave, a hook block and a load that swing on their own (a double pendulum) or twist, a bridge on two drives that can skew, and the load standing on the floor during pick and set-down.
What is checked by hand
Component tests (sim-components): the screw’s critical speed, buckling load, inertia, stiffness, preload drag, life
and its signals and checks; the converter behind a gearbox (ratio, series stiffness, backlash, efficiency, inertia);
the slide’s friction and stops; pitch radius and feed force of the rack; worm efficiencies; strain wave life; the
textbook pendulum and energy conservation of the Newton-Euler chain.
Machine tests (machine-joint-kit): every machine passes the standard suite (round trip, static hold, energy
conservation without losses, energy budget with them, step convergence, determinism) and its default cycle passes all
verdicts. On the rigid, loss-free models: the screw reaches 2400 r/min at 0.8 m/s and pushes with the mass times the
acceleration the run reached; the rack’s feed force and gearbox torque are m a and m a r; the linear motor’s guides carry
2500 + 13 g = 2627.49 N; the table’s gear passes J alpha; the six-axis arm reaching out holds 177.304 N m at joint 2
(-1.47753 N m at its motor) and 21.3785 N m at joint 3, summed from the URDF’s masses by hand; the SCARA’s screw holds
5.5 g = 53.937 N, -0.171686 N m at its motor. In tool space: the SCARA’s closed form at (0.325, 0.275) gives the elbow
at ±pi/2 and joint 1 at 0 or 1.404514 rad by hand; forward of inverse returns poses within 1e-9 (the SCARA’s whole
range, the arm’s sampled around its home, its wrist on the home’s side); every planned pose of a line lies within 1 um
of it and the arm’s orientation within 1e-6 rad; the joint speeds are J^-1 v by hand (1.538462 rad/s); a line into the
stretched SCARA arm is refused; the time-optimal plan keeps the motors within their maximum speed and torque-speed curve along a line; both tool
cycles pass their verdicts. The arms of 14 November: the feedforward in joint space has a two-link arm’s Coriolis and
centripetal torques by hand (-6 and 0.75 N m at q2 = 90 degrees, q’ = (1, 2) rad/s); a payload’s own inertia counts
about the last joint (1.2 N m against the point mass’s 1.15 at 1 rad/s^2); the slerp midpoint of two quarter turns is
70.53 degrees about their bisector, and a planned line of the arm’s tool passes it; the warm-started inverse gives the
joints a walk from the home gives (1e-9 rad); the seven-joint arm reaches a pose to 1e-9 with its joints’ offset from
the home free of the Jacobian’s null space; a flange pointing down at zero is at no turn; the palletiser’s flange stays
level over its joints’ ranges and its swinging carton has m g l (1 - cos 0.1) + k 0.1^2 / 2 = 0.79597 J turned by 0.1
rad and (m l^2 + I) / 2 = 0.775 J swinging at 1 rad/s, and keeps the energy loss-free; each arm joint has its own
catalogue motor; a time-optimal plan of a crawl is refused beyond ten million points. The arm on its track: the track
pushes -3 · 14.505 = -43.515 N while joint 2 swings the stretched arm at 3 rad/s², joint 2 holds -2 · 14.505 =
-29.01 N m while the track accelerates at 2 m/s² and the track pushes 130.5 · 2 = 261 N; the guide blocks carry
4 (1279.768 / 4 + 142.2455 / 1) = 1848.75 N at rest with the arm stretched across and 2656.85 N accelerating, the
pinion’s shaft 261 · 1.071978 N; the guide verdicts flip at their limits; in tool space the track is where the pose
says to 1e-12 m and forward of inverse returns the pose to 1e-9 along the whole track. A screw 1.6 m long fails screw-speed, and a life asked for beyond the
screw’s fails screw-life. With losses: the rack’s gearbox torque and feed force are the load’s force over 0.97, the
screw’s life shrinks by a1 at 99 % reliability, and the temperature feedback keeps the efficiency of screw, rack and
worm.
Crank and cam tests (sim-components cam.rs, machine-crank-cam): a 3-4-5 segment of rise 0.1 m over 2 rad at 4 rad/s
peaks at 1.875 h V / T = 0.375 m/s, 5.7735 h V² / T² = 2.3094 m/s² and a jerk of 60 h V³ / T³ = 48 m/s³; every law rises
from rest to rest with rates that are its differences; a law between two runs of slope 10 keeps it at its ends and has
10 + 1.875 (12 − 10) at mid-span; a sine table with slopes, and its periodic spline without, run through the sine; the
master’s sin² ramp covers ramp V / 2. The slider-crank at 60° (r 50 mm, l 200 mm): x = 0.2202562 m, x’ = −0.0488454 m/rad,
x’’ = −0.0187556 m/rad²; J = 0.0869757 kg m², and turning back at 2 rad/s, speeding up by 10 rad/s² against 1 kN,
−47.878563 N m at the crank; at −90° the rod pushes with 1032.796 N, the guide takes 258.199 N. The knife (R 0.1 m, ±10°)
on a 0.5 m format turns 12.758984 rad/m between cuts on average and 15.173095 at mid-span, 7.756072 on 0.8 m. The saw (1 m/s,
5 m/s²) synchronises over 0.1 m at 7.5 m/s² peak, runs 0.2 m with the material and returns at 0.8333 m/s. Each machine passes
the standard suite, its default cycle and its cam pass all verdicts, a cam pass lasts one master period (2, 0.5 and
1.5 s) and a stop ends it within the ramp; the knife’s cam at a 10 rad/s limit is reported at 15.17 rad/s and fails its
verdict cam-speed there. A new web speed under the knife’s running cam ramps the master from 1 to 0.8 m/s: 0.9 m/s at
mid-ramp, 0.8 m/s after 0.5 s, 0.45 m on the way, no step in speed. The disc cam at 60° (mid-rise of a 3-4-5 of 30 mm
over 120°, r_b 60 mm, r_r 15 mm, e 10 mm): s0 = 0.0743303 m, s’ = 0.0268574 m/rad, tan φ = 0.188709, φ = 10.687°; at
2π rad/s spring and weight push with 159.420 N, the contact force is 162.234 N, the guide’s load 30.084 N and the disc’s
torque 4.28161 N m. The toggle press (links 150 mm, crank 50 mm at 120° from the level rod at the dead centre, rod
250 mm), against a circle intersection for the knee and central differences: at −90° of the crank the ram is
35.655 mm above the bottom dead centre with x’ = 0.0364766 m/rad, at −20° 1.792 mm and 0.0108256, at −2° 0.0156 mm and
0.00090095, at the dead centre x’ = 0, φ’ = −0.2886751, x’’ = −0.025 m/rad²; 1 mm above it the crank stands at
−0.2646374 rad on one branch and as far past it on the other; 10 N m of the motor (100 N m at the crank) hold 2741.5 N
at −90° and 42530 N at −5°; 10 kN take 79.387 N m at the crank 1 mm before the dead centre and 23.487 N m 0.1 mm
before it; the frame (5e7 N/m) stretches 0.4 mm under the rated 20 kN, the table’s 12 kN become 11538.46 N with
0.2308 mm of stretch; J = 0.01859375 kg m² at the dead centre and 0.05605024 far from it; the force capacity at −90° is
145.5 / 0.0364766 = 3988.85 N; a forming stroke from rest to rest takes 20.615 J from the motor in a loss-free run
(19.284 J into the part, 1.331 J into the frame); in the dwell the motor gives under a tenth of the 9.44 N m the same
force would take 1 mm before the dead centre; a forming force moved 20 mm up fails press-capacity and
motor-peak.
Machine tests (machine-hexapod, machine-cable-robot): all three pass the standard suite and their default cycles
pass all verdicts. Hexapod: every leg 0.5471158 m long at the home pose (0, 0, 0.48 m), 0.0971158 m out, from the
joints’ circles by hand; forward of inverse returns three poses within 1e-12; the legs hold 62.2 kg at home with
115.8772 N each, m g / (6 u_z), and the motors with 0.184424 N m (f lead / 2 pi); off centre the forces still sum to the
weight. Hexapod with rotary actuators (machine-hexapod-rotary): at the level pose (0, 0, 0.4 m) every crank stands at
−0.5115438 rad from the closed form by hand (2.208120 rad on the branch “in”); forward of inverse returns three poses
within 1e-12; the rods carry (115 + 6 × 0.2) g / (6 u_z) = 209.7935 N of compression and the cranks hold the platform
with 41.4875 N m, 0.829750 N m at each motor (the rod’s force times the torque arm 0.189602 m, the crank’s and the rod’s
weight); the torque arm r √(a² + b²) sin δ / L is 0.185772 m 100 mm up and zero at the dead centre 0.6378641 m up;
the inverse Jacobian’s row (u, b × u) / (u · t) by hand, 4.774645 rad/s of crank per m/s of heave; a heave of 1 m/s²
takes 0.109989 N m more at each motor; the rods’ Euler load 10590.31 N, 3530.10 N over the safety; the four new
verdicts pass at their limits and fail beyond; the virtual work’s torques equal the crank’s Newton-Euler balance with
the rods’ forces to 1e-9. Cable robots: at the planar centre each cable is 1.283539 m long (arc and tangent by hand), the tensions are
139.808 N and 100.192 N, the cables’ stiffness is 192512 N/m across and 119500 N/m up, the lowest natural frequency
24.605 Hz, the geometric stiffness 235 N/m more; 5 cm below the top pulleys the pose is refused; a cable the closed form
takes below its band is held at the bound and the others carry the rest (8.485 N each by hand); the spatial robot’s
forward of inverse returns its poses within 1e-10.
Machine tests (machine-tripod): the standard suite and the default cycle with all verdicts. Level at z = 0.54 m every
leg is 0.5491812 m long; tilted 0.15 rad about x the centre shifts by rp (1 − cos 0.15) / 2 = 1.1229 mm and the legs are
0.5489779, 0.5750463 and 0.5241851 m; at (0.15, 0.1) rad the closed form’s turn and shift (−7.5203 mrad, 0.61207 and
−1.49654 mm) match their second order and keep each platform joint in its leg’s plane; forward of inverse to 1e-12 on 9³
poses; the chord step contracts by under 0.7 over the grown box; level the Jacobian’s rows are u_z (1, rp sin t_i, −rp
cos t_i) and its condition number √2; the legs hold the centred 62.7 kg with m g / (3 u_z) = 208.4437 N (0.331749 N m
at the motors), the offset load by moment balance with 274.9330 and 175.1991 N, and push 250.9544 N each rising at 2
m/s²; the platform’s momentum on a compliant base carries the payload’s offset; each new verdict’s value and limit by
hand, and the joints’ limits refuse the level pose 0.1° below its 10.49°.
Machine tests (machine-wafer-handler): the standard suite with every combination of rigid and elastic gearboxes and
bands; at φ = 60°, θ = 30° the wrist at (0.277128, 0.16) on the radial line and the wafer centre at (0.433013, 0.25),
dr/dφ = −0.554256 m/rad; the R motor’s inertia by hand M_φφ = m₁ c₁² + I₁ + m₂ (L² + c₂² − 2 L c₂ cos 2φ) + I₂ + (m₃ + m_w)
4 L² sin² φ, 0.5499656 kg m² at r = 0.12 m (2.485862e-4 kg m² at the motor) and 0.1876677 at r = 0.75 m (1.036671e-4); the
θ motor’s 0.153033 and 0.604751 kg m²; turning at r = 0.75 m at sqrt(μ g / r) = 1.980571 rad/s the wafer accelerates at
μ g = 2.941995 m/s², 1.2 times the limit, and motor 2 holds the arm with 0.0162955 N m; extending at 0.5 m/s during a
turn at 1 rad/s at r = 0.5 m the wafer’s acceleration is (−0.5, 1.0) m/s²; a torque of 1 N m on the effector stretches
the bands by β = 2.955083e-4 and γ = 5.819704e-4 rad (K₁ = 1692, K₂ = 2303 N m/rad) and turns it out of its radial line by
3.300103e-4 rad; the rigid bands carry dT₁ = −4.271710 N and dT₂ = 4.379926 N at θ̈ = 10 rad/s² with the wrist over the
column; the Z motor holds 11.2276 kg with 0.1752378 N m; the modes against numpy’s (18.20 to 186.45 Hz) and the column on its
screw and coupling, 320.8907 Hz by hand; the hold on
pads, vacuum and edge; a span runs slack beyond its pretension; the default cycle passes all verdicts and the reach
speeding up at 3 m/s² slips the wafer.
Pneumatic cylinder tests (sim-components pneumatic.rs, sim-machines/tests/pneumatic.rs): p A at 6 bar on both
sides (482.5 and 414.7 N, Festo’s 483 and 415); the ISO 6358 choked flow C p ρ0 and the elliptic law; the meter-out
throttled speed C ρ0 R T0 / A2 (0.1443 m/s within 1 %, the shipped Z’s 0.2156 m/s within 3 %); the air springs’ natural
frequency adiabatic (29.64 Hz) and isothermal (25.05 Hz); the air of a double stroke (1.1119 normal litres); the
closed-form filling time while choked (2.555 ms); energy kept in a closed cylinder and the enthalpy balance of an open
one; the stroke time within 1 % at half the step; the checks cushion-energy and load-factor on the shipped cycle;
a cylinder too stiff for the step refused. The file passes the standard suite with the cylinder at rest.
Winder tests (machine-winder): the standard suite (rigid and elastic, with and without the dancer’s weight), and holding
at rest at both ends of the roll and a quarter of it. After 640 m the rewind’s radius is 110.503 mm and the unwind’s
110.969 mm (8231.352 and 4904.800 rad turned); the roll holds 1286.482 m. The roll’s inertia at 110.503 mm is 0.1366427
kg m², full 0.4485586 kg m², the inertia ratio 10.4026 at the full roll and 0.2319 on the core. The tension’s torque through
the ratio, −2.142857 and 0.642857 N m at the roll’s start, −0.507857 and 1.692857 N m at its end (the taper’s 79 N). The
torque to speed the line up by 2 m/s² at 640 m: 1.7824107 N m on the rewind at rest, 1.7818049 N m at 2 m/s, −0.8150135 and
−0.8144080 N m on the unwind, the roller’s 2.5 N between the spans included; in the rigid model these torques move the line
at exactly 2 m/s² with the dancer at rest. The suite’s loss-free runs are made in the middle of the roll, where the radii
are equal; at the roll’s start the tension its constant holding torques keep drifts off the wound tension as the radii
part, and the strain the web carries in and out (power.web_transport) is what the energy changes by. A span’s steady tension for 1 against 1.0005 m/s: EA (v2 / v1 − 1) = 40.000 N
(the span equation to first order 39.980 N). The dancer at a load of 120 N with the rolls held at 100 N stands 39.9948 mm
down (the rolls’ radii 2.88 µm smaller after giving the web). The dancer rings on the web at 26.071 Hz, its roller at
56.941 Hz. What leaves the unwind arrives at the rewind or stays in the spans within 1e-7 m over a 3 m run. Without the
dancer’s loop a roll wound at 100 N run at 80 N drifts the dancer by −0.24969 mm/s at 2 m/s, with it the trim settles at
0.49938 mm/s. The own verdicts: the inertia ratio 10.4026, the speed at the core 311.11 rad/s, each failing with its rating
just below its value. A category 2 stop and, in the middle of the roll, a category 1 stop keep the web between 30 and
250 N; a category 1 stop near either end of the roll overloads it.
Limits
-
A screw’s stiffness follows the nut only with
effects.screw_stiffness_with_position(on in the shipped configs but the measured ball screw’s); off, it is taken at its softest nut position for the whole stroke. -
The arm on its track: the rack’s push is taken through the carriage’s origin (no moment of its own on the blocks), the arm’s motor rotors’ gyroscopic moments are left out of the guide load, and the blocks are rigid supports (no guide stiffness: the carriage does not tilt on them); the guide load is not told to the time-optimal plan (
rigid_guide_loads), which keeps the motors’ and gears’ limits only. -
A pneumatic cylinder is no tool axis and does not act back on the axis that carries it; its valve switches on/off (no proportional valve, no servo-pneumatic position loop); a tube is a flow element whose volume goes into the dead volumes; Festo prints no ISO 6358 C and b for the VUVG valves, so the shipped valve’s are estimates.
-
A link bends in one mode per direction (in its joint’s plane; across it and in torsion with
link_bending.directions); witheffects.link_bending_reactionthe bending acts back on the joints, without Lagrange’s terms of second order in the small bending. -
A worm gear driven back from the load loses as any gearbox does (1 / efficiency) and never locks itself.
-
No unbalance on the rotary table, no rack life formula (none published), no cross roller bearing check.
-
A cam’s master cannot yet be the conveyor of
[conveyor](the cam’s master is its own, with the conveyor’s speed-and-ramp model); a new master speed starts its ramp from the master’s speed without its acceleration (a step in acceleration where it comes during a ramp); the disc cam’s follower is a translating one (no swinging lever); the slider-crank’s press force acts only on the way out (no springback), the toggle press’s also at rest and fades as the ram rises (its frame’s stretch is a massless spring, the links are rigid) and the knife’s and saw’s cut force only forwards. -
The linear delta (
delta-linear, three belt axes on columns that may lean,geometry.column_incline_deg) is a parallel machine, not one of these; see the model reference. -
Hexapod: the legs’ own turning about their base joints and the payload’s inertia are left out; one stiffness per leg (the screw’s at the nut,
effects.screw_stiffness_with_position, on as shipped). Its modes are reported with the motors held, as the arms’ (sim-cli modes hexapod). -
Tripod: the legs’ swing about their base joints is left out, as on the hexapod; no friction or play in the revolute and spherical joints; one stiffness per leg (the screw’s at the nut, as on the hexapod); the forward kinematics’ convergence is shown for the shipped box (a config with another geometry or box should run that test’s check again).
-
Winder: both rolls have the same core, full radius, motor and gearbox; the web’s mass in the spans, the change of the spans’ length with the rolls’ radii, the web’s Poisson thinning and the roll’s own compliance (its layers sliding, telescoping) are left out; the roll’s radius is computed from its wound length (a measured diameter or the speed ratio,
rewind.radius_from_speeds, is a signal only); the shaft seals’ friction does not follow the gearboxes’ temperature (their efficiency and drag do); the shipped cycle runs 3 m of the roll’s 1286 m at its start, and the other end of the roll is judged through the own verdicts, not run; corner blending has nothing to blend on its one reversing axis; the drive does not adapt its speed controller to the roll’s inertia (45-fold from core to full), so the shipped gains are those of the stretch shipped ([drive.unwind]its own) and a run near the roll’s end needs them swapped. -
Hexapod with rotary actuators: the rods’ spin about their own axes and the ball joints’ friction are left out; of the parts that could cross only the rods are checked against each other; one crank branch for all legs.
-
Cable robots: the cables’ own inertia is left out (a third of each cable’s mass moving with its anchor, 0.5 % of the spatial platform’s mass), and the sag’s weight moving with the pose (5e-5 N); the wrench-feasible workspace of the poses is the static one (a cycle’s accelerations are held to the band by the time-optimal plan; within the axis limits they are judged by the tension verdicts); near the workspace’s edge the motors’ stretch compensation counts on the closed form’s tensions where the distribution holds a cable at a bound.
Catalogue
catalog/ holds vendor data as CSV tables in one vendor-neutral format, schema 1: SI units named in the column (_m, _kgm2, _rad_s, _w, …), the same column name for the same quantity whatever the maker calls it, and beside each <table>.csv a <table>.meta.toml with its part class, the source of every value (document, page or table, date, extraction script or [estimate]), and the notes: what a row is, the conditions of the values, and what was kept as printed although it looks wrong. The numbers are the vendors’; the layout and the column names are ours. The format, the validator and how to add a vendor are in catalog/README.md and catalog/CONTRIBUTING.md; the folder is laid out to become a repository of its own.
The column names and units below are schema 1’s. The documents print other units (r/min, kg cm², arcmin, kW, mm); catalog/tools/cataloglib/legacy.py maps each extraction script’s columns to the schema’s, and checks every converted value against the printed one.
- What the simulator uses
- Files
- Other makers
- Mechanics: gearboxes, screws, guides, linear motors, belts, belt axes
- How the files were extracted and checked
- Misprints and inconsistencies found in the vendor documents
- What is missing, and why
- Rerun an extraction on a newer edition
What the simulator uses
These files are read by the simulator itself. They are compiled into sim-components (catalog.rs), so the binaries need no path to them, and a changed file takes effect after a rebuild. --catalog DIR (on sim-cli and sim-app) reads them from another copy of the catalogue at run time instead; it must have the same schema_version and every table the built-in catalogue has (a copy made before a table was added, such as rexroth/linear_guides.csv or siemens/derating_s210.csv, is refused, naming the missing file), and every table must have all the columns of the built-in one and as many fields in each row as in its header; a directory that does not is refused at the start, naming the file and the column or line.
| File | Used for |
|---|---|
siemens/motors_s210.csv | A motor by name ([parts] motor, --motor) at 230v or 400v, its paired S210 converter, and the motor search |
siemens/motors_1fk2_s120.csv, siemens/motors_1ft2_s120.csv | The thermal time constant of an S210 motor by name (34 of the 96 are in neither file; for them the config’s value stays); the 1FK2 and 1FT2 by name at s120, and in the search with --supply s120 |
siemens/motors_s120.csv, siemens/motors_s120_electrical.csv | The 1FK7 and 1FT7 by name at s120 (with winding resistance and inductance from the data sheets) and their paired Motor Module; the search with --supply s120 |
siemens/converters_s210.csv, siemens/motor_modules_s120.csv, siemens/derating_s210.csv, siemens/derating_s120.csv | A drive by name ([parts] drive, --drive): its rated and maximum output current, the rated and base load current derated for the installation conditions the config gives. The search pairs each motor with one (see pairing) |
siemens/parameters_s120.csv, siemens/parameters_s210.csv | sim-cli parameters MACHINE [--family s120|s210]: each motor’s drive settings as the drive’s parameter numbers, names, units and converted values |
siemens/gearbox_nrb.csv, _nrk.csv, _nlc.csv, _sp.csv | A gearbox by name ([parts] gearbox, --gearbox) and the gearbox search |
siemens/gearbox_mass.csv | The gearbox’s mass in the search’s mass_kg and cost_kg (the SP100’s and the other makers’ from their own rows) |
wittenstein/, neugart/, apex/, harmonicdrive/ gearbox_*.csv | A gearbox by name and the gearbox search (--gearboxes wittenstein-sp, see mechanics) |
<maker>/motor_shafts.csv (Siemens, Beckhoff, SEW, Yaskawa) | Which other maker’s gearbox a motor takes: its shaft against the gearbox’s clamping hub |
hiwin/ball_screws.csv, hiwin/linear_guides.csv | A ball screw or guide set as an axis by name ([parts] axis, --axis) and the axis search on screw, rack and linear motor machines |
siemens/linear_motors_1fn3.csv, beckhoff/linear_motors_al8000.csv | A linear motor by name at s120 or beckhoff-400v, its drive, and the search of a linear motor machine |
festo/belt_axes_egc.csv, festo/belt_axes_elga.csv, rexroth/belt_axes_ckr.csv | Single belt axes by name and in the axis search, as Bahr’s single axes |
megadyne/belts.csv, megadyne/belt_tooth_load.csv | A belt by name ([parts] belt, --belt), and the belt of an axis by name |
festo/belt_axes.csv, festo/belt_axis_torque_formula.csv, bahr/belt_axes.csv | An axis by name ([parts] axis, --axis) and the axis search (search --axes) |
<vendor>/motors_*.csv, <vendor>/drives_*.csv (Beckhoff, B&R, Kollmorgen, Lenze, Mitsubishi, Rexroth, SEW, Yaskawa) | A motor by name at <vendor>-<volts>v (e.g. beckhoff-400v), its paired drive, a drive by name, and the search with --vendor (see other makers) |
festo/belt_axes.csv and festo/belt_axis_torque_formula.csv are also the source of the [catalogue] values in exct-30.toml; two tests hold the two together (exct_30_config_agrees_with_the_catalogue, and an_axis_by_name_gives_the_numbers_of_the_hand_written_exct_30 for the axis by name). The line module and braking files are data for the DC link estimates; the validator checks them, but no command uses them.
Pairing a motor with its drive
| Supply | Drive | Rule |
|---|---|---|
400v | S210 converter | The column converter_400v_3ac of motors_s210.csv, as D 32 lists it beside the motor |
230v | S210 converter | converter_230v_1ac where there is one, else converter_230v_3ac |
s120, 1FK7 and 1FT7 | Single Motor Module | The column motor_module of motors_s120.csv, its placeholders read as a Single Motor Module (6SL3120-1...) |
s210new-230v, s210new-400v | S210 (New) converter, 6SL5310 | The columns paired_drive_new_* of motors_s210.csv, as D 32 lists them beside the motor (until 14 November 2026 the twelve 6SL5310 converters were in converters_s210.csv but never paired) |
<vendor>-<volts>v | That maker’s drive at that line voltage | The motor row’s paired_drive, the maker’s own pairing (B&R, Kollmorgen AKM2G, Lenze, Mitsubishi, SEW, Yaskawa); where the maker publishes none (Beckhoff, Kollmorgen AKM, Rexroth, a few rows of the others), the smallest of the maker’s drives at that voltage whose rated current carries the motor’s stall current, a single-axis one before a multi-axis one |
s120, 1FK2 and 1FT2 | Single Motor Module | The manuals pair none. The smallest Single Motor Module whose rated current carries the motor’s stall current, the rule D 21.4 pairs the 1FK7 and 1FT7 by; of two such, the one with the higher maximum current |
A motor named in [parts] does not bring its drive: the drive is named on its own. The search names the paired one.
The drive sizes beside the paired one
search --drives neighbours tries each motor with the paired drive and the next size down and up, --drives all with every drive of the supply (catalog::drives_for, drive_neighbours). The sizes are ordered by rated output current (of two alike, the higher maximum current first): at 400v the eight 3 AC S210 converters of converters_s210.csv, at 230v its 1 AC and 3 AC ones (twelve), at s210new-* the 6SL5310 ones the same way, at s120 the Single Motor Modules of motor_modules_s120.csv (the Double Motor Modules are left out), at <vendor>-<volts>v the maker’s drives at that line voltage. The next size down is the largest with a lower rated current, the next up the smallest with a higher one.
What the data leaves to estimates
The search’s column estimated (catalog::estimated_data) names what a motor and drive do not bring from the catalogue, so that the config’s own estimates stay for it: motor-winding (phase resistance and inductance, printed for the 1FK7 and 1FT7 only), motor-thermal-time, motor-pole-pairs, motor-standstill and motor-rated (another maker printing no standstill or no rated values), drive-max-current (Mitsubishi’s amplifiers print no peak current), drive-base-load (only the S120 Motor Modules print a base load current), drive-derating (the drive’s currents derated by installation conditions that are not the rated ones; Siemens states no combination of the factors), gearbox-efficiency (a strain wave gear without efficiency_full_load gets an estimate of 0.70; every shipped Harmonic Drive row has the column, read off the vendor’s efficiency graphs at rated torque, 2000 r/min and 25 °C: 0.699 to 0.800, so no shipped row is flagged) and gearbox-mass (no mass printed, as for the Apex PE II: the row is ranked by the motor’s mass alone, not last) and axis-stroke (a Bahr axis whose basic length is not tabulated: its stroke is the module length). The lightest non-Siemens winners of a search often run on such estimates; this column says so beside them.
What stands in for the price
No file has a price. Siemens’ list prices are in its Industry Mall, which refuses automated access (HTTP 403), and none of the catalogues read here prints one; Festo’s and Bahr’s are not public. The search ranks by installed weight instead: cost_kg = number of motors × (motor without brake + gearbox) + the axis at the config’s strokes (where one of the catalogue is tried). Weight goes roughly with size and so with price within a family; across makers and families it does not, which is why this is a stand-in and called so. The drive’s weight is not counted (the converter files have none). Prices can only come from the user: search --prices FILE reads a list of the user’s own (see the user guide).
Files
festo/belt_axes.csv and festo/belt_axis_torque_formula.csv
| Source | Festo catalogue “Linear gantries EXCT”, 2023/01 |
| A row is | One size of the EXCT T-gantry: series EXCT, size 15, 30, 100. The formula table: one size and Z stroke |
| Extraction | There is no extraction script for these files. They have three sizes and were written from the catalogue’s tables (until November 2026 as festo/exct.toml) |
| Column | Meaning |
|---|---|
stroke_x_min_m, stroke_x_max_m | Stroke range of the horizontal axis (Festo’s Y; the simulator’s X). The Z strokes offered are those of the formula table |
rated_payload_kg | Tool load plus payload, at maximum dynamic response |
max_process_force_z_n | Highest process force in Z |
max_pulley_torque_nm, max_no_load_torque_nm | At the pulley; they also apply to third-party motors. The no-load torque is at 0.2 m/s and travel at 45 degrees |
max_acceleration_m_s2, max_speed_m_s | “Under ideal conditions” |
repeatability_m | |
mass_at_zero_stroke_kg, mass_per_stroke_kg_m, mass_per_stroke_z_kg_m | Without rated load, motors, axial kits and mounting kits |
motor_part_number, axial_kit_part_number, coupling_part_number, coupling_housing_part_number | Festo part names (the coupling housing for a third-party motor) |
belt_material, belt_pitch_m, belt_width_m | The belt |
belt_elongation, belt_elongation_force_n | The belt stretches by this strain at this force. Gives EA |
pulley_effective_diameter_m, feed_per_rev_m | Pulley. The feed per revolution is “at 45 degrees travel” |
Formula table: stroke_z_m, load_factor_m, motor_inertia_factor_1_m, constant_kg_m, gravity_factor_nm_kg, gravity_mass_kg | Coefficients of Festo’s formula for the required motor torque at 45 degrees travel, the heaviest case, in SI |
Festo’s formula, in the catalogue’s units and in the file’s:
M = a · (load_factor · m_L + motor_inertia_factor · J_m + constant) · 1e-3 + gravity_factor · (gravity_mass_kg + m_L) + M_R [N m], J_m in kg cm²
M = a · (load_factor_m · m_L + motor_inertia_factor_1_m · J_m + constant_kg_m) + gravity_factor_nm_kg · (gravity_mass_kg + m_L) + M_R [N m], J_m in kg m²
n = v · 60 / feed_per_rev_m · sqrt(2) [1/min]
a: acceleration along the path in m/s², v: speed along the path in m/s, m_L: attachment on the Z axis with payload in kg, M_R: friction torque in N m.
The motors couple directly onto the belt pulleys; the catalogue lists no gear unit.
siemens/motors_s210.csv
| Source | Siemens catalogue D 32, SINAMICS S210 servo drive system, January 2024, “Specific technical specifications” of each shaft height |
| A row is | One motor winding: the article number up to the speed letter, e.g. 1FK2104-5AK. 96 rows: 34 1FK2 and 62 1FT2 |
| Script | extract_siemens_d32.py |
Columns: part_number, series, version, shaft_height_m, cooling, static_torque_nm, stall_current_a, max_torque_nm, max_current_a, max_speed_rad_s, rotor_inertia_kgm2, rotor_inertia_with_brake_kgm2, mass_with_brake_kg, mass_kg; then per supply (230v is 200 to 240 V, 1 AC or 3 AC; 400v is 380 to 480 V 3 AC) rated_speed_*_rad_s, rated_torque_*_nm, rated_current_*_a, rated_power_*_w; then the paired converters paired_drive_230v_1ac, paired_drive_230v_3ac, paired_drive_400v_3ac and the same for the “SINAMICS S210 (New)” converters (paired_drive_new_*).
Currents are RMS. Static values are at standstill. An empty field means the catalogue lists no value, mostly because the motor is not offered at that supply: 84 motors have 400 V data, 88 have 230 V data.
siemens/converters_s210.csv
| Source | The same catalogue D 32, “Technical specifications” of the servo converters |
| A row is | One converter. 24 rows: 12 S210 and 12 S210 (New) |
| Script | extract_siemens_d32.py |
Columns: part_number, series, supply, line_current_a, power_loss_w, rated_power_1ac_230v_w, rated_power_3ac_400v_w, rated_power_3ac_240v_w, rated_output_current_a, max_output_current_a. Output currents are RMS; the power unit switches at 8 kHz.
siemens/braking_s210.csv
| Source | Siemens, SINAMICS S210 servo drive system with S-1FK2 and S-1FT2, Operating Instructions, 09/2022, A5E41702836B AL: Table 4-4 (the same values as Table 3-2 of the 06/2020 edition) and the text of fault F07432 for the trip levels |
| A row is | One S210 (6SL3210) converter. 12 rows, the same converters as converters_s210.csv (a test checks it) |
| Script | None: typed in from the manual, the table checked against the rendered page |
Columns: part_number, line (1ac or 3ac), rated_power_w, continuous_braking_power_w, peak_braking_power_w, braking_energy_j (the internal braking resistor’s), dc_link_overvoltage_v (410 V on 1 AC, 820 V on 3 AC). The 100 W converter has no internal resistor (the table’s footnote). Not published in any Siemens document found (D 32 07/2021 and 02/2026, these operating instructions 06/2020 and 09/2022, product data sheets, SiePortal): the DC link capacitance and the braking chopper’s switch-on threshold.
siemens/dc_link_measured.csv
| Source | Measured on real drives, not catalogue data: one unit each, on one day. The file’s header gives the method and the numbers it came from |
| A row is | One converter article with a measured DC link. 1 row: a 6SL5310-1BE10-8DF0 (S210, new generation, firmware 6.4) with a 1FK2204-5AF, 13 November 2026 |
| Script | None: worked out from a Startdrive trace of a quick stop from 3000 rpm |
Columns: part_number, date, firmware, dc_link_capacitance_f (139 µF), dc_link_capacitance_low_f and _high_f (113 and 164 µF: the energy between two ways of integrating it, the winding resistance taken as 3 to 6 ohm), braking_threshold_above_v (632: the stop did not reach the chopper), idle_dc_link_v (547 on a 400 V line). A drive by name sets dc_link_capacitance_uf from it.
siemens/motors_1fk2_s120.csv and siemens/dynamic_braking_1fk2.csv
| Source | Siemens, 1FK2 Synchronous Motors for SINAMICS S120, Configuration Manual, 02/2022, A5E46927724B AD. Motors: chapter “Data sheets and characteristics”. Braking: section 5.4.3, Table 5-2 |
| A row is | One 1FK2 motor winding as operated on S120 at 380 to 480 V 3 AC. 33 rows in each file |
| Script | extract_siemens_1fk2_s120.py |
Motor columns: part_number, static_torque_nm, stall_current_a, max_speed_inverter_rad_s, max_torque_nm, max_current_a, thermal_time_constant_s, rotor_inertia_with_brake_kgm2, rotor_inertia_kgm2, mass_with_brake_kg, mass_kg, rated_speed_rad_s, rated_torque_nm, rated_current_a, rated_power_w.
Braking columns (armature short-circuit braking): part_number, optimum_resistance_ohm, braking_torque_rms_nm, braking_torque_rms_with_resistor_nm, max_braking_torque_nm, braking_current_rms_a, braking_current_rms_with_resistor_a. The manual’s conditions: braking from the rated speed with an external inertia equal to the motor’s own, calculated from the rated values, without production variance and without iron saturation.
28 of the 33 motors are also in motors_s210.csv.
siemens/motors_1ft2_s120.csv
| Source | Siemens, 1FT2 synchronous motors for SINAMICS S120, Configuration Manual, 02/2022, A5E50645584B AC, chapter “Data sheets and characteristics” |
| A row is | One 1FT2 motor winding on S120. 37 rows; 34 of them are also in motors_s210.csv |
| Script | extract_siemens_1ft2_s120.py |
Same columns as motors_1fk2_s120.csv.
siemens/gearbox_nrb.csv, gearbox_nrk.csv, gearbox_nlc.csv
| Source | Siemens, Planetary gearboxes for 1FK2 and 1FT2 servomotors, Equipment Manual, 04/2025, A5E54515894B AA, chapter 6 |
| A row is | One gearbox size, motor frame size and ratio that the manual lists as available. 329 NRB, 252 NRK and 193 NLC rows: 774 in all |
| Script | extract_siemens_gearboxes.py |
Columns: series, size, motor_frame, stages, ratio, rated_output_torque_nm, max_output_torque_nm, emergency_stop_output_torque_nm, efficiency_full_load, torsional_stiffness_nm_rad, backlash_rad, inertia_at_input_kgm2.
motor_frameis the last two digits of the motor’s frame size in the article number: 1FK2104 and 1FK2204 have frame04.- Torques are at the output shaft. Rated: continuous. Max: for at most 30 000 output revolutions. Emergency off: at most 1000 times in the gearbox’s life.
- Stiffness and backlash are referred to the output; inertia to the input.
- Sizes: NRB040 to NRB160, NRK050 to NRK155, NLC060 to NLC120.
- A gearbox is named in a config as size-frame-ratio, e.g.
NRK070-04-5.
siemens/gearbox_sp.csv
| Source | Siemens, Planetary gearboxes for 1FK2 and 1FT2 servomotors, Equipment Manual, 04/2025, A5E54515894B AA, chapter 6.5 (SP+ precision planetary gearboxes, made by WITTENSTEIN alpha) |
| A row is | The SP100 with two stages for motor frames 03, 04 and 05, at each of its nine ratios: 27 rows |
| Method | Typed in from the rendered tables (6-61, 6-64, 6-66 to 6-68, 6-70 and chapter 6.5.2) and checked against them; no script |
Columns as the other gearbox files, and backlash_reduced_rad: the backlash of the reduced-backlash option (order codes M5 to M7), 3 arcmin for two stages against the standard 5; both are maxima.
- Siemens fits the SP+ to 1FT2 motors only (“Coaxial precision gearbox only for 1FT2”, chapter 3.1). The frame code is the 1FT2’s.
- As printed, the frames 04 and 05 have a rated torque (347 N m, Table 6-61) above their maximum (278 N m, chapter 6.5.2): the maximum is the geared motor’s, 15 N m of a 1FT2105 at ratio 20 and 94 %. WITTENSTEIN’s own sheet for the SP+ 100 MF gives T2N 259 N m and T2B 347 N m. Both are kept as Siemens prints them.
mass_kg(added 14 November 2026): Table 6-72, 7.1 kg for frames 03 and 04; frame 05 prints 7.2 kg with a 1FT2205 and 7.3 kg with a 1FT2105, and the row keeps the 1FT2105’s.- Not in the file: the other SP+ sizes, one stage, TP+, forces, reference speeds (the delta configs take 59 r/min from Table 6-74 by hand) and the no-load torque (WITTENSTEIN’s sheet, in the delta configs).
- Read by the simulator since 14 November 2026: a gearbox by name,
SP100-05-20, orSP100-05-20-rfor the reduced backlash, and the search, which offers it on a 1FT2 only (siemens-sp). The delta pickers D2 and D3 write its numbers into their configs.
siemens/gearbox_mass.csv
| Source | Siemens, Planetary gearboxes for S-1FK2 and S-1FT2 servomotors, Configuration Manual, 01/2023, A5E51318133B AC, Tables 7-12 (NRB), 7-33 (NRK), 7-54 (NLC), from cache.industry.siemens.com |
| A row is | One gearbox size, group of motor frame sizes and ratio: 445 rows |
| Script | extract_siemens_gearbox_mass.py |
Columns: series, size, motor_frames (the frames that share the manual’s column, separated by blanks), stages, ratio, mass_kg. This is an older edition than the 04/2025 equipment manual of the other gearbox files; every one of their 774 gearboxes has a mass here (a test checks it). The gearbox is named as in the other files, size-frame-ratio.
megadyne/belts.csv and megadyne/belt_tooth_load.csv
| Source | Megadyne (Ammega), MEGALINEAR technical handbook, 02.2026 (megadynegroup.com, md_manu_en_megalinear_web.pdf), the page of each profile |
| A row is | Belts: one profile and standard width, open-ended, standard steel cords; 43 rows of T5, AT3, AT5, AT10, MTD3, MTD5, MTD8. Tooth load: one profile and speed, 18 speeds per profile |
| Script | extract_megadyne.py |
Belt columns: profile, pitch_m, width_m, mass_kg_m, max_pull_n (the allowable pull, a quarter of the breaking strength), breaking_strength_n, elongation_at_max_pull (4 mm/m for all). Tooth load columns: profile, speed_rad_s, specific_tooth_load_n_m (the “Fp spec” per cm of width and tooth in mesh). MTD is Megadyne’s HTD-compatible profile: Bahr’s 3M, 5M and 8M belts are taken as MTD3, MTD5, MTD8. A belt is named as profile-width, e.g. AT5-25; a width between two standard ones is interpolated linearly, one outside them in proportion to the nearest (Bahr’s 5M09, 8M12, 8M48 and 8M70 are not standard widths). These are the same figures the EXCT-30 config’s belt tension and tooth table were read from by hand.
siemens/motors_s120.csv
| Source | Siemens catalogue D 21.4, SINAMICS S120 and SIMOTICS, 2017, selection and ordering data of the SIMOTICS S synchronous motors |
| A row is | One motor winding: the article number up to the DC link code, e.g. 1FK7042-2AF7. 167 rows: 62 1FK7 and 105 1FT7. All for a DC link of 510 to 720 V |
| Script | extract_siemens_d21_4.py |
Columns: part_number, series, version, cooling, shaft_height_m, rated_speed_rad_s, rated_values_at_speed_rad_s, rated_power_w, static_torque_nm, rated_torque_nm, rated_current_a, pole_pairs, rotor_inertia_kgm2, mass_kg, efficiency, stall_current_a, calculated_power_w, paired_drive_rated_current_a, paired_drive.
Ratings are for a winding temperature rise of 100 K. rated_values_at_speed_rad_s is filled where a footnote of the catalogue says the rated values refer to another speed. paired_drive is the booksize Motor Module the catalogue pairs with the motor; the 7 and the . in it are placeholders.
siemens/motors_s120_electrical.csv
| Source | The Siemens data sheet of each motor, generated by Siemens’ data sheet service for the full article number in the column data_sheet_part_number |
| A row is | One motor of motors_s120.csv whose data sheet has been fetched. 166 of the 167 |
| Script | fetch_siemens_datasheets.py |
Columns: part_number, data_sheet_part_number, poles, static_torque_60k_nm, stall_current_60k_a, max_speed_mechanical_rad_s, max_speed_inverter_rad_s, max_torque_nm, max_current_a, torque_constant_nm_a, voltage_constant_v_s_rad, phase_resistance_20c_ohm, phase_inductance_h, electrical_time_constant_s, mechanical_time_constant_s, thermal_time_constant_s, shaft_torsional_stiffness_nm_rad.
The torque constant is at a winding temperature rise of 100 K. The voltage constant is at 20 °C, line to line, RMS, per 1000 r/min. The resistance is of one phase at 20 °C. The inductance is the rotating field inductance. The options in the full article number (encoder, shaft, brake) do not change these values.
This is the only file with winding resistance and inductance. It covers the 1FK7 and 1FT7, which no config uses yet.
siemens/motor_modules_s120.csv
| Source | Siemens Catalog News D 21.4 N, SINAMICS S120 and SIMOTICS, October 2017, chapter 7, “Technical specifications” |
| A row is | One S120 Motor Module in booksize format with internal air cooling, for a DC link of 510 to 720 V. 19 rows |
| Script | extract_siemens_d21_4n.py |
Columns: part_number, axes, duty_type, rated_output_current_a, base_load_output_current_a, max_output_current_a, rated_power_w, pulse_frequency_hz, dc_link_capacitance_f, power_loss_typical_w, power_loss_max_w.
axes is 1 for a Single and 2 for a Double Motor Module; currents and rated power of a Double are per axis, its DC link capacitance and power loss are for the module. duty_type is C (continuous load) or D (discontinuous load, higher maximum current).
siemens/derating_s210.csv and siemens/derating_s120.csv
| Source | S210: operating instructions 09/2022, Table 12-9 (printed p.517) and 12.2.5; S120: Catalog News D 21.4 N 10/2017 pages 7/8, 7/14, 7/23 and the C/D-type manual 01/2017 pages 36 and 65 |
| A row is | One point of a derating curve: quantity (altitude, ambient, altitude_ambient, pulse_frequency, ambient_limit), the condition (altitude_m, ambient_c, pulse_frequency_hz) and output_current_factor, the share of the rated output current. part_number empty: every drive of the family without rows of its own (the 200 A Motor Module has its own pulse frequency curve). 13 and 16 rows |
| Script | none: typed in from the documents, figures only |
apply_drive (ratings.drive_ambient_c, drive_altitude_m, drive_pulse_frequency_hz; absent: the rated conditions, 40 °C, 1000 m, 4 kHz for an S120 and 8 kHz for an S210) multiplies the rated and the base load current by the factor, interpolated linearly between the table’s points, and refuses a condition beyond the table (above 4000 m, above 50 °C for an S210 or 55 °C for an S120, an S210 pulse frequency other than 8 kHz, above 16 kHz, above 45 °C at 16 kHz). The S210’s factor is its table of altitude against ambient temperature; the S120’s is the product of the factors of altitude (10 % per 1000 m above 1000 m), ambient temperature (2.67 % per K above 40 °C) and pulse frequency. Siemens does not say that the factors multiply: that is the simulator’s assumption on the safe side. Of the two ways Siemens offers to trade altitude (10 % less current per 1000 m, or 5 K less ambient per 1000 m) only the current reduction is implemented. Open points, not guessed: whether the derating reaches the maximum output current (it is left as printed, so drive-peak-current is not derated), and the C/D-type manual’s 3.5 K per 500 m beside the 5 K per 1000 m in the same row. Two cells of the S210 table (the 1000 m row, and 2000 m at 45 °C) are read from a merged cell of the PDF’s text layer as 100 %: their basis is inferred. The search’s estimated names drive-derating when a factor other than 1 was applied. A drive of another maker has no derating data: its rows give their rated conditions only, and a condition set for it is refused. Sources and figures with pages: vendor-facts.
siemens/parameters_s120.csv and siemens/parameters_s210.csv
| Source | S120: SINAMICS S120/S150 List Manual 07/2018 (lh1-<page>); S210: operating instructions 09/2022 (s210-<printed page>). Each row’s page is in its source column, its sources in the .meta.toml beside it |
| A row is | One config key of [drive] and the drive parameter that holds it: config_key, parameter, name and unit as printed, factor (parameter value = config value x factor), rule (a conversion that is no factor: the notch’s damping, the ramps from p1082), basis (printed or derived), source, note. 20 and 8 rows |
| Script | none: typed in from the documents |
sim-cli parameters (parameters::list) prints a row per motor and key of the config the machine is built from. The derived rows: Kv in p2538’s unit 1000/min per mm is 0.06 x Kv in 1/s (the manual’s p5275 example, page 1440); the notch’s denominator damping p1659 is bandwidth / (2 f), the simulator’s notch with numerator damping 0; the ramps p1121 and p1135 count from the maximum speed p1082, the simulator’s from the rated speed.
siemens/line_modules_s120.csv and siemens/braking_s120.csv
| Source | Siemens Catalog NC 82, SINUMERIK MC, SINAMICS S120 and SIMOTICS, February 2020, chapter 4: Line Modules; DC link components, Braking Module and braking resistors |
| A row is | Line modules: one S120 Line Module in booksize format with internal air cooling, 380 to 480 V 3 AC. 13 rows: 5 Smart, 5 Active, 3 Basic. Braking: the Braking Module and 4 braking resistors |
| Script | extract_siemens_nc82.py |
Line module columns: part_number, infeed_type, continuous_power_w, s6_power_w, max_power_w, dc_link_current_540v_a, dc_link_current_600v_a, s6_dc_link_current_a, max_dc_link_current_a, dc_link_capacitance_f, power_loss_w, max_braking_power_w, continuous_braking_power_w, braking_threshold_v, min_braking_resistance_ohm. The braking_* columns are the chopper inside the 20 kW and 40 kW Basic Line Modules; empty for all others.
Braking columns: part_number, kind (braking_module or braking_resistor), for_part_number, resistance_ohm, continuous_power_w, peak_power_w, activation_threshold_v, dc_link_capacitance_f, load_duration_s, cycle_duration_s, load_duration_2_s, cycle_duration_2_s.
These two files are where the DC link estimates of exct-30.toml come from: 540 V on a 400 V line, about 44 µF per kW of rated power, a chopper threshold of 770 V. The S210 converter of that config is not in them; see what is missing.
siemens/motor_bearings_1fk2.csv
| Source | Siemens, operating instructions “SINAMICS S210 servo drive system with S-1FK2 and S-1FT2”, 09/2022, A5E41702836B AL, section 12.1.12 (the 1FK2 configuration manual for S120, 02/2022, section 3.6.2, has the same diagrams) |
| A row is | One frame size of the 1FK2, read off its radial force diagram at one distance from the shaft shoulder and one mean speed |
| Extraction | Read off the diagram by hand (manual:). Only the 1FK2205 so far: the diagrams are images, and nothing here renders them; the other frame sizes are left out, not guessed |
| Column | Meaning |
|---|---|
frame | The frame size, e.g. 1FK2205: every motor of that size |
radial_force_n | Radial force the bearings allow for bearing_life_h at mean_speed_rad_s, at force_distance_m from the shoulder |
force_distance_m, mean_speed_rad_s, bearing_life_h | Where, how fast and for how long: 20 mm, 1500 r/min, 25000 h for the 1FK2205’s 1000 N |
equivalent_load_rating_n | [estimate]: the C of one ball bearing that lasts that long at that force and speed, C = F · (L10h · 60 · n / 10⁶)^(1/3) with n in r/min: 13104 N. Siemens gives no load rating; this C stands for the bearings at that point of force only. The configs’ ratings.motor_bearing_load_rating_n takes it where a pulley sits on the motor shaft (none of the shipped configs) |
No command reads this file; the simulator takes C from the config. It is data for motor_bearing_life_h, checked by the validator like every table.
bahr/belt_axes.csv
| Source | Bahr Modultechnik GmbH (IMI Norgren), data sheets “Linearsystem <series>”, German editions, from cdn.norgren.com. Editions 11/25, 04/26 and 05/26; each row carries its sheet number, edition and source file |
| A row is | One series and size of a linear axis driven by an HTD toothed belt. 69 rows from 15 series: 59 single axes, 7 XY gantries (ELZU), 3 X/Z gantries (ELZI, a T-gantry) |
| Script | extract_bahr.py |
Columns: series, size, kind (axis, xy_gantry, xz_gantry), belt, belt_pitch_m, belt_width_m, feed_per_rev_m, pulley_teeth, no_load_torque_nm, no_load_torque_count, max_speed_m_s, feed_force_continuous_n, feed_force_peak_n, fx_static_n … mz_dynamic_nm (permissible loads on the slide, static and dynamic), mass_at_zero_stroke_kg, mass_per_stroke_kg_m, mass_per_stroke_z_kg_m, moved_mass_x_kg, moved_mass_y_kg, moved_mass_z_kg, max_length_one_piece_m, max_length_x_m, max_length_y_m, max_length_z_m, non_stroke_length_m (the part of the module length that is not stroke: the ELZ’s basic length; Rexroth’s own table has it too), source (the data sheet the row was read from, a source in the metadata with its sheet number, edition and file).
feed_force_*: belt pull, continuous and for 0.2 s.- The sheets want the sum of Fy/Fy_dyn + Fz/Fz_dyn + Mx/Mx_dyn + My/My_dyn + Mz/Mz_dyn to stay at or below 1.
no_load_torque_countis 2 where the sheet prints “2 x 0,4” (the X/Z gantry); whether that is per motor is not said.max_speed_m_s: the sheets give no conditions.
No config uses a Bahr axis yet. These sheets publish what Festo does not for the EXCT: permissible loads and moments on the slide and the belt’s pull.
Other makers
Added 14 November 2026, so that the search can say which drive train works best across makers and not only among Siemens’. One table of motors and one or two of drives per maker, all in the same columns (the schema’s servo_motor and drive with the columns vendor, line_voltage_v, line_resistance_20c_ohm, line_inductance_h, the drives’ DC link and braking columns and a source per row). Key: part number and line voltage; a motor rated at two voltages has two rows. Every value is from the document named in the table’s metadata, page or table given there; none is an estimate. The extraction scripts are catalog/tools/extract_<vendor>.py where there is one; Mitsubishi, Yaskawa and the drive tables of Beckhoff, Kollmorgen and Rexroth were typed in from the tables their metadata names.
| Maker | Files (rows) | Documents | Supplies | Pairing |
|---|---|---|---|---|
| Beckhoff | motors_am8000.csv (300: AM80xx, AM85xx, with and without fan cover, 400 and 480 V), drives_ax8000.csv (12), drives_ax5000.csv (16) | AM8000/AM8500 operating instructions 4.9.1 (2023-09) ch. 4.4 to 4.9; AX8000 operating instructions 2.4.0 (2026-10) ch. 4.3, 4.4; AX5000 system manual HW2 3.2.3 (2023-09) ch. 6.2 | beckhoff-400v, beckhoff-480v | None published (Beckhoff’s tabular overview needs a login): by stall current |
| B&R | motors_8ls.csv (109: 8LSA..-3), drives_acopos_p3.csv (34) | 8LS..-3 user’s manual V2.51 MAMOT2-ENG (2020-12) ch. 2.14; ACOPOS P3 user’s manual V1.40 MAACPP3-ENG (2025-05) ch. 2.2 | br-400v | The manual’s ACOPOS P3 per motor (the 1-axis module of that size); four motors print “-” |
| Kollmorgen | motors_akm.csv (162), motors_akm2g.csv (134), 240 and 400 V; drives_akd.csv (14) | AKM selection guide KM_SG_000077 Rev F (2025); AKM2G selection guide KM_SG_000315 Rev E (2025); AKD installation manual 903-200003-00 AG (2022-05) ch. 7.6, 7.7, 7.13 | kollmorgen-240v, kollmorgen-400v | AKM2G: the guide’s system performance tables, the smallest AKD that reaches the winding’s full continuous and peak torque. AKM: none published, by stall current |
| Lenze | motors_mcs.csv (54), motors_m850.csv (15), drives_i950.csv (18) | MCS and m850 project planning 7.0 (2024-08); i950 cabinet project planning Gen B 3.0 (2026-08) ch. 7.4 | lenze-400v | The selection tables: the smallest i950 whose Mmax reaches the motor’s |
| Mitsubishi | motors_j5.csv (57: HK-KT, HK-ST, 200 and 400 V), drives_j5.csv (44: MR-J5-G and -A) | MELSERVO-J5 catalogue L(NA)03179ENG-L (2026-01); the 1-axis combinations web page (read 2026-11-14) | mitsubishi-200v, mitsubishi-400v | The smallest amplifier of standard torque on the combinations page |
| Rexroth | motors_ms2n.csv (155: self-cooled, fan and water cooled), drives_ctrlx.csv (59: XCS2, XCD2, XMS2, XMD2) | MS2N project planning R911347583 ed. 11 (2026-03) ch. 6; ctrlX DRIVE modular R911386579 ed. 17 (2026-08) ch. 10; ctrlX DRIVE compact R912009455 ed. 07 (2026-07) ch. 10 | rexroth-400v | None published (Rexroth points to its online configurator): by stall current |
| SEW | motors_cmp.csv (57: CMP40 to CMP100 per speed class), drives_movic.csv (29: MDA90A, MDD90A, MDX90A) | CMP catalogue 27799468/EN (2023-11) ch. 4.5; MOVIDRIVE system manuals 23061715/EN (2017-03, motor-inverter assignment ch. 3.5.6) and 31986765/EN (2025-03); MOVIDRIVE modular 31984061/EN (2025-03) | sew-400v | The 2017 MOVIDRIVE system assignment: the smallest MDX90A with an Mpk at the motor’s speed class; none for the 6000 r/min classes |
| Yaskawa | motors_sigma7.csv (37: SGM7J, SGM7A, 200 and 400 V), drives_sigma7.csv (25: SGD7S) | Rotary servomotor product manual SIEP S800001 36J (2025-08); Sigma-7 200 V and 400 V catalogues (2026-03, 2026-10) | yaskawa-200v, yaskawa-400v | The manual’s and catalogue’s combination tables |
How the simulator takes them (catalog.rs): the bus voltage is 1.35 times the line voltage (a three-phase bridge; a maker’s single-phase supply is not modelled); the torque constant is standstill torque over standstill current; the winding, where the maker prints it terminal to terminal, goes in at half of it per phase, the way the 1FK7’s does, and the current loop is retuned for it; the thermal time constant and the pole pairs where printed. A maker that prints no standstill values (Yaskawa, Mitsubishi) has its rated torque and current stand for them; one that prints no rated torque or current (SEW CMP; Kollmorgen, which gives no rated current; Beckhoff at 480 V) has its standstill values stand for those, which overstates the continuous current at speed by a few per cent. A drive by name sets its rated and peak current, its base load current at the S210’s 0.85 of the rated [estimate], and from its row the DC link capacitance, the internal braking resistor’s continuous and peak power, the chopper’s switch-on voltage and the trip level, each where printed; a value a maker does not print stays as the config has it (the EXCT-30’s S210 estimates). Mitsubishi prints no peak current of its amplifiers: a Mitsubishi drive takes the peak current of the motor put in before it, which its standard-torque pairing is made to supply [estimate]. Lenze does not say whether its inductance is per phase or terminal to terminal; it is read as terminal to terminal.
What the plausibility checks hold them to (vendor_motors_are_plausible_and_their_drives_exist and vendor_drives_are_plausible in checks.py): the vendor column is the folder’s; peak torque and current above 1.2 times the standstill ones; rated torque at most 1.05 times the standstill torque; rated speed at most the maximum; torque constant within 20 % of standstill torque over current (15 % would fail Rexroth’s water-cooled MS2N, whose Kt is printed at 20 °C beside M0 and I0 at 100 K); torque constant within 20 % of sqrt(3) times the line-to-line RMS voltage constant (a value off by sqrt(2) or sqrt(3) is a peak or phase value read as RMS line to line); rated power within 12 % of rated torque times rated speed; the brake adds inertia and mass; L / R between 0.1 and 100 ms; thermal time constant between 1 and 200 minutes; the paired drive exists at that voltage and has at least 85 % of the printed rated current (SEW pairs by peak torque, with smaller drives than the stall current, and prints no rated current). Drives: peak at least the rated current; DC link above 1.2 times the line voltage and below the trip level (Rexroth’s regulated supply holds 750 V on a 400 V line); chopper above the line’s peak and below the trip level. The Python test test_another_makers_motor_that_does_not_fit_its_own_numbers_fails_the_checks shows each kind of mistake caught. The Rust tests are in catalog_vendors.rs.
Mechanics: gearboxes, screws, guides, linear motors, belts, belt axes
Added 14 November 2026, so that screw, rack and linear motor machines can search their mechanics and every machine with a gearbox can try other makers’ gearboxes. All from the makers’ public documents, downloaded from their own servers; the metadata of each table names the document, edition, pages and tables, and how every column was read. No price is public for any of these parts (the makers quote on request or in configurators); the search’s weight stands in for it, as above.
| Maker | Files (rows) | Documents | What a row is |
|---|---|---|---|
| WITTENSTEIN alpha | wittenstein/gearbox_sp.csv (304), gearbox_tp.csv (351) | “Technical data / Dimension sheets SP+” and “… TP+” (ALPHA-ADVANCED-LINE-SP.PDF, -TP.PDF, wittenstein-group.com download centre, files 3243 and 3246; 2025-11, 2026-05) | SP+ MF 060 to 240 and TP+ MF 004 to 500, one and two stages, per ratio and clamping hub: T2N, T2B, T2Not, n1N, n1Max, T012 at 3000 r/min (2000 for the large sizes) and 20 °C, standard and reduced backlash, Ct21, F2AMax, F2RMax (SP+), M2KMax, efficiency, mass, J1 per hub |
| Neugart | neugart/gearbox_ple.csv (108), gearbox_pln.csv (75), gearbox_plfe.csv (64) | Catalogue chapters PLE, PLN, PLFE, 05.2026, technical data pages, and the glossary of the complete catalogue | Per size, stage and ratio at the reference clamping bore. The 05.2026 edition prints T2D and n1D (continuous, 20 000 h) in place of T2N and n1N: they are the rated pair here. Stiffness and input inertia, and most masses and idle torques, are printed only as a range per size and stage: the rows carry the conservative end (lowest stiffness, highest inertia, mass and idle torque) as [estimate], with provenance; per-ratio values are only in Neugart’s online Tec Data Finder |
| Apex Dynamics | apex/gearbox_peii.csv (368, economy), gearbox_af.csv (243, precision) | “Planetary Gearbox New Generation P-Series” APEX-2025-06; “AF / AFR Series” APEX-2025-02 (apexdyna.com) | PEII050 to 155 per ratio and clamping bore; AF042 to 220 (and the two-stage “A” sizes) per ratio, standard bore. T2B and T2NOT are the catalogues’ own rules (1.8 and 3 times T2N), written out by the script. The AB/ABR, AD and AE catalogues have no text layer in their tables, so the AF stands for Apex’s precision line |
| Harmonic Drive | harmonicdrive/gearbox_csf.csv (73), gearbox_csg.csv (44), gearbox_shg.csv (44) | Harmonic Drive LLC, CSG-CSF Component TI-26108 and SHG-SHF Component TI-26121, REV 1, 08/2026 | Component sets per size and ratio: rated torque at 2000 r/min, repeated and momentary peak, average and maximum input speed (grease), inertia, mass, wave generator bore, the stiffness curve T1, T2, K1 to K3 and the hysteresis, and the efficiency at rated torque read off the efficiency graphs (TI-26108 Graphs 047-1 to 047-8, TI-26121 Graphs 090-2 to 091-5; 2000 r/min, 25 °C, grease; reading error about 1 point). The no-load torque is charts only and not read |
| HIWIN | hiwin/ball_screws.csv (203), ball_screw_mountings.csv (4) | Ballscrew Technical Information S99TE22-2009 (hiwin.com) | Precision ground screws: FDW (preloaded double nut, 16 to 50 mm, leads 4 to 20), FDC (Super S, preloaded, leads 5 to 50) and FSH (high lead, end caps) per nut model: diameters, lead, ball, Ca, C0a, nut stiffness K, nut length, the d n limit of the nut type (on the pitch circle in HIWIN’s rule, on the nominal diameter here). The mountings: HIWIN’s critical speed and buckling factors per bearing arrangement |
| HIWIN | hiwin/linear_guides.csv (22) | Linear Guideway Technical Information G99TE24-2410 | HGH15 to 45 CA, HGW15 to 45 CC, EGH and EGW15 to 35 CA: C (for 50 km), C0, MR, MP, MY, carriage and rail mass, dimensions, seal drag (twice the end seal’s printed maximum) |
| Bosch Rexroth | rexroth/linear_guides.csv (61) | Ball rail systems High Precision BSHP R999000485/2025-11, pages 51 to 85 and 113 | Ball runner blocks made of steel, without ball chain: FNS, FLS, FKS, SNS, SLS, SKS, SNH, SLH, FNN, FKN, SNN, SKN (sizes 15 to 45, low blocks 20 and 25) and the heavy-duty FNS, FLS, SNS, SLS, SNH, SLH of sizes 55 and 65: C for 100 km (the column dynamic_load_rating_distance_m says so; the simulator takes C converted to 50 km, times 1.26), C0, Mt0 and ML0 (one ML0 for pitch and yaw), the dynamic moments Mt and ML (100 km), carriage and rail mass, dimensions. No seal drag or preload force is printed |
| THK | thk/linear_guides.csv (59) | LM Guide General Catalog, chunks en_a01_094 (SHS, 515-2E) and en_a01_192 (HSR, 515-1E), pages A1-98 to A1-103 and A1-192, A1-193 | SHS-C, LC, V, LV, R, LR (sizes 15 to 65) and HSR-C, LC (15 to 55), XC, XLC (65): C (for 50 km, as HIWIN’s), C0, the static moments MC (roll), MA (pitch) and MB (yaw) for one block, carriage and rail mass, dimensions. THK prints no dynamic moments, seal resistance or preload force on these pages |
| Siemens | siemens/linear_motors_1fn3.csv (98) | Configuration Manual SIMOTICS L-1FN3, 06/2023, A5E50685682B AB, data sheets ch. 7.2 and Tables 3-13 to 3-18 | 1FN3 peak and continuous load coils, water cooled, on a 600 V DC link: FMAX, FN, kF, kE (phase to phase, RMS: the printed phase-to-neutral value times sqrt(3), as in the AL8000 table), IN, IMAX, R and L per phase, pole pitch (north to north), coil and magnet track mass, attraction, speeds, km, losses, thermal time constant |
| Beckhoff | beckhoff/linear_motors_al8000.csv (30) | AL8000 operating instructions 1.10.2, 2026-06 | AL8000 coils at 400 V with the AX8000 pairing printed first; R and L halved from terminal values; km at operating temperature |
| Gates | gates/belts.csv (46), belt_tooth_load.csv (6) | Thermoplastic Polyurethane Belt Program, catalogue 20166, 2025 | Synchro-Power LINEAR steel cord T5, T10, AT5, AT10, HTD5, HTD8: mass, allowable force, breaking force, specific stiffness, minimum pulley teeth and diameter, thickness. Gates prints no tooth load over speed: one row per profile at 0 r/min, the allowable force over 12 teeth in mesh. Not read by the simulator yet (a belt by name is Megadyne’s) |
| Megadyne | megadyne/belts.csv | MEGALINEAR handbook 02.2026 | Now with min_pulley_teeth from the flexion table and thickness_m |
| Festo | festo/belt_axes_egc.csv (5), belt_axes_elga.csv (16) | EGC-TB catalogue 2026/06, ELGA-TB catalogue 2026/02 (ftp.festo.com) | EGC-TB-KF 50 to 185, ELGA-TB-KF, -KF-F1 (food zone), -RF (roller guide), -RF-F1 and -G: single belt axes with feed force, drive torque, speed, acceleration, loads and moments (5000 km for KF and KF-F1 and the EGC, 10000 km for RF and RF-F1: the column dynamic_load_distance_m says which, the table does not convert; the search screens the slide’s load on the 5000 km basis, an RF’s converted by the cube law of Festo’s own graph of the load comparison factor, 10000 km to 5000 km a factor 2^(1/3) = 1.26), the standard slide only (not the -S and -L slides and the T8 option of RF), masses, pulley and belt pitch. Festo names no belt profile: an axis by name keeps the config’s belt values (stretch: ELGA’s own) |
| Bosch Rexroth | rexroth/belt_axes_ckr.csv (11) | Compact modules CKK/CKR R999000499/2025-05 | CKR 070 to 280, short and long carriage: AT belts (Megadyne’s AT profiles stand for them), Fbp, MP, vmax, amax, loads, masses by the catalogue’s own formula |
| Siemens, Beckhoff, SEW, Yaskawa | <maker>/motor_shafts.csv (71, 10, 7, 22) | D 32 (01/2024) and D 21.4 (2017) dimension drawings; AM8000 instructions 4.9.1; CMP catalogue 27799468/EN; SIEP S800001 36J | Shaft diameter and length, spigot, flange square and bolt circle per part number prefix (the longest that matches holds) |
Autonox (checked 25 November 2026) sells robot mechanics only (DELTA, SCARA and articulated; no linear axes). Its product finder (autonoxfinder.com) shows without a login the properties of each model (payload, working area, repeatability to ISO 9283, mass without drive technology) and a drawing of the connecting dimensions; the technical data sheets (load capacity diagrams), the manuals and the prices are in a password-protected download area or on request, and no arm lengths, link masses or inertias are public anywhere. That is why there is still no Autonox table: the simulator’s robot models need the link data, which only the data sheets could give.
How the simulator takes them (mechanics.rs):
-
Which gearbox fits a motor (
gearboxes_for_motor, the question--gearboxesasks): Siemens’ as Siemens sells its geared motors, NRB, NRK and NLC on the 1FK2 and 1FT2 of their frame and the SP+ on the 1FT2 only (equipment manual, chapter 3.1); another maker’s on any motor whose shaft its clamping hub takes (motor_shaft_diameter), through the adapter plate the maker makes for the flange, the smallest hub that takes it. A WITTENSTEIN SP+ bought from WITTENSTEIN therefore fits a 1FK2 (WITTENSTEIN sells adapters for it); Siemens’ own SP100 does not. A motor without a shaft row (Kollmorgen, Lenze, Rexroth, Mitsubishi, B&R, the 1FK2306/308, the 1FT7 High Dynamic, Yaskawa at 400 V) gets no other maker’s gearbox.--gearboxestakes a maker (wittenstein), a maker’s table (wittenstein-sp,neugart-ple,apex-af,harmonicdrive-csf,siemens-nrk) or, as before, a size prefix (NRK070). -
A gearbox by name sets as before, and where the row and the config have them: the torque its efficiency holds at (the rated torque), the no-load torque and its speed, the stiffness curve (a strain wave gear’s K1 to K3, T1, T2 and hysteresis; a planetary gearbox’s straight, both knees at its rated torque), and with
-rafter the name its reduced backlash. -
A ball screw as an axis by name (its part number, e.g.
25-20K4-FDC) goes into every screw table of the config ([screw], a machine file’s[screw_z]): lead, diameters, Ca, C0a, the nut’s stiffness and the d n of its nut type. Length and mounting stay the config’s. The axis search first rules out a screw whose critical speed (timescritical_speed_factor) or d n is below what the axis’s highest speed asks, or whose C0a overstatic_safety_factoris below the force to accelerate carriage and payload (axis-speed,axis-payload): the 1 m screw axis at 0.8 m/s needs leads of 15 mm and more. -
A guide set (
HGH25CAx4: four carriages, the layout of every shipped config) setsratings.guide_dynamic_load_rating_nto four times C for 50 km (each row’s C on the basis its document states, indynamic_load_rating_distance_m: HIWIN and THK 50 km, Rexroth 100 km; the simulator converts by the cube root of the distances, so a Rexroth and a HIWIN carriage of equal bearing give the same life) andratings.guide_max_load_nto four times C0 over a static safety of 2 ([estimate]: HIWIN asks 1 to 3.5 under normal load), where the config rates guides. The guide tables of every maker are read, soFNS25x4(Rexroth) andSHS25Cx4(THK) name carriages asHGH25CAx4does. The search tries, per series and carriage type, the two smallest that carry weight and magnetic attraction statically. A row that does not print a figure leaves it empty: without C or its distance the set is “not available” (refused, never an infinite life); without seal drag the config’s own friction levels stay as they are (never zero friction added or removed); without mass the carriage mass stays. Its carriages’ mass and seal drag (four times the row’s) take the place of the config’s guide carriages inmass.carriage_kgand in the guide’s Coulomb and breakaway levels; the config says what of those its own carriages are inmass.guide_carriages_kgandseal_drag_nof its guide table, absent = none (see the config reference). A screw and a guide set are joined with “+” (25-20K4-FDC+HGH25CAx4). -
A linear motor reads in N for N m: the printed force constant, the coil’s mass for the rotor’s, continuous and peak force and current, the speeds, R and L per phase, attraction and pole pitch into
[linear_motor]; the drive is the smallest S120 Single Motor Module (or the maker’s drive) whose rated current carries its continuous current. A linear motor machine’s search tries the supply’s linear motors in place of rotary ones (--supply s120for the 1FN3,beckhoff-400vfor the AL8000); the magnet track at the stroke counts into the cost. -
A motor’s rated and no-load values: where a maker prints a rated torque but no rated current (Kollmorgen, Beckhoff at 480 V), the rated current is the rated torque over the torque constant. Where the S120 table gives
rated_values_at_speed_rad_s, the rated torque and current are paired with that speed, not with the table’s rated speed. The printed line-to-line voltage constant is used as printed, however far it is from the torque constant (the Beckhoff AM8000 reach 1.30 times it, the Rexroth MS2N 1.18); only the two documented misprints (AKM64Q at 240 V, 1FT7044-1AF7) are left out. Sqrt(3) times it is the model’s back-EMF constant, written todrive.back_emf_constant_v_s_radand setting the no-load speed; a motor without a printed constant writes 0, which means “equal to the torque constant”. The peak torque stays within the pulley’s rating in both directions: the cap is the pulley’s torque times the gearbox efficiency over the ratio, applied byapply_motorandapply_gearboxalike, so the order in which the two are applied does not matter. -
A single belt axis’s stroke limit is its printed module length (
max_length_one_piece_m: Rexroth’s Lmax, Bahr’s “aus einem Stück”) lessnon_stroke_length_m, the length that is not stroke: Rexroth’s carriage and additional length Lca + Lad (L = smax + Lca + Lad; CKR-110: 5.5 m less 195 mm is 5.305 m) and Bahr’s basic length (“Grundlänge + Verstellweg = Gesamtlänge”; ELZ-60: 6 m less 290 mm is 5.71 m). The Bahr column is filled for the ELZ only, whose basic lengths were read directly; another Bahr series keeps its module length as the stroke and the search names itaxis-strokein theestimatedcolumn. -
A part put in retunes the velocity gain (
with_parts) by the square root of the change of the inertia the motors turn, with the rotor’s alone in the mean. On a machine that reports a resonance (an elastic model) the gain is then held to the config’s own times the change of the rotor’s inertia with the gearbox’s: the speed loop’s crossover over the rotor-side inertia, Kp / J_M, stays the config’s. Above the drive train’s resonance the belt or arm no longer carries the load and the loop sees the rotor alone, and in every case swept the crossover lies above the first anti-resonance, limited by the drive’s delays, not by the mechanics. On a rigid model the scaled gain stands. Swept by gain on 16 November 2026 (sim-cli verdicts,margins,analyzewith--set drive.velocity_kp_nm_s_rad): the largest gain that passes every verdict with 45 degrees of phase margin is Kp / J_M = 870 to 1550 rad/s in every case, but 1.0 to 12 times the first resonance, so a fixed fraction of the resonance (the rule before: a third of it) fits none of them well; the shipped configs sit at 830 to 1330 rad/s. The best tracking comes at the edge of stability (the tracking error falls with the gain until the loop rings), so the rule aims at the stable range, not at it.Case (J_M, J_total in kg m²; first resonance) Largest gain at 45° Best tracking, all verdicts pass Rule before This rule Single axis (3.0e-5, 1.34e-4; 65.8 Hz), its own 0.025 0.036 0.07 – – pulley radius ×0.5 / ×2 0.037 / 0.033 0.07 / 0.07 0.0166 / 0.025 same gear ratio ×0.5 / ×2 0.040 / 0.037 0.09 / 0.07 0.025 / 0.0162 same Bahr ELZ-40 / ELZ-80 / ELZ-125 (pulley 16 / 31 / 48 mm; 47 / 101 / 160 Hz) 0.037 / 0.026 / 0.03 0.07 / 0.055 / 0.037 0.0212 / 0.025 / 0.025 same motor 1FK2103-4AH (1.4e-5, 1.18e-4) 0.019 0.045 0.016 0.0117 motor 1FK2204-5AF (1.2e-4, 2.24e-4) 0.127 0.2 0.025 0.0646 T-gantry (3.0e-5, 1.28e-4; 20.5 Hz), its own 0.04 0.047 0.08 – – motor 1FK2204-5AF (1.2e-4, 2.18e-4) 0.13 0.2 0.04 0.108 Delta D3 (2.4e-4, 3.9e-3; 43 Hz), its own 0.25 0.31 0.6 – – Gains in N m s/rad. Checked on two combinations outside the fit: the 1FK2204-5AF on the ELZ-80 gets 0.0826 (phase margin 50 degrees, tracking error 0.145 mm; the rule before gave 0.0254, 43 degrees, 0.468 mm). The 1FK2103-4AH on the ELZ-125 (inertia ratio 49) passes with neither rule: 0.0117 puts the speed loop’s crossover over the whole inertia (2.7 Hz) below the position loop’s and overloads the motor, 0.025 (the rule before) rings and misses settling (0.16 mm against 0.1 mm); a search ranks it failing either way. The Bahr ELZ-125 on the single axis scaled to 0.0573 ran at 2.05 times the motor’s peak; bounded it keeps 0.025 and passes.
-
Single belt axes of Festo and Rexroth are axes by name like Bahr’s (
EGC-TB-KF-70,CKR-110), with the maker’s drive torque at the pulley and maximum acceleration.
What the checks hold them to (catalog/tools/cataloglib/checks_mech.py): per maker the ratio count per size as printed, torques in order, values printed once per size the same on every row, a bigger size stronger and heavier, bands for stiffness, inertia, efficiency and backlash; the screws’ and guides’ geometry and load ratings; the linear motors’ force over current, km against R, losses against force; the belts’ stiffness per width and minimum teeth; the belt axes’ feed per turn against pulley and pitch; the shafts against their flanges.
Kept as printed (each named in its table’s notes): WITTENSTEIN TP+110 MF 2-stage ratio 16 T012 7.0 N m beside an in.lb value of 5.9 N m; SP+100 MF ratio 64, 19 mm hub J1 0.38 kg cm² against 0.54 of its neighbours. Harmonic Drive size 17: ratio 120 has a lower momentary peak than ratio 100; CSF32 ratio 30 has T2 above its repeated peak. Apex AF180 axial load above its radial load, and the AFR table’s axial loads of sizes 100 and 220 differ from the AF table’s (the AF’s kept). 1FN3450-2NB80 prints its losses in W for kW (read as kW, Table 3-17 confirms); Table 3-15 gives 3910 N for the 1FN3600-3WB50’s 3920 N. Gates HTD8 25 mm and 100 mm breaking forces (4.57 and 3.47 times the pull, against 4.06 for the other widths). Rexroth CKR-280 Lmax printed “5, 500” (read 5500), the CKR-110 carriage length 60 mm in one table and 110 mm in another. HIWIN FDC 32-20K4 with 6.35 mm balls: K 71 kgf/µm, below the 96 of the 32-16K4.
festo/cylinders_dsbc.csv (pneumatic cylinders)
Festo’s standards-based cylinders DSBC to ISO 15552 with adjustable pneumatic cushioning PPV, one row per piston
diameter (32 to 125 mm), from the catalogue “Standards-based cylinders DSBC, to ISO 15552”, edition 2026/09
(retrieved 15 November 2026): rod diameter, cushioning length, maximum impact energy in the end positions, the
theoretical forces at 6 bar, the moving mass at 0 mm and per metre of stroke, the stroke range. A new part class,
pneumatic_cylinder (catalog/schema/v1/pneumatic_cylinder.schema.json). The check
pneumatic_cylinder_forces_are_p_times_a holds every row’s forces to 6 bar times the piston’s area and the piston’s
less the rod’s (within the printed rounding), and a bigger size to more impact energy. The simulator does not read the
table by name yet: machines/pneumatic-axis.toml takes the DSBC-32’s values from it by hand, marked [catalogue].
Kept as printed and named in the notes: the impact energy row “DSBC-…” does not say which cushioning it is for, and
the rod diameter is read from the KE variant’s dimension table.
Life and tooth load data in the configs
The life estimates and the belt’s tooth load take their figures from the configs’ [ratings], not from a file in catalog/. Where they come from a maker’s document, that is listed here. No vendor document or page is in the repository; the numbers were read from the makers’ own servers on 12 November 2026.
| Figure | Value | Source |
|---|---|---|
| Gearbox gearing: maximum torque | M2max for at most 30000 output revolutions; M2N continuous; emergency-off torque at most 1000 times | Siemens, equipment manual “Planetary gearboxes for 1FK2 and 1FT2 servomotors”, 04/2025, chapter 6 (the notes of gearbox_nrb.meta.toml). gearbox_gearing_life_h puts a Wöhler line through M2max at 30000 revolutions with an estimated exponent (8.7, ISO 6336-3’s tooth root slope for case-hardened gears) and the knee at M2N, and sums the damage by Palmgren–Miner. Siemens’ own damage sum over overload partial cycles (configuration manual 01/2023) is not in the repository |
| Gearbox planet bearings: life formula | L10h = 20000 h · (n2B / n2) · (M2N / M2eq)^3.33, M2eq = (Σ |M|^3.33 · |n| · t / Σ |n| · t)^0.3 | Siemens, configuration manual “Planetary gearboxes for S-1FK2 and S-1FT2 servomotors”, 01/2023, A5E51318133B AC, section 6.3.3 (cache.industry.siemens.com). The 04/2025 equipment manual of the gearbox files could not be downloaded; whether it changed these figures was not checked |
| Reference speed n2B of the NRB060, ratio 5 | 175 r/min | The same manual, Table 7-15 (page 99). Only this value went into the configs (gearbox_reference_speed_rpm); the gearbox files have no such column, so a gearbox by name does not set it |
| Output bearing of the NRB gearboxes | Average radial force for L10h = 30000 h at 100 r/min, force in the middle of the shaft: NRB040 160 N, NRB060 340 N, NRB080 650 N, NRB120 1500 N, NRB160 4200 N (for 20000 h: 200, 400, 750, 1750, 5000 N); life with another load L10h = 30000 h · (F_R,eq allowed / F_R,eq)³ | The same manual, Table 7-14 (page 95) and section 6.3.4. The default configs’ pulley_bearing_load_rating_n is the NRB120’s, C = 1500 N · (30000 · 60 · 100 / 10⁶)^(1/3) = 8469 N; the 20000 h figure gives 8631 N, 2 % apart |
| Belt teeth: method | Effective pull · service factor ≤ specific tooth load · width in cm · teeth in mesh (at most 12 for open-ended belts) | Megadyne, MEGALINEAR technical handbook, 02.2026, page 9 (megadynegroup.com) |
| Belt teeth: specific tooth load of open-ended AT5 | 35 N/cm at 0 to 40 r/min, 34 at 60 to 100, 32 at 200, 31, 30, 29 at 300, 400, 500, 27 at 750, 26 at 1000, 24 at 1500, 22 at 2000, 19 at 3000, 18 at 4000, 16 at 5000, 13 at 8000 r/min | The same handbook, page 52 (belt_tooth_load_rpm, belt_tooth_load_n_cm in all three configs) |
| Belt teeth: service factor | 1 steady load; 1.4, 1.7, 2 for low, average and high shock loads | The same handbook, Table 4 (page 13). The configs take 1.4 |
| Belt life | None published | Neither Megadyne’s handbook, Gates’ “Thermoplastic Polyurethane Belt Program” (catalogue 20166, 2025) nor BRECO’s AT5 data sheets give a life in hours or load cycles, or a Wöhler curve, for these belts; they size by tooth load, cord tension and minimum pulley teeth. Optibelt’s documents could not be reached (their links redirect). Gates’ AT5 figure is of the same size as Megadyne’s: an allowable effective force of 1200 N at 25 mm with 12 teeth in mesh is 40 N/cm per tooth at standstill, against Megadyne’s 35 |
| 1FK2 motor bearings | Deep-groove ball bearings, lubricated for life, about 25000 h at medium load (less with continuous running at the highest speed, shock or frequent reversing, by up to half); allowable radial force at the shaft end for L10h = 25000 h, e.g. 1FK2205 about 1000 N at 20 mm from the shoulder at 1500 r/min (read off the diagram), an equivalent C of 13104 N | Siemens, operating instructions “SINAMICS S210 servo drive system with S-1FK2 and S-1FT2”, 09/2022, A5E41702836B AL, sections 11.1.1 and 12.1.12; siemens/motor_bearings_1fk2.csv. Used by ratings.motor_bearing_load_rating_n where a pulley sits on the motor shaft; in no shipped config does the belt pull on one |
| Life modification factor a_ISO | a_ISO of radial ball bearings from κ = ν / ν1 and e_C · C_u / P; ν1 from n and D_pw; e_C from Table 13; C_u ≈ C0 / 22 below 100 mm mean diameter | ISO 281:2007, sections 6.3.3.2, 6.3.3.3 and Annex B. The configs’ viscosity, contamination factor, C_u and D_pw are estimates (no maker of the pulley bearings publishes them) |
| Rating life of a ball bearing | L10 = (C / P)³ million revolutions, L10h = 10⁶ / (60 n) · L10; for a load that changes, P = cbrt(Σ F³ n t / Σ n t) | ISO 281, as SKF (“Y-bearings and Y-bearing units”, 2013) and Schaeffler (TPI 301, and the ball screw catalogue’s equivalent load) print it |
How the files were extracted and checked
Extraction. Each Siemens and Bahr file is written by a script in catalog/tools/. The vendor PDF is turned into text with pdftotext -table (xpdf 4.x), and the script reads the tables from that text. The scripts are strict: a row that does not have one value per column, a motor printed twice with different values, or a motor with only one of its two rows stops the script, so a changed edition cannot produce shifted values silently. The scripts also write the comment header of each file. The vendor documents are not part of the repository.
Checks. The catalogue’s validator (python catalog/tools/catalog.py validate, run by the CI workflow catalogue.yml) checks every table against its JSON Schema (types, units, no unknown column, no negative quantity), every value for its source, the key columns for duplicates, and the numbers against their own physics and against each other. A value that landed in the wrong field or row breaks one of them. The physics checks are the functions of checks.py, named as in the table (until November 2026 they were Rust tests of sim-machines; exact row counts became minimums, so that a contributor can add rows):
| File | Checked how | Test |
|---|---|---|
festo/exct.toml | Feed constant = π × effective diameter (0.1 %). The coefficients of the torque formula against the T-gantry’s own mechanics at 45 degrees: load factor r/√2, motor factor √2/r (1 %), gravity factor g·r/2 (3 %) | festo_exct_values_agree_with_its_own_geometry |
motors_s210.csv, converters_s210.csv | No article twice; torque per current between 0.15 and 4.5 N m/A; rated power = rated torque × rated speed (12 %); rated current at most 1.05 × stall current; every paired converter exists and has at least 85 % of the motor’s rated current | siemens_s210_motors_are_plausible_and_their_converters_exist |
motors_s210.csv through apply_motor | Every motor and supply row reaches its rated speed inside the voltage limit: static torque constant × rated speed below sqrt(3/2) × DC link voltage (540 V or 325 V). Five rows are above the DC link voltage itself | every_catalogue_motor_reaches_its_rated_point_inside_the_voltage_limit |
motors_1fk2_s120.csv | Rated power = rated torque × rated speed (8 %). Against motors_s210.csv, a second document read by a second script: static torque, stall current, maximum torque and current within 5 %, rotor inertia and mass within 6 % | siemens_1fk2_data_agrees_between_the_s120_manual_and_the_s210_catalogue |
dynamic_braking_1fk2.csv | The optimum resistor brakes harder than the bare short circuit; a peak is above an average; a resistor lowers the current | siemens_1fk2_dynamic_braking_fits_the_motors |
motors_1ft2_s120.csv | As for the 1FK2, against motors_s210.csv | siemens_1ft2_data_agrees_between_the_s120_manual_and_the_s210_catalogue |
gearbox_*.csv | Rows complete; a ratio belongs to one number of stages; values sensible where given | siemens_gearbox_rows_are_complete_and_plausible |
motors_s120.csv | Power = torque × speed; the paired Motor Module exists and carries the stall current | siemens_s120_motors_are_plausible_and_their_motor_modules_exist |
motors_s120_electrical.csv | Against motors_s120.csv: poles = 2 × pole pairs; torque constant = static torque / stall current (8 %). In itself: three times the per-phase voltage constant = torque constant (15 %); electrical time constant = L / R (15 %) | siemens_s120_data_sheets_agree_with_the_catalogue |
motor_modules_s120.csv | Type rating about 0.54 kW per ampere; the D type has the higher maximum current | siemens_s120_motor_modules_are_plausible |
line_modules_s120.csv | Power = DC link voltage × DC link current; a bigger module has more capacitance; chopper peak power = U² / R at the threshold | siemens_s120_line_modules_are_plausible |
braking_s120.csv | Peak power = U² / R at the threshold; over a duty cycle the peak power averages to no more than the continuous power; each resistor’s module exists | siemens_s120_braking_resistors_fit_their_modules |
bahr/belt_axes.csv | Rows unique; belt code agrees with pitch and width; feed per revolution = teeth × pitch; continuous feed force against the static Fx; the gantries state their moved masses and lengths | the four bahr_* checks |
gearbox_mass.csv | Every gearbox of the three gearbox files has a mass; a bigger size of a series is heavier at the same frame and ratio; NRK070, frame 04, ratio 5 is 1.4 kg as in Table 7-33 | every_catalogue_gearbox_has_a_mass_and_bigger_ones_weigh_more |
megadyne/*.csv | Per profile EA per mm of width within 25 % of its mean; breaking strength four times the allowable pull (10 %; 3.5 times at 150 mm, as printed); mass growing with width; tooth load falling with speed | megadyne_belts_are_plausible |
motor_modules_s120.csv against the S120 motors | Every S120 motor’s paired Motor Module exists and has at least 85 % of its rated current | s120_motors_by_name_bring_winding_rated_values_and_their_motor_module, a Rust test in catalog_parts.rs |
That the simulator reads the files correctly is checked by Rust tests. catalog_golden.rs holds every value the simulator takes from the catalogue (every motor at every supply, every drive, gearbox, belt and axis by name, pairings, masses) to a snapshot written before the move to schema 1, and so shows that the move changed no result; catalog_dir.rs checks --catalog DIR. Besides them: a_motor_by_name_gives_the_values_of_the_hand_written_config, a_gearbox_by_name_sets_ratio_stiffness_backlash_and_ratings, parts_named_in_a_config_behave_like_their_numbers and exct_30_config_agrees_with_the_catalogue; for drives, belts, axes and the S120 motors the tests of catalog_parts.rs.
What these checks cannot find: a number that was misread into another plausible number in a column with no relation to check it against.
Misprints and inconsistencies found in the vendor documents
The files keep what is printed. Each of these is named in the header of its file, and the test that would trip on it skips that one value.
| Document | What is printed | Why it looks wrong |
|---|---|---|
| Festo EXCT catalogue 2023/01 | The sample calculation uses a constant of 39.2 and a gravity mass of 2.14 kg for the EXCT-15 with 200 mm Z stroke | Its own formula table gives 47.5 and 2.6. The file has the formula table’s values |
| Siemens D 32, 01/2024 | rated_current_230v_a of the 1FT2206-2AC is 3.75 A | Above its stall current of 2.8 A and above its converter’s 3 A. Most likely a misprint for 2.75 A. A motor by name takes the catalogue’s rated current up to 1.05 times the stall current (the most any other row has), so 2.94 A here |
| Siemens D 32, 01/2024 | The 230 V rated power row of the 1FT2 shaft height 100 motors is one value short | The file leaves the field empty |
| Siemens 1FK2 manual 02/2022 | Rotor inertia of the 1FK2308-3AB printed as “1,60,1” | Unreadable. The file leaves the field empty |
| Siemens 1FK2 manual 02/2022 | Braking current with resistor of the 1FK2306-2AC is 6.5 A | Above the 6.1 A without the resistor; for every other motor it is about 10 % below |
| Siemens 1FT2 manual 02/2022 | Rated speed 3000 r/min for the 1FT2105-4AH and 1FT2206-4AH, 2000 r/min for the 1FT2208-4AF | The manual’s own rated torque and power, and the S210 catalogue, give 4500 and 3000. The file keeps the printed value; the model takes rated power over rated torque for these three |
| Siemens NC 82, 02/2020 | The 55 kW Smart Line Module 6SL3130-6TE25-5AA3 has 138 A for S6 duty and 178 A maximum at 71 kW and 91 kW | That would be a DC link of about 510 V; every other module has power / 600 V in these rows |
| Siemens NC 82, 02/2020 | Peak power of the braking resistor 6SN1113-1AA00-0DA0 is 25 kW at 17 Ω | U² / R at the 770 V threshold would be 35 kW; for the other three resistors it fits |
| Beckhoff AM8000 4.9.1 | Torque constant of the AM8022-0D, AM8022-0E, AM8023-0E 22 to 28 % below sqrt(3) × Ke | Their Kt fits M0 / I0; the AM802x family runs about 20 % low. Not checked (VENDOR_MISPRINTS in checks.py) |
| Beckhoff AM8000 4.9.1 | Rated power of AM8051-0J-fan, AM8551-0J-fan (480 V), AM8052-0N-fan, AM8552-0N-fan (400 and 480 V), AM8073-0U-fan (480 V) | 14 to 25 % off rated torque × rated speed. Not checked |
| Kollmorgen AKM guide Rev F | Ke of the AKM64Q at 240 V 0.64 V per 1000 r/min | Its Kt of 0.99 N m/A implies about 60. Not checked |
| Kollmorgen AKM guide Rev F | Peak torque of the AKM44G 23.3 N m, peak current of the AKM83T 263.9 A | The other windings of the frame are near 20 N m; the AKM82T and AKM84T have 144 and 201 A. Within the checks’ bounds, kept |
| Kollmorgen AKM guide Rev F | The quick-guide table and the frame tables disagree in places (AKM8x masses, AKM52L power, AKM64Q at 400 V) | The rows follow the frame tables; the metadata lists each |
| B&R 8LS V2.51 | Brake mass 0 kg for the 8LSA5A/5B/5C and 8LSA7x, which list a brake inertia | Kept: their mass with brake is their mass |
| Lenze MCS 7.0 | Brake motor inertia of the MCS19J 135 kg cm², less than 105 plus the brake’s 31.8 | Kept |
| Lenze i950 Gen B 3.0 | The C130 is rated 209 A, below the smaller C110’s 212 A | Kept |
| Rexroth ctrlX DRIVE ed. 17 | XCS2-W0090: internal braking resistor 11 Ω, below its own minimum external resistance of 11.2 Ω | Kept |
| SEW MOVIDRIVE system 2017 | The type list prints MDX90A-0950 and 45 A for the 0460 | Its own technical data and the 2025 manual say 0095 and 46 A, which the file has |
| Siemens data sheet service | Voltage constant of the 1FT7044-1AF7 is 49.0 V per 1000 r/min | Less than half of what its torque constant of 1.79 N m/A implies |
| Siemens data sheets against D 21.4 | The data sheets give the sixteen 1FT7 High Dynamic motors 6 poles; the catalogue table gives them 5 pole pairs | Two Siemens sources disagree. Both files keep what their source prints |
| Siemens D 21.4, 2017 | Some motors are still paired with 45 A and 60 A Motor Modules | The Catalog News D 21.4 N replaced those by C types |
| Bahr data sheets | The continuous feed force is not the static Fx for several series (900 N beside 894 N; ELZU 100: 3600 N beside 4000 N; LLZS 60: 1050 N beside 1073 N) | Rounded differently in places |
| Bahr data sheets | ELZT 80S has a lower no-load torque (1.2) than ELZT 80 (1.3) | Kept as printed |
| Bahr data sheets | The footer of the DLZPVI sheet carries the number of the DSZPVI sheet; page 2 of the ELZU sheet says 21.20.200 | Kept as printed |
Other notes from the headers that are not misprints: three 1FK2 data sheets (1FK2306-4AC, 1FK2308-3AB, 1FK2308-4AB) head their rated data “3AC 400 … 480 V”; the maximum power of the 6SL3130-7TE25-5AA3 is 91 kW, with 110 kW in brackets for use with an Active Interface Module that is not in the file.
What is missing, and why
| Missing | Why | What it means |
|---|---|---|
| Winding resistance and inductance of the 1FK2 and 1FT2 | Siemens publishes them in no catalogue, data sheet or manual on its servers | They are estimates in exct-30.toml (2 Ω, 10 mH, bounded 1.4 to 2.6 Ω and 7 to 13 mH), and a motor by name leaves them as the config has them. The current loop’s behaviour and the copper loss rest on them. A support request, the drive’s parameters p0350 and p0356, or a measurement would give them |
| Torque and voltage constant of the 1FK2 and 1FT2 | Not in the catalogue | The torque constant is taken as static torque over stall current. For the 1FK7 and 1FT7, where the data sheets print it, that agrees within 8 % |
| Rated current of a motor by name | In the catalogue per supply | motor.rated_current_a is the catalogue’s own figure, not rated torque over the static torque constant, which is up to 18 % lower (1FK2204-5AK at 400 V) and made the winding rise come out up to 40 % too high |
| Thermal time constant of 34 of the 96 S210 motors | They are in neither configuration manual of 02/2022 | A motor by name keeps the config’s thermal time constant for them |
| DC link and braking resistor data of the S210 converters | Not in D 32 | The DC link ratings of exct-30.toml are estimates by the S120 data |
| The data sheet of the 1FK7022-5AK7 | The data sheet service has none under any article number tried | 166 of 167 rows in motors_s120_electrical.csv |
| A complete D 21.4 newer than 2017 | Siemens does not seem to have issued one | The 1FK7 and 1FT7 selection data is from 2017 |
| ISO 6358 sonic conductance C and critical pressure ratio b of Festo’s VUVG valves | Festo’s only public VUVG catalogue (edition 2010/02) and the single-part data sheets print the standard nominal flow and switching times, not C and b; festo.com’s product pages refuse automated reading | machines/pneumatic-axis.toml estimates its valve’s C from the 220 l/min nominal flow of a VUVG-L10 (C 0.87 l/(s bar) at b 0.3, bounded 0.6 to 1.2 and 0.2 to 0.45); its switching time, 7 ms, is the catalogue’s changeover time |
| Air consumption of the DSBC | Not printed | Worked out by the model from swept and dead volumes (cylinder.<id>.air_cycle) |
| Gearbox input speed limits, radial and axial forces | Not extracted from the gearbox manual (the mass is, from the 01/2023 edition) | ratings.gearbox_max_input_speed_rpm and ratings.shaft_max_radial_load_n are placeholders in the configs |
| Backlash of 24 NRB rows, inertia of 3 NRK rows | The manual leaves them open | A gearbox by name keeps the config’s value there |
| The angled gearboxes (NRBW, NRKW, NLCW); Siemens’ SP+ but the SP100 with two stages, and its TP+ | Not extracted (WITTENSTEIN’s own SP+ and TP+ tables are in wittenstein/) | |
| EXCT: friction torque over speed, maximum acceleration over load and Z position, permissible support span, dimensions | The Festo catalogue gives them only as graphs or drawings | Friction of the EXCT-30 is an estimate |
| EXCT: allowable belt tension, guide and pulley shaft ratings | Festo does not publish them | All three are estimates in the EXCT-30 config. The belt tension: 2140 N. Festo publishes no allowable belt tension for the EXCT. It states the 5 mm pitch, the steel cords, the 30 mm width and the stretch of the belt: 0.045 % at 300 N, which is 667 kN per unit strain. Megadyne’s Megalinear handbook lists for 5 mm pitch steel-cord polyurethane belts, at 4 mm/m stretch: T5 840 N at 25 mm and 1060 N at 32 mm (about 250 kN per unit strain at 30 mm), AT5 1805 N at 25 mm and 2275 N at 32 mm (about 535 kN). Festo’s belt is somewhat stiffer than AT5 with standard steel cords and far stiffer than T5, so the limit is the AT5 figure between the two widths: 2140 N at 30 mm. The figures were read from the handbook itself (average values for open-ended belts, a quarter of the breaking strength); that Festo’s belt has cords of that class is concluded from the stretch, not stated by Festo. The teeth give way before the cords do: that is judged by pulley_max_torque_nm. |
| S120 motors: maximum torque, current and speed in D 21.4 | Given as characteristic curves | Taken from the data sheets instead |
| Bahr: many series | Their tables need special cases: no-load torque with and without cover band, no feed force rows, a second belt width, differently laid out tables. The header of the file lists them | 15 series are in the file |
| Bahr: second moments of area, dimensions, order codes, the second drive version of ELZ and ELVZ | Not extracted | |
| Motor–drive pairing of Beckhoff, Kollmorgen AKM and Rexroth | In no public document (Beckhoff’s overview needs a login, Rexroth points to a configurator) | Paired by the stall-current rule, as the 1FK2 on S120 |
| Rated torque, current and power of the SEW CMP; rated current of the Kollmorgen motors; standstill values, winding data and thermal time constants of Yaskawa and Mitsubishi | Not printed | Standstill values stand for rated ones and the other way round (see other makers); winding and thermal data stay the config’s |
| SEW CM3C, Kollmorgen AKD2G, B&R 8LSA..-4 and 8LSC/O/P, Lenze 230 V windings and the i950 at 480 V, Yaskawa SGM7G/SGM7P, Mitsubishi HK-MT/RT | CM3C: SEW’s catalogue links answer 403; the others not extracted yet | |
| DC link capacitance of the Lenze i950 and of the Beckhoff, SEW and smaller Rexroth inverters; switch-on and trip voltages of most makers; braking data of the axis modules of modular systems (AX8000, MOVIDRIVE modular, ctrlX XMS/XMD) | Not printed, or in the supply modules, which are not in the tables | The config’s values stay (the EXCT-30’s S210 estimates) |
| Peak current of the Mitsubishi amplifiers | Not printed | The paired motor’s peak [estimate] |
| Base load current of every other maker’s drive | Not printed | 0.85 of the rated current, the S210’s [estimate] |
| WITTENSTEIN XP+ | Its documents print only ranges per size and stage; per-ratio values are only in the CAD POINT configurator | Not in the catalogue |
| Neugart stiffness, input inertia and most masses and idle torques per ratio | Printed as ranges per size and stage only | The conservative end of each range, marked [estimate] |
| Apex AB/ABR, AD, AE | Their tables have no text layer | The AF stands for Apex’s precision line |
| Harmonic Drive no-load torque; ContiTech and BRECO belts; Rexroth MKR; guides with ball chain, the other Rexroth block families and the other THK models | Charts only; ContiTech’s PDFs answer 404 and BRECO’s catalogue is HTML; the others not extracted | A strain wave gear by name keeps the config’s no-load torque (its efficiency is read off the graphs) |
| Motor shafts of Kollmorgen, Lenze, Rexroth, Mitsubishi, B&R | Kollmorgen’s site answers a bot challenge; the others not extracted yet | Those motors get no other maker’s gearbox |
| Screw nut mass, drag torque and efficiency per model, shaft mass per metre | Not printed per model in the HIWIN tables | The shaft’s weight is a steel cylinder of its nominal diameter; the config’s efficiency and friction stay |
| Guide friction per carriage | HIWIN prints the seal resistance only; Rexroth and THK print none (Rexroth a diagram of displacement resistance), and none of them a preload force or dynamic moments except Rexroth’s | The config’s guide friction stays |
| Festo ELGC-TB, ELGR and the spindle axes (EGC-BS, ELGA-BS, ELGC-BS); the -S and -L slides and the T8 option of ELGA-TB-RF | ELGC-TB prints units inside its cells and merged values (speed, belt pitch) that can only be read by guessing; ELGR prints two guides side by side; a spindle axis has a screw lead and no belt, which the belt-axis table cannot hold | Not in the catalogue |
| Autonox arm lengths, link masses, payload tables and prices | Behind the login of autonoxfinder.com; the public product pages give payload, working area, repeatability and mass only | No Autonox table |
| Prices of gearboxes, screws, guides, linear motors and axes | Quoted on request or in configurators | Weight stands in, as for the motors |
| Prices | In no file: Siemens’ Industry Mall refuses automated access, and no catalogue read here prints a price | The search uses installed weight as a stand-in (see above) |
| Converter and Motor Module weights | Not extracted from D 32 and D 21.4 N | Not counted in the search’s cost_kg |
| Bahr: rated payload of the gantries, moved masses of the single axes, belt stretch | Not in the sheets | The axis search judges the payload by the slide’s dynamic Fz against Z axis and payload; a Bahr single axis keeps the config’s carriage; Bahr’s belt EA is Megadyne’s for the same profile and width |
| Festo EXCT: moved masses one by one | Festo gives the torque formula’s lumped constant and the Z mass | The carriage of an EXCT by name is fitted to the formula with the machine at hand (7.136 kg for the EXCT-30, the hand-written config has 7.16 kg) |
Rerun an extraction on a newer edition
The vendor documents are not in the repository. Get the PDF from the vendor, turn it into text, and run the script through the catalogue’s pipeline, which converts its output to schema 1, writes the tables and validates them. All commands are run from catalog/. They need Python 3.11, jsonschema, and pdftotext from xpdf 4.x.
| File | Commands |
|---|---|
motors_s210.csv, converters_s210.csv | pdftotext -table -enc UTF-8 catalogue.pdf catalogue.txt then python tools/catalog.py extract siemens_d32 catalogue.txt |
motors_1fk2_s120.csv, dynamic_braking_1fk2.csv | pdftotext -table -enc UTF-8 manual.pdf manual.txt then python tools/catalog.py extract siemens_1fk2_s120 manual.txt |
motors_1ft2_s120.csv | the same with siemens_1ft2_s120 |
gearbox_nrb.csv, _nrk.csv, _nlc.csv | the same with siemens_gearboxes |
motors_s120.csv | the same with siemens_d21_4 |
motor_modules_s120.csv | the same with siemens_d21_4n |
line_modules_s120.csv, braking_s120.csv | the same with siemens_nc82 |
siemens/gearbox_mass.csv | The 01/2023 configuration manual from https://cache.industry.siemens.com/dl/files/596/109802596/att_1132680/v2/Plan_gear_for_servo_motors_config_man_0123_en-US.pdf, then pdftotext -table -enc UTF-8 manual.pdf manual.txt and python tools/catalog.py extract siemens_gearbox_mass manual.txt |
megadyne/belts.csv, belt_tooth_load.csv | The handbook from https://megadynegroup.com/files/resources/attachments/md_manu_en_megalinear_web.pdf, then pdftotext -table -enc UTF-8 md_manu_en_megalinear_web.pdf megalinear.txt and python tools/catalog.py extract megadyne megalinear.txt |
bahr/belt_axes.csv | Download one PDF per name in the script’s SHEETS list from https://cdn.norgren.com/pdf/<name>.pdf. pdftotext -q -table -enc UTF-8 <name>.pdf once per sheet, then python tools/catalog.py extract bahr folder_with_the_txt_files. A new sheet needs a source in belt_axes.meta.toml |
motors_s120_electrical.csv | python tools/catalog.py extract fetch_siemens_datasheets <folder for the downloaded PDFs>. It downloads one data sheet per motor of motors_s120.csv from Siemens’ service. A full run takes hours; downloaded PDFs are kept and not fetched twice. With a further argument cached it fetches nothing and writes the file from the PDFs already in the folder |
festo/belt_axes.csv, belt_axis_torque_formula.csv | By hand, from the catalogue’s tables |
wittenstein/gearbox_sp.csv, gearbox_tp.csv | The two PDFs from the wittenstein-group.com download centre (see the metadata), pdftotext -table -enc UTF-8 each, then python tools/extract_wittenstein.py sp.txt tp.txt wittenstein |
neugart/gearbox_*.csv | The three catalogue chapters from cdn.neugart.com, pdftotext -table -enc UTF-8 each, then python tools/extract_neugart.py PLE.txt PLN.txt PLFE.txt neugart |
apex/gearbox_*.csv | python tools/extract_apex.py pii.txt af.txt apex |
harmonicdrive/gearbox_*.csv | python tools/extract_harmonicdrive.py <folder with both txt files> harmonicdrive |
hiwin/*.csv, rexroth/linear_guides.csv, thk/linear_guides.csv, siemens/linear_motors_1fn3.csv, beckhoff/linear_motors_al8000.csv, gates/*.csv, festo/belt_axes_egc.csv, _elga.csv, rexroth/belt_axes_ckr.csv, sew/motor_shafts.csv | extract_hiwin_screws.py, extract_hiwin_guides.py, extract_rexroth_guides.py, extract_thk_guides.py, extract_siemens_1fn3.py, extract_beckhoff_al8000.py, extract_gates.py, extract_festo_egc.py, extract_rexroth_ckr.py, extract_sew_cmp_shafts.py; each script’s docstring gives the PDF, its pages and the pdftotext command. They write the table in place. The other shaft tables are typed in from the drawings |
Then:
-
If the script stops, the new edition has a row or table it cannot read. It says which. Fix the script; do not patch the output. If the conversion stops, the script wrote a column the map in
cataloglib/legacy.pydoes not know. -
Update the source in the table’s
.meta.toml:document,date,url, and the notes. -
Review the diff of the table.
-
Validate:
python tools/catalog.py validate. A misprint that the new edition has fixed will show as a check that names the old one (for example the check that expects the inertia of the 1FK2308-3AB to be empty says “is readable now, check it”). Remove the exception from the check and the note from the metadata. -
In the simulator: rebuild (the tables are compiled in) and run
cargo test -p sim-machines --test catalog_golden --test catalog --test catalog_parts cargo test -p machine-t-gantrycatalog_goldenlists every value the simulator takes from the catalogue that changed; when the change is meant, write its snapshot anew withUPDATE_GOLDEN=1.exct_30_config_agrees_with_the_catalogueholds the EXCT-30 config to the files, and the search tests depend on which motors exist.
Motor and drive data added on 14 November 2026
siemens/motors_s210_oi.csv: the thermal time constants of the 1FK2 and 1FT2 from the S210 operating instructions 09/2022 (A5E41702836B AL, from cache.industry.siemens.com), with the 230 V windings and the 1FT2 the S120 manuals lack; where a manual has the motor too both agree (62 motors; the 06/2020 edition’s 22 min for 1FK2205-2AF and 1FK2206-2AF are 29 and 21 min here too). Six 1FT2 of the S210 catalogue got their time constant from it; 22 later 1FT2 windings (1FT2108, the 1FT2208-.S. and some 1FT2206/08/10) are in no edition read and still have none. The motors’ torque-speed curves and per-motor R, L, k_E of the 1FK2 and 1FT2 are in none of these documents nor in the configurator’s data sheet per article (graphs at most); SIZER, which may export curve points, needs an installation and a login and was not used.siemens/encoders_1fk2_1ft2.csv: the encoders the 1FK2 and 1FT2 are ordered with (22 bit, 26 bit for the 1FT2 only), forparts.motor_encoder.siemens/dc_link_trip_s120.csv: the S120 DC link’s overvoltage trip, 820 V, from the booksize equipment manual (formerly typed into the simulator).- Brake data (inertia and weight with brake) of
motors_s210.csvand the S120 manuals now reach the config withparts.motor_brake = true; the maximum-speed columns setdrive.max_speed_rad_s. - Winding resistance and inductance of the 1FK2 and 1FT2 are still published nowhere Siemens serves (checked: the S120 configuration manuals 02/2022, the S210 operating instructions 06/2020, the data sheet service for S210 and S120 variants). A 1FK2 by name gets an inductance estimated from its row of
dynamic_braking_1fk2.csv(catalog::apply_motor); its resistance stays the config’s estimate.
Validation
What the simulator has been compared with, and what it has not.
The short version. Every check below proves one of two things: that the equations are solved as documented, or that the catalogue data was read correctly. The independent implementations by other people (MuJoCo for the arms and the D3’s mass split) can also catch a wrong equation for the model as documented. None proves that the parameters describe a real machine. The project has measured no machine of its own; one public measurement of a ball screw axis, made by ISW Stuttgart, is compared below, and it is the only measured machine.
All checks are automated tests. Run them with cargo test --workspace, or as CONTRIBUTING.md does with cargo-nextest (the Python tests with pytest, see the CI workflow). The workspace has 1979 tests: in the final full run of 16 November 2026 (cargo nextest run --workspace --cargo-profile quick --exclude sim-py --profile full) 1920 of 1920 passed, the 29 OPC UA tests against the wall clock passed run one at a time, and the 30 long sweeps passed (see CONTRIBUTING.md); the Python tests are counted apart. Beside them: property tests (proptest) of every reader of untrusted input, fuzz targets in fuzz/ run weekly by a workflow, and benchmarks per machine (crates/sim-machines/benches/simulate.rs, not run in CI).
Test files, abbreviated in the tables:
| Short | File |
|---|---|
| core, sim-core | crates/sim-core/src/ (integrate.rs, testkit.rs, config.rs), crates/sim-core/tests/config_props.rs |
| mech, drive, profile, path, identify, analysis, joint, base, fault, gripper, … | crates/sim-components/src/ mech.rs, drive.rs, profile.rs, path.rs, identify.rs, analysis.rs, joint.rs, base.rs, fault.rs, gripper.rs, stepper.rs, induction.rs, pneumatic.rs, stop.rs and the other modules’ own tests; crates/sim-components/tests/ |
| axis, single axis | crates/machine-single-axis/src/tests.rs |
| gantry | crates/machine-t-gantry/src/tests.rs |
| delta | crates/machine-delta-d3/src/tests.rs |
| delta2 | crates/machine-delta-d2/src/tests.rs |
| linear delta | crates/machine-delta-linear/src/tests.rs |
| delta4 | crates/machine-delta-d4/src/tests.rs |
| H4, parallel SCARA, hexapod, tripod, cable robot, wafer handler | src/tests.rs of machine-delta-h4, machine-parallel-scara, machine-hexapod, machine-tripod, machine-cable-robot, machine-wafer-handler |
| joint kit | crates/machine-joint-kit/src/tests.rs |
| overhead crane | crates/machine-overhead-crane/src/tests.rs |
| crank, toggle | crates/machine-crank-cam/src/tests.rs, toggle_tests.rs |
| indexing table | crates/machine-crank-cam/src/indexer_tests.rs |
| winder | crates/machine-winder/src/tests.rs |
| reference (per crate) | tests/reference.rs of machine-single-axis, machine-delta-d3, machine-delta-d2, machine-delta-linear, machine-joint-kit |
| sim-netlist | crates/sim-netlist/src/ |
| suite, control, catalog, review2, review3, sweep, effects, views, electrical, belt_and_heat, life, conveyor, collision, fit_joints, machine_files, motor_kinds, pneumatic, stop, time_optimal, bad_numbers, … | crates/sim-machines/tests/: one file per name (suite.rs, control.rs, …), the catalogue checks in catalog*.rs, the machine files’ in machine_file*.rs, the property tests in *_props.rs |
| cli | crates/sim-cli/tests/ cli.rs, identify.rs, examples.rs |
| app, window | crates/sim-app/tests/app.rs, crates/sim-app/src/window_tests.rs |
| plc | crates/sim-opcua/tests/ plc.rs, plcopen.rs, interop.rs, args.rs, soak.rs |
| fmi, sim-fmi lib | crates/sim-fmi/tests/ fmi.rs, fmi3.rs, fmi_props.rs, and crates/sim-fmi/src/lib.rs |
| Python | crates/sim-py/tests/ (pytest) |
- The standard suite
- Independent reference
- Hand calculations: mechanics
- Hand calculations: drive
- Hand calculations: control, profiles and paths
- Hand calculations: analysis and verdicts
- Hand calculations: delta picker D3
- Hand calculations: planar delta picker D2
- Hand calculations: linear delta
- Hand calculations: four-axis delta picker D4
- Hand calculations: wafer handler
- Hand calculations: arms in tool space
- Hand calculations: tripod
- Hand calculations: arm on a track
- Hand calculations: picking from a conveyor
- Hand calculations: pneumatic cylinder
- Hand calculations: toggle press
- Hand calculations: winder with dancer
- Hand calculations: overhead crane
- Friction feedforward in the shipped configs
- Vendor formulas and vendor documents
- Self-consistency
- Against measured data
- What is not validated
The standard suite, every machine
every_machine_passes_the_standard_suite in suite runs these from core testkit.rs on every registered machine: on the default config (round trip, static hold, determinism, loss budget) and on its loss-free configs (all six). The loss-free configs are the rigid and the elastic model; for the single axis level and inclined by 30° (the inclined ones with tooth stiffness), for the T-gantry also with tooth stiffness, idlers and cable chain on.
| What is compared | Against | Tolerance | Check in testkit.rs |
|---|---|---|---|
| Forward of inverse transformation, on a grid over the workspace (the poses of the axes’ box the machine can go to: on the delta its cylinder with the spherical bottom) | The starting pose | 1e-9 m | round_trip |
| The machine at its equilibrium state under the holding torques, for 1 s | It does not move | 1e-7 m, 1e-6 m/s | static_hold |
| Total energy minus the work of the holding torques, for 10 s after a torque pulse, losses off | Constant | 0.1 % of the energy the pulse put in | energy_conservation |
| Travel after 1 s with the time step halved | Travel with the full step | 1 % | step_convergence |
| Two identical runs | Each other | Bit-identical | determinism |
| Work of the motor torques (Σ τ Δφ) over 1 s after a strong pulse (half the acceleration limit for 0.1 s), with the default config’s losses on | Change of the machine’s energy plus the time integral of every loss power it reports (power.*), summed on the integrator’s sub-steps of 15.6 µs (on whole steps, the linear delta’s stop damper, which takes c v² the moment a carriage touches, put 0.042 J of 18.3 J into one step); the energy parts (energy.*) add up to the energy | 0.1 % of the work either way (measured 9e-5 on the T-gantry, 1.4e-6 on the single axis); 1e-9 | loss_budget |
The integrator itself: a harmonic oscillator against its closed form (1e-12), and the error falling by a factor of 14 to 18 when the step is halved, as fourth order demands (harmonic_oscillator_matches_closed_form, error_falls_with_fourth_order, core integrate.rs).
Independent reference
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| x and z of the elastic T-gantry over an open-loop move of 0.6 s (a torque push, a pause, a pull back), default config, 601 samples | A second implementation of the same equations in Python, integrated with SciPy’s LSODA (rtol 1e-10) instead of fixed-step RK4. Trace committed as scipy_trace.csv | 0.2 % of the travel per axis | reference_move_matches_scipy, gantry |
What this covers: belt sections with the energy-consistent form, LuGre friction with load dependence, gearbox with backlash and efficiency, ripple, cogging, tooth meshing, shaft friction, frame mode, gravity. No controller, no drive.
What it does not cover:
- The leaning Z axis. The Rust side of the comparison runs with
effects.tool_flex = false, because the Python model has none. - Everything added later and off by default: tooth stiffness, material damping, idlers, cable chain, process force. The hard stops and brakes are in the Rust run but never act in this move.
- The script
scipy_reference.pyruns against the current default config again. It asserts that the fourteen effects it models are on and that the six effects of the machine it does not model are off (tooth stiffness, material damping, idlers, cable chain, process force, temperature); the leaning Z axis is switched off on the Rust side (the gearboxes’ mesh friction is off in its config); the switches of drive and controller, the hard stops and the brakes take no part in a move driven by given torques. Run on 11 November 2026 with the pinned packages, it reproduced the committed trace exactly (all 601 samples to the last printed digit). On 16 November it took the belt’s runs (belt_mass: their mass beyond the pulleys’ lumps, their speed terms, the whole belt swaying with the frame, so carriage, Z axis and frame are solved together) and was run again to write the trace. - It is the same person’s reading of the same equations, written twice. It catches integration and coding errors, not a wrong equation.
The overhead crane’s sway against SciPy
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The load’s y and its sway (its offset from under the sheave) over a trapezoidal trolley move driven open loop by torque steps (speed up 1.5 s, cruise 2 s, brake 1.5 s, let go; 10 s on a 3 m rope with the 265 kg load), default config but ripple, 201 samples | The same equations written again in Python (scipy_reference.py) and integrated with SciPy’s LSODA (rtol 1e-11) instead of fixed-step RK4: the elastic rope with its damping and slack, the spherical pendulum, the three rigid drives with their gearboxes’ loss factor and the motors’ friction, the wheels’ load-dependent rolling. Trace committed as scipy_trace.csv (largest sway 0.313 m, 1.05 m of travel) | 1e-4 of the travel for y, 1e-3 of the largest sway | a_trapezoidal_trolley_move_sways_as_scipy_says, overhead crane |
The script asserts that the six effects it models are on (gravity, payload, rope damping, rolling resistance, motor
friction, gearbox efficiency) and four it does not are off (gearbox drag, motor stiction, thermal feedback, base
compliance); the Rust side switches the torque ripple off. Run on 16 November 2026 with the pinned packages
(numpy 2.5.4, scipy 1.18.1). As the T-gantry’s, it is the same person’s reading of the same equations written twice: it
catches integration and coding errors, not a wrong equation. The rigid rope (effects.rope_stretch off) is checked
against the elastic one instead: at the same pose a rope a hundred times stiffer sways within 4.5e-5 of the rigid
one’s largest sway, the shipped rope 4.75e-3 off (its stretch hangs the load 5.1 mm lower)
(a_stiff_rope_converges_to_the_rigid_reference).
The arms against MuJoCo
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
Per URDF (six-axis, scara, five-axis, seven-axis, palletiser, arm-on-track), at 60 random states (q, q̇, q̈) inside the joints’ limits, seed 20261114: the joint torques of inverse dynamics with gravity, the gravity torques alone, the mass matrix, the flange’s position and rotation | MuJoCo 4.0.1 reading the same URDF files (mj_inverse, mj_fullM, the bias forces at rest, the flange body’s pose), written by mujoco_reference.py into one committed CSV per URDF in reference/ | 1e-9 of the largest magnitude of each quantity in a state (the worst seen is 2e-14) | *_matches_mujoco in machine-joint-kit/tests/reference.rs |
The crate’s side is the machine as built from its config (the default configs; arm5-tool.toml and arm7-tool.toml with joint space for the five- and seven-axis arms): its loss-free rigid torques with the rotors held still (Machine::rigid_split_torque with no rotor acceleration), so the Newton-Euler chain of rigid::Chain, the mass matrix from the bodies’ Jacobians, the motors’ ratios and the arm’s wiring are all in it; the flange from rigid::Chain::tip. MuJoCo is an independent implementation by other people: unlike the SciPy reference it can catch a wrong equation, not only a coding slip. Pinocchio, the first choice, has no wheel for Windows; MuJoCo has, and runs the same on Linux from the pinned requirements.txt. Run on 14 November 2026, the script reproduced the committed CSVs exactly. With one link’s mass (six-axis, link 3) or one inertia (palletiser, forearm iyy) changed by 1 % the tests fail by 6e-3 and 6e-4.
The arm on its track (arm-on-track.csv, added on 15 November 2026 at the end of the script’s list, so that the random states of the files before it stay theirs: run again, the script left the five earlier CSVs unchanged to the byte) has the track’s prismatic joint first in the chain: its force with the arm’s reaction along the rails and every arm joint’s torque with the track’s acceleration, the whole coupling between them, are compared with MuJoCo’s, through the rack’s ratio (motor radians per metre). Its worst relative error is that of the other arms.
The palletiser’s parallelogram is the config’s arm.joint_coupling (the URDF’s five joints as sums of the four motors’ joints, q_urdf = C q). MuJoCo works on the serial URDF chain at C q, C q̇, C q̈; the script takes its numbers to the motors’ joints, M = Cᵀ M_urdf C and τ = Cᵀ τ_urdf, as a mimic joint would. That map is written twice (here and in arm.rs), so it is checked as the T-gantry’s equations are: a slip, not a wrong idea.
What it does not cover: the motors’ rotors, the gearboxes’ inertia, efficiency, mesh friction and elasticity, friction, the drives, the payload (and its swing), bending links and the compliant base; the parallelogram’s bars as bodies of their own (the palletiser’s rod and crank, compared with them left out, as the URDF and the reference have them); the tool-space kinematics (tool::Pose, tool::Scara) beyond the flange’s pose.
Delta picker D3 (crates/machine-delta-d3/reference/, tests in tests/reference.rs). The rigid, loss-free model of the model reference, written again from the document (not from the Rust source) by another route: the arm angles and the platform’s position are the coordinates, every body’s energy is written out, SymPy differentiates the Lagrangian, and the legs’ constraints enter with Lagrange multipliers; the crate instead eliminates the platform through its Jacobian. The inverse kinematics is a root search on each leg’s constraint, the forward kinematics a Newton iteration. The rods’ spin is worked out from the frame of the pair’s plane (n′ · (e × n)), not from the document’s closed form.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
Motor torques of the rigid model (feedforward_torque_moving) at 60 random states in the working range (seed 2026; speeds and accelerations up to the axes’ 3 m/s and 50 m/s²), forearms lumped and as rods | The Lagrangian with multipliers (lagrange_reference.py, inverse_dynamics.csv) | 1e-8 of the state’s largest torque | delta_inverse_dynamics_matches_the_lagrangian, delta reference |
| x, y, z of the platform over an open-loop move of 0.5 s from (0.05, 0.02, −0.92) m: the reference’s holding torques, plus its push for (5, 3, −4) m/s² as a sin² pulse of 0.15 s and back at 0.25 s (travel 79, 48, 72 mm); forearms as rods (shipped), RK4 at the simulator’s step | The same Lagrangian integrated by SciPy’s DOP853 (rtol 1e-10), driven by the same torques (open_loop_move.csv, open_loop_torques.csv) | 0.2 % of the travel per axis, every ms | open_loop_move_matches_scipy, delta reference |
Both fail when one value of the config changes by 1 % (tried on 14 November 2026 with mass.forearm_pair_kg 0.5 → 0.505 kg and geometry.upper_arm_m 0.4 → 0.404 m: the torques differ at the first state; the move’s z first leaves the allowed 0.14 mm at 148 ms and at 60 ms). The open-loop move is driven by the reference’s torques, not the crate’s feedforward, so that a model wrong by a factor cannot push itself just as far. The document and the code agreed: no difference was found.
Effects: the Rust tests run the crate’s lossless_config with effects.joint_elasticity = false, i.e. off are the gearboxes’ and the arms’ elasticity (joint_elasticity, link_elasticity, arm_tube_inertia), every loss (joint_friction, motor_friction, gearbox_drag, gearbox_lost_motion, gearbox_efficiency, torque_ripple, holding_brake) and the base (base_compliance). Gravity and the payload are on, forearm_inertia both ways. The hard stops are on but every state stays inside the stop angles (the script asserts it); drive and controller take no part in given torques. The script asserts the switches it names are still in the config.
What the mass split costs (multibody_reference.py, MuJoCo 4.0.1; printed, not a test). A full multibody model: each upper arm a body on a hinge, the elbow block on it, each of the six forearms a rigid tube of half the pair’s mass with its true inertia (m L²/12 + I_axial/2 across, forearm_rod_spin_inertia_kgm2 along) on a ball joint at its elbow, the platform with the payload a free body, the rotors as armature. Its motor torques come from MuJoCo’s inverse dynamics of the open tree mapped onto the arms by virtual work. Over the 638 states (every ms) of the Adept cycle 25/305/25 mm of the default config, the S-curve at 3 m/s, 50 m/s², 2500 m/s³ without the dwells:
| Model | Largest motor-torque difference from the multibody model |
|---|---|
| The same pipeline with the lumped masses, against the Lagrangian (a check of the pipeline) | 5.0e-6 N m |
Forearms lumped, s = 2/3 at the elbow (Codourey/Olsson, effects.forearm_inertia = false) | 0.160 N m, 2.5 % of the cycle’s peak 6.44 N m; RMS motor 1 3.290 against 3.217 N m (+2.3 %), motors 2 and 3 1.933 against 1.900 N m (+1.7 %) |
Forearms as rods (effects.forearm_inertia = true, shipped) | 5.5e-5 N m (the tubes’ own cross-section, which the slender rods leave out) |
The payload does not change the difference (it sits at the platform in every model).
Planar delta D2 and linear delta: their inverse dynamics by the same route (reference/lagrange_reference.py in machine-delta-d2 and machine-delta-linear, tests in each crate’s tests/reference.rs), lumped forearms and rods as their models have them.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| D2: motor torques of the rigid model at 60 random states in the working range (seed 2026, up to the axes’ limits) | The Lagrangian in the arm angles and the plate’s (x, z) with multipliers | 1e-8 of the state’s largest torque | d2_inverse_dynamics_matches_the_lagrangian, D2 reference |
Linear delta: motor torques of the rigid model (effects.belt_stretch = false) at 30 random states with the columns upright and 30 leaning 10° inwards, with the pulley, the belt’s mass on it and the rotor | The Lagrangian in the carriages’ travels and the plate’s position with multipliers | 1e-8 of the state’s largest torque | linear_delta_inverse_dynamics_matches_the_lagrangian, linear delta reference |
Each fails with a mass or a length changed by 1 % (14 November 2026: mass.forearm_pair_kg, geometry.forearm_m on the D2; mass.rod_pair_kg, geometry.rod_m on the linear delta). Effects as on the D3 (each crate’s lossless_config, rigid; on the linear delta also no guide friction). Not covered: their open-loop motion, the elastic models, the belts and guides of the linear delta beyond the belt’s mass on the pulley.
What the D3 references do not cover: the elastic model (gearboxes, bending arms), friction and every other loss, the drives and the controller, the planner (the multibody script writes the cycle’s S-curve itself), the hard stops. Both references take the model’s assumptions about the real machine (the parallelogram’s rods turning with the pair’s plane, rigid rods and ball joints, the estimated masses), so like the T-gantry’s they catch coding and integration errors and, here, a wrong equation for the model as documented, not a wrong model of a real delta.
The closed loop of the drive, single axis
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Setpoint, position, speed, motor current, torque, torque command, voltage, speed command and following error (and in stage 4 the DC link voltage, the winding’s temperature and the braking resistor’s power) of the single axis over one point-to-point move, 0.100625 m to 0.4 m in 0.7 s, every fourth base step (2801 samples), in four stages | A second implementation of drive, controller, profile and mechanics in Python, written from this document’s model reference (structure of a step, drive and motor, motion controller, profile generator, single axis and its components), not from the Rust source; the mechanics and the winding between drive samples integrated with SciPy’s DOP853 (rtol 1e-10). Traces committed as stage1.csv to stage4.csv, each with the switches and values it ran with | 1e-8 of each signal’s peak in stages 1 and 2 (reached: 5e-10, the CSV’s digits); 2e-4 in stages 3 and 4 (reached: 7e-5 and 1.1e-4) | the_rigid_closed_loop_matches_the_python_reference, the_drive_with_delays_filters_feedforward_and_limits_matches_the_python_reference, the_drive_on_the_elastic_belt_axis_matches_the_python_reference, the_drive_with_winding_heating_and_dc_link_matches_the_python_reference (machine-single-axis/tests/reference.rs) |
The stages, each with every other effect off: (1) the rigid loss-free axis, position, velocity and current loop with the back-EMF; (2) plus the drive delays, velocity and torque filters, speed and torque feedforward with fine interpolation, torque saturation, the torque-speed curve, the drive’s current limit and the voltage limit, with the drive’s values lowered (0.5 A, 0.3 N m, a 90 V bus) so that each limit acts within the move; (3) plus the elastic belt (stretch, damping, slack, mass), the gearbox (backlash, stiffness, damping, efficiency), guide friction (LuGre), motor friction, torque ripple, cogging and tooth meshing; (4) plus the winding’s heating (started 80 K warm, with a 0.5 s time constant so that it moves) and the DC link with its braking chopper (a tenth of its capacitance, so that braking charges it to the threshold and the chopper burns).
Why the tolerances: the drive is discrete (cycle times, zero-order hold of the voltage), so both implementations take the same decisions at the same samples, and what is left is the integrators’ error between them. On the smooth rigid axis that is below the twelve digits of the CSV. In stage 3 the gearbox’s backlash puts a kink into the equations where the flanks meet; the simulator’s fixed RK4 step (15.6 µs) goes through it less exactly than an adaptive solver, and the difference peaks at 7e-5 of the peak torque where the torque reverses at the end of the braking ramp. Away from it, and with the backlash off, the two agree to 1e-8.
The check bites: the velocity gain 1 % higher fails all four stages (stage 3: 1.2e-3 of the peak torque command, 1.3e-2 of the peak following error), the velocity filter’s time constant 1 % longer fails stages 2 to 4.
Differences between the model reference and the code that it found (14 November 2026), each settled:
- The current loop’s expected back-EMF is saturated, k_e ω_f (1 − s min(1, (i / i_max)²)) at the winding’s current; the model reference said only “at its measured speed”. The code is right (the winding’s back-EMF falls with the torque constant); the reference is corrected.
- A winding started or enabled warm began with the current loop’s integrator, output and delay at the cold resistance’s R i: a voltage step of (R(ϑ) − R) i. The code was wrong and is fixed (
Drive::hold_current); stage 4 fails without the fix (6e-4 of the peak torque). - The drive started with the torque that holds the pose its motor encoder reads, not the pose the carriage stands at; with the backlash the two are 8.7 µm apart and the torques 5.3e-4 N m and 0.8e-4 N m. Resolved for a machine built at rest (15 November 2026,
Controller::newholds at the tool’s pose); the Python reference now starts with the torque that holds the carriage where it stands, and its stages 3 and 4 were made again (with the old reference they differed by up to 0.0054 of the peak, following error). Open:Command::Enablehas no machine state and still holds at the setpoint, the pose the encoders read. - At the start the DC link is at the bus voltage; the holding current’s ½ L i² is taken from it only at an Enable. Not stated before; the model reference now says so (whether the start’s ½ L i² belongs in the energy budget is left to it).
- With no torque at rest the gearbox’s twist is 0 (
static_twist), so at a pose where the tooth meshing is exactly zero the side its flanks rest on is left to rounding. The move therefore starts an eighth of a tooth pitch past a whole number of them.
What it does not cover: field weakening, iron loss, the drive’s overload, the motor’s thermal nodes, magnet temperature, the notch filter, encoder resolution and noise (encoder resolution matches too, until at standstill a count the two integrations put 1e-9 apart rounds the other way), precontrol balancing, the friction feedforward, the fieldbus delay and jitter, the load encoder, a regenerative supply, the shared DC link, gravity and payload, the gearbox’s lost motion, drag, mesh friction and stiffness curve, motor stiction, belt tooth stiffness and material damping, the hard stops and the brake, the stepper and the induction motor (motor.kind; the reference runs the servo, which they leave bit for bit as it was). Profiles other than the S-curve, and an S-curve that does not reach its cruise speed. And, as for the T-gantry, it is one reading of one document written twice: it catches places where code and document disagree and integration errors, not a wrong equation in both.
Hand calculations: mechanics
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Acceleration under constant torque, rigid model | Force over effective mass | 1e-9 | constant_torque_gives_force_over_effective_mass, axis and gantry |
| Holding torque of an inclined axis | m g sin · r / i | exact rigid; 0.1 % elastic | inclined_axis_needs_holding_torque, axis |
| Holding torques on Z | ± W_z r / (2i), W_z = (m_z + ρ (4s + 2s_z)) g = 7.16 kg · g with the belt’s vertical runs | exact rigid; 0.1 % elastic | static_hold_on_z_needs_opposite_torques, gantry |
A slide’s presliding friction (effects.slide_presliding): Dahl’s force from its anchor, held at rest, turned back, the Stribeck level; off, the smoothed step to the bit | g (1 − e^−1) = 94.8181 N; −59.9364 N; 118.394 N | 1e-4 N | a_presliding_friction_holds_at_rest_and_turns_over_its_travel, mech |
| The screw axis inclined by 5°, drive off: held by its presliding friction, crept with the smoothed step | −g / σ ln(1 − F / g) = 2.40 µm taken up, < 1 µm in the second half second (Dahl ratchets 10 µm more while the screw rings); 0.002 · atanh(21.37 / 89.47) = 0.487 mm/s | 1 µm; 0.03 mm | a_presliding_slide_holds_its_load_without_creeping, joint kit |
| Belt tension from stretch; damping on the stretch rate | EA · strain; c · rate | 1e-6 N; 1e-9 N | belt_tension_is_ea_strain_and_pretension_at_rest, belt_damping_acts_on_the_stretch_rate, mech |
| Belt forces | The gradient of the belt’s energy | 1e-3 N | belt_forces_are_the_gradient_of_its_energy, mech |
| Belt sections at rest and in a static hold (belt view) | Without gravity every section at the pretension 300 N, section 1 stretched by L · P / (EA + P) (0.4497 mm on 0.75 m, gantry; 0.1499 mm on 0.25 m, axis). Held: single axis at 30°, T₂ − T₁ = 6 kg · g · sin 30° = 29.42 N; T-gantry, 2 T₂ − T₁ − T₃ = (7 + 0.16) kg · g = 70.22 N (the Z axis and the belt’s vertical runs) and T₁ = T₃. The 3D view’s strips carry (T − P) / P of exactly these tensions | 1e-6 N; 1e-12 m; exact | belt_sections_have_the_pretension_at_rest_and_carry_the_weight_in_a_static_hold, views |
| Tooth stiffness in series | 1 / (1/k + 1/k_tooth) | 0.1 % | teeth_in_mesh_are_a_spring_in_series_with_the_section, mech |
| Material damping | Four times as hard for a section a quarter as long | 1e-9 N | material_damping_scales_with_the_section_stiffness, mech |
| Torque breakdown, pure inertia: rigid loss-free T-gantry without gravity, 0.1 N m on both motors | J α per motor with J = (0.02/5)² (11 + 2 · 1e-4/0.02²)/2 + 0.3e-4 = 1.22e-4 kg m² and α = 819.672 rad/s²: 0.1000 N m, all inertia; gravity, friction and rest 0. With 0.15 and 0.05 N m: the torques | 1e-12 N m | a_pure_inertia_move_is_all_inertia, gantry |
| Torque breakdown, vertical hold: T-gantry holding Z, single axis at 90° (elastic, controlled, ripple and meshing off) | Gravity part ± 7.16 · g · 0.02 / 10 = 0.140431 N m (the Z axis and the belt’s vertical runs) and 6 · g · 0.02 / 5 = 0.235360 N m; motor torque equal to it, the other parts below a fraction of it; copper loss R i² = 4 · (0.140431 / 0.45)² = 0.38955 W | 1e-12 N m; 0.2 % (mean over 50 ms; one step dithers 0.5 %); 0.2 % and 0.5 %; 0.2 % | holding_z_is_all_gravity, gantry; holding_the_vertical_axis_is_all_gravity, axis |
| Torque breakdown, constant speed: rigid T-gantry with guide friction alone, X at 0.8 m/s | Friction parts of both motors together r / i · (15 + 20 v) = 0.124 N m; the motor torques add up to it; the guide’s split 15 N Coulomb, 20 v viscous, 0 stiction | 1e-9 N m; 2 %; 1e-6 N | a_constant_speed_move_is_coulomb_plus_viscous_friction, gantry |
| Friction view’s curve | [λ F_c, b v, λ (F_s − F_c) e^(−(v/v_s)²)] · sign v by hand: 15, 10, 0 N at 0.5 m/s; 15, 0.2, 5/e = 1.83940 N at 0.01 m/s; −15, −0.1, −3.89400 N at −0.005 m/s; 30, 0.2, 3.67879 N with λ = 2; T-gantry Z guide −20, −3, 0 and 10, 0.075, 3.11520 N; single axis −15, −0.2, −1.83940 and 22.5, 20, 0 N | 1e-5 N | lugre_steady_curve_and_live_split_follow_the_formula, mech; the_friction_curves_are_the_formula, gantry; the_friction_curve_is_the_formula, axis |
| Live friction split | In steady sliding the curve’s parts; held at rest by 5 N of bristle force 3.75 N Coulomb and 1.25 N stiction (15 : 5); the parts add up to the friction force | 1e-5 N; 1e-9 N | the same test, mech |
| Loss powers | Belt damping 100 N s/m at 0.3 m/s: 9 W; gearbox 2 N m at 50 rad/s and 90 %: 10 W, driven back 11.11 W; gear damping 5 N m s/rad at 1 rad/s: 5 W; end stop 200 N s/m at 0.1 m/s: 2 W | 1e-9 W | loss_powers_are_the_hand_calculated_ones, mech |
| Belt natural frequency (carriage against pulley) | Two masses on a spring k from EA / L | 5 % | belt_natural_frequency_matches_hand_calculation, axis |
| The same with tooth stiffness | 1/k = L/EA + 1/k_tooth | 5 % | belt_natural_frequency_with_tooth_stiffness_matches_hand_calculation, axis |
| Elastic model with a very stiff belt | The rigid model | 1 % of the travel | stiff_belt_converges_to_the_rigid_reference, axis and gantry |
| Slack time of a belt at 20 N pretension | Between 0.5 s and 1 s of a 1 s move; none at 300 N | Range | a_slack_belt_section_is_counted_and_a_tight_one_is_not, axis |
| Breakaway force | The stiction level, 20 N | 2 % | breakaway_force_equals_the_stiction_level, axis |
| Steady sliding force | Coulomb + viscous · v | 0.1 % | steady_sliding_force_is_coulomb_plus_viscous, axis; lugre_steady_sliding_is_coulomb_plus_viscous, mech |
| Friction factor with guide load | (preload + load) / (preload + nominal) | 1e-12 | friction_grows_with_payload_when_load_dependent, axis; guide_friction_grows_with_acceleration_and_overhang, gantry |
| Lost motion on reversal | The configured backlash, 8.7e-4 rad | 1 % | lost_motion_on_reversal_equals_the_backlash, axis |
| Gearbox: dead zone, flanks that never pull, efficiency both ways | τη driving, τ/η driven | 1e-9 N m | gearbox_transmits_nothing_inside_the_backlash, gearbox_flanks_in_contact_never_pull, gearbox_efficiency_loses_torque_in_the_direction_of_power_flow, mech |
Friction feedforward from the machine’s model (drive.friction_feedforward_model = "machine"), single axis in its cruise at 1 m/s | Guide 15 N · 1.082012 (load scale with the 2 kg payload) + 20 N s/m · 1 m/s through 0.02 m / (5 · 0.95), shaft 0.02 + 1e-4 · 250: 0.197548 N m; the velocity integrator’s mean carries under 1 % of it (without the feedforward, all of it) | 1e-4 relative; 1 %; 2 % | the_machine_friction_feedforward_is_the_steady_friction_and_the_integrator_carries_nothing, axis |
| The same on every other machine crate | Screw axis 0.529807 N m at 0.8 m/s; parallel SCARA tool turn 0.878065 N m at 30 rad/s; flying saw 1.440917 N m at 1.2 m/s (its shipped characteristic 1.440936); T-gantry 0.114638 / 0.107704 N m at 0.8 m/s in X (the gearboxes’ loss on the Z axis’s weight in it); linear delta −0.267867 N m; D3 0.233030, D2 0.223461, H4 0.225393 N m going down at 0.5 m/s; D4 arms 0.138255 (the gearbox loss on the weight in it, 0.114165 without), tool 0.025778 N m; hexapod 0.254378 N m rising at 0.1 m/s; planar cable robot −0.0960803 / 0.0946509 N m hauling in and paying out; in the cruises the integrators carry under 1 to 3 % of it | 1e-4 relative (hand values), 1e-5 N m (hexapod), 1e-6 N m (cable); 1 to 3 % | the_machine_friction_feedforward_is_the_steady_friction_and_the_integrator_carries_nothing in each crate; the_flying_saw_s_machine_friction_feedforward_is_its_characteristic_and_the_integrator_carries_nothing; the_steady_friction_of_a_rising_platform_is_the_hand_calculated_one; the_planar_winches_steady_friction_at_the_centre_is_the_hand_calculated_one, the_planar_machine_friction_feedforward_takes_the_friction_off_the_integrators |
Friction feedforward against the model’s own steady state: the torques under which the rigid model’s derivatives give no acceleration at a steady speed (Newton, the Jacobian by differences) against the loss-free feedforward plus steady_friction | T-gantry at (0.5, 0.25) m, Z up and down at 0.5 m/s, η 0.95, no guide friction: ±0.147822 and ±0.133410 N m; D4 at z = −0.85 m down and up at 0.5 m/s with the tool turning, and sideways: arms −0.470195 and −0.753110 N m (the arms’ gearbox loss on the weight in steady_friction, as on the planar linkage) | 1e-9 N m (T-gantry); 5e-4 of the torque (D4: the loss on the velocity terms, which the feedforward leaves loss-free) | the_steady_friction_has_the_gearbox_loss_on_the_weight, gantry; the_friction_feedforward_takes_the_loss_on_the_weight, D4 |
| Gripper times | Vacuum: V/Q ln(p_v / (p_v − p_hold)) = 0.12 ln 4 = 0.166355 s to grip, V/Q_vent ln(p_v / p_release) = 0.03 ln 8 = 0.062383 s to let go, hold A p_hold = 42.4116 N; jaws as configured | 1e-12 s | the_vacuum_gripper_takes_the_hand_calculated_times_and_holds_area_times_pressure, gripper |
| Vacuum cup’s hold against a part accelerated sideways | Slips beyond a = μ (A Δp − m g) / m = 5.69958 m/s² (2 kg, μ 0.5): there the part asks exactly A Δp | 1e-9 N | the_part_asks_the_hold_exactly_at_the_hand_calculated_slip_acceleration, gripper |
| Gripper time on the single axis’s shuttle cycle | Jaws opening in 0.25 s and closing in 0.3 s against dwells of 0.1 s: the cycle 0.35 s longer, the payload let go 0.25 s after arrival; jaws of 0.05 s and the switch off change nothing | 1e-9 s; 1.5 ms; exact | the_gripper_time_lengthens_the_dwells_and_moves_the_payload_switch_by_hand, axis |
gripper-hold on the rigid single axis at 10 m/s² | m g + m a / μ = 59.6133 N (seen 61.86 N: the servo’s overshoot); passes a 70 N cup, fails a 55 N one; the optimiser stops where a 63 N cup still holds, short of where it goes with the hold not judged | 5 % | the_gripper_hold_judges_the_held_part_against_the_cup_and_the_optimiser_keeps_to_it, axis |
Gearbox mesh friction (effects.gearbox_mesh_friction): each way, rated point and part load, holding and breaking away, ring-down, energy | Ratio 10, K1 1e4 N m/rad, η 0.8: 100 N m passed gives 80 N m driving and takes 120 N m driven back (1 / (2 − η) = 0.833); with T0 = 0.1 N m and η 0.9 at 50 N m the teeth’s 0.916497, 0.9 at 50 N m and 0.774527 at 5 N m; a 100 N m weight held stands until 125 N m lifting and 83.33 N m lowering (within 3 N m, the bristle’s give 2.5e-5 rad); a ring around zero load keeps (1 − μ) / (1 + μ) = 0.666667 a cycle with a stiff bristle (5 %), 7/9 = 0.777778 with the shipped one (1e-4), its loss power integrating to the energy gone (1 %); every machine with a gearbox closes its cycle’s budget with it on (0.1 %), the T-gantry too (4e-6; off in its config as on the other belt machines); a gear at the bristle’s cap on a light drum (0.32 kg at 3.2e8 N/m) stays bounded and closes its energy to 1e-6 of its loss | as stated | the_mesh_friction_passes_the_teeth_efficiency_each_way, mesh_friction_and_drag_give_the_catalogue_efficiency_and_less_at_part_load, a_held_gear_stands_inside_its_friction_band_and_breaks_away_at_its_ends, a_ring_around_zero_load_decays_by_the_hand_calculated_damping, the_shipped_bristle_rings_down_by_its_hand_calculated_ratio, a_gear_at_the_bristle_cap_of_a_light_drum_stays_stable_and_closes_its_energy (sim-components); the_energy_budget_closes_with_the_mesh_friction_on_every_gearbox (sim-machines) |
An arm’s joints’ modes with the motors held (Machine::modes, resonance_hz) | Two joints on 100 and 50 N m/rad, M = [[2, 0.5], [0.5, 1]] kg m²: det(K − λM) = 1.75 λ² − 200 λ + 5000 = 0, 0.967314 and 1.399712 Hz; uncoupled √(k / J) / 2π = 1.125395 Hz and the damping c / (2 √(k J)) = 0.070711; the palletiser’s turret at full reach 5.95 Hz held, its measured ring 5.30 Hz, and the velocity loop’s dynamic stiffness Kp (1 + 1/(jω Tn)) (Kv + jω) − ω² J in series with the gear 5.36 Hz | 1e-6 Hz; the loop’s estimate within 2 % of the ring (1.0 %) | held_joint_modes_are_the_hand_solved_eigenvalues (sim-components), the_palletisers_turret_rings_at_its_held_mode_softened_by_the_velocity_loop (machine-joint-kit) |
| Leaning Z axis at two heights: restoring acceleration and tool-tip offset | Two masses on k = 1 / (1/k_lat + h²/k_tilt), the carriage with the belt’s runs it moves, 4 + 0.8 (0.65 − z) kg (6.96 m/s² at z = 0.05 m for u = 0.1 mm) | 1e-6 relative; 1e-12 m | leaning_z_axis_matches_the_two_mass_hand_calculation, gantry |
| Resonance the machine reports at two heights (the lowest mode that moves the tool; frame off) | 24.344 Hz and 34.590 Hz at x = 0.9 m, z = 0.05 and 0.15 m; by hand two masses in a row (carriage with the belt’s runs on the belt, Z axis on its guide) 24.62 and 35.52 Hz, which the X-Z coupling at x = 0.9 m lowers | 0.005 Hz; 1 Hz | a_shaper_that_follows_the_height_leaves_about_a_tenth_at_both_heights, gantry |
| Modes of the carriage, the frame and the Z axis on the belt | Generalised eigenvalues by hand at x = 0.5 m, z = 0.25 m without the lean, in (x on the frame, frame): M = [[11.32, 11.16], [11.16, 41.42]] kg (11 kg, the belt’s runs 0.32 kg on x, the whole belt’s 0.42 kg swaying and its 1.6 m of vertical runs coupling), K = diag(k_b, 7.4e5), k_b = 2 × 5e5 / l with l = 1.05 / (1 + 282.838 / 5e5) the unstretched belt: 20.60 and 55.64 Hz; without the frame 46.18 Hz | 1e-3 Hz | the_modes_are_the_generalised_eigenvalues_of_the_carriage_the_frame_and_the_z_axis, gantry |
| Modes against the model’s own linearised equations (pulleys held, loss-free, backlash off) at (0.9, 0.05), (0.5, 0.25), (0.5, 0.05), (0.1, 0.45) | K = −M J from the derivatives’ accelerations per unit of x, z, q, u: each mode’s K v = ω² M v. 18.748 / 30.684 / 76.046 / 116.303 Hz; 20.531 / 53.225 / 83.047 / 201.018; 18.689 / 30.623 / 84.595 / 92.683; 19.888 / 39.813 / 82.117 / 103.463. Without the belt’s mass 18.809 / 30.786 / 78.517 / 119.468 Hz and so on (the audit’s 18.81 / 30.77 / 78.51 / 119.46 had no pendulum stiffness of the Z axis’s weight). Both from an independent reference, crates/machine-t-gantry/reference/modes_reference.py | 1e-6 of ω² M v; 1e-5 Hz | the_modes_are_those_of_the_linearised_derivatives_with_the_pulleys_held, gantry |
| T-gantry loss-free, rigid, rigid with idlers and chain, elastic (frame, lean), elastic with idlers, chain, tooth stiffness, Z bending and beam sag, two moving states each | The motors’ power Σ τ ω is the rate of the energy along the derivatives (the belt’s kinetic energy summed run by run); the rigid feedforward at speed gives back (3, −2) m/s² | 1e-7 of the power (measured at most 8.8e-9); 1e-9 m/s² | the_motors_power_is_the_rate_of_the_energy_in_every_loss_free_configuration, the_feedforward_at_speed_gives_the_commanded_acceleration, gantry |
| The second shaper following the pose | The first shaper takes the lowest mode that moves the tool where the plan stands, the second the next one: with the default frame at x = 0.9 m 18.7481 and 30.6839 Hz at z = 0.05 m, 20.1208 and 41.5342 Hz at 0.15 m; not following, 25 and 100 Hz as configured | 1e-3 Hz | the_second_shaper_follows_the_second_mode_at_each_pose, gantry |
| Single axis: its carriage mode at two places, and the wrap | sqrt(k / m) / (2π), k = EA / l of the unstretched belt: 65.8222 Hz at x = 0.5 m, 96.6813 Hz at 0.1 m; damping 0.040299 and 0.027436; π at the motor pulley | 1e-3 Hz; 1e-5; 1e-12 | the_carriage_mode_is_the_hand_calculated_one_at_two_places, axis |
Modes over the stroke (sim-cli modes), single axis at x = 0, 0.5, 1 m | 122.2412, 65.8222, 57.3870 Hz; damping 0.021700, 0.040299, 0.046223 (k = EA / l of the unstretched belt; 0.03 % above EA / L of the stretched length) | 0.1 % | modes_write_the_resonances_over_the_stroke, cli |
| Idlers: added mass and drag in X and Z | 12 and 4 idler masses; 6 and 4 friction forces | 1e-9 rigid; 1e-6 elastic | idlers_add_the_hand_calculated_mass_and_drag, gantry |
| Cable chain at two positions | Mass 0.175 kg and 0.375 kg; drag and pick-up force | 1e-9 | cable_chain_adds_the_hand_calculated_force_at_two_positions, gantry |
| Process force: change of the holding torques | −0.06 N m and +0.02 N m | 2 % of 0.06 N m | process_force_changes_the_holding_torque_by_the_hand_calculated_amount, gantry |
| Depth in a hard stop | Force / stiffness: 25 µm and 50 µm | 1 % | a_carriage_pushed_into_the_hard_stop_rests_at_the_hand_calculated_depth, axis and gantry |
| Holding brakes: a brake of 0.15 N m holds Z; one of 0.12 N m lets it fall; in the elastic and in the rigid model | Holds within 0.1 mm; falls 96 mm in 0.5 s | 3 % | holding_brakes_hold_the_z_axis_when_they_are_strong_enough, gantry |
| Single axis, cable chain: extra force to accelerate at 8 m/s² at x = 0.1 m and 0.9 m; coasting at 0.5 m/s; holding torque on a 30° incline | 1.4 N and 3.0 N; (3 + 0.25 · 0.5² / 2) N over the moved mass, rigid and elastic; 0.175 kg and 0.375 kg · g / 2 more to hold | 1e-9; 1e-6 m/s²; 1e-12 and 2e-6 N m | cable_chain_adds_the_hand_calculated_force_at_two_positions, axis |
| Single axis, process force of 10 N during a dwell | Holding torque 0.04 N m lower | 2 % | process_force_changes_the_holding_torque_by_the_hand_calculated_amount, axis |
| Single axis set upright, holding brake: 0.26 N m holds 6 kg; 0.2 N m lets it fall; in the elastic and in the rigid model | Holds within 0.1 mm; falls 136 mm in 0.5 s (136.4 mm simulated) | 3 % | the_holding_brake_holds_the_upright_axis_when_it_is_strong_enough, axis |
| Torque at the gearbox output with an efficiency of 0.9, lifting and lowering at a steady speed | The load’s torque both ways: 0.7845 N m (axis, rigid), 1.1768 N m (axis, elastic, lowering), ±0.6865 N m (gantry, rigid, and elastic at rest); the motor torque times the ratio reads 1/0.9 or 0.9 of it | 1e-9 N m rigid; 1 % and 0.1 % elastic | the_gearbox_verdicts_judge_the_torque_at_the_gearbox_output, axis; gearbox_torque_is_the_load_at_the_pulleys_whichever_way_it_is_driven, gantry |
| Friction with stiff bristles on a light contact at speed (1e6 N/m, 12 N, 2.5 m/s) | Stable at the simulator’s step; sliding takes 12 N + 20 N s/m · 2.5 m/s = 62 N | 1e-6 N | lugre_with_stiff_bristles_at_speed_stays_stable_and_slides_at_its_level, mech |
| Radial load on the pulley shaft | Sum of both section tensions: 570.58 N (vertical axis), 593.46 N (gantry) | 0.02 N | radial_load_on_the_pulley_shaft_is_the_sum_of_both_section_tensions, axis; guide_loads_and_shaft_loads_match_the_hand_calculation, gantry |
| Guide loads under acceleration | X guide 203.5 N, Z guide 118.6 N | 0.01 N | guide_loads_and_shaft_loads_match_the_hand_calculation, gantry |
| Temperature feedback laws at fixed temperatures (B 4000 K, 20 °C reference) | Viscosity factor 0.281749 at +30 K, 4.73776 at −10 °C; gearbox of 95 % with half its loss viscous: 0.967956 and 0.856556; belt at 40 °C: 0.994 of EA | 1e-6 | the_temperature_laws_follow_their_formulas, mech |
| Temperature feedback in the machines at a rise of 30 K | Guide viscous friction 0.281749 of the configured, Coulomb unchanged, the hand-set [temperature] factor not used; gearbox loss in a cruise 0.64088 of the cold one | 1e-5 N; 1 % | with_thermal_feedback_friction_and_gearbox_loss_follow_the_temperature, belt_and_heat |
| A guide at 1 m/s with the feedback settles where its loss and heat flow balance (R 2 K/W) | rise = 2 (λ F_c + b ν(rise)/ν_ref v) v: 40.18 K (72.46 K without the feedback) | 1 % | a_guide_settles_where_its_loss_and_heat_flow_balance, belt_and_heat |
| Warm start, single axis winding rated 0.5 A (copper 0.39 %/K) | Settled at q / (1 − 0.0039 q), q = 100 / 1.39 · (0.4463 / 0.5)² = 57.32 K: 73.82 K; copper loss of the measured pass 4 Ω · (1 + 0.0039 · 73.82) · 0.4463² = 1.0261 W (cold: 0.7967 W) | 0.2 % against R(rise) I²; 0.5 % against 1.0261 W | a_winding_started_warm_loses_the_hand_calculated_copper_power_at_its_settled_rise, belt_and_heat |
| Warm start, single axis guide with the feedback on its shipped cycle | Settles at 10.03 K (12.51 K from cold); viscous friction at 0.5 m/s 10 N · ν(10.03 K)/ν_ref = 6.3673 N | 0.05 K; 1 % | a_guide_started_warm_has_the_hand_calculated_friction_at_its_settled_rise, belt_and_heat |
| Warm start on the default T-gantry, windings alone and with the feedback | Converges (within 0.1 K) in at most 4 warm passes (1 and 2 measured) | – | the_warm_start_converges_on_the_default_t_gantry_within_its_pass_limit, belt_and_heat |
| Tooth climb-out and jump logic | Climb at a pull above 6 × the slack side; ridge 600 N at a quarter pitch, 0.954930 J at its top; one pitch on and counted, or back uncounted; momentum shared at landing, 0.793651 m/s | 1e-6 | a_tooth_jump_starts_at_the_climb_limit_and_ends_one_pitch_on, mech |
| Tooth jump threshold, single axis upright holding at x = 0.1 m | W = 6 P / (1 + 6 L₂ / (L₁ + L₂)) = 280.24 N: no jump at 98 %, a jump at 102 %, the first one exactly one pitch (−5 mm) | 2 % either side; exact | the_belt_teeth_jump_at_the_hand_calculated_pull, belt_and_heat |
| The wrap angle, and the tooth load it gives | π less the lean of both spans: π for level spans, π/2 + asin(0.04) = 1.610807 rad for one straight up; climb = k φ = 2.4 π = 7.539822; 2 rad on r = 20 mm, p = 5 mm: 8 teeth, tooth load 0.205610 | 1e-6; 1e-5 relative | the_wrap_angle_is_half_a_turn_less_the_lean_of_both_spans, mech; the_tooth_load_counts_the_teeth_in_mesh_from_the_wrap, analysis |
| T-gantry: the wrap at both motor pulleys at x = 0.1 m and 0.9 m, and the climb-out that follows | The spans to the carriage idlers leave level: π on both; at T₂ = 8 T₁ the teeth jump with the configured 10 teeth (limit 6) and hold with the wrap (limit 7.54) | 1e-12 | the_belt_wraps_both_motor_pulleys_by_half_a_turn_and_the_teeth_climb_out_at_k_pi, gantry |
| Tooth jump threshold with the wrap, single axis as above | c = 2.4 π: W = 289.44 N; no jump at 98 % (where the configured teeth let go at 280.24 N), a jump at 102 % | 2 % either side; exact | with_the_wrap_the_belt_teeth_jump_at_the_pull_of_half_a_turn, belt_and_heat |
| Jumping teeth in a cycle (single axis, 90 N pretension) | belt-tooth-jump fails; the jumps’ energy closes the budget | 0.5 % of the supply (measured 0.33 %, falling with the step) | jumping_teeth_fail_the_check_and_close_the_energy_budget, belt_and_heat |
| Belt span as a string | f1 = sqrt(T/μ) / (2 L): 109.545, 21.066, 26.082 Hz at 300 N, 0.1 kg/m; T-gantry span 1 at its start pose; a cruise at 200 Hz of tooth mesh on a 200 Hz span fails belt-span-resonance | 1e-3 Hz | a_span_vibrates_as_a_string_and_is_judged_against_the_excitations, mech; a_span_vibrates_at_its_string_frequency_and_a_cruise_on_resonance_fails, belt_and_heat |
Two-way base (effects.base_reaction): a slider of 4 kg on a spring of 2e5 N/m to a base of 200 kg on 8e5 N/m, the drive off, started in either mode shape | The two-mass system’s closed-form modes, 10.057 Hz and 35.981 Hz, the slider at 1.0868 and −45.09 times the base | 1e-6 of the amplitude over 0.2 s | a_slider_on_a_spring_on_a_coupled_base_swings_in_the_two_mass_modes, base |
| Two-way base free along x, z and in tilt about y (springs at zero), an arm swung on it by a torque pulse, no outside force | Momentum M_B d’ + p and I_B θ’ + L stay zero | 1e-9 of the arm’s own | a_free_coupled_base_and_the_machine_on_it_keep_their_momentum, base |
| Two-way base under an arm in gravity (x, z and a soft tilt), and under the H4 (shipped base plus tilts about x and y): losses off, then the shipped damping | The energy is conserved (the suite’s energy_conservation; one-way the H4 drifts by 4.5 %), the loss budget closes with power.base and the base in energy.* | 0.1 % of what the pulse put in; LOSS_BUDGET_TOLERANCE | a_coupled_base_keeps_the_energy_and_closes_the_loss_budget, base; on_a_coupled_base_the_four_arm_delta_keeps_its_energy_and_budget, H4 |
T-gantry: frame_compliance off and a two-way base along X of the frame’s 30 kg plus carriage, Z axis, payload and belt (41.42 kg), the frame’s 7.4e5 N/m and damping ratio 0.01716 | The frame mode (effects.frame_compliance): the same equations, the belt’s runs in the base’s momentum as in the frame’s mass matrix; a move from (0.1, 0.35) to (0.9, 0.05) | 1e-9 of the sway’s 0.149 mm (measured 5.1e-15 m) | a_coupled_base_along_x_moves_as_the_frame_mode, T-gantry |
Hand calculations: drive
All in drive unless noted.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Current step response | 63.2 % after the tuned time constant of 0.25 ms; no overshoot | 0.05 A of 1 A; peak below 1.01 | current_follows_its_setpoint_with_the_tuned_time_constant |
| Drive current limit (effects.drive_current_limit): 5 A on a 0.45 N m/A motor of 3.8 N m; 10.9 A | Torque range ±2.25 N m, integrator held, current setpoint 5 A; ±3.8 N m (the motor’s) | exact | the_drive_current_limit_holds_the_torque_to_the_lower_of_motor_and_drive |
| Field weakening (effects.field_weakening): 0.45 N m/A, 190 V, 9.5 A, 4 pole pairs, L_d = L_q = 10 mH, R → 0, at 500 rad/s | The circles cross at i_d = −50625 / 9000 = −5.625 A, i_q = sqrt(9.5² − 5.625²) = 7.6557 A: 3.4451 N m (the fading curve: 0); the current loop settles there with sqrt(u_q² + u_d²) = 190 V, power = copper loss + shaft power | 1e-3 N m, 1e-3 A, 0.1 V | field_weakening_gives_the_hand_calculated_torque_above_the_voltage_limit |
| d-q model on the 1FK7042-2AF7 at 600 V (R, L, k_E, pole pairs from its Siemens data sheet) | The rated 2.6 N m at 2.0 A and 3000 r/min inside the curve and without d current; torque left at n_max,inv 670.2 rad/s, where the fading curve ends at 538.9 rad/s; best d current at 942.5 rad/s → −ψ / L_d = −3.247 A. Siemens’ torque-speed curves are graphs, not in the catalogue files: no curve points are compared | 6 % (rated torque); 1 % (d current) | the_d_q_model_holds_the_published_points_of_a_1fk7 |
| Drive overload (effects.drive_overload): 3 A rated, 2.6 A base load, 9 A for 0.25 s, τ 10 s; a step to 6 A from cold | Trip 9 − 8 e^(−0.025) = 1.19752; clamps to 2.6 A after −10 s · ln(1 − 1.19752 / 4) = 3.558 s; the image back at 1 after −10 s · ln(0.2489 / 0.4464) = 5.842 s more | 2 ms; 3 ms (a velocity cycle’s overshoot of the trip) | a_step_at_twice_the_rated_current_clamps_after_the_hand_calculated_time |
| Image peak of a repeated cycle (τ 10 s): 1.5 I_rated held; 2 I_rated for 0.5 s of 1 s | 2.25; x₀ = 4 (1 − e) e / (1 − e²) = 1.95001, peak x₀ e + 4 (1 − e) = 2.04999 (e = e^(−0.05)) | 1e-9; 1e-4 | the_overload_image_of_a_repeated_cycle_peaks_at_the_hand_calculated_level |
| Three thermal nodes (effects.motor_thermal_nodes): s = 0.25, τ_w = 60 s, τ_th = 1800 s, a loss the one node settles at 100 K | Eigenvalues −7.36204e-4 and −1.934927e-2 1/s: winding 100 − 81.5696 e^(λ₁t) − 18.4304 e^(λ₂t), 16.18 K at 60 s, 78.32 K at 1800 s; settled 100 K (P · (R_w + R_h)) and housing 75 K | 1e-3 K | three_thermal_nodes_settle_at_the_sum_of_the_resistances_and_step_as_by_hand |
| Single axis held at a 0.5 A drive (rigid, payload off, 15 N Coulomb friction) | a = (0.45 · 0.5 · 5 / 0.02 − 15) / 6.125 = 6.7347 m/s²; with the motor’s 0.18 N m below it, (45 − 15) / 6.125 = 4.8980 m/s² (6.733 and 4.894 simulated); the shipped cycle at 70 % of its peak current fails drive-peak-current and lags further | 1 % | a_move_held_at_the_drive_current_limit_accelerates_at_the_hand_calculated_rate, axis |
| Voltage at speed; current at the voltage limit of the winding (190 V) | R i + k_e ω = 49 V; (U − k_e ω) / R = 2.5 A | 1e-3 V; 1e-6 A | back_emf_costs_voltage_and_the_bus_limits_torque_at_speed |
| Current for the maximum torque with saturation (1FK2205-4AF: 18 N m at 15.1 A) | The maximum current and that torque; the inverse of the curve at five currents; the top of a curve that turns down | 1e-6 A, 1e-6 N m; 1e-9 A | the_maximum_torque_takes_the_maximum_current |
| Voltage and power at the maximum current and 100 rad/s with saturation | R i + (18 / 15.1) · 100 = 179.6 V; copper loss 912 W plus shaft power 1800 W | 1e-3 V; 1e-2 W | under_saturation_the_electrical_power_is_copper_loss_plus_shaft_power |
| Every motor and supply row of the S210 catalogue at its rated speed | Back-EMF (static torque constant × rated speed) below sqrt(3/2) × DC link voltage; five rows are above the DC link voltage itself | All 100-odd rows | every_catalogue_motor_reaches_its_rated_point_inside_the_voltage_limit, catalog |
| Current loop with computation delay | Stability limit by hand at 5.8 cycles: stable with 4, unstable with 7 | Either side of the limit | computation_delay_makes_the_current_loop_unstable_at_the_calculated_limit |
| Speed noise from encoder noise of two counts | 0.1356 rad/s unfiltered, 0.0509 rad/s filtered | 2 % | speed_from_a_noisy_encoder_has_the_hand_calculated_rms |
| Winding temperature at the rated current | 100 K in the end; 51.3 K after one time constant; 19.34 K at half the current | 0.2 K; 0.5 K; 0.05 K | the_winding_warms_to_the_rated_rise_at_the_rated_current |
| Torque at the maximum current | The lower torque constant | 1e-12 | saturation_takes_torque_at_high_current_only |
| DC link voltage after 4.1 J of braking into 470 µF, from 190 V | 231.40 V; held at 250 V with the resistor burning 6.096 J; a 20 W resistor trips between 0.32 s and 0.34 s; the winding then gets sqrt(3/2) × 231.40 V | 0.01 V; 1e-3 J | braking_energy_raises_the_dc_link_by_the_hand_calculated_voltage |
| DC link over a cycle of the single axis, from 155.13 V | 2.983 J per braking to 191.7 V; resistor mean power with 4.7 µF; a 5 W resistor trips at 257.6 V | 0.01 J; 0.1 V; 1 % | the_dc_link_takes_braking_energy_the_resistor_the_rest_and_too_small_a_resistor_trips, axis |
| Regenerative supply: a motor feeding back 41 W for 0.1 s at 190 V; the line module limited to 20 W; a motor drawing 49 W | 4.018 J into the mains and 0.082 J lost (efficiency 0.98), the link held at 190 V, nothing burned; limited: 1.96 J into the mains and the other 21 W charge 470 µF to sqrt(2 · 10.5835 J / 470 µF) = 212.217 V; drawing: 4.9 J from the line | 1e-9 J; 1e-3 V | a_regenerative_supply_feeds_back_into_the_mains_up_to_its_power, drive |
| Regenerative supply on every config of both machines (as the energy budget below, but without DC link) | Fed back into the mains = 0.98 × what the motors regenerated, line module loss the rest, drawn = what the motors drew (per motor exactly; the budget, one step shorter, to one step at the line module’s peak power); no resistor; a shared link feeds back less; the budget closes | 1e-9 relative; one step; 0.1 % and 1e-6 | the_regenerative_supply_feeds_back_what_the_motors_regenerate, effects |
| Line module checks with the regenerative supply, every machine | line-module-continuous = line module energy / cycle time against 16 kW, line-module-peak = its peak against 35 kW; neither without the effect; a 1 W rating fails | exact | the_line_module_is_judged_against_its_ratings, electrical |
| A disabled winding, 40 K at the start, thermal time constant 0.5 s, every machine | 40 / e = 14.715 K after 0.5 s, 40 / e² = 5.413 K after 1 s; kept on Enable; without winding heating it stays | 0.1 % | a_disabled_winding_cools_by_the_exponential, electrical |
| A disabled drive’s DC link at 220 V, R C = 0.2 s, every machine, own and shared links | 220 V · exp(−0.25) = 171.336 V after 0.05 s; above the bus level at 69 ms, at it (155.13 V) from 70.5 ms (by hand 69.9 ms); a regenerative supply takes 160 V to the bus level in one step | 1e-3 V | a_disabled_drives_dc_link_discharges_by_the_rc_exponential, electrical |
| Disable mid-move and Enable, every machine, own and shared links, link at bus + 20 V, no bleeder | Windings’ ½ L i² plus capacitors’ ½ C U² the same before Disable, after the first disabled step (the winding’s energy is in the link) and after Enable (the holding current’s energy taken from the link) | 1e-9 relative | disable_and_enable_conserve_the_electrical_energy, electrical |
| Two drives, one braking 41 W and one drawing 23.5 W for 0.1 s, 470 µF each, from 190 V | Separate links: 231.40 V and 190 V. Shared: sqrt(2 · (16.967 + 1.75) J / 940 µF) = 199.56 V; with the chopper at 195 V the one resistor burns 0.845 J; one trip for both; links joined at 231.40 V and 190 V settle at 211.72 V | 0.01 V; 0.002 J | a_shared_dc_link_rises_by_the_net_energy_of_its_drives, drive |
| Shared DC link over the default cycle of a machine with two drives | The same voltage and resistor power on every drive at every step; highest voltage no higher than with separate links (224.06 V against 224.65 V on the gantry) | Exact | a_shared_dc_link_is_one_voltage_for_all_drives_of_a_machine, control |
| Notch filter | Removes its centre frequency, passes the rest | Gain below 0.01 at 60 Hz; within 2 % of 1 at 5 Hz and 600 Hz | notch_removes_its_centre_frequency_and_passes_the_rest |
| Position loop, velocity loop, torque limit, encoder steps, delay of one velocity cycle | Their defining formulas | 1e-12 | position_loop_is_kv_times_following_error_plus_feedforward, velocity_loop_is_pi_with_torque_feedforward, torque_limit_follows_the_torque_speed_curve, encoder_resolution_quantises_position_and_speed, the_torque_setpoint_acts_one_velocity_cycle_late |
| Fine interpolation, friction feedforward, balancing | pos 1 rad, 10 rad/s, 100 rad/s² after 3 ms: 1.03045 rad, Kv part 1.5225 rad/s; characteristic (10, 0.2), (100, 0.3): 0.1, −0.25, 0.3 N m at 5, −55, 200 rad/s; PT1 1 ms: 1 − e⁻¹, 1 − e⁻² | 1e-9 | fine_interpolation_runs_the_setpoint_on_between_profile_cycles, the_friction_feedforward_is_the_characteristic_at_the_speed_setpoint, balancing_lags_the_position_setpoint_by_its_time_constant, drive |
| Constant-inertia feedforward, load-side encoder, one encoder sample, single axis | J = 9.8e-5 + 4.16e-6 (belt) + 3.2e-5 (payload) kg m², torque_ff = J · 250 · a; following error = setpoint − 250 · round(x / 0.1 mm) · 0.1 mm; position loop’s measured position = the encoder’s reading with noise | 1e-9 | the_constant_inertia_feedforward_is_j_times_the_motor_acceleration, a_load_side_encoder_measures_the_following_error_at_the_load, both_loops_read_one_encoder_sample_per_step, control |
| 4 ms profile cycle on the single axis; D3 motor acceleration in a cruise | Peak torque within 5 % of the 1 ms one with fine interpolation, above 1.5x held; the motor acceleration setpoint equals the speed setpoints’ central difference | 5 %, 1 % | a_long_profile_cycle_with_fine_interpolation_keeps_the_peak_torque, the_motor_acceleration_setpoint_has_the_speed_term_of_the_kinematics, control |
Stepper (motor.kind = "stepper"), in stepper: N = 50, k_t = k_E = 0.5 N m/A, R = 1 Ω, L = 2.5 mH, 2 A on 24 V, integrated with a rigid inertia as Sim::step integrates.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Holding torque; a load of 0.99 of it, brought on slowly | k_t I = 1 N m at a load angle of 90°; the rotor at asin(0.99) electrical behind its setpoint, 0.02858 rad, the current at 2 A | 1e-12; 2e-3 rad electrical, 1e-4 rad | the_holding_torque_is_kt_times_the_rated_current |
| Small-angle resonance, J = 1e-4 kg m², after one microstep | sqrt(N T_hold / J) / 2π = 112.54 Hz | 1 % | the_rotor_rings_at_the_hand_calculated_resonance |
| Corner speeds | Unloaded current: sqrt(24² − 2²) / (50 · 2.5e-3 · 2 + 0.5) = 31.89 rad/s, the current at 0.9 of it ≥ 0.99 I, at 1.3 of it < 0.95 I; torque: (R I + k_E ω)² + (N ω L I)² = 24², 39.70 rad/s, the pull-out torque 1 N m below, < 0.98 N m at 1.1 times | 0.01 rad/s; 1e-12 N m | the_current_falls_short_above_the_hand_calculated_corner_speed |
| A load of 1.3 T_hold for 30 ms, detent 0.05 N m | The rotor settles a whole number of electrical turns behind: lost full steps a multiple of four, at least four | 1 % of four steps | a_load_above_the_holding_torque_slips_by_whole_multiples_of_four_full_steps |
| Jerk-limited ramps on 0.01 kg m² to 20 rad/s and to 55 rad/s | 80 % of the pull-out torque keeps in step, 110 % falls out (load angle past π); at 55 rad/s the pull-out torque 0.793 N m by hand (the voltage disc’s centre (−0.570, 3.917) A, radius 3.454 A on the 2 A circle: Re I = 1.586 A) | 1e-3 N m | a_ramp_beyond_the_pull_out_torque_stalls_and_one_at_80_percent_does_not |
The stepper belt axis (machines/stepper-axis.toml), its cycle; with a 25 kg payload | Every check passes, load angle 0.42 rad, 44 % of the pull-out curve, no motor-s1; 26 kg · 5 m/s² · 0.016 m = 2.08 N m over the holding 1.11 N m: stepper-synchronism fails above π; the energy budget closes | 1e-6 (electrical), 1e-3 | the_stepper_axis_runs_its_cycle_in_step_and_a_heavy_payload_makes_it_lose_steps, motor_kinds |
Induction motor (motor.kind = "induction"), in induction: four poles, 400 V, 50 Hz, 1440 rpm, R_s = 4.5 Ω, R_r = 3.5 Ω, L_m = 0.45 H, both leakages 0.02 H, 600 V DC link.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Synchronous speed, rated slip; torque at the rated slip | 1500 rpm, 4 %; about the rated 9.95 N m | 1e-12; 1 N m (round numbers, not fitted) | synchronous_speed_and_rated_slip_come_from_the_name_plate |
| Torque-slip curve with R_s = 0 at s = 0.02, s_b and 0.6; breakdown with R_s | Kloss, T_b = 3/2 p U_th² / (2 ω (X_th + X_σr)) = 37.96 N m at s_b = R_r / (X_th + X_σr) = 0.2846; the Thevenin form with R_th = 4.121 Ω, X_th = 6.141 Ω, U_th = 312.55 V: 27.10 N m, the curve’s top over slips 0.20 to 0.28 | 0.2 %; 0.01 N m, 0.5 % | the_torque_slip_curve_is_kloss_and_the_breakdown_is_the_equivalent_circuits |
| Starting current, rotor held, rated voltage and frequency | Z = (7.7071 + j 12.388) Ω: 326.60 / 14.590 = 22.385 A amplitude, 15.83 A RMS | 0.2 % | the_starting_current_is_the_equivalent_circuits |
| V/f, a 5 N m load step at 50 Hz, J = 0.05 kg m² | Slip T = 3/2 p ψ_r² ω_slip / R_r: 2.947 rad/s at the shaft (ψ_r = 0.995 Wb unloaded); compensated less than 0.4 rad/s | 6 %; 0.4 rad/s | under_v_f_a_load_step_costs_the_hand_calculated_slip |
| Field-oriented flux build-up from no flux | L_r / R_r = 134.3 ms: 63.2 % at one, 95.0 % at three | 0.01 | the_rotor_flux_builds_with_l_r_over_r_r |
| Field-oriented torque step of 5 N m, rotor held | 63.2 % after the current loop’s T = σ L_s / Kp = 0.5 ms; 5 N m held | 0.05; 0.2 % | under_field_orientation_a_torque_step_answers_with_the_current_loops_time_constant |
The induction lift (machines/induction-lift.toml) field-oriented; flat on V/f | Every check passes, no motor-s1; on V/f the motor checks pass and the carriage stops 2 to 20 mm off its targets (open loop); the energy budgets close | 1e-6 (electrical), 1e-3 | the_induction_lift_runs_its_cycle_field_oriented, the_induction_axis_runs_its_cycle_on_v_f, motor_kinds |
Thermal model of gearboxes and guides (effects.part_heating), in views: |
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| A guide at constant speed: its rise one time constant after starting from cold | R_th · P · (1 − 1/e), P the guide’s loss power | 1 % | a_guide_at_constant_speed_warms_to_resistance_times_its_loss, views |
| The same guide twelve time constants later | R_th · (λ F_c + b v) · v by hand from the config, 2 K/W (about 51 K on the T-gantry at 0.8 m/s, about 72 K on the single axis at 1 m/s) | 1 % | the same test |
| The 3D colour of a motor housing and a heated part | Rise over rated rise: 25 K of 100 K is 0.25, half the rated rise 0.5 | exact | the_scene_colours_warm_parts_by_their_rise_over_the_rating, views |
The winding’s own model (settles at the rated rise at the rated current, 51.3 K after one time constant from cold, 19.34 K at half the current) is the_winding_warms_to_the_rated_rise_at_the_rated_current, drive.
Stops and brake delays
On the rigid, loss-free single axis (ideal_rigid: 6.125 kg reflected, 4 kg carriage, r = 0.02 m, i = 5), stopped from 1 m/s (machine-single-axis). Each was seen to fail with its piece taken out: the OFF3 ramp (braking at the torque limit instead), category 2’s braking plan, the brake delay.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Category 1 on an OFF3 ramp of 0.2512 s from 314 rad/s (5 m/s² at the carriage) | v² / (2 a) = 0.1 m, v / a = 0.2 s; peak deceleration over 1 ms above 5 m/s² (the speed loop overshoots the ramp’s start: 6.0) | 3 %; peak below 6.5 | the_stops_travel_the_hand_calculated_distance_in_the_hand_calculated_time |
| Category 2 at the axis’ 10 m/s² | 0.05 m; the plan in 0.1 s, the tool below 1 mm/s within 0.12 s (the position loop’s lag) | 3 %; 20 % on the time; peak below 15 | same |
| Category 0, 10 N guide friction (Coulomb = stiction), 0.2 N m brake (50 N), 0.03 s engagement delay | v t − F t² / (2 m) + m v₁² / (2 (F + F_b)) = 0.075435 m; without the delay 0.051042 m | 1 % | a_category_0_stop_coasts_the_hand_calculated_distance_with_the_brake_delay |
| A hanging axis (upright) taken off in category 0, 0.03 s engagement delay, 10 N friction | (39.227 − 10) N / 6.125 kg · 0.03² / 2 = 2.1473 mm before the brake holds, after 480 steps; none without the delay | 2 % | a_hanging_axis_sags_by_hand_while_its_brake_engages |
| The DC link in a category 1 stop | 3.0625 J less 0.0593 J copper loss: 470 µF from 155.13 to 191.95 V; with 4.7 µF the resistor takes 2.9412 J | 0.3 V; 2 % | a_category_1_stop_brings_the_hand_calculated_energy_to_the_dc_link |
The stop analysis (sim-cli stop, stop::study) reports a worst stop with finite figures on every registered machine in categories 0, 1 and 2 (the_stop_study_reports_the_worst_stop_on_every_machine, sim-machines, category 1; the command line a_run_can_stop_the_machine_and_stop_finds_the_worst_moment). Nothing compares its distances with a real machine’s stop: no measured stopping distance is in the repository.
Hand calculations: control, profiles and paths
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Following error at constant speed, no feedforward, every machine | v / Kv | 1 % | following_error_at_constant_speed_is_v_over_kv, control |
| The same with velocity feedforward | Zero; half with a factor of 0.5 | 2 % of v / Kv | velocity_feedforward_removes_the_following_error, control |
| Step response and bandwidth of the position loop | First-order lag with 1 / Kv: 63.2 % after 1 / Kv; bandwidth Kv / 2π; −45° there | 0.05; 10 %; 10° | step_and_frequency_response_show_the_position_loop_gain, axis |
profile.cycle_s changed to 2 ms and to 0.5 ms while an axis moves, with and without input shaping, every machine | The setpoint of an untouched run, within three cycles of travel; no step above one cycle’s travel | As stated | changing_the_profile_cycle_on_the_way_does_not_move_the_setpoint, control |
| Dwell and gripper with input shaping, every machine | They start with the shaped setpoint on the target | 1 µm | with_input_shaping_a_dwell_starts_when_the_setpoint_has_arrived, control |
| Rigid and elastic model exchanged at cruise speed, every machine | Tool position and speed carried over; torque below half the limit; the tool stays with its setpoint | 1e-12; 0.2 mm | switching_the_model_at_speed_carries_the_motion_over, control |
| A cycle of one segment | One pass lasts the dwell | 2.1 ms | a_cycle_of_one_segment_is_analysed, control |
| A move with a fieldbus delay of three cycles | The undelayed move 3 ms later; 3.00 mm behind at 1 m/s | 1e-12 m; 1 % | a_fieldbus_delay_shifts_the_move_by_its_cycles, axis |
| Fieldbus jitter of N cycles at 250 rad/s (1 m/s), over the ~600 cycles of a cruise | Frames 0 to N cycles late, the newest arrived used: P(more than i late) = prod (N − k)/(N + 1); setpoint RMS 0.25 rad · sqrt(E[c²]) = 0.1768 rad (N = 1), 0.2887 rad (N = 2); shares 1/2, 1/2 and 1/3, 4/9, 2/9; switched on with 0 cycles the same setpoints as off | 5 %; 0.05; exact | a_fieldbus_jitter_spreads_the_setpoints_by_the_hand_calculated_rms, axis |
| A second ZVD shaper, modes at 25 and 62 Hz (undamped shapers) | Residual cos²(π f / (2 f_s)): shaper at 25 Hz leaves 0 and 0.5314, at 62 Hz 0.6503 and 0; both together under a tenth of each (measured 0.0000 and 0.0001) | 0.01 (0.03 at 62 Hz), 0.02; 0.1 | a_second_shaper_suppresses_a_second_resonance_by_the_zvd_formula, axis |
| Open-loop response of the velocity loop, rigid loss-free axis | |L| = Kp |1 + 1/(jωTn)| |1 + Kv e^(−jω 0.5 ms)/(jω)| / (J ω |1 + jωT|), J = 9.8e-5 kg m², T = 0.25 ms: 0.3973 at 100 Hz, 0.1898 at 200 Hz (measured 0.3976, 0.1914); twice the gain takes 6.02 dB off the gain margin | 2 %; 0.1 dB | the_velocity_loop_response_is_the_hand_calculated_loop, axis |
| Margins read off an integrator with dead time, L = (ωc / jω) e^(−jωτ), 100 Hz, 1 ms | Phase margin 90° − 360° fc τ = 54°; gain margin 20 log 2.5 = 7.959 dB at 250 Hz | 0.1°; 0.01 dB | margins_of_an_integrator_with_dead_time_are_the_hand_calculated_ones, analysis |
| The same loop stable and unstable, 10 Hz to 2 kHz | Phase margin 90° − 360° fc τ, gain margin −20 log (4 fc τ), signed: 100 Hz, 0.5 ms 72°, 13.979 dB; 200 Hz, 0.5 ms 54°, 7.959 dB; 300 Hz, 1 ms −18°, −1.584 dB; 400 Hz, 1 ms −54°, −4.082 dB; a point without a measurement makes them invalid and NaN | 0.1°; 0.01 dB | margins_are_signed_and_say_an_unstable_loop_is_unstable, analysis |
| A conditionally stable loop, L = K (1 + s/a)² / (s (1 + s/b)² (1 + s/c)), a, b, c = 2π · 300, 30, 3000 Hz, K = 3e5, 6.1e5, 1.2e6, 60 points 10 Hz to 2 kHz | Stable (closed-loop poles’ largest real parts −977, −1355, −1459 1/s): the fall through −180° beyond −1 is undone by the rise; phase margins 30.7°, 41.6°, 42.4° at 589, 1002, 1710 Hz, gain margin infinite (it read −53.7, −59.8, −65.7 dB and unstable) | 0.3°; 1 % | a_conditionally_stable_loop_is_stable, analysis |
| A type-0 lead loop with a positive phase at the first point, L = 3 (1 + s/ω5) / ((1 + s/ω50) (1 + s/ω200) (1 + s/ω400)) | Phase margin 24.0° at 1516 Hz by hand (it read −336.0°), stable, gain margin infinite | 0.2°; 1 % | a_lead_with_positive_phase_at_the_first_point_keeps_its_phase_margin, analysis |
| A loop whose first crossover rises out of an anti-resonance with a phase lead, L = (2π · 9.7 / s) (1 + 0.1 s/ωz + s²/ωz²) / (1 + 0.1 s/ωp + s²/ωp²) e^(−s · 1 ms), ωz, ωp = 2π · 14, 40 Hz, 60 points 10 Hz to 2 kHz (the parallel SCARA’s arm 2 as measured) | First crossover 22.5 Hz at +71.4° (a margin of 251.4°); phase margin 58.1° at 94.3 Hz, by hand from the formula on a fine grid (it read 58.1° − 360°: the phase had been turned at the first crossover) | 0.5°; 2 % | a_crossover_with_phase_lead_before_the_one_that_counts_does_not_turn_the_phase, analysis |
| Single axis with a velocity gain of 0.3 N m s/rad (twelve times the shipped one) | Not stable (the loop runs into its torque limit; the shipped gain is stable); sim-cli margins says FAIL, on every machine at that gain | exact | an_unstable_velocity_loop_is_reported_unstable, axis; step_bode_and_tuning_write_csv_for_every_machine, cli |
| S-curve: velocity, acceleration, jerk in every regime | Their limits | 1e-9 relative | velocity_acceleration_and_jerk_stay_within_limits, profile |
| Duration of a long move | 4 t_j + 2 t_a + cruise by hand | 1e-12 s | long_moves_use_the_limits_fully, profile |
| Synchronised axes | Finish together, on a straight line, each within its limits | 1e-12 | synchronised_axes_finish_together_within_their_limits, profile |
| Blended cycles of every machine | Axis speed and acceleration within their limits | 1e-9 relative | blended_default_cycles_stay_within_the_axis_limits, control |
| Planned path (line, arc, line): rates of both axes by differences | The axis limits; every pose on the path | 0.1 %; 1e-12 m | a_planned_path_stays_within_the_axis_limits_and_on_its_pieces, path |
| Speed on the arc and into it | 0.4 m/s; 0.0707 m/s by hand | 1e-3 m/s | the same test |
| The same path with transition curves, tolerance 0.1 mm and 1 mm: deviation, length of the curves and speed on them | e = L² / (24 r): 0.1 mm with L = sqrt(24 e r) = 15.49 mm and (0.4 j r L)^(1/3) = 0.3957 m/s; 0.1067 mm with L = v³ / (0.4 j r) = 16 mm at 0.4 m/s | 0.2 %; 0.5 %; 2 mm/s | transition_curves_let_the_path_enter_an_arc_at_speed, path |
| The same: rates of both axes by differences; every pose against the given line, arc and line; duration | The axis limits; within the reported deviation and reaching it; 1.590 s against 1.828 s | 0.1 %; 1 nm; below 0.9 | the same test |
| Two arcs between two lines, turning opposite ways and the same way, tolerance 0.1 mm | No step in position, direction or curvature at any junction; the axis limits; ends on the target; 1.539 s against 1.847 s and 1.481 s against 1.824 s | 1e-11 m, 1e-9, 1e-7 1/m; 0.1 % | transition_curves_join_two_arcs, path |
| A wide arc (0.25 m) into a tight one (1.72 mm, 1 rad) with a tolerance of 1 mm, which allows curves longer than the tight arc can take | The planned path turns as far as the given one, 1.35 rad (it turned a whole circle more) | 1e-9 rad | curves_too_long_for_a_tight_arc_do_not_add_a_turn, path |
| Two arcs on one circle (0.05 m) that turn 4 rad and π + 0.05 rad, between two lines, tolerance 0.1 mm | The planned path as long as the given one, 0.05 + 0.05 (4 + π + 0.05) + 0.1 = 0.5096 m (it was 0.1953 m: a whole turn lost), but for what the curves may change, and turning as far | 1e-9 m; curves’ length plus deviation times angle; 1e-6 rad | two_arcs_on_one_circle_keep_their_whole_turn, path |
| 400 random paths of tangent lines and arcs (radius 2 mm to 0.2 m, 0.05 to 6 rad either way, half the arcs continuing on the circle before), tolerance 0.01, 0.1 and 1 mm | Length as given but for the curves’ lengths and the moved arcs’ deviation times angle; turning as given | As stated; 1e-6 rad | blended_random_paths_keep_their_length_and_turning, path |
| The time-optimal plan and its deviation with a torque reserve of 0.1 %, every machine | Both refused alike (error-path-torque where a motor holds the load against gravity) | Exact | the_time_optimal_deviation_refuses_what_the_plan_refuses, control |
| A spline that swings out of the range, and a line, a clockwise arc out of the range and a line with 0.1 mm of tolerance, both planners | Plan and deviation both refused with error-path-range (the deviation was reported, then the plan refused) | Exact | path_error_on_a_circle_matches_the_hand_calculation, gantry |
| A line into a quarter arc of 0.1 m that ends the path, and the same with a corner after the arc, tolerance 0.1 mm | The arc’s end fixed: circle shrunk and moved by s = e / (1 − cos 90°) = e, so L = sqrt(24 e r) = 15.49 mm and 0.3957 m/s into the arc (0.0707 m/s without); the arc ends exactly on (0.6, 0.25) in its direction; every pose within the reported 0.1 mm; the axis limits | 0.5 %; 2 mm/s; 1e-12 m; 1 nm; 0.1 % | an_arc_at_an_end_or_a_corner_gets_its_transition_curve, path |
| A line, a quarter arc of 0.1 m and a line in a plane tilted by 30° about x, three axes (3 m/s, 50 m/s², 2500 m/s³), tolerance 0.1 mm; then on into a 0.05 m arc in the plane x = 0.1 | Needed v³ dk / (0.4 j) = 2³ · 10 / 1000 = 80 mm, allowed L = sqrt(24 e r) = 15.49 mm, so e = L² / (24 r) = 0.1 mm and the arc’s radius 99.9 mm; every pose in the tilted plane; no step in position, direction or curvature; every pose within the reported deviation; 0.353 s against 0.418 s; with the second arc all four junctions blended (the line between the planes shared out) | 5e-3 relative (curves), 1e-12 m (plane) | transition_curves_on_three_axes_lie_in_the_plane_of_the_arc, path |
A right-angled corner between two lines, profile.corner_tolerance_m = 1 mm | d = 16 e / 3 = 5.333 mm, the curve’s middle 3 d / 16 = 1 mm off each line, radius there sqrt(2) d / 3 = 2.514 mm; lines cut back by d; no stop at the corner | 1e-12; 1e-9 m | a_right_angled_corner_is_rounded_within_the_tolerance_at_the_hand_calculated_radius, path |
| A quarter arc of 0.1 m on four axes, the fourth carried 0 -> 1 | Length sqrt((0.05 pi)^2 + 1) = 1.01226; at a share w of it the arc at w pi / 2 and the fourth axis at w | 1e-12 | a_four_axis_arc_keeps_its_fourth_axis_linear_in_the_arc_length, path |
| Two tangent arcs of 0.2 and 0.1 m radius, the second slow only at its far end, time-optimal | Junction at sqrt(0.5 j T / dk) = sqrt(0.5 * 100 * 0.001 / 5) = 0.1 m/s, not at the 0.05 m/s of the slowest place | 1e-12 | the_junction_of_two_arcs_is_passed_at_the_hand_calculated_speed, path |
| A line into a line whose speed limit falls from 1 to 0.3 m/s, time-optimal | Joined on the speed curve: quicker than on a cruise at the slowest place | Comparison | a_path_without_the_forced_cruise_is_quicker_than_with_it, path |
Single axis, profile.cycle_timing = "time_optimal", first segment 0.1 -> 0.9 m with 0.8 * 0.5 N m | 0.8 / v + v / a + a / j = 0.71970 s (a = 16.327 m/s^2, v = 0.99 · 1.256 = 1.2434 m/s, j = 1e5 m/s^3), quicker than the S-curve within the axis limits | 2.5 ms | a_time_optimal_cycle_segment_takes_the_hand_calculated_time, single axis |
| Single axis, time-optimal line, gearbox efficiency 0.9 | 0.0075 + 0.017 / 0.9 = 0.026389 N m per m/s^2 accelerating (15.158 m/s^2) and 0.0075 + 0.017 * 0.9 = 0.0228 braking (17.544 m/s^2): 0.71999 s | 1e-3 relative; 1.5 ms | a_lossy_gearbox_lowers_the_time_optimal_acceleration_by_its_loss, single axis |
The same tilted path on the delta, both planners, profile.path_tolerance_m = 0.1 mm | Reported 0.1 mm = L² / (24 r) within the axis limits; every pose within it of the given path; 0.551 s against 0.616 s, time-optimal 0.474 s (0.516 s before 16 November) against 23.6 s as given (0.578 s before; the given line at z = −0.9 m crawls where the D3’s inverse kinematics gives motor 2 at 0 at x = −0.15 m exactly, an open fault of spatial::Legs::inverse_moved) | 1e-9 relative; 0.1 µm | a_path_in_a_tilted_plane_gets_its_transition_curves, delta-d3 |
| A line, a quarter arc of 0.1 m, a line, a quarter arc of 20 mm, a line, tolerance 1 mm: one length per arc | Wide arc at 0.4 m/s: L = 0.4³ · 10 / (0.4 · 100) = 16 mm (15.99 fitted); tight arc at (0.4 j r²)^(1/3) = 0.252 m/s: L = 0.016 · 50 / 40 = 20 mm (19.67 fitted: e = L² / (24 r) is the first term, and the curve turns 0.5 rad); reported 0.02² / 0.48 = 0.833 mm (one length for the path made both 20 mm) | 5e-3 and 2e-2 relative; 2e-3 | each_arc_gets_the_curve_its_own_junctions_need, path |
| An arc fixed at the path’s start that hands over to an arc (an S and the same way) and a line, tolerance 0.1 mm | Both junctions blended, the first arc leaves the start along +x, no steps, every pose within the reported deviation (≤ 0.1 mm), faster | 1e-12 | an_arc_fixed_at_one_end_gets_its_curve_towards_an_arc, path |
| A line into a 270° arc of 0.1 m that ends the path, tolerance 0.1 mm | s ≤ tolerance / 2 = 0.05 mm, e = s (1 − cos 270°) = 0.05 mm, L = sqrt(24 e r) = 10.95 mm, reported 2 s = 0.1 mm; the arc ends on (0.4, 0.25) heading +y | 5e-3 relative; 1e-12 | an_arc_fixed_at_one_end_that_turns_three_quarters_gets_its_curve, path |
| A line into one spline span ending without curvature, curvature 3 dz / h² = 10 1/m at the junction, tolerance 0.1 mm | Eased over l = sqrt(e / (0.01728 dk)) = 24.06 mm, moved by 0.1 mm; junction speed cbrt(0.4 j / (1.05 (9 dk / l + d0 × 6 c3))) = cbrt(40 / (1.05 · 3635.2)) = 0.2189 m/s (measured 0.2188), 0.0707 m/s without; every pose within the reported 0.1 mm of the spline as given (and above 0.09 mm); the axis limits | 10 nm; 1 %; 0.1 um sampling; 0.1 % | a_spline_eased_into_a_line_is_entered_at_the_hand_calculated_speed, path |
| Four spline paths (between lines, alone, between arcs, a tight S) with a tolerance of 0.1 mm | No step in position, direction or curvature at any junction; reported deviation at most 0.1 mm, zero for the spline alone; every pose within it of the path as given; the axis limits; via points passed; faster where eased (2.129 s against 2.251 s, 2.415 s against 2.701 s, 2.093 s against 2.184 s) | 1e-11 m, 1e-9, 1e-6 1/m; 0.1 um; 0.1 % | a_spline_passes_through_its_via_points_within_the_axis_limits, path |
| A line that ends on the end of a stroke | Every pose within the range, the last one the given point (it ended 2.8e-17 m beyond) | Exact | a_path_onto_the_end_of_a_stroke_stays_within_the_range, path |
| Both planners on the path with transition curves | Every pose within the reported 0.1 mm of the given path, and reaching it | 10 µm (the start pose) | both_planners_time_the_path_with_its_transition_curves, gantry |
| Path error and distance behind the setpoint on a circle at constant speed, no feedforward | R (1 − gain) and R (ω / Kv) gain, with gain = 1 / sqrt(1 + (ω / Kv)²) | 10 % | path_error_on_a_circle_matches_the_hand_calculation, a_circle_timed_by_the_planner_gives_the_hand_calculated_path_error, gantry |
| Time-optimal line, jerk limit 1e5 m/s³ and 100 m/s³ | Distance / v + v / a + a / j = 0.720 s; distance / v + 2 sqrt(v / j) = 0.866 s (v = 1.2434 m/s, the rated speed less the 1 % kept back), with the acceleration peaking at sqrt(v j) = 11.2 m/s² | 1.5 ms; 0.5 % | a_time_optimal_line_takes_the_hand_calculated_time, axis |
| Belt tension as a limit of the time-optimal plan: default T-gantry, line along X from x = 0.7 to 0.95 at 300 m/s³, 400 N allowed | Rigid tensions T = P + d_i with Σ (T_i − P) L_i = 0 (by hand at x = 0.9, 10 m/s²); acceleration 0.5 · (400 − 31 − 284.12) / 6.679 = 6.355 m/s² at the far end (share 0.5, margin 31 N, the weight on Z 7.16 kg), 7.05 m/s² at x = 0.7 where it accelerates: the plan takes the bound at each pose (none above it, one within 0.5 %); rigid tension within 1 % of the 326.7 N the plan allows; the full model passes belt-tension; without the limit 19.3 m/s² fails it | 1e-9 N; 0.2 % / 0.5 %; 1 % | the_time_optimal_plan_keeps_the_belt_within_its_tension_limit, gantry |
| The belt’s ratings on the full model, time-optimal at 40 m/s², 2000 m/s³, 2 m/s: three lines, rated 340 to 1500 N, and a five-line path at 400 N; 330 N at the default limits | Both ratings kept (highest ≤ rating, slackest > 0 N), or refused (error-path-tension) where the holding tension leaves no room (330 and 340 N); with share 0.8 and no margin 331.4 N on 330 N | exact | the_full_model_keeps_the_belt_ratings_on_a_time_optimal_plan_at_high_jerk, gantry |
| A cycle segment with via points | Runs up, through the via point and down without a stop, arrives on its target before the dwell; a via point outside the stroke is refused by name | 1e-9 m | a_cycle_segment_runs_its_path_through_via_points, gantry |
| Time-optimal line-arc-line: torque of the rigid model, motor speed and axis jerk at every planned pose, by differences | Within the torque reserve, the rated speed and the jerk limits; one of them used to 97 % or more at over 60 % of the poses (65 %: jerk 58 %, speed 10 %; with a 0.6 N m motor and 2000 m/s³ 75 %: torque 33 %, speed 38 %, jerk 5 %); 1.397 s (1.395 s before 16 November) against 1.828 s within the axis limits (1.429 s with one limit per piece) | 0.1 %; below 0.8 | the_time_optimal_plan_is_shorter_keeps_a_limit_active_and_stays_on_the_torque_speed_curve, gantry |
| The same plan on the full model | Utilisation below 0.6 (0.18); speed below 1.03 × rated; path error below 1 mm | As stated | the same test |
| Limits that change within a piece: default T-gantry, line along X from x = 0.1 to 0.9 at 300 m/s³, belt rated 400 N | The belt allows 16.205 / max(2.6 − x, 1.6 + x) m/s² at x (by hand; 16.137 before the belt’s vertical runs weighed on Z); one limit per piece takes 6.482 m/s² all along, 0.8583 s at the speed the plan keeps (0.8531 s at 1.2559 m/s and 6.455 m/s² before); point by point 6.455 to 6.73 m/s² along the ramp, 1.0 to 2.5 ms shorter (0.8517 s), no pose above its bound, one within 0.5 %, the sections’ rigid change of tension within 1 % of the 42.26 N allowed, torque, speed and jerk within their limits; following the limit (14 November) faster than the plan of 13 November (0.851565 s against 0.851693 s; on a 125 µs profile cycle it ends before 0.851693 s); since the belt’s own mass (16 November) 0.857 s against 0.8576 s with one limit per piece | 0.2 %; 0.1 % | the_time_optimal_plan_takes_the_belt_limit_where_it_is_along_a_line, gantry |
| Limits that change within a piece on the delta: a line across the range, (0.5, 0, −0.85) to (−0.5, 0, −0.85) | The rated speed allows the tool 7.270 m/s where the motors turn fastest per tool speed (the line’s end) and 13.31 m/s where slowest (inverse kinematics at 801 places); the plan goes above 1.1 times the slowest place’s speed (8.1 m/s), keeps torque (with the speed’s centripetal and Coriolis torque), motor speed and axis jerk within their limits, and takes under 0.419 s against 0.4290 s with one limit per piece (gearboxes’ M2max lifted); with M2max 192 N m each gearbox’s output torque, ratio · (motor torque − 2.106e-4 kg m² · the motor’s angular acceleration), within 0.8 · 192 N m and up to it, and the line takes longer (0.434 s) | 1e-3 m/s; 0.1 % | the_time_optimal_plan_takes_the_motor_limits_where_they_are_along_a_line, delta |
| The drive’s maximum current as a limit of the time-optimal plan: rigid single axis, 30° incline, 2 A on a 0.45 N m/A motor (3.8 N m peak), 1e5 m/s³ | a = (0.8 · 0.9 N m · 5 / 0.02 m ∓ 19.613 N) / 6.125 kg = 26.186 m/s² up, 32.590 m/s² down; 0.8 / v + (v / a1 + a1 / j) / 2 + (v / a2 + a2 / j) / 2 = 0.68649 s at v = 1.2434 m/s, with effects.drive_current_limit and without it (the verdict judges the rating either way); with the rating lifted the motor’s (0.8 · 3.8 · 250 − 19.613) / 6.125 | 1.5 ms; 0.1 % | the_drive_current_limits_the_time_optimal_acceleration_to_the_hand_calculated_one, axis |
| The gearbox’s M2max and the pulley’s torque rating as limits of the time-optimal plan: rigid single axis, 1e5 m/s³ | The output drives carriage and pulley, 0.085 N m per m/s² (the motor’s 0.0245 less the rotor’s 0.0075, times 5): a = 0.8 · 10 / 0.085 = 94.118 m/s² at M2max 10 N m, 0.8 · 8 / 0.085 = 75.294 m/s² with the pulley rated 8 N m, both ways; 0.8 / v + v / a + a / j | 1.5 ms; 0.1 % | a_gearbox_or_pulley_rating_that_binds_limits_the_time_optimal_acceleration, axis |
| A short time-optimal line, rest to rest: rigid single axis, 0.05 m, 0.8 · 0.5 N m, 1e5 m/s³ | T = τ + sqrt(τ² + 4 s / a), τ = a / j, a = 16.327 m/s² (the bang-bang 2 sqrt(s / a) = 0.11068 s with no jerk limit): 0.11084 s, peaking at 0.902 m/s | 1.5 ms; 1 % | a_short_time_optimal_line_takes_the_hand_calculated_bang_bang_time, axis |
| A hanging axis, time-optimal up and down: the single axis upright, 0.8 · 0.5 N m | Speeding up at (100 − 39.227) / 6.125 = 9.922 m/s², braking at (100 + 39.227) / 6.125 = 22.731 m/s² on the way up (swapped on the way down): the speed follows min(sqrt(2 a d), 1.2434 m/s) at 0.05 m from the start, in the middle and 0.02 m before the end, both ways | 0.5 % | on_a_hanging_axis_the_time_optimal_speed_follows_the_hand_calculated_limit_curve, axis |
| The braking resistor’s peak power as a limit of the time-optimal plan: 50 W on the rigid single axis | Braking at no more than P / (m v) = 50 / (6.125 v): 6.565 m/s² at 1.2434 m/s; at 1.2, 1.0 and 0.8 m/s within 5 % below (the speed levels) and 1 % above; speeding up at the motor’s 16.327 m/s² | 5 % / 1 %; 0.1 % | the_braking_resistor_bounds_the_time_optimal_deceleration, axis |
| The gearbox’s maximum input speed as a limit of the time-optimal plan: 2000 r/min on the single axis | Top speed 0.99 · 2000 · π / 30 · 0.02 / 5 = 0.82938 m/s | 0.1 % | the_gearbox_input_speed_caps_the_time_optimal_top_speed, axis |
profile.time_optimal_margin 0.9 on the single axis | Top speed and acceleration 0.9 of 1.2434 m/s and 16.327 m/s², 0.8 / v + v / a + a / j | 1.5 ms; 0.1 % | the_time_optimal_margin_plans_at_its_share_of_the_limits, axis |
| A screw’s speed rating as a limit of the time-optimal plan: the 1.6 m screw of the screw axis | Whirling at 1250 r/min on the 20 mm lead: top speed 0.99 · 1250 / 60 · 0.02 = 0.41250 m/s | 0.1 % | the_time_optimal_plan_keeps_the_screws_speed_rating, joint kit |
| A rack’s feed force as a limit of the time-optimal plan: rated 500 N, service factor 1.25 | 0.8 · 400 N / 80 kg = 4 m/s² | 0.2 % | the_time_optimal_plan_keeps_the_racks_feed_force, joint kit |
| Every machine’s cycle timed time-optimal, run with the shipped config | Every verdict the plan keeps passes (“motor-peak”, “motor-speed”, “drive-peak-current”, “gearbox-peak”, “pulley-torque”, “gearbox-input-speed”, “guide-load”, “belt-tension”, “belt-least-tension”, “braking-resistor-peak”, the machine’s own checks with a rigid value); where “motor-thermal” fails (linear motor axis, flying saw, parallel SCARA, four-arm delta), with the winding at its starting temperature | exact | time_optimal::machine_NN, sim-machines |
| The guides’ load rating as a limit of the time-optimal plan: default T-gantry, line along X at z = 0.35 m, rated 150 N | X guide 11 kg · 9.80665 + 5.833 kg · a_x, Z guide 12.833 kg · a_x (guide_loads); a = (150 − 107.87) / 5.833 = 7.222 m/s², 0.8 / 1.2559 + 1.2559 / 7.222 + 7.222 / 100 = 0.8831 s; no pose’s load above 150 N; torque, speed and jerk within their limits | 0.2 %; 1.5 ms; 0.05 % | the_guide_load_rating_limits_the_time_optimal_acceleration, gantry |
The speed curve a piece follows (path::smoothed): places at 1 m/s and one at 0.5 m/s, 10 m/s², 10 mm apart | x = v² rises 0.25, 0.43, 0.61, 0.79, 0.97, 1 m²/s² from the slow place (0.18 per place = 2 · 0.01 · 0.9 · 10); at 50 m/s³ also x’’ within ± 2 · 0.5 · 50 · 0.01² / v, never above a top or below the slow place | 1e-12; 1e-4 | the_speed_curve_comes_down_to_a_slow_place_within_its_acceleration_and_jerk, path |
| A piece under a speed curve that falls faster than the jerk can follow (tops 4 to 2 m/s over 0.4 m, 50 m/s², 20 m/s³), rest to rest | The jerk alone bounds it: four phases of T = (d / 2j)^(1/3) = 0.215443 s, 0.861774 s in all, 0.928 m/s at most. Before 15 November the run stayed at rest under the falling curve and the piece was refused as a crawl (a turn about z alone of the hexapod and the platform on cranks: a_turn_about_one_rotary_axis_alone_is_timed_on_every_machine, time_optimal) | 2 ms; 5 mm/s | a_piece_under_a_steeply_falling_speed_curve_takes_the_hand_calculated_time, path |
| A turn about one axis (no turn to (0.075, 0.075, 0.1) rad, and on along that axis) | Turns about one axis add: the rotation vector runs along the straight line at the line’s rate, with no second derivative (by differences it had 2e-8 rad/m² of rounding, and the time-optimal plan gave the piece 0.4 of its axes’ jerk); a turn that changes its axis still bends | 1e-15 | a_turn_about_one_axis_does_not_bend_its_rotation_vector, path |
| Time-optimal line, quarter turn of 5 mm radius, line, with a path tolerance of 0, 0.1 mm and 1 mm | The same three limits at every planned pose; ends on the end point; utilisation on the full model below 1 (0.18; it was 10.5) | 0.1 %; 1 nm | a_time_optimal_plan_through_a_tight_arc_stays_within_torque_speed_and_jerk, gantry |
| 200 random paths of two to five tangent lines, arcs and splines (radius 2 mm to 300 mm, pieces 1 mm to 400 mm, splines of one to three via points turning by up to 0.6 rad each), half with a tolerance, half with a 0.6 N m motor and 2000 m/s³ | The same three limits at every planned pose (most used: torque 1 − 2e-4, speed 1 + 3e-5, jerk 1 + 1e-8; the longest plan 1.368 s (1.47 s before 16 November), 1.73 s with one limit per piece); ends on the end point | 0.1 %; 1 nm | time_optimal_plans_of_random_paths_stay_within_torque_speed_and_jerk, gantry |
| A single spline piece between two points at rest | The straight line between them, the distance along it exact | 1e-12 m; 1e-14 m | a_spline_passes_through_its_via_points_within_the_axis_limits, path |
| Four spline paths (between two lines; alone; out of an arc into an arc; an S of via points 20 mm apart): geometry | Every via point is the end of a span; no step in position or direction anywhere, none in curvature between spans | 1e-12 m; 1e-9; 1e-6 1/m | the same test |
| The same: rates of both axes by differences; nearest planned pose to every via point | The axis limits; half of what the tool travels in a cycle | 0.1 %; 0.4 mm | the same test |
| Tool swing after a traverse with input shaping | Under a tenth of the swing without (following the height: about a tenth, 0.102 at z = 0.15 m with the velocity gain of 0.04) | Factor 0.1 (following: 0.11) | input_shaping_leaves_under_a_tenth_of_the_tool_swing, a_shaper_that_follows_the_height_leaves_about_a_tenth_at_both_heights, gantry |
Hand calculations: analysis and verdicts
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Cycle time, peak torque, RMS torque, peak speed, utilisation of a reference cycle (rigid, loss-free, ideal drive) | The S-curve cycle by hand | 2 ms; 2 %; 2 %; 1 %; 2 % | reference_cycle_torque_matches_hand_calculation, axis |
| Energy in minus energy fed back | The copper loss | 3 % | the same test |
| Settled winding rise | The formula from the RMS current | 1e-9 K | the same test |
| Frequency sweep of the rigid machine | A pure inertia: gain 1 / (J ω), phase −90° | 1 %; 1° | frequency_sweep_of_the_rigid_machine_is_a_pure_inertia, axis |
| Phase of the sweeps at the time the signal has | The pure inertia at −90° at 320 Hz and 1 kHz (half a base step of misalignment would be 3.6° and 11.25°); the closed loop at 1 Hz, Kv 50/s, at −atan(2π / 50) = −7.1615° | 0.1° | the_sweeps_measure_the_phase_at_the_time_the_signal_has, axis |
| Dip in the frequency sweep | The load’s resonance on the belt by hand | 5 % | frequency_sweep_shows_the_belt_resonance, axis |
| Verdict values of the reference cycle | Peak torque at the gearbox output 0.85 N m and its cubic mean 0.337 N m by hand (4.25 kg · 0.02 m · 10 m/s² and · (100 / 1.6)^(1/3) m/s²; the motor torque times the ratio gives 1.225 N m); input speed 2387 r/min; radial load 600 N; guide load 4 kg · g; DC link room 6.204 J | 2 %; 1 %; exact; 1e-9; 1e-3 J | verdicts_match_the_hand_calculation_and_fail_where_a_part_is_too_small, axis |
| Guide life | 47.3 million km for a cubic mean of 50.92 N | 1 % | the same test |
| Lives and tooth load from given loads | Pulley shaft bearing (ISO 281): C 8469 N, P 600 N, pulley at 100 r/min (motor 500 r/min, ratio 5): 468696 h. Gearbox planet bearings (Siemens): 20000 h · 175 / 100 · (40 / 20)^(10/3) = 352778 h. Guide: (5000 / 1000)³ · 50 km = 6250 km, at 0.25 m/s 6944 h. Belt teeth (Megadyne): 2 N m up to 95.49 r/min of the pulley, 34.045 N/cm allowed, 100 N · 1.4 / (34.045 · 2.5 · 12, 14 teeth capped) = 0.13707; beyond the table’s end its last value: 0.14359. A life judged from below: utilisation 2.88, badness 13056 h | 1e-5 relative | the_lives_and_the_tooth_load_are_the_hand_calculated_ones, analysis |
| a_ISO of ISO 281:2007 | ν1 = 45000 · 100^−0.83 / 6 = 164.082 mm²/s (100 r/min, D_pw 36 mm), 4500 / sqrt(1000) / 6 = 23.717 mm²/s (1000 r/min). With e_C · C_u / P = 0.5 · 150 / 600 = 0.125: a_ISO 3.27647 at κ = 1 (0.1 · (1 − (2.5671 − 1.9987)^0.83 · 0.5)^−9.3), 0.198152 at 0.2, 0.610291 at 0.5, 6.03577 at 2, 11.0606 at 4 and above, 0.100176 at 0.05 (taken as 0.1); capped at 50; the three branches continuous. The pulley bearing above with ν 120 mm²/s: κ 0.731341, a_ISO 1.555262, 728945 h. Some keys without the others, or e_C above 1, refused by name | 1e-5 relative | a_iso_is_the_hand_calculated_one_of_iso_281, analysis |
| Gearing fatigue above the rated torque | Palmgren–Miner on a line through M2max 64 N m at 30000 revolutions, exponent 6, M2N 40 N m: 1000 rev/h at 48 N m (30000 · (64 / 48)^6 = 168560 rev allowed) and 100 rev/h at 60 N m (44187 rev), 5000 rev/h at 30 N m no damage: 122.015 h. Through a cycle’s spectrum (1 % torque bands at their upper torque, ratio 5): 118.971 h. No figure without output torque, without the exponent, or never above M2N | 1e-6 relative | the_gearing_life_is_the_hand_calculated_damage_sum, analysis |
| Motor bearings | C = 1000 N · (25000 · 60 · 1500 / 10⁶)^(1/3) = 13103.7 N (the 1FK2205’s figure); 600 N at 1000 r/min: 25000 h · (1000 / 600)³ · 1.5 = 173611 h; none behind a gearbox | 1e-5 relative | the_motor_bearing_life_is_the_hand_calculated_one, analysis |
| What the analysis adds up for the lives, on a move of every machine | The same move again, its signals summed by hand: mean motor speed, the speed-weighted cubic mean of the pulley shaft’s radial load, the speed-weighted mean of the gearbox torque with the exponent 10/3, its peak per speed band and its load spectrum (speed per 1 % torque band), the guide’s mean speed | 1e-9 relative | the_life_loads_are_the_signals_added_up, life |
| Life verdicts on the three shipped configs | Each value the function’s; a required life 0.1 % above the pulley bearing’s life fails it, 0.1 % below passes; no gearbox life on the EXCT-30 (no gearbox); the gearing’s life where it has one (the delta’s first arm), no motor bearing life anywhere; e_C 1.5 refused by name | exact | the_life_verdicts_judge_the_lives_against_the_required_life, life |
| Effect comparison: guide friction on against off, the mean over 0.1 s of a cruise at top speed | Motor torque difference r / i · (λ F_c + b v) / η (× η on a motor driven back); T-gantry r / (2 i) per motor with the force the Z guide’s bristles hold added for A and taken off for B. Single axis 0.1525 against 0.1525 N m; T-gantry A 0.0749 against 0.0747 N m, B 0.0584 against 0.0583 N m (ripple and tooth meshing off) | 2 % | comparing_friction_on_and_off_gives_the_friction_torque, views |
| Effect comparison of a config with itself | Zero difference in every signal | exact | the same test |
| Undersized parts | The matching verdicts fail, and only those | Exact list | the same test |
| Band on the gearbox peak torque for a moved mass of 3, 4 and 6 kg | 0.65, 0.85, 1.25 N m by hand | 2 % | a_bound_on_the_moved_mass_gives_the_hand_calculated_band_and_fails_the_verdict_it_reaches, axis |
| Sampled bands: carriage 4 to 6 kg and payload 2 to 4 kg, a gearbox that allows 1.75 N m | Each mass alone at its bound: 1.65 N m, passes. Both sampled together, 40 runs: up to 2.05 N m, fails; 72 % of the runs pass by hand (70.7 % and 68.3 % with two seeds) | 2 %; 0.1 | sampled_bands_find_the_two_masses_that_fail_only_together, axis |
| Worst corner: loss-free rigid axis with payload, carriage 4 to 6 kg, payload 2 to 4 kg, gearbox efficiency 0.85 to 0.95, belt damping 50 to 200 N s/m (no effect) | gearbox-peak worst with both masses high: 0.2 (6 + 4 + 0.25) = 2.05 N m (found 2.070); motor-peak worst with both masses high and the efficiency low: (2.05 / 0.85 + 0.375) / 5 / 3.8 = 0.1467 (found 0.1481); every check at least as bad as in any of 40 samples, seeds 1 and 2 | 2 %; exact corner | the_worst_corner_search_finds_the_hand_calculated_corner, axis |
| The optimiser lowers the default T-gantry’s lifts to a clearance of 0.1 m | Four jerk-limited Z moves of 0.2 m less: 4 · 0.2 / 0.4 = 2.000 s (t = d/v + v/a + a/j, 0.8767 s and 0.3767 s); “Apply” writes the cycle it ran; in the app a row per lift, EN and DE | 5 ms | the_optimiser_lowers_the_lifts_to_the_clearance_and_saves_the_hand_calculated_time, gantry; the_app_shows_and_applies_lower_lifts, app |
| The optimiser lifts each traverse of the T-gantry over a 0.1 m box across it, clearance 0.05 m | Top of the box + clearance + the lowest body below the tool: -0.6 + 0.05 + 0.802 = 0.252 m with the payload, -0.6 + 0.05 + 0.702 = 0.152 m without (flange); 0.1 m without the box, as before; the optimised cycle runs with the crash on without contact and passes every verdict | at or above, within 0.2 mm (the run sways 0.05 mm nearer than the plan at rest) | the_optimiser_lifts_each_traverse_over_a_box_across_it_by_hand, collision |
| The robust optimiser on the single axis with one bound, payload 2 to 20 kg | The search’s fastest leaves the belt slack in the bands; one step back passes them; three settings judged at 2 · 1 + 1 cycles: 9 band runs; the nominal result fails in the bands, the robust one passes | exact count | the_robust_optimiser_steps_back_to_the_fastest_setting_that_passes_in_the_bands, axis |
| The optimiser judged at the worst corner on the single axis with two bounds, pretension 270 to 300 N and payload 2 to 18 kg | The bands pass the fastest (each bound alone keeps the belt taut), the corner of low pretension and heavy payload does not; at most 2 · 2 + 1 + 2² = 9 cycles per search: the fastest 5 + 3 (stops at the failing corner), the configured cycle 5 + 4, bisection steps 1 (passes) and 2 (fails) 5 + 4 each: 35; two steps back; the bands’ result fails verdict_worst, this one passes | exact count | the_optimiser_at_the_worst_corner_steps_back_to_a_setting_that_passes_there, axis |
| A lift’s height profile over two boxes of different heights, T-gantry, clearance 0.05 m | Via heights top + clearance + payload below the tool: -0.7 + 0.05 + 0.802 = 0.152 m and -0.6 + 0.05 + 0.802 = 0.252 m, two each, in order around the boxes; one box: no profile; the cycle through the profile (raised for the spline’s sag) runs with the crash on without contact | 1 µm; clearance within 1 mm (sway) | the_lift_passes_two_boxes_each_at_its_own_height, collision |
| Braking energy of a 0.8 m move that does not reach its top speed, at 1 and 0.5 m/s² (loss-free rigid axis, DC link at 4.7 µF) | Peak of the jerk-limited triangle v² + (a²/j) v = a d: 0.88944 and 0.63121 m/s; ½ · 6.125 kg · v² per stop, 2.4228 and 1.2202 J; 2.405 J less per cycle fed back, and from the supply (the resistor burns all but 0.062 J of a stop) | 2 % (fed back), 3 % (supply) | a_lower_acceleration_takes_the_hand_calculated_braking_energy_less_from_the_supply, axis |
| The EXCT-30 config in the worst case of both band modes (67 bounded values one at a time; 60 samples) | Every check passes, pulley-bearing-life too since a_ISO is in it (above 40000 h in both modes; it failed before); slackest belt section above 100 N (158 N and 137 N), settling below 0.07 mm (0.044 and 0.050), shaft load below 1500 N (1200 and 1201); cycle 2.048 s | As stated | the_exct_30_config_passes_every_check_in_the_worst_case_of_both_band_modes, catalog |
The EXCT-30 config at the worst corner of its bounds (verdict_worst; 3101 cycles on the command line on 21 November 2026, 3062 on 17 November, 2428 before the stage of modelled effects) | settling below 0.1 mm (0.087 mm, with the second shaper at 17.5 Hz; 0.115 mm without, not re-run since 17 November); every other check passes but pulley-bearing-life (9955 h on motor B there, with a_ISO’s estimates at their bad bounds) | As stated | the_exct_30_config_passes_settling_at_the_worst_corner_of_its_bounds, catalog |
| A tool pose mapped into the 3D scene, at five poses of each machine, rigid and elastic | Where the scene draws the tool part (flange, carriage); by hand (0.45, −0.05, −0.592) m and (0.45, −0.03, 0.06) m | 1e-12 m | the_scene_point_of_a_tool_pose_is_where_the_scene_draws_the_tool, gantry; ..._the_carriage, axis |
| Fit of a noisy simulated trace of a changed machine (1.5 kg heavier, friction × 1.4 and × 1.3, belt stiffness × 0.7) | The changes that were made | Within 3 standard errors plus what the rigid model mixes up on a changed machine, 5 % of the mass’s change and 0.02 on the friction’s factors (found + 1.570 kg, × 1.313, × 1.395); stiffness band below 0.03 | the_fit_recovers_changed_masses_friction_and_belt_stiffness_from_noisy_measurements, axis |
Fit on the axis’s own config with the test noise, 40 seeds (by hand: --run-ignored only) | (fitted − config) / error has mean 0 and standard deviation 1 for mass, viscous and Coulomb friction | Mean within 0.4, standard deviation 0.8 to 1.25 (found 1.01, 1.13, 1.15; seeds 41 to 80: 0.88, 0.94, 0.90) | the_fit_s_errors_cover_its_noise, axis |
| Fit on the T-gantry, where both motors move both axes | The changes per axis | Within 3 standard errors plus 20 % of the mass’s change, 0.03 on the Coulomb factor and 3 % of the Coulomb friction on the constant force (found X + 2.32 kg, Z + 1.01 kg) | the_fit_tells_the_two_axes_apart, gantry |
| Resonance read off a synthetic dip | The frequency and damping it was built with, also with the points from high to low frequency | The sweep’s spacing; 5 % | resonance_reads_frequency_and_damping_off_a_known_dip, identify |
| Of two synthetic dips, the deeper one higher | The lower one, 22 Hz, damping 0.05 | 0.5 Hz; 0.01 | of_two_dips_the_lowest_in_frequency_is_reported, identify |
| Fit in the motors’ coordinates of a noisy simulated swing of the delta with all its effects: 4 kg of payload for 3, the joints’ Coulomb and viscous friction doubled | Payload × 4 / 3; at the motor behind the gearbox of 20 and efficiency 0.96, Coulomb + 0.3 / 20 / 0.96 = 0.0156 N m, viscous + 0.05 / 400 / 0.96 = 1.30e-4 N m s/rad; no added inertia or constant torque; nothing the trace cannot tell apart | Within 3 standard errors; payload band below 2 % (found × 1.329 ± 0.014) | the_delta_fit_finds_a_heavier_payload_and_more_joint_friction, fit_joints |
| The same on the SCARA, gearbox losses off | Payload × 4 / 3; Coulomb + 0.5 / ratio (0.005, 0.00625, 0.01 N m), viscous + 0.2 / ratio² on joints 1, 2 and 4; the quill unchanged | Within 3 standard errors (found 0.00514, 0.00621, 0.00999 N m) | the_scara_fit_finds_a_heavier_payload_and_more_joint_friction, fit_joints |
| Links of the SCARA: arm 2 × 1.25, quill × 1.5 (mass and inertia), gearbox losses off | Arm 1’s factor folded into motor 1’s inertia with (0.1 + 8 · 0.16²) / 100² = 3.048e-5 kg m²; quill’s and flange’s into the payload’s with 1.5 / 3 and 1 / 3; every value’s change equal to the truth through what it combines | Coefficients to 1e-6 and 2 %; changes within 3 standard errors (payload + 0.445 ± 0.007 for 0.441) | the_scara_fit_finds_heavier_links_in_the_values_they_combine_with, fit_joints |
| Links of the six-axis arm, gears rigid: link 2 × 1.2, link 3 × 1.3; then the shoulder held | Link 1’s factor into motor 1’s inertia with 0.25 / 120² = 1.736e-5 kg m²; link 2’s factor a value of its own, its change the truth through what it combines; folded with the shoulder held | Within 3 standard errors (+ 0.577 ± 0.013 for 0.565); error below 0.02 | the_arm_fit_finds_heavier_links_and_folds_one_its_trace_does_not_excite, fit_joints |
| Links of the six-axis arm as shipped, gears elastic: link 2 × 1.2, link 3 × 1.3 | As with rigid gears: link 1’s factor into motor 1’s inertia with 1.736e-5 kg m²; every value’s change the truth through what it combines; no payload step | Within 3 standard errors (+ 0.558 ± 0.025 for 0.565); error below 0.04 | the_arm_fit_with_elastic_gears_finds_heavier_links, fit_joints |
| Payload picked at 2.5 s and dropped at 5.5 s during a swing of the delta | Factor 0, 1, 0; steps at 2.5 and 5.5 s | Steps within 3 of their errors, which stay below 20 ms (2.489 ± 0.019, 5.502 ± 0.002 s); factors within 3 standard errors, bands below 0.02 | two_payload_steps_in_one_trace_are_found_with_when, fit_joints |
| Payload picked at rest during moves of the single axis, fit per axis | One step in the rest before the third move; factor change + 1; mass before the step 2 kg below the config’s | Within 3 standard errors (+ 1.022 ± 0.017; − 2.037 ± 0.024 kg) | a_payload_picked_during_the_trace_is_found_on_the_axis, axis |
| Payload picked at 3.5 s during a swing of the delta, all its effects | Factor 0 before, 1 after; the step at 3.5 s | Step within 5 ms, its error at most 5 ms (3.503 ± 0.001 s); factors within 3 standard errors, bands below 0.02 | a_payload_picked_during_the_trace_is_found_with_when, fit_joints |
| Belt stiffness from a noisy simulated move’s trace of the single axis with its belt × 0.7, by replaying the config with the stiffness scaled | 0.7; what the fitted replay leaves of the ringing is the noise, 0.005 × sqrt(20 / 21) N m; a move of 2 mm at 1 m/s³ and 0.2 m/s² refused | Within 3 standard errors, band below 0.03 (found 0.708 ± 0.015); 5 % | the_belt_stiffness_is_fitted_to_a_moves_trace_and_a_tiny_move_is_refused, move_stiffness |
The default sweep (5 to 500 Hz, 120 points, 1.5 N m or 40 % of the peak torque) on every motor of both default configs and exct-30.toml | A dip at 21.6, 20.8 and 84.3 Hz, the figures the simulation gave when the default was chosen | 3 %, damping above 0 | the_default_sweep_finds_the_lowest_dip_on_every_config, sweep |
| Energy budget of the cycle, 9 configs per machine (default, rigid, without DC link, with a shared one, every remaining effect on, the loss-free configs of the suite, and on the T-gantry the EXCT-30) | The supply equals copper loss, resistor, every loss of the machine and the change of every store; and on its own the electrical side: supply = copper + resistor + Δ windings + Δ capacitors + the shaft work integrated with the windings | 0.1 % of the supply on every config, loss-free ones included (measured at most 0.03 %, T-gantry loss-free elastic; 0.0005 % default T-gantry, sim-cli analyze t-gantry --budget FILE, 17 November 2026); the electrical side 1e-6 (measured at most 3.2e-7) | the_energy_budget_closes_on_every_machine_and_config, effects |
| Step-size convergence of the supply: the same cycles at 4 and at 8 integrator sub-steps | Each other | 0.5 % (measured at most 0.06 %); the single axis’s loss-free elastic inclined config at 4 against 16 sub-steps (undamped, it knocks through its backlash, and the run at 8 alone takes another path: 20.925, 20.804, 20.924 J at 4, 8, 16); no config runs into its torque limit since the velocity gains were lowered | the_supply_converges_with_the_integration_step_on_every_config, effects |
| The four torque parts at every 5 ms of a cycle, same configs | Add up to the motor torque | 1e-9 relative | the_torque_parts_add_up_to_the_motor_torque, effects |
The guide life row checks that the code computes the catalogue formula. It does not check the formula against a guide. The same holds for the life rows: they check that the code computes ISO 281 (a1 and a_ISO), Siemens’ gearbox formula, Palmgren–Miner on Siemens’ gearbox figures and Megadyne’s tooth load method; no bearing, gearbox or belt was run to failure, and the load ratings of the EXCT-30’s pulley shafts are estimates.
| A slanted capsule’s clearance to a box | A rod of radius 6 mm from (0, 0, 0) to (0.3, 0, 0.3) and a 0.1 m cube at (0.25, 0, 0.05): the cube’s top edge through (0.2, y, 0.1) is (0.2 − 0.1) / √2 = 70.711 mm from the rod’s line, so 64.711 mm; the cube at (0.15, 0, 0.1) holds the rod’s point (0.125, 0, 0.125) 25 mm deep, an overlap of 31 mm | 1e-12 m | a_slanted_capsule_keeps_the_hand_calculated_clearance_to_a_box, sim-core |
| A box inside another | A point at (0.02, 0, 0.01) in a 0.1 m cube leaves by the face at x = 0.05, 30 mm deep; a 0.02 m cube there 40 mm | 1e-12 m | a_box_inside_another_is_as_deep_as_its_way_out, sim-core |
| Each drive monitor’s trip, steps of 1/1024 s | Following error 1.01 rad beyond the 1 rad window at the first step; 0.2 rad beyond the 0.1 rad standstill window after 1 s (step 1024), never while moving; at the torque limit at standstill after 3 s (step 3072); torque 1.5 N m from the expected, beyond 0.3 · 3.8 N m, within 0.4 · 3.8 | exact | each_monitor_trips_at_its_hand_counted_step, fault |
| A move into a box, single axis, effects.crash and drive_monitoring | Contact at x = 0.47 at 1 m/s; the blocked motor’s following error grows at 1 · 5 / 0.02 = 250 rad/s and crosses 1 rad 4 ms after the contact; it trips on it then (within one position cycle and the motor’s last turn), stops, and rests at the face | trip 0 to 2 ms after the crossing; 3 mm in | a_move_into_a_box_is_blocked_at_its_face_and_trips_on_the_following_error, collision |
| A blocked axis at its current limit, single axis | F = T_max i / r = 3.8 · 5 / 0.02 = 950 N at rest against the box | 5 N (the motor’s Coulomb friction, 0.02 N m) | a_blocked_axis_pushes_with_the_hand_calculated_force_at_the_current_limit, collision |
| The axis not in contact stops on its fault reaction, xyz portal on a slab | Z blocked trips 1 / (0.25 · 10 / 0.02) = 8 ms after the contact; X from v = 0.8 m/s on OFF3 (3140 rad/s² at the motor, 12.56 m/s² at the carriage) in v² / (2a) = 25.48 mm, on OFF1 (1.256 m/s²) 254.8 mm; STO without a brake coasts more than 3 times as far | trip within 2 ms; distance within 2 ms at v of v² / (2a) | the_axis_not_in_contact_stops_on_its_fault_reaction_ramp, collision |
| A D3 forearm rod’s collision body | A 0.1 mm cube 20 mm from each rod’s middle, square to it: clearance 20 − 6 = 14 mm, less the cube’s half diagonal at most | 0.1 mm | a_forearm_rod_is_no_wider_than_its_radius, delta |
Hand calculations: delta picker D3
The delta’s geometry and masses are estimates (see its config), so these check the equations, not the machine.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Inverse and forward kinematics over a 13 × 13 × 9 grid of the working range (500 and more poses) | Each other | 1e-12 m | the_kinematics_round_trip_and_the_jacobian_is_the_derivative_of_the_forward_kinematics, delta |
| The Jacobian J = J_x⁻¹ J_q | Central differences of the forward kinematics, 1e-6 rad | 1e-7 m/rad | same |
| Holding torque at the centre, 100 mm below the top (forearms lumped, as in the next two) | The leg equation solved by halving, dz/dθ = −L_a cos θ + (e + L_a cos θ) L_a sin θ / (z + L_a sin θ) over 3 per arm: −g m_LG cos θ + m_nt g dz/dθ = −4.25 − 6.15 = −10.40 N m per gearbox, −0.520 N m per motor | 1e-4 | the_holding_torque_at_the_centre_is_the_platforms_weight_shared_out_and_the_arms_own, delta |
| Holding torque at the edge, x = 0.6 m | The weight through the transpose of a Jacobian from finite differences: −22.887 N m on the arm pointing there, −1.129 N m on the others (the forearms’ weight a half at each end); rigid and elastic models stay put there | 1e-6; 1e-6 rad/s² | the_holding_torque_at_the_edge_is_the_weight_through_the_jacobians_transpose, delta |
| A vertical acceleration of 10 m/s² at the centre | θ̈ = a / (3 dz/dθ) = −24.98 rad/s², I_b θ̈ + m_nt a dz/dθ = −10.00 N m at the arm, −0.6053 N m at the motor; the rigid model given that torque accelerates the platform at 10 m/s² straight down | 1e-6; 1e-9 m/s² | a_vertical_acceleration_at_the_centre_takes_the_hand_calculated_inertia_torque, delta |
The forearm rods (effects.forearm_inertia), arms level at the centre (z = −√0.6) | A vertical 10 m/s²: every rod translates, (I_arm + L_a² m_elbow) θ̈ − L_a m_fb a − (L_a/3) m_p a = −10.0 N m at the arm, −0.6053 N m at the motor, in both models; sideways at 1 m/s the rods turn: (m/6)(|ċ|² + ċ·ṗ + |ṗ|²) = 0.31302 J for the three pairs against 0.37604 J lumped | 1e-6 | with_the_arms_horizontal_a_vertical_acceleration_takes_the_hand_calculated_torque_with_rods, the_rods_kinetic_energy_is_the_hand_calculated_one, delta |
The rods’ spin about their own axis (effects.forearm_inertia) | Leg 1 with the platform at (0, 0.1, −0.8) moving 1 m/s square to its forearm in the plane y = 0.1 (arm 1 still): s = 0.1 / (L_b √(L_b² − 0.01)) = 0.111422 rad/s; every leg’s spin from its pair’s plane turning, by central differences; the spin’s kinetic energy with 0.01 kg m² a rod, I Σ s_i² | 1e-9; 1e-6; 1e-6 | the_rods_spin_is_the_hand_calculated_one, delta |
The arms’ bending out of their planes (effects.link_elasticity), arms level at the centre | Every forearm square to its axis, so each elbow rings on k_l alone: lumped √(400000 / 0.63335) / 2π = 126.48 Hz three times, damped 15 / (2 √(k_l m)) = 0.014901; with the rods 147.35 Hz for the three elbows moving the same way round, the other two within 0.5 % above; 3 modes with the gearboxes alone, 6 with the bending, 9 with both, the lowest resonance_hz | 1e-6 | the_arms_bending_out_of_their_planes_rings_at_the_hand_calculated_frequency, delta |
| An upper arm running into an obstacle | A 20 mm box at the middle of arm 1 at the centre, 0.75 m down: more than 4 mm from the arm’s capsule at the start pose, the plan finds the contact, the traverse with effects.crash and drive_monitoring trips the drives, the rods’ capsules and the platform’s box never touch it | exact | an_upper_arm_running_into_an_obstacle_is_a_crash, delta |
| A free, loss-free motion with rods, bending arms (in and out of their planes), both, on elastic and rigid joints, and with a rod spin inertia of 0.05 kg m² | Energy less the constant motor torques’ work stays put over 0.1 s of RK4 at 10 µs | 1e-7 of the kinetic energy | a_free_loss_free_motion_keeps_its_energy, delta |
The lowest mode with the motors held (resonance_hz), arms level at the centre, forearms lumped | The sideways mode, M_s = L_a² (m_elbow + s m_fb) + m_nt / Σθ̇² = 1.09572 kg m²: bending alone √(k_b / M_s) / 2π = 38.76 Hz, gearboxes alone √(k_g / (I_arm + M_s)) / 2π = 28.14 Hz, both the lower root of I_arm M_s ω⁴ − (k_g M_s + k_b M_s + k_b I_arm) ω² + k_g k_b = 0, 22.88 Hz; the mode’s shape moves the platform sideways | 1e-6 | the_lowest_mode_is_the_hand_calculated_one, delta |
| A forearm running into an obstacle | A 30 mm box at the middle of arm 1’s rod at the centre, 0.36 m above the platform: the plan finds the contact, the traverse with effects.crash and drive_monitoring trips the drives, the platform’s boxes stay more than 0.3 m from it | exact | a_forearm_running_into_an_obstacle_is_a_crash, delta |
| The feedforward with the speed | The rigid loss-free model at (2, −1, 0.5) m/s accelerates the platform at the asked (10, 5, −20) m/s²; without the speed it misses by more than 1 m/s² | 1e-9 m/s² | the_feedforward_with_the_speed_gives_the_asked_acceleration, delta |
| The Adept cycle 25/305/25 mm with stops and 35 ms dwells | S-curve by hand: traverse d/v + v/a + a/j = 0.18167 s, 25 mm lift 4 (d / 2j)^(1/3) = 0.06840 s, pass 0.70693 s; on the 1 ms profile cycle 720 cycles. The vendors’ 0.35 to 0.52 s (ABB IRB 360, rounded paths) is printed, not asserted | exact (1e-9 s) | the_adept_cycle_takes_the_hand_calculated_time, delta |
| Stability under constant torques | Second differences of gravity less torque times angle: −1.68 N m/rad in the vertical mode at 868 mm, +2.64 at 1000 mm | signs | the_vertical_mode_under_constant_torques_is_unstable_high_up, delta |
| Targets outside the working range, out of reach, beyond a stop, near a singularity | Refused with their reason | exact | targets_outside_the_working_range_are_refused_with_their_reason, delta |
| Condition number | 4 for a turned diag(1, 2, 4), 1 for 2 · 1; the cycle’s peak judged against ratings.max_condition_number | 1e-12 | the_condition_number_is_the_ratio_of_the_singular_values, the_cycle_is_judged_against_the_condition_number_limit, delta |
The setpoint slack at rest (rest_sag) | The simulation’s setpoint-to-tool offset after 0.5 s at rest at five poses (0.75 to 2.09 mm with 9 arcmin): covered, and the slack (2.30 mm) at most 1.4 times the largest; 0.1 mm without backlash and with stiff gearboxes | exact | the_setpoint_slack_covers_the_sag_at_rest, delta |
| A first arc from rest; a path beyond the range | arc,0.2525,0.0,-0.85,0.1525,0.0,-0.85,cw from rest is laid out (refused before), an end 2 slacks off its circle is not; a line to x = 0.6014 is refused as the move there (both planners), one to 0.6 runs; a trajectory to 0.6014 is refused | exact | a_first_arc_from_rest_is_laid_out_with_the_machines_slack, a_path_may_not_use_the_setpoint_slack_away_from_its_start, delta |
| Rotary joint | Joint friction 2 + 0.5 · 4 = 4 N m, stop 1e5 · 0.01 = 1000 N m, rotor 2e-4 · 20² = 0.08 kg m², 1 N m less 0.1 N m friction through ratio 20 = 18 N m, losses 16 W and 8 W | 1e-9 | a_joint_adds_friction_stops_and_the_rotor_as_calculated, joint |
| Arcs on three axes | A quarter circle of 0.1 m in the x-z plane is π/20 m long, passes (0.0707, 0, 0.0707) about its centre halfway with its curvature 1/r towards the centre; clockwise the other way round; in the x-y plane seen from +z; a half turn laid in the x-y, else x-z, else y-z plane that holds its radius (refused where none does) | 1e-12 | arcs_on_three_axes_lie_in_the_plane_of_their_points, path |
| Splines on three axes | Through their via points, out of and into the lines beside them in their directions, the plan within every axis’s speed, acceleration and jerk | 1e-9; 0.1 % | a_spline_on_three_axes_passes_through_its_points_within_the_limits, path |
Hand calculations: planar delta picker D2
The planar delta’s geometry and masses are estimates (see its config), so these check the equations, not the machine. All in delta2.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
The standard suite, in the crate as well as in suite | As every machine | – | the_planar_delta_passes_the_standard_suite |
| Inverse and forward kinematics over the working range in steps of 10 mm (2500 and more poses); the Jacobian | Each other; central differences of the forward kinematics | 1e-12 m; 1e-7 m/rad | the_kinematics_round_trip_and_the_jacobian_is_the_derivative_of_the_forward_kinematics |
| Holding torque at the centre, 100 mm below the top | The leg equation solved by halving: θ = 1.4290°, dz/dθ per arm = −0.20503 m/rad, m_nt = 6.6 kg, m_LG = 0.520 kg m (the forearms’ weight a half at each end): −5.098 − 13.270 = −18.368 N m at each gearbox | 1e-4 | the_holding_torque_at_the_centre_is_the_plates_weight_shared_out_and_the_arms_own |
| Holding torque at the edge, x = 0.4 m | The weight through the transpose of a Jacobian from finite differences: −25.73 N m on arm 1, −4.06 N m on arm 2 | 1e-6 | the_holding_torque_at_the_edge_is_the_weight_through_the_jacobians_transpose |
| A vertical acceleration of 10 m/s² at the centre | θ̈ = a / (2 dz/dθ) = −24.39 rad/s², I_b θ̈ + m_nt a dz/dθ = −17.80 N m at the arm, −0.9929 N m at the motor; the rigid model given it accelerates the plate at 10 m/s² straight up | 1e-6; 1e-9 m/s² | a_vertical_acceleration_at_the_centre_takes_the_hand_calculated_inertia_torque |
| The edge of the working range at a height | The bottom arc r = (0.4² + 0.227²) / (2 · 0.227) = 0.465923 m about z_c = −0.411077 m: at z = −0.8, x = ±0.256560 m; at z = −0.6 the half width 0.4 m | 1e-5 m | the_edge_of_the_working_range_at_a_height_is_where_the_bottom_arc_cuts_it |
| Targets outside the range, beyond a stop, out of reach, near a singularity | Refused with their reason | exact | targets_outside_the_working_range_are_refused_with_their_reason |
| The Adept cycle in the plane | As on the D3: 720 profile cycles, 0.720 s | 1e-9 s | the_adept_cycle_takes_the_hand_calculated_time |
| The default cycle’s verdicts | All pass; the condition number’s peak between the poses’ 1.02 and 1.11 by hand and the lifts’ tops (1.136) | – | the_default_cycle_passes_its_verdicts |
| Condition number | 4 for a turned diag(1, 4), 1 for 2 · 1 | 1e-12 | the_condition_number_is_the_ratio_of_the_singular_values |
| Stability under constant torques | Second differences of gravity less torque times angle: −3.778 N m/rad in the vertical mode at 638.5 mm, +7.428 at 788.5 mm; sideways 13.714 and 19.125 (the forearms’ weight a half at each end) | 0.005 N m/rad | the_vertical_mode_under_constant_torques_is_unstable_high_up |
| The feedforward with the speed | The rigid loss-free model at (2, −1) m/s accelerates the plate at the asked (10, −20) m/s² | 1e-9 m/s² | the_feedforward_with_the_speed_gives_the_asked_acceleration |
| The setpoint slack at rest | 0.420 mm by hand (rest_sag’s grid, twist and half of 1 arcmin either way, plus a tenth), covering the simulation’s 0.29 to 0.37 mm at six poses after 0.5 s | 2e-6 m; covered, within 1.4 times | the_setpoint_slack_covers_the_sag_at_rest |
| A path beyond the range; collision bodies | A line to x = 0.4014 refused, to 0.4 laid out; plate and payload boxes at (x, 0, z) and 70 mm below | exact; 1e-12 m | a_path_may_not_use_the_setpoint_slack_away_from_its_start, the_collision_bodies_are_the_plate_and_the_payload_at_the_tool |
Hand calculations: linear delta
The linear delta’s geometry and masses are estimates (see its config), so these check the equations, not the machine. It passes the standard suite as every machine does, also from its own tests.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Inverse and forward kinematics over a 20 × 20 × 5 grid of the working range (1000 and more poses) | Each other | 1e-12 m | the_kinematics_round_trip_and_the_jacobian_is_the_derivative_of_the_forward_kinematics, linear delta |
| The Jacobian J = J_x⁻¹ J_q | Central differences of the forward kinematics, 1e-6 m; its z row sums to 1, its x and y rows to 0 | 1e-7; 1e-12 | same |
| The belts’ holding forces | g (m_c + m_nt dz/dh_k), m_c = 1.475 kg, m_nt = 2.325 kg: 22.0650 N per column at the centre (0.31606 N m at the motor), 32.784, 19.257 and 14.154 N at (0.3, 0.1, −1.17) with dz/dh from finite differences, summing to 3 m_c g + m_nt g = 66.1949 N; the rigid model’s holding torques and the elastic one’s T₁ − T₂; both stay put there | 1e-6; 1e-6 | the_belts_hold_the_carriages_and_the_plates_weight_through_the_jacobian, linear delta |
| The working range’s edges at a height | At z = −1.17 a rod reaches 60° at x = e − L sin 60° = −0.502628 m; at z = −1.09 a carriage reaches its upper stop at x = e − sqrt(L² − 1.09²) = 0.302014 m; refused 1e-6 m beyond, not before; outside, out of reach, near a singularity refused with their reasons | 1e-6 m | the_working_range_ends_where_a_rod_tilts_too_far_or_a_carriage_meets_its_stop, linear delta |
| The feedforward | With the speed the rigid loss-free model accelerates the plate at the asked (10, 5, −20) m/s² at (2, −1, 0.5) m/s; at rest 10 m/s² up at the centre takes ((m_c + (J_pulley + belt + J_rotor) / r²) 10 + m_nt 10 / 3) r = 0.63355 N m per motor | 1e-9 m/s²; 1e-9 | the_feedforward_gives_the_asked_acceleration, linear delta |
| The default cycle | Every verdict passes; 720 profile cycles as the D3’s Adept cycle by hand; condition number 3.28 | exact | the_default_cycle_passes_its_verdicts, linear delta |
| The setpoint slack at rest | The simulation’s setpoint-to-tool offset after 0.5 s at rest at four poses (0.010 to 0.016 mm) within the slack (0.1 mm) | exact | the_setpoint_slack_covers_the_sag_at_rest, linear delta |
Hand calculations: four-axis delta picker D4
The D4’s arms are the D3’s (checked above); these check what the fourth axis adds. Its shaft and tool values are estimates (see its config). All in delta4.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
The standard suite, in the crate as well as in suite | As every machine | – | the_d4_passes_the_standard_suite |
| The shaft at (0.3, 0.4, −0.85) | d = (0.3, 0.4, −0.8): L = √0.89 = 0.943398 m, β = atan(0.5/0.8) = 32.0054°, bending plane at 53.1301°; over the range 0.625 to 1.0201 m and at most 43.8309°, so every pose the arms reach the shaft reaches (grid of 10 cm); beyond the stroke or the bend refused with the reason | 1e-6 relative | the_shafts_length_and_cardan_angles_are_the_hand_calculated |
| The cardan joints | One joint at β = 32.0054°, φ = 30°: tan χ = tan φ / cos β, χ = 34.2486°; the pair in phase gives φ back over a turn; the speed ratio cos β / (1 − sin²β cos²φ) is the derivative of χ; tool 10 rad/s and motor 80 rad/s at the pose, rigid and elastic, the shaft between at 10.3937 rad/s (between 8.480 and 11.792) | 1e-12 rad; 1e-7; 1e-5 | the_tool_turns_with_the_motor_through_the_cardan_pair_and_the_shaft_between_unevenly |
| The tool motor’s torque for 100 rad/s² | J_c = 2e-3 + 8e-5 + 5e-3 = 7.08e-3 kg m²: 7.08e-3 · 100 / 8 + (3.5e-5 + 8.8e-6) · 8 · 100 = 0.12354 N m (0.06104 N m without the payload; motor 4’s own rotor and gearbox, [motor.4], [gearbox.4]); the rigid model given it turns the tool at 100 rad/s² | 1e-9 | the_tool_motors_torque_for_a_turn_is_the_hand_calculated |
| The arms’ holding torques at the centre, 100 mm below the top | The D3’s plus the shaft’s 0.7 kg through dz/dθ = −0.13343 m/rad: 0.7 · 9.80665 · (−0.13343) / 20 = −0.04580 N m more at each motor; the D3’s alone without effects.shaft_mass; the tool’s motor holds nothing | 1e-6 | the_arms_hold_the_d3s_torques_plus_the_shafts_weight_share |
| The telescope’s friction, the platform sinking at 1 m/s at (0.3, 0.4, −0.85) | L̇ = 0.8/0.943398 = 0.848 m/s: 5 N + 2 · 0.848 = 6.696 N along the shaft, 5.678 W | 1e-5 | the_telescopes_friction_is_the_hand_calculated |
| The tool’s torsional mode | 1 / (1/8250.592 + 1/500) = 471.43 N m/rad against 7.08e-3 kg m²: 41.069 Hz (75.770 Hz without the payload), 2.05 % damping; among modes | 1e-5 | the_tools_torsional_mode_is_the_hand_calculated |
| The default cycle with a 90° turn | The tool at 90° in the pick to 1.5 mrad; every verdict passes (settling 0.39 mm); with the catalogue’s 9 and 10 arcmin backlash settling fails alone (1.21 mm) | – | the_default_cycle_turns_the_tool_and_passes_its_verdicts |
| Motor 4’s own tables | The tool’s joint turns 3.5e-5 + 8.8e-6 = 4.38e-5 kg m² behind ratio 8 at 97 %; drive 4 gives 3.75 N m (the arms’ 15); ratings.gearbox_max_torque_nm 29 for motor 4, 192 for motor 1 | 1e-12 | the_tool_motors_own_tables_are_read |
| Motor 4’s values are the catalogue’s | [motor.4], [gearbox.4], [drive.4], [ratings.4] equal what catalog::with_motor_part puts in for 1FK2104-4AF, NRB060-04-8, 6SL3210-5HE10-4UF0 (backlash apart); its retuned velocity gain 0.25 · √(0.676413 · 0.207977) = 0.093768, above the shipped 0.05 (27.5°, 4.1 dB there) | 1e-6 (gain 1e-5) | the_tool_motors_values_are_the_catalogues |
| An arm’s own gearbox table | [gearbox.2] ratio 10 against the shared 20: motor 2’s angle for one pose is half, motors 1 and 3 unchanged; the tool motor and gearbox above the base are collision boxes at z 0.16 and 0.065 m (the_motor_and_gearbox_above_the_base_are_collision_bodies) | 1e-12 | an_arms_own_gearbox_table_is_read_by_that_arm_alone |
Hand calculations: wafer handler
The R-θ-Z arm with banded links (machine-wafer-handler). L = 0.32 m, e = 0.18 m, the links’ and effector’s masses,
inertias and centres of its config (estimates), the wafer 0.1276 kg
(SEMI M1), gearboxes 50 with rotor and input 2.86e-5 kg m². All in the crate’s tests.rs.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The standard suite, rigid and elastic gearboxes and bands with and without the wafer | As every machine | – | the_wafer_handler_passes_the_standard_suite |
| The kinematics at φ = 60°, θ = 30° | Elbow (0, 0.32), wrist L u(90°) + L u(−30°) = (0.277128, 0.16) = 2 L cos φ u(θ) on the radial line, wafer centre (0.433013, 0.25), r = 0.5, the effector along θ; dr/dφ = −2 L sin φ = −0.554256 m/rad; condition 1 / sin φ = 1.154701; forward of inverse; motors 50 θ, 50 φ, 2π z / 0.01 | 1e-6; 1e-12 | the_wrist_runs_on_the_radial_line_and_the_effector_keeps_its_direction |
| Refusals | Beyond 2 L + e out of reach; φ beyond 10° and 110° and θ beyond ±200° at a stop; 1 / sin φ above 5 (r above 0.806926 m) near the full extension | – | targets_beyond_the_arm_its_stops_or_near_the_full_extension_are_refused |
| The R motor’s inertia, retracted and extended | M_φφ = m₁ c₁² + I₁ + m₂ (L² + c₂² − 2 L c₂ cos 2φ) + I₂ + (m₃ + m_w) 4 L² sin² φ: 0.5499656 kg m² at r = 0.12 (1.354595 kg along r, 2.485862e-4 kg m² at the motor), 0.1876677 at r = 0.75 (2.215676 kg, 1.036671e-4); M_θφ = 0.13312 at every pose; the feedforward for r̈ = 1 m/s² | 1e-6 (the rounded figures 1e-5); 1e-9 | the_r_motor_feels_the_hand_calculated_inertia_retracted_and_extended |
| The θ motor’s inertia at two reaches | J_c + Σ (I + m | centre | ²): 0.153033 kg m² at r = 0.12 (8.981318e-5 at the motor), 0.604751 at r = 0.75 (2.705002e-4), growing with r²; the feedforward for θ̈ = 1 rad/s² |
| The wafer pushed out in a turn | At r = 0.75 turning at √(μ g / r) = 1.980571 rad/s (μ 0.3) the wafer accelerates at μ g = 2.941995 m/s², 1.2 times the limit μ g / 1.2 = 2.451663; motor 2 holds the arm against −½ ∂M_θθ/∂φ θ̇² = 0.814776 N m (∂M_θθ/∂φ = −0.415420), 0.0162955 N m at the motor, and the rigid model under that feedforward does not accelerate | 1e-9; 1e-5 | a_fast_turn_pushes_the_wafer_outwards_and_it_slips_at_the_hand_calculated_rate |
| Coriolis, extending during a turn | r = 0.5, ṙ = 0.5 m/s, θ̇ = 1 rad/s, no acceleration: the wafer at (r̈ − r θ̇², 2 ṙ θ̇ + r θ̈) = (−0.5, 1.0) m/s², 1.118034 | 1e-9; 1e-6 | extending_during_a_turn_gives_the_wafer_the_coriolis_acceleration |
| The bands under 1 N m on the effector | K₁ = 2 k r₁² = 1692, K₂ = 2303 N m/rad; β = T / 2K₁ = 2.955083e-4, γ = T / 4K₁ + T / K₂ = 5.819704e-4 rad; the bands push back with exactly −T on γ and nothing on β; swings −T / (4 r₁ T₀) = −0.0555556 and −T / (2 r₂ T₀) = −0.0952381; at r = 0.75 the wafer centre at (0.750043, 1.889809e-4) and the effector 3.300103e-4 rad out of its radial line (the signal, and at a station only while dwelling) | 1e-6 | the_bands_stretch_under_a_torque_and_turn_the_effector_out_of_its_line |
| A span runs slack | 1e-4 m: 188 N difference, k s² = 9.4e-3 J; 2e-4 m: one span slack, 338 N, 0.0488 − T₀² / 2k = 0.0368319 J | 1e-12; 1e-6 | a_band_span_runs_slack_beyond_its_pretension |
| The rigid bands’ forces | Wrist over the column, θ̈ = 10 rad/s²: M_γθ = m₃ c₃² + I₃ + m_w e² + I_w = 0.01532974, M_βθ = m₂ (c₂² − L c₂) + I₂ = −0.02048 kg m²; ΔT₂ = 4.379926 N, ΔT₁ = −4.271710 N, swings −0.0142390 and 0.0145998 of the pretension; the plan’s rows (rigid_checks) and the signals give them | 1e-5; 1e-9 | the_rigid_bands_carry_the_hand_calculated_forces |
| The Z holding torque | 11.2276 kg · 9.80665 · 0.01 / 2π = 0.1752378 N m (0.1732462 without the wafer); the arm’s motors hold nothing; nothing moves, rigid or elastic, friction on | 1e-9; rates 1e-7 | the_z_motor_holds_what_it_lifts_and_the_arm_motors_nothing |
| The modes, motors held | numpy’s eigenvalues of the same K and M (scratch script): 18.1952, 51.3514, 70.6454, 186.4465 Hz at r = 0.12, 16.7646, 42.3221, 83.6696, 175.3323 Hz at r = 0.75; the bands alone 21.0252, 62.4203 and 18.5831, 83.1553 Hz | 1e-5 | the_modes_are_those_of_the_gearboxes_and_bands |
| The hold | Pads μ g = 2.941995 m/s², lowering at 1 m/s² 2 · 9.80665 / 8.80665 = 2.227100 asked for 2; vacuum 18 N / 0.1276 kg: μ (g + 141.065831) = 45.261744; the edge 9.81 whatever the lift | 1e-6 | the_hold_asks_the_hand_calculated_share_on_pads_vacuum_and_edge |
| The default cycle | Every verdict passes (wafer-slip 1.83 of 2.45 m/s², settling 0.048 mm and 0.113 mrad (0.033 mm until 21 November: the coupling’s damper now bridging its spring alone left the column’s mode lightly damped, and the Z velocity gain was lowered for it, 2400ebc6), effector-direction 12.7 µrad, the bands’ swings 6.5 % and 1.2 %); the reach speeding up at 3 m/s² fails wafer-slip | – | the_default_cycle_passes_its_verdicts_and_a_faster_reach_slips_the_wafer |
Hand calculations: arms in tool space
The SCARA and the six-axis arm with kinematics.tool_space on (mechanisms), on the configs config/scara-tool.toml and config/arm-tool.toml. All in machine-joint-kit.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The SCARA’s closed form at (0.325, 0.275, 0.1, 0.3) | cos β = (0.18125 − 0.325² − 0.275²) / (2 · 0.325 · 0.275) = 0: right elbow β = π/2, joint 1 = 0; left β = −π/2, joint 1 = 2 atan2(0.275, 0.325) = 1.404514; joint 3 = 0.2 − z = 0.1 m, joint 4 = c − q1 − q2; the URDF chain puts the flange there | 1e-12 | the_scara_closed_form_gives_the_joints_of_a_pose_by_hand |
| Forward of inverse | The pose itself, over the SCARA’s tool range (the standard suite’s grid) and at 40 poses around the arm’s home (turns up to 0.3 rad), the arm’s wrist on the home’s side (joint 5 > 0); both hold still at rest | 1e-9 | inverse_then_forward_returns_sampled_tool_poses_within_1e_9 |
| A line of the tool | Every planned pose (within the axis limits and time-optimal) on the SCARA’s line x = 0.4, z = 0.15, c = 3 (y + 0.25), and the flange where the inverse’s joints put it; the arm’s line along y with its orientation (0, π/2, 0) held, read back through the URDF chain | 1 µm, 1e-6 rad | every_planned_pose_of_a_straight_tool_line_lies_within_1_um_of_it |
| The joint speeds at (0.325, 0.275) along y at 0.5 m/s | J = [[−0.275, −0.275], [0.325, 0]]: joint 1 0.5 / 0.325 = 1.538462 rad/s, joint 2 the opposite, joint 4 0; motors × 100, 80; condition number from the eigenvalues of Jᵀ J = [[0.18125, 0.075625], [0.075625, 0.075625]], 2.4691 | 1e-4 rad/s, 1e-9 | the_joint_speeds_along_a_tool_line_are_the_inverse_jacobian_times_the_tool_speed |
| The stretched SCARA arm | At x = 0.598 the elbow acos((0.598² − L1² − L2²) / (2 L1 L2)) = 0.1639 rad, condition above 25: the move refused with error-arm-singularity; at 0.59 (0.3669 rad) it goes; at 0.61 error-arm-out-of-reach; a line ending at 0.6 refused with error-path-range, within the axis limits and time-optimal | – | a_tool_path_into_the_stretched_scara_arm_is_refused_with_its_reason |
| The time-optimal plan of a line of the tool | No motor faster than its rated 314.159 rad/s (from differences of the planned poses’ joints); the fastest above 0.9 of it and faster than within the axis limits, the plan shorter | 0.1 % | the_time_optimal_plan_keeps_the_scara_motors_within_their_rated_speed_along_a_tool_line |
| The tool-space configs | The defaults but for kinematics.tool_space, start.pose, the cycle and the arm’s settling tolerance; both cycles of straight lines pass every verdict (SCARA 2.542 s, settling 0.03 mm; arm 3.858 s, settling 2.3 of 5 mm) | – | the_tool_configs_are_the_defaults_but_for_tool_space_start_cycle_and_settling, the_tool_space_cycles_pass_their_verdicts |
A link that twists and bends (link_bending.directions all three): a 60 × 4 mm steel tube, 0.8 m, 4.5 kg, with 10 kg and 0.5 kg m² about its axis at its tip | Twist sqrt(G I_p / (L (J + J_own / 3))) / 2π = sqrt(56146.0 / 0.501182) / 2π = 53.2699 Hz (the tube’s share J_own / 3 = 1.182e-3 kg m²; the exact root of β tan β = J_own / J 53.26988 Hz); both bends sqrt(3.0906 E I / L³ / (m / 4 + M)) / 2π = 28.2887 Hz | 1e-5 | a_tube_twists_at_the_frequency_of_its_tip_inertia_and_bends_alike_in_both_planes |
Two-way bending (effects.link_bending_reaction): the tube of 0.45 kg with 20 kg at its tip on a gearbox of 2e5 N m/rad, the motor held | The two-coordinate mode det(diag(k_g, k_b) − ω² M) = 0, M_qq = 12.897 kg m², B = 16.07219 kg m, M_d = 20.11546 kg: 14.43363 Hz, the lowest in modes (the series spring on the modal mass 14.43276 Hz); static sag L τ / k_g + Q_g / k_b = 1.197642 mm (M g / k_s = 1.185666 mm with the tip mass alone); let go from straight it rings about the sag with that amplitude at that frequency | 1e-5 (modes), 1e-4 (sag), 0.2 % (ringing), 1 % (amplitude, middle) | a_bending_link_on_an_elastic_joint_rings_as_the_two_springs_in_series |
| Two-way bending, energy at an instant | The six-axis arm under gravity, loss-free, no motor torque, all three directions, links bent by 1 mm (1 mrad) and moving, joints turning: dE/dt along the state’s own rates by central differences is zero (1e-5 W left; without G 0.22 W, without ½ Ṁ_d ḋ 0.012 W), rigid and elastic | 1e-4 W | two_way_bending_trades_energy_without_loss_at_every_instant |
| Two-way bending, energy over a run | The standard suite’s energy conservation (0.1 % of the pulse’s energy over 10 s): the tube hanging under gravity with all three directions, elastic and rigid; the six-axis arm’s loss-free elastic config with the payload, gravity off, its links bending in their joints’ planes | 0.1 % | two_way_bending_keeps_the_energy_of_a_hanging_link, two_way_bending_keeps_the_six_axis_arms_energy |
| Two-way bending at rest and with losses | The shipped six-axis arm, all three directions: the standard suite’s static hold (1e-7 m for 1 s, the gears holding the bent links’ weight shift) and loss budget (the links’ damping as power.link_bending) | suite’s | two_way_bending_holds_still_and_balances_the_losses |
Hand calculations: tripod
The 3-RPS tilting table (mechanisms), its default config: rb 0.3 m, rp 0.2 m, legs 0.45 m
retracted, 62.7 kg moving (20 kg platform, 3 x 0.9 kg of legs, 40 kg payload at (0.05, 0, 0.1) m). All in
machine-tripod.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The standard suite | As every machine; its loss-free configs without gravity, as the hexapod’s | – | the_tripod_passes_the_standard_suite |
| Leg lengths | Level at z = 0.54: √(0.54² + 0.1²) = 0.5491812 m, 0.0991812 m out; tilted 0.15 rad about x (p_x = rp (1 − cos 0.15) / 2 = 0.0011229 m): 0.5489779, 0.5750463, 0.5241851 m | 1e-7 m | the_legs_have_the_hand_calculated_lengths |
| The parasitic motion at (0.15, 0.1) rad | Closed form g = −0.0075203 rad, p_x = 0.00061207 m, p_y = −0.00149654 m; second order rp (rx² − ry²)/4, −rp rx ry / 2, −rx ry / 2; each platform joint in its leg’s plane; the normal the pure tilt’s; tilted about x alone the pose error is p_x | 1e-8 m, 1e-7 rad (second order 2e-5 m, 1e-4 rad) | the_parasitic_motion_is_the_hand_calculated_one |
| Forward of inverse | 9³ poses over the working range; legs no pose fits (one 1 m out) refused | 1e-12 | the_forward_kinematics_undoes_the_inverse_over_the_working_range |
| Convergence of the forward kinematics | The chord step’s contraction over the box grown by r = 0.04 m (weighed): at most 0.595 on 17³ points, changing by under 0.07 between neighbours, so below 0.7 | < 0.7 | the_chord_iteration_contracts_over_the_grown_working_range |
| The Jacobian, level | Rows u_z (1, rp sin t_i, −rp cos t_i), u_z = 0.9832820: (0.983282, 0, −0.196656), (0.983282, ±0.170309, 0.098328); condition number √2 (u_z² diag(3, 3/2, 3/2)); below 1.7 at the box’s corners | 1e-6; 1e-9 | the_jacobian_at_the_level_pose_is_the_geometrys |
| Holding a centred load, level | m g / (3 u_z) = 62.7 · 9.80665 / (3 · 0.983282) = 208.4437 N per leg; 0.331749 N m per motor (f lead / 2π) | 1e-3 N, 1e-5 N m | the_legs_hold_a_centred_load_with_the_hand_calculated_forces |
| Holding the offset load, level | Moment balance: centre of mass 0.031898 m out, V_i = m g (1/3 + 2 c cos t_i / (3 rp)), f_i = V_i / u_z: 274.9330 N (leg 1), 175.1991 N (legs 2, 3) | 1e-3 N | the_legs_hold_an_offset_load_with_the_hand_calculated_forces |
| A leg’s force rising at 2 m/s² | m (g + a) / (3 u_z) = 250.9544 N with q’’ = u_z a, from M_q q’’ + h | 1e-3 N | a_leg_pushes_the_hand_calculated_force_for_an_acceleration_along_z |
| Momentum on a compliant base, rising at 0.1 m/s | m v = (0, 0, 6.27) N s, s × v = (0, −0.2, 0) N m s from the payload’s offset, first moment (2.0, 0, 37.858) kg m | 1e-5 | the_platform_has_the_hand_calculated_momentum |
| The new verdicts at their limits | Level: tripod-leg-force the offset load’s forces against 1500 N, tripod-leg-stroke −0.0008188 m against 0.1 m, tripod-revolute-angle −10.4915° and tripod-cone-angle 10.4915° against 30° and 35°, tripod-parasitic 0 against 5 mm; the base joints limited to 10.4° refuse the level pose, 10.5° take it; the cone at 10.4° refuses it; no tolerance, no parasitic check | 1e-7 (forces 1e-3 N) | the_new_verdicts_have_the_hand_calculated_values_and_limits |
| The default cycle | Every verdict passes: legs to 382 N, swing 12.0°, cone 21.6°, pose error 2.87 of 5 mm, settling 3.1 µm of 50 µm | – | the_default_cycle_passes_its_verdicts |
Hand calculations: arm on a track
The six-axis arm on its track (arm-on-track, mechanisms, model reference), rigid and loss-free, the arm stretched across the track (joint 2 at π/2, the others at 0). From urdf/arm-on-track.urdf: Σ m y = 12 · 0.15 + 7 · 0.23 + 4 · 0.60 + 2 · 0.83 + 1.5 · 0.89 + 6 · 0.95 = 14.505 kg m (the payload 0.05 m beyond the flange), Σ m z = 80 · 0.1 + 18 · 0.70 + 12 · 1.15 + 7 · 1.53 + 13.5 · 1.57 = 66.305 kg m above the blocks’ plane, 130.5 kg in all. All in machine-joint-kit; the track’s ratio 10 / (0.002 · 30 / (2 cos 19.5283°)) motor radians per metre.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The arm’s swing on the track | Joint 2 at 3 rad/s²: each mass moves along the track by −3 y, the track pushes −3 · 14.505 = −43.515 N; at rest nothing | 1e-6 | the_track_and_the_arm_act_on_each_other_as_by_hand |
| The track’s acceleration on the arm | Track at 2 m/s²: joint 2 holds −2 · 14.505 = −29.01 N m (motor 2 times 120), the track pushes 130.5 · 2 = 261 N (with the rotor, gearbox and pinion of motor 1 apart) | 1e-6 | as above |
| The guide blocks at rest | Four blocks 0.4 m by 0.5 m: 4 (130.5 g / 4 + g · 14.505 / (2 · 0.5)) = 4 (319.942 + 142.2455) = 1848.75 N | 1e-7 | the_guide_blocks_carry_the_weight_and_the_tilting_moments_by_hand |
| The guide blocks with the track at 2 m/s² | Pitch M_y = 2 · 66.305 = 132.61 N m over 2 · 0.4 m, yaw M_z = 2 · 14.505 = 29.01 N m over 2 · 0.4 m on top: 4 (462.188 + 165.7625 + 36.2625) = 2656.85 N; the rack’s teeth 261 N, the pinion’s shaft 261 · √(1 + (tan 20° / cos 19.5283°)²) = 261 · 1.071978 N | 1e-6 | as above |
| The guide verdicts | guide-load fails with the rating at 0.999 of the cycle’s peak and passes at 1.001; guide-life fails with the required life at 1.001 of what the blocks give | – | the_guide_verdicts_judge_the_track_at_their_limits |
| Tool space with the track | The track exactly where the pose says (1e-12 m) and forward of inverse the pose (1e-9) at 0.3, 1.5, 2.8 and 3.7 m; the flange held while the track moves 0.2 m turns the arm’s base; the machine holds still in tool space | 1e-12, 1e-9 | the_track_is_a_given_axis_beside_the_tool_pose |
| The default cycles | Both pass every verdict: in joints and in tool space | – | every_default_cycle_passes_its_verdicts, the_tool_space_cycles_pass_their_verdicts |
Taken out by hand on 15 November 2026: with the moments dropped from the block loads the guide test fails (1279.77 N at rest against 1848.75 N).
Hand calculations: hexapod with rotary actuators
The six-axis platform on cranks (hexapod-rotary, mechanisms),
on its default config; leg 1 at the level pose (0, 0, 0.4 m): B at 0.5 m and −5°, P at 0.3 m and −55°, d = (−0.573576,
−0.819152, 0). All in machine-hexapod-rotary; the numbers also by an independent numpy script of the same formulas.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The crank angle at the level pose | e = P − B = (−0.326024, −0.202168, 0.4): a = 0.352606, b = 0.4, c = 0.111659, √(a² + b²) = 0.533227; θ = 0.848288 − 1.359832 = −0.5115438 rad for all six (“in”: 2.208120 rad); the rod 0.55 m long | 1e-7 rad | every_crank_has_the_hand_calculated_angle_at_the_level_pose |
| Forward of inverse | Three poses (level, shifted and tilted, a far corner with all three turns); a rod that cannot reach refused | 1e-12 | the_forward_kinematics_undoes_the_inverse_at_three_poses |
| Holding torque, level, centred load | f = (115 + 6 · 0.2) g / (6 u_z) = 209.7935 N, u_z = 0.905281; τ = f m + cos θ g (m_c r_cg + m_rod r / 2) = 39.7772 + 1.7103 = 41.4875 N m, 0.829750 N m at the motor (ratio 50) | 1e-3 N, 1e-5 N m | the_cranks_hold_the_level_platform_with_the_hand_calculated_torque |
| The torque arm at the dead centre | m = r √(a² + b²) sin δ / L: 0.185772 m at z = 0.5 m; zero at z = 0.6378641 m, the root of (w + K)² = 4 r² (a² + w), K = −0.115336; 2 mm lower the pose is refused (error-rss-dead-centre) | 1e-6 m, 1e-5 m | the_torque_arm_goes_to_zero_at_the_dead_centre |
| The inverse Jacobian at the level pose | Row 1 (u, b × u) / m = (−2.167162, −0.568745, 4.774645, −1.173348, −0.821587, −0.630436); the closed form’s slope along z 4.774645 rad/m | 2e-6 | the_jacobian_at_the_level_pose_is_the_hand_calculated_one |
| A heave of 1 m/s² from rest | θ’’ = 4.774645 rad/s²; the rods’ compression + 21.3807 N; at the crank 0.095493 + 0.037088 + 4.053815 = 4.186396 N m; at the motor / 50 plus 1.1e-4 · 50 · θ’’ = 0.109989 N m | 2e-5 N m | a_heave_acceleration_takes_the_hand_calculated_torque |
| A rod’s Euler load | π² E I / L², I = π (0.02⁴ − 0.016⁴) / 64 = 4.636991e-9 m⁴, E 70 GPa, L 0.55 m: 10590.31 N, over 3: 3530.10 N | 0.01 N | the_rods_buckle_at_the_hand_calculated_euler_load |
| The new verdicts | At the level pose the rod 18.5567° from the crank’s tangent, 15.9463° out of the crank’s plane, 25.1388° from the platform’s normal; crank-dead-centre, rod-buckling, crank-ball-joint, platform-ball-joint pass at their limits (70°, 3530.10 N, 35°, 40°) and fail 1e-9 beyond | 1e-4° | the_new_verdicts_pass_at_their_limits_and_fail_beyond |
| Virtual work against Newton-Euler | Off centre, moving and accelerating: each crank’s M θ’’ + h equals J_c θ’’ + its weight + the rod’s lower node t · m (a − g) + f_i m_i with the rods’ forces from the platform’s side | 1e-9 | the_virtual_work_agrees_with_the_forces_along_the_rods |
Hand calculations: picking from a conveyor
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Intercept time of a trapezoidal move (v_max 2 m/s, a 20 m/s², jerk 1e9) from rest at 0 to a part at 1 m moving at 0.5 m/s | The root of the quadratic of T = D / v′ + v′ / a′, D = 1 + v T / 2, v′ = 1.5 m/s, a′ = a − 1.5 v / T: 0.89395 s | 1e-5 s | the_intercept_of_a_trapezoidal_move_is_the_closed_form, conveyor (unit) |
| Arrival on the part, speed and limits on the way | The part’s pose and speed, the axis limits | 1e-9 | the_tool_arrives_on_the_part_with_the_belts_speed_within_its_limits, conveyor (unit) |
| Plan during the grip; when it begins | The part’s pose and the belt’s speed; the part at the window’s start, 0.5 m at 0.5 m/s: 1 s | 1e-9; 1e-6 s | during_the_grip_the_plan_moves_with_the_part, conveyor (unit) |
| Parts beyond the window or out of reach | Parts at 0, 2 and 4 s are 2.5, 1.5 and 0.5 m on at 5 s, the window ending at 1 m: two missed; a place out of reach: all missed | exact | a_part_beyond_the_window_counts_as_missed, a_part_out_of_reach_counts_as_missed, conveyor (unit) |
| Picks a minute of the D3 example | 60 / cycle time; the passes a pitch apart, 1 s: 60 a minute, none missed | 1e-12; 1 ms | the_example_picks_a_part_each_pitch_and_misses_none, conveyor |
| The D3’s speed along the belt during the grip, measured | 0.3 m/s ± tolerance / grip time = 0.0286 m/s; the plan exactly 0.3 m/s | as said | during_the_grip_the_tool_moves_along_the_belt_at_its_speed, conveyor |
| Parts missed a minute at a part every 0.5 s | At least 120 − picks a minute | – | a_belt_faster_than_the_picks_misses_parts, conveyor |
| RMS torque of a belt pick at 0.3 m/s against a stationary pick, single axis with inertia alone | sqrt of the ratio of ∫a² dt of the bang-bang moves with the reduced acceleration plus 1.2 v² / T per blend: 0.8876 (measured 0.8877) | 0.02 | a_belt_pick_changes_the_rms_torque_by_the_hand_estimated_share, conveyor |
| Belt, slats and parts in the scene; an obstacle at the place | 1 band, 10 slats, part 0 at 0.15 m at 0.5 s; collision fails | 1e-9 m | the_scene_draws_the_belt_its_slats_and_its_parts, an_obstacle_at_the_place_fails_the_collision_check, conveyor |
Hand calculations: pneumatic cylinder
The cylinder of sim_components::pneumatic (unit tests there, a DSBC-32-like cylinder: A1 = 8.0425e-4 m², A2 =
6.9115e-4 m², 0.5 kg, 6 bar gauge) and the pneumatic Z of machines/pneumatic-axis.toml (tests in
sim-machines/tests/pneumatic.rs).
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Theoretical force at 6 bar, extending and retracting | p_g A1 = 482.55 N, p_g A2 = 414.69 N (Festo prints 483 and 415 N; the catalogue check holds every DSBC size to p A) | 1e-5 | the_theoretical_force_is_p_a_on_both_sides |
| Choked and subsonic mass flow through C = 1 l/(s bar), b = 0.3; two elements in series | C p ρ0 = 8.3107e-3 kg/s from 7.013 bar; ψ(0.65) = 0.86603; C_s = 2^(−1/3) C, b_s = 1 − C_s²/C² (1.4) | 1e-5 | the_flow_through_a_conductance_is_choked_below_b_and_elliptic_above |
| Steady speed of a meter-out throttled cylinder, C = 0.1 l/(s bar), 50 N load | v = C ρ0 R T0 / A2 = 0.14428 m/s, whatever p2 while choked (p2 = 7.27 bar) | 1 % | a_meter_out_throttled_cylinder_runs_at_the_choked_flow_s_speed |
| The same in the machine file: Z extending downwards with its seals and the payload | C_s = 0.14943 l/(s bar) (throttle, valve, tube in series): 0.2156 m/s | 3 % | the_servo_x_and_the_pneumatic_z_run_their_cycle |
| Natural frequency on the two air springs at mid-stroke, closed centre | sqrt(n (p1 A1²/V1 + p2 A2²/V2) / m) / 2π: adiabatic (n = 1.4) 29.64 Hz, isothermal limit (500 W/K, n = 1) 25.05 Hz | 2 % | the_air_springs_ring_at_the_hand_frequency_adiabatic_and_isothermal |
| Air for a double stroke, long dwells | Σ (p_s (V0 + A s) − p_atm V0) / (R T) = 1.31757e-3 kg, 1.1119 normal litres (ANR) | 0.5 % | a_double_stroke_draws_the_hand_air_consumption |
| Filling a closed 49 cm³ chamber, adiabatic, while choked | t = (b p_s − p_atm) V / (κ R T ṁ) = 2.555 ms (C 0.9615 l/(s bar), b 0.2142) | 0.5 % | filling_a_closed_volume_takes_the_closed_form_time_while_choked |
| Energy of a closed cylinder (both chambers shut, adiabatic, no friction, stops undamped), vertical, 1 s | U1 + U2 + kinetic + gravity + the atmosphere’s work on the rod + the stops’ springs: constant | 1e-9 of U | a_closed_cylinder_keeps_its_energy |
| Balance of the open cylinder over an extend and a retract stroke with seals, cushions and heat transfer | Δ(energy) = enthalpy from the supply − to the exhaust + heat from the wall − seal and damper work, each integrated as a state | 1e-6 of the enthalpy drawn | the_enthalpy_flows_balance_the_energy_of_an_open_cylinder |
| Step convergence: stroke time at the sub-step 15.6 µs and half of it; the machine file’s stroke times at 4 and 8 sub-steps | the same | 1 % | the_stroke_time_converges_with_the_step, halving_the_step_leaves_the_stroke_time |
| Checks of the shipped cycle | Impact energy ½ · 1.0 kg · 0.2156² = 0.023 J (within 30 %: the piston still swings about its steady speed) against 0.4 J; load factor 9.807 N / 414.7 N = 0.0236 against 0.7; a rating of 0.01 J fails | as said | the_cylinder_s_checks_are_judged |
| A cylinder too stiff for the step | refused with error-cylinder-unstable (1e-9 m³ dead volume) | – | a_cylinder_too_stiff_for_the_step_is_refused, ..._in_a_file |
Hand calculations: winder with dancer
The winder of machine-winder (tests in its src/tests.rs): PET film 50 µm × 0.4 m, 1390 kg/m³, EA = 80 kN; rolls
from r_c = 45 mm to r_f = 150 mm, core and shaft 0.01 kg m²; gearbox i = 7, rotor and gearbox input 8.8e-4 kg m²; spans
of 1 m; dancer 4 kg plus 2 kg, roller R = 40 mm, J_d = 2e-3 kg m², air spring 1000 N/m; tension 100 N at the core,
taper 0.3.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Radius after a wound length of 640 m; the angles; the roll’s capacity | r² = r_c² + h L / π: rewind 0.1105030 m, unwind 0.1109688 m; φ = 2 L / (r_0 + r): 8231.352 and 4904.800 rad; π (r_f² − r_c²) / h = 1286.482 m; forward of inverse, the dancer’s trim in the unwind’s wound length | 1e-7 m, 1e-3 rad, 1e-9 m | the_radius_after_a_wound_length_matches_the_hand_calculation |
| Roll inertia at a radius; inertia ratio | ½ ρ w π (r⁴ − r_c⁴) + J_core: 0.1366427 kg m² at 110.503 mm, 0.4485586 full; ratio over i² J_m: 10.4026 full, 0.2319 on the core | 1e-7, 1e-4 | the_roll_inertia_at_a_radius_matches_the_hand_calculation |
| Steady torque for a tension through the ratio, holding and feedforward | T r / i: −2.142857 and 0.642857 N m at the roll’s start (100 N), −0.507857 and 1.692857 N m at its end (taper 79 N) | 1e-6 N m | the_steady_torque_for_a_tension_through_the_ratio_matches_the_hand_calculation |
| Torque to speed the line up by 2 m/s² at 640 m, with the tension | ((J + i² J_m) (a ∓ h ω² / 2π) / r ± T r) / i, T = 82.21686 ∓ 1.25 N (the roller’s J_d a / 2R²): rewind 1.7824107 N m at rest, 1.7818049 at 2 m/s; unwind −0.8150135, −0.8144080; the rigid model under them accelerates the line at 2 m/s² with the dancer at rest | 1e-6 N m, 1e-9 m/s² | the_torque_to_accelerate_the_line_matches_the_hand_calculation |
| A span’s steady tension for a speed difference, 1 against 1.0005 m/s, unwind wound slack | EA (v2 / v1 − 1) = 40.000 N in both spans (the first-order span equation gives 39.980 N) | 1e-6 N | a_span_settles_at_the_tension_of_its_speed_difference |
| The dancer’s static position for a tension and a load: cylinder set for 120 N, rolls held at 100 N | (2 · 120 − 2 T) / k_air with T = 100 r0 / (r0 − 2.88 µm) = 100.0026 N: 39.9948 mm | 2e-7 m | the_dancer_settles_where_the_web_carries_its_load |
| Natural frequencies and damping on the web’s stiffness | sqrt((2 EA / L + k_air) / m) / 2π = 26.0710 Hz, ζ = 0.026454; the roller sqrt(R² 2 EA / L / J_d) / 2π = 56.9410 Hz | 1e-4 Hz | the_dancer_frequency_on_the_web_stiffness_matches_the_hand_calculation |
| Conservation of web length over a 3 m run | paid out / (1 + ε_0) = taken up (trapezoid of the rewind’s flow) + Δ(M1 + M2) | 1e-7 m | the_web_that_leaves_the_unwind_arrives_at_the_rewind_or_stays_in_the_spans |
| Round trip and static hold at a radius | at L = 0, a quarter and the capacity: still for 1 s under the holding torques | 1e-7 m (line), 1e-9 m (dancer) | the_winder_holds_at_rest_at_both_ends_of_the_roll |
| The draw and the dancer’s loop: roll wound at 100 N, web at 80 N, 2 m/s | without the loop y’ = v (ε − ε_0) / (2 (1 + ε_0)) = −0.24969 mm/s; with it the trim settles at 0.49938 mm/s and the dancer stands | 1 % | the_dancer_loop_takes_out_the_draw_of_a_roll_wound_at_another_tension |
| The own verdicts on the shipped cycle (4 m/s²) | inertia ratio 10.4026; speed at the core 7 · 2 / 0.045 = 311.11 rad/s; tension’s torque at the full roll with the roller’s J_d a / 2R² = 2.5 N: (100 + 2.5) 0.15 / 7 = 2.1964, (79 + 2.5) 0.15 / 7 = 1.7464 N m; each fails with its rating just below | 1e-4, 0.05 rad/s, 0.01 N m | the_own_verdicts_judge_the_cycle_and_fail_at_their_limits |
| Emergency stops from 2 m/s | category 2 at both ends and in the middle, category 1 in the middle: web between 30 and 250 N, dancer within 40 mm, standing after 0.5 s (4 m/s²) and 2.0 s (the OFF3 ramp, 0.99 m/s²); category 1 near the ends: the surfaces part at 1.346 − 0.404 m/s², the dancer meets its stop after sqrt(2 · 0.05 / 0.471) = 0.46 s, the web above 250 N; category 0: slack | 0.05 s | an_emergency_stop_along_the_line_keeps_the_web_within_its_limits, a_stop_on_each_drives_own_ramp_overloads_the_web_where_the_radii_differ |
The standard suite runs on its four loss-free configs (rigid and elastic, with and without the dancer’s weight; the
taper off, as it feeds energy in through the cylinder) in the middle of the roll: there the radii are equal, the
tension the suite’s constant holding torques keep stays at the tension the unwind was wound at, and the strain the web
carries in equals the strain it carries out. At the roll’s start the radii part as the rolls turn, the tension drifts
off the wound tension, and the elastic runs lose 0.36 % of the pulse’s energy over the 10 s, exactly what
power.web_transport books (the loss budget of the default config, at the roll’s start, closes with it).
Of the standard suite, round trip, static hold, determinism, energy conservation, the loss budget and step convergence
run on machines/pneumatic-axis.toml as on every machine file (every_machine_file_passes_the_standard_suite); they
pulse the servo X, and the cylinder rests in its end stop, so they check that it does rest there exactly
(the equilibrium is the stop’s deflection under the net pressure force). For the cylinder itself energy conservation
does not apply (it is fed by the supply): the closed-cylinder check and the enthalpy balance above take its place, and
the stroke-time convergence that of the travel.
Hand calculations: toggle press
The knuckle-joint press toggle-press of machine-crank-cam (tests in its src/toggle_tests.rs): links a = b =
0.15 m, crank r = 0.05 m at 120° from the rod at the dead centre, rod c = 0.25 m, the crank’s centre at (0.275,
−0.1933013) m from the top pivot. The independent numbers come from a circle intersection for the knee, the ram by
Pythagoras and central differences for the rates, not from the closed-form chain of toggle.rs.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Ram and ratio at three crank angles and the dead centre | −90°: knee (0.0709256, −0.1321724), φ = 0.4925083, x = 0.2643449 m (35.655 mm above the bottom dead centre), x’ = 0.0364766 m/rad; −20°: x = 0.2982085 m, x’ = 0.0108256; −2°: x = 0.2999844 m, x’ = 0.00090095; 0°: x = a + b, x’ = 0, φ’ = D·P_q / D·K_φ = −r sin(t0) / a = −0.2886751 (D = (−c, 0)), x’’ = −(a + a²/b) φ’² = −0.025 m/rad²; every rate the difference of its position, through the dead centre too | 1e-7 | the_toggle_kinematics_match_the_hand_worked_linkage |
| The inverse’s two branches | 1 mm above the bottom dead centre cos φ = x / 2a = 0.9966667, φ = ±0.0816724: the crank at −0.2646374 rad before, as far past after; 0.1 mm: −0.0871754 rad; the round trip over the stroke; beyond the links’ reach none | 1e-7, 1e-8 | the_inverse_has_a_branch_on_each_side_of_the_dead_centre |
| The force amplification | 10 N m of the motor through 10, loss-free: 100 N m at the crank hold 100 / x’ = 2741.48 N at −90° and 42530.15 N at −5°, 15.5 times as much | 1e-3 N m | the_toggle_amplifies_the_crank_torque_towards_the_dead_centre |
| Holding torque of 10 kN | F x’ at the crank: 79.3873 N m 1 mm before the dead centre (8.18 N m at the motor), 23.4866 N m 0.1 mm before it, 0 at it | 1e-3 N m | the_holding_torque_falls_towards_the_dead_centre |
| The frame’s stretch (5e7 N/m) | 20000 / 5e7 = 0.4 mm under the rated force, the frame-deflection limit; at the dead centre the table’s 12000 N − 2e6 N/m · F / k: F = 12000 / 1.04 = 11538.46 N, the ram 0.230769 mm short of the links’ bottom (signals ram.height, frame.deflection); rigid 12000 N at the bottom | 1e-3 N, 1e-9 m | the_frame_stretches_under_the_press_force_and_the_ram_stops_short |
| Reflected inertia | J = J_crank + m_pin r² + (m_up/3 + m_knee) a² φ’² + m_x x’²: 0.01 + 0.003125 + 2.9166667 · 0.0225 / 12 = 0.01859375 kg m² at the dead centre, 0.05605024 at −90°; the speed term dJ/dq q’² / 2 and gravity’s dV/dq by differences | 1e-9, 1e-7 | the_reflected_inertia_far_from_and_at_the_dead_centre_match_the_hand_calculation |
| Force capacity and link forces | 15 N m · 10 · 0.97 = 145.5 N m at the crank: 3988.85 N at −90°, the rated 20 kN at −5°, the capacity’s use 1 at its limit; at the dead centre both links carry F, the rod nothing; at −20° the rod’s torque about the crank’s centre is −F x’ = −108.256 N m (virtual work) | 1e-3, 1e-6 | the_force_capacity_and_the_link_forces_match_the_hand_calculation |
| A forming force early in the stroke | The 12 kN table 20 mm up asks about 380 N m of the crank’s 145.5: press-capacity and motor-peak fail | – | a_forming_force_early_in_the_stroke_overloads_the_drive |
| The dwell at the dead centre | The press force 11538 N held while the motor gives under a tenth of the 9.44 N m it would take 1 mm before the dead centre | 5 N; 10 % | the_toggle_holds_the_press_force_at_the_dead_centre_with_little_motor_torque |
| Energy of a forming stroke | Into the part 22 J (the table’s area) less 12000 u − 1e6 u² over the last u = 0.2308 mm, 19.284 J; into the frame F² / 2k = 1.331 J; 20.615 J; the motor’s Σ τ Δφ from rest 5.5 mm above to rest at the dead centre, rigid and loss-free | 1 % | a_forming_stroke_takes_the_hand_worked_energy_from_the_motor |
| Friction feedforward from the model | (1 N m + 0.2 · 2 rad/s) / (10 · 0.97) + 0.05 + 2e-4 · 20 = 0.1983299 N m | 1e-6 | the_steady_friction_is_the_hand_calculated_one |
| Standard suite, verdicts | The suite (with gravity: the middle of the crank’s range lies where the ram’s weight pulls towards the dead centre, stable); the shipped cycle and toggle-press-cam.toml pass every verdict | suite’s | toggle_press_passes_the_standard_suite, every_default_cycle_and_every_cam_passes_its_verdicts |
Hand calculations: indexing table
The rotary indexing tables geneva-drive and cam-indexer of machine-crank-cam (tests in its
src/indexer_tests.rs). The Geneva’s numbers come from the textbook closed forms (the peak acceleration where
cos x = sqrt(k² + 2) - k, k = (1 + lambda²) / (4 lambda)), the code’s from a grid of 200001 points over the index.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Geneva’s motion share and dwell share, n = 4, 6, 8 | (n - 2) / (2n) = 1/4, 1/3, 3/8 and (n + 2) / (2n) = 3/4, 2/3, 5/8 | 1e-12 | the_geneva_s_dwell_share_and_peak_speed_and_acceleration_ratios_match_the_textbook |
| Geneva’s peak speed ratio | lambda / (1 - lambda) = 2.41421356, 1, 0.61991440 | 1e-8 | same |
| Geneva’s peak acceleration ratio | 5.406981, 1.349637, 0.699757 (at 11.46°, 22.90°, 31.64°; the textbooks’ 5.41, 1.35, 0.700) | 1e-5 | same |
| The step at the pin’s entry | phi’’ from 0 to tan(pi / 6) = 0.57735; on the shipped table at 60 turns a minute the wheel’s torque 0.55 · 0.57735 · 39.4784 = 12.536 N m, the pin’s force over C cos(pi / 6) = 0.103923 m 120.63 N, the crank’s torque 0 | 1e-3 N m, 1e-2 N | the_geneva_s_acceleration_jumps_at_the_pin_s_entry_and_the_torque_on_the_wheel_with_it |
| Modified sine | peak acceleration 4 pi² / (4 + pi) = 5.527957, peak speed 4 pi / (4 + pi) = 1.759603, s, s’, s’’ continuous at 1/8 and 7/8 | 1e-6 | the_modified_sine_s_peak_acceleration_is_5_53_and_its_peak_speed_1_76 |
| Cam indexer’s peaks over 120° | 1.047198 · 5.527957 / 2.094395² = 1.319707, 1.047198 · 1.759603 / 2.094395 = 0.879802 | 1e-5 | the_cam_indexer_s_peaks_are_the_modified_sine_s_over_its_index_angle |
| The table’s ring after an index (the table side, 0.52 kg m², twisting against the wheel the drive holds: w_n = sqrt(2e5 / 0.52) = 620.17 rad/s, zeta 0.03) | Geneva: the exit step 22.794 rad/s² over w_n² = 5.927e-5 rad, settled to 5e-5 rad in ln(5.927 / 5) / (0.03 · 620.17) = 9.1 ms, 83.7 ms at twice the speed; cam: its jerk 1964.1 rad/s³ over w_n³ = 8.23e-6 rad | 3 %, 2 ms, 3 ms; 5 % | the_geneva_leaves_the_table_ringing_by_its_acceleration_step_and_the_cam_indexer_does_not |
| Energy, step convergence, determinism | the standard suite | as for every machine | geneva_drive_passes_the_standard_suite, cam_indexer_passes_the_standard_suite |
The redundant arm’s kinematics.redundancy = "joint_limits" (machine-joint-kit): on the seven-axis URDF the pose is
reached to 1e-9, the weighted offset from the ranges’ middles has no part along the null space (below 1e-6), its
weighted sum is below the home solution’s, and the machine built with the key solves the same joints
(the_seven_joint_arm_can_spend_its_spare_joint_on_staying_off_its_stops). Its dynamics are the seven-axis URDF’s,
compared with MuJoCo above (seven_axis_arm_matches_mujoco); the option changes only which joints solve a pose.
Hand calculations: overhead crane
The crane of machine-overhead-crane (tests in its src/tests.rs): sheave at H = 5 m, hook 15 kg and payload 250 kg
(m g = 2598.762 N), rope EA = 1.44e6 N; the trolley 120 kg, its motor and gearbox input 1.34e-4 kg m² at 500 rad/m; the
hoist 40:1 on an 80 mm drum (500 rad/m).
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| The rope at rest on 4 m: tension, free length, stretch, elastic energy, the drum’s pull and the hoist’s holding torque; the brake’s check | t = m g = 2598.762 N; the drum at the pose’s free length l = 4 / (1 + 15 g / EA) = 3.999591 m, the load on it L = l (1 + m g / EA) = 4.006809 m, e = 7.2180 mm; t e / 2 = 9.3790 J; t (1 + e / (2 l)) = 2601.107 N, / 500 = 5.20221 N m; 12 N m / 1.6 = 7.5 N m | 1e-3 N, 1e-6 m, 1e-4 J, 1e-5 N m | the_static_stretch_tension_and_holding_torque_are_the_hand_calculated_ones |
| The payload’s own stretch below the motors’ pose (they count on the empty hook’s), the tool pose, the setpoint slack | 4 m (s / s_h − 1) = 6.8095 mm on 4 m; forward and tool_state give the pose; 4.5 m × 250 g / EA + 0.1 mm = 7.762 mm | 1e-7 m, 1e-12 m, 1e-6 m | same test |
| The sway’s period, small amplitude, the pose 3 m below the sheave (L = 3.005107 m with the payload’s stretch) | Trolley braked: 2π √(L / g) = 3.47816 s; trolley free: two masses, 3.47816 / √(1 + 265 / 153.5) = 2.10647 s (153.5 kg the trolley with its rotor at the rail) | 2e-4 relative | the_sway_period_is_the_hand_calculated_pendulum_s |
| The energy budget of a loss-free lift, 265 kg from the pose z = 1 to 3 m | m g h with h = 2.00340474 m (the load hangs 6.8095 mm below the pose on 4 m, 3.4047 mm on 2 m) = 5206.373 J, less the rope’s t e / 2 at 4 m and 2 m (9.3790 − 4.6895 J): 5201.683 J; the motors’ work ∫ T ω dt equals the machine’s energy gained | 1e-4, 1e-3 | a_loss_free_lift_takes_the_hand_calculated_work |
| Signals at rest, the pose 2 m below the sheave | rope.tension 2598.76 N, rope.length 2.0034047 m, hoist.brake_load and the hoist’s gravity torque 5.2 N m, energy.elastic 4.6895 J | 0.5 N, 1e-6 m, 0.01 | the_signals_at_rest_are_the_hand_calculated_ones |
| Input shaping against the sway | A travel on 2 m of rope: the ZVD leaves under a tenth of the unshaped sway (0.072 m unshaped, 3e-5 m shaped). Hoisting from 4 to 2 m while travelling 7 m: following the rope’s length 0.012 m, under a third of a ZVD set for either end’s length (0.047, 0.041 m), under a tenth of unshaped (0.43 m) | as stated | the_shaper_cancels_the_sway_and_following_the_rope_length_beats_a_fixed_period |
| The default cycle | Shaped, every verdict passes, the rope within 7 % of the load’s weight and never slack; unshaped, residual-sway fails | as stated | the_default_cycle_passes_with_the_shaper_and_leaves_the_load_swinging_without |
Friction feedforward in the shipped configs
sim-cli analyze of every shipped config with effects.friction_feedforward = false and with it on and drive.friction_feedforward_model = "machine" (15 November 2026, re-run 17 November after the stage of modelled effects, and on 21 November 2026 after the screw and rack damping, the screw stiffness that follows the nut, the T-gantry’s belt runs’ weight and the XYZ portal’s Z belt loop, and on 26 November 2026 after the stops cut finer, the retuned gains and the margins measured without the encoders’ rounding (the linear motor axis, the six-axis arm with its tool-space config and the palletiser again on 28 November, after the retuned gains and the gear cuts without mesh friction): sim-cli analyze ID [--config FILE | --machine-file FILE] --set effects.friction_feedforward=false, and =true --set 'drive.friction_feedforward_model="machine"'): the following error while moving (tracking_error_peak, the tool’s distance from the setpoint; _angle_ for the axes in rad) and the settling at pick and place (dwell_error_peak, the second half of the dwells). Place in um, turn in mrad; “–” where the machine has none (no dwell in a conveyor or cam cycle). On marks where it is switched on as shipped. The velocity loop’s margins do not change with a feedforward (sim-cli margins gives the same figures with it on and off), so every config keeps the margins it was tuned to: sim-cli margins MACHINE --bands of every config switched on gives (26 November) the rotary knife 42.6° and 10.03 dB, the T-gantry 49.6° and 9.09 dB, the D4 45.9° and 8.92 dB (45.6° and 10.98 dB, 46.2° and 8.38 dB, 45.9° and 8.92 dB on 17 November; 35.8° and 8.0 dB, 48.9° and 8.63 dB, 40.4° and 8.92 dB on 15 November; the other configs not re-run).
| Config | Following off → on | Settling off → on | On |
|---|---|---|---|
| T-gantry | 201.5 → 181.2 | 48.8 → 43.0 | yes |
| T-gantry conveyor | 679.0 → 666.5 | – | yes |
| T-gantry EXCT-30 | 543.3 → 519.6 | 40.5 → 35.4 | yes |
| Single axis | 201.1 → 126.3 (characteristic 118.5) | 20.8 → 42.5 (characteristic 38.8) | no |
| D3 | 1460 → 1130 | 305.2 → 179.3 | yes |
| D3 conveyor | 1428 → 1194 | – | yes |
| D2 | 1061 → 1046 | 369.6 → 210.5 | yes |
| D2 conveyor | 1119 → 1080 | – | yes |
| D4 | 3655 → 3438; 5.831 → 5.371 mrad | 387.9 → 308.8; 0.192 → 0.187 mrad | yes |
| D4 conveyor | 3156 → 3046; 3.320 → 2.860 mrad | – | yes |
| H4 | 2477 → 2304; 24.51 → 26.54 mrad | 435.9 → 366.1; 3.589 → 3.043 mrad | no (turn follows worse) |
| Linear delta | 700.4 → 334.0 | 73.5 → 109.8 | no |
| Linear delta conveyor | 730.5 → 371.8 | – | yes |
| Parallel SCARA | 1012 → 1039; 4.702 → 1.131 mrad | 334.7 → 239.5; 0.760 → 0.095 mrad | no (place follows worse) |
| Screw axis | 79.9 → 31.1 | 45.2 → 7.4 | yes |
| Rack axis | 118.4 → 50.3 | 61.7 → 7.9 | yes |
| Linear motor axis | 56.5 → 45.0 | 29.5 → 8.0 | yes |
| Rotary table | 2.584 → 2.506 mrad | 0.0341 → 0.0224 mrad | yes |
| Six-axis arm (joints) | 4.286 → 4.291 mrad | 2.053 → 2.044 mrad | no (gain under 3 %; its tool-space configs follow worse) |
| Arm, 5- and 7-axis arm in tool space | 5673 → 5665, 6154 → 6136, 5868 → 5855; 7.649 → 7.695, 7.940 → 7.988, 7.920 → 7.960 mrad | 2330 → 2315, 2301 → 2285, 2309 → 2283; 3.139 → 3.226, 2.892 → 3.004, 3.072 → 3.147 mrad | no |
| SCARA | 166.5 → 28.6; 1.776 → 1.701 mrad | 70.9 → 8.3; 0.270 → 0.080 mrad | yes |
| SCARA in tool space | 542.5 → 512.8; 1.566 → 1.264 mrad | 84.3 → 30.6; 0.0215 → 0.0020 mrad | yes |
| Palletiser | 5794 → 5793; 2.636 → 2.527 mrad | 2185 → 2182; 0.0017 → 0.0016 mrad | no |
| Slider crank (and cam) | 4.444 → 4.467 mrad (2.265 → 2.269) | 0.134 → 0.047 mrad | no |
| Rotary knife | 11.15 → 10.89 mrad | 0.214 → 0.061 mrad | yes |
| Rotary knife cam | 5.359 → 5.362 mrad | – | yes (as the rotary knife: the cam configs are the shipped one running its cam) |
| Flying saw (and cam) | 381.4 → 369.6 (428.9 → 342.1) | 179.9 → 25.7 | characteristic, as before: 369.3 and 26.3 (341.9) |
| Disc cam | 0.319 → 0.232 mrad | 0.228 → 0.024 mrad | yes |
| Disc cam cam | 0.158 → 0.158 mrad | – | yes |
| Hexapod | 25.4 → 11.0; 0.077 → 0.025 mrad | 15.5 → 1.3; 0.034 → 0.004 mrad | yes |
| Planar cable robot | 714.2 → 649.9 | 157.7 → 148.5 | yes |
| Spatial cable robot | 297.7 → 204.5; 1.441 → 1.672 mrad | 36.7 → 35.7; 0.722 → 1.030 mrad (the turn follows and settles worse with it) | yes |
The machine files (machines/*.toml, sim-cli analyze --machine-file) by the same rule. The T-gantry, D3 and planar delta files are their crates’ machines and follow their configs (on); the single axis’s stays off as its crate’s. The netlist machine tells the same steady friction as the crate it mirrors, to 1e-9 (the_netlist_machines_are_their_crates).
| Machine file | Following off → on | Settling off → on | On |
|---|---|---|---|
t-gantry.toml (no frame, no leaning Z) | 119.1 → 106.7 | 47.5 → 41.7 | yes |
delta-d3.toml, planar-delta.toml | as the D3 and D2 above | yes | |
screw-portal.toml | 189.2 → 154.9 (143.5 → 99.5 before its X and Y belts were loops round their far idlers, 22 November) | 32.8 → 27.3 (31.3 → 22.1) | yes |
xyz-portal.toml | 189.0 → 159.4 (142.7 → 107.3 before its X and Y belts were loops, 141.9 → 104.4 before its Z belt was, 21 November) | 31.7 → 27.5 (30.6 → 22.7, 29.9 → 22.3) | yes |
corexy.toml | 77.0 → 49.1 | 15.6 → 22.0 | no |
h-bot.toml | 121.8 → 111.2 | 13.2 → 18.9 | no |
dual-gantry.toml | 169.6 → 112.4 (165.5 → 109.8 before its Y belt was a loop, 21 November) | 16.1 → 37.9 (10.2 → 31.7) | no |
rack-gantry.toml | 82.3 → 57.5 (81.6 → 56.8 before its Y belt was a loop) | 16.7 → 24.6 (14.6 → 22.2) | no |
portal-c.toml | 253.1 → 231.7; 0.590 → 0.601 mrad (177.4 → 144.9; 0.576 → 0.588 before its belts were loops) | 34.9 → 27.7; 8.0e-5 → 7.3e-5 mrad (34.0 → 23.6; 7.3e-5 → 8.0e-5) | no |
five-axis.toml | 231.9 → 152.7; 0.150 → 0.154 mrad (201.1 → 132.1; 0.151 → 0.155) | 35.3 → 36.3; 0.055 → 0.059 mrad (33.6 → 32.3) | no |
five-axis-table.toml | 211.9 → 130.4; 0.088 → 0.099 mrad (189.0 → 112.6) | 32.1 → 38.2; 0.022 → 0.010 mrad (30.3 → 34.3) | no |
induction-lift.toml | 284.6 → 291.5 | 217.9 → 202.8 | no |
stepper-axis.toml, pneumatic-axis.toml, scissor-lift.toml | unchanged (15.2 to 206.2) | unchanged | no |
Where it settles worse (the single axis, the linear delta: belt axes whose guides have a LuGre contact), the cause is not worked out; the single axis does the same with its shipped characteristic, so it is not the machine model’s value. The guides’ feedforward fades in over their Stribeck speed (Lugre::feedforward), so that a stop puts no torque step on the axis (the plain steady value changed the figures above by under 10 %). The arm’s joints, the slider crank and the palletiser’s place change by under 3 % (the palletiser’s turn by 4 %).
Vendor formulas and vendor documents
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Motor torque of the EXCT-30 config at 45 degrees travel, from the simulator’s rigid model | Festo’s torque formula with the catalogue’s coefficients, for several accelerations and loads | 2 % | exct_30_config_agrees_with_the_catalogue, gantry |
The [catalogue] values of exct-30.toml | catalog/festo/belt_axes.csv, belt_axis_torque_formula.csv and catalog/siemens/motors_s210.csv | 0.1 % or exact | the same test |
| Festo’s formula coefficients | The T-gantry’s own mechanics from the pulley diameter | 1 % to 3 % | festo_exct_values_agree_with_its_own_geometry, catalogue validator (catalog/tools/cataloglib/checks.py) |
| 1FK2 data from the S120 configuration manual | The same motors in the S210 catalogue, read by another script | 5 % to 6 % | siemens_1fk2_data_agrees_between_the_s120_manual_and_the_s210_catalogue, catalogue validator (catalog/tools/cataloglib/checks.py) |
| 1FT2 data from the S120 configuration manual | The same motors in the S210 catalogue | 5 % to 6 % | siemens_1ft2_data_agrees_between_the_s120_manual_and_the_s210_catalogue, catalogue validator (catalog/tools/cataloglib/checks.py) |
| 1FK7 and 1FT7 data sheets | Catalogue D 21.4: pole count; torque constant = static torque / stall current | Exact; 8 % | siemens_s120_data_sheets_agree_with_the_catalogue, catalogue validator (catalog/tools/cataloglib/checks.py) |
| The data sheets in themselves | Voltage constant against torque constant; L / R against the electrical time constant | 15 % | the same test |
| All other catalogue files | Their own physics; see catalogue | Per test | catalog |
| A motor and a gearbox by name | The same values put in by hand | Identical machine | a_motor_by_name_gives_the_values_of_the_hand_written_config, a_gearbox_by_name_sets_ratio_stiffness_backlash_and_ratings, parts_named_in_a_config_behave_like_their_numbers, catalog |
| Velocity gain the search gives a lighter motor | The gain by hand, 0.6 → 0.31 | Per test | the_search_retunes_the_velocity_loop_for_a_lighter_rotor, catalog |
| What the gearbox search rules out by catalogue numbers | Ratios 7 and above for a 3000 r/min motor, by hand; each runs above its rated speed when simulated | Exact list | the_gearbox_search_rules_out_by_catalogue_numbers_only_what_would_fail, catalog |
| The axis EXCT-30 by name | The hand-written exct-30.toml: pulley, strokes, Z mass 4.7 kg, Festo’s EA, AT5 at 30 mm (2140 N, 97.86 g/m interpolated by hand), 10 teeth in mesh, 12.5 N m; the carriage fitted again 7.136 kg against 7.16 kg; the machine’s torque at 45 degrees against Festo’s formula | 0.1 %, exact; carriage 0.5 %; torque 2 % | an_axis_by_name_gives_the_numbers_of_the_hand_written_exct_30, catalog_parts |
| Bahr axes by name | ELZI 40: carriage 7.0 − 2.4 kg, Z 2.4 kg, radius 160 mm / 2π, EA 1805 N / 0.004, 16 teeth in mesh, 1000 N × r at the pulley; ELZ 60 on the single axis; wrong kind, too short a stroke and an unknown name refused | 1e-9 | bahr_axes_by_name_bring_the_sheets_moved_masses_pulley_and_belt, catalog_parts |
| A belt by name | AT5-25 as printed; MTD8-12 two fifths between 10 and 15 mm; AT10-10 as 10/16 of the 16 mm row | 1e-9 | a_belt_by_name_is_the_megadyne_row_or_between_two, catalog_parts |
| The drive’s current checks | RMS 3.2 A against 5 A is 0.64, peak 12.4 A against 19 A is 0.653; both fail against the 1.2 A and 4.2 A converter; the checks read the cycle’s own currents | 1e-12 | a_drive_by_name_judges_the_motor_current_at_the_hand_calculated_share, catalog_parts |
| An S120 motor by name | 1FK7060-2AF7: torque constant 6 / 4.45, resistance and inductance three times the data sheet’s 1.35 Ω and 15.2 mH, current loop Kp = L / 0.25 ms, Tn = L / R; 1FK2103-2AH rated speed 4500 r/min; the pairings 6SL3120-1TE15-0AD0 and (stall current 1.06 A) 6SL3120-1TE13-0AD0 | 1e-9 | s120_motors_by_name_bring_winding_rated_values_and_their_motor_module, catalog_parts |
| The search’s order | Three passing motors on the EXCT-30 by their costs by hand, 6.8, 10.4, 12.6 kg (two motors each); motor and gearbox 2.85 + 1.4 kg | Exact | the_search_ranks_three_passing_motors_by_their_hand_calculated_weight, catalog_parts |
| The axis search | EXCT-15 ruled out by stroke, ELZI 30 by speed, without a cycle; costs EXCT-30 41.105 + 10.4 kg, ELZI 40 19.05 + 10.4 kg by hand | 1e-9 | the_axis_search_rules_out_by_catalogue_numbers_and_adds_the_axis_weight, catalog_parts |
The Festo comparison is the one place where the simulator’s numbers meet a vendor’s numbers for a whole machine. It covers the rigid torque (inertia and gravity), with the carriage mass of the config chosen so that it fits. It does not cover friction, which Festo gives only as a graph.
Self-consistency
These compare the simulator with itself. They prove repeatability and plumbing, not physics.
| What | Test |
|---|---|
| The same run twice is bit-identical, with control and with sensor noise | the_same_run_twice_is_bit_identical, control |
| Halving the integration step changes a controlled move with all effects on by less than 1 % | halving_the_integration_step_changes_a_controlled_move_by_less_than_one_percent, control |
| Every effect switch changes the traces | every_effect_switch_changes_the_traces, control |
A trace written by run replays onto itself: torque and following error within 0.5 % (RMS) and 5 % (peak) of their largest value; the fit finds the config’s own masses and friction within 2 % | a_trace_from_run_replays_onto_itself_and_fits_its_own_config, cli |
sensitivity leaves ratings.bearing_reliability_percent out (it varied it to 72 % and 108 %, which verdicts refuses) | sensitivity_leaves_the_bearing_reliability_alone, life |
replay and fit refuse a machine whose transformation is not linear (they printed numbers without meaning on the delta), with a message in both languages; step and bode take the axis as --axis-index, --axis names a catalogue axis | a_trace_from_run_replays_onto_itself_and_fits_its_own_config, step_bode_and_tuning_write_csv_for_every_machine, cli |
| A config file of another machine opens that machine in the app; one no machine takes leaves the model as it was | a_config_of_another_machine_opens_that_machine, app |
| The EXCT-30 cycle stays below 0.8 of the torque-speed curve and of the rated torque, and the belt does not go slack | exct_30_cycle_stays_within_motor_and_belt_limits, catalog |
| The optimiser’s result is shorter by at least 5 % and passes every verdict when run again | the_optimiser_shortens_the_cycle_within_the_verdicts, axis |
| No row of the optimiser’s energy front is beaten by another in cycle time, energy and peak utilisation at once; it is sorted and reaches from the result to slower than the configured cycle; by hand on six points | every_row_of_the_energy_front_is_beaten_by_no_other, axis; the_front_keeps_the_points_no_other_beats_in_every_figure, analysis |
| A PLC-commanded move runs and reports position and following error, for every machine | a_plc_commanded_move_runs_and_reports_position_and_following_error, plc |
A move commanded through the FMU’s C functions (instantiate, initialise, a ramp of setpoints, one per setpoint interval, then a hold) gives every signal bit for bit as a plain simulation given the same setpoints, for every machine; an effect parameter and the drive enable input act as the config switch and Command::Disable do, bit for bit | a_move_through_the_fmu_matches_a_plain_simulation_bit_for_bit, effect_switches_and_the_drive_enable_act_on_the_simulation, fmi |
The single axis and the T-gantry rewired as machine files (machines/*.toml) are their crates: kinematics, rest state, derivatives, energy, feedforward, tensions and signals to 1e-9 in five sets of effects; a whole cycle without encoder counts to 1e-5; with them the same verdicts within the crate’s own spread under a 1e-9 change (see machine files) | the_netlist_machines_are_their_crates, the_netlist_machines_run_their_crates_cycle, the_netlist_machines_give_their_crates_verdicts, machine_files |
| Every shipped machine file passes the standard suite (the H-bot’s without its gearbox backlash, see machine files), and the H-bot’s motor angles and torques match a hand calculation | every_machine_file_passes_the_standard_suite, the_h_bot_moves_as_worked_out_by_hand, machine_files |
The T-gantry’s machine file with each of frame, idlers, cable chain, process force, thermal feedback, belt tooth jump, span vibration, tool flex (its machine.lean node) and belt wrap (from the places of its pulleys and idlers) switched on, and with all of them, elastic and rigid, is its crate to 1e-9, its wraps too | the_effects_of_a_machine_file_are_its_crates, machine_files |
A machine file’s belt wrap by hand (mech::wrap_angle’s formula, to 1e-12), from an offset idler and a clamp that is not level: π less the lean of both runs, 2.9991496 rad at x = 0 and 3.0389854 rad at 0.8 m (pulley r = 0.02 m at (-0.2, 0.03); clamp at height 0.06; idler r = 0.012 m 0.3 along and 0.06 below) | the_belt_wraps_a_pulley_as_far_as_the_places_of_its_neighbours_say, machine_file_geometry |
A worm node is the joint kit’s rotary table with table.gear = "worm" (efficiency 0.762938 both ways) to 1e-9, rigid and elastic, driving and driven back; by hand, a turning worm (back efficiency 0.5, ratio 40) back-driven by -10 N m at -10 rad/s accelerates the table by -10 / (4.5 + 1600 · 3.1e-4 / 0.5) = -1.820830 rad/s²; a self-locking one (efficiency 0.4, back efficiency -0.5) holds it at rest with no torque (the gear taking 10 N m), brakes it lowering at -10 rad/s with no torque ((15 - 10) / 4.996 = 1.000801 rad/s², the drag (1 + 0.5) 10 N m), needs a push of 0.5 · 10 / 40 = 0.125 N m to lower it at a steady speed, and from rest sticks at -0.1 and +0.6 N m and breaks loose at -0.15 and +0.7 N m (-0.200160 and 0.600480 rad/s²); its rotor stands where a turning one’s turns back at 0.25 / 3.1e-4 = 806.45 rad/s². A worm’s efficiencies warmed so that it loses half: 0.9 and 0.75 from 0.8 and 0.5, a locking one staying at 0 | a_worm_gear_in_a_file_drives_as_the_joint_kits_table, a_self_locking_worm_holds_its_load_and_one_that_turns_back_loses_by_its_back_efficiency, machine_file_geometry; a_warm_worm_loses_less_and_a_locking_one_stays_locked, sim-netlist |
The delta crates and their machine files are one implementation: machines/planar-delta.toml and machines/delta-d3.toml are their crates to 1e-9 with each effect switched from its default, and their cycles give the crates’ signals and verdicts | the_planar_delta_file_is_its_crate_with_every_effect, the_spatial_delta_file_is_its_crate_with_every_effect, the_spatial_delta_file_runs_its_crates_cycle, machine_file_linkage |
| A scissor lift (2 stages, 1 m arms, lead 10 mm): the force on its foot W n cot(alpha) at 0.6 m (6359.59 N per 1000 N, cot 3.179797) and 1.6 m (1500 N, cot 0.75), equal to W dh/dtheta / c; the shipped file holds 280 kg with 1.389627 and 0.445847 N m at 0.6 and 1.4 m (17462.6 and 5602.7 N on the foot), and passes the standard suite without gravity | the_scissor_force_ratio_is_n_cot_alpha_at_two_heights, sim-netlist; the_scissor_lift_holds_its_platform_with_the_hand_calculated_force_at_two_heights, the_scissor_lift_file_passes_the_standard_suite, machine_file_linkage |
A rack’s pinion loads the gearbox shaft with 35.2165 · sqrt(1 + (tan 20° / cos 19.5283°)²) = 37.7513 N, checked against shaft_max_radial_load_n; a rotary’s bearing friction (2 N m + 0.5 N m s/rad at 1 rad/s) takes (2 + 0.5) / 100 = 0.025 N m at the motor behind ratio 100 | a_rack_axis_turns_its_motor_by_x_over_r_and_feeds_its_force, a_rotary_axis_has_the_hand_calculated_bearing_friction, machine_file_mechanisms |
| The belts wrap their pulleys beside a screw: the screw portal’s X (standing) and Y (flat on the bridge), loops from a clamp round the pulley to the far idler, pi + asin(r / D) + asin((r - r_f) / d) = 3.1982802 and 3.2709416 rad, its screw’s motor none; the belt drawn round two wheels meets them at the tangents ((0.02, -0.0979796) and (0.98, 0.0979796) for a crossed belt) | the_belts_wrap_their_pulleys_beside_a_screw, machine_file_geometry; the_belt_meets_its_wheels_at_the_tangents_and_runs_round_them_in_their_sense, sim-netlist |
The catalogue search for one motor of a machine file (the XYZ portal’s Z motor, a 1FK2103-2AH): it becomes [parts.mz], X and Y keep theirs, its gain is retuned down, and it costs its own 1.18 kg (the catalogue’s mass), not three motors’ | the_search_sizes_one_motor_of_a_machine_file, machine_file_geometry |
| The CoreXY’s motor angles i (x ± y) / r and its torque on a diagonal, r / (2 i) (m_x - m_y) a; the portal’s Z motor with its own gearbox (twice the angle and speed of X and Y per metre), its holding torque m g r / i = 0.0686 N m, its own drive and ratings; the single axis’s belt mode sqrt(EA (1 / l1 + 1 / l2) / m) / 2 pi = 65.82 Hz (l the sections’ unstretched belt under the pretension); the belt strips the 3D view draws | the_corexy_moves_as_worked_out_by_hand, the_portal_moves_and_holds_as_worked_out_by_hand, a_machine_file_reports_its_belt_mode, the_3d_view_draws_the_belt_of_a_machine_file, machine_files |
An FMU of a machine file builds its machine from the file it carries, and gives the signals of a plain Sim bit for bit (FMI 2.0 and 3.0) | a_move_through_the_fmu_matches_a_plain_simulation_bit_for_bit, a_move_through_the_fmi3_functions_matches_a_plain_simulation_bit_for_bit, sim-fmi |
| The FMU refuses what the standard forbids: another GUID, another FMU type, missing resources, a config file that is not one, a communication step that is not a whole number of base steps or starts elsewhere, a parameter set after initialisation, an output set, an unknown value reference, an unsupported call; a reset starts over. The GUID changes with language and start values | what_the_standard_forbids_is_refused, the_guid_changes_with_the_model_description, fmi |
The FMU refuses fmi2GetReal before initialisation mode (read there, the time output stayed 0 after a start time of 5 s), reads 5 s and 5 s + dt after a start time of 5 s and one step; refuses a step at a time or of a size that is NaN or infinite (an infinite step looped for ever) | early_reads_and_steps_that_are_not_finite_are_refused, fmi |
fmi2SetupExperiment refuses a start time that is NaN (after it every communication point passed) and a defined stop time or tolerance that is not finite, and reads neither when not defined; a step of 1e20 s or of 2^32 base steps is refused (it ran u64::MAX steps: the importer hung); --binary SIM_FMI.DLL is the Windows binary, stored as sim_fmi.dll | an_experiment_that_is_not_finite_is_refused, a_step_too_long_to_run_is_refused, fmi; a_binary_is_known_by_its_extension_in_any_case, sim-fmi lib |
fmu writes a zip whose local headers, CRC-32 and central directory agree (CRC-32 of “123456789” is 0xCBF43926), with the FMI layout; its model description is balanced XML that lists every signal with its unit (defined in UnitDefinitions), unique value references, the setpoint inputs and the parameters, and Outputs naming exactly the outputs; two --binary for one platform are refused (they were two entries of one name) | fmu_writes_an_archive_with_the_fmi_layout_and_every_signal, cli; crc32_of_the_standard_check_string, fmi |
| Every numeric value of both default configs at -1, 0, NaN and infinity, one at a time: the config is refused or the cycle runs with finite signals; nothing panics | no_single_bad_number_panics_the_simulation_or_fills_it_with_nan, review2 |
| A shaper changed at speed leaves the largest setpoint step at speed times profile cycle (0.8 mm on the gantry’s X axis) | a_shaper_changed_at_speed_does_not_make_the_setpoint_jump, review2 |
| A gear ratio or pulley radius changed by 1 % at standstill and at speed: belt tensions within 10 % of the pretension and the tool within 0.1 mm of a run left alone | a_changed_ratio_or_pulley_radius_does_not_tear_the_machine, review2 |
| A path planned from every corner of the workspace, where the setpoint stands up to 44 µm beyond the range, is run and arrives; one that leaves the range by 1 mm is refused | a_path_from_an_end_of_a_stroke_is_run, review3 |
| A stream of setpoints at the speed limit and at 0.95 of it, one per interval: none is refused, the setpoint moves at the stream’s speed (1e-9 relative) and ends on the last value sent; the same with the setpoints a cycle and a half early and late in turn; a jump of two intervals is refused | a_stream_of_setpoints_at_the_speed_limit_is_followed, review3 |
| The app’s tables show what the library functions behind the command line give, for every machine: the cycle with its extra figures, the error bands, the ranked motor search, a planned path, a replayed and fitted trace | the_cycle_is_analysed_and_judged_in_the_app, the_checks_get_error_bands_in_the_app, the_app_searches_motors_and_names_one_in_the_config, a_path_is_planned_run_and_analysed_in_the_app, a_trace_is_replayed_and_fitted_in_the_app, app |
The worst corner of the bounds in the app and on the command line is what verdict_worst finds: per check the worst value, limit, result, and every bounded value named once at its bound; English and German; refused without --bands or with --samples/--seed. The bands beside it, taken from the search’s first runs, are those of verdict_bands (in the library to the last bit) | the_app_searches_the_worst_corner_of_the_bounds, app; verdicts_search_the_worst_corner_of_the_bounds, cli; the_worst_corner_search_finds_the_hand_calculated_corner, axis |
On the EXCT-30 the worst of every check is at least as bad as its band of one value at a time (dc-link-energy was reported at 4.47 J against a band up to 23.2 J) | the_exct_30_config_passes_settling_at_the_worst_corner_of_its_bounds, catalog |
The app’s frequency response, stiffness fit, replay overlay and operating points are those of the shared functions the command line prints (frequency_sweep, fit_sweep, overlay_csv, MotorLoad::points), and the command line’s output is checked against the same functions. A response of a belt with 500 kN against a config of 400 kN gives the factor 1.25 worked out by hand, within its standard error; the torque-speed curve’s corners are the config’s peak torque, rated and no-load speed, the S1 line’s the verdict’s (s1_torque: k_t I_0 at standstill, the rated torque at the rated speed, and on along that line); a path’s operating points are those of its analysis. The delta’s workspace map at z = -1.0 m ends at x = 0.15 - sqrt(1.35^2 - 1.0^2) = -0.757 m, where arm 1’s forearm stands in line with its upper arm, and the working envelope’s bottom sphere cuts it at 0.355 m | the_workspace_map_ends_at_the_hand_calculated_reach_of_the_delta, the_frequency_response_is_measured_in_the_app, the_belt_stiffness_is_fitted_to_a_measured_response_in_the_app, the_replayed_trace_is_overlaid_and_exported_in_the_app, the_operating_points_are_shown_over_the_torque_speed_curve, app; analyze_and_sweep_write_csv_for_every_machine, a_trace_from_run_replays_onto_itself_and_fits_its_own_config, cli |
| A result of the app is not applied to a config changed since: a motor of the search, a planned path, the optimiser’s settings | the same tests and the_app_optimises_the_cycle_and_applies_the_settings, app |
| A drive that trips is reported once per trip, for the running machine and for an analysed cycle | a_drive_that_trips_is_reported, app |
The app’s effect views are the analysis’s and the machine’s: live parts adding up to the torque at every point, peak and RMS per part and the budget row by row as analyse_cycle gives them, and its flow diagram’s columns adding up (the supply and what stores gave back to the electrical losses and the shaft work, the shaft work to the machine’s losses and stores), the friction curve as friction_curve at the newest load factor with the newest point on it; analyze --breakdown and --budget write the same | the_effect_views_show_torque_parts_energy_budget_and_friction, app; analyze_writes_the_torque_breakdown_and_the_energy_budget, cli |
The thermal, belt and comparison views are the simulation’s: winding and part rises and the belt tension and stretch as their newest samples, settling rises as MotorLoad::winding_rise and as R_th times the budget row over the cycle’s duration, the comparison’s differences as Comparison::difference; the colour scales of the 3D view at their ends and middle; compare writes the same as compare_effect | the_thermal_belt_and_comparison_views_show_the_simulation, app; compare_writes_the_cycle_with_an_effect_on_and_off, cli |
| Dependencies point downwards; every version is pinned; no machine is named outside its crate | architecture.rs |
| Every label exists in German and English | i18n.rs, and in the app’s and the link’s tests |
Against measured data
One public test bench, not built or measured by this project: the ball screw axis of ISW, University of Stuttgart, in
three datasets on DaRUS, all CC BY 4.0 (licence checked on each dataset’s page): C. Hinze, L. Zeh 2022,
doi:10.18419/darus-3003 (the three recordings below), C. Hinze et al. 2023,
doi:10.18419/darus-3252 (velocity sweeps, the speed loop’s gains), and
doi:10.18419/darus-2563 (the linear direct drive’s force compensation; read, not
brought in: its constant-speed runs carry nothing the three recordings and their nut force do not, its README explains
the drive’s force column). Converted into datasets/isw-ball-screw-axis. A 1FT7085
motor on a SINAMICS S120 turns a 40 mm ball screw that moves a 400 kg table; speed and position loops on a dSPACE board.
The machine is the screw-axis of the joint kit with the dataset’s machine.toml.
The recordings and their roles. The S-profile (10 to 700 mm and back, 0.3 m/s, 1 m/s², 6.2 s) is the one everything is fitted on. The sine (±100 mm at 0.1 Hz, 21 s) and the run at 0.1 m/s out and back (15 s, recorded two months earlier) are checks: nothing was set from them. The velocity sweeps (darus-3252, at 0, 350 and 700 mm) check the screw’s stiffness and the lead, and are compared, not fitted.
Compared: the measured motor torque (M_KGT_act) with the simulated one when the trace’s position setpoints are
replayed (sim-cli replay), as written for 1.0.0 and now. Differences as a share of the recording’s peak measured
torque; “as written” is the 1.0.0 table (the config before any fit, the replay from rest at the configured pose), “now”
is machine.toml as committed:
| Recording | Role | Peak torque | RMS, 1.0.0 | RMS, now | Peak difference, 1.0.0 | now |
|---|---|---|---|---|---|---|
| S-profile | fit | 8.07 N m | 0.857 N m, 10.6 % | 0.368 N m, 4.6 % | 7.39 N m, 92 % | 2.20 N m, 27 % |
| Sine, 0.1 to 19.9 s | check | 3.52 N m | 0.502 N m, 14.3 % | 0.461 N m, 13.1 % | 1.88 N m, 53 % | 1.20 N m, 34 % |
| Sine, whole file | check | 34.16 N m | 1.62 N m, 4.7 % | 0.709 N m, 2.1 % | 95 N m, 278 % | 24.5 N m, 72 % |
| Constant speed 0.1 m/s | check | 14.63 N m | 0.746 N m, 5.1 % | 0.896 N m, 6.1 % | 6.17 N m, 42 % | 3.65 N m, 25 % |
On the S-profile, step by step (RMS, peak): the setpoint on the simulator’s clock (below) 0.842 N m, 7.23 N m; the
torque feedforward off 0.711, 3.85; the speed loop’s gains 0.686, 2.75; the guides’ presliding friction 0.425, 2.24; the
fitted friction and constant force 0.430, 2.27; the screw’s efficiency from its lead angle
(effects.screw_lead_efficiency, 0.990 in place of 0.9) 0.441, 2.26; its Coulomb friction fitted again 0.370, 2.19.
Before the last two steps (16 November 2026) the table’s “now” read 0.430 N m, 5.3 % and 2.27 N m, 28 % on the S-profile;
0.470, 13.3 % and 1.23, 35 % on the sine; 0.895, 6.1 % and 3.59, 25 % at constant speed. Replaying from the trace’s own state changes nothing here (the
S-profile starts at rest) and the whole sine’s jolt from 95 to 30 N m. Since 17 November 2026 the replay runs a drive’s
trace with speeds and accelerations derived per row from the rows around it (trace::replay), not a cubic whose
acceleration steps at every row: S-profile 0.370 to 0.368 N m and 2.19 to 2.17 N m, the sine’s window 0.462 to 0.461 and
1.20 as it was, the whole sine 0.789 to 0.719 and 30.0 to 27.5 N m, constant speed unchanged. Since 17 November 2026
the motor’s winding is the model’s one winding: three times the data sheet’s phase values, 0.36 Ω and 9.3 mH for 0.12 Ω
and 3.1 mH, and its printed voltage constant (77 V per 1000 r/min, line to line): S-profile 0.368 N m as it was and 2.17 to 2.20 N m, the whole
sine 0.719 to 0.709 and 27.5 to 24.5 N m (the jolt at its end: L di/dt against the same DC link on three times the
inductance), the sine’s window and constant speed unchanged. Since 17 November 2026 the screw driven back by the load
loses by its own efficiency, THK’s (1 − μ / tan β) / (1 + μ tan β) = 0.98963 in place of the driving 0.98972: the
constant speed’s worst sample 3.65 to 3.62 N m, the rest within their last digit. That one sample is as sensitive to
anything near it: 3.615 and 3.616 N m with the screw’s μ 1 % lower or higher. Since 20 November 2026 the coupling’s damper bridges its own spring, not the
screw’s too (two damped springs in series, Converter::apply_back), and the screw has its own damping ratio 0.04
(screw.axial_damping_ratio): the first alone gives 3.6156 N m at constant speed and an S-profile RMS of 0.3716 N m, both
together 3.6487 and 0.3681 (3.62 to 3.65 N m, the rest within their last digit). That worst sample lies at 14.5 s, where
the replay gives −1.1 N m against the measured +2.5 N m: a gap the damping moves by 0.03 N m, not one it makes.
Following error, now on the source’s clock: S-profile measured 0.0411 rad RMS, simulated 0.0399, their difference 0.0022 rad (5 % of the measured); sine (0.1 to 19.9 s) 0.0078 against 0.0070, difference 0.0018 rad (23 %); constant speed 0.0165 against 0.0153, difference 0.0039 rad (24 %). With the bench’s position gain (35 1/s) and speed feedforward, and the speed loop’s gains read off the S-profile (below), not the dSPACE board’s own law.
What was changed in machine.toml, and why (each change marked in the file):
effects.torque_feedforwardoff. The recordings’ torque command holds no term of the acceleration setpoint: regressed on the speed error, its integral and the acceleration setpoint, the S-profile gives −0.9 N m per m/s² where a torque feedforward would give +3.1. Off, the S-profile’s peak difference falls from 92 % to 48 %: the bench’s speed loop lags at the start of each ramp and overshoots, the simulated one did not.- The speed loop’s gains: 3.9 N m s/rad and Tn 14.45 ms for the estimates 6.0 and 10 ms. The recordings name them “Gain” 166 and 69.2 without units; the S-profile’s torque command regressed on the speed error and its integral, with Ki / Kp = 69.2 1/s, gives Kp = 616 N m per m/s at the table, 3.9 at the motor (3.3 to 4.0 with Ki / Kp free). darus-3252, recorded a year later, gives Kp = 175, Ki = 11 and a closed speed loop of 215 rad/s at a damping of 0.44, which on the fitted 0.0199 kg m² is Kp = 2 · 0.44 · 215 · 0.0199 = 3.77 N m s/rad: the same within the regression’s spread.
effects.slide_preslidingon (new, shared physics behind its own switch, off in every shipped config): the guides’ and nut’s friction as a Dahl state (model reference), σ = 2e7 N/m, an estimate. Without it the replay holds nothing at rest; on the S-profile 16 % of the rows are rest, and the bench holds −1.44 N m there. With it the replay holds −0.99 N m.- Friction from
sim-cli fiton the S-profile: guides’ Coulomb 100 → 87.6 N and viscous 500 → 723 N s/m, the motor shaft’s 0.3 → 0.263 N m and 1e-3 → 1.446e-3 N m s/rad, and the nut’s preload 2000 → 1752 N (its drag scaled with the rest: the trace cannot tell the guides from the nut, both act as a sign of the speed). The constant force of +15.4 N as an incline of 0.225° (slide.incline_deg). - The mapping (
map.toml): the setpoint 1 ms later (time_offset_s), see below. effects.screw_lead_efficiencyon (16 November 2026; new, behind its own switch, off in every other shipped config): the screw’s efficiency from its lead angle, THK’s (1 − μ tan β) / (1 + μ / tan β) with μ = 0.003 (an estimate, THK’s general value): 0.990 at β = 17.7° (the_screw_efficiency_follows_the_lead_angle_with_its_switch, sim-components: 0.976607 and 0.989717 by hand, and off the switch keepsscrew.efficiencyto the bit).screw.efficiency0.9 is a catalogue’s figure that holds the nut’s preload drag, and the preload drags apart in the model (screw.preload_n, fitted): the 0.9 counted it twice, and on the inertial force too. Then the S-profile’s fit asked for Coulomb × 1.115 ± 0.022 (the 0.9 had lifted every friction force by 1 / 0.9): guides 87.6 → 97.7 N (breakaway with them), nut preload 1752 → 1953 N, motor shaft 0.263 → 0.293 N m.
Fitted again on the S-profile, the config lands on the measurement within its standard errors but for the mass and the
held force: viscous 764 against 773 ± 24 N s/m, Coulomb 320 against 324 ± 7 N, constant 15.7 against 15.2 ± 1.5 N;
moved mass 550 against 496 ± 3 kg, held force −162 against −242 ± 6 N (before the screw’s efficiency: viscous 792,
Coulomb 325, moved mass 584 kg). The checks (re-run 17 November 2026, sim-cli fit screw-axis --config machine.toml --trace FILE --map map.toml):
moved mass 546 against 499 ± 135 kg on the sine, 545 against 510 ± 11 kg at constant speed (562 against 578 ± 8 and
557 against 529 ± 3 as written on 16 November, before the error became that of fitted − config and the gearbox and
friction fixes since; 555 and 572 before the screw’s efficiency).
Not changed, and why. The moved mass: the fit says 54 kg less than the config’s 550 kg (92 kg less than 584 before
the screw’s efficiency). The table’s 400 kg is the source’s, and the sweeps put the load side at 0.0173 to 0.0214 kg m²
(427 to 528 kg at the table), so the table is not lighter; the excess is on the screw’s side. Both parts of the model
that the 1.0 work named were already in it: BallScrew::inertia takes the shaft as a solid steel cylinder at its
nominal diameter over its whole length, ρ π d⁴ L / 32 = 0.00355 kg m² (88 kg at the table; at its root 0.00179, 44 kg),
and the efficiency acts on the whole force the screw passes, inertial force included, η driving and 1 / η driven back
(Gearbox::loss_factor). Neither is missing; both make the model heavier, not lighter. The efficiency was the wrong
figure (above). The shaft: the remaining 54 kg is three fifths of the shaft’s 88 kg, which fits a threaded part lighter
than a solid shaft at the nominal diameter and journals thinner than it, but the source gives neither, and the three
recordings do not pin it closer (moved mass 496 ± 3, 500 ± 135 and 510 ± 11 kg). A carriage of 342 kg would make the torques fit and
would contradict the sweeps. The first mode stays at 137.02 Hz (sim-cli modes): the efficiency does not enter it.
Against it, the torque per force at the table (below) reads as an efficiency of 0.77 to 0.81; at that efficiency the
table alone would be 494 to 519 kg at the motor, more than the fit’s 496 kg for everything, so the inertia does not
support it.
The screw’s stiffness: see the sweeps. The lead: see the sweeps.
The friction the data can tell (fit, the rows after the rigid values; friction_details, tested on excerpts of
these files against the same estimate worked out by hand, held_force_breakaway_and_presliding_of_the_measured_ball_screw
in sim-components):
| Value | S-profile (fit) | Sine (check) | Constant speed (check) | Replay of the config now (S-profile, sine, constant) |
|---|---|---|---|---|
| Coulomb, guides, nut and motor together, at the table | 324 ± 7 N | 317 ± 10 N | 427 ± 1 N (with the viscous share at 0.1 m/s) | 320, 319, 396 N |
| Viscous | 773 ± 24 N s/m | 1169 ± 211 N s/m | (one speed: in the Coulomb value) | 764, 778 |
| Held at rest after the last move | −242 ± 6 N | +231 ± 7 N | +355 ± 1 N | −162, +217, −184 N |
| Breakaway (1 to 5 % of top speed, slowing) | (too few rows) | 252 ± 1 N | (too few rows) | (−), 304 |
| Presliding stiffness σ, from the turn at reversals | (one reversal at 1 m/s², crossed in 2 ms: no row; 7.0e6 N/m from it alone) | 3.2e7 ± 0.04e7 N/m (four) | (one reversal: no row; 1.9e7 N/m from it alone) | (−), 1.8e7, (−) |
- Guides against nut. The motor torque cannot tell them apart. The source’s nut force sensors (
F_nut_sum, now a column of the CSV) can: regressed on the S-profile, the torque is 0.00829 N m per N of nut force plus 1.48 N m of Coulomb friction that does not pass the nut’s sensors (the nut’s preload drag, the screw’s bearings, the motor), and the nut force carries 59 N of Coulomb friction from the table (the guides): 1.48 and 0.49 N m of the 1.99 N m thatidentifyfinds, 74 and 26 %. The config as fitted has 1.36 and 0.62 N m (69 and 31 %). The sensors are not referenced (the source says so): the nut force’s acceleration term is 264 kg where the table has 400, and scaled by 400 / 264 the guides’ share is 89 N, 0.63 N m. - Stiction above Coulomb: none the data show. On the sine, with the linear drive’s force (below) and the inertia
taken off by hand, the friction while slowing is 1.97 to 2.25 N m between 0.5 and 8 mm/s and 2.02 to 2.50 N m from
8 to 65 mm/s; the breakaway row’s 252 N is the drive’s force at the sine’s ends (−75 N at 350 mm, +67 N at 150 mm,
both against the motion there), which the fit does not know. The S-profile has too few slow rows. So
slide.friction_breakaway_nis the Coulomb level, and its Stribeck speed plays no part. - The turn at a reversal. At the sine’s four reversals the friction (inertia and the drive’s force off by hand) turns from +2.0 to −1.5 N m over 80 ms and 125 µm, through zero after 13.5 to 15.6 µm: σ = 315 N ln 2 / x = 1.4e7 to 1.6e7 N/m. The fit’s 3.2e7 does not take the drive’s force off (it pushes against the motion at both ends of the sine and moves the crossing to 7 µm); the config’s 2e7 lies between, and its replay gives 1.8e7 by the same estimate (2.0e7 before the screw’s lead efficiency). Dahl’s law with 1.5e7 would be within 1 % of the far level after 125 µm; the measured friction is at 68 %: it approaches the level more slowly, a second, longer scale that one σ does not have.
- The held force. It is the friction holding what the speed loop’s integrator had when the axis stopped, so its sign depends on the last deceleration: the S-profile and the constant-speed run both stop moving backwards and hold −242 and +354 N. The model holds the right sign and two thirds on the S-profile, the right sign on the sine, the wrong one on the constant-speed run (−184 N): its last stop is a ramp at 0.1 m/s whose loop dynamics the stand-in loops do not reproduce. On that recording the rest rows (6 %) leave 3.29 N m RMS, the moving rows 0.347 N m (2.4 %); without the presliding state it held nothing, and its whole RMS was 0.66 N m (4.5 %): that check is worse with the new friction.
The setpoint’s clock. The source records the setpoint its loop compares with the position of the same cycle; a
simulated trace holds in each row the setpoint the drive worked with up to that row, the one of the cycle before. The
mapping’s existing time_offset_s on the setpoint (1 ms here) puts the source on the simulator’s clock: the following
errors then compare (above), where the simulated one was the speed times one cycle (0.047 rad at 0.3 m/s) against the
bench’s 0.001.
The velocity sweeps (darus-3252, velocity-sweep-s0.csv, -s350, -s700; the frequency response from motor torque
to motor speed, computed by tools/darus_ball_screw_to_csv.py --sweep). sim-cli identify --sweep fits the two-mass
model: at 0, 350 and 700 mm a stiffness at the motor of 3240 ± 420, 2590 ± 300, 2830 ± 370 N m/rad, the first mode
(resonance) at 134 ± 13, 123 ± 10, 126 ± 12 Hz, the dip (antiresonance) at 63, 62, 58 Hz. The model (sim-cli modes):
137 Hz, its stiffness at the motor 3210 N m/rad (coupling 50000 N m/rad in series with the screw, nut and bearings,
8.5e7 N/m at the softest nut position), its dip 70 Hz; fit --sweep puts the config’s dip against the measured one at a
stiffness factor of 0.80, 0.76, 0.66 if the table’s mass is right. So the model’s screw is as stiff as the bench near the
motor and up to a third too stiff at the far end (one stiffness for the whole stroke, BallScrew::converter); not
changed, as the closed speed loop under the sweep and the load side’s mass (the sweeps’ own 427 to 528 kg) each move
the dip as much. The lead: the sweeps’ ratio of load side to motor side, 3.0 to 3.7, is what a lead of 40 mm gives
(table 0.0162 kg m² over a rotor side of 0.0039 to 0.0060: 2.7 to 4.2); a lead of 25 mm would give 1.0 to 1.6. This
checks the lead read from the article number without the torque fit.
What still does not match.
- The sine: half of its remaining difference is the linear direct drive’s force. Its setpoint (
F_des_LDD, −113 to +123 N, now a column of the CSV) shows in the nut force one for one (regression coefficient 1.00) and in the motor torque at 0.0078 N m per N; added to the simulated torque by hand, the sine’s RMS falls from 0.470 to 0.233 N m (6.6 %). The simulator has no input for a force on the table from outside, so the replay leaves it out. (On the S-profile the same column’s coefficient is 0.0007 N m per N, 0.10 in the nut force: the drive’s compensation there did what it should.) - The whole sine’s start and end: its setpoint starts at 63 mm/s from rest and stops from it at 20 s; the bench jolts with 34 N m, the replay with up to 37 N m.
- The moved mass (above), and the S-profile’s peak difference of 2.20 N m at the start of the return (2.62 s), where the bench’s speed loop overshoots more than the stand-in.
- The torque per force at the table is 0.0078 to 0.0083 N m per N in both nut and drive regressions, 1.23 to 1.30 times
the lead’s 0.04 / 2π = 0.00637: an efficiency of 0.77 to 0.81, or a torque reading, sensor or lead off by that factor.
The config’s 0.9 is the makers’ figure; with
effects.screw_lead_efficiencythe config uses 0.990 (above). - The held force on the constant-speed run, and the second length scale of the turn at a reversal (above).
Found in the tools by this data: the replay forced a start from rest; it now runs up to the trace’s own first
position and speed (a_replay_starts_from_the_traces_own_speed, cli: the sine from 3 s on, measured within ±3.42 N m,
jolted the replay with 86 N m before). From 1.0.0: on the constant-speed run the speed is its sign times 0.1 m/s, so
viscous and Coulomb friction cannot be told apart, and the fit reports both as one Coulomb value
(at_one_speed_each_way_viscous_friction_is_left_in_the_coulomb_value); check-dataset . inside a dataset’s folder
(the_checker_takes_the_name_of_the_folder_it_runs_in); the inertia identify reads off the S-profile lies between the
bounds the source’s masses give by hand (the_measured_ball_screw_has_the_inertia_its_masses_give).
What this does not show.
- One machine, a horizontal ball screw axis. Nothing about belts, gearboxes, deltas, arms or gravity loads.
- Not the drive model: the bench’s speed and position loops ran on a dSPACE board, not in the S120; the simulated S120 loops have the bench’s position gain and speed gains read off its signals, not its control law.
- Not the current loop, the DC link, the motor’s heating, the noise, or the screw’s ratings and life.
- Friction at the speeds of these recordings (0.5 mm/s to 0.3 m/s), its turn at slow reversals, and what it holds at rest after a stop; not its dwell time, nor at the speeds of darus-3003’s other constant-speed runs (1 to 750 mm/s, not brought in).
- A fit on one recording checked on two others and three sweeps, all from one bench, in 2022 and 2023.
Hand calculations: positioning accuracy
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| ISO 230-2 figures from given deviations | Two targets, two approaches each way, by hand: x̄↑ = 4 µm, x̄↓ = −4 µm, s = √2 µm; B 8 µm, R 4√2 + 8 µm, E 8 µm, M 0, A 8 + 4√2 µm | 1e-15 m | iso_230_2_figures_match_a_hand_calculation, accuracy |
| ISO 9283 figures from given poses | Barycentre (2, 0) µm from (1, 0) and (3, 0): AP 2 µm, RP 1 µm; vAP √5 µm against (0, −1) | 1e-15 m | iso_9283_figures_match_a_hand_calculation, accuracy |
| Thermal growth of a screw | 11.5e-6 / K · 5 K · 0.4 m = 23 µm from the fixed bearing; nothing at the bearing | 1e-12 m | a_warm_screw_grows_from_its_fixed_end, accuracy |
| Lead error table | Halfway between (0.1 m, +4 µm) and (0.2 m, −2 µm): +1 µm; beyond the table the end row | 1e-15 m | the_lead_error_is_interpolated_between_its_rows, accuracy |
| Backlash in the reversal error, single axis | 8.7e-4 rad at the gearbox output on a 20 mm pulley: 17.4 µm more reversal than without backlash (simulated 18.4 µm: the rest is the guide’s friction held through the belt, which ends at another force with the gap) | 10 % | the_reversal_error_takes_the_gearbox_backlash, sim-machines accuracy |
| Pure-stiffness deflection, screw axis standing up, no friction | 25 kg · 9.81 m/s² over screw (E A / 1 m = 7.272e7 N/m), nut 4e8, bearings 7.5e8 and the coupling 9000 N m/rad over (lead / 2π)²: 4.589 µm sag from either side (simulated 4.587 µm) | 1 % | a_vertical_screw_sags_by_its_load_over_its_stiffness, sim-machines accuracy |
| Thermal growth and lead error in a run, screw axis | 10 K: each target reads 11.5e-6 · 10 · x further out; with the table (0, 0)–(0.8 m, 16 µm) 20 µm/m more; nothing with effects.load_encoder | 1e-9 m | a_warm_screw_and_its_lead_error_move_the_real_position, sim-machines accuracy |
| The test on the single axis, screw axis, T-gantry and D3 | Finite figures within a millimetre; a rating gives a verdict | — | the_test_runs_on_the_axes_the_gantry_and_the_delta, sim-machines accuracy |
Hand calculations: global sensitivity
sim-cli sensitivity --method morris|sobol, ks.global_sensitivity (sim_components::sensitivity). The estimators are
checked on functions whose indices are known in closed form; on the machines only what can be said exactly.
| What is compared | Against | Tolerance | Test |
|---|---|---|---|
| Sobol’ first-order and total indices of the Ishigami function (a = 7, b = 0.1), 16384 rows | V1 = ½ (1 + b π⁴ / 5)² = 4.3459, V2 = a² / 8 = 6.125, V13 = b² π⁸ (1/18 − 1/50) = 3.3737, V = 13.8446: S = 0.3139, 0.4424, 0; S_T = 0.5576, 0.4424, 0.2437 | 0.03 absolute; bootstrap interval narrower than 0.06 and around the estimate | sobol_finds_the_ishigami_indices, sensitivity |
| Sobol’ indices of a linear model Y = Σ a_i X_i, a = (1, −2, 0.5, 0), ranges 1, 1, 4, 3 | S_i = S_Ti = a_i² Var_i / Σ with Var_i = range² / 12: 1/9, 4/9, 4/9, 0; the value without effect exactly 0 | 0.03 (first), 0.02 (total); exact | sobol_finds_the_shares_of_a_linear_model, sensitivity |
| Morris on the same linear model, 10 trajectories | Every elementary effect is a_i × range: μ* = 1, 2, 2, 0, μ with the sign, σ = 0 | 1e-9 | morris_on_a_linear_model_gives_the_slope_times_the_range_with_no_spread, sensitivity |
| Morris on the Ishigami function, 200 trajectories | On the grid (−π, −π/3, π/3, π) every step of x2 changes 7 sin² x2 by 7 · 3/4: μ2 = 5.25 / (2/3) = 7.875; x3 acts only with sin x1 ≠ 0 (half the steps): μ3 ≈ ½ · 0.1 · (π⁴ − π⁴/81) · 0.866 / (2/3) = 6.25 and σ3 > 1, though S3 = 0 | μ3 > 1, σ3 > 1, μ2 > μ*3 | morris_sees_the_interaction_of_the_ishigami_function, sensitivity |
| Morris points | Every point on the four-level grid, every step moves one value by 2/3 of its range, every value once per trajectory | 1e-12 | every_morris_point_lies_on_the_grid_and_every_step_moves_one_parameter_by_the_step, sensitivity |
| Determinism | The same seed gives the same points and indices, another seed other points; on the single axis the same rankings on one thread and on five, to the bit | exact | the_same_seed_gives_the_same_points_and_another_seed_others, sensitivity; the_same_seed_gives_the_same_ranking_on_one_thread_as_on_many, global_sensitivity |
| Single axis: slide friction against the lubricant’s viscosity (which only the bearings’ life reads) | RMS torque: both frictions μ* > 0 with μ = μ* (more friction, more torque in every step); the lubricant μ* = σ = 0 and Sobol’ S_T = 0 with interval (0, 0) | exact | friction_moves_the_rms_torque_and_the_lubricant_does_not, global_sensitivity |
| T-gantry, Morris 10 trajectories: the slackest belt section’s margin against the pretension (200 to 400 N) | The section’s tension rises one to one with the pretension: μ* = 200 N, σ ≈ 0 (found 200.0 N, σ 0.002 N) | as found, shown in the user guide | run by hand, not a test |
| Python against the command line | The same rows and μ* | 1e-3 relative | test_global_sensitivity_matches_the_cli, sim-py |
What is not validated
- The delta picker D3’s geometry, masses and stiffnesses. Autonox keeps them behind a registration; the arm lengths are scaled from Williams’ estimate of an ABB IRB 360, the masses estimated. Its cycle time is compared with ABB’s and Omron’s printed figures, not asserted (they round the corners and run faster). Its forearms are rigid rods (their spin about their own axis with an estimated inertia), its upper arms’ bending stiffnesses (in and out of their planes) estimates for a carbon tube; neither is compared with a measured delta.
- The overhead crane against a real crane. No crane has been measured: its masses, the rope’s EA and damping, the
rolling coefficient, the brake’s torque and the drives’ tuning are estimates. As shipped the load is one point mass on a
massless rope, the bridge one drive, the drives rigid, and pick and set-down are quasi-static. The switches
effects.rope_mass,hook_block(hook and load a double pendulum),joint_elasticity(elastic drives),bridge_skewandfloor_contact(the load standing on the floor, a snatch lift, a slack rope at set-down) add those effects; each is checked by its own tests, not against a crane (the hook block’s sling is a rope that goes slack on the floor). Not modelled either way: the rope’s bending at the sheave and its twist. The residual sway is the amplitude of a free pendulum at the dwell, not what a sway sensor of a real crane reads; the input shaper is checked against the model’s own pendulum only. The SciPy reference checks the integration, not the equations.
Against a real machine: one public measurement.
- One measured machine has been compared with the simulation: a ball screw axis of ISW Stuttgart, three recordings and three velocity sweeps (above). The “Real traces” check of the project plan (stage D4) on the project’s own axes does not exist.
- The test runs on a real axis (stage D2) have not been made.
- Trace import, replay and fit have seen one real machine’s recordings, converted to CSV by a script; a drive’s own export (Startdrive, TwinCAT, CODESYS) with its column names, units and sampling is still untested.
- The following error is compared on that one bench only, whose loops ran on a dSPACE board; drive vendors do not document their internal filters.
- The screw’s efficiency from its lead angle (
effects.screw_lead_efficiency): μ = 0.003 is THK’s general value, not measured on any screw; the bench’s fit prefers it to 0.9 through the moved mass and friction, which does not measure the efficiency by itself. Driven back the screw loses by its own efficiency, THK’s back-drive formula (1 − μ / tan β) / (1 + μ tan β) with the same μ (0.98963 at the bench’s lead against 0.98972 driving). The screw shaft’s inertia is a solid cylinder at the nominal diameter overscrew.length_m, journals and threads not told apart; the bench’s fit leaves 57 kg of it unexplained.
Parameters. These are estimates in every config, and nothing checks them:
- guide friction (Coulomb, stiction, viscous, Stribeck speed, bristles, preload)
- belt damping, pretension, tooth-mesh stiffness, tooth force
- frame mass, stiffness and damping; lateral and tilt stiffness of the Z guide
- motor shaft friction, ripple, cogging
- winding resistance and inductance of the 1FK2 (Siemens does not publish them)
- DC link capacitance, braking threshold, resistor powers and trip level of the S210
- idler, cable chain, hard stop and brake values; sensor noise levels
- guide and pulley shaft ratings and the belt tension rating of the EXCT (Festo publishes none; the belt figure is from another maker’s belts of the same build)
The default configs of both machines are placeholders throughout.
Models that are implemented but not compared with anything outside the code:
- Guide life. It is the catalogue formula L10 = (C / P)³ · 50 km with an estimated load. No endurance data.
- The thermal model beyond its own steady state: one thermal mass, no measured heating curve.
- The temperature feedback: the viscosity law is a mineral oil’s, the share of a gearbox’s loss that follows it and the belt’s loss of stiffness per kelvin are estimates; no gearbox maker’s curve of no-load torque over temperature was found.
- The belt tooth jump: the climb-out factor is an estimate (no maker’s ratcheting chart was read), the ridge the sliding belt rides over is a sine of the climb-out pull, and a tooth pressed back into its groove by the wrap’s tension is not modelled. Only the threshold and the bookkeeping are checked by hand, not a real jump.
- The belt spans: string frequencies only, no amplitude; the 10 % band is an estimate.
- Torque saturation: the shape of the curve between zero and maximum current (a square law) is an assumption; only the end point is from the catalogue.
- The DC link: checked against energy bookkeeping by hand, not against a drive. The S210’s real chopper behaviour is not known.
- Drive delays and filters: checked against control theory, not against a drive.
- Sensor noise: Gaussian by assumption.
- The rule that scales the velocity gain for a part by name and in the motor search: a rule of thumb, checked on the EXCT-30 for the 1FK2 only.
- The holding brake: a spring up to the brake torque, then slipping with it. Checked against its own hand calculation, not against a brake.
- The shared DC link: energy bookkeeping by hand, with the capacitances simply added. Not against an S120 line-up; a Line Module’s own capacitance and the busbars are not modelled. The regenerative supply is an ideal power limiter with one efficiency, checked by hand, not against an Active Line Module.
- Splines: the geometry and the axis rates are checked, not that this is the curve a given controller would lay through the same points.
- The modes the T-gantry reports for the input shaper have the frame mode, the X-Z belt coupling, the Z axis’s own mode on the belt and the belt’s runs’ mass (pulleys held), with
effects.beam_vertical_modethe beam’s vertical mode, and leave out the control loops. Under the servo the swing is a little faster: at z = 0.15 m with the frame off a shaper at 36 Hz leaves least of the swing after a traverse (0.111 of it), where the machine reports 34.59 Hz (0.121 left).
The SciPy reference does not include the leaning Z axis or any effect added after phase 2 (see above).
Effect views. The torque parts are a definition: the rest is what inertia, gravity and friction leave, so the sum cannot be wrong, and inertia is taken at the load’s acceleration (see the model reference for why). The hand calculations check the three named parts where they can be worked out; a measurement could not check them, since no sensor sees a torque split into parts. The energy budget’s electrical side is checked against itself (the integration’s error), not against a measured supply.
Drive stability. With the winding current integrated together with the mechanics (12 November), the old velocity gain of 0.08 N m s/rad left the default configs little margin (single axis 1° and 0.3 dB, T-gantry 12° and 2 dB, measured with sim-cli margins); the old drive model had hidden this behind a numerical phase lead. The default configs now have 0.025 (single axis) and 0.037 (T-gantry), with at least 35° and 6 dB in every one-at-a-time bounds run, with friction on and off; across_the_bounds::* (control, a test per config, run by CI; the_shipped_velocity_loops_keep_their_margins checks the configs as they are) holds that, and since its retuning from 0.6 to 0.45 the EXCT-30 too (measured 40.6° and 8.61 dB on 26 November, 39.4° and 8.46 dB on 17 November, sim-cli margins t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --set effects.motor_friction=false --set effects.guide_friction=false; 38.6° and 8.3 dB before; it had 29.6° and 5.8 dB). The margins are measured on the simulated loop, at one amplitude, with the machine holding its start pose; 60 points from 10 Hz to 2 kHz (and below 10 Hz to a crossover there, to 1 Hz) can miss a sharp resonance between them. They are not checked against a real drive’s measurement function. The sampled bands (--samples) are not run for the margins.
Combinations. Each effect has a test of its own. That all effects together give the right result is checked only by energy conservation (losses off), step-size convergence and determinism, not against an independent number.
Error bands vary one parameter at a time, or with --samples all at once in a Latin hypercube. The sampled mode covers interactions as far as its runs reach: it is tested on one case with a known answer (two masses), and no number of samples proves a worst case. On the EXCT-30 it found one that the one-at-a-time mode cannot: the friction model blowing up with two of the X guide’s values at their bounds together (fixed, see the model reference).
Front ends:
- OPC UA: tested against a client written with the same library, the secured endpoints (
interop.rs) and the pacing and client jitter figures (plc.rs,soak.rs, PLC) included. Not against a Siemens, Beckhoff or CODESYS controller; the jitter a real PLC brings is not measured. - FMI: checked once (13 November) with an independent tool, fmpy 0.3.32 (in the project’s
.venv), on the win64 FMUs of the T-gantry, the single axis and the EXCT-30 config (English and German):fmpy.validation.validate_fmu(FMI 2.0 XSD, variable names, model structure, start values, causality and variability, units) found no problem in any;simulate_fmuin co-simulation ran each with no log message. At rest, every output agreed withsim-cli runto the 9 digits the CLI prints (relative 5e-10). A setpoint ramp (X 0.1 m in 0.5 s; on the EXCT-30 also Z) ends wheresim-cli run --trajectorywith the same points ends, within 16 µm of position; on the way, the FMU’s setpoint arrives one setpoint interval (10 ms) later and is interpolated linearly, the trajectory’s with cubic Hermite, so the setpoints differ by up to 0.2 mm shifted by that interval and peak torques by up to 0.9 N m (single axis 2.6 N m of 2.8): a difference of the input path, not of the model. fmpy’s error paths: a communication step of 0.1 ms (not a multiple of 62.5 µs) refused withfmi2Errorand its message logged; a setpoint out of range logged as a warning per step. The same check is nowtools/check_fmu.py, a step of CI on Windows and Linux (linux64 binary). Run in OpenModelica 1.27.1 through OMSimulator (FMI export); not imported into Simulink or Dymola. - App: what the app computes is tested without its window, against the library functions the command line uses (
sim-app/tests/app.rs). The window itself is driven by synthetic input (sim-app/src/window_tests.rs, run withcargo nextest run -p sim-app -E 'binary(sim-app)'): the app asmainbuilds it, Bevy without winit and without a renderer (so the tests need no screen or graphics card and run in CI as anywhere), fed the messages winit sends for cursor moves, mouse buttons, the wheel, keys, typed text and window resizes, its widgets found by their labels in egui’s accessibility tree. They cover the orbit camera (a drag turns the view by 0.005 rad a pixel about its target; the wheel zooms by 0.9 a notch within 0.2 to 20 m, a touchpad’s pixels 50 to a notch; the right or middle button pans with the point under the pointer staying there; a drag that starts on a panel or a control turns nothing; the presets front, side, top and angled put the camera on the stated side with the machine’s box in view; a resize keeps it in view), the top bar (pause, speed, units, theme, machine and language lists), the motion tab (start cycle, stop, drives off and on, a target typed, move), the parameter panel (a value typed reaches the running simulation and stays; a word for a number, a key the config does not have and a value the simulation refuses are each refused with their message and the old value kept; a drag on a number changes it), an effect switch, the config file field (a file that does not exist is said and changes nothing), every tool tab’s run button (cycle with error bands, sensitivity, optimiser, motor search, path fromexamples/corner.path, trace from a missing file, frequency response, tuning), the keys (Space replays and the arrows step the timeline over the view, but not while a field has the keys, where a space is typed; Tab moves to the next field), five clicks on a long analysis start it once, switching the machine during an analysis leaves no result of the old one, and closing the window during the optimiser exits within seconds. Every label of the panels changes with the language but a listed few that German shares (units, “Motor”, “Pause”, “Plan”, “Live”, “Position”); no widget overlaps another or sticks out of its panel in English or German at 1600 × 900 and 1280 × 720 (as far as the accessibility tree tells: a wrapped label’s box is not its text, and plots and the 3D view’s own labels are painted, not widgets). Not covered by the tests: the file dialogs (Open…, Save as…, Export, the sizing report and a plot’s picture), which the tests cannot close; dragging a panel’s edge; the right-click menu of a plot. How it looks was checked by eye (15 November) on pictures saved by the app’s screenshot hook (SIM_APP_SCREENSHOT, withSIM_APP_SIZEandSIM_APP_SETUPadded for this) of the T-gantry in every tools tab and setup tab, English and German, 1600 × 900 and 1280 × 720, with the motion, a planned path and the overlays: the defects found were fixed (texts and controls running out of the view or the window in German, the timeline’s buttons, the scopes panel shrinking with the kept runs, plots with 0 alone on their axis across, the part labels’ -0, the config tab’s part names wrapped to the end of the line before their fields, the motor search’s list names after their lists where the fields’ names come before). Not fixed: at 1280 × 720 the view’s controls cover much of the machine, and some tools tabs (motor search, path, tuning) widen the tools panel by up to 160 pixels. Since then the planned path is drawn as a wide amber line with the travelled path as a cyan line over it; before, the travelled line lay at the same depth, lost the depth test to the plan and was never seen. Only the T-gantry was looked at; the other 21 machines’ 3D views were not. How the motion looks over time was seen in single pictures, not watched.
Dataset reports (sim-cli fit --dataset --report, datasets/RESULTS.md). The report
reproduces the figures of Against measured data for the ISW bench (tested), and nothing more:
it has one measured dataset to run on. It takes the first trace recording as the fit and the rest as checks, whatever
they are; it does not cut a recording (the sine’s 0.1 to 19.9 s window above is not in it). The fitted values are
lumped at each axis and are not mapped onto the config’s [bounds] keys: the report lists the bounds beside them, it
does not say whether a fit lies inside them. The model’s first mode is taken at the config’s start pose only, not at
the position of each frequency response. The contribution form and guide have not been used by anyone outside the
project yet. The report’s texts are in English only.
Warm-started kinematics (16 November 2026). The hexapod’s and the platform on cranks’ dynamics start Newton’s forward kinematics from the pose at the nearest point of a grid of joint positions (1 mm of leg, 1 mrad of crank), and the cable robots’ elastic forward from the pose and Jacobian at the nearest point of a 1 mm grid of free lengths, for speed; the pose is a function of the joints alone, not of what was called before (an earlier version started from the last call’s pose, which made a run, its replay and an analysis with and without its effect views differ at the rounding, and a fit of a trace onto its own run diverge) (see the mechanisms). The tests the_default_cycle_keeps_its_figures (hexapod, platform on cranks) and the_default_cycles_keep_their_figures (both cable robots) compare each motor’s peak and RMS torque, the energy it drew and fed back, and the tool’s path, tracking and angle errors over the default cycle with the figures recorded before. The cable robots’ moved by up to 1.5e-5. The hexapods’ moved by up to 1.1e-4, about as far as moving only Newton’s start by 1e-9 to 1e-7 m in the old code moved them (up to 7e-5): the closed loop amplifies rounding-level changes of the pose that far. The tests allow 1e-3, also for other platforms, whose maths library rounds sine and arc tangent differently in the last bit; that difference was not measured (no Linux run here). Not checked: that the warm start converges to the same pose far from the default cycle (it falls back to the old start where it does not converge).
Catalogue data. Cross-checks find values in the wrong row or column. They cannot find a number misread into another plausible number where nothing ties it to a second value. The misprints found are listed in the catalogue document; there may be more.
The validation dashboard. It shows the outcome of each test this page names and, for the tests that call record_check, their values; it checks nothing these tests do not. Most rows carry no recorded values, the Python tests are not run for it, and a row whose tests did not run shows as “not run”, not as passed (dashboard).
Positioning accuracy (sim-cli accuracy). The ISO figures are computed as the standards define them and checked by hand; what the simulated axes give is not compared with a laser measurement of any machine. Thermal growth and the lead error are a map applied to the tool pose at rest, not part of the dynamics; the belt’s expansion coefficient is an estimate (no belt datasheet gives one); the frame’s growth, a gradient along the screw and the screw’s own heating from its nut are not modelled; the screw’s stiffness is the one at its softest place over the whole stroke (the model’s shortcut), so a sag that grows along the screw does not show. The D3’s systematic deviation of up to 0.57 mm along y comes from its estimated stiffnesses and is not checked against a real delta. The machine tests run one or two approaches per target and direction, not ISO 230-2’s five.
Global sensitivity (sensitivity --method morris|sobol). The estimators are checked on analytic functions, not on
a machine whose true indices are known: on the machines the tests check only determinism, a value that cannot act and
one that must. The ranking is only as good as the [bounds] it starts from, which are mostly estimates, and it ranks
only bounded values (the shipped T-gantry bounds no mass). Sobol’ uses plain Monte Carlo rows, not a quasi-random
sequence; with a few dozen rows its first-order indices scatter around 0 (below 0 too) and the bootstrap intervals are
wide; no rule says how many rows are enough. Morris’ μ* is in the result’s unit per whole range of the value and does not
say which share of the variance a value explains. A result missing from a run (a check only some values bring up) or not
finite in one (a life where nothing wore) is left out. Integer values (pole pairs) are rounded, so their steps are not
the grid’s.
Release packaging and benchmarks. The macOS build (universal tarball, darwin64 in the FMUs) is made on GitHub’s
runner and was never run on a Mac; its FMU binary is not run by check_fmu.py, which runs on Linux. The attestations
and SHA256SUMS were not produced by a real release before 1.0.0 was tagged. The benchmark check
(.github/workflows/bench.yml) compares each run on main with the one before, on shared runners that differ by 10 to
20 % between runs: it warns only, and a slowdown spread over several pushes of under 15 % each is never warned about.
Indexing tables (geneva-drive, cam-indexer). The Geneva and modified-sine kinematics are checked against the
textbook formulas, not against a measured indexer; every mass, inertia, stiffness, play and rating is an estimate. The
pin and the rollers carry the wheel’s torque without friction; the cam’s pressure angle is in the roller’s force
(indexer.cam_radius_m, an estimate: 35° at the fastest point, 2.1 % more peak contact force), checked by hand
(the_cam_s_pressure_angle_raises_the_contact_force_by_one_over_its_cosine). The locking disc holds the wheel rigidly:
its play gives the index accuracy, but the wheel does not rattle in it, and the lock’s own load is not judged. As
shipped the table’s twist on its shaft is worked out beside the dynamics for an index run at the driver’s speed of the
moment (exact under cam.run, an estimate on a servo cycle that speeds up through the index) and does not act back on
the drive; effects.table_twist makes it a joint of its own, the table on its spring and damper
(the_table_twist_is_a_joint_of_its_own_with_the_matrix_of_the_two_inertias). The seven-axis arm’s joint-limit option is checked for the pose it reaches and the
optimum it settles at, not for how far from its stops a whole cycle keeps the arm.
Loop response (velocity-loop Bode and Nyquist, refined sweep). The refinement is tested against a two-mass system worked out by hand (refinement_finds_a_sharp_resonance_the_coarse_sweep_misses: resonance 318.31 Hz with 1 % damping, missed by a factor of four by the 60 points, found within 0.2 % and 3 % of its peak) and the margins, phase crossover and closed loop against a hand-calculated loop (phase_crossover_and_closed_loop_of_a_hand_calculated_loop). Not checked: a resonance whose peak and dip both fall between two neighbouring points of the 60 (and is not one the machine reports in modes) shows no fast change and is not refined; the plant is the air-gap torque to the motor’s speed with both sampled once per simulation step, so its phase near the top of the range is uncertain by up to half a step (31 µs, 22° at 2 kHz) and is not checked there against a hand calculation; and the plots themselves are checked by the window tests for their labels and results, not by eye against a measured Bode plot of a real drive.
App layout (16 November). The window test at 1280 x 720 checks the panels’ widths and how much of the 3D view the floating controls leave free, by the accessibility tree without a screen; it does not check what the machine’s parts fill of the view, nor other window sizes than 1280 x 720 and the default 1600 x 900. The 3D view of each machine was looked at in screenshots at 1280 x 720 at its start pose, not in motion.
Mover track (mover-track). Checked by hand calculations and the standard suite only; no XTS or ACOPOStrak has been
measured. Not published, so estimated: the force constant, coil resistance and inductance, the magnets’ attraction, the
pole pitch and cogging, the rollers’ resistance and spread, how the 267 mm curve splits into arc and clothoid, the
segments’ thermal resistance and time constant. Not modelled: the rollers’ resistance changing with the curve’s load
(it is the straight’s level throughout), the mover’s yaw and its rollers’ own compliance in a curve, the coils’
commutation across a segment joint (a mover’s force is the same wherever its plate lies), the movers’ coupling through a
shared supply beyond the DC link, the gap in a curve measured across the chord (it is measured along the centre line),
the tilt of a mover on a vertical track (the track lies level). The segment’s settled rise is the loss of about the last
pass times its thermal resistance, not a thermal network of coils, frame and air. The station error reads the cam’s
master as the controller last set it (once a profile cycle); a stop and restart part-way through an index leaves the
setpoints off a station, which the check then counts.
Measuring a drive train for the simulator
How to record traces on a real machine so that sim-cli identify and sim-cli fit can fit inertia,
friction, stiffness, damping and the drive’s delays to them. This covers what to record, which test moves,
how fast to sample, how to export the trace, and how to read the result. Publishing the result is
described in datasets/README.md.
Everything here was tested on synthetic traces (the simulator’s, and a motor model with LuGre friction, encoder quantisation, noise and a current-loop lag) and on files built after the vendors’ documented or observed export layouts. One real machine has been read, the ISW ball screw bench (datasets/isw-ball-screw-axis), converted to CSV from its dSPACE recordings; no vendor export of a real drive yet. Treat your machine as a test of this procedure, and report what did not fit.
Contributing a measured machine, step by step
Measured data is the only way to show that the simulator matches a real machine, and every dataset that comes in adds a row to datasets/RESULTS.md. What a dataset needs, in order:
-
Pick the machine. One the simulator has (
sim-cli list): a belt or screw axis, a gantry, a delta, a SCARA, an arm. The axis has to be able to move freely over part of its travel with the safety functions on (section 1). -
Record at least two recordings of the machine’s real work, without changing anything between them:
- a cycle (section 4,
cycle): the move the machine makes in production, 5 to 30 s, out and back. The first trace recording of the dataset is the one the free values (mass, friction, a constant force) are fitted on; - one or more checks: other moves of the same machine (a different speed, a sine, a
friction-mapwith constant speeds both ways). Nothing is set from them, so they show whether the fit holds beyond its own data; - if the drive offers it, a frequency response (motor torque to motor speed) at one or more positions: it checks the first mode.
- a cycle (section 4,
-
Record these signals per motor (section 2): position setpoint, position actual, speed actual, torque actual; the torque setpoint if the drive gives it. Sample time: 1 ms (the position cycle) for the cycle, the checks and the friction map; the current-loop cycle (62.5 to 250 µs) for a torque step or a noise excitation (section 3). Keep the drive’s loop gains and filters as in production, and write them down.
-
Export each recording as the drive’s tool exports it (section 5: Startdrive CSV, TwinCAT Scope CSV, CODESYS trace, or any CSV with a header) and do not edit the numbers. A frequency response goes in a CSV with the columns
frequency_hz,gain_rad_s_per_nm(and optionallyphase_deg). -
Lay out the folder
datasets/<id>/by copying datasets/template/:File What dataset.tomlthe metadata (below) README.mdthe machine, the drive settings, per file its test move, and anything odd <recording>.csv(or.txt,.trace)one file per recording, as exported map.tomlone mapping per export format: which column is which signal, in which unit machine.toml(optional, recommended)the machine as a config of the simulator’s machine, every value you changed marked [source],[catalogue]or[estimate] -
Fill in
dataset.toml:[dataset]id (the folder’s name), title, description, licence, contributor (an organisation oranonymous), recorded (year and month only),synthetic = false;[machine]kind, transmission, mounting, travel per motor revolution, payload,simulator(the simulator’s machine id, e.g."screw-axis"),config("machine.toml") andset(single values on top of the config, as--settakes them, e.g.["effects.payload = false"]);[drive]vendor, family and cycles;[motor]family, rated torque, rotor inertia, encoder counts; one[[recording]]per file withfile,map,testandsample_time_s. datasets/README.md lists every key. -
Licence. We suggest CC BY 4.0 (
CC-BY-4.0): anyone may use the data, naming you. CC0-1.0, CC-BY-SA-4.0, ODbL-1.0 and PDDL-1.0 are accepted too. Only offer data you may publish: measured on your own machine, or published by its owner under one of these licences (then name the source and its DOI in the README). -
Anonymise (the list in datasets/README.md): no names, e-mail addresses, IP addresses or Net IDs, paths, serial numbers, customers or sites; the date to the month.
-
Check and report:
sim-cli check-dataset datasets/<id> sim-cli fit --dataset datasets/<id> --report report/The first must print no problem. The second replays every trace recording on the machine and config the dataset names, fits the free values on the first, and writes
report/report.mdwith the torque difference (RMS and worst sample, in N m and as a share of the peak) on the fit recording and on each check, the fitted values against the config’s with their standard errors, the config’s[bounds], the first mode against each measured frequency response, the torque plots as SVG, and the numbers as CSV. A bad fit is not a reason to hold the data back: it is what the simulator has to learn from. -
Offer it: open an issue with the form “Offer a measured dataset” (it asks for all of the above), or a pull request with the folder. Then
UPDATE_RESULTS=1 cargo test --release -p sim-cli --test resultsadds its row to datasets/RESULTS.md.
Sections 1 to 7 below say how to record each test move and how to read what identify and fit give.
1. Safety first
The test moves run the axis without the machine’s usual sequence and some of them with loops detuned.
- Run them only with the safety functions active (STO / SS1, limit switches, software limits set inside the free travel). Keep a hand on the stop.
- Start every move at a tenth of its speed and torque and work up.
- A vertical axis: never lower the speed-loop gain or step the torque on it without a counterweight or the brake’s holding margin checked; the friction and step tests are for horizontal axes or with the load removed.
- The torque step and the noise excitation can excite the belt. Watch the first ones and stop at any growing oscillation.
2. What to record
Per motor, at the motor shaft. The names are the usual ones; the mapping file (step 5) tells the importer which is which and what unit each has.
| Signal | Needed for | SINAMICS S120 / S210 (Startdrive trace) | TwinCAT 3 (Scope) | CODESYS SoftMotion (trace) |
|---|---|---|---|---|
| Position setpoint | replay, position-loop lag | r2665 (LU) | NcToPlc.SetPos (user unit) | fSetPosition (u) |
| Position actual | all | r2521 (LU), or r482 (raw encoder count, wraps) | NcToPlc.ActPos | fActPosition |
| Speed actual | all (optional: the slope of the position) | r61 (1/min, unsmoothed) | NcToPlc.ActVelo | fActVelocity |
| Torque actual | all | r80 (N m) | the drive’s process data, e.g. CiA 402 0x6077 (‰ of 0x6076) | fActTorque (N m at the gearbox output) |
| Torque setpoint | current-loop lag | r79 (N m) | e.g. 0x6071 target torque, or the drive’s internal setpoint | fSetTorque |
Notes:
- The torque actual is what the drive estimates from the current (k_T × I_q); that is what the fit takes as the torque at the shaft. Torque ripple and the k_T’s temperature drift show up as friction noise.
- The TwinCAT NC axis has no torque in
NcToPlc; add the drive’s own torque value to the Scope. - CODESYS SoftMotion gives the torque at the gearbox output; set
scale = 1 / ratioin the mapping to refer it to the motor. - Positions in LU, increments or mm need
per_revin the mapping: units per motor revolution. For SINAMICS, LU per motor turn = p2506 × p2505 / p2504. - A raw encoder count (r482, a 32-bit counter) wraps; give
wrap = 4294967296.
3. How fast to sample
| What | Sample time | Why |
|---|---|---|
| Inertia, friction, cycle replay | 1 ms (the position cycle) | The fit averages over ±5 ms. |
| Position-loop lag | the position cycle | |
| Current-loop lag | the current or speed cycle (62.5 to 250 µs) | The lag is a few cycles long; at 1 ms only its dead time is resolved, and a shorter time constant is reported as 0 ± one row. |
| Torque step (ringing) | ≤ 1/20 of the ringing period: 125 µs for 400 Hz | The damped sine is fitted per row. |
| Frequency response from a trace | the current-loop cycle, 125 µs or faster | At 1 ms the hold of the torque moves the dip by 10 % at 125 Hz (tested). |
| Slow reversal (presliding) | 1 ms or faster, slow enough to give four rows in the swing (below) |
A trace buffer is limited: record the long, slow tests at 1 ms and the short, fast ones at the fast rate, as separate recordings.
4. The test moves
Each test is one recording. The names are the test values of a dataset.
inertia-sines: inertia and viscous friction
A speed setpoint that is a sum of two sines, e.g. 50 % of rated speed at 1 Hz plus 15 % at 3.7 Hz, for 4 s, within the travel. Accelerations of 30 to 60 % of the axis’s limit. It has to turn the motor both ways: one direction alone cannot tell Coulomb friction from a constant torque. Position control with the machine’s normal gains is fine.
friction-map: Coulomb, viscous, Stribeck
Constant speeds both ways, each held at least 0.5 s after the speed has settled: e.g. ±0.25, ±0.4,
±0.6, ±1, ±1.6 and ±2.5 % of rated speed, then ±5, ±10, ±25 and ±50 %. The plateaus at low speed are where
the Stribeck drop is; the fit keeps it only where the trace shows it clearly above its noise, and reports
the breakaway torque (stiction_nm) and its speed (stribeck_speed_rad_s) then. Moving fast through low
speeds does not do: a passage of a few ms shows a lower peak than the steady curve (LuGre’s frictional lag;
in the tests the sines alone gave 0.067 N m for a true 0.080 N m, with the plateaus 0.077 N m).
Record it warm (after 20 minutes of the cycle) and, if friction matters, cold as well: the viscous part of grease changes by tens of percent.
slow-reversal: presliding (LuGre σ0)
A position sine of small speed through zero: e.g. 0.3 rad/s amplitude at 0.5 Hz at the motor, for 6 s. After each reversal the friction swings from one sliding level to the other over the presliding angle Tc / σ0 (µrad to mrad at the motor). The fit uses a reversal only if the swing ends while the speed stays below 1 % of the top speed of the trace and spans at least four rows, so the reversal has to be slow: an acceleration through zero speed below about 2 Tc / (σ0 (10 h)²) for the sample time h, which lets the presliding angle take ten rows. A 20-bit encoder or better. Expect an error of ±30 %; σ0 is a rough number from any drive trace.
torque-step: stiffness and damping from the ringing
The speed loop’s gain lowered as far as is safe (or torque control), a torque step of 10 to 30 % of rated
torque on a free axis, recorded at the fast rate for 0.1 to 0.3 s. The motor speed rings at the resonance
of motor against load. identify --step-from T --step-to T fits a damped sine on a quadratic trend
(the rigid acceleration) and reports its frequency and damping ratio; with --motor-inertia J (the
rotor’s inertia from the data sheet plus what sits on the motor side of the belt or coupling) and the total
inertia from the same trace, also stiffness and damping of the two-mass model. A step with the speed loop
at full gain shows the closed loop, not the mechanics.
noise-excitation or frequency-response: the two-mass model
Best: the drive’s own frequency-response measurement of the mechanics (motor torque to motor speed),
exported as a table of frequency and gain. Converted to the columns frequency_hz and
gain_rad_s_per_nm, identify --sweep FILE fits it. Otherwise record a trace with a noise (PRBS) torque
added to the setpoint, at the current-loop rate, for 10 to 30 s; identify --from HZ --to HZ computes the
response torque to speed from it (Welch, Hann windows; the trace has to hold eight windows of four periods
of the lowest frequency, so 30 s for 1 Hz) and fits the model. The response_lowest_coherence
row says how clean the response is: below about 0.8 the band holds mostly noise, or a loop is
correlating the torque with the speed (lower the speed-loop gain).
The model: motor and load inertia joined by a spring with damping, and a viscous friction at the motor. The response must hold the dip (anti-resonance), a peak above it, and at least three points below a third of the dip. The total inertia comes from the part below the dip and should agree with the inertia of the inertia-sines test; if it is clearly higher, friction is still bending the response at low frequencies (start the response higher, or excite harder).
Drive delays and filters (stage 3)
Recorded with any of the moves above. identify fits gain × first-order lag × dead time from the torque
setpoint to the torque (the current loop and its filters: needs the torque setpoint in the mapping, and the
fast rate) and from the position setpoint to the position (the position loop as a whole). The setpoint is
taken as held from row to row, as a drive holds it. A dead time below zero means the output leads the
setpoint: the two were recorded on different clocks or one is logged a cycle late. Correct the clock with
time_offset_s in the mapping, or note the offset. With velocity and torque feedforward the position follows
its setpoint so closely that only a dead time is left; that is the expected result.
cycle: replay
The machine’s real cycle without payload changes (on a delta, SCARA or arm one pick or drop is found: see the
swing below), for sim-cli replay and fit, which compare the trace
with the simulator’s config of the machine. The replay starts from the trace’s own first position and speed (a run-up
before the first row), so a trace may start and end in motion. The simulator’s trace holds in each row the setpoint the
drive worked with up to that row, the one of the cycle before; a source that records the setpoint its loop compares
with the position of the same cycle (the ISW bench’s dSPACE recordings) is one cycle ahead: give its setpoint
time_offset_s = one position cycle in the mapping, and the following errors compare.
swing: a delta, a SCARA or an arm
Where the motors do not turn in proportion to the axes (the delta’s arms), or the inertia a motor turns changes
with the pose (a SCARA’s or an arm’s elbow), fit regresses the motor torques on the machine’s own rigid model
(τ = Y(q, q̇, q̈) θ, in the motors’ coordinates) and fits the payload’s mass (a factor), and per motor an added
inertia, viscous and Coulomb friction and a constant torque. The same cycle as above does, but better is a
swing: every axis about the start pose with its own amplitude and frequency (on the delta 0.2 m across at 0.6
and 0.9 Hz and 0.06 m up and down at 1.1 Hz; on the SCARA 0.8, 0.35 and 0.8 rad and 40 mm at 0.5 to 1.1 Hz),
faded in and out over a second, 8 s, with the payload held. Over much of the range, so that gravity changes
with the pose; at several frequencies, so that inertia and friction are told apart. The values the trace cannot
tell apart (their estimates correlate by more than 0.95) are named on the error stream: only their sum is
known. A rotor and its arm’s own inertia about the joint are always one value.
On an arm or a SCARA (a URDF chain) the fit also takes each link’s mass factor (its mass, first moment and inertia
together, as the URDF would be scaled) and the change of its first moment along x, y and z of its frame. Many of
these the rigid model only knows in sums: a link turning about a fixed axis adds to its motor’s inertia and nothing
else; quill, flange and payload sit on one axis and act as one mass. Others only a trace that moves the right joints
tells apart: a link’s weight against a constant torque only where its joint swings. The fit keeps a value of its own
only where no value’s variance is inflated by more than 100 by the others’ (less than a tenth of its column outside
what the others explain); every other one is folded into the values before it, payload and motors first, and the
advice names each value’s share (fit-combined: the change shown is its own change plus each factor times the
folded one’s). For a link’s mass, swing the joints it hangs on over much of their range, against gravity. On the
six-axis arm with its gears elastic (as shipped) the load is put where the gears’ twist holds it: each motor’s angle
less the twist its torque holds through the gear’s stiffness (a two-mass model per joint), the rotor at its own
acceleration. The torque and every column of the fit are smoothed alike over ±40 ms, which takes the gears’ ringing out;
over less where a trace’s moves are too short for that (the four-arm delta’s 60 ms lifts: ±30 ms), but never less than
one period of the machine’s lowest mode.
With link 2 1.2 and link 3 1.3 times heavier, link 2’s value came out + 0.558 ± 0.025 for 0.565 (before 14 November
−9.4: the rigid model at the motors’ angles took the twist for the links’ motion). Swing well below the gears’
resonance (on the arm joint 2 rings at some 9 Hz).
A payload picked or dropped during the trace is found in the torques (no trace has a gripper column): the payload’s
factor is fitted before and after every row in turn, and the row that leaves the least sum of squares is the step,
where the factors before and after differ by more than six standard errors more than they do on the config’s own
replay (which holds the payload all along). On the delta a pick at 3.5 s came out at 3.503 s ± 0.001 s, the factor 0
before and 1 after within 0.01. Several steps are found one after the other, each in a stretch between those found
so far, up to eight: a pick at 2.5 s and a drop at 5.5 s came out at 2.489 ± 0.019 s and 5.502 ± 0.002 s, × 0.006,
0.990 and 0.007 ± 0.015. A step has to lie a tenth of the trace away from its ends and from the other steps. On a
gantry or a single axis (the fit per axis) a step gives each axis a column of its own, the payload’s force from the
step on; the advice (fit-axis-payload-step) gives its time and the change of the payload’s factor (+1 picked, −1
dropped), as do the rows payload_step_s,<axis> and payload_factor_change,<axis>, and the axis’s values are those
before the first step.
moves: belt stiffness without a sweep
fit --trace FILE --stiffness fits the belts’ stiffness (belt.stiffness_ea_n, or the spring named with
--stiffness-key) to how the trace’s own moves ring: the config is replayed with the stiffness times a factor,
and the factor is the one whose motor torques, less their mean over ±10 ms, match the trace’s. The config’s
loops, filters and friction damp the ringing in the replay as they do on the machine, so a cycle or a few
ordinary moves at the machine’s limits do; the masses have to be right first. What rings the belt is the jerk
at the ramps and, at speed, the motor’s ripple and cogging sweeping through the mode. The fit is refused
(fit-move-not-excited) where the factor’s standard error is above a tenth of it, the best factor lies at an
end of 0.25 to 4, or the trace’s ringing power is below 1.25 times what the fitted replay leaves of it (the
replay explains an RMS of less than half its residual: the move rings at its noise level): on the single axis a move of 2 mm at 1 m/s³ and 0.2 m/s² is refused, two moves of 0.8 m at the
config’s limits give 0.708 ± 0.015 for a belt of 0.7. A sweep stays the better measurement where the drive
offers it.
5. Exporting and mapping
| Format | Export | Read as | What is confirmed |
|---|---|---|---|
sinamics | Startdrive / TIA Portal trace: “Export measurement” as CSV | A table: the line before the first line of numbers holds the names, with units in [..] or (..), or a line of units under it; ;, , or tab; decimal comma where the separator is not a comma. | Siemens documents only that the export exists, not its layout. The fixture is an assumption. The native .ttrecx (a ZIP of XML and binary, known only from a reverse-engineered reader) is not read. |
twincat | TwinCAT 3 Scope View, export to CSV, full header | The header block of key/value pairs per channel (Name, SymbolName, SampleTime[ms], Unit, …), then a time and a value column per channel, in ms from the start (or FILETIME stamps). Channels of different sample times, padded cells and the EOF line are handled. | The layout of real exports of Scope 3.4 (the test data of the pytcs project). The values are taken as exported; whether Scope applies ScaleFactor and Offset before export is not confirmed, so check one value against the drive. The .svdx is not documented and not read. |
codesys | CODESYS trace: “Save trace” as .trace, .txt or .trace.csv | .trace: UTF-16 XML, Values and Timestamps per variable, µs where MicroSeconds is true, else ms. .txt: one time column with its unit in the header. .trace.csv: a data block per variable. | Real exports of a CODESYS V3.5 SP20 based IDE (MOVIRUN). In the .trace.csv, µs is taken from Flags having bit 32 set; that was seen in one export and is not documented. |
csv | anything else | as sinamics, with time naming the time column |
Copy datasets/template/map.toml and keep the block of your format. The
mapping’s motors are in the order of the machine’s motors where it is replayed or fitted against a config.
All signals are resampled (linearly) onto one grid, the step of the first motor’s position or
sample_time_s, over the time all of them cover. time_unit overrides the unit of a csv or sinamics time column (TwinCAT and CODESYS
exports state theirs, and the mapping may not). A time column without a unit is in seconds, unless its step is a drive
cycle in ms (a whole number of 125 µs from 0.5 on): a Startdrive export in ms without a unit then reads in ms, with a
note on stderr; time_unit = "s" keeps seconds. The data are the rows of numbers at the end of the file, the header the
line (and maybe a line of units) right above them; lines above that, metadata such as Sample time;0,001, are skipped
with a note. Times that do not rise are refused, naming the signal and the row. A misspelt key is refused, and so is a unit the importer
does not know unless scale says how to make N m of it.
Then:
sim-cli identify --trace trace.csv --map map.toml --out report.csv --overlay overlay.csv
sim-cli identify --trace step.csv --map map.toml --step-from 0.05 --step-to 0.25 --motor-inertia 3.6e-5
sim-cli identify --sweep response.csv
sim-cli fit MACHINE --trace cycle.csv --map map.toml
sim-cli fit delta-d3 --trace swing.csv --map map.toml
sim-cli fit MACHINE --trace cycle.csv --map map.toml --stiffness
--motor N picks the motor of a multi-motor trace for identify.
6. Reading the report
One line per quantity: value, standard error, and the 95 % interval (value ± 1.96 standard errors):
quantity,of,value,standard_error,ci95_low,ci95_high
inertia_kg_m2,m,1.049089e-4,1.165e-7,1.046806e-4,1.051373e-4
coulomb_nm,m,8.483956e-2,3.080e-4,8.423579e-2,8.544332e-2
friction_model_fit_percent,m,9.839305e1,,,
- The standard errors come from the least-squares covariance, widened for residuals that are correlated from row to row. They hold if the model is right. Where it is not (a friction that is not Stribeck, a second resonance), the error is larger than stated: compare the fits of two recordings of the same test. On synthetic traces of the static friction model, over 12 noise seeds, the scatter of viscous and Coulomb friction and the constant torque matched their standard errors (RMS of the z-scores below 2); on traces with LuGre friction and loops the values lay within 5 standard errors, or a few percent, of the true ones.
*_fit_percentis how well the model reproduces the trace: 100 % × (1 − |measured − model| / |measured − mean|). Above 90 % for the friction model on the smoothed torque is good. Lower: look at the overlay; a periodic leftover is cogging or ripple, a leftover that follows the position is a load that changes along the travel.*_following_error_fit_percentis the same for setpoint − output, which says more where the output follows closely. It goes negative where the following error is mostly noise.- A lag time constant of 0 ± one row means the trace cannot resolve it: record faster.
- No line for stiction, Stribeck speed or presliding stiffness: the trace did not show them clearly (see the tests above).
What the values are in the simulator’s config: the total inertia is the rotor plus everything reflected to
the motor (mass.*, pulley and gearbox inertia); the friction values are the sum of the guide, the gearbox
and the motor bearings at the motor shaft. sim-cli fit MACHINE splits them by axis against a config.
fit writes the config’s value, the fitted one and its standard error side by side, the config’s from the
same estimate on its own replay of the trace, so that what the estimate gets wrong on both sides drops out. On a
delta, SCARA or arm the rows are payload_factor (1 for the config) and per motor added_inertia_kg_m2
(near 0 for the config), viscous_friction_nm_s_rad, coulomb_friction_nm and constant_torque_nm, at the
motor shaft with the gearbox’s losses in them; the advice says the change. On an arm or a SCARA then per link
link_mass_factor (1 for the config) and link_first_moment_x_kg_m (_y_, _z_, near 0 for the config), only
those the trace tells apart; where the payload was picked or dropped during the trace payload_factor_before,
payload_factor_after and payload_step_s (its time and standard error) in place of payload_factor; with several
steps the factors after them and their rows are of payload 1, payload 2, … Strain wave gears lose a quarter of
what passes them, and more on a heavier payload: that shows as more Coulomb friction on the joint that carries
it, and cannot be told from it. --stiffness adds stiffness_factor with its standard error and the RMS of
the ringing in the trace and of what the fitted replay leaves of it (the noise, where the fit is good).
7. What it does not do
- It does not tell where friction or inertia sit (guide, gearbox, motor): one motor’s torque sees the sum.
- Backlash, a second resonance, or a stiffness that changes along the travel (a belt’s free length) are not in the two-mass model; fit near the position the machine works at most.
- The friction model is static plus presliding; frictional lag at fast reversals is not fitted.
- The importers have been tested on files built after the vendors’ layouts, not on files from real drives of this project. Expect the first real export to need a fix; please send it (anonymised) with the issue.
Validation dashboard and API docs
Two pages beside this book on the project site, both made by the Pages workflow (.github/workflows/pages.yml) on every
push to main:
- Validation dashboard: every check of Validation in one table, with the outcome of the test that makes it in that run, a link to the test’s source line, and, where the test records them, the reference value, the simulated value, the difference allowed and the margin left (the share of the tolerance not used, of the worst sample).
- API docs: the rustdoc of every crate of the workspace
(
cargo doc --no-deps --workspace).
How the dashboard is made
python tools/validation_dashboard.py --nextest-filterreads the tables ofdocs/validation.mdand prints a nextest filter of every Rust test they name.- Those tests run with
KS_VALIDATION_OUTset to a file. A test that callssim_core::testkit::record_check(what, reference, simulated, allowed)appends one JSON line to it:{"test", "file", "line", "what", "reference", "simulated", "allowed"}. The call asserts nothing; the test’s own assert still decides. Without the variable it does nothing. python tools/validation_dashboard.py --junit target/nextest/full/junit.xml --records <file> --out <folder>writesindex.html: a row per table row ofvalidation.md, its status from the JUnit file (pass when every test the row names passed), the recorded values of those tests under it (the worst sample of each value).
To build it locally from the tests of one crate:
KS_VALIDATION_OUT=$PWD/target/validation.jsonl cargo nextest run --cargo-profile quick --profile full -p machine-delta-d3
python tools/validation_dashboard.py --junit target/nextest/full/junit.xml --records target/validation.jsonl
The page is then target/validation/index.html; checks of tests that did not run show as “not run”.
What it does not show
- Values for most checks: only the tests that call
record_checkwrite them (the delta pickers’ and the wafer handler’s hand calculations, the references against SymPy, SciPy, MuJoCo and the Python drive, the ISW bench’s inertia and mass). The other rows show the test’s outcome and the reference and tolerance asvalidation.mdstates them. - The Python tests (pytest): named in the tables and linked, not run by the Pages workflow (“not run”).
- Rows without a test (the tables of figures: the shipped configs’ feedforward, the ISW recordings) are shown as figures, with no status.
- A test name defined in two crates gets the outcomes of both together.
Python module
kinematics_sim runs the simulator from Python: the machines, their configs, runs, the cycle analysis, the verdicts with
their error bands, the catalogue sizing, the cycle optimiser, the frequency sweep and the fitting and identification
from measured traces, the loop analyses (step, Bode, tuning, margins, modes), sensitivity, replay, effect comparison,
the sizing report, the dataset check and the FMU export. Every command of sim-cli is a function (list is
machines; what the functions leave out is listed at the end), and they give the same numbers (the tests in
crates/sim-py/tests compare them). Results come as NumPy arrays and as dicts of equal-length columns;
pandas.DataFrame(result) takes every table as it is.
Source: crates/sim-py (PyO3 0.30.1, built with maturin 1.16.0). The wheel is abi3: one wheel per platform serves
every CPython from 3.10 on. Type stubs and the py.typed marker are in the wheel. The extra kinematics-sim[mcp] adds
an MCP server for LLM clients: MCP server and coding agents.
Install
pip install kinematics-sim
PyPI has the wheels of each release for Windows, Linux (x86-64) and macOS (Apple silicon); the extra mcp is
there from 1.1.0 on. For the state of the repository, build the wheel there and install it:
pip install maturin==1.16.0
cd crates/sim-py
maturin build --release --out ../../target/wheels
pip install ../../target/wheels/kinematics_sim-*.whl
maturin develop --release installs it into the active virtual environment instead. A Rust toolchain (1.98.1) is
needed for either. CI builds the wheel for Windows and Linux and keeps it as an artifact (wheel-windows-latest,
wheel-ubuntu-latest).
Use
import kinematics_sim as ks
import pandas as pd
ks.machines() # [{"id": "t-gantry", "name": "T-gantry"}, ...]; ks.machines("de") in German
cfg = ks.Config("t-gantry") # the default config; Config("t-gantry", path="my.toml") or text="..."
cfg["mass.payload_kg"] # 2.0
cfg["mass.payload_kg"] = 3.5 # the value at a dotted path
cfg.set('parts.motor = "1FK2104-5AK"') # exactly as sim-cli --set: the value in TOML syntax
cfg.to_toml() # the config as TOML
run = pd.DataFrame(ks.run(cfg, cycle=True, time=2.0)) # every signal, one column each, "time" first
pd.DataFrame(ks.analyze(cfg)) # one row per motor, the columns of sim-cli analyze
pd.DataFrame(ks.verdicts(cfg, bands=True)) # one row per check and motor, with low, high, worst_ok
pd.DataFrame(ks.sizing(cfg, series="1FK2")) # every catalogue motor on this cycle, passing first
| function | what it does | as on the command line |
|---|---|---|
machines(lang="en") | the machines of the registry, with their names in English or German | sim-cli list |
Config(machine, text=None, path=None) | a machine’s default config, a config in TOML text, or a config file | --config FILE |
Config(machine_file=FILE, text=None, path=None) | the same for a machine from a machine file (machine files); an error in the file names the file and line | --machine-file FILE |
cfg[path] = value, cfg.set("path = value") | a value set on top. A part named under [parts] (cfg["parts.motor"] = "1FK2104-5AK") acts as --motor and the other part options: all named parts come in from the catalogue together, and every other value set stays on top of theirs, in whatever order the two were set | --set, --motor and the other part options |
signals(cfg) | {"id": [...], "unit": [...]}, the signals in the order run gives them | the header of sim-cli run |
label(cfg, key, lang="en") | the text of a message key for the machine, e.g. "check-motor-thermal" (what a verdict judges, with its unit); a key with no text comes back as it is | the texts of sim-app and the report |
run(cfg, cycle=, move_to=, path=, trajectory=, time_optimal=, time=2.0, every=16, disable_at=) | {signal id: array} over time seconds, sampled every every base steps | sim-cli run |
analyze(cfg, path=, trajectory=, time_optimal=, points=False) | the load per motor over one pass of the cycle, or over a path; points=True adds the operating points per motor as an (n, 2) array of speed (rad/s) and torque (N m); torque_unit and speed_unit give each motor’s units ("N m" and "rad/s", on a linear motor "N" and "m/s") | sim-cli analyze (the column names are fixed: on a linear motor *_torque_nm holds N and peak_speed_rad_s m/s; the CLI’s trailing torque_unit,speed_unit columns, and those of --points and --breakdown) |
verdicts(cfg, bands=False, samples=None, seed=1, worst=False, path=None, path_file=None, time_optimal=False) | the checks; with bands their lowest and highest value over the [bounds] and whether the worst case passes; with samples N runs drawn between the bounds and the share that passed; with bands=True, worst=True the worst corner per check: worst, limit, worst_ok, at_high_bound and at_low_bound (lists of parameters), and runs; with path (the text of a path file or robot CSV, or with path_file a program by that name’s extension) the path’s run is judged in place of the cycle | sim-cli verdicts [--bands] [--samples N --seed S] [--worst] [--path FILE [--time-optimal]] |
sizing(cfg, supply=None, vendor=None, series="", gearboxes=None, axes=False, motor_id=None, drives="paired", rank_by="cost", duties=None, path=None, path_file=None, time_optimal=False) | every catalogue motor on the config’s cycle, passing and cheapest first; supply one of the catalogue’s ("400v" when left out), vendor a maker’s supplies or "all" makers’, with the columns vendor and supply; drives "paired", "neighbours" or "all", rank_by as --rank-by ("energy", "cost=1,energy=0.5", …), duties a duty mix as a list of (Config, weight), the first the config searched on. The columns of the wide table: rank, front, cycle_s, energy_j, thermal_utilisation, drive_current_utilisation, following_error_m, settling_error_m, inertia_ratio, failing and estimated (lists), u_<check> per check (NaN where a candidate has none), torque_unit (of peak_torque_nm: "N" on a machine of linear motors, else "N m", the CLI’s trailing column); with path each candidate runs the path in place of the cycle | sim-cli search [--drives] [--rank-by] [--config --config --weights] [--path FILE [--time-optimal]] |
sweep(cfg, motor=0, from_hz=5.0, to_hz=500.0, count=120, amplitude=None) | the frequency response from a motor’s torque to its speed: frequency_hz, gain_rad_s_per_nm, phase_deg | sim-cli sweep |
optimise(cfg, runs=40, nominal=False, worst=False, pareto=False, path=None, path_file=None, time_optimal=False) | a shorter cycle that passes every verdict: cycle_s, dwell_error_peak_m and dwell_angle_error_peak_rad as (before, after), runs, changes (columns setting, before, after), robust (what the bands cost, or None), with pareto the front as columns; with path the path’s time is shortened in place of the cycle’s | sim-cli optimise [--path FILE [--time-optimal]] |
fit(cfg, trace_file=, map_file=, stiffness=False, stiffness_key=, sweep_file=, sweep_motor=0, amplitude=) | what a measured trace or sweep says the config should be: quantity, of, config, fitted, standard_error (NaN where the command line leaves the cell empty), units, the unit of each row ("" where it has none; the rigid values moved_mass_kg, viscous_friction_n_s_m, coulomb_friction_n, constant_force_n are kg, N s/m, N, N on a linear axis and kg m², N m s/rad, N m, N m on a rotary one; the CLI’s trailing units column), advice, what to change, and errors (see below) | sim-cli fit |
identify(trace_file=, map_file=, config=, motor=0, from_hz=, to_hz=, step_from=, step_to=, motor_inertia=, sweep_file=) | one motor’s drive train from its own trace: quantity, of, value, standard_error, ci95_low, ci95_high, notes (what the trace could not tell), overlay (measured and modelled signals with time) and errors | sim-cli identify [--overlay] |
step(cfg, axis_index=0, size=0.001, time=0.5) | an axis’s answer to a setpoint step: time_s, setpoint, response, and rise_time_s, overshoot, settling_time_s | sim-cli step |
bode(cfg, axis_index=0, from_hz=1.0, to_hz=200.0, count=40, amplitude=0.0005) | the closed-loop response of an axis’s position loop: frequency_hz, gain, gain_db, phase_deg | sim-cli bode |
tuning(cfg, size=0.001, amplitude=0.0005) | per axis rise_time_s, overshoot, settling_time_s, bandwidth_hz (NaN where the response stays above -3 dB to 200 Hz) | sim-cli tuning |
margins(cfg, bands=False) | per run and motor the velocity loop’s crossover_hz, phase_margin_deg, gain_margin_db, peak_sensitivity, peak_frequency_hz, ok; crossover_hz and phase_margin_deg are NaN where the loop has no gain crossover in the band (not measurable; the CLI leaves the cells empty), and ok is then the gain margin’s alone | sim-cli margins [--bands] |
modes(cfg, axis_index=0, points=21) | the modes over an axis’s stroke: position, mode<i>_hz, mode<i>_damping (NaN where a place lacks one), and mode<i>_small_hz where the machine’s small-amplitude modes differ (a gearbox’s hysteresis stiffness K1 + sigma, the 3-axis delta) | sim-cli modes |
sensitivity(cfg, delta=0.2, groups=None) | each parameter at its low and high value, strongest first: parameter, value, low, high, the relative changes of peak and RMS torque and cycle time, the least belt tension | sim-cli sensitivity [--group G] |
global_sensitivity(cfg, method="morris", samples=None, seed=1, groups=None, results=None) | all values of [bounds] at once, ranked per result: result, rank, parameter, and mu_star, mu, sigma (Morris) or first, first_low, first_high, total, total_low, total_high (Sobol’) | sim-cli sensitivity --method morris|sobol |
replay(cfg, trace_file=, map_file=None) | a trace’s setpoints through the simulator: per motor torque and following error apart (RMS, peak), and overlay, measured and simulated side by side | sim-cli replay [--out FILE] |
compare(cfg, effect=, signals=None) | the cycle with effects.<effect> on and off: time, <id>.on, <id>.off, and differences (signal, unit, peak_difference, rms_difference) | sim-cli compare [--differences FILE] |
report(cfg, path, bands=False, lang="en") | the sizing report as PDF (a path ending in .pdf) or HTML; returns whether every check passed | sim-cli report |
check_dataset(path) | what keeps a dataset folder from being published, one text per problem; empty: ready | sim-cli check-dataset |
fmu(cfg, path, binaries=[...], fmi=2, lang="en") | the machine as an FMI 2.0 or 3.0 FMU (FMI) carrying the sim-fmi binaries named (cargo build -p sim-fmi --release builds the one of this platform) | sim-cli fmu [--binary FILE] |
path and trajectory take the text of a path file or a trajectory file (formats: sim_components::path), not a file
name: ks.analyze(cfg, path=open("pick.path").read()). trace_file, map_file and sweep_file take file names, as the
command line does (a vendor export is decoded from its bytes). A refused config, command, path or trace raises
ValueError with the simulator’s message in English; an unknown machine or config key read with cfg[path] raises
KeyError; an int beyond 64 bits set with cfg[path] = value raises OverflowError (TOML’s integers are 64-bit; before
14 November 2026 it became a float silently). run takes at most 1e8 base steps and samples at most 2.5e8 values (2 GB
of arrays); a longer run raises ValueError at once instead of seeming to hang or exhausting the memory: raise every,
or run in pieces.
A config change is checked as a config file is: a key the machine’s default config does not have is refused by name.
fit and identify run several fits, and one may find nothing (a measured sweep with no resonance, a trace with no
ringing after step_from, no two-mass model). The command line writes what the others found and then fails; these two
functions return what the others found, and list each fit that found nothing in result["errors"] (its rows are not in
the table). Check it: an empty list means every fit asked for is there. What keeps every fit from starting (a refused
config, an unreadable trace or sweep file) still raises ValueError.
Test your own controller
ks.Sim(cfg) is a simulation you step yourself, so that a controller written in Python closes the loop on the
simulated mechanics:
sim = ks.Sim(cfg) # at rest at the start pose, drives on, every motor in position mode
out = sim.step(torque=[0.3]) # one cycle (sim.cycle = profile.setpoint_interval_s) in torque mode, N m per motor
out = sim.step(velocity=[20.0], time=0.001) # 1 ms in velocity mode, rad/s per motor (m/s on a linear motor)
out = sim.step(setpoint=[0.5]) # position mode: a setpoint per tool axis, interpolated as from a PLC
out["motor.a.angle"], out["motor.a.speed"], out["motor.a.current"] # every signal at the end of the step
sim.signals(), sim.time, sim.dt, sim.modes # ["torque"], ...
sim.analyze() # the columns of ks.analyze over the run since the start or reset()
sim.verdicts() # the verdicts on that run: check, motor, value, limit, ok
sim.stop(1) # a category 1 stop (0: torque off, 2: brake and hold); step() runs it
sim.enable() # the drives on again
sim.reset()
The modes are a servo drive’s: in torque mode your torque replaces the velocity loop’s output, in velocity mode your
speed replaces the position loop’s; either way it still passes the drive’s torque filter, torque limit and delay, the
current loop, the winding and the DC link, so a torque above the limit is clamped and current, voltage and winding
temperature are as real. A step with none of torque, velocity, setpoint keeps the modes and setpoints. A mode
switch does not make the torque jump where the drive’s own loops take over (their PI starts from the torque last asked
for); a setpoint or another plan command is refused while a drive is out of position mode, and a setpoint puts every
drive back in it. FMI export has the details, which are the
same.
analyze() and verdicts() judge your controller’s run as ks.analyze and ks.verdicts judge the built-in drive on
the cycle: peak and RMS torque, thermal utilisation, winding rise, energy and the DC link, the gearbox and belt checks.
“cycle_s” is the time run. The path and tracking errors there are measured against the controller’s plan, which stands
still while you drive: judge the following of your own setpoints yourself.
crates/sim-py/examples/own_controller.py is a worked example: it measures the inertia at the motor with two torques
(1.344e-4 kg m^2 on the belt axis, by hand 6 kg (0.02/5)^2 + 0.26 kg of belt (0.02/5)^2 + 1e-4/25 + 0.3e-4), tunes a
PD on the motor angle for 20 Hz, runs it at 1 kHz on the move the built-in cascade runs, and prints both runs’ load and
failing checks. The PD needs about the RMS torque of the cascade (0.172 against 0.174 N m) and, having no integrator,
stops 0.05 rad short against the guides’ friction.
Parameter sweeps
Every long call releases Python’s global interpreter lock, so a thread pool runs several on all processors:
from concurrent.futures import ThreadPoolExecutor
def peak(mass):
c = cfg.copy()
c["mass.payload_kg"] = mass
return ks.analyze(c)["peak_torque_nm"].max()
with ThreadPoolExecutor() as pool:
peaks = list(pool.map(peak, [1.0, 2.0, 4.0, 8.0]))
crates/sim-py/examples/parameter_sweep.ipynb is a worked example: the T-gantry’s payload from 0.5 kg to 8 kg, peak and
RMS torque, thermal utilisation and the verdicts per mass, and the signals of one run as a DataFrame. The test suite
runs it from top to bottom.
Cancel a long call
A Job counts the runs of the analyses called inside it and stops them from another thread (the MCP server does this
when a call times out). job.cancel() starts no new run; job.run raises kinematics_sim.Cancelled (an Exception)
once the runs under way have ended:
import threading
job = ks.Job()
t = threading.Thread(target=lambda: job.run(lambda: ks.verdicts(cfg, bands=True, samples=2000)))
t.start()
print(job.done, "of", job.total) # runs finished, runs planned so far (later batches add to it)
job.cancel(); t.join() # the thread's job.run raised ks.Cancelled
Every function the callable calls on that thread belongs to the job; one that raises something else keeps its error.
A job that is cancelled before run ends the first batch at once. Calls without a job run to the end as before.
Tests
cargo build -p sim-cli -p sim-fmi --release # the tests compare with them
pip install "pytest==9.2.0" pandas matplotlib nbformat nbclient ipykernel
pytest crates/sim-py/tests
The suite checks the machine list, config reading, setting and refusals, the TOML round trip, run against
sim-cli run (same samples to 1e-8), analyze and verdicts against the command line, that a heavier payload needs
more torque, the order of the sizing table, that two threads get the same result, and the notebook. 11 tests pass on
Windows with CPython 3.14 (13 November 2026). Added on 14 November 2026: a machine file run against
sim-cli run --machine-file, its refusals, sweep, optimise, fit and identify against the command line on one
pass of the cycle, the overflow of 2^63 (one more than the largest 64-bit integer) and the guard on run(time=1e12);
those 10 pass on Windows with CPython 3.14. Added later that day, each against the command line on a shipped config:
step, bode, tuning, margins, modes, sensitivity, replay (with its overlay), compare (with its
differences), report (the same HTML), check_dataset, fmu (the same FMU bytes, FMI 2.0 and 3.0), verdicts at the
worst corner, sizing of one motor of a machine file and by vendor, and fit and identify with a sweep that has no
resonance (the same rows as the command line writes before it fails, and the failure in errors); those 13 pass on
Windows with CPython 3.14 in 19 minutes, most of it the worst-corner search and the sizing.
Not covered
What the command line writes to the error stream beside its table (the clearance of a planned path to obstacles, the
thermal start of the measured pass, the conveyor’s picks, the search’s timing and screened count, the deviation of a
planned path) has no place in the results. analyze’s --breakdown and --budget tables, optimise’s TOML of the new
cycle, and --catalog DIR (another catalogue folder) have no argument. path= takes the text of a path file only, not
a G-code, KRL, RAPID or robot CSV program as --path FILE does. fmu needs the sim-fmi binaries named. sim-cli search --robust, transmission and compare-kinematics have no function yet. Messages are in English only.
MCP server and coding agents
Two ways for an LLM to drive the simulator: the MCP server for chat clients (Claude Desktop, Claude Code, Cursor,
any client of the Model Context Protocol), and sim-cli for coding agents that have a shell. Both give the
numbers of the Python module and the command line; neither makes them more certain:
read what it can and cannot tell you first.
The MCP server
kinematics_sim.mcp is a server on top of the Python module, written with the official MCP Python SDK (mcp 2.x,
MCPServer), on stdio. It keeps configs as named sessions in its memory, so a conversation can build variants and
compare them, and it gives compact JSON: units in the key names, tables cut to their top rows with the number left
out, and a notes field in every result with what the numbers cannot claim (which values are estimates, what was not
validated), so that the model passes the limits on instead of overclaiming.
Install
The extra mcp is on PyPI from 1.1.0 on. With uv nothing has to be
installed by hand:
uvx --from "kinematics-sim[mcp]" kinematics-sim-mcp
or into an environment of your own: pip install "kinematics-sim[mcp]", then kinematics-sim-mcp (or
python -m kinematics_sim.mcp). From the repository: pip install maturin==1.16.0 "mcp>=2.3,<3", then
maturin develop --release in crates/sim-py (Python module).
A call that runs longer than 900 s is given up with a message (set KINEMATICS_SIM_MCP_TIMEOUT_S to change it), and
so is one the client cancels: its job (kinematics_sim.Job, Python module) is cancelled,
so no new run starts and its thread ends once the runs under way have. Long calls report progress every 5 s to a client
that asks for it: the progress is the seconds used of the timeout (it rises with every notice, as MCP wants), the
message says the runs finished of runs planned so far. A panic of the simulator’s core is answered as a tool error
(“the model failed internally”) and the server and its sessions stay.
Limits, so that one call or a client’s retries cannot use the machine for hours or the memory without end: at most 32
sessions (a new one beyond that drops the least recently used; there is no tool to delete one), optimise_cycle at most
200 runs, positioning_accuracy at most 20 points and 20 repeats. A call above a limit is refused with a message
that names it. (The constants are at the top of kinematics_sim/mcp.py.)
Client configuration
Claude Code:
claude mcp add kinematics-sim -e KINEMATICS_SIM_MCP_OUT_DIR="$HOME/kinematics-sim" -- uvx --from "kinematics-sim[mcp]" kinematics-sim-mcp
The variables are in the output folder below.
Claude Desktop (claude_desktop_config.json; Settings, Developer, Edit Config) and Cursor (.cursor/mcp.json
in a project, or ~/.cursor/mcp.json) take the same entry:
{
"mcpServers": {
"kinematics-sim": {
"command": "uvx",
"args": ["--from", "kinematics-sim[mcp]", "kinematics-sim-mcp"],
"env": { "KINEMATICS_SIM_MCP_OUT_DIR": "C:\\Users\\me\\Documents\\kinematics-sim" }
}
}
}
With the package installed in an environment, "command": "kinematics-sim-mcp" (the full path to the script in that
environment) and no args does the same.
Tools
| Tool | What it gives |
|---|---|
list_machines | Every machine: id and name |
describe_machine | A machine or session: name, motors and axes, the settings that matter with their labels and units, the estimates with their [bounds] (value, low, high), the effects on and off |
create_session | A named config in the server’s memory: a machine’s default, TOML text, or a copy of another session |
list_sessions | The sessions, their machines and how many values differ from the default |
get_config | Values by dotted path, every value under a prefix (motor.), or the whole config as TOML |
set_config_values | Values by dotted path, all or nothing; a misspelt key is refused with the keys it may have meant |
config_diff | What differs from the machine’s default, or from another session |
check_sizing | Pass or fail per check and motor: value, limit, margin_share (share of the limit left, negative where exceeded) and a one-line meaning with the unit; tightest first. bands=true adds the range over the estimates’ bounds and worst_ok |
analyze_cycle | Per motor peak and RMS torque, peak speed, utilisation of the torque-speed curve, thermal utilisation, winding rise, RMS current, energy in and regenerated; more columns on request |
run_path | A path given inline (lines, arcs, splines; the format of a path file): duration, path error, tracking error, load per motor |
find_motor | The catalogue search: the top N motors with drive and gearbox, passing and cheapest first, with what each fails and which of its values are estimates |
optimise_cycle | A shorter cycle that passes every check: cycle time before and after and the settings changed, as values set_config_values takes |
loop_margins | Per motor the velocity loop’s crossover, phase and gain margin, peak sensitivity at each pose the cycle stops at; failing rows first, then the smallest phase margin; top caps the rows |
positioning_accuracy | ISO 230-2 per axis and ISO 9283 at the tool (simulated) |
sensitivity | Which uncertain values move the results most (one at a time, or Morris / Sobol’ over all bounds): what to measure first |
write_report | The sizing report as HTML or PDF, into the output folder under a file name ending in .html or .pdf |
export_fmu | An FMI 2.0 or 3.0 FMU, into the output folder under a file name ending in .fmu, carrying the sim-fmi library the operator set up |
session takes a session’s name or a machine id (its default config, not stored).
Files: the output folder
A tool is called by a model, and a model can be steered by what it reads (a web page, a file, a message: prompt injection). So the two tools that write files write only where the operator, who starts the server, says:
| Variable | Effect |
|---|---|
KINEMATICS_SIM_MCP_OUT_DIR | The output folder (created if missing). Default: kinematics-sim-output in the server’s working directory, which is wherever the client starts it: set it |
KINEMATICS_SIM_MCP_IN_DIR | The input folder: the only place a file named by a config value may be read from (see below). Unset, no file is readable |
KINEMATICS_SIM_MCP_OVERWRITE | 1 lets a tool replace an existing file; otherwise an existing name is refused |
KINEMATICS_SIM_FMI_BINARIES | The sim-fmi libraries an FMU carries (sim_fmi.dll, libsim_fmi.so, libsim_fmi.dylib), separated by ; on Windows and : elsewhere. Without it, as sim-cli fmu does, this platform’s library beside a sim-cli on PATH (a release ships them together; cargo build -p sim-fmi --release builds it) |
KINEMATICS_SIM_MCP_TIMEOUT_S | Seconds before a call is given up (default 900) |
The model gives a file name, or a relative path inside the folder (variants/gantry-3kg.html). A name that leads out
of the folder is refused: .., an absolute path, a drive (C:x.html), a network path, a link or junction inside the
folder that points out of it. So is a name with another extension, and an existing file unless overwriting is allowed.
The result gives the full path written, to show the user. The FMU’s binaries never come from the call.
Files: the input folder
The same holds for reading. A few config values name a file the simulator opens when the machine is built: any key
ending in _file (arm.urdf_file, a cam’s table_file). Through create_session and set_config_values a model
may leave such a value empty or at the machine’s own default (the built-in URDF names), or name a file of at most 5 MB
inside the folder in KINEMATICS_SIM_MCP_IN_DIR, checked after resolving the path (.. and links out of the folder
are refused; a relative path is the server’s working directory’s). Anything else gets one fixed refusal that does not
say whether the file exists. Python 3.10 has no TOML parser in its library, so there create_session(toml=...) refuses
any text with _file in it. The CLI and the app read any path.
The resource kinematics-sim://limits is a summary of what it can and cannot tell you;
the prompt size_a_motor (argument: a description of the machine) walks a model through describe, configure,
analyse, check, search, bands and sensitivity.
A worked example
What a conversation in Claude Code looks like with the server added (the tool results are real, trimmed; the model’s wording is an example):
You: The T-gantry from the simulator with 3.5 kg instead of 2 kg: do the motors still pass?
The model calls create_session {"name": "heavier", "machine": "t-gantry"} and then
set_config_values {"session": "heavier", "values": {"mass.paylod_kg": 3.5}} with a typo. The server refuses:
Error executing tool set_config_values: nothing was changed. mass.paylod_kg: Configuration value is missing:
mass.paylod_kg (did you mean mass.payload_kg, mass.z_axis_kg, mass.carriage_kg?)
It retries with mass.payload_kg, then calls analyze_cycle {"session": "heavier"}:
{"motors": [{"motor": "a", "cycle_s": 6.08, "peak_torque_nm": 0.6296, "rms_torque_nm": 0.1885,
"peak_speed_rad_s": 200.6, "utilisation": 0.1662, "thermal_utilisation": 0.1484,
"winding_rise_k": 1.60, "rms_current_a": 0.4191, "energy_in_j": 96.0, "energy_regenerated_j": 12.9},
{"motor": "b", "peak_torque_nm": 0.4666, "thermal_utilisation": 0.1327, "...": "..."}],
"notes": "utilisation and thermal_utilisation above 1 fail. ... Only one machine (a ball screw bench) was measured; ..."}
and check_sizing {"session": "heavier", "bands": true, "top": 3}:
{"passed": true, "failed": [], "worst_case_failed": [],
"rows": [{"check": "dc-link-energy", "motor": "a", "meaning": "Largest braking into the DC link [J]",
"value": 6.205, "limit": 6.205, "ok": true, "low": 6.205, "high": 6.205, "worst_ok": true,
"margin_share": 0.0},
{"check": "dc-link-overvoltage", "motor": "a", "meaning": "Highest DC link voltage [V]",
"value": 224.7, "limit": 257.6, "ok": true, "worst_ok": true, "margin_share": 0.1277, "...": "..."}],
"row_count": 40, "rows_left_out": 37,
"notes": "margin_share: share of the limit left (negative: exceeded by). ... worst_ok judges the worst case within the bounds. ..."}
Model: Yes. With 3.5 kg every one of the 40 checks passes, also at the worst corner of the estimated values’ bounds. The motors are lightly loaded (motor A at 17 % of its torque-speed curve and 15 % thermally); the rows closest to their limits are the DC link’s (braking energy at its limit, voltage 13 % below it), not the motors. These numbers rest on estimated friction, damping and stiffness (this default config is a placeholder machine, not a product), so treat them as a comparison with the 2 kg case rather than as a guarantee.
Asked for a smaller motor, it calls find_motor {"session": "heavier", "series": "1FK2", "top": 2}: all 28 candidates
of the series pass, the lightest first, 1FK2203-2AK with the drive 6SL3210-5HE10-4UF0 (1.16 kg, tightest check
gearbox-radial-load at 0.43, three of its values estimated).
Tests
crates/sim-py/tests/test_mcp.py drives the server through the SDK’s own client, in process for every tool and once
over stdio as a client starts it (python -m kinematics_sim.mcp): on the first two machines of the registry (the
T-gantry and the single axis) it checks the tools against the module’s own results (verdicts, analysis, path error,
search order, margins, accuracy), the sessions and the diff, the refusal of a misspelt key with the key meant, the
all-or-nothing set, a path that leaves the travel range, the report and the FMU written into the output folder (and
.., an absolute path, another extension, an existing file and, where the system lets a test make one, a link out of
the folder refused; the FMU’s library only from the operator’s variable), the timeout, the resource and the prompt. 10 tests pass on Windows with CPython 3.14 and mcp 2.3.0 in about 3 minutes (16 November 2026).
Not tried: the server in Claude Desktop, Cursor or another client’s own process (the tests use the SDK’s client, as the clients do, but not the clients themselves); Linux and macOS; Python 3.10 to 3.13; the HTTP transports.
Using sim-cli from a coding agent
An agent with a shell (Claude Code, Cursor, Codex) can run sim-cli from a release or a build
(cargo build -p sim-cli --release, then target/release/sim-cli). What it needs to know:
- Output: results are CSV on standard output, one header line, units in the column names (
peak_torque_nm,winding_rise_k); messages, warnings and summaries (thermal start, accuracy figures, search time) go to the error stream.--out FILEwrites the CSV to a file instead. - Exit codes: 0 when the command ran and everything it judged passes; 1 when it ran and printed a failing row
(
verdicts,margins,stop,accuracy,report): the table is whole, read it for which check saysFAIL, and do not treat the 1 as a crash; 2 for a refused option, config, key or value, with one line on the error stream saying what (Configuration value is missing: mass.paylod_kg,This command has no such option: --band). A result that isinfornancomes with a note on the error stream: the loop is unstable,sim-cli margins MACHINEmeasures it. - Values:
--set path=value(repeatable, dotted path as in the config reference, a misspelt key is refused),--config FILEfor a whole config,--motor ARTICLE,--gearbox,--drivefor catalogue parts. - Help:
sim-cli help(or--help) lists the commands, one to a line;sim-cli help COMMAND(orsim-cli COMMAND --help) prints the options of that command alone,sim-cli help optionsthose every command takes,help pathsthe path file formats andhelp unitsthe units of the columns; all exit 0. A wrong call names the help of its command in one line and exits 2.sim-cli --versionprints the version. The user guide has the details. - Keep the output small: write long tables with
--out FILEand read the head; pick columns withcut -d, -f....runwrites every signal (115 columns on the T-gantry) at every 16th base step: use--every 160or more, oranalyzefor the summary. Piping intoheadcan endsim-cliwith a “failed printing to stdout” panic onceheadcloses the pipe: harmless, but write to a file to keep the log clean.
The commands that answer the common questions (outputs from a Windows build of 16 November 2026, trimmed; the times were taken on a 16-thread machine with other work running and vary with load):
| Question | Command | Time |
|---|---|---|
| Which machines are there? | sim-cli list | instant |
| Does it pass? | sim-cli verdicts t-gantry [--set mass.payload_kg=3.5] | 5 to 45 s |
| Does it pass with the estimates at their bounds? | sim-cli verdicts t-gantry --bands | 80 s |
| How loaded is each motor? | sim-cli analyze t-gantry | 5 to 45 s |
| Which catalogue motor? | sim-cli search t-gantry --series 1FK2 | 15 s |
| How much faster can the cycle be? | sim-cli optimise t-gantry --runs 8 | 60 s |
| Is the velocity loop stable enough? | sim-cli margins t-gantry | 3 s |
| How accurate is it at rest? | sim-cli accuracy t-gantry --points 3 --repeats 2 | 7 s |
| What should I measure first? | sim-cli sensitivity single-axis | 13 s |
| How well does it follow a path? | sim-cli analyze t-gantry --path corner.path | 13 s |
| An FMU for Simulink or Modelica | sim-cli fmu t-gantry --out t.fmu --binary sim_fmi.dll | 1 s |
$ sim-cli list
t-gantry T-gantry
single-axis Single axis
delta-d3 Delta picker (3 arms)
...
$ sim-cli verdicts t-gantry
check,motor,value,limit,result
motor-peak,a,0.1478,1.000,ok
motor-thermal,a,1.282,100.0,ok
motor-s1,a,0.1690,1.270,ok
... (40 rows)
$ sim-cli verdicts t-gantry --set mass.payload_kg=40 | grep -v ',ok$'
check,motor,value,limit,result
braking-resistor-continuous,b,27.06,20.00,FAIL
settling,,0.0003377,0.0001000,FAIL
belt-least-tension,,0,0,FAIL
$ sim-cli verdicts t-gantry --bands
check,motor,value,limit,result,low,high,worst_case
motor-peak,a,0.1478,1.000,ok,0.1436,0.1552,ok
motor-thermal,a,1.282,100.0,ok,1.207,1.456,ok
...
$ sim-cli analyze t-gantry --set mass.payload_kg=3.5 --out load.csv
$ cut -d, -f1-7,11 load.csv
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,winding_rise_k
a,6.080000,0.629550,0.188476,200.5643,0.1662,0.1484,1.60
b,6.080000,0.466639,0.168570,200.5542,0.1229,0.1327,1.27
$ sim-cli search t-gantry --series 1FK2 --out search.csv
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 28 candidates
$ cut -d, -f2,4,7,9-11 search.csv | head -3
motor,drive,mass_kg,result,tightest_check,tightest_utilisation
1FK2203-2AK,6SL3210-5HE10-4UF0,1.16,ok,gearbox-radial-load,0.4301
1FK2103-2AH,6SL3210-5HE10-4UF0,1.18,ok,gearbox-radial-load,0.4303
$ sim-cli optimise t-gantry --runs 8
setting,before,after
cycle_s,6.0800,3.6220
dwell_error_peak_m,4.296e-5,4.672e-5
dwell_angle_error_peak_rad,-0.000e0,-0.000e0
bands_fastest_cycle_s,,3.6220
bands_fastest_fails,,
bands_steps_back,,0
bands_excused,,
axis.x.max_velocity_m_s,0.8,1.44
axis.z.max_velocity_m_s,0.4,0.72
effects.corner_blending,false,true
...
$ sim-cli margins t-gantry
run,motor,crossover_hz,phase_margin_deg,gain_margin_db,peak_sensitivity,peak_frequency_hz,play_margin_db,result
,a,178.1,57.7,9.93,1.773,277.3,,ok
,b,170.5,56.1,9.84,1.768,277.3,,ok
$ sim-cli accuracy t-gantry --points 3 --repeats 2 --out acc.csv
Accuracy along ISO 230-2, axis x [m]: B 2.618e-5, R 2.621e-5, E 5.072e-5, M 3.724e-5, A 5.073e-5 (...)
Accuracy at the tool along ISO 9283, over the axes in metres: AP 5.625e-5, RP 1.565e-7, vAP 2.618e-5 (...)
$ sim-cli sensitivity single-axis | cut -d, -f1-8 | head -3
parameter,value,low,high,peak_torque_low,peak_torque_high,rms_torque_low,rms_torque_high
friction_x.viscous_n_s_m,20.0,10.0,40.0,-0.0443,+0.0883,-0.1381,+0.3016
gearbox.ratio,5.0,4.0,6.0,+0.1650,-0.0906,+0.1631,-0.0982
$ sim-cli analyze t-gantry --path corner.path --out path.csv
$ cut -d, -f1-3,16-18 path.csv
motor,cycle_s,peak_torque_nm,path_error_peak_m,path_error_rms_m,tracking_error_peak_m
a,2.128000,0.542380,1.299e-4,4.397e-5,1.771e-4
b,2.128000,0.302509,1.299e-4,4.397e-5,1.771e-4
$ sim-cli fmu t-gantry --out t.fmu --binary target/release/sim_fmi.dll
corner.path is examples/corner.path (a line, an arc and a line). In sensitivity the
_low and _high columns are relative changes (+0.0883: 8.8 % more); in accuracy the figures are in metres.
Every column is explained in the user guide.
The simulator in the browser (WebAssembly): 3D view, plots and sizing check
The core, the machines, machine files, the catalogue and the analysis build for wasm32-unknown-unknown.
crates/sim-wasm wraps them in a few C-ABI functions, and crates/sim-wasm/web/index.html is a static page that loads
the module: pick a machine (registered, one of the machine files of machines/, or a TOML or JSON machine file opened or pasted
into the editor), edit its config, run its cycle or a path, and the page shows the machine in 3D with its obstacles and
the tool’s trail, time plots of torque, speed and following error per motor, and a sizing check with every verdict,
every column of sim-cli analyze and the operating points over the motor’s torque-speed curve. A frequency sweep and a
fit of masses and friction to a measured trace are there too. Nothing leaves the browser; there is no server beyond one
that hands out two files. The page is in English and German (the switch at the top; the browser’s language first).
It is the workbench without an install: every machine of the registry and every machine file of machines/ in the
selector; a form over the config (the motor, supply, gearbox, drive, belt and axis from the catalogue, the masses and
payload, the axes’ profile limits, the velocity loop’s gains, and every other number behind a filter), which writes a
change into the config’s own TOML with its comments kept; the config saved as and opened from a TOML file; the verdict
table of sim-cli verdicts with each check’s margin; scopes of position, speed, torque, current, following error and
winding temperature rise per motor over one pass of the cycle or the run of a path, with zoom and the values under the pointer; and a share
link that carries the changed values in the URL’s fragment.
Live page: https://sparkz400.github.io/KinematicsSimulation/, built from main by the workflow
pages.yml on every push.
Build and open
rustup target add wasm32-unknown-unknown
cargo build -p sim-wasm --profile wasm --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/wasm/sim_wasm.wasm crates/sim-wasm/web/
python -m http.server 8765 -d crates/sim-wasm/web
Then open http://localhost:8765/. Browsers load WebAssembly only over HTTP, not from a file:// page, so any static file
server will do. To publish it, copy index.html and sim_wasm.wasm to any static host. The CI job wasm builds both
and keeps them as the artifact sizing-page; the workflow pages.yml builds them the same way and publishes them on
GitHub Pages.
The profile wasm (root Cargo.toml) is the release profile with link-time optimisation and one codegen unit: on the
T-gantry some 5 % faster and 10 % smaller than --release (14 November 2026). No wasm-bindgen, no wasm-opt and no
JavaScript toolchain: the page writes a request into the module’s memory and reads JSON back, so cargo is the only
build tool. The module is 2,887,035 bytes (14 November 2026, with the machine files built in).
Speed
The module runs in two Web Workers, so that the page stays responsive: one steps the 3D view, the other runs the sizing check, the sweep and the fit, which before blocked the page for seconds. Each worker has its own copy of the module and so its own machine files; the page hands an opened file to both. The view’s worker answers one request at a time with all the simulated time owed since the last one (at most 0.25 s, so a machine too slow for real time falls behind instead of piling up work), and hands the frame back as a transferred copy.
Measured on 14 November 2026 on the development machine while other builds ran: the T-gantry’s default config simulates 10 s in 0.70 s of processor time in the module (Node 24, the same wasm), about 14 times real time with the plots’ samples; the module of the release profile without LTO took 0.86 to 1.05 s. In headless Chrome (software WebGL) the page ran the T-gantry at 1.01 times real time, the sizing check alongside taking 4.0 s. The earlier page’s third of real time could not be reproduced: the module itself was some ten times faster than real time then too; what the page did on the main thread around it (the sizing check blocked it, and every frame waited for the step) is now in workers.
Requests
The page writes a request into memory from alloc, calls call(kind, ptr, len) and reads the answer, JSON, from
out_ptr() and out_len(); call returns 0 for a result and 1 for {"error": "..."} with the simulator’s message.
A request has lines: the machine, the language (en, de) with options after it separated by spaces, then the config
as TOML (empty: the machine’s default), and after a line --- the text an option names (a path, a trace). A machine
is a registered id (t-gantry), a machine file of machines/ built into the module (file:corexy.toml), or one the page
handed in (upload:<file name>).
| kind | request | answer (JSON) |
|---|---|---|
| 0 | language | every machine: [{"id", "name", "file"}], the registered ones, then the machine files |
| 1 | machine | {"config"}: the default config (of a machine file: the file) |
| 2 | machine, language and options, config | the sizing check: machine, cycle_s, tripped, warnings, the machine-wide columns of sim-cli analyze, motors (every per-motor column of sim-cli analyze under its name, points the operating points, curve the peak torque-speed outline, s1 the continuous rating), verdicts (check, label, motor, value, limit, margin, ok) |
| 3 | machine, language and options, config | starts the 3D view: {"dt_s", "centre", "radius", "motors", "sample"} |
| 4 | file name, language, machine file (TOML, or JSON by the name’s extension .json) | {"id", "name", "config"}: the file checked as sim-cli --machine-file checks it (an error names the file and the line; a JSON file is converted to TOML first, as sim_machines::load_file does) |
| 5 | machine, language and options, config | {"motor", "amplitude_nm", "points": [[frequency Hz, gain rad/s per N m, phase °]]} as sim-cli sweep |
| 6 | machine, language and options, config, ---, trace, a line %%%, mapping file, a line %%%, measured sweep (each may be empty, not both trace and sweep) | {"rows": [[quantity, of, config, fitted, standard error]], "advice", "units"} as sim-cli fit: the trace in the simulator’s own columns, or through the mapping file (--map); option stiffness (stiffness-key= for another key than the belts’) as --stiffness; the sweep with motor=K, amplitude=NM as --sweep |
| 7 | language, then translation keys, one a line | {key: text}: the page’s texts (crates/sim-wasm/i18n/*.ftl) and those keys from the simulator’s translations |
| 8 | machine, language, config | the form: params (path, group, label, value as TOML text: every number but [effects] and [bounds], labelled as the app’s parameter panel) and parts (key, value, options: the supplies, the motors of the config’s supply, the gearboxes that fit the named motor, the drives of the supply, the belt axes) |
| 9 | machine, language, config, ---, lines path = value | {"config", "changed", "compact"}: the values set over their own text in the config (comments and layout kept; an unknown key or another type refused, as Config::set_text refuses it), every value that differs from the machine’s default as a line path = value, and whether those lines on the default give the config back |
| 10 | machine, language, config | the scopes: step_s, time, signals (id, label, unit) and per motor data, one array per signal: angle, speed, torque, current, following_error, winding_temperature of one pass of the cycle as record_cycle (sim-cli compare) keeps it, or with the option path of the path’s run from rest to 0.3 s after its end, once a millisecond, 6 significant digits |
Options: path runs the path after --- (format: sim_components::path, the file sim-cli --path reads) from the
start pose instead of the cycle, timed within the axis limits or with time-optimal as fast as the motors allow
(kinds 2 and 3); kind 2 warns, as sim-cli does, where the planned path is off the given lines and arcs. motor=K,
from=HZ, to=HZ, count=N, amplitude=NM set the sweep as sim-cli sweep takes them (the page asks for 40 points
instead of 120: each is a run of its own).
What it computes
The same computation as sim-cli verdicts and sim-cli analyze for the cycle of the config or the path: one pass
measured after the machine has settled into the cycle, or the path run through, judged against the motor and drive data
and the [ratings] of the config, with every column sim-cli analyze writes (housing rise, drive overload, RMS and peak
current, the energies, DC link, lives, belt tension, path and tracking errors, the warm start’s change). What the page
does not give: analyze’s --breakdown and --budget (the effect views; the page runs without them, as verdicts
does), the error bands and samples of verdicts --bands, and the catalogue search.
The numbers agree with the command line’s to four or five significant digits, not bit for bit: WebAssembly computes
sin, exp and the like with Rust’s libm, the native build with the platform’s maths library, and the simulation
amplifies the differences in the last bit. One measured example: a peak torque of 0.4600761 N m in the browser against
0.4601061 N m from sim-cli. A verdict close to its limit can therefore come out the other way. Parts named under
[parts] come from the built-in catalogue.
The operating points are those of the analysis (motor speed and torque, sampled once a millisecond), over the outline of
DriveParams::torque_curve (peak torque of motor and drive both ways, at its corners and 40 speeds between, so a
field-weakened curve bends) and the S1 box (rated torque up to the rated speed), as in the app.
The verdict table prints value and limit as sim-cli verdicts does (four significant digits, no exponent) and
“Save as CSV” writes its lines check,motor,value,limit,result. The margin is the sizing report’s: what is left of the
limit, 1 − value / limit, or 1 − limit / value for a check that must stay above its limit (analysis::utilisation);
a check passes exactly where it is not below 0, and the page marks one below 10 % in red.
Scopes, the form and the share link
“Run sizing check” runs the scopes after the verdicts: the config’s cycle once more, recorded over its second pass as
sim-cli compare records it, one row a millisecond (a pass of more than 30 s keeps every n-th row, 30,000 at most).
One plot a signal, every motor in its colour. Drag across a scope to zoom into that span, Ctrl + wheel (or a trackpad pinch)
zooms about the pointer, the plain wheel scrolls the page, a double-click or “Reset zoom” shows the whole pass; the pointer’s time and every motor’s value at it stand in
the corner of each scope. Each pixel column draws the lowest and highest value of its rows, as the time plots do.
With a path instead of the cycle they record the path’s run from the start pose, from its start to 0.3 s after its end (as the sizing check runs it).
The form is request 8 over the config in the editor. A field changed goes to request 9, which writes the value over its
own text in the config (the app’s way of saving a config over its file), and the 3D view restarts with it; the sizing
check is run again by hand. A part’s field takes any name and offers the catalogue’s (a gearbox only for a named
motor); empty keeps the config’s own values. “Open config…” reads a TOML config into the editor, “Save config” writes
the editor’s text as <machine>.toml.
The share link is the page’s address with a fragment (after #, which browsers do not send to a server):
m=<machine>, then set=<path> = <value> for every value that differs from the machine’s default, or, where those
lines do not give the config back (a changed array, such as a cycle segment), toml= the whole config deflated and in
base64url; path= and optimal=1 for a path. The page keeps its address up to date as the config changes, and
“Copy share link” copies it; opening it sets machine, config and path. A machine file opened from disk has no link: its
text is not in the module of the one who opens the link.
The 3D view, plots and trail
Request 3 sets the machine at rest at its start pose, starts its cycle or path and answers the base step, the sphere
round the scene to fit the camera to, the motors and the floats per sample. Then frame(seconds) runs the simulation on
by that many seconds (whole base steps) and returns a pointer to frame_len() 32-bit floats, no JSON:
| floats | what |
|---|---|
| 8, the head | simulated time (s), the cycle time (s, the latest whole pass from one start of the cycle to the next; NaN before one), the tool’s x, y, z in the scene (m; NaN where the machine has no mapping), the number of parts, of obstacles, of samples |
| 20 per part | the mesh (0: a cube of side 1, 1: a cylinder of diameter and length 1 along y, both centred on the origin), the 4 × 4 matrix that takes the mesh to the part (column by column, scene coordinates, z up), the colour (red, green, blue in 0..1) |
| 20 per obstacle | as a part, mesh 2: the cube drawn see-through, stretched to the obstacle’s box; grey, red while a part touches it |
sample per sample | one per millisecond since the last frame: time, the tool’s x, y, z, its distance from where the plan has it then (m), then per motor the lowest and highest torque, torque command (N m), speed, speed command (rad/s) and following error (rad) over the base steps of that millisecond |
frame refuses a time that is not finite, below 0 or above 60 s: it returns null and leaves the error as the answer
at out_ptr. (An infinite time ran the step count up to the largest integer and hung the page.)
The matrix carries the part’s shape with its pose: a belt span changes its length as the machine moves, and the number of
belt strips can change from one frame to the next, so the page draws whatever the frame holds. Colours are the desktop
app’s (scene::part_color).
The page draws with plain WebGL2 written in the page, no library. The plain wheel scrolls the page (a hint over the view says how to zoom). Mouse: drag turns, Shift + drag or a drag with the right or middle button pans, Ctrl + wheel (Cmd on a Mac; a trackpad pinch does the same) zooms about the pointer, the “+” and “−” buttons zoom about the centre, a double-click or “Fit” fits the view again. Touch: a vertical swipe scrolls the page, a sideways swipe turns the machine about the vertical axis, two fingers pinch to zoom, drag sideways to pan and drag up or down to tilt (two fingers never scroll the page, and a touch screen has no vertical pan: tilt in its place). Pause/Play and Restart (which takes the config, the motion and the path in the editor). The legend shows the simulated time, the cycle time and the tool position; an orange cube marks the tool. The trail is the tool’s path, one point a millisecond, coloured by its distance from the plan (the app’s “following error” trail) on a fixed scale set on the page: blue at none, yellow at half, red at the value set (2 mm unless changed), magenta beyond it. The last 40,000 points are kept.
The time plots show the last few seconds of the view’s run (the window is set on the page): torque with the torque command dashed, speed with the speed command dashed, and the following error, one colour per motor. The page draws them with its own canvas plotter of some hundred lines, no library. Each pixel column draws the lowest and the highest value of the samples it spans, and each sample holds the lowest and highest over its base steps, so a peak of one base step stays visible however long the window. The same plotter draws the operating points and the sweep.
Differences from the native build
WebAssembly starts no threads. The analyses that share the processors natively (error bands, sampled runs, the
catalogue search, the stability margins, the comparison of an effect on and off, the optimiser’s candidates) run one
after another there; the code
falls back to one thread whenever std::thread::available_parallelism says one or knows none. The page offers the
sizing check, the sweep and the fit, each one run or a set of short runs. Machine files are TOML or JSON. The fit takes
a trace in the simulator’s own columns or a vendor export through its mapping file (opened first; a UTF-16 file such as
a CODESYS .trace is read by its byte order mark), and fits masses and friction, with the box ticked the stiffness from
the trace’s own moves, and from a measured sweep (frequency_hz, gain_rad_s_per_nm) the load’s resonance on the motor
chosen for the sweep.
Tests
cargo test -p sim-wasm --release runs the module’s requests natively: every machine listed, the sizing check giving the
same checks, values and cycle time as the analysis and verdict functions of the command line, a config from the page
read as a config file (a misspelt key refused by name), and the C functions handing back JSON. Machine files: the eight
of machines/ listed and run, one handed in giving the same sizing check as the built-in copy, a misspelt key refused
with the file and its line. Paths: the sizing check of a path against analyse_trajectory of the same planned poses,
time-optimal too, the view standing where a native run of the path stands, an unreadable and an empty path refused.
The frame: refused for an infinite, a NaN, a negative and an over-long time, and running afterwards. For the 3D view:
the frame of every machine against its scene from a native simulation, at the start pose and after 0.5 s of its cycle
(mesh, centre, stretch along each axis and colour of every part, the tool position), two records and a bounding box and
an obstacle’s record worked out by hand, an obstacle of the config in the frame, the view’s cycle time against the
sizing check’s, and the samples of 0.5 s (500 at 1 ms, with the highest torque and lowest following error of a native
run step by step). The sizing check’s analyze columns against the native analysis, the torque-speed curve’s corners by
hand, the sweep against frequency_sweep, a trace without the simulator’s columns refused, a JSON machine file giving
the sizing check of its TOML text, the scopes of a path running to 0.3 s after its end, the fit of the dataset
example-synthetic-belt-axis through its mapping file number for number as import and fit_rigid (with the stiffness
option as fit_move_stiffness), a measured sweep fitted as fit_sweep fits it, and the page’s texts in both
languages with every English key in German. The workbench: every verdict’s margin (one by hand, and a check passing
exactly where its margin is not below 0), the scopes against record_cycle‘s rows, the form’s values, labels and
catalogue names, a change written with every comment of the default kept and refused for an unknown key or another
type, the share link’s lines giving the same config back and an array’s change making it carry the whole text. And
the built sim_wasm.wasm run in Node against the native numbers (the_wasm_build_agrees_with_the_native_numbers):
verdicts’ values, limits and margins, cycle time and the scopes’ peak and RMS per signal of the T-gantry and the CoreXY
file to 1e-4 relative; it passes with a note where the module is not built or Node is missing (CI’s wasm job builds
the module before its tests).
The page itself was run in headless Chrome (puppeteer-core driving the installed Chrome, 14 November 2026): the T-gantry’s cycle at real time with its plots, the sizing check passing every check with a cycle of 6.080 s; in German, the CoreXY machine file running a path of a line, an arc and a line with its trail, its sizing check (1.661 s) and a 40-point sweep (22 s). That session did not keep the path, and none of twenty lines and arcs tried on the build of that day gives 1.661 s. Named: the page’s default path moved into the CoreXY’s range,
line,0.3,0.2
arc,0.5,0.2,0.4,0.2,cw
line,0.5,0.4
passes every check in 1.748 s within the axis limits and 1.641 s time-optimal (21 November 2026, sim-cli analyze --machine-file machines/corexy.toml --path FILE [--time-optimal], whose numbers the page’s sizing check gives, as the
tests above check; on the build of 14 November 1.748 and 1.640 s).
FMI export
sim-cli fmu writes a machine with its config as an FMU (Functional Mock-up Unit) for FMI 2.0 Co-Simulation (the default) or FMI 3.0 Co-Simulation. Both come from one binary, sim_fmi (crates/sim-fmi), which exports the fmi2* and the fmi3* C functions side by side. The FMU runs the same simulation as sim-cli run: drives, controller, every switched-on effect. The user guide explains the stepping, the setpoint inputs and the parameters; this page adds the two versions, the FMU state, the derivatives, the missing Model Exchange, the validation and the import into other tools.
Writing an FMU
cargo build --release -p sim-fmi -p sim-cli
sim-cli fmu t-gantry --out t-gantry.fmu # FMI 2.0 Co-Simulation
sim-cli fmu t-gantry --fmi 3 --out t-gantry-3.fmu # FMI 3.0 Co-Simulation
--fmi takes 2 or 3; anything else is refused. --binary FILE names the binaries as before. The binaries go to these folders:
| Binary | FMI 2.0 | FMI 3.0 |
|---|---|---|
sim_fmi.dll | binaries/win64/sim_fmi.dll | binaries/x86_64-windows/sim_fmi.dll (or aarch64-windows) |
libsim_fmi.so | binaries/linux64/sim_fmi.so | binaries/x86_64-linux/sim_fmi.so (or aarch64-linux) |
libsim_fmi.dylib | binaries/darwin64/sim_fmi.dylib | binaries/x86_64-darwin/sim_fmi.dylib or binaries/aarch64-darwin/sim_fmi.dylib |
For FMI 3.0 the architecture is read from the binary’s header (the machine field of a PE file, e_machine of an ELF file, cputype of a 64-bit Mach-O file). A file without such a header, a universal (fat) Mach-O file among them, is refused: FMI 3.0 wants one folder per architecture, so build one .dylib per architecture and pass both.
Variables
The variables are the same in both versions; only the type names differ. The value reference of a variable is its place in the list.
| Variable | FMI 2.0 type | FMI 3.0 type | Causality | Variability |
|---|---|---|---|---|
time | Real | Float64 | independent | continuous |
every other signal (axis.x.position, motor.a.torque, …) | Real | Float64 | output | continuous |
command.setpoint.<axis id> | Real | Float64 | input | continuous |
command.enable | Boolean | Boolean | input | discrete |
command.stop_category | String | String | input | discrete |
command.cycle | Boolean | Boolean | input | discrete |
command.target.<axis id> | Real | Float64 | input | continuous |
command.move | Boolean | Boolean | input | discrete |
command.path, command.path_file, command.trajectory_file | String | String | input | discrete |
command.run_path | Boolean | Boolean | input | discrete |
command.mode.<motor id> | String | String | input | discrete |
command.torque.<motor id>, command.velocity.<motor id> | Real | Float64 | input | continuous |
time_optimal | Boolean | Boolean | parameter | fixed |
machine, config_file | String | String | parameter | fixed |
effects.<name> | Boolean | Boolean | parameter | fixed |
An FMU of a machine file (sim-cli fmu --machine-file FILE) carries the file as resources/machine.toml and builds its machine from it when it is instantiated, in both versions; its machine parameter is the file’s machine id.
Every Real / Float64 variable declares its unit, and the model description lists them as unit definitions. An output carries its signal’s unit; command.setpoint.<axis id> and command.target.<axis id> the axis’s (m or rad); command.torque.<motor id> and command.velocity.<motor id> those of the motor’s own motor.<id>.torque and motor.<id>.speed signals: N m and rad/s on a rotary motor, N and m/s on a linear motor (the linear-motor axis, the mover track), where the motor’s torque and speed signals are in N and m/s as well.
The outputs are every signal of the simulation (Sim::signal_infos), generated, never listed per machine: a signal the simulator gains (the drives’ overload image or a motor’s housing temperature, once they are signals) is an output of every FMU exported after that, with no change here.
Cycle, moves and paths
Besides the setpoints, three trigger inputs command the machine as sim-cli run --cycle, --move and --path do. A trigger acts at the communication point where it has changed since the last one; the command it gives is logged under logEvents.
| Input | When it acts | Command |
|---|---|---|
command.cycle | turns true / turns false | starts the configured cycle / stops it at the end of its segment |
command.move | turns true | moves to command.target.<axis id> (start: the start pose) |
command.run_path | turns true | plans the path from where the machine stands, within the axis limits (with time_optimal as fast as the motors allow), and runs it; or runs the poses of command.trajectory_file |
The path is the text of a path file (user guide) in command.path, or the file named in command.path_file, which wins when it is not empty; a file is read by its extension as sim-cli run --path reads it (G-code, KRL, RAPID, robot moves as CSV, else a path file), a program with feeds planned run by run. The parameter time_optimal (false by default) times the path as --time-optimal does: as fast as the motors’ torque and the belts allow instead of within the axis limits. command.trajectory_file names a trajectory file (per line the time and one position per axis, as sim-cli run --trajectory reads it); where it is not empty, command.run_path runs its poses instead of a path. Both match the command line bit for bit (crates/sim-fmi/tests/fmi.rs, and against sim-cli run --path FILE --time-optimal through fmpy in tools/check_fmu.py). A path that cannot be read or planned, and a command the controller refuses (the drives off, a target out of range), gives fmi2Warning / fmi3Warning with the reason, and the machine goes on as before. A setpoint input, once set, takes the axes over whenever it differs from the setpoint the controller follows, and so replaces a cycle, move or path at the next step: drive the machine either by setpoints or by triggers.
In FMI 3.0 the start value of a String is a <Start value="..."/> element, as the FMI 3.0 schema demands. The model structure lists every output as an output and as an initial unknown. The outputs carry dependencies="": no output depends directly on an input, because a setpoint reaches the outputs only through the next communication step. The initial unknowns carry no dependency list, which means they may depend on every parameter.
Your own controller: torque and velocity mode
An importer’s own controller closes the loop through a drive’s operating modes, as a real servo drive offers them. Per motor, command.mode.<motor id> is "position" (the start value: the controller’s plan through the drive’s position and velocity loops, as above), "velocity" (the drive’s velocity loop follows command.velocity.<motor id>, rad/s at the motor, m/s on a linear motor; its position loop is bypassed) or "torque" (command.torque.<motor id>, N m at the motor, N on a linear motor, replaces the velocity loop’s output; both loops are bypassed). The setpoint is held over the communication step. Either way it still passes the torque filter, notch, torque limit and delay, the current loop, the winding and the DC link, so current, voltage and thermal limits stay true. The motor’s angle, speed, current and torque are outputs (motor.<id>.angle, .speed, .current, .torque, .torque_command). Another mode string gives a warning and keeps the mode.
- A mode changes at the communication point where the input differs from the drive’s. A change does not make the torque jump where the drive’s own loops take over: the velocity loop’s PI integrator is set so that it asks for the torque last asked for (bumpless transfer); in torque mode it is held. Into torque mode the importer’s torque acts at once.
- Outside position mode the drive’s position setpoint tracks the measured position (following error 0, as a drive’s tracking mode). While any drive is out of position mode, the cycle, move, path and setpoint commands are refused (
error-outside-mode); out of position mode is refused while a move, cycle or path runs (error-busy). A drive coming back to position mode takes the plan with it: the plan stands, at rest, where the motors stand, and at speed the position loop brings the motor back there. command.enableset to false and back to true puts every drive in position mode; the mode inputs take them out again at the next step.command.stop_categorysays howcommand.enableturning false stops the drives:"0"(the start value) takes the torque off at once, as before;"1"brakes every drive on its quick-stop ramp and then takes it off;"2"brakes the planned motion and holds with the torque on (see Stops). It is the last variable, so the value references of the others are as they were.- A run in torque and velocity mode gives bit for bit the signals of a plain simulation put in the same modes with the same setpoints (
crates/sim-fmi/tests/fmi.rs, every machine). Position mode is unchanged: the bit-for-bit tests of setpoints, moves and paths pass as before.
The model description of FMI 3.0 has instantiationToken where FMI 2.0 has guid; both are a hash of the model description, so the FMI 2.0 and the FMI 3.0 FMU of one machine and config have different tokens and refuse each other’s instantiation and FMU states.
Capabilities
| Attribute in the model description | FMI 2.0 | FMI 3.0 |
|---|---|---|
| Co-Simulation | yes | yes |
| Model Exchange, Scheduled Execution | no | no |
canHandleVariableCommunicationStepSize | true | true |
fixedInternalStepSize | (not in FMI 2.0) | sim.dt_s, for example 6.25e-05 |
canGetAndSetFMUstate / canGetAndSetFMUState | true | true |
canSerializeFMUstate / canSerializeFMUState | true | true |
providesDirectionalDerivative / providesDirectionalDerivatives | true | true |
providesAdjointDerivatives | (not in FMI 2.0) | true |
hasEventMode | (not in FMI 2.0) | false |
canInterpolateInputs, maxOutputDerivativeOrder | false, 0 | (not used), 0 |
FMI 3.0 functions that need what this FMU does not have return fmi3Error with a logged message: Event Mode (fmi3EnterEventMode, fmi3EnterStepMode, fmi3UpdateDiscreteStates), Configuration Mode, clocks and their intervals and shifts, output derivatives, fmi3GetVariableDependencies (the model description has the dependencies), and every Model Exchange function. fmi3InstantiateModelExchange and fmi3InstantiateScheduledExecution log why and return null. Get and set functions of types the FMU has no variables of (Float32, the integer types, Binary, Clock) refuse every value reference and accept an empty list. fmi3DoStep always reports eventHandlingNeeded, terminateSimulation and earlyReturn as false, and lastSuccessfulTime as the time the simulation stands at (after a refused step, the time before it).
FMU state
fmi2GetFMUstate / fmi3GetFMUState copy the state of an instance; fmi2SetFMUstate / fmi3SetFMUState restore it; the free, size, serialize and deserialize functions do what the standard says.
What a state holds: the instance’s mode, the start time, every value the importer has set (inputs and parameters), the triggers as the last step saw them, and in step mode a snapshot of the simulation with its outputs (Sim::snapshot: the integrated state, the controller with its drives, loops, filters, windings, thermal and overload images, the parts’ warmth and the obstacle record; everything but the machine, which the parameters build again).
Setting a state builds the machine from the state’s parameters and restores the snapshot into it: as long as building the machine takes, however far the state is from the start. A serialized state carries the snapshot as bytes, so a deserialized one is set as fast, on the same instance or another one. Both give bit for bit the signals of the simulation that was saved: on every registered machine and machine file of machines/ with its cycle running (crates/sim-fmi/tests/fmi.rs, tests/fmi3.rs, and through fmpy in tools/check_fmu.py).
Everything is built before the instance is changed: a state that cannot be set (its config_file gone, a config that is refused now) is refused with fmi2Error / fmi3Error, and the instance goes on where it was.
Limits:
- A serialized state does not grow with the steps since initialisation; its size is that of the snapshot (the machine’s state, the controller with its plan and drives), a few kilobytes, more while a path or cycle with many points is under way.
- With
config_fileset, setting a state reads that file again. A file changed on disk since the state was taken gives another simulation, or a refusal if its signals differ. - A serialized state is checked against the FMU’s GUID or instantiation token and its number of variables; a state of another FMU, a cut-off state or one with bytes left over is refused with
fmi2Error/fmi3Error. The snapshot’s numbers are written with all their bits, so the next steps are bit for bit those of the saved simulation on the same binary; on a binary built by another compiler or for another platform they follow that binary’s floating-point results from the state on. - The serialized format: the text
sim-fmi state 4and a zero byte, the FMU’s version (1.1.0), the GUID, the mode, the start time, the three triggers and the set values, little-endian, then the outputs at the state and the snapshot aspostcard1 writes it (serde’s data model, field by field in declaration order). The snapshot’s layout follows the simulator’s types, so a state is set only by the version of the FMU that saved it: one of another version, the states of format 3 (a snapshot layout of before 25 November 2026), the replayed ones of format 2 (14 November 2026) and 1 (before), are refused withfmi2Error/fmi3Errorand a message naming the version or format.
Log categories
The model description declares logEvents (the commands the triggers gave, FMU states set), logStatusWarning (refused commands, paths that cannot be planned), logStatusError (refused calls) and logAll. An instance made with loggingOn false logs warnings and errors; with it true, events too. fmi2SetDebugLogging / fmi3SetDebugLogging switch the categories they name on or off, all of them when they name none or logAll; an unknown category is refused with an error and changes nothing. FMI 2.0 messages go to the logger as its format string with every % doubled, so a logger that formats them and one that prints them as they are both show the text.
Directional and adjoint derivatives
fmi2GetDirectionalDerivative, fmi3GetDirectionalDerivative and fmi3GetAdjointDerivative accept outputs (Real / Float64, causality output) as unknowns and setpoint inputs as knowns, in Initialization Mode and in Step Mode, and return zero for every entry. That is the exact answer, not a placeholder: in Co-Simulation the derivative is the partial derivative of the outputs at the current communication point with respect to the inputs at that point. The outputs are the signals at the end of the last step; a new setpoint goes to the controller at the start of the next step. So setting an input changes no output until DoStep runs, and every partial derivative is zero. The tests check this against a finite difference by hand: they set a setpoint 1e-4 m higher, read every output again, and find the difference zero.
What these functions do not give is the sensitivity of the outputs after the next step to the inputs (how far the axis moves within one step per metre of setpoint). The FMI standard does not define that quantity for Co-Simulation, so it is not offered under these function names. An importer that wants it can take an FMU state, step with two input values, and restore the state.
Any other reference (an input as unknown, an output or a parameter as known, time) is refused with fmi2Error / fmi3Error.
Why there is no Model Exchange
Model Exchange hands the FMU’s continuous states and their derivatives to the importer’s integrator. For this simulator that would be correct only with these parts:
- Continuous states: the machine’s mechanical state, and per drive the winding current and the three energy integrals of the step (
Sim::advance_with_windingsintegrates these together as one vector). - A time event at every base step
sim.dt_s(62.5 µs in the shipped configs): there the controller samples the motors, runs its cascaded loops and the setpoint interpolation, and sets the winding voltages, which are then held over the step. The controller’s integrators, filters, interpolator, drive states, DC-link and braking-resistor logic are discrete states that change only at these events. - Further jumps at the same events:
Machine::after_stepchanges the state after each step (a belt tooth jump changes a pulley’s speed at once), the part temperatures are updated by the exact answer of a first-order lag held over the step, and the payload switch changes the machine.
Point 2 alone means 16 000 events per simulated second. The importer’s integrator restarts after every event, so a variable-step solver never takes a step longer than 62.5 µs and adds event handling to each one; Model Exchange would be slower than Co-Simulation and give nothing in return. The results would also differ from sim-cli run and from the Co-Simulation FMU, because the importer’s integrator replaces the fixed-step RK4 with substeps that the simulator uses and that the tests compare bit for bit. Finally, points 1 to 3 need the controller’s and the simulation’s internal states, which sim-components keeps private; opening them would change the Sim and Machine interfaces that the machine crates are written against. For these reasons this export offers Co-Simulation only, in both FMI versions.
Validation
Done on Windows 11 x86_64 on 13 November 2026 with the binary from cargo build --release -p sim-fmi -p sim-cli. The FMUs were the default configs of t-gantry and single-axis and t-gantry with crates/machine-t-gantry/exct-30.toml, each as FMI 2.0 and FMI 3.0.
Rust tests (cargo test -p sim-fmi -p sim-cli --release): the FMI 2.0 and FMI 3.0 functions called as an importer calls them; every machine’s signals bit for bit equal to a plain Sim with the same setpoints, and with the same move and path through the trigger inputs; FMU state restored bit for bit on the same instance (from its snapshot, on every machine with its cycle running) and, serialized with its snapshot, on a second instance; a time-optimal path through command.path_file and the poses of command.trajectory_file as Sim::plan_path and Command::Trajectory run them; states of another format or version refused as such; a state that cannot be set leaves the instance going on; the log categories switched; derivatives against the finite difference by hand; refusals.
fmpy 0.3.32 with numpy 2.3.4 on Python 3.13.17, installed from PyPI into a virtual environment:
python -m venv .venv
.venv/Scripts/python -m pip install fmpy==0.3.32 numpy==2.3.4
.venv/Scripts/python tools/check_fmu.py target/release/sim-cli.exe t-gantry-3.fmu t-gantry
.venv/Scripts/fmpy validate t-gantry-3.fmu
.venv/Scripts/fmpy simulate t-gantry-3.fmu --stop-time 0.1 --output-file sim3.csv
tools/check_fmu.py validates the FMU with fmpy’s validator (the XSD of the FMU’s FMI version, variable names, model structure, start values, causality and variability, units), simulates it with fmpy for 1 s at its default step, compares every output with sim-cli run, and then, through fmpy’s bindings of the C functions, takes an FMU state after 5 steps, checks that the 7 steps after it come back bit for bit on the same instance and serialized on a second one, and checks that the directional derivative and the finite difference are zero; then a move and a time-optimal path through the inputs against the command line (parts 4 and 5, below). Result for all six FMUs:
FMU state: restored bit for bit, serialized 360 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry (FMI 2.0): 0 validator problems, 96 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 306 bytes and restored bit for bit; directional derivative and finite difference zero
single-axis (FMI 2.0): 0 validator problems, 51 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 358 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 2.0): 0 validator problems, 94 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 360 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry (FMI 3.0): 0 validator problems, 96 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 306 bytes and restored bit for bit; directional derivative and finite difference zero
single-axis (FMI 3.0): 0 validator problems, 51 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 358 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 3.0): 0 validator problems, 94 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
The worst difference of 5e-10 is the rounding of the 9 digits sim-cli run prints. fmpy validate printed “No problems found.” and fmpy simulate ran without an error.
OMSimulator 3.0.0.post198 (OpenModelica’s co-simulation tool), installed from PyPI into a second virtual environment:
python -m pip install OMSimulator==3.0.0.post198
python -m OMSimulator --validate t-gantry-3.fmu
python -m OMSimulator t-gantry-3.fmu --stopTime 1.0 --resultFile oms-3.csv
It reported “t-gantry-2.fmu conforms to the FMI-2.0 schema” and “t-gantry-3.fmu conforms to the FMI-3.0 schema”, and simulated both for 1 s at the default step of 0.01 s. Its 101 rows of all 96 outputs differ from sim-cli run by at most 5.0e-10 of each signal’s peak, for both versions.
On 14 November 2026 tools/check_fmu.py gained a fourth part: the first axis moved 10 mm through command.target.* and command.move against sim-cli run --move, with logEvents switched on (one message) and then every category off (no message). Same setup, fmpy 0.3.32, numpy 2.2.6, Python 3.14.3; the FMI 2.0 FMUs of t-gantry, single-axis and t-gantry with exct-30.toml, and the FMI 3.0 FMU of machines/h-bot.toml (as in CI):
FMU state: restored bit for bit, serialized 417 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
t-gantry (FMI 2.0): 0 validator problems, 96 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
single-axis (FMI 2.0): 0 validator problems, 51 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 2.0): 0 validator problems, 94 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 407 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
machines/h-bot.toml (FMI 3.0): 0 validator problems, 90 outputs, 101 rows, worst 4.9e-10 (motor.b.torque_rest): ok
Later on 14 November 2026 it gained a fifth part (the logs below are from that date; for the counts of 17 November see the run after them): the same target as a path file through command.path_file and command.run_path with the parameter time_optimal, against sim-cli run --path FILE --time-optimal; and the serialized state now carries the snapshot (format 3). Same setup:
FMU state: restored bit for bit, serialized 3840 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
t-gantry (FMI 2.0): 0 validator problems, 102 outputs, 101 rows, worst 4.9e-10 (axis.z.friction_load_scale): ok
FMU state: restored bit for bit, serialized 2244 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
single-axis (FMI 2.0): 0 validator problems, 54 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 3750 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
machines/h-bot.toml (FMI 3.0): 0 validator problems, 96 outputs, 101 rows, worst 4.9e-10 (motor.b.torque): ok
On 17 November 2026, with the FMUs of the final build of that day exported by sim-cli fmu (fmpy 0.3.32, numpy 2.5.4, Python 3.14.3; the FMI 2.0 FMUs of t-gantry, single-axis and t-gantry with exct-30.toml, the FMI 3.0 FMUs of machines/h-bot.toml and t-gantry), all five parts pass. The outputs are now 115 for t-gantry, 61 for single-axis, 113 for the EXCT-30 and 110 for h-bot; the inputs 18, 13, 18 and 18 (per axis a setpoint and a target, per motor a mode, a torque and a velocity, and eight more):
FMU state: restored bit for bit, serialized 5246 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
t-gantry (FMI 2.0): 0 validator problems, 115 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 3043 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.7e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
single-axis (FMI 2.0): 0 validator problems, 61 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 8569 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.6e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 2.0): 0 validator problems, 113 outputs, 101 rows, worst 5.0e-10 (axis.z.friction_load_scale): ok
FMU state: restored bit for bit, serialized 5145 bytes and restored bit for bit; directional derivative and finite difference zero
move input: worst 4.5e-10 against sim-cli run --move; log categories: one logEvents message, none with logging off
time-optimal path input: worst 4.5e-10 against sim-cli run --path --time-optimal
machines/h-bot.toml (FMI 3.0): 0 validator problems, 110 outputs, 101 rows, worst 4.9e-10 (motor.b.torque_command): ok
t-gantry (FMI 3.0): 0 validator problems, 115 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
The logs above that date are kept as they were: their output counts are those of the FMUs then.
Not run: the Modelica Association’s fmusim (Reference-FMUs) and the FMU Compliance Checker. Neither is published on a package registry: pip index versions finds no distribution named fmusim, reference-fmus, fmi-compliance-checker or fmucheck, and conda is not installed here. Both are distributed as binaries on GitHub releases, which were not downloaded.
Import into other tools
Import in Simulink and Dymola was not tested here: neither was available. OpenModelica 1.27.1 was (see its section). The steps below follow the tools’ documented menus. In every tool the communication step must be a whole multiple of sim.dt_s (62.5 µs in the shipped configs); use the FMU’s default step, profile.setpoint_interval_s (10 ms), unless you change that interval in the config.
Simulink
Simulink imports FMI 2.0 Co-Simulation FMUs with the FMU block; MathWorks lists FMI 3.0 Co-Simulation import from R2023b on (check the release notes of your release).
- Write the FMU (
sim-cli fmu t-gantry --out t-gantry.fmu, or with--fmi 3). - In the Library Browser open Simulink Extras > FMU Import and drag the FMU block into the model (or click the canvas, type
FMUand pick the block). - Open the block and set its FMU name to the
.fmufile. The block showscommand.setpoint.<axis>andcommand.enableas input ports and the selected outputs as output ports. - Set the block’s communication step size to 0.01 s (or another whole multiple of
sim.dt_s) and use a fixed-step solver whose step divides it. - On the parameters tab set
config_fileor theeffects.<name>switches if needed; they are fixed after initialisation. - Connect the setpoint inputs to your controller or PLC model and run.
OpenModelica
Tested with OpenModelica 1.27.1 (64-bit, Windows), 14 November 2026. OpenModelica runs these FMUs through OMSimulator, its co-simulation tool, not as Modelica blocks:
- OMSimulator 2.1.3, which ships with OpenModelica 1.27.1, ran the FMI 2.0 FMUs of the T-gantry, the delta D3 and the H-bot machine file for 1 s at the default step of 0.01 s (
OMSimulator t-gantry.fmu --stopTime=1.0 --stepSize=0.01 --resultFile=result.csv). Every output agrees withsim-cli runto within 5.0e-10 of its peak, the rounding of the CLI’s 9 digits. That version refuses FMI 3.0 (“unsupported FMI version”); OMSimulator 3.0 (from PyPI, above) runs both. - OMEdit’s File > Import > FMU (the compiler’s
importFMU) turns only FMI 2.0 Model Exchange FMUs into Modelica blocks; it refuses these Co-Simulation FMUs (“Only FMI 2.0 ModelExchange is supported”), and this export has no Model Exchange (see why). - FMIL, the FMI library of OpenModelica and other importers, reported an error on the FMI 2.0 description while it was read: it wants a start value on the independent variable
time, which the standard forbids there. Since 14 November the FMI 2.0 description leavestimeout (the standard then has it implicitly; its value reference still answers), and FMIL reads it without a message. The FMI 3.0 description declares it.
In OMEdit, File > New SSP Model opens an OMSimulator model to which the FMU is added as a component and connected to other FMUs.
Dymola
Dymola imports FMI 2.0 FMUs; check the documentation of your Dymola version for FMI 3.0 import.
- File > Import > FMU…, choose the
.fmufile. - In the import dialog choose co-simulation (this FMU has no Model Exchange part) and confirm. Dymola generates a Modelica block that calls the FMU.
- Drag the block into a model, connect the setpoint inputs, and simulate with an output interval that is a whole multiple of the communication step.
PLC virtual commissioning
The OPC UA link (sim-opcua) runs a machine in real time and lets a PLC drive it. This page covers the PLCopen motion interface, the real-time pacing and its measurement, the Structured Text examples and the soak test. The other nodes of the link (signals, targets, setpoints, paths, cycle) are in the user guide.
Deutsche Fassung: SPS-Inbetriebnahme.
Start the link
cargo run --release -p sim-opcua -- t-gantry --port 4840 --host 192.168.0.10 --cycle-ms 10
| Argument | Default | Meaning |
|---|---|---|
MACHINE | t-gantry | The machine, first if given |
--machine-file FILE | none | A machine defined in a file (machine files), in place of MACHINE |
--config FILE | the machine’s default | The machine’s config, read as sim-cli reads it: a key the machine does not have is refused by name |
--set PATH=VALUE | none | One config value on top of the config, in TOML syntax (--set "start.pose = [0.2, 0.3]"); repeatable, applied in order |
--trajectory FILE | none | Poses at times to run at the start, as sim-cli run --trajectory takes them: a line per pose, the time in s, then one position per axis, separated by commas |
--port N | 4840 | TCP port |
--host IP | 127.0.0.1 | Address to listen on. A PLC on the network needs an address of this computer that it can reach. Give the address itself, not 0.0.0.0: the server advertises it in its endpoint URL |
--lang en|de | en | Language of the messages and the variable labels |
--cycle-ms N | 10 | Cycle of the simulation loop, 1 to 1000 ms |
--pki DIR | pki | Folder of the server’s certificate and of the trusted and rejected client certificates, relative to the working directory (see Security) |
--trust-all | off | Accept every client certificate and store it among the trusted ones. For commissioning only |
--user NAME | none | Clients must log in with this user name and the password in the environment variable SIM_OPCUA_PASSWORD; anonymous clients are refused and the endpoint without security is not offered. Without the variable the link does not start |
--user-cert FILE | none | A user certificate (.der or .pem): a client that signs with its private key logs in as that user (X.509 user token). Repeatable; as with --user, anonymous clients are refused and the endpoint without security is not offered |
--renew-certificate | off | Set the server’s certificate and key aside (.old) and make new ones, valid for 365 days |
Ctrl+C stops the link and prints the measured pacing in a line of this form (the numbers are those of the soak run below, not of a Ctrl+C run):
Real-time pacing (period, largest and RMS jitter in ms, overruns, real-time factor): 10.017 · 16.116 · 4.581 · 42 · 1.0000
At the start the link also prints the absolute path of its pki folder, whether --trust-all, --user or --user-cert are on, and a warning when the server’s certificate expires within 30 days. At the end it prints the intervals of the clients’ writes and reads (see The client’s cycle), here those of the pattern in sim-opcua/tests/interop.rs, nine intervals of 10 ms and one of 40 ms three times over:
Client writes (intervals, mean, standard deviation, largest in ms): 30 · 13.000 · 9.000 · 40.000
Client reads (intervals, mean, standard deviation, largest in ms): 30 · 13.000 · 9.000 · 40.000
Security
The server offers seven endpoints, all at the same URL opc.tcp://HOST:PORT/:
| Security policy | Message security mode | Client certificate checked |
|---|---|---|
| None | None | No (not offered with --user or --user-cert) |
| Basic256Sha256 | Sign, SignAndEncrypt | Yes |
| Aes128_Sha256_RsaOaep | Sign, SignAndEncrypt | Yes |
| Aes256_Sha256_RsaPss | Sign, SignAndEncrypt | Yes |
Basic256Sha256 is the policy that S7-1500, TwinCAT TF6100 and the CODESYS OPC UA client all offer; the two Aes policies are the newer ones of OPC UA 1.04 and later, for clients that have them. These are all the policies async-opcua 0.19 has that OPC UA does not deprecate: Basic128Rsa15 and Basic256 are left out.
Residual risk: RSA timing (RUSTSEC-2023-0071, “Marvin”). async-opcua 0.19.0, the newest release (checked 14 November 2026), uses the rsa crate 0.9, whose RSA decryption is not constant-time; rsa 0.10.0 (8 November 2026) fixes it, but no async-opcua release uses it yet. The server decrypts with its private key on every secured endpoint: the OpenSecureChannel request is always encrypted, in Sign mode as well as in SignAndEncrypt, and async-opcua decrypts it before it looks whether the client’s certificate is trusted; an encrypted password is decrypted as well. So anyone who can reach the port can send handshakes and time the answers, and with very many of them might recover the server’s private key, then decrypt recorded sessions or pose as the server. Neither Sign-only nor trusting only known client certificates closes this. What limits it:
- The link listens on 127.0.0.1 unless
--hostnames another address. Give--hostonly an address on a commissioning network that untrusted machines cannot reach, never one routed from the internet; a firewall rule that admits only the PLC’s address keeps the others from even starting a handshake. - The key is the server’s own, made on this computer and used for nothing else:
--renew-certificatereplaces it whenever exposure is suspected, and at the latest after a year. - The simulator is a commissioning tool, not a production server: do not leave it running unattended on a shared network.
The ignore in deny.toml stays until an async-opcua release uses rsa 0.10.
The server’s certificate. On the first start the link creates its application instance certificate in the pki folder (--pki, default pki in the working directory; /pki is ignored by git):
| File | What it is |
|---|---|
own/cert.der | The certificate: self-signed, RSA 2048 bits, valid for 365 days. Application URI urn:kinematics-simulation:server; the alternative names hold that URI, localhost, the computer’s name and its IP addresses |
private/private.pem | Its private key. Keep it to this computer |
trusted/ | Client certificates the server accepts |
rejected/ | Client certificates the server refused |
A PLC that connects with security has to trust own/cert.der: import it into the PLC’s certificate store as a trusted partner (TIA Portal: certificate manager of the CPU; TwinCAT TF6100 and CODESYS: see below). From 30 days before the certificate expires every start warns. Then, or after a change of host name or address that the PLC checks, start once with --renew-certificate: the old certificate and key are kept beside the new ones as own/cert.der.old and private/private.pem.old, and the new certificate, valid for 365 days, has to be trusted by the PLC anew.
Client certificates. A client on a secured endpoint whose certificate is not in trusted/ is refused, and its certificate is written to rejected/. To trust it, move the file from rejected/ to trusted/; the next connection is accepted, without a restart. A certificate that lies in rejected/ is refused even with --trust-all: move or delete it first. --trust-all accepts every client certificate and copies it into trusted/, where it stays after the link is stopped: use it while commissioning, then delete from trusted/ what should not stay. The endpoint without security does not check client certificates; it is there for tools such as UaExpert on the same computer and for the tests.
User name and password. With --user NAME every endpoint asks for that user name and the password from SIM_OPCUA_PASSWORD, which is read from the environment so that it does not show in the process list:
SIM_OPCUA_PASSWORD=secret cargo run --release -p sim-opcua -- t-gantry --user plc
(PowerShell: $env:SIM_OPCUA_PASSWORD = "secret" before the command.) With --user the endpoint without security is not offered, so that the password never travels in clear: the PLC connects with Sign or SignAndEncrypt. Anonymous clients are then refused. There is one user; roles (read only, write) are not distinguished.
User certificates. With --user-cert FILE (repeatable) a client logs in with an X.509 user token: it signs the server’s certificate and nonce with the private key of that certificate, and the link lets it in as the user named after the file (plc.der: plc). Only the certificates given are accepted, compared by thumbprint; their trust chain is not checked. async-opcua asks the client to sign the token with Basic128Rsa15’s algorithm (RSA PKCS#1 v1.5 with SHA-1), whatever the endpoint’s policy; that is the library’s choice and cannot be set. User name and certificates can be given together.
Node ids and data types
Every variable is a scalar (ValueRank −1) in the namespace urn:kinematics-simulation, with a string node id that is the same at every start of the same machine: it is made from the signal, axis and block names, never numbered. The namespace index is 2 at present (0 is OPC UA’s, 1 the server’s application URI); a client should still look it up from the URI (OPC_UA_NamespaceGetIndexList, UA_GetNamespaceIndex, UA_NamespaceGetIndex). The table gives each node’s OPC UA data type and the IEC 61131-3 type a PLC variable needs to read or write it; * stands for any text, and the first row that matches counts. A test (sim-opcua/tests/interop.rs) browses every variable of every machine and checks its DataType, ValueRank, AccessLevel and value against this table.
| Node id | OPC UA type | IEC 61131-3 | Access |
|---|---|---|---|
signal.* | Double | LREAL | read |
command.target.*, command.setpoint.* | Double | LREAL | read, write |
command.move, command.cycle, command.disable, command.enable, command.path_time_optimal, command.run_path, command.reset_pacing | Boolean | BOOL | read, write |
command.path | String | STRING | read, write |
command.stop_category | Int32 | DINT | read, write |
status.busy | Boolean | BOOL | read |
status.refused | String | STRING | read |
status.overruns, status.cycles, status.steps, status.client_writes, status.client_reads | UInt64 | ULINT | read |
status.* | Double | LREAL | read |
axis.*.ActualPosition, axis.*.ActualVelocity | Double | LREAL | read |
axis.*.Enable, axis.*.Execute | Boolean | BOOL | read, write |
axis.*.Position, axis.*.Distance, axis.*.Velocity, axis.*.Acceleration, axis.*.Deceleration, axis.*.Jerk | Double | LREAL | read, write |
axis.*.RatioNumerator, axis.*.RatioDenominator, axis.*.MasterOffset, axis.*.SlaveOffset, axis.*.MasterScaling, axis.*.SlaveScaling, axis.*.StartMode, axis.*.CamTableID | Double | LREAL | read, write |
axis.*.Master, axis.*.Table | String | STRING | read, write |
axis.*.ErrorID | UInt16 | UINT | read |
axis.*.StateID | Int32 | DINT | read |
axis.*.State | String | STRING | read |
axis.*.Status, axis.*.Valid, axis.*.Error, axis.*.Done, axis.*.InGear, axis.*.InSync, axis.*.Busy, axis.*.Active, axis.*.CommandAborted, axis.*.IsHomed | Boolean | BOOL | read |
What the PLC clients need:
- Siemens S7-1500 (
OPC_UA_Connect,OPC_UA_NamespaceGetIndexList,OPC_UA_NodeGetHandleList,OPC_UA_ReadList,OPC_UA_WriteList): the variables of the lists in a data block, of the IEC types above (LReal, Bool, UInt, DInt, ULInt, String). An S7Stringholds at most 254 characters; for a longercommand.pathuseWString, which the client also maps to OPC UA String. The S7-1200 has noULInt: read the UInt64 counters with an S7-1500 or leave them out. - Beckhoff TF6100 (
UA_Connect,UA_GetNamespaceIndex,UA_NodeGetHandle,UA_Read,UA_Write): the value goes as a pointer and a size, so the PLC variable’s type decides what is sent. LREAL for every Double: a REAL writes a Float, which the link accepts, but a Double read into a REAL does not fit.STRING(255)by default; a longer path needs a longer STRING. - CODESYS OPC UA client (PLCopen blocks
UA_Connect,UA_NamespaceGetIndex,UA_NodeGetHandle,UA_Read,UA_Write): the value is an IN_OUT of type ANY, so its declared type is the one on the wire.
The link takes on a write of a number a Double, Float, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64 or UInt64 (IEC LREAL, REAL, SINT, USINT, INT, UINT, DINT, UDINT, LINT, ULINT), and on a write of a flag a Boolean; anything else is refused with BadTypeMismatch, and so is a 64-bit integer beyond 2^53, which a Double cannot hold exactly.
PLCopen axes
Every axis of the machine has a folder axis.<axis id> with one set of handshake variables per function block. Node ids are strings in the namespace urn:kinematics-simulation, for example axis.x.MoveAbsolute.Execute.
| Node | Type | Access | Meaning |
|---|---|---|---|
axis.<id>.Power.Enable | Boolean | write | MC_Power.Enable: true powers the axis |
axis.<id>.Power.Status | Boolean | read | Enable is true and the drives are on |
axis.<id>.Power.Valid | Boolean | read | Status and no axis error |
axis.<id>.Power.Error, .ErrorID | Boolean, UInt16 | read | The axis error, also while Enable is false: the axis stays in ErrorStop until MC_Reset |
axis.<id>.Home.Execute | Boolean | write | MC_Home |
axis.<id>.MoveAbsolute.Execute | Boolean | write | MC_MoveAbsolute |
axis.<id>.MoveAbsolute.Position | Double | write | Target, m |
axis.<id>.MoveAbsolute.Velocity, .Acceleration, .Deceleration, .Jerk | Double | write | Limits of the move, m/s, m/s², m/s², m/s³. They start at the axis limits |
axis.<id>.MoveRelative.Execute | Boolean | write | MC_MoveRelative |
axis.<id>.MoveRelative.Distance | Double | write | Distance, m, from the axis setpoint at the rising edge |
axis.<id>.MoveRelative.Velocity, .Acceleration, .Deceleration, .Jerk | Double | write | As for MoveAbsolute |
axis.<id>.Stop.Execute | Boolean | write | MC_Stop |
axis.<id>.Stop.Deceleration | Double | write | Braking deceleration, m/s² |
axis.<id>.Reset.Execute | Boolean | write | MC_Reset |
axis.<id>.GearIn.Execute | Boolean | write | MC_GearIn: this axis the slave |
axis.<id>.GearIn.Master | String | write | The master’s axis id |
axis.<id>.GearIn.RatioNumerator, .RatioDenominator | Double | write | The gear ratio, slave over master travel (1 and 1 at the start) |
axis.<id>.GearIn.Acceleration, .Deceleration, .Jerk | Double | write | How the slave’s speed comes to the ratio times the master’s; Deceleration also brakes the slave where the master is lost |
axis.<id>.GearIn.InGear | Boolean | read | The slave runs at the ratio times the master’s speed and follows its travel times the ratio (in place of Done) |
axis.<id>.GearOut.Execute | Boolean | write | MC_GearOut |
axis.<id>.CamIn.Execute | Boolean | write | MC_CamIn: this axis the slave |
axis.<id>.CamIn.Master | String | write | The master’s axis id; empty for the machine’s virtual cam master (with CamTableID 1) |
axis.<id>.CamIn.Table | String | write | The client’s cam table (CamTableID 0): lines master span, slave rise, law (dwell, linear, 3-4-5, 4-5-6-7, cycloid, harmonic), or points master, slave[, slope] through which a cubic runs |
axis.<id>.CamIn.MasterOffset, .SlaveOffset, .MasterScaling, .SlaveScaling | Double | write | Absolute: the slave at SlaveOffset + SlaveScaling × table(MasterScaling × master + MasterOffset); 0, 0, 1, 1 at the start |
axis.<id>.CamIn.StartMode | Double | write | 1 relative (at the start): the table begins where master and slave stand, at MasterOffset in it, SlaveOffset unused; 0 absolute: the slave has to stand where the table puts it (no ramp-in) |
axis.<id>.CamIn.CamTableID | Double | write | 0 the client’s table, 1 the machine’s own electronic cam for this axis |
axis.<id>.CamIn.InSync | Boolean | read | The slave follows the table (in place of Done) |
axis.<id>.CamOut.Execute | Boolean | write | MC_CamOut |
axis.<id>.<FB>.Done, .Busy, .Active, .CommandAborted, .Error | Boolean | read | Outputs of every block (InGear and InSync in place of Done). Active reads the same as Busy |
axis.<id>.<FB>.ErrorID | UInt16 | read | Why the block failed, 0 without error |
axis.<id>.State | String | read | Disabled, Standstill, ErrorStop, Stopping, Homing, DiscreteMotion, ContinuousMotion or SynchronizedMotion |
axis.<id>.StateID | Int32 | read | The state as a number: 1 Disabled, 2 Standstill, 3 ErrorStop, 4 Stopping, 5 Homing, 6 DiscreteMotion, 7 ContinuousMotion, 8 SynchronizedMotion (TwinCAT’s MC_AxisStates) |
axis.<id>.ActualPosition, .ActualVelocity | Double | read | Position and velocity of the simulated axis (signal.axis.<id>.position, .velocity) |
axis.<id>.IsHomed | Boolean | read | MC_Home has finished once |
axis.<id>.Error, .ErrorID | Boolean, UInt16 | read | The axis error. Not 0 means ErrorStop |
| ErrorID | Meaning |
|---|---|
| 1 | The axis is not powered (Disabled) |
| 2 | Not allowed in this state: any block but Reset in ErrorStop, a move in Stopping or Homing, Home while the axis moves, GearOut or CamOut while the axis is not geared or cammed |
| 3 | A parameter is not a positive finite number |
| 4 | The target lies outside the axis range |
| 5 | A move, path or the cycle of the link’s other commands is under way |
| 6 | The controller refused a streamed setpoint (axis error) |
| 7 | The drives were switched off while the axis was powered: command.disable or a DC-link trip (axis error) |
| 8 | The drives went off because the machine ran into an obstacle (effects.crash, axis error) |
| 9 | GearIn or CamIn: no axis of that Master id, the slave itself, a master that is itself a slave, or an empty Master without the machine’s own cam; while coupled: the master went into ErrorStop or Disabled |
| 10 | CamIn: the client’s table cannot be read, or the machine has no cam of its own (CamTableID 1) |
How the blocks behave:
- A rising edge of
Executestarts a block with the inputs it has at that moment. Writingtrueagain whileExecuteis true does nothing. Done,CommandAbortedandErrorstay true whileExecuteis true. FallingExecuteclears them once the block has finished. IfExecutefalls while the block is busy, the block runs on and its outputs stay until the next rising edge, so that a polling client sees them.- The outputs are published once per loop cycle. A client that reads
Doneright after writingExecutecan read the last command’s value. The handshake that works: writeExecutefalse, wait untilDonereads false, write the inputs andExecutetrue, then pollBusy,Done,CommandAbortedandError. The Structured Text examples do this. - Moves and Stop take over from the motion under way at the position and velocity the axis has. The block that was running reports
CommandAborted, unless it is the same block started again: that one starts anew with cleared outputs. Done,Busy,CommandAbortedandErrorof one block are never true together. A block started again while busy whose new inputs are refused (a target out of range,Velocity0, …) reportsErroralone and gives up its motion: the axis brakes to standstill with that motion’s deceleration, inDiscreteMotion, and no block reportsDonefor it. A new move may take over the braking. PLCopen Part 1 leaves this case open; keeping the old motion running under a block that showsErrorwould leave the PLC without a block that owns it.- MC_Stop brakes with
Stop.Decelerationto standstill and then reportsDone. The axis stays inStoppingas long asStop.Executeis true, and refuses moves there (ErrorID 2). It goes toStandstillwhenStop.Executefalls. - MC_Home moves the axis to its home position, at half the axis velocity and acceleration limits, and sets
IsHomed. The home position is the axis value of the machine’s start pose ([start] posein the config). It does not search a switch and does not set a new zero: positions in the simulator are absolute. - An axis error holds through
Power.Enablefalse, as in PLCopen’s state diagram: the axis stays in ErrorStop, andPower.ErrorandPower.ErrorIDshow the error. MC_Reset clears the axis error and leaves ErrorStop for Standstill (or Disabled whenPower.Enableis false). After an ErrorID 7 or 8 it switches the drives on again; after a crash the axis can then be moved out of the obstacle, and a move further into it trips the drives again. - MC_Power: the controller has one enable for all drives. The drives go on when an axis is powered, and off when the last axis is switched off. An axis whose
Power.Enableis false is Disabled and refuses blocks, but its motor still holds position while another axis keeps the drives on. Switching an axis off aborts its motion. - Parameters above the axis limits are cut to the limits. The profile is a trapezoid: velocity, acceleration and deceleration are kept,
Jerkis accepted and not used. - MC_GearIn and MC_CamIn (PLCopen Part 1) sit in the slave’s folder and name the master by its axis id. The slave follows the master’s setpoint (MasterValueSource set value) in the same setpoint interval: the master moves first. MC_GearIn brings the slave’s speed to the ratio times the master’s with its
Acceleration(itsDecelerationwhere the slave has to slow down), then reportsInGearand holds the slave on the master’s travel times the ratio. MC_CamIn holds the slave on its table at the master’s position from its start and reportsInSyncat once. Both stayBusyandActivewhile the slave is coupled, inSynchronizedMotion; a master may not itself be a slave. - MC_GearOut and MC_CamOut end the coupling and report
Done: the coupling block goes not busy (notCommandAborted), and the slave goes on at the speed it had, inContinuousMotion, until another block (MC_Stop, a move) takes it over. A move or MC_Stop on the slave also ends the coupling: the coupling block reportsCommandAborted. - A master that goes into ErrorStop or Disabled while a slave is coupled ends the coupling with ErrorID 9: the slave brakes with the coupling’s deceleration (GearIn’s
Deceleration, the axis limit for CamIn), owned by no block. A GearIn or CamIn started again while busy whose new inputs are refused gives up its coupling the same way (the rule above). - CamTableID 1 takes the machine’s own electronic cam for this axis (the crank and cam machines,
Machine::cam): its table over one master period, sampled at 1440 points with their slopes. With an emptyCamIn.Masterthe master is the machine’s virtual one, run up from rest to the cam’s master speed by its ramp (cam.ramp_s); this is how a single-axis cam machine runs its cam over PLCopen. - Do not mix the PLCopen blocks with
command.setpoint.*,command.move,command.cycleorcommand.run_pathon the same machine at the same time. Blocks started while those run fail with ErrorID 5; a stream started while blocks run makes the controller refuse one of the two.
How it works, and its limits
The core controller moves all axes together on one synchronised profile, refuses a new move while one runs, and Command::Stop stops only the cycle after its segment. A PLCopen axis needs more: axes that move independently and at the same time, MC_Stop that brakes in the middle of a move, and a new move that aborts the old one. So the link runs one profile per axis itself and streams the positions of all axes to the controller with Command::Setpoint, one setpoint per profile.setpoint_interval_s (10 ms), counted in simulation steps. This is how a PLC drives servo drives over a fieldbus. The controller interpolates linearly between the setpoints and closes the servo loops.
Limits:
- The streamed profile has a step of 10 ms. Within a step the velocity is constant, so acceleration changes at each step. There is no jerk limitation and no input shaping of the PLCopen moves.
- A move that aborts a fast move towards a nearer target, or reverses, brakes with
Decelerationand can overshoot. If the overshoot leaves the axis range, the controller refuses the setpoint and the axis goes to ErrorStop (ErrorID 6). - No buffered or blended moves (
BufferMode), no MC_MoveVelocity, MC_Halt, MC_ReadParameter. Of synchronised motion MC_GearIn, MC_GearOut, MC_CamIn and MC_CamOut, without MC_GearInPos, MC_Phasing,EndOfProfile, the master’s actual value as its source and a ramp-in for an absolute cam start; the master of a slave is never itself a slave. A machine with an electronic cam (machine-crank-cam,cam.run = true) runs it as its cycle:command.cyclestarts it,command.stopruns its master down. - The link adds the latency of OPC UA: a client sees the effect of a write after one to two loop cycles plus its own polling time.
Real-time pacing and jitter
The simulation loop wakes on a fixed grid of deadlines, one per --cycle-ms. At each wake-up it carries out the commands that arrived, then runs as many simulation steps as the wall-clock time since the last wake-up allows (62.5 µs each for the machines here). So the number of steps follows the wall clock, not the number of wake-ups: a late wake-up runs more steps. A wake-up more than one cycle late is not made up for with a burst of extra wake-ups. If the host falls further behind than 0.1 s or two cycles, whichever is longer, the simulation drops the time beyond that instead of piling up work.
The link measures the time between wake-ups since the start or since command.reset_pacing:
| Node | Type | Meaning |
|---|---|---|
status.cycle_s | Double | The nominal cycle, s |
status.cycle_period_s | Double | Mean measured time between wake-ups, s |
status.jitter_max_s | Double | Largest deviation of one period from the cycle, s |
status.jitter_rms_s | Double | Root mean square of that deviation, s |
status.overruns | UInt64 | Wake-ups that came more than a whole cycle late (period over twice the cycle) |
status.cycles | UInt64 | Wake-ups measured |
status.realtime_factor | Double | Simulated time over wall-clock time |
status.steps | UInt64 | Simulation steps since the start |
command.reset_pacing | Boolean, write | true starts the measurement anew |
On Windows the runtime’s timer follows the system clock of 15.6 ms. With a 10 ms cycle the wake-ups therefore come 0 to 15.6 ms late, which shows as jitter of several milliseconds while the mean period and the real-time factor stay exact. A dedicated thread with the standard library’s high-resolution sleep was tried and was worse on a loaded host. On Linux the timer has a resolution of about 1 ms. Neither is a real-time system: other load on the host shows directly in the jitter.
The client’s cycle
Next to its own loop, the link measures how regularly the clients reach it: the time between one Read request to the simulator’s variables and the next, and the same for Write requests. A PLC that reads and writes once in each task cycle shows its cycle time and its jitter here, as the server sees them: the PLC task’s jitter, plus that of the network and of this computer’s scheduling.
| Node | Type | Meaning |
|---|---|---|
status.client_writes, status.client_reads | UInt64 | Intervals measured (one fewer than the requests) |
status.client_write_mean_s, status.client_read_mean_s | Double | Mean interval, s |
status.client_write_std_s, status.client_read_std_s | Double | Standard deviation of the intervals (of the population, divided by their number), s |
status.client_write_max_s, status.client_read_max_s | Double | Largest interval, s |
- One request counts once, however many variables it reads or writes. A PLC that reads two variables with two
UA_Readblocks in the same cycle sends two requests and shows intervals of half a cycle: read with one request per cycle (OPC_UA_ReadList, or one block) while measuring. The Structured Text examplesim_cycle.sthas a switch for that. - Only reads of variable values count; browsing (the other attributes) and subscriptions do not. A subscription does not carry the client’s cycle: the server samples and publishes on its own publishing interval, and the client’s Publish requests only fetch what is queued, so their timing would show the server’s interval and the network, not the PLC task. A read is counted after it is answered, so a read of these variables does not appear in its own answer.
- All clients count together: while measuring, connect only the PLC (close UaExpert).
command.reset_pacingstarts these figures anew together with the loop’s, in the write itself.- The link prints them when it stops (see Start the link).
Structured Text examples
crates/sim-opcua/examples/plc/twincat/sim_plcopen.st is for TwinCAT 3 with the library Tc3_PLCopen_OpcUa (UA_Connect, UA_GetNamespaceIndex, UA_NodeGetHandle, UA_Read, UA_Write, UA_NodeReleaseHandle, UA_Disconnect). crates/sim-opcua/examples/plc/codesys/sim_plcopen.st uses the PLCopen OPC UA client blocks as the PLCopen specification OPC 30001 (PLCopen-CFB) v1.02 names them, for a CODESYS library that provides them.
Both files contain:
| Block | What it does |
|---|---|
SIM_Access | One read or write of one variable: get the node handle, read or write the value, release the handle |
SIM_Handshake | The handshake of one block on the simulator, as described above |
SIM_MC_Power, SIM_MC_Home, SIM_MC_MoveAbsolute, SIM_MC_MoveRelative, SIM_MC_Stop, SIM_MC_Reset | Wrappers with the PLCopen inputs and outputs, plus the connection handle, the namespace index and the axis id |
PRG_SimDemo | Connects, powers the axis, homes it, starts a move, stops it after 0.5 s, switches off and disconnects |
These files were not compiled, and cannot be here. TwinCAT and CODESYS can only be downloaded with a vendor account login, which this project’s development does not have. On 14 November 2026 the names were checked against the public documentation instead:
- TwinCAT: Beckhoff Infosys, TF6100 TwinCAT 3 OPC UA Client (documentation 1.3.0 of 8 April 2026), and Beckhoff’s
TF6100_Sampleson GitHub. Every name is settled but one: whetherUA_WritetakesLENorSIZEOFof a STRING ascbData, which the documentation does not say (markedCHECK). - CODESYS: CODESYS’s public help shows only its object-oriented “OPC UA Client” library (Client, Read, Write, …), not PLCopen’s
UA_*blocks; whether a CODESYS library offers them, under which namespace prefix, could not be checked (markedCHECKat the top of each file). The names follow PLCopen’s specification v1.02, which also listsUA_NamespaceGetIndex,UA_NodeGetHandle,UA_ReadandUA_Writeas phased out in favour of their*Listvariants.
Treat the files as a starting point to compile and test on a real PLC. Every access gets and releases a node handle, which costs three round trips; production code keeps the handles. Adapt the server URL, the axis id and the positions to the machine.
sim_cycle.st in each folder adds PRG_SimCycle, a program for a 10 ms task that does what a PLC program does against the machine: connect with Basic256Sha256 SignAndEncrypt (or None) and, if set, user name and password; find the namespace index; switch the drives on with MC_Power; run MC_MoveAbsolute; write a path (command.path) and run it (command.run_path) until status.busy falls; switch off and disconnect. Meanwhile SIM_CyclicRead reads the axis position (signal.axis.<id>.position) and following error (signal.axis.<id>.following_error) every cycle through node handles that are got once, and the program keeps the largest following error. It uses the blocks of sim_plcopen.st. The path is written for the T-gantry (axes x and z, start pose x 0.1 m, z 0.35 m); change it and the target for another machine.
sim_sync.st in each folder adds synchronised motion: SIM_MC_GearIn, SIM_MC_GearOut, SIM_MC_CamIn and SIM_MC_CamOut with PLCopen inputs and outputs, over SIM_SyncHandshake, which writes the block’s numbers and texts (Master, Table), raises Execute and then polls Busy, InGear or InSync, CommandAborted, Error and ErrorID for as long as the block stays busy: a coupling block, unlike a move, is busy while the slave is coupled. PRG_SimSyncDemo runs the master x slowly over its stroke, gears y in at 2:1, gears it out after a second in gear, cams it in on a 3-4-5 table of 20 mm over 0.1 m of x and back, cams it out and stops it. It uses the blocks of sim_plcopen.st (and, for CODESYS, SIM_WriteString of sim_cycle.st); like those it was not compiled.
Run the examples against sim-opcua on the same PC
Both need the PLC runtime on this computer; nothing of it ships with this project. The steps were written from the vendors’ documentation and could not be tried here.
1. Start the link in a terminal, in the repository folder, with --trust-all for the first connection:
cargo run --release -p sim-opcua -- t-gantry --port 4840 --trust-all
It listens on opc.tcp://127.0.0.1:4840/, the URL in PRG_SimCycle, and prints the pki folder.
2a. TwinCAT 3 (TF6100).
- In TwinCAT XAE (Visual Studio), make a new TwinCAT XAE project and add a PLC project (Standard PLC Project).
- Under References add
Tc3_PLCopen_OpcUa. TF6100 needs a licence; a 7-day trial licence can be activated under System > License. - Add the code: TwinCAT does not import
.stfiles directly. For eachFUNCTION_BLOCKandPROGRAMintwincat/sim_plcopen.st,twincat/sim_cycle.standtwincat/sim_sync.stadd a POU of that name and paste the declaration (from the header toEND_VAR) into its upper part and the body into the lower part. PutE_SimKindinto a DUT. - Call
PRG_SimCyclefrom the PLC task and set the task’s cycle to 10 ms. - Activate the configuration, set the target to run mode (the local runtime needs a free core or Hyper-V settings as Beckhoff describes), log in and start.
- TF6100 makes its own client certificate on its first start, in its PKI folder:
%TcInstallDir%\3.1\Target\OpcUa\Client\PKIfor client 2.x,%ProgramData%\Beckhoff\TF6100-OPC-UA\TcOpcUaClient\PKIfor 1.x. On the first secured connection it puts the server’s certificate into itsrejectedfolder: move it totrustedthere and connect again. - Watch
nStepgo to 100,fbPosition.fValuefollow the move and the path, andfLargestError. In the link’s terminal the client certificate now lies inpki/trusted: from now on start the link without--trust-all.
2b. CODESYS Control Win.
- Install CODESYS Development System V3.5 with CODESYS Control Win (SoftPLC), start the SoftPLC from its tray icon.
- Make a Standard project for the device “CODESYS Control Win V3 x64” and add, in the Library Manager, a library that provides the PLCopen OPC UA client blocks (
UA_Connect,UA_NodeGetHandle, …). CODESYS’s own “OPC UA Client” library is object-oriented and does not, as far as its public help shows: then the files have to be ported to its Client, Read and Write blocks. - Add a POU for each block of
codesys/sim_plcopen.st,codesys/sim_cycle.standcodesys/sim_sync.stand paste the declaration and the body;E_SimKindinto a DUT. - In the task configuration make a cyclic task of 10 ms that calls
PRG_SimCycle. - For the secured connection create the client’s certificate in View > Security Screen, Devices tab, for the device. On the first attempt the server’s certificate (
pki/own/cert.der) lands under “Certificates in Quarantine” there: drag it to “Trusted Certificates”. Or setxSecure := FALSEfor a first test on the endpoint without security. - Log in, download, start. Watch
iStepgo to 100,fbPosition.lrValueandlrLargestError.
3. Read the cycle jitter. Set bReadFollowingError (TwinCAT) or xReadFollowingError (CODESYS) to FALSE, so that the program sends one Read request per cycle, and stop the link with Ctrl+C after the program has run: the line Client reads ... gives the number of intervals, their mean (the task cycle, 10 ms, when each read returns within a cycle; 20 ms when it takes up to two), their standard deviation and the largest. While the program runs, the same figures are in status.client_read_*.
Soak test
cargo test -p sim-opcua --release --test soak -- --nocapture
SOAK_SECONDS=3600 cargo test -p sim-opcua --release --test soak -- --nocapture
The test serves the T-gantry and moves both axes together between 30 % and 70 % of their range with MC_MoveAbsolute, as fast as the handshake allows, for SOAK_SECONDS (default 20). It fails if:
- a block or an axis reports an error, or
status.refusedis not empty; - an axis stands more than 0.2 mm from its target after a move;
- the real-time factor is off 1 by more than 2 %, or the step count differs from the wall time by more than 1 s plus 2 %;
- the mean period is off the cycle by more than 2 ms, the RMS jitter exceeds 10 ms, the largest jitter 100 ms, or more than 10 % of the wake-ups are overruns;
- resident memory grows by more than 64 MB (measured on Linux only).
Result of a 20 s run on Windows 11 with all cores busy with other builds: 26 moves, largest miss 0.084 mm, mean period 10.017 ms, largest jitter 16.1 ms, RMS jitter 4.6 ms, 42 overruns in 2030 cycles, real-time factor 1.0000, 328898 steps. Memory is not measured on Windows. Runs differ in jitter with the load on the host.
Fieldbus
A simulated drive on EtherCAT or PROFINET, instead of OPC UA, is discussed in Fieldbus emulation.
Fieldbus emulation: a simulated drive on EtherCAT or PROFINET
Design note. The question: can the simulator appear to a real PLC as a servo drive on EtherCAT or PROFINET, so that the PLC’s own motion stack (TwinCAT NC, CODESYS SoftMotion, S7-1500 technology objects) drives it, as it would drive a real drive? Today the PLC talks to the simulator over OPC UA (PLC virtual commissioning), which is acyclic and far slower than a drive bus. Deutsche Fassung: Feldbus-Emulation.
Result: possible, but not with the simulator alone. EtherCAT needs slave hardware; PROFINET RT class 1 works with a standard network card on Linux, but needs a 1 ms real-time loop. Neither was built here. Facts were checked on 2026-11-13; sources are linked.
What a drive on the bus must do
| EtherCAT | PROFINET | |
|---|---|---|
| Drive profile | CiA 402 over CoE (ETG.6010). For cyclic synchronous position mode (CSP): controlword 0x6040, statusword 0x6041, modes of operation 0x6060/0x6061, target position 0x607A, position actual 0x6064, velocity actual 0x606C, and the CiA 402 state machine (Nanotec manual) | PROFIdrive. Telegram 1 or 3 (speed setpoint, position loop in the PLC), telegram 105 for S7-1500 positioning axes with DSC (position error XERR and gain KPC from the PLC, position loop in the drive). The word layouts of telegrams 3, 102, 105 and 111 were not checked against a Siemens list manual here |
| Device description | ESI (XML), vendor ID from the ETG (free with membership) | GSDML, vendor ID from PI |
| Cycle | 250 µs to 1 ms, distributed clocks with SYNC0 jitter under 100 ns (Synapticon) | RT class 1: 1 to 4 ms. IRT (isochronous, needed for DSC in isochronous mode) needs special hardware |
| Conformance | Vendors must test with the ETG conformance tool (ETG); not needed for a lab device | Certification by PI; not needed for a lab device |
EtherCAT
An EtherCAT slave processes each frame on the fly in hardware, the EtherCAT Slave Controller (ESC). A standard network card cannot do that, so a conformant slave needs an ESC.
| Option | What it is | Licence, cost |
|---|---|---|
| SOES on an ESC board | rt-labs’ open-source slave stack. Hardware layers for LAN9252 (also on a Raspberry Pi), XMC4, TI Sitara (repository) | The repository’s licence file says GPLv2 with a linking exception, rt-labs’ product page says GPLv3 for evaluation and a commercial licence from €490 a year (rt-labs). Board about €50 to €200 |
| Beckhoff FC1100 | PCI card with an ET1100 ESC; a PC becomes a slave. Real-time “limited” per Beckhoff (FC1100) | Commercial |
| Hilscher cifX with NXLFW-ECS firmware | PC card as a certified slave (Hilscher) | Commercial, card a few hundred euros |
| Beckhoff EL6695 bridge | Exchanges process data between two masters, with DC (Beckhoff). The simulator would need its own master (e.g. SOEM) | Terminal plus a second master; SOEM 2.x is GPLv3 or commercial |
| TwinCAT TE1111 EtherCAT Simulation | A second PC with TwinCAT emulates the slaves of a configuration on a standard network card, with DC and CoE (Beckhoff). Whether an outside program can feed its process data was not found | TwinCAT licence per simulated device |
| acontis EC-Simulator HiL | Emulates slaves on a standard network card, against TwinCAT and CODESYS masters, can run an FMU (acontis) | Commercial. The simulator’s FMU export (sim-fmi) could plug in here |
| Raw-socket slave on a network card | Software slave at the end of the line (e.g. the old ecslave project). No on-the-fly processing, no DC accuracy | Not conformant; useful only against tolerant masters |
SOEM is a master, not a slave. It is useful only on the simulator side of an EL6695 bridge.
PROFINET
A PROFINET RT device sends and receives ordinary Ethernet frames, so a standard network card on Linux is enough for RT class 1.
| Option | What it is | Licence, cost |
|---|---|---|
| p-net | rt-labs’ open-source PROFINET device stack. Conformance class A/B, RT class 1, no IRT. Linux with any network card that can send raw frames (rt-labs) | GPLv3 or commercial. No hardware cost |
| pnio (Rust) | Pure-Rust PROFINET RT device, Linux, one connection, reported to work with an S7-1515 (docs.rs) | MIT/Apache-2.0. Version 0.1.0 from August 2026; its maturity was not checked |
| Hilscher cifX with NXLFW-PNS | PC card as a PROFINET device | Commercial, card a few hundred euros |
| Siemens SIMIT Unit PN | Hardware that emulates up to 128 or 256 PROFINET devices against a real controller, with drive behaviour per telegram; cycle down to 1 ms from SIMIT V10 (Siemens) | Commercial |
Siemens PN Driver is a controller stack, not a device stack. PLCSIM Advanced does not simulate PROFINET IO with outside devices.
Real-time constraints against this simulator
The simulator steps its physics at 62.5 µs, which is fast enough: one step costs 3 µs of CPU for the T-gantry (50 ms per simulated second, measured). What does not fit is the pacing. The link wakes every 10 ms (configurable down to 1 ms) on the operating system’s timer and runs the steps owed in a burst. A drive on a bus must answer every bus cycle:
- PROFINET RT class 1 at 1 to 4 ms: needs a loop that wakes every bus cycle with jitter well under a cycle. On Linux with PREEMPT_RT and a pinned thread this is ordinary practice. On Windows it is not reachable without a real-time extension.
- EtherCAT with DC at 250 µs to 1 ms: the ESC takes the timing; the simulator must deliver the next actual position before the next SYNC0, every cycle. With an ESC on SPI (LAN9252) that is a hard real-time loop on Linux at 1 kHz or faster.
- Before any bus, the OPC UA link measures how regularly a PLC reaches it (
status.client_read_*,status.client_write_*, see The client’s cycle): the jitter of the PLC’s task plus that of this computer, which is what a bus cycle would have to beat. - The simulator’s own setpoint interpolation (
profile.setpoint_interval_s) would become the bus cycle, and its fieldbus delay and jitter effects (profile.fieldbus_delay_cycles,fieldbus_jitter_cycles) would be replaced by the real bus.
Licences
The project is MIT/Apache-2.0. GPLv3 stacks (p-net, SOEM 2.x, SOES as rt-labs now states it) must not be linked into it. They can run as a separate process that talks to the simulator over a socket or shared memory; that keeps the simulator’s licence, but the separate program is GPLv3. The Rust crate pnio is MIT/Apache-2.0 and could be linked.
Recommended path
- PROFINET first: a Linux PC with PREEMPT_RT, a second network port, and a device process (pnio, or p-net as a separate GPL process) that exposes one PROFIdrive telegram 3 drive per axis and exchanges setpoints and actual values with the simulator every 1 ms over shared memory. The simulator side needs a 1 ms real-time loop in place of the OPC UA link’s 10 ms tick, and a PROFIdrive state machine (STW1/ZSW1). No hardware beyond a network card. This is the cheapest route to an S7-1500 or a CODESYS controller.
- EtherCAT second: a LAN9252 board with SOES as a CiA 402 CSP slave, its process data passed to the simulator over SPI or a socket, with the simulator on Linux at 1 kHz. Or, for TwinCAT users with a second PC, TE1111 or the acontis EC-Simulator with the FMU from sim-fmi, if a licence is available.
- Keep OPC UA with PLCopen blocks for virtual commissioning of sequences, where 10 ms and some jitter do not matter.
Is it tractable here?
Not in this step. Each route needs hardware or a Linux real-time host to test against a real PLC, a GPLv3 boundary or a young crate, a new real-time loop in place of the link’s tick, and a drive profile state machine. Built without a PLC and a bus to test it on, it would be untested code. It was therefore not built. The PLCopen interface over OPC UA is the part that can be tested here, and it is.
Integrations: CAD, FreeCAD, Onshape and the sizing report
The simulator sizes a machine from a config file (see config-reference.md). This page is about getting numbers into that file from CAD, and getting the verdicts out as a document a customer signs.
| Piece | Where | Status |
|---|---|---|
| STEP → mass, centre of mass, inertia → config | tools/cad/step_mass.py | working, tested |
| FreeCAD macro: tag parts, export, run the sizing check | tools/cad/SimSizing.FCMacro | working, tested headless and once in the GUI |
| Onshape mass properties → config | tools/cad/onshape_mass.py | prototype: offline path tested, API path untested |
| Sizing report, PDF and HTML | sim-cli report, app button “Sizing report…” | working, tested |
Where a value comes from
Every value in a config can say where it comes from, in a comment right above it:
# [catalogue] …read or derived from a maker’s document;# [estimate] …not published, our estimate (with a low and a high value in[bounds]);# [cad] <source>: m=…, COM=(…) m, I_com=[[…]] kg m2computed from a CAD model by the tools below.
A tag marks the keys right below it, up to a blank line or the next comment, so a group of values shares one tag;
a [cad] line, which the CAD tools write per key, marks only the key below it. A tag in a comment at the end of a
key’s line marks that key. A tag right above or after a table header ([mass]) marks every key of the table that
has no tag of its own. Where a comment block has tags on several lines, the line nearest the key counts; a line that
names two tags (“[catalogue] … its efficiency [estimate]”) gives both, and its words say which value is which. A
value in an inline table (mass = { … }) gets no tag. The sizing report lists every input with its source.
Roles: which part goes where
Parts are tagged with a role. Several parts with one role are combined: masses added, a common centre of mass, the tensors moved to it with the parallel-axis theorem.
| Machine | carriage | arm | payload |
|---|---|---|---|
t-gantry | mass.carriage_kg | mass.z_axis_kg | mass.payload_kg |
single-axis | mass.carriage_kg | — | mass.payload_kg |
delta-d3 | mass.platform_kg | mass.upper_arm_kg, upper_arm_cg_m, upper_arm_inertia_kgm2 | mass.payload_kg |
Delta arm: model one upper arm with its shoulder axis on the CAD x-axis through the origin. upper_arm_cg_m is
the distance of the arm’s centre of mass from that axis, upper_arm_inertia_kgm2 its inertia about it.
Only [mass] values are written. The full tensor and the centre of mass are in the [cad] comment; the models
use no more of them today (for example the T-gantry’s geometry.z_com_drop_m is not set from CAD). Two things the
tools leave to you: [bounds] of a value now from CAD stay as they were, so --bands still varies it over the old
estimate’s range (narrow or remove them); and the delta’s upper_arm_* values are the arm without its elbow block,
which is mass.elbow_kg: tag the elbow block as nothing, or it counts twice. delta-d3 is offered as soon as the
simulator registers that machine (sim-cli list).
(a) STEP files
OpenCascade comes from PyPI (cadquery-ocp, which has wheels for Python 3.10 to 3.14):
.venv/Scripts/python -m pip install cadquery-ocp
python tools/cad/step_mass.py MODEL.step --map tools/cad/example-map.toml --machine t-gantry --out cad.toml --report
sim-cli verdicts t-gantry --config cad.toml
The map file gives densities ([materials], kg/m³; steel, aluminium, stainless, POM and carbon are built in) and
rules [[part]] with match (a glob on the STEP product name), role and material; the first matching rule
wins, unmatched parts are listed on the error stream and not counted. The file’s length unit is converted to metres
by the reader. --config picks the config to start from (default: the machine’s default.toml); it must be complete,
and only the mapped [mass] lines and their [cad] comments change, every other line stays byte for byte.
Tested against hand-computed solids: a box, a solid cylinder, a hollow tube, a part placed off the
origin, a file in metres, and a compound against OpenCascade’s own result (tools/cad/test_cadmass.py).
(b) FreeCAD
FreeCAD 1.x: run tools/cad/SimSizing.FCMacro (Macro → Macros…, with the macro folder pointing at tools/cad, or
copy the whole folder). In its dialog:
- Select parts in the tree and tag them with a role and a material, or a density. The tags are properties of the
object (
SimRole,SimMaterial,SimDensity), shown in the property editor and saved in the.FCStd. - Settings: machine, the
sim-cliprogram, the base config and the output file; kept in FreeCAD’s parameters (Macros/SimSizing). - “Export and check” adds up the tagged parts per role (shapes in mm, converted to SI, each in its global
placement), writes the config with
[cad]lines (source: the document’s name), runssim-cli verdictson it and shows each check with value, limit, margin and result, failed ones in red, in a table and in the Report view.
The logic is in tools/cad/simsizing.py and runs without the GUI; tools/cad/test_freecad_macro.py runs it under
freecadcmd on a tagged box and cylinder and compares masses and inertias with hand values.
Margin in the macro: sim-cli verdicts gives no direction, so where “value ≤ limit” agrees with the result the check
is an at-most one and the margin is (limit − value) / limit; otherwise it is an at-least one (lives, belt slack) and
the margin is (value − limit) / value, as in the sizing report.
(c) Onshape: design note and prototype
Goal. The same as for FreeCAD: masses and inertias of tagged parts into a config, and the verdicts back.
Options.
- REST app (chosen). Onshape’s endpoint
GET /api/v9/partstudios/d/{did}/{w|v|m}/{id}/e/{eid}/masspropertiesreturns mass, volume, centroid and inertia of a Part Studio, computed by Onshape with the materials assigned there. A small client reads it and writes the config withtools/cad/cadmass.py, as the other two tools do. Runs anywhere Python runs, needs no Onshape-side code. - FeatureScript feature. Runs inside Onshape and could store a role as an attribute on parts, but FeatureScript cannot call the simulator, and whether it can evaluate an inertia tensor was not checked here. Useful later at least for tagging.
- Onshape app with OAuth in the browser, showing verdicts inside Onshape: needs a server and an app registration; the step after the REST client works.
Roles. One Part Studio per role (or, later, a part filter): the -all- entry of its mass properties is that role.
What is known. From Onshape’s documentation (Part Studios guide, API keys guide): the response has
bodies["-all-"] with mass (3 numbers), centroid (9), inertia (27), hasMass and massMissingCount; the
numbers fit SI units (the sample’s mass over volume is 7850 kg/m³), and each quantity appears to be its value
followed by a lower and an upper bound. Requests are signed with an API key: HMAC-SHA256 over method, nonce, date,
content type, path and query, each followed by a newline, lowercased, base64.
What is not confirmed, because it needs an account and keys this project does not have: whether the tensor is
about the centroid or about the origin (--inertia-about centroid|origin, default centroid), the bound order, and
whether a signed request built this way is accepted. A part without a material makes massMissingCount non-zero; the
prototype refuses it rather than leaving the part out.
Prototype. tools/cad/onshape_mass.py:
python tools/cad/onshape_mass.py --machine t-gantry --role carriage=carriage.json --role payload=payload.json --out cad.toml
A source is a saved massproperties response (save it from Onshape’s API Explorer while signed in: works without
keys) or a Part Studio URL, fetched with ONSHAPE_ACCESS_KEY and ONSHAPE_SECRET_KEY (not tested).
tools/cad/test_onshape.py tests the conversion on a response shaped like the documented sample, both tensor
references, the refusal of parts without material, and the signature against the documented scheme.
To finish it, with keys: model a 100 × 200 × 300 mm steel box away from the origin, fetch it, and compare with the hand values; that settles the tensor’s reference point and the signature. Then a part filter so that one Part Studio can hold all roles.
(d) The sizing report
sim-cli report t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --out report.pdf
--out ending in .pdf writes a PDF (A4), anything else self-contained HTML (plots as inline SVG; print it from a
browser if needed). --lang de writes it in German, --bands adds the error bands, and every option of the other
commands (--motor, --set, …) works as there. The result (all checks pass or how many fail) goes to the error
stream; the exit code is 0 either way. In the app: “Sizing report…” beside the config file buttons writes the report
of the config as it is now, with the error bands when they are ticked in the analysis panel.
Contents:
- Machine: name, config file, date, simulator version, cycle time and the overall result; the parts named in
[parts]and the[mass]and[geometry]values, each with its source. - Cycle: motor torque and speed over the measured pass, and the operating points against the drive’s torque-speed curve.
- Verdicts: every check with value, limit, margin and result; failed rows in red. Margin is one minus the check’s
utilisation (value over limit; for lives and belt slack limit over value), so negative means exceeded. The values
are the ones
sim-cli verdictsprints. - Error bands (with
--bands): per check the lowest and highest value with each bounded parameter at its bounds, and whether the worst case passes. - Inputs and their sources: every value the run used with
[catalogue],[estimate]or[cad]from the comments, “part in [parts]” where a part named from the catalogue brought it, “set for this run” where it differs from the file (--set, a part name on the command line, an edit in the app), “not stated” where the file says nothing. - Sign-off: prepared by, checked by and accepted by the customer, each with name, company, date and signature.
The PDF is written by the simulator itself (sim_components::report), with the standard Helvetica fonts and no
outside library; text outside Latin-1 shows as “?”.
Tests
cargo test -p sim-components report
cargo test -p sim-cli --test cli report
SIM_CLI=target/release/sim-cli.exe .venv/Scripts/python -m unittest discover tools/cad
The Python tests skip what they cannot run (no OpenCascade, no FreeCAD, no sim-cli that reads the current configs)
and say why. FREECADCMD names freecadcmd where it is not found by itself.
Kinematics Simulation
Eine Physik-Werkbank für Bewegungsmaschinen. Beschreiben Sie eine Maschine (Portal, Delta-Picker, Roboter, Presse, Hexapod, Seilroboter und mehr), lassen Sie ihren Zyklus laufen und sehen Sie, was Motoren, Antriebe, Riemen, Getriebe und Führungen wirklich aushalten müssen, geprüft gegen die Kennwerte der Hersteller.
Im Browser ausprobieren (ohne Installation) · Download · Dokumentation · English
Warum
Auslegungstabellen rechnen eine Maschine als starre Massen mit festen Wirkungsgraden. Dieser Simulator bildet den Antriebsstrang physikalisch ab: Riemen als Federn, Führungsreibung nach LuGre, Getriebespiel und -verluste, die Motorwicklung mit ihrer Temperatur, ein Servoantrieb mit Kaskadenregelung und Zwischenkreis. Moment, Schleppfehler, Erwärmung und Einschwingen ergeben sich aus diesem Modell statt aus Faustregeln.
Funktionen
- Prüfurteile zur Auslegung. Spitzen-, Effektiv- und thermische Last jedes Motors, Antriebs, Getriebes, Riemens, jeder Führung und jedes Lagers über einen Zyklus, bestanden oder nicht gegen Katalogwerte, mit Lebensdauern von Lagern und Führungen.
- Fehlerbänder. Jeder geschätzte Wert hat Grenzen; sehen Sie, wie weit sich jedes Ergebnis verschiebt, einzeln, gesampelt oder in der ungünstigsten Ecke.
- Katalogsuche. Der leichteste Motor mit Antrieb und Getriebe (und Achse), der besteht, aus eingebauten Daten von Siemens, Beckhoff, B&R, SEW, Lenze, Kollmorgen, Yaskawa, Festo, Bahr, Neugart, Wittenstein und weiteren.
- Bewegungsplanung. Bahnen aus Geraden, Kreisbögen und Splines, ein zeitoptimaler Plan innerhalb aller Grenzen, Überschleifen, Input Shaping, elektronische Kurvenscheiben.
- Dynamik. Resonanzen und Eigenformen über den Arbeitsraum, Stabilitätsreserven der Regelkreise, Anhaltewege in Stoppkategorie 0, 1 und 2.
- Optimierer. Ein kürzerer Zyklus oder weniger Energie, der jede Prüfung weiterhin besteht.
- Echte Daten. Eine Antriebsaufzeichnung nachfahren und Masse, Trägheit, Reibung und Riemensteifigkeit daran anpassen.
- Eigener Regler. Die simulierte Maschine in Momenten- oder Drehzahlregelung aus Python, einer FMU oder einer SPS über OPC UA führen.
Maschinen
| Familie | Maschinen |
|---|---|
| Achsen und Portale | T-Portal, Riemenachse, Kugelgewindeachse, Zahnstange, Linearmotor, Rundtisch, H-Bot, CoreXY, XYZ-Portal und Portal mit zwei Antrieben, Fünfachsmaschinen |
| Delta- und Parallelroboter | Delta mit 3 Armen, Delta mit 4 Achsen, Quattro-Art, planarer Delta, Linear-Delta, Parallel-SCARA, Hexapod (Zylinder und Kurbeln), Tripod |
| Roboter | Sechsachsroboter aus URDF (auch auf Linearschiene), SCARA, Palettierer, Wafer-Handler mit R-Theta-Z-Arm |
| Kurbel und Kurve | Servopresse, Kniehebelpresse, Rotationsmesser, fliegende Säge, Kurvenscheibe, Rundschalttisch (Malteserkreuz, Kurvenschrittgetriebe) |
| Weitere | Brückenkran mit pendelnder Last, ebener und räumlicher Seilroboter, Auf- und Abwickler mit Tänzer, Mover-Strecke mit Linearmotoren (unabhängige Mover auf geschlossener Bahn), Scherenhubtisch |
Antriebe: permanenterregte Servomotoren, Schrittmotoren, Asynchronmotoren (U/f oder feldorientiert) und Pneumatikzylinder. Neue Maschinen lassen sich ohne Programmieren in einer Maschinendatei beschreiben.
Einstieg
Desktop-App und Befehlszeile: den Windows-Installer oder das Linux-Paket unter Releases herunterladen. Die App lässt sich im Betrieb auf Deutsch umschalten; Befehlszeile und OPC-UA-Server sprechen mit --lang de Deutsch.
Python:
pip install kinematics-sim
import kinematics_sim as ks
import pandas as pd
cfg = ks.Config("t-gantry") # eine eingebaute Maschine mit ihrer Standardkonfiguration
cfg["mass.payload_kg"] = 3.5 # jeden Wert ändern
print(pd.DataFrame(ks.verdicts(cfg))) # jede Prüfung des Zyklus: Wert, Grenze, ok
Aus dem Quelltext (Rust stable, Edition 2024):
cargo run --release -p sim-app # Desktop-App
cargo run --release -p sim-cli -- verdicts t-gantry --lang de # Befehlszeile
Weiter mit dem Benutzerhandbuch, dem Überblick mit den Grenzen und den Beispielen (englisch).
Wie genau ist es?
Jedes Bauteil und jede Kennzahl ist gegen eine Handrechnung getestet. Die Dynamik der Roboter stimmt mit MuJoCo auf 1e-14 überein, die der Deltas mit unabhängigen Lagrange-Rechnungen, und der Regelkreis des Antriebs mit einer unabhängigen Python-Implementierung. Eine reale Maschine, ein Kugelgewinde-Prüfstand des ISW Stuttgart, wurde nachgefahren: Das simulierte Motormoment liegt im Effektivwert 5 bis 13 % neben dem gemessenen.
Die Gleichungen sind geprüft; die Parameter einer bestimmten Maschine (Reibung, Dämpfung, Steifigkeit) sind oft Schätzungen, und die Konfigurationen kennzeichnen sie. Vergleiche und Tendenzen sind belastbar; absolute Zahlen sind so gut wie diese Werte. Einzelheiten: Überblick und Grenzen und validation.md (englisch). Messdaten Ihrer Maschine sind der wertvollste Beitrag: siehe datasets.
Schnittstellen
| Oberfläche | Wofür |
|---|---|
| Desktop-App | 3D-Ansicht, Oszilloskope, Zyklusanalyse, Suche und Einstellhilfe |
sim-cli | Skripte und CI; Ausgabe als CSV |
| Python | Ergebnisse für NumPy und pandas, Parameterstudien, eigener Regler |
| FMI 2.0 / 3.0 | Co-Simulation in Simulink, OpenModelica, Dymola |
| OPC UA | Virtuelle Inbetriebnahme mit einer SPS (PLCopen-artige Achsen) |
| Browser | Demo und Auslegungsprüfung ohne Installation |
Dokumentation
Auf Deutsch: Benutzerhandbuch · Überblick und Grenzen · Maschinendateien · Mechanismen · Python-Modul · Browser · FMI-Export · SPS-Inbetriebnahme · Feldbus-Emulation · Anbindungen
Nur auf Englisch: Config reference · Model reference · Catalogue · Validation · Measurement procedure · Roadmap · Changelog
Lizenz
Wahlweise unter MIT oder Apache-2.0. Der OPC-UA-Server nutzt async-opcua (MPL-2.0); Einzelheiten im englischen README.
Überblick: was das Programm aussagen kann
Was der Simulator liefert, was hinter den Zahlen steht und wo seine Grenzen liegen. Installation und Einstieg: die deutsche Einstiegsseite; ein Rundgang mit echten Ausgaben steht im englischen Overview.
Was das Programm aussagen kann und was nicht
Für eine Maschine, die in einer Konfigurationsdatei beschrieben ist, liefert es:
- Spitzenmoment, Effektivmoment und kubisches Mittel des Moments, Drehzahl, Strom, Übertemperatur der Wicklung und Energie je Motor über einen Zyklus oder eine Bahn
- wie viel vom Moment jedes Motors auf Trägheit, Schwerkraft, Reibung und Riemen entfällt, wo die Energie eines Zyklus verloren geht (jede Führung, Welle, jedes Getriebe, jeder Dämpfer, die Wicklungen, der Bremswiderstand) und was die Reibung jeder Führung an ihrem Arbeitspunkt tut
- ob dieser Zyklus die Grenzwerte der Bauteile in der Konfiguration einhält (Drehmoment-Drehzahl-Kennlinie, S1, Wicklungstemperatur, Getriebe, Riemenkraft, schlaffes Trum und Zahnbelastung, Zwischenkreis und Bremswiderstand, Führungsbelastung und Radialkraft auf die Welle, Einschwingen an der Greifposition), und die eigenen Prüfungen der Maschine: Drehzahl, DN-Wert, Knickung und Lebensdauer eines Kugelgewindetriebs, Vorschubkraft einer Zahnstange, Lebensdauer eines Wellgetriebes, Kraftreserve einer Presse, Rutschen eines Wafers, Seilkräfte, Bahnzug an Kern und vollem Wickel, Synchronität eines Schrittmotors, Endlagenenergie eines Pneumatikzylinders
- wie viele Stunden die Lager der Scheibenwellen, die Planetenlager des Getriebes und die Führungen in diesem Zyklus halten, gegen eine geforderte Lebensdauer (ISO 281 mit a_ISO, die Getriebeformel von Siemens, die Formel der Führungshersteller; für den Riemen gibt es stattdessen eine zulässige Zahnbelastung, weil kein Riemenhersteller eine Lebensdauer veröffentlicht), und wie lange die Verzahnung eines Getriebes über ihrem Nennmoment hält
- wie sich diese Ergebnisse verschieben, wenn ein unsicherer Wert an seiner unteren oder oberen Grenze liegt, oder wenn alle unsicheren Werte zugleich abweichen
- wie weit die Werkzeugspitze von ihrer Bahn entfernt ist und was Reglerverstärkungen, Überschleifen, Input Shaping und Reibungsvorsteuerung daran ändern
- wie schnell eine Bahn innerhalb jeder Grenze gefahren werden kann, die ein Prüfurteil an einem Punkt der Bahn beurteilt (ein zeitoptimaler Plan)
- wie weit die Maschine fährt, wenn sie im ungünstigsten Augenblick in Stoppkategorie 0, 1 oder 2 angehalten wird, mit den Verzögerungen der Haltebremsen
- die Resonanzen der Maschine über ihren Arbeitsraum, um die Input Shaper danach einzustellen, und ihre Eigenformen
- welcher Katalogmotor mit seinem Antrieb (und Getriebe), auf welcher Katalogachse, der günstigste ist, der besteht; das eingebaute Gewicht steht für den Preis
- einen kürzeren Zyklus (höhere Grenzwerte, Überschleifen, Input Shaping, niedrigere oder gerundete Hübe), der jede Prüfung weiterhin besteht, wie geschrieben und in den Fehlerbändern
- die Energie je Zyklus gegen die Zykluszeit: die Einstellungen, die keine andere in beidem und in der Spitzenauslastung der Motoren übertrifft
- aus einer Antriebsaufzeichnung: die Masse der Nutzlast, je Motor zusätzliche Trägheit, Reibung und konstantes Moment (je Glied bei den Robotern) und die Steifigkeit des Riemens aus seinen Bewegungen
- was ein eigener Regler mit der Maschine macht: Momenten- oder Drehzahlregelung je Motor aus der FMU oder aus Pythons
ks.Sim, beurteilt mit derselben Analyse und denselben Prüfungen wie der eingebaute Antrieb
Die Motoren sind permanenterregte Servomotoren, zweiphasige Hybrid-Schrittmotoren an einem gesteuerten Antrieb ohne Rückführung oder Asynchronmotoren an einem Frequenzumrichter (U/f oder feldorientiert); eine Maschinendatei kann Pneumatikzylinder mit ihren Ventilen neben die Servoachsen setzen.
Was hinter den Zahlen steht (validation.md): Handrechnungen zu jedem Bauteil und jeder Kennzahl; unabhängige Implementierungen (die Bewegung des T-Portals gegen SciPy, die Starrkörperdynamik der Roboter und die Lage ihres Flanschs gegen MuJoCo 4.0.1, die Dynamik des D3 gegen eine Lagrange-Rechnung in SymPy und seine Massenaufteilung gegen ein Mehrkörpermodell in MuJoCo, die inverse Dynamik von D2 und Linear-Delta gegen Lagrange-Rechnungen, der geschlossene Regelkreis des Antriebs an der Einzelachse gegen eine Python-Implementierung nach der Modellreferenz); Messdaten eines Kugelgewinde-Prüfstands (unten); Herstellerformeln und Querprüfungen zwischen Herstellerdokumenten; Property-Tests und Fuzz-Ziele für alle Leser von Dateien. Diese Prüfungen belegen, dass die Gleichungen wie dokumentiert gelöst und die Katalogdaten richtig gelesen werden; MuJoCo, eine Implementierung anderer Leute, kann auch eine falsche Gleichung in der Kette der Roboter finden. Sie belegen nicht, dass die Parameter eine reale Maschine beschreiben.
Eine Maschine wurde vermessen, von anderen; sonst keine. Den Kugelgewinde-Prüfstand des ISW Stuttgart (datasets/isw-ball-screw-axis, CC BY 4.0) fährt der Simulator mit den aufgezeichneten Sollwerten nach. Mit der Reibung, die an seiner S-Profil-Aufzeichnung angepasst ist, weicht das simulierte Motormoment vom gemessenen um 5,3 % der Spitze im Effektivwert ab (28 % am ungünstigsten Abtastwert); an den beiden Aufzeichnungen, die als Prüfung zurückgehalten sind, um 13,3 % und 6,1 % (35 % und 25 %). Die Anpassung legt die bewegte Masse 92 kg unter die 584 kg der Konfiguration, die Haltekraft im Stillstand hat in einer Prüfung das falsche Vorzeichen, und die erste Eigenfrequenz des Modells liegt bei 137 Hz, wo die Frequenzgänge des Prüfstands 123 bis 134 Hz ergeben. Für jede andere Konfiguration sind Reibung, Dämpfung, Steifigkeit von Führung und Gestell, Riemenvorspannung, Wicklungswiderstand und Wicklungsinduktivität sowie die Daten von Zwischenkreis und Bremswiderstand Schätzungen. Die Konfigurationen sagen das selbst: exct-30.toml kennzeichnet jeden Wert mit [catalogue] oder [estimate], und jede Konfiguration hat eine Tabelle [bounds] mit einer unteren und einer oberen Grenze für ihre Schätzwerte. Tendenzen und Vergleiche (dieser Motor gegen jenen, mit und ohne Input Shaping) sind belastbar. Absolute Zahlen sind so gut wie die Schätzungen. Mit verdicts --bands sehen Sie, wie weit sich ein Ergebnis mit ihnen verschiebt.
Weitere Grenzen, die zählen:
- Die Standardkonfigurationen der beiden Riemenmaschinen sind erfundene Platzhaltermaschinen, keine Produkte. Die Konfigurationen der Deltas sind wie Produkte ausgelegt (Autonox RL3-1200-3kg, Codian D2-800, Festo EXPT-95; Siemens-Motoren und -Getriebe aus dem Katalog), aber Arm- und Stablängen, Massen und Trägheiten sind Schätzungen: Die Hersteller veröffentlichen sie nicht. Die übrigen Maschinen sind ausgelegte Beispiele, deren Mechanik ein typisches Teil dieser Größe schätzt, nicht den Artikel eines Herstellers. Für Schrittmotoren, Asynchronmotoren, Vakuumsauger und Durchflusswerte von Ventilen gibt es keine Katalogdaten: Ihre Werte sind Schätzungen.
- Ein Servomotor ist eine einzige Ersatzwicklung (R, L, Gegen-EMK), die den Effektivwert des Strangstroms führt und höchstens das sqrt(3/2)-Fache der Zwischenkreisspannung erhält; mit Feldschwächung (
effects.field_weakening, in den mitgelieferten Konfigurationen an) ist sie die q-Achse eines d-q-Modells, dessen d-Strom seinem Sollwert mit der Zeitkonstante des Stromreglers folgt. Es gibt kein Drehstrommodell und keine PWM (Modellreferenz). - Der zeitoptimale Plan hält die Grenzen ein, die an einem Punkt der Bahn beurteilt werden, nicht die über den ganzen Zyklus (Erwärmung, S1, Effektivstrom, Lebensdauern, mittlere Bremsleistung): In den zeitoptimalen Zyklen von vier Maschinen wird ein Motor zu warm.
- Stopps: Kategorie 2 bremst in Fahrtrichtung ohne Ruckbegrenzung, eine Verzögerung gilt für alle Bremsen einer Maschine, und die Prüfurteile der Stopps gibt nur
sim-cli stop; kein Stopp ist mit einem gemessenen verglichen. - Die Lebensdauern sind die Formeln der Hersteller und nicht mehr: der Lebensdauerbeiwert a1 der ISO 281 an den Lagern und a_ISO nur an den Lagern der Scheibenwellen, ein Lager je Scheibenwelle, die Lebensdauer der Verzahnung aus einem Wöhler-Exponenten und einem Knick, die Schätzungen sind, Tragzahlen und Schmierwerte, die zum Teil Schätzungen sind. Sie sind nicht validiert.
- Der OPC-UA-Server wurde gegen einen Client geprüft, der mit derselben Bibliothek geschrieben ist (mit den gesicherten Endpunkten und den Jitter-Kennzahlen), nicht gegen eine SPS.
- Die FMU wurde mit dem Validator und dem Simulator von fmpy geprüft und in OpenModelica 1.27.1 mit OMSimulator gerechnet; in Simulink oder Dymola importiert oder mit
fmusimder Modelica Association oder dem FMU Compliance Checker geprüft wurde sie nicht (FMI-Export). - Die Zahlen im Browser stimmen mit denen der Befehlszeile auf vier bis fünf signifikante Stellen überein, nicht Bit für Bit (Auslegung im Browser).
- Das Fenster der App wird mit künstlichen Maus-, Tastatur- und Größenereignissen getestet, und seine Bilder wurden gelesen; die Dateidialoge sind nicht getestet, wie die Bewegung über die Zeit aussieht, hat niemand angesehen, und bei 1280 x 720 verdecken die Bedienelemente der Ansicht einen großen Teil der Maschine (validation.md).
- Das Einlesen von Antriebsaufzeichnungen und die Parameteranpassung wurden an Aufzeichnungen geprüft, die der Simulator selbst erzeugt hat, und an denen des einen Prüfstands, mit einem Skript in CSV umgewandelt; der eigene Export eines Antriebs (Startdrive, TwinCAT, CODESYS) wurde noch nicht gelesen.
- Die Hexapods und der räumliche Seilroboter rechnen auf einem Kern nur 1,35- bis 2-mal schneller als Echtzeit (Prozessorzeit); auf einem langsamen oder ausgelasteten Rechner können sie zurückfallen.
Was noch nicht gebaut ist: ROADMAP.md (englisch).
Benutzerhandbuch
Ein Abschnitt je Aufgabe. Jeder nennt den Befehl, erklärt die Ausgabe und führt die Grenzen auf, die für diese Aufgabe zählen. Die Physik dahinter steht in der Modellreferenz, die Konfigurationsschlüssel stehen in der Konfigurationsreferenz.
Die Referenzdokumente, auf die dieses Handbuch verweist, gibt es nur auf Englisch. Die englische Fassung dieses Handbuchs ist user-guide.md.
In den Beispielen steht sim-cli für cargo run -q --release -p sim-cli --. Jede gezeigte Ausgabe stammt von dem Befehl, der darüber steht. Wo ein Befehl Meldungen ausgibt, lief er mit --lang de; in den Beispielen ist die Option der Kürze halber weggelassen. Die Spaltennamen der CSV-Ausgabe und die Namen der Prüfungen sind englische Bezeichner und in beiden Sprachen gleich.
Für alle Befehle gleich
sim-cli COMMAND MACHINE [options]
MACHINE ist t-gantry (T-Portal) oder single-axis (Einzelachse); sim-cli list gibt beide aus. Diese Optionen kennt jeder Befehl außer list:
| Option | Wirkung |
|---|---|
--machine-file FILE | An Stelle von MACHINE: eine in einer TOML- oder JSON-Datei beschriebene Maschine, ohne Rust-Code aus Bauteilen verschaltet (eine FMU davon trägt die Datei mit). Siehe Maschinendateien |
--config FILE | Diese Konfiguration statt der Standardkonfiguration der Maschine verwenden. Die Konfiguration der EXCT-30 ist crates/machine-t-gantry/exct-30.toml |
--motor ARTICLE | Einen Motor aus dem Katalog Siemens S210 in die Konfiguration einsetzen, z. B. 1FK2205-4AF. Setzt parts.motor |
--supply 230v oder 400v | Die Netzspannung, für die die Motordaten gelten. Setzt parts.motor_supply. Ohne Angabe gilt der Wert der Konfiguration |
--gearbox SIZE-FRAME-RATIO | Ein Kataloggetriebe in die Konfiguration einsetzen (Baugröße-Flansch-Übersetzung), z. B. NRK070-04-5. Setzt parts.gearbox |
--set path=value | Einen einzelnen Konfigurationswert ändern, z. B. --set mass.payload_kg=3.0. Mehrfach möglich. Wird nach den Bauteilen angewendet; einzelne Werte eines Katalogbauteils lassen sich so überschreiben; die Aufstellbedingungen eines Antriebs (ratings.drive_ambient_c, drive_altitude_m, drive_pulse_frequency_hz) vor ihnen, da der Antrieb beim Einsetzen abgemindert wird. Ein Schlüssel, den die Konfiguration nicht hat, wird angelegt, wo eine Konfigurationsdatei ihn haben darf: der eigene Wert eines Motors in [drive.<id>] und den anderen Tabellen je Motor (--set drive.b.velocity_kp_nm_s_rad=0.05) oder ein Schlüssel, den eine Datei ergänzen darf (die Bemessungswerte über die Standardkonfiguration hinaus, diese Bedingungen); jeder andere wird mit dem nächstliegenden Schlüssel abgelehnt |
--out FILE | Die CSV-Daten in eine Datei schreiben statt auf die Standardausgabe |
--lang en oder de | Sprache der Meldungen. Die Spaltennamen der CSV-Ausgabe werden nicht übersetzt |
--catalog ORDNER | Liest den Bauteilkatalog aus ORDNER, einer Kopie von catalog/ mit derselben Schemaversion, statt des eingebauten; jede Tabelle des eingebauten Katalogs muss darin sein (eine ältere Kopie, der eine Tabelle fehlt, wird mit dem Dateinamen abgelehnt), und eine Tabelle, der eine Spalte fehlt oder deren Zeile weniger Felder hat als der Kopf, wird mit Dateiname und Spalte oder Zeile abgelehnt. Auch sim-app nimmt die Option |
Regeln, über die man leicht stolpert:
-
--setändert nur Werte, die es gibt. Ein falsch geschriebener Schlüssel wird abgelehnt und der nächste Schlüssel genannt, wo einer nahe liegt (Konfigurationswert fehlt: mass.cariage_kg (meinten Sie mass.carriage_kg?)), ein Wert vom falschen Typ ebenso. Ein Wert außerhalb des Bereichs wird mit Pfad und Wert gezeigt, und mit der Grenze, wo eine Masse, ein Radius, eine Steifigkeit, Dämpfung, Nutzlast oder ein anderes gemeinsames Lesen der Konfiguration ihn abgelehnt hat (Konfigurationswert liegt außerhalb des gültigen Bereichs: mass.payload_kg = -5 (darf nicht negativ sein), oder(muss größer als 0 sein), oder die Grenze der endlichen Zahl vom Betrag höchstens 1e15); eine Prüfung an anderer Stelle zeigt nur den Wert. -
--motor,--supplyund--gearboxbrauchen eine Tabelle[parts]in der Konfiguration. Alle drei mitgelieferten Konfigurationen haben eine. -
Jede Option außer
--cycle,--time-optimal,--bandsund--worsterwartet einen Wert. Eine Option ohne ihren Wert wird abgelehnt (Dieser Option fehlt ihr Wert: --time), ebenso eine Option, die der Befehl nicht kennt, etwa eine falsch geschriebene (Diese Option kennt der Befehl nicht: --cylce). Eine Zahl muss endlich sein:--time infwird abgelehnt. -
--cycle,--move,--trajectoryund--pathschließen einander aus (Von diesen Optionen kann nur eine zugleich angegeben werden: --cycle --move). -
Eine Konfigurationsdatei darf nur Schlüssel enthalten, die die Standardkonfiguration der Maschine hat: Ein falsch geschriebener Schlüssel wird abgelehnt (
Die Konfiguration enthält einen Wert, den diese Maschine nicht kennt: mass.cariage_kg). Ausgenommen sind[bounds], das seine eigene Prüfung hat, undratings.pulley_max_torque_nm. -
Zahlen werden beim Lesen der Konfiguration geprüft. NaN und unendlich werden für jeden Wert abgelehnt, eine negative Zahl dort, wo die Größe nicht negativ sein kann (eine Nutzlast, eine Dämpfung, ein Spiel, die Vorspannung des Riemens), und eine Startpose außerhalb der Verfahrbereiche. Die Meldung nennt den Schlüssel:
Konfigurationswert liegt außerhalb des gültigen Bereichs: gearbox.backlash_rad. -
Ein Fehler gibt eine Zeile auf der Fehlerausgabe aus; der Befehl endet mit dem Code 2.
-
sim-cli helplistet die Befehle, einen je Zeile, in der Sprache von--lang;sim-cli help BEFEHL(odersim-cli BEFEHL --help) gibt die Optionen eines Befehls aus,sim-cli help optionsdie, die jeder Befehl kennt,sim-cli help pathsdie Formate der Pfaddateien undsim-cli help unitsdie Einheiten der Spalten. Ein Aufruf mit falschen oder fehlenden Argumenten nennt die Hilfe seines Befehls.sim-cli --version(oder-V) gibt die Version aus. -
Beendigungscodes: 0, wenn der Befehl lief und alles besteht, was er beurteilt; 1, wenn er lief und eine durchgefallene Zeile ausgegeben hat (
FAILin der Ergebnisspalte vonverdicts,margins, bei den Prüfungen vonreport,replay --toleranceundfit --within, oder unter den Urteilen, diestopundaccuracyauf der Fehlerausgabe ausgeben); 2 bei einem Aufruf- oder Konfigurationsfehler. Die Tabelle wird vollständig ausgegeben, bevor der Code 1 ist; ein Skript kann also die Zeilen lesen und den Code prüfen. Die Standardkonfiguration des Brückenkrans fällt beiresidual-swayabsichtlich durch,verdictsendet bei ihr also mit 1. -
Ein Ergebnis, das nicht endlich ist (eine instabile Regelung ergibt
infodernan, ebenso eine Wicklung, die ohne Ende heißer wird), wird nach der Tabelle auf der Fehlerausgabe genannt:sim-cli margins MASCHINEmisst die Regelkreise. -
Verlangen die Achsgrenzwerte mehr von einem Motor, als die Antriebsdaten zulassen, geben Befehle, die unmittelbar eine Simulation starten (
run), eine Warnung auf der Fehlerausgabe aus und laufen weiter:$ sim-cli run t-gantry --set axis.x.max_velocity_m_s=2.0 --time 0.01 --out x.csv Die Achsgrenzwerte verlangen mehr Motordrehzahl, als der Antrieb zulässt: Motor A: 600.0000 > 420.0000 Die Achsgrenzwerte verlangen mehr Motordrehzahl, als der Antrieb zulässt: Motor B: 600.0000 > 420.0000Verglichen wird die Motordrehzahl bei den höchsten Achsgeschwindigkeiten mit
drive.rated_speed_rad_sund das Drehmoment des Starrkörpermodells bei den höchsten Achsbeschleunigungen mitdrive.peak_torque_nm, jeweils für jede Kombination der Achsrichtungen.
Einen Motor für einen Zyklus auslegen
Der Zyklus ist die Liste der [[cycle.segment]] in der Konfiguration: Zielpose, Verweilzeit und ob die Nutzlast bei der Ankunft angehängt ist. Um ihn zu ändern, bearbeiten Sie eine Kopie der Konfiguration; mit --set lässt sich der Zyklus nicht ändern.
$ sim-cli analyze t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,energy_in_j,energy_regenerated_j,peak_regenerated_power_w,largest_regeneration_j,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,path_angle_error_peak_rad,path_angle_error_rms_rad,tracking_angle_error_peak_rad,dwell_angle_error_peak_rad,cubic_mean_torque_nm,braking_resistor_energy_j,braking_resistor_mean_power_w,dc_link_peak_voltage_v,belt_slack_time_s,radial_load_peak_n,guide_load_peak_n,guide_life_km,mains_energy_j,guide_life_h,pulley_bearing_life_h,gearbox_life_h,belt_tooth_utilisation,gearbox_gearing_life_h,motor_bearing_life_h,housing_rise_k,drive_overload,torque_unit,speed_unit
a,6.080000,0.559815,0.168995,200.4655,0.1478,0.1331,203.94,334.05,0.3757,1.28,86.325,11.097,28.85,6.261,1.065e-4,3.560e-5,1.812e-4,4.296e-5,0.000e0,0.000e0,0.000e0,0.000e0,0.201808,0.060,0.010,224.65,0.0000e0,6.4501e2,1.7711e2,3.6271e6,0.000,3.8234e6,4.7197e5,6.0841e9,1.9371e-1,,,0.00,0.0000,N m,rad/s
b,6.080000,0.466646,0.156888,200.4541,0.1229,0.1235,203.94,334.05,0.3488,1.10,76.318,16.854,35.76,8.361,1.065e-4,3.560e-5,1.812e-4,4.296e-5,0.000e0,0.000e0,0.000e0,0.000e0,0.179829,6.607,1.087,224.65,0.0000e0,6.4501e2,1.7711e2,3.6271e6,0.000,3.8234e6,4.7070e5,9.1482e9,1.5539e-1,,,0.00,0.0000,N m,rad/s
Der Simulator startet den Zyklus, lässt den ersten Durchlauf verstreichen und misst den zweiten. Je Motor entsteht eine Zeile. Spalten, die die ganze Maschine beschreiben und nicht einen Motor, wiederholen sich in jeder Zeile.
| Spalte | Einheit | Bedeutung |
|---|---|---|
cycle_s | s | Dauer des gemessenen Durchlaufs (Zykluszeit) |
peak_torque_nm | N m | Spitzenmoment: größter Betrag des Motormoments (aus dem Wicklungsstrom, an der Motorwelle) |
rms_torque_nm | N m | Effektivmoment des Motors über den Durchlauf |
peak_speed_rad_s | rad/s | Größter Betrag der Motordrehzahl |
utilisation | Anteil | Genutzter Anteil der Drehmoment-Drehzahl-Kennlinie: größtes Verhältnis zwischen dem Moment, das der Drehzahlregler verlangt (vor der Momentengrenze), und dem Moment, das die Kennlinie bei dieser Drehzahl hergibt. Über 1 verlangt der Zyklus mehr, als die Kennlinie hergibt: Der Antrieb fährt an seiner Momentengrenze, und die Achse bleibt zurück |
thermal_utilisation | Anteil | Effektivmoment geteilt durch drive.rated_torque_nm. Nur zur Information; die Prüfung motor-thermal beurteilt die Übertemperatur der Wicklung, und die beruht auf motor.rated_current_a |
belt_tension_min_n, _max_n | N | Kleinste und größte Riemenkraft in einem beliebigen Riementrum, einmal je Millisekunde betrachtet. Gilt für die ganze Maschine |
rms_current_a | A | Effektivwert des Wicklungsstroms |
winding_rise_k | K | Übertemperatur der Wicklung, eingeschwungen: der Wert, auf den sie sich einstellt, wenn sich dieser Zyklus lange wiederholt |
energy_in_j | J | Aufgenommene Energie: elektrische Energie, die die Wicklung bei positiver Leistung aufgenommen hat |
energy_regenerated_j | J | Rückgespeiste Energie beim Bremsen |
peak_regenerated_power_w | W | Höchste rückgespeiste Leistung |
largest_regeneration_j | J | Größte Energie, die in einer einzelnen Bremsung zurückgespeist wurde (ein ununterbrochener Abschnitt negativer Leistung) |
path_error_peak_m, _rms_m | m | Bahnfehler: Abstand des Werkzeugs von der Bahn, die sein Sollwert gezeichnet hat, in den Achsen in m (sein Ort). Gilt für die ganze Maschine |
tracking_error_peak_m | m | Größter Lagefehler des Werkzeugs: Abstand des Werkzeugs von der Stelle, an der sein Plan im selben Augenblick war, in den Achsen in m. Gilt für die ganze Maschine |
dwell_error_peak_m | m | Größter Abstand vom Ziel beim Verweilen, gemessen in der zweiten Hälfte einer Verweilzeit, in den Achsen in m. Gilt für die ganze Maschine |
path_angle_error_peak_rad, _rms_rad, tracking_angle_error_peak_rad, dwell_angle_error_peak_rad | rad | Dieselben drei für die Achsen in rad (die Drehung des Werkzeugs: c des D4 und des SCARA, die Orientierung eines Arms oder seine Gelenke, der Rundtisch), getrennt: Meter und Radiant werden nie addiert. 0 bei einer Maschine ohne solche Achse. Gilt für die ganze Maschine |
cubic_mean_torque_nm | N m | Kubisches Mittel des Moments: dritte Wurzel aus dem Mittelwert der dritten Potenz des Moments, gewichtet mit der Drehzahl, und zwar des Motormoments. Die Prüfung gearbox-continuous bildet dasselbe Mittel aus dem Getriebe-Abtriebsmoment |
braking_resistor_energy_j | J | Energie, die der simulierte Bremswiderstand in Wärme umgesetzt hat. 0 ohne effects.dc_link |
braking_resistor_mean_power_w | W | Diese Energie geteilt durch die Zykluszeit |
dc_link_peak_voltage_v | V | Höchste Zwischenkreisspannung. Bleibt ohne effects.dc_link bei drive.bus_voltage_v |
belt_slack_time_s | s | Zeit, in der irgendein Riementrum ohne Riemenkraft war. Gilt für die ganze Maschine |
radial_load_peak_n | N | Größte Radialkraft des Riemens auf eine Scheibenwelle. Gilt für die ganze Maschine |
guide_load_peak_n | N | Größte Führungsbelastung, und zwar der Führung mit der höchsten äquivalenten Belastung. Gilt für die ganze Maschine |
guide_life_km | km | L10 = (C / P)³ · 50 km für diese Führung. Leer ohne ratings.guide_dynamic_load_rating_n |
mains_energy_j | J | Mit effects.regenerative_supply: Energie, die das Line Module über den Durchlauf ins Netz zurückgespeist hat (nach seinem Wirkungsgrad). Ohne 0 |
guide_life_h | h | guide_life_km geteilt durch die mittlere Geschwindigkeit der Achse dieser Führung. Für die ganze Maschine |
pulley_bearing_life_h | h | Nominelle Lebensdauer des Lagers, das den Riemenzug an der Scheibenwelle dieses Motors trägt: (C / P)³ · 10⁶ / (60 n), C = ratings.pulley_bearing_load_rating_n, P das mit der Drehzahl gewichtete kubische Mittel der Radialkraft, n die mittlere Drehzahl der Scheibe in 1/min; mal dem a_ISO der ISO 281 für Schmierung und Verschmutzung, wo die Konfiguration die vier Werte dafür hat |
gearbox_life_h | h | Lebensdauer der Planetenlager des Getriebes nach der Formel von Siemens, 20000 h · (n2B / n2) · (M2N / M2eq)^(10/3). Leer ohne ratings.gearbox_rated_torque_nm und gearbox_reference_speed_rpm (die EXCT-30 hat kein Getriebe) |
belt_tooth_utilisation | Anteil | Zahnbelastung des Riemens an der Scheibe dieses Motors geteilt durch das, was seine Zähne bei der Drehzahl der Scheibe zulassen (Verfahren von Megadyne, mit ratings.belt_service_factor), das Höchste im Zyklus. Keine Lebensdauer: kein Riemenhersteller veröffentlicht eine |
gearbox_gearing_life_h | h | Lebensdauer der Verzahnung des Getriebes aus dem Moment über seinem Nennmoment (Palmgren–Miner mit den zwei Momentangaben von Siemens). Leer, wo der Zyklus das Getriebe nie über ratings.gearbox_rated_torque_nm bringt |
motor_bearing_life_h | h | Lebensdauer der Motorlager unter dem Riemenzug. Nur wo die Scheibe auf der Motorwelle sitzt (ratings.motor_bearing_load_rating_n gesetzt, kein Getriebe); in keiner mitgelieferten Konfiguration |
housing_rise_k | K | Mit effects.motor_thermal_nodes: die Übertemperatur, auf der Ständer und Gehäuse des Motors einschwingen, die der Wicklung mal dem Anteil des Gehäuses am Wärmewiderstand; ohne 0 |
drive_overload | 1 = Bemessungsstrom dauernd | Mit effects.drive_overload: das Höchste, was das thermische Abbild (i²t) des Antriebs erreicht, wenn sich der Zyklus lange wiederholt; ohne 0 |
torque_unit, speed_unit | Die Einheit der Moment- und Drehzahlspalten: N m und rad/s, an einem Linearmotor N und m/s |
Die genauen Definitionen stehen in der Modellreferenz.
--points FILE schreibt zusätzlich die Betriebspunkte, einen je Millisekunde und Motor (motor,speed_rad_s,torque_nm), um sie über der Drehmoment-Drehzahl-Kennlinie aufzutragen.
Danach beurteilen Sie den Zyklus:
$ sim-cli verdicts t-gantry
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result
motor-peak,a,0.1478,1.000,ok
motor-thermal,a,1.282,100.0,ok
motor-s1,a,0.1690,1.270,ok
motor-speed,a,200.5,420.0,ok
drive-current,a,0.3757,3.000,ok
drive-peak-current,a,1.250,10.90,ok
gearbox-radial-load,a,637.2,1500,ok
gearbox-continuous,a,0.8206,40.00,ok
gearbox-input-speed,a,1914,13000,ok
gearbox-peak,a,2.207,64.00,ok
pulley-bearing-life,a,471971,20000,ok
gearbox-life,a,6084053913,20000,ok
belt-tooth-load,a,0.1937,1.000,ok
dc-link-energy,a,6.205,6.205,ok
braking-resistor-continuous,a,0.009861,20.00,ok
braking-resistor-peak,a,4.671,500.0,ok
dc-link-overvoltage,a,224.7,257.6,ok
...
settling,,0.00004296,0.0001000,ok
belt-tension,,334.0,1500,ok
belt-least-tension,,203.9,0,ok
guide-load,,177.1,2000,ok
guide-life,,3823437,20000,ok
thermal-warm-start,,0.00001066,0.1000,ok
Die Namen der Prüfungen sind Bezeichner. In der App heißt jede Prüfung so, wie in der zweiten Spalte angegeben.
| Prüfung | Name in der App | Wert | Grenze | Einheit |
|---|---|---|---|---|
motor-peak | Genutzter Anteil der Drehmoment-Drehzahl-Kennlinie | utilisation (das verlangte Moment, nicht das abgegebene) | 1 | Anteil |
motor-thermal | Übertemperatur der Wicklung, eingeschwungen | winding_rise_k (mit effects.motor_thermal_nodes die des Wicklungsknotens, die dort einschwingt, wo der eine Knoten es tut) | motor.rated_temperature_rise_k | K |
motor-s1 | Effektivmoment bei mittlerer Drehzahl gegen die S1-Kennlinie | rms_torque_nm bei der mittleren Drehzahl des Zyklus, wie Siemens einen Zyklus auslegt | die S1-Kennlinie dort: die Kennlinie des Herstellers (motor.s1_curve_*, die ein benannter S210-Motor mitbringt), sonst das Stillstandsmoment k_t motor.stall_current_a im Stillstand, gerade bis drive.rated_torque_nm bei Bemessungsdrehzahl | N m |
motor-speed | Motordrehzahl, Spitze | peak_speed_rad_s, wo die Konfiguration drive.max_speed_rad_s angibt (ein Katalogmotor setzt sie) | drive.max_speed_rad_s | rad/s |
drive-overload | Thermisches Abbild des Antriebs, Spitze, gegen seine Auslöseschwelle | drive_overload, nur mit effects.drive_overload | die Auslöseschwelle des Abbilds, r² − (r² − 1) exp(−ratings.drive_max_current_time_s / drive_overload_time_constant_s), r = Maximal- durch Bemessungsstrom | 1 = Bemessungsstrom dauernd |
pulley-torque | Moment an der Riemenscheibe | Spitze des Getriebe-Abtriebsmoments (Signal gearbox.<motor id>.output_torque) | ratings.pulley_max_torque_nm | N m |
gearbox-continuous | Getriebe-Abtriebsmoment, kubisches Mittel | kubisches Mittel des Getriebe-Abtriebsmoments, gewichtet mit der Drehzahl | ratings.gearbox_rated_torque_nm | N m |
gearbox-input-speed | Getriebe-Antriebsdrehzahl, Spitze | höchste Motordrehzahl | ratings.gearbox_max_input_speed_rpm | 1/min |
gearbox-peak | Getriebe-Abtriebsmoment, Spitze | Spitze des Getriebe-Abtriebsmoments, in jedem Simulationsschritt betrachtet | ratings.gearbox_max_torque_nm | N m |
dc-link-energy | Größte Bremsenergie in den Zwischenkreis | Energie in die Zwischenkreiskondensatoren | Raum zwischen der Zwischenkreisspannung (drive.bus_voltage_v) und der Einschaltspannung des Bremswiderstands | J |
braking-resistor-continuous | Bremswiderstand, mittlere Leistung | mittlere Leistung am Bremswiderstand | ratings.braking_resistor_continuous_w | W |
braking-resistor-peak | Bremswiderstand, Spitzenleistung | Spitzenleistung am Bremswiderstand | ratings.braking_resistor_peak_w | W |
dc-link-overvoltage | Höchste Zwischenkreisspannung | höchste Zwischenkreisspannung (nur mit effects.dc_link) | ratings.dc_link_overvoltage_v | V |
settling | Abstand vom Ziel beim Verweilen | dwell_error_peak_m | ratings.settling_tolerance_m | m |
settling-angle | Verdrehung gegen das Ziel beim Verweilen | dwell_angle_error_peak_rad | ratings.settling_tolerance_rad | rad |
tracking | Abstand vom Sollwert in der Bewegung | tracking_error_peak_m | ratings.tracking_tolerance_m (keine mitgelieferte Konfiguration setzt ihn) | m |
tracking-angle | Verdrehung gegen den Sollwert in der Bewegung | tracking_angle_error_peak_rad | ratings.tracking_tolerance_rad (keine mitgelieferte Konfiguration setzt ihn) | rad |
gripper-hold | Kraft, die das gehaltene Teil vom Sauggreifer verlangt | das Meiste von m (a_z + g) + m | a_xy | / μ (mit effects.gripper_time) |
belt-tension | Größte Riemenkraft | größte Riemenkraft | ratings.belt_max_tension_n | N |
belt-least-tension | Kleinste Riemenkraft | kleinste Riemenkraft | ratings.belt_min_tension_n | N |
gearbox-radial-load | Radialkraft auf eine Scheibenwelle, Spitze | radial_load_peak_n | ratings.shaft_max_radial_load_n | N |
guide-load | Größte Führungsbelastung | guide_load_peak_n | ratings.guide_max_load_n | N |
pulley-bearing-life | Lebensdauer des Lagers der Scheibenwelle | pulley_bearing_life_h | ratings.required_life_h | h |
gearbox-life | Lebensdauer der Planetenlager des Getriebes | gearbox_life_h | ratings.required_life_h | h |
gearbox-gearing-life | Lebensdauer der Verzahnung des Getriebes | gearbox_gearing_life_h (nur wo der Zyklus das Nennmoment überschreitet) | ratings.required_life_h | h |
motor-bearing-life | Lebensdauer der Motorlager | motor_bearing_life_h | ratings.required_life_h | h |
guide-life | Lebensdauer der Führung | guide_life_h | ratings.required_life_h | h |
belt-tooth-load | Zahnbelastung des Riemens | belt_tooth_utilisation | 1 | Anteil |
gearbox-thermal | Übertemperatur des Getriebes, eingeschwungen | Endwert des wärmsten Getriebes im Zyklus (nur mit effects.part_heating; keine bei Direktantrieb) | thermal.gearbox_max_rise_k | K |
guide-thermal | Übertemperatur der Führung, eingeschwungen | Endwert der wärmsten Führung im Zyklus (nur mit effects.part_heating) | thermal.guide_max_rise_k | K |
belt-tooth-jump | Zahnsprünge des Riemens im Zyklus | wie oft die Zähne des Riemens über eine angetriebene Scheibe gesprungen sind (nur mit effects.belt_tooth_jump) | 0 | Anzahl |
belt-span-resonance | Erste Eigenform eines Riementrums, Abstand von einer Anregung bei konstanter Geschwindigkeit (Anteil) | wie nahe die erste Quereigenfrequenz eines freien Trums dem kam, was der Antrieb anregt, bei konstanter Geschwindigkeit, als Anteil der Eigenfrequenz (nur mit effects.belt_span_vibration); besteht ab dem Grenzwert | ratings.belt_span_resonance_band | Anteil |
thermal-warm-start | Warmstart: eingeschwungene gegen anfängliche Übertemperatur des Durchlaufs, größter Unterschied | wie weit die Übertemperaturen am Anfang des gemessenen Durchlaufs von den eingeschwungenen abliegen (nur mit effects.thermal_warm_start, wo etwas, das sich erwärmt, auf den Lauf zurückwirkt) | 0,1 | K |
thermal-cycle-repeat | Warmstart nicht konvergiert: zwei Durchläufe, bei denselben Übertemperaturen begonnen, wie weit sie auseinander einschwingen | nur wo der Warmstart weder je Durchlauf noch über eine Periode konvergierte; über dem Grenzwert wiederholt sich die Bewegung des Zyklus nicht (eine Last, die vom Durchlauf davor noch pendelt), was keine Starttemperatur einschwingen lässt | 0,1 | K |
Grenzen bei dieser Aufgabe:
- Welcher thermische Start verwendet wurde, steht im Fehlerstrom (
Thermischer Start: kaltoderwarm) und in der Zeilethermal-warm-start. Miteffects.thermal_warm_start(in den mitgelieferten Konfigurationen an) läuft der gemessene Durchlauf mit den Wicklungen und, miteffects.thermal_feedback, den Getrieben und Führungen bei den Übertemperaturen, auf die sie bei lange wiederholtem Zyklus einschwingen; sie werden durch Wiederholen des Zyklus gefunden (höchstens 4 Warmdurchläufe, auf 0,1 K, dann eine Periode von 2 oder 3 Durchläufen oder ein weiterer Durchlauf, der sagt, ob sich der Zyklus überhaupt wiederholt:thermal-cycle-repeat). Aus, beginnt die Analyse kalt, und ein Zyklus von Sekunden sieht jedes Bauteil bei Umgebungstemperatur. Mit der Rückwirkung schwingt die X-Führung des EXCT-30 warm gestartet auf 15,9 K ein, kalt beurteilt auf 23,7 K (ihr Öl wird mit der Wärme dünner).thermal-warm-startprüft, wie weit die Übertemperaturen am Anfang des gemessenen Durchlaufs von den eingeschwungenen abliegen, gegen 0,1 K. Siehe die Modellreferenz. - Ein Grenzwert, den die Konfiguration nicht angibt, wird nicht geprüft. Eine fehlende Zeile heißt nicht „bestanden“. Ebenso werden
gearbox-thermalundguide-thermalbei ausgeschaltetemeffects.part_heatingundeffects.thermal_feedbacknicht geprüft,belt-tooth-jumpohneeffects.belt_tooth_jumpundbelt-span-resonanceohneeffects.belt_span_vibration. Ist der Effekt an, erreicht die X-Führung des EXCT-30 im eingeschwungenen Zustand 23,7 K von 40 K und fällt im ungünstigsten Fall von--bandsdurch (47,3 K an der oberen Grenze ihres Wärmewiderstands); die Wärmewiderstände sind Schätzungen (siehe Konfigurationsreferenz). belt-least-tensionund die Lebensdauern sind die Prüfungen, bei denen der Wert über der Grenze bleiben muss.belt-least-tensionfällt auch dann durch, wenn irgendein Trum irgendwann ohne Riemenkraft war.- Die Lebensdauern sind die Formeln der Hersteller mit Tragzahlen, die zum Teil Schätzungen sind; was sie auslassen, steht in der Modellreferenz. Die Lager der Motoren selbst haben in diesen Konfigurationen keinen Wert: Der Riemen zieht an keiner Motorwelle.
dc-link-energyist immerok, wenn die Konfiguration einen Bremswiderstand hat, der einspringen kann, auch wenn der Wert die Grenze erreicht oder überschreitet. Die beiden Zeilen zum Bremswiderstand erscheinen nur, wenn er gebraucht wird. Alle drei Standardkonfigurationen simulieren den Zwischenkreis (effects.dc_link = true); ist er abgeschaltet, sind die Zeilen zum Bremsen Schätzungen aus dem, was der Motor zurückspeist.- Eine Einschaltspannung des Bremswiderstands, die nicht über
drive.bus_voltage_vliegt, wird abgelehnt (Konfigurationswert liegt außerhalb des gültigen Bereichs: ratings.braking_threshold_v), ob simuliert oder nicht: Sie ist ein Grenzwert für eine andere Zwischenkreisspannung. - Werte werden mit vier signifikanten Stellen und ohne Exponent ausgegeben; deshalb erscheint
settlingals0.00004336. motor-peakbeurteilt, was der Drehzahlregler vor der Momentengrenze verlangt. Ein Zyklus, der an der Momentengrenze fährt, besteht die Prüfung nicht; das abgegebene Moment, das die Kennlinie nie überschreitet, istpeak_torque_nmausanalyze.- Mit Input Shaping warten eine Verweilzeit und der Greifer, bis der geformte Sollwert angekommen ist, also eine Periode des Shapers nach dem Plan.
settlingwird dann ab diesem Zeitpunkt beurteilt. - Die Momente an Getriebe und Riemenscheibe sind das Getriebe-Abtriebsmoment, das Signal
gearbox.<motor id>.output_torque. Im elastischen Modell ist das, was die Feder des Getriebes an die Riemenscheibe weitergibt, mit dem Wirkungsgrad (miteffects.gearbox_mesh_friction, eingeschaltet im Gelenkbaukasten und an den Seilrobotern, ist der Verlust des Wirkungsgrads eine Reibung im Zahneingriff: Sie hält eine Last im Stillstand überall zwischen den Momenten, die sie absenken und heben, und ein rückwärts getriebenes Getriebe gibt 1 / (2 − η) der Leistung weiter statt η); im Starrkörpermodell ist es der Wert, den der Löser dafür ermittelt. Das Moment, das den Rotor selbst beschleunigt, zählt also nicht gegen das Getriebe, und eine Last, die das Getriebe rückwärts treibt (Bremsen, Absenken), zählt mit dem, was sie auf den Abtrieb bringt.cubic_mean_torque_nmausanalyzeist weiterhin das des Motors. - Die Motor-, Reibungs- und Antriebswerte der Standardkonfigurationen sind Platzhalter. Worauf die absoluten Zahlen beruhen, steht im README.
Die Zeit des Greifers, und ob ein Sauggreifer hält. Ohne Weiteres greift der Greifer bei Ankunft sofort und lässt sofort los. Mit effects.gripper_time und einer Tabelle [gripper] (siehe die Konfigurationsreferenz) brauchen Backen close_s und open_s, ein Sauggreifer die Zeit, in der sein Vakuumerzeuger den Sauger bis zur Schaltschwelle evakuiert, und die Zeit des Belüftens (ein Aufbau erster Ordnung aus Saugervolumen und Saugleistung). Das Verweilen an Aufnahme und Ablage dauert mindestens so lange, und die Last kommt oder geht, wenn der Greifer fertig ist; ein kurzes Verweilen verlängert also den Zyklus: an der Linearachse verlängern Backen von 0,3 s und 0,25 s gegen Verweilzeiten von 0,1 s ihn um 0,35 s. Mit einem Sauggreifer und ratings.gripper_safety_factor beurteilt das Urteil gripper-hold das Meiste, was das gehaltene Teil vom Sauger verlangt, m (a_z + g) + m |a_xy| / μ aus der Beschleunigung des Werkzeugs, gegen die Haltekraft A p_hold durch den Faktor: an der starren Linearachse (10 m/s², 2 kg, μ 0,5) 61,86 N, die ein Sauger von 70 N hält und einer von 55 N nicht. Ein schnellerer Zyklus erhöht den Wert, und optimise hört auf, wo der Sauger noch hält. Keine mitgelieferte Konfiguration hat die Greiferzeit eingeschaltet.
Ein Zwischenkreis für alle Antriebe. effects.shared_dc_link (Gemeinsamer Zwischenkreis aller Antriebe; abgeschaltet, braucht effects.dc_link) gibt den Antrieben einer Maschine einen gemeinsamen Zwischenkreis, wie an einem Line Module eines SINAMICS S120. Was ein bremsender Motor zurückspeist, nimmt ein treibender auf; nur die Summe der Leistungen lädt die Kondensatoren. Der Zwischenkreis hat die Kapazität aller Antriebe zusammen (jeder bringt ratings.dc_link_capacitance_uf mit), einen Bremschopper mit einem Bremswiderstand der Leistungen aus [ratings] und eine Abschaltung. Jeder Motor zeigt dann dieselbe Zwischenkreisspannung und dieselbe Leistung am Bremswiderstand, und die Prüfungen zum Bremsen erscheinen einmal je Motor mit denselben gemeinsamen Werten. An einer Maschine mit einem Antrieb ändert der Schalter nichts.
$ sim-cli verdicts t-gantry --set effects.shared_dc_link=true
...
dc-link-energy,a,6.205,6.205,ok
braking-resistor-continuous,a,0.06270,20.00,ok
braking-resistor-peak,a,21.80,500.0,ok
dc-link-overvoltage,a,224.7,257.6,ok
...
dc-link-energy,b,6.205,6.205,ok
braking-resistor-continuous,b,0.06270,20.00,ok
braking-resistor-peak,b,21.80,500.0,ok
dc-link-overvoltage,b,224.7,257.6,ok
...
Im Standardzyklus erreicht der Zwischenkreis die Einschaltspannung des Bremschoppers, 224,65 V, mit getrennten Zwischenkreisen (beide Motoren) und mit dem gemeinsamen; der gemeinsame Bremswiderstand setzt je Zyklus 0,38 J um, die beiden getrennten 6,67 J (0,06 J an Motor A, 6,61 J an B). (Am 17. November erreichte der gemeinsame Zwischenkreis 224,45 V, unter der Schwelle: Seit cb5f0a40 wiegen die senkrechten Trumme des Riemens, 0,16 kg, auf Z, das beim Senken so mehr zurückgibt.)
Ins Netz zurückspeisen. effects.regenerative_supply (standardmäßig aus, braucht effects.dc_link) setzt an die Stelle des einfachen Gleichrichters ein rückspeisefähiges Line Module, wie ein Active Line Module an einer SINAMICS S120: Es hält den Zwischenkreis auch von oben auf dem Netzniveau und speist, was die Motoren zurückgeben, ins Netz zurück, bis ratings.line_module_max_power_w, wovon ratings.line_module_efficiency dort ankommt. Der Bremswiderstand nimmt dann nur, was über die Leistung des Line Modules hinausgeht. analyze gibt die zurückgespeiste Energie je Motor aus (Spalte mains_energy_j), die Energiebilanz bekommt die Zeilen mains und line_module (dessen Verlust), die App zeigt beides, und zwei Prüfungen beurteilen das Line Module: line-module-continuous (seine mittlere Leistung, bezogen und zurückgespeist, gegen line_module_rated_power_w) und line-module-peak (seine höchste Leistung gegen line_module_max_power_w). Die mitgelieferten Werte sind das kleinste Active Line Module der S120, 16 kW Bemessungs- und 35 kW Maximalleistung, weit über dem, was diese Maschinen brauchen. Beim Standard-T-Portal gehen von den 28,0 J, die die Motoren je Zyklus zurückgeben, 27,4 J ins Netz; der Bremswiderstand verbrennt nichts, und der Zwischenkreis bleibt bei 155,13 V.
Eine reale Katalogmaschine prüfen
Eine Konfiguration kann eine reale Maschine mit Werten aus dem Katalog beschreiben. exct-30.toml tut das für eine Festo EXCT-30 mit zwei Motoren Siemens 1FK2205-4AF an Umrichtern S210 bei 400 V. Jeder Wert darin ist mit [catalogue] (Katalog) oder [estimate] (Schätzung) gekennzeichnet.
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,...
a,2.048000,3.690330,1.480367,156.9733,0.2981,0.3218,255.84,556.02,1.1672,9.05,...
b,2.048000,3.064170,1.413208,156.9640,0.2478,0.3072,255.84,556.02,1.1127,8.62,...
Fünf Werte dieser Konfiguration hat der Konstrukteur so gewählt, dass die Prüfungen auch im ungünstigsten Fall der Fehlerbänder besteht (unten): eine Vorspannung des Riemens von 450 N, einen Ruckgrenzwert in X von 150 m/s³, Input Shaping mit festen 25 Hz und einem zweiten Shaper bei 17,5 Hz und das Überschleifen. Die Gründe stehen in den Kommentaren der Datei.
Wie die Standardkonfigurationen hat auch diese effects.dc_link = true. Die Zeilen zum Bremsen in verdicts sind also simuliert, nicht geschätzt: Die Zwischenkreisspannung steigt bis zur Einschaltspannung des Bremschoppers von 770 V, und der Bremswiderstand setzt den Rest in Wärme um.
dc-link-energy,a,9.943,9.943,ok
braking-resistor-continuous,a,8.273,100.0,ok
braking-resistor-peak,a,204.4,5700,ok
dc-link-overvoltage,a,770.0,820.0,ok
Bauteile nach Namen. [parts] in einer Konfiguration oder --motor, --supply, --gearbox, --drive, --belt und --axis auf der Befehlszeile benennen einen Motor, ein Getriebe, einen Antrieb, einen Riemen und eine Achse aus dem Katalog. Deren Katalogwerte ersetzen dann die Zahlen der Konfiguration. Sie werden in der Reihenfolge Achse, Riemen, Getriebe, Motor, Antrieb eingesetzt; ein neben einer Achse benannter Riemen ersetzt also den Riemen der Achse:
| Bauteil | Was es setzt |
|---|---|
| Motor | motor.rotor_inertia_kgm2, motor.torque_constant_nm_a (Stillstandsmoment geteilt durch Stillstandsstrom), motor.max_current_a, motor.torque_constant_at_max_current_nm_a, motor.rated_current_a (der Wert des Katalogs, höchstens das 1,05-Fache des Stillstandsstroms), motor.thermal_time_constant_s (wo das Projektierungshandbuch sie nennt), drive.peak_torque_nm (begrenzt auf ratings.pulley_max_torque_nm geteilt durch die Getriebeübersetzung), drive.rated_torque_nm, drive.rated_speed_rad_s, drive.bus_voltage_v (die Zwischenkreisspannung: 540 V bei 400v, 325 V bei 230v), drive.no_load_speed_rad_s (sqrt(3/2) × Zwischenkreisspannung geteilt durch die Drehmomentkonstante) sowie ratings.braking_threshold_v und ratings.dc_link_overvoltage_v, beide mit der Zwischenkreisspannung skaliert |
| Getriebe | gearbox.ratio, gearbox.efficiency, gearbox.stiffness_nm_rad, gearbox.backlash_rad und gearbox.inertia_at_input_kgm2 (die beiden letzten, wo das Handbuch sie nennt), ratings.gearbox_rated_torque_nm und ratings.gearbox_max_torque_nm (wo die Konfiguration sie hat) |
Motor am S120 (--supply s120) | Dieselben Schlüssel aus den S120-Daten: für einen 1FK7 oder 1FT7 aus motors_s120.csv und seinem Datenblatt (Maximalmoment und -strom, thermische Zeitkonstante), für einen 1FK2 oder 1FT2 aus seinem S120-Projektierungshandbuch. Ein 1FK7 oder 1FT7 bringt auch seine Wicklung mit: motor.resistance_ohm und motor.inductance_h sind das Dreifache der Strangwerte des Datenblatts (die eine Wicklung des Modells führt den Strangstrom bei dreifacher Strangspannung), und der Stromregler wird damit neu eingestellt, drive.current_kp_v_a = L / T mit der Zeitkonstante T des Stromkreises der Konfiguration (ihre Induktivität geteilt durch ihre Verstärkung) und drive.current_tn_s = L / R. Der Zwischenkreis hat 540 V |
| Antrieb | Ein S210-Umrichter (converters_s210.csv) oder ein S120 Motor Module (motor_modules_s120.csv) mit seiner Artikelnummer: ratings.drive_rated_current_a und ratings.drive_max_current_a, sein Bemessungs- und sein Maximalausgangsstrom (bei einem Double Motor Module je Achse). Gibt die Konfiguration die Einbaubedingungen des Antriebs an (ratings.drive_ambient_c, die Luft im Schaltschrank, nicht das ambient_c der Maschine; drive_altitude_m; drive_pulse_frequency_hz; eine Konfigurationsdatei darf sie ergänzen, fehlend heißt die Bemessungsbedingung 40 °C, 1000 m und die Bemessungs-Pulsfrequenz), werden Bemessungs- und Grundlaststrom nach Siemens’ Tabellen gemindert (derating_s210.csv, derating_s120.csv); eine Bedingung außerhalb wird mit dem Namen des Schlüssels abgelehnt, und beim S120 werden die Faktoren multipliziert (eine Annahme auf der sicheren Seite: Siemens sagt nicht, wie sie zusammenwirken). Der Maximalstrom wird nicht gemindert (Siemens sagt nicht, ob er es wird); die Suche nennt drive-derating unter estimated. Eine Konfiguration, die kein Antriebsteil nennt, hat ihren Antrieb von Hand, den die Bedingungen nicht mindern können: sim-cli lehnt sie dort mit dem Namen des Schlüssels ab (außer bei search, deren Kandidaten ihre Antriebe mitbringen). verdicts beurteilt den Effektivwert des Motorstroms im Zyklus gegen den ersten (drive-current) und seine Spitze gegen den zweiten (drive-peak-current). Mit effects.drive_current_limit (in den mitgelieferten Konfigurationen an) begrenzt der Maximalstrom des Antriebs auch den simulierten Strom: Ein Zyklus, der mehr verlangt, bleibt hinter seiner Planung zurück, und drive-peak-current beurteilt den verlangten Strom. Der Zwischenkreis: Ein S210-Umrichter bringt seinen internen Bremswiderstand und seine Abschaltschwelle mit (braking_s210.csv); ein S120 Motor Module seine Zwischenkreiskapazität (bei einem Double die Hälfte je Achse) und, da es keinen eigenen Widerstand hat, die des Braking Module aus braking_s120.csv: braking_resistor_continuous_w 1,5 kW, _peak_w 100 kW, braking_threshold_v 770 V, und dc_link_overvoltage_v 820 V, die Abschaltschwelle der Booksize-Geräte. Ein Braking Module dient dem ganzen Verband, deshalb beurteilt verdicts mit einem S120 Motor Module (drive.braking_module an) die Bremsleistung der Achsen zusammen, einmal für die Maschine: den Mittelwert ihrer Summe gegen 1,5 kW und die Spitze ihrer summierten Leistung gegen 100 kW. Ein S210 mit eigenem Widerstand wird je Achse beurteilt |
| Riemen | Als Profil-Breite, z. B. AT5-25: ein Riemen MEGALINEAR von Megadyne mit Standard-Stahlcord (megadyne/belts.csv; T5, AT3, AT5, AT10 und die HTD-kompatiblen MTD3, MTD5, MTD8). belt.stiffness_ea_n (die zulässige Zugkraft geteilt durch die Dehnung bei ihr, 4 mm/m), belt.mass_kg_m, belt.tooth_pitch_m und, wo die Konfiguration sie hat, ratings.belt_max_tension_n (die zulässige Zugkraft, ein Viertel der Bruchkraft), ratings.belt_width_mm und die Zahnbelastungstabelle ratings.belt_tooth_load_rpm und _n_cm. Eine Breite zwischen zwei Standardbreiten wird interpoliert, eine außerhalb im Verhältnis zur nächsten genommen |
| Achse | Mit Namen: EXCT-15, EXCT-30, EXCT-100 (Festo, festo/belt_axes.csv) und die Achsen und X/Z-Portale von Bahr als Baureihe-Größe, z. B. ELZI-40 oder ELZ-60S (bahr/belt_axes.csv). Ein X/Z-Portal gehört zu einer Konfiguration mit Z-Hub, eine Einzelachse zu einer mit einem Hub; umgekehrt, und ein Hub, den die Achse nicht hat, wird abgelehnt. Setzt geometry.pulley_radius_m, den Riemen (wie oben, für Profil und Breite der Achse: die EXCT von Festo als AT, die HTD-Riemen von Bahr als MTD; die Dehnsteifigkeit der EXCT aus Festos angegebener Dehnung), ratings.belt_teeth_in_mesh (die Hälfte der Zähne der Scheibe), ratings.pulley_max_torque_nm, wo die Konfiguration es hat (Festos Maximalmoment; Bahrs Spitzenvorschubkraft mal Radius), und die bewegten Massen: Die Portal-Datenblätter von Bahr nennen sie je Achse (Z-Achse, und der Schlitten als X weniger Z); Festo nennt die Z-Masse seiner Momentformel, und der Schlitten wird so angepasst, dass die Maschine bei 45 Grad Festos Moment braucht, wie exct-30.toml geschrieben wurde. Die Hübe bleiben; eine EXCT erhält den kürzesten Z-Hub, den Festo anbietet und der den der Konfiguration fasst. Die Einzelachsen von Bahr nennen keine bewegte Masse, also bleibt der Schlitten der Konfiguration |
| Alle außer dem Antrieb | drive.velocity_kp_nm_s_rad, für das Bauteil nachgeführt (siehe unten) |
Mechanik anderer Hersteller (seit 14. November 2026, siehe den Katalog): ein Getriebe mit Namen auch von WITTENSTEIN (SP+100MF-19-20, Baugröße-Klemmnabe-Übersetzung), Neugart, Apex und Harmonic Drive, mit -r dahinter für das reduzierte Verdrehspiel (SP100-05-20-r); eine Achse mit Namen auch ein Kugelgewindetrieb von HIWIN (25-20K4-FDC, in die Spindeltabellen der Konfiguration), ein Führungssatz aus vier Wagen von HIWIN, Bosch Rexroth oder THK (HGH25CAx4, FNS25x4, SHS25Cx4, die Führungs-Grenzwerte, jede auf der Bezugsstrecke ihres Herstellers von 50 oder 100 km), beide mit + verbunden, und die Zahnriemen-Einzelachsen von Festo und Rexroth (EGC-TB-KF-70, CKR-110); ein Motor mit Namen auch ein Linearmotor (1FN3050-2WC00-0xAx an s120, AL8024-0G an beckhoff-400v). search --gearboxes nimmt einen Hersteller oder eine Baureihe (wittenstein-sp, neugart-ple), und search --axes probiert an Spindel-, Zahnstangen- und Linearmotorachse die Spindeln, Führungen und Linearmotoren.
Was ein Bauteil nach Namen nicht setzt und was daraus folgt:
- Wicklungswiderstand und Wicklungsinduktivität. Siemens veröffentlicht sie für 1FK2 und 1FT2 nicht. Der Widerstand der Konfiguration bleibt. Ein 1FK2 bekommt eine Induktivität [Schätzung] aus seinem größten Kurzschlussbremsmoment in Siemens’ Bremstabelle, k_t² / (2 p M_br,max), und der Stromregler wird darauf neu eingestellt; ein 1FT2 behält Induktivität und Verstärkungen der Konfiguration. (Für 1FK7 und 1FT7 am S120 werden beide aus dem Datenblatt gesetzt, siehe oben.)
- Bremse und Geber.
parts.motor_brake = truenimmt Trägheit und Gewicht des Motors mit Haltebremse (auch die Suche wiegt ihn so);parts.motor_encodernennt den Geber (AS22DQC,AM22DQC, für einen 1FT2 auch die 26-Bit-GeberAS26DQC,AM26DQC) und setztdrive.encoder_counts_per_rev. - Der Antrieb zum Motor. Einen Motor zu benennen benennt nicht seinen Antrieb; die Antriebs-Grenzwerte der Konfiguration bleiben. Die Suche ordnet jedem Motor seinen Antrieb zu (unten).
- Die Zwischenkreiskapazität und die Leistungen des Bremswiderstands. Sie bleiben, wie die Konfiguration sie hat. Die Einschaltspannung des Bremswiderstands und die Abschaltspannung behalten ihr Verhältnis zur Zwischenkreisspannung. Für Platzhalter ist das vertretbar, mehr nicht: Setzen Sie alle fünf Zwischenkreis-Grenzwerte für den realen Antrieb, bevor Sie den Zeilen zum Bremsen trauen.
- Antriebsdrehzahl, Radialkraft und Lebensdauer des Getriebes. Die Getriebedateien enthalten sie nicht.
ratings.gearbox_max_input_speed_rpm,ratings.shaft_max_radial_load_n,ratings.pulley_bearing_load_rating_nundratings.gearbox_reference_speed_rpmbleiben, wie die Konfiguration sie hat.
Die Drehzahlverstärkung wird nachgeführt. Ein Motor mit deutlich leichterem Rotor schwingt mit einer Verstärkung, die für einen schwereren eingestellt wurde. Das ist ein Fehler der Reglereinstellung, nicht des Motors. Überall, wo ein Bauteil benannt wird ([parts], --motor, --gearbox, die Suche), wird drive.velocity_kp_nm_s_rad deshalb skaliert: mit der Quadratwurzel aus (Verhältnis der Trägheiten, die die Motoren drehen) × (Verhältnis der Rotorträgheiten, die Trägheit des Getriebes eingeschlossen). Bezugspunkt sind die Zahlen der Konfiguration, wie die Datei sie nennt, bevor das Bauteil eingesetzt wird: Die Verstärkung in einer Konfiguration gilt als eingestellt für den Rotor, das Getriebe und die Massen, die in dieser Konfiguration stehen. Wo die kleinere Verstärkung den Lageregelkreis zu nahe an seine Stabilitätsgrenze brächte, wird drive.kv_1_s mit ihr gesenkt: Ein P-Lageregler auf einem PI-Drehzahlregler an einer Trägheit J ist stabil, solange (Kp / J) (Tn + 1/Kv) > 1 ist, und die Nachführung hält diese Zahl bei mindestens 1,25, oder bei der der Konfiguration, wo diese kleiner ist (velocity_tn_s bleibt: Der I-Anteil hält die Achse in der Verweilzeit gegen die Reibung). Ein Bauteil, das die Zahl darüber lässt, behält das Kv der Konfiguration. --set drive.velocity_kp_nm_s_rad=... (oder drive.kv_1_s) auf der Befehlszeile wird nach den Bauteilen angewendet und überschreibt den nachgeführten Wert.
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --motor 1FK2204-6AF
motor-peak,a,0.3563,1.000,ok
motor-thermal,a,12.40,100.0,ok
...
settling,,0.00002974,0.0001000,ok
belt-least-tension,,251.6,0,ok
Der Rotor des 1FK2204-6AF hat ein Drittel der Trägheit des 1FK2205-4AF aus der Konfiguration; die Verstärkung geht von 0,45 auf 0,14 N m s/rad. (Für diesen Motor ist zufällig auch 0,45 ruhig.) Der 1FK2104-5AF hat ein Neuntel der Trägheit: Bleibt die Verstärkung bei 0,45, schwingt er, und seine Wicklung kommt nie zur Ruhe. Auf 0,049 angepasst und mit Kv bei 50 (--set drive.kv_1_s=50) liegt er an der Stabilitätsgrenze des Lageregelkreises: Er kommt in den Verweilzeiten nicht zur Ruhe (22,8 mm neben dem Ziel), und die Übertemperatur seiner Wicklung schwingt nicht ein (Kv 49,9 gibt 3,8 mm und einen Zyklus, der sich nicht wiederholt, 50,1 gibt 22 mm). Die Anpassung senkt Kv mit der Verstärkung, auf 24, und dann fährt er den Zyklus ruhig mit 1,22 N m Effektivmoment und verfehlt settling (0,15 mm gegen 0,1 mm): Seine Verstärkung, am Rotor begrenzt, ist zu klein, um in der Verweilzeit zur Ruhe zu kommen.
Eine unbekannte Artikelnummer wird abgelehnt: Der Katalog kennt dieses Bauteil nicht: Motor 1FK9. Ebenso ein Motor, den der Katalog für die gewählte Netzspannung nicht anbietet, und unbekannte Antriebe, Riemen und Achsen.
Die Achse von exct-30.toml mit Namen einzusetzen gibt deren eigene Zahlen zurück (der Test an_axis_by_name_gives_the_numbers_of_the_hand_written_exct_30): Der neu angepasste Schlitten hat 7,136 kg gegen 7,16 kg in der Datei, die Riemenmasse aus der AT5-Tabelle 97,9 g/m gegen den Schätzwert 0,1 kg/m der Datei.
Den leichtesten Motor finden
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 28 candidates
Search time on 16: 29.1 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5361,3.3060,22.16
,1FK2204-5AK,,6SL3210-5HE11-5UF0,siemens,400v,2.90,5.80,ok,motor-s1,0.5360,3.3052,26.00
,1FK2104-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.40,6.80,ok,settling,0.6739,3.3929,10.87
,1FK2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,7.00,ok,gearbox-radial-load,0.5016,3.3796,12.40
,1FK2205-2AF,,6SL3210-5HE11-0UF0,siemens,400v,3.75,7.50,ok,gearbox-radial-load,0.5013,3.5312,14.34
...
,1FK2208-3AC,,6SL3210-5HE13-5UF0,siemens,400v,12.60,25.20,ok,motor-peak,0.5404,6.6737,8.95
...
,1FK2104-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.85,5.70,FAIL,settling,1.5331,3.3423,20.26
,1FK2104-4AF,,6SL3210-5HE10-4UF0,siemens,400v,2.05,4.10,FAIL,settling,3.6107,3.2641,97.99
...
,1FK2203-2AK,,6SL3210-5HE10-4UF0,siemens,400v,1.16,2.32,FAIL,motor-thermal,inf,1.8519,inf
,1FK2103-2AH,,6SL3210-5HE10-4UF0,siemens,400v,1.18,2.36,FAIL,motor-thermal,inf,1.9507,inf
,1FK2210-4AB,,6SL3210-5HE15-0UF0,siemens,400v,27.00,54.00,FAIL,belt-least-tension,inf,13.0229,19.52
,1FK2210-4AC,,6SL3210-5HE17-0UF0,siemens,400v,27.00,54.00,FAIL,belt-least-tension,inf,13.1505,21.40
An der EXCT-30 ist der leichteste Motor, der besteht, der 1FK2204-5AF (2,90 kg): Seine knappste Prüfung ist motor-s1 (0,54 dessen, was der Motor bei der mittleren Drehzahl des Zyklus dauernd hergibt), und seine Wicklung wird eingeschwungen 22,2 K warm. Beim 1FK2104-6AF ist die knappste Prüfung das Verweilen (0,67 der Toleranz), bei den übrigen der Zug des Riemens an einer Scheibenwelle (1000 N von 2000 N), der kaum vom Motor abhängt: Vergleichen Sie die Motoren nach winding_rise_k und peak_torque_nm. Die Lager der Scheibenwellen halten etwa 325000 h, bei 20000 h gefordert. Die beiden leichteren 1FK2104 fallen durch: Der 5AF verfehlt settling (0,15 mm gegen 0,1 mm, siehe die angepasste Verstärkung oben), der 4AF ebenso (0,36 mm), und seine Wicklung schwingt bei 98 K der erlaubten 100 K ein. Vor dem 14. November schlossen die gemeinsame Bemessungsdrehzahl und das gemeinsame Maximalmoment den 1FK2208-3AC ohne Simulation aus (13 der 28; siehe unten), obwohl er jede Prüfung besteht.
Die Suche fährt den Zyklus der Konfiguration mit jedem Motor des Katalogs, der für die Netzspannung angeboten wird, jeden mit dem Antrieb, den der Katalog ihm zuordnet, auf allen Prozessorkernen. Zuerst kommen die Motoren, die bestehen, der günstigste voran. Danach folgen die, die nicht bestehen, der knappste voran. Ein Kandidat, dessen Antriebe wegen Überspannung im Zwischenkreis abschalten, steht hinter allen diesen, mit inf als tightest_utilisation: Seine Werte enden mit dem Abschalten.
Kosten. Keine Katalogdatei enthält einen Preis, und Siemens veröffentlicht keine Listenpreise auf einem Server, der sich automatisch lesen lässt (die Industry Mall lehnt solche Zugriffe ab). Für den Preis steht die eingebaute Masse: cost_kg ist Motor und Getriebe mal der Zahl der Motoren, die den Kandidaten bekommen (nicht die mit einem eigenen Motor, [motor.<id>] oder [parts.<id>]), dazu die Achse, wo eine des Katalogs probiert wird (--axes). Bestandene Kandidaten werden danach geordnet, dann nach mass_kg. Bei einer Motorsuche an einer festen Maschine ergeben beide dieselbe Reihenfolge.
Eigene Preise. Das Gewicht ist ein Ersatz; eine eigene Preisliste ersetzt es (warum keine mitgelieferte Tabelle Preise hat). Schreiben Sie eine CSV mit der Kopfzeile part_number,price, ein Teil je Zeile, #-Anmerkungen und Leerzeilen erlaubt, und geben Sie sie als --prices DATEI an. Die Artikelnummern sind die Texte, die die Tabelle in den Spalten motor, gearbox, drive und axis ausgibt; der Preis ist eine positive Zahl in der Währung Ihrer Wahl (die Datei trägt keine, das Programm gibt keine aus). Der price eines Kandidaten ist die Summe über Motor, Getriebe, Antrieb und Achse, jedes mal der Zahl, die die Maschine davon nimmt (drei Motoren kaufen dreimal Motor, Getriebe und Antrieb; ein Motor mit eigenem [parts.<id>] kauft seine eigenen, einer mit Werten von Hand keine; die beibehaltene Achse und der Riemen der Konfiguration zählen mit; eine mechanische Achse wie 25-10K3-FDC+FNS25x4 ist ihre Spindel und ihre vier Wagen FNS25; mit --motor-id nur die Teile dieses Motors), und er besteht nur, wo jedes Teil in Ihrer Liste steht. Mit --prices ist die Vorgabe --rank-by price (bestandene Kandidaten mit Preis zuerst, billigster zuerst, bei Gleichstand in der Gewichtsreihenfolge; die ohne Preis danach), die Tabelle bekommt neben cost_kg die Spalte price (leer, wo es keinen gibt), und der Fehlerstrom nennt, wie viele Kandidaten keinen Preis haben, und bis zu zehn Artikelnummern zum Ergänzen. Eine doppelte Artikelnummer, ein Preis, der keine positive Zahl ist, oder eine fehlende Kopfzeile wird mit Datei und Zeile abgelehnt. --rank-by price ist auch ein Kriterium für Mischungen (price=1,energy=0.5), aber eine Mischung kann einen Kandidaten ohne Preis nicht einordnen, daher wird sie abgelehnt, solange ein bestandener keinen hat; ohne --prices wird sie ebenfalls abgelehnt.
$ cat prices.csv
part_number,price
# EUR, Angebot vom März
1FK2104-6AF,900
6SL3210-5HE11-0UF0,200
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2104-6AF --prices prices.csv
(Die EXCT-30 hat zwei Motoren mit je einem Antrieb: 2 × 900 + 2 × 200 = 2200 in der Spalte price der Zeile des 1FK2104-6AF, neben seinen 6,80 in cost_kg.)
| Option | Wirkung |
|---|---|
--series PREFIX | Nur Artikelnummern, die so beginnen, z. B. 1FK2, 1FT2105, 1FK7, AM804 oder AKM2G |
--vendor NAME | Die Netzspannungen dieses Herstellers, alle, wenn --supply keine nennt: siemens, beckhoff, br, kollmorgen, lenze, mitsubishi, rexroth, sew, yaskawa, oder all für jede Netzspannung jedes Herstellers. Die Kandidaten aller werden zusammen geordnet; die Spalten vendor und supply sagen, wessen jeder ist. Z. B. --vendor beckhoff --series AM804 |
--supply 230v, 400v oder s120 | 230v und 400v: die Motoren des S210 (motors_s210.csv) bei dieser Netzspannung, jeder mit dem S210-Umrichter, den der Katalog D 32 neben ihm nennt (bei 230 V der einphasige, wo es einen gibt). s120: die Motoren an einem SINAMICS S120 an 400 V, die 1FK7 und 1FT7 aus motors_s120.csv mit Datenblatt und die 1FK2 und 1FT2 aus ihren S120-Handbüchern, jeder mit seinem Single Motor Module (siehe Bauteile nach Namen). s210new-230v, s210new-400v: die Motoren des S210 mit den neuen Umrichtern 6SL5310, die D 32 neben ihnen nennt. <hersteller>-<volt>v (z. B. beckhoff-400v, kollmorgen-240v): die Motoren eines anderen Herstellers bei dieser Netzspannung, jeder mit dem Antrieb, den der Hersteller ihm zuordnet, oder, wo er keine Zuordnung veröffentlicht, dem kleinsten seiner Antriebe, der den Stillstandsstrom des Motors trägt (der Katalog). Standard 400v |
--gearboxes SERIES | Jeden Motor zusätzlich mit jedem Getriebe dieser Baureihe probieren (NRB, NRK, NLC oder eine Baugröße wie NRK070), das an seinen Flansch passt und dessen Übersetzung zwischen der Hälfte und dem Doppelten der Übersetzung der Konfiguration liegt; bei einem Direktantrieb (Übersetzung 1) zwischen der Hälfte und dem Doppelten des klassischen Optimums für diesen Motor, neben dem Motor ohne Getriebe (siehe welcher Antrieb passt am besten). Nur für die Motoren, für die die Baureihe gebaut ist |
--axes | Zusätzlich jede Achse des Katalogs probieren, die zur Art der Maschine passt (siehe unten) |
--prices DATEI | Ihre Preisliste, part_number,price (siehe „Eigene Preise“ oben): fügt die Spalte price hinzu, ordnet vorgabemäßig danach und erlaubt --rank-by price |
--motor-id ID | Einen Motor einer Maschine mit mehreren auslegen, den Motor ID einer Maschinendatei: jeder Kandidat wird [parts.ID], die anderen Motoren bleiben, wie die Datei sie hat, die eigene Drehzahlverstärkung dieses Motors wird nachgestellt, --gearboxes passt zu seiner eigenen Übersetzung, und cost_kg ist das Gewicht dieses einen Motors (siehe Maschinendateien). Nicht mit --axes |
| Spalte | Bedeutung |
|---|---|
axis | Die Achse des Katalogs, auf der der Motor probiert wurde; leer für die eigene der Konfiguration |
motor, gearbox | Der Kandidat. gearbox ist leer, wo das Getriebe der Konfiguration geblieben ist |
drive | Der Antrieb, den der Katalog dem Motor zuordnet; der Zyklus wird gegen seine Ströme beurteilt (drive-current, drive-peak-current) |
vendor, supply | Hersteller und Netzspannung, mit denen der Motor probiert wurde (siemens für 230v, 400v, s120, s210new-*) |
mass_kg | Masse des Motors ohne Bremse und seines Getriebes (Projektierungshandbuch von Siemens 01/2023, siehe den Katalog) |
cost_kg | Was für den Preis steht: die eingebaute Masse, siehe oben |
price | Nur mit --prices: Ihr Preis für die Teile des Kandidaten, leer, wo eines nicht in Ihrer Liste steht |
result | ok, wenn jede Prüfung bestanden ist |
tightest_check | Die Prüfung, die ihrer Grenze am nächsten kommt oder sie am weitesten überschreitet. Zwei Zwischenkreisprüfungen bleiben außen vor, solange sie bestehen, weil ihr Verhältnis nichts über die Reserve sagt: dc-link-energy, wenn ein Bremswiderstand arbeitet (die Kondensatoren füllen sich dann planmäßig bis zur Grenze), und dc-link-overvoltage (die Spannung liegt nie unter dem Ruhewert des Zwischenkreises). Der Durchhang des Riemens zählt, sobald er nicht besteht (ein gedrückter Abschnitt: inf). Mit --motor-id zählen nur die Prüfungen dieses Motors, und die der ganzen Maschine, wo sie nicht bestehen. Bei einem Kandidaten, der nicht simuliert wurde: der Grund (config, ein Fehler des Zyklus, axis-stroke, axis-payload, axis-speed) |
tightest_utilisation | Wert geteilt durch Grenze dieser Prüfung |
peak_torque_nm | Höchstes Spitzenmoment aller Motoren der Maschine; mit --motor-id das dieses Motors |
winding_rise_k | Höchste eingeschwungene Übertemperatur der Wicklung über alle Motoren; mit --motor-id die dieses Motors |
Andere Hersteller. Seit dem 14. November 2026 hat der Katalog neben Siemens die Servomotoren und Antriebe von acht weiteren Herstellern, jeden Wert aus einem öffentlichen Dokument des Herstellers (Seite oder Tabelle in den Metadaten der Tabelle, keine Schätzungen). --vendor all probiert sie alle zusammen; die Spalten vendor und supply sagen, wessen ein Kandidat ist.
| Hersteller | Motoren, Antriebe | Netzspannungen | Zuordnung Motor–Antrieb |
|---|---|---|---|
| Beckhoff | AM8000/AM8500, AX8000 und AX5000 | beckhoff-400v, beckhoff-480v | Nicht veröffentlicht: der kleinste Antrieb, der den Stillstandsstrom trägt |
| B&R | 8LSA..-3, ACOPOS P3 | br-400v | Aus dem 8LS-Handbuch |
| Kollmorgen | AKM, AKM2G, AKD | kollmorgen-240v, kollmorgen-400v | AKM2G aus dem Auswahlhandbuch; AKM nach Stillstandsstrom |
| Lenze | MCS, m850, i950 | lenze-400v | Aus den Auswahltabellen |
| Mitsubishi | HK-KT, HK-ST, MR-J5 | mitsubishi-200v, mitsubishi-400v | Kombinationstabelle (Standarddrehmoment) |
| Rexroth | MS2N, ctrlX DRIVE | rexroth-400v | Nicht veröffentlicht: nach Stillstandsstrom |
| SEW | CMP, MOVIDRIVE system/modular | sew-400v | Motor-Umrichter-Zuordnung von MOVIDRIVE system |
| Yaskawa | SGM7J, SGM7A, SGD7S | yaskawa-200v, yaskawa-400v | Kombinationstabellen |
Was fehlt und wie der Simulator die Lücken füllt (Bemessungswerte, die SEW und Kollmorgen nicht drucken, Stillstandswerte, die Yaskawa und Mitsubishi nicht drucken, der Spitzenstrom der Mitsubishi-Verstärker, Zwischenkreisdaten), die Quellen und die Plausibilitätsprüfungen stehen im Katalog (englisch).
Jeder Kandidat wird simuliert. Vor dem 14. November waren die Katalogwerte erst ein Sieb: die Motordrehzahl bei den höchsten Achsgeschwindigkeiten gegen die gemeinsame Bemessungsdrehzahl, das Starrkörpermoment bei den höchsten Beschleunigungen gegen das gemeinsame Maximalmoment, jede Achse zugleich an ihren Grenzen. Das schloss Motoren aus, die jede Prüfung bestehen (an der EXCT-30 bei 400 V 32 von 84, an der CoreXY 21); nun urteilen die Prüfungen: motor-peak gegen die Drehmoment-Drehzahl-Kennlinie, motor-speed gegen die Höchstdrehzahl. Ein Kandidat, der nicht laufen kann (ein Teil, das die Konfiguration nicht aufnimmt, ein abgelehnter Zyklus), steht mit NaN und dem Grund da. Der Fehlerkanal nennt, wie viele Kandidaten das waren, mit --gearboxes wie viele Motoren kein Getriebe der Baureihe passt (sie werden mit dem Getriebe der Konfiguration versucht, gearbox leer), und wie lange die Suche auf wie vielen Kernen gedauert hat.
Die Drehzahlverstärkung jedes Kandidaten wird nach der Regel aus Bauteile nach Namen nachgeführt: Quadratwurzel aus (Verhältnis der Trägheiten, die die Motoren drehen) × (Verhältnis der Rotorträgheiten), bezogen auf die Zahlen der Konfiguration. --gearbox NAME für die ganze Suche und --gearboxes SERIES liefern für dasselbe Paar dasselbe Ergebnis: Die Trägheit des Getriebes hat einen eigenen Schlüssel (gearbox.inertia_at_input_kgm2) und bleibt, wenn ein Motor eingesetzt wird.
Mit Getrieben, an der Einzelachse:
$ sim-cli search single-axis --series 1FK2104 --gearboxes NRK070
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 35 candidates
No gearbox of the series fits, so tried with the config's own gearbox (gearbox empty in the table): 0 candidates
Search time on 16: 2.9 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK2104-4AF,NRK070-04-10,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,motor-speed,0.6633,0.4611,1.31
,1FK2104-4AF,NRK070-04-3,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,gearbox-radial-load,0.4190,0.7650,3.85
,1FK2104-4AF,NRK070-04-4,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,settling,0.4568,0.6019,2.50
,1FK2104-4AF,NRK070-04-5,6SL3210-5HE10-4UF0,siemens,400v,3.45,3.45,ok,settling,0.4635,0.5300,1.91
...
Die Motoren des S120 an der EXCT-30:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --supply s120 --series 1FK7
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 61 candidates
Search time on 16: 41.4 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
,1FK7040-2AK7,,6SL3120-1TE13-0AD0,siemens,s120,3.20,6.40,ok,motor-s1,0.8352,3.3814,60.08
,1FK7034-2AK7,,6SL3120-1TE13-0AD0,siemens,s120,3.50,7.00,ok,motor-s1,0.8135,3.3326,56.19
,1FK7042-2AC7,,6SL3120-1TE13-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5109,17.27
,1FK7042-2AF7,,6SL3120-1TE13-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5114,18.05
,1FK7042-2AK7,,6SL3120-1TE15-0AD0,siemens,s120,4.60,9.20,ok,gearbox-radial-load,0.5015,3.5109,18.93
...
Achskombinationen. --axes behält Zyklus, Nutzlast und Hübe der Konfiguration und probiert jeden Motor auf jeder Achse des Katalogs, die zur Art der Maschine passt: beim T-Portal die Festo EXCT-15, -30 und -100 und die X/Z-Portale ELZI 30, 40 und 60 von Bahr; bei der Einzelachse die 56 Einzelachsen von Bahr. Jede Achse wird eingesetzt wie mit [parts] axis (Bauteile nach Namen). Bevor ein Motor probiert wird, schließen die Katalogwerte der Achse sie aus, wenn der Hub länger ist, als sie hat (axis-stroke; eine EXCT erhält den kürzesten Z-Hub, den Festo anbietet und der den der Konfiguration fasst), die Nutzlast über ihrer Nennlast liegt (axis-payload; Festos Nennlast, bei Bahr die dynamische Vertikallast des Schlittens gegen Z-Achse und Nutzlast) oder ein Achsgrenzwert der Konfiguration über ihrer Geschwindigkeit oder Beschleunigung liegt (axis-speed). Eine solche Achse hat eine Zeile ohne Motor. Auf dem Zyklus der EXCT-30, alle Motoren des S210 an 400 V:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --axes
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 2 / 338 candidates
Search time on 16: 268.0 s
axis,motor,gearbox,drive,vendor,supply,mass_kg,cost_kg,result,tightest_check,tightest_utilisation,peak_torque_nm,winding_rise_k
ELZI-40,1FK2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,26.05,ok,dc-link-energy,0.7454,3.9838,14.62
ELZI-40,1FT2204-6AF,,6SL3210-5HE11-0UF0,siemens,400v,3.50,26.05,ok,dc-link-energy,0.7455,3.9814,14.62
ELZI-40,1FK2205-2AF,,6SL3210-5HE11-0UF0,siemens,400v,3.75,26.55,ok,dc-link-energy,0.8028,4.0718,14.46
...
EXCT-30,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,46.90,ok,motor-s1,0.5305,3.2708,21.65
...
EXCT-100,1FK2204-5AF,,6SL3210-5HE10-8UF0,siemens,400v,2.90,57.02,ok,motor-s1,0.7884,5.0837,54.06
...
ELZI-40,1FK2204-5AK,,6SL3210-5HE11-5UF0,siemens,400v,2.90,24.85,FAIL,settling,1.1441,4.1198,28.57
...
ELZI-30,,,,,,NaN,NaN,FAIL,axis-speed,NaN,NaN,NaN
EXCT-15,,,,,,NaN,NaN,FAIL,axis-stroke,NaN,NaN,NaN
Das ELZI 40 von Bahr ist die leichteste Achse, die diesen Zyklus trägt (19,05 kg bei 1 m mal 0,25 m, gegen 41,1 kg für die EXCT-30), und steht deshalb vorn. Die EXCT-15 hat keinen Z-Hub von 250 mm; das ELZI 30 erlaubt 2 m/s, die Konfiguration verlangt 2,5 m/s. Lesen Sie die ELZI-Zeilen mit Vorsicht: Input Shaper, Riemenvorspannung, Reibung, Rahmen und Werkzeug sind Schätzwerte für die EXCT-30, und Bahr veröffentlicht weder die Nennlast des Portals noch die Dehnung des Riemens (der Riemen ist Megadynes HTD-kompatibler MTD5 in der Breite des Datenblatts).
Grenzen bei dieser Aufgabe:
- Das Gewicht steht für den Preis. Siehe oben. Das Gewicht des Antriebs zählt nicht mit: Die Umrichterdateien enthalten keines.
- Das Nachführen der Verstärkung ist eine Faustregel, keine Reglereinstellung nach dem Frequenzgang der Maschine. Ein Kandidat kann immer noch an seiner Verstärkung scheitern. Prüfen Sie einen gewählten Motor mit
tuning. - Die Achssuche behält alles von der Konfiguration, was die Achse nicht setzt: Getriebe, Reibung, Rahmen, Input Shaper und Verstärkungen. Die Einzelachsen von Bahr nennen keine bewegte Masse, also bleibt bei ihnen der Schlitten der Konfiguration; die maximalen Längen von Bahr gelten als längster Hub.
- Riemen werden nicht variiert; ein Riemen wird mit
--beltbenannt. Kombinationen verschiedener Motoren je Achse werden nicht gesucht. - Die Zwischenkreiskapazität und der Bremswiderstand bleiben, wie die Konfiguration sie hat; die Einschaltspannung des Bremswiderstands und die Abschaltspannung werden auf die Zwischenkreisspannung des Motors skaliert (siehe den vorigen Abschnitt). Bei einer Standardkonfiguration werden die Zeilen zum Bremsen bei jedem Kandidaten gegen Platzhalter beurteilt.
Welcher Antrieb passt am besten: Rangfolge, Lastmix, Übersetzung und Kinematikvergleich
Die Suche oben beantwortet „welcher ist der leichteste Motor, der besteht“. Mit diesen Optionen beantwortet dieselbe Suche mehr; die Tabelle hat dieselben Zeilen und mehr Spalten.
Die breite Tabelle. Nach winding_rise_k hat jede Zeile:
| Spalte | Bedeutung |
|---|---|
rank | Der Platz der Zeile in der Rangfolge (--rank-by, unten) |
front | true für einen bestandenen Kandidaten, den kein anderer bestandener in Kosten, Antriebsgröße (sein Nennstrom), Reserve (tightest_utilisation), Energie und Schleppfehler zugleich schlägt: die Kandidaten, die einen Blick wert sind, was auch immer am meisten zählt |
cycle_s | Zykluszeit (mit Lastmix das gewichtete Mittel je Zyklus) |
energy_j | Energie aus dem Netz je Zyklus, J: was die Antriebe aufnahmen, weniger was sie zurückspeisten, plus was der Bremswiderstand verheizte (wie die Front des Optimierers sie zählt) |
thermal_utilisation | Effektivmoment über dem Dauermoment des Motors, das höchste der Motoren |
drive_current_utilisation | Effektivstrom des Antriebs über seinem Nennstrom (die Prüfung drive-current) |
following_error_m, settling_error_m | Wie weit das Werkzeug seinem Sollwert höchstens nachlief, und wie weit es spät in einer Verweilzeit höchstens neben seinem Ziel stand, m |
inertia_ratio | Last- über Motorträgheit in der Mitte des Verfahrwegs: was der Motor außer seinem Läufer dreht (die Last und das Getriebe selbst), auf seine Welle bezogen, über der Trägheit des Läufers; die höchste der Motoren (mit --motor-id die dieses Motors). Je Achse ist sie das Moment der starren Maschine je Beschleunigung dieser Achse über der Motorbeschleunigung, die das braucht, im Stand |
failing | Jede Prüfung, die nicht besteht, getrennt durch ; |
estimated | Was Motor und Antrieb den Schätzwerten der Konfiguration überlassen (leer: alles aus dem Katalog): motor-winding (kein Wicklungswiderstand und keine Induktivität; Siemens druckt sie nur für 1FK7 und 1FT7), motor-thermal-time, motor-pole-pairs, motor-standstill und motor-rated (ein anderer Hersteller druckt keine Stillstands- oder keine Bemessungswerte; die jeweils anderen stehen dafür), drive-max-current (kein Spitzenstrom gedruckt: Mitsubishi), drive-base-load (kein Grundlaststrom: jeder Antrieb außer den S120 Motor Modules), drive-derating (die Ströme des Antriebs durch Einbaubedingungen gemindert, die nicht die Bemessungsbedingungen sind) |
u_<prüfung> | Eine Spalte je Prüfung irgendeines Kandidaten: ihre Auslastung, Wert über Grenze (bei einer Lebensdauer Grenze über Wert), die höchste der Motoren. Leer, wo ein Kandidat diese Prüfung nicht hat |
Nach dem ordnen, was zählt. --rank-by ordnet die bestandenen Kandidaten nach cost (Vorgabe), margin (Auslastung der knappsten Prüfung), energy, error (Schleppfehler), thermal, inertia (Trägheitsverhältnis), drive (Nennstrom des Antriebs) oder price (Ihre Preisliste, --prices; mit ihr die Vorgabe), oder nach einer gewichteten Mischung wie --rank-by cost=1,energy=0.5: jede Größe über der besten aller bestandenen Kandidaten, mal ihr Gewicht, summiert, sodass Kilogramm und Joule so zählen, wie die Gewichte sagen. Die nicht bestandenen folgen wie bisher.
Der Antrieb als Suchdimension. --drives neighbours probiert jeden Motor mit dem Antrieb, den der Katalog ihm zuordnet, und mit der nächstkleineren und nächstgrößeren Baugröße nach Nennausgangsstrom: unter den S210-Umrichtern der Netzspannung (bei 230 V die 1 AC und 3 AC, bei 400 V die 3 AC), den S120 Single Motor Modules oder den Antrieben des Herstellers bei dieser Netzspannung. --drives all probiert jeden Antrieb der Netzspannung. Ein kleinerer Antrieb wird gegen seine eigenen Ströme beurteilt (drive-current, drive-peak-current) und begrenzt mit effects.drive_current_limit den simulierten Strom. Am EXCT-30 läuft der 1FK2204-5AF am 6SL3210-5HE10-4UF0 (1,2 A) mit 0,998 seines Nennstroms, an seinem zugeordneten 5HE10-8UF0 (2,3 A) mit 0,52:
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2 --drives neighbours
Not simulated (a part the config cannot take, or a cycle that does not run; the reason is in the table): 0 / 77 candidates
Search time on 16: 81.7 s
motor,drive,cost_kg,result,tightest_check,tightest_utilisation,rank,front,cycle_s,energy_j,thermal_utilisation,drive_current_utilisation,inertia_ratio,estimated
1FK2204-5AF,6SL3210-5HE10-4UF0,5.80,ok,drive-current,0.9983,1,true,2.0480,187.31,0.5298,0.9983,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AF,6SL3210-5HE10-8UF0,5.80,ok,motor-s1,0.5361,2,true,2.0480,187.31,0.5298,0.5209,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AF,6SL3210-5HE11-0UF0,5.80,ok,motor-s1,0.5361,3,false,2.0480,187.31,0.5298,0.3993,16.507,motor-winding;motor-pole-pairs;drive-base-load
1FK2204-5AK,6SL3210-5HE11-0UF0,5.80,ok,drive-current,0.7819,4,false,2.0480,218.48,1.4128,0.7819,16.507,motor-winding;motor-pole-pairs;drive-base-load
...
(Spalten aus der Tabelle ausgewählt.) Der Katalog kennt kein Gewicht eines Antriebs, daher lässt cost_kg den Antrieb aus; die Front und --rank-by drive zählen stattdessen seine Größe.
Lastmix. Eine Maschine fährt selten nur einen Zyklus. Jeden Zyklus als eigene Konfiguration angeben, mehrere --config DATEI, und mit --weights G1,G2,..., wie oft jeder läuft (ohne: je 1): Gewicht 3 gegen 1 sind drei Zyklen des ersten auf einen des zweiten. Jeder Kandidat fährt jeden Zyklus mit denselben Teilen und wird nach dem schlechtesten Ergebnis je Prüfung beurteilt (eine Spitze, eine Drehzahl, eine Lebensdauer), die Wärme aber über den Mix, da die Zyklen sich abwechseln, jeder w-mal hintereinander, in der angegebenen Reihenfolge, immer wieder: das Höchste, was das Temperaturmodell der Wicklung in diesem periodischen Zustand erreicht (ihr einer Knoten, oder zwei mit effects.motor_thermal_nodes, ihr Widerstand mit der Temperatur steigend), getrieben von der Wärme jedes Zyklus; der Effektivstrom des Antriebs über das thermische Abbild des Antriebs (ratings.drive_overload_time_constant_s, mit den Chips, wo die Konfiguration drive_chip_share hat; ohne Zeitkonstante sqrt(Σ w I² t / Σ w t) der Effektivströme I der Zyklen); motor-s1 und thermal_utilisation als Anteil jedes Zyklus an seiner Grenze, quadriert in den einen Knoten des Motors. Zyklen, viel kürzer als die Zeitkonstanten (Minuten), ergeben die Wärme des Mittels, viel längere die des schlechtesten Zyklus selbst. energy_j und cycle_s sind das gewichtete Mittel je Zyklus. Die Teile und --set der Kommandozeile gehen in jede Konfiguration; auf der ersten wird die Suche aufgesetzt. Jede Konfiguration darf ihre eigene Bahn oder Zeitplanung haben. Am EXCT-30 mit drei Zyklen leerem Greifer auf einen mit 3 kg Nutzlast (exct-30-empty.toml, nicht im Repository: exct-30.toml mit effects.payload = false) sinkt die thermische Auslastung des 1FK2204-5AF von 0,53 auf 0,47, und seine knappste Prüfung wird der Zug des Riemens an seiner Scheibenwelle (der des beladenen Zyklus); die 1FK2104 scheitern am beladenen Zyklus an settling, wie allein (21. November 2026):
$ sim-cli search t-gantry --config crates/machine-t-gantry/exct-30.toml --config exct-30-empty.toml --weights 1,3 --series 1FK2 --rank-by cost=1,energy=1
motor,drive,cost_kg,result,tightest_check,tightest_utilisation,rank,front,cycle_s,energy_j,thermal_utilisation,drive_current_utilisation
1FK2204-5AF,6SL3210-5HE10-8UF0,5.80,ok,gearbox-radial-load,0.5012,1,true,2.0480,173.88,0.4696,0.4813
1FK2204-5AK,6SL3210-5HE11-5UF0,5.80,ok,gearbox-radial-load,0.5012,2,true,2.0480,199.31,1.2521,0.4334
1FK2104-6AF,6SL3210-5HE11-0UF0,6.80,ok,settling,0.6739,3,true,2.0480,172.58,0.3464,0.3587
...
Robuste Rangfolge. --robust N beurteilt die ersten N bestandenen Kandidaten noch einmal, jeden an der ungünstigsten Ecke der Grenzen seiner eigenen Konfiguration (verdicts --bands --worst; die Grenzen folgen einem eingesetzten Teil wie bei verdicts), und fügt die Spalten robust_rank, robust_result, robust_check und robust_utilisation hinzu; die Fehlerausgabe sagt, ob sich die Reihenfolge der N ändert (wer an der ungünstigsten Ecke besteht, zuerst). Das kostet je Kandidat eine Suche nach der ungünstigsten Ecke, einige hundert Zyklen bei einer Konfiguration mit vielen Grenzen: am EXCT-30 brauchten vier Kandidaten 52 Minuten auf 16 Kernen, die sich andere Aufträge teilten (11 Minuten am 17. November 2026). Dort fallen alle vier an ihrer ungünstigsten Ecke durch, an thermal-warm-start (Auslastung 24,8, 9,08, 25,9 und 3,45: die Übertemperaturen, mit denen der gemessene Durchgang beginnt, liegen weit von denen entfernt, bei denen er einschwingt), und die Reihenfolge bleibt (26. November 2026; search t-gantry --config crates/machine-t-gantry/exct-30.toml --series 1FK2 --robust 4; am 14. November fielen die vier an pulley-bearing-life durch, Auslastung 2,0; seit die Drehzahlreglerverstärkung der Katalogmotoren innerhalb ihrer Grenzen neu eingestellt wird, 8ee76bb9, erreichen vier warme Durchgänge an diesen Ecken den Fixpunkt nicht mehr). Mit Lastmix wird jede Konfiguration an ihrer eigenen ungünstigsten Ecke beurteilt, und diese Urteile werden gemischt, wie die Suche die Zyklen mischt (die Wärme über den Mix).
Übersetzung und Riemenscheibenradius. sim-cli transmission MASCHINE fährt die Getriebeübersetzung (--key gearbox.ratio, Vorgabe) oder den Riemenscheibenradius (--key geometry.pulley_radius_m) von --from bis --to in --count logarithmisch gleich verteilten Werten durch (ohne Angabe die Hälfte bis das Doppelte des Werts der Konfiguration, 9 Werte), jeden auf dem Zyklus mit dafür nachgestellter Drehzahlverstärkung, und fügt das klassische Optimum hinzu: den Wert, bei dem die Motoren das kleinste Moment je Beschleunigung brauchen (bei reiner Trägheit ist J_m i + J_L / i bei i = sqrt(J_L / J_m) am kleinsten). Ein durchfahrener Riemenscheibenradius nimmt die Trägheit der Scheibe pulley.inertia_kgm2 als Scheibe gleicher Breite und gleichen Werkstoffs mit, mit r⁴. Jede Zeile hat das Moment je Beschleunigung (jeder Achse nacheinander, summiert), das Trägheitsverhältnis, die Zykluszeit und das Ergebnis mit der knappsten Prüfung; die Fehlerausgabe nennt das klassische Optimum und den besten Wert für den Zyklus (die bestandene Zeile mit der meisten Reserve). Mit --gearboxes BAUREIHE und einem Motor (--motor oder [parts] motor der Konfiguration) laufen zusätzlich die Getriebe der Baureihe, die zwischen der Hälfte und dem Doppelten der besten Übersetzung an den Motor passen, als Zeilen catalogue. Das EXCT-30 ist ein Direktantrieb (Übersetzung 1):
$ sim-cli transmission t-gantry --config crates/machine-t-gantry/exct-30.toml --motor 1FK2104-5AF --from 1 --to 20 --count 7 --gearboxes NRK
Classic optimum (least torque per unit acceleration) and best value for the cycle of gearbox.ratio: 5.1970, 2.7144
kind,value,gearbox,torque_per_acceleration,inertia_ratio,cycle_s,result,tightest_check,tightest_utilisation,torque_unit
sweep,1.000000,,0.394342,35.3729,2.0480,FAIL,settling,1.5331,N m
sweep,1.647549,,0.254001,13.0315,2.0480,ok,settling,0.7810,N m
sweep,2.714418,,0.178307,4.8008,2.0480,ok,motor-speed,0.6071,N m
sweep,4.472136,,0.147993,1.7686,2.0480,FAIL,motor-speed,1.0018,N m
classic,5.197001,,0.146339,1.3097,2.0480,FAIL,motor-speed,1.1633,N m
...
catalogue,3.000000,NRK070-04-3,0.183699,4.2785,2.0480,ok,motor-speed,0.6710,N m
catalogue,4.000000,NRK070-04-4,0.165260,2.4572,2.0480,ok,motor-speed,0.8944,N m
...
Das klassische Optimum (5,2) braucht das kleinste Moment, besteht aber nicht: Der Motor müsste das 1,16-Fache seiner Höchstdrehzahl drehen. Auch der Direktantrieb (Übersetzung 1) besteht nicht, an settling (siehe Bauteile über den Namen). Von 1,65 bis 2,7 besteht der Zyklus; bei 4,5 ist die Höchstdrehzahl des Motors überschritten. Am besten für diesen Zyklus ist 2,71; die NRK-Getriebe mit den Übersetzungen 3 und 4, die an den Flansch passen, bestehen, die mit 5 nicht. search --gearboxes BAUREIHE macht dasselbe bei einem Direktantrieb: es probiert jeden Motor ohne Getriebe und mit den Getrieben der Baureihe um sein eigenes klassisches Optimum (die Wurzel aus Last- über Läuferträgheit); bei einer Maschine mit Getriebe wie bisher um die Übersetzung der Konfiguration.
Querkraft am Getriebe je Motor. gearbox-radial-load wird je Motor beurteilt: die höchste Querkraft jeder Welle gegen das eigene ratings.shaft_max_radial_load_n dieses Motors (ein kleineres Z-Getriebe hat sein eigenes, [ratings.<id>]). Vor dem 14. November wurde sie einmal für die Maschine beurteilt, die höchste Welle gegen das gemeinsame Rating; bei einer Maschine, die keine Welle ihrer eigenen Motoren meldet, ist das weiterhin so.
Welche Kinematik für eine Aufgabe
sim-cli compare-kinematics AUFGABE.toml --machines ID,ID,... fährt eine Aufgabe auf mehreren Kinematiken und gibt je Maschine die beste Kombination von Teilen nebeneinander aus. Die Aufgabendatei (examples/pick-place-task.toml) steht im Werkzeugraum:
| Schlüssel | Bedeutung |
|---|---|
pick, place | x, y, z in m vom Ursprung jeder Maschine aus, z nach oben |
lift_m | Wie weit das Werkzeug über Aufnahme und Ablage hebt |
dwell_s | Wie lange der Greifer bei Aufnahme und Ablage wirkt |
payload_kg | Die Nutzlast, in mass.payload_kg jeder Konfiguration (abgelehnt bei einer Maschine, deren Konfiguration keine hat) |
cycle_time_s oder rate_per_min | Das Ziel: eine Aufnahme und eine Ablage in dieser Zeit; meets sagt, ob der beste Kandidat besteht und so schnell ist |
via | Wahlweise Punkte, durch die der Weg hinüber führt (das via von [[cycle.segment]]) |
set | Wahlweise Einstellungen für die Konfiguration jeder Maschine, z. B. ['cycle.timing = "time_optimal"'] |
[origin] | Wahlweise je Maschinen-ID ihr Ursprung in ihren eigenen Werkzeugkoordinaten (ein Wert je Achse); ohne Angabe die Mitte ihrer Achsbereiche |
Jede Maschine bekommt den Zyklus: Start über der Aufnahme, hinab (der Greifer schließt und verweilt), hoch, hinüber durch die Via-Punkte, hinab zur Ablage (er öffnet), hoch, zurück. Eine Position der Aufgabe geht an die Achse der Maschine mit der ID x, y oder z (in m); ihre anderen Achsen bleiben am Ursprung. Eine Maschine, auf die die Aufgabe nicht passt, steht mit dem Grund in der Liste: task-axis-missing (die Aufgabe bewegt längs einer Achse, die die Maschine nicht hat, z. B. z beim H-Bot), task-out-of-range (eine Pose jenseits eines Achsbereichs), der eigene Grund der Maschine für eine Pose, die sie nicht erreicht (z. B. außerhalb des Arbeitsraums eines Deltas), task-payload, task-origin oder task-set. Dann läuft auf jeder die Katalogsuche, bei der eigenen Netzspannung jeder Maschine, wenn --supply oder --vendor keine nennt, mit --series, --gearboxes, --drives und --rank-by wie bei search. Maschinen nach ID und zusätzlich jede --machine-file DATEI, jede mit ihrer Vorgabekonfiguration und --set.
$ sim-cli compare-kinematics examples/pick-place-task.toml --machines t-gantry,delta-d3,delta-d2 --machine-file machines/h-bot.toml --series 1FK2
machine,result,refused,motor,gearbox,drive,supply,cost_kg,cycle_s,target_s,meets,energy_j,tightest_check,tightest_utilisation,thermal_utilisation,following_error_m,inertia_ratio,passing,tried,estimated
t-gantry,ok,,1FK2203-2AK,,6SL3210-5HE10-4UF0,400v,2.32,2.0720,1.5000,false,37.50,gearbox-radial-load,0.4350,0.4281,3.8514e-4,4.496,28,28,motor-winding;motor-pole-pairs;drive-base-load
delta-d3,ok,,1FK2104-5AF,,6SL3210-5HE10-8UF0,400v,8.55,0.7620,1.5000,true,26.67,motor-s1,0.7851,0.7852,1.1346e-3,41.220,22,28,motor-winding;motor-pole-pairs;drive-base-load
delta-d2,ok,,1FK2104-5AF,,6SL3210-5HE10-8UF0,400v,5.70,0.7620,1.5000,true,32.09,dc-link-energy,0.7303,0.7031,8.8303e-4,24.979,22,28,motor-winding;motor-pole-pairs;drive-base-load
h-bot,refused,task-axis-missing z,,,,,,,1.5000,false,,,,,,,0,0,
Der leichteste Motor des Portals besteht, sein Zyklus dauert bei den eigenen Achsgrenzen des Portals aber 2,07 s statt der verlangten 1,5 s; beide Deltas schaffen ihn in 0,76 s. Der Zyklus ist so geplant, wie jede Konfiguration ihn plant; für einen Vergleich an den Grenzen der Motoren die Zeitplanung in set setzen.
Die Python-Funktion sizing gibt dieselben Spalten aus (Python).
Einfluss unsicherer Parameter erkennen und mit Fehlerbändern beurteilen
Eine Konfiguration gibt jedem unsicheren Wert eine untere und eine obere Grenze. Sie stehen in [bounds], einer Tabelle, die die Konfiguration spiegelt:
[bounds]
belt.pretension_n = [350.0, 550.0]
friction_x.coulomb_n = [12.0, 26.0]
Ein Bauteil, das [parts] oder --motor, --supply, --drive, … benennt, bringt seine eigenen Werte mit, und die Grenzen dieser Werte folgen ihm: Sie werden mit dem Verhältnis des Bauteilwerts zum eigenen Wert der Konfiguration skaliert, so behält ein Band seine Breite im Verhältnis zum Wert. Die Grenzen der Bremsschwelle der EXCT-30, 750 bis 790 V um 770 V am Zwischenkreis von 540 V, gehen für einen Motor und Antrieb an 230 V mit der Schwelle mit, die dem Zwischenkreis von 325 V folgt.
Empfindlichkeit. Der Zyklus wird mit jedem Parameter an seinem unteren und an seinem oberen Wert gefahren, immer einer allein. Die Zeilen sind danach sortiert, wie stark sich die Ergebnisse ändern. ratings.bearing_reliability_percent bleibt außen vor: Es ist eine Wahl, wie beurteilt wird, und 20 % nach beiden Seiten verlassen seinen Bereich von 90 bis 99,95 %:
$ sim-cli sensitivity t-gantry --config crates/machine-t-gantry/exct-30.toml --group mass --group friction_x --group belt
parameter,value,low,high,peak_torque_low,peak_torque_high,rms_torque_low,rms_torque_high,cycle_time_low,cycle_time_high,belt_tension_min_low_n,belt_tension_min_high_n
friction_x.viscous_n_s_m,20.0,10.0,40.0,-0.0428,+0.0861,-0.0168,+0.0457,+0.0000,+0.0000,263.27,240.08
mass.z_axis_kg,4.7,3.7600000000000002,5.64,-0.0625,+0.0623,-0.0668,+0.0683,+0.0000,+0.0000,267.20,244.23
mass.carriage_kg,7.16,5.728000000000001,8.592,-0.0555,+0.0552,-0.0466,+0.0481,+0.0000,+0.0000,270.13,241.08
mass.payload_kg,3.0,2.4000000000000004,3.5999999999999996,-0.0338,+0.0341,-0.0272,+0.0277,+0.0000,+0.0000,263.24,248.02
friction_x.coulomb_n,20.0,12.0,26.0,-0.0202,+0.0155,-0.0093,+0.0078,+0.0000,+0.0000,261.40,251.72
...
belt.pretension_n,450.0,350.0,550.0,+0.0000,-0.0000,+0.0000,-0.0000,+0.0000,+0.0000,155.84,355.83
...
belt.tooth_mesh_stiffness_n_m,5000000.0,2500000.0,10000000.0,+0.0000,+0.0000,+0.0000,+0.0000,+0.0000,+0.0000,255.84,255.84
| Spalte | Bedeutung |
|---|---|
parameter, value | Pfad in der Konfiguration und sein Wert dort |
low, high | Unterer und oberer Wert, mit denen der Zyklus gefahren wurde: die Grenzen der Konfiguration oder, wo es keine gibt, der Wert mal (1 − delta) und (1 + delta) |
peak_torque_low, _high | Relative Änderung des Spitzenmoments (ein Anteil: +0.0671 sind +6,71 %), und zwar des Motors, bei dem es sich am stärksten ändert |
rms_torque_low, _high | Dasselbe für das Effektivmoment |
cycle_time_low, _high | Relative Änderung der Zykluszeit |
belt_tension_min_low_n, _high_n | Kleinste Riemenkraft in N beim unteren und beim oberen Wert. Ein absoluter Wert, keine Änderung |
| Option | Wirkung |
|---|---|
--group TABLE | Nur diese Tabelle der Konfiguration variieren. Mehrfach möglich. Ohne die Option wird jede Tabelle variiert außer sim, effects, drive, profile, start, axis und temperature |
--delta FRACTION | Breite für Werte ohne Grenzen. Standard 0.2 |
Die Massen im Beispiel haben in der Konfiguration keine Grenzen und wurden deshalb um 20 % variiert. Ein Parameter, dessen geänderten Wert die Maschine ablehnt, fehlt in der Tabelle. Die Vorspannung ändert die Momente kaum und steht deshalb weit unten, sie bestimmt aber die kleinste Riemenkraft: 156 N an ihrer unteren Grenze. Die letzte Zeile zeigt einen Parameter eines abgeschalteten Effekts: Er ändert nichts.
Fehlerbänder zu den Prüfungen.
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result,low,high,worst_case
motor-peak,a,0.2981,1.000,ok,0.2876,0.3199,ok
motor-thermal,a,9.045,100.0,ok,8.882,9.498,ok
motor-s1,a,1.480,5.836,ok,1.455,1.548,ok
motor-speed,a,157.0,628.3,ok,157.0,157.0,ok
drive-current,a,1.167,5.000,ok,1.147,1.222,ok
drive-peak-current,a,2.926,19.00,ok,2.822,3.141,ok
pulley-torque,a,3.158,12.50,ok,3.027,3.426,ok
gearbox-radial-load,a,983.9,2000,ok,783.9,1184,ok
pulley-bearing-life,a,325701,20000,ok,73146,1194182,ok
belt-tooth-load,a,0.3566,1.000,ok,0.2972,0.5095,ok
dc-link-energy,a,9.943,9.943,ok,4.971,23.79,ok
braking-resistor-continuous,a,8.273,100.0,ok,4.472,13.13,ok
braking-resistor-peak,a,204.4,5700,ok,147.5,221.8,ok
dc-link-overvoltage,a,770.0,820.0,ok,712.6,790.0,ok
...
settling,,0.00003544,0.0001000,ok,0.00003128,0.00003989,ok
belt-tension,,556.0,2140,ok,456.0,656.0,ok
belt-least-tension,,255.8,0,ok,155.8,355.8,ok
guide-load,,184.5,2000,ok,176.6,284.9,ok
guide-life,,3767969,20000,ok,470996,30143755,ok
thermal-warm-start,,0.00002810,0.1000,ok,0.000005736,0.00008921,ok
low und high sind der kleinste und der größte Wert, den die Prüfung über alle Läufe angenommen hat: die Konfiguration, wie sie ist, und jeder Parameter mit Grenzen an seiner unteren und an seiner oberen Grenze. worst_case ist nur dann ok, wenn die Prüfung in jedem Lauf bestanden wurde. Hier besteht jede Prüfung in jedem Lauf: Mit der Vorspannung an ihrer unteren Grenze von 350 N behält das schlaffste Trum 156 N Riemenkraft, das Werkzeug steht beim Verweilen höchstens 0,040 mm neben seinem Ziel, und der Riemen zieht mit höchstens 1202 N an einer Scheibenwelle. Die Lager der Scheibenwellen halten 324100 h wie geschrieben und mindestens 72800 h, bei 20000 h gefordert (die von Motor B, die kürzeren). Ihre Tragzahl und die Schmierwerte hinter a_ISO sind Schätzungen (Festo veröffentlicht keine; siehe die Kommentare in der Konfiguration). Dieser Lauf hat 139 Zyklen simuliert (69 Werte mit Grenzen, 2 · 69 + 1, wie die Fehlerbänder des Optimierers unten sie zählen), auf allen Prozessorkernen.
Ein früherer Stand dieser Konfiguration fiel hier durch: Mit 300 N Vorspannung wurde ein auf 200 N eingestellter Riemen schlaff, und am weichen Ende der Grenzen für das Gestell stand das Werkzeug beim Verweilen 0,16 mm neben seinem Ziel, bei einer Toleranz von 0,1 mm (die Werkzeugposition enthält das Schwanken des Gestells). Die Vorspannung wurde auf 450 N erhöht, der Ruckgrenzwert in X von 500 auf 150 m/s³ gesenkt, und Input Shaping und das Überschleifen wurden eingeschaltet; später kam für die ungünstigste Ecke (unten) ein zweiter Shaper bei 17,5 Hz hinzu. Der Zyklus dauert jetzt 2,048 s, vorher 2,136 s.
Alle Werte mit Grenzen zugleich. Mit --samples N (Stichproben) wird der Zyklus N-mal gefahren, jedes Mal mit allen Werten mit Grenzen zwischen ihren Grenzen:
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --samples 200
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
check,motor,value,limit,result,low,high,worst_case,pass_share
motor-peak,a,0.2981,1.000,ok,0.2853,0.3460,ok,1.000
motor-thermal,a,9.045,100.0,ok,8.775,9.927,ok,1.000
motor-s1,a,1.480,5.836,ok,1.439,1.616,ok,1.000
motor-speed,a,157.0,628.3,ok,157.0,157.0,ok,1.000
drive-current,a,1.167,5.000,ok,1.133,1.272,ok,1.000
drive-peak-current,a,2.926,19.00,ok,2.800,3.399,ok,1.000
pulley-torque,a,3.158,12.50,ok,2.984,3.735,ok,1.000
gearbox-radial-load,a,983.9,2000,ok,780.2,1192,ok,1.000
pulley-bearing-life,a,325701,20000,ok,55655,5820634,ok,1.000
belt-tooth-load,a,0.3566,1.000,ok,0.2914,0.5578,ok,1.000
dc-link-energy,a,9.943,9.943,ok,4.968,31.73,ok,1.000
braking-resistor-continuous,a,8.273,100.0,ok,0.1095,14.77,ok,1.000
braking-resistor-peak,a,204.4,5700,ok,14.88,234.0,ok,1.000
dc-link-overvoltage,a,770.0,820.0,ok,680.9,789.7,ok,1.000
...
settling,,0.00003544,0.0001000,ok,0.00002410,0.00004288,ok,1.000
belt-tension,,556.0,2140,ok,447.9,666.0,ok,1.000
belt-least-tension,,255.8,0,ok,138.6,356.4,ok,1.000
guide-load,,184.5,2000,ok,172.4,329.6,ok,1.000
guide-life,,3767969,20000,ok,186127,29594219,ok,1.000
thermal-warm-start,,0.00002810,0.1000,ok,0.0000003445,0.001168,ok,1.000
Die Werte werden als lateinischer Hyperwürfel gezogen: Der Bereich jedes Werts wird in N gleiche Teile geschnitten, jeder Teil kommt in genau einem Lauf vor, und die Reihenfolge der Teile ist je Wert zufällig. Die Zufallszahlen stammen aus --seed S (Standard 1); derselbe Aufruf ergibt also dieselbe Tabelle. low, high und worst_case sind die Hüllkurve dieser Läufe und der Konfiguration, wie sie ist. pass_share ist der Anteil der Läufe, die Konfiguration, wie sie ist, eingeschlossen, in denen die Prüfung bestanden wurde. Hier sind die Bänder breiter als mit einem Wert allein (139 N statt 156 N im schlaffsten Trum, 0,043 mm statt 0,040 mm neben dem Ziel beim Verweilen, 1210 N an einer Scheibenwelle), und jede Prüfung besteht in allen 201 Läufen. Die Lager der Scheibenwellen halten mindestens 55400 h.
--samples ohne --bands, 0 Stichproben, eine gebrochene Zahl und --seed ohne --samples werden abgelehnt (Code 2). Die Läufe beider Arten nutzen alle Prozessorkerne.
Die ungünstigste Ecke. Mit --worst suchen die Fehlerbänder je Prüfung die Kombination der Grenzen, die sie am ungünstigsten macht:
$ sim-cli verdicts t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --worst
Cycles simulated in the search for the worst corners: 3101
check,motor,worst,limit,worst_case,at_high_bound,at_low_bound
motor-peak,a,0.4138,1.000,ok,...
...
pulley-bearing-life,a,10043,20000,FAIL,...
...
dc-link-energy,a,36.57,36.57,ok,...
...
settling,,0.00008666,0.0001000,ok,...
belt-tension,,688.5,2140,ok,...
belt-least-tension,,87.99,0,ok,...
guide-load,,392.3,1000,ok,...
guide-life,,103891,20000,ok,...
thermal-warm-start,,0.009977,0.1000,ok,...
Sie beginnt mit den Läufen mit einem Wert allein: Jede Prüfung bekommt die Ecke, an der jeder Wert mit Grenzen an der Grenze steht, die diese Prüfung allein ungünstiger machte. Dann wird bis zu dreimal jeder Wert, der die Prüfung bewegt hat, einzeln an seine andere Grenze gesetzt, und was sie ungünstiger macht, bleibt (alle solchen Wechsel zusammen oder der beste allein, je nachdem, was ungünstiger ist). Die letzten zwei Spalten nennen die Werte an ihrer oberen und an ihrer unteren Grenze, getrennt durch ;. „Ungünstiger“ wird nach dem Abstand zur Grenze beurteilt, weil manche Grenzwerte selbst Grenzen haben: in dieser Konfiguration Kapazität und Schaltschwelle des Zwischenkreises; die Spalte limit zeigt daher den Grenzwert an dieser Ecke. dc-link-energy wird stattdessen nach der Energie beurteilt: Die Prüfung fällt nur durch, wo der Bremswiderstand gebraucht wird und keinen Grenzwert hat, und mit Widerstand füllt sich der Zwischenkreis an jeder Ecke mit kräftigem Bremsen bis zu seinem Platz, sodass ihr Abstand nichts aussagt (hier die ganzen 36,57 J Platz an Motor A, die Kapazität an ihrer oberen Grenze; 9,94 J, wie konfiguriert). Die Läufe mit einem Wert allein und die Konfiguration, wie sie ist, zählen ebenfalls, sodass das Ungünstigste nie günstiger ist als die Bänder; ist einer von ihnen der ungünstigste, stehen die Werte, die er lässt, wie sie konfiguriert sind, in keiner der beiden Spalten. Die Suche brauchte hier 3101 Zyklen.
An der EXCT-30 fand sie, was keine der beiden anderen Arten fand: Mit dem 25-Hz-Shaper allein und allen Werten zugleich an ihrer ungünstigsten Grenze stand das Werkzeug beim Verweilen 0,115 mm neben seinem Ziel, bei 0,1 mm zulässig (0,040 mm mit einem Wert allein, 0,043 mm in 200 Stichproben, beide mit dem zweiten Shaper unten). Ein zweiter Shaper bei 17,5 Hz, der Spitze im Frequenzgang des Werkzeugs, bringt es auf 0,087 mm (der Kommentar zu profile.shaper2_frequency_hz in der Datei nennt, was sonst versucht wurde). Der Riemen behält im schlaffsten Trum 88 N, und die Wellen tragen 1233 N von 1500 N an der unteren Grenze ihres Grenzwerts. Die Lager der Scheibenwellen fallen an ihrer ungünstigsten Ecke durch, mit allen Werten zugleich gegen sie: 9955 h von 20000 h. Ihre Tragzahl und Schmierwerte sind Schätzungen; nach diesen Lagern ist also bei Festo zu fragen, das heißt nicht, dass die Achse verschleißt.
--worst ohne --bands oder mit --samples oder --seed wird abgelehnt (Code 2). Die App hat es als „ungünstigste Ecke“ neben den Fehlerbändern.
Globale Empfindlichkeit: welche unsicheren Werte zuerst messen. Die Empfindlichkeit oben bewegt einen Wert nach dem anderen; --method bewegt alle Werte aus [bounds] zugleich und ordnet sie je Ergebnis, sodass auch ein Wert auffällt, der nur zusammen mit einem anderen wirkt.
$ sim-cli sensitivity t-gantry --method morris --samples 10
Cycles simulated for the global sensitivity: 320
Measure these first: motor-peak:a: gearbox.efficiency, motor.friction_coulomb_nm, friction_x.coulomb_n
...
result,rank,parameter,mu_star,mu,sigma
motor-thermal:a,1,motor.friction_coulomb_nm,0.2520,-0.2520,0.04314
motor-thermal:a,2,friction_x.viscous_n_s_m,0.2260,-0.2260,0.02800
motor-thermal:a,3,motor.friction_viscous_nm_s_rad,0.1665,-0.1665,0.02207
...
--method morris ist das Screening nach Morris (Elementareffekte): --samples Trajektorien (Voreinstellung 10) auf einem Raster von vier Stufen je Wert, je Trajektorie wird jeder Wert einmal um 2/3 seines Bereichs verstellt; das kostet samples × (k + 1) Zyklen bei k Werten. mu_star (Mittel der Beträge der Effekte, in der Einheit des Ergebnisses je ganzen Bereich des Werts) ordnet, mu hat das Vorzeichen, sigma groß gegen mu_star heißt Wechselwirkung oder Krümmung. --method sobol gibt die Sobol-Indizes (Stichproben nach Saltelli, Schätzer nach Jansen) mit Bootstrap-Vertrauensbereichen (95 %, 200 Wiederholungen): first (Anteil an der Varianz des Ergebnisses allein) und total (mit allen Wechselwirkungen; ordnet), --samples N Grundzeilen (Voreinstellung 64), N × (k + 2) Zyklen. Ergebnisse sind die Reserven der Prüfungen (check oder check:motor, Abstand zum Grenzwert in der Einheit der Prüfung, negativ wo sie scheitert) und peak-torque:motor, rms-torque:motor, winding-rise:motor, path-error-peak, path-error-rms, dwell-error-peak. --result NAME behält nur dieses Ergebnis, --group TABELLE nur die Grenzen dieser Tabelle, --seed S (1) wählt andere Zufallszahlen; alle Läufe teilen sich die Prozessoren.
Am Standard-T-Portal (31 wirksame Werte, 320 Zyklen) führt die Reibung bei Wärme und Effektivmoment (motor.friction_coulomb_nm, friction_x.viscous_n_s_m), die Riemensteifigkeit beim Einschwingen, die Rahmensteifigkeit beim Bahnfehler, und die Reserve des schlaffsten Riementrums folgt der Vorspannung eins zu eins (mu_star 200 N für 200 N Bereich, sigma 0,003 N). Am D3 (36 Werte, 370 Zyklen) führen die Massen (Plattform, Unterarmpaar, Ellbogen) bei Moment und Wärme, das Spiel der Getriebe (gearbox.backlash_rad) bei Bahnfehler und Einschwingen; beim Bahnfehler folgen geometry.upper_arm_m und gearbox.stiffness_nm_rad, beim Einschwingen gearbox.lost_motion_band_rad. Erst mit Morris sichten, dann Sobol mit --group über die wenigen führenden Werte und --samples erhöhen, bis die Vertrauensbereiche eng genug sind. Python: ks.global_sensitivity(...).
Grenzen bei dieser Aufgabe:
--bandsallein ändert immer nur einen Wert. Liegen zwei Werte gleichzeitig daneben, kann ein Ergebnis sein Band verlassen.--sampleszeigt das.- Stichproben finden die ungünstigste Ecke nicht. Eine Stichprobe liegt nie genau auf einer Grenze (das tut
--bandsallein), und einige Dutzend Läufe finden die ungünstigste Kombination vieler Werte nicht.--worstsucht sie, aber als Suche, nicht als Beweis: Ein ungünstigster Fall, den keine Kette einzelner Wechsel von der Ecke der Vorzeichen aus erreicht, oder einer zwischen den Grenzen (eine Steifigkeit, die eine Resonanz auf den Zyklus legt), kann verfehlt werden. Lassen Sie alle drei laufen. - Die Grenzen sind selbst Schätzungen. In den Standardkonfigurationen haben nur Reibung, Dämpfung, Steifigkeit, Vorspannung, Welligkeit und Getriebewirkungsgrad Grenzen, nicht aber Massen, Trägheiten und Spiel.
- Wo eine Grenze einen Grenzwert der Bauteile ändert (die Konfiguration der EXCT-30 gibt ihren Zwischenkreis-Grenzwerten Grenzen), zeigt die Spalte
limitweiterhin den Nennwert. - Eine Grenze für einen Schlüssel, den die Konfiguration nicht hat, wird abgelehnt. Ebenso ein Paar, dessen unterer Wert über dem oberen liegt.
Einen Zyklus verkürzen
$ sim-cli optimise t-gantry --config crates/machine-t-gantry/exct-30.toml
setting,before,after
cycle_s,2.0480,1.7560
dwell_error_peak_m,3.544e-5,5.006e-5
dwell_angle_error_peak_rad,0.000e0,0.000e0
bands_fastest_cycle_s,,1.3900
bands_fastest_fails,,belt-least-tension settling
bands_steps_back,,4
bands_excused,,
Cycles simulated: search + error bands 40 + 834
axis.x.max_acceleration_m_s2,25.0,56.25
axis.x.max_velocity_m_s,2.5,3.75
axis.z.max_acceleration_m_s2,15.0,33.75
axis.z.max_velocity_m_s,1.5,2.25
effects.input_shaping,true,false
Der Optimierer probiert das Überschleifen und höhere Grenzwerte für Geschwindigkeit, Beschleunigung und Ruck (alle Achsen gemeinsam, in Schritten von ×1,5 und ×1,2). Eine Änderung bleibt, wenn der Zyklus kürzer wird und weiterhin jede Prüfung besteht. Dazu gehört settling: Eine schnellere Bewegung, nach der das Werkzeug an der Greifposition noch schwingt, zählt nicht. Input Shaping allein macht keinen Zyklus kürzer, weil jeder Halt eine Periode des Shapers wartet. Es wird deshalb dort probiert, wo es helfen kann: Eine schnellere Einstellung, die nur an settling scheitert, wird mit dem Shaper noch einmal gefahren (und mit effects.shaper_follows_pose, wo die Maschine eine Resonanz meldet) und übernommen, wenn sie dann besteht und kürzer ist; eine, die mit dem Shaper noch allein an settling scheitert, wird mit einem zweiten Shaper noch einmal gefahren (siehe Regler einstellen und Input Shaping nutzen). Ist der Shaper schon eingeschaltet, wird auch das Abschalten probiert. Die ersten Zeilen sind die Zykluszeit und der Abstand vom Ziel beim Verweilen (Lage und Winkel), vorher und nachher. Die übrigen Zeilen nennen, was in der Konfiguration zu ändern ist. Es wird keine Konfigurationsdatei geändert. Die Einstellungen, die ein Schritt der Suche probiert, laufen nebeneinander auf den Prozessorkernen, in Gruppen (die erste allein, da sie oft genommen wird, dann jede Gruppe doppelt so groß, solange sie scheitern, bis zu einer je Kern), und werden dann in ihrer Reihenfolge gezählt, als wären sie nacheinander gelaufen: Die erste schnellere wird genommen, die Läufe nach ihr verworfen. Ergebnis und Zahl der Läufe sind daher bei jeder Zahl von Kernen gleich (mit 16 Threads brauchten die 40 Läufe der Standard-Einzelachse 9 s statt 26 s). Die Schritte selbst folgen aufeinander, jeder von der Einstellung aus, die der Schritt davor genommen hat.
In den Fehlerbändern. Das Ergebnis muss jede Prüfung auch in den Fehlerbändern der [bounds] der Konfiguration bestehen (ein Wert nach dem anderen, wie verdicts --bands), nicht nur mit der Konfiguration, wie sie dasteht. Die Suche selbst bewertet die Konfiguration, wie sie dasteht; danach wird ihre schnellste Einstellung in den Bändern bewertet, und wo sie dort scheitert, werden die Schritte der Suche zurückgegangen, die schnellsten zuerst, bis einer besteht (2n + 1 Zyklen je bewertetem Schritt, n die Zahl der begrenzten Werte). Eine Prüfung, an der schon der Zyklus wie konfiguriert in seinen Bändern scheitert, lässt sich nicht halten und wird deshalb nicht bewertet: Sie steht in bands_excused. Die Zeilen bands_* nennen, wie schnell die Suche mit der Konfiguration, wie sie dasteht, wurde (bands_fastest_cycle_s), woran das in den Bändern scheitert und wie viele Schritte das Ergebnis zurückliegt; die Fehlerausgabe nennt, wie viele Zyklen Suche und Bänder gekostet haben.
In der Konfiguration der EXCT-30 sind das Überschleifen und der Shaper schon eingeschaltet. Der Optimierer erhöht hier deshalb die Grenzwerte und schaltet den Shaper ab (beide Shaper). Mit der Konfiguration, wie sie dasteht, ergibt das 1,39 s, aber mit den Werten an ihren Grenzen wird der Riemen schlaff und das Werkzeug scheitert beim Verweilen an settling. Vier Schritte zurück, mit dem Ruck wie konfiguriert, besteht es: 2,05 s auf 1,76 s, das Werkzeug beim Verweilen 0,050 mm neben dem Ziel statt 0,035 mm. Die mitgelieferte Konfiguration besteht in ihren Bändern jede Prüfung, also wird nichts ausgenommen (bands_excused ist leer). Die Bänder haben 834 Zyklen gekostet (sechs Einstellungen zu je 139, 69 begrenzte Werte), die Suche 40. Das Standard-T-Portal geht von 6,08 s auf 3,25 s (3,24 s nach der Konfiguration, wie sie dasteht, was in den Bändern an settling scheitert), mit 189 Zyklen für die Bänder.
--nominal bewertet nur die Konfiguration, wie sie dasteht, wie bisher: an der EXCT-30 1,39 s. --runs N begrenzt die Zahl der Zyklen der Suche (Standard 40); die Bänder kommen hinzu.
An der ungünstigsten Ecke. --worst bewertet das Ergebnis an der ungünstigsten Ecke aller Grenzen zugleich (wie verdicts --bands --worst) statt in den Bändern, Zeilen worst_* statt bands_*. Eine Suche nach der ungünstigsten Ecke kostet rund 2000 Zyklen, wo die Bänder 2n + 1 kosten; drei Dinge halten das klein: Die Suche endet nach dem ersten Satz von Läufen, in dem eine Prüfung scheitert, nach der das Ergebnis bewertet wird (ein scheiternder Schritt kostet etwa so viel wie seine Bänder); zuerst wird der schnellste Schritt bewertet, und wo er scheitert, die Schritte vom schnellsten abwärts, bis einer besteht (bis zum 17. November eine Halbierung, die unter einem schnelleren bestehenden Schritt enden konnte); und jede Suche beginnt bei den ungünstigsten Ecken des zuvor bewerteten Schritts. Alle Läufe teilen sich die Prozessoren. Eine Prüfung, an der der Zyklus wie konfiguriert an seiner ungünstigsten Ecke schon scheitert, wird wie in den Bändern nicht bewertet; das herauszufinden kostet eine ganze Suche über den Zyklus wie konfiguriert, wo der schnellste Schritt scheitert. An der EXCT-30 hält kein Schritt der Suche an der ungünstigsten Ecke: Der schnellste, 1,390 s, scheitert dort an belt-least-tension und settling, ebenso jeder der acht Schritte, der Zyklus wie konfiguriert scheitert dort schon an pulley-bearing-life (nicht bewertet), und das Ergebnis ist der Zyklus wie konfiguriert, 2,048 s (worst_steps_back,,8): 40 Zyklen Suche und 5371 Zyklen Suche nach der ungünstigsten Ecke, 18 min auf 4 Threads (21. November 2026). Das Standard-T-Portal geht von 6,08 s auf 3,38 s (3,25 s in den Bändern; die 3,244 s der Suche scheitern an der Ecke an settling), vier Schritte zurück: 40 Zyklen Suche und 3769 Zyklen Suche nach der ungünstigsten Ecke, 97 min auf 16 Threads, während andere Aufträge auf der Maschine liefen (26. November 2026). Das ist für jeden Lauf zu lang, also nicht die Voreinstellung: Lassen Sie es über ein Ergebnis laufen, bevor Sie es bauen. In der App „ungünstigste Ecke“ neben „mit Fehlerbändern“ ankreuzen, bevor der Optimierer läuft.
Energie gegen Zykluszeit. --pareto DATEI schreibt die Einstellungen, die keine andere zugleich in Zykluszeit, Energie je Zyklus aus dem Netz und Spitzenauslastung der Motoren übertrifft, die schnellste zuerst, als CSV: cycle_s,energy_j,peak_utilisation,velocity_factor,acceleration_factor,jerk_factor,corner_blending,input_shaping (die Faktoren auf die Grenzwerte der Achsen, wie konfiguriert). Sie stammen aus den Einstellungen, die die Suche ohnehin gefahren hat und die jede Prüfung bestehen, und aus sechs langsameren ab dem Ergebnis (Beschleunigung und Ruck sowie alle drei Grenzwerte mal 0,8, 0,6 und 0,4). Die Energie ist, was die Antriebe aufgenommen haben, weniger was sie zurückgespeist haben, plus was der Bremswiderstand verheizt hat; ohne Widerstand (ohne simulierten Zwischenkreis) zählt Bremsenergie als zurückgespeist. An der EXCT-30 reicht die Front von 1,39 s bei 383 J und einer Spitzenauslastung von 0,58 bis 2,66 s bei 138 J und 0,22; das Ergebnis mit 1,76 s braucht 243 J. Eine langsamere Beschleunigung spart die Bewegungsenergie, die ein Halt im Widerstand verheizt, ½ m v², wo die Bewegung ihre Höchstgeschwindigkeit nicht erreicht (a_lower_acceleration_takes_the_hand_calculated_braking_energy_less_from_the_supply). Die App zeichnet die Front unter die Tabelle des Optimierers.
Hubhöhen und gerundete Hübe. Auch die Geometrie des Zyklus ist eine Variable. Ein Heben, Verfahren und Senken (gerade nach oben von der Aufnahme, auf dieser Höhe verfahren, gerade nach unten zur Ablage; das Standard-T-Portal hat zwei) wird zuerst so niedrig probiert, wie profile.min_clearance_m es zulässt: so weit über der höheren von Aufnahme und Ablage, etwa die Höhe eines Hindernisses dazwischen. Die mitgelieferten T-Portal-Konfigurationen setzen den Wert auf ihre Hübe, dort ändert sich also nichts. Mit einem Hindernis von 0,1 m:
$ sim-cli optimise t-gantry --set profile.min_clearance_m=0.1
setting,before,after
cycle_s,6.0800,2.3440
...
cycle.segment[1-2-3].lift_m,0.3500,0.1500
cycle.segment[4-5-0].lift_m,0.3500,0.1500
Mit den übrigen Schritten (höhere Grenzwerte, Überschleifen, Input Shaping) dauert der Zyklus 2,34 s (2,23 s mit --nominal, was in den Fehlerbändern an settling scheitert; die Bänder kosteten 252 Zyklen, die Suche 40). Das Absenken allein spart 2,000 s: vier Z-Bewegungen um 0,2 m kürzer bei 0,4 m/s (the_optimiser_lowers_the_lifts_to_the_clearance_and_saves_the_hand_calculated_time). Die Abschnitte zählen ab 0. Zuletzt, wenn sonst nichts mehr hilft, probiert der Optimierer auch, die beiden Ecken eines Hubs zu runden: ein Abschnitt, der gerade nach oben, auf einem Spline durch einen Zwischenpunkt und gerade nach unten fährt (via in [[cycle.segment]]), getaktet von der Bahnplanung, solange die Bahn den Abstand hält; eine solche Zeile lautet cycle.segment[1-2-3].via_m,,0.5000 0.3000. Am Standard-T-Portal hat das nie gewonnen: Ein Bogen ist langsamer als zwei Halte mit Überschleifen. In der App schreibt „Diese Einstellungen in die laufende Maschine übernehmen“ den neuen Zyklus in die Konfiguration (beim Speichern wird die Datei dann ohne ihre Kommentare geschrieben).
Über Hindernisse. Hat die Konfiguration obstacles, wird jeder Hub nur so weit abgesenkt, wie seine Querfahrt mit den Kollisionskörpern der Maschine (beim T-Portal Z-Achse, Flansch und Nutzlast) den Abstand profile.min_clearance_m zu ihnen hält, geprüft in jedem Millimeter im Stillstand. Ein Quader quer über der Querfahrt setzt den Hub auf seine Oberkante plus den Abstand plus das, was der unterste Körper unter den Werkzeugpunkt reicht. Mit einem Quader von 0,1 m unter der Mitte der Querfahrt des Standard-T-Portals:
$ sim-cli optimise t-gantry --set profile.min_clearance_m=0.05 --set 'obstacles=[{ name = "box", centre_m = [0.65, -0.05, -0.65], size_m = [0.1, 0.2, 0.1] }]'
setting,before,after
cycle_s,6.0800,3.0520
...
cycle.segment[1-2-3].lift_m,0.3500,0.2521
cycle.segment[4-5-0].lift_m,0.3500,0.1521
Von Hand: die Oberkante des Quaders bei -0,6 m in der Ansicht, die Unterkante der Nutzlast auf dem Hinweg 0,802 m unter dem Werkzeug, die des Flanschs auf dem Rückweg 0,702 m: -0,6 + 0,05 + 0,802 = 0,252 m und 0,152 m (ohne den Quader gingen beide auf 0,1 m herunter). Die Hübe enden 0,1 mm höher: Im Lauf schwingt die Nutzlast 0,05 mm näher als der Plan im Stillstand, mit den Grenzen etwas mehr, also fährt der Optimierer eine solche Einstellung noch einmal mit den Hüben um das Fehlende höher (the_optimiser_lifts_each_traverse_over_a_box_across_it_by_hand). Ein Hub, den ein Hindernis angehoben hat, wird auch über einen Zwischenpunkt über dem Hindernis gerundet probiert, seine Enden so niedrig, wie Aufnahme und Ablage es zulassen; ein Zwischenpunkt, dessen geplante Bahn einem Hindernis näher kommt als der Abstand, wird nicht gefahren.
Ein Höhenprofil. Liegen zwei oder mehr Hindernisse im Weg einer Querfahrt, wird der Hub auch als Profil probiert, das jedes in seiner eigenen Höhe überquert: zwei Zwischenpunkte je Hindernis, auf seiner Oberkante plus dem Abstand plus dem Körper unter dem Werkzeug, dort, wo die Querfahrt auf der niedrigsten Höhe ihm näher zu kommen beginnt und aufhört als der Abstand; Hindernisse, deren Strecken sich überlappen, werden als eines überquert, auf der höheren Höhe. Die Bahn läuft auf einem Spline durch sie, die Maschine hält also nicht an jedem, und geht zwischen ihnen so weit herunter, wie der Spline es tut. Der Spline hängt zwischen seinen Punkten etwas durch: Wo die geplante Bahn näher kommt als der Abstand, werden die Punkte um das Fehlende angehoben (höchstens dreimal), und ein Profil, das ihn dann noch nicht hält, wird nicht probiert. Der Optimierer nimmt es, wo es schneller ist; eine solche Zeile nennt jeden Punkt, getrennt durch ;. Ein Hindernis im Weg gibt kein Profil: der Hub auf seiner Höhe, wie oben (the_lift_passes_two_boxes_each_at_its_own_height). Zwei Quader unter der Querfahrt des Standard-T-Portals, 0,1 m breit bei 0,3 m und 0,7 m der Achse, ihre Oberkanten bei -0,7 und -0,6 m: Auf dem Hinweg überquert das Profil sie auf 0,152 m (von 0,151 bis 0,449 m) und 0,252 m (von 0,551 bis 0,849 m); der Spline hing 11,6 mm darunter durch, also gehen die Punkte 11,6 mm höher, und der Zyklus durch sie läuft mit effects.crash und hält 51 mm. Auf dem Rückweg liegt dem Flansch nur der zweite Quader im Weg: kein Profil. Der Optimierer nimmt es dort nicht: mit --runs 200 endet er bei 2,626 s (140 Zyklen Suche, 252 der Bänder) mit den Hüben flach auf 0,252 und 0,152 m, Überschleifen und höheren Grenzwerten; mit den Grenzwerten der Konfiguration dauert das Profil auf dem Hinweg mit flachem Rückweg 5,23 s mit Überschleifen gegen 4,09 s für die flachen Hübe (26. November 2026, das Profil von Hand geschrieben, wie der Test es baut); wie mit einem Zwischenpunkt ist ein Bogen auf einem Spline an diesem Portal langsamer als zwei Halte mit Überschleifen.
Grenzen bei dieser Aufgabe:
- Eine Suche durch Probieren, kein Nachweis des Optimums. Sie endet bei der ersten Einstellung, von der aus kein einzelner Schritt mehr eine Verbesserung bringt.
- Variiert werden nur Heben, Verfahren und Senken (Höhen, Zwischenpunkte, Profile); Aufnahme, Ablage und die übrigen Abschnitte bleiben, wie konfiguriert.
- Der Zyklus muss in der vorliegenden Konfiguration bereits jede Prüfung bestehen, sonst wird der Befehl abgelehnt.
- Ein Kandidat, dessen Achsgrenzwerte die Motorgrenzen überschreiten (die Warnung aus Für alle Befehle gleich), wird nicht angenommen.
- Ohne
--worstwerden die Fehlerbänder einen Wert nach dem anderen beurteilt, nicht die Stichproben und nicht die ungünstigste Ecke. Lassen Sieverdicts --bands --worstüber das Ergebnis laufen, oder optimieren Sie mit--worst. Das Ergebnis oben nimmt die Reserven zurück, die die Konfiguration für ihren ungünstigsten Fall bekommen hat: An der ungünstigsten Ecke (3164 Zyklen) fälltsettlingdurch (0,24 mm gegen 0,1 mm; der Riemen behält 33 N), undpulley-bearing-lifewie bei der mitgelieferten Konfiguration.
Überschleifen von Hand: --set effects.corner_blending=true, mit profile.blend_time_s als längster Vorlaufzeit. Das nächste Segment beginnt, während das laufende noch bremst. Das gilt nur dort, wo die Maschine nicht anhalten muss: keine Verweilzeit, keine Greiferaktion, keine Achse mit Richtungsumkehr, und nur auf den Rampen. Bei Zyklen der Form Heben, Verfahren, Senken bleibt jede Achse innerhalb ihrer Grenzwerte; bei anderen Zyklusformen wird die Summe zweier Segmente auf einer Achse nicht gegen die Grenzwerte geprüft.
Einen Delta-Picker auslegen
delta-d3 ist ein Drei-Arm-Delta mit Drehantrieben (Clavel), ausgelegt wie der Autonox DELTA RL3-1200-3kg: Arbeitsraum 1200 mm Durchmesser, 200 mm hoch am Rand und 386 mm in der Mitte, 3 kg Nutzlast, drei Siemens 1FT2105-4AF an S210-Umrichtern hinter Präzisions-Planetengetrieben SP100 mit der Übersetzung 20. Autonox veröffentlicht Armlängen und Massen nicht; die Konfiguration kennzeichnet jeden Wert mit [catalogue] oder [estimate] und gibt den Schätzwerten Grenzen. Ihr Zyklus ist der Adept-Zyklus 25/305/25 mm (25 mm hoch, 305 mm quer, 25 mm ab und zurück), jedes Stück eine eigene Bewegung mit Halt, mit 35 ms für den Greifer beim Aufnehmen und Ablegen.
Das Werkzeug ist die Mitte der Plattform, x, y und z in Metern, z nach oben ab der Ebene der Schulterachsen (die Plattform arbeitet also bei etwa −0,7 bis −1,1 m). Ein Ziel außerhalb des Arbeitsraums wird mit dem Grund abgelehnt: außerhalb des Zylinders oder unter seinem kugeligen Boden, außer Reichweite der Arme, jenseits eines Armanschlags oder zu nahe an einer Singularität.
$ sim-cli analyze delta-d3
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.007 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,...,rms_current_a,winding_rise_k,...
1,0.720000,7.054946,2.507657,118.1266,0.4706,0.5451,,,2.3722,20.97,...
2,0.720000,4.032147,1.521630,64.6741,0.2695,0.3308,,,1.4207,7.22,...
3,0.720000,4.032147,1.521630,64.6741,0.2695,0.3308,,,1.4207,7.22,...
Der Zyklus liegt entlang x, also arbeitet Arm 1 (in +x) am meisten, Arm 2 und 3 gleich. Seine 0,720 s sind die S-Kurven von Hand (Querfahrt d/v + v/a + a/j = 0,1817 s, ein Hub von 25 mm 4 (d / 2j)^(1/3) = 0,0684 s, mit den Verweilzeiten 0,7069 s) im 1-ms-Takt des Profilgenerators (the_adept_cycle_takes_the_hand_calculated_time). Die Herstellerangaben für denselben Zyklus sind kürzer (ABB IRB 360-3/1130: 0,40 s bei 1 kg, 0,52 s bei 3 kg): Sie verschleifen die Ecken statt anzuhalten und fahren schneller als die 3 m/s und 50 m/s², die diese Konfiguration je Achse erlaubt. sim-cli optimise delta-d3 verschleift die Ecken über Stützpunkte (Splines auf drei Achsen) und hebt die Grenzwerte, soweit jede Prüfung es zulässt.
$ sim-cli verdicts delta-d3
motor-peak,1,0.4706,1.000,ok
motor-thermal,1,20.97,100.0,ok
drive-current,1,2.372,5.000,ok
gearbox-continuous,1,62.70,347.0,ok
gearbox-peak,1,126.6,278.0,ok
gearbox-life,1,16938396,20000,ok
...
settling,,0.0001793,0.0005000,ok
singularity,,2.072,5.000,ok
thermal-warm-start,,0.007320,0.1000,ok
Jede Prüfung besteht, auch mit --bands an beiden Grenzen jedes Schätzwerts (Getriebespitzenmoment 118 bis 136 N m, Einschwingen 0,13 bis 0,22 mm); die Suche nach der ungünstigsten Ecke aller Schätzungen zugleich (--bands --worst, 1245 Zyklen) besteht ebenfalls, Einschwingen 0,37 mm von 0,5 mm (21. November 2026; zuvor 0,54 mm, gescheitert). Was sie sagen:
- Getriebe. Das Getriebe des Arms, das Präzisions-Planetengetriebe SP100 von Siemens (das SP+ 100 von WITTENSTEIN alpha), trägt bis zu 127 N m seiner 278 N m; das kubische Mittel, 63 N m, ist das, wofür sein Nennmoment von 347 N m gilt, und darunter nimmt die Verzahnung keinen Schaden. Seine Planetenlager halten 16,9 Millionen h. Sein Leerlaufmoment (0,93 N m am Motor bei 3000 1/min und 20 °C), das Losbrechmoment des Motors und die Lose der Zahnflanken mit einer Hysterese von einer halben Winkelminute sind an (
effects.gearbox_drag,motor_stiction,gearbox_lost_motion, siehe Modellreferenz); die Wärme des Leerlaufmoments erwärmt das Getriebe. Bis zum 14. November 2026 hatte die Konfiguration das Economy-Getriebe NRB080 (192 N m Maximal-, 120 N m Nennmoment): Seine Spitzen über 120 N m nutzten die Verzahnung auf etwa 11600 h der geforderten 20000 h ab. - Einschwingen: ein Befund der Auslegung, mit dem Getriebe gelöst. Es wird gegen 0,5 mm geprüft, eine Schätzung der Positioniergenauigkeit der Klasse (Festo EXPT: ±0,5 mm), nicht gegen die 0,1 mm Wiederholgenauigkeit der Hersteller. Verdrehung und Spiel der Getriebe unter dem Gewicht der Plattform lassen das Werkzeug neben der Stelle, an die die Geber der Motoren es setzen, in jedem Durchlauf gleich, was die Wiederholgenauigkeit nicht sieht. Mit den 9 Winkelminuten des Economy-Getriebes NRB080 scheiterte der Zyklus: 0,64 mm in Ruhe beim Aufnehmen und Ablegen, 0,68 mm beim Verweilen, bis zu 2,09 mm am unteren Rand des Arbeitsraums; jedes Economy-Getriebe dieser Größe und Übersetzung (NRB, NRK, NLC) hat 7 bis 9 Winkelminuten. Deshalb nimmt die Konfiguration das Präzisionsgetriebe SP100 mit reduziertem Verdrehspiel: höchstens 3 Winkelminuten (typisch 2,25 angesetzt, Grenzen 1,5 bis 3) und dreimal so steif (31 N m/Winkelminute). Siemens baut es nur an 1FT2-Motoren, also ist der Motor der 1FT2105-4AF, dessen Moment, Strom und Trägheit in D 32 die des 1FK2105-4AF sind, den Autonox nennt. 0,18 mm beim Verweilen, bis zu 0,66 mm am unteren Rand in Ruhe.
- Singularität: die höchste Konditionszahl der Jacobi-Matrix im Zyklus gegen
ratings.max_condition_number(5). Nahe einer Singularität bewegt ein kleiner Motorwinkel die Plattform weit, und die Motormomente für eine Kraft wachsen unbegrenzt; im Arbeitsraum sind es bis zu 3,6, im Zyklus 2,07. - Keine Prüfungen für Riemen, Riemenscheibe oder Führung: Der Delta hat keine.
Für eine andere Nutzlast mass.payload_kg ändern (und ratings, wo sich Teile ändern); einen anderen Motor oder ein anderes Getriebe benennt man wie bei den anderen Maschinen (--motor, --gearbox, sim-cli search delta-d3). Bahnen auf drei Achsen schreibt man line,x,y,z, spline,x,y,z und arc,x,y,z,cx,cy,cz,cw. Übergangsbögen (profile.path_tolerance_m) liegen dort in der Ebene des Kreisbogens, auf den sie treffen; eine Gerade muss auf 1 nm in dieser Ebene liegen (die Zahlen mit allen Stellen schreiben).
Die Unterarme sind starre Stäbe mit ihrer Masse und Drehträgheit, die Drehung der Stäbe um ihre eigene Achse eingeschlossen (effects.forearm_inertia; aus: das verteilte Modell von Codourey und Olsson, das Motor 1 in diesem Zyklus mit dem NRB080 2,7 % mehr Effektivmoment gab: 2,645 gegen 2,576 N m, Spitze 7,791 gegen 7,643 N m; die Eigendrehung allein ändert die Spitze um 1e-6 N m). Mit effects.link_elasticity (ab Werk aus; die Steifigkeiten sind geschätzt) biegen sich die Oberarme, in der Ebene, in der sie drehen, und quer dazu, und die Plattform schwingt nach einer Bewegung nach: der Folgefehler im Zyklus wuchs von 4,0 auf 5,3 mm, der Fehler in der Verweilzeit von 0,68 auf 0,73 mm (mit dem NRB080). Auf die niedrigste Eigenform bei gehaltenen Motoren (die Federn der Getriebe, mit dem Schalter auch die Biegung der Arme) stellt effects.shaper_follows_pose den Input Shaper ein: in der Mitte bei waagrechten Armen die seitliche Schwingung der Plattform, 51 Hz mit den SP100 allein, 32 Hz mit biegsamen Armen (Unterarme verteilt; 28 und 23 Hz mit dem NRB080, das ein Drittel so steif ist). Die Unterarmstäbe und die Oberarme sind Kollisionskörper: ein Unter- oder Oberarm, der in ein Hindernis fährt, ist ein Crash.
Was der Delta nicht hat: elastische Stäbe und Kugelgelenke, die Biegung der Arme aus ihrer Drehebene, die Kegelgrenzen der Kugelgelenke (Anschläge und Arbeitsraum stehen dafür), eine vierte Achse, einen Übergangsbogen, wo zwei Kreisbögen in verschiedenen Ebenen aufeinandertreffen und eine Reibungsansicht für seine Gelenke (ihre Verluste stehen in der Energiebilanz). Nachfahren und Anpassen einer Aufzeichnung nehmen ihn seit dem 13. November, die Anpassung in den Koordinaten seiner Motoren (siehe die Anpassung, Stufe 1, unten). Von festen Motormomenten gehalten ist er im oberen Teil seines Arbeitsraums in der senkrechten Bewegung instabil; die Lageregler der Antriebe halten ihn (siehe die Modellreferenz).
Der planare Delta D2
delta-d2 ist ein Zwei-Arm-Delta in der senkrechten x-z-Ebene: zwei Drehantriebe, jeder mit einem Unterarmpaar hinab zu einer Platte, die ihre Lage behält, ausgelegt wie der Codian Robotics D2-800-S020 (Arbeitsraum 800 mm breit und 477 mm hoch, 5 kg Nutzlast, bis zu 210 Picks pro Minute). Codian nennt keine Motoren; die Konfiguration nimmt die 1FT2105-4AF des D3 an S210-Umrichtern hinter seinem Getriebe SP100 mit Übersetzung 20 und kennzeichnet jeden Wert mit [catalogue] oder [estimate] (die Konfiguration). Die Werkzeugpose ist (x, z); Bahnen schreibt man line,x,z und arc,x,z,cx,cz,cw wie bei den Portalen. Der Zyklus ist der Adept-Zyklus des D3 in der Ebene, 100 mm unter der Oberkante des Arbeitsraums: 0,720 s.
$ sim-cli verdicts delta-d2
motor-peak,1,0.5599,1.000,ok
gearbox-continuous,1,67.45,347.0,ok
gearbox-peak,1,150.1,278.0,ok
...
settling,,0.0002105,0.0005000,ok
singularity,,1.135,5.000,ok
thermal-warm-start,,0.02321,0.1000,ok
Jede Prüfung besteht, auch mit --bands (Einschwingen 0,16 bis 0,26 mm, Getriebespitze bis 157 N m); die Suche nach der ungünstigsten Ecke aller Schätzungen zugleich (--bands --worst, 1117 Zyklen) besteht knapp, Einschwingen 0,496 mm von 0,5 mm (21. November 2026; zuvor 0,74 mm, gescheitert). Zwei Arme tragen 5 kg, wo beim D3 drei Arme 3 kg tragen, also arbeitet das Getriebe näher an seiner Grenze: Die innerhalb der Achsgrenzen geplanten Geraden bringen es auf 233 N m der 278 N m des SP100 (das NRB080, das die Konfiguration bis zum 14. November 2026 hatte, auf 247 N m seiner 192 N m). Sein Spiel, das typische 2,25 Winkelminuten des spielreduzierten SP100, war vorher eine Schätzung von 1 Winkelminute: Mit den 9 Winkelminuten des NRB080 scheiterte das Einschwingen mit 0,85 mm, aus demselben Grund wie beim D3: Beide Arme halten die Platte immer oben und liegen an einer Seite ihres Spiels an. Das Modell hält die Platte waagerecht, wie es die Parallelogramme der echten Maschine tun.
Einen Linear-Delta auslegen
delta-linear ist ein Linear-Delta: drei senkrechte Zahnriemenachsen an den Säulen eines Gestells, jeder Schlitten mit einem Stabpaar hinunter zu einer Platte, die waagerecht bleibt. Ausgelegt ist er wie der Festo-Tripod EXPT-95: Arbeitsraum 950 mm Durchmesser und 100 mm hoch, Zahnriemenachsen EGC-80 ohne Getriebe angetrieben, 1 kg Nennlast bei höchster Dynamik, hier mit drei Siemens 1FK2205-2AF an S210-Umrichtern. Festo veröffentlicht weder Stablänge noch Säulenanordnung noch bewegte Massen; die Konfiguration kennzeichnet jeden Wert mit [catalogue] oder [estimate] und gibt den Schätzungen Grenzen. Ihr Zyklus ist der Adept-Zyklus 25/305/25 mm des D3, oben im Arbeitsraum.
Das Werkzeug ist die Mitte der Platte, x, y und z in Metern, z nach oben ab dem oberen Anschlag der Schlitten (die Platte arbeitet bei −1,12 bis −1,22 m). Ein Ziel wird mit seinem Grund abgelehnt, wenn es außerhalb des Zylinders liegt, außer Reichweite der Stäbe, wo ein Stab mehr als 60° gegen seine Säule (senkrecht: gegen die Senkrechte) stünde, wo ein Schlitten seinen Hub verlassen müsste oder zu nahe an einer Singularität.
$ sim-cli analyze delta-linear
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.016 K
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation,belt_tension_min_n,belt_tension_max_n,rms_current_a,winding_rise_k,...
1,0.720000,4.912547,2.036777,106.1231,0.4562,0.6789,149.52,536.27,1.6547,27.26,...
2,0.720000,3.944539,1.368100,58.6634,0.3670,0.4560,149.52,536.27,1.1071,11.63,...
3,0.720000,3.944840,1.368100,58.6631,0.3670,0.4560,149.52,536.27,1.1071,11.63,...
Der Zyklus liegt entlang x, auf Säule 1 zu und von ihr weg, also arbeitet Säule 1 am meisten. Seine 0,720 s sind die des D3: derselbe Zyklus, dieselben Achsgrenzen. Festo gibt für den EXPT-95 bis zu 150 solcher Zyklen je Minute bei leichter Last an (je 0,4 s), mit verrundeten Ecken und bis zu 7 m/s und 110 m/s²; sim-cli optimise delta-linear verrundet die Ecken und hebt die Grenzen, so weit alle Prüfungen es zulassen.
$ sim-cli verdicts delta-linear
motor-peak,1,0.4562,1.000,ok
motor-thermal,1,27.26,100.0,ok
drive-current,1,1.655,3.000,ok
pulley-torque,1,4.135,5.000,ok
gearbox-radial-load,1,789.8,1500,ok
pulley-bearing-life,1,23462,20000,ok
belt-tooth-load,1,0.8254,1.000,ok
...
settling,,0.00007352,0.0005000,ok
belt-tension,,536.3,1000,ok
belt-least-tension,,149.5,0,ok
guide-load,1,116.9,3050,ok
guide-life,1,466602127,20000,ok
...
singularity,,3.278,5.000,ok
thermal-warm-start,,0.01605,0.1000,ok
Jede Prüfung besteht. Mit --bands fallen zwei an einer Grenze einer Schätzung durch: die Lebensdauer des Lagers der Riemenscheibe (5068 h an Säule 1 mit C an seiner unteren Grenze von 3000 N; Festo nennt kein Lager für die Antriebswelle der EGC) und die Riemenzähne (1,16 mit einem Betriebsfaktor von 1,4 auf Festos 350 N). Was man daraus liest:
- Motor. Ein Compact-Motor, wegen seines Läufers: der High-Dynamic-Motor 1FK2104-5AF hätte das Moment (7,5 N m gegen 4,9 N m Bedarf), aber 0,65 kg cm² Läufer gegen etwa 6 kg cm² aus Schlitten, Platte und Riemenscheibe an seiner Welle: sein Drehzahlregler schwang oberhalb 0,1 N m s/rad bei etwa 450 Hz, und der Zyklus kam nur auf 2,5 mm statt 0,5 mm zur Ruhe. Die 4,0 kg cm² des 1FK2205-2AF vertragen eine Verstärkung von 0,25 mit mindestens 51,7° Phasenreserve über die Grenzen, 39,0° ohne die Reibung von Motoren und Führungen (21. November 2026), und eine Nachstellzeit von 0,012 s (0,01 s ließ 34°), kurz, damit der Integrator die Schlitten nach einer Bewegung bald durch die Reibung ihrer Führungen schiebt.
- Riemen. Der Riemen jeder Säule trägt das Gewicht des Schlittens und seinen Anteil an dem der Platte (22 N in der Mitte) und was ihr Beschleunigen braucht: 150 bis 536 N in seinen beiden Abschnitten, bei 300 N Vorspannung.
- Singularität. Die Konditionszahl ist schon in der Mitte 3,15: ein Meter Schlittenweg bewegt die Platte seitlich weiter als nach oben. Der Arbeitsraum hat bis zu 3,98, am unteren Rand gegenüber einer Säule.
- Führungen, Lager der Riemenscheiben, Riemenzähne. Die Führung der EGC-80 trägt quer zu Säule 1 höchstens 117 N (3050 N zulässig für Festos 5000 km): Sie hält im Stillstand das Gewicht der Platte (3,4 N in der Mitte) und über die Stäbe, was das seitliche Beschleunigen der Platte mit 50 m/s² braucht. Ihre Lebensdauer liegt weit über den 20000 h. Das Lager der Riemenscheibenwelle trägt den Zug beider Riemenabschnitte, bis 790 N, und hält an Säule 1 23462 h mit einem geschätzten C von 5000 N. Die Riemenzähne stehen bei 0,83 dessen, was Festos 350 N Vorschubkraft ergibt, wie das Moment an der Riemenscheibe bei 4,135 von 5 N m: Festo gibt für beides eine Zahl. Keine Getriebeprüfungen: die Achsen haben keines.
Geneigte Säulen. geometry.column_incline_deg neigt die Säulen, positiv mit ihren oberen Enden zur Achse hin; die Schlitten fahren dann längs der Säulen (Hub und oberer Anschlag zählen längs der Säule), der Riemen hält das Gewicht des Schlittens mal dem Kosinus und die Führung den Rest. Die ausgelieferte Maschine steht senkrecht. Arbeitsraum und Zyklus passen zu einer Neigung nach außen und zu kleinen nach innen; bei +20° wird die Ecke (−0,1525, 0, −1,13) des Zyklus abgelehnt, weil der Stab von Säule 1 dort 60° gegen seine Säule stünde:
$ sim-cli verdicts delta-linear --set geometry.column_incline_deg=-20
pulley-torque,1,4.653,5.000,ok
belt-tooth-load,1,0.9289,1.000,ok
settling,,0.0001084,0.0005000,ok
guide-load,1,31.87,3050,ok
singularity,,3.716,5.000,ok
...
Nach außen geneigt laufen die Säulen fast längs der Stäbe: Die Führungen tragen weniger (32 N gegen 117 N senkrecht), die Konditionszahl steigt (3,72 gegen 3,28) und mit ihr die Momente der Motoren. Um 10° nach innen geneigt besteht jede Prüfung (Führung 149 N); um 20° mit workspace.max_rod_angle_deg=65 ebenso, bis auf das Lager der Riemenscheibe an Säule 1 (16131 h gegen 20000 h; die Führung trägt 167 N).
Was der Linear-Delta nicht hat: die Drehträgheit der Stäbe selbst, elastisches Gestell, elastische Stäbe und Gelenke, eine vierte Achse, die Momente auf die Führungen und sich erwärmende Riemen und Riemenscheiben (seine Führungen erwärmen sich mit effects.part_heating: 9,1 K im Zyklus). Trace-Wiedergabe und Fit nehmen ihn, den Fit in den Koordinaten seiner Motoren wie beim D3. Siehe die Modellreferenz.
Der Parallel-SCARA
parallel-scara ist das Fünfgelenk des D2, flach gelegt wie bei Mitsubishis RP-Baureihe: die beiden Arme drehen um
senkrechte Achsen, die Platte bewegt sich in der waagerechten x-y-Ebene; an der Platte ein Z-Hub auf einem
Kugelgewindetrieb (Motor 3, ein 1FK2103-2AH hinter einer Kupplung, 20 mm Steigung, 200 mm Hub) und eine Drehung des
Werkzeugs um z (Motor 4, ein 1FK2103-2AH hinter einem NRB060-03-8 mit i = 8). Die Schwerkraft wirkt aus der Ebene
heraus: die Motoren der Arme halten im Stillstand nichts, der Z-Motor hält Schlitten und Nutzlast. Die Werkzeugpose ist
(x, y, z, c); Bahnen schreibt man line,x,y,z,c. Der Zyklus ist der flach gelegte Adept-Zyklus: 25 mm auf dem Hub nach
unten, hoch, 305 mm hinüber mit 90° Werkzeugdrehung, hinunter, hoch und zurück, die Aufnahme 20 mm über der Ablage, so
dass sich auf jedem Querweg jede Achse bewegt: 0,906 s.
$ sim-cli verdicts parallel-scara
motor-peak,1,0.4959,1.000,ok
gearbox-peak,1,137.4,278.0,ok
...
settling,,0.0003347,0.0005000,ok
screw-speed,3,1513,5160,ok
Alle Prüfungen bestehen, auch mit --bands. Die Platte trägt 12,8 kg (beide Einheiten, Schlitten und Nutzlast) statt
6,4 kg beim D2, deshalb beschleunigen die Achsen mit 30 m/s² statt 50. Ihre Getriebe sind inzwischen die SP100 des D2,
und bei 50 (--set axis.x.max_acceleration_m_s2=50 --set axis.y.max_acceleration_m_s2=50) besteht weiter jede Prüfung:
die Armgetriebe bei 225 N m ihrer 278 N m, Motor 1 bei 0,83 seiner Spitze. Eine Achse schaltet --set z_axis.enabled=false oder --set tool_turn.enabled=false ab; dann brauchen
die Ziele des Zyklus und start.pose entsprechend weniger Werte.
Der Wafer-Handler
wafer-handler ist der R-θ-Z-Arm der Halbleiterfertigung: eine Säule, die hebt (Motor 3, ein 1FK2103-2AH an einem
Kugelgewindetrieb 16 x 10) und dreht (Motor 1), und ein Arm aus zwei Gliedern von 320 mm, dessen Unterarm und Endeffektor
über Stahlbänder 2:1 und 1:2 an die Schulter gekoppelt sind, so dass Motor 2 den Wafer gerade entlang der radialen Linie
hinein- und herausfährt, während der Effektor weiter nach außen zeigt (Motoren 1 und 2: 1FK2103-2AH hinter Wellgetrieben
i = 50). Die Werkzeuglage ist (r, θ, z): der Abstand der Wafermitte von der Säulenachse, die Richtung des Effektors (rad),
der Hub. Der Zyklus tauscht einen 300-mm-Wafer zwischen einem Load Port und einer Kammer, 90° auseinander bei r = 0,55 m und
0,2 m übereinander: zur Kammer drehen und dabei heben, ausfahren und einschwingen, den Wafer absetzen, zurückziehen,
beim Zurückdrehen senken, unter den nächsten Wafer ausfahren und einschwingen, ihn anheben, auf r = 0,05 m
zurückziehen: 7,76 s.
$ sim-cli verdicts wafer-handler
motor-peak,1,0.06877,1.000,ok
...
settling,,0.00004754,0.0001500,ok
settling-angle,,0.0001133,0.0002000,ok
wafer-slip,,1.830,2.452,ok
effector-direction,,0.00001268,0.0005000,ok
elbow-band-slack,,0.06467,0.5000,ok
wrist-band-slack,,0.01172,0.5000,ok
singularity,,1.226,4.000,ok
Die Motoren sind wenig belastet: Was den Zyklus begrenzt, ist der Wafer auf seinen Reibpads (wafer.hold = "pads",
μ 0,3), wafer-slip, seine Beschleunigung in der Ebene gegen μ g über den Sicherheitsfaktor 1,2. Schnelles Drehen drückt
den Wafer nach außen (r θ̇²), und Motor 2 hält den Arm dagegen; Ausfahren während einer Drehung fügt die
Coriolis-Beschleunigung 2 ṙ θ̇ hinzu. Darum dreht der Arm mit dem Wafer nahe an der Säulenachse, und schnellere Grenzen
scheitern: --set axis.r.max_acceleration_m_s2=3 --set axis.r.max_jerk_m_s3=30 lässt den Wafer rutschen (wafer-slip 3,40 m/s²
gegen 2,45). Vakuumpads (wafer.hold = "vacuum") oder ein Kantengreifer ("edge") halten mehr. Die Bänder dehnen
sich unter der Beschleunigung des Arms (effects.band_elasticity): Unterarm und Effektor bleiben zurück und schwingen auf
ihnen bei etwa 20 Hz, der Effektor dreht sich aus seiner radialen Linie (effector.direction_error, an den Stationen von
effector-direction geprüft), und der Ausschlag jedes Trums wird gegen die Hälfte seiner Vorspannung geprüft.
sim-cli optimise wafer-handler hält jedes Prüfurteil ein, wafer-slip darunter. Siehe die
Mechanismen und die
Modellreferenz.
Der Vierachs-Delta D4
delta-d4 ist der D3 mit einer vierten Achse, die das Werkzeug um die Senkrechte dreht, wie ABBs IRB 360 mit seiner vierten Achse: Ein vierter, kleinerer Motor in der Mitte der Basis (ein 1FK2104-4AF an einem eigenen S210-Umrichter) treibt hinter einem Planetengetriebe mit Übersetzung 8 (Siemens NRB060-04-8) eine Teleskopwelle mit je einem Kardangelenk an beiden Enden hinab zur Werkzeugwelle in der Plattform. Die Werkzeugpose ist (x, y, z, c), c in rad; start.pose und die Ziele des Zyklus haben vier Werte. Sein Zyklus ist der Adept-Zyklus des D3, bei dem sich das Werkzeug auf jeder Querfahrt um 90° dreht (+90° zum Aufnehmen, zurück auf 0° zum Ablegen): weiter 0,720 s, die Drehung passt in die Querfahrt. Beide Kardangelenke sind gleich gebeugt (beide Wellen senkrecht), also dreht das Werkzeug genau mit dem Motor; nur die Welle zwischen ihnen dreht ungleichförmig (shaft.speed). Der Gewichtsanteil der Welle und die Reibung des Teleskops belasten die Arme (die Konfiguration, Modellreferenz).
$ sim-cli verdicts delta-d4
motor-peak,1,0.5534,1.000,ok
gearbox-peak,1,146.8,192.0,ok
...
motor-peak,4,0.1086,1.000,ok
gearbox-peak,4,2.223,29.00,ok
...
settling,,0.0003088,0.0005000,ok
settling-angle,,0.0001866,0.005000,ok
singularity,,2.072,5.000,ok
thermal-warm-start,,0.01540,0.1000,ok
Jede Prüfung besteht. Motor 1 trägt mehr als beim D3 (Spitze 0,553 gegen 0,471 seiner Grenze): die 0,7 kg der Welle an der Plattform und die Reibung des Teleskops, und der D4 behält das Getriebe NRB080, das der D3 bis zum 14. November 2026 hatte. Der vierte Motor hat eigenen Motor, eigenes Getriebe, eigenen Antrieb und eigene Grenzwerte ([motor.4], [gearbox.4], [drive.4], [ratings.4] über den gemeinsamen Tabellen): ein 1FK2104-4AF bei 11 % seiner Spitze, sein Getriebe von den gemeinsamen gearbox-*-Prüfungen gegen seine eigenen 18 und 29 N m geprüft. Der noch kleinere 1FK2103-2AH hat das Moment und besteht den Zyklus, doch sein Rotor ist zu leicht für den Drehzahlregler hinter der weichen Welle: Auf das Einschwingen des Werkzeugs eingestellt, hielt sein Regelkreis an der oberen Grenze der Trägheit der Nutzlast nur 24° Phasenreserve. sim-cli search delta-d4 --motor-id 4 legt ihn allein aus. Das Getriebespiel ist eine Schätzung von 3 Winkelminuten an den Armen und 1 Winkelminute am Werkzeug (spielreduzierte Präzisions-Planetengetriebe, wie beim D2): Mit den 9 und 10 Winkelminuten des Katalogs (--set gearbox.backlash_rad=2.618e-3 --set gearbox.4.backlash_rad=2.909e-3) scheitert das Einschwingen mit 0,69 mm, das Absacken der Arme in ihrem Spiel; das Werkzeug ruht 1,09 mrad daneben in seinem eigenen, was settling-angle getrennt prüft, gegen 5 mrad. Mit --bands besteht ebenfalls jede Prüfung (Einschwingen höchstens 0,37 mm). Eine Bahn mit Drehung schreibt man line,x,y,z,c; Kreisbögen und Splines nehmen drei Achsen und werden beim D4 abgelehnt. sim-cli modes delta-d4 nennt die Torsion des Werkzeugs (41 Hz mit Nutzlast: die Teleskopwelle verdreht sich) neben den Moden der Arme.
Der Delta nach Quattro-Art H4
delta-h4 ist ein Vierarm-Delta der Bauart Quattro / H4, ausgelegt nahe der Klasse des Omron Quattro s650H: Arbeitsraum
1300 mm im Durchmesser, 250 mm hoch am Rand und 450 mm in der Mitte, 6 kg Nutzlast, vier Siemens 1FK2105-6AF an
S210-Umrichtern hinter Planetengetrieben mit Übersetzung 20 (NRB120-05-20). Omron veröffentlicht weder Geometrie noch
Massen oder Antriebe; jeder solche Wert ist eine Schätzung ([estimate]) mit Grenzen
(die Konfiguration). Es gibt keinen vierten Motor für das Werkzeug: Die
Plattform besteht aus zwei Teilen, die Arme 1 und 2 tragen den einen, die Arme 3 und 4 den anderen, und die Teile
verschieben sich gegeneinander; ein Ritzel zwischen je einer Zahnstange an jedem Teil und eine Zahnradstufe drehen das
Werkzeug um 30 rad je Meter halber Verschiebung (Mechanismen, Abschnitt „Zweiteilige Plattform mit
Zahnstangen-Übersetzung“). Die Werkzeugpose ist (x, y, z, c), c in rad; der Zyklus ist der Adept-Zyklus des D3, bei dem
sich das Werkzeug auf jeder Querfahrt um 90° dreht, 100 mm unter der Oberkante des Arbeitsraums: 0,720 s. Das Signal
plate.slide ist die Verschiebung der Teile gegeneinander (2 h), plate.amplifier_twist die Verdrehung der
Übersetzung am Werkzeug.
$ sim-cli verdicts delta-h4
motor-peak,1,0.5721,1.000,ok
motor-thermal,1,33.48,100.0,ok
gearbox-peak,1,244.8,416.0,ok
...
settling,,0.0004359,0.0005000,ok
singularity,,2.028,5.000,ok
thermal-warm-start,,0.009744,0.1000,ok
Jede Prüfung besteht, das Einschwingen knapp, ein Befund der Bauart: Die Drehung des Werkzeugs ist das 30-Fache der
Verschiebung der Plattform, also drehen Verdrehung und Spiel der Armgetriebe, die die Geber der Motoren nicht sehen, und
das Nachschwingen der Verschiebung nach der Querfahrt das Werkzeug in der Verweilzeit: 0,44 mm der erlaubten 0,5 mm
(der Fehler einer Drehachse in rad als mm gezählt). Mit dem Spiel des Katalogs von 9 Winkelminuten
(--set gearbox.backlash_rad=2.618e-3) scheitert es mit 0,88 mm; mit 1 Winkelminute und einem Input Shaper bei 12 Hz
(--set gearbox.backlash_rad=2.909e-4 --set effects.input_shaping=true --set profile.shaper_frequency_hz=12 --set profile.shaper_damping=0.1)
0,31 mm. Motor 1 (entlang +x, der Richtung des Zyklus) arbeitet am meisten: 0,57 seiner Spitze, 33 K Erwärmung der
Wicklung; die Motoren 2 und 4 tragen 0,26 und 0,27. sim-cli modes delta-h4 nennt die vier Moden der Arme (in der Mitte zweimal
30,5 Hz, 46,8 und 51,9 Hz; am Rand 20 Hz) und die Drehung des Werkzeugs an der Übersetzung (76,5 Hz mit Nutzlast).
SCARA und Sechsachsroboter im Werkzeugraum
Standardmäßig sind die Achsen des SCARA und des Arms ihre Gelenke, eine Bewegung ist also eine Gerade der Gelenke und eine Kurve des Werkzeugs. Mit kinematics.tool_space = true sind die Achsen die Lage des Flanschs (SCARA: x, y, z in m und die Drehung c in rad; Arm: x, y, z und die Orientierung rx, ry, rz als Drehvektor), und Bewegungen, Bahnen und Zyklen sind Geraden des Werkzeugs, wie beim Delta. Zwei Konfigurationen haben ihn eingeschaltet, mit einem Zyklus aus Geraden:
sim-cli verdicts scara --config crates/machine-joint-kit/config/scara-tool.toml
sim-cli verdicts urdf-arm --config crates/machine-joint-kit/config/arm-tool.toml
Beide bestehen jede Prüfung. Der SCARA greift 100 mm tiefer, trägt das Teil 500 mm quer bei x = 0,4 m und dreht es dabei um 1,5 rad, und zurück: 2,542 s, Motor 1 bei 5 % seiner Spitze und 288 seiner 615 rad/s (der Arm schwenkt am schnellsten, wo die Gerade der Basis am nächsten kommt), Einschwingen 0,03 mm. Der Arm tut dasselbe mit durchweg nach unten zeigendem Flansch (ry = π/2): 3,858 s, Motor 2 bei 23 % seiner Spitze, Einschwingen 2,3 mm der 5, die die Konfiguration erlaubt, und die Orientierung des Flanschs 3,1 von 5 mrad (settling-angle): Unter den 6 kg Nutzlast verdrehen sich die Getriebe, und der Flansch ruht neben der Lage, die die Geber angeben (0,09 mm und 0,02 mrad im starren Modell, --set effects.joint_elasticity=false). Eine Bahn im Werkzeugraum schreibt man line,x,y,z,c (oder sechs Zahlen beim Arm); --time-optimal plant sie so schnell, wie die Motoren es über die Rückwärtskinematik erlauben: Die Gerade des SCARA quer (line,0.4,0.25,0.15,1.5 ab der Startlage) dauert 0,751 s statt 1,025 s, Motor 1 bei 547 seiner 615 rad/s. Ein Ziel, das der Arm nicht erreicht, wird mit dem Grund abgelehnt (Der Arm reicht nicht bis zum Ziel.), ebenso eines zu nahe an einer Singularität (der gestreckte Arm des SCARA: workspace.max_condition_number, 25) und eine Bahn hindurch. Den Ellbogen des SCARA wählt kinematics.elbow (“right” oder “left”); der Arm hält den Zweig von kinematics.home_joints (Schulter, Ellbogen und Handgelenk wie dort).
Sechsachsroboter auf einer Linearschiene
arm-on-track ist der Sechsachsroboter auf einem Schlitten von 80 kg, der 4 m auf einer Bodenschiene fährt, angetrieben
über Zahnstange und Ritzel von einem 1FK2105-4AF hinter einem Planetengetriebe i = 10: eine siebte Achse, die erste, in
Metern. Schiene und Arm sind eine Kette, der schwenkende Arm schiebt also an der Schiene, und die Beschleunigung der
Schiene belastet jedes Gelenk des Arms; die vier Führungswagen des Schlittens tragen das Gewicht des Arms und seine
Kippmomente, und guide-load und guide-life beurteilen den höchstbelasteten Wagen
(Mechanismen).
sim-cli verdicts arm-on-track
sim-cli verdicts arm-on-track --config crates/machine-joint-kit/config/arm-on-track-tool.toml
Der Standardzyklus greift bei 0,5 m links des Arms und legt bei 3,5 m rechts ab, der Arm schwenkt herum, während die
Schiene fährt, und leer zurück: 7,27 s, jede Prüfung besteht; der Motor der Schiene bei 15 % seines Spitzenmoments und
seinen Nenn-3000 1/min, die Zähne der Zahnstange bei 583 ihrer 2400 N, der höchstbelastete Führungswagen bei 896 N
(3584 N für den Satz von vier, gegen 320 N je Wagen aus dem Gewicht allein). Im Werkzeugraum sind die Achsen die
Stellung der Schiene neben x, y, z, rx, ry, rz des Flanschs (kinematics.tool_axes = ["j1", "x", ...]): sieben Achsen
für sieben Gelenke, die Schiene vorgegeben und der Arm für die Lage gelöst, eine Gerade bewegt also Schiene und Flansch
zusammen gerade.
Eine Presse, ein Rotationsmesser oder eine fliegende Säge auslegen
machine-crank-cam enthält die Kurbel- und Kurvenscheibenfälle eines Servo-Auslegungswerkzeugs
(Mechanismen). Ihre mitgelieferten Zyklen sind gewöhnliche
Segmente; mit cam.run = true fährt jede ihre elektronische Kurvenscheibe, und ein Durchgang ist eine Leitwertperiode bei
voller Geschwindigkeit:
$ sim-cli analyze slider-crank --set cam.run=true # 30 Hübe je Minute
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,thermal_utilisation
1,2.000000,1.961555,0.781834,117.4215,0.1308,0.1700
$ sim-cli analyze rotary-knife --set cam.run=true # Formate von 0,5 m bei 1 m/s
1,0.500000,2.629456,0.503196,151.7660,0.1765,0.1094
$ sim-cli analyze flying-saw --set cam.run=true # Längen von 1,5 m bei 1 m/s
1,1.500000,4.539616,1.927127,159.1095,0.3031,0.4189
Alle drei bestehen jedes Urteil. Die höchste Motordrehzahl des Messers ist die der Handrechnung: zwischen den Schnitten
dreht die Walze auf einem Format von 0,5 m in der Mitte 15,17 rad/s (1 / R + 1,875 × (12,76 − 1 / R)), mal die 10 des
Getriebes. Die eigenen Prüfungen der Presse sind die Pleuelkraft (2,7 kN gegen 20 kN), die Querlast der Stößelführung und
die Last des Kurbellagers. Format, Bahngeschwindigkeit oder Hubzahl ändern und neu ansehen: --set knife.format_length_m=0.35 verlangt 26,6 rad/s von der Walze, mehr als ihre Achsgrenze von 20, und run und die App
sagen das (limit-cam-speed, mit Beschleunigung und Ruck). Eine eigene Pressenkurve gehört in [[cam.segment]] oder als
CSV aus Leit- und Folgewert (und Steigungen) in cam.table_file. In der App zeigt das Oszilloskop Lage und Kraft des
Stößels, die Pleuelkraft und die Trägheit an der Kurbel über dem Hub; der Schleppfehler ist der des Folgewerts gegen die
Kurvenscheibe.
Die Kniehebelpresse (toggle-press) ist die Kniehebelform: ihre Kurbel drückt das Knie zweier Hebel in Linie, und nahe
ihrem Totpunkt hält ein kleines Kurbelmoment eine große Stößelkraft. sim-cli verdicts toggle-press beurteilt neben
den Prüfungen des Motors die Presskraft gegen das Kraftvermögen in jeder Stellung (press-capacity: die Nennkraft von
20 kN, oder weniger, wo das Kurbelmoment über die Übersetzung dx/dq weniger gibt: 3989 N auf halbem Hub), die Kräfte der
Hebel und des Pleuels und die Auffederung des Gestells (frame-deflection, 0,23 mm unter den 11,5 kN des
mitgelieferten Teils gegen 0,4 mm). Die Umformkraft im Hub nach oben gelegt
(--set 'process.distance_m=[0.02, 0.021, 0.022, 0.023]'), und press-capacity und motor-peak verfehlen (1,70 und
27,6), mit ihnen der Strom des Antriebs, die Erwärmung des Motors, die Getriebespitze und die Lebensdauer seiner
Verzahnung und settling-angle: fern vom Totpunkt gibt der Mechanismus wenig Kraft, und die Kurbel bleibt 1,18 rad vor
ihrem Ziel stehen. Im Oszilloskop bleibt der Stößel 0,23 mm über dem unteren Totpunkt stehen
(ram.height, die Auffederung des Gestells, effects.frame_stretch), und in der Rast im Totpunkt bleibt die Presskraft,
während das Moment des Motors fast auf nichts fällt.
Einen Hexapod oder einen Seilroboter auslegen
Zwei Parallelkinematiken mit allgemein gehaltenen Maßen und Siemens-Motoren 1FK2105-4AF an S210-Antrieben (jeder andere Wert eine Schätzung, mit Grenzen); siehe Mechanismen und die Konfigurationsreferenz.
hexapod ist eine Stewart-Gough-Plattform von 25 kg (bis zu 30 kg darauf) auf sechs elektrischen Zylindern, jeder ein
Kugelgewindetrieb 25 x 10 an einem eigenen Motor. Die Werkzeuglage ist x, y, z (m) und die Lage der Plattform rx, ry, rz
(rad, ein Drehvektor); der Zyklus verschiebt, kippt und dreht die Plattform und zurück.
$ sim-cli analyze hexapod
motor,cycle_s,peak_torque_nm,rms_torque_nm,peak_speed_rad_s,utilisation,...
1,1.294000,1.012178,0.300390,109.8636,0.0675,...
3,1.294000,1.125365,0.472308,160.9470,0.0753,...
$ sim-cli verdicts hexapod
settling,,0.000001259,0.00005000,ok
screw-buckling,3,388.1,168353,ok
...
Alle Prüfungen bestehen. Die Kraft jedes Beins (joint.<i>.force) wird gegen Knicklast und statische Tragzahl seiner
Spindel geprüft; ein Ziel wird abgelehnt, wo ein Bein seinen Hub verließe, an einem Gelenk steiler als 40° stünde oder
nahe einer Singularität (workspace.max_condition_number; die Arbeitsraumkarte zeigt die Konditionszahl). Der
Drehzahlregler hat 0,4 N m s/rad: mit 0,1 kommt die Plattform in den Verweilzeiten 5,0 µm
neben dem Ziel zur Ruhe, gegen 1,3 µm mit 0,4.
hexapod-rotary ist die andere Bauart eines Hexapods, eine Bewegungsplattform auf sechs Kurbeln (6-RSS): sechs
1FT2104-5AF mit Planetengetrieben SP100 50:1 auf der Basis, jeder dreht eine Kurbel von 200 mm, jede Kurbel über eine
Stange von 550 mm mit einem Kugelgelenk an beiden Enden mit der Plattform verbunden; eine Plattform von 35 kg mit einem
Sitz samt Insasse, 80 kg, 300 mm über den Plattformgelenken. Ihr Zyklus hebt die Plattform, verschiebt sie dann längs und quer,
rollt, nickt und giert sie, jeweils aus der Lage davor, und bringt sie waagrecht zurück.
$ sim-cli verdicts hexapod-rotary
settling,,0.0004185,0.001000,ok
singularity,,3.589,15.00,ok
gearbox-peak,3,144.6,278.0,ok
crank-dead-centre,1,0.4372,1.222,ok
rod-buckling,4,767.1,3530,ok
platform-ball-joint,1,0.5734,0.6981,ok
...
Alle Prüfungen bestehen. Außer denen der Motoren und Getriebe wird jedes Bein geprüft auf den Abstand seiner Kurbel vom
Totpunkt (crank-dead-centre: der Winkel der Stange zur Tangente der Kurbel gegen 90° weniger
ratings.crank_dead_centre_margin_deg, denn der Hebelarm des Motors fällt mit seinem Kosinus), das Knicken seiner Stange
(rod-buckling: die Druckkraft gegen die Euler-Last des Rohrs aus [rod] durch ihre Sicherheit) und die Winkel beider
Kugelgelenke. Ein Ziel wird abgelehnt, wo eine Stange nicht hinreicht, eine Kurbel ihrem Totpunkt näher käme als
workspace.min_dead_centre_margin_deg, ein Kugelgelenk seinen Winkel verließe, zwei Stangen sich näher kämen als
workspace.min_rod_clearance_m oder nahe einer Singularität. crank.branch wählt die Lage der Kurbeln ("out" oder
"in") einmal für alle Beine.
Im Zyklus nutzen die Motoren höchstens 37 % ihrer Momentenkennlinie, die Getriebe sehen höchstens 145 ihrer 278 N m,
die Kurbeln bleiben mindestens 65° von ihren Totpunkten, die Stangen tragen höchstens 767 N gegen die 3530 N, die ihr
Knicken erlaubt, und die Plattform beruhigt sich auf 0,42 mm: vieles davon ist die Verdrehung und das Spiel der Getriebe
unter dem Gewicht des Sitzes, die die Geber der Motoren nicht sehen. Die Drehzahlregler haben
0,10 N m s/rad (46,8° und 11,1 dB in der waagrechten Lage, 38,5° und 9,6 dB ohne Reibung, mindestens 38,0° über die
Lagen, an denen der Zyklus hält; 0,12 ließ an der ungünstigsten davon 31,2°, 28. November 2026).
cable-planar hängt einen Schlitten von 3 kg (bis zu 2 kg darauf) in einer senkrechten Ebene an 4 Seile,
cable-spatial eine Plattform von 4 kg (bis zu 4 kg) mit sechs Freiheitsgraden an 8; jedes Seil läuft über eine
schwenkbare Umlenkrolle auf eine Winde hinter einem Planetengetriebe 5:1. Die Seilkräfte gibt ein kleines QP, die
nächsten an der Vorspannung (cable.reference_tension_n), die die Plattform im Band von cable.min_tension_n bis zur
Bruchlast durch die Sicherheit tragen:
$ sim-cli verdicts cable-planar
settling,,0.0001485,0.0003000,ok
cable-max-tension,2,186.7,400.0,ok
cable-min-tension,2,0,0,ok
...
$ sim-cli modes cable-planar
position,mode1_hz,mode1_damping,mode2_hz,mode2_damping
-0.600000,26.2007,0.04929,31.8525,0.06000
...
Alle Prüfungen bestehen bei beiden. cable-min-tension fällt durch, wenn ein Seil zu irgendeinem Zeitpunkt unter die
kleinste Kraft fiel (der Wert: um wie viel); mit 60 N Vorspannung wurde das linke untere Seil des ebenen Roboters
schlaff, während der Schlitten mit 10 m/s² nach rechts oben beschleunigte, was 120 N verhindern. Ein Ziel, an dem keine
Seilkräfte im Band die Plattform mit Nutzlast halten, wird als außerhalb des kraftfähigen Arbeitsraums abgelehnt. Die
Seile dehnen sich mit EA / l, daher ändern sich Steifigkeit und Eigenfrequenzen über den Arbeitsraum (sim-cli modes):
24,6 Hz in der Mitte des ebenen Roboters. Die Seile des räumlichen laufen von Ecke zu Ecke und halten wenig Moment:
schon Drehungen von 0,05 rad bringen einige nahe an die Obergrenze des Bands, und seine Plattform steht in den
Verweilzeiten bis zu 1,03 mrad neben ihrer Orientierung (settling-angle, gegen 2 mrad; ihre Lage 0,04 mm daneben,
gegen 1 mm).
Einen Tripod auslegen
tripod ist ein 3-RPS-Schwenktisch: eine Plattform von 20 kg mit 40 kg außermittig darauf (0,05 m seitlich, 0,1 m
hoch) auf drei elektrischen Zylindern, jeder ein Kugelgewindetrieb Hiwin 20-10K3-FDC an einem Siemens 1FK2104-4AF mit
S210, ein Drehzapfen an der Basis und ein Kugelgelenk an der Plattform (siehe Mechanismen und
die Konfigurationsreferenz). Die Werkzeuglage ist z (m) mit den Neigungen rx, ry (rad);
Verschiebung der Plattform in x, y und ihre Drehung um die Normale folgen aus den Beinen und werden ausgegeben
(platform.x, platform.y, platform.turn, platform.pose_error). Der Zyklus neigt mit dem Teil auf dem Tisch um x, um y
angehoben und um beide abgesenkt und fährt ohne es zurück waagrecht:
$ sim-cli verdicts tripod
motor-peak,1,0.1971,1.000,ok
...
tripod-leg-force,1,382.0,1500,ok
tripod-leg-stroke,2,0.05162,0.1000,ok
tripod-revolute-angle,2,0.2100,0.5236,ok
tripod-cone-angle,2,0.3762,0.6109,ok
tripod-parasitic,,0.002874,0.005000,ok
Alle Prüfungen bestehen; die Motoren sind zu einem Fünftel ihres Spitzenmoments genutzt und werden 8 K warm, ausgelegt
für schwerere Last oder schnellere Neigungen. Neben den Prüfungen der Spindeln wird die Kraft jedes Beins gegen die
1500 N des Zylinders geprüft, sein Auszug gegen seinen Hub, sein Schwenkwinkel am Zapfen und sein Kegelwinkel am
Kugelgelenk gegen 30° und 35°; tripod-parasitic prüft den größten Abstand eines Punkts des Gelenkkreises von dort,
wohin ihn eine reine Neigung brächte, 2,9 mm gegen die 5 mm von ratings.parasitic_tolerance_m (ohne den Schlüssel
wird nichts geprüft). Ein Ziel wird abgelehnt, wo ein Bein seinen Hub oder ein Gelenk seinen Bereich verließe, oder
nahe einer Singularität (workspace.max_condition_number; waagrecht ist die Konditionszahl √2). Die Drehzahlregler
(sim-cli margins tripod) halten mit einer Verstärkung von 0,03 N m s/rad mindestens 60,4° und 18,20 dB, über die Grenzen (--bands) 50,6° und 17,07 dB.
Einen Schrittmotor oder einen Asynchronmotor auslegen
motor.kind setzt einen anderen Motor hinter den Antrieb (siehe Modellreferenz und
Konfigurationsreferenz); ohne den Schlüssel behält jede Maschine ihren Servomotor.
Zwei Maschinendateien zeigen sie, beide mit [estimate]-Werten:
$ sim-cli verdicts --machine-file machines/stepper-axis.toml
$ sim-cli verdicts --machine-file machines/induction-lift.toml
$ sim-cli verdicts --machine-file machines/induction-lift.toml --set geometry.incline_deg=0 --set 'drive.induction_control="vf"'
Eine Riemenachse mit Schrittmotor. Ein NEMA-23-Schrittmotor (1,26 N m Haltemoment bei 2,8 A je Phase, 0,9 Ω, 2,5 mH,
50 Rotorzähne) direkt auf einer Riemenscheibe von 16 mm, 48 V, 16 Mikroschritte, der Antrieb auf 3,5 A eingestellt
(drive.stepper_current_a, 88 % des Nennstroms: Haltemoment 1,11 N m). Der Antrieb arbeitet ohne Rückführung: Er zählt den
Sollwert in Mikroschritten und stellt den Stromzeiger dorthin, und der Läufer folgt an der „magnetischen Feder“ des
Haltemoments. Drei Prüfungen legen ihn aus:
stepper-synchronism: der größte Lastwinkel im Zyklus gegen den Kippwinkel, 90° elektrisch. Der mitgelieferte Zyklus erreicht 0,42 rad (24°). Ein Läufer, der außer Tritt fällt, hat seine Lage endgültig verloren (der Antrieb weiß es nicht): Der Wert liegt dann über π. Mit--set mass.payload_kg=25verlangen die 5 m/s² allein 2,08 N m von den 1,11 N m, und die Prüfung schlägt fehl.motor-peak: das Moment gegen die Kippmomentkennlinie, das Haltemoment bis zur Eckdrehzahl, hier 85 rad/s ((R I + k_E ω)² + (N ω L I)² = U²), darüber fallend: 44 % im mitgelieferten Zyklus. Das Drehmoment-Drehzahl-Diagramm zeigt die Kennlinie.motor-thermal: Ein Schrittmotor führt seinen Strom auch im Stillstand; die Wicklung erreicht 59 K von ihren 80 K. Mit den vollen 3,96 A läge sie bei ihrer Bemessungserwärmung.
Die S1-Prüfung von Siemens (motor-s1) gilt für Servomotoren und entfällt. Im Oszilloskop zeigt die Motordrehzahl das
Nachschwingen des Läufers an seiner Feder nach jeder Bewegung (hier etwa 60 Hz, sqrt(N T_halt / J) / 2π mit der
Trägheit der Last) und der Schleppfehler den Lastwinkel am Motor: die wahre Lage gegen die gezählte.
Ein Hubwerk mit Asynchronmotor. Ein vierpoliger Motor mit 1,5 kW, 400 V, 50 Hz (1440 min⁻¹, 10 N m) über ein Getriebe
10 an einem senkrechten Riemenhubwerk mit 50 kg, feldorientiert (drive.induction_control = "foc") unter dem Drehzahl-
und Lageregler des Antriebs. Seine Drehmoment-Drehzahl-Kennlinie ist die Kippmomentkennlinie seines Ersatzschaltbilds
(27,1 N m bei Bemessungsspannung) und die Stromgrenze des Umrichters; die Kupferverluste von Ständer und Läufer erwärmen
ihn. Er besteht jede Prüfung: 24 % der Kennlinie, 17,5 K, 0,2 mm neben dem Ziel in den Verweilzeiten gegen erlaubte
0,5 mm. Flach gelegt und mit U/f betrieben (dritter Befehl) folgt der Umrichter der Plandrehzahl ohne Rückführung, mit
Schlupfkompensation, und der Schlitten hält etwa 9 mm neben seinen Zielen: U/f kennt keine Lage. Die Daten des Motors
sind das Typenschild (rated_voltage_v, rated_frequency_hz, drive.rated_speed_rad_s für den Bemessungsschlupf) und
das Ersatzschaltbild (resistance_ohm, rotor_resistance_ohm, magnetizing_inductance_h, die beiden Streuungen);
manche Hersteller veröffentlichen es für eine Baureihe, sonst muss es geschätzt werden (die Dateien sagen, welche Werte,
und begrenzen sie).
Eine pneumatische Achse neben einer Servoachse auslegen
Bestückautomaten heben oft mit einem Pneumatikzylinder, während Servoachsen verfahren. Eine Maschinendatei fügt ihn mit
einem Knoten [[machine.cylinder]] und einer Tabelle seiner Werte hinzu (Kolben, Stange, Hub, bewegte Masse,
Totvolumen, Versorgungsdruck, C und b nach ISO 6358 von Ventil und Schlauch, die Abluftdrosseln, die Dämpfung, die
Dichtungen; Schlüssel in config-reference.md). Der Zyklus
schaltet sein Ventil und wartet auf seine Endlagensensoren:
[[cycle.segment]]
target = [0.1] # X zum Aufnehmen
dwell_s = 0.05 # gezählt, sobald der Sensor meldet
payload = false
valves = { z = "extend" }
wait = ["z.extended"]
machines/pneumatic-axis.toml ist eine Servo-X mit einem Festo DSBC-32-100 als Z, der vom Schlitten nach unten hängt:
$ sim-cli verdicts --machine-file machines/pneumatic-axis.toml
$ sim-cli run --machine-file machines/pneumatic-axis.toml --cycle --time 5 --out z.csv
Die Prüfurteile bewerten den Zylinder neben dem Motor: cushion-energy (die Bewegungsenergie beim Eintritt in die
Dämpfung, hier 0,012 bis 0,029 J, gegen die zulässigen 0,4 J des Zylinders) und load-factor (wogegen er arbeitet,
geteilt durch seine theoretische Kraft beim Versorgungsdruck, 0,024 gegen die übliche Grenze 0,7). Die Signale
cylinder.z.* enthalten Stellung und Geschwindigkeit des Kolbens, Drücke und Temperaturen beider Kammern, den
Ventilschieber und die Endlagensensoren, die letzten Hubzeiten (0,55 s aus, 0,65 s ein), die Geschwindigkeit beim
Eintritt in die Dämpfung und am Anschlag, Rückprall und Einschwingen, die Luft je Doppelhub (1,10 Normliter) und ihre
Energie am Kompressor (474 J bei 0,12 kWh/m³). Die Ausfahrgeschwindigkeit stellt die Abluftdrossel der Stangenseite
ein: gesperrt läuft der Kolben mit C p0 / A2 (hier 0,216 m/s), wie groß die Last auch ist. In der Dämpfung stellt die
Dämpfungsschraube die Geschwindigkeit ebenso ein (0,05 l/(s bar): 0,072 m/s). Ein Zylinder, dessen Totvolumen für den
Schritt zu klein ist, wird mit error-cylinder-unstable abgelehnt; die Meldung nennt die Rate und den Teilschritt, den
er braucht (sim.substeps).
Festo druckt für kein VUVG-Ventil C und b; die des ausgelieferten Ventils sind aus seinem Normalnenndurchfluss geschätzt. Der Zylinder wirkt nicht auf die Achse zurück, die ihn trägt (seine Masse gehört in die des Schlittens), und ein Proportionalventil gibt es noch nicht.
Einen Wickler auslegen
winder ist eine Bahnanlage: ein Abwickler, ein Tänzer, ein Aufwickler, beide Wickel zentral angetrieben (Einzelheiten
in Mechanismen). Seine Achse ist die Bahnposition in
Metern Bahn; der ausgelieferte Lauf sind 3 m am Anfang des Wickels, bis 2 m/s und zurück auf null, und wieder zurück.
Ein Lauf nimmt Meter eines Wickels von 1286 m, während sich die Last der Motoren mit dem Wickel ändert: die Drehzahl ist
am Kern am höchsten, das Moment beim vollen Wickel, die Trägheit wächst mit r⁴. Darum beurteilt der Wickler neben den
Prüfungen der Motoren beide Enden des Wickels:
$ sim-cli verdicts winder
check,motor,value,limit,result
...
web-tension,,102.6,250.0,ok
web-slack,,0.3106,1.000,ok
dancer-travel,,0.000007135,0.04000,ok
inertia-ratio,unwind,10.40,15.00,ok
torque-at-full-roll,unwind,4.088,18.00,ok
torque-at-core,unwind,1.205,18.00,ok
speed-at-core,unwind,311.1,508.8,ok
tension-torque-at-full-roll,unwind,2.204,5.400,ok
...
web-tension und web-slack sind der höchste Bahnzug gegen das, was die Bahn tragen darf, und der niedrigste gegen
ihren Mindestzug (der Mindestzug über dem niedrigsten: über 1 schlägt fehl); dancer-travel der größte Weg des Tänzers
gegen seinen Platz. Je Motor: das Trägheitsverhältnis beim vollen Wickel (die Trägheit des Wickels am Motor über Läufer
und Getriebe), das Motormoment beim vollen Wickel und am Kern für die Bahngeschwindigkeit, Beschleunigung und den
Bahnzug jedes Augenblicks des Zyklus, die Motordrehzahl am Kern und das Moment des Bahnzugs beim vollen Wickel gegen das
Bemessungsmoment. Zuerst das Trägheitsverhältnis lesen: hier entscheidet es, nicht das Moment, über den Motor (ein
kleinerer 1FK2 hat das Moment, und beim vollen Wickel das 22-fache seiner Trägheit).
Was man ändert: web.tension_n und web.taper (der Zug am Kern und wie er zum großen Wickel hin fällt),
axis.web.max_velocity_m_s und max_acceleration_m_s2 (die Bahn), roll.core_radius_m und full_radius_m, die
thickness_m, width_m und density_kg_m3 der Bahn, gearbox.ratio (Drehzahl am Kern gegen Moment und Trägheit beim
vollen Wickel) und roll.run_from_m, um den Zyklus an anderer Stelle des Wickels zu fahren. Ein Not-Halt:
sim-cli stop winder --category 2 bremst die Bahn entlang ihres Wegs und hält ihren Zug; ein Halt der Kategorie 1 bremst
jeden Motor an seiner eigenen Rampe, was die Wickel dort auseinanderlaufen lässt, wo ihre Radien verschieden sind, und
die Bahn überlastet.
Eine Bahn fahren und den Bahnfehler ablesen
Eine Bahndatei hat ein Stück je Zeile. Die Bahn beginnt dort, wo die Maschine steht (start.pose).
# line, arc, line from the start pose (0.1, 0.35)
line,0.5,0.35
arc,0.6,0.25,0.5,0.25,cw
line,0.6,0.05
| Zeile | Bedeutung |
|---|---|
line,a,b | Gerade zu diesem Punkt: eine Position je Achse, in Metern |
arc,a,b,ca,cb,cw oder ccw | Auf einem Kreis um den Mittelpunkt (ca, cb) zum Punkt (a, b). cw (im Uhrzeigersinn) und ccw (gegen den Uhrzeigersinn) gelten mit der ersten Achse nach rechts und der zweiten nach oben |
spline,a,b | Auf einer glatten Kurve durch diesen Punkt. Aufeinanderfolgende Zeilen mit spline bilden eine Kurve, ein Stützpunkt je Zeile |
leer oder mit # beginnend | Wird übersprungen |
Ein Kreisbogen, dessen Ende der Endpunkt des Stücks vor ihm ist (dieselben Zahlen, auf einen Nanometer), ist ein Vollkreis. Jeder andere Kreisbogen dreht von diesem Punkt bis zu seinem eigenen Ende, wie kurz auch immer: Ein Bogen von 80 µm ist ein Bogen von 80 µm. Das angegebene Ende muss auf dem Kreis um den Mittelpunkt durch den Endpunkt des Stücks davor liegen, auf 10 µm genau. Der Kreisbogen wird von dort gelegt, wo die Bahn wirklich steht, und behält den Radius, den er dort hat. Er endet also um den Unterschied der beiden Radien neben seinem angegebenen Ende. Über Kreisbögen, die um denselben Mittelpunkt aufeinander folgen, summieren sich diese Abstände, wenn jedes angegebene Ende weiter außen liegt als das vorige: Vier Kreisbögen, jeder 9 µm weiter außen, enden 36 µm neben dem letzten angegebenen Ende. Endet die Bahn neben einem angegebenen Ende, ist der größte dieser Abstände Teil der Abweichung, die der Planer meldet (Die geplante Bahn liegt ..., siehe unten, und „Geplante Bahn neben der vorgegebenen“ in der App). Die Befehlszeile meldet sie ab 0,05 µm, dem Kleinsten, das sie anzeigen kann.
Das erste Stück hat keinen Punkt vor sich. Eine Bahn beginnt am Sollwert der stehenden Maschine, den Riemendehnung und Getriebeverdrehung bis zu 0,1 mm neben die Startpose legen (einige hundertstel Millimeter beim voreingestellten Portal). Ein Kreisbogen als erstes Stück wird deshalb an dem Ort gemessen, an dem die Maschine steht: Sein Ende darf 0,1 mm neben dem Kreis durch diesen Ort liegen, und es muss mindestens 1 mm von diesem Ort entfernt sein. Näher lässt sich ein Vollkreis nicht von einem kurzen Kreisbogen unterscheiden; deshalb wird keiner von beiden geraten und die Bahn abgelehnt (Die Bahn beginnt mit einem Kreisbogen, der näher als 1 mm an dem Ort endet, an dem die Maschine steht. ...). Soll eine Bahn mit einem Vollkreis oder mit einem kürzeren Kreisbogen beginnen, geben Sie den Anfang zuerst mit einer line zur Startpose an; der Kreisbogen wird dann an diesem Punkt gemessen. Kreisbögen brauchen eine Maschine mit zwei Achsen, oder mit drei (in einer Ebene: Anfang, Ende und Mittelpunkt; arc,x,y,z,cx,cy,cz,cw), oder mit mehr: Dann liegt der Kreisbogen auf den ersten drei, und die übrigen Achsen laufen gleichmäßig mit dem Weg mit (arc,x,y,z,c,cx,cy,cz,cw am SCARA oder am D4, sechs Positionen und der Mittelpunkt am Arm im Werkzeugraum). Beim Delta kann der Sollwert der stehenden Maschine bis zu 2,3 mm von der Startpose entfernt sein (Machine::setpoint_slack: was Verdrehung und Spiel seiner Getriebe unter dem Gewicht der Plattform irgendwo im Arbeitsraum nachgeben können, aus Steifigkeit, Spiel und Massen berechnet; 0,6 mm an der voreingestellten Startpose), und das Ende eines ersten Kreisbogens darf so weit neben dem Kreis liegen. Dieser Spielraum gilt nur dort, wo die Bahn beginnt: Eine Pose, die weiter als er vom Anfang entfernt ist, muss im Verfahrbereich liegen (auf einer Achse, deren Anfang jenseits eines Endes liegt, nicht weiter jenseits als der Anfang), so dass eine Bahn nicht über den Bereich hinaus fährt, wo eine Bewegung dorthin abgelehnt wird.
Ein Spline läuft durch alle seine Stützpunkte, ohne Sprung in Position, Richtung oder Krümmung an einem Stützpunkt (ein kubischer Spline über dem geraden Abstand zwischen den Punkten). Er verlässt die Gerade oder den Kreisbogen vor ihm in der Richtung dieses Stücks und endet in der Richtung, mit der die Gerade oder der Kreisbogen nach ihm beginnt. An einem Ende der Bahn, oder wo keine Gerade und kein Kreisbogen anschließt, endet er ohne Krümmung. Splines brauchen eine Maschine mit zwei bis sechs Achsen. Stützpunkte und Richtungen, bei denen die Kurve auf der Stelle umkehren müsste, werden abgelehnt (Die Bahn lässt sich nicht auslegen: ...).
Ein Spline kann über seine Stützpunkte hinausschwingen: Zwischen ihnen baucht die Kurve nach außen aus, umso mehr, je schärfer sie abbiegen muss. Eine Kurve, die den Verfahrbereich verlässt, obwohl alle Stützpunkte darin liegen, wird abgelehnt (Die Bahn verlässt den Verfahrbereich. ...). Abhilfe: die Stützpunkte nach innen rücken oder dort, wo sie ausbaucht, einen ergänzen.
$ sim-cli analyze t-gantry --path corner.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,...
a,2.128000,0.542380,...,1.299e-4,4.397e-5,1.771e-4,0.000e0,...
$ sim-cli analyze t-gantry --path corner.path --time-optimal
a,1.658000,0.714051,...,1.744e-4,5.099e-5,2.475e-4,0.000e0,...
Bei einer Bahn ist cycle_s die geplante Dauer plus 0,3 s Ruhe am Ende, damit das Einschwingen des Werkzeugs mitzählt.
Zwei Planer legen den Zeitverlauf der Bahn fest:
| Standard | --time-optimal | |
|---|---|---|
| Geschwindigkeit und Beschleunigung | Die Grenzwerte jeder Achse ([axis.*]) | Was die Motoren erlauben: ihre Höchstdrehzahl (oder die Eintriebsdrehzahl des Getriebes, wo niedriger, abzüglich 1 %) und profile.torque_reserve mal ihre Drehmoment-Drehzahl-Kennlinie oder das Moment des Maximalstroms des Antriebs, beim Bremsen nicht mehr, als der Bremswiderstand aufnimmt; die Grenzen von Getriebe, Riemenscheibe, Führungen, Riemen und den eigenen Teilen der Maschine (Spindel, Zahnstange) |
| Ruck | Der Grenzwert jeder Achse | Ebenso |
| An einer Ecke (Richtungsänderung über 1 mrad) | Hält an; mit profile.corner_tolerance_m wird eine Ecke zwischen zwei Geraden innerhalb dieser Toleranz verschliffen und ohne Halt durchfahren | Ebenso |
| Wo eine Gerade auf einen Kreisbogen trifft | Bremst so weit ab, dass der Beschleunigungssprung innerhalb des halben Ruckgrenzwerts bleibt; mit profile.path_tolerance_m führt ein Übergangsbogen die Bahn mit Geschwindigkeit in den Kreisbogen (siehe unten) | Ebenso |
| Auf einem Spline | Jeder Abschnitt zwischen zwei Stützpunkten bekommt einen Grenzwert für Geschwindigkeit, einen für Beschleunigung und einen für Ruck, aus seiner engsten Krümmung und der schnellsten Änderung der Krümmung auf ihm (an 257 Stellen abgetastet, um 5 % als Reserve erhöht), aufgeteilt wie auf Kreisbögen | Ebenso, aus dem, was die Motoren erlauben |
| Wo ein Spline auf eine Gerade oder einen Kreisbogen trifft | Die Krümmung springt; er bremst ab wie von einer Geraden in einen Kreisbogen. Mit profile.path_tolerance_m wird das Ende des Splines auf die Krümmung seines Nachbarn ausgeglichen, und der Übergang wird zügig durchfahren (unten) | Ebenso |
| Modell für die Planung | Keines, nur die Achsgrenzwerte | Das Starrkörpermodell: keine Reibung, keine Riemendehnung |
Der zeitoptimale Plan hält an jeder geplanten Pose jeden Motor innerhalb der Momentenreserve und der Bemessungsdrehzahl und jede Achse innerhalb ihres Ruckgrenzwerts. Beim voreingestellten Ruckgrenzwert von 100 m/s³ entscheidet fast überall der Ruck: Die Motoren des Beispiels drehen mit höchstens 394 rad/s, unter ihrer Grenze von 420 rad/s abzüglich 1 %, und fordern höchstens 0,19 des Moments, das bei ihrer Drehzahl verfügbar ist (utilisation). Ein höherer Ruckgrenzwert macht es schneller (0,69 s plus Ruhe bei 2000 m/s³).
So lesen Sie das Ergebnis:
path_error_peak_mist der Abstand der Werkzeugspitze von der Linie, die ihr Sollwert gezeichnet hat, gleich an welcher Stelle. Ein Zurückbleiben längs der Bahn zählt nicht. Das ist die Zahl für die Konturgenauigkeit.tracking_error_peak_mist der Abstand von der Stelle, an der der Sollwert im selben Augenblick ist. Er enthält das Zurückbleiben.- Am T-Portal ist die Werkzeugspitze die Spitze der sich neigenden Z-Achse (
effects.tool_flex) auf einem Gestell, das schwankt (effects.frame_compliance), gesehen vom Boden, auf dem das Werkstück steht. Sie ist nicht die Position des Schlittens auf dem Träger und nicht das, was die Motorgeber melden. - Mit
effects.base_compliance(jede Maschine, ausgeliefert aus) steht die ganze Maschine auf einem Bett auf Federn ([base]), und die Werkzeugspitze bewegt sich mit ihm. Standardmäßig in eine Richtung: das Bett schwingt unter den Reaktionen der Maschine, aber die Motoren spüren es nicht. Miteffects.base_reactionwirkt es in beide Richtungen: die Beschleunigung des Betts drückt auf alles, was sich auf ihm bewegt, so dass das Schwingen im Schleppfehler erscheint und die Antriebe dagegen halten, und die Energie des Betts und sein Dämpfungsverlust stehen in der Energiebilanz (power.base). Das kostet Rechenzeit: jeder Schritt bestimmt die Masse der Maschine aus ihrer Energie bei jeder ihrer Geschwindigkeiten und jedem Paar davon (Modellreferenz, „Compliant base“).
Kreisbögen mit Geschwindigkeit anfahren. Wo eine Gerade in einen Kreisbogen übergeht, springt die Beschleunigung zum Mittelpunkt von 0 auf v²/r. Der Standardplaner fährt diese Stelle deshalb im Kriechgang an: 0,07 m/s bei 0,1 m Radius und 100 m/s³. Mit profile.path_tolerance_m über 0 setzen beide Planer dort, und wo zwei Kreisbögen aufeinandertreffen, zuerst Übergangsbögen (Klothoiden) ein: Kurven, deren Krümmung sich gleichmäßig mit dem Weg ändert. Damit einer hineinpasst, behält der Kreisbogen seinen Mittelpunkt und bekommt einen etwas kleineren Radius. Die geplante Bahn liegt also ein wenig neben den Geraden und Kreisbögen der Datei, und die Fehlerausgabe sagt, wie weit:
$ sim-cli analyze t-gantry --path corner.path --set profile.path_tolerance_m=0.0001 --lang de
Die geplante Bahn liegt bis zu 0.1000 mm neben den vorgegebenen Geraden und Kreisbögen (Übergangsbögen und Kreisbögen, die neben ihrem angegebenen Ende enden).
Thermischer Start: warm, bei den Übertemperaturen, auf die der Zyklus einschwingt; größte Änderung einer Übertemperatur im gemessenen Durchlauf 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,...
a,1.890000,0.542306,...,7.953e-5,...
1,89 s statt 2,13 s, und jede Achse bleibt innerhalb ihrer Grenzwerte für Geschwindigkeit, Beschleunigung und Ruck. Die Regeln:
| Abweichung eines Kreisbogens mit Radius r bei Übergangsbögen der Länge L | e = L² / (24 r). Um so viel rückt der Kreisbogen nach innen; auf den Übergangsbögen liegt die Bahn näher an der vorgegebenen |
| Länge der Übergangsbögen | Je Kreisbogen L = v³ dk / (0,4 j): was der schnellere seiner beiden Übergänge braucht, um mit der Geschwindigkeit v seines langsameren Stücks und 0,4 des kleinsten Ruckgrenzwerts j durchfahren zu werden. dk ist der Sprung der Krümmung, 1 / r von einer Geraden in einen Kreisbogen. Aber nicht länger, als die zulässige Abweichung an diesem Kreisbogen erlaubt: L = Wurzel(24 · Abweichung · r). Kreisbögen, die gleichsinnig ineinander übergehen, teilen sich ein L |
| Geschwindigkeit auf einem Übergangsbogen, der kürzer ist als nötig | v = (0,4 j L / dk)^(1/3) |
| Beispiel oben (r = 0,1 m, 100 m/s³, Kreisbogen mit 0,4 m/s) | Nötig 16 mm, erlaubt Wurzel(24 · 0,0001 · 0,1) = 15,5 mm: Der Kreisbogen rückt um die vollen 0,1 mm nach innen und wird mit 0,396 m/s statt 0,071 m/s angefahren. Mit 1 mm zulässiger Abweichung sind die Übergangsbögen die 16 mm lang, die sie brauchen, und die Bahn weicht um 0,107 mm ab |
Jeder Kreisbogen bekommt die Übergangsbögen, die seine eigenen Übergänge brauchen. Ein Kreisbogen an einer Ecke, am Anfang oder Ende der Bahn oder neben einem Spline muss dort enden, wo die Datei es sagt. Trifft sein anderes Ende auf eine Gerade oder einen Kreisbogen, bekommt er dort trotzdem seinen Übergangsbogen: Sein Kreis wird kleiner und rückt zum festen Ende hin, sodass er dieses Ende in derselben Richtung durchläuft und am anderen Ende Platz für den Übergangsbogen lässt. Ein Kreisbogen, der so mehr als einen halben Umlauf dreht, rückt um höchstens die halbe zulässige Abweichung (nach einem halben Umlauf liegt der neue Kreis doppelt so weit innerhalb des alten), sein Übergangsbogen wird kürzer. Ein an beiden Enden fester Kreisbogen trifft auf nichts in seiner Richtung und behält seinen Radius. Ist ein Stück zu kurz für seine Übergangsbögen oder würde ein Übergangsbogen einen Halbkreis oder mehr drehen (eine zulässige Abweichung, die gegen den Radius eines engen Kreisbogens groß ist), werden alle Längen der Bahn halbiert, bis zu achtmal; danach wird die Bahn wie vorgegeben geplant. Auf drei Achsen (Delta) liegen die Übergangsbögen in der Ebene des Kreisbogens, auf den sie treffen. Mit einer zulässigen Abweichung von 0 (dem Standard) ändert sich nichts.
Eine Bahn mit einem Spline. Zwei Stützpunkte zwischen zwei Geraden:
# line, a curve through two via points, line; from the start pose (0.1, 0.35)
line,0.3,0.35
spline,0.45,0.3
spline,0.55,0.15
line,0.55,0.05
$ sim-cli analyze t-gantry --path curve.path
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,peak_torque_nm,...,path_error_peak_m,path_error_rms_m,tracking_error_peak_m,dwell_error_peak_m,...
a,2.101000,0.541474,...,1.373e-4,4.482e-5,1.771e-4,0.000e0,...
$ sim-cli analyze t-gantry --path curve.path --time-optimal
a,1.640000,0.589072,...,1.856e-4,6.424e-5,1.856e-4,0.000e0,...
2,101 s innerhalb der Achsgrenzwerte und 1,640 s so schnell, wie die Motoren es erlauben, beide mit 0,3 s Ruhe. Die Kurve verlässt die erste Gerade waagerecht und kommt auf der letzten senkrecht nach unten an. Dabei hat sie die Krümmung, die ihre Stützpunkte verlangen, und bremst an beiden Übergängen ab wie in einen Kreisbogen. Mit --set profile.path_tolerance_m=0.0001 werden die Enden des Splines ausgeglichen: Nahe jedem Übergang wird der Spline so gebogen, dass seine Krümmung dort die der Geraden ist (0), über eine Länge l = sqrt(Abweichung / (0,01728 dk)) für einen Krümmungssprung dk, höchstens den halben Abschnitt und nur so lang, wie die Geschwindigkeit es braucht. Die Stützpunkte bleiben, wo sie sind; der Spline weicht um höchstens die zulässige Abweichung ab. Hier: 1,985 s innerhalb der Achsgrenzwerte und 1,521 s so schnell, wie die Motoren es erlauben. Der ausgeglichene Teil ändert seine Krümmung etwa neunmal so schnell wie eine Klothoide gleicher Länge und wird deshalb langsamer durchfahren als ein Übergangsbogen zwischen Gerade und Kreisbogen (siehe die Modellreferenz).
Andere Wege, eine Bahn vorzugeben:
--trajectory FILE: Posen zu Zeitpunkten, als CSV mit der Zeit in Sekunden und einer Position je Achse pro Zeile. Zeilen, die nicht mit einer Zahl beginnen, werden übersprungen. Die erste Zeit muss 0 sein, und die erste Pose muss dort liegen, wo der Sollwert steht, auf jeder Achse innerhalb des Spielraums der Maschine (Machine::setpoint_slack: 0,1 mm bei den Portalen, 2,3 mm beim Delta); die Zeiten müssen steigen; jede Pose muss im Verfahrbereich liegen, außer nahe dem Anfang (siehe die Grenzen unten); die Bahn endet im Stillstand. Die Steuerung legt eine kubische Kurve durch die Punkte.sim-cli run MACHINE --path FILEoder--trajectory FILEschreibt alle Signale statt der Analyse.
Grenzen bei dieser Aufgabe:
- Ohne zulässige Abweichung ist eine verrundete Ecke mit dem Standardplaner langsam: 0,07 m/s in einen Kreisbogen mit 0,1 m Radius bei 100 m/s³.
- Splines: Ohne zulässige Abweichung springt die Krümmung, wo einer an eine Gerade oder einen Kreisbogen anschließt; die Bahn durchfährt diesen Übergang deshalb langsam, wie von einer Geraden in einen Kreisbogen. Mit einer zulässigen Abweichung wird der ausgeglichene Übergang zügig durchfahren, aber langsamer, als eine Klothoide bei gleicher Abweichung erlaubte. Ein Abschnitt hat einen Grenzwert, nach seiner engsten Stelle; ein Abschnitt mit einer engen Biegung ist also auf ganzer Länge langsam.
- Übergangsbögen zwischen Geraden und Kreisbögen: keiner, wo zwei Kreisbögen in verschiedenen Ebenen in ihrer Richtung aufeinandertreffen (drei Achsen); dort fährt die Bahn langsam. Ein Stück, das zu kurz für seine Übergangsbögen ist, halbiert die Übergangsbögen der ganzen Bahn, nicht nur seine eigenen. Ihre Länge folgt den Geschwindigkeiten, die der Plan erlaubt: den Achsgrenzwerten oder bei
--time-optimalden Motoren (das Beispiel braucht mit 0,1 mm zulässiger Abweichung 1,370 s, ohne 1,658 s). - Der zeitoptimale Plan kennt die Zuggrenzen des Riemens (
ratings.belt_max_tension_n,belt_min_tension_n): Er zieht von beidenprofile.tension_margin_nab (31 N am voreingestellten T-Portal, die Führungsreibung, die der Riemen zieht) und hält die Zugkraft jedes Abschnitts im starren Modell innerhalb vonprofile.tension_reserve(0,5) des verbleibenden Spielraums, weil die Riemenschwingung noch einmal so viel aufschlagen kann wie die Zugänderung des starren Modells (siehe die Modellreferenz). Er hält außerdem jede andere Grenze ein, deren Urteil von der Bewegung an einer Stelle der Bahn abhängt: den Maximalstrom des Antriebs (ratings.drive_max_current_a, miteffects.drive_current_limitoder ohne, wie “drive-peak-current” ihn in beiden Fällen beurteilt),profile.torque_reserveder Momentgrenzen von Getriebe und Riemenscheibe am Abtrieb (ratings.gearbox_max_torque_nm,pulley_max_torque_nm, wo die Maschine das Abtriebsmoment des Getriebes meldet), die höchste Eintriebsdrehzahl des Getriebes (ratings.gearbox_max_input_speed_rpm), die Tragzahl der Führungen (ratings.guide_max_load_n), die Spitzenleistung des Bremswiderstands (ratings.braking_resistor_peak_w: ein Bremsen, das mehr zurückspeisen würde, steht nicht zur Verfügung) und die eigenen Teile der Maschine: Drehzahl, d n und Axialkraft einer Spindel, Vorschubkraft einer Zahnstange. Von Drehzahlgrenzen hält er 1 % für das Nachlaufen der Regelkreise zurück. Er kennt die Verluste des Getriebes (gearbox.efficiencymiteffects.gearbox_efficiency: der Motor bringt sie zusätzlich auf), die Reibung von Motoren, Führungen und Gelenken und hält von der Tragzahl der Führungenprofile.torque_reserveein, wie von den Momenten der Motoren.profile.time_optimal_margin(1 in den mitgelieferten Konfigurationen) plant mit diesem Anteil jeder Grenze: 0,9 für 90 %. Was über den ganzen Zyklus beurteilt wird, kennt der Plan nicht: die Erwärmung der Wicklung (“motor-thermal”, “motor-s1”), den Effektivstrom des Antriebs, die Lebensdauern und die mittlere Leistung des Bremswiderstands. Ein zeitoptimaler Zyklus besteht im Lauf also die eigenen Prüfungen des Plans an jeder mitgelieferten Maschine (ein Test je Maschine,crates/sim-machines/tests/time_optimal.rs), kann aber einen Motor überhitzen: die der Linearmotorachse, der fliegenden Säge, des parallelen SCARA und des Vierarm-Deltas tun es. Lassen Sieanalyzeoderverdictsdarüber laufen. Am Delta begrenzt das M2max der Getriebe, wo es unter dem liegt, was die Motoren durch die Übersetzung geben: Mit den 192 N m des NRB080, das er bis zum 14. November hatte, dauert eine Gerade quer durch seinen Bereich 0,434 s, mit den 278 N m des mitgelieferten SP+ 100 0,412 s (siehe die Modellreferenz). - Der zeitoptimale Plan liest die Grenzen der Motoren Punkt für Punkt (alle 2 mm) und folgt innerhalb eines Bahnstücks der höchsten Geschwindigkeit, die sie erlauben, auf und ab, ist aber nicht nachweislich der schnellste mögliche: Die Läufe von beiden Enden eines Bahnstücks treffen sich auf einer kurzen Konstantfahrt oder auf der Geschwindigkeitskurve, je nachdem, was schneller ist, und auf einer Kurve bekommen die Rampen 0,4 des Ruckgrenzwerts (siehe die Modellreferenz). Die Auslegung dauert einige Millisekunden (2 bis 21 ms an den mitgelieferten Maschinen). Im vollständigen Modell können die Motoren die Drehzahl, die der Plan einhält, um das überschreiten, was die Regelkreise und die Verdrehung der Riemen hinzufügen; der Plan hält die Drehzahl dieser Verdrehung ebenfalls zurück, so erreichen die Motoren des Beispiels bei einem Ruckgrenzwert von 2000 m/s³ 414,6 und 417,8 rad/s, innerhalb der 420 des Antriebs (bevor der Plan die Verdrehung zurückhielt, 420,7 und 423,5 rad/s).
- Eine Maschine, die am Ende eines Hubs steht, hat ihren Sollwert einige hundertstel Millimeter dahinter: Der Sollwert liegt dort, wo die Motoren stehen, unter Riemendehnung und Getriebeverdrehung. Eine Bahn von dort beginnt so weit außerhalb des Verfahrbereichs und wird gefahren. Nur nahe ihrem Anfang darf eine Bahn den Bereich verlassen: Eine Pose, die innerhalb des Spielraums der Maschine vom Anfang liegt (0,1 mm bei den Portalen, 2,3 mm beim Delta), darf so weit außerhalb liegen; jede andere Pose muss im Bereich liegen (auf einer Achse, deren Anfang jenseits eines Endes liegt, nicht weiter jenseits als der Anfang; Rundung um 1e-9 m ausgenommen). Andere Posen werden abgelehnt (
Die Bahn verlässt den Verfahrbereich. ...bei einer Bahn aus Stücken,Die zeitlich vorgegebene Bahn braucht mindestens zwei Punkte im Verfahrbereich, mit steigenden Zeiten ab 0.bei Posen mit Zeiten). - Die Nutzlast ist so, wie die Maschine sie beim Planen hat (angehängt, am Start).
sensitivityarbeitet nur mit dem Zyklus, nicht mit einer Bahn;verdicts,searchundoptimisenehmen--path(siehe Prüfurteile, Suche und Optimierung auf einer Bahn). Mit--set 'profile.cycle_timing="time_optimal"'beurteilen die Befehle den Zyklus so schnell, wie die Motoren erlauben, jedes Segment von Ruhe zu Ruhe (T-Portal 3,522 s statt 6,080 s innerhalb der Achsgrenzwerte; siehe die Konfigurationsreferenz).- In der App stehen Bahnen unter „Bahn“ (siehe Die App bedienen); eine SPS sendet sie über OPC UA (siehe Eine SPS über OPC UA anbinden).
Hindernisse und Kollisionen prüfen
Die Hindernisse des Arbeitsraums kommen als Quader entlang der Achsen der 3D-Ansicht in die Konfiguration (wo das Werkzeug jeder Maschine liegt, steht in der Konfigurationsreferenz); wie nah die Maschine kommen darf, sagt profile.min_clearance_m:
$ sim-cli run single-axis --move 0.9 --time 1.5 --out run.csv --set "effects.crash=true" --lang de \
--set "effects.drive_monitoring=true" \
--set 'obstacles=[{name="wall",centre_m=[0.75,-0.03,0.06],size_m=[0.1,0.2,0.2]}]'
Geplante Bahn: kleinster Abstand zu den Hindernissen -115.0 mm
Geplante Bahn: erste Berührung eines Hindernisses in der Lage 0.4700
Lauf: kleinster Abstand zu den Hindernissen -0.4 mm
Lauf: erste Berührung eines Hindernisses (Name: Zeit, Geschwindigkeit des Werkzeugs, Lage) wall: 0.4701 s, 1.0000 /s, 0.4700
Lauf: größte Kontaktkraft, Kontaktkraft jetzt und Aufprallenergie 9821.9 N, 0.0 N, 3.0596 J
Lauf: die Antriebe haben abgeschaltet (Überwachung: Motor, Zeit; Störreaktion je Motor) Schleppfehler außerhalb seines Fensters: m, 0.4780 s; m: AUS3, die Drehzahl fährt an der Schnellhalterampe herunter
Lauf: Anhalteweg je Achse ab der Abschaltung (die Maschine stand um) 0.0001 (0.5009 s)
-
runsagt vor dem Lauf, welchen Abstand Fahrt, Bahn oder Zyklus wie geplant zu den Hindernissen halten, und danach den kleinsten Abstand des Laufs und seine erste Berührung: wann, wie schnell das Werkzeug war und wo; mit dem Crash die größte Kontaktkraft, die Kraft jetzt und die Aufprallenergie; und wenn die Antriebe abgeschaltet haben, welche Überwachung welches Motors, wie jeder Antrieb anhält und wie weit jede Achse ab der Abschaltung fuhr, bis die Maschine stand. Ohne Hindernisse oder Abschaltung sagt es nichts. -
verdictssagt dasselbe für den geplanten Zyklus und beurteilt den Lauf mit der Prüfungcollision: kleinster Abstand gegenprofile.min_clearance_m, nicht bestanden bei jeder Berührung. Ohne Hindernisse entfällt die Prüfung. -
effects.crash(voreingestellt aus) lässt die Hindernisse zurückdrücken, mit ihrer Kontaktsteifigkeit und -dämpfung (stiffness_n_m,damping_n_s_mim Eintrag eines Hindernisses; ohne 1e7 N/m und 1e4 N s/m), ob die Antriebe ein- oder ausgeschaltet sind: Die Achsen in Berührung sind blockiert, die anderen fahren weiter. Ein Antrieb an seiner Stromgrenze drückt mit seinem Spitzenmoment mal Übersetzung durch Riemenscheibenradius (950 N an der Einzelachse) und bleibt dort, solange ihn nichts abschaltet. Aus, werden Berührungen gemeldet, und die Maschine fährt hindurch. -
effects.drive_monitoring(voreingestellt aus) lässt die Antriebe sich überwachen, wie Servoantriebe es tun: den Schleppfehler gegen ein Fenster (drive.following_error_window_rad, 1 rad am Motor), den Schleppfehler im Stillstand gegen ein engeres, einen Motor, der 3 s bei kleiner Drehzahl an seiner Momentengrenze hängt, und wahlweise das Moment gegen das des Modells. Die erste Überwachung, die anspricht, hält alle Antriebe an, jeden mitdrive.fault_reaction(je Motor als[drive.<id>]):"off3"fährt an der Schnellhalterampe herunter (AUS3,off3_ramp_s, 0,1 s ab Nenndrehzahl),"off1"an der normalen Rampe (AUS1,off1_ramp_s, 1 s),"current_limit"bremst an der Momentengrenze,"sto"lässt den Motor austrudeln. Eine blockierte Achse schaltet Fenster durch Drehzahl nach der Berührung ab (8 ms an der Einzelachse bei 1 m/s); eine Achse ohne Berührung hält innerhalb v² / (2a) ihrer Rampe. Freigeben quittiert die Störung; wieder freigegeben, können die Antriebe die Maschine aus dem Hindernis fahren, und eine Fahrt hinein schaltet sie wieder ab. Eine PLCopen-Achse meldet einen Crash als ErrorID 8, sobald die Antriebe aus sind. -
--time-optimalweist eine Bahn zurück, die näher kommt als der Abstand;optimisenimmt keine Einstellung, deren Lauf das tut. -
Die App zeichnet die Hindernisse als durchscheinende Quader mit ihren Kanten, rot solange berührt, den Abstand zum nächsten als rote Linie mit seinem Wert in mm und die erste Berührung als rote Marke auf der Zeitleiste. Schalten die Antriebe ab, sagen die Meldungen sofort, welcher Motor wann über welche Überwachung abgeschaltet hat und wie jeder Antrieb anhält, während 3D-Ansicht und Scopes die Achsen die Rampe herunterfahren oder austrudeln zeigen; steht die Maschine, wie weit jede Achse ab der Abschaltung fuhr.
-
Der Abstand gilt zwischen den Quadern von Werkzeug, Schlitten, Z-Achse, Plattform und Nutzlast, wie die 3D-Ansicht sie zeichnet (nicht ihren CAD-Formen), und den Kapseln der schrägen Teile: Unterarmstäbe und Oberarme des Delta-Pickers und das Teleskop des D4, jedes die Punkte innerhalb der halben gezeichneten Breite um seine gezeichnete Strecke, genau, wie schräg es auch steht.
-
Die eigenen Teile der Maschine gegeneinander.
runundverdictssagen außerdem, getrennt von der Zahl der Hindernisse, den kleinsten Abstand zwischen zwei Teilen der Maschine selbst entlang der geplanten Bahn oder des Zyklus, in mm, welche zwei (Quader Nist der N-te Quader,Kapsel Ndie N-te Kapsel der Kollisionsteile der Maschine, ab 1 gezählt) und in welcher Lage:Geplante Bahn: kleinster Abstand zwischen den eigenen Teilen der Maschine (Abstand, die beiden Teile, Lage) .... Geprüft wird in jeder Lage, die auch die Hindernisprüfung abtastet (jeden Millimeter, die Maschine im Stillstand), und gegen dasselbeprofile.min_clearance_mbeurteilt: ein kleinerer Abstand oder eine Überlappung heißtdie eigenen Teile der Maschine kommen sich zu nah oder berühren sich. Hindernisse braucht es dafür nicht. Welche Paare zählen: Teile, die sich in der Startlage der Maschine (start.pose, mit Nutzlast und ohne) berühren (auf 1 nm), überlappen oder näher als der Abstand liegen, gelten als verbunden (ein Schlitten auf seiner Schiene, eine Nutzlast auf ihrem Schlitten, ein Glied an seinem Gelenk) und werden nicht gegeneinander geprüft, gleich in welcher Lage eine Bahn beginnt; jedes andere Paar wird geprüft. Diese Regel sieht keine Kollision zwischen Teilen, die schon in der Startlage in Kontakt oder näher als der Abstand sind. Die Arme, SCARAs und der Palettierer geben ihre Nachbarschaft stattdessen genau an (Glied mit dem nächsten Glied, über ein Glied ohne Länge hinweg, und mit den Gliedern ohne Länge am Ende des nächsten, wie dem Punkt am Flansch eines SCARA; der Flansch mit den letzten beiden Gliedern) und zeichnen dafür ihre Glieder als Kapseln; ihre Stäbe, wie gezeichnet, enthalten weder Sockel noch Motoren. Eine Maschine ohne zwei verbleibende Teile zum Vergleichen (die meisten, die nur den Werkzeugpunkt geben, und die Linearachsen, deren Nutzlast auf dem Schlitten sitzt) sagt inverdictsDie eigenen Teile der Maschine werden nicht gegeneinander geprüft: das heißt „nicht geprüft“, nicht „frei“. Der Lauf wird wie bei den Hindernissen beurteilt: jede Millisekunde des Laufs (wie die Hindernisse, jeden Schritt) dieselben Paare in der simulierten Lage, auch wo sich nur die Maschine bewegt (eine pendelnde Last in einer Verweilzeit, eine auslaufende Achse); der kleinste Wert im Lauf ist die Prüfungself-collisiongegenprofile.min_clearance_m, nicht bestanden bei jeder Berührung, mit dem Exit-Code; eine nicht geprüfte Maschine hat diese Zeile nicht, wiecollisionohne Hindernisse. Eine zeitoptimale Bahn, die zwei Teile so nah bringt, wird abgelehnt (error-path-self-collision), eine innerhalb der Achsgrenzen geplant und gemeldet. Die Teile drücken einander in der Simulation nicht: nichts hält einen Lauf deswegen an.
Wie weit fährt sie nach einem Not-Halt?
Den Zyklus (oder eine Bahn, --path DATEI) an vielen Zeitpunkten anhalten und sehen, wie weit die Maschine noch fährt, bis sie steht:
$ sim-cli stop t-gantry --category 1 --points 3
moment,trigger[s],tool_distance[m],stop_time[s],peak_deceleration[m/s2],hard_stop,peak_dc_link[V],braking_resistor_energy[J],tripped,x_distance[m],z_distance[m]
grid,0.0000,0.000001,0.0000,0.241,false,155.14,0.0000,false,0.000000,0.000001
grid,2.0263,0.025465,0.5653,44.419,false,184.09,0.0000,false,0.025465,0.000107
energy,2.0800,0.026026,0.5657,38.385,false,188.86,0.0000,false,0.026026,0.000121
fastest_x,2.0860,0.026022,0.5654,37.384,false,189.40,0.0000,false,0.026022,0.000107
grid,4.0527,0.000245,0.0174,17.273,false,224.04,0.0000,false,0.000033,0.000244
fastest_z,4.2740,0.006431,0.0488,17.171,false,186.45,0.0000,false,0.000043,0.006431
worst,2.0800,0.026026,0.5657,38.385,false,188.86,0.0000,false,0.026026,0.000121
Ungünstigster Stopp: ausgelöst bei 2.0800 s (energy)
Bewertung des Stopps: stop-dc-link: 224.0 / 257.6 ok
- Die Stoppkategorien sind die der IEC 60204-1, wie ein Servoantrieb sie ausführt (
--category, ohne Angabe 0): 0 nimmt das Moment sofort weg (STO, wie--disable-at): die Achsen trudeln aus, bis die Haltebremsen halten. 1 bremst jeden Antrieb an seiner Schnellhalterampe (drive.off3_ramp_s, die Zeit ab Nenndrehzahl) mit seinen Moment- und Stromgrenzen, Zwischenkreis und Bremschopper wirken wie bei jeder Fahrt; stehen alle, fallen die Bremsen ein und das Moment geht weg, oder wenndrive.ss1_time_s(0,5 s) vorher abläuft. 2 bremst die geplante Bewegung mit den Beschleunigungsgrenzen der Achsen in ihrer Fahrtrichtung ab und hält dort mit Moment. - Die Zeitpunkte: wo jede Achse am schnellsten ist (
fastest_x), wo die kinetische plus potentielle Energie am größten ist (energy), und--pointsZeitpunkte gleichmäßig über den Durchlauf (grid, ohne Angabe 20). Die letzte Zeile wiederholt den ungünstigsten, den Stopp, nach dem das Werkzeug am weitesten kam. - Je Stopp: wie weit das Werkzeug von dort kam, wo es beim Auslösen war (das Weiteste, über die Achsen in Metern), und jede Achse, die Zeit, bis jede Achse unter einem Hundertstel ihrer Höchstgeschwindigkeit bleibt, die größte Verzögerung über 1 ms, ob eine Achse in ihren Endanschlag fuhr, die höchste Zwischenkreisspannung, die Energie im Bremswiderstand und ob ein Antrieb auf Überspannung abschaltete (er trudelt dann aus wie in Kategorie 0).
stopping-distancebeurteilt den ungünstigsten gegenratings.max_stopping_distance_m, das man in einer Konfigurationsdatei unter[ratings]ergänzt (--config);stop-dc-link(miteffects.dc_link) fällt durch, wenn ein Stopp einen Antrieb abschaltet.- Eine hängende Achse fällt, solange ihre Bremse einfällt: mit
effects.brake_delay(voreingestellt aus) brauchen die Bremsenbrake.engage_delay_s(0,03 s, geschätzt) zum Halten undbrake.release_delay_s(0,06 s) zum Lüften. Am T-Portal in Kategorie 0 (sim-cli stop t-gantry --points 3 --set effects.brake_delay=true) kommt das Werkzeug beim ungünstigsten Stopp dann 31,0 mm statt 9,5 mm weit, angehalten dort, wo Z am schnellsten ist, 8,6 mm statt 1,4 mm. - Ein einzelner Stopp:
sim-cli run t-gantry --cycle --stop-at 5.076 --stop-category 1schreibt alle Signale um ihn herum. Aus Python hältks.Sim(config).stop(1)eine schrittweise Simulation an,enable()schaltet sie wieder ein; der FMU-Eingangcommand.stop_categorysagt, wiecommand.enableauf false die Antriebe anhält; über OPC UA hält 0, 1 oder 2 incommand.stop_categorydie Maschine an. - Was es nicht kennt: Kategorie 2 bremst in Fahrtrichtung, nicht entlang einer gekrümmten Bahn; keine Ruckbegrenzung im Stopp; eine Verzögerung für alle Bremsen; noch nichts ist mit einem gemessenen Stopp verglichen (siehe Validierung).
Wie genau und wiederholbar ist eine Achse?
Die Maschine fährt je Achse eine Reihe von Zielen an, wie bei einer Messung mit dem Laserinterferometer, und man sieht, wo das Werkzeug an jedem wirklich steht:
$ sim-cli accuracy t-gantry --points 3 --repeats 2
axis,unit,target,mean_up,mean_down,std_up,std_down,reversal
x,m,0.100000,1.1762e-5,2.5613e-5,7.5882e-8,5.3740e-10,-1.3851e-5
x,m,0.500000,-1.2844e-5,1.3340e-5,1.0489e-8,6.2349e-10,-2.6184e-5
x,m,0.900000,-2.5110e-5,-1.2003e-5,1.6311e-9,7.6690e-11,-1.3108e-5
Accuracy along ISO 230-2, axis x [m]: B 2.618e-5, R 2.621e-5, E 5.072e-5, M 3.724e-5, A 5.073e-5 (...)
z,m,0.050000,-5.1846e-5,-3.8927e-5,8.7854e-8,5.6135e-10,-1.2919e-5
z,m,0.250000,-5.3654e-5,-4.0058e-5,1.1370e-8,3.8474e-10,-1.3596e-5
z,m,0.450000,-5.2218e-5,-3.9019e-5,4.8047e-9,7.1230e-10,-1.3200e-5
Accuracy along ISO 230-2, axis z [m]: B 1.360e-5, R 1.362e-5, E 1.473e-5, M 1.469e-6, A 1.475e-5 (...)
Accuracy at the tool along ISO 9283, over the axes in metres: AP 5.625e-5, RP 1.565e-7, vAP 2.618e-5 (...)
- Der Ablauf (
sim_components::accuracy::study): je Achse--pointsZiele (5) gleichmäßig über die mittleren 80 % ihres Hubs, die anderen Achsen in der Startlage; der lineare Zyklus der ISO 230-2--repeats-mal (5): aufwärts durch alle Ziele, jedes von unten angefahren, dann abwärts, jedes von oben, mit einem Überlauf von 5 % des Hubs vor dem ersten Ziel jedes Durchgangs. An jedem Ziel ruht die Maschine--dwellSekunden (0,3); gemessen wird die wirkliche Lage des Werkzeugs, gemittelt über das letzte Zehntel davon. Nicht erreichbare Ziele fallen weg; der ganze Test läuft in einer Simulation, die Teile erwärmen sich also dabei. - Je Ziel die mittlere Abweichung (wirklich minus Ziel) und ihre Standardabweichung von unten (
up) und von oben (down) und ihre Differenz, die Umkehrspanne. Je Achse die Kennwerte der ISO 230-2: B größte Umkehrspanne, R beidseitige Wiederholpräzision, E systematische Abweichung, M Spanne der mittleren beidseitigen Abweichung, A Positionsgenauigkeit. Am Werkzeug, über die Achsen in Metern, die der ISO 9283: AP Posegenauigkeit, RP Pose-Wiederholgenauigkeit, vAP Abstand der Schwerpunkte beider Anfahrrichtungen. - Was das Werkzeug versetzt: alles, was die Simulation hat: Spiel, Verdrehung des Getriebes und Dehnung des Riemens unter der Last in Ruhe, Nachgiebigkeit von Führung und Gestell, der Schritt des Gebers, Sensorrauschen (
effects.sensor_noise, in den mitgelieferten Konfigurationen aus, die Wiederholpräzision dort ist also allein die Umkehrspanne), die Reibung dort, wo die Achse zur Ruhe kommt. Am T-Portal steht die Z-Achse unter ihrem eigenen Gewicht am Riemen 52 µm zu tief; an der Einzelachse geben die 3 Winkelminuten Spiel des Getriebes 17 µm der 29 bis 52 µm Umkehrspanne (sim-cli accuracy single-axis --points 3 --repeats 2). - Zwei weitere Effekte, beide aus, solange eine Konfigurationsdatei sie nicht unter
[effects]einschaltet:thermal_growth, die Wärmedehnung von Spindel oder Riemen, undlead_error, eine Steigungsfehlertabelle. Sie wirken auf die Achsen, die[accuracy]nennt (axes = [{ axis = "x", drive = "screw", fixed_end = 0.0, rise_k = 4.0, heated_part = "guide_x", lead_error = [[0.0, 0.0], [0.8, 16.0e-6]] }], die Ausdehnungskoeffizientenscrew_expansion_per_kundbelt_expansion_per_k, beide 11,5e-6 / K, der des Riemens eine Schätzung); ein Beispiel steht im englischen Benutzerhandbuch. Miteffects.load_encoderwirkt keiner von beiden: der Maßstab misst den Schlitten selbst. - Die Bewertungen:
positioning-accuracyvergleicht das größte A der Achsen in Metern mitratings.max_positioning_error_m,positioning-repeatabilityihr größtes R mitratings.max_repeatability_m; ohne die Grenze keine Bewertung. Aus Python:ks.accuracy(config, points=5, repeats=5, dwell=0.3). - Was sie nicht weiß: Dehnung und Steigungsfehler sind eine Abbildung von der Lage des Gebers auf die wirkliche, angewandt auf die Lage des Werkzeugs in Ruhe; Signale und Dynamik des Laufs tragen sie nicht. Die Dehnung des Gestells, ein Temperaturgefälle längs der Spindel und die Erwärmung der Spindel durch ihre Mutter sind nicht modelliert.
Programme: G-Code und Roboterprogramme
--path DATEI (und das Bahnfeld der App) liest außer einer Bahndatei auch ein Programm, nach der Endung der Datei. Seine Bewegungen werden zu den Geraden und Kreisbögen einer Bahn, deren Zeitverlauf dieselben Planer festlegen.
$ sim-cli analyze t-gantry --path tasche.nc
$ sim-cli run delta-d3 --path greifen.mod --time-optimal
| Endung | Gelesen als | Was gelesen wird |
|---|---|---|
.nc, .ngc, .gcode, .g, .cnc, .tap | G-Code (DIN 66025 / ISO 6983) | G0 Eilgang, G1 Gerade, G2/G3 Kreisbogen (Mittelpunkt I, J, K vom Anfang aus oder R; R < 0 der längere Bogen), F Vorschub je Minute, G17/G18/G19 Ebene, G20 Zoll / G21 mm (Vorgabe), G90 absolut (Vorgabe) / G91 inkrementell; X, Y, Z, A, B, C für die Achsen mit diesen Kennungen (A, B, C in Grad); G4 P (Verweilzeit in Sekunden), G61, G64 und G64 P (Eckenmodi, siehe unten). Ohne Wirkung angenommen: N-, O-, M-, S-, T-Wörter, G40, G49, G54, G80, G94, Kommentare ( ) und ;, %-Zeilen; M2 und M30 beenden das Programm |
.src | KUKA KRL | PTP {X 100, Y 0, Z 500}, LIN {...}, CIRC {Hilfspunkt}, {Ende} in mm und Grad; weggelassene Komponenten bleiben vom Punkt davor; A, B, C, S, T und weitere bewegen Achsen dieses Namens, wo die Maschine sie hat, und entfallen sonst. Bei einem Arm im Werkzeugraum (Achsen x, y, z, rx, ry, rz) sind A, B, C die Orientierung (Rz(A) Ry(B) Rx(C)). $VEL.CP = 0.2 (m/s) ist die Bahngeschwindigkeit der folgenden LIN- und CIRC-Bewegungen; PTP fährt mit den Grenzwerten der Achsen |
.mod, .prg | ABB RAPID | MoveL, MoveJ, MoveC zu Robtargets an Ort und Stelle ([[x, y, z], [q1, q2, q3, q4], ...]) oder vereinbart (CONST robtarget p10 := [[...]];), Positionen in mm; bei einem Arm im Werkzeugraum ist das Quaternion die Orientierung. Die Geschwindigkeit: v100 (mm/s), vmax (die Grenzwerte der Achsen), an Ort und Stelle [250, 500, 5000, 1000] oder vereinbart (VAR speeddata vfast := [...];), ihre TCP-Geschwindigkeit; die Zone entfällt |
jede andere, mit Zeilen MoveL, MoveJ, MoveC | Roboterbewegungen als CSV | MoveL,x,y,z, MoveJ,x,y,z, MoveC,Hilfspunkt...,Ende...: ein Wert je Achse in m (rad) |
| jede andere | Bahndatei | wie oben |
- Das Programm beginnt dort, wo die Maschine steht; eine Achse, die ein Satz nicht nennt, bleibt.
- Jede Folge von Bewegungen mit einem Vorschub (G1/G2/G3 mit F, eine RAPID-Bewegung mit ihrer Geschwindigkeit, ein KRL-LIN oder -CIRC mit
$VEL.CP) wird innerhalb der Achsgrenzwerte geplant, ihre Bahngeschwindigkeit auf den Vorschub begrenzt, und die Folgen schließen mit einem Halt dazwischen aneinander an. F ist die Bahngeschwindigkeit: G1 X100 Y100 F6000 fährt die Diagonale mit 100 mm/s, jede Achse mit 70,7 mm/s (vor dem 14. November begrenzte F jede Achse, und die Diagonale fuhr mit 141 mm/s). G0,vmax, PTP und Roboter-CSV fahren mit den Grenzwerten der Achsen, mit--time-optimalso schnell, wie die Motoren es erlauben. Bei einem Arm im Werkzeugraum (x, y, z, rx, ry, rz) ist eine RAPID- oder KRL-Geschwindigkeit die des Werkzeugmittelpunkts, und das Werkzeug dreht sich höchstens mitprogram.orientation_speed_rad_s(500 Grad je Sekunde, wo die Konfiguration keinen Wert hat, RAPIDs Vorgabe fürv_ori): Eine Bewegung braucht die längere der beiden Zeiten, und eine, die nur das Werkzeug dreht, fährt mit dieser Rate. Das F des G-Codes zählt wie oben. - Verweil- und Eckenwörter des G-Codes folgen der G-Code-Referenz von LinuxCNC (der G-Code ist sonst DIN 66025, mit Siemens’ Lesart von F):
G4 P0.5hält die Bahn am Ende der Bewegung davor an, steht 0,5 s (P in Sekunden, 0 bis 3600; in ganzen Profilzyklen wie die Verweilzeit eines Zyklusabschnitts) und fährt fort; hier stehtG4allein in seinem Satz, was LinuxCNC nicht verlangt.G61ist der Modus „exakte Bahn“ von LinuxCNC: Eckentoleranz 0 von da an, Ecken werden also angehalten, Bewegungen in einer Richtung laufen durch (G61.1, Genauhalt an jedem Satz, wird nicht gelesen).G64 P0.02mit P in der Längeneinheit des Programms (G20 Zoll, G21 mm) setzt die Eckentoleranz ab diesem Satz, wieprofile.corner_tolerance_msie versteht: eine Kurve, die von den beiden Geraden nirgends weiter als P entfernt ist (0,5 mm an einem rechten Winkel beginnt 2,67 mm vor der Ecke). LinuxCNC begrenzt stattdessen den Abstand zur programmierten Ecke; an einem rechten Winkel läuft die Kurve hier also bis zu sqrt(2) P = 1,41 P an der Ecke vorbei, bei spitzerem Winkel weiter.G64ohne P, und wie in LinuxCNCG64 P0, ist dasprofile.corner_tolerance_mder Konfiguration (0 in jeder mitgelieferten Konfiguration: Dann hält auch G64 an), wo LinuxCNC bei beliebiger Abweichung die beste Geschwindigkeit hält;G64 Qwird nicht gelesen. Der Modus, der für den Satz nach einer Ecke gilt, bestimmt sie; ein Moduswechsel beendet wie eine Verweilzeit die Folge, die Ecke am Wechsel wird also angehalten, gleich in welche Richtung der Modus wechselt (die Referenz von LinuxCNC sagt nicht, wie sie diese Ecke behandelt). Siemens’G4 Fund FanucsG4 Pin Millisekunden werden in diesen Formen nicht gelesen. profile.feed_override(Vorgabe 1, über 0 und höchstens 2: die Grenze dieses Simulators, keine eines Herstellers; die Korrekturschalter von Sinumerik und LinuxCNC gehen bis 200 %) multipliziert den programmierten Vorschub jeder Bewegung, die einen hat (G1, G2, G3, die Geschwindigkeit einer RAPID-Bewegung,$VEL.CPeines KRL-LIN oder -CIRC); G0,vmax, PTP und Roboter-CSV haben keinen Vorschub und werden nicht skaliert, und die Grenzwerte der Achsen gelten weiter: 2 bei einem Vorschub über der halben Grenze fährt mit der Grenze. Es ist ein Planungswert, in der Konfiguration oder mit--setgesetzt; die laufende Simulation (OPC UA) ändert ihn nicht. Bei 1 ist der Plan der ohne den Schlüssel.- Ein PTP oder MoveJ ist eine Gerade in den Achsen der Maschine wie ein MoveL: Die Leser passen zu Maschinen, deren Achsen Positionen sind (Portale, Deltas), und zu Armen im Werkzeugraum.
- Alles andere wird mit seiner Zeile abgelehnt: ein anderer G-Befehl (G41, G81, …) oder Buchstabe, ein G4 ohne P oder mit einem P außerhalb von 0 bis 3600 oder mit einer Bewegung im Satz, ein negatives G64 P, ein G1 vor jedem F, eine Achse, die die Maschine nicht hat, ein Kreisbogen, der auch die dritte Achse der Ebene bewegt (eine Helix), ein Kreisbogen, dessen Anfang und Ende verschieden weit vom Mittelpunkt liegen, MoveAbsJ, PTP_REL, SPLINE, ein benannter KRL-Punkt, ein nicht vereinbartes Robtarget.
Prüfurteile, Suche und Optimierung auf einer Bahn
verdicts, search und optimise beurteilen den konfigurierten Zyklus; mit --path DATEI (und --time-optimal) beurteilen sie an seiner Stelle eine Bahn oder ein Programm, gelesen wie run --path es liest (Bahndatei, G-Code, KRL, RAPID, Roboter-CSV). Die Bahn wird zuerst einmal geplant, sodass eine unlesbare Zeile mit ihrer Nummer genannt wird, bevor etwas läuft. Jeder Lauf plant die Bahn dann neu von dort, wo die Maschine steht, mit der Konfiguration dieses Laufs: die Bänder mit jedem begrenzten Wert, jeder Katalogkandidat mit seinem Motor, Getriebe und Umrichter, jede Einstellung des Optimierers mit ihren Grenzwerten.
$ sim-cli verdicts t-gantry --path tasche.nc --bands
$ sim-cli search t-gantry --path ecke.path --time-optimal --series 1FK2
$ sim-cli optimise t-gantry --path ecke.path --runs 20
- Gemessen wird der Lauf wie bei
analyze --path: die Bahn und 0,3 s Ruhe. Miteffects.thermal_warm_startwird er wiederholt (zurück zum Anfang der Bahn und eine Ruhe zwischen den Durchläufen), bis Wicklungen und Teile einen Durchlauf mit der Erwärmung beginnen, auf die sie sich einstellen, wie bei einem Zyklus. - Der Optimierer verkürzt die Zeit der Bahn: die Achsgrenzwerte (alle drei Faktoren), der Input-Shaper und, wo die Konfiguration eine Abweichung erlaubt (die größere von
profile.path_tolerance_mundcorner_tolerance_m), die Übergangskurven und die innerhalb dieser Abweichung verrundeten Ecken. Hübe zum Absenken hat eine Bahn nicht; seine Änderungen sind Konfigurationswerte (profile.*,axis.*,effects.*). - Intern bekommt die Konfiguration eine optionale Tabelle
[path](Konfigurationsreferenz); eine Konfigurationsdatei mit einer solchen Tabelle beurteilt in jedem Befehl und in Python ihre Bahn statt des Zyklus.
Von einem laufenden Förderband greifen
crates/machine-delta-d3/conveyor.toml ist die Standardkonfiguration des D3 mit einer Tabelle [conveyor]: Ein Band in x-Richtung bringt mit 0,3 m/s jede Sekunde ein Teil durch ein 0,5 m langes Greiffenster; der Delta trifft jedes Teil mit der Geschwindigkeit des Bands, fährt beim Schließen des Greifers mit ihm, hebt es ab und legt es an einem festen Ablageort ab. Die Tabelle wirkt genauso bei den anderen Deltas und den Portalen (ein Wert je Werkzeugachse).
$ sim-cli analyze delta-d3 --config crates/machine-delta-d3/conveyor.toml --lang de
Förderband: Griffe, Folgefehler beim Greifen längs des Bands, verpasste Teile 60.00 / min, 0.098 mm, 0.00 / min
$ sim-cli verdicts delta-d3 --config crates/machine-delta-d3/conveyor.toml
...
pick-tracking,,0.00009770,0.001000,ok
parts-missed,,0,0,ok
- Der eigene Durchlauf des Delta dauert 0,94 s; bei einem Teil je Sekunde wartet er, bis jedes Teil das Fenster erreicht, und greift 60 in der Minute, alle, die das Band bringt. Bei einem Teil alle 0,5 s (
--set conveyor.pitch_s=0.5) kommt er nicht nach: Teile, die das Fenster ungegriffen verlassen, sind verpasst, undparts-missedist nicht bestanden. pick-trackingist der größte Abstand des Werkzeugs vom Teil längs des Bands, während der Greifer schließt, gegenconveyor.tracking_tolerance_m.run --cyclefährt die Durchläufe wie jeden Zyklus; die Aufzeichnung zeigt die Nutzlast am Ende jedes Griffs angehängt.- In der App die Datei mit „Öffnen…“ im Konfigurationsbereich laden und den Zyklus starten: Die 3D-Ansicht zeichnet das Band, seine mitlaufenden Leisten und die Teile darauf.
- Das T-Portal, der D2, der D4 und der Linear-Delta haben ein Förderband-Beispiel neben ihrer Standardkonfiguration (
crates/machine-t-gantry/conveyor.tomlund entsprechend): Die Deltas greifen ein Teil je Sekunde von einem Band mit 0,3 m/s (der D4 dreht jedes um 90 Grad zum Ablageort), das T-Portal ein Teil alle 5 s von einem Band mit 0,1 m/s, sein Durchlauf dauert etwa 3,7 s. - Mit
conveyor.ramp_sbeschleunigt das Band zuerst; auch während der Rampe wird gegriffen, das Teil dort getroffen, wo es ist, mit seiner Geschwindigkeit dann. - Mit Input Shaping werden die Durchläufe für den geformten Sollwert geplant: das Teil eine mittlere Verzögerung des Shapers voraus, Greifen und Ablegen um den Shaper länger, sodass der Greifer schließt, während der geformte Sollwert auf dem Teil ist.
- Wie jede Bewegung eines Durchlaufs geplant wird und was ein Griff oder ein verpasstes Teil ist, steht in der Modellreferenz (englisch).
Die Form der Bewegungen wählen
profile.shape legt die Form jeder Bewegung von Stillstand zu Stillstand fest (MoveTo, die Abschnitte des Zyklus); ein [[cycle.segment]] kann mit shape = "..." seine eigene nennen:
"s-curve"(Vorgabe): sieben Abschnitte, der Ruckgrenzwert voll genutzt."sin2": Die Geschwindigkeit steigt über jeder Rampe wie sin² (Bestehorn); die größte Beschleunigung ist (π/2) v / T_Rampe, der Ruck innerhalb der Rampe glatt."poly345"und"poly4567": die Polynom-Bewegungsgesetze der VDI 2143, die die ganze Bewegung ohne Konstantfahrt durchlaufen; 4-5-6-7 beginnt und endet auch ohne Ruck. Größte Geschwindigkeit 1,875 h / T und 2,1875 h / T für eine Bewegung um h in T.
$ sim-cli analyze t-gantry --set 'profile.shape = "sin2"'
$ sim-cli analyze delta-d3 --set 'profile.shape = "poly4567"' --set profile.deceleration_ratio=0.8
profile.deceleration_ratio bremst mit einem Anteil der Beschleunigungsgrenzwerte (S-Kurve und sin² bremsen dann auf einer eigenen Rampe). Einer Achse, die gegen die Schwerkraft hebt, geben profile.vertical_axis = "z" ("-z", wo oben die Minusrichtung ist) und profile.up_acceleration_ratio nach oben weniger Beschleunigung als nach unten: Eine Bewegung nach oben beschleunigt sanft und bremst hart, eine nach unten umgekehrt.
Trajektorien (--trajectory, geplante Bahnen, die Stützpunkte eines Abschnitts) laufen auf einem kubischen Spline durch ihre Posen, dessen Beschleunigung stetig ist (profile.trajectory_spline = "c2"); "hermite" fährt die Kurve wie vor dem 14. November 2026, deren Beschleunigung an jeder Pose springt.
Regler einstellen und Input Shaping nutzen
Die Verstärkungen stehen in [drive]: kv_1_s (Lageverstärkung Kv), velocity_kp_nm_s_rad und velocity_tn_s (Drehzahlregler: Verstärkung Kp und Nachstellzeit Tn), current_kp_v_a und current_tn_s (Stromregler). Die drei folgenden Befehle geben ein Testsignal nur auf den Lagesollwert, ohne Vorsteuerung. Sie zeigen also die Regelkreise selbst.
Reibungsvorsteuerung. effects.friction_feedforward gibt Reibung auf die Momentenvorsteuerung, damit der Integrator des Drehzahlreglers sie nicht aufbauen muss, während die Achse fährt. drive.friction_feedforward_model sagt, welche: "characteristic", die Punkte drive.friction_feedforward_*, die ein Antrieb bei konstanten Drehzahlen aufnimmt, oder "machine", die Reibung des eigenen Modells der Maschine bei der geplanten Geschwindigkeit (Führungen, Motorwelle, Leerlaufmoment des Getriebes, Gelenke, Umlenkrollen, Energiekette), die jede Maschine angibt. Mit "machine" ist sie in den mitgelieferten Konfigurationen dort eingeschaltet, wo sie den Schleppfehler beim Fahren und das Einschwingen an der Aufnahme verkleinert (Portal: 199,9 µm auf 182,0 µm und 48,4 µm auf 43,4 µm; Kugelgewindeachse: 79,9 auf 31,1 µm und 45,2 auf 7,4 µm); die Validierung hat die Tabelle für jede Konfiguration und warum Linearachse und Linear-Delta sie aus lassen. Eine Vorsteuerung ändert die Reserven des Regelkreises nicht. Ausprobieren an jeder Konfiguration mit --set effects.friction_feedforward=true --set 'drive.friction_feedforward_model="machine"'.
Eine Zeile je Achse:
$ sim-cli tuning t-gantry
axis,rise_time_s,overshoot,settling_time_s,bandwidth_hz
x,0.03025,0.0550,0.40375,8.754
z,0.04875,0.0000,0.09400,8.163
$ sim-cli tuning t-gantry --set drive.kv_1_s=150
axis,rise_time_s,overshoot,settling_time_s,bandwidth_hz
x,0.01200,0.3109,0.50000,22.184
z,0.00575,0.1751,0.04350,57.798
| Spalte | Einheit | Bedeutung |
|---|---|---|
rise_time_s | s | Anstiegszeit: von 10 % bis 90 % eines Sprungs von 1 mm |
overshoot | Anteil | Überschwingen: größter Ausschlag über den Sprung hinaus, als Anteil des Sprungs |
settling_time_s | s | Einschwingzeit: Danach bleibt das Werkzeug innerhalb von 2 % des Sprungs |
bandwidth_hz | Hz | Bandbreite: Frequenz, bei der der Betrag des Führungsfrequenzgangs erstmals unter 1/√2 fällt. Leer, wenn das bis 200 Hz nie geschieht |
Mit Kv = 45 1/s (50 bis zum 22. November 2026, als der geschlossene Kreis von X über seiner Gestelleigenschwingung oberhalb von 1/√2 blieb und seine Bandbreite 20,5 Hz las) verhält sich der Lageregelkreis wie ein Verzögerungsglied erster Ordnung mit der Zeitkonstante 1/Kv: Bandbreite etwa Kv / 2π = 7 Hz. Z zeigt das deutlich. In X enthält die Werkzeugposition das Schwanken des Gestells: Der Sprung regt die schwach gedämpfte Eigenschwingung des Gestells (etwa 21 Hz) an. Daher kommen die 5,5 % Überschwingen und die 0,40 s, bis das Werkzeug innerhalb von 2 % bleibt. Mit Kv = 150 schwingt X um 31 % über.
Stabilitätsreserven der Drehzahlregelkreise. margins misst den Drehzahlregelkreis jedes Motors aufgeschnitten: Zu dem Moment, das der Regler fordert, kommt ein sinusförmiges Moment hinzu, während die Maschine ihre Startpose hält, und die Antwort des Reglers ergibt den Frequenzgang des offenen Kreises L bei 60 Frequenzen von 10 Hz bis 2 kHz (so arbeitet auch die Messfunktion eines Antriebs). Wo |L| bei 10 Hz noch unter 1 liegt (die Integratoren legen den Durchtritt tiefer), misst sie im selben Abstand weiter nach unten, bis |L| > 1 ist, höchstens bis 1 Hz. Zwischen zwei dieser Punkte, 9,4 % auseinander, kann sich eine scharfe Resonanz verstecken: Die Resonanzen der Maschine in der Startpose (sim-cli modes) werden mitgemessen, und wo sich L oder die Strecke (Motormoment zu Drehzahl) von einem Punkt zum nächsten um mehr als 30° dreht oder um mehr als 3 dB ändert, wird auch ihre Mitte gemessen, in bis zu acht Runden, bis die Punkte 0,1 % auseinander liegen. Auf den Standardkonfigurationen kommen so einige Punkte hinzu, und die Reserven bleiben nahezu, wie sie waren:
$ sim-cli margins t-gantry
run,motor,crossover_hz,phase_margin_deg,gain_margin_db,peak_sensitivity,peak_frequency_hz,play_margin_db,result
,a,178.1,57.7,9.93,1.773,277.3,,ok
,b,170.5,56.1,9.84,1.768,277.3,,ok
start.pose=[0.1 0.05],a,210.3,51.1,9.18,1.927,277.3,,ok
start.pose=[0.1 0.05],b,170.1,57.1,10.21,1.733,253.5,,ok
start.pose=[0.9 0.35],a,166.2,58.5,10.20,1.721,253.5,,ok
start.pose=[0.9 0.35],b,181.7,55.9,9.57,1.828,277.3,,ok
start.pose=[0.9 0.05] effects.payload=false,a,172.6,56.8,9.80,1.769,277.3,,ok
start.pose=[0.9 0.05] effects.payload=false,b,202.5,61.8,9.63,1.852,277.3,,ok
...
$ sim-cli margins single-axis --bands
run,motor,crossover_hz,phase_margin_deg,gain_margin_db,peak_sensitivity,peak_frequency_hz,play_margin_db,result
,m,181.5,59.9,11.56,1.607,253.5,,ok
start.pose=[0.9] effects.payload=false,m,142.8,65.2,11.34,1.494,211.8,,ok
belt.damping_n_s_m=50.0,m,186.7,54.4,11.59,1.652,231.7,,ok
belt.damping_n_s_m=200.0,m,175.1,66.0,11.45,1.602,253.5,,ok
...
| Spalte | Einheit | Bedeutung |
|---|---|---|
run | Leer für die Konfiguration, wie sie ist, in ihrer Startpose; start.pose=[...] für jede andere Pose, an der der Zyklus hält (die Ziele aus cycle.segment, jedes einmal, mit der Nutzlast, die der Zyklus dort hat; erreicht er eine Pose mit und ohne Nutzlast, steht sie zweimal da, die ohne Nutzlast als start.pose=[...] effects.payload=false); mit --bands eine Zeile je Motor für jeden Wert aus [bounds] an seiner unteren und an seiner oberen Grenze, in der Startpose. Bei mehreren Posen nennt stderr je Motor die kleinste Phasenreserve, Amplitudenreserve und Reserve über das Spiel über sie, jede mit ihrer Pose | |
crossover_hz | Hz | Durchtrittsfrequenz, bei der |L| = 1 ist, die mit der kleinsten Phasenreserve. Unter 10 Hz, wo die Messung nach unten weitergegangen ist (die Einzelachse mit der Coulomb-Reibung ihres Motors an der oberen Grenze: 4,4 Hz, 92,0°). Leer, wie auch phase_margin_deg, wo der Kreis bis hinab zu 1 Hz keinen Durchtritt hat; das Ergebnis ist dann das der Amplitudenreserve allein |
phase_margin_deg | ° | Phasenreserve: der Winkel zwischen L und −1 dort: 180° plus die Phase von L (die Phase ohne Sprünge verfolgt), um ganze Umdrehungen auf −180° bis 180° gebracht, gleich welches Vorzeichen, die kleinste über die Durchtritte (eine Resonanz, die |L| über 1 hebt, nachdem die Phase −180° innerhalb des Einheitskreises durchlaufen hat, tritt fern von −1 wieder durch: die Kupplung der Linearmotorachse an der unteren Grenze ihrer Dämpfung, dort 53°, nicht 180° − 334°); negativ, wo L −1 umläuft (gain_margin_db negativ): der Kreis ist instabil |
gain_margin_db | dB | Amplitudenreserve: um wie viel die Verstärkung steigen darf, bis L −1 erreicht, an der ungünstigsten Stelle, an der die Phase durch −180° fällt und die kein späteres Steigen durch −180° mit |L| > 1 aufhebt (eine Nyquist-Zählung, die netto: ein Fallen und ein Steigen jenseits von −1 heben einander auf, gleich in welcher Reihenfolge; unterhalb des Durchtritts ist das die bedingt stabile Art); negativ, wo dort |L| > 1 ist (instabil); inf, wenn es bis 2 kHz keine solche Stelle gibt |
peak_sensitivity | Das größte |1 / (1 + L)|: 1 durch den kürzesten Abstand von L zu −1. Bis 2 heißt mindestens 6 dB und 29° | |
peak_frequency_hz | Hz | Wo es am größten ist |
play_margin_db | dB | Mit effects.gearbox_backlash: um wie viel die Verstärkung steigen darf, bis der Kreis über das Spiel hämmert, die Reserve der Beschreibungsfunktion mit abgeklungener Reibung am Rotor (jeder Lauf wird dafür ein zweites Mal mit geschlossenem Spiel gemessen; margins braucht etwa 15 % länger). Leer, wo das Spiel den Kreis nicht ändert (es bleibt unter dem Testmoment geschlossen, oder der Motor hat keines). Wird angegeben, nicht bewertet: über result entscheidet der Zeitlauf. Die Werkzeugdrehung des Fünfgelenks: 3,56 dB bei den ausgelieferten 0,033 N m s/rad, −4,18 dB bei 0,08 (danach hämmert sie ab 0,0497, im Zeitlauf ohne Reibung ab 0,048, mit Reibung ab 0,078) |
result | ok, oder FAIL, wo eine Reserve negativ ist oder die Messung nicht gültig: Der Kreis lief dabei in seine Momentengrenze oder bewegte sich von selbst (schwang). Dann ist der Kreis instabil, und seine Reserven sind NaN. Ebenso FAIL, wo der Kreis über das Getriebespiel hämmert: Innerhalb des Spiels sieht die Messung nur den Rotor, und die Reserven können gut aussehen. Mit effects.gearbox_backlash wird darum jeder Kreis in Ruhe zusätzlich mit einem Gleitsinus vom Nennmoment seines Motors angestoßen und 0,3 s beobachtet; einer, der weiter von Flanke zu Flanke schwingt (und ohne Spiel nicht), wird auf stderr genannt, z. B. Motor Werkzeugdrehung: hämmert über das Getriebespiel bei 650 Hz, 0.77 N m (die Frequenz und die Spitze des Moments, das der Regler fordert), die Werkzeugdrehung des Fünfgelenks bei 0,08 N m s/rad |
Die Drehzahlverstärkungen der Standardkonfigurationen wurden damit gewählt: mindestens 35° Phasenreserve und 6 dB Amplitudenreserve in jedem Lauf von --bands, auch mit --set effects.motor_friction=false --set effects.guide_friction=false (die Reibung dämpft den Kreis nahe dem Stillstand, wie bei der Messung, die die Maschine hält, aber nicht bei Konstantfahrt). Ergebnis: T-Portal 0,04 N m s/rad, mindestens 46,2° und 8,38 dB, ohne Reibung 35,7° und 7,42 dB, dann 0,037 (22. November 2026), als die Reserven die Posen des Zyklus bekamen: 0,04 ließ ohne Reibung links mit Z unten 33,0°, 0,037 dort mindestens 35,7° und 7,7 dB; Einzelachse 0,025, mindestens 50,3° und 10,83 dB, ohne Reibung 39,1° und 10,05 dB (gemessen am 17. November 2026 an den Konfigurationen, wie sie ausgeliefert werden). Die Verstärkung von 0,08, die die Konfigurationen vorher hatten, ließ dem T-Portal 12° und 2 dB (Motor B pendelte bei Konstantfahrt im Getriebespiel) und der Einzelachse 1° und 0,3 dB (sie wurde mit dem Riemen an seiner steifsten Grenze instabil). Die EXCT-30 wurde ebenso eingestellt, von 0,6 (34,9° und 6,6 dB, ohne Reibung 29,6° und 5,8 dB) auf 0,45: mindestens 48,8° und 9,36 dB, ohne Reibung 40,6° und 8,61 dB (17. November). Die Zahlen für die früheren Verstärkungen stammen von vor dem 13. November, gemessen ohne stetig verfolgte Phase.
Die Verstärkungen finden: sim-cli tune. tune MASCHINE [--phase-margin GRAD] [--gain-margin DB] [--no-notch] leistet per Programm, was der Absatz davor von Hand tat. Für jeden Motor, in der Reihenfolge, in der die Maschine sie führt, sucht es die größte drive.velocity_kp_nm_s_rad, bei der die kleinste Phasenreserve und die kleinste Amplitudenreserve über alle Posen des Zyklus (die Startpose und jedes Ziel von cycle.segment, wie margins sie nimmt) die Ziele erreichen (35° und 6 dB, das Paar, an dem die mitgelieferten Konfigurationen gemessen werden) und der Kreis in jeder Pose stabil ist (result ok in margins). Es beginnt bei der Verstärkung der Konfiguration, verdoppelt oder halbiert sie bis zu achtmal, bis die Ziele erreicht und verfehlt sind, und halbiert dann sechsmal das Intervall (1,1 % Auflösung): höchstens 15 Messungen je Motor, jede misst alle Motoren in jeder Pose, mit der Reibung der Konfiguration und noch einmal ohne Motor- und Führungsreibung (die Schalter, an denen die Tests margins messen: effects.motor_friction und der erste von effects.guide_friction, joint_friction, winch_friction, dancer_friction, den die Konfiguration hat; Reibung dämpft den Kreis nahe dem Stillstand, nicht aber in der Fahrt), eine Verstärkung muss die Ziele also in beiden erreichen (die kleinsten Reserven der Tabelle gelten über beide Durchgänge, die Pose des zweiten heißt friction=off ...; eine Konfiguration, die schon ohne Reibung ist, wird einmal gemessen). drive.velocity_tn_s bleibt. drive.kv_1_s bleibt beim Wert der Konfiguration, wo die Verstärkung steigt, und sinkt, wo sie fällt, damit der Lageregler seine eigene Reserve Kp/J (Tn + 1/Kv) behält (der Neuabgleich des Katalogs tut dasselbe mit der Untergrenze 1,25); tune gibt die Zeilen der geänderten Schlüssel aus, die --set-Wörter stehen auf dem Fehlerkanal. Die Motoren wirken über die Mechanik aufeinander; nach dem letzten Motor werden deshalb alle Motoren mit allen abgestimmten Verstärkungen noch einmal gemessen, und ein Motor, der dabei die Ziele verfehlt, wird um 20 % gesenkt (höchstens viermal) und genannt. Die ausgegebenen Verstärkungen sind die der letzten Messung. Wo keine Verstärkung die Ziele erreicht (oder die gemeinsame Prüfung nach vier Runden scheitert), sagen die Zeilen FAIL, der Code ist 1, und die Verstärkungen sind die besten gefundenen. --bands gehört nicht dazu: die mitgelieferten Verstärkungen wurden auch über die [bounds] gehalten, eine abgestimmte kann also höher liegen als eine mitgelieferte; margins --bands am Ergebnis zeigt es (die Einzelachse: tune ergibt 0,042 gegen die mitgelieferten 0,025, die über ihre Grenzen 50° und 10,8 dB halten, wo 0,042 30° und 6,0 dB hält; das Rotationsmesser 0,33 gegen 0,20, über seine Grenzen 26° und 5,4 dB gegen 43° und 10,0 dB; diese Zahlen sind von vor dem 25. November 2026, als tune nur die Reibung der Konfiguration nahm: die 0,049 und 0,051 des T-Portals gegen die mitgelieferten 0,037 ließen ohne Reibung 33°, deshalb ist die mitgelieferte Verstärkung niedriger). Die Tabelle hat je Schlüssel before und after und die kleinste Phasen- und Amplitudenreserve über die Posen vorher und nachher, je mit der Pose; es wird keine Datei geschrieben. Anders als tuning, das nur Sprung- und Frequenzantwort einer Achse misst, ändert tune die Verstärkungen und misst die Kreise. Sperre (Notch): für jeden Motor der Reihe nach, wo die Amplitudenreserve seine Verstärkung begrenzt (die nächsthöhere Verstärkung verfehlt sie) und zwar an einer Resonanz (die Sensitivität der nächsthöheren Verstärkung hat ihren Höchstwert bei einer Eigenfrequenz der Maschine oder bis zum 1,5-fachen darüber), setzt tune die Sperre (effects.notch_filter, drive.notch_frequency_hz) auf die Eigenform der Maschine, die den Höchstwert macht (die höchste, die sim-cli modes in dieser Pose bei oder unter ihm meldet; auf dem Höchstwert selbst verzögert eine Sperre den Kreis dort, wo er schon dreht), 0,7 mal so breit wie deren Frequenz (das von Hand abgestimmte Verhältnis der fliegenden Säge), sucht die Verstärkung erneut und behält die Sperre nur, wo die Verstärkung mit ihr mindestens 15 % höher ist; die --set-Wörter enthalten sie dann. --no-notch lässt sie weg. Der Schalter gehört der ganzen Maschine: wo eine Sperre bleibt, ist er an, und jeder Motor ohne eine bekommt in den --set-Wörtern drive.<id>.notch_frequency_hz=0 (0 Hz ist keine Sperre); diese legen den eigenen Schlüssel eines Motors an, wo die Konfiguration ihn nicht hat. Die Desktop-App und das Python-Modul haben das noch nicht.
Die Sprungantwort als Kurve:
$ sim-cli step t-gantry --axis-index 0
time_s,setpoint,response
0.000000,1.000000000e-3,0.000000000e0
0.000250,1.000000000e-3,2.442885061e-10
0.000500,1.000000000e-3,3.121861117e-9
...
--axis-index N (0 ist die erste Achse; --axis benennt wie bei jedem Befehl eine Katalogachse), --size M (Standard 0.001 m), --time SECONDS (Standard 0.5). response ist die Werkzeugposition bezogen auf die Stelle, an der das Werkzeug stand, mit vier Werten je Millisekunde.
Der Führungsfrequenzgang:
$ sim-cli bode t-gantry --axis-index 0 --count 8
frequency_hz,gain,gain_db,phase_deg
1.0000,9.830301e-1,-0.149,-11.512
2.1317,9.699874e-1,-0.265,-21.141
4.5440,8.748395e-1,-1.161,-39.797
9.6863,6.761918e-1,-3.399,-68.123
20.6478,6.353218e-1,-3.940,159.079
...
gain ist die Amplitude des Werkzeugs geteilt durch die Amplitude des Sollwerts. Die Phase, die bei 20,6 Hz über 157° hinaus dreht, ist die Eigenschwingung des Gestells, die in der Werkzeugposition enthalten ist. Optionen: --from HZ (1), --to HZ (200), --count N (40), --amplitude M (0.0005 m).
Die Mechanik ohne Regelung:
$ sim-cli sweep single-axis --from 20 --to 200 --count 12
frequency_hz,gain_rad_s_per_nm,phase_deg
20.0000,5.522398e1,-82.358
...
131.5866,9.881837e1,-60.793
Ein sinusförmiges Moment an einem Motor, zusätzlich zu den Haltemomenten, gemessen an der Drehzahl dieses Motors. Riemenresonanzen zeigen sich als Spitzen; die Last, die gegen den gehaltenen Motor schwingt, zeigt sich als Einbruch. Optionen: --motor N (Index, 0 ist der erste), --from (5), --to (500), --count (120), --amplitude NM (1,5 N m oder 40 % des Spitzenmoments des Antriebs, wo das weniger ist). Frequenzen müssen über null liegen: --from 0 wird abgelehnt (Konfigurationswert liegt außerhalb des gültigen Bereichs: frequency). Bei eingeschalteter Reibung misst eine kleine Amplitude vor allem die Haftreibung: Bei 0,05 N m zeigt keine der Standardmaschinen einen Einbruch. Die voreingestellte Amplitude findet ihn an jedem Motor beider Standardkonfigurationen und von exct-30.toml (21,6 Hz am T-Portal, 20,7 Hz an der EXCT-30, 84,3 Hz an der Einzelachse). Eine größere ist nicht besser: Bei 2 N m zeigt die Einzelachse einen zweiten, falschen Einbruch bei 61 Hz, den fit --sweep dann als den tiefsten nimmt. Die Zeilen dürfen in beliebiger Reihenfolge der Frequenz stehen, und --from darf über --to liegen.
Die Bandsperre: --set effects.notch_filter=true, mit drive.notch_frequency_hz und drive.notch_bandwidth_hz. Sie wirkt auf den Momentensollwert.
Input Shaping. Ein ZVD-Shaper verteilt jeden Sollwert auf drei Stufen im Abstand einer halben Schwingungsperiode, sodass sich die Schwingungen, die sie anregen, gegenseitig auslöschen:
--set effects.input_shaping=true --set profile.shaper_frequency_hz=25 --set profile.shaper_damping=0.03
profile.shaper_type wählt den Shaper: "zv" (zwei Stufen, der kürzeste, lässt 20 % neben der Frequenz 31 % übrig), "zvd" (Vorgabe, drei Stufen, 10 %), "zvdd" (vier, 3 %), "ei" (drei Stufen, lässt V = profile.shaper_ei_tolerance bei der Frequenz und etwa höchstens V über ±20 %) und "ei2" (Zwei-Höcker-EI, vier Stufen, ein breiteres Band innerhalb V). Weitere Resonanzen gehören in profile.shaper_modes, jede mit den anderen gefaltet, und können nur auf einige Achsen wirken; profile.shaper_axes begrenzt den ersten und zweiten Shaper ebenso:
--set 'profile.shaper_axes = ["x"]' --set 'profile.shaper_modes = [{ frequency_hz = 42.0, damping = 0.02, type = "ei", axes = ["z"] }]'
Stellen Sie die Frequenz auf die Resonanz des Werkzeugs ein. Am T-Portal ändert sie sich mit der Z-Höhe. Mit --set effects.shaper_follows_pose=true (Input Shaper folgt der Pose) übernimmt der Shaper die Frequenz deshalb von der Maschine an der geplanten Pose. Der Shaper nimmt die tiefste Eigenschwingung, die die Maschine meldet, am T-Portal das Gestell, das mit dem Schlitten darauf schwankt (18,7 Hz bei z = 0,05 m und 20,1 Hz bei z = 0,15 m für die Standardkonfiguration bei x = 0,9 m, aus sim-cli modes t-gantry --axis-index 1 --points 11 --set 'start.pose=[0.9,0.35]'). Die Einzelachse meldet ihren Schlitten am Riemen (65,8 Hz bei x = 0,5 m). Ein zweiter Shaper (profile.shaper2_frequency_hz über 0) folgt ebenso der zweiten Eigenform der Maschine: am T-Portal der Schlitten, der gegen das Gestell schwankt, während die Z-Achse sich neigt, 30,7 Hz bei z = 0,05 m.
Resonanzen über dem Hub, um die Shaper-Frequenzen zu wählen: modes fragt die Maschine an --points Stellen (21, wenn nicht angegeben) über den Hub einer Achse (--axis-index, sonst die erste) nach ihren Eigenformen; die übrigen Achsen stehen in der Startpose. Eine Maschine, die keine meldet, schreibt nur die Spalte position. Das Bedienfeld Reglereinstellung der App zeichnet dasselbe über die gemessene Achse, unter den eingestellten Shaper-Frequenzen.
$ sim-cli modes t-gantry --axis-index 1 --points 3
position,mode1_hz,mode1_damping,mode2_hz,mode2_damping,mode3_hz,mode3_damping,mode4_hz,mode4_damping
0.000000,17.5908,0.02270,27.8795,0.03654,75.6296,0.08121,120.9295,0.05001
0.250000,20.5810,0.01634,53.4229,0.03945,88.3456,0.07216,203.2193,0.02491
0.500000,19.2547,0.01567,34.1440,0.02848,79.2017,0.07949,96.6925,0.06845
Die Z-Achse ist dort am steifsten, wo ihr Schwerpunkt am Schlitten hängt (hier bei z = 0,3 m), und jede Eigenform steigt zu dieser Stelle hin an (mit --points 11 erreicht die zweite dort 54,4 Hz).
Was es am Zyklus der EXCT-30 bewirkt. In der Konfiguration ist der Shaper eingeschaltet, mit festen 25 Hz und einem zweiten bei 17,5 Hz; der erste Lauf schaltet beide ab:
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml --set effects.input_shaping=false
Thermal start: warm, at the rises the cycle settles at; largest change of a rise over the measured pass 0.000 K
motor,cycle_s,...,path_error_peak_m,...,dwell_error_peak_m
a,1.852000,...,5.346e-4,...,5.856e-5
$ sim-cli analyze t-gantry --config crates/machine-t-gantry/exct-30.toml
a,2.048000,...,4.460e-4,...,3.544e-5
Mit den Shapern steht das Werkzeug beim Verweilen 0,035 mm neben seinem Ziel statt 0,059 mm, und der Zyklus dauert 2,048 s statt 1,852 s.
Das Nachschwingen des Werkzeugs nach einer Verfahrbewegung ist das Signal axis.x.tool_deflection aus run.
Eine zweite Resonanz. --set profile.shaper2_frequency_hz=62 fügt einen zweiten ZVD-Shaper hinzu (Dämpfung profile.shaper2_damping), mit dem ersten gefaltet: neun Kopien des Plans statt drei, und jede Bewegung endet um beide Perioden später. Ein Shaper bei f_s lässt von einer ungedämpften Eigenschwingung bei f den Anteil cos²(π f / (2 f_s)) übrig: einer bei 25 Hz lässt 53 % einer Eigenschwingung bei 62 Hz, beide zusammen lassen von keiner etwas (der Test a_second_shaper_suppresses_a_second_resonance_by_the_zvd_formula). 0, wie in den beiden Standardkonfigurationen, heißt kein zweiter Shaper; die EXCT-30 hat einen bei 17,5 Hz. Er bleibt bei seiner Frequenz, wenn der erste der Pose folgt. optimise probiert ihn dort, wo eine schnellere Einstellung mit dem Shaper noch allein an settling scheitert, bei dieser Frequenz oder, wo sie 0 ist, bei der Resonanz, die die Maschine an der Startpose meldet, wenn diese mehr als 10 % von der Frequenz des ersten Shapers abweicht.
Feldbus-Totzeit und Jitter. --set effects.fieldbus_delay=true lässt die Antriebe die Motorsollwerte profile.fieldbus_delay_cycles Profiltakte zu spät verwenden. --set effects.fieldbus_jitter=true (Feldbus-Jitter der Sollwerte) lässt jedes Telegramm 0 bis profile.fieldbus_jitter_cycles Takte länger brauchen, gleichverteilt und in jedem Lauf gleich (aus drive.noise_seed); ein verspätetes Telegramm lässt den Antrieben das vorige. Bei 1 m/s an der Einzelachse legt ein Takt Jitter den Lagesollwert des Antriebs 0 oder 0,25 rad zurück, je zur Hälfte: ein Effektivwert von 0,18 rad. Das geht mit und ohne die Totzeit.
Grenzen bei dieser Aufgabe:
- Der Sprung ist 1 mm groß. Bei eingeschalteter Reibung zeigt er auch die Haftreibung.
- Der Shaper behandelt höchstens zwei Resonanzen (
profile.shaper2_frequency_hz, oben). Die Eigenschwingung des Gestells und die Steifigkeit der Regelkreise stecken nicht in der Frequenz, die die Maschine meldet. - Der Sollwert jeder Bewegung endet eine Schwingungsperiode später. Wo der Zyklus verweilt oder der Greifer arbeitet, warten beide auf den geformten Sollwert. Der Zyklus oben ist deshalb 196 ms länger: zwei Verweilzeiten, jede wartet etwa eine Periode jedes Shapers (1/25 s + 1/17,5 s = 97 ms). Segmente ohne Verweilzeit und ohne Greiferaktion laufen nach Plan weiter.
- Der größte Teil des Bahnfehlers an der EXCT-30 entsteht, weil das Gestell unter den Beschleunigungskräften nachgibt (0,53 mm Spitze ohne die Shaper, 0,45 mm mit ihnen). Dagegen richtet ein Shaper, der auf die Resonanz des Werkzeugs eingestellt ist, wenig aus.
- Es wurde mit keinem realen Antrieb verglichen. Antriebshersteller dokumentieren ihre internen Filter nicht, und die Totzeiten hier sind ganze Takte. Der Feldbus kann Jitter haben (oben), die Regelkreise im Antrieb selbst haben keinen.
- Die Reserven werden mit einem Zehntel des Nennmoments gemessen. Nahe dem Stillstand dämpft die Coulomb-Reibung des Motors (über 0,5 rad/s geglättet) den Kreis bei dieser Amplitude, die Reserven sind mit Reibung also größer; für Konstantfahrt gelten die ohne Reibung.
- Eine Verstärkung, die bei den Nennwerten in Ordnung ist, kann instabil sein, wenn Rotorträgheit, Riemensteifigkeit oder Induktivität abweichen. Das trat an der Konfiguration der EXCT-30 auf; deren Drehzahlverstärkung wurde deshalb von 1,4 auf 0,6 gesenkt (und später für die Reserven oben auf 0,45). Lassen Sie nach der Reglereinstellung
sensitivitylaufen.
Die Einstellungen in den Antrieb übertragen. Die Verstärkungen und Filter oben sind Konfigurationsschlüssel in den eigenen Einheiten des Simulators. sim-cli parameters MASCHINE listet für jeden Motor die Einstellungen der aufgelösten Konfiguration (Bauteile eingesetzt, das eigene [drive.<id>] eines Motors über dem gemeinsamen) mit dem SINAMICS-Parameter, der sie aufnimmt, und ihrem Wert in der Einheit dieses Parameters:
sim-cli parameters t-gantry --config crates/machine-t-gantry/exct-30.toml
motor,key,value,unit,parameter,name,parameter_value,parameter_unit,basis
Die Spalten motor,key,value,unit sind die der Konfiguration, parameter,name,parameter_value,parameter_unit die des Antriebs (der Name, wie das Siemens-Dokument ihn druckt). basis ist printed, wo Größe und Einheit des Parameters die des Dokuments sind und die Umrechnung nur die Einheit ändert (Nms/rad bleibt, 0,02 s sind 20 ms), derived, wo der Zusammenhang hier aus dem Gedruckten abgeleitet ist, und none, wo es keinen Parameter gibt (die Parameterspalten sind leer; eine Zahl wird nie geraten). Die Familie ergibt sich aus dem Antriebsbauteil der Konfiguration: ein S210-Umrichter aus converters_s210.csv oder ein S120-Motor-Module aus motor_modules_s120.csv (--drive oder [parts] drive); --family s120|s210 nennt sie, wo die Konfiguration keine hat. Eine Konfiguration ohne Katalogantrieb oder mit dem eines anderen Herstellers wird mit einer Meldung abgelehnt, die die beiden Familien nennt (auch die Umrichter 6SL5310 der neuen S210-Generation, die das Dokument nicht behandelt). Nur rotatorische Servomotoren: die Verstärkungen eines Linearmotors haben andere Einheiten (N s/m), ein Schrittmotor oder Asynchronmotor hat keine solche Kaskade. Eine Einstellung, deren Effekt in der Konfiguration aus ist (Kerbfilter, Drehzahlfilter, Überwachung), hat die Simulation nicht benutzt und bekommt keine Zeile. Eine Zeile auf dem Fehlerkanal sagt, dass die Liste eine Hilfe für die Inbetriebnahme ist und an der Firmware-Version des Antriebs zu prüfen: die Zahlen stammen aus dem SINAMICS S120/S150 List Manual 07/2018 (LH1) und der S210-Betriebsanleitung 09/2022, die Seiten stehen in catalog/siemens/parameters_s120.meta.toml und parameters_s210.meta.toml.
| Konfigurationsschlüssel | S120 Servo | S210 | Umrechnung |
|---|---|---|---|
velocity_kp_nm_s_rad | p1460 (Nms/rad) | p1460 | unverändert: Moment an der Motorwelle je Drehzahlfehler an der Motorwelle |
velocity_tn_s | p1462 (ms) | p1462 | Sekunden × 1000 |
kv_1_s | p2538 (1000 rpm) | keiner | p2538 = Kv / 16,667 (das Handbuch druckt die Einheit 1000 rpm; Kv in 1/s ist das 1000/60-Fache, abgeleitet); braucht das Funktionsmodul Lageregelung |
velocity_feedforward_factor | p2534 (%) | keiner | × 100 |
precontrol_balance_s | p2536 (ms) | keiner | Sekunden × 1000. Nicht p1429: das symmetriert den Drehzahlsollwert des Drehzahlreglers für die Momentenvorsteuerung; der Simulator verzögert den Lagesollwert |
current_tn_s | p1717 (ms) | keiner | Sekunden × 1000 (Tn = L/R gilt in der Wicklung des Simulators wie im Antrieb) |
velocity_filter_s | p1441 (ms) | p1441 | Sekunden × 1000 (in beiden ein Tiefpass erster Ordnung auf der Istdrehzahl) |
notch_frequency_hz, notch_bandwidth_hz | Stromsollwertfilter 1: p1657 = 2 (allgemeines Filter 2. Ordnung), p1658 und p1660 = die Frequenz, p1659 = D, p1661 = 0; einschalten mit p1656 Bit 0 | keiner | D = Bandbreite / (2 × Frequenz), aus f_3dB = 2 D f_Kerb des Handbuchs; die Bandbreite des Simulators ist die −3-dB-Breite seiner Kerbe zweiter Ordnung. Die Filter 2 bis 4 sind p1662 bis p1676 |
peak_torque_nm | p1520 und p1521 (Nm) | p1520, p1521 | + und − der Wert; die Grenze des Antriebs ist konstant, die des Simulators fällt zusätzlich mit der Momenten-Drehzahl-Kennlinie |
max_speed_rad_s | p1082 (rpm) | p1082 | × 60/(2π) |
off1_ramp_s, off3_ramp_s | p1121, p1135 (s) | p1121, p1135 | die Rampenzeiten des Antriebs laufen von der Maximaldrehzahl p1082, die des Simulators von der Nenndrehzahl: p1121 = Rampe × p1082 / Nenndrehzahl |
pulse_off_speed_rad_s | p1226 (rpm) | keiner | × 60/(2π) |
blocked_speed_rad_s, blocked_time_s | p2175 (rpm), p2177 (s) | keiner | × 60/(2π); unverändert |
standstill_time_s | p2543 (ms) | keiner | Sekunden × 1000; braucht das Funktionsmodul Lageregelung |
Kein direkter Parameter, als none gelistet, und warum: current_kp_v_a (die Verstärkung des Simulators gehört zu seiner einen Wicklung, dem Dreifachen einer Phase, und Siemens druckt keine Konvention für p1715, auf die sich umrechnen ließe; die S210-Dokumente nennen p1715 nur in der Abhilfe eines Alarms, ohne Eintrag), torque_filter_s (ein Tiefpass erster Ordnung auf dem Momentensollwert: die Stromsollwertfilter nehmen ein PT2 oder ein allgemeines Filter, kein PT1, und die S210 listet keine; p1414 bis p1416 filtern den Drehzahlsollwert, an anderer Stelle der Schleife), torque_feedforward_factor (ein Servo hat keinen Wichtungsparameter: p1402.4 schaltet die Momentenvorsteuerung ein und das Trägheitsmoment, p0341 und p0342 mit p1498 für die Last, legt sie fest; p1496 gibt es nur bei der Vektorregelung), following_error_window_rad und standstill_window_rad (p2546 und p2542 stehen in den Längeneinheiten des Antriebs, die von der Einstellung p2506 der Achse abhängen), ss1_time_s (p9652 ist ein Safety-Integrated-Parameter, hier nicht gelesen) und bei einer S210 jeder Schlüssel, für den sie keine Zeile hat: die S210 hat keinen Lageregler (ihr Kv ist nur lesbar, r5276; die Lageschleife liegt in der übergeordneten Steuerung), in ihren Dokumenten wurden keine Parameter des Stromreglers oder der Stromsollwertfilter gefunden und keine Ruck- oder Beschleunigungsgrenzen. Die Reibkennlinie (p3820 ff.) wird nicht gelistet: sie besteht aus zehn Wertepaaren (Drehzahl, Moment), die die Konfiguration als eigene Listen hält. Weitere Parameternummern, die die Dokumentation nennt, sind keine Einstellungen der ausgelegten Regelkreise und haben keine Zeile: Widerstand und Induktivität der Motorwicklung (p0350, p0356), die Funktionsmodule (p0108, zum Beispiel Bit 6, DSC mit Spline) und die Lebenszeichen-Toleranz eines zyklischen Feldbusses (p0925).
Ein Beispiel von Hand: mit drive.kv_1_s 50 1/s an einer S120 ist p2538 gleich 50 / 16,667 = 3,0; mit einer Kerbe von 60 Hz und einer Bandbreite von 20 Hz sind p1658 und p1660 gleich 60 Hz und p1659 gleich 20 / (2 × 60) = 0,167. --set gilt wie bei jedem Befehl über den aufgelösten Bauteilen: --set drive.velocity_kp_nm_s_rad=0.3 zeigt 0,3 in der Liste, wo ein Motor per Name seine Verstärkung nachgeführt bekäme.
Eine Antriebsaufzeichnung nachfahren und Parameter anpassen
Was eine Aufzeichnung ist. Eine CSV-Datei mit einer Kopfzeile. Benötigte Spalten, bezogen auf die Motorwelle:
| Spalte | Einheit |
|---|---|
time | s |
motor.<id>.angle_setpoint | rad |
motor.<id>.angle | rad |
motor.<id>.speed | rad/s |
motor.<id>.torque | N m |
<id> ist a und b am T-Portal und m an der Einzelachse. Eine Einheit in eckigen Klammern hinter einem Spaltennamen wird ignoriert (time[s]), weitere Spalten ebenso. Eine Datei, die sim-cli run geschrieben hat, ist also eine Aufzeichnung. Eine Zeile je Profiltakt (1 ms) gibt die Lagesollwerte exakt wieder. Mindestens vier Zeilen; eine kürzere Aufzeichnung wird abgelehnt.
Nachfahren. Die Lagesollwerte der Aufzeichnung werden in Werkzeugposen umgerechnet und durch den Simulator gefahren:
$ sim-cli run single-axis --cycle --time 2.5 --set effects.payload=false --set mass.carriage_kg=5.5 --out measured.csv
$ sim-cli replay single-axis --trace measured.csv --set effects.payload=false --out overlay.csv
motor,torque_rms_nm,torque_peak_nm,following_error_rms_rad,following_error_peak_rad
m,2.262567e-2,6.525419e-2,6.285277e-4,4.242306e-3
Das Nachfahren beginnt im Zustand der Aufzeichnung, gleich, welche Startpose die Konfiguration nennt: in Ruhe an einer Pose vor der ersten Zeile fährt es auf deren Lagesollwert mit deren gemessener Geschwindigkeit hoch (glatt, 0,25 s oder länger, mit höchstens einem Viertel der Beschleunigungsgrenze jeder Achse), so dass eine Aufzeichnung, die aus einer längeren Bewegung geschnitten ist, ohne den Ruck eines Starts aus der Ruhe nachgefahren wird; hinter der letzten Zeile läuft die Bewegung weiter, sie wird nicht in die Ruhe gezwungen. Die Pose, an der das Hochfahren beginnt, muss in den Bereichen der Achsen liegen. Wo die Quelle ihren Sollwert im selben Takt aufzeichnet wie die Lage, mit der er verglichen wird (die Aufzeichnung des Simulators hält den Sollwert, mit dem der Antrieb bis zur Zeile gearbeitet hat, den des Takts davor), bekommt der Sollwert in der Zuordnung time_offset_s = ein Lagereglertakt, damit die Schleppfehler vergleichbar werden.
Die „gemessene“ Maschine ist hier der Simulator mit einem Schlitten, der 1,5 kg schwerer ist als in der Konfiguration. Die Tabelle nennt je Motor den Effektivwert und die Spitze der Differenz zwischen gemessenem und simuliertem Drehmoment und Schleppfehler. --out schreibt beides nebeneinander, eine Zeile je Zeile der Aufzeichnung:
time,motor.m.torque_measured,motor.m.torque_simulated,motor.m.speed_measured,motor.m.speed_simulated,motor.m.following_error_measured,motor.m.following_error_simulated
Anpassung, Stufe 1: Starrkörperwerte aus einer Aufzeichnung.
$ sim-cli fit single-axis --trace measured.csv --set effects.payload=false --lang de
quantity,of,config,fitted,standard_error,units
moved_mass_kg,x,6.551676e0,8.072046e0,6.987e-3,kg
viscous_friction_n_s_m,x,2.734540e1,2.674585e1,9.172e-2,N s/m
coulomb_friction_n,x,2.082094e1,2.145799e1,8.114e-2,N
constant_force_n,x,2.001275e-2,2.373566e-2,2.641e-2,N
presliding_stiffness_n_m,x,6.780653e5,7.133195e5,2.504e5,
Bewegte Masse, Achse x: +1.520 kg ± 0.007. Um diesen Betrag sind die mit der Achse bewegten Massen zu ändern. Lastmasse und die Trägheit von Rotor und Scheibe kann die Aufzeichnung nicht trennen.
Viskose Reibung, Achse x: × 0.978 ± 0.003. Die viskose Reibung der Führung der Achse und der Motorwellen ist mit diesem Faktor zu multiplizieren; trennen kann die Aufzeichnung beide nicht.
Coulomb-Reibung, Achse x: × 1.031 ± 0.004. Coulomb- und Haftreibung der Führung der Achse und der Motorwellen sind mit diesem Faktor zu multiplizieren; trennen kann die Aufzeichnung beide nicht.
Konstante Kraft, Achse x: +0.004 N ± 0.026. So viel mehr braucht die gemessene Achse als die Konfiguration: ein Gewicht, eine Neigung oder ein Kabelzug, die der Konfiguration fehlen.
Je Achse wird nach der Methode der kleinsten Quadrate angepasst: Kraft = Masse × Beschleunigung + viskose Reibung × Geschwindigkeit + Coulomb-Reibung × Vorzeichen(Geschwindigkeit) + Konstante. Dieselbe Schätzung läuft über die Aufzeichnung (fitted) und über die Simulation derselben Sollwerte mit der Konfiguration (config). Die Differenz der beiden ist das, worum die Konfiguration danebenliegt: hier +1,520 kg bei wahren 1,5 kg. Die letzte Spalte nennt die Einheit jeder Zeile (die der Achse: kg m², N m s/rad und N m an einer Drehachse). Die Hinweiszeilen gehen auf die Fehlerausgabe. Es wird keine Konfiguration geändert.
Wo die Aufzeichnung sie zeigt, folgen drei Zeilen dazu, was die Reibung über ihren Gleitwert hinaus tut, jede gleich geschätzt auf der Aufzeichnung und auf dem Nachfahren: held_force_n, die Kraft, die die Achse nach ihrer letzten Bewegung im Stillstand hält (eine durch null geglättete Reibung hält keine, eine haftende hält, was die Regler beim Halt aufgezogen hatten); breakaway_force_n, die Reibung bei 1 bis 5 % der Höchstgeschwindigkeit, während die Geschwindigkeit zu einem Halt oder einer Umkehr fällt, gegen den Coulomb-Wert (darüber, wo die Reibung zur Ruhe hin steigt); presliding_stiffness_n_m, aus dem Weg, auf dem die Reibung an jeder Umkehr durch null dreht (Dahls Gesetz: Niveau · ln 2 / σ). Sie werden verglichen, nicht empfohlen: den Vorgleitzustand der Führungen gibt effects.slide_presliding an den Schlitten des Gelenkbaukastens, die LuGre-Borsten an der Einzelachse und den Portalen. Die Reibung der Führungen von der des Motors oder einer Spindelmutter trennen kann die Aufzeichnung nicht: beide wirken als Vorzeichen der Geschwindigkeit, die Anpassung gibt ihre Summe. Die drei Zeilen stehen nur da, wo die Aufzeichnung sie hergibt, im CLI, in Pythons fit und in der App gleich: die gehaltene Kraft nach einer Strecke im Stillstand von mindestens 0,1 s nach ihren ersten 0,1 s, die auf eine Bewegung folgt; die Losbrechkraft auf mindestens zehn Fenstern (110 Zeilen bei 1 ms) langsamer Strecken zu einem Halt oder einer Umkehr; die Vorgleitsteifigkeit aus mindestens zwei Umkehrungen, die die Aufzeichnung auflöst, und nur, wo ihr Standardfehler unter ihrem Wert liegt. An einer Maschine, deren Reibung keinen Vorgleitzustand hat (eine über die Geschwindigkeit geglättete Coulomb-Stufe, LuGre-Borsten), liest die Vorgleitzeile trotzdem als Dahl-σ ab, wie weit die Achse fährt, während ihre Reibung dreht, Nachgiebigkeit des Antriebsstrangs und Verzug der Regler eingeschlossen: ein Wert zum Vergleich mit dem Nachfahren, keiner zum Einstellen. Nicht bei der Anpassung in den Koordinaten der Motoren (Delta, SCARA, Arm).
Anpassung, Stufe 1 in den Koordinaten der Motoren: Delta, SCARA, Arm. Wo die Motoren nicht im Verhältnis zu den Achsen drehen (die Arme des Delta) oder sich die Trägheit, die ein Motor dreht, mit der Stellung ändert (der Ellbogen eines SCARA oder Arms; trace::per_axis_fit entscheidet), regressiert fit --trace die Motormomente auf das eigene Starrkörpermodell der Maschine in Regressorform, τ = Y(q, q̇, q̈) θ: je Motor k τ_k − τ_k,starr = (θ_Nutzlast − 1) × (Anteil der Nutzlast an τ_k,starr) + ΔJ_k q̈_k + b_k q̇_k + c_k sign(q̇_k) + τ0_k, die starren Momente aus Machine::rigid_motor_torque bei den Winkeln, Drehzahlen und Beschleunigungen der Aufzeichnung (die Beschleunigung aus dem Winkel, den ein Geber viel genauer misst als die Drehzahl, die er ableitet). Eine Aufzeichnung, die jede Achse mit mehreren Frequenzen schwingt (hier eine Datei von Posen zu Zeiten alle 10 ms: der Delta von seiner Startpose aus ±0,2 m in x bei 0,6 Hz und in y bei 0,9 Hz, ±0,06 m auf und ab bei 1,1 Hz, über die erste und letzte Sekunde ein- und ausgeblendet, 8 s), eines Delta mit 4 kg Nutzlast statt der 3 der Konfiguration und doppelter Gelenkreibung:
$ sim-cli run delta-d3 --trajectory swing.csv --time 8 --out swing-trace.csv --set mass.payload_kg=4 --set joint.friction_coulomb_nm=0.6 --set joint.friction_viscous_nm_s_rad=0.1
$ sim-cli fit delta-d3 --trace swing-trace.csv --lang de
quantity,of,config,fitted,standard_error,units
payload_factor,payload,9.950890e-1,1.329952e0,2.678e-3,
added_inertia_kg_m2,1,1.911730e-6,7.229015e-7,2.235e-6,
viscous_friction_nm_s_rad,1,5.324047e-3,5.447034e-3,2.083e-5,
coulomb_friction_nm,1,1.073096e-1,1.223851e-1,4.643e-4,
constant_torque_nm,1,-1.529438e-3,-1.119261e-3,8.429e-4,
...
Nutzlast: × 1.337 ± 0.003. Die Masse der Nutzlast ist mit diesem Faktor zu multiplizieren.
...
Coulomb-Reibung an Motor 1: +0.0151 N m ± 0.0005. Um diesen Betrag, an der Motorwelle, ist die Coulomb-Reibung von Motor und Gelenk zu ändern; von den Getriebeverlusten kann die Aufzeichnung sie nicht trennen.
...
Der Faktor der Nutzlast ist 1,330 / 0,995 = 1,337 bei wahren 4 / 3; die Coulomb-Reibung der Gelenke, von 0,3 auf 0,6 N m am Gelenk verdoppelt, ist am Motor hinter dem Getriebe von 20 +0,015 N m (0,3 / 20; die Verzahnung des SP+ 100 gilt mit eingeschaltetem Leerlaufmoment als verlustfrei) und ergibt sich an den drei Motoren zu 0,0151 bis 0,0152 ± 0,0005. (Diese Aufzeichnung ist rauschfrei; der Test the_delta_fit_finds_a_heavier_payload_and_more_joint_friction passt dieselbe Bewegung mit Rauschen an.) Paare von Werten, deren Schätzungen mit mehr als 0,95 korrelieren, nennt die Fehlerausgabe (Von dieser Aufzeichnung nicht getrennt: ...): Bekannt ist nur ihre Summe. Ein Faktor auf den Rest des Starrkörpermodells (Arme, Plattform) wird nicht angepasst: Beim Delta war er eins mit den zusätzlichen Trägheiten und konstanten Momenten der Motoren. Ein Rotor und die Trägheit seines Arms um das Gelenk sind eine zusätzliche Trägheit. Bei Wellgetrieben (denen des SCARA, Wirkungsgrad 0,75) wachsen die Verluste mit dem Moment einer schwereren Nutzlast und zeigen sich als Coulomb-Reibung an dem Gelenk, das sie trägt.
Glieder eines Arms oder SCARA, und eine Nutzlast, die kommt und geht. Bei einer Maschine aus einer URDF-Kette hat der Regressor zusätzlich je Glied die Änderung der starren Momente mit verdoppelter Masse, statischem Moment und Trägheit (link_mass_factor) und mit geändertem statischem Moment entlang x, y oder z seines Rahmens (link_first_moment_x_kg_m, …), die übrigen Größen des Glieds gehalten; die Momente sind in jeder linear. Welche davon eine Aufzeichnung trennt, findet die Anpassung selbst: Sie nimmt die Werte der Nutzlast und der Motoren, dann die jedes Glieds, und behält einen Wert nur, wo dann keine Varianz von den anderen um mehr als 100 aufgebläht wird (identify::WEAK); jeder andere wird in die vor ihm gefaltet und in dem genannt, was er verbindet (fit-combined), oder als ganz ohne Wirkung (fit-no-effect: das statische Moment eines Glieds entlang der Achse seines eigenen Gelenks). Am SCARA: Der Massenfaktor von Arm 1 fügt der Trägheit von Motor 1 0,3048 / 100² = 3,048e-5 kg m² hinzu und sonst nichts; die von Pinole und Flansch gehen mit 1,5 / 3 und 1 / 3 in den der Nutzlast ein (eine Masse auf einer Achse). Mit Arm 2 1,25- und der Pinole 1,5-mal schwerer als in der Konfiguration ändert sich der Wert der Nutzlast um + 0,445 ± 0,007, was diese Anteile zu 0,441 machen. Am Sechsachsarm (Getriebe starr) ist der Massenfaktor von Glied 2 ein eigener Wert: + 0,577 ± 0,013 bei 1,2-mal Glied 2 und 1,3-mal Glied 3 (0,565 über die Anteile); mit elastischen Getrieben, wie ausgeliefert, + 0,558 ± 0,025, die Last dort, wo die Verdrehung jedes Getriebes sie hält. Mit stillgehaltener Schulter wird er gefaltet und so genannt. Eine während der Aufzeichnung gegriffene oder abgelegte Nutzlast wird in den Momenten gefunden und vorher und nachher angepasst (payload_step_s): am Delta ergab ein Griff bei 3,5 s 3,503 s, × −0,01 ± 0,01 vorher und × 0,99 ± 0,01 nachher; ein Griff bei 2,5 s und ein Ablegen bei 5,5 s in einer Aufzeichnung 2,489 und 5,502 s, × 0,006, 0,990, 0,007. Bei der Anpassung je Achse ist ein Wechsel die Änderung des Faktors der Nutzlast auf jeder Achse (fit-axis-payload-step). Im Aufzeichnungsfeld der App tragen die Zeilen der Glieder deren Namen, der Wechsel eine eigene Zeile.
Anpassung, Stufe 2: Riemensteifigkeit aus einem Frequenzgang.
$ sim-cli sweep single-axis --from 50 --to 130 --count 30 --amplitude 1.5 --set belt.stiffness_ea_n=3.5e5 --out sweep.csv
$ sim-cli fit single-axis --sweep sweep.csv --amplitude 1.5 --lang de
quantity,of,config,fitted,standard_error,units
resonance_hz,m,8.452246e1,7.242377e1,1.285e0,Hz
resonance_damping,m,7.932269e-2,7.912026e-2,,
Steifigkeit zwischen Motor und Last: × 0.699 ± 0.029. Die Riemensteifigkeit ist mit diesem Faktor zu multiplizieren. Das gilt erst, wenn die Massen stimmen: diese zuerst berichtigen und erneut messen.
Die Datei mit dem Frequenzgang braucht die Spalten frequency_hz und gain_rad_s_per_nm (Motormoment zu Motordrehzahl). fit misst denselben Frequenzgang an der Konfiguration, bei den Frequenzen der Datei, am Motor --sweep-motor N (Standard 0) mit --amplitude NM (Standard wie bei sweep), und vergleicht, wo der Einbruch liegt. Hat der Frequenzgang mehr als einen Einbruch (das T-Portal hat drei, bei etwa 22, 62 und 107 Hz), wird in beiden der mit der niedrigsten Frequenz verglichen. Der „gemessene“ Riemen hat hier das 0,7-Fache der Steifigkeit; die Anpassung ergibt 0,699 ± 0,029.
Anpassung, Stufe 2 ohne Frequenzgang: Riemensteifigkeit aus den Bewegungen.
$ sim-cli run single-axis --cycle --time 3 --out cycle.csv --set belt.stiffness_ea_n=3.5e5 --set effects.payload=false
$ sim-cli fit single-axis --trace cycle.csv --stiffness --set effects.payload=false --lang de
quantity,of,config,fitted,standard_error,units
...
stiffness_factor,belt.stiffness_ea_n,1.000000e0,6.976264e-1,1.297e-3,
ringing_rms_nm,belt.stiffness_ea_n,,6.463437e-3,,
ringing_left_rms_nm,belt.stiffness_ea_n,,1.491646e-4,,
...
Steifigkeit zwischen Motor und Last, aus den Bewegungen: × 0.698 ± 0.001. ...
--stiffness fährt die Aufzeichnung mit der Riemensteifigkeit (belt.stiffness_ea_n oder dem Schlüssel, den --stiffness-key nennt) mal einem Faktor nach und nimmt den Faktor, mit dem die Motormomente so nachschwingen wie in der Aufzeichnung: die Momente abzüglich ihres Mittels über ±10 ms, kleinste Quadrate über alle Motoren und Zeilen; neun Nachläufe von 0,25 bis 4, dann zweimal Parabeln durch sieben Nachläufe (24 insgesamt, etwa 1 s bei der Einzelachse). Der Nachlauf hat die Regelkreise, Filter und Reibung der Konfiguration, die das Nachschwingen dämpfen wie an der Maschine. Der Standardfehler kommt aus der Krümmung der Quadratsumme und daraus, wie weit die Nachläufe um die Parabel streuen. Die Zeilen ringing_rms_nm und ringing_left_rms_nm sind das Nachschwingen in der Aufzeichnung und was der angepasste Nachlauf davon übrig lässt. Eine Aufzeichnung, deren Bewegungen den Riemen nicht genug anregen, wird mit Code 2 abgelehnt (Keine Steifigkeit aus dieser Aufzeichnung: ...), wenn der Standardfehler über einem Zehntel des Faktors liegt oder der beste Faktor am Rand von 0,25 bis 4. Bei der Einzelachse mit Rauschen wird eine Bewegung von 2 mm mit 1 m/s³ und 0,2 m/s² abgelehnt; zwei Bewegungen von 0,8 m an den Grenzen der Konfiguration ergeben 0,708 ± 0,015 für 0,7.
Was die Anpassung ermitteln kann und was nicht:
| Wird ermittelt | Wird nicht ermittelt oder nicht getrennt |
|---|---|
| Bewegte Masse je Achse (Rotoren und Riemenscheiben als Masse an der Achse gerechnet) | Lastmasse gegenüber der Trägheit von Rotor und Riemenscheibe |
| Viskose Reibung je Achse | Führungsreibung gegenüber der Reibung der Motorwellen |
| Coulomb-Reibung je Achse | Die Dämpfung des Riemens gegenüber der Reibung (die Dämpfung des Einbruchs enthält Reibung und Getriebe) |
| Konstante Kraft je Achse (Gewicht, Neigung, Kabelzug) | Ein Rotor gegenüber seinem Arm oder Glied bei Delta, SCARA oder Arm: eine zusätzliche Trägheit je Motor |
Ein Faktor für die Steifigkeit zwischen Motor und Last, aus einem Frequenzgang oder aus den Bewegungen einer Aufzeichnung (--stiffness) | Welche Feder zwischen Motor und Last danebenliegt: Der Faktor umfasst alle |
| Bei Delta, SCARA oder Arm: die Masse der Nutzlast als Faktor, je Motor zusätzliche Trägheit, viskose und Coulomb-Reibung und konstantes Moment an der Welle | Ein Faktor auf die Massen von Armen und Plattform (er ist eins mit Trägheiten und konstanten Momenten der Motoren); Reibung gegenüber Getriebeverlusten |
Totzeiten und Filter des Antriebs: je Motor mit sim-cli identify (unten), nicht je Achse | |
| Spiel, Zahnsteifigkeit, Steifigkeit von Gestell und Z-Achse |
Den Zwilling beurteilen. replay --tolerance NAME=GRENZE,... legt fest, wie weit das Nachfahren von der Aufzeichnung abweichen darf: die Namen sind die Spalten der Tabelle des Nachfahrens (torque_rms_nm, torque_peak_nm, following_error_rms_rad, following_error_peak_rad); beurteilt werden nur die Grenzen, die Sie angeben. Die Tabelle hat dann eine Zeile je Motor und Grenze, motor,quantity,value,limit,result, mit ok oder FAIL und dem Code 1 bei einem FAIL (siehe die Beendigungscodes oben); ohne die Option ist die Tabelle die oben gezeigte. fit --within N beurteilt die Anpassung: zwei Spalten apart (der Abstand zwischen angepasstem Wert und Wert der Konfiguration in Standardfehlern, das „Apart“ des Datensatzberichts) und result kommen hinzu; eine Zeile mit mehr als N Standardfehlern Abstand sagt FAIL, eine Zeile ohne Standardfehler oder ohne Wert der Konfiguration (die Zeilen des Schwingens, die Nutzlaststufen) sagt not judged. Code 1, wo eine Zeile durchfällt.
$ sim-cli replay single-axis --trace measured.csv --set effects.payload=false --tolerance torque_rms_nm=0.005,torque_peak_nm=0.02
motor,quantity,value,limit,result
m,torque_rms_nm,2.262567e-2,5.000000e-3,FAIL
m,torque_peak_nm,6.525419e-2,2.000000e-2,FAIL
Eine Anpassung zurückschreiben. fit ... --write DATEI schreibt die Konfiguration (die Datei von --config mit den --set-Werten und Bauteilen der Befehlszeile, sonst die Standardkonfiguration der Maschine) nach DATEI, wobei jede angepasste Größe, die genau ein Schlüssel von ihr ist, auf den angepassten Wert gesetzt wird, und daneben bounds.SCHLÜSSEL = [Wert - K * Fehler, Wert + K * Fehler], mit K aus --sigmas K (standardmäßig 2: etwa 95 % bei normalverteiltem Fehler). Eine Grenze wird dorthin zurückgenommen, wo die Maschine sie annimmt (eine Steifigkeit muss über 0 bleiben). Heute ist das der Faktor auf die Steifigkeit von --stiffness (Wert = Wert der Konfiguration mal Faktor, ebenso der Fehler). Der Faktor der Last einer Gelenkanpassung (payload_factor) wird nicht geschrieben: auf einem Zyklus, der greift und ablegt, hält die Aufzeichnung die Last nur einen Teil der Zeit, und der Faktor ist ebenso ein Anteil dieser Zeit wie der Masse (der Zyklus des Deltas mit 4 kg gegen seine 3 kg ergab das 0,72 ± 0,28-fache der Konfiguration). Die anderen Größen sind die Werte der Aufzeichnung für das, was mehrere Schlüssel zusammen ausmachen (die bewegte Masse einer Achse ist Schlitten und Last und was sonst bewegt wird; eine Reibung, die Führung und Motor teilen), kein einzelner Schlüssel kann den Unterschied ohne eine Annahme über die Aufteilung aufnehmen; jede wird mit diesem Grund auf der Fehlerausgabe genannt und nicht geschrieben. Ein Schlüssel, den ein genanntes Bauteil ([parts]) setzt, wird auch nicht geschrieben, weil das Bauteil ihn überschriebe. Wo die Anpassung scheiterte oder nichts zu schreiben ist, wird nichts geschrieben; DATEI wird nur überschrieben, wo Sie sie nennen (nennen Sie die Eingabekonfiguration, um sie an Ort und Stelle zu aktualisieren). Die Kommentare einer geschriebenen Datei bleiben nicht erhalten, und ihre Schlüssel stehen in ihren Tabellen alphabetisch (die Werte sind dieselben). verdicts --bands liest die geschriebenen Grenzen wie alle anderen. Nicht bei fit --dataset.
Grenzen bei dieser Aufgabe:
- Der Greifer. Eine Aufzeichnung sagt nicht, wann eine Nutzlast kommt und geht. Die Aufzeichnung eines Zyklus wird deshalb mit der Nutzlast so nachgefahren, wie die Konfiguration sie am Start hat. Die Zyklusaufzeichnung einer Maschine, die greift, angepasst gegen eine Konfiguration mit eingeschalteter Nutzlast, liefert ein falsches Ergebnis: Der Standardzyklus der Einzelachse ergibt −0,839 kg. Zeichnen Sie ohne Nutzlast auf oder schalten Sie sie wie oben ab.
start.poseder Konfiguration muss dort liegen, wo die Aufzeichnung beginnt.- Eine Achse, die die Aufzeichnung nicht in beide Richtungen bewegt, wird nicht angepasst (
Achse x: nicht angepasst. Die Aufzeichnung muss sie in beide Richtungen bewegen.). Eine Richtung allein kann Coulomb-Reibung nicht von einer konstanten Kraft trennen. - Eine falsche Reibung zeigt sich als einige Prozent falsche Masse und umgekehrt; das liegt an den Getriebeverlusten. Ändern Sie die Konfiguration und passen Sie erneut an.
- Der Steifigkeitsfaktor gilt erst, wenn die Massen stimmen.
- Ein Frequenzgang mit kleiner Amplitude zeigt bei eingeschalteter Reibung keinen Einbruch. Ein Frequenzgang mit 0,05 N m ergibt
Keine Steifigkeit angepasst: Der gemessene Frequenzgang oder der der Konfiguration zeigt keinen Einbruch mit beiden Flanken im gemessenen Bereich.Das ist ein Fehler wie jeder andere:fitendet mit dem Code 2, nachdem es geschrieben hat, was eine Aufzeichnung ergab. Der Frequenzgang muss außerdem den Einbruch und seine beiden Flanken enthalten. Seine Frequenzen müssen über null liegen. - All das wurde an Aufzeichnungen geprüft, die der Simulator selbst erzeugt hat, mit zusätzlichem Rauschen. Eine Aufzeichnung eines realen Antriebs wurde nicht gelesen.
Aufzeichnungen aus den Werkzeugen der Hersteller
replay, fit und identify nehmen neben --trace DATEI auch --map DATEI: eine Zuordnungsdatei (TOML), die sagt, welche Signale eines Exports Lagesollwert, Lage, Drehzahl, Moment und Momentsollwert sind und wie ihre Einheiten (LU, Inkremente, mm, 1/min, %, ‰) in rad, rad/s und N m an der Motorwelle umzurechnen sind. Gelesen werden:
| Format | Export | Was belegt ist |
|---|---|---|
sinamics | Trace in Startdrive / TIA Portal, „Messung exportieren“ als CSV | Siemens beschreibt den Aufbau der CSV-Datei nicht; er ist angenommen. Das eigene Format .ttrecx ist nicht beschrieben und wird nicht gelesen. |
twincat | TwinCAT 3 Scope View, Export als CSV mit vollem Kopf | Der Aufbau echter Exporte von Scope 3.4. .svdx ist nicht beschrieben und wird nicht gelesen. |
codesys | CODESYS-Trace als .trace, .txt oder .trace.csv | Echte Exporte einer auf CODESYS V3.5 SP20 beruhenden Umgebung. |
csv | jede andere Tabelle |
Trenner (Komma, Semikolon, Tab) und Dezimalkomma werden erkannt, ebenso Einheiten in [..] oder (..) hinter dem Namen, eine Einheitenzeile, Kopfzeilen mit Angaben über der Tabelle, Zähler, die überlaufen (wrap), und Signale mit eigener Abtastzeit oder eigenem Zeitversatz (time_offset_s). Eine Vorlage mit einem Block je Format liegt in datasets/template/map.toml.
In der App steht die Zuordnungsdatei im Feld „Zuordnung“ neben der Aufzeichnung unter „Nachfahren und anpassen“. Die Motoren der Zuordnung müssen die der Maschine sein, in ihrer Reihenfolge.
Identifikation ohne Konfiguration
sim-cli identify --trace trace.csv --map map.toml --out bericht.csv --overlay vergleich.csv
passt den Antriebsstrang eines Motors aus seiner eigenen Aufzeichnung an, ohne Konfiguration der Maschine: Gesamtträgheit am Motor, viskose und Coulomb-Reibung, Stribeck-Reibung (nur wo die Aufzeichnung den Abfall deutlich zeigt), die Vorgleitsteifigkeit σ0 des LuGre-Modells, ein konstantes Moment, und Verstärkung, Verzögerung und Totzeit vom Momentsollwert zum Moment (Stromregelkreis, wo der Sollwert zugeordnet ist) und vom Lagesollwert zur Lage (Lageregelkreis). Das ist die Stufe 3 der Anpassung. --motor N wählt den Motor.
Steifigkeit und Dämpfung zwischen Motor und Last als Zweimassenmodell kommen aus einem gemessenen Frequenzgang (--sweep DATEI), aus einer Aufzeichnung mit Rauschanregung (--from HZ --to HZ) oder aus dem Nachschwingen nach einem Momentsprung (--step-from S --step-to S --motor-inertia KGM2).
Jeder Wert steht mit seinem Standardfehler und seinem 95-%-Intervall in der Tabelle, und jedes Modell sagt, wie gut es die Aufzeichnung trifft (*_fit_percent). In der App erscheint dieselbe Tabelle unter „Was der Trace für sich sagt, je Motor“.
Welche Testbewegungen aufzuzeichnen sind, mit welcher Abtastzeit, und wie das Ergebnis zu lesen ist, beschreibt Measuring a drive train (englisch). Gemessene Datensätze werden in datasets/ veröffentlicht und mit sim-cli check-dataset ORDNER geprüft, auch auf personenbezogene Angaben.
Geprüft ist das an synthetischen Aufzeichnungen (LuGre-Reibung, Geberauflösung, Rauschen, Verzögerung des Stromregelkreises) und an Dateien, die nach dem Aufbau der Herstellerexporte gebaut sind. Eine Aufzeichnung eines realen Antriebs wurde noch nicht gelesen.
Sehen, wohin Moment und Energie gehen
Sechs Ansichten nehmen jeweils einen Effekt für sich heraus, statt ihn im Momentverlauf zu lassen: wofür jeder Motor sein Moment braucht, wohin die Energie eines Zyklus geht, was die Reibung jeder Führung tut, wie warm Wicklungen, Getriebe und Führungen werden, was jeder Riemenabschnitt trägt und was ein Effekt ändert, wenn man ihn ausschaltet. Wie jede Größe berechnet wird, steht in der Modellreferenz.
Momentenaufteilung. --breakdown DATEI schreibt je Motor Spitze und Effektivwert der vier Anteile seines Moments über den analysierten Durchlauf, und die des Moments selbst:
$ cargo run -q --release -p sim-cli -- analyze t-gantry --breakdown breakdown.csv
$ cat breakdown.csv
motor,part,peak_torque_nm,rms_torque_nm,torque_unit
a,inertia,2.903131e-1,6.233214e-2,N m
a,gravity,1.404312e-1,1.223996e-1,N m
a,friction,1.457093e-1,8.308908e-2,N m
a,rest,5.968775e-2,1.123096e-2,N m
a,torque,5.598153e-1,1.689952e-1,N m
b,...
- inertia (Trägheit): was jede bewegte Masse beschleunigt, und die Rotoren und Riemenscheiben, die sich mit der Last drehen.
- gravity (Schwerkraft): was die Last gegen ihr Gewicht hält. Beim T-Portal hält jeder Motor (m_z + m_Trume) g r / (2 i) = 0,140 N m (m_Trume die 0,16 kg der senkrechten Riementrume), einer nach oben, einer nach unten.
- friction (Reibung): Führungen, Motorwellen und Bremsen, Getriebeverluste, Umlenkrollen, Energiekette.
- rest (Rest): alles andere, vor allem Riemen und Getriebe: die Last, die am Riemen hinter den Motoren zurückbleibt, Schwingen, Lose. Dazu Welligkeit und Rastmoment, Zahneingriff, Prozesskraft und Endanschläge.
In jedem Augenblick ergeben die vier Anteile zusammen das Motormoment. Ihre Spitzen und Effektivwerte tun das nicht: Sie fallen zu verschiedenen Zeiten an. Ein Rest, der gegen das Moment groß ist, heißt: Riemen oder Getriebe tragen viel; im starren Modell ist er fast null.
Energiebilanz. --budget DATEI schreibt, wohin die über den Durchlauf aus der Einspeisung bezogene Energie ging, in Joule und als Anteil daran:
$ cargo run -q --release -p sim-cli -- analyze t-gantry --budget budget.csv
$ cat budget.csv
item,energy_j,share
supply,1.442442e2,1.000000
copper.a,3.450455e0,0.023921
copper.b,2.970988e0,0.020597
resistor,6.666756e0,0.046219
discharge,0.000000e0,0.000000
line_module,2.884884e0,0.020000
power.guide_x,5.099448e1,0.353529
power.guide_z,1.914197e1,0.132705
...
power.shaft_a,2.454090e1,0.170134
power.shaft_b,2.454094e1,0.170135
power.gearbox_a,4.569203e0,0.031677
power.gearbox_b,4.484409e0,0.031089
power.belt,2.756173e-3,0.000019
...
windings,-2.897288e-7,-0.000000
capacitors,-4.798364e-4,-0.000003
energy.kinetic,6.373269e-9,0.000000
energy.potential,-2.010274e-7,-0.000000
energy.elastic,1.020049e-8,0.000000
payload,-2.268427e-4,-0.000002
unaccounted,-4.028368e-4,-0.000003
| Zeile | Bedeutung |
|---|---|
supply | Energie aus der Einspeisung. Mit effects.dc_link was der Gleichrichter (oder das Line Module) aus dem Netz in den Zwischenkreis bezogen hat; ohne, was die Antriebe bezogen haben, weniger was sie zurückgespeist haben |
copper.<motor> | Kupferverlust jeder Wicklung |
resistor | Der Bremswiderstand (mit effects.dc_link) |
discharge | Mit effects.dc_link: was die Zwischenkreise abgeschalteter Antriebe über ihre Entladewiderstände verloren haben (ratings.dc_link_discharge_time_constant_s) und der Gleichrichter nachgeliefert hat; 0, solange die Antriebe an sind |
mains | Mit effects.regenerative_supply: was das Line Module ins Netz zurückgespeist hat |
line_module | Mit effects.dc_link: was der Gleichrichter oder das Line Module von dem verloren hat, was es aufgenommen hat (2 % am T-Portal), mit effects.regenerative_supply auch von dem, was es zurückgespeist hat |
power.<ort> | Jeder Verlust der Maschine: Führungsreibung je Führung, Umlenkrollen, Energiekette, Wellenreibung und Bremse je Motor, Getriebe je Motor, Riemendämpfung, Dämpfung von Rahmen und Z-Führung, Endanschläge, und power.other für Welligkeit, Rastmoment, Zahneingriff und Prozesskraft (diese können Energie abgeben wie aufnehmen) |
windings, capacitors | Was die Induktivität der Wicklungen und die Zwischenkreiskondensatoren am Ende mehr halten als am Anfang |
energy.kinetic, .potential, .elastic | Was die Maschine am Ende des Durchlaufs mehr hält als am Anfang; bei einem wiederholten Zyklus nahe null |
payload | Energie, die mit der abgesetzten Nutzlast ging, weniger der, die mit der aufgenommenen kam |
crash | Mit effects.crash: die Arbeit, die das Zurückdrücken der Hindernisse der Maschine genommen hat (was ihre Dämpfung verlor und ihre Federn halten) |
unaccounted | Was die Zeilen von der Einspeisung übrig lassen. Unter 0,1 % davon auf jeder Konfiguration, auch den verlustfreien. Die elektrische Seite allein (Einspeisung gegen Kupfer, Widerstand, Netz, Line Module, Wicklungen, Kondensatoren und die Arbeit der Momente an den Wellen) wird auf ein Millionstel der Einspeisung geprüft: Der Wicklungsstrom wird zusammen mit der Mechanik integriert |
Beim Standard-T-Portal nehmen die Führungen die Hälfte, die Motorwellen ein Drittel, Getriebe, Wicklungen, Bremswiderstand und Gleichrichter je einige Prozent; die Riemendämpfung fast nichts.
Reibung je Führung. Die App zeichnet je Führung die Reibkraft beim stationären Gleiten über der Geschwindigkeit (Coulomb-Niveau, viskoser Anteil und der Stribeck-Anstieg zum Stillstand hin) bei der jetzigen Führungslast, und den Punkt, an dem die Führung gerade ist. Ein Punkt neben der Kurve ist eine Führung, die nicht stationär gleitet: beim Losbrechen, Umkehren oder Halten. Die Kommandozeile hat diese Ansicht nicht; sim-cli run schreibt dieselben Signale (axis.<id>.friction_speed, _coulomb, _viscous, _stiction, _load_scale).
Die Momentanteile, Verlustleistungen und Energieanteile sind ebenfalls Signale: sim-cli run schreibt sie, die Scopes der App können sie zeigen und eine SPS kann sie lesen.
Temperaturen. Die App zeichnet die Übertemperatur jeder Motorwicklung über das Zeitfenster der Oszilloskope und, mit dem Effekt „Erwärmung von Getriebe und Führung“ (effects.part_heating, standardmäßig aus), die jedes Getriebes und jeder Führung. Jedes davon erwärmt sich mit seinem eigenen Verlust (power.gearbox_*, power.guide_*) über einen Wärmewiderstand, mit einer Zeitkonstante und bis zu einer zulässigen Übertemperatur; alle drei stehen in [thermal] der Konfiguration. Die Tabelle zeigt für jedes die Übertemperatur jetzt, ihren Endwert, wenn der analysierte Zyklus lange wiederholt wird (für ein Bauteil: Wärmewiderstand mal mittlerer Verlust), die zulässige Übertemperatur und den Anteil des Endwerts daran, über 100 % mit „(über dem Zulässigen)“ markiert. Der Anteil ist der des Endwerts, weil die Übertemperatur jetzt viele Minuten lang nur wenige Prozent davon ist; gearbox-thermal und guide-thermal prüfen denselben Endwert. Ein Direktantrieb (EXCT-30: Getriebeübersetzung 1) hat kein Getriebe, das sich erwärmt; sein power.gearbox_* ist die Dämpfung der Kupplung und heißt so. In der 3D-Ansicht nehmen Motorgehäuse, Getriebe, der Schlitten und (T-Portal) die Z-Achse die Farbe ihrer Übertemperatur gegenüber der zulässigen an: blau kalt, gelb bei der Hälfte, rot bei der zulässigen, magenta darüber; die Ansicht zeichnet diese Skala. Mit den Standard-Zeitkonstanten von 20 bis 40 Minuten zeigt eine Minute der Oszilloskope nur einen langsamen Anstieg; wer ein Bauteil einschwingen sehen will, verkürzt seine Zeitkonstante. Mit dem Effekt „Temperaturen wirken auf Reibung, Getriebeverluste und Riemensteifigkeit“ (effects.thermal_feedback, standardmäßig aus) erwärmen sich die Bauteile ebenso und wirken zurück: die viskose Reibung einer Führung folgt der Viskosität ihres Schmierstoffs (das 0,28-Fache bei 30 K über 20 °C), ein Getriebe verliert weniger, wenn sein Öl dünner wird (ein Getriebe mit 95 % hat bei 30 K 96,8 %, wenn die Hälfte seines Verlusts als viskos gilt), und die Steifigkeit des Riemens folgt ein wenig der Umgebungstemperatur. Die Werte stehen in [thermal_feedback]: Umgebungstemperatur, Bezugstemperatur, für die Reibung und Wirkungsgrad der Konfiguration gelten, Viskositätsverlauf des Schmierstoffs, viskoser Anteil des Getriebeverlusts und Steifigkeitsverlust des Riemens je Kelvin. Der Effekt ersetzt effects.temperature, dessen zwei von Hand gesetzte Faktoren nicht verwendet werden, solange er an ist. In einem Zyklus von Sekunden erwärmen sich die Bauteile mit den Standard-Zeitkonstanten von 20 bis 40 Minuten kaum; die Ergebnisse des Zyklus ändern sich daher nur, wo die Umgebungs- von der Bezugstemperatur abweicht. Wer ein Bauteil dort einschwingen sehen will, wo Verlust und Wärmeabfuhr sich ausgleichen, verkürzt seine Zeitkonstante. Die Kommandozeile schreibt die Übertemperaturen mit run (Signale motor.<id>.winding_temperature, temperature.<bauteil>).
Riemenzähne und Trume. Mit effects.belt_tooth_jump (standardmäßig aus) steigen die Zähne des Riemens aus den Lücken einer Motorscheibe, wenn die Zugkraft dort übersteigt, womit die Kraft im Leertrum sie hält (belt.tooth_jump_factor mal Zähne im Eingriff mal Teilung durch Radius, mal Kraft im Leertrum: teilen sich beide Trume die Zugkraft gleich, mit den Standardwerten etwa das 1,5-Fache der Vorspannung), und der Riemen rutscht einen Zahn weiter oder zurück. Die Signale pulley.<motor>.tooth_jumps zählen die Sprünge, pulley.<motor>.tooth_slip ist der Schlupf des Riemens über der Scheibe; power.tooth_jump ist, was die Sprünge verbrauchen, in der Energiebilanz. Jeder Sprung im Zyklus lässt belt-tooth-jump durchfallen. Mit effects.belt_span_vibration (standardmäßig aus) hat jedes freie Trum seine erste Quereigenfrequenz, Wurzel(Kraft / Masse je Meter) / (2 · Länge), als Signal belt.span.<i>.frequency, und belt.span_detuning gibt an, wie weit die nächstliegende davon von dem entfernt ist, was der Antrieb anregt: Zahneingriff (Riemengeschwindigkeit durch Teilung) sowie Drehmomentwelligkeit und Rastmoment der Motoren. belt-span-resonance fällt durch, wo ein Trum bei konstanter Geschwindigkeit der Achsen näher als ratings.belt_span_resonance_band (10 %) an einer Anregung läuft. Berechnet werden nur die Frequenzen, nicht wie weit ein Trum ausschwingt.
Riemenabschnitte. Je Abschnitt die Riemenkraft (die Vorspannung gestrichelt) und die Dehnung in mm über das Zeitfenster der Oszilloskope, und eine Tabelle beider Werte jetzt mit der zulässigen Kraft (ratings.belt_max_tension_n) und dem Anteil daran. Die zulässige Kraft ist nicht eingezeichnet: beim Fünffachen der Vorspannung würde sie die Linien flach drücken. Die Dehnung ist die Länge des Abschnitts weniger seines ungedehnten Riemens, ein Abschnitt bei Vorspannung ist also auch gedehnt (0,18 mm auf 0,3 m bei 300 N und EA = 5·10⁵ N). Die 3D-Ansicht färbt jeden Abschnitt nach derselben Kraft: das eigene Dunkelgrau des Riemens bei Vorspannung, darüber zu Rot hin (rot bei doppelter Vorspannung), darunter zu Blau hin (blau, wenn er schlaff ist); die Ansicht zeichnet diese Skala mit ihren Zahlen. sim-cli run schreibt die Signale belt.<i>.tension und belt.<i>.stretch.
Ein Effekt ein und aus. compare --effect NAME lässt den analysierten Durchlauf des Zyklus zweimal laufen, mit effects.NAME ein und aus, gleich wie die Konfiguration ihn hat, und schreibt die gewählten Signale nebeneinander, einmal je Millisekunde; --differences DATEI schreibt je Signal Spitze und Effektivwert von ein weniger aus:
$ cargo run -q --release -p sim-cli -- compare t-gantry --effect guide_friction --signal motor.a.torque --signal motor.b.torque --out compare.csv --differences diff.csv
$ head -3 compare.csv
time[s],motor.a.torque.on[N m],motor.a.torque.off[N m],motor.b.torque.on[N m],motor.b.torque.off[N m]
0.0000,7.520407591e-2,1.125048092e-1,-1.330958343e-1,-1.125863287e-1
0.0010,7.469869879e-2,1.120541440e-1,-1.334750278e-1,-1.132823387e-1
$ cat diff.csv
signal,unit,peak_difference,rms_difference
motor.a.torque,N m,1.001877e-1,4.635342e-2
motor.b.torque,N m,9.671330e-2,4.672720e-2
Ohne --signal wird jedes Signal geschrieben. In der App wählt der Teil „Effekt ein und aus“ der Effekt-Ansichten den Effekt und eine Größe der Oszilloskope (Moment, Drehzahl, Schleppfehler, …), lässt den Vergleich im Hintergrund mit der Konfiguration laufen, wie sie ist, und legt beide Läufe übereinander: ein durchgezogen, aus gestrichelt in derselben Farbe, eine Farbe je Achse oder Motor, mit einer Tabelle der Differenz. Ein Effekt, der den Zeitablauf des Zyklus ändert (Eckenverschleifen, Input Shaping), wird nur über die Zeit verglichen, die beide Durchläufe haben.
Signale aufzeichnen, Antriebe sperren
$ sim-cli run single-axis --cycle --time 2.5 --out trace.csv
Schreibt jedes Signal als CSV, eine Spalte je Signal mit der Einheit in der Kopfzeile (axis.x.position[m], motor.m.torque[N m], …).
| Option | Wirkung |
|---|---|
--move a,b | Eine Punkt-zu-Punkt-Bewegung zu dieser Pose, alle Achsen synchron |
--cycle | Den konfigurierten Zyklus fahren |
--trajectory FILE, --path FILE [--time-optimal] | Siehe Eine Bahn fahren |
| keine davon | Die Maschine steht in ihrer Startpose |
--time SECONDS | Simulierte Zeit. Standard 2 |
--every STEPS | Jeden N-ten Basisschritt schreiben. Standard 16, das ist eine Zeile je Millisekunde |
--disable-at SECONDS | Die Antriebe zu diesem Zeitpunkt sperren |
--stop-at SECONDS [--stop-category 0|1|2] | Die Maschine zu diesem Zeitpunkt in dieser Stoppkategorie anhalten (ohne Angabe 0; siehe Not-Halt) |
Die Signale (in Klammern der Name, unter dem die App die Größe zeigt):
| Signal | Einheit | Bedeutung |
|---|---|---|
time | s | Simulierte Zeit |
payload | 0 oder 1 | Ob die Nutzlast angehängt ist (Angehängt) |
axis.<id>.position, .velocity | m, m/s | Position und Geschwindigkeit des Werkzeugs (am T-Portal in X: der Werkzeugspitze über dem Boden, also Schlitten auf dem Träger plus frame.deflection plus axis.x.tool_deflection) |
axis.<id>.position_setpoint, .velocity_setpoint, .acceleration_setpoint | m, m/s, m/s² | Lagesollwert, Geschwindigkeitssollwert und Beschleunigungssollwert der Steuerung, nach dem Input Shaping und vor der Feldbus-Totzeit, wie der letzte Profiltakt sie gesetzt hat |
setpoint_age | s | Wie lange der Profiltakt diese Sollwerte zum Zeitpunkt der Abtastung schon hält (0 bis ein Takt): der Plan jetzt ist Lage + (Geschwindigkeit + Beschleunigung · Alter / 2) · Alter, wogegen der Lagefehler des Werkzeugs gemessen wird |
axis.<id>.following_error | m | Schleppfehler der Motoren, auf die Werkzeugachsen umgerechnet |
motor.<id>.angle, .speed | rad, rad/s | Winkel und Drehzahl der Motorwelle, vor dem Getriebe |
motor.<id>.torque, .torque_command | N m | Drehmoment aus dem Wicklungsstrom und der Momentensollwert des Drehzahlreglers dafür, nach der Momentengrenze |
motor.<id>.current, .voltage, .electrical_power | A, V, W | Strom, Spannung und elektrische Leistung der Wicklung |
motor.<id>.winding_temperature | K | Übertemperatur der Wicklung |
motor.<id>.dc_link_voltage, .braking_resistor_power | V, W | Zwischenkreisspannung und Leistung am Bremswiderstand. Mit effects.shared_dc_link für jeden Motor gleich |
motor.<id>.speed_command, .following_error, .angle_setpoint | rad/s, rad, rad | Lageregler: Drehzahlsollwert, Schleppfehler, Winkelsollwert (der, mit dem der Regler verglich: feininterpoliert, symmetriert) |
motor.<id>.torque_feedforward, .torque_feedback, .speed_from_position | N m, N m, rad/s | Ausgang des Drehzahlreglers in seinen zwei Teilen, Vorsteuerung (starres oder Trägheitsmodell, Reibung) und PI-Regler, und der Anteil des Lagereglers am Drehzahlsollwert (Kv mal Schleppfehler) |
gearbox.<motor id>.output_torque | N m | Getriebe-Abtriebsmoment, an der Riemenscheibe. Das beurteilen die Prüfungen pulley-torque, gearbox-peak und gearbox-continuous |
belt.<n>.tension | N | Riemenkraft im Riementrum n |
axis.<id>.belt_stretch | m | Riemendehnung: Werkzeugposition minus dem, was die Winkel der Riemenscheiben ergeben |
axis.<id>.friction | N | Reibkraft der Führung |
belt.slack_time | s | Zeit ohne Riemenkraft: Sekunden, die irgendein Riementrum ohne Riemenkraft war, aufsummiert |
pulley.<id>.radial_load | N | Radialkraft des Riemens auf die Scheibenwelle |
axis.<id>.guide_load | N | Führungsbelastung |
frame.deflection | m | Auslenkung des Gestells in X (T-Portal) |
axis.x.tool_deflection | m | Auslenkung der Werkzeugspitze gegenüber dem Schlitten in X (T-Portal) |
Antriebe sperren. Mit --disable-at geben die Antriebe ab diesem Zeitpunkt kein Moment mehr ab. Die Motor-Haltebremsen fallen ein (effects.holding_brake, an beiden Maschinen, im elastischen und im starren Modell):
$ sim-cli run t-gantry --move 0.5,0.2 --time 1.5 --disable-at 0.5 --out disable.csv
In diesem Lauf steht die Z-Achse bei 0,498 s auf 0,2276 m und bewegt sich; bei 1,498 s ruht sie auf 0,2190 m. Eine Bremse, die bei Drehzahl einfällt, rutscht mit ihrem Haltemoment (motor.brake_torque_nm) und nicht mehr, bis die Achse steht. Mit --set effects.holding_brake=false fällt die Achse bis zum unteren Endanschlag (z = −0,00008 m bei 1,498 s). Eine laufende Bewegung oder ein laufender Zyklus wird verworfen und nicht fortgesetzt. Solange die Antriebe gesperrt sind, kühlen ihre Wicklungen ab (mit effects.winding_heating, um den Faktor e je motor.thermal_time_constant_s), und ein Zwischenkreis über dem Netzniveau, nach einer Abschaltung, entlädt sich über seinen Entladewiderstand mit ratings.dc_link_discharge_time_constant_s (130 s, eine Schätzung) bis auf das Netzniveau.
Eine SPS über OPC UA anbinden
cargo run --release -p sim-opcua -- t-gantry --port 4840 --lang de
Das gibt OPC-UA-Server erreichbar unter opc.tcp://127.0.0.1:4840/ und den Ordner seiner Zertifikate (Zertifikate in ...\pki: ...) aus und lässt die Maschine in Echtzeit laufen, bis der Server beendet wird. Der Name der Maschine (oder --machine-file), --config, --set und --trajectory, gelesen wie von sim-cli, --port (Standard 4840), --lang, --host (Standard 127.0.0.1), --cycle-ms (Standard 10) und die Sicherheitsoptionen --pki, --trust-all, --user, --user-cert und --renew-certificate sind die einzigen Argumente. Eine Maschine, die der Simulator nicht hat, eine Konfiguration, ein Port, eine Sprache, eine Adresse oder ein Takt, die nicht lesbar sind, und jedes andere Wort werden mit einer Meldung und dem Code 2 abgelehnt. PLCopen-Bausteine je Achse, der Echtzeittakt und seine Messung, Beispiele für TwinCAT und CODESYS und der Dauertest stehen in SPS-Inbetriebnahme.
| Eigenschaft | Wert |
|---|---|
| Endpunkt | opc.tcp://127.0.0.1:PORT/ |
| Sicherheit | None, und Basic256Sha256, Aes128_Sha256_RsaOaep und Aes256_Sha256_RsaPss mit Sign und mit SignAndEncrypt; anonym außer mit --user oder --user-cert (siehe Sicherheit) |
| Namensraum | urn:kinematics-simulation |
| Knoten-IDs | Zeichenketten in diesem Namensraum, wie in der Tabelle unten |
| Aktualisierungsrate | Jedes Signal wird einmal je Takt der Simulationsschleife veröffentlicht: 100-mal je Sekunde beim voreingestellten --cycle-ms 10 |
| Knoten | Typ | Zugriff | Bedeutung |
|---|---|---|---|
signal.<signal id> | Double | lesen | Jedes Signal der Signaltabelle, z. B. signal.axis.x.position, signal.motor.a.torque |
command.target.<axis id> | Double | schreiben | Fahrziel der nächsten Punkt-zu-Punkt-Bewegung, z. B. command.target.x. Zeigt die geplante Position, bis es geschrieben wird |
command.move | Boolean | schreiben | true startet die Fahrt zu den Zielen |
command.setpoint.<axis id> | Double | schreiben | Laufend übertragener Lagesollwert von der SPS. Der Simulator interpoliert über profile.setpoint_interval_s dorthin. Zeigt den Sollwert, dem die Steuerung folgt |
command.cycle | Boolean | schreiben | true startet den Zyklus, false hält ihn nach dem laufenden Segment an |
command.disable | Boolean | schreiben | true sperrt die Antriebe; die Bremsen fallen ein |
command.enable | Boolean | schreiben | true gibt die Antriebe wieder frei |
command.stop_category | Int32 | schreiben | 0, 1 oder 2 hält die Maschine in dieser Stoppkategorie an (siehe Not-Halt); zeigt −1, bis es geschrieben wird |
command.path | String | schreiben | Eine Bahn im Text einer Bahndatei (siehe Eine Bahn fahren), ein Stück je Zeile. Zeigt, was geschrieben wurde |
command.path_time_optimal | Boolean | schreiben | true legt die Bahn so schnell aus, wie die Motoren erlauben (wie --time-optimal), false innerhalb der Achsgrenzen (Standard) |
command.run_path | Boolean | schreiben | true legt command.path von dort aus, wo die Maschine steht, und fährt sie |
status.busy | Boolean | lesen | Eine Bewegung, eine Bahn oder der Zyklus läuft („In Bewegung“) |
status.refused | String | lesen | Schlüssel des zuletzt abgelehnten Befehls, oder leer |
status.cycle_s, status.cycle_period_s, status.jitter_max_s, status.jitter_rms_s, status.overruns, status.cycles, status.realtime_factor, status.steps, status.client_*, command.reset_pacing | lesen (Zurücksetzen: schreiben) | Der Echtzeittakt und die Lese- und Schreibabstände der Clients, wie SPS-Inbetriebnahme sie beschreibt |
So verhalten sich die Befehle:
- Die Regelkreise der Antriebe bleiben im Simulator. Die SPS sendet Ziele oder Lagesollwerte, kein Drehmoment.
- Zahlen dürfen als Double, Float, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64 oder UInt64 geschrieben werden (64-Bit-Ganzzahlen bis 2^53). Alles andere wird mit
BadTypeMismatchbeantwortet. - Sollwerte mehrerer Achsen, die innerhalb derselben 10 ms geschrieben werden, gelten zusammen als ein Sollwert.
- Eine Achse, die nicht geschrieben wird, bleibt, wo sie ist.
command.target.<axis id>zeigt die geplante Position, bis es geschrieben wird, und wieder, sobald die Fahrt befohlen ist, für die es geschrieben wurde.command.setpoint.<axis id>zeigt den Sollwert, dem die Steuerung folgt; das ist die geplante Position, solange kein Sollwert unterwegs ist. Nach einer Fahrt oder einem Zyklus schickt ein Schreiben auf eine Achse die anderen also nicht dorthin zurück, wo sie vorher standen. - Eine Bahn wird erst geschrieben und dann gestartet:
command.path(undcommand.path_time_optimal) zusammen mitcommand.run_pathoder davor schreiben. Zusammen geschrieben, geltencommand.pathundcommand.path_time_optimalin beliebiger Reihenfolge im Schreibvorgang: gefahren wird die zuletzt geschriebene Bahn. Die Befehle eines Schreibvorgangs werden in der geschriebenen Reihenfolge ausgeführt, und die Bahn wird ausgelegt, wenn sie an der Reihe ist, von dort aus, wo die Maschine dann steht (etwa nach einem davor geschriebenencommand.enable), genau wiesim-cli run --pathsie auslegt, und in Echtzeit gefahren. status.refusedenthält einen Schlüssel wieerror-busy,error-target-out-of-range,error-setpoint-too-farodererror-disabled. Für eine Bahn:opcua-error-path-line(eine Zeile, die sich nicht lesen lässt),error-path(etwa ein Kreisbogen an einer Maschine mit einer Achse),error-path-first-arc,error-path-range(außerhalb des Hubs),error-path-long(mehr als zehn Millionen Posen),error-path-torque,error-path-tension,error-path-guide,error-path-rating,error-path-singular,error-path-collisionunderror-path-self-collision(nur zeitoptimal),error-busy,error-disabled. Er bleibt stehen, bis ein Befehl derselben Art (Fahrt, Bahn, Sollwert, Zyklusstart, Halt, Sperren, Freigeben) angenommen wird. Angenommene Befehle anderer Art, etwa laufend übertragene Sollwerte, lassen ihn stehen.- Ein laufend übertragener Sollwert wird abgelehnt, solange eine Bewegung oder der Zyklus läuft.
- Ein Sollwert, der vom letzten (oder, wenn keiner unterwegs ist, vom Standort der Achse) weiter entfernt liegt, als die Achse mit ihrer Höchstgeschwindigkeit in einem
profile.setpoint_interval_sfährt (8 mm an der X-Achse des T-Portals), wird miterror-setpoint-too-farabgelehnt und nicht ausgeführt. Eine SPS, die weiter zurückliegt, holt mit einer Fahrt auf. Laufend übertragenen Sollwerten, einer je Intervall, folgt die Achse mit deren Geschwindigkeit, bis zur Höchstgeschwindigkeit; ein Sollwert, der zu früh kommt, trifft die Achse vor dem letzten an, und sie folgt ihm um so viel schneller. - Kommt der Rechner mit der Echtzeit nicht mit, bleibt die Simulation zurück, statt Arbeit aufzustauen.
Grenzen bei dieser Aufgabe:
- Nicht an einer realen SPS geprüft. Der Client in den Tests ist mit derselben Bibliothek geschrieben wie der Server. Das Zusammenspiel mit Clients von Siemens, Beckhoff oder CODESYS, deren Datentypen, Sicherheitseinstellungen und Zyklus-Jitter sind ungeprüft.
- Der Server bindet sich an eine Adresse (127.0.0.1, wenn
--hostkeine andere nennt) und bietet die Konfiguration an, mit der er gestartet wurde (--config,--set); während er läuft, lässt sie sich nicht ändern. - Ein Benutzername (
--user) oder Benutzerzertifikate (--user-cert), darüber hinaus keine Benutzerkonten; keine Methoden. - Bahnen:
status.refusednennt den Schlüssel, nicht die Zeile, die sich nicht lesen ließ. Posen zu Zeitpunkten laufen nur aus--trajectorybeim Start; einen Knoten dafür gibt es nicht. Eine Bahn wird innerhalb des Takts der Simulation (voreingestellt 10 ms) ausgelegt: Eine lange zeitoptimale Bahn, deren Auslegung länger dauert, lässt die Simulation in diesem Moment hinter der Echtzeit zurückfallen. - Der Server schreibt seine Schlüssel in einen Ordner
pkiim Arbeitsverzeichnis oder in den, den--pkinennt.
Das Modell in Simulink / Modelica über FMI nutzen
cargo build --release -p sim-fmi # die Binärdatei der FMU, target/release/sim_fmi.dll
sim-cli fmu t-gantry --config crates/machine-t-gantry/exct-30.toml --out exct30.fmu
fmu schreibt die Maschine mit ihrer Konfiguration (der Standardkonfiguration, oder --config, --motor, --supply, --gearbox und --set wie bei jedem Befehl) als FMU für FMI 2.0 Co-Simulation. Die FMU rechnet dieselbe Simulation wie sim-cli run: Antriebe, Regler, jeden eingeschalteten Effekt. Importiert wird sie in Simulink (FMU-Block), OpenModelica (File > Import > FMU oder importFMU), Dymola (File > Import > FMU) oder jedem anderen Werkzeug für FMI 2.0; ein Regler- oder SPS-Modell dort sendet die Lagesollwerte und liest die Signale zurück. FMI 2.0 ist die Vorgabe, weil jedes dieser Werkzeuge 2.0 Co-Simulation importiert; --fmi 3 schreibt stattdessen eine FMU für FMI 3.0 Co-Simulation, mit denselben Variablen und den Binärdateien unter binaries/<Architektur>-<System> (zum Beispiel binaries/x86_64-windows). FMI-Export beschreibt beide Versionen, den FMU-Zustand, die Ableitungen, warum es kein Model Exchange gibt, wie die FMUs geprüft wurden und wie man sie importiert.
Was in der FMU steht:
| Datei | Inhalt |
|---|---|
modelDescription.xml | Die Variablen unten, erzeugt aus der Signalliste und der Konfiguration der Maschine, mit Einheiten und Beschreibungen in der Sprache von --lang |
resources/config.toml | Die Konfiguration wie auf der Kommandozeile angegeben, Katalogteile eingesetzt |
resources/model.txt | Maschinenkennung und Sprache |
binaries/win64/sim_fmi.dll | Der Simulator. Eine Binärdatei für jede Maschine; die Ressourcen sagen, welche sie rechnet |
Ohne weitere Angabe nimmt fmu die neben sim-cli gebaute Binärdatei (target/release/sim_fmi.dll, unter Linux libsim_fmi.so); fehlt sie, bricht es ab und sagt, wie sie gebaut wird. --binary DATEI nennt sie stattdessen und darf mehrfach stehen: Eine .dll kommt nach binaries/win64, eine .so nach binaries/linux64, eine .dylib nach binaries/darwin64 (die Endung in beliebiger Schreibung: SIM_FMI.DLL wird als sim_fmi.dll abgelegt); zwei für dieselbe Plattform werden abgelehnt. Eine FMU für Windows und Linux entsteht, indem sim-fmi unter Linux gebaut (cargo build --release -p sim-fmi) und beide Dateien übergeben werden: --binary sim_fmi.dll --binary libsim_fmi.so. Eine Maschinendatei (--machine-file) kommt als resources/machine.toml in die FMU, und die FMU baut ihre Maschine daraus.
| Variable | Typ | Kausalität | Bedeutung |
|---|---|---|---|
time | Real | independent | Simulierte Zeit, s, ab der Startzeit des Experiments. Nur in der Modellbeschreibung für FMI 3.0 vereinbart; FMI 2.0 lässt sie aus der Liste, wo sie implizit ist (Importer wie der von OpenModelica lehnen sie ohne Startwert ab, den FMI 2.0 ihr verbietet), und ihre Wertreferenz 0 antwortet trotzdem |
| jedes andere Signal der Signaltabelle | Real | output | Z. B. axis.x.position, motor.a.torque, belt.1.tension, mit seiner Einheit |
command.setpoint.<Achskennung> | Real | input | Lagesollwert, wie command.setpoint.<Achskennung> über OPC UA. Startwert: die Startpose |
command.enable | Boolean | input | false schaltet die Antriebe ab (Bremsen fallen ein), true wieder ein. Startwert true |
command.cycle | Boolean | input | Wechsel auf true startet den konfigurierten Zyklus, Wechsel auf false hält ihn am Ende seines Segments an |
command.target.<Achs-ID>, command.move | Real, Boolean | input | command.move fährt beim Wechsel auf true zu den Zielen (Startwert: die Startpose) |
command.path, command.path_file, command.trajectory_file, command.run_path | String, String, String, Boolean | input | command.run_path plant beim Wechsel auf true die Bahn (Text einer Bahndatei oder die genannte Datei) ab der Stelle, an der die Maschine steht, und fährt sie; ist command.trajectory_file gesetzt, fährt es stattdessen diese Datei von Posen zu Zeitpunkten (gelesen wie von sim-cli run --trajectory) |
command.stop_category | String | input | Wie command.enable beim Wechsel auf false die Antriebe anhält: “0” (Startwert) nimmt das Moment sofort weg, “1” bremst an der Schnellhalterampe, “2” bremst und hält mit Moment (siehe Not-Halt) |
command.mode.<Motor-ID>, command.torque.<Motor-ID>, command.velocity.<Motor-ID> | String, Real, Real | input | Die Betriebsart des Antriebs, “position” (Startwert), “velocity” oder “torque”, und sein Drehzahl- oder Momentensollwert vom eigenen Regler (unten) |
time_optimal | Boolean | parameter | true legt Bahnen so schnell aus, wie die Motoren erlauben (wie --time-optimal), false (Startwert) innerhalb der Achsgrenzwerte |
machine | String | parameter | Die Maschinenkennung |
config_file | String | parameter | Eine Konfigurationsdatei statt der in der FMU; leer (der Startwert) für die in der FMU |
effects.<Name> | Boolean | parameter | Jeder Effektschalter, Startwert wie in der Konfiguration; ein hier gesetzter Wert gilt vor dem der Konfigurationsdatei |
Die Namen sind die Signalkennungen wie in den CSV-Spalten (Namenskonvention „flat“). Die Wertreferenz einer Variablen ist ihr Platz in der Liste, time als 0 gezählt (command.stop_category steht zuletzt, nach den Effekten, damit die übrigen ihre behalten).
Wie ein Schritt abläuft:
- Die FMU rechnet selbst im Grundschritt
sim.dt_s(62,5 µs in den mitgelieferten Konfigurationen) mit ihrem eigenen Integrator. Ein Kommunikationsschritt, der kein ganzzahliges Vielfaches davon ist, wird abgelehnt (fmi2Error, mit Meldung), ebenso ein Schritt ab einer anderen Zeit als der, bei der die Simulation steht, eine Zeit oder Schrittweite, die keine endliche Zahl ist, und ein Schritt von mehr als 4294967295 Grundschritten (etwa 3 Tage simulierter Zeit bei 62,5 µs).fmi2SetupExperimentlehnt eine Startzeit ab, die keine endliche Zahl ist, ebenso eine Stoppzeit oder Toleranz, die als definiert übergeben wird. Interpoliert wird nichts. Ausgänge werden ab dem Initialisierungsmodus gelesen, wie FMI 2.0 es vorsieht;fmi2GetRealdavor wird abgelehnt. - Zu Beginn jedes Kommunikationsschritts geht ein geänderter Sollwerteingang als ein Sollwert an den Regler, der über
profile.setpoint_interval_s(10 ms) dorthin interpoliert, genau wie beim Sollwert einer SPS über OPC UA. Der Kommunikationsschritt sollte deshalb dieses Intervall sein: Es ist die Schrittweite des Standardexperiments der Modellbeschreibung. Bei kürzeren Schritten beginnt jeder neue Sollwert eine neue Interpolation von dort, wo die letzte angekommen war; das folgt dem Strom mit etwas Verzug. Mitprofile.setpoint_interval_sgleich dem Kommunikationsschritt in der Konfiguration stimmen beide überein. - Einen Sollwert, den der Regler ablehnt (zu weit für ein Intervall,
error-setpoint-too-far; außerhalb des Hubs), meldet die FMU als Warnung, der Schritt läuft ohne ihn, undfmi2DoStepgibtfmi2Warningzurück. Eine Achse, deren Eingang nicht gesetzt wird, bleibt, wo der Regler sie hat. - Parameter lassen sich bis zum Ende der Initialisierung setzen. Eine Konfigurationsdatei, die die Liste der Signale oder ihre Einheiten ändert, wird am Ende der Initialisierung mit dem ersten abweichenden Signal abgelehnt: Für diese Konfiguration eine neue FMU exportieren.
- Ihre Signale sind Bit für Bit die von
sim-cli runmit denselben Sollwerten zu denselben Zeiten (geprüft). - Nach einer Abschaltung wegen Überspannung im Zwischenkreis mit einem Bremswiderstand, der für die Bremsenergie zu klein ist, löst ein sofort wieder auf
truegesetztescommand.enableerneut aus, und wieder, bis die nach der Abschaltung austrudelnde Achse steht: Ihre Bewegungsenergie fließt in den Zwischenkreis, sobald die Antriebe sie bremsen. Beobachtet wurden 7 bis 57 erneute Abschaltungen über 6 bis 60 ms, bevor der Zwischenkreis auf Netzniveau zur Ruhe kommt und die Antriebe eingeschaltet bleiben. Das ist die Physik eines zu kleinen Widerstands, kein Fehler der FMU; warten, bis die Achse steht, oder den Widerstand auslegen (sim-cli verdicts).
Grenzen bei dieser Aufgabe:
- Geprüft mit fmpy und OMSimulator (Prüfung gegen das FMI-Schema, Simulation verglichen mit
sim-cli run; die Befehle stehen in FMI-Export). In OpenModelica 1.27.1 mit OMSimulator gerechnet (FMI 2.0; sein Modelica-Import nimmt nur Model Exchange); der Import in Simulink oder Dymola ist ungeprüft. - Nur Co-Simulation, kein Model Exchange (warum). Ein FMU-Zustand hält eine Momentaufnahme der Simulation und ist sofort gesetzt; ein serialisierter wiederholt jeden Schritt seit der Initialisierung, sein Setzen dauert also so lange, wie bis zu ihm zu simulieren (FMU-Zustand). Die Richtungsableitungen sind null, weil kein Ausgang direkt von einem Eingang abhängt. Keine asynchronen Schritte.
- Eingänge sind Lagesollwerte und die Auslöser für Zyklus, Fahrt und Bahn (FMI-Export); ein einmal gesetzter Sollwerteingang übernimmt die Achsen von Zyklus, Fahrt oder Bahn. Moment- und Drehzahlsollwerte je Motor gehen über Momenten- und Drehzahlregelung hinein (Eigenen Regler prüfen); der Stromregler bleibt in der FMU.
- Meldungen und Beschreibungen in einer Sprache, der von
--langbeim Schreiben der FMU. - Eine 64-Bit-Binärdatei für Windows, solange keine für Linux wie oben hinzukommt; keine 32-Bit-Binärdateien.
Eigenen Regler prüfen
Der eingebaute Antrieb schließt Lage-, Drehzahl- und Stromregelkreis selbst. Um ein eigenes Regelgesetz an der simulierten Mechanik zu prüfen, einen Antrieb in Momentenregelung (das eigene Moment ersetzt den Ausgang seines Drehzahlreglers) oder Drehzahlregelung (die eigene Drehzahl ersetzt den Ausgang seines Lagereglers) setzen, wie ein echter Servoantrieb sie bietet; Momentengrenze, Stromregler, Wicklung und Zwischenkreis bleiben drin, Strom-, Spannungs- und thermische Grenzen sind also wahr.
- In Python:
sim = ks.Sim(cfg), dann je Takt des eigenen Reglersout = sim.step(torque=[...], time=0.001)mit den Signalen am Ende des Schritts inout;sim.analyze()undsim.verdicts()beurteilen den Lauf wie den des eingebauten Antriebs (Python-Modul; das Beispielcrates/sim-py/examples/own_controller.pyrechnet einen PD gegen die eingebaute Kaskade). - In Simulink oder Modelica: die Eingänge
command.mode.<Motor-ID>(“torque” oder “velocity”) undcommand.torque.<Motor-ID>/command.velocity.<Motor-ID>der FMU (FMI-Export).
Ein Wechsel der Betriebsart lässt das Moment nicht springen, wo die Regler des Antriebs übernehmen; solange ein Antrieb nicht in Lageregelung ist, werden Zyklus, Fahrten, Bahnen und Sollwerte abgelehnt.
Die App bedienen
cargo run --release -p sim-app
sim-app --machine-file DATEI startet mit einer Maschine aus einer Datei (Maschinendateien), sim-app --catalog VERZEICHNIS liest den Katalog aus einem Verzeichnis statt des eingebauten. sim-app --set pfad=wert (mehrfach möglich) startet mit einem beliebigen Wert der Konfiguration geändert, über seinen Pfad mit Punkten und mit dem Wert in TOML-Schreibweise, wie sim-cli --set ihn nimmt: cargo run --release -p sim-app -- --set mass.payload_kg=3.0. Es gilt nach --machine-file; ein Schlüssel, den die Konfiguration nicht hat, ein Wert anderen Typs oder einer, den die Maschine ablehnt (außerhalb seines Bereichs), beendet den Start mit der Meldung der Befehlszeile. „Speichern“ schreibt den Wert dann an seine Stelle und behält Reihenfolge und Kommentare der Datei.
Die App merkt sich Sprache, Farbschema, die Schalter rpm und mm, die Geschwindigkeit und die zuletzt geöffnete (oder gespeicherte; auch eine JSON-Maschinendatei, über die „Speichern“ weiterhin nie TOML schreibt) Konfigurations- oder Maschinendatei mit ihrer Maschine, in settings.toml im Ordner KinematicsSimulation des Konfigurationsordners des Benutzers (%APPDATA% unter Windows, $XDG_CONFIG_HOME oder ~/.config unter Linux, ~/Library/Application Support unter macOS); SIM_APP_SETTINGS=DATEI nennt eine andere Datei. Umgebung und Kommandozeile gehen vor dem Gespeicherten: SIM_APP_LANG, --machine-file, --set. Ohne beides ist die Sprache die des Systems (LC_ALL, LC_MESSAGES oder LANG unter Linux und macOS; unter Windows Englisch). Eine Einstellungsdatei, die nicht lesbar oder von einer anderen Version ist, wird mit einer Meldung übergangen; eine gespeicherte Konfigurationsdatei, die es nicht mehr gibt, ergibt eine Meldung und die Standardmaschine. Ein Lauf mit SIM_APP_SCREENSHOT liest und schreibt die Datei nicht, außer SIM_APP_SETTINGS ist gesetzt.
Das Fenster hat oben eine Leiste (Maschine, Sprache, Ablauf, Einheiten, Farbschema und die knappsten Prüfungen), in der Mitte die 3D-Ansicht, links die Einrichtung (Bewegung, Effekte, Parameter, Konfigurationsdatei), rechts die Werkzeuge (Analyse, Effekt-Ansichten, Suche, Bahn, Aufzeichnung, Frequenzgang, Reglereinstellung, Läufe, Moment & Fehler, Regelkreis) und unten die Oszilloskope. Die Tabellen unten gehen die Bedienelemente nach ihrer Wirkung durch; in welchem Feld eines steht, folgt aus dieser Aufteilung.
3D-Ansicht. Aus einfachen Körpern aufgebaut. Riemenscheiben, Motorwellen und Umlenkrollen drehen sich; die Riemenzähne laufen mit (alle 40 mm gezeichnet, nicht in der Zahnteilung); Riementrume färben sich oberhalb der Vorspannung rot und unterhalb blau. Beschriftungen zeigen die Drehzahl jedes Motors in 1/min und die Position jeder Achse. Ziehen mit der linken Maustaste dreht die Ansicht, mit der rechten oder mittleren verschiebt sie, das Mausrad zoomt; ein Ziehen, das auf einem Bedienfeld beginnt, lässt die Kamera in Ruhe, und ein kleineres Fenster oder ein breiteres Bedienfeld rückt die Kamera so weit zurück, wie die Maschine braucht. Ist eine Bahn geplant (der Teil „Bahn“ im rechten Bedienfeld), zeichnet die Ansicht die geplante Bahn als breite gelbe Linie dort, wo das Werkzeug fahren wird, und darüber als schmalere hellblaue Linie die Bahn, die die Werkzeugspitze wirklich fährt, sobald die Maschine sie abfährt. Die Bedienelemente der Ansicht färben diese gefahrene Bahn nach der Geschwindigkeit des Werkzeugs oder nach seinem Bahnfehler: seinem Abstand von der Bahn, die der Plan gezeichnet hat (die Sollwerte, denen die Antriebe folgen), derselbe Abstand, dessen Spitze die Analyse der Bahn als Bahnfehler angibt. Bis zum 14. November wurde er vom neuesten Sollwert des Plans gemessen, der sich einmal je Profilzyklus (1 ms) bewegt, während das Werkzeug weiterfährt, und las bis zu Geschwindigkeit mal Zyklus zu hoch (1,09 mm, wo die Analyse 0,76 mm angab, auf einem Quadrat des T-Portals). „Feste Skala“ setzt das obere Ende der Skala von Hand, damit zwei Läufe gleich zu lesen sind; beim Bahnfehler zeichnet „Toleranz“ weiter abliegende Punkte rot. Die Zeitleiste unter der Ansicht fährt durch die aufgezeichneten Szenen: Die gefahrene Bahn endet zur gezeigten Zeit, und der Vergleichslauf (der Geist) wird zur selben Zeit gezeigt. Vier Schalter unter den Bedienelementen der Ansicht helfen beim Lesen: „Achsen“ zeichnet x (rot), y (grün) und z (blau) der Maschine, wie die Kamera sie sieht, in die linke untere Ecke; „Raster“ zeichnet ein Raster auf den Boden in Zellen von 1, 2 oder 5 mal einer Zehnerpotenz, deren Größe in mm daneben steht; „Verfahrweg“ zeichnet für jede Achse, die das Werkzeug in der Ansicht bewegt, die Linie von ihrer unteren bis zu ihrer oberen Grenze (die anderen Achsen dort, wo die Maschine gestartet ist), mit den Grenzen an ihren Enden; „Parallel“ zeichnet ohne Perspektive, so dass die Knöpfe Vorne, Seite und Oben maßgetreue Ansichten geben. Alle vier sind zuerst aus. Ohne CAD-Modell ist ein Motor ein Zylinder mit Flansch und Wellenstumpf, eine lange Stange mit fast quadratischem Querschnitt hat Nuten entlang ihrer Länge, und der Rest sind Quader; das scene.meshes_dir einer Konfiguration nennt einen Ordner mit Modellen <Teil-id>.glb (Maschinendateien). Solange die Simulation pausiert und nichts berührt wird, zeichnet sich das Fenster nur etwa viermal je Sekunde neu (und sofort bei jeder Eingabe), so dass es kaum Prozessor- oder Grafikzeit braucht; es zeichnet jedes Bild, solange die Simulation läuft, die Zeitleiste abspielt, die Ansicht aufgenommen wird oder ein Hintergrundauftrag läuft.
Linkes Bedienfeld, von oben nach unten:
| Bedienelement | Wirkung |
|---|---|
| Maschine | Wechselt die Maschine. Startet die Simulation mit der Standardkonfiguration dieser Maschine neu. Hat die Konfiguration Änderungen, die keine Datei hat (die Marke „geändert“ unter der Leiste), fragt sie vorher: „Speichern“ schreibt die Konfiguration in die Datei, die das Konfigurationsfeld nennt (in eine, nach der der Dateidialog fragt, wo das Feld leer ist), und wechselt dann, „Verwerfen“ wechselt, „Abbrechen“ bleibt. Dieselbe Frage kommt beim Schließen des Fensters und beim Öffnen einer Konfigurations- oder Maschinendatei über solchen Änderungen („Öffnen“ und „Öffnen…“): Dort schreibt „Speichern“ in die Datei, aus der die Konfiguration zuletzt geöffnet oder in die sie zuletzt gespeichert wurde (der Dateidialog fragt, wo es keine gibt oder wo es eine JSON-Maschinendatei war), nie in die Datei, die geöffnet werden soll; diese wird danach geöffnet |
| Rückgängig, Wiederholen (oben im linken Bereich) | Nehmen die letzte Änderung der Konfiguration zurück und machen sie noch einmal, auch mit Strg+Z und Strg+Y oder Strg+Umschalt+Z, solange kein Textfeld die Tasten hat: Jede Änderung eines Parameters, ein Effektschalter, ein benanntes Bauteil, ein „Wert setzen“ und die übernommenen Einstellungen des Optimierers ist ein Schritt, die letzten 50 bleiben, und ein Ziehen an einem Wert ist ein Schritt, nicht einer je Bild. Die Simulation startet wie nach jeder Änderung mit der Konfiguration neu. „geändert“ steht, solange die Konfiguration von der Datei, aus der sie geöffnet oder in die sie gespeichert wurde, oder vom Standard der Maschine abweicht; wer bis dorthin zurücknimmt, löscht die Marke |
| Sprache | English oder Deutsch, im laufenden Betrieb umschaltbar |
| Pause / Weiter | Hält die Simulation an und setzt sie fort |
| Geschwindigkeit (1 = Echtzeit) | Simulierte Sekunden je realer Sekunde, 0,01 bis 10, auf einem logarithmischen Schieber. Es ist ein Wunsch: Ein langsamer Rechner oder ein schweres Maschinenmodell bleibt dahinter zurück, ohne Arbeit aufzustauen |
| 1/min, mm (obere Leiste) | Eine Wahl der Einheiten für jedes Diagramm und die Tabellen der Läufe und der Betriebspunkte: Motordrehzahlen in 1/min statt rad/s, Längen in mm statt m. Ohne sie skalieren die Oszilloskope eine SI-Einheit mit einem Vorsatz auf eine lesbare Größe (µm, mm) |
| Hell (obere Leiste) | Das helle Farbschema der Bedienfelder statt des dunklen. Die 3D-Ansicht behält ihre Farben |
| Ansicht: Vorne, Seite, Oben, Schräg | Voreingestellte Kamerapositionen |
| Mehr… / Weniger (Ansicht) | Öffnet oder faltet die übrigen Bedienelemente der Ansicht (Einblendungen, Eigenform, Vergleich, Farben der Bahn und Überhöhung) unter den Kamerapositionen. Sie sind zuerst offen, wo die Ansicht mindestens 500 Pixel hoch ist, darunter gefaltet (bei 1280 x 720 ist die Ansicht 418 Pixel hoch, und offen bedecken sie die Hälfte) |
| Bewegung: ein Ziel je Achse | Ziel der nächsten Bewegung |
| Ziel anfahren | Punkt-zu-Punkt-Bewegung, alle Achsen synchron |
| Zyklus starten | Fährt den konfigurierten Zyklus, bis er angehalten wird |
| Nach Segment anhalten | Fährt das laufende Segment zu Ende und bleibt dann stehen. Einen Schnellhalt gibt es nicht |
| Antriebe sperren / Antriebe freigeben | Antriebe aus (die Bremsen fallen ein) und wieder ein |
| Meldungen | Alles, was die App sagt: abgelehnte Befehle und Konfigurationswerte, Dateien, die nicht geöffnet oder geschrieben werden konnten, beendete Aufträge. Oben im linken Bereich auf jedem Reiter, die neueste zuerst, mit ihrer Anzahl, wenn es mehrere sind, und der Schaltfläche Leeren |
| Effekte | Ein Kontrollkästchen je Schalter in [effects]. Wirkt sofort, ohne Neustart |
| Parameter | Jeder Zahlenwert der Konfiguration, nach Tabellen gruppiert. Ändern durch Ziehen; der Wert gilt sofort in der laufenden Simulation. Ein Wert, den die Simulation ablehnt, wird unter „Meldungen“ genannt und zurückgenommen. Fährt man über einen Wert oder seinen Namen, zeigt sich sein Konfigurationspfad (der Schlüssel, den --set nimmt). „Filter“ listet nur die Werte, deren Name oder Pfad das Eingetippte enthält (Groß- und Kleinschreibung gleich); die Gruppen mit einem Treffer öffnen sich. Weicht ein Wert vom Standard der Maschine ab, listet „Gegenüber dem Standard geändert“ jeden, wie er war und ist. Oben nimmt „Wert setzen: Schlüssel = Wert“ jeden Schlüssel der Konfiguration wie --set (mass.payload_kg = 3.0, effects.crash = true, parts.motor = "1FK2104-4AF"), übernommen mit „Setzen“ oder der Eingabetaste; ein Schlüssel, den die Konfiguration nicht hat, ein Wert anderen Typs oder ein Wert, den die Simulation ablehnt, wird gleich unter dem Feld mit der Meldung der Befehlszeile beantwortet, und die Konfiguration bleibt, wie sie war |
Oszilloskope und Werkzeuge:
| Bedienelement | Wirkung |
|---|---|
| Zeitfenster [s] | Sekunden Verlauf, die die Oszilloskope zeigen, 0,2 bis 60 |
| Einfrieren | Hält die Kurven im Fenster fest; die Simulation läuft weiter. Nur das Fenster wird behalten, ein größeres Fenster danach zeigt nicht mehr |
| CSV exportieren | Schreibt jedes Signal über das sichtbare Zeitfenster in eine Datei, die der Dateidialog des Systems erfragt, anfangs traces-<Datum>_<Uhrzeit>.csv genannt, im Hintergrund (eine Minute des Sechsachsarms sind rund hundert Megabyte Text); eine Meldung sagt, wann sie geschrieben ist |
| Live, Läufe (Leiste der Oszilloskope) | Live: die Oszilloskope der laufenden Maschine. Läufe: die behaltenen Läufe (siehe Läufe unten) als Diagramme je Größe, jeder Motor in seiner Farbe und jeder Lauf in seiner Linie (durchgezogen, gestrichelt, gepunktet), und unter jedem die Läufe abzüglich der Referenz auf deren Zeit. Alle teilen Zeitachse und Cursor |
| Fenster als Lauf behalten | Behält, was die Oszilloskope zeigen (jedes Signal über das Fenster), als Lauf |
| Als SVG speichern…, Als PNG speichern… | Ein Rechtsklick auf ein Diagramm (Oszilloskope, Läufe, Aufzeichnung gegen Simulation, Betriebspunkte, Bahn, die Diagramme der Effekt-Ansichten) speichert es: als SVG, gezeichnet wie der Auslegungsbericht seine Diagramme zeichnet, oder als PNG, ein Bild des Diagramms, wie das Fenster es zeigt. Noch nicht bei Frequenzgang, Reglereinstellung, Reibung und Optimierer |
| Läufe | Läufe nebeneinander, höchstens acht (der älteste geht): jeder analysierte Zyklus und jede gefahrene Bahn (beurteilt, mit ihren Prüfungen), die gemessene Aufzeichnung und ihre Nachrechnung, das Fenster der Oszilloskope („Fenster als Lauf behalten“), der Vergleichslauf neben der Maschine („Vergleichslauf behalten“, solange er läuft), und der Zyklus einer anderen Konfiguration: „Änderungen“ nimmt Werte wie --set, getrennt durch ; (parts.motor = "1FK2208-4AF"; drive.velocity_kp = 0.2), „Konfigurationsdatei“ eine Konfigurations- oder Maschinendatei einer beliebigen Maschine als Ausgang (leer: die gezeigte Konfiguration), und „Zyklus aufzeichnen“ rechnet ihn im Hintergrund. Ein Lauf derselben Maschine, Art und Bezeichnung wie ein behaltener tritt an dessen Stelle. Jeder Lauf lässt sich zeigen oder ausblenden, zur Referenz machen oder vergessen. „Kennzahlen“ stellt sie nebeneinander: Dauer, bestandene und nicht bestandene Prüfungen, je Motor Spitzen- und Effektivmoment, höchste Drehzahl, größter und effektiver Schleppfehler, Effektivmoment vom Nennmoment, Spitzenmoment vom Spitzenmoment des Antriebs und die netto bezogene elektrische Energie, und Spitzen- und Effektivwert des Lagefehlers des Werkzeugs; nach den Spalten der Läufe je eine für jeden anderen Lauf mit seinem Wert weniger dem der Referenz („Δ“ und die Bezeichnung des Laufs; in der Zeile der Prüfungen seine nicht bestandenen weniger denen der Referenz). Läufe verschiedener Maschinen werden nach Größe verglichen: Moment, Drehzahl und Schleppfehler eines Motors nach seinem Platz in der Liste der Maschine (Motor 1 mit Motor 1), der Lagefehler des Werkzeugs als Länge der Schleppfehler der Achsen in Metern. Die Zeit jedes Laufs zählt ab seinem Beginn |
| Oszilloskope (Überschrift) | Welche Größen gezeichnet werden |
| Konfigurationsdatei: Datei, Öffnen, Speichern | Ein Dateiname, eingetippt. „Öffnen“ lädt sie als Konfiguration der gezeigten Maschine, wie --config FILE: Sie ersetzt die laufende Konfiguration und startet die Simulation neu, wie ein Wechsel der Maschine. Eine Konfiguration einer anderen Maschine (die die gezeigte Maschine ablehnt und eine andere liest) wechselt zu dieser Maschine und wird dort geöffnet. Eine Datei, die nicht lesbar ist oder die keine Maschine annimmt (ein falsch geschriebener Schlüssel, ein Wert außerhalb seines Bereichs), wird unter „Meldungen“ beantwortet, und die laufende Konfiguration bleibt. „Speichern“ schreibt die Konfiguration, wie sie jetzt ist, mit jeder Änderung aus den Feldern „Effekte“ und „Parameter“ und an den Bauteilnamen. Wo nur Werte geändert wurden, behält die Datei die Kommentare und den Aufbau der Datei, aus der die Konfiguration gelesen wurde (der geöffneten Datei oder der Standardkonfiguration der Maschine); wo eine Liste geändert wurde, wird sie schlicht geschrieben, ohne Kommentare. Ein Wechsel der Maschine leert das Dateifeld, und „Speichern“ schreibt nicht über eine Datei, die die Konfiguration einer anderen Maschine enthält: Es meldet das unter Meldungen und lässt die Datei, wie sie ist |
| Konfigurationsdatei: Öffnen…, Speichern unter… | Dasselbe mit dem Dateidialog des Systems, der dort beginnt, wohin das Feld zeigt. Das Fenster wartet, solange der Dialog offen ist |
| Konfigurationsdatei: Motor-Artikelnummer, Netzspannung, Getriebe, Artikelnummer des Antriebs, Riemen, Achse, Bauteile einsetzen | Die Bauteile, die [parts] der Konfiguration benennt, so gezeigt, wie die Konfiguration sie hat. Neben jedem Feld steht eine Liste „Katalog“ der Artikel, die zu dem passen, was davor benannt ist (die Motoren und Antriebe der Netzspannung, die Getriebe des Motors, die Standardriemen als Profil und Breite, die Achsen), durch Tippen darin eingegrenzt; ein Klick setzt den Artikel ins Feld, in das man weiter tippen kann. „Bauteile einsetzen“ benennt das Eingetippte in der laufenden Konfiguration, wie --motor, --supply, --gearbox, --drive, --belt und --axis und wie „Einsetzen“ der Motorsuche: einen Motor mit seiner Artikelnummer (1FK2104-5AK), die Netzspannung 230v, 400v oder s120, ein Getriebe als Baugröße-Flansch-Übersetzung (NRK070-04-5), einen Antrieb mit seiner Artikelnummer (6SL3210-5HE11-5UF0), einen Riemen als Profil-Breite (AT5-25), eine Achse mit Namen (EXCT-30, ELZI-40); ein leeres Feld benennt keines. Ein Name, den der Katalog nicht hat, wird unter „Meldungen“ abgelehnt, ebenso jeder Name in einer Konfiguration ohne [parts] |
| Analyse: Zyklus analysieren und beurteilen | Die Zyklusanalyse und die Prüfungen, als drei Tabellen: die Kennwerte der Maschine (Zykluszeit, Bahnfehler, Abstand vom Ziel beim Verweilen, kleinste Riemenkraft, Zeit mit schlaffem Trum, Radialkraft auf eine Scheibenwelle, Führungsbelastung, Lebensdauer der Führung), die Belastung je Motor (Spitzenmoment, Effektivmoment, kubisch gemitteltes Moment, Übertemperatur der Wicklung, aufgenommene und rückgespeiste Energie, Energie und mittlere Leistung am Bremswiderstand, höchste Zwischenkreisspannung) und eine Zeile je Prüfung |
| Analyse: mit Fehlerbändern, Stichproben | Angekreuzt fährt „Zyklus analysieren und beurteilen“ den Zyklus zusätzlich mit jedem Wert aus [bounds] an seiner unteren und oberen Grenze (zwei weitere Zyklen je Wert) und zeigt eine vierte Tabelle: je Prüfung den kleinsten und den größten Wert, das Ergebnis im ungünstigsten Fall und „Bestandene Läufe [%]“. Dasselbe wie sim-cli verdicts --bands. Steht im Zahlenfeld „Stichproben“ neben dem Kontrollkästchen eine Zahl über 0, wird der Zyklus stattdessen so oft mit allen Werten aus [bounds] zugleich zwischen ihren Grenzen gefahren, und die Tabelle trägt die Überschrift „Die Prüfungen mit allen unsicheren Werten zugleich zwischen ihren Grenzen“. Dasselbe wie --bands --samples N; die App nimmt immer den Startwert (--seed) 1. Mit „ungünstigste Ecke“ (nur zusammen mit den Fehlerbändern) sucht sie zusätzlich je Prüfung die ungünstigste Ecke der Grenzen und zeigt eine Tabelle mit dem ungünstigsten Wert, dem Grenzwert dort, dem Ergebnis und den Werten an ihrer oberen und an ihrer unteren Grenze. Dasselbe wie --bands --worst; das braucht viele Zyklen mehr |
| Effekt-Ansichten | Klappt auf, wenn ein Zyklus analysiert wurde; ihr eigener Knopf „Zyklus analysieren und beurteilen“ tut dasselbe wie der im Teil Analyse. „Wofür jeder Motor sein Moment braucht“: je Motor ein Plot über das Zeitfenster der Oszilloskope mit den vier Anteilen seines Moments (Trägheit, Schwerkraft, Reibung, Riemen und Rest) und gestrichelt dem Moment selbst, das sie zusammen ergeben; Zeitachse und Cursor teilt er mit den Oszilloskopen. „Momentanteile über den analysierten Zyklus“: je Anteil und Motor Spitze und Effektivwert, wie sim-cli analyze --breakdown sie schreibt. „Energiebilanz des analysierten Zyklus“: die Einspeisung, jeder Verlust und Speicher, der nicht genau null ist, und was nicht zugeordnet ist, in J und in Prozent der Einspeisung, wie --budget sie schreibt, und darunter dasselbe als Flussdiagramm: von der Einspeisung (und jedem Speicher, der Energie zurückgab) links zu dem, was die elektrische Seite verlor (Kupfer, Bremswiderstand, Netz), und der Wellenarbeit in der Mitte, und von der Wellenarbeit weiter zu dem, was die Maschine verlor oder speicherte (Führungen, Wellen, Getriebe, Dämpfer, kinetische und potentielle Energie), rechts, jedes Band so breit wie seine Energie; ein Balken, zu schmal für seinen Namen, hat ihn im Tooltip. „Reibung je Führung“: je Führung die Reibkraft beim stationären Gleiten über der Geschwindigkeit (durchgezogen) und ihre Coulomb-, viskosen und Haftanteile (gestrichelt) bei der jetzigen Führungslast, der Punkt, an dem die Führung gerade ist, und eine Tabelle mit Geschwindigkeit, den drei Anteilen, der Kraft und dem Lastfaktor jetzt. „Temperaturen“: die Übertemperatur jeder Wicklung und, mit der Erwärmung von Getriebe und Führung, jedes Getriebes und jeder Führung über das Zeitfenster der Oszilloskope, die Tabelle mit jetzt, Endwert im analysierten Zyklus, zulässiger Übertemperatur und Anteil des Endwerts daran, und die Farbskala der 3D-Ansicht. „Riemenabschnitte“: Riemenkraft (Vorspannung gestrichelt) und Dehnung je Abschnitt, die Tabelle beider jetzt und die Farbskala des Riemens. „Effekt ein und aus“: ein Effekt, eine Größe und „Vergleichen“; beide Läufe übereinander, aus gestrichelt, und je Linie Spitze und Effektivwert der Differenz. Über jedem Plot die Namen seiner Linien in ihren Farben. Siehe Sehen, wohin Moment und Energie gehen |
| Analyse: Betriebspunkte | Nach „Zyklus analysieren und beurteilen“: ein Diagramm je Motor (kleine Vielfache), jedes vom eigenen Antrieb dieses Motors: das Motormoment über der Motordrehzahl einmal je Millisekunde des Zyklus, eingefärbt vom Anfang des Zyklus (dunkelblau) bis zu seinem Ende (helles Rosa), über der Spitzenkennlinie (gestrichelt: das Spitzenmoment, abfallend oder feldgeschwächt, wie das Antriebsmodell es gibt, an 241 Drehzahlen abgetastet), dem Bemessungsmoment S1 (gepunktet, in beide Richtungen bis zur Bemessungsdrehzahl), der Spannungsgrenze bei der niedrigsten Zwischenkreisspannung des Zyklus (rot: was R, L und kE der Wicklung bei dieser Spannung lassen, DriveParams::voltage_limited_torque) und der Stromgrenze des Umrichters (rot gestrichelt, ratings.drive_max_current_a mal Kt). Die große Marke ist der Effektivpunkt: das Effektivmoment bei der mittleren Betragsdrehzahl. Darunter dieselben Punkte als rollbare Tabelle. Dasselbe wie sim-cli analyze --points. Eine S3-Linie gibt es nicht: kein Katalog, den der Simulator liest, gibt S3-Daten |
| Moment & Fehler | Die Ansichten eines behaltenen Laufs, der Referenz (oben in der Liste gewählt oder unter Läufe zur Referenz gemacht; „Fenster als Lauf behalten“ behält das Fenster der Oszilloskope für sie). Moment über Drehzahl je Motor: wie die Betriebspunkte oben, mit den Punkten jedes eingeblendeten Laufs in eigener Marke über den Kennlinien des Referenzlaufs. Lagefehler des Werkzeugs (die eine Definition, wie in den Kennzahlen der Läufe und in der Analyse): quer zur Bahn (der Konturfehler) und längs der Bahn (positiv, wenn das Werkzeug nachläuft) in m, der Plan in diesem Augenblick weniger dem Ort, an dem das Werkzeug wirklich ist (mit Riemendehnung und Durchbiegung, anders als der geberseitige Schleppfehler der Antriebe), zerlegt gegen die Richtung ihrer Geschwindigkeitssollwerte; bei einem analysierten Zyklus oder Pfad auch der Abstand zur gezeichneten Bahn je Millisekunde aus der Analyse (gepunktet); die Toleranz der eingefärbten Bahn der 3D-Ansicht als rotes Band; ein Histogramm des Fehlers quer zur Bahn; der Winkelfehler getrennt bei einer Maschine mit Achsen in rad. Momentenanteile, gestapelt: je Motor sein Moment für Trägheit, Schwerkraft, Reibung und den Rest (Riemen, Kupplung, Prozess) nacheinander addiert, die letzte Linie ist das Motormoment; und die Vorsteuerung des Drehzahlreglers gegen seine Regelung (den PI-Anteil). Auslastung: je Motor in % jeder Grenze über der Zeit: Moment vom bei seiner Drehzahl verfügbaren, Strom (q und d) von der Grenze des Umrichters, beide Knoten des Überlastabbilds des Umrichters von seiner Abschaltschwelle (mit effects.drive_overload), Erwärmung von Wicklung und Gehäuse von der Bemessungserwärmung (mit effects.winding_heating), Zwischenkreisspannung von ihrer Überspannungsabschaltung mit der Bremsschwelle gepunktet (mit effects.dc_link). Spektrum: von Schleppfehler und Moment jedes Motors über den Lauf (Hann-Fenster, die neueste Zweierpotenz an Abtastwerten, Amplituden logarithmisch) mit den Resonanzen der Maschine (Machine::modes in der Startpose) als gelbe Linien, und je Motor das Spektrogramm des Schleppfehlers (Rahmen von 256 ms alle 128 ms). Wird die Zeitleiste verschoben, zeigt die 3D-Ansicht den Fehler des Werkzeugs in diesem Moment als Pfeil von der Bahn zum Werkzeug, so viel länger wie die Auslenkungen |
| Analyse: Empfindlichkeit | Die acht Parameter mit [bounds], von denen der Zyklus am stärksten abhängt |
| Analyse: Zyklus optimieren | Der Optimierer; mit angehakten „Fehlerbändern“ muss sein Ergebnis auch in den Bändern bestehen (die Zeilen unter den Einstellungen nennen, wie schnell er nach der Konfiguration, wie sie dasteht, wurde und woran das dort scheitert). Unter der Tabelle die Front der Energie je Zyklus über der Zykluszeit, das Ergebnis markiert. „Diese Einstellungen in die laufende Maschine übernehmen“ setzt sein Ergebnis in die Konfiguration ein |
| Motorsuche | Netzspannung (230v, 400v, s120, s210new-230v/-400v oder die eines anderen Herstellers, z. B. beckhoff-400v), der Anfang der Artikelnummern (leer: jeder Motor des Katalogs) und wahlweise eine Getriebebaureihe wie NRK oder NRK070; angekreuzt probiert „Jede Achse des Katalogs“ jeden Motor zusätzlich auf jeder Achse des Katalogs, die zur Art der Maschine passt (--axes). „Suchen“ fährt jeden solchen Motor auf dem Zyklus und listet sie auf, bestandene zuerst, günstigste zuerst (die eingebaute Masse steht für den Preis), mit Getriebe, Achse, der Masse von Motor und Getriebe, der eingebauten Masse und der knappsten Prüfung oder dem Grund, aus dem ein Motor oder eine Achse nicht gefahren wurde. „Einsetzen“ in einer Zeile benennt diesen Motor, seine Netzspannung, sein Getriebe, seinen Antrieb und seine Achse in [parts] der laufenden Konfiguration. Dasselbe wie sim-cli search |
| Bahn | Ein Dateiname, eingetippt. „Geraden, Kreisbögen und Splines“ ist eine Bahndatei, geplant innerhalb der Achsgrenzwerte oder, angekreuzt, „So schnell, wie die Motoren es erlauben“; „Posen mit Zeiten“ ist eine Datei mit einer zeitlich vorgegebenen Bahn. „Planen, fahren und analysieren“ plant die Bahn von dort, wo der Sollwert der Maschine steht (ihre erste Pose ist der laufende Sollwert: Die eigene Simulation stellt ihr Werkzeug um eine Ruhedurchbiegung daneben, so dass ihr Sollwert dort steht), analysiert sie mit einer eigenen Simulation (Dauer, Abweichung durch Übergangsbögen, Bahnfehler, Lagefehler des Werkzeugs, Belastungen, Prüfungen), zeichnet die geplante Bahn als Diagramm im Bedienfeld und als Linie in der 3D-Ansicht und lässt die Maschine in der 3D-Ansicht sie fahren. Dasselbe wie sim-cli analyze --path oder --trajectory. Unter den Tabellen die Betriebspunkte der Bahn über den Drehmoment-Drehzahl-Kennlinien, wie beim Zyklus (--points mit --path). Beim Delta die Arbeitsraumkarte: ein waagerechter Schnitt in der Höhe, die der Schieberegler einstellt, vom Verfahrbereich bis eine halbe Breite darüber hinaus nach jeder Seite, jeder Punkt gefärbt nach der Konditionszahl der Jacobi-Matrix (1 dunkel, die zulässige ratings.max_condition_number hell, rot darüber); blass, wo die Arme hinreichen, die Maschine aber nicht hinfährt (außerhalb des Arbeitsraums, hinter einem Gelenkanschlag, über workspace.max_condition_number), leer außer Reichweite; der Rahmen ist der Verfahrbereich, und der Mauszeiger zeigt die Konditionszahl unter ihm |
| Aufzeichnung, Zuordnung | Ein Dateiname, eingetippt, und für den Export eines Herstellerwerkzeugs seine Zuordnungsdatei (wie --map sie nimmt; leer für eine Aufzeichnung in den Spalten des Simulators). „Nachfahren und anpassen“ fährt die Antriebsaufzeichnung nach und zeigt je Motor, wie weit die Simulation von ihr abweicht (Moment und Schleppfehler, Effektivwert und Spitze), je Achse die angepasste Masse, Reibung und konstante Kraft neben den Werten der Konfiguration (bei Delta, SCARA und Arm den Faktor der Nutzlast und je Motor zusätzliche Trägheit, Reibung und konstantes Moment), mit dem, was in der Konfiguration zu ändern ist; angekreuzt fügt „Riemensteifigkeit aus den Bewegungen“ den Faktor auf die Riemensteifigkeit hinzu (fit --stiffness, rund zwanzig Nachläufe mehr); und je Motor, was die Aufzeichnung für sich sagt: Trägheit, Reibung, die Verzögerungen der Regelkreise, jeweils mit Standardfehler und 95-%-Intervall, und wie gut jedes Modell die Aufzeichnung trifft. Dasselbe wie sim-cli replay, fit --trace und identify --trace. Die Startpose der Konfiguration muss dort liegen, wo die Aufzeichnung beginnt. Darunter „Aufzeichnung gegen Simulation“: Motormoment, Motordrehzahl und Schleppfehler am Motor über der Zeit, die Aufzeichnung durchgezogen und die Simulation gestrichelt, eine Farbe je Motor. „CSV exportieren“ dort schreibt sie in eine Datei, die der Dateidialog des Systems erfragt (anfangs replay-overlay-<Datum>_<Uhrzeit>.csv), dieselbe Datei wie sim-cli replay --out Unter der Überlagerung das Residuum: gemessen weniger simuliert, je Motor für Moment und Schleppfehler, auf der Zeitachse und dem Cursor der Überlagerung. |
| Frequenzgang der Mechanik | Von, bis, Frequenzen und Momentamplitude, wie sim-cli sweep sie nimmt (anfangs 5 bis 500 Hz, 120, und 1,5 N m oder 40 % des Spitzenmoments des Antriebs, wo das weniger ist). „Jeden Motor messen“ misst den Frequenzgang im offenen Kreis vom Moment jedes Motors zu seiner Drehzahl, wie sim-cli sweep --motor N für einen: Betrag in dB und Phase über der Frequenz, eine Linie je Motor, und je Motor den Einbruch, bei dem die Last am Riemen schwingt (Resonanz und Dämpfungsgrad des Einbruchs mit der niedrigsten Frequenz; leer, wo der Bereich keinen Einbruch mit beiden Flanken enthält). Die Voreinstellungen zeigen ihn an jedem Motor der Standardmaschinen. Vorher taten sie das nicht: Die Amplitude war 0,05 N m, bei der die Haftreibung die Motoren hält, nicht der Bereich. Ein Wechsel der Maschine oder das Öffnen einer Konfiguration setzt die Amplitude auf die Voreinstellung dieser Konfiguration, sofern keine andere eingetippt wurde |
| Frequenzgang: Gemessener Frequenzgang, gemessen an, Riemensteifigkeit anpassen | Eine Datei, wie sim-cli sweep sie schreibt (die Spalten frequency_hz und gain_rad_s_per_nm), gemessen an dem angewählten Motor mit der Momentamplitude darüber. „Riemensteifigkeit anpassen“ rechnet den Frequenzgang der Konfiguration bei den Frequenzen der Datei und zeigt Resonanz und Dämpfungsgrad beider und was in der Konfiguration zu ändern ist: den Faktor auf die Riemensteifigkeit. Dasselbe wie sim-cli fit --sweep DATEI --sweep-motor N --amplitude A |
| Reglereinstellung: Sprungantwort und Frequenzgang messen | Sprungantwort und Führungsfrequenzgang einer Achse, mit Anstiegszeit, Überschwingen, Einschwingzeit und Bandbreite; darunter die Eigenfrequenzen, die die Maschine über den Hub dieser Achse meldet, mit den Shaper-Frequenzen gestrichelt |
| Regelkreis: Drehzahlregelkreise messen | Misst den Drehzahlregelkreis jedes Motors wie sim-cli margins (dieselbe Messung, um Resonanzen verfeinert), im Hintergrund an einer Kopie der Maschine: Ein Fortschrittsbalken zählt die gemessenen von den geplanten Punkten (die Verfeinerung fügt welche hinzu), und „Abbrechen“ hält die Messung an. Je Motor (oben gewählt): Durchtrittsfrequenz, Phasenreserve, Amplitudenreserve und maximale Empfindlichkeit, grün wo der Kreis stabil ist und rot wo nicht; ein Bode-Diagramm aus Amplituden- und Phasengang mit dem offenen Kreis L, dem geschlossenen Kreis T = L / (1 + L) und der Strecke vom Luftspaltmoment des Motors zu seiner Drehzahl (in dB von 1 rad/s je N m: die Mechanik mit Reibung, ohne Stromregelkreis, Filter und Totzeiten), die Phasenreserve an der Durchtrittsfrequenz und die Amplitudenreserve dort markiert, wo die Phase −180° kreuzt, die Resonanzen der Maschine in der Startpose als graue gepunktete Linien und die Frequenzen des Eingangsformers (bernsteinfarben) und des Kerbfilters (rosa) gestrichelt, wo sie eingeschaltet sind; darunter die Ortskurve von L, wo |L| höchstens 4 ist, mit dem kritischen Punkt −1 und dem Einheitskreis. Mit Reibung eilt die Strecke bei tiefen Frequenzen vor: Bei einem Zehntel des Nennmoments halten die Borsten der Reibung die Achse wie eine Feder (die Einzelachse +47° bei 10 Hz); ohne Reibung eilt sie um 90° nach, eine Trägheit |
| Diagramme der Oszilloskope | Ein Diagramm je Größe, eine Linie je Achse oder Motor; ein Motor hat in jedem Diagramm der App dieselbe Farbe (Oszilloskope, Betriebspunkte, Frequenzgang, Läufe). Sollwerte sind gestrichelt in der Farbe ihres Istwerts gezeichnet. Gemeinsame Zeitachse und gemeinsamer Cursor; Min, Max, Spanne und Effektivwert je Kurve, die Namen in ihren Farben unter dem Diagramm (keine Legende über den Linien); die Einheiten wechseln von selbst auf mm und µm, außer 1/min oder mm ist in der oberen Leiste gewählt. Ein langes Fenster wird mit dem kleinsten und größten Wert jedes von 3000 Abschnitten gezeichnet, so dass eine Spitze von einem Abtastwert Breite sichtbar bleibt |
In den Ergebnistabellen der Analyse steht „in Ordnung“ für ok und „NICHT BESTANDEN“ für FAIL.
Eigenformen, der gefärbte Pfad, die Güte des Arbeitsraums und die Fehlerbänder
Eigenformen in der Lage (oben im Reiter Reglereinstellung). „Eigenformen bestimmen“ fragt die Maschine nach ihren Eigenformen in der Lage, in der ihr Sollwert steht, und listet sie auf: Frequenz und Dämpfung, wie die Maschine sie meldet (die der Eingangsformer nimmt; die meisten Maschinen nehmen an, dass der Antrieb den Motor hält, es sind also die Eigenformen bei gehaltener Riemenscheibe), die Eigenform des linearisierten Modells, deren Form gezeigt wird, woher die Form kommt, und die Arten von Steifigkeit, die mindestens 5 % ihrer Formänderungsenergie tragen (Riemen, Getriebe, Führung, Gestell, Fundament, Glied). Wo die Maschine selbst eine Form gibt (Machine::mode_shape, bei den meisten die der niedrigsten Eigenform), wird diese gezeigt; für jede andere ist die Form der Eigenvektor des Problems kleiner Bewegungen des elastischen Modells in dieser Lage: Die Gleichungen der Maschine werden in Ruhe durch zentrale Differenzen abgeleitet, ihre Momente gehalten, einmal mit freien Motoren und einmal mit gehaltenen Rotoren (die Zustände, die Winkel oder Drehzahl eines Motors bewegen, bleiben in Ruhe, wie die gemeldeten Eigenformen sie haben), und von beiden wird die Schwingung genommen, die der gemeldeten Eigenform am nächsten liegt, bestimmt durch inverse Iteration; ein reeller Eigenwert (die Steigung einer Reibung in Ruhe, die dämpft, ohne zu schwingen) wird nie genommen. Seine eigene Frequenz und Dämpfung stehen in der Spalte „Linearisiert“; sie weichen von den gemeldeten ab, wo es darauf ankommt, dass die Motoren frei sind. Die Anteile der Steifigkeiten kommen aus der gemeldeten Frequenz: Die Steifigkeiten einer Art in der Konfiguration werden um 10 % steifer gemacht, und der Anteil ist das Doppelte der Änderung von ln f über ln 1,1 (Rayleigh); sie ergeben zusammen 1, wo jede Steifigkeit, in der die Eigenform lebt, eine dieser Arten ist. „Zeigen“ lässt diese Eigenform in der 3D-Ansicht schwingen, mit einer Schwingung je Sekunde und so groß, wie der Überhöhungsregler sagt, die Frequenz am Werkzeug; nochmals „Zeigen“ geht zur eigenen Eigenform der Maschine zurück. An der einzelnen Riemenachse kommt die Zwei-Massen-Eigenform (Schlitten gegen Riemenscheibe und Rotor) mit der Frequenz und dem Verhältnis der Ausschläge von Motor und Schlitten der Handrechnung dreier Massen an zwei Federn heraus (the_belt_axis_two_mass_mode_has_the_hand_calculated_shape). Dasselbe als CSV: sim-cli modes MASCHINE --shapes schreibt je Eigenform gemeldete und linearisierte Frequenz und Dämpfung, die Herkunft der Form, die Anteile der Steifigkeiten und die Form, je Zustand Real- und Imaginärteil.
Der Pfad, gefärbt nach dem, was auf ihm geschah (Reiter Bahn, unter der Darstellung des geplanten Pfads). Nach „Planen, fahren und analysieren“ färbt „Pfad gefärbt nach“ den Pfad, den die Analyse gefahren hat, in der 3D-Ansicht entlang seiner Länge, einmal je Millisekunde an der Stelle des Werkzeugs: nach dem Bahnfehler (dem Abstand zur Bahn, den die Analyse gemessen hat, den Werten von path_error_series), dem Lagefehler des Werkzeugs (zu dort, wo der Plan in diesem Augenblick steht, wie definiert), der Geschwindigkeit, der Auslastung jedes Motors (sein Moment über dem, was sein Antrieb bei dieser Drehzahl gibt, 100 % auf der Kennlinie) oder der höchsten Riemenzugkraft. Die Skala zeigt den kleinsten und den größten Wert entlang des Pfads, der schlechteste Punkt ist in der Ansicht rot markiert, und sein Knopf liest dort jede Größe aus; der Regler „Entlang des Pfads“ oder ein Klick auf den Pfad in der 3D-Ansicht liest sie an jedem anderen Punkt aus, cyan markiert. „nichts“ zeichnet geplanten und gefahrenen Pfad wie bisher als zwei einfache Linien.
Arbeitsraumkarte nach Beschleunigung (Reiter Bahn). Die Karte, für jede Maschine, die die Konditionszahl ihrer Kinematik angibt (die Deltas, der parallele SCARA, die Arme im Werkzeugraum, der Hexapod, die Seilroboter; das Linear-Delta seit dem 15. November 2026), wird nach der Konditionszahl oder nach der größten Beschleunigung gefärbt, die die Motoren dem Werkzeug dort in der ungünstigsten Richtung geben können: Mit T = A a + g den Motormomenten des starren Modells hält Motor k |g_k| + |A_k . d| a bis zu seinem Spitzenmoment, die Beschleunigung in jeder Richtung ist also das kleinste (T_Spitze,k - |g_k|) / |A_k| (das Gewicht wird gehalten). Dunkel, wo die Maschine am besten ist, hell, wo am schlechtesten, für beide. Der Zeiger zeigt beide Zahlen. sim-cli workspace MASCHINE [--z Z] [--points N] schreibt die Karte als CSV: x, y, Konditionszahl, ob die Maschine dorthin fährt, Beschleunigung in m/s². In der Mitte des Linear-Deltas sind beide Zahlen die der Handrechnung (the_workspace_map_has_the_hand_calculated_condition_and_acceleration_at_the_linear_deltas_centre).
Fehlerbänder in den Verläufen (Reiter Analyse, unter der Tabelle der Bänder). „Grenzen rechnen“ rechnet den Zyklus mit jedem begrenzten Wert an seiner unteren und an seiner oberen Grenze, einen nach dem anderen (wie verdicts --bands; eine Grenze, deren unterer Wert ihr oberer ist, rechnet nichts), behält Moment und Schleppfehler jedes Motors und die Zugkraft jedes Riemenabschnitts und zeichnet je Signal die Hülle dieser Läufe, vom kleinsten zum größten Wert in jeder Millisekunde, als graues Band unter dem nominalen Verlauf. Ihre Arbeitspunkte erscheinen als graue Wolke unter denen des Zyklus in den Kennlinien. Die Bänder sind die der Grenzen einzeln, nicht die der Stichproben (--samples).
Das rechte Bedienfeld rollt als Ganzes, und jeder seiner Teile (Oszilloskope, Konfigurationsdatei, Analyse, Effekt-Ansichten, Motorsuche, Bahn, Aufzeichnung, Frequenzgang der Mechanik, Reglereinstellung) lässt sich unter seiner Überschrift einklappen. Ein Teil klappt von selbst auf, wenn sein Ergebnis eintrifft. Die Tabellen sind für die Standardbreite des Bedienfelds ausgelegt: Lange Namen brechen um, und Zahlen haben vier Stellen.
Die Schaltflächen dieser Teile rechnen im Hintergrund mit eigenen Simulationen, und zwar mit der Konfiguration, wie sie in diesem Augenblick ist; solange steht ein Wartezeichen an Stelle der Schaltfläche, dazu ein Balken der erledigten von den geplanten Läufen (er wächst, wenn die Arbeit mehr plant) und eine Schaltfläche „Abbrechen“. Das Abbrechen beendet die Arbeit innerhalb der Zeit der schon begonnenen Läufe (ein einzelner Simulationslauf wird nicht unterbrochen, auch nicht ein Kandidat der Motorsuche oder des Kinematikvergleichs), sagt das in der Meldungsleiste und lässt die früheren Ergebnisse, wie sie waren. Das Wechseln der Maschine und das Öffnen einer anderen Konfigurations- oder Maschinendatei brechen die laufenden Arbeiten genauso ab; eine Änderung eines Parameters nicht, denn das Ergebnis wird weiter gezeigt, als „für eine frühere Konfiguration berechnet“ gekennzeichnet. Eine Zyklusanalyse oder ein Lauf der Prüfungen mit Bändern, der einen nicht endlichen Wert hinterlässt (der Regelkreis ist instabil oder läuft auseinander, oder eine Wicklung wird ohne Ende heißer), sagt das einmal in der Meldungsleiste. Die laufende Maschine wird nicht gestört. Ein Ergebnis wird nicht neu berechnet, wenn sich danach ein Parameter ändert. Es wird stattdessen als „für eine frühere Konfiguration berechnet“ gekennzeichnet, und nichts davon wird in die geänderte Konfiguration übernommen: „Diese Einstellungen übernehmen“, „Einsetzen“ und das Fahren einer geplanten Bahn antworten dann mit einer Meldung (die Änderung zurücknehmen oder neu berechnen). Einen Motor mit „Einsetzen“ zu benennen macht die Suche, aus der er stammt, nicht ungültig; danach lässt sich eine andere Zeile versuchen. Eine Achse der Achssuche zu benennen schon, denn sonst lief die Suche auf der eigenen Achse der Konfiguration.
Eine Datei, die fehlt oder nicht lesbar ist, eine nicht lesbare Zeile darin, eine Netzspannung, die der Katalog nicht hat, und eine Suche, die keinen Motor findet oder kein Getriebe der Baureihe, das an einen passt, werden unter „Meldungen“ beantwortet. Ebenso eine Bahn, die die Maschine nicht fahren kann, weil sie sich seit dem Planen bewegt hat oder in Bewegung ist.
Ein Antrieb, der wegen Überspannung im Zwischenkreis abschaltet, wird unter „Meldungen“ genannt, einmal je Abschaltung, für die laufende Maschine und für einen analysierten Zyklus oder eine analysierte Bahn. „Antriebe freigeben“ bringt die Antriebe zurück.
Was die laufende Maschine mit einer Änderung tut:
- Eine geänderte Getriebeübersetzung (
gearbox.ratio) oder ein geänderter Scheibenradius (geometry.pulley_radius_m) baut den Zustand der Maschine an der Pose und mit der Geschwindigkeit des Werkzeugs neu auf, mit Riemen und Getriebe so, wie sie dort in Ruhe sind. Die Riemenkräfte bleiben bis auf einige Prozent, wie sie waren. Der Linear-Delta behält stattdessen die Dehnung seiner Riemen, das Moment seiner Kupplungen und die Reibung seiner Führungen, wie sie waren: in Fahrt tragen seine Riemen 34 N mehr als in Ruhe. - Eine Änderung am Input Shaper (sein Schalter, die Frequenz, der Dämpfungsgrad oder „Input Shaper folgt der Pose“) wird übernommen, sobald die geplante Bewegung das nächste Mal steht. So springt der Sollwert nicht. Ein Zyklus ohne Verweilzeit und ohne Greiferwechsel steht nie; dort wartet die Änderung auf „Nach Segment anhalten“.
- Ein Zyklus, der im Lauf Segmente verliert, läuft in den Segmenten weiter, die er hat.
Meldungen: Eine Meldung, die nur die letzte wiederholt, wird nicht hinzugefügt. Endet die Simulation oder eine Berechnung im Hintergrund unerwartet, sagt das eine Meldung; die Maschine erneut zu wählen startet die Simulation neu. Steht das Fenster länger als zehn Sekunden simulierter Zeit, verlieren die Oszilloskope die Werte davor.
Grenzen bei dieser Aufgabe:
- Die App startet mit der Standardkonfiguration der Maschine; eine andere, etwa die Konfiguration der EXCT-30
crates/machine-t-gantry/exct-30.toml, wird unter „Konfigurationsdatei“ geöffnet. Werte werden mit--setbeim Start oder im Parameterfeld geändert. - Eine Zahl eines benannten Bauteils, die im Parameterfeld geändert wird, wird wieder überschrieben.
- Der Zyklus selbst lässt sich in der App nicht bearbeiten.
- Nicht in der App, nur auf der Befehlszeile: eine Empfindlichkeitsrechnung über Tabellen ohne
[bounds]. - Die Tabelle der Motorsuche zeigt nur die knappste Prüfung; Spitzenmoment und Übertemperatur der Wicklung eines Kandidaten stehen in
sim-cli searchoder nach „Einsetzen“ in der Zyklusanalyse. - Dateinamen von Bahnen, Aufzeichnungen und gemessenen Frequenzgängen werden eingetippt; nur die Konfigurationsdatei hat einen Dateidialog. Ein relativer Name gilt ab dem Verzeichnis, in dem die App gestartet wurde.
- Die Linien der geplanten und der gefahrenen Bahn in der 3D-Ansicht hat kein Mensch am Bildschirm geprüft.
- Eine Bahn wird von dort analysiert, wo die Maschine steht, wenn die Schaltfläche gedrückt wird. Eine Maschine, die dann in Bewegung ist, lehnt das Fahren ab.
- Der Basis-Zeitschritt
sim.dt_slässt sich im laufenden Betrieb nicht ändern. - Die Mausbedienung hat kein Mensch geprüft. Bildschirmfotos des Fensters in beiden Sprachen wurden geprüft.
- Nur für den Desktop.
Maschinendateien
Eine Maschinendatei beschreibt eine Maschine ohne Rust-Code und ohne Neuübersetzen: die Bauteile aus sim-components
wie eine Netzliste verschaltet (Motor, Getriebe, Riemenscheibe, Riemenabschnitte, Wagen, Führungen, und neben den
Riemen Kugelgewindetriebe, Zahnstangen, Linearmotoren, Rundtische und Schneckengetriebe, oder ein
Parallelkoppelgetriebe mit zwei oder drei Armen, oder ein Scherenhubtisch), dazu Achsen,
Grenzwerte, Fehlerbänder, Regelkreise und Zyklus einer Maschinenkonfiguration. Kommandozeile, App und SPS-Anbindung
laden sie zur Laufzeit aus einem Pfad. Die englische Fassung ist machine-files.md; die
Referenzdokumente, auf die verwiesen wird, gibt es nur auf Englisch.
- Was eine Maschinendatei ist
- Eine Maschinendatei verwenden
- Durchgerechnetes Beispiel: ein H-Bot
- Die Knoten
- Motoren, die sich unterscheiden
- Spindeln, Zahnstangen, Linearmotoren und Rundtische
- Koppelgetriebe: der ebene und der räumliche Delta
- Ein Scherenhubtisch
- Schneckengetriebe
- Die Umschlingung des Riemens und eine sich neigende Achse
- Die anderen Beispiele: ein CoreXY und ein XYZ-Portal
- Netze für die 3D-Ansicht
- Was geprüft wird, und wie Fehler lauten
- Das Modell dahinter
- Was Maschinendateien noch nicht können
- Wie es geprüft ist
- JSON, das JSON-Schema und Editoren
- Rust-Schnittstelle
Was eine Maschinendatei ist
Eine Maschinenkonfiguration, wie die Konfigurationsreferenz sie beschreibt ([sim],
[parts], [effects], [belt], [motor], [gearbox], [drive], [ratings], [profile], [bounds], [start],
[[cycle.segment]], …), und dazu eine Tabelle [machine], die sagt, was womit verbunden ist:
format_version = 1 # der Konfiguration, wie in jeder Konfiguration
# ... die Wertetabellen einer Maschinenkonfiguration ...
[machine]
version = 1 # von [machine]; eine Datei späterer Version wird abgelehnt, nicht falsch gelesen
id = "h-bot" # unter diesem Namen führen die Oberflächen sie; Vorgabe: der Dateiname ohne Endung
name = "H-bot (machine file)" # ein Übersetzungsschlüssel oder Klartext; Vorgabe: die id
[[machine.axis]] # eine Tabelle je Knoten, jeder mit fester id
id = "x"
stroke_m = "geometry.stroke_x_m" # eine Zahl, oder der Pfad einer Zahl in der Datei
# ...
Die Werte bleiben in den Wertetabellen, unter denselben Schlüsseln wie bei den mitgelieferten Maschinen. Darum
funktioniert alles andere mit einer Maschinendatei so, wie es ist: die Parameterliste, --set, der Katalog (--motor,
--axis, …), die Fehlerbänder aus [bounds], die Sensitivitätsanalyse, das Speichern. Ein Zahlenfeld eines Knotens
kann einen solchen Wert über seinen Pfad nennen (radius_m = "geometry.pulley_radius_m"); dann ändert eine Änderung
des Werts die Maschine. Eine Zahl selbst bleibt fest.
In machines/ liegen vierzehn Dateien:
| Datei | was sie ist |
|---|---|
machines/single-axis.toml | die Einzelachse aus crates/machine-single-axis, als Netzliste neu verschaltet |
machines/t-gantry.toml | das T-Portal aus crates/machine-t-gantry, als Netzliste neu verschaltet, mit seinen Umlenkrollen, seinem Rahmen, seiner Energiekette, seinen Riementrumen und seiner sich neigenden Z-Achse (ein lean-Knoten und [tool_flex], wie ausgeliefert aus; unten) |
machines/h-bot.toml | das Beispiel unten: ein X-Y-Tisch, keine reale Maschine |
machines/corexy.toml | ein CoreXY-Tisch: zwei feste Motoren, zwei gekreuzte Riemen (unten) |
machines/xyz-portal.toml | ein dreiachsiges kartesisches Portal, X, Y und Z je auf eigenem Riemen, mit einem kleineren eigenen Z-Motor |
machines/screw-portal.toml | das XYZ-Portal mit Z an einem Kugelgewindetrieb (unten) |
machines/rack-gantry.toml | ein Zweiachsportal, X an Zahnstange und Ritzel, Y an einem Riemen |
machines/planar-delta.toml | der ebene Delta aus crates/machine-delta-d2 als Koppelgetriebe mit zwei Armen (unten) |
machines/delta-d3.toml | der räumliche Delta aus crates/machine-delta-d3 als Koppelgetriebe mit drei Armen |
machines/scissor-lift.toml | ein zweistufiger Scherenhubtisch an einem Kugelgewindetrieb (unten) |
machines/stepper-axis.toml | die Netzliste der Einzelachse mit einem Schrittmotor an einem Antrieb ohne Rückführung (motor.kind = "stepper", Benutzerhandbuch) |
machines/induction-lift.toml | die Netzliste der Einzelachse als senkrechtes Hubwerk mit Asynchronmotor, feldorientiert (motor.kind = "induction") |
machines/dual-gantry.toml | ein Portal mit zwei Antrieben: eine gierende Brücke auf zwei Zahnstangen, ihre Antriebe einfach, als Master/Slave oder kreuzgekoppelt im Gleichlauf |
machines/portal-c.toml | das Spindelportal mit einer C-Achse, die einen Greifer dreht, dessen Spitze der Werkzeugmittelpunkt ist |
machines/five-axis.toml | das Spindelportal mit einem Gabelkopf (C und A), die Werkzeugspitze der Werkzeugmittelpunkt |
machines/five-axis-table.toml | das Spindelportal über einem Schwenkrundtisch (A und C tragen das Werkstück, Tisch/Tisch), die Spitze auf dem Werkstück der Werkzeugmittelpunkt |
Am schnellsten kommt man zu einer neuen Maschine, indem man die ähnlichste kopiert und [machine] ändert.
Eine Maschinendatei verwenden
Kommandozeile: --machine-file DATEI tritt an die Stelle der Kennung der Maschine, bei jedem Befehl.
sim-cli verdicts --machine-file machines/h-bot.toml
sim-cli run --machine-file machines/t-gantry.toml --cycle --time 2 --out run.csv
sim-cli verdicts --machine-file machines/t-gantry.toml --bands --set belt.pretension_n=350
sim-cli fmu --machine-file machines/h-bot.toml --fmi 3 --out h-bot.fmu
Eine FMU einer Maschinendatei trägt die Datei unter ihren Ressourcen (resources/machine.toml) und baut die Maschine
beim Instanziieren daraus, für FMI 2.0 wie 3.0; das Werkzeug, das sie einliest, braucht sonst nichts.
App: Öffnen in der Zeile der Konfigurationsdatei (oder Öffnen… für den Dateidialog) öffnet eine Maschinendatei wie eine Konfiguration, und die
Maschine wechselt mit. Speichern schreibt die geänderten Werte in die Datei zurück und behält ihre Kommentare; über
eine JSON-Datei wird nicht geschrieben. Die App kann auch gleich mit einer starten:
sim-app --machine-file machines/h-bot.toml.
SPS-Anbindung: sim-opcua --machine-file machines/h-bot.toml [--port N] [--lang en|de], an Stelle der Kennung einer
Maschine.
Durchgerechnetes Beispiel: ein H-Bot
Ein H-Bot ist ein X-Y-Tisch, dessen zwei Motoren fest an den Enden des X-Balkens stehen und einen Riemen antreiben, der
um Wagen und Kopf läuft. Drehen beide Motoren gleich, fährt X; drehen sie gegeneinander, fährt Y. Das ist die
Riemenführung des T-Portals mit flach liegender zweiter Achse. machines/h-bot.toml ist darum die Datei des T-Portals
mit diesen Änderungen:
- In
[geometry]wirdstroke_z_mzustroke_y_m, und[axis.z]wird zu[axis.y](die Grenzen der Achsey). [machine]nennt die Achsenxundy, gibtykeine Neigung (flach; das Z des T-Portals hatincline_deg = 90) und lässt den Überhang weg: der Kopf läuft auf seiner eigenen Führung auf dem Wagen.
Zuerst der Riemen. Die beiden Motorscheiben teilen ihn in drei Abschnitte mit je einer Spannung. Abschnitt 1 läuft von
seiner Klemme zu Motor A und wird je Meter x und je Meter y um 1 m länger; dreht Motor A vorwärts, speist er Riemen
hinein (+1). Abschnitt 2 läuft von A um den Kopf zu B und wird je Meter y um 2 m kürzer; A nimmt Riemen heraus
(-1), B speist ein (+1). Abschnitt 3 läuft von B zu seiner Klemme:
[[machine.section]]
id = "1"
length_m = 0.3 # bei x = y = 0
axes = { x = 1, y = 1 } # wie viel länger je Meter jeder Achse
pulleys = { pulley_a = 1 } # +1: Vorwärtsdrehen dieser Scheibe speist Riemen ein
pos = [450, -80] # wo ein Knoteneditor ihn zeichnet; wird nicht gelesen
[[machine.section]]
id = "2"
length_m = 2.6
axes = { y = -2 }
pulleys = { pulley_a = -1, pulley_b = 1 }
[[machine.section]]
id = "3"
length_m = 1.3
axes = { x = -1, y = 1 }
pulleys = { pulley_b = -1 }
Allein daraus bestimmt der Lader die Kinematik: der Riemen muss seine Länge halten, also x = r/2 (a + b) und y = r/2 (a - b) für die Scheibenwinkel a und b. Eine Führung, deren Abschnitte nicht bei jeder Bewegung der Achsen ihre Länge halten können, oder deren Motoren nicht jede Achse festlegen, wird abgelehnt.
Die Antriebsstränge: jeder Motor dreht ein Getriebe, jedes Getriebe eine Scheibe. Die Daten von Motor und Getriebe
stehen in [motor], [drive] und [gearbox] und gelten für alle Motoren:
[[machine.motor]]
id = "a"
[[machine.gearbox]]
id = "gearbox_a"
motor = "a"
[[machine.pulley]]
id = "pulley_a"
gearbox = "gearbox_a"
radius_m = "geometry.pulley_radius_m"
inertia_kgm2 = "pulley.inertia_kgm2"
(und dasselbe für b). Dann, was sich bewegt und was es führt. Ein Körper bewegt sich mit den Achsen, die er nennt; der
Kopf bewegt sich mit X und Y und trägt die Nutzlast:
[[machine.body]]
id = "carriage"
mass_kg = "mass.carriage_kg"
axes = ["x"]
[[machine.body]]
id = "head"
mass_kg = "mass.z_axis_kg"
payload_kg = "mass.payload_kg"
axes = ["x", "y"]
[[machine.guide]]
id = "guide_x"
axis = "x"
friction = "friction_x" # die Tabelle mit ihren Reibwerten
carries = ["carriage", "head"] # deren Gewicht quer zur Achse sie belastet
[[machine.guide]]
id = "guide_y"
axis = "y"
friction = "friction_z"
carries = ["head"]
Ausführen:
sim-cli verdicts --machine-file machines/h-bot.toml
check,motor,value,limit,result
motor-peak,a,0.09924,1.000,ok
motor-thermal,a,0.4460,100.0,ok
motor-s1,a,0.09988,1.270,ok
motor-speed,a,200.4,420.0,ok
drive-current,a,0.2220,3.000,ok
drive-peak-current,a,0.8388,10.90,ok
gearbox-radial-load,a,632.2,1500,ok
gearbox-continuous,a,0.3802,40.00,ok
gearbox-input-speed,a,1914,13000,ok
gearbox-peak,a,1.334,64.00,ok
pulley-bearing-life,a,475735,20000,ok
gearbox-life,a,71921110348,20000,ok
belt-tooth-load,a,0.1171,1.000,ok
dc-link-energy,a,1.147,6.205,ok
dc-link-overvoltage,a,170.1,257.6,ok
motor-peak,b,0.09276,1.000,ok
motor-thermal,b,0.4597,100.0,ok
motor-s1,b,0.1014,1.270,ok
motor-speed,b,200.5,420.0,ok
drive-current,b,0.2254,3.000,ok
drive-peak-current,b,0.7839,10.90,ok
gearbox-radial-load,b,637.6,1500,ok
gearbox-continuous,b,0.3887,40.00,ok
gearbox-input-speed,b,1914,13000,ok
gearbox-peak,b,1.213,64.00,ok
pulley-bearing-life,b,474906,20000,ok
gearbox-life,b,68166077481,20000,ok
belt-tooth-load,b,0.1065,1.000,ok
dc-link-energy,b,1.146,6.205,ok
dc-link-overvoltage,b,170.1,257.6,ok
settling,,0.00001324,0.0001000,ok
belt-tension,,346.8,1500,ok
belt-least-tension,,228.3,0,ok
guide-load,,107.9,2000,ok
guide-life,,6789383,20000,ok
thermal-warm-start,,0.000009028,0.1000,ok
Jede Prüfung besteht. Die Motoren bleiben kühler als beim T-Portal (motor-thermal 0,45 gegen dessen 1,28): nichts muss
gegen die Schwerkraft gehalten werden. Die Signale folgen den ids: axis.y.position, motor.a.torque, belt.2.tension, power.guide_y, …
Die Knoten
Jeder Knoten hat eine id: Buchstaben, Ziffern, _ und -, eindeutig in der ganzen Datei (nicht nur in ihrer
Liste), damit ein Verweis nicht zweierlei meinen kann und ein Editor sie behalten kann, wenn der Knoten verschoben wird.
Jeder Knoten darf ein pos = [x, y] haben, wo ein Knoteneditor ihn zeichnet; die Simulation liest es nicht. Ein
Zahlenfeld nimmt eine Zahl oder den Pfad einer Zahl in der Datei. Die Reihenfolge der Motoren in der Datei ist die der
Motorsignale und von --motor N.
| Liste | Feld | Bedeutung | |
|---|---|---|---|
axis | id | Pflicht | die Achse; Signale axis.<id>.*, ihre Grenzen in [axis.<id>] |
key | Übersetzungsschlüssel ihres Namens; Vorgabe axis-<id> | ||
stroke_m | Hub, m; die Achse läuft von 0 bis zu ihm. Jede Achse hat ihn außer einer Drehachse (die stroke_rad hat) und der eines Koppelgetriebes oder Scherenhubtischs (deren Bereich der Knoten gibt) | ||
stroke_rad | Bereich einer Drehachse ab 0, rad, an Stelle von stroke_m | ||
incline_deg | Winkel über der Waagrechten, Grad, 90 senkrecht und nach + steigend; Vorgabe 0; bei einer Drehachse die Neigung der Achse, um die sie dreht, aus der Senkrechten (0, eine C-Achse) nach x (90, eine A-Achse) | ||
motor | id | Pflicht | ein Servomotor mit seinem Antrieb; Signale motor.<id>.* |
key | Übersetzungsschlüssel seines Namens; Vorgabe motor-<id> | ||
gearbox | motor | Pflicht | der Motor, der es antreibt; ein Getriebe je Motor (keins bei einem Linearmotor); Übersetzung 1 ist eine Kupplung |
pulley | gearbox | Pflicht | das Getriebe, dessen Abtrieb sie dreht; eine Scheibe, Spindel, Zahnstange oder ein Rundtisch je Getriebe |
radius_m | Pflicht | Wirkradius, m | |
inertia_kgm2 | Pflicht | Trägheit ohne Riemen, kg m² | |
section | length_m | Pflicht | geometrische Länge bei allen Achsen auf 0, m |
axes | Pflicht | je Achsen-id: wie viel länger der Abschnitt je Meter dieser Achse wird | |
pulleys | Pflicht | je Scheiben-id: +1, wo ihr Vorwärtsdrehen Riemen einspeist, -1, wo es Riemen herausnimmt | |
key | Übersetzungsschlüssel seines Namens; Vorgabe belt-section-<id>; Signale belt.<id>.* | ||
body | mass_kg | Pflicht | Masse, kg |
payload_kg | Nutzlast, die er trägt, solange effects.payload an ist und der Greifer sie hält, kg | ||
axes | Pflicht | die Achsen, mit denen er sich bewegt | |
offset_m | sein Schwerpunkt von dort, wo seine Achsen ihn hinstellen, [x, y, z], m: auf Drehachsen von dort, wo sich ihre Achsen treffen, bei Winkel 0, mit ihnen gedreht (unten); auf geraden Achsen allein ein fester Versatz, den nur sein Ort im Impuls des Rahmens nimmt (der Wagen des T-Portals geometry.z_com_drop_m über seiner Z-Achse: jeder Eintrag eines Punkts, hier und in jedem at_m, tool_m und table_pivot_m, ist eine Zahl oder der Pfad einer, wie in einem Zahlenfeld) | ||
guide | axis | Pflicht | die Achse, die sie führt; höchstens eine Führung je Achse; ihr Verlust ist power.<id> |
friction | Pflicht | die Tabelle ihrer Reibwerte, aufgebaut wie [friction_x] | |
carries | Körper, deren Gewicht quer zur Achse sie trägt | ||
overhang | ein Körper, der über die Führung hinausragt: entlang overhang_axis beschleunigt, kippt er ihre Wagen | ||
overhang_axis, lever_m, spacing_m | mit overhang | die Achse, der Hebel des Schwerpunkts des Überhangs und der Abstand der beiden Führungswagen, m; das Kippen legt 2 m a Hebel / Abstand auf sie | |
lever_axis | eine Achse, deren Weg den Hebel verkürzt | ||
side_load | die Führung trägt auch die Trägheitskraft m a des Überhangs; Vorgabe false |
| axis | cable_chain | | die Achse schleppt eine am Ende 0 befestigte Energiekette (effects.cable_chain, Werte in [cable_chain]); Vorgabe false |
| pulley | at_m | | wo die 3D-Ansicht sie zeichnet, [x, y, z], m (von ihrem Körper aus, wo sie einen hat); Vorgabe an einem Ende der ersten Achse; ihre Lage in der Ebene ihres Riemens (plane des Abschnitts), aus der die Umschlingung (effects.belt_wrap) und die Orte der Trume des Riemens im Rahmenimpuls gerechnet werden |
| | body | | ein Körper, auf dem sie mitfährt (ein Motor auf einer bewegten Achse, wie der Y-Motor der Portale auf der Brücke): at_m ist dann von diesem Körper aus |
| section | route | | die Scheiben, Umlenkrollen und Körper (eine Klemme daran), an denen der Abschnitt vorbeiläuft, der Reihe nach, für die 3D-Ansicht; Vorgabe seine Scheiben und der Körper, an dem er geklemmt ist |
| | plane | | die Ebene, in der sein Riemen läuft und um deren Normale seine Räder drehen: "x-z" stehend entlang x (um y), "x-y" flach (um z), "y-z" stehend entlang y (um x); die Orte der Räder seiner Route in ihr geben den Trumen des Riemens ihre Orte im Rahmenimpuls, der Umschlingung und der Prüfung der Räder; Abschnitte, die sich eine Scheibe oder Umlenkrolle teilen, liegen in einer Ebene (sonst abgelehnt); Vorgabe "x-z", oder "x-y" für alle Abschnitte, wo sich die Länge eines Abschnitts mit Achsen entlang x und entlang y und keiner entlang z ändert (beim H-Bot, beim CoreXY). Die Y-Riemen der mitgelieferten Portale und Gantrys liegen flach ("x-y", die Scheibe auf der Brücke); die 3D-Ansicht zeichnet die Räder eines "y-z"-Riemens nach vorn gewandt |
| idler | speed | Pflicht | Riemengeschwindigkeit an ihr je Geschwindigkeit jeder Achse, m/s je m/s (effects.idlers), positiv in der Richtung, in die eine positive Drehung der ersten Scheibe, die ihren Abschnitt speist, den Riemen bewegt (der Drehsinn ihres Dralls im Rahmenimpuls) |
| | radius_m, inertia_kgm2, friction_nm | Pflicht | ihr Radius, ihre Trägheit und ihr Lagerreibmoment |
| | body, at_m | | ein Körper, auf dem sie mitfährt, und wo die 3D-Ansicht sie zeichnet (von diesem Körper aus) |
| frame | axis | Pflicht | die waagrechte Achse, entlang der der Rahmen schwingt (effects.frame_compliance, elastisches Modell); höchstens einer |
| | mass_kg, stiffness_n_m, damping_n_s_m | Pflicht | Masse, Steifigkeit und Dämpfung des Rahmens in seiner Schwingung |
| span | section | Pflicht | ein freies Riementrum dieses Abschnitts, für seine Querschwingung (effects.belt_span_vibration); yaw_lever_m und yaw_lever_axes, wo es quer zu einer gierenden Brücke von ihrer Mitte liegt (m, und je Meter jeder Achse): das Gieren bewegt seinen Riemen mit |
| | length_m | Pflicht | seine Länge bei allen Achsen auf 0, m |
| | axes | | wie viel länger es je Meter jeder Achse wird |
| screw | gearbox, axis | Pflicht | ein Kugelgewindetrieb am Abtrieb dieses Getriebes, dessen Mutter diese Achse treibt (unten) |
| | values | Pflicht | die Tabelle seiner Werte, aufgebaut wie [screw] der Kugelgewindeachse des Gelenkbaukastens |
| rack | gearbox, axis | Pflicht | ein Ritzel am Abtrieb dieses Getriebes, das diese Achse an einer Zahnstange treibt |
| | values | Pflicht | die Tabelle seiner Werte, aufgebaut wie [rack] der Zahnstangenachse des Gelenkbaukastens |
| linear_motor | motor, axis | Pflicht | dieser Motor ist ein Linearmotor, der diese Achse treibt; er hat keinen Getriebeknoten |
| | values | Pflicht | die Tabelle seiner Werte, aufgebaut wie [linear_motor] der Linearmotorachse des Gelenkbaukastens |
| rotary | gearbox, axis | Pflicht | ein Rundtisch am Abtrieb dieses Getriebes: die Achse dreht sich, in rad |
| | inertia_kgm2 | Pflicht | die Trägheit, die er dreht, kg m² |
| | payload_inertia_kgm2 | | die seiner Last, solange effects.payload an ist und der Greifer sie hält, kg m² |
| | friction_coulomb_nm, friction_viscous_nm_s_rad | | Coulomb- und viskose Reibung seines Lagers an der Achse, mit effects.guide_friction; Vorgabe 0 |
| | strain_wave | | die Tabelle der Lebensdauerwerte seines Wellgetriebes, aufgebaut wie [strain_wave] |
| pulley, idler | clockwise | | der Riemen läuft im Uhrzeigersinn um sie, den Routen in ihrer Reihenfolge nach, in der Ebene ihres Riemens gesehen: von vorn (x nach rechts, z nach oben) in x-z, von oben (x nach rechts, y nach hinten) in x-y, von +x (y nach rechts, z nach oben) in y-z; ihr Drall im Rahmenimpuls und die Umschlingung nehmen diesen Sinn; Vorgabe false; at_m ist ihre Lage in dieser Ebene |
| worm | gearbox | Pflicht | dieses Getriebe ist eine Schneckenstufe (unten); eine Schnecke je Getriebe |
| | ratio | Pflicht | ihre Übersetzung, anstelle der des Getriebes |
| | efficiency, back_efficiency | Pflicht | angetrieben von der Schnecke (über 0, höchstens 1) und rückwärts vom Rad (höchstens 1; 0 oder weniger sperrt selbst, was ein angetriebenes eta unter 0,5 verlangt) |
| lean | body, axis | Pflicht | ein Körper, der sich an seinem Wagen entlang einer waagrechten Achse neigt, mit der er fährt (effects.tool_flex, elastisches Modell); höchstens einer (unten) |
| | com_drop_m, tool_drop_m | Pflicht | sein Schwerpunkt und die Werkzeugspitze unter der Führung bei lever_axis auf 0, m |
| | lever_axis | | eine Achse, deren Weg beide zur Führung hebt |
| | lateral_stiffness_n_m, tilt_stiffness_nm_rad, damping_n_s_m | Pflicht | Steifigkeit der Führung seitlich und gegen Kippen, die Dämpfung der Neigung |
| | belt_offset_m | | mit effects.belt_run_offset: wie weit die Trume, die den Körper von oben erreichen, ihn neben seiner Linie treffen (auf der Seite ihres anderen Rads), m; das Kippen der Führung macht das eine um es mal den Kippwinkel länger, das andere kürzer; Vorgabe 0 |
| gantry | axis | Pflicht | eine Brücke, die entlang dieser waagrechten Linearachse fährt, giert (effects.gantry_yaw); höchstens eine (unten) |
| | across | | die Linearachse entlang der Brücke; mit ihr ändert sich der Hebel ihrer Körper um die Mitte der Brücke |
| | width_m, inertia_kgm2 | Pflicht | Abstand der beiden Seiten der Brücke, m; ihre eigene Trägheit um eine senkrechte Achse durch ihre Mitte, kg m² |
| | stiffness_nm_rad, damping_nm_s_rad | Pflicht | was das Gieren neben Antrieben und Riemen hält (ihre Anbindung und Führungen), und seine Dämpfung |
| | across_start_m | | wo across auf 0 steht, von der ersten Seite, m; Vorgabe ihr Hub in der Mitte |
| | drives | | je Motor, dessen Spindel, Zahnstange oder Linearmotor axis treibt: seine Lage quer über die Brücke von der Mitte, m; zwei ergeben ein Portal mit Doppelantrieb |
| | sections | | je Riemenabschnitt, der an den Enden der Brücke zieht: seine Länge je rad Gieren, m |
| | tolerance_m | | der Gleichlauffehler (Breite mal Gierwinkel), den die Prüfung gantry-sync zulässt, m |
| tcp | axes | Pflicht | der Werkzeugmittelpunkt: die drei Linearachsen entlang x (die erste der Datei), y (waagrecht) und z (senkrecht); höchstens einer |
| | rotaries | | die Drehachsen, die das Werkzeug tragen (ein Kopf), die äußerste zuerst; rotaries oder table oder beide |
| | table | | die Drehachsen, die das Werkstück tragen (ein Rund- oder Schwenktisch), die äußerste zuerst: x, y und z des Werkzeugs sind die der Spitze auf dem Werkstück |
| | table_pivot_m | | mit table: wo sich die Achsen des Tischs treffen, in den Koordinaten der Linearachsen, [x, y, z], m; ohne Angabe [0, 0, 0] |
| | tool_m | Pflicht | die Werkzeugspitze von dort, wo sich die Achsen des Kopfs treffen (ohne Kopf vom Punkt der Linearachsen), [x, y, z] bei Winkel 0, m |
Es gibt so viele Motoren wie Achsen und einen mehr für jeden Antrieb eines Portals über den ersten hinaus. Eine Datei nennt jede Liste, die sie verwendet; axis und motor immer,
gearbox, pulley und section, wo Riemen getrieben werden, body, wo eine Achse einen bewegt; die anderen dürfen
fehlen. Ein Effekt, der Knoten braucht, die die Datei nicht hat (frame_compliance ohne frame,
belt_span_vibration ohne span, tool_flex ohne lean), lehnt die Datei mit machine.<Liste> ab; belt_wrap ohne
die Lagen, aus denen er gerechnet wird, wird mit dem abgelehnt, was fehlt.
Eine Datei kann auch Pneumatikzylinder haben, die weder Achsen noch Motoren sind:
| Liste | Feld | Bedeutung | |
|---|---|---|---|
cylinder | values | Pflicht | die Tabelle seiner Werte: Kolben, Stange, Hub, Massen, Totvolumen, Versorgung, Ventil, Schlauch, Drosseln, Dämpfung, Dichtungen, Sensoren und Nennwerte (config-reference.md); Signale cylinder.<id>.*, Prüfurteile cushion-energy und load-factor |
key | Übersetzungsschlüssel seines Namens; Vorgabe cylinder |
Ein Zylinder sitzt am Werkzeug (sein Gewicht gehört in den Körper der Achse, die ihn trägt), und der Zyklus schaltet
sein Ventil: ein [[cycle.segment]] mit valves = { <id> = "extend" } (oder "retract", "centre") schaltet es, sobald
das Segment angekommen ist, und wait = ["<id>.extended"] hält die Verweilzeit des Segments an, bis der Endlagensensor
meldet. Er geht neben jedem Mechanismus einer Datei. machines/pneumatic-axis.toml ist eine Servo-X mit einem
pneumatischen Z; das Modell steht unter „Pneumatic cylinder“ in model-reference.md, das
Beispiel in mechanismen.md.
Motoren, die sich unterscheiden
[motor], [gearbox], [drive], [ratings] und [parts] gelten für jeden Motor. Eine Tabelle
[<Tabelle>.<Motor-id>] gibt einem Motor eigene Werte darüber, Schlüssel für Schlüssel; sie darf nur Schlüssel haben,
die die gemeinsame Tabelle hat:
[gearbox.mz] # der Z-Motor aus machines/xyz-portal.toml hat eine eigene Getriebeübersetzung
ratio = 10.0
[motor.mz] # und einen kleineren Motor
rotor_inertia_kgm2 = 0.15e-4
rated_current_a = 1.411
[drive.mz] # seinen Antrieb dafür eingestellt
peak_torque_nm = 1.9
rated_torque_nm = 0.635
velocity_kp_nm_s_rad = 0.01
[ratings.mz] # und was sein kleineres Getriebe und sein Antrieb erlauben
gearbox_rated_torque_nm = 18.0
drive_rated_current_a = 1.5
[parts.mz] # oder Motor, Getriebe und Antrieb aus dem Katalog, nur für diesen Motor
motor = "1FK2203-2AG"
Der Antriebsstrang dieses Motors in der Maschine (Läufer, Getriebe, Motorreibung, Welligkeit, Bremse), sein Antrieb im
Regler (Strom- und Drehzahlregler, Drehmoment-Drehzahl-Kennlinie, Wicklung, Zwischenkreis) und seine Urteile (Motor,
Antriebsstrom, Getriebe, Lager, Riemenzähne, Bremsen) nehmen seine eigenen Werte; die Prüfungen der ganzen Maschine
behalten die gemeinsamen. Ein in [parts.<id>] genanntes Teil setzt die Werte dieses Motors über die Zahlen, wie
[parts] es tut; belt und axis gehören der Maschine und werden dort abgelehnt. Gemeinsam bleiben: die Taktzeiten
der Antriebe, der Rauschstartwert, ein gemeinsamer Zwischenkreis und das Bremsmodul. sim-cli search sucht den
gemeinsamen Motor; ein Motor mit eigenem [parts.<id>] behält sein Teil bei der Suche.
sim-cli search --machine-file DATEI --motor-id ID sucht einen Motor allein: jeder Kandidat (mit seinem gepaarten
Antrieb, und mit --gearboxes den passenden Getrieben für die eigene Übersetzung dieses Motors) wird [parts.<ID>],
die anderen Motoren bleiben, wie die Datei sie hat, die Drehzahlverstärkung drive.<ID>.velocity_kp_nm_s_rad dieses
Motors wird dafür nachgestellt, wie die gemeinsame für ein gemeinsames Teil (nach der Trägheit, die dieser Motor dreht,
und der seines Läufers; sein kv_1_s mit ihr gesenkt, wo sein Lageregelkreis es braucht), und die Kosten sind das Gewicht dieses einen Motors. Beim XYZ-Portal legt --motor-id mz den
Z-Motor hinter seinem Getriebe mit Übersetzung 10 aus, X und Y behalten ihre. Der zeitoptimale Bahnplaner
nimmt für jeden Motor die Kennlinie des gemeinsamen [drive].
Spindeln, Zahnstangen, Linearmotoren und Rundtische
Ein Motor kann eine Achse ohne Riemen treiben: über einen Knoten screw, rack oder rotary am Abtrieb seines
Getriebes (ein Getriebe der Übersetzung 1 ist die Kupplung), oder als linear_motor, der der Motor selbst ist und
keinen Getriebeknoten hat. Jeder treibt eine Achse, eine Achse hat höchstens einen, und Riemen und diese mischen sich in
einer Datei:
[[machine.screw]] # machines/screw-portal.toml: X und Y an Riemen, Z an einem Kugelgewindetrieb 16 x 10
id = "screw_z"
gearbox = "gearbox_z" # die Kupplung: [gearbox.mz] hat ratio = 1
axis = "z"
values = "screw_z" # die Tabelle [screw_z], aufgebaut wie [screw] der Kugelgewindeachse des Gelenkbaukastens
Die Werte sind die des Gelenkbaukastens (Mechanismen), in einer Tabelle, die der Knoten nennt, so dass
zwei Spindeln zwei Tabellen haben: der Aufbau von [screw] für eine Spindel (Steigung, Nenn- und Kerndurchmesser,
Länge zwischen den Lagern, Lagerung, Wirkungsgrad, Steifigkeit von Mutter und Lagern, Vorspannung, Tragzahlen und
Faktoren, max_dn), der von [rack] für eine Zahnstange (Modul, Zähne, Schrägungswinkel, Wirkungsgrad, Steifigkeit,
Spiel, Ritzelträgheit, zulässige Vorschubkraft, Betriebsfaktor), der von [linear_motor] für einen Linearmotor
(Anziehungskraft, Polteilung, Reibbeiwert der Führung), der von [strain_wave] für das Wellgetriebe eines Rundtischs
(Nennmoment, Antriebsdrehzahl und Lebensdauer). Der Antriebsstrang wird gebaut wie im Gelenkbaukasten
(transmission::Converter hinter dem Getriebe): Steigung / 2 pi der Spindel oder der Radius des Ritzels als Hebel,
seine Steifigkeit in Reihe mit der des Getriebes, sein Wirkungsgrad auf dem des Getriebes, die Trägheit der Spindel
oder des Ritzels auf dem Läufer. Ein Spindelmotor braucht also T = J a / Hebel + F Hebel / eta, um eine Last F mit der
Beschleunigung a zu heben (J Läufer, Kupplung und Spindel), und der Motor einer Zahnstange dreht sich um i x / r.
- Mit
effects.guide_frictionbremst die Vorspannung der Mutter am Motor, und die Anziehung eines Linearmotors fügt den Reibbeiwert der Führung mal sich selbst hinzu; Anziehung und Gewicht des Primärteils drücken außerdem auf die Führung der Achse (axis.<id>.guide_load, von den Führungsprüfungen beurteilt). [motor.<id>]und[drive.<id>]eines Linearmotors lesen sich in N für N m und m für rad (Kraftkonstante in N/A, die Masse des Primärteils alsrotor_inertia_kgm2); sein[gearbox.<id>]hat die Übersetzung 1 und ist die Anbindung des Primärteils.- Ein Rundtisch dreht seine Achse in rad: die Achse hat
stroke_radstattstroke_m, ihre Grenzen sindmax_velocity_rad_s,max_acceleration_rad_s2undmax_jerk_rad_s3in[axis.<id>], und was sie bewegt, istinertia_kgm2(undpayload_inertia_kgm2) des Rundtischs und die Körper, die auf ihr mitfahren (unten). Ihrincline_degneigt die Achse, um die sie dreht; sie hat keine Führung und keine Energiekette. Ihr Lager bremst mitfriction_coulomb_nm+friction_viscous_nm_s_radw des Rundtischs an der Achse, solangeeffects.guide_frictionan ist, am Läufer genommen als c / i + v w_Läufer / i² (in der Wellenreibung des Motors und ihrem Verlust); keine ausgelieferte Datei setzt es. - Signale und Prüfungen heißen nach dem Motor, wie die des Gelenkbaukastens nach seinem Gelenk:
joint.<Motor>.force(was Spindel, Zahnstange, Linearmotor oder Rundtisch an die Achse gibt),screw.<Motor>.speed,.dnund.damage_rate,rack.<Motor>.feed_force,strain_wave.<Motor>.damage_rate;gearbox.<Motor>.output_torqueist das Moment vor Spindel oder Zahnstange. Die Prüfungen sind die des Baukastens:screw-speed,screw-dn,screw-buckling,screw-static,screw-life,rack-feed-force,strain-wave-life(die Lebensdauern, woratings.required_life_hgesetzt ist). Ein Motor, der keine Scheibe dreht, meldet keinpulley.<Motor>.radial_load, also übergehen ihn die Prüfungen der Riemenzähne und Scheibenlager. - Das Ritzel einer Zahnstange belastet die Abtriebswelle des Getriebes quer: mit der Zahnkraft F, tangential, und der
Kraft, die Ritzel und Zahnstange auseinanderdrückt, F tan(alpha_n) / cos(beta) (alpha_n = 20 Grad, beta der
Schrägungswinkel), rechtwinklig dazu, zusammen |F| sqrt(1 + (tan(alpha_n) / cos(beta))²):
rack.<Motor>.radial_load, geprüft alsgearbox-radial-loadgegenratings.shaft_max_radial_load_ndes Motors, wo das gesetzt ist. Die Axialkraft des schrägverzahnten Ritzels und das Kippen, das sie der Welle gibt, bleiben außen vor. Das X des Zahnstangenportals: 208,0 N von 1500. effects.belt_stretchschaltet das elastische Modell der ganzen Maschine: damit verdrehen sich auch die Getriebe der Spindeln, Zahnstangen und Rundtische (die Steifigkeit des Wandlers in Reihe), und die Eigenform des Riemens in einer Lage enthält sie, bei festgehaltenen Läufern.
machines/screw-portal.toml ist das XYZ-Portal, dessen Z-Riemen durch einen Kugelgewindetrieb 16 x 10 hinter einer
Balgkupplung ersetzt ist; die Bremse des Z-Motors hält den Schlitten (0,055 N m von ihren 0,5). Seine X- und
Y-Riemen (und die des C-Portals und beider Fünfachsdateien, die auf ihm aufbauen) sind Schleifen um je eine ferne
Umlenkrolle, far_x am Gestell und far_y auf der Brücke, 0,1 m + Hub + 0,1 m von der Scheibe (die Eigenform von X an
seinem fernen Ende 39,69 Hz, 74,48, als sie ihre Längen aufteilten; the_screw_portals_belts_ring_on_their_loops_by_hand).
machines/rack-gantry.toml ist ein Zweiachsportal mit einem 3 m langen X an Zahnstange und Ritzel (Modul 2, 200 mm je
Umdrehung) hinter einem Getriebe der Übersetzung 10 und Y an einem Riemen. Beide bestehen jede Prüfung auf ihren
Zyklen (screw-speed 2402 von zulässigen 9833 U/min, rack-feed-force 180 von 2400 N). Die Kugelgewinde-,
Zahnstangen-, Linearmotor- und Rundtischachse des Gelenkbaukastens als Dateien geschrieben geben die Urteile des
Baukastens Ziffer für Ziffer.
Koppelgetriebe: der ebene und der räumliche Delta
Ein linkage-Knoten ist ein Parallelkoppelgetriebe. Mit zwei Armen ist es eben: zwei Arme in der senkrechten
x-z-Ebene, je einer an jeder Seite der Basis, jeder von einem Motor über sein Getriebe gedreht, jeder mit einem
Unterarmpaar hinab zu einer Platte,
die ihre Lage hält (ein Fünfgelenk, dessen untere Glieder Parallelogramme sind). Das Werkzeug ist die Mitte der
Platte, x quer und z nach oben, von der Achse der Schultern aus. machines/planar-delta.toml ist der registrierte
ebene Delta (delta-d2) so geschrieben, mit unveränderten Werten:
[[machine.axis]] # ohne Hub: der Arbeitsraum des Koppelgetriebes gibt den Bereich
id = "x"
[[machine.axis]]
id = "z"
[[machine.motor]] # und "2"; key = "motor-arm-1" benennt ihn wie das Crate
id = "1"
[[machine.gearbox]] # und gearbox_2 an Motor 2
id = "gearbox_1"
motor = "1"
[[machine.linkage]]
id = "delta"
arms = ["gearbox_1", "gearbox_2"] # der Arm bei +x, dann der bei -x
axes = ["x", "z"] # quer, dann nach oben
base_radius_m = "geometry.base_radius_m"
upper_arm_m = "geometry.upper_arm_m"
forearm_m = "geometry.forearm_m"
upper_arm_kg = "mass.upper_arm_kg"
# ... die übrigen Längen, Massen und der Arbeitsraum, siehe die Datei
Seine Felder: die Geometrie (base_radius_m, platform_radius_m, upper_arm_m, forearm_m länger als der Oberarm,
forearm_spacing_m für die 3D-Ansicht), die Massen (upper_arm_kg mit upper_arm_cg_m und upper_arm_inertia_kgm2
um die Schulter, elbow_kg, forearm_pair_kg mit dem am Ellbogen gezählten Anteil forearm_elbow_share,
platform_kg, payload_kg) und der Arbeitsraum (half_width_m, top_z_m, height_edge_m, height_centre_m: ein
Band unter der Oberkante, dessen Boden ein Bogen durch beide Ränder und die Mitte ist) mit der höchsten Konditionszahl
der Jacobi-Matrix, die ein Ziel haben darf, max_condition_number. Jedes ist eine Zahl oder der Pfad einer Zahl; die
Datei des ebenen Delta nennt [geometry], [mass] und [workspace] des Crates.
Das Modell ist das des Crates (Modellreferenz, englisch): inverse Kinematik mit Ellbogen außen, direkte Kinematik als
unterer Schnittpunkt zweier Kreise von Unterarmlänge um die Ellbogen, die Jacobi-Matrix J = J_x^-1 J_q der
Beinbedingungen, und die Dynamik zweier Arme um ihre Gelenke mit einer Punktmasse an der Platte (die Masse jedes
Unterarmpaars geteilt, der Anteil r am Ellbogen): M(theta) theta’’ = tau_gear + Q_g - m_nt J^T J_x^-1 w + tau_joint mit
M = I_b 1 + m_nt J^T J. Das Gelenk jedes Arms ist ein RotaryJoint, elastisch oder starr (effects.joint_elasticity),
sein Antriebsstrang aus der eigenen Konfiguration seines Motors (oben), seine
Lagerreibung und Anschläge aus [joint]. Ein Ziel außerhalb des Arbeitsraums, außer Reichweite, jenseits eines
Gelenkanschlags oder über der Konditionszahl wird mit den Gründen des Crates abgelehnt, und die Prüfung singularity
misst den Zyklus an ratings.max_condition_number. Die Signale sind die des Crates: arm.<motor>.angle,
gearbox.<motor>.output_torque, kinematics.condition, die Momentaufteilung, Verlustleistungen und Energien; die
Getriebe erwärmen sich als gearbox_<Motor>, dem Namen ihres Verlusts.
Drei Arme ergeben den räumlichen Delta (nach Clavel): die Arme bei 0, 120 und 240 Grad um die Basis, jeder mit
einem Parallelogramm aus zwei Unterarmen hinab zu einer Plattform, die waagrecht bleibt; das Werkzeug ist x, y und z,
also nennt der Knoten drei Achsen (x, y, dann nach oben) und drei Getriebe. Seine Felder sind die des ebenen, der
Arbeitsraum ein Zylinder um z (radius_m an Stelle von half_width_m, der Boden eine Kugelkappe durch Rand und
Mitte), und drei mehr: forearm_rod_spin_inertia_kgm2 (die Trägheit jedes Stabs um seine eigene Achse, mit
effects.forearm_inertia) und die Biegung der Oberarme mit effects.link_elasticity, bending_stiffness_nm_rad und
lateral_stiffness_n_m (Pflicht) mit bending_damping_nm_s_rad und lateral_damping_n_s_m. Ein ebenes
Koppelgetriebe lehnt die räumlichen Werte ab, das räumliche half_width_m. machines/delta-d3.toml ist der
registrierte räumliche Delta (delta-d3) so geschrieben, mit unveränderten Werten; er nennt [geometry], [mass],
[upper_arm] und [workspace] des Crates.
Eine Umsetzung: die Delta-Crates sind diese Koppelgetriebe, aus ihren eigenen Tabellen gelesen (sim_netlist::linkage
und sim_netlist::spatial; crates/machine-delta-d2 und crates/machine-delta-d3 bauen auf sim-netlist auf), also
erreicht eine Korrektur an den Armen Crates und Dateien zugleich, und jede Datei gibt die Zahlen ihres Crates bitgenau.
Eine Datei mit Koppelgetriebe hat so viele Achsen wie Arme (höchstens mit key: ohne Hub, Neigung oder Energiekette),
einen Motor je Arm, an jedem ein Getriebe, und das Koppelgetriebe; eine Scheibe, ein Abschnitt, Körper, eine Führung,
Umlenkrolle, ein Rahmen, Trum, eine Spindel, Zahnstange, ein Linearmotor, Rundtisch, eine Schnecke, Neigung (lean)
oder Schere daneben wird abgelehnt, ebenso ein zweites Koppelgetriebe. Die Effekte sind die des Crates ([effects] wie
in seiner Konfiguration); ein eingeschalteter Riemeneffekt (belt_wrap, belt_stretch, …) wird abgelehnt, da das
Koppelgetriebe keinen Riemen hat, auf den er wirken könnte.
Ein Scherenhubtisch
Ein scissor-Knoten ist ein Scherenhubtisch: stages Stufen gekreuzter Armpaare, jeder Arm arm_m von Bolzen zu
Bolzen, stehen auf der Basis; eine Spindel der Steigung lead_m, vom Motor über sein Getriebe gedreht, zieht den
Losfuß der untersten Stufe zum Festfuß hin und hebt so die Plattform. Das Werkzeug ist die Höhe z der Plattform, von
min_height_m bis max_height_m.
[[machine.axis]] # ohne Hub: min_height_m und max_height_m geben den Bereich
id = "z"
[[machine.motor]]
id = "lift"
[[machine.gearbox]]
id = "gearbox"
motor = "lift"
[[machine.scissor]] # machines/scissor-lift.toml
id = "scissor"
gearbox = "gearbox"
axis = "z"
stages = 2.0
arm_m = 1.0
lead_m = 0.01
min_height_m = 0.6
max_height_m = 1.4
arms_kg = 40.0
platform_kg = 60.0
payload_kg = 200.0
screw_efficiency = 0.9 # mit effects.gearbox_efficiency; Vorgabe 1
screw_inertia_kgm2 = 6.47e-4
Mit u dem Abstand der Füße steht eine Stufe s = sqrt(L² - u²) hoch und die Plattform h = n s; die um theta gedrehte
Spindel verschiebt den Fuß um c theta, c = Steigung / 2 pi. Nach dem Prinzip der virtuellen Arbeit zieht die Spindel
den Fuß mit F = W dh/du = W n u / s = W n cot(alpha) für ein Gewicht W auf der Plattform, alpha der Winkel der Arme zur
Basis: bei 0,6 m braucht der Tisch die dreifache Kraft wie bei 1,4 m. Die Dynamik steht in theta wie die des
Koppelgetriebes: M(theta) theta’’ + m h’ h’’ theta’² = tau_gear + Q_g, M = J_Spindel + m h’², Q_g = -g m_g h’, m die
Plattform, die Last und die senkrechte Bewegung der Arme ((4 n² - 1) / (12 n²) von ihnen), m_g die Plattform, die Last
und die halben Arme. Das Gelenk ist ein RotaryJoint auf der Konfiguration des Motors, elastisch oder starr
(effects.joint_elasticity), der Wirkungsgrad der Spindel auf dem des Getriebes. Signale:
gearbox.<Motor>.output_torque, scissor.<id>.actuator_force (die Kraft am Fuß), die Momentaufteilung,
Verlustleistungen und Energien. Eine Datei mit Scherenhubtisch hat eine Achse, einen Motor, sein Getriebe und die
Schere; alles andere daneben wird abgelehnt, ebenso ein eingeschalteter Riemeneffekt.
Von einem festen Moment gehalten ist der Tisch in jeder Höhe instabil: je höher er steht, desto weniger Moment braucht er (die Steifigkeit der Schwerkraft -g m_g h’’ ist negativ), also hebt ihn ein wenig zu viel Moment immer schneller; der Lageregler des Antriebs hält ihn. Seine Standardprüfung läuft deshalb ohne Schwerkraft.
Schneckengetriebe
Ein worm-Knoten macht ein Getriebe zu einer Schneckenstufe: seine ratio ersetzt die des Getriebes, und mit
effects.gearbox_efficiency verliert es nach seinen eigenen Wirkungsgraden; Steifigkeit, Lose und Trägheit des
Getriebes bleiben:
[[machine.worm]]
id = "worm_c"
gearbox = "gear_c" # das Getriebe vor einem Rundtisch etwa
ratio = 40.0
efficiency = 0.76 # von der Schnecke angetrieben: tan(gamma) / tan(gamma + rho')
back_efficiency = 0.69 # vom Rad zurück angetrieben: tan(gamma - rho') / tan(gamma); 0 oder weniger sperrt selbst (dann eta < 0,5)
Solange der Motor treibt, gibt sie das Moment t ihrer Feder als t eta an den Abtrieb und t / i an den Läufer weiter, wie
ein Getriebe (mech::Gearbox, der Wirkungsgrad über 0,5 W eingeblendet). Von der Last zurück angetrieben gibt sie
t / eta_back weiter: bei einem Rückwirkungsgrad von 0,5 nimmt der Läufer die halbe Leistung der Last auf. Ein
Rückwirkungsgrad von 0 oder weniger sperrt sie: die Last kann die Schnecke nicht drehen. Zurück angetrieben gibt sie
t an den Abtrieb und eta_back t / i an den Läufer, gegen die Bewegung, also muss der Motor schieben, um eine Last zu
senken, um -eta_back des Moments der Last durch i, und die Leistung der Last wie die des Motors geht in die Reibung der
Schnecke; ohne Motormoment bremst eine sinkende Last bis zum Stillstand. In Ruhe hält sie jede Last ohne Motormoment
(ihr Haltemoment ist 0). Im starren Modell haftet ihr Abtrieb in Ruhe, solange die Schnecke aufnehmen kann, was Motor
und Last von ihr verlangen: von -(1 / eta - 1) des gehaltenen Moments (heben) bis (1 - eta_back) davon (senken);
darüber bricht sie los. Mit demselben Wirkungsgrad in beide Richtungen ist sie der Rundtisch des Gelenkbaukastens mit
table.gear = "worm". Mit effects.thermal_feedback folgen ihre Wirkungsgrade ihrer Temperatur wie die eines
Getriebes: 1 - eta wird in beide Richtungen zu (1 - eta) (1 - s + s nu / nu_ref), eine selbsthemmende bleibt gesperrt.
Die Umschlingung des Riemens und eine sich neigende Achse
Die Umschlingung des Riemens (effects.belt_wrap). Mit ihr sind die eingreifenden Zähne an jeder getriebenen
Scheibe Umschlingung r / p (p die Zahnteilung) anstelle von ratings.belt_teeth_in_mesh, im Gesetz des
Zahnüberspringens und in der Zahnlast des Riemens. Die Umschlingung wird in der Lage aus den Orten der Räder in der
Ebene des Riemens gerechnet (plane des Abschnitts: x und z der 3D-Ansicht als Vorgabe; x und y beim flach liegenden Riemen eines H-Bots oder CoreXY): at_m der Scheibe (von ihrem Körper aus, wo sie auf einem mitfährt) und die Räder vor und nach ihr entlang des
Riemens, der vorletzte Punkt der Route des Abschnitts, der an der Scheibe endet, und der zweite der Route des
Abschnitts, der dort beginnt (eine Umlenkrolle mit ihrem at_m, von ihrem Körper aus, wo sie auf einem mitfährt; ein
Körper, eine Klemme an ihm, wo die 3D-Ansicht ihn zeichnet; eine andere Scheibe). clockwise jedes Rads sagt, in
welcher Richtung der Riemen um es läuft, den Routen nach; die geraden Trume des Riemens sind die passenden Tangenten,
und die Umschlingung ist, wie weit der Riemen zwischen ihnen um die Scheibe dreht. Für die Anordnungen der
mitgelieferten Crates ist das mech::wrap_angle, eine halbe Umdrehung weniger die Neigung beider Trume. Ein Motor mit
Spindel, Zahnstange, Linearmotor oder Rundtisch hat keine Umschlingung (NaN in Machine::belt_wraps; die Zahnlast
übergeht ihn). Abgelehnt wird eine Datei, wo eine Riemenscheibe nicht eine Route beendet und eine andere beginnt, oder
sie oder ein Rad neben ihr kein at_m hat. Das Spindelportal mit eingeschalteter Umschlingung: der Riemen von X läuft
von der Klemme der Brücke um seine Scheibe zur fernen Umlenkrolle am Gestell (eine Schleife), pi + asin(r / D) +
asin((r - r_f) / d) um sie, D von der Klemme und d von der fernen Umlenkrolle.
Die 3D-Ansicht zeichnet jeden Riemenabschnitt um seine Räder, wie die Umschlingung sie sieht: von Tangente zu Tangente
zwischen den Rädern seiner Route und um jedes Rad innerhalb der Route in dessen Sinn, und um jede Motorscheibe zwischen
dem Abschnitt, der dort endet, und dem, der dort beginnt (geometry::contacts, geometry::arc).
Eine sich neigende Achse (effects.tool_flex, elastisches Modell): ein lean-Knoten ist ein Körper, der sich an
seinem Wagen entlang einer waagrechten Achse neigt, wie die Z-Achse des T-Portals an ihrem X-Wagen. Sein Schwerpunkt
weicht gegen die Führung um w zur Seite aus; die Führung gibt seitlich und im Kippen nach: mit h = com_drop_m weniger
dem Weg der lever_axis ist die Steifigkeit am Schwerpunkt k = 1 / (1 / seitlich + h² / Kippen), und die
Werkzeugspitze, h_tool darunter, bewegt sich um k (1 / seitlich + h h_tool / Kippen) je Meter w. Der Körper fährt mit
der Geschwindigkeit seiner Achse plus w’ über Grund, seine Masse koppelt also die Achsen und w; die Feder wirkt innen,
zwischen Wagen und Körper, die Prozesskraft an der Werkzeugspitze, und wenn die Hebelachse fährt, drückt die steifere
Feder sie mit -w² / 2 dk/dz zurück. Das Werkzeug sitzt an der Spitze (tool_state), die Dämpfung der Neigung ist
power.tool_flex, der Weg der Spitze axis.<Achse>.tool_deflection, und die Eigenform des Riemens schließt sie ein.
[[machine.lean]] # machines/t-gantry.toml
id = "z_lean"
body = "z_axis"
axis = "x"
com_drop_m = "geometry.z_com_drop_m"
tool_drop_m = "geometry.z_tool_drop_m"
lever_axis = "z"
lateral_stiffness_n_m = "tool_flex.lateral_stiffness_n_m"
tilt_stiffness_nm_rad = "tool_flex.tilt_stiffness_nm_rad"
damping_n_s_m = "tool_flex.damping_n_s_m"
belt_offset_m = "tool_flex.belt_offset_m" # mit effects.belt_run_offset
Die Datei des T-Portals hat beides, ausgeliefert aus (das Crate hat seine Neigung an): ihre Scheiben an den Enden von X auf Höhe des Wagens und ihre Wagenrollen r + r_Rolle darüber und darunter, sodass der Riemen beide Scheiben waagrecht verlässt, eine halbe Umdrehung in jeder Lage, wie im Crate; mit einem der beiden Effekte an ist sie ihr Crate auf 1e-9.
Mit effects.belt_run_offset (wie ausgeliefert aus) treffen die Trume, die den sich neigenden Körper von oben erreichen
(die der Klemme, deren Länge sich nur mit der Hebelachse ändert), ihn belt_offset_m neben seiner Linie, auf der Seite
ihres anderen Rads: das Kippen der Führung theta = k w h / tilt hebt das Ende auf der +-Seite um e theta und senkt das
andere, die Abschnitte werden je Meter Neigung um e k h / tilt länger und kürzer, in erster Ordnung. Ihr
Spannungsunterschied dreht die Neigung, ihre Dehnung hält sie, Dämpfung, Energie und Eigenformen folgen aus den Längen
(lean_offset des Crates). Mit effects.beam_vertical_mode fahren die Trume des Riemens wie im Crate auf der
Eigenform w des Balkens (belt_on_beam): ein Trum, das sich entlang der senkrechten Achse bewegt, geht ganz mit dem
Wagen nach unten, eines, dessen Länge sich nur mit der Achse des Balkens ändert, kippt von der Scheibe seines Pfostens,
ein Drittel seiner Masse in der kinetischen Energie und die Hälfte im Gewicht, im ersten Moment und im Impuls; ihr
Gewicht biegt den Balken durch, ihre Trägheit steht in seiner Dämpfung. Die Datei des T-Portals: ihre Eigenform des
Balkens in der Mitte 58,776 Hz (59,32 Hz vor dem 21. November), ihre Durchbiegung in Ruhe 60,33 µm (58,78), die
Handwerte von machine_file_lean_beam.rs; die mitfahrenden Trume müssen zusammen ihre Länge halten (eine Datei, deren
Trume das nicht tun, wird abgelehnt). Beides ist ihr Crate auf 1e-9, einzeln und zusammen, mit dem Versatz an und
aus.
Ein Portal, das giert, und Werkzeuge auf Drehachsen
Eine Brücke, die giert (machine.gantry, effects.gantry_yaw). Die Brücke eines Portals fährt entlang einer
waagrechten Achse und giert dabei ein wenig um die Senkrechte: ihre beiden Seiten, width_m voneinander, laufen um die
Breite mal den Gierwinkel psi auseinander (kleine Winkel). psi ist eine Koordinate mehr neben den Achsen. Was es hält:
die Anbindung der Brücke an ihre Wagen und deren Führungen, eine Feder stiffness_nm_rad mit damping_nm_s_rad;
Spindeln, Zahnstangen oder Linearmotoren an ihren Seiten (drives, jede mit ihrer Lage quer über die Brücke von der
Mitte, so dass ihr Abtrieb x + Seite psi fährt); und Riemenabschnitte, die an ihren Enden ziehen (sections, m Länge
je rad: der Zug des Abschnitts entlang der Achse mal die Lage des Endes quer dazu). Was es dreht: ihre eigene
inertia_kgm2 und die Körper, die mit der Achse und entlang der Brücke (across) fahren. Ein solcher Körper sitzt
e = q_across + Versatz von der Mitte und fährt mit dem Gieren um e psi entlang der Achse; seine Masse koppelt also Achse
und Gieren (m e) und legt m e² auf die Trägheit des Gierens, über die Jacobimatrix seiner Lage (unten); das Werkzeug auf
ihm fährt mit. Signale gantry.<id>.yaw (rad), .sync_error (Breite mal Gierwinkel, m: wie weit die Seiten
auseinander sind) und .moment (k psi + c psi’, N m, was die Anbindung trägt); Verlust power.gantry_<id>; Prüfung
gantry-sync, der größte |Gleichlauffehler| gegen tolerance_m. ConfigMachine::racking_moment gibt das Giermoment
bei einer Stellung und Beschleunigung im verlustfreien starren Modell: was Riemen, Antriebe und Schwerkraft auf das
Gieren legen, über das hinaus, was die Körper bei rechtwinklig gehaltener Brücke dreht. Der Effekt ist in den
mitgelieferten Dateien von H-Bot, CoreXY und Zahnstangenportal aus, damit ihre Ergebnisse bleiben, und in der des
Portals mit Doppelantrieb an.
[[machine.gantry]] # machines/dual-gantry.toml
id = "bridge_yaw"
axis = "x"
across = "y"
width_m = "gantry.width_m"
inertia_kgm2 = "gantry.inertia_kgm2"
stiffness_nm_rad = "gantry.stiffness_nm_rad"
damping_nm_s_rad = "gantry.damping_nm_s_rad"
drives = { mx1 = -0.6, mx2 = 0.6 }
tolerance_m = "gantry.sync_tolerance_m"
- Zwei Antriebe. Zwei Zahnstangen auf der Achse des Portals, eine an jedem Ende: die Datei hat einen Motor mehr
als Achsen, und die beiden legen x und psi zusammen fest. Wie ausgeliefert (
gantry.sync = "plain") folgt jeder Antrieb dem Sollwert der Achse an seinem eigenen Geber (Sollwertkopplung), so halten die beiden Lageregler die Brücke rechtwinklig, und ihre Momente teilen die Last nach dem Hebelgesetz: F2 - F1 = 2 m e a / B für einen Wagen m bei e, mit a beschleunigt. Mit dem Effekt aus halten die Führungen die Brücke rechtwinklig, und beide teilen gleich.machines/dual-gantry.tomlhat ein X von 3 m auf zwei Zahnstangen mit Katalogmotoren (1FK2103-4AH an S210) und ein Y von 0,8 m auf einem Riemen auf einer Brücke von 1,2 m. Es besteht jedes Urteil seines Zyklus:gantry-sync14 µm von 100, und das Ende, nahe dem der Wagen anfängt, trägt mehr (rack-feed-force111 gegen 96 N). Sein Gieren schwingt mit sqrt((k + 2 k_Ende (B / 2)²) / J) / 2 pi mit dem Wagen in der Mitte: 425,4 Hz wie ausgeliefert (J = 2,657 kg m²), über dem Y-Riemen (82,2 Hz) und X auf seinen Zahnstangen (262,3 Hz); der Wagen an einem Ende koppelt X und das Gieren (255,6 und 394,8 Hz).sim-cli modes --machine-file machines/dual-gantry.toml --axis-index 1nennt alle drei mit ihren Dämpfungsgraden (das Gieren 0,144, X 0,088, der Riemen 0,039 in der Mitte); mit J auf 20 kg m² angehoben schwingt das Gieren in der Mitte mit 155,0 Hz, mit dem Wagen an einem Ende mit 151,7 Hz (the_dual_gantry_reports_its_yaw_among_its_modes_by_hand). - Gleichlauf der beiden Antriebe (
gantry.sync,gantry.sync_gain_1_s, gelesen, wo ein Portal zwei Antriebe hat; der erste ist der Master)."master_slave": der Lageregler des Slaves folgt der Istlage des Masters, seinem Sollwert weniger seinem Schleppfehler, so kommt der Nachlauf des Slaves auf den des Masters: bei stetiger Geschwindigkeit v, ohne Geschwindigkeitsvorsteuerung und mit gleichen Reglern laufen die Enden um v / Kv auseinander, den Schleppfehler des Masters (2 mm bei 0,1 m/s und Kv 50 1/s), wo die einfache Kopplung sie zusammenhält. Mit Vorsteuerung laufen beide wenig nach, und das Verfahren ändert, wie eine Störung am Master den Slave erreicht."cross_coupled": der Gleichlauffehler e (Istlage des Slaves weniger der des Masters, in den Einheiten des Slaves) geht mit der Verstärkung k auf beide Drehzahlsollwerte, der des Slaves verliert k e, der des Masters gewinnt k e; ungleiche Regler laufen dann bei stetiger Geschwindigkeit um e0 / (1 + k (1 / Kv1 + 1 / Kv2)) statt e0 = v (1 / Kv2 - 1 / Kv1) auseinander, also halbiert k = Kv1 Kv2 / (Kv1 + Kv2) das Gieren (16,7 1/s bei Kv 50 und 25). Tests:the_master_slave_sync_error_is_the_master_s_following_error,the_cross_coupled_gain_halves_the_yaw_of_unequal_loops(sim-machinesmachine_file_gantries.rs). - Ein Antrieb. Die eine Zahnstange des Zahnstangenportals treibt seine Brücke an einem Ende
(
drives = { mx = -0.5 }): das ferne Ende hält nur die Feder der Anbindung, und es bleibt zurück, solange die Brücke beschleunigt; mit dem Effekt an wächst der Bahnfehler seines Zyklus von 0,07 auf 0,23 mm. - H-Bot und CoreXY. Riemen ziehen an den Enden der Brücke. Beim H-Bot (
sections = { "1" = -0.3, "2" = 0.6, "3" = -0.3 }) ist das Moment des Riemens auf die Brücke -0,3 m mal sein Zug am Kopf entlang der Brücke: sie giert, sobald der Kopf entlang der Brücke geschoben wird, wo er auch steht (-4,2 N m für den Kopf von 7 kg bei 2 m/s²), und ein Kopf außerhalb der Mitte lässt sie gieren, wenn die Brücke beschleunigt (-m e a). Ein starrer Riemen lässt den H-Bot gieren (der Kopf kann bei festgehaltenen Motoren entlang der Brücke fahren), er giert also in beiden Modellen; mit dem Effekt an wächst der Bahnfehler seines Zyklus von 0,06 auf 1,09 mm. Beim CoreXY zieht jeder Riemen an beiden Enden: sein Moment ist die Summe der Zugkräfte des einen Riemens gegen die des anderen, -0,19 N m für den Zug von 8 N, der einen H-Bot mit -2,4 gieren ließe, und sein Bahnfehler bleibt 0,02 mm. Ein starrer Riemen hält das Gieren eines CoreXY: sein starres Modell hat keins. (Im Text vom 14. November standen 0,80, 0,20 und 0,06 mm; sein eigener Stand gibt 1,07, 0,25 und 0,06 mm. Die 1,07 mm des H-Bots wurden am 16. November (024b876a) 1,12 mm, die 0,224 mm des Zahnstangenportals 0,225 mm: die Trume der Riemen der Dateien tragen ihre eigene Masse, beim H-Bot mu (L + 8 (0,65 - y)) auf X, wo die Klumpen mu L hatten (0,86 gegen 0,42 kg bei y = 0,1 m), und 2 mu (2 x - 1) zwischen X und Y; mit effects.belt_mass aus sind es vorher und nachher 1,07 mm. Welcher der beiden Terme die Brücke mehr gieren lässt, ist nicht getrennt. Die Trume des Riemens entlang der Brücke folgen ihrem Gieren seit dem 25. November (yaw_lever_m): die 1,12 mm des H-Bots wurden damit 1,09 mm, gerechnet am 26. November (sim-cli analyze --machine-file machines/h-bot.toml --set effects.gantry_yaw=true; CoreXY 0,02 mm, Zahnstangenportal 0,23 mm). Die 0,06 mm des CoreXY wurden am 14. November mit dem Merge d360b7ed 0,02 mm.)
Körper auf Drehachsen und der Werkzeugmittelpunkt. Ein Körper darf mit Drehachsen fahren: offset_m ist sein
Schwerpunkt von dort, wo sich ihre Achsen bei Winkel 0 treffen, und er fährt auf ihnen herum, die erste in seinen
axes ganz außen. Das incline_deg einer Drehachse neigt die Achse, um die sie dreht, aus der Senkrechten (0, eine
C-Achse) nach x (90, eine A-Achse). Die Lage p(q) eines solchen Körpers ist der Weg der Linearachsen plus sein Versatz,
von seinen Drehachsen gedreht; sein Teil der Massenmatrix ist m J^T J (J = dp/dq, über zentrale Differenzen), der
Schwerkraft -m g J_z, und der Kräfte, die seine Geschwindigkeit verlangt, -m J^T (dJ/dt q’), die Zentripetal- und
Corioliskräfte: die Gleichungen von Lagrange, die Energie bleibt also erhalten. Ein Knoten tcp macht die Koordinaten
des Werkzeugs zu denen der Spitze: drei Linearachsen entlang x (die erste der Datei), y und z, die rotaries, die das
Werkzeug tragen, und tool_m, die Spitze von dort, wo sich ihre Achsen treffen. Die Achsen stehen bei der Spitze
weniger tool_m, von den Drehachsen gedreht: eine Bahn führt die Spitze gerade, während die Drehachsen drehen und die
Linearachsen das ausgleichen, und die Vorsteuerung hat den Anteil der Geschwindigkeit (feedforward_torque_moving).
Die Bereiche des Werkzeugs sind, wo seine Spitze bei jedem Winkel des Kopfs sein kann (die Hübe, um tool_m, von den
Drehachsen gedreht, verschoben, beim kleinsten), und eine Stellung jenseits der Hübe der Linearachsen wird abgelehnt
(error-tcp-joint-range). Die 3D-Ansicht zeichnet das Werkzeug von den Drehachsen bis zur
Spitze und die Bahn des Werkzeugs an der Spitze.
[[machine.tcp]] # machines/five-axis.toml
id = "tool_tip"
axes = ["x", "y", "z"]
rotaries = ["c", "a"] # C um die Senkrechte trägt A um x
tool_m = [0.0, 0.0, -0.2]
machines/portal-c.toml ist das Spindelportal mit einer C-Achse auf seinem Z-Schlitten, die einen Greifer dreht, dessen
Spitze 0,1 m neben der Achse liegt: sein Zyklus trägt ein Teil, während C es um eine Vierteldrehung dreht, die Spitze
auf einer Geraden. machines/five-axis.toml ist das Spindelportal mit einem Gabelkopf, C um die Senkrechte und darin A
um x, die Spitze 0,2 m unter ihrem Schnittpunkt: sein Zyklus neigt A und schwenkt C um eine halbe Drehung um die
stehende Spitze, X und Y fahren dabei einen Kreis, und das Gewicht der Spindel liegt auf A. Beide bestehen jedes Urteil
ihres Zyklus. Getriebe und Trägheiten ihrer Drehachsen und die Massen der Köpfe sind Schätzwerte.
Ein Rundtisch, der das Werkstück trägt (table, table_pivot_m). x, y und z des Werkzeugs sind dann die Lage der
Spitze auf dem Werkstück, wie es bei den Winkeln 0 des Tischs liegt; ein Punkt w davon liegt im Raum bei
p + R_Tisch (w - p), p dort, wo sich die Achsen des Tischs treffen, R_Tisch die Drehung seiner Drehachsen (die äußerste
zuletzt). Die Linearachsen stehen also bei q = p + R_Tisch (w - p) - R_Kopf tool_m: eine Bahn auf dem Werkstück wird
gefahren, während der Tisch es dreht, die Linearachsen gleichen den Tisch aus, und die Drehachsen des Kopfs (rotaries)
dürfen das Werkzeug daneben neigen (Kopf/Tisch). Die Bereiche des Werkzeugs sind der Kasten um p, so breit wie der
kleinste Abstand von p zu einem Ende der Hübe von X und Y, das Werkstück, das der Tisch unter dem Werkzeug drehen kann;
eine Stellung jenseits der Hübe der Linearachsen wird abgelehnt (error-tcp-joint-range).
machines/five-axis-table.toml ist das Spindelportal über einer Schwenkbrücke: A um x trägt C, den Tisch, um seine
eigene Achse, die sich bei (0,5, 0,25, -0,2) m treffen, das Werkzeug hängt 0,2 m unter dem Z-Schlitten. Sein Zyklus
neigt den Tisch, während die Spitze auf einem Punkt des Werkstücks bleibt, dreht den Tisch eine halbe Drehung unter der
stehenden Spitze (X und Y auf einem Kreis um die Achse von C) und fährt die Spitze mit allen fünf Achsen über das
Werkstück. Schwenkbrücke und Tisch fahren auf A und C (offset_m), also hebt das Neigen von A ihr Gewicht auf den Motor
von A. Test a_table_table_tcp_keeps_the_tool_on_a_line_while_the_table_turns: die Spitze auf einer Geraden des
Werkstücks, während C bei A 0,3 rad um 2 rad dreht, jeder Motor gegen seinen von Hand gerechneten Winkel; eine
Kopf/Tisch-Variante (A im Kopf, C im Tisch) in a_head_table_tcp_turns_the_tool_in_the_head_and_the_workpiece_on_the_table.
[[machine.tcp]] # machines/five-axis-table.toml
id = "tool_tip"
axes = ["x", "y", "z"]
table = ["a", "c"] # A um x trägt C, den Tisch
table_pivot_m = [0.5, 0.25, -0.2]
tool_m = [0.0, 0.0, -0.2] # ohne Kopf: vom Punkt der Linearachsen
Die anderen Beispiele: ein CoreXY und ein XYZ-Portal
machines/corexy.toml ist ein CoreXY-Tisch. Seine beiden Motoren stehen an den vorderen Ecken; jeder treibt einen
Riemen, der an beiden Enden am Kopf geklemmt ist, also teilt die Scheibe jedes Motors ihren Riemen in zwei Abschnitte.
Riemen A wird auf einer Seite seiner Scheibe um x + y länger, Riemen B um x - y, also sind die Scheibenwinkel
a = (x + y) / r und b = (x - y) / r: der Lader findet das allein aus den Abschnitten, und ein Motor allein bewegt den
Kopf diagonal. Die Brücke fährt in Y, der Kopf darauf in X. Seine Umlenkrollen (vier, als Vorgabe aus) und die route
jedes Abschnitts zeichnet die 3D-Ansicht.
machines/xyz-portal.toml ist ein Dreiachsportal: X, Y und Z je auf einer eigenen Riemenschleife um die Scheibe ihres
Motors und eine Umlenkrolle am fernen Ende, an ihrem Schlitten geklemmt, Z senkrecht. Sein Z-Motor ist kleiner, mit
einem Getriebe der Übersetzung 10, einem dafür eingestellten Antrieb und eigenen Grenzwerten (oben);
er hält Schlitten und Nutzlast, m g r / i = 3,5 kg · 9,81 m/s² · 0,02 m / 10 = 0,0686 N m.
Beide bestehen mit den Platzhalterwerten des T-Portals jedes Urteil ihres Zyklus (sim-cli verdicts --machine-file ...);
keine ist eine reale Maschine.
Netze für die 3D-Ansicht
Die App zeichnet jedes Teil, das eine Maschine meldet, als Quader, Zylinder (mit Flansch und Wellenstumpf, wo er etwas
länger als breit ist), genutete Stange (ein langer Quader mit fast quadratischem Querschnitt) oder Streifen. Ein Teil
kann stattdessen aus einem CAD-Modell gezeichnet werden. Wo die Modelle liegen, sagt die Konfiguration oder
Maschinendatei in einer optionalen Tabelle [scene]:
[scene]
meshes_dir = "meshes" # ein Verzeichnis, relativ zu dieser Datei (oder absolut)
In diesem Verzeichnis sucht die App für jedes Teil der Szene <Teil-id>.glb, so wie die Teil-ids der 3D-Ansicht heißen
(motor, belt, …; ein Teil in der Ansicht anzuklicken zeigt seine id). Ein Teil mit Datei wird daraus gezeichnet;
ein Teil ohne bleibt, wie es war, und ebenso die ganze Ansicht, wo der Schlüssel fehlt oder das Verzeichnis nicht da
ist. Gemeldet wird nichts, da die meisten Teile kein Modell haben. Gelesen werden nur glTF-Binärdateien (.glb), und
jede muss alles enthalten, was sie braucht (eingebettete Texturen). Ein Modell behält die Größe, in der es gemacht
wurde, mit seinem Ursprung am Ort des Teils in der Szene und den Achsen von glTF, wie die 3D-Ansicht sie hat (x nach
rechts, y nach oben, z zum Betrachter); es bewegt und dreht sich mit dem Teil und wird nicht an es angepasst gestreckt.
CAD-Dateien von Herstellern dürfen meist nicht weitergegeben werden: Die Netze gehören neben die eigene Konfiguration,
nicht in ein Repository, das veröffentlicht wird. Wo der Schlüssel fehlt, werden die Netze im eigenen Ordner
assets/meshes/<Name der Konfigurationsdatei>/ der App weiter gefunden.
scene.meshes_dir ist ein Schlüssel, den die Konfiguration jeder Maschine annimmt. Die App liest ihn neu, wenn sich die
Konfiguration ändert (das Parameterfeld nimmt scene.meshes_dir = "meshes"), und zeichnet die Teile neu; die
Kommandozeile und die übrigen Oberflächen ignorieren ihn.
Was geprüft wird, und wie Fehler lauten
Eine Maschinendatei wird beim Laden vollständig geprüft, bevor etwas läuft:
- das TOML oder JSON selbst,
format_versionundmachine.version; - jeder Knoten: kein Feld, das seine Art nicht hat, jedes Pflichtfeld vorhanden, jeder Wert vom richtigen Typ, ids gültig und eindeutig, jeder Verweis auf einen vorhandenen Knoten, jeder Pfad auf eine vorhandene Zahl;
- die Maschine: Massen, Radien und Längen positiv, ein Getriebe je Motor (keins bei einem Linearmotor) und eine Scheibe, Spindel, Zahnstange oder ein Rundtisch je Getriebe, höchstens eins davon je Achse, eine Spindel mindestens so lang wie ihr Hub, so viele Motoren wie Achsen und einen mehr je Antrieb eines Portals über den ersten hinaus, die Antriebe eines Portals auf seiner Achse, die Achsen eines Werkzeugmittelpunkts entlang x, y und z, eine Riemenführung, die die Riemenlänge hält und jede Achse festlegt;
- jeder andere Schlüssel gegen die Schlüssel der Konfigurationen der eingetragenen Maschinen (so wird
pretensoin_nbeim Namen abgelehnt), dazu[axis.<id>]je Achse, eine Reibtabelle je Führung, die Wertetabellen von Spindeln, Zahnstangen, Linearmotoren und Wellgetrieben im Aufbau des Gelenkbaukastens und jeder Schlüssel, den die Netzliste über einen Pfad nennt; - dann alles, was die Simulation bei ihrem Start liest, wie bei einer Konfiguration: der Antrieb, der Zyklus, die Startlage, die Katalogteile, die die Datei nennt.
Ein Fehler nennt Datei, Zeile und Schlüssel, in der Sprache der Oberfläche:
$ sim-cli verdicts --machine-file broken.toml --lang de
Die Konfiguration enthält einen Wert, den diese Maschine nicht kennt: broken.toml:674: machine.guide[guide_z].side_lod
Ein Knoten wird mit seiner Liste und seiner id genannt, machine.guide[guide_z]; bevor seine id gelesen ist, mit
seinem Platz in der Liste, machine.gearbox[#2] (ab 1). Geht es um einen Wert, den ein Knoten über seinen Pfad nennt,
ist die Zeile die des Felds im Knoten. Die Zeile wird bei TOML-Dateien gefunden; bei JSON steht nur der Schlüssel da.
Das Modell dahinter
Eine Maschinendatei baut eine ConfigMachine: ein Riemenportal beliebiger Riemenführung mit n Achsen q und ebenso
vielen Motoren. Es ist das Modell der Crates Einzelachse und T-Portal, für jede Riemenführung aufgeschrieben (die
Modellreferenz leitet es für diese her):
- Riemenabschnitt s hat die Länge L_s = L0_s + Σ_i c_si q_i, dazu die Zähne im Eingriff an jeder angetriebenen
Scheibe, an der er endet (
Belt::tooth_length), und Scheibe k speist je Radiant f_sk r_k Riemen in ihn ein. - Der Riemen zieht Achse i mit -Σ_s c_si T_s und dreht Scheibe k mit r_k Σ_s f_sk T_s (über das Riemenmaterial, mit dem
elastischen Gesetz von
Belt). - Starr (effects.belt_stretch aus) hält der Riemen seine Länge: C q = F diag(r) a, also a = K q mit K als Kleinste-Quadrate-Lösung von F diag(r) K = C. Der Lader lehnt eine Führung ab, bei der K das C nicht genau wiedergibt oder nicht umkehrbar ist.
- In Ruhe halten die Spannungen jede Achse gegen die Schwerkraft, und jeder geschlossene Riemen behält sein Material: Abschnitte, die sich eine Scheibe teilen, sind ein Riemen, und er ist geschlossen, wo jede seiner Scheiben ihn auf einer Seite einspeist und auf einer anderen herausnimmt. Eine Maschine darf mehrere Riemen haben (etwa einen je Achse); ein Riemen, der auf einer Trommel endet, hat keine solche Summe.
- Die Masse auf Achse i ist die Summe der Körper, die sich mit ihr bewegen; die Achsen gelten als rechtwinklig zueinander, die Massenmatrix der Körper ist also diagonal, bis auf die Körper auf Drehachsen oder quer auf einer gierenden Brücke, die m J^T J, ihren Teil der Schwerkraft und die Kräfte ihrer Geschwindigkeit hinzufügen (oben). Scheiben und Läufer (J_Scheibe + i² J_Läufer je Motor, die Riemenmasse zu gleichen Teilen auf die Scheiben gelegt) kommen als K^T J K hinzu. Die Schwerkraft zieht Achse i mit m_i g sin(Neigung_i).
- Getriebe (Lose, Steifigkeit, Wirkungsgrad), Motorreibung, Drehmomentwelligkeit und Rastmoment, Zahneingriff,
Haltebremse, Endanschläge an beiden Enden jedes Hubs, LuGre-Führungsreibung mit Lastabhängigkeit: die Bauteile aus
sim-components::mech, wie die Crates sie verwenden. Jeder Motor aus seiner eigenen Konfiguration (oben). - Umlenkrollen (
machine.idler,effects.idlers): Rolle d lässt Riemen mit s_d · v durch (ihrspeed), ihre Trägheit J / r² kommt also als m_d s_d s_d^T zur Massenmatrix der Achsen (die dann voll ist), und ihr Lager zieht die Achsen mit F_d tanh(s_d · v / (w r)) s_d zurück, F_d ihr Reibmoment durch ihren Radius. Sie tragen kein Gewicht. - Eine Energiekette an einer Achse: ihre bewegte Masse m(q) = mu (L0 + q / 2) braucht m dv/dt + m’ v² / 2, und sie schleppt.
- Eine Prozesskraft je Achse,
process.force_<Achse>_n, auf das Werkzeug, solange der Zyklus verweilt. - Der Rahmen (
machine.frame, elastisches Modell): er schwingt um u entlang einer waagrechten Achse f; die Körper bewegen sich über Grund mit v + e_f du/dt, und der Rahmen nimmt die Kräfte zurück, die sein Riemen, seine Führungen, Umlenkrollen, Kette und Anschläge auf sie geben, nicht aber die Prozesskraft, die das Werkstück auf dem Boden nimmt. Das Werkzeug bewegt sich mit dem Rahmen. - Thermische Rückwirkung: der Wirkungsgrad jedes Getriebes und die viskose Reibung jeder Führung folgen ihrer
Temperatur, die Steifigkeit des Riemens der Umgebung (
mech::ThermalFeedback). - Zahnsprung (elastisches Modell): an jeder Motorscheibe zwischen dem Abschnitt, den sie speist, und dem, aus dem sie
nimmt (
mech::ToothJump); eine Scheibe mit einem Abschnitt nur auf einer Seite (eine Trommel) lehnt den Effekt ab. - Trumschwingung (
machine.span): die erste Querschwingung jedes Trums bei der Spannung seines Abschnitts, gegen das, was die Antriebe anregen (mech::span_frequency). - Die Trume des Riemens auf einer gierenden Brücke (
yaw_lever_m,yaw_lever_axeseines Trums, miteffects.gantry_yawundmachine.gantry): wo ein Trum quer zur Brücke von ihrer Mitte liegt, l_s = l0_s + b_s · q (m; b_s je Meter jeder Achse bei einem Trum, das am Kopf endet), bewegt das Gieren es entlang der Achse d der Brücke um l_s mal den Gierwinkel, wie einen Körper an diesem Hebel. Seine Geschwindigkeit über Grund ist V_s v + l_s psi’ d + e du, die Giersäule von V_s enthält also l_s d, und die Massenmatrix bekommt mu L_s V_s’ V_s damit (span_rows); die Geschwindigkeitsterme nach Lagrange tragen die Änderung des Hebels mit den Koordinaten. Ein Trum ohne Hebel ist wie zuvor (das Gieren bewegt es nicht). Die Trume des H-Bots entlang x und die des CoreXY entlang y tragen die ±0,3 m ihrer Enden, die die Gierbeiwerte ihrer Abschnitte festlegen (Achsen mal Hebel); die Trume quer zur Brücke (und die Y-Riemen des Zweiantriebs- und des Zahnstangenportals) haben keinen, da ihre Dateien nicht sagen, wo entlang der Brücke jedes liegt: das Gieren lässt sie bei der Geschwindigkeit ihrer Brücke. Von Hand beim H-Bot bei x = 0,37 m wächst der Eintrag des Gierens in der Massenmatrix des Riemens um mu 0,3² · 2,6 m = 0,0234 kg m², seine Kopplung an x um 0,0156 und an y um -0,078 kg m (the_belts_runs_along_the_bridge_ride_its_yaw); die Energie bleibt erhalten (the_energy_closes_with_the_belts_runs_on_the_yaw). Nicht darin: der Impuls des Rahmens (effects.base_compliance) nimmt die Trume weiter mit den Achsgeschwindigkeiten ohne das Gieren. - Die Riemenmasse Trum für Trum: wo jedes Trum die Geschwindigkeit seines Riemens über Grund je Achsgeschwindigkeit
angibt (
velocity_x,velocity_y,velocity_z, entlang der Achsen der 3D-Ansicht) und die Trume zusammen der ganze Riemen sind (sonst abgelehnt), bewegt sich jedes Trum, L_s = L0_s + c_s · q lang, mit V_s v über Grund, mit dem Schwingen des Rahmens e du obendrauf: die kinetische Energie des Riemens ½ mu Σ_s L_s |V_s v + e du|² ersetzt die Hälfte auf jeder Scheibe in der Massenmatrix der Achsen (und des Rahmens), mit den Geschwindigkeitstermen nach Lagrange, und sein Impuls und erstes Moment gehen in den Impuls des Rahmens ein. Sein Gewicht sitzt an diesem ersten Moment: die potentielle Energie hat g mu Σ_s (L0_s + c_s · q / 2) V_s,z · q, die Schwerkraft deren Gradient (runs_height); so wiegen die senkrechten Trume des T-Portals 0,16 kg auf Z wie in seinem Crate, der Z-Riemen des XYZ-Portals nichts (eine Schleife: das Trum vom Motor zur fernen Umlenkrolle, 0,5 m, sinkt, wie die beiden mit dem Schlitten steigen; seine X- und Y-Riemen sind ebenso Schleifen, 1,2 und 0,7 m vom Motor zur fernen Umlenkrolle). Die Datei des T-Portals gibt ihre Trume so an; ihr Crate leitet dasselbe aus dem Riemenweg ab (belt_mass). Ebenso die anderen Dateien, deren Trume sich über Grund bewegen, jede mit der Tabelle ihrer Trume im Kommentar: der H-Bot (der Riemenweg des T-Portals mit Y statt Z), der CoreXY (jeder Riemen bewegt sich entlang X und entlang Y als Ganzes, wie die Klumpen es hatten, und gibt -0,01 kg zwischen X und Y) und die Portale, deren Y- (und Z-) Riemen auf den Achsen fährt, die ihn tragen. - Die Eigenform des Riemens (elastisches Modell): die Achsen, und der Rahmen, wo er schwingt, auf der Steifigkeit des
Riemens bei festgehaltenen Scheiben, K = Σ_s EA / l_s c_s c_s^T (l_s der ungedehnte Riemen des Abschnitts in Ruhe, wie in den Crates), gegen ihre Massenmatrix; die niedrigste ist
resonance_hzin einer Lage, also stellteffects.shaper_follows_poseden Shaper darauf, und die App zeigt ihre Form (auf 1 m Werkzeugweg skaliert).Machine::modes(sim-cli modes, die Darstellung der App) gibt jede Eigenform von K und M, die des Gierens und der Getriebe von Spindeln, Zahnstangen und Rundachsen mit, die niedrigste zuerst, jede mit ihrem Dämpfungsgrad x^T C x / (2 w) (x ihre Form, x^T M x = 1): C die Dämpfer der Riemenabschnitte c + c_t EA / l, die der Getriebe bei der Frequenz der Eigenform, des Gierens, des Rahmens, der Neigung und des Balkens. Die Datei des T-Portals gibt die beiden Eigenformen ihres Crates samt Dämpfung auf 1e-9 (the_t_gantry_file_tells_its_crates_modes). Bis zum 21. November 2026 gab eine Datei nur ihre niedrigste, mit Dämpfung 0. - Spindel, Zahnstange, Linearmotor oder Rundtisch (
machine.screw, …): das Getriebe seines Motors wird eines in der Einheit der Achse, der Übersetzung i / Hebel (derRotaryJointdes Gelenkbaukastens mit demtransmission::Converterdahinter), und seine “Scheibe” ist die Achse selbst: K hat für ihn die Zeile e_i, die Achse nimmt den Abtrieb des Getriebes als ihre Kraft, die Gleichungen des Riemens überlassen ihm die Achse (in Ruhe und bei den starren Spannungen), und im elastischen Modell folgen die Zustände der Scheibe der Achse. Die Masse einer Drehachse ist die Trägheit ihres Rundtischs und dessen, was auf ihr mitfährt. Ein Antrieb an der Seite einer gierenden Brücke hat die Zeile e_i + Seite e_psi. - Das Gieren eines Portals (
machine.gantry,effects.gantry_yaw): eine Koordinate psi mehr nach den Achsen, mit Feder und Dämpfer, die Gierbeiwerte der Riemenabschnitte in C, die Seiten der Antriebe in K. Wo weniger Motoren als Koordinaten es festlegen (ein Antrieb, oder Riemen), legen die Motoren die Achsen fest und die Feder das Gieren (forwardund die Vorsteuerung nehmen die Zeilen der Achsen); wo Riemen ihre Länge damit nicht halten können (ein CoreXY), hat das starre Modell kein Gieren. - Ein Werkzeugmittelpunkt (
machine.tcp): die Stellung des Werkzeugs geht über die Drehung vontool_mdurch die Drehachsen in die Achsen über und zurück; Geschwindigkeiten und Beschleunigungen durch Ableiten dieser Abbildung. - Eine Schneckenstufe (
machine.worm): der Abtrieb ihres Getriebes bekommt t eta^x und ihr Läufer t / i, x = tanh(t w / 0,5 W), mit dem Rückwirkungsgrad, wo die Last treibt (x unter 0). Eine selbsthemmende folgt ohne Einblendung dem Coulombschen Gesetz an ihrem Eingriff, ihre Reibung (1 / eta - 1) mal das Moment an der treibenden Flanke und (1 - eta_back) mal es an der zurücktreibenden, so dass der Eingriff nur Leistung aufnimmt. Im elastischen Modell ist das Moment das der Getriebefeder: der Abtrieb bekommt es unverändert und der Läufer zusätzlich die Reibung der Flanke; die Reibung ist nie größer als das, was den Läufer in 1 ms anhält (worm::STICK_TIME_S), also haftet er in Ruhe innerhalb der Grenzen beider Flanken und hält seine Last ohne Motormoment (ConfigMachine::worm_drag). Senkt sie ein schweres Rad mit zu wenig Schub, klemmt sie: die Reibung der zurücktreibenden Flanke steigt mit dem Moment der Feder, während der Läufer langsamer wird, der Läufer steht in Millisekunden und das Rad schwingt auf der Feder. Im starren Modell werden mit einer selbsthemmenden Schnecke die Abtriebe der Getriebe neben den Beschleunigungen gelöst, und das Bremsmoment einer bewegten selbsthemmenden Schnecke am Rad ist das größere aus dem der treibenden Flanke, (1 / eta - 1) mal das Moment, das das Rad aufnimmt, und dem der zurücktreibenden, (1 - eta_back) mal das Moment, das der Abtrieb in Ruhe gegen die Kräfte der Achsen hält (ein Bremsmoment im Verhältnis zum dynamischen Moment hat dort mit einem schweren Rad keine starre Lösung, Painlevés Paradox). Es steigt mit dem Moment des Rads, also hat die Lösung eine Antwort. In Ruhe und unter 1e-3 rad/s (worm::STICK_SPEED) haftet der Abtrieb innerhalb der Grenzen der Schnecke (ConfigMachine::rigid_locking). - Ein sich neigender Körper (
machine.lean, elastisches Modell): eine Koordinate w mehr neben den Achsen, die Masse des Körpers koppelt sie an seine Achse, [[M, m e_a], [m e_a^T, m]] [a; w’‘] = [F; tip p_a - k w - c w’], k und tip ausgeometry::flex_at. - Die Umschlingung des Riemens (
effects.belt_wrap):geometry::wrapan jeder Scheibe aus den Tangenten ihrer Nachbarn, in der Lage. - Ein Koppelgetriebe mit zwei oder drei Armen baut eine
LinkageMachineoder einenspatial::Delta, eine Schere eineScissorMachine, keineConfigMachine: ihre Modelle stehen oben.
Regler, Antriebe, Zwischenkreis, Wicklungserwärmung, Analysen, Urteile, Sensitivität und Fehlerbänder sind die jeder Maschine; an ihnen ist nichts besonders für Maschinendateien.
Was Maschinendateien noch nicht können
-
Die Lagen der Umschlingung sind die der 3D-Ansicht: beim Lesen einer Datei werden die Abschnittslängen nicht gegen sie geprüft (die Prüfung der Räder der mitgelieferten Dateien in
sim-netlistvergleicht sie). -
tool_flex: ein sich neigender Körper, entlang einer waagrechten Achse; er neigt sich nur im elastischen Modell (wie im Crate). -
Das starre Modell einer selbsthemmenden Schnecke nimmt die Reibung der zurücktreibenden Flanke aus dem Moment, das das Rad in Ruhe hält, also bremst es ein schweres Rad gleichmäßig, wo das elastische Modell klemmt; bei gleichbleibender Geschwindigkeit stimmen beide überein.
-
Die Lagerreibung eines Rundtischs wirkt am Läufer, vor Feder und Wirkungsgrad des Getriebes, wie die Vorspannung einer Spindel.
-
Der Eingriffswinkel einer Zahnstange ist für jede 20 Grad, und die Axialkraft ihres Ritzels bleibt aus der Last der Welle heraus.
-
Die Arme eines Scherenhubtischs zählen nur mit ihrer senkrechten Bewegung (ihr Drehen und die seitliche Bewegung der Füße bleiben aus seiner Masse heraus), er hat eine Spindel am Fuß der untersten Stufe (keinen Zylinder zwischen den Armen), und er mischt sich nicht mit Riemen, Spindeln oder Körpern. Die Datei eines Koppelgetriebes oder Scherenhubtischs kann keine anderen Mechanismen daneben tragen. Die Eigenformen des räumlichen Delta nehmen das Getriebe seines ersten Arms für alle drei. folgen jeder dem gemeinsamen Sollwert, es gibt also keinen Master/Slave- oder kreuzgekoppelten Gleichlauf in den Antrieben (das wäre Sache der Regelung), und der Gleichlauffehler ist, was zwei gleiche Lageregler übrig lassen. Die Gierbeiwerte eines Abschnitts sind Zahlen aus seiner Führung, nicht aus seiner
routegerechnet; ein Körper auf der Brücke, der nicht quer fährt, sitzt in ihrer Mitte; Umlenkrollen und Trums folgen dem Gieren nicht. -
Ein Körper auf Drehachsen ist eine Punktmasse in seinem Schwerpunkt: seine eigene Trägheit um ihn steckt im
inertia_kgm2des Rundtischs. Ein Werkzeugmittelpunkt braucht drei rechtwinklige Linearachsen (x, y, z der 3D-Ansicht) und die Drehachsen auf der Seite des Werkzeugs (ein Kopf): ein Rundtisch, der das Werkstück trägt, ist noch keiner. Einschwingen und Bahnfehler der Auswertung zählen den Fehler einer Drehachse in rad zu dem der Linearachsen in m. -
effects.belt_tooth_jumpzusammen mit Spindel, Zahnstange, Linearmotor oder Rundtisch: seine Zustände liegen je Motor, und ein Motor ohne Scheibe hat keine; die Datei wird abgelehnt. -
Die Steifigkeit einer Spindel folgt mit
effects.screw_stiffness_with_position(in den mitgelieferten Dateien mit Spindel an) der Mutter, wie im Gelenkbaukasten; aus, ist es die bei der weichsten Mutterstellung für den ganzen Hub. Das Bremsmoment ihrer Vorspannung sitzt am Motor, mit einer Glättung in rad/s. -
Andere Eigenformen als die des Riemens: der Rahmen geht in die des Riemens ein, wo er schwingt, die eigene Steifigkeit der Führungen und Motoren nicht, und die Biegung eines Körpers ist nicht modelliert.
-
Abschnitts- und Trumlängen sind Zahlen (oder Pfade), keine Formeln: eine, die von einem Hub abhängt, folgt einer Änderung dieses Hubs nicht von selbst.
-
sim-cli listund die Maschinenliste der App zeigen nur die eingetragenen Maschinen; eine Datei wird geöffnet, nicht aufgeführt.
Wie es geprüft ist
crates/sim-machines/tests/machine_files.rs lädt machines/single-axis.toml und machines/t-gantry.toml und hält sie
gegen ihre Crates:
- die Maschine selbst, mit fünf Sätzen von Effekten (Vorgabe, starr, ohne Verluste, ohne Schwerkraft, ohne Riemendetails und Nutzlast), in drei Lagen, mit gehaltener und abgesetzter Nutzlast und mit greifender Bremse: Kinematik, Ruhelage und Haltemomente, die Ableitungen eines aus der Ruhe verschobenen Zustands unter Momenten, Energie, Vorsteuerung, starre Riemenspannungen und jedes Signal, das beide haben: stimmen auf 1e-9 überein;
- der ganze Zyklus (Regler, Antriebe, Zwischenkreis, Wicklung), elastisch und starr, ohne die Geberstriche: jede Motorlast und jeder Urteilswert stimmt auf 1e-5. Genauer geht es nicht: die beiden summieren in anderer Reihenfolge, und während eine Führung aus der Haftung losbricht, wächst ein Unterschied von 1e-36 alle 30 Schritte auf das Zehnfache, bevor er sich bei der Konstantfahrt wieder schließt;
- dasselbe mit den Geberstrichen, wie ausgeliefert: dieselben Urteile, Grenzwerte und Bestanden oder nicht. Dort verschiebt ein Unterschied im letzten Bit einen Geberstrich um einen Schritt, und Schaltschwellen (der Bremschopper) tragen das weiter: das Crate mit einem um 1e-9 schwereren Wagen streut in ihrer höchsten Bremsleistung um 0,5 %, und die Datei muss innerhalb der dreifachen eigenen Streuung des Crates liegen, oder innerhalb 1e-4.
Derselbe Vergleich läuft mit jedem Effekt, den Maschinendateien seit dem 13. November haben, eingeschaltet (Rahmen,
Umlenkrollen, Energiekette, Prozesskraft, thermische Rückwirkung mit warmen Teilen, Zahnsprung, Trumschwingung),
elastisch und starr, und mit allen zugleich: die Datei des T-Portals nennt ihre fünf Umlenkrollen, ihren Rahmen und
acht Trume und gibt die Zahlen des Crates auf 1e-9 (the_effects_of_a_machine_file_are_its_crates); seit dem
14. November auch mit der sich neigenden Z-Achse (machine.lean) und der Umschlingung des Riemens aus den Lagen
seiner Scheiben und Rollen, deren Umschlingungen ebenfalls übereinstimmen. Die Handrechnungen der Effekte selbst sind
die des Crates.
Der H-Bot, der CoreXY und das Portal haben kein Crate, gegen das sie gehalten werden könnten. Alle fünf Dateien bestehen die Standardprüfung, die jede Maschine besteht (Hin- und Rückrechnung, statisches Halten, Determinismus, Energieerhaltung ohne Verluste, die Verlustbilanz mit ihnen), und Handrechnungen prüfen Motorwinkel und -momente des H-Bots und des CoreXY, die eigene Getriebeübersetzung des Portals (im Winkel und in der Drehzahl seines Z-Motors), das Moment, mit dem sein Z-Motor den Schlitten hält, den eigenen Antrieb und die eigenen Grenzwerte seines Z-Motors, die Eigenform des Riemens der Einzelachse und die Riemenstreifen, die die 3D-Ansicht zeichnet. CoreXY und Portal liegen (in X und Y) flach wie der H-Bot und laufen die Standardprüfung aus demselben Grund ohne Lose. Bei seiner Standardprüfung ist die Getriebelose aus: nichts zieht seine Getriebe an eine Flanke, und der kleine Impuls der Prüfung schlägt sie durch die Lose, was die Energie um 0,17 % driften lässt, mehr als die erlaubten 0,1 %. Das liegt am Getriebekontakt bei der Schrittweite der Prüfung, nicht an der Netzliste: das Crate T-Portal ohne Schwerkraft driftet auf dieselbe Weise um 0,19 %.
crates/sim-machines/tests/machine_file_mechanisms.rs hält die Spindeln, Zahnstangen, Linearmotoren und Rundtische:
die Kugelgewindeachse des Gelenkbaukastens als Datei ist ihr Crate auf 1e-9 (elastisch und starr, mit gehaltener,
abgesetzter Last und mit Bremse: Kinematik, Ruhelage, Ableitungen, Energie, Vorsteuerung, die Signale der Spindel und
die Momentaufteilung, ihre Prüfungen); von Hand das Moment des Z-Motors des Spindelportals für eine Last und
Beschleunigung und die kritische Drehzahl seiner Spindel, Motorwinkel x i / r und Vorschubkraft des
Zahnstangenportals, der Strom eines Linearmotors für eine Kraft und seine Führungslast, das Moment eines Rundtischs in
rad, die Lagerreibung eines Rundtischs am Motor ((2 + 0,5) / 100 = 0,025 N m), die Querlast des Ritzels auf die
Getriebewelle (37,5745 N für 35,05 N an den Zähnen); beide neuen Dateien bestehen die Standardprüfung; und eine kaputte
Spindel wird mit Schlüssel und Zeile abgelehnt.
crates/sim-machines/tests/machine_file_linkage.rs hält das Koppelgetriebe: machines/planar-delta.toml ist das Crate
des ebenen Delta auf 1e-9, in seiner Grundkonfiguration und mit jedem seiner 36 Effekte einzeln umgeschaltet (Achsen und
Motoren, Kinematik, Ruhelage und Haltemoment, die Ableitungen eines aus der Ruhe verschobenen Zustands, Energie, beide
Vorsteuerungen, jedes Signal, die Erwärmung der Teile, was der Arbeitsraum ablehnt); sein Zyklus, elastisch, starr und
mit allen standardmäßig ausgeschalteten Effekten eingeschaltet, gibt die Signale des Crates in jedem 16. Schritt der
ersten halben Sekunde und seine Motorlasten und Urteile, auf 1e-9 (beide summieren in derselben Reihenfolge und stimmen
bitgenau überein, Encoderstriche eingeschlossen); die Datei besteht die Standardprüfung mit den verlustfreien
Konfigurationen des Crates; von Hand die Armwinkel bei (0,1, -0,5) m (-asin 0,2 = -11,537 Grad und 16,474 Grad) und das
Haltemoment in der Mitte (-18,358 N m an jedem Getriebe); und ein kaputtes Koppelgetriebe wird mit Schlüssel und Zeile
abgelehnt (darunter ein eingeschalteter Riemeneffekt und ein räumlicher Wert am ebenen Koppelgetriebe).
machines/delta-d3.toml ist ebenso das Crate des räumlichen Delta, mit jedem seiner Effekte einzeln umgeschaltet, und
sein Zyklus gibt die Signale und Urteile des Crates auf 1e-9. Haltemoment und Kraft am Fuß des Scherenhubtischs bei
0,6 und 1,4 m sind die der Handrechnung (W n cot(alpha): 17462,6 und 5602,7 N), ebenso sein Kraftverhältnis
n cot(alpha) in zwei Höhen (scissor.rs), und seine Datei besteht die Standardprüfung ohne Schwerkraft.
crates/sim-machines/tests/machine_file_geometry.rs hält die Umschlingung des Riemens aus den Lagen der Nachbarn einer
Scheibe von Hand in zwei Lagen (eine versetzte Umlenkrolle und eine Klemme, die nicht waagrecht liegt), das
Schneckengetriebe gegen den Rundtisch des Gelenkbaukastens mit seiner Schnecke (starr und elastisch, treibend und
zurück angetrieben), das Halten einer selbsthemmenden Schnecke und die Beschleunigung einer zurück angetriebenen von
Hand, die selbsthemmende Schnecke, die eine sinkende Last ohne Moment abbremst, 0,05 N m Schub zum Senken braucht und
aus der Ruhe haftet, solange nicht genug sie bewegt, die eine Antwort der bewegten selbsthemmenden Schnecke über
Geschwindigkeiten und Momente gegen beide Flanken von Hand und ihr Senken in Fahrt (die 5 W des Motors und die 10 W der
Last gehen in der Schnecke verloren; ohne Moment bremst sie bis zum Stillstand und hält), die elastische selbsthemmende Schnecke, die unter Last in Ruhe
steht, bei gleichbleibender Geschwindigkeit in beide Richtungen die Momente und Verluste des starren Modells kostet und
beim Losbrechen, durch eine Umkehr und beim Klemmen nie Leistung abgibt, mit geschlossener Verlustbilanz, die
Umschlingungen des Spindelportals neben seiner Z-Spindel, und
die Katalogsuche für den Z-Motor des XYZ-Portals allein.
crates/sim-machines/tests/machine_file_review.rs hält fest, was eine unabhängige Durchsicht durch Versuch gefunden
hat und was behoben ist: eine Maschine mit zwei oder drei getrennten Riemen (ihre Ruhelage war falsch, wo eine Achse
senkrecht steht), eine Führung mit Überhang, wo die Antriebsmassen die Achsen koppeln, eine Achse, die kein Körper
bewegt, das Y des H-Bots entlang X gezeichnet, ungeprüfte machine.id und machine.name, Fehlerzeilen, die
anderswohin zeigten, und eine JSON-Version 1.0.
Die Tests prüfen außerdem, dass eine JSON-Datei dieselbe Maschine ergibt wie ihr TOML, dass
schema/machine-file.schema.json aktuell ist, dass neun Arten kaputter Dateien mit dem richtigen Schlüssel und der
richtigen Zeile abgelehnt werden, und (in sim-cli, sim-app und sim-opcua), dass jede Oberfläche
Maschinendateien lädt, ausführt und ablehnt.
JSON, das JSON-Schema und Editoren
Eine Datei, deren Name auf .json endet, wird als JSON gelesen: dieselben Tabellen als Objekte, die Knotenlisten als
Felder von Objekten. format_version und machine.version sind ganze Zahlen (1, nicht 1.0).
schema/machine-file.schema.json (JSON Schema, Entwurf 2020-12) beschreibt [machine] vollständig, mit der Bedeutung
jedes Felds (auf Englisch); die Wertetabellen führt es als Objekte (ihre Schlüssel stehen in der
Konfigurationsreferenz). Es wird aus derselben Liste geschrieben, gegen die der Lader prüft
(sim_netlist::netlist::NODES). Nach einer Änderung dieser Liste schreibt man es neu mit
MACHINE_SCHEMA_WRITE=1 cargo test -p sim-machines --test machine_files the_json_schema_file_is_current
Das Format ist auch für einen Knoteneditor gedacht: ids sind fest und eindeutig in der Datei, Verweise gehen über ids,
pos hält den Platz eines Knotens auf der Zeichenfläche und wird sonst nicht beachtet, und nichts hängt an der
Reihenfolge der Knoten außer der Reihenfolge der Motoren und Achsen.
Rust-Schnittstelle
sim_machines::load_file(path) -> Result<&'static MachineEntry, FileError>: das, was die Oberflächen aufrufen. Der Eintrag wird wie einer ausMACHINESverwendet (Sim::new(entry, &entry.config()), die Analysen,translations). Er lebt so lange wie das Programm.sim_netlist::from_text(toml_text, lines, fallback_id, known): dasselbe auf dem TOML-Text einer Datei, mit den Konfigurationen, deren Schlüssel eine Datei verwenden darf (known); gibt den Fehler mit seiner Zeile zurück, wolinesgesetzt ist. JSON wird insim_machinesumgewandelt, der einzigen Schicht, die es liest; die Schicht der Maschinen-Crates hat nurtoml.FileError { file, line, error },erroreinConfigError(ein Übersetzungsschlüssel und der Pfad, um den es geht), wie bei jeder Konfiguration.sim_netlist::build(&Config): dasMachineEntry::buildjeder Maschinendatei; die Netzliste steckt in der Konfiguration.sim_netlist::Netlist::parse(&Config),ConfigMachine::new(&Config, &Netlist),json_schema()(als Wert;sim_machines::json_schema()schreibt ihn),line_of(text, path).sim_components::catalog::motor_config(&Config, motor_id): die Konfiguration, die ein Motor sieht (Motoren, die sich unterscheiden);Controller::drive_params_of(k)ist sein Antrieb.sim_machines::load_text(toml_text, id): der Text einer Maschinendatei, wieload_fileihn liest (das, was eine FMU mit ihrerresources/machine.tomltut).
Mechanismen und Übertragungen
Neben den Riemenmaschinen hat der Simulator Maschinen aus je einem motorgetriebenen Gelenk pro Achse: eine
Kugelgewindeachse, eine Zahnstangenachse, eine Linearmotorachse, einen Rundschalttisch, einen Sechsachsroboter und einen
SCARA-Roboter, beide aus URDF-Dateien gelesen. Ihre Teile sind Komponenten in sim-components, damit eine in einer
Konfigurationsdatei beschriebene Maschine sie später verschalten kann; die sechs Maschinen liegen im Crate
machine-joint-kit und werden wie jede andere Maschine gerechnet und ausgelegt.
Die englische Fassung dieses Dokuments ist mechanisms.md. Die Namen der Prüfungen, Signale und Konfigurationsschlüssel sind englische Bezeichner und in beiden Sprachen gleich.
- Die Maschinen
- Wie sie aufgebaut sind
- Kugelgewindetrieb
- Zahnstange und Ritzel
- Linearmotor
- Rundtisch: Wellgetriebe und Schneckengetriebe
- Roboter aus URDF-Dateien
- R-Theta-Z-Arm mit Bändern (wafer-handler)
- Parallelkinematiken: Hexapod und Seilroboter
- Pneumatikzylinder neben Servoachsen
- Auf- und Abwickler mit Tänzer
- Brückenkran
- Was von Hand nachgerechnet ist
- Grenzen
Die Maschinen
| Id | Mechanik | Übertragung | Werkzeuglage | Eigene Prüfungen |
|---|---|---|---|---|
screw-axis | Schlitten, 800 mm | Kugelgewindetrieb 25 x 20 hinter einer Kupplung | x (m) | screw-speed, screw-dn, screw-buckling, screw-static, screw-life |
rack-axis | Schlitten, 3 m | schrägverzahntes Ritzel auf einer Zahnstange hinter einem Planetengetriebe i = 10, spielfrei | x (m) | rack-feed-force |
linear-motor-axis | Schlitten, 1 m | Eisenkern-Linearmotor, keine | x (m) | guide-load, guide-life aus der Anziehungskraft |
rotary-table | Tisch mit 3 kg m^2 plus Werkstück | Wellgetriebe i = 100 (oder Schnecke, oder Planetengetriebe) | c (rad) | strain-wave-life |
urdf-arm | Sechsachsroboter, urdf/six-axis.urdf | Wellgetriebe i = 120 und 80 | sechs Gelenkwinkel (rad), oder x, y, z, rx, ry, rz im Werkzeugraum | strain-wave-life je Gelenk |
scara | SCARA-Roboter, urdf/scara.urdf | Wellgetriebe; die Pinole auf einem Kugelgewindetrieb | Gelenke (rad, m, rad), oder x, y, z, c im Werkzeugraum | strain-wave-life, die Prüfungen der Spindel an Gelenk 3 |
palletiser | Vierachs-Palettierer, urdf/palletiser.urdf, ein Parallelogramm hält den Flansch waagerecht | Getriebe i = 160, das Wellgetriebe des Flanschs 50 | x, y, z, rz (ausgeliefert im Werkzeugraum), oder die vier Motorgelenke | strain-wave-life je Gelenk |
arm-on-track | der Sechsachsroboter auf einem Schlitten von 80 kg auf einer Bodenschiene von 4 m, urdf/arm-on-track.urdf | die Schiene: ein Ritzel auf einer Zahnstange hinter einem Planetengetriebe i = 10; der Arm wie urdf-arm | die Schiene (m) und die sechs Gelenke (rad), oder im Werkzeugraum die Schiene neben x, y, z, rx, ry, rz | rack-feed-force, gearbox-radial-load an der Schiene; guide-load, guide-life ihrer Führungswagen; strain-wave-life je Armgelenk |
parallel-scara | Fünfgelenk mit Parallelogramm-Unterarmen in der waagerechten Ebene (eigenes Crate, keine Gelenkmaschine); Z-Hub und Werkzeugdrehung an der Platte | Planetengetriebe i = 20 an den Armen; der Z-Hub über einen Kugelgewindetrieb 16 x 20 hinter einer Kupplung; die Drehung über ein Planetengetriebe i = 8 | x, y (m), z (m), c (rad) | screw-speed, screw-dn, screw-buckling, screw-static, screw-life am Z-Hub |
wafer-handler | R-Theta-Z-Arm aus zwei gleich langen Gliedern in der waagerechten Ebene, Unterarm und Effektor über Bänder 2:1 und 1:2 an die Schulter gekoppelt (eigenes Crate, keine Gelenkmaschine); eine Säule, die sich dreht und hebt | Wellgetriebe i = 50 an Säule und Oberarm; der Hub über einen Kugelgewindetrieb 16 x 10 hinter einer Kupplung | r (m), theta (rad), z (m) | wafer-slip, effector-direction, elbow-band-slack, wrist-band-slack; die Prüfungen der Spindel am Hub |
Jede bekommt außerdem die Prüfungen, die jede Maschine bekommt: Spitzen- und Effektivmoment des Motors (motor-peak,
motor-thermal), Antriebsströme, Spitzen- und kubisch gemitteltes Moment, Antriebsdrehzahl und Lebensdauer des
Getriebes, wo [ratings] sie angibt, Zwischenkreis und Bremswiderstand, Einschwingen. sim-cli list nennt sie, und
jeder Befehl nimmt sie:
sim-cli verdicts screw-axis
sim-cli run rack-axis --set rack.service_factor=1.5
sim-cli margins linear-motor-axis
Jede Standardkonfiguration ist ein ausgelegtes Beispiel: Ihr Zyklus besteht alle Prüfungen (Test
every_default_cycle_passes_its_verdicts). Ihre Werte sind mit [catalogue] markiert, wo sie aus einem Herstellerdokument
stammen (Motor Siemens 1FK2105-4AF und Umrichter S210 wie beim Delta-Roboter), sonst mit [estimate]: eine Spindel,
Zahnstange, ein Linearmotor oder Wellgetriebe dieser Größe, wie die Kataloge der Hersteller sie führen, nicht der Artikel
eines Herstellers. Ersetzen Sie sie durch das Datenblatt Ihres Teils.
Wie sie aufgebaut sind
Eine Gelenkmaschine (chain::JointMachine) ist ein Mechanismus plus ein joint::RotaryJoint je Gelenk. Der Mechanismus
liefert die Dynamik der Last in Gelenkkoordinaten, M(q) q’’ + h(q, q’) = tau, und seine eigenen Signale, Prüfungen und
seine Szene. Das Gelenk liefert alles zwischen Motor und Gelenk: Motorreibung, Momentwelligkeit und Rastmoment,
Haltebremse, das Getriebe (Übersetzung, Torsionssteifigkeit, Dämpfung, Spiel, Wirkungsgrad), Reibung im Gelenk und seine
Endanschläge. Mit effects.joint_elasticity sind die Motoren eigene Körper hinter den Federn der Getriebe; ohne, im
starren Modell, dreht der Rotor mit dem Gelenk mal der Übersetzung, und jedes Getriebe verliert seinen Wirkungsgrad an
dem, was hindurchgeht.
Die Koordinate eines Gelenks ist ein Winkel (rad) oder ein Weg (m). Eine Spindel oder Zahnstange macht aus der Drehung am
Getriebeausgang einen Weg (transmission::Converter). Hinter das Getriebe gesetzt, wird das Paar zu einem Getriebe in N
und m mit
- Übersetzung i / Hebel, der Hebel ist der Weg je Radiant (Steigung / 2 pi oder der Teilkreisradius des Ritzels);
- Steifigkeit 1 / (Hebel^2 / k_Getriebe + 1 / k_Wandler): die Torsionssteifigkeit des Getriebes am Gelenk gesehen, in
Reihe mit der von Spindel oder Zahnstange. Die der Spindel ist ihre Welle zwischen Festlager und Mutter, E A / a, in
Reihe mit Mutter und Lagern: mit
effects.screw_stiffness_with_positionan der Stelle der Mutter (screw.fixed_bearing_at_mder Weg am Festlager), sonst an der weichsten Stelle für den ganzen Hub; - Dämpfung: die des Getriebes durch Hebel^2 nur über der Feder des Getriebes, die von Spindel oder Zahnstange nur über
deren Feder, c = 2 zeta sqrt(K_c m) aus
screw.axial_damping_ratiooderrack.damping_ratiound der bewegten Masse m (Mutter, Lager, Führungen), K_c an der Stelle der Mutter, wo die Steifigkeit ihr folgt (zeta bleibt über den Hub); zwei gedämpfte Federn in Reihe, die Maschine führt dafür einen Zustand mehr (Gearbox::arm). Mit der Dämpfung des Getriebes allein (K_g = k_Getriebe / Hebel^2) schwingt eine Masse daran bei tiefen Frequenzen mit c (K_c / (K_c + K_g))^2 gedämpft, nicht mit c; - Spiel: das des Getriebes am Gelenk gesehen plus das des Wandlers (mit
effects.gearbox_backlash); - Wirkungsgrad: das Produkt (mit
effects.gearbox_efficiency); - die Trägheit von Spindelwelle oder Ritzel am Rotor, durch i^2.
Das Signal gearbox.<motor>.output_torque ist die Gelenkkraft mal dem Hebel, durch den Wirkungsgrad des Wandlers,
solange der Motor treibt, und mal ihm, solange die Last zurücktreibt; die Getriebeprüfungen beurteilen so das Moment am
Getriebeausgang, vor Spindel oder Ritzel. Der Wirkungsgrad des Wandlers wird getrennt vom Getriebe geführt
(RotaryJoint::extra_efficiency): Mit effects.thermal_feedback ändert die Temperatur des Getriebes nur dessen Anteil. Ein Schiebegelenk liest Reibung, Hub und Anschläge seiner Führungen
aus [slide] (RotaryJoint::linear_from_config).
Kugelgewindetrieb
transmission::BallScrew, Konfiguration [screw]. Die Formeln sind die der ISO 3408-5 und der Herstellerkataloge:
| Größe | Formel |
|---|---|
| Kritische Drehzahl | n_kr = 60 / (2 pi) (lambda L)^2 / L^2 sqrt(E I / (rho A)), ein gleichförmiger Stahlbalken mit dem Kerndurchmesser; lambda L = 1,875, pi, 3,927, 4,730 für fest-frei, los-los, fest-los, fest-fest. Zulässig: critical_speed_factor (0,8) mal davon. |
| Knicken | F_k = Faktor pi^2 E I / L^2, Faktor 1/4, 1, 2,046, 4; zulässig F_k / buckling_safety_factor. |
| Statische Last | C0a / static_safety_factor. |
| d n | Nenndurchmesser (mm) mal Drehzahl (1/min), gegen max_dn (0 prüft nicht). |
| Axialsteifigkeit | Welle A E / x (fest-fest: A E L / (x (L - x))), Mutter und Festlager in Reihe; mit effects.screw_stiffness_with_position (in den mitgelieferten Konfigurationen an, außer in der des gemessenen Kugelgewindetriebs) an der Stelle der Mutter, sonst an der weichsten Stellung der Mutter genommen. |
| Reibmoment der Vorspannung | T = K F_pr l / (2 pi), K = 0,05 / sqrt(tan beta) (THK); als T 2 pi / l zur Reibung der Führungen addiert. |
| Lebensdauer | L10 = (Ca / (fw F_m))^3 10^6 Umdrehungen. Eine vorgespannte Mutter trägt F_pr (1 + F / (2,83 F_pr))^(3/2), bis die Kraft die Vorspannung abhebt (Hiwin). |
Die Signale der Spindel: screw.1.speed (1/min), screw.1.dn, screw.1.damage_rate (der Anteil ihrer Lebensdauer, der
je Stunde verbraucht wird, 60 |n| (fw F_eq / Ca)^3 / 10^6). Die Lebensdauer, die eine Prüfung meldet, ist eins durch den
Mittelwert dieser Rate über den gemessenen Durchlauf (Palmgren-Miner), mal dem Lebensdauerfaktor a1 aus
ratings.bearing_reliability_percent (0,25 bei 99 %, wie für jede Lagerlebensdauer), gegen ratings.required_life_h. Die
Axialkraftprüfungen nehmen |Kraft|, auch auf Zug; für das Knicken liegt das auf der sicheren Seite.
Eine senkrechte Achse: slide.incline_deg = 90 (die Schwerkraft zieht mit dem Sinus der Neigung längs des Weges).
Zahnstange und Ritzel
transmission::RackPinion, Konfiguration [rack]: Normalmodul, Zähnezahl und Schrägungswinkel ergeben den
Teilkreisradius m z / (2 cos beta). Die Prüfung rack-feed-force hält die höchste Kraft auf die Zähne (Signal
rack.1.feed_force: die Kraft an der Last durch den Wirkungsgrad der Zahnstange, solange das Ritzel treibt, mal ihm,
solange die Last zurücktreibt) gegen rated_feed_force_n durch den Anwendungsfaktor K_A (service_factor). Die Hersteller von Zahnstangen veröffentlichen die
zulässige Vorschubkraft eines Paares, keine Lebensdauerformel; daher hat die Zahnstange keine Lebensdauerprüfung, das
Planetengetriebe davor hat seine eigene (gearbox-life). pressure_angle_deg (Normalschnitt, optional, 20 nach DIN 867,
wo er fehlt, unter 45) ergibt die Kraft, die Ritzel und Zahnstange auseinanderdrückt, F tan(alpha) / cos(beta), die die
Radiallast des Ritzels auf der Getriebewelle mitzählt.
Linearmotor
Keine Übertragung: Das Getriebe des Gelenks hat die Übersetzung 1 und steht für die Befestigung des Primärteils (seine
Steifigkeit in N/m). Die Werte in [motor] und [drive] gelten in N statt N m und m statt rad: Kraftkonstante in N/A,
die Masse des Primärteils als Trägheit des Rotors (nicht in mass.carriage_kg enthalten), Geschwindigkeiten in m/s, Geberstriche je 2 pi m. Das Rastmoment
wiederholt sich einmal je Polteilung: motor.cogging_order wird durch 2 pi / linear_motor.pole_pitch_m ersetzt.
Die Anziehungskraft zwischen Primärteil und Magnetbahn (attraction_force_n) drückt auf die Führungen: Das Signal
axis.x.guide_load ist die Anziehungskraft plus das Gewicht von Schlitten, Last und Primärteil quer zur Führung, und die Führungsprüfungen (guide-load
gegen ratings.guide_max_load_n, guide-life aus ratings.guide_dynamic_load_rating_n, L10 = (C / P)^3 50 km)
beurteilen sie. guide_friction_coefficient mal die Anziehungskraft kommt zur Coulomb-Reibung der Führungen hinzu.
Die Szene zeigt die Geschwindigkeit des Motors in m/s; er hat keine Welle, die sich dreht.
Rundtisch: Wellgetriebe und Schneckengetriebe
Der Tisch dreht um eine senkrechte Achse: M = Trägheit von Tisch und Werkstück, kein Schweremoment. table.gear wählt das
Getriebe:
"strain-wave":transmission::StrainWave, das Katalogverfahren von Harmonic Drive: L10 = L_n (T_r / T_av)^3 (n_r / n_av), T_av das kubische Mittel des Abtriebsmoments, gewichtet mit der Antriebsdrehzahl. Signalstrain_wave.1.damage_rate, Prüfungstrain-wave-life."worm":transmission::WormGeargibt den Wirkungsgrad aus Steigungswinkel gamma, Flankenreibwert mu und Normaleingriffswinkel alpha_n: tan gamma / tan(gamma + rho’), rho’ = atan(mu / cos alpha_n). Der Rückwirkungsgrad, tan(gamma - rho’) / tan gamma, wird berechnet (null oder kleiner: das Getriebe ist selbsthemmend), von der Dynamik aber noch nicht verwendet, siehe die Grenzen. Der Wirkungsgrad der Schnecke wird wie der eines Wandlers getrennt vom eingestellten Getriebe geführt. Derworm-Knoten einer Maschinendatei ist dieser Antrieb mit einem eigenen Rückwirkungsgrad, der bei 0 oder weniger selbst sperrt (Maschinendateien)."planetary": das[gearbox], wie es ist.
Roboter aus URDF-Dateien
rigid::Chain liest eine URDF-Datei (Links mit ihren Trägheitsangaben, Gelenke der Typen revolute, continuous, prismatic
und fixed; feste Gelenke werden mit dem Körper davor vereinigt; kein xacro, keine Verzweigungen) und rechnet die Dynamik
mit dem rekursiven Newton-Euler-Verfahren (Luh, Walker und Paul 1980): die Gelenkmomente zu gegebenen Beschleunigungen,
die Massenmatrix, Schwere- und Geschwindigkeitsterme. Die Last ist ein starrer Körper am letzten Glied: ihre Masse
arm.payload_kg, ihr Schwerpunkt arm.payload_offset_m vom Spitzenrahmen der URDF und ihre Trägheit um den
Schwerpunkt arm.payload_inertia_kgm2 (xx, yy, zz, xy, xz, yz im Spitzenrahmen), mit dem Satz von Steiner in den letzten
Körper eingerechnet (Inertial::merged).
Konfiguration [arm]: urdf_file ist ein Pfad oder builtin:six-axis, builtin:scara, builtin:five-axis,
builtin:seven-axis, builtin:palletiser oder builtin:arm-on-track für die Beispiele in crates/machine-joint-kit/urdf/. gear_ratios hat
einen Eintrag je Motor; die Grenzen jedes Motorgelenks stehen in [axis.j1], [axis.j2], … (max_velocity_rad_s,
für ein Schiebegelenk max_velocity_m_s, und so weiter). Die Grenzen der URDF sind die Anschläge der Gelenke; ein
Gelenk vom Typ continuous nimmt min_angle_deg und max_angle_deg aus [joint]. Ein Schiebegelenk läuft auf der
[screw], mit seinem Motor gekuppelt (seine Übersetzung muss 1 sein; Steifigkeit und Dämpfung des [gearbox] stehen
für die Kupplung, sein Wirkungsgrad und seine Trägheit zählen nicht), mit der Reibung aus [slide] (die Pinole des
SCARA); wo die Konfiguration eine [rack] hat, läuft es stattdessen auf einem Ritzel auf dieser Zahnstange hinter seinem
eigenen Getriebe (Übersetzung aus gear_ratios, beliebig), wie die Zahnstangenachse, mit rack-feed-force und der
Radialkraft des Ritzels auf die Getriebewelle (rack.<k>.radial_load, die Zahnkraft mal sqrt(1 + (tan 20° / cos
beta)^2), gegen ratings.shaft_max_radial_load_n: gearbox-radial-load, wie bei den Zahnstangen der Maschinendateien).
Eine fehlende Grenze der URDF ist 0; ein leerer Bereich wird abgelehnt. Mit einer Tabelle [strain_wave] bekommt
das Getriebe jedes Drehgelenks die Lebensdauerprüfung.
Jedes Gelenk hat seinen eigenen Motor, Antrieb und sein eigenes Getriebe, wo die Konfiguration es sagt: [motor.<k>],
[drive.<k>], [gearbox.<k>], [strain_wave.<k>], [joint.<k>], [ratings.<k>] und [parts.<k>] über den gemeinsamen Tabellen,
k = 1, 2, … (catalog::motor_config, wie bei den Maschinendateien). Die ausgelieferten Arme sind so ausgelegt: Die
Hand des Sechsachsroboters (Gelenke 4 bis 6) hat den 1FK2104-5AF des Katalogs an einem S210 6SL3210-5HE10-8UF0 hinter
einem Wellgetriebe der Baugröße 20, seine Gelenke 1 bis 3 den 1FK2105-4AF hinter Baugröße 32; Pinole und Flansch des
SCARA den 1FK2104-5AF. ratings.gearbox_reference_speed_rpm wird abgelehnt, wo die Übersetzung eines Motors von seinem
eigenen gearbox.ratio abweicht, über das die Getriebelebensdauer die Drehzahl des Motors nimmt.
Die Werkzeuglage sind die Gelenkstellungen: Zyklen werden in Gelenken angegeben, und die Auslegung beurteilt Motoren,
Getriebe und Spindeln entlang dieser. Ihr Verweilen beurteilt ratings.settling_tolerance_rad für die Gelenke in rad und
settling_tolerance_m für die in m (die Pinole des SCARA); es enthält die Verdrehung der Getriebe unter dem Gewicht des
Arms, die die Geber der Motoren nicht sehen (2,6 mrad an Gelenk 2 des Sechsachsbeispiels, ausgestreckt). Die
Vorsteuerung nimmt die Geschwindigkeitsterme auch im Gelenkraum: die Coriolis- und Zentripetalmomente der mit der
Stellung veränderlichen M(q) (zwei Glieder eines ebenen Arms bei q2 = 90 Grad und q’ = (1, 2) rad/s verlangen -6 und
0,75 N m, die die Vorsteuerung bisher wegließ; auf den ausgelieferten Zyklen, die ihre Gelenke mit bis zu 2 rad/s drehen,
ändern sich Spitzen- und Effektivmoment der Motoren um weniger als 0,3 %).
Gekoppelte Gelenke: ein Parallelogramm
URDF kennt keine geschlossenen Ketten. Ein Parallelogramm, das Gelenke koppelt, wie das eines Palettierers, das seinen
Flansch waagerecht hält, ist arm.joint_coupling: eine Zeile je URDF-Gelenk, die URDF-Gelenke als Summen der
Motorgelenke, q_urdf = C q. Die Maschine hat einen Motor je Spalte; die Dynamik ist die der Kette, auf die Motorgelenke
gebracht, M = C^T M_urdf C und h = C^T h_urdf (C ist fest und gibt keinen eigenen Term; die Kräfte der Kopplung leisten
keine Arbeit). Ein Motorgelenk, das allein in einer Zeile mit dem Faktor c steht, nimmt die Grenzen dieses URDF-Gelenks
geteilt durch c. [] ist ein Motor je URDF-Gelenk.
shortcut: Die Stangen des Parallelogramms stecken in den Gliedern, mit denen sie sich bewegen, nicht in eigenen Körpern.
Der Palettierer (palletiser, urdf/palletiser.urdf, etwa 20 kg Nutzlast, 1,6 m Reichweite) hat fünf URDF-Gelenke und
vier Motoren: den Drehturm, den Oberarm, den Winkel des Unterarms gegen die Basis (ein Parallelogramm von der Basis aus
treibt ihn: Gelenk 3 = Motor 3 - Motor 2) und die Drehung des Flanschs; das Handgelenk dreht den Winkel des Unterarms
zurück (Gelenk 4 = - Motor 3), so bleibt der Flansch überall waagerecht. Seine Gelenke 1 bis 3 haben den 1FK2106-4AF des
Katalogs an Antrieben 6SL3210-5HE15-0UF0 hinter Getrieben von 600 N m Nennmoment (eine Schätzung), der Flansch einen
1FK2104-5AF. Ausgeliefert im Werkzeugraum: x, y, z und die Drehung rz des Flanschs. Die App zeichnet ihn wie die Arme.
Eine pendelnde Last
Mit effects.payload_swing (in jeder ausgelieferten Konfiguration aus) hängt die Last an einem Gelenk am Flansch, um zwei
Achsen quer zur Linie vom Flansch zu ihrem Schwerpunkt (arm.payload_offset_m, die Pendellänge), gehalten von
arm.payload_swing_stiffness_nm_rad und gedämpft von arm.payload_swing_damping_nm_s_rad je Achse: ein Karton in einem
weichen Vakuumgreifer oder ein Sack in einer Schlinge. Die beiden Pendelgelenke treibt kein Motor
(chain::Mechanism::passive_joints): Ihre Winkel und Geschwindigkeiten folgen den anderen Zuständen der Gelenkmaschine,
ihre Dynamik ist die der Kette mit den Körpern des Pendels, die Leistung des Dämpfers der Verlust
power.payload_swing und die Winkel die Signale swing.1.angle, swing.2.angle. Vorsteuerung und Ruhelagen sehen die
Last fest am Flansch. Der Karton des Palettierers pendelt mit 1,61 Hz
um die Achse quer zu seiner 0,6-m-Seite und mit 1,82 Hz um die andere (sqrt((k + m g l) / (m l^2 + I)) / 2 pi mit 120 N m/rad,
20 kg, 0,2 m und dem Eigenträgheitsmoment I = 0,75 und 0,4167 kg m^2 des Kartons: 159,2 / (0,8 + 0,75), 159,2 / (0,8 + 0,4167)).
shortcut: Ohne Last tragen die Pendelgelenke eine eigene Einheitsträgheit, getrennt vom Arm.
Ein Roboter auf einer Schiene
arm-on-track (urdf/arm-on-track.urdf, config/arm-on-track.toml) ist der Sechsachsroboter des Beispiels auf einem
Schlitten, der 4 m entlang x auf zwei Schienen fährt: ein Schiebegelenk zuerst, dann die sechs des Arms. Der Schlitten
(80 kg: Platte, Sockel, Führungswagen, Motor, Getriebe und Ritzel der Schiene) ist ein Körper der Kette wie jedes Glied,
die Schiene also ein Gelenk mehr im Newton-Euler-Modell, und die Kopplung zwischen Schiene und Arm steckt in den
Gleichungen der Kette: Der schwenkende Arm schiebt an der Schiene (Gelenk 2 mit 3 rad/s² bei quer zur Schiene
ausgestrecktem Arm verlangt von der Schiene -3 · Σ m y = -43,5 N, Σ m y = 14,505 kg m von Arm und Last), und die
Beschleunigung der Schiene erreicht jedes Gelenk des Arms (bei 2 m/s² hält Gelenk 2 -2 · 14,505 = -29,0 N m). Der Motor
der Schiene ist der 1FK2105-4AF des Katalogs an einem S210, hinter einem Siemens NRB080 mit i = 10 (Katalogwerte, ohne
sein Spiel für ein vorgespanntes Ritzel) und dem Ritzel der Zahnstangenachse mit 200 mm je Umdrehung; 130,5 kg fahren
darauf mit bis zu 1 m/s und 3 m/s².
[track] setzt den Schlitten auf vier Führungswagen, block_spacing_m (0,4 m) längs der Schienen auseinander und
rail_spacing_m (0,5 m) quer. Ihre Last kommt aus der Reaktion der Kette an ihrem ersten Gelenk: was die Basis an die
Kette gibt, F = dP/dt + Σ m g z und M_O = dH_O/dt + Σ c × m g z (die Änderungen von Impuls P und Drehimpuls H der Kette
um den Ursprung der Basis als zentrale Differenzen), in das System des Schlittens zwischen den Wagen gebracht. Sein
Schub längs der Schienen ist der der Zahnstange; den Rest teilen die Wagen als starre Lager, jeder F_z / 4 ± M_x / (2 w)
∓ M_y / (2 l) auf seiner Schiene und F_y / 4 ± M_z / (2 l) quer dazu, seine Last die Summe beider Beträge (die
äquivalente Last des Katalogs). Die Seite der Zahnstange (track.rack_side, ±1 längs der y-Achse des Schlittens) bestimmt, auf welcher Seite die Abstoßkraft des Schrägritzels zu F_y kommt, ihr Hebelarm (track.rack_lever_m) macht aus dem Schub des Antriebs ein Giermoment auf die Wagen, M_z + Seite · Hebel · F_x; die Vorgaben +1 und 0 sind die Lasten, wie sie bisher gezählt wurden. Das Signal axis.j1.guide_load ist die Last des höchstbelasteten Wagens mal vier, damit
die Führungsurteile, die eine Last gleich auf einen Satz von vier verteilen und den Satz als einen bewerten
(parts.axis = "<wagen>x4"), diesen Wagen beurteilen: guide-load gegen ratings.guide_max_load_n, guide-life aus
ratings.guide_dynamic_load_rating_n und der Geschwindigkeit der Schiene. Die Momente entscheiden die Größe: Auf dem
Standardzyklus trägt der höchstbelastete Wagen in der Spitze 896 N gegen die 320 N, die ein Viertel des Gewichts gibt.
Ausgeliefert: vier HIWIN HGH20CA (Katalog), 3584 N gegen 73360 N, eine Lebensdauer von 1,6 Millionen Stunden.
Redundanz: sieben Gelenke für eine Werkzeuglage aus sechs. Im Werkzeugraum (config/arm-on-track-tool.toml) ist die
Stellung der Schiene eine eigene Achse, "j1" vor denen der Lage in kinematics.tool_axes: sieben Achsen, die Schiene
vorgegeben und die sechs Gelenke des Arms mit gedämpften kleinsten Quadraten für die Lage des Flanschs gelöst, bei der
Schiene, wo sie steht. Eine Gerade einer Bahn bewegt Schiene und Flansch zusammen, jedes gerade; hält der Flansch,
während die Schiene fährt, greift der Arm zurück. Der Standardzyklus in Gelenken greift bei 0,5 m links des Arms und legt
bei 3,5 m rechts ab, der Arm schwenkt herum und greift aus, während die Schiene fährt; der Zyklus im Werkzeugraum greift
und legt mit Geraden des Flanschs ab, die Schiene trägt ihn 3 m, während der Flansch von 0,9 m vor und 0,6 m links des
Arms zu 0,7 m vor und 0,3 m rechts geht, 150 mm hoch und um 0,5 rad gedreht.
Werkzeugraum
Mit kinematics.tool_space = true sind die Achsen der Maschine die Lage des Flanschs, und jeder Planer, der Zyklus, die
Kommandozeile und die App bewegen das Werkzeug wie beim Delta: Eine Gerade einer Bahn ist eine Gerade des Werkzeugs. Die
Gelenkmaschine rechnet die Lage über inverse des Mechanismus in die Gelenke und über forward zurück, die
Geschwindigkeit des Werkzeugs über die Jacobi-Matrix von forward (zentrale Differenzen) in die der Gelenke. Die
Vorsteuerung nimmt die Geschwindigkeitsterme hinzu: die Gelenkbeschleunigungen J^-1 (a - J’ q’), J’ q’ als zweite
Differenz von forward entlang q’, und die Zentripetal- und Coriolismomente des Newton-Euler-Modells. Ziele werden
abgelehnt außerhalb der Reichweite (error-arm-out-of-reach), jenseits eines Gelenkanschlags
(error-joint-beyond-stop) oder wo die Konditionszahl der Jacobi-Matrix über workspace.max_condition_number liegt
(error-arm-singularity); eine Bahn durch eine solche Lage mit error-path-range, wie beim Delta. Die
Arbeitsraumkarte und ratings.max_condition_number nehmen dieselbe Zahl. Der zeitoptimale Planer lehnt einen Plan von
mehr als zehn Millionen Punkten ab (error-path-torque): Wo die Motoren nur ein Kriechen zulassen, füllte er den
Speicher.
- SCARA (vier Gelenke: zwei Arme um senkrechte Achsen, eine senkrechte Pinole, ein drehender Flansch,
kinematics.tool_axes = ["x", "y", "z", "rz"]): Die Achsen sind x, y, z des Flanschs (m) und seine Drehung c um die Senkrechte (rad: Gelenke 1 + 2 + 4 plus die Drehung bei null), in geschlossener Form. Längen und Richtungen der Arme bei null, der Ort von Gelenk 1, die Richtung der Pinole und die Drehung des Flanschs kommen aus der URDF bei null und werden an drei Stellungen gegen die Kette geprüft. Gelenk 2 nach dem Kosinussatz, cos(beta) = (r^2 - L1^2 - L2^2) / (2 L1 L2), mitkinematics.elbow“right” (beta > 0: Gelenk 2 vom gestreckten Arm aus gegen den Uhrzeigersinn, der Ellbogen von oben gesehen rechts der Linie von der Basis zum Werkzeug) oder “left”; Gelenk 1 = atan2(y, x) - atan2(L2 sin beta, L1 + L2 cos beta). Die Konditionszahl ist die von d(x, y)/d(q1, q2): unendlich beim gestreckten und beim gefalteten Arm (25 bei 11 Grad Ellbogen, die Grenze des Beispiels). - Jede andere Kette von 4 bis 7 Gelenken: Die Achsen sind die von x, y, z (m) und rx, ry, rz (rad), die
kinematics.tool_axesnennt, so viele wie Motoren oder einer weniger (ein redundanter Arm);"j1"davor macht die Stellung des ersten Gelenks zu einer Achse (die einer Schiene: siehe Ein Roboter auf einer Schiene). Die Orientierung ist der Drehvektor (Achse mal Winkel, im Basissystem) der Drehung gegen die Orientierung des Flanschs bei Gelenken null: Eine URDF, deren Flansch bei null nach unten zeigt, steht dort bei 0, nicht eine halbe Drehung gegen das Basissystem. Mit zwei der drei Drehungen (rx, ry des Fünfachsarms) sagen sie, wohin das Werkzeug zeigt: die kürzeste Drehung von der Richtung des Flanschs entlang der fehlenden Achse bei Gelenken null zu der, in die es jetzt zeigt, ihr fehlender Teil 0, wie auch immer die Gelenke das Werkzeug um diese Richtung drehen; die Winkelprüfungen des Flanschs beurteilen nur diese Drehung, und eine Bewegung hält sie mit der fehlenden Drehung bei 0 ein. Eine Lage bis auf 0,01 rad an einer halben Drehung dagegen wird abgelehnt (error-arm-orientation-half-turn): Dort springt der Drehvektor. Die Gelenke mit gedämpften kleinsten Quadraten auf der Jacobi-Matrix der Werkzeugachsen (zentrale Differenzen; dq = J^T (J J^T + lambda^2 I)^-1 e, lambda 1 mm, die Drehungen mal dem Abstand des Flanschs von Gelenk 2 inkinematics.home_joints), entlang der Geraden von der letzten Lösung zum Ziel in Schritten von höchstens 20 mm und 0,05 rad, jeder auf 1 um eingeschwungen, der letzte auf 1e-13 m. Ein Weg von der letzten Lösung, der einen Schritt jenseits vonworkspace.max_condition_numberbeendet, kann den Zweig gewechselt haben und wird von der Grundstellung aus neu gegangen, ebenso einer, der nicht ankommt; so bleibt die Lösung auf dem Zweig der Grundstellung (Schulter, Ellbogen, Handgelenk). Von der letzten Lösung aus braucht eine Inverse entlang eines Zyklus beim Sechsachsroboter im Release 7,7 us, von der Grundstellung aus 74 us. Ein redundanter Arm (sieben Gelenke, sechs Achsen) nutzt sein überzähliges Gelenk, um der Grundstellung am nächsten zu bleiben: Jede Iteration bewegt sich auch im Nullraum von J, um (I - J^T (J J^T)^-1 J)(home - q), bis dieser Schritt unter 1e-11 rad liegt; seine Gelenkgeschwindigkeiten und -beschleunigungen sind die der Inversen selbst, durch zentrale Differenzen entlang der Geschwindigkeit und Beschleunigung des Werkzeugs. Die Konditionszahl ist die der gewichteten Jacobi-Matrix (beim redundanten Arm die ihrer Transponierten).
Eine Gerade einer Bahn in x, y, z, rx, ry, rz bewegt den Ort gerade und dreht die Orientierung per Slerp (path, die
sphärische Interpolation der Quaternionen, Shoemake 1985): um eine feste Achse mit gleichmäßiger Rate, auch zwischen
Drehvektoren, die nicht parallel sind, wo die Gerade zwischen ihnen eine andere Drehung ist (eine Vierteldrehung um x zu
einer um y: auf halbem Weg 70,5 Grad um ihre Winkelhalbierende, die Gerade 63,6 Grad). Geraden mit weniger
Orientierungsachsen (c des SCARA, rz des Palettierers, rx, ry des Fünfachsroboters) fahren jede Achse gerade.
config/scara-tool.toml und config/arm-tool.toml sind die Standardkonfigurationen mit eingeschaltetem Werkzeugraum,
einer Startlage und einem Zyklus aus Geraden (die Einschwingtoleranzen des Arms 5 mm und 5 mrad: Unter der Nutzlast ruht
sein Flansch 2,3 mm neben der Lage der Geber und um 3,1 mrad gedreht). config/arm5-tool.toml und config/arm7-tool.toml sind das
Fünfachsbeispiel (urdf/five-axis.urdf: der Sechsachsroboter ohne die Drehung des Flanschs, bei null nach unten zeigend;
Achsen x, y, z, rx, ry, wohin das Werkzeug zeigt) und das Siebenachsbeispiel (urdf/seven-axis.urdf: ein Drehgelenk im
Oberarm; Achsen x, y, z, rx, ry, rz), jedes mit einem Zyklus aus Geraden, für --config mit der Maschine urdf-arm.
Ihre Proportionen sind allgemein, jeder Wert eine Schätzung.
Teleskopwelle mit zwei Kardangelenken (delta-d4)
Der Vierachs-Delta delta-d4 (ein eigenes Crate auf dem D3, keine Gelenkmaschine) dreht sein Werkzeug über eine
Teleskopwelle mit je einem Kardangelenk an beiden Enden. Ein einzelnes, um beta gebeugtes Kardangelenk dreht seinen
Abtrieb ungleichförmig: tan chi = tan phi / cos beta, die Drehzahl zwischen cos beta und 1 / cos beta der des Antriebs,
zweimal je Umdrehung. Zwei gleich gebeugte Gelenke in einer Ebene, die Gabeln der Zwischenwelle in Phase
(Z-Anordnung), heben sich auf: Das zweite gibt phi zurück. Am Delta stehen die Motorwelle und die Werkzeugwelle beide
senkrecht (die Plattform bleibt waagerecht), also heben sich die Gelenke in jeder Lage auf, und das Werkzeug dreht mit
dem Getriebeabtrieb; nur die Welle dazwischen dreht ungleichförmig. Die Welle verdreht sich in Reihe mit dem
Werkzeuggetriebe (effects.shaft_torsion), ihr Gewichtsanteil belastet die Arme (effects.shaft_mass), und die
Gleitreibung des Teleskops zieht längs der Welle an der Plattform (effects.telescope_friction). Siehe die
Modellreferenz (docs/model-reference.md, Abschnitt „Delta picker D4“).
Biegende Glieder und das Gestell unter der Maschine
Mit effects.link_bending (ausgeliefert aus) biegt sich jedes Glied eines Roboters mit einem Querschnitt in
[link_bending] (ein rundes Rohr je Gelenk: Außendurchmesser, Wand, Elastizitätsmodul) als Kragarm von seinem Gelenk
bis zum nächsten in seiner ersten Euler-Bernoulli-Eigenform, in der Ebene, in der sein Gelenk es dreht: modale Masse ein
Viertel seiner URDF-Masse plus alles dahinter, Steifigkeit 1,875104^4 / 4 E I / L^3, angetrieben von dem, was die Körper
dahinter von seiner Spitze brauchen (ihr m (a - g), ihr Moment über die Neigung der Spitze), und von seinem eigenen
Gewicht und seiner Trägheit längs des Glieds. Das Werkzeug schwingt im Werkzeugraum mit; die Gelenke spüren es nicht
(einseitig). Ein Stahlrohr 60 x 4 mm, 0,8 m lang und 4,5 kg schwer, schwingt allein mit den 88,96 Hz nach
Euler-Bernoulli und hängt unter seinem Gewicht 49,2 um durch, 1,3 % über dem exakten q L^4 / (8 E I).
link_bending.directions fügt die Biegung quer zu dieser Ebene (out_of_plane) und die Verdrehung um die Länge des
Glieds hinzu (torsion, Schubmodul link_bending.shear_modulus_pa), je eine erste Eigenform, die Körper dahinter als
Masse und Trägheit an der Spitze. Mit effects.link_bending_reaction wirkt die Biegung zurück: Gelenke, Getriebe und
Glieder sind ein gekoppeltes System, die Motoren spüren das Schwingen der Glieder und regen es über ihre Regelkreise an,
Energie und Dämpfung der Biegung gehören zur Maschine, und modes gibt die gekoppelten Eigenformen bei festgehaltenen
Motoren (ein Glied auf einem Getriebe schwingt wie die zwei Federn in Reihe).
Mit effects.base_compliance (jede Maschine und jede Maschinendatei, ausgeliefert aus) steht die Maschine auf einem
Gestell mit bis zu sechs Feder-Masse-Richtungen ([base]): Es nimmt die Änderung des Impulses alles dessen auf, was sich
auf ihm bewegt, die Rotoren eingeschlossen (Machine::frame_momentum; Schlitten, Tisch und Roboter geben ihren über
Mechanism::frame_momentum), und das Werkzeug bewegt sich mit ihm. Der Roboter auf seinem Sockel kippt, der Ständer des
Tisches verdreht sich, das Bett eines Schlittens schwingt längs der Achse. Siehe die Modellreferenz
(docs/model-reference.md, Abschnitt „Compliant base“).
Kurbel- und Kurvenmechanismen (machine-crank-cam)
Die Kernfälle eines Servo-Auslegungswerkzeugs (Siemens SIZER), die ein Gelenk allein nicht abdeckt: eine Kurbel, die eine
Drehung in einen Hub wandelt, und zwei Achsen, die über eine elektronische Kurvenscheibe an einer laufenden Bahn oder Stange
arbeiten. Jede ist ein motorgetriebenes Gelenk (chain::JointMachine); Motor, Getriebe, Regelkreise, Erwärmung und alle
gemeinsamen Prüfungen sind dieselben wie oben.
| Id | Mechanismus | Übertragung | Werkzeugpose | Eigene Prüfungen |
|---|---|---|---|---|
slider-crank | Servopresse: Kurbel 50 mm, Pleuel 200 mm, Stößel 15 kg und Werkzeug 10 kg darunter, Presskraft bis 3 kN | Planetengetriebe 20 | Kurbelwinkel (rad), 0 im unteren Totpunkt | rod-force, slider-guide-load, crank-bearing-load |
rotary-knife | Querschneider: Messerwalze mit 100 mm Radius, ein Messer, schneidet eine Bahn mit 1 m/s in Formate von 0,5 m | Planetengetriebe 10 | Walzenwinkel (rad), 0 mit einem Messer am Schnitt | |
flying-saw | Wagen 40 kg mit Säge 25 kg, Material mit 1 m/s, in Längen von 1,5 m in einem Fenster von 0,2 m geschnitten | Schrägverzahntes Ritzel auf Zahnstange hinter Planetengetriebe 5 | x (m) | rack-feed-force |
disc-cam | Kurvenscheibe: Grundkreis 60 mm, ein Rollenstößel von 2 kg (und ein Werkzeug von 1 kg), gegen seine Rückholfeder um 30 mm gehoben, 60 Umdrehungen je Minute | Planetengetriebe 10 | Scheibenwinkel (rad) | disc-contact-force, disc-pressure-angle |
toggle-press | Kniehebelpresse: Hebel von 150 mm in Linie zwischen Kopfstück und Stößel, eine Kurbel von 50 mm drückt das Knie über ein Pleuel von 250 mm, Stößel 20 kg und Werkzeug 8 kg, Hub 57,7 mm, Nennkraft 20 kN, Presskraft bis 12 kN | Planetengetriebe 10 | Kurbelwinkel (rad), 0 im Totpunkt der Hebel | press-capacity, upper-link-force, lower-link-force, rod-force, frame-deflection |
geneva-drive | Rundschalttisch mit 6 Stationen über ein Malteserkreuz mit 6 Schlitzen, Kurbel 60 mm, Achsabstand 120 mm; Tisch 0,4 kg m² mit sechs Teilen zu 0,5 kg auf 200 mm; ein Schritt je Sekunde | Planetengetriebe 20 | Kurbelwinkel (rad), 0 in der Mitte eines Schritts | indexer-contact-force, index-accuracy, index-settling |
cam-indexer | derselbe Tisch über ein Kurvenschrittgetriebe (Rollenkurve, modifizierter Sinus über 120° der Kurvendrehung, Rollen auf 80 mm) | Planetengetriebe 20 | Kurvenwinkel (rad), 0 in der Mitte eines Schritts | indexer-contact-force, index-accuracy, index-settling |
Schubkurbel. Der Abstand des Schiebers vom Kurbelmittelpunkt ist x(θ) = r cos θ + √(l² − r² sin² θ), seine
Übersetzung x’(θ) = −r sin θ − r² sin θ cos θ / w mit w = √(l² − r² sin² θ), und x’‘(θ) = −r cos θ − r² cos 2θ / w −
r⁴ sin² θ cos² θ / w³. Die Pleuelmasse teilt sich in einen Anteil am Kurbelzapfen (rod.crank_end_share) und den Rest am
Schieber. Die Trägheit an der Kurbel hängt vom Winkel ab: J(θ) = J_Kurbel + m_Zapfen r² + m_x x’², m_x Schieber, Werkzeug
(Nutzlast) und Pleuelende am Schieber; ihr Geschwindigkeitsterm m_x x’ x’’ θ’² geht auch in die Vorsteuerung. Schwerkraft
längs der Führung (slider.incline_deg, −90 für einen Stößel unter der Kurbel) und am Zapfen. Die Prozesskraft
(effects.process_force) ist eine Tabelle über dem Abstand des Stößels vom unteren Totpunkt ([process]); sie drückt
zurück, solange der Stößel ausfährt (Umformen), nicht auf dem Rückweg, und wirkt an der Kurbel als −F x’(θ): nahe dem
Totpunkt kostet eine große Kraft wenig Moment. Signale: Lage, Geschwindigkeit und Beschleunigung des Stößels, Prozesskraft,
Pleuelkraft T = (F_längs − m_x ẍ) l / w, Querlast der Führung |m_x g cos β − T r sin θ / l|, Last des Kurbellagers (Zug
des Pleuels und Zapfenmasse auf ihrem Kreis) und J(θ). Geprüft gegen ratings.rod_max_force_n,
slider_guide_max_load_n und crank_bearing_max_load_n.
Rotationsmesser. Leitwert der Kurvenscheibe ist die Bahn in Metern. Im Synchronbereich ±α um jeden Schnitt
(knife.sync_angle_deg) läuft die Messerspitze mit der Bahn, Steigung 1 / R; zwischen den Schnitten führt ein
Bewegungsgesetz die Walze den Rest einer Messerteilung, 2π / n − 2α, über den Rest des Formats, L − 2Rα. Ein Format
kürzer als der Umfang durch n beschleunigt die Walze zwischen den Schnitten, ein längeres bremst sie: im Mittel
(2π / n − 2α) / (L − 2Rα) rad je Meter Bahn, mit 3-4-5 in der Mitte 1 / R + 1,875 × (das − 1 / R). Der Schnitt
(effects.process_force) bremst die Walze mit einer Kraft an der Spitze über dem Winkel vom Schnitt ([cut]).
Fliegende Säge. Leitwert ist das Material. Je Schnittlänge: Der Wagen kommt auf die Geschwindigkeit v des Materials,
während das Material v² / a läuft (saw.sync_acceleration_m_s2 = a, die mittlere Beschleunigung), seine Geschwindigkeit
geht wie 3u² − 2u³ über (kein Beschleunigungssprung, Spitze 1,5 a); er legt dabei die Synchronisierstrecke v² / (2a)
zurück, läuft W / v Sekunden mit dem Material durch das Schnittfenster W, löst sich über weitere v² / (2a) und fährt den
Hub W + v² / a mit einem Bewegungsgesetz im Rest der Schnittlänge zurück, L − 2v² / a − W Material. Eine Schnittlänge
ohne Platz dafür wird abgewiesen (saw.cut_length_m). Der Schnitt drückt längs des Materials über dem Weg ins Fenster
auf den Wagen ([cut]).
Kurvenscheibe. Eine mechanische Kurvenscheibe: der Servo dreht die Scheibe, und die Scheibe hebt einen Rollenstößel
auf einer geraden Führung, von einer Rückholfeder (F0 + k s, follower.spring_preload_n, spring_n_m) und seinem
Gewicht auf ihr gehalten. Der Hub s(θ) des Stößels ist das Hubgesetz der Scheibe, Segmente der Gesetze der VDI 2143 über
eine Umdrehung ([[disc.segment]], ein 3-4-5-Hub von 30 mm über 120°, eine Rast, der Rückhub, eine Rast). Die Achse des
Stößels liegt um e (follower.offset_m) neben der Scheibenmitte, seine Rolle vom Radius r_r rollt auf der Scheibe vom
Grundkreis r_b: der Rollenmittelpunkt liegt s0 + s über der Mitte, s0 = √((r_b + r_r)² − e²), und der Druckwinkel,
zwischen der Achse des Stößels und der gemeinsamen Normalen im Kontakt, ist tan φ = (s’ − e) / (s0 + s), s’ = ds/dθ (ein
positiver Versatz senkt ihn beim Hub). Die Kontaktkraft entlang der Normalen ist N = (m s̈ + F0 + k s + m g) / cos φ mit
s̈ = s’‘(θ) θ’² + s’(θ) θ’‘; die Führung nimmt N sin φ quer. Die Scheibe spürt J(θ) = J_Scheibe + m s’², den
Geschwindigkeitsterm m s’ s’’ θ’² und das Moment von Feder und Gewicht (F0 + k s + m g) s’ (ihr Potential
F0 s + k s² / 2 + m g s): das Moment schwingt mit dem Hubgesetz und treibt die Scheibe beim Rückhub zurück. Signale: Hub,
Geschwindigkeit und Beschleunigung des Stößels, die Kontaktkraft, der Druckwinkel, die Führungslast und J(θ); geprüft
gegen ratings.disc_max_contact_force_n und disc_max_pressure_angle_deg. Mit cam.run dreht die Scheibe mit
disc.turns_per_min weiter, ihr Leitwert virtuell. Mit effects.follower_lift_off hebt der Stößel ab, wo N unter null fiele: sein Spalt
g zur Scheibe ist ein passives Gelenk (Hub s + g), der Kontakt der Linienkontakt der Stahlrolle (nach Palmgren d =
3,84e-5 Q^0,9 / l^0,8 in mm und N über ihre Breite l, follower.roller_width_m: 4e8 N/m bei 160 N) mit einem Dämpfer bei
contact_damping_ratio der kritischen Dämpfung mit dieser Steifigkeit, nur auf Druck, die Kraft auf die Scheibe also nie
negativ und ohne Sprung bei der Berührung, dazu wirkt die Reibung der Führung (follower.guide_friction_n); in Ruhe ist
die Rolle um ihre Last eingedrückt (0,45 µm). Die Leistung des Dämpfers wird als Verlust gebucht
(power.follower_contact), die Bilanz schließt über einen Aufprall. Signale follower.gap (negativ: eingedrückt) und
follower.off_disc (der Kontakt trägt nichts). Aus, bleibt die Rolle auf der Scheibe, und nur das Signal zeigt, wo N
unter null fiele. Die Mitte des Bereichs der
Scheibe liegt auf der ersten Hälfte des Hubs, wo s’’ > 0 ist und Feder und Gewicht die Scheibe dort halten, wo sie gegen
sie gehalten wird; hinter der Mitte des Hubs drehen sie sie weg.
Kniehebelpresse. Zwei Hebel in Linie zwischen dem Drehpunkt O im Kopfstück und dem Stößel, der obere a, der untere
b, ihr Gelenk das Knie; eine Kurbel vom Radius r drückt das Knie über ein Pleuel der Länge c zur Seite. Eine Kurbel und
kein Kugelgewindetrieb: der kurbelgetriebene Kniehebel ist die klassische Form und behält den drehenden Antrieb und die
Kurvenscheibe der Kiste; der spindelgetriebene Kniehebel (das Knie an der Mutter) ist nicht gebaut. Mit dem oberen Hebel
um φ aus der Senkrechten steht der Stößel x = a cos φ + √(b² − a² sin² φ) unter O (die Formel der Schubkurbel, der obere
Hebel ihre Kurbel), x = a + b, wo die Hebel gestreckt stehen (φ = 0, der Totpunkt). Das Gelenk ist der Kurbelwinkel q von
diesem Totpunkt; der Mittelpunkt der Kurbel liegt so, dass das Pleuel dort waagerecht liegt, die Kurbel um
crank.angle_at_dead_centre_deg zu ihm (90: quer, die Übersetzung fällt linear in den Totpunkt; gegen 180 in Linie,
eine lange flache Rast). Das Knie schließt das Viergelenk O–Knie–Kurbelzapfen–Kurbelmitte: φ aus den zwei Kreisen in
geschlossener Form, φ’ = D·P_q / D·K_φ und φ’’ = −(E·E + D·(K_φφ φ’² − P_qq)) / D·K_φ aus der festen Länge des Pleuels
(D = K − P, E = K_φ φ’ − P_q), also x’ = x_φ φ’ und x’’ = x_φφ φ’² + x_φ φ’‘. Die Übersetzung x’ (m/rad) ist im
Totpunkt null: ein Kurbelmoment τ hält am Stößel die Kraft τ / x’, die in den Totpunkt hinein ohne Grenze wächst. Die
Umkehrung von der Stößelhöhe hat zwei Äste, vor und nach dem Totpunkt (TogglePress::crank_angle); die Anschläge
(joint.max_angle_deg) sagen, ob die Kurbel durch ihn hindurch darf. Die Massen: Kurbel und Pleuelende am Zapfen, der
obere Hebel ein gleichförmiger Stab (m a² / 3 um O), das Knie mit dem anderen Pleuelende und einem Anteil des unteren
Hebels, der Stößel mit Werkzeug und dem Rest: J(q) = J_Kurbel + m_Zapfen r² + (m_oben / 3 + m_Knie) a² φ’² + m_x x’²,
mit seinem Geschwindigkeitsterm und dem Moment der Gewichte. Die Prozesskraft ([process], über der Höhe des Stößels
über dem unteren Totpunkt) drückt den Stößel hoch, solange er abwärts fährt oder steht, so dass sie durch eine Rast im
Totpunkt hält, und klingt über process.smoothing_m_s ab, wenn er steigt. Das Gestell federt unter ihr auf
(effects.frame_stretch, frame.stretch_stiffness_n_m = k), eine Feder in Reihe: der Stößel bleibt F / k vor dem Punkt
stehen, an den ihn die Hebel stellen, und die Kraft ist die Wurzel von F = Tabelle(d + F / k), Abschnitt für Abschnitt
der Tabelle gelöst. Signale: die Höhe des Stößels über dem unteren Totpunkt (mit der Auffederung), seine Geschwindigkeit
und Beschleunigung, die Übersetzung x’, die Presskraft, das Kraftvermögen in der Stellung und sein Anteil, die
Auffederung des Gestells, die Kräfte der beiden Hebel (Zweigelenkstäbe, ihre Bolzen tragen dasselbe) und des Pleuels,
und J(q). Prüfungen: press-capacity, die Presskraft in jeder Stellung innerhalb von
min(ratings.rated_press_force_n, τ_max / |x’|), τ_max das Spitzenmoment des Antriebs über Übersetzung und
Wirkungsgrad des Getriebes (höchstens gearbox_max_torque_nm): die Nennkraft nur über die letzten Millimeter, mit dem
Abstand vom Totpunkt fallend, so dass eine Umformkraft früh im Hub sie verfehlt (und motor-peak des Motors);
upper-link-force und lower-link-force gegen ratings.link_max_force_n, rod-force gegen rod_max_force_n,
frame-deflection gegen frame_max_deflection_m. Der mitgelieferte Zyklus fährt vom oberen Totpunkt des Stößels (die
Kurbel in Linie mit dem Pleuel, wo sie das Gewicht des Stößels ohne Moment hält) in einer Bewegung in den Totpunkt,
wobei die Übersetzung den Stößel über die letzten Millimeter verlangsamt, rastet dort unter 11,5 kN, während der Motor fast nichts gibt, und fährt zurück;
config/toggle-press-cam.toml tut dasselbe mit einer Kurvenscheibe bei 30 Hüben je Minute.
Elektronische Kurvenscheibe. sim_components::cam hält eine Kurvenscheibe als Folgewert über einem Leitwert,
periodisch, der Folgewert steigt je Leitwertperiode um seinen Vorschub (Kurbel oder Messer eine Umdrehung, die Säge 0).
Segmente nehmen die Bewegungsgesetze der VDI 2143: linear (Synchronlauf), dwell (Rast), 3-4-5 und 4-5-6-7 (Polynome
5. und 7. Ordnung), cycloid (geneigte Sinuslinie) und harmonic (einfache Sinuslinie). Wo ein Gesetz an ein lineares
Segment oder eine Rast stößt, übernimmt es dessen Steigung, ohne Beschleunigung dort (Geschwindigkeit in Geschwindigkeit);
zwischen zwei Gesetzen ruht der Folgewert (Rast in Rast). Eine Kurventabelle (cam.table_file, CSV aus Leitwert,
Folgewert und optional Steigung) legt eine kubische Kurve durch ihre Punkte: mit gegebenen Steigungen je zwei Punkte,
ohne sie der periodische kubische Spline (stetige Folgebeschleunigung). Mit cam.run = true fährt die Steuerung die
Kurvenscheibe statt [[cycle.segment]] als Zyklus: der Leitwert läuft mit einer sin²-Rampe in cam.ramp_s hoch, die
Folgegeschwindigkeit ist s’(m) m’, die Beschleunigung s’‘(m) m’² + s’(m) m’’; ein Durchgang ist eine Leitwertperiode bei
voller Geschwindigkeit, sodass analyze und verdicts den eingeschwungenen Zustand messen; ein Stopp fährt den Leitwert
über dieselbe Rampe herunter, und eine neue Leitgeschwindigkeit unter einer laufenden Kurvenscheibe (ein anderes
web.speed_m_s, angewandt, während sie läuft) fährt von der Geschwindigkeit des Leitwerts über cam.ramp_s auf die neue,
von dort, wo er steht: Weg v0 t + (v1 − v0) U(t), U die Rampe der Höhe eins (cam::master_change). Verlangt die
Kurvenscheibe bei der Leitgeschwindigkeit mehr Folgegeschwindigkeit, -beschleunigung oder -ruck, als die Achsgrenzen
erlauben, meldet das Programm beim Anwenden der Konfiguration limit-cam-speed, -acceleration, -jerk (wie die
Motorgrenzen) und prüft es als Urteile des Zyklus cam-speed, cam-acceleration, cam-jerk, je Folgeachse, gegen die
Achsgrenzen. Die Schubkurbel läuft mit konstanter Drehzahl (crank.motion = "constant", eine
Umdrehung je Hub wie eine mechanische Presse mit Schwungrad) oder mit der Servopressen-Kurve aus [[cam.segment]]
(schnelle Annäherung, langsam durch die Umformzone, schneller Rückhub) bei crank.strokes_per_min.
Die mitgelieferten Konfigurationen lassen cam.run = false: der Zyklus schwenkt die Kurbel vom oberen Totpunkt in den
unteren und zurück (Servopresse im Pendelhub), taktet das Messer um eine halbe Umdrehung hin und zurück und fährt den
Sägewagen über seinen Hub, dreht die Kurvenscheibe eine halbe Umdrehung hin und zurück und fährt den Stößel der
Kniehebelpresse vom oberen Totpunkt in den unteren und zurück. Neben jeder liegt
config/<id>-cam.toml, dieselbe Konfiguration mit cam.run = true, die jedes Urteil besteht (die Grenzen der
Kurvenscheibe darunter); oder die Kurvenscheiben laufen mit --set cam.run=true (App: der Schalter der Gruppe
Elektronische Kurvenscheibe):
sim-cli verdicts slider-crank --config crates/machine-crank-cam/config/slider-crank-cam.toml
sim-cli verdicts slider-crank --set cam.run=true
sim-cli analyze rotary-knife --set cam.run=true --set knife.format_length_m=0.4
sim-cli verdicts flying-saw --set cam.run=true --set material.speed_m_s=1.2
Moment und Schleppfehler kommen wie bei jeder Maschine aus dem Antriebsmodell; die Formeln der Kurvenscheiben und
Mechanismen sind in cam.rs und den Tests von machine-crank-cam von Hand nachgerechnet (unten).
Fünfgelenk in der waagerechten Ebene (parallel-scara)
Der Parallel-SCARA parallel-scara (eigenes Crate, keine Gelenkmaschine) ist ein liegendes Fünfgelenk: zwei Arme
drehen um senkrechte Achsen bei x = ±R, jeder trägt ein Unterarmpaar (ein Parallelogramm, die Platte behält ihre
Ausrichtung) zur Platte, wie bei Mitsubishis RP-Baureihe. Kinematik und Dynamik sind die des planaren Deltas D2, flach
gelegt (in das Crate kopiert: eine Maschine darf das Crate einer anderen nicht benutzen); die Koordinaten der Platte
sind x und y. Die Schwerkraft wirkt entlang -z, aus der Ebene heraus, auf die Gelenklager: die Motoren der Arme tragen
kein Gewicht, sie beschleunigen nur die Platte und was sie trägt, und halten im Stillstand nichts. An der Platte lassen
sich zwei Achsen zuschalten: ein Z-Hub ([z_axis], Motor 3), eine Pinole auf einem Kugelgewindetrieb hinter einer
Kupplung, die Schlitten und Nutzlast gegen die Schwerkraft hält (m g Steigung / 2 pi, 0,187 N m für 6 kg bei 20 mm
Steigung), und eine Drehung des Werkzeugs um z ([tool_turn], Motor 4) hinter einem eigenen Getriebe. Jede hat eigene
Tabellen für Motor, Getriebe, Antrieb und Grenzwerte ([motor.3], [gearbox.4], …). Alles an der Platte (die
Einheiten mit ihren Motoren, der Schlitten, die Nutzlast) zählt zur Masse der Platte in der Ebene; Hub und Drehung
stehen senkrecht zur Ebene und koppeln sonst nicht mit ihr. Die Werkzeugpose ist (x, y), (x, y, z), (x, y, c) oder
(x, y, z, c), wie die beiden Schalter es sagen. Mit effects.joint_elasticity (mitgeliefert an) sind Hub und Drehung
elastisch wie die Gelenke der Arme: der Läufer ein eigener Körper, dazwischen die Feder von Kupplung und Spindel (in
Reihe) oder des Drehgetriebes. Siehe die Modellreferenz.
Zweiteilige Plattform mit Zahnstangen-Übersetzung (delta-h4)
Der Vierarm-Delta delta-h4 (ein eigenes Crate, keine Gelenkmaschine) ist von der Bauart Quattro / H4 (Pierrots H4,
der Adept/Omron Quattro): vier Arme auf der Basis im Abstand von 90 Grad, jeder mit einem Parallelogramm aus Unterarmen,
hinab zu einer bewegten Plattform aus zwei Teilen. Die Arme 1 und 2 tragen Teil A, die Arme 3 und 4 Teil B: zwei
benachbarte Arme, deren Ellbogenachsen rechtwinklig zueinander stehen, sodass sich kein Teil drehen kann (ein
Parallelogramm lässt seinem Plattformende eine Drehung, um die Achse seines Ellbogens; die Achsen zweier gegenüber
liegender Arme sind parallel und ließen ein Teil um sie drehen). Die Teile verschieben sich gegeneinander entlang der
Waagerechten d = (1, -1, 0) / sqrt 2, jedes um die halbe Verschiebung h vom Werkzeugpunkt in die andere Richtung; entlang
der Linie zwischen ihnen, d = (1, 1, 0) / sqrt 2, bewegte die Verschiebung die vier Unterarmenden wie das Absenken der
Plattform in der Mitte, und die Jacobi-Matrix wäre dort singulär. Ein Ritzel zwischen je einer Zahnstange an jedem Teil
rollt um h / r_p (seine Mitte, auf einem Schlitten zwischen den Teilen geführt, bleibt im Werkzeugpunkt), und eine
Zahnradstufe mit Übersetzung i_p dreht das Werkzeug: c = kappa h, kappa = i_p / r_p (ausgeliefert 30 rad/m: ±180 Grad
sind h = ±104,7 mm).
Die Kinematik ist je Bein die des D3 am Unterarmende p -+ h d (geschlossene Rückwärtsrechnung; vorwärts nach Newton auf
den vier Bedingungen, ausgehend von der Trilateration des D3), die Dynamik die des D3 nach dem Prinzip der virtuellen
Arbeit mit der Jacobi-Matrix jedes Körpers: die beiden Teile, Schlitten und Nutzlast in p und die Drehung des Werkzeugs
I_t c’^2 / 2 = I_t kappa^2 h’^2 / 2. Dieser letzte Term prägt die Maschine: Das Trägheitsmoment des Werkzeugs zählt in
der Verschiebung mal kappa zum Quadrat (die 0,013 kg m^2 von Werkzeug und Nutzlast als 11,7 kg), und Verdrehung und
Spiel der Armgetriebe zählen in der Drehung des Werkzeugs mal kappa. Mit effects.amplifier_compliance ist das Werkzeug
ein eigener Körper an der Feder der Übersetzung (mit effects.amplifier_backlash mit einer Totzone darin), wie das
Werkzeug des D4 an seiner Welle. Siehe die Konfigurationsreferenz (docs/config-reference.md, Abschnitt „Quattro-type
delta H4“).
R-Theta-Z-Arm mit Bändern (wafer-handler)
Der Wafer-Handler wafer-handler (eigenes Crate, keine Gelenkmaschine) ist der R-θ-Z-Arm der Halbleiter- und
Flachbildschirmfertigung. Eine Säule hebt (z, Motor 3, Kugelgewindetrieb 16 x 10 hinter einer Kupplung) und dreht
(θ, Motor 1) einen Arm aus zwei Gliedern derselben Länge L = 0,32 m. Motor 2 fährt auf der Säule mit und dreht den
Oberarm um φ, seinen Winkel zur radialen Linie. Im Oberarm läuft ein Stahlband von einer Scheibe, die fest an der Säule
sitzt, zu einer Scheibe des halben Radius am Unterarm: Der Unterarm dreht sich gegen den Oberarm um −2 φ. Im Unterarm
dreht ein Band von einer Scheibe am Oberarm zu einer doppelt so großen am Effektor diesen gegen den Unterarm um φ. So
bleibt das Handgelenk auf der radialen Linie, 2 L cos φ von der Säulenachse, und der Effektor zeigt weiter entlang
dieser Linie: Ein Motor fährt den Wafer gerade hinein und heraus (r = 2 L cos φ + e, e = 0,18 m vom Handgelenk zur
Wafermitte). Die Werkzeuglage ist (r, θ, z).
dr/dφ = −2 L sin φ ist am größten, wenn das Handgelenk über der Säule steht (φ = 90°), und verschwindet bei voller
Streckung (φ = 0), der singulären Lage: Über workspace.max_condition_number (5: φ über 11,5°, r bis 0,807 m) wird die
Konditionszahl 1 / sin φ abgelehnt, die Anschläge des Oberarms liegen bei 10° und 110°. Das Trägheitsmoment am R-Motor
ändert sich stark mit der Reichweite: Die 0,55 kg m² der Glieder bei r = 0,12 m sind 1,35 kg entlang r, ihre 0,19 kg m² bei
r = 0,75 m 2,22 kg (und gegen die volle Streckung ohne Grenze); der θ-Motor spürt den ganzen Arm, bei r = 0,12 m
0,15 kg m², bei r = 0,75 m 0,60 kg m², mit r² wachsend. Die beiden Motoren sind über die Bewegung des Arms gekoppelt:
Das Drehen zieht den Arm nach außen (Motor 2 hält ihn, der Wafer wird mit r θ̇² zur Achse beschleunigt), das Ausfahren
während einer Drehung bremst Motor 1 (die Coriolis-Beschleunigung des Wafers 2 ṙ θ̇).
Der Wafer liegt auf den Reibpads des Effektors (oder auf Vakuumpads, oder ein Kantengreifer hält ihn, wafer.hold).
Seine Beschleunigung in der Ebene über den Zyklus ist das Prüfurteil wafer-slip, gegen μ g (μ (g + A p / m) auf
Vakuumpads, die Beschleunigung des Greifers an der Kante) über einen Sicherheitsfaktor: Das begrenzt die Taktzeit eines
Handlers. Der ausgelieferte Zyklus zwischen einem Load Port und einer Kammer, 90° auseinander bei r = 0,55 m und 0,2 m
übereinander (zur Kammer drehen und dabei heben, ausfahren und einschwingen, den Wafer absetzen, einfahren, beim
Zurückdrehen senken, unter den nächsten Wafer ausfahren und einschwingen, ihn anheben, einfahren: 7,76 s) ist darauf
ausgelegt: 0,3 g über 1,2 erlauben 2,45 m/s² (2,04 an der unteren Grenze von μ), die Reichweite ist auf 1,5 m/s²
begrenzt, die Drehung auf 4 rad/s und 36 rad/s² mit dem Wafer auf r = 0,05 m nahe an die Säulenachse zurückgezogen
(0,8 m/s² nach außen und 1,8 m/s² entlang); der Wafer erreicht 1,83 m/s². Die Bänder sind Federn mit Vorspannung (jedes Trum
k = 9,4e5 N/m, 150 N): Ihre Dehnung lässt Unterarm und Effektor hinter Säule und Oberarm zurückbleiben, der Wafer bleibt
in r zurück, und der Effektor dreht sich aus seiner radialen Linie (effector.direction_error; beim Verweilen an einer
Station geprüft, effector-direction); ein Trum, das seine ganze Vorspannung verliert, wird schlaff (elbow-band-slack,
wrist-band-slack prüfen den Ausschlag gegen die Hälfte davon). Mit elastischen Getrieben (effects.joint_elasticity) sind
Kupplung und Spindel des Hubs ebenfalls eine Feder (in Reihe 4,56e7 N/m am fernen Ende der Mutter; mit effects.screw_stiffness_with_position, mitgeliefert an, an der
Stelle der Mutter): Die Säule schwingt darauf bei gehaltenem Läufer mit 432 Hz in der Höhe der Startpose (321 Hz am
fernen Ende), und die größte Kraft der Spindel im Standardzyklus steigt von 171,9 N (starr) auf 184,5 N. Siehe die
Modellreferenz und die
Konfigurationsreferenz.
Parallelkinematiken: Hexapod und Seilroboter
Drei Parallelkinematiken haben eigene Crates, machine-hexapod, machine-tripod und machine-cable-robot, und werden
wie jede andere Maschine gerechnet und ausgelegt (sim-cli analyze hexapod, sim-cli verdicts cable-planar, die
3D-Ansicht der App, search):
| Id | Mechanik | Antriebe | Werkzeuglage | Eigene Prüfungen |
|---|---|---|---|---|
hexapod | Stewart-Gough-Plattform, 25 kg und bis zu 30 kg darauf, auf sechs elektrischen Zylindern (450 mm eingefahren, 200 mm Hub) | je Bein ein Kugelgewindetrieb 25 x 10 hinter einer Kupplung an einem 1FK2105-4AF | x, y, z (m), rx, ry, rz (rad, ein Drehvektor) | screw-speed, screw-dn, screw-buckling, screw-static, screw-life der Spindel je Bein, unter der Kraft des Beins |
hexapod-rotary | Stewart-Plattform auf sechs Kurbeln (6-RSS), 35 kg und ein Sitz von 80 kg, Kurbeln 200 mm, Stangen 550 mm | je Kurbel ein Planetengetriebe SP100 50:1 an einem 1FT2104-5AF | x, y, z (m), rx, ry, rz (rad, ein Drehvektor) | crank-dead-centre, rod-buckling, crank-ball-joint, platform-ball-joint je Bein, das Getriebemoment |
cable-planar | ein Schlitten von 3 kg und bis zu 2 kg, ein Punkt in einer senkrechten Ebene, an 4 Seilen aus einem Gestell 2 m x 1,6 m | je Seil eine Winde: Trommel 25 mm hinter einem Planetengetriebe 5:1 | x, z (m) | cable-max-tension, cable-min-tension je Seil |
cable-spatial | eine Plattform von 4 kg und bis zu 4 kg, sechs Freiheitsgrade, an 8 Seilen aus den Ecken eines Gestells 2 x 1,6 x 1,8 m | wie der ebene, Trommel 30 mm | x, y, z (m), rx, ry, rz (rad) | wie der ebene |
tripod | 3-RPS-Schwenktisch, 20 kg und 40 kg außermittig darauf, auf drei elektrischen Zylindern (450 mm eingefahren, 200 mm Hub), ein Drehgelenk an der Basis, ein Kugelgelenk an der Plattform | je Bein ein Kugelgewindetrieb 20 x 10 (Hiwin 20-10K3-FDC) hinter einer Kupplung an einem 1FK2104-4AF | z (m), rx, ry (rad, Neigungen um x und y) | die der Spindel je Bein; tripod-leg-force, tripod-leg-stroke, tripod-revolute-angle, tripod-cone-angle je Bein; tripod-parasitic |
Ihre Maße sind allgemein gehalten, jeder Wert ein [estimate] bis auf die von Motor und Antrieb (Katalog, wie oben).
Jeder Standardzyklus besteht alle seine Prüfungen; die Beruhigungstoleranzen der Seilroboter sind Anforderungen ihrer
Größe (0,3 mm eben, 1 mm räumlich), nicht die 0,05 mm der Kugelgewindeachse.
Hexapod
Jedes Bein ist ein Gelenk von chain::JointMachine, dessen Koordinate der Auszug q_i des Zylinders ist: Spindel, Mutter
und Lager, Kupplung, Spiel, die Reibung der Stangenführung und der Vorspannung der Mutter, die Anschläge an den
Hubenden und der Motor sind die der Kugelgewindeachse oben. Die Mechanik gibt Kinematik und Dynamik der Plattform:
- Inverse Kinematik geschlossen: Bein i reicht von seinem Basisgelenk B_i zum Plattformgelenk p + R a_i, seine Länge
L_i =
leg.closed_length_m+ q_i. Die Gelenke sitzen paarweise: Basispaare bei 120 k ±hexapod.base_half_angle_deg, Plattformpaare bei 120 k ± (60 −platform_half_angle_deg), jedes Bein zum benachbarten Paar. - Vorwärtskinematik nach Newton über die Bewegung der Plattform, von der Mitte des Werkzeugquaders aus: xi = J^-1 (q − q(x)), p += v, R = exp(w) R, bis die Beine um weniger als 1e-13 m verfehlen; Beinlängen, die keine Lage erfüllt (keine Konvergenz in 40 Schritten), geben NaN, was jeder Aufrufer ablehnt. Die Dynamik, viermal je Integrationsschritt, beginnt Newton stattdessen bei der Lage am nächsten Punkt eines 1-mm-Rasters der Beinlängen (aus der Quadermitte gefunden, behalten, bis die Beine seine Zelle verlassen), verschoben um J^-1 (q − q_Raster): zwei Schritte statt etwa fünf. Diese Lage weicht von der aus der Quadermitte um Newtons Toleranz ab und hängt nur von q ab, nicht davon, was vorher aufgerufen wurde (ein Lauf, seine Wiedergabe und die gestörten Läufe einer Anpassung geben dieselben Zahlen); die Kennzahlen des Standardzyklus ändern sich damit so viel, wie eine Änderung in der Rundung der Lage sie ohnehin bewegt.
- Die Zeilen von J sind (u_i, b_i × u_i), u_i die Richtung des Beins und b_i = R a_i. Dynamik über die Bewegung der
Plattform: M_xi xi’ + c + g = J^T f, also im Beinraum M_q = J^-T M_xi J^-1 und h = J^-T (c + g − M_xi J^-1 a0), a0
die Längenbeschleunigung der Beine bei der Bewegung (gegen die Lagrange-Gleichungen von M_q mit Differenzen geprüft:
gleich auf 1e-9). Jedes Bein sind zwei Körper, die mit seiner Richtung schwenken: das Stangenteil (
leg.platform_sharevonleg.mass_kg, Schwerpunktleg.platform_part_centre_mvom Plattformgelenk) und das Gehäuseteil (der Rest, Schwerpunktleg.base_part_centre_mvom Basisgelenk), jedes mit seiner Trägheit um den Schwerpunkt quer zum Bein; ihre kinetische Energie geht in M_xi und c ein, ihr Gewicht in g. Die Nutzlast kann eine eigene Trägheit haben (mass.payload_inertia_kgm2, 0: eine Punktmasse). - Abgelehnt: ein Bein über seinen Hub hinaus (
error-joint-beyond-stop), ein Bein steiler gegen die Normale der Basis oder der Plattform alsworkspace.max_joint_angle_deg(error-hexapod-joint-angle), eine Lage, deren Jacobi-Matrix eine Konditionszahl überworkspace.max_condition_numberhat, die Drehungen mit dem Plattformradius gewichtet (error-hexapod-singularity). Die Arbeitsraumkarte zeigt diese Konditionszahl; das Signalplatform.conditionfolgt ihr über den Zyklus. - Prüfungen: die Kraft jedes Beins (
joint.<i>.force) gegen Knicklast und statische Tragzahl seiner Spindel durch ihre Sicherheiten, Drehzahl, d n und Lebensdauer der Spindel; Motoren und Antriebe wie an jeder Maschine.
Unter ihrem Gewicht ist die Plattform, von festen Beinkräften gehalten, instabil (d²/dz² von m g z − Σ f_i L_i < 0), eine echte Eigenschaft, die die Lageregler halten; die verlustfreien Konfigurationen der Standardprüfungen laufen daher ohne Schwerkraft wie die des Sechsachsers, und die Schwerkraft prüfen die von Hand gerechneten Beinkräfte und die Standardkonfiguration.
Tripod
Eine Plattform auf drei Beinen veränderlicher Länge: z und zwei Neigungen, wie sie Schwenktische, Werkzeugköpfe und
Bewegungsplattformen nutzen. Die Bauform ist 3-RPS: jedes Bein ein elektrischer Zylinder wie am Hexapod (Motor in
Linie, Kugelgewindetrieb, Kupplung), an der Basis in einem Drehzapfen (Drehgelenk um die Tangente des Basiskreises, so
schwenkt das Bein in der senkrechten Ebene durch die Mitte der Basis) und an der Plattform in einem Kugelgelenk. Die
andere übliche Bauform, 3-PRS (senkrechte Schlitten mit Streben fester Länge, wie im Sprint-Z3-Kopf), hat dieselben
Zwangsbedingungen und dieselbe abhängige Bewegung; Beine veränderlicher Länge sind die elektrischen Zylinder des
Hexapods, Teile, die der Simulator hat. Jedes Bein ist ein Gelenk von chain::JointMachine wie am Hexapod; die Mechanik
gibt:
- Die Lage: z, die Höhe der Plattformmitte, und die Neigungen rx, ry, mit R = Rx(rx) Ry(ry) Rz(g): die reine Neigung
R0 = Rx(rx) Ry(ry), dann eine Drehung g um die Normale der Plattform. Die drei Zwangsbedingungen (jedes
Plattformgelenk bleibt in der Ebene seines Beins, e_i · (p + R a_i) = 0 mit den Gelenken bei 0, 120 und 240 Grad)
geben die drei abhängigen Koordinaten geschlossen: tan g = −sin rx sin ry / (cos rx + cos ry), p_x = rp (cos ry cos g
- sin rx sin ry sin g − cos rx cos g) / 2, p_y = rp cos ry sin g; in zweiter Ordnung p_x ≈ rp (rx² − ry²) / 4, p_y ≈ −rp rx ry / 2, g ≈ −rx ry / 2. Die Normale der Plattform ist genau die der reinen Neigung: die Drehung geht nur um sie.
- Inverse Kinematik geschlossen (die Beinlängen |p + R a_i − B_i|). Die Bewegung (v, w) der Plattform löst G xi = (q’, 0), die Zeilen von G (u_i, b_i × u_i) für die Beine und (e_i, b_i × e_i) für die Zwangsbedingungen; die Raten des Werkzeugs sind S xi (z’ = v_z und die Neigungsraten aus w), die Jacobi-Matrix also K = (S A)^-1, A die ersten drei Spalten von G^-1.
- Vorwärtskinematik mit Sehnenschritten x += K(home)^-1 (q − q(x)) von der Mitte des Werkzeugquaders aus; nach dem
ersten Schritte mit K an diesem ersten Punkt (nahe der Lösung weit schneller: 5 bis 6 Auswertungen der Beine über den
Quader), solange jeder den Fehler der Beine halbiert, sonst endgültig wieder Sehnenschritte; bis die Beine um weniger
als 1e-13 m verfehlen, NaN (abgelehnt) nach 100 Schritten. Warum das im Arbeitsraum konvergiert: mit dem Fehler
gewichtet als (dz, rp drx, rp dry) in der Maximumnorm liegt jede Lage des Quaders höchstens r = 0,04 m von seiner Mitte,
und ein Sehnenschritt verkleinert den Fehler mindestens um kappa = max ||W (1 − K0^-1 K(x)) W^-1|| über den um r
vergrößerten Quader (z 0,46 bis 0,62 m, Neigungen ±0,4 rad), der jede Strecke enthält, entlang der die Schritte laufen.
Auf einem Gitter von 17³ Punkten dort ist kappa höchstens 0,595 und ändert sich zwischen Nachbarn um weniger als
0,07, also kappa < 0,7: die Schritte konvergieren von der Mitte zu jeder Lage des Quaders (Test
the_chord_iteration_contracts_over_the_grown_working_range); die schnelleren Schritte können das nicht verhindern, denn jeder muss den Fehler halbieren oder an die Sehne zurückgeben. - Dynamik über die Bewegung der Plattform, die Zwangskräfte herausprojiziert: G xi’ = (q’’ − a0, −c0) gibt xi’ = A q’’
- beta; die Plattform M_xi xi’ + c + g = J^T f + C^T lambda, M_xi mit dem ersten Moment s = R s_b einer außermittigen
Nutzlast; A^T nimmt lambda heraus (C A = 0) und A^T J^T = 1, also M_q = A^T M_xi A, h = A^T (M_xi beta + c + g). Die
Nutzlast ist ein Körper für sich (
mass.payload_kg,payload_offset_m,payload_inertia_kgm2); die Masse jedes Beins wird aufgeteilt wie am Hexapod.
- beta; die Plattform M_xi xi’ + c + g = J^T f + C^T lambda, M_xi mit dem ersten Moment s = R s_b einer außermittigen
Nutzlast; A^T nimmt lambda heraus (C A = 0) und A^T J^T = 1, also M_q = A^T M_xi A, h = A^T (M_xi beta + c + g). Die
Nutzlast ist ein Körper für sich (
- Signale: je Bein
leg.<i>.from_middle(sein Auszug von der Hubmitte),leg.<i>.swing(sein Winkel in seiner Ebene gegen die Normale der Basis, am Drehgelenk),leg.<i>.cone(sein Winkel gegen die Normale der Plattform, der Kegel des Kugelgelenks); die der Plattformplatform.condition, die parasitärenplatform.x,platform.y,platform.turnundplatform.pose_error, der größte Abstand eines Punkts des Gelenkkreises von dort, wohin ihn die reine Neigung um (0, 0, z) brächte, sqrt(|d|² + c² + 2 c |(R0^T d)_xy|) mit d = (p_x, p_y, 0) und c = 2 rp |sin(g/2)|. - Abgelehnt: ein Bein über seinen Hub hinaus (
error-joint-beyond-stop), ein Schwenkwinkel überworkspace.max_revolute_angle_deg(error-tripod-revolute-angle), ein Kegelwinkel überworkspace.max_cone_angle_deg(error-tripod-cone-angle), eine Konditionszahl von K (Neigungen mit rp gewichtet) überworkspace.max_condition_number(error-tripod-singularity). Waagrecht ist die Konditionszahl √2, im ausgelieferten Quader höchstens 1,62. - Prüfungen: die der Spindeln wie am Hexapod;
tripod-leg-force(joint.<i>.forcegegenleg.max_force_n),tripod-leg-stroke(from_middlegegen den halben Hub),tripod-revolute-angle,tripod-cone-angle(gegen die Grenzen der Gelenke) undtripod-parasitic(platform.pose_errorgegenratings.parasitic_tolerance_m, wo gegeben).
Hexapod mit Drehantrieben (6-RSS)
hexapod-rotary (Crate machine-hexapod-rotary) ist die Bauart von Bewegungssimulatoren und schnellen
Sechsachs-Positionierern: sechs Servomotoren mit Planetengetrieben auf der Basis, jeder dreht eine Kurbel von 200 mm,
die Spitze jeder Kurbel ist über eine Stange von 550 mm mit einem Kugelgelenk an beiden Enden mit der Plattform
verbunden. Die Standardkonfiguration ist eine kleine Bewegungsplattform: 35 kg Plattform mit einem Sitz samt Insasse,
80 kg (Schwerpunkt 300 mm über den Plattformgelenken, mit eigener Trägheit), auf sechs 1FT2104-5AF mit Getrieben
SP100-04-50 an S210-Umrichtern 6SL3210-5HE10-8UF0 (Katalog). Werkzeuglage und Achsen wie beim Hexapod; die Gelenke sind die Kurbelwinkel (rad, 0 waagrecht,
positiv hebt die Spitze). Jede Kurbel ist ein Gelenk von chain::JointMachine mit einem joint::RotaryJoint
(Getriebesteifigkeit, Spiel, Wirkungsgrad, Reibung des Kurbellagers, Anschläge) wie bei den Delta-Pickern. Siehe die
Modellreferenz und die
Konfigurationsreferenz.
- Geometrie: die Mitten der Kurbelachsen paarweise bei 120 k ±
platform.base_half_angle_degaufplatform.base_radius_m, die Plattformgelenke paarweise bei 120 k ± (60 −platform_half_angle_deg) aufplatform_radius_m; jede Kurbelachse waagrecht, der Basisradius um ±crank.axis_turn_deggedreht (im Paar gespiegelt), damit die Stange wenig aus der Kurbelebene kippt. - Inverse Kinematik je Bein geschlossen: mit e = P_i − B_i ist a cos θ + b sin θ = c, a = e · d_i, b = e_z,
c = (|e|² + r² − L²) / 2r; θ = atan2(b, a) ∓ acos(c / √(a² + b²)), der Zweig einmal durch
crank.branchfestgelegt (“out”: die Spitze vom Partner des Paars weg; “in” der andere); keine Lösung, wo |c| > √(a² + b²). - Vorwärtskinematik nach Newton über die Bewegung der Plattform, wie beim Hexapod; auch die Dynamik beginnt bei der Lage am nächsten Punkt eines 1-mrad-Rasters der Kurbelwinkel, verschoben um K (q − q_Raster).
- Jacobi-Matrix: A ξ = diag(u_i · t_i) θ’, die Zeilen von A (u_i, b_i × u_i), u_i die Richtung der Stange und t_i die
Tangente der Kurbelspitze; u_i · t_i ist der Hebelarm des Motors. Die Konditionszahl der inversen Jacobi-Matrix
(Drehungen mit dem Plattformradius gewichtet) zeigen die Arbeitsraumkarte und das Signal
kinematics.condition; sie wächst ohne Grenze, wenn sich eine Kurbel ihrem Totpunkt nähert (alle sechs zugleich dort skalieren ihre Zeilen gleich und lassen sie unverändert: diese Lage lehnt der Abstand vom Totpunkt selbst ab). - Abgelehnt: eine Stange, die nicht hinreicht (
error-target-out-of-range), eine Kurbel näher an ihrem Totpunkt (die Stange in der Ebene von Kurbel und Achse, der Hebelarm null) alsworkspace.min_dead_centre_margin_deg(error-rss-dead-centre), ein Kugelgelenk überworkspace.crank_joint_max_angle_deg(die Stange aus der Kurbelebene) oderplatform_joint_max_angle_deg(gegen die Normale der Plattform;error-rss-ball-joint), zwei Stangen näher alsworkspace.min_rod_clearance_mAchse zu Achse (error-rss-rods-cross), eine Stange näher alsworkspace.min_body_clearance_man einer Kante der Plattform oder der Basis (error-rss-rods-cross-body), eine Konditionszahl überworkspace.max_condition_number(error-rss-singularity), eine Kurbel über ihre Anschläge hinaus. - Dynamik über virtuelle Arbeit in den Kurbelwinkeln: Plattform und Nutzlast als ein starrer Körper mit Schwerpunkt außerhalb der Plattformmitte, jede Stange als schlanker Stab (ein Sechstel ihrer Masse an jedem Ende und zwei Drittel in der Mitte: genau für Masse, Schwerpunkt und Querträgheit eines gleichförmigen Stabs, was die Aufteilung der Delta-Crates nicht ist), jede Kurbel mit Trägheit und Gewicht, die Rotoren über die Übersetzung; Schwerkraft; Energie und Impuls für die Standardprüfungen und die nachgiebige Basis.
- Prüfungen außer denen der Motoren: die Getriebemomente (
gearbox-peak,gearbox-continuous,gearbox-input-speedgegen die Nennwerte des SP100), je Beincrank-dead-centre(Winkel der Stange zur Tangente der Kurbel gegen 90° wenigerratings.crank_dead_centre_margin_deg, 20°),rod-buckling(Druckkraft der Stange gegen ihre Euler-Last π² E I / L² des Rohrs aus[rod], durchratings.rod_buckling_safety_factor),crank-ball-jointundplatform-ball-joint(die Winkel der Gelenke gegen ihre Grenzen) undsingularity. - Der Standardzyklus: Hub 50 mm auf, dann Längs- und Querbewegung 60 mm, Rollen und Nicken 0,12 rad, Gieren 0,15 rad, jeweils aus der Lage davor (die eine geht zurück, während die nächste einsetzt), und zurück in die waagrechte Lage, wo der Sitz ab- und wieder aufgesetzt wird (das Umschalten der Nutzlast).
Wie beim Hexapod läuft die von festen Kurbelmomenten gehaltene Plattform unter ihrem Gewicht aus ihrer Lage, daher laufen die verlustfreien Konfigurationen der Standardprüfungen ohne Schwerkraft (und ohne Getriebespiel, das ohne Last an keiner Flanke anliegt); die Schwerkraft prüfen die von Hand gerechneten Haltemomente und die Standardkonfiguration.
Seilroboter
Ein Seil verlässt seine Winde entlang der Schwenkachse einer Umlenkrolle vom Radius r (frame.exits_m,
frame.winch_directions, pulley.radius_m), umschlingt sie und läuft gerade zu seinem Anlenkpunkt an der Plattform
(platform.anchors_m; beim ebenen treffen sich die Seile in der Mitte des Schlittens). Die Rolle schwenkt in die Ebene
des Anlenkpunkts; in dieser Ebene ist die Länge der Bogen r beta plus die Tangente l_f = sqrt(m² − r²), und dL/dP = −u,
u der Einheitsvektor vom Anlenkpunkt zum Ablaufpunkt.
- Statik: Die Strukturmatrix A (n x m) hat die Spalten (u_k, b_k × u_k) in den Freiheitsgraden der Plattform; die Seile
halten eine Dyname w, wenn A t = w mit jeder Seilkraft im Band von
cable.min_tension_nbis zur Nennkraftcable.breaking_load_n/cable.safety_factor. Seile können nur ziehen, daher verteilt ein kleines QP die Kräfte: die nächsten ancable.reference_tension_n, die die Dyname im Band halten. Sitzt kein Seil an einer Grenze, ist das die geschlossene Form t = t_ref + A^+ (w − A t_ref); sitzt eins dort, hält das QP es da und teilt den Rest auf, und anders als die verbesserte geschlossene Methode (die ein Seil nach dem anderen festhält und nie wieder freigibt) ändern sich seine Kräfte stetig mit der Lage. Gelöst wird es mit einem Active-Set-Verfahren am bestraften Problem (das auch sagt, welche Seile an einer Grenze sitzen) und dann genau für die freien Seile. - Kraftfähiger Arbeitsraum: Eine Lage, deren Plattformgewicht (mit Nutzlast) keine Seilkräfte im Band halten, wird
abgelehnt (
error-cable-wrench-infeasible), auch als Ziel, Bahn oder Zykluslage. In der Mitte des ebenen Roboters tragen die vier Seile 139,81 N (oben) und 100,19 N (unten); 5 cm unter den oberen Rollen bräuchten die oberen Seile je 1284 N. - Elastisch (
effects.cable_stretch, an): Ein Seil der freien Länge l ist gespannt eine Feder von EA / l (cable.ea_n), darunter schlaff; seine Steifigkeit ändert sich über den Arbeitsraum. Die Steifigkeit der Plattform an ihren Seilen, elastischer und geometrischer Anteil bei gehaltenen Trommeln, gibt ihre Eigenfrequenzen (sim-cli modes, die Resonanz des Input-Shapers): 24,6 Hz in der Mitte des ebenen Roboters.effects.cable_dampingfügtcable.specific_damping_n_s/ l hinzu. Starr (aus) behalten die Seile ihre Länge. - Die eigene Masse der Seile (
cable.mass_per_m_kg, ausgeliefert 3 g/m und 10 g/m, [Schätzung]; 0 lässt sie weg): Die Hälfte des Gewichts jedes Seilstücks hängt an der Plattform, und das Seil hängt durch (flache Parabel): Bei der Sehnenkraft T ist es um (w l_h)² l_f / (24 T²) länger als seine Sehne, also mit t0 = EA (L − l) / l, der Kraft des geraden Seils, t0 = T − c / (2 T²), c = (w l_h)² EA l_f / (12 L); seine Steifigkeit dT/dt0 ist Ernsts Ersatzmodul E / (1 + (w l_h)² EA / (12 T³)), und ein schlaffes Seil hängt noch mit einer kleinen Kraft. Gegen die genaue elastische Kettenlinie stimmt der Zug am Anlenkpunkt auf 9e-5 N bei 20 N und 2e-4 N bei 5 N (das gerade Seil verfehlt ihn dort um 0,17 N und 1,6 N). - Trommeln und Läufer der Winden drehen sich um
frame.winch_spin_axes(sonst waagerecht und quer zur Richtung des Seils an der Winde; bei senkrechter die Achse der Rolle in Ruhe), und ihr Drall ist in der Last des Gestells. - Die zeitoptimale Planung hält die Kraft jedes Seils im Starrkörpermodell im Band (
cable.min_tension_nbis zur Nennkraft,profile.tension_reservedes Raums): Der Standardzyklus des ebenen Roboters braucht 1,684 s statt 1,653 s ohne das Band, bei dem ein Seil bis auf 0,63 N fiel; cable-spatial 1,207 s statt 1,143 s. - Jede Winde ist ein
joint::RotaryJointin Metern Seil: Motor, Getriebe mit dem Trommelradius als Hebel, die Trägheit der Trommel, Reibung von Lagern und Rolle (effects.winch_friction), Anschläge bei leerer und voller Trommel. Elastisch sind Trommel und Läufer eigene Körper hinter der Feder des Getriebes; starr behalten die Seile ihre Länge, und die Trägheit der Winden kommt zu der der Plattform. - Die Motorwinkel einer Lage sind die der freien Längen, die die Plattform dort in Ruhe halten, l = L / (1 + t / EA), t die Kräfte der geschlossenen Form (die der Verteilung, wo kein Seil an einer Grenze sitzt), sodass Lagesollwerte und Momentenvorsteuerung (die Kräfte der Verteilung für die Dyname der Plattform, dazu die Trägheit der Winden) dieselbe Vorspannung von den Seilen verlangen. Die Vorwärtskinematik ist Gauß-Newton über diese Längen; die Regelung braucht sie zweimal je Lagereglertakt (der Schleppfehler im Werkzeugraum), daher macht sie zuerst billige Schritte und nimmt die numerische Jacobi-Matrix nur nahe am Rand des Arbeitsraums. Mit dehnbaren Seilen sucht sie danach die Ruhelage der Plattform auf ihnen nach Newton; dieses Newton beginnt bei der Lage am nächsten Punkt eines 1-mm-Rasters der freien Seillängen (wie zuvor gefunden, behalten, bis die Längen seine Zelle verlassen) mit deren Jacobi-Matrix (Sehnenverfahren, die Matrix neu bestimmt, wo ein Schritt scheitert), was das Gauß-Newton und die meisten Residuen spart. Die Lage weicht um Newtons Toleranz (1e-12 m) ab und hängt nur von den Motorwinkeln ab; die Kennzahlen der Standardzyklen ändern sich damit um bis zu 1,5e-5.
- Signale je Seil:
cable.<k>.tension,cable.<k>.shortfall(wie weit es unter der kleinsten Kraft liegt),cable.<k>.length;platform.condition, die Konditionszahl der Strukturmatrix. Prüfungen:cable-max-tension(höchste Seilkraft gegen die Nennkraft) undcable-min-tension(jedes Unterschreiten fällt durch), Motoren und Antriebe wie an jeder Maschine.
Die Kurve der Presse wechselt die Geschwindigkeit mit 4-5-6-7-Gesetzen: ein 3-4-5 in die langsame Zone verlangt an seinen
Enden 6 Δv / Δm² + 60 c / Δm³ = 67,4 rad/rad³ Ruck (Δv 1,468, Δm 0,5 rad, c −0,067 rad), bei π rad/s Leitwert
2090 rad/s³, mehr als die 2000 der Kurbel; das 4-5-6-7 hat dort keinen eigenen Ruck. Die Drehzahlregler der vier
Maschinen haben Tn 0,01 s (das Messer Kp 0,25): der Integrator nimmt die Reibung am Ende einer Fahrt dreimal so schnell
auf wie mit 0,03 s, und die Fehler beim Verweilen fallen auf 0,13 mrad (Kurbel), 0,06 mrad (Messer), 0,03 mm (Säge) und
0,02 mrad (Scheibe) (Messer, Säge und Scheibe mit der Reibungsvorsteuerung, mit der ihre Konfigurationen ausgeliefert
werden), mit mindestens 36,5° und 10,0 dB Reserve (am 15. November neu eingestellt, damit die Reserven auch ohne Reibung halten:
das Messer Kp 0,18, mindestens 37,8° und 9,9 dB, Schleppfehler im Zyklus 8,86 → 12,1 mrad; die Säge Tn 0,04 s, kv
57 1/s und Kp 0,25 mit einem Kerbfilter auf der Resonanz von Getriebe und Zahnstange, 360 Hz, 250 Hz breit
(effects.notch_filter, je Maschine der erste Schlüssel ihrer Datei), mindestens 40,2° und 11,51 dB, nach einer langen
Fahrt 12,3 µm Bewegung in 0,2 s) in jedem Lauf über die Grenzen (sim-cli margins <id> --bands); die Toleranzen des Einschwingens sind 0,3 mrad, 0,3 mrad, 0,25 mm und 0,5 mrad.
Pneumatikzylinder neben Servoachsen ([[machine.cylinder]])
Die meisten Bestückautomaten haben neben ihren Servoachsen einen pneumatischen Antrieb: einen Z-Hub, einen
Greiferschlitten, einen Stopper. Eine Maschinendatei fügt ihn mit einem Knoten [[machine.cylinder]] hinzu, dessen
Tabelle values Zylinder, Ventil, Schlauch, Drosseln und Dämpfung enthält (sim_components::pneumatic, Schlüssel in
config-reference.md, Modell in model-reference.md). Er ist keine
Werkzeugachse: kein Antrieb bewegt ihn, und die Steuerung plant für ihn nichts. Der Zyklus schaltet sein Ventil, sobald
ein Segment angekommen ist (valves = { z = "extend" }), und wartet auf seine Endlagensensoren
(wait = ["z.extended"]), bevor die Verweilzeit zählt und das nächste Segment beginnt.
machines/pneumatic-axis.toml: die riemengetriebene Servo-X von single-axis.toml trägt einen Festo
DSBC-32-100-PPVA-N3 (32 mm Kolben, 12 mm Stange, 100 mm Hub, PPV-Dämpfung 17 mm, 0,4 J), der nach unten ausfährt, an
einem 5/2-Ventil mit Abluftdrosseln; 0,5 kg bewegt, 0,5 kg gegriffen. Der Zyklus: X zum Aufnehmen, Z ab, warten,
greifen, Z auf, warten, X zum Ablegen, Z ab, loslassen, Z auf. Mit den ausgelieferten Einstellungen fährt Z in 0,55 bis 0,56 s
aus und in 0,65 s ein (Ventil 7 ms, die Stangenseite entlüftet aus dem Versorgungsdruck, gedrosselt 0,216 m/s, am Ende
die Dämpfungsschraube), tritt mit 0,22 bis 0,24 m/s und einer Bewegungsenergie von 0,012 bis 0,029 J gegen die zulässigen 0,4 J in die
Dämpfung ein (cushion-energy). Die Prüfung ist die Regel des Herstellers für die eigene Dämpfung des Zylinders: die
Bewegungsenergie beim Eintritt in die Dämpfung gegen die höchste Aufprallenergie der Tabelle (Festo-Datenblatt DSBC,
„Kräfte und Aufprallenergie“, v = sqrt(2 E / (m1 + m2)), S. 13); die Arbeit des Gewichts über die Dämpfungslänge, m g L,
gehört zu Festos Regel für externe Stoßdämpfer und wird nicht addiert (1 kg hängend über die 17 mm: 0,167 J mehr, die
diese Prüfung nicht zählt). Er trifft mit 0,06 bis 0,09 m/s auf den Puffer, ohne aus dem Sensorbereich zurückzuprallen, und hat
ein Lastverhältnis von 0,024 (load-factor, 1 kg Gewicht gegen 415 N beim Einfahren). Ein Doppelhub verbraucht 1,10
Normliter, 474 J am Kompressor (0,12 kWh/m³); von Hand beim Versorgungsdruck und der Wandtemperatur 1,15 l, 4 % weniger,
weil die Verweilzeiten zu kurz sind, als dass die heiße Luft abkühlt.
Was der Zylinder für die Auslegung liefert: Hubzeiten hin und zurück, den Geschwindigkeitsverlauf, Geschwindigkeit und Bewegungsenergie beim Eintritt in die Dämpfung gegen ihren Nennwert, die Geschwindigkeit am Endanschlag, Rückprall und Einschwingen, das Lastverhältnis, die Luft je Doppelhub und ihre Energie am Kompressor, die Druck- und Temperaturverläufe beider Kammern.
Auf- und Abwickler mit Tänzer (machine-winder)
Die klassische Auslegungsaufgabe der Verarbeitungsmaschinen, und die einzige Maschine, deren Motoren ein Material koppelt
und deren Last sich im Lauf ändert: winder führt eine Bahn (Kunststofffolie, Papier, Metallfolie) von einem Abwickler über
eine Tänzerwalze zu einem Aufwickler, mit einer Bahngeschwindigkeit und unter einem Bahnzug. Die ausgelieferte
Konfiguration: eine PET-Folie von 50 µm, 400 mm breit, mit bis zu 2 m/s (in einer halben Sekunde auf Geschwindigkeit,
4 m/s²) und 100 N, auf 3-Zoll-Kernen (r_c 45 mm), die bis 300 mm wachsen (r_f 150 mm; 1286 m Folie, 36 kg), jeder Wickel
an einem 1FK2206-2AF mit Haltebremse hinter einem Planetengetriebe mit Übersetzung 7, an einem S120-Motor-Module von
5 A mit einem Braking Module für beide; der Tänzer eine Walze
von 80 mm auf einer senkrechten Führung, 4 kg und ein Gewicht von 2 kg, von einem Pneumatikzylinder nach unten gedrückt,
±50 mm Weg. Die Bahnposition läuft über die ersten 6 m des Wickels (roll.run_from_m, run_m), wo der Abwickler voll
ist und der Aufwickler auf seinem Kern; der Zyklus fährt 3 m vor und zurück. Das Modell steht in der
Modellreferenz.
| Kennung | Mechanismus | Übertragung | Werkzeuglage | Eigene Prüfungen |
|---|---|---|---|---|
winder | Abwickler, zwei Bahnabschnitte von 1 m über eine Tänzerwalze, Aufwickler | Planetengetriebe mit Übersetzung 7 je Wickel | Bahnposition (m), die aufgewickelte Bahn | web-tension, web-slack, dancer-travel; je Motor inertia-ratio, torque-at-full-roll, torque-at-core, speed-at-core, tension-torque-at-full-roll |
Was sich im Lauf ändert. Der Radius eines Wickels wächst je Umdrehung um die Dicke der Bahn, r² = r_c² + h s / π; die Motordrehzahl für eine Bahngeschwindigkeit v ist i v / r, am höchsten am Kern (311 rad/s bei 2 m/s), das Moment für einen Bahnzug T r / i, am höchsten beim vollen Wickel (2,14 N m bei 100 N), und die Trägheit, die er sieht, wächst mit r⁴: über den Wickel vom 0,23- bis zum 10,4-fachen der von Läufer und Getriebe. Eine Auslegung muss beide Enden halten; ein Zyklus fährt Meter eines Wickels von 1286 m, darum tragen die eigenen Prüfurteile Bahngeschwindigkeit, Beschleunigung und Bahnzug des Zyklus an den vollen Wickel und an den Kern (Modellreferenz, „Own verdicts“). Mit dem ausgelieferten Motor entscheidet das Trägheitsverhältnis (10,4 von erlaubten 15) über den Motor, nicht sein Moment: ein 1FK2205-2AF (3,15 kg cm²) hätte das Moment, aber beim vollen Wickel das 22-fache seiner Trägheit.
Die Bahn dehnt sich in zwei Abschnitten von EA / L (je 80 kN/m), trägt ihre Dehnung von Abschnitt zu Abschnitt und hängt unter null Zug durch. Der Tänzer schwingt auf ihnen mit 26,1 Hz, seine Walze mit 56,9 Hz. Die Wickel folgen der Bahnposition als elektronisches Getriebe beim Radius ihrer gewickelten Länge, mit dem Moment des Bahnzugs und der Trägheit des Wickels vorgesteuert; der Lageregler des Tänzers korrigiert die Drehzahl des Abwicklers: ein mit 100 N gewickelter und mit 80 N gefahrener Wickel ließe den Tänzer bei 2 m/s um 0,25 mm/s wandern (der Verzug), was der Regler ausgleicht. Der Bahnzug-Sollwert fällt über den Radius des Aufwicklers, von 100 N am Kern auf 79 N beim vollen Wickel, über die Kraft des Zylinders.
Halt. Ein Halt der Kategorie 2 (sim-cli stop winder --category 2, die Bahn entlang ihres Wegs mit den 4 m/s² der
Achse gebremst) hält die Bahn bei jedem Radius zwischen 30 und 250 N. Ein Halt der Kategorie 1 bremst jeden Motor an
seiner eigenen AUS3-Rampe: in der Mitte des Wickels, wo die Radien gleich sind, behält die Bahn ihren Zug; nahe einem
Ende verzögern die beiden Oberflächen im Verhältnis ihrer Radien (1,35 gegen 0,40 m/s² am vollen Wickel und am Kern),
der Tänzer läuft nach 0,47 s in seinen Anschlag und die Bahn wird über 1100 N gedehnt. Kategorie 0 lässt die
Haltebremsen die Wickel binnen etwa 50 ms greifen, und die Bahn hängt durch. Am Wickler hält nur ein Halt entlang der
Bahn die Bahn; nach einem Halt der Kategorie 1 halten die Haltebremsen den Zug, den der Tänzer hält.
Drehzahlregler. Der Aufwickler auf seinem Kern hat ein Zehntel der Trägheit des vollen Abwicklers am Motor, darum
hat jeder seine eigene Verstärkung (1,2 und 3,0 N m s/rad, Tn 30 ms): sim-cli margins winder gibt 68,9° und 20,45 dB am
Abwickler, 57,5° und 9,50 dB am Aufwickler (51,6° und 9,18 dB ohne Reibung), über die Grenzen mindestens 53,6° und
8,85 dB (--bands).
sim-cli verdicts winder
sim-cli run winder --cycle --time 10 --stop-at 7.5 --stop-category 2 --out winder.csv
sim-cli stop winder --category 2
sim-cli verdicts winder --set web.tension_n=150 --set axis.web.max_velocity_m_s=3.0
Mover auf geschlossener Strecke (machine-mover-track)
Ein lineares Transportsystem wie Beckhoffs XTS oder B&Rs ACOPOStrak: Motorsegmente aus Linearmotorspulen in einer geschlossenen Schleife, und darauf unabhängige Mover, jeder eine Masse auf Rollen mit einer Magnetplatte, jeder von den Spulen unter ihm mit eigenem Lageregler angetrieben. Die ausgelieferte Konfiguration: sechs Mover von 651 g (AT9014) mit je 600 g, auf einer Schleife aus zwei Geraden von 1 m aus je vier Modulen von 250 mm (AT2000) und zwei 180°-Kurven von 267 mm Breite, an jedem Ende eines Bogens von 130,3 mm eine Klothoide von 100 mm (die Aufteilung ist geschätzt; Beckhoff veröffentlicht die Breite und dass es eine Klothoide ist); 3,019 m Umfang. Ein Mover gibt 100 N Spitze und 30 N Dauerkraft, 4 m/s, 10 g ohne Last (die 5-polige Magnetplatte an 48 V; mit der Nutzlast bewegt die Platte 1,65 kg mit 60 m/s², die Achsen sind auf die Hälfte, 30 m/s², begrenzt); Kraftkonstante, Spulenwiderstand, Anzugskraft (300 N) und Polteilung sind geschätzt.
| Id | Mechanismus | Übertragung | Werkzeugpose | Eigene Prüfungen |
|---|---|---|---|---|
mover-track | 1 bis 7 Mover auf einer geschlossenen Schleife aus Geraden und Kurven (6 ausgeliefert) | Linearmotor je Mover: die Spulen unter ihm | Weg jedes Movers entlang der Schleife (m), nicht umgebrochen | je Mover mover-guide-load, curve-holding, station-settling (Taktzyklus); mover-gap; je Segment segment-current, segment-temperature |
Zwei Zyklen, beide elektronische Kurvenscheiben. Eine geschlossene Strecke fährt nur vorwärts, daher ist der Zyklus
eine Kurvenscheibe ([cam]): track.cycle = "index" fährt jeden Mover um eine Stationsteilung (die
Schleife durch die Zahl der Mover, 0,503 m) mit einem 4-5-6-7-Gesetz in 0,4 s weiter und lässt ihn den Rest der Periode
an seiner Station stehen, 1,5-mal je Sekunde (2,75 m/s, 23,6 m/s² Spitze); flying.toml fährt "flying": jeder Mover
fährt der Reihe nach über 0,3 m der ersten Geraden synchron mit einem Förderband von 1,0 m/s, dann um die Schleife zurück
und wieder in den Prozess (6 Produkte zu 0,3 m je Umlauf: die Mover rücken über dem Prozess auf eine Produktteilung
zusammen und fahren mit bis zu 2,78 m/s zurück). default.toml liefert cam.run = false aus, wie die Kurbel- und
Kurvenmaschinen: dort fahren die Mover nach den [[cycle.segment]] 0,25 bis 0,3 m vor, nehmen ein Produkt
und bringen es durch einen Punkt, an dem sie nicht anhalten, zum Start zurück, den
Zyklus, den die allgemeinen Tests und Werkzeuge fahren; --set cam.run=true fährt den Taktzyklus.
Kurven. Die Rollen eines Movers spannen seinen Radstand w, daher folgt sein Körper dem Mittel der Krümmung darüber:
die Querbeschleunigung v² k steigt über den Radstand an, wo eine Kurve mit festem Radius beginnt, und über die
Klothoide, wo es eine gibt; ihre Änderung, der Querruck 2 v a k + v³ dk/ds, ist, was die Klothoide senkt (bei 2 m/s
1228 m/s³ in einen Kreis, 614 m/s³ in die Klothoide). Die Mover laufen außen an der Schleife, die Magnetplatte den
Spulen zugewandt, daher zieht die Fliehkraft m v² k einen Mover gegen die Anzugskraft von den Spulen weg: die Rollen
tragen sqrt((F_a − m v² k)² + (m g)²) (mover-guide-load), und der Anteil m v² k / F_a (curve-holding) muss unter 1
bleiben, wo der Mover abhebt. mass.centre_offset_m = e legt den Massenschwerpunkt der Mover außerhalb der Mittellinie
(beim gezeichneten Mover 35 mm; ausgeliefert 0): in einer Kurve läuft er auf R + e mit v (1 + e k), seine
Querbeschleunigung ist v² k (1 + e k) (38,9 m/s² mitten im Bogen bei 2 m/s und e = 35 mm, 30,7 bei e = 0), seine
kinetische Energie ½ m v² (1 + e k)²; die Tangentialkraft der sich über die Klothoide ändernden Masse ist in der Dynamik
(die Energie bleibt erhalten). Der Versatz gilt für Moverkörper und Nutzlast, nicht für die Magnetplatte.
Spulen und Segmente. Der Strom eines Movers ist seine Kraft durch die Kraftkonstante; er fließt in den Spulen unter
seiner Magnetplatte, auf die Segmente nach der Länge der Platte auf jedem verteilt. Der Strom eines Segments ist die
Summe der Anteile seiner Mover (segment-current, gegen die 48 A Spitze des Moduls), sein Kupferverlust R I² jedes
Anteils; es erwärmt sich über einen Wärmewiderstand und eine Zeitkonstante (segment.<j>.temperature_rise), und
segment-temperature beurteilt die Erwärmung, auf die sein über einen Durchlauf gemittelter Verlust einschwingt: Mover,
die auf einem Segment halten, heizen es. Der Abstand zwischen Nachbarn entlang der Mittellinie, abzüglich einer
Körperlänge, gegen den kleinsten Abstand von 2 mm (mover-gap); die Abweichung eines stehenden Movers an seiner Station
gegen die Wiederholgenauigkeit von ±10 µm (station-settling).
Modell und Grenzen in der Dokumentation des Crates (crates/machine-mover-track/src/lib.rs).
sim-cli verdicts mover-track --set cam.run=true
sim-cli verdicts mover-track --config crates/machine-mover-track/flying.toml
sim-cli verdicts mover-track --set cam.run=true --set track.index_rate_hz=2.5 --set track.clothoid_m=0.0
Brückenkran (machine-overhead-crane)
overhead-crane ist ein Einträger-Brückenkran mit 250 kg Tragfähigkeit: die Brücke fährt 10 m auf ihrer Kranbahn (x),
die Katze 5 m am Träger (y), das Hubwerk auf der Katze wickelt ein einsträngiges Drahtseil von 6 mm auf seine Trommel. Die
Werkzeuglage ist der Haken, wie die Antriebe ihn stellen: x der Brücke, y der Katze und die Höhe z der Last über dem
Boden (m); das Pendeln der Last hat eigene Signale und eine eigene Prüfung. Jeder Antrieb ist ein Servomotor hinter
einem Planetengetriebe (Siemens 1FK2104-6AF an Brücke und Katze, 1FK2105-6AF am Hubwerk, S210), Rad oder Trommel der
Hebel: 30:1 auf Rädern von 80 mm, 25:1 auf 50 mm, 40:1 auf einer Trommel von 80 mm.
- Das Seil läuft gerade von der Seilrolle der Katze in 5 m Höhe zum Lastpunkt (Haken und Last ein Massenpunkt). Gespannt zieht es mit t = EA e / l + c / l (L’ − l’), e = L − l die Dehnung über die freie Länge, drücken kann es nicht: unter null wird es schlaff. Es zieht die Last zur Katze, die Katze (x an der Brücke, y an der Katze) und über die Ableitung seiner Federenergie die Trommel mit t (1 + e / (2 l)): das Pendeln der Last wirkt auf beide Fahrantriebe zurück.
- Die Last ist ein Kugelpendel an diesem Seil; ihre Schwingdauer bei kleinem Ausschlag 2π √(L / g) (2,84 s an 2 m
Seil, 4,01 s an 4 m). Starr (
effects.rope_stretchaus) behält das Seil seine Länge, seine Kraft ist die Zwangskraft (das Bezugsmodell für ein gespanntes Seil; es kann auch drücken). - Die Antriebe sind starr, mit Getriebewirkungsgrad, Motorreibung und Haltebremse wie an jeder Maschine; die Räder
rollen gegen
crane.rolling_coefficientmal ihre Last (effects.guide_friction). - Die Motorwinkel einer Lage sind die des leeren Hakens; die Last hängt um ihre eigene Dehnung tiefer (6,8 mm an 4 m), und die Trommel steht still, wenn der Haken die Last nimmt oder abgibt. Aufnehmen und Absetzen sind quasistatisch.
- Eingangsformer gegen das Pendeln. Die Maschine meldet die Pendelfrequenz √(g / L) / 2π einer Lage; mit
effects.shaper_follows_pose(in der Konfiguration an) folgt die Periode des Formers der Seillänge, wo der Plan steht, sodass eine Fahrt, die dabei hebt, für die sich ändernde Länge geformt wird.effects.input_shapingselbst ist in der ausgelieferten Konfiguration aus, wie an jeder Maschine; eingeschaltet mit--set effects.input_shaping=true. Gemessen auf dem Rückweg des leeren Hakens, der beim Fahren von 4 m auf 2 m Seil hebt: ungeformt 0,43 m Restpendeln, mitgeführter ZV (der ausgelieferte, eine halbe Pendelperiode hinter dem Plan) 0,017 m, ein ZV für die Länge am Ende der Fahrt 0,124 m, einer für die am Anfang 0,105 m (ZVD, eine ganze Periode dahinter: 0,012, 0,047 und 0,041 m). - Der Zyklus (fahren und absenken, zurück, aufnehmen, heben) ist ein kurzer Positionierzyklus, 7,0 s je Durchgang
(geformt 12,8 s), damit jede Prüfung über die Zyklen aller Maschinen ihn ganz sieht: aus der Fahrhöhe (z = 3 m, 2 m
Seil) 0,2 m und 0,1 m zur Ablage, dabei 0,15 m absenken. Geformt besteht er alle Prüfungen (Restpendeln 4,4 mm,
Seilkraft höchstens 2721 N und nie schlaff, Hubwerksbremse 5,4 von 7,5 N m belastet); ungeformt pendelt die Last
0,30 m, und
residual-swayfällt durch (sein Warmstart konvergiert im Standardzyklus, 0,019 K; miteffects.hook_blockträgt sich das Pendeln eines Durchgangs in den nächsten, und die Prüfungthermal-cycle-repeatnennt es). Ein echter Werkstattkranzyklus über die Kranbahn dauert eine Minute: ein Ziel von [8.0, 4.0, 1.0]. - Die Drehzahlregler sind so steif eingestellt wie an den anderen Maschinen (Brücke und Katze etwa 60 Hz). Der des
Hubwerks wird in Ruhe unter den 265 kg (
sim-cli margins) mit ausgeschaltetem Wirkungsgradeffekt gemessen: Der Wirkungsgrad seines Getriebes (92 %), unter 0,5 W eingeblendet, wirkt sonst als Dämpfer von 1,1e6 N s/m am Seil, 4,5 N m s/rad am Motor, von dem das Testmoment nicht losbricht, und der Kreis zeigt keine Durchtrittsfrequenz. Ohne die Getriebeverluste, mit einem Zehntel des eigenen Nennmoments des Hubmotors (0,66 N m) als Testmoment, liegt sie bei 50,5 Hz mit 77,6° und 20,95 dB (bei 0,32 N m, einem Zehntel des gemeinsamen Antriebswerts: 48,5 Hz, 83,1°, 21,3 dB; die Reibung des Motors dämpft das kleinere Signal stärker). - Eigene Prüfungen:
rope-max-tension,rope-min-tension(kein Schlaffseil),residual-sway(Amplitude des Pendelns bei jedem Verweilen gegencrane.residual_sway_max_m),hoist-brake(Seilmoment am Hubmotor gegen das Bremsmoment durchhoist.brake_safety_factor).
sim-cli verdicts overhead-crane --set effects.input_shaping=true
sim-cli verdicts overhead-crane
Was von Hand nachgerechnet ist
Komponententests (sim-components): kritische Drehzahl, Knicklast, Trägheit, Steifigkeit, Reibmoment der Vorspannung,
Lebensdauer der Spindel und ihre Signale und Prüfungen; der Wandler hinter einem Getriebe (Übersetzung,
Reihensteifigkeit, Spiel, Wirkungsgrad, Trägheit); Reibung und Anschläge des Schlittens; Teilkreisradius und
Vorschubkraft der Zahnstange; die Wirkungsgrade der Schnecke; die Lebensdauer des Wellgetriebes; das Pendel aus dem
Lehrbuch und die Energieerhaltung der Newton-Euler-Kette.
Maschinentests (machine-joint-kit): Jede Maschine besteht die Standardprüfungen (Hin- und Rückrechnung, statisches
Halten, Energieerhaltung ohne Verluste, Energiebilanz mit ihnen, Konvergenz bei halbem Zeitschritt, Determinismus), und
ihr Standardzyklus besteht alle Prüfungen. Im starren, verlustfreien Modell: Die Spindel erreicht 2400 1/min bei 0,8 m/s
und schiebt mit Masse mal der Beschleunigung, die der Lauf erreichte; Vorschubkraft und Getriebemoment der Zahnstange sind
m a und m a r; die Führungen des Linearmotors tragen 2500 + 13 g = 2627,49 N; das Getriebe des Tisches überträgt J alpha;
der ausgestreckte Sechsachsroboter hält 177,304 N m an Gelenk 2 (-1,47753 N m an seinem Motor) und 21,3785 N m an Gelenk
3, von Hand aus den Massen der URDF summiert; die Spindel des SCARA hält 5,5 g = 53,937 N, -0,171686 N m an ihrem Motor.
Im Werkzeugraum: Die geschlossene Form des SCARA gibt bei (0,325, 0,275) den Ellbogen bei ±pi/2 und Gelenk 1 bei 0 oder
1,404514 rad von Hand; Vorwärts nach Rückwärts gibt die Lagen auf 1e-9 zurück (den ganzen Bereich des SCARA, beim Arm um
seine Grundstellung gestreut, das Handgelenk auf der Seite der Grundstellung); jede geplante Lage einer Geraden liegt auf
1 um auf ihr und die Orientierung des Arms auf 1e-6 rad; die Gelenkgeschwindigkeiten sind J^-1 v von Hand
(1,538462 rad/s); eine Gerade in den gestreckten SCARA-Arm wird abgelehnt; der zeitoptimale Plan hält die Motoren
entlang einer Geraden unter ihrer Nenndrehzahl; beide Werkzeugzyklen bestehen ihre Prüfungen. Die Arme vom 14. November:
Die Vorsteuerung im Gelenkraum hat die Coriolis- und Zentripetalmomente eines Zweigelenkarms von Hand (-6 und 0,75 N m bei
q2 = 90 Grad, q’ = (1, 2) rad/s); die eigene Trägheit einer Last zählt um das letzte Gelenk (1,2 N m gegen 1,15 der
Punktmasse bei 1 rad/s^2); der Slerp-Mittelpunkt zweier Vierteldrehungen ist 70,53 Grad um ihre Winkelhalbierende, und
eine geplante Gerade des Werkzeugs des Arms geht durch ihn; die warm gestartete Inverse gibt die Gelenke eines Wegs von
der Grundstellung (1e-9 rad); der Siebenachsroboter erreicht eine Lage auf 1e-9, der Abstand seiner Gelenke von der
Grundstellung ohne Anteil im Nullraum der Jacobi-Matrix; ein bei null nach unten zeigender Flansch steht bei keiner
Drehung; der Flansch des Palettierers bleibt über die Bereiche seiner Gelenke waagerecht, und sein pendelnder Karton hat
m g l (1 - cos 0,1) + k 0,1^2 / 2 = 0,79597 J um 0,1 rad gedreht und (m l^2 + I) / 2 = 0,775 J bei 1 rad/s, und hält
verlustfrei die Energie; jedes Gelenk der Arme hat seinen eigenen Katalogmotor; ein zeitoptimaler Plan eines Kriechens
wird jenseits von zehn Millionen Punkten abgelehnt. Der Roboter auf seiner Schiene: Die Schiene schiebt mit -3 · 14,505 =
-43,515 N, während Gelenk 2 den ausgestreckten Arm mit 3 rad/s² schwenkt, Gelenk 2 hält -2 · 14,505 = -29,01 N m, während
die Schiene mit 2 m/s² beschleunigt, und die Schiene schiebt 130,5 · 2 = 261 N; die Führungswagen tragen 4 (1279,768 / 4 +
142,2455 / 1) = 1848,75 N in Ruhe bei quer ausgestrecktem Arm und 2656,85 N beim Beschleunigen, die Welle des Ritzels
261 · 1,071978 N; die Führungsurteile kippen an ihren Grenzen; im Werkzeugraum steht die Schiene auf 1e-12 m, wo die Lage
es sagt, und Vorwärts der Inversen gibt die Lage auf 1e-9 entlang der ganzen Schiene zurück.
Eine 1,6 m lange Spindel fällt bei screw-speed durch, und eine geforderte Lebensdauer über der der Spindel bei
screw-life. Mit Verlusten: Getriebemoment und Vorschubkraft der Zahnstange sind die Kraft an der Last durch 0,97, die
Lebensdauer der Spindel schrumpft bei 99 % Zuverlässigkeit um a1, und die Temperaturrückführung behält den Wirkungsgrad
von Spindel, Zahnstange und Schnecke.
Tests der Kurbeln und Kurvenscheiben (sim-components cam.rs, machine-crank-cam): ein 3-4-5-Segment mit 0,1 m Hub über 2 rad
bei 4 rad/s erreicht 1,875 h V / T = 0,375 m/s, 5,7735 h V² / T² = 2,3094 m/s² und einen Ruck von 60 h V³ / T³ = 48 m/s³;
jedes Gesetz steigt von Rast zu Rast mit Ableitungen, die seine Differenzen sind; ein Gesetz zwischen zwei Synchronläufen
der Steigung 10 behält sie an seinen Enden und hat in der Mitte 10 + 1,875 (12 − 10); eine Sinustabelle mit Steigungen
und ihr periodischer Spline ohne laufen durch den Sinus; die sin²-Rampe des Leitwerts legt Rampe × V / 2 zurück. Die
Schubkurbel bei 60° (r 50 mm, l 200 mm): x = 0,2202562 m, x’ = −0,0488454 m/rad, x’’ = −0,0187556 m/rad²; J = 0,0869757 kg m²,
und rückwärts mit 2 rad/s, um 10 rad/s² schneller, gegen 1 kN −47,878563 N m an der Kurbel; bei −90° drückt das Pleuel
mit 1032,796 N, die Führung nimmt 258,199 N. Das Messer (R 0,1 m, ±10°) dreht auf einem Format von 0,5 m zwischen den
Schnitten im Mittel 12,758984 rad/m und in der Mitte 15,173095, auf 0,8 m 7,756072. Die Säge (1 m/s, 5 m/s²) synchronisiert
über 0,1 m mit 7,5 m/s² Spitze, läuft 0,2 m mit dem Material und fährt mit 0,8333 m/s zurück. Jede Maschine besteht die
Standardprüfungen, ihr Standardzyklus und ihre Kurvenscheibe bestehen alle Urteile, ein Durchgang der Kurvenscheibe dauert
eine Leitwertperiode (2, 0,5 und 1,5 s) und ein Stopp endet innerhalb der Rampe; die Kurvenscheibe des Messers bei einer
Grenze von 10 rad/s wird mit 15,17 rad/s gemeldet und fällt dort beim Urteil cam-speed durch. Eine neue
Bahngeschwindigkeit unter der laufenden Kurvenscheibe des Messers fährt den Leitwert von 1 auf 0,8 m/s: 0,9 m/s in der
Mitte der Rampe, 0,8 m/s nach 0,5 s, 0,45 m auf dem Weg, ohne Sprung der Geschwindigkeit. Die Kurvenscheibe bei 60°
(Mitte eines 3-4-5-Hubs von 30 mm über 120°, r_b 60 mm, r_r 15 mm, e 10 mm): s0 = 0,0743303 m, s’ = 0,0268574 m/rad,
tan φ = 0,188709, φ = 10,687°; bei 2π rad/s drücken Feder und Gewicht mit 159,420 N, die Kontaktkraft ist 162,234 N, die
Führungslast 30,084 N und das Moment an der Scheibe 4,28161 N m. Die Kniehebelpresse (Hebel 150 mm, Kurbel 50 mm um 120°
zum im Totpunkt waagerechten Pleuel, Pleuel 250 mm), gegen einen Kreisschnitt für das Knie und zentrale Differenzen: bei
−90° der Kurbel steht der Stößel 35,655 mm über dem unteren Totpunkt mit x’ = 0,0364766 m/rad, bei −20° 1,792 mm und
0,0108256, bei −2° 0,0156 mm und 0,00090095, im Totpunkt x’ = 0, φ’ = −0,2886751, x’’ = −0,025 m/rad²; 1 mm darüber
steht die Kurbel auf dem einen Ast bei −0,2646374 rad, auf dem anderen ebenso weit dahinter; 10 N m des Motors (100 N m
an der Kurbel) halten bei −90° 2741,5 N und bei −5° 42530 N; 10 kN brauchen 1 mm vor dem Totpunkt 79,387 N m an der
Kurbel, 0,1 mm davor 23,487 N m; das Gestell (5e7 N/m) federt unter den 20 kN Nennkraft 0,4 mm auf, aus den 12 kN der
Tabelle werden 11538,46 N bei 0,2308 mm Auffederung; J = 0,01859375 kg m² im Totpunkt und 0,05605024 fern davon; das
Kraftvermögen bei −90° ist 145,5 / 0,0364766 = 3988,85 N; ein Umformhub aus der Ruhe in die Ruhe nimmt im verlustfreien
Lauf 20,615 J vom Motor (19,284 J ins Teil, 1,331 J ins Gestell); in der Rast gibt der Motor weniger als ein Zehntel der
9,44 N m, die dieselbe Kraft 1 mm vor dem Totpunkt bräuchte; eine um 20 mm nach oben gelegte Umformkraft verfehlt
press-capacity und motor-peak.
Maschinentests (machine-hexapod, machine-cable-robot): Alle drei bestehen die Standardprüfungen, und ihre
Standardzyklen bestehen alle Prüfungen. Hexapod: Jedes Bein ist in der Grundstellung (0, 0, 0,48 m) 0,5471158 m lang,
0,0971158 m ausgefahren, von Hand aus den Gelenkkreisen; vorwärts der inversen gibt drei Lagen auf 1e-12 zurück; die
Beine halten 62,2 kg in der Grundstellung mit je 115,8772 N, m g / (6 u_z), die Motoren mit 0,184424 N m (f Steigung /
2 pi); außermittig tragen die Kräfte zusammen weiter das Gewicht. Seilroboter: In der Mitte des ebenen ist jedes Seil
1,283539 m lang (Bogen und Tangente von Hand), die Kräfte sind 139,808 N und 100,192 N, die Steifigkeit der Seile
192512 N/m quer und 119500 N/m senkrecht, die tiefste Eigenfrequenz 24,605 Hz, die geometrische Steifigkeit 235 N/m
mehr; 5 cm unter den oberen Rollen wird die Lage abgelehnt; ein Seil, das die geschlossene Form unter sein Band nimmt,
wird an der Grenze gehalten und die anderen tragen den Rest (je 8,485 N von Hand); vorwärts der inversen gibt die Lagen
des räumlichen auf 1e-10 zurück.
Maschinentests (machine-tripod): die Standardprüfungen und der Standardzyklus mit allen Prüfungen. Waagrecht bei z =
0,54 m ist jedes Bein 0,5491812 m lang; um 0,15 rad um x geneigt verschiebt sich die Mitte um rp (1 − cos 0,15) / 2 =
1,1229 mm und die Beine sind 0,5489779, 0,5750463 und 0,5241851 m lang; bei (0,15, 0,1) rad stimmen Drehung und
Verschiebung der geschlossenen Form (−7,5203 mrad, 0,61207 und −1,49654 mm) mit ihrer zweiten Ordnung überein und halten
jedes Plattformgelenk in der Ebene seines Beins; vorwärts der inversen auf 1e-12 an 9³ Lagen; der Sehnenschritt zieht
über den vergrößerten Quader um weniger als 0,7 zusammen; waagrecht sind die Zeilen der Jacobi-Matrix u_z (1, rp sin
t_i, −rp cos t_i) und ihre Konditionszahl √2; die Beine halten die mittigen 62,7 kg mit m g / (3 u_z) = 208,4437 N
(0,331749 N m an den Motoren), die außermittige Last nach dem Momentengleichgewicht mit 274,9330 und 175,1991 N, und
drücken beim Heben mit 2 m/s² je 250,9544 N; der Impuls der Plattform auf einer nachgiebigen Basis trägt den Versatz der
Nutzlast; Wert und Grenze jeder neuen Prüfung von Hand, und die Grenzen der Gelenke lehnen die waagrechte Lage 0,1°
unter ihren 10,49° ab.
Maschinentests (machine-wafer-handler): die Standard-Testreihe mit jeder Mischung aus starren und elastischen Getrieben
und Bändern; bei φ = 60°, θ = 30° liegt das Handgelenk bei (0,277128, 0,16) auf der radialen Linie und die Wafermitte bei
(0,433013, 0,25), dr/dφ = −0,554256 m/rad; das Trägheitsmoment am R-Motor von Hand M_φφ = m₁ c₁² + I₁ + m₂ (L² + c₂² −
2 L c₂ cos 2φ) + I₂ + (m₃ + m_w) 4 L² sin² φ, bei r = 0,12 m 0,5499656 kg m² (2,485862e-4 kg m² am Motor), bei r = 0,75 m
0,1876677 (1,036671e-4); am θ-Motor 0,153033 und 0,604751 kg m²; dreht der Arm bei r = 0,75 m mit sqrt(μ g / r) =
1,980571 rad/s, beschleunigt der Wafer mit μ g = 2,941995 m/s², dem 1,2-Fachen der Grenze, und Motor 2 hält den Arm mit
0,0162955 N m; fährt er bei r = 0,5 m mit 0,5 m/s aus, während er sich mit 1 rad/s dreht, beschleunigt der Wafer mit
(−0,5, 1,0) m/s²; ein Moment von 1 N m am Effektor dehnt die Bänder um β = 2,955083e-4 und γ = 5,819704e-4 rad
(K₁ = 1692, K₂ = 2303 N m/rad) und dreht ihn um 3,300103e-4 rad aus seiner radialen Linie; die starren Bänder tragen
dT₁ = −4,271710 N und dT₂ = 4,379926 N bei θ̈ = 10 rad/s² mit dem Handgelenk über der Säule; der Z-Motor hält 11,2276 kg
mit 0,1752378 N m; die Eigenformen gegen die von numpy (18,20 bis 186,45 Hz) und die Säule auf Spindel und Kupplung, von Hand 320,8907 Hz; der Halt auf Pads, Vakuum und Kante; ein
Trum wird über seine Vorspannung hinaus schlaff; der Standardzyklus besteht alle Prüfungen, und eine Reichweite, die mit
3 m/s² anläuft, lässt den Wafer rutschen.
Tests des Pneumatikzylinders (sim-components pneumatic.rs, sim-machines/tests/pneumatic.rs): p A bei 6 bar auf
beiden Seiten (482,5 und 414,7 N, Festo druckt 483 und 415); der gesperrte Durchfluss C p ρ0 nach ISO 6358 und das
elliptische Gesetz; die Geschwindigkeit mit Abluftdrossel C ρ0 R T0 / A2 (0,1443 m/s auf 1 %, die des ausgelieferten Z
0,2156 m/s auf 3 %); die Eigenfrequenz auf den Luftfedern adiabat (29,64 Hz) und isotherm (25,05 Hz); die Luft eines
Doppelhubs (1,1119 Normliter); die geschlossene Füllzeit, solange der Durchfluss gesperrt ist (2,555 ms); die Energie
eines geschlossenen Zylinders und die Enthalpiebilanz eines offenen; die Hubzeit auf 1 % beim halben Schritt; die
Prüfurteile cushion-energy und load-factor im ausgelieferten Zyklus; ein für den Schritt zu steifer Zylinder wird
abgelehnt. Die Datei besteht die Standard-Testreihe mit dem Zylinder in Ruhe.
Tests des Wicklers (machine-winder): die Standard-Testreihe (starr und elastisch, mit und ohne das Gewicht auf dem
Tänzer) und das Halten in Ruhe an beiden Enden des Wickels und bei einem Viertel. Nach 640 m hat der Aufwickler
110,503 mm Radius, der Abwickler 110,969 mm (8231,352 und 4904,800 rad gedreht); der Wickel fasst 1286,482 m. Die
Trägheit des Wickels bei 110,503 mm ist 0,1366427 kg m², voll 0,4485586 kg m², das Trägheitsverhältnis 10,4026 beim
vollen Wickel und 0,2319 am Kern. Das Moment des Bahnzugs durch die Übersetzung: −2,142857 und 0,642857 N m am Anfang des
Wickels, −0,507857 und 1,692857 N m an seinem Ende (die 79 N der Kennlinie). Das Moment, um die Bahn bei 640 m um 2 m/s²
zu beschleunigen: 1,7824107 N m am Aufwickler in Ruhe, 1,7818049 N m bei 2 m/s, −0,8150135 und −0,8144080 N m am
Abwickler, mit den 2,5 N der Tänzerwalze zwischen den Abschnitten; im starren Modell beschleunigen diese Momente die Bahn
mit genau 2 m/s² bei ruhendem Tänzer. Die verlustfreien Läufe der Testreihe laufen in der Mitte des Wickels, wo die Radien
gleich sind; am Anfang des Wickels wandert der Zug, den ihre festen Haltemomente halten, mit den auseinanderlaufenden
Radien vom Wickelzug weg, und die Dehnung, die die Bahn hinein- und hinausträgt (power.web_transport), ist das, um was
sich die Energie ändert. Der stationäre Zug eines Abschnitts bei 1 gegen 1,0005 m/s: EA (v2 / v1 − 1) =
40,000 N (die Abschnittsgleichung in erster Ordnung 39,980 N). Der Tänzer bei 120 N Last und auf 100 N gehaltenen Wickeln
steht 39,9948 mm tief (die Radien der Wickel 2,88 µm kleiner, nachdem sie die Bahn abgegeben haben). Der Tänzer schwingt
auf der Bahn mit 26,071 Hz, seine Walze mit 56,941 Hz. Was den Abwickler verlässt, kommt am Aufwickler an oder bleibt in
den Abschnitten, auf 1e-7 m über 3 m Lauf. Ohne den Tänzerregler wandert der Tänzer bei einem mit 100 N gewickelten und
mit 80 N gefahrenen Wickel um −0,24969 mm/s bei 2 m/s, mit ihm stellt sich die Korrektur auf 0,49938 mm/s ein. Die eigenen
Prüfurteile: das Trägheitsverhältnis 10,4026, die Drehzahl am Kern 311,11 rad/s, jedes schlägt fehl, wenn sein Grenzwert
knapp unter seinem Wert liegt. Ein Halt der Kategorie 2 und, in der Mitte des Wickels, einer der Kategorie 1 halten die
Bahn zwischen 30 und 250 N; ein Halt der Kategorie 1 nahe einem Ende des Wickels überlastet sie.
Grenzen
-
Ein Glied biegt sich in einer Eigenform je Richtung (in der Ebene seines Gelenks; quer dazu und in Torsion mit
link_bending.directions); miteffects.link_bending_reactionwirkt die Biegung auf die Gelenke zurück, ohne Lagranges Glieder zweiter Ordnung in der kleinen Biegung. -
Die Steifigkeit einer Spindel folgt der Mutter nur mit
effects.screw_stiffness_with_position(in den mitgelieferten Konfigurationen an, außer in der des gemessenen Kugelgewindetriebs); aus, wird sie für den ganzen Hub an der weichsten Stellung der Mutter genommen. -
Der Roboter auf seiner Schiene: Der Schub der Zahnstange wird durch den Ursprung des Schlittens genommen (kein eigenes Moment auf die Wagen), die Kreiselmomente der Motorläufer des Arms fehlen in der Führungslast, und die Wagen sind starre Lager (keine Steifigkeit der Führung: der Schlitten kippt nicht auf ihnen); die Führungslast wird dem zeitoptimalen Plan nicht mitgeteilt (
rigid_guide_loads), der nur die Grenzen der Motoren und Getriebe einhält. -
Ein Pneumatikzylinder ist keine Werkzeugachse und wirkt nicht auf die Achse zurück, die ihn trägt; sein Ventil schaltet auf und zu (kein Proportionalventil, kein servopneumatischer Lageregelkreis); ein Schlauch ist ein Durchflusselement, dessen Volumen in die Totvolumen geht; Festo druckt für die VUVG-Ventile kein C und b nach ISO 6358, daher sind die des ausgelieferten Ventils Schätzungen.
-
Ein vom Abtrieb zurückgetriebenes Schneckengetriebe verliert wie jedes Getriebe (1 / Wirkungsgrad) und hemmt nie selbst.
-
Keine Unwucht am Rundtisch, keine Lebensdauerformel der Zahnstange (keine veröffentlicht), keine Prüfung des Kreuzrollenlagers.
-
Das Förderband aus
[conveyor]kann noch nicht Leitwert einer Kurvenscheibe sein (der Leitwert ist ein eigener, mit dem Geschwindigkeits- und Rampenmodell des Bands); eine neue Leitgeschwindigkeit beginnt ihre Rampe bei der Geschwindigkeit des Leitwerts ohne seine Beschleunigung (ein Sprung der Beschleunigung, wo sie während einer Rampe kommt); der Stößel der Kurvenscheibe ist ein geradegeführter (kein Schwinghebel); die Presskraft der Schubkurbel wirkt nur beim Ausfahren (keine Rückfederung), die der Kniehebelpresse auch im Stillstand und klingt ab, wenn der Stößel steigt (die Auffederung des Gestells ist eine masselose Feder, die Hebel sind starr), die Schnittkraft von Messer und Säge nur vorwärts. -
Der Linear-Delta (
delta-linear, drei Riemenachsen an Säulen, die sich neigen können,geometry.column_incline_deg) ist eine Parallelkinematik und keine dieser Maschinen; siehe die Modellreferenz. -
Hexapod: Das Drehen der Beine um ihre Basisgelenke und die Trägheit der Nutzlast fehlen; eine Steifigkeit je Bein (die der Spindel an der Mutter,
effects.screw_stiffness_with_position, mitgeliefert an). Seine Eigenfrequenzen werden bei gehaltenen Motoren angegeben wie die der Roboter (sim-cli modes hexapod). -
Tripod: Das Schwenken der Beine um ihre Basisgelenke fehlt wie am Hexapod; keine Reibung und kein Spiel in Dreh- und Kugelgelenken; eine Steifigkeit je Bein (die der Spindel an der Mutter, wie am Hexapod); die Konvergenz der Vorwärtskinematik ist für den ausgelieferten Quader gezeigt (eine Konfiguration mit anderer Geometrie oder anderem Quader sollte die Prüfung jenes Tests wiederholen).
-
Wickler: beide Wickel haben denselben Kern, vollen Radius, Motor und dasselbe Getriebe; die Masse der Bahn in den Abschnitten, die Änderung der Abschnittslängen mit den Radien der Wickel, die Querkontraktion der Bahn und die Nachgiebigkeit des Wickels selbst (gleitende Lagen, Teleskopieren) fehlen; der Radius wird aus der gewickelten Länge berechnet (ein gemessener Durchmesser oder das Drehzahlverhältnis,
rewind.radius_from_speeds, ist nur ein Signal); die Reibung der Wellendichtungen folgt der Temperatur der Getriebe nicht (ihr Wirkungsgrad und ihr Leerlaufmoment schon); der ausgelieferte Zyklus fährt 3 m der 1286 m des Wickels an seinem Anfang, das andere Ende des Wickels wird über die eigenen Prüfurteile beurteilt, nicht gefahren; Überschleifen hat auf der einen, umkehrenden Achse nichts zu überschleifen; der Antrieb passt seinen Drehzahlregler nicht an die Trägheit des Wickels an (45-fach vom Kern bis voll), darum sind die ausgelieferten Verstärkungen die des ausgelieferten Abschnitts ([drive.unwind]eine eigene), und ein Lauf nahe dem Ende des Wickels braucht sie vertauscht. -
Seilroboter: Die Trägheit der Seile fehlt (ein Drittel der Masse jedes Seils bewegt sich mit seinem Anlenkpunkt, 0,5 % der Masse der räumlichen Plattform), ebenso das mit der Lage wandernde Gewicht des Durchhangs (5e-5 N); der kraftfähige Arbeitsraum der Lagen ist der statische (die Beschleunigungen eines Zyklus hält die zeitoptimale Planung im Band, in den Achsgrenzen beurteilen sie die Seilkraftprüfungen); nahe am Rand des Arbeitsraums rechnet der Dehnungsausgleich der Motoren mit den Kräften der geschlossenen Form, wo die Verteilung ein Seil an einer Grenze hält.
Python-Modul
kinematics_sim steuert den Simulator aus Python: die Maschinen, ihre Konfigurationen, Simulationsläufe, die
Zyklusanalyse, die Prüfurteile mit ihren Fehlerbändern, die Auslegung aus dem Katalog, den Zyklusoptimierer, den
Frequenzgang, das Anpassen und Identifizieren aus gemessenen Traces, die Regelkreisanalysen (Sprung, Bode, Abstimmung,
Stabilitätsreserven, Eigenformen), die Empfindlichkeit, das Nachfahren von Traces, den Vergleich eines Effekts, den
Auslegungsbericht, die Prüfung von Datensätzen und den FMU-Export. Jeder Befehl von sim-cli ist eine Funktion (list
heißt machines; was die Funktionen auslassen, steht am Ende), und sie liefern dieselben Zahlen (die Tests in crates/sim-py/tests vergleichen sie). Ergebnisse
kommen als NumPy-Arrays und als Dicts gleich langer Spalten; pandas.DataFrame(ergebnis) nimmt jede Tabelle so, wie sie ist.
Quelle: crates/sim-py (PyO3 0.30.1, gebaut mit maturin 1.16.0). Das Wheel ist abi3: ein Wheel je Plattform dient jedem
CPython ab 3.10. Die Typ-Stubs und die Markierung py.typed liegen im Wheel. Das Extra kinematics-sim[mcp] bringt
einen MCP-Server für LLM-Clients (MCP-Server, englisch).
Installieren
pip install kinematics-sim
Auf PyPI liegen die Wheels jeder Release für Windows, Linux (x86-64) und macOS (Apple Silicon); das Extra mcp
gibt es dort ab 1.1.0. Für den Stand des Repositorys wird das Wheel dort gebaut und installiert:
pip install maturin==1.16.0
cd crates/sim-py
maturin build --release --out ../../target/wheels
pip install ../../target/wheels/kinematics_sim-*.whl
maturin develop --release installiert es stattdessen in die aktive virtuelle Umgebung. Für beides ist eine
Rust-Toolchain (1.98.1) nötig. Die CI baut das Wheel für Windows und Linux und hebt es als Artefakt auf.
Benutzen
import kinematics_sim as ks
import pandas as pd
ks.machines("de") # [{"id": "t-gantry", "name": ...}, ...]
cfg = ks.Config("t-gantry") # die Standardkonfiguration; Config("t-gantry", path="meine.toml") oder text="..."
cfg["mass.payload_kg"] # 2.0
cfg["mass.payload_kg"] = 3.5 # der Wert unter einem Punkt-Pfad
cfg.set('parts.motor = "1FK2104-5AK"') # genau wie sim-cli --set: der Wert in TOML-Schreibweise
cfg.to_toml() # die Konfiguration als TOML
lauf = pd.DataFrame(ks.run(cfg, cycle=True, time=2.0)) # jedes Signal als Spalte, "time" zuerst
pd.DataFrame(ks.analyze(cfg)) # eine Zeile je Motor, die Spalten von sim-cli analyze
pd.DataFrame(ks.verdicts(cfg, bands=True)) # eine Zeile je Prüfung und Motor, mit low, high, worst_ok
pd.DataFrame(ks.sizing(cfg, series="1FK2")) # jeder Katalogmotor auf diesem Zyklus, bestandene zuerst
| Funktion | was sie tut | auf der Kommandozeile |
|---|---|---|
machines(lang="en") | die Maschinen der Registrierung, mit Namen auf Englisch oder Deutsch | sim-cli list |
Config(machine, text=None, path=None) | die Standardkonfiguration einer Maschine, eine Konfiguration als TOML-Text oder eine Konfigurationsdatei | --config DATEI |
Config(machine_file=DATEI, text=None, path=None) | dasselbe für eine Maschine aus einer Maschinendatei (Maschinendateien); ein Fehler in der Datei nennt Datei und Zeile | --machine-file DATEI |
cfg[pfad] = wert, cfg.set("pfad = wert") | ein Wert obendrauf. Ein unter [parts] genanntes Teil (cfg["parts.motor"] = "1FK2104-5AK") wirkt wie --motor und die anderen Teil-Optionen: alle genannten Teile kommen zusammen aus dem Katalog, und jeder andere gesetzte Wert bleibt über ihren, gleich in welcher Reihenfolge beide gesetzt wurden | --set, --motor und die anderen Teil-Optionen |
signals(cfg) | {"id": [...], "unit": [...]}, die Signale in der Reihenfolge von run | der Kopf von sim-cli run |
label(cfg, key, lang="en") | der Text eines Meldungsschlüssels für die Maschine, z. B. "check-motor-thermal" (was ein Urteil prüft, mit Einheit); ein Schlüssel ohne Text kommt unverändert zurück | die Texte von sim-app und dem Bericht |
run(cfg, cycle=, move_to=, path=, trajectory=, time_optimal=, time=2.0, every=16, disable_at=) | {Signal-ID: Array} über time Sekunden, alle every Grundschritte abgetastet | sim-cli run |
analyze(cfg, path=, trajectory=, time_optimal=, points=False) | die Last je Motor über einen Durchlauf des Zyklus oder über eine Bahn; points=True fügt je Motor die Arbeitspunkte als (n, 2)-Array aus Drehzahl (rad/s) und Moment (N m) hinzu | sim-cli analyze |
verdicts(cfg, bands=False, samples=None, seed=1, worst=False, path=None, path_file=None, time_optimal=False) | die Prüfungen; mit bands ihr kleinster und größter Wert über die [bounds] und ob der ungünstigste Fall besteht; mit samples N Läufe zwischen den Grenzen und der Anteil, der bestand; mit bands=True, worst=True die ungünstigste Ecke je Prüfung: worst, limit, worst_ok, at_high_bound und at_low_bound (Listen von Parametern) und runs; mit path (der Text einer Bahndatei oder Roboter-CSV, oder mit path_file ein Programm nach der Endung dieses Namens) wird statt des Zyklus der Lauf der Bahn beurteilt | sim-cli verdicts [--bands] [--samples N --seed S] [--worst] [--path DATEI [--time-optimal]] |
sizing(cfg, supply=None, vendor=None, series="", gearboxes=None, axes=False, motor_id=None, drives="paired", rank_by="cost", duties=None, path=None, path_file=None, time_optimal=False) | jeder Katalogmotor auf dem Zyklus der Konfiguration, bestandene und billigste zuerst; supply eine Netzspannung des Katalogs (ohne Angabe "400v"), vendor die eines Herstellers oder "all" aller, mit den Spalten vendor und supply; drives "paired", "neighbours" oder "all", rank_by wie --rank-by ("energy", "cost=1,energy=0.5", …), duties ein Lastmix als Liste von (Config, Gewicht), die erste die Konfiguration, auf der gesucht wird. Die Spalten der breiten Tabelle: rank, front, cycle_s, energy_j, thermal_utilisation, drive_current_utilisation, following_error_m, settling_error_m, inertia_ratio, failing und estimated (Listen), u_<prüfung> je Prüfung (NaN, wo ein Kandidat sie nicht hat); mit path fährt jeder Kandidat statt des Zyklus die Bahn | sim-cli search [--drives] [--rank-by] [--config --config --weights] [--path DATEI [--time-optimal]] |
sweep(cfg, motor=0, from_hz=5.0, to_hz=500.0, count=120, amplitude=None) | der Frequenzgang vom Moment eines Motors zu seiner Drehzahl: frequency_hz, gain_rad_s_per_nm, phase_deg | sim-cli sweep |
optimise(cfg, runs=40, nominal=False, worst=False, pareto=False, path=None, path_file=None, time_optimal=False) | ein kürzerer Zyklus, der jedes Prüfurteil besteht: cycle_s, dwell_error_peak_m und dwell_angle_error_peak_rad als (vorher, nachher), runs, changes (Spalten setting, before, after), robust (was die Bänder kosten, oder None), mit pareto die Front als Spalten; mit path wird statt der Zykluszeit die Zeit der Bahn verkürzt | sim-cli optimise [--path DATEI [--time-optimal]] |
fit(cfg, trace_file=, map_file=, stiffness=False, stiffness_key=, sweep_file=, sweep_motor=0, amplitude=) | was ein gemessener Trace oder Frequenzgang über die Konfiguration sagt: quantity, of, config, fitted, standard_error (NaN, wo die Kommandozeile die Zelle leer lässt), advice, was zu ändern ist, und errors (siehe unten) | sim-cli fit |
identify(trace_file=, map_file=, config=, motor=0, from_hz=, to_hz=, step_from=, step_to=, motor_inertia=, sweep_file=) | der Antriebsstrang eines Motors aus seinem eigenen Trace: quantity, of, value, standard_error, ci95_low, ci95_high, notes (was der Trace nicht sagen konnte), overlay (gemessene und modellierte Signale mit time) und errors | sim-cli identify [--overlay] |
step(cfg, axis_index=0, size=0.001, time=0.5) | die Antwort einer Achse auf einen Sollwertsprung: time_s, setpoint, response sowie rise_time_s, overshoot, settling_time_s | sim-cli step |
bode(cfg, axis_index=0, from_hz=1.0, to_hz=200.0, count=40, amplitude=0.0005) | der Frequenzgang des geschlossenen Lagekreises einer Achse: frequency_hz, gain, gain_db, phase_deg | sim-cli bode |
tuning(cfg, size=0.001, amplitude=0.0005) | je Achse rise_time_s, overshoot, settling_time_s, bandwidth_hz (NaN, wo die Antwort bis 200 Hz über -3 dB bleibt) | sim-cli tuning |
margins(cfg, bands=False) | je Lauf und Motor crossover_hz, phase_margin_deg, gain_margin_db, peak_sensitivity, peak_frequency_hz, ok des Drehzahlreglers | sim-cli margins [--bands] |
modes(cfg, axis_index=0, points=21) | die Eigenformen über den Hub einer Achse: position, mode<i>_hz, mode<i>_damping (NaN, wo eine Stelle keine hat) | sim-cli modes |
sensitivity(cfg, delta=0.2, groups=None) | jeder Parameter an seinem unteren und oberen Wert, stärkster zuerst: parameter, value, low, high, die relativen Änderungen von Spitzen- und Effektivmoment und Zykluszeit, die kleinste Riemenspannung | sim-cli sensitivity [--group G] |
global_sensitivity(cfg, method="morris", samples=None, seed=1, groups=None, results=None) | alle Werte aus [bounds] zugleich, je Ergebnis nach Einfluss geordnet: result, rank, parameter und mu_star, mu, sigma (Morris) oder first, first_low, first_high, total, total_low, total_high (Sobol) | sim-cli sensitivity --method morris|sobol |
replay(cfg, trace_file=, map_file=None) | die Sollwerte eines Traces durch den Simulator: je Motor Moment und Schleppfehler auseinander (Effektivwert, Spitze) und overlay, gemessen und simuliert nebeneinander | sim-cli replay [--out DATEI] |
compare(cfg, effect=, signals=None) | der Zyklus mit effects.<effect> an und aus: time, <id>.on, <id>.off und differences (signal, unit, peak_difference, rms_difference) | sim-cli compare [--differences DATEI] |
report(cfg, path, bands=False, lang="en") | der Auslegungsbericht als PDF (ein Pfad auf .pdf) oder HTML; gibt zurück, ob jede Prüfung bestand | sim-cli report |
check_dataset(path) | was einen Datensatz-Ordner vom Veröffentlichen abhält, ein Text je Problem; leer: bereit | sim-cli check-dataset |
fmu(cfg, path, binaries=[...], fmi=2, lang="en") | die Maschine als FMU nach FMI 2.0 oder 3.0 (FMI) mit den genannten sim-fmi-Binärdateien (cargo build -p sim-fmi --release baut die dieser Plattform) | sim-cli fmu [--binary DATEI] |
path und trajectory nehmen den Text einer Bahn- oder Trajektoriendatei (Formate: sim_components::path), keinen
Dateinamen: ks.analyze(cfg, path=open("pick.path").read()). Eine abgelehnte Konfiguration, ein abgelehnter Befehl oder
eine abgelehnte Bahn oder ein abgelehnter Trace löst ValueError mit der Meldung des Simulators auf Englisch aus; eine
unbekannte Maschine oder ein mit cfg[pfad] gelesener unbekannter Schlüssel KeyError; eine Ganzzahl über 64 Bit, mit
cfg[pfad] = wert gesetzt, OverflowError (die Ganzzahlen von TOML haben 64 Bit; vor dem 14. November 2026 wurde sie
stillschweigend eine Gleitkommazahl). trace_file, map_file und sweep_file nehmen Dateinamen, wie die
Kommandozeile. run rechnet höchstens 1e8 Grundschritte und tastet höchstens 2,5e8 Werte ab (2 GB Arrays); ein längerer
Lauf löst sofort ValueError aus, statt zu hängen oder den Speicher zu erschöpfen: every erhöhen oder in Stücken
rechnen.
Eine Änderung der Konfiguration wird geprüft wie eine Konfigurationsdatei: ein Schlüssel, den die Standardkonfiguration der Maschine nicht hat, wird mit Namen abgelehnt.
fit und identify rechnen mehrere Anpassungen, und eine kann nichts finden (ein gemessener Frequenzgang ohne Resonanz,
ein Trace ohne Nachschwingen nach step_from, kein Zweimassenmodell). Die Kommandozeile schreibt, was die anderen
fanden, und scheitert dann; diese beiden Funktionen geben zurück, was die anderen fanden, und führen jede Anpassung ohne
Ergebnis in ergebnis["errors"] auf (ihre Zeilen fehlen in der Tabelle). Prüfen Sie die Liste: leer heißt, jede
verlangte Anpassung ist da. Was jede Anpassung am Start hindert (eine abgelehnte Konfiguration, eine unlesbare Trace-
oder Frequenzgangdatei), löst weiter ValueError aus.
Eigenen Regler prüfen
ks.Sim(cfg) ist eine Simulation, die man selbst weiterschaltet, sodass ein in Python geschriebener Regler den Kreis
über die simulierte Mechanik schließt:
sim = ks.Sim(cfg) # in Ruhe in der Startpose, Antriebe an, jeder Motor in Lageregelung
out = sim.step(torque=[0.3]) # ein Takt (sim.cycle = profile.setpoint_interval_s) in Momentenregelung, N m je Motor
out = sim.step(velocity=[20.0], time=0.001) # 1 ms in Drehzahlregelung, rad/s je Motor
out = sim.step(setpoint=[0.5]) # Lageregelung: ein Sollwert je Werkzeugachse, interpoliert wie von einer SPS
out["motor.a.angle"], out["motor.a.speed"], out["motor.a.current"] # jedes Signal am Ende des Schritts
sim.signals(), sim.time, sim.dt, sim.modes # ["torque"], ...
sim.analyze() # die Spalten von ks.analyze über den Lauf seit dem Start oder reset()
sim.verdicts() # die Urteile über diesen Lauf: check, motor, value, limit, ok
sim.stop(1) # ein Stopp der Kategorie 1 (0: Moment aus, 2: bremsen und halten); step() führt ihn aus
sim.enable() # die Antriebe wieder ein
sim.reset()
Die Betriebsarten sind die eines Servoantriebs: In Momentenregelung ersetzt das eigene Moment den Ausgang des
Drehzahlreglers, in Drehzahlregelung die eigene Drehzahl den des Lagereglers; in beiden durchläuft es weiter
Momentenfilter, Momentengrenze und Totzeit des Antriebs, den Stromregler, die Wicklung und den Zwischenkreis. Ein Moment
über der Grenze wird also begrenzt, und Strom, Spannung und Wicklungstemperatur sind wie echt. Ein Schritt ohne
torque, velocity und setpoint behält Betriebsarten und Sollwerte. Ein Wechsel lässt das Moment nicht springen, wo
die Regler des Antriebs übernehmen (ihr PI beginnt beim zuletzt verlangten Moment); ein Sollwert oder ein anderer Befehl
an die Steuerung wird abgelehnt, solange ein Antrieb nicht in Lageregelung ist, und ein Sollwert setzt jeden Antrieb
wieder in Lageregelung. FMI-Export hat die Einzelheiten; sie sind
dieselben.
analyze() und verdicts() beurteilen den Lauf des eigenen Reglers, wie ks.analyze und ks.verdicts den
eingebauten Antrieb im Zyklus beurteilen: Spitzen- und Effektivmoment, thermische Auslastung, Wicklungserwärmung,
Energie und Zwischenkreis, die Prüfungen von Getriebe und Riemen. “cycle_s” ist die gelaufene Zeit. Bahn- und
Folgefehler dort sind gegen den Plan der Steuerung gemessen, der stillsteht, während man selbst regelt: Das Folgen der
eigenen Sollwerte selbst beurteilen.
crates/sim-py/examples/own_controller.py ist ein ausgearbeitetes Beispiel: Es misst das Trägheitsmoment am Motor mit
zwei Momenten (1,344e-4 kg m^2 an der Riemenachse, von Hand 6 kg (0,02/5)^2 + 0,26 kg Riemen (0,02/5)^2 + 1e-4/25 +
0,3e-4), legt einen PD auf den Motorwinkel für 20 Hz aus, rechnet ihn mit 1 kHz auf der Fahrt, die die eingebaute
Kaskade fährt, und gibt Last und nicht bestandene Prüfungen beider Läufe aus. Der PD braucht etwa das Effektivmoment der
Kaskade (0,172 gegen 0,174 N m) und bleibt ohne Integrator 0,05 rad vor dem Ziel an der Führungsreibung stehen.
Parameterstudien
Jeder lange Aufruf gibt Pythons globale Interpretersperre frei, so dass ein Thread-Pool mehrere auf allen Prozessoren rechnet (Beispiel in der englischen Fassung, python.md).
crates/sim-py/examples/parameter_sweep.ipynb ist ein durchgerechnetes Beispiel: die Nutzlast des T-Portals von 0,5 kg
bis 8 kg, Spitzen- und Effektivmoment, thermische Auslastung und die Prüfurteile je Masse, und die Signale eines Laufs
als DataFrame. Die Testsuite führt es von oben bis unten aus.
Einen langen Aufruf abbrechen
Ein Job zählt die Läufe der Analysen, die in ihm aufgerufen werden, und stoppt sie von einem anderen Thread aus (der
MCP-Server tut das, wenn ein Aufruf die Zeit überschreitet). job.cancel() startet keinen neuen Lauf; job.run löst
kinematics_sim.Cancelled (eine Exception) aus, sobald die laufenden Läufe zu Ende sind (Beispiel in der englischen
Fassung, python.md). job.done und job.total geben die fertigen und die bisher
geplanten Läufe an (spätere Stapel kommen dazu). Jede Funktion, die der Aufruf in diesem Thread aufruft, gehört zum Job;
löst sie etwas anderes aus, bleibt ihr Fehler. Ein Job, der vor run abgebrochen wird, beendet den ersten Stapel
sofort. Aufrufe ohne Job laufen wie bisher zu Ende.
Tests
cargo build -p sim-cli -p sim-fmi --release # die Tests vergleichen damit
pip install "pytest==9.2.0" pandas matplotlib nbformat nbclient ipykernel
pytest crates/sim-py/tests
Die Suite prüft die Maschinenliste, das Lesen, Setzen und Ablehnen von Konfigurationswerten, den TOML-Rundweg, run
gegen sim-cli run (gleiche Abtastwerte auf 1e-8), analyze und verdicts gegen die Kommandozeile, dass eine schwerere
Nutzlast mehr Moment braucht, die Reihenfolge der Auslegungstabelle, dass zwei Threads dasselbe Ergebnis bekommen, und
das Notebook. 11 Tests bestehen unter Windows mit CPython 3.14 (13. November 2026). Hinzugekommen am 14. November 2026:
ein Lauf einer Maschinendatei gegen sim-cli run --machine-file, ihre Ablehnungen, sweep, optimise, fit und
identify gegen die Kommandozeile auf einem Durchlauf des Zyklus, der Überlauf von 2^63 (eins mehr als die größte
64-Bit-Ganzzahl) und die Grenze für run(time=1e12); diese 10 bestehen unter Windows mit CPython 3.14.
Später am selben Tag hinzugekommen, jeweils gegen die Kommandozeile auf einer mitgelieferten Konfiguration: step,
bode, tuning, margins, modes, sensitivity, replay (mit Overlay), compare (mit Differenzen), report
(dasselbe HTML), check_dataset, fmu (dieselben Bytes der FMU, FMI 2.0 und 3.0), verdicts an der ungünstigsten
Ecke, sizing eines Motors einer Maschinendatei und nach Hersteller sowie fit und identify mit einem Frequenzgang
ohne Resonanz (dieselben Zeilen, die die Kommandozeile vor dem Scheitern schreibt, und der Fehler in errors); diese 13
bestehen unter Windows mit CPython 3.14 in 19 Minuten, die meiste Zeit für die Suche der ungünstigsten Ecke und die
Auslegung.
Nicht abgedeckt
Was die Kommandozeile neben ihrer Tabelle auf den Fehlerkanal schreibt (der Abstand einer geplanten Bahn zu Hindernissen,
der thermische Start des gemessenen Durchlaufs, die Picks des Förderbands, Zeit und Zahl der Suche, die Abweichung einer
geplanten Bahn), hat keinen Platz in den Ergebnissen. Die Tabellen --breakdown und --budget von analyze, das TOML des
neuen Zyklus von optimise und --catalog ORDNER (ein anderer Katalogordner) haben kein Argument. path= nimmt nur den
Text einer Bahndatei, kein G-Code-, KRL-, RAPID- oder Roboter-CSV-Programm wie --path DATEI. fmu braucht die genannten
sim-fmi-Binärdateien. Meldungen gibt es nur auf Englisch.
Der Simulator im Browser (WebAssembly): 3D-Ansicht, Verläufe und Auslegungsprüfung
Kern, Maschinen, Maschinendateien, Katalog und Analyse lassen sich für wasm32-unknown-unknown bauen. crates/sim-wasm
stellt sie über einige C-ABI-Funktionen bereit, und crates/sim-wasm/web/index.html ist eine statische Seite, die das
Modul lädt: eine Maschine wählen (eingebaut, eine der Maschinendateien aus machines/ oder eine TOML- oder JSON-Maschinendatei,
geöffnet oder in den Editor eingefügt), ihre Konfiguration bearbeiten, ihren Zyklus oder einen Pfad fahren, und die
Seite zeigt die Maschine in 3D mit ihren Hindernissen und der Spur des Werkzeugs, Zeitverläufe von Moment, Drehzahl und
Schleppfehler je Motor und eine Auslegungsprüfung mit jedem Prüfurteil, jeder Spalte von sim-cli analyze und den
Arbeitspunkten über der Drehmoment-Drehzahl-Kennlinie. Dazu ein Frequenzgang und eine Anpassung von Massen und Reibung
an eine gemessene Aufzeichnung. Nichts verlässt den Browser; ein Server muss nur zwei Dateien ausliefern. Die Seite ist
deutsch und englisch (Umschalter oben; zuerst die Sprache des Browsers).
Live-Seite: https://sparkz400.github.io/KinematicsSimulation/, bei jedem Push auf main vom Workflow
pages.yml gebaut.
Bauen und öffnen
rustup target add wasm32-unknown-unknown
cargo build -p sim-wasm --profile wasm --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/wasm/sim_wasm.wasm crates/sim-wasm/web/
python -m http.server 8765 -d crates/sim-wasm/web
Dann http://localhost:8765/ öffnen. Browser laden WebAssembly nur über HTTP, nicht aus einer file://-Seite; jeder
statische Dateiserver genügt. Zum Veröffentlichen index.html und sim_wasm.wasm auf einen beliebigen statischen Host
kopieren. Der CI-Job wasm baut beides und hebt es als Artefakt sizing-page auf; pages.yml baut es ebenso und
veröffentlicht es auf GitHub Pages.
Das Profil wasm (Wurzel-Cargo.toml) ist das Release-Profil mit Link-Time-Optimierung und einer Codegen-Einheit: am
T-Portal etwa 5 % schneller und 10 % kleiner als --release (14. November 2026). Kein wasm-bindgen, kein wasm-opt und
keine JavaScript-Werkzeuge; cargo ist das einzige Bauwerkzeug. Das Modul hat 2.887.035 Byte (14. November 2026, mit
den eingebauten Maschinendateien).
Geschwindigkeit
Das Modul läuft in zwei Web Workern, damit die Seite bedienbar bleibt: einer rechnet die 3D-Ansicht, der andere die Auslegungsprüfung, den Frequenzgang und die Anpassung, die vorher die Seite sekundenlang blockierten. Jeder Worker hat sein eigenes Modul und damit seine eigenen Maschinendateien; die Seite gibt eine geöffnete Datei beiden. Der Worker der Ansicht beantwortet eine Anfrage nach der anderen mit der ganzen seit der letzten geschuldeten Simulationszeit (höchstens 0,25 s, sodass eine für Echtzeit zu langsame Maschine zurückfällt, statt Arbeit aufzustauen), und gibt das Bild als übertragene Kopie zurück.
Gemessen am 14. November 2026 auf dem Entwicklungsrechner, während andere Builds liefen: Die Standardkonfiguration des T-Portals rechnet 10 s in 0,70 s Prozessorzeit im Modul (Node 24, dasselbe wasm), etwa 14-fache Echtzeit mit den Proben der Verläufe; das Modul aus dem Release-Profil ohne LTO brauchte 0,86 bis 1,05 s. Im kopflosen Chrome (Software-WebGL) lief die Seite das T-Portal mit 1,01-facher Echtzeit, die Auslegungsprüfung daneben brauchte 4,0 s. Das frühere Drittel der Echtzeit ließ sich nicht nachstellen: Das Modul selbst war auch damals etwa zehnmal schneller als Echtzeit; was die Seite im Hauptthread darum tat (die Prüfung blockierte ihn, jedes Bild wartete auf den Schritt), liegt jetzt in Workern.
Anfragen
Die Seite schreibt eine Anfrage in den Speicher aus alloc, ruft call(kind, ptr, len) und liest die Antwort, JSON, aus
out_ptr() und out_len(); call gibt 0 für ein Ergebnis zurück und 1 für {"error": "..."} mit der Meldung des
Simulators.
Eine Anfrage hat Zeilen: die Maschine, die Sprache (en, de) mit Optionen dahinter, durch Leerzeichen getrennt, dann
die Konfiguration als TOML (leer: die Standardkonfiguration), und nach einer Zeile --- der Text, den eine Option nennt
(ein Pfad, eine Aufzeichnung). Eine Maschine ist eine eingebaute ID (t-gantry), eine Maschinendatei aus machines/ im
Modul (file:corexy.toml) oder eine von der Seite übergebene (upload:<Dateiname>).
| Anfrage | Zeilen | Antwort (JSON) |
|---|---|---|
| 0 | Sprache | jede Maschine: [{"id", "name", "file"}], die eingebauten, dann die Maschinendateien |
| 1 | Maschine | {"config"}: die Standardkonfiguration (einer Maschinendatei: die Datei) |
| 2 | Maschine, Sprache und Optionen, Konfiguration | die Auslegungsprüfung: machine, cycle_s, tripped, warnings, die maschinenweiten Spalten von sim-cli analyze, motors (jede Spalte je Motor von sim-cli analyze unter ihrem Namen, points die Arbeitspunkte, curve der Umriss der Spitzenkennlinie, s1 der Dauerbetrieb), verdicts |
| 3 | Maschine, Sprache und Optionen, Konfiguration | startet die 3D-Ansicht: {"dt_s", "centre", "radius", "motors", "sample"} |
| 4 | Dateiname, Sprache, Maschinendatei (TOML, oder JSON nach der Endung .json des Namens) | {"id", "name", "config"}: die Datei geprüft wie von sim-cli --machine-file (ein Fehler nennt Datei und Zeile; eine JSON-Datei wird zuerst in TOML gewandelt wie von sim_machines::load_file) |
| 5 | Maschine, Sprache und Optionen, Konfiguration | {"motor", "amplitude_nm", "points": [[Frequenz Hz, Verstärkung rad/s je N m, Phase °]]} wie sim-cli sweep |
| 6 | Maschine, Sprache und Optionen, Konfiguration, ---, Aufzeichnung, eine Zeile %%%, Zuordnungsdatei, eine Zeile %%%, gemessener Frequenzgang (jedes darf leer sein, nicht Aufzeichnung und Frequenzgang zugleich) | {"rows": [[Größe, von, Konfiguration, angepasst, Standardfehler]], "advice", "units"} wie sim-cli fit: die Aufzeichnung in den Spalten des Simulators oder über die Zuordnungsdatei (--map); Option stiffness (stiffness-key= für einen anderen Schlüssel als den der Riemen) wie --stiffness; der Frequenzgang mit motor=K, amplitude=NM wie --sweep |
| 7 | Sprache, dann Übersetzungsschlüssel, einer je Zeile | {Schlüssel: Text}: die Texte der Seite (crates/sim-wasm/i18n/*.ftl) und diese Schlüssel aus den Übersetzungen des Simulators |
Optionen: path fährt den Pfad nach --- (Format: sim_components::path, die Datei von sim-cli --path) ab der
Startpose statt des Zyklus, in den Achsgrenzen oder mit time-optimal so schnell, wie die Motoren können (Anfragen 2
und 3); Anfrage 2 warnt wie sim-cli, wo der geplante Pfad von den gegebenen Geraden und Bögen abweicht. motor=K,
from=HZ, to=HZ, count=N, amplitude=NM stellen den Frequenzgang wie bei sim-cli sweep ein (die Seite fragt 40
Punkte statt 120 an: jeder ist ein eigener Lauf).
Was gerechnet wird
Dieselbe Rechnung wie sim-cli verdicts und sim-cli analyze für den Zyklus der Konfiguration oder den Pfad, mit jeder
Spalte, die sim-cli analyze schreibt (Gehäuseerwärmung, Überlast des Antriebs, Effektiv- und Spitzenstrom, Energien,
Zwischenkreis, Lebensdauern, Riemenkraft, Bahn- und Folgefehler, Änderung beim Warmstart). Was die Seite nicht gibt:
--breakdown und --budget von analyze (die Effektansichten; die Seite rechnet ohne sie, wie verdicts), die
Fehlerbänder von verdicts --bands und die Katalogsuche.
Die Zahlen stimmen mit denen der Kommandozeile auf vier bis fünf gültige Stellen überein, nicht bitgenau: WebAssembly
rechnet sin, exp und Ähnliches mit Rusts libm, der native Build mit der Mathematikbibliothek der Plattform. Ein
gemessenes Beispiel: 0,4600761 N m Spitzenmoment im Browser gegen 0,4601061 N m aus sim-cli. Ein Urteil nahe an seiner
Grenze kann deshalb anders ausfallen. Unter [parts] genannte Teile kommen aus dem eingebauten Katalog.
Die Arbeitspunkte sind die der Analyse (Motordrehzahl und -moment, einmal je Millisekunde), über dem Umriss von
DriveParams::torque_curve (Spitzenmoment von Motor und Antrieb in beide Richtungen, an den Ecken und 40 Drehzahlen
dazwischen) und dem S1-Kasten (Bemessungsmoment bis zur Bemessungsdrehzahl), wie in der App.
3D-Ansicht, Verläufe und Spur
Anfrage 3 stellt die Maschine ruhend in ihre Startpose, startet Zyklus oder Pfad und antwortet Grundschritt, Kugel um die
Szene für die Kamera, die Motoren und die Zahlen je Probe. Dann rechnet frame(seconds) die Simulation um so viele
Sekunden weiter (ganze Grundschritte) und gibt einen Zeiger auf frame_len() 32-Bit-Gleitkommazahlen zurück:
| Zahlen | was |
|---|---|
| 8, der Kopf | Simulationszeit (s), Zykluszeit (s; NaN vor dem ersten ganzen Durchlauf), x, y, z des Werkzeugs (m; NaN ohne Abbildung), Anzahl der Teile, der Hindernisse, der Proben |
| 20 je Teil | das Netz (0: Würfel der Kantenlänge 1, 1: Zylinder mit Durchmesser und Länge 1 entlang y), die 4×4-Matrix (spaltenweise, Szenenkoordinaten, z nach oben), die Farbe |
| 20 je Hindernis | wie ein Teil, Netz 2: der Würfel durchscheinend, auf den Quader des Hindernisses gestreckt; grau, rot, solange ein Teil es berührt |
sample je Probe | eine je Millisekunde seit dem letzten Bild: Zeit, x, y, z des Werkzeugs, sein Abstand von der Planposition (m), dann je Motor kleinster und größter Wert von Moment, Momentensollwert (N m), Drehzahl, Drehzahlsollwert (rad/s) und Schleppfehler (rad) über die Grundschritte dieser Millisekunde |
frame lehnt eine Zeit ab, die nicht endlich, kleiner als 0 oder größer als 60 s ist: Es gibt null zurück und lässt den
Fehler als Antwort bei out_ptr. (Eine unendliche Zeit trieb die Schrittzahl bis zur größten Ganzzahl und hängte die
Seite auf.)
Die Seite zeichnet mit WebGL2 ohne Bibliothek. Das einfache Mausrad scrollt die Seite (ein Hinweis über der Ansicht sagt, wie man zoomt). Maus: Ziehen dreht, Umschalt + Ziehen oder Ziehen mit rechter oder mittlerer Taste verschiebt, Strg + Mausrad (auf dem Mac Cmd; eine Pinch-Geste auf dem Trackpad wirkt ebenso) zoomt um den Zeiger, die Tasten „+“ und „−“ zoomen um die Mitte, ein Doppelklick oder „Einpassen“ passt die Ansicht neu ein. Touch: Senkrechtes Wischen scrollt die Seite, seitliches Wischen dreht die Maschine um die Hochachse, zwei Finger zoomen (Pinch), verschieben seitlich und kippen die Ansicht beim Ziehen nach oben oder unten (zwei Finger scrollen die Seite nie; ein senkrechtes Verschieben gibt es auf dem Touchscreen nicht mehr, an seiner Stelle wird gekippt). Anhalten/Weiter und Neustart (mit Konfiguration, Bewegung und Pfad aus dem Editor). Die Spur ist der Weg des Werkzeugs, ein Punkt je Millisekunde, gefärbt nach seinem Abstand von der Planposition auf einer festen, auf der Seite eingestellten Skala: blau bei keinem, gelb bei der Hälfte, rot beim eingestellten Wert (2 mm, solange nicht geändert), magenta darüber. Die letzten 40.000 Punkte bleiben.
Die Zeitverläufe zeigen die letzten Sekunden des Laufs der Ansicht (das Fenster ist einstellbar): Moment mit gestricheltem Momentensollwert, Drehzahl mit gestricheltem Drehzahlsollwert und den Schleppfehler, eine Farbe je Motor. Ein eigener Canvas-Plotter von etwa hundert Zeilen zeichnet sie, ohne Bibliothek. Jede Pixelspalte zeichnet den kleinsten und größten Wert der Proben, die sie überdeckt, und jede Probe hält den kleinsten und größten über ihre Grundschritte, sodass die Spitze eines einzelnen Grundschritts bei jedem Zeitfenster sichtbar bleibt. Derselbe Plotter zeichnet Arbeitspunkte und Frequenzgang.
Unterschiede zum nativen Programm
WebAssembly startet keine Threads. Die Analysen, die nativ die Prozessoren teilen, laufen dort nacheinander. Die Seite
bietet Auslegungsprüfung, Frequenzgang und Anpassung. Maschinendateien sind TOML oder JSON. Die Anpassung nimmt eine
Aufzeichnung in den Spalten des Simulators oder einen Herstellerexport über seine Zuordnungsdatei (zuerst öffnen; eine
UTF-16-Datei wie ein CODESYS-.trace wird nach ihrer Bytereihenfolgemarke gelesen) und passt Massen und Reibung an, mit
dem angekreuzten Feld die Steifigkeit aus den eigenen Fahrten der Aufzeichnung und aus einem gemessenen Frequenzgang
(frequency_hz, gain_rad_s_per_nm) die Resonanz der Last am für den Frequenzgang gewählten Motor.
Tests
cargo test -p sim-wasm --release rechnet die Anfragen des Moduls nativ: die Liste, die Auslegungsprüfung gegen die
Funktionen der Kommandozeile, Konfiguration von der Seite, die C-Funktionen; die acht Maschinendateien aus machines/,
eine übergebene Datei mit derselben Prüfung wie die eingebaute Kopie, ein falscher Schlüssel mit Datei und Zeile
abgelehnt; die Prüfung eines Pfads gegen analyse_trajectory, auch zeitoptimal, die Ansicht am Ende des Pfads wie ein
nativer Lauf, ein unlesbarer und ein leerer Pfad abgelehnt; frame mit unendlicher, NaN-, negativer und zu langer Zeit
abgelehnt; das Bild jeder Maschine gegen ihre native Szene, Datensätze, Begrenzungsquader und ein Hindernis von Hand,
die Zykluszeit der Ansicht, die Proben von 0,5 s (500 bei 1 ms, mit dem größten Moment und kleinsten Schleppfehler eines
nativen Laufs Schritt für Schritt); die Spalten von analyze, die Ecken der Kennlinie von Hand, der Frequenzgang gegen
frequency_sweep, eine Aufzeichnung ohne die Spalten des Simulators abgelehnt, die Texte in beiden Sprachen.
Die Seite selbst lief im kopflosen Chrome (puppeteer-core mit dem installierten Chrome, 14. November 2026): das T-Portal in Echtzeit mit seinen Verläufen, die Prüfung bestanden bei 6,080 s Zyklus; auf Deutsch die CoreXY-Maschinendatei mit einem Pfad aus Gerade, Bogen und Gerade samt Spur, ihre Prüfung (1,661 s) und ein Frequenzgang mit 40 Punkten (22 s). Den Pfad hat diese Sitzung nicht festgehalten, und keiner von zwanzig mit Geraden und Bögen auf dem Stand jenes Tages versuchten gibt 1,661 s. Benannt: der voreingestellte Pfad der Seite, in den Bereich des CoreXY verschoben,
line,0.3,0.2
arc,0.5,0.2,0.4,0.2,cw
line,0.5,0.4
besteht jede Prüfung in 1,748 s in den Achsgrenzen und 1,641 s zeitoptimal (21. November 2026, sim-cli analyze --machine-file machines/corexy.toml --path DATEI [--time-optimal], deren Zahlen die Prüfung der Seite gibt, wie die
Tests oben prüfen; auf dem Stand vom 14. November 1,748 und 1,640 s).
FMI-Export
sim-cli fmu schreibt eine Maschine mit ihrer Konfiguration als FMU (Functional Mock-up Unit) für FMI 2.0 Co-Simulation (die Vorgabe) oder FMI 3.0 Co-Simulation. Beide kommen aus einer Binärdatei, sim_fmi (crates/sim-fmi), die die C-Funktionen fmi2* und fmi3* nebeneinander exportiert. Die FMU rechnet dieselbe Simulation wie sim-cli run: Antriebe, Regler, jeden eingeschalteten Effekt. Das Benutzerhandbuch erklärt die Schritte, die Sollwerteingänge und die Parameter; diese Seite ergänzt die beiden Versionen, den FMU-Zustand, die Ableitungen, das fehlende Model Exchange, die Prüfung und den Import in andere Werkzeuge.
Eine FMU schreiben
cargo build --release -p sim-fmi -p sim-cli
sim-cli fmu t-gantry --out t-gantry.fmu # FMI 2.0 Co-Simulation
sim-cli fmu t-gantry --fmi 3 --out t-gantry-3.fmu # FMI 3.0 Co-Simulation
--fmi nimmt 2 oder 3; alles andere wird abgelehnt. --binary DATEI nennt die Binärdateien wie bisher. Die Binärdateien kommen in diese Ordner:
| Binärdatei | FMI 2.0 | FMI 3.0 |
|---|---|---|
sim_fmi.dll | binaries/win64/sim_fmi.dll | binaries/x86_64-windows/sim_fmi.dll (oder aarch64-windows) |
libsim_fmi.so | binaries/linux64/sim_fmi.so | binaries/x86_64-linux/sim_fmi.so (oder aarch64-linux) |
libsim_fmi.dylib | binaries/darwin64/sim_fmi.dylib | binaries/x86_64-darwin/sim_fmi.dylib oder binaries/aarch64-darwin/sim_fmi.dylib |
Für FMI 3.0 wird die Architektur aus dem Kopf der Binärdatei gelesen (dem Maschinenfeld einer PE-Datei, e_machine einer ELF-Datei, cputype einer 64-Bit-Mach-O-Datei). Eine Datei ohne einen solchen Kopf, darunter eine universelle (fat) Mach-O-Datei, wird abgelehnt: FMI 3.0 will einen Ordner je Architektur, also je Architektur eine .dylib bauen und beide übergeben.
Variablen
Die Variablen sind in beiden Versionen dieselben; nur die Typnamen unterscheiden sich. Die Wertreferenz einer Variablen ist ihr Platz in der Liste.
| Variable | Typ FMI 2.0 | Typ FMI 3.0 | Kausalität | Variabilität |
|---|---|---|---|---|
time | Real | Float64 | independent | continuous |
jedes andere Signal (axis.x.position, motor.a.torque, …) | Real | Float64 | output | continuous |
command.setpoint.<Achs-ID> | Real | Float64 | input | continuous |
command.enable | Boolean | Boolean | input | discrete |
command.stop_category | String | String | input | discrete |
command.cycle | Boolean | Boolean | input | discrete |
command.target.<Achs-ID> | Real | Float64 | input | continuous |
command.move | Boolean | Boolean | input | discrete |
command.path, command.path_file, command.trajectory_file | String | String | input | discrete |
command.run_path | Boolean | Boolean | input | discrete |
command.mode.<Motor-ID> | String | String | input | discrete |
command.torque.<Motor-ID>, command.velocity.<Motor-ID> | Real | Float64 | input | continuous |
time_optimal | Boolean | Boolean | parameter | fixed |
machine, config_file | String | String | parameter | fixed |
effects.<Name> | Boolean | Boolean | parameter | fixed |
Eine FMU einer Maschinendatei (sim-cli fmu --machine-file DATEI) trägt die Datei als resources/machine.toml mit und baut ihre Maschine beim Instanziieren daraus, in beiden Versionen; ihr Parameter machine ist die Maschinen-id der Datei.
Die Ausgänge sind alle Signale der Simulation (Sim::signal_infos), erzeugt, nie je Maschine aufgezählt: Ein Signal, das der Simulator hinzubekommt (das Überlastabbild der Antriebe oder die Gehäusetemperatur eines Motors, sobald sie Signale sind), ist ein Ausgang jeder danach exportierten FMU, ohne Änderung hier.
Zyklus, Fahrten und Bahnen
Neben den Sollwerten befehlen drei Auslöseeingänge die Maschine, wie sim-cli run --cycle, --move und --path es tun. Ein Auslöser wirkt an dem Kommunikationszeitpunkt, an dem er sich seit dem letzten geändert hat; der Befehl, den er gibt, wird unter logEvents protokolliert.
| Eingang | Wann er wirkt | Befehl |
|---|---|---|
command.cycle | wird true / wird false | startet den konfigurierten Zyklus / hält ihn am Ende seines Segments an |
command.move | wird true | fährt zu command.target.<Achs-ID> (Start: die Startpose) |
command.run_path | wird true | plant die Bahn ab der Stelle, an der die Maschine steht, innerhalb der Achsgrenzen (mit time_optimal so schnell, wie die Motoren erlauben), und fährt sie; oder fährt die Posen von command.trajectory_file |
Die Bahn ist der Text einer Bahndatei (Benutzerhandbuch) in command.path oder die in command.path_file genannte Datei, die Vorrang hat, wenn sie nicht leer ist; eine Datei wird nach ihrer Endung gelesen wie von sim-cli run --path (G-Code, KRL, RAPID, Roboterbewegungen als CSV, sonst eine Bahndatei), ein Programm mit Vorschüben Lauf für Lauf geplant. Der Parameter time_optimal (Vorgabe false) plant die Bahn wie --time-optimal: so schnell, wie Motormoment und Riemen erlauben, statt innerhalb der Achsgrenzen. command.trajectory_file nennt eine Trajektoriendatei (je Zeile die Zeit und je Achse eine Position, wie sim-cli run --trajectory sie liest); ist sie nicht leer, fährt command.run_path ihre Posen statt einer Bahn. Beides stimmt Bit für Bit mit der Kommandozeile überein (crates/sim-fmi/tests/fmi.rs und über fmpy gegen sim-cli run --path DATEI --time-optimal in tools/check_fmu.py). Eine Bahn, die sich nicht lesen oder planen lässt, und ein Befehl, den der Regler ablehnt (Antriebe aus, Ziel außerhalb des Bereichs), ergibt fmi2Warning / fmi3Warning mit dem Grund, und die Maschine macht weiter wie zuvor. Ein Sollwerteingang übernimmt, einmal gesetzt, die Achsen, sobald er vom Sollwert abweicht, dem der Regler folgt, und ersetzt so einen Zyklus, eine Fahrt oder eine Bahn im nächsten Schritt: Die Maschine entweder über Sollwerte oder über Auslöser führen.
In FMI 3.0 steht der Startwert eines Strings in einem Element <Start value="..."/>, wie das Schema von FMI 3.0 es verlangt. Die Modellstruktur führt jeden Ausgang als Ausgang und als Anfangsunbekannte. Die Ausgänge tragen dependencies="": Kein Ausgang hängt direkt von einem Eingang ab, weil ein Sollwert die Ausgänge erst über den nächsten Kommunikationsschritt erreicht. Die Anfangsunbekannten tragen keine Abhängigkeitsliste; sie dürfen also von jedem Parameter abhängen.
Eigener Regler: Momenten- und Drehzahlregelung
Der eigene Regler des Importeurs schließt den Kreis über die Betriebsarten eines Antriebs, wie ein echter Servoantrieb sie bietet. Je Motor ist command.mode.<Motor-ID> "position" (der Startwert: der Plan der Steuerung über Lage- und Drehzahlregler des Antriebs, wie oben), "velocity" (der Drehzahlregler folgt command.velocity.<Motor-ID>, rad/s am Motor; der Lageregler ist umgangen) oder "torque" (command.torque.<Motor-ID>, N m am Motor, ersetzt den Ausgang des Drehzahlreglers; beide Regler sind umgangen). Der Sollwert gilt über den Kommunikationsschritt. Er durchläuft weiter Momentenfilter, Sperrfilter, Momentengrenze und Totzeit, den Stromregler, die Wicklung und den Zwischenkreis; Strom-, Spannungs- und thermische Grenzen bleiben also wahr. Winkel, Drehzahl, Strom und Moment des Motors sind Ausgänge (motor.<id>.angle, .speed, .current, .torque, .torque_command). Ein anderer Text ergibt eine Warnung, und die Betriebsart bleibt.
- Die Betriebsart wechselt an dem Kommunikationszeitpunkt, an dem der Eingang von der des Antriebs abweicht. Ein Wechsel lässt das Moment nicht springen, wo die Regler des Antriebs übernehmen: Der Integrator des PI-Drehzahlreglers wird so gesetzt, dass er das zuletzt verlangte Moment verlangt (stoßfreie Umschaltung); in Momentenregelung wird er gehalten. In die Momentenregelung wirkt das Moment des Importeurs sofort.
- Außerhalb der Lageregelung folgt der Lagesollwert des Antriebs der gemessenen Lage (Schleppfehler 0, wie im Nachführbetrieb eines Antriebs). Solange ein Antrieb nicht in Lageregelung ist, lehnt die Steuerung Zyklus, Fahrt, Bahn und Sollwerte ab (
error-outside-mode); aus der Lageregelung heraus geht es nicht, während eine Fahrt, ein Zyklus oder eine Bahn läuft (error-busy). Ein Antrieb, der in die Lageregelung zurückkehrt, nimmt den Plan mit: Der Plan steht in Ruhe dort, wo die Motoren stehen, und bei Drehzahl bringt der Lageregler den Motor dorthin zurück. command.enableauf false und wieder auf true setzt jeden Antrieb in Lageregelung; die Betriebsarteingänge holen sie im nächsten Schritt wieder heraus.command.stop_categorysagt, wiecommand.enableauf false die Antriebe anhält:"0"(Startwert) nimmt das Moment sofort weg, wie bisher;"1"bremst jeden Antrieb an seiner Schnellhalterampe und schaltet ihn dann ab;"2"bremst die geplante Bewegung ab und hält mit Moment (siehe Stops). Es ist die letzte Variable, die Wertreferenzen der anderen bleiben, wie sie waren.- Ein Lauf in Momenten- und Drehzahlregelung ergibt Bit für Bit die Signale einer einfachen Simulation in denselben Betriebsarten mit denselben Sollwerten (
crates/sim-fmi/tests/fmi.rs, jede Maschine). Die Lageregelung ist unverändert: Die Bit-für-Bit-Prüfungen für Sollwerte, Fahrten und Bahnen bestehen wie zuvor.
Die Modellbeschreibung von FMI 3.0 hat instantiationToken, wo FMI 2.0 guid hat; beide sind ein Hash der Modellbeschreibung. Die FMU für FMI 2.0 und die für FMI 3.0 derselben Maschine und Konfiguration haben also verschiedene Kennungen und lehnen die Instanziierung und die FMU-Zustände der jeweils anderen ab.
Fähigkeiten
| Attribut der Modellbeschreibung | FMI 2.0 | FMI 3.0 |
|---|---|---|
| Co-Simulation | ja | ja |
| Model Exchange, Scheduled Execution | nein | nein |
canHandleVariableCommunicationStepSize | true | true |
fixedInternalStepSize | (nicht in FMI 2.0) | sim.dt_s, zum Beispiel 6.25e-05 |
canGetAndSetFMUstate / canGetAndSetFMUState | true | true |
canSerializeFMUstate / canSerializeFMUState | true | true |
providesDirectionalDerivative / providesDirectionalDerivatives | true | true |
providesAdjointDerivatives | (nicht in FMI 2.0) | true |
hasEventMode | (nicht in FMI 2.0) | false |
canInterpolateInputs, maxOutputDerivativeOrder | false, 0 | (nicht verwendet), 0 |
Funktionen von FMI 3.0, die etwas brauchen, was diese FMU nicht hat, geben fmi3Error mit einer Meldung zurück: Event Mode (fmi3EnterEventMode, fmi3EnterStepMode, fmi3UpdateDiscreteStates), Configuration Mode, Takte (Clocks) mit ihren Intervallen und Verschiebungen, Ausgangsableitungen, fmi3GetVariableDependencies (die Modellbeschreibung enthält die Abhängigkeiten) und jede Funktion von Model Exchange. fmi3InstantiateModelExchange und fmi3InstantiateScheduledExecution melden den Grund und geben null zurück. Get- und Set-Funktionen von Typen, von denen die FMU keine Variablen hat (Float32, die Ganzzahltypen, Binary, Clock), lehnen jede Wertreferenz ab und nehmen eine leere Liste an. fmi3DoStep meldet eventHandlingNeeded, terminateSimulation und earlyReturn immer als false und lastSuccessfulTime als die Zeit, bei der die Simulation steht (nach einem abgelehnten Schritt die Zeit davor).
FMU-Zustand
fmi2GetFMUstate / fmi3GetFMUState kopieren den Zustand einer Instanz; fmi2SetFMUstate / fmi3SetFMUState stellen ihn wieder her; die Funktionen zum Freigeben, zur Größe, zum Serialisieren und Deserialisieren tun, was der Standard sagt.
Was ein Zustand enthält: den Modus der Instanz, die Startzeit, jeden Wert, den der Importeur gesetzt hat (Eingänge und Parameter), die Auslöser, wie der letzte Schritt sie sah, und im Schrittmodus eine Momentaufnahme der Simulation mit ihren Ausgängen (Sim::snapshot: der integrierte Zustand, der Regler mit seinen Antrieben, Regelkreisen, Filtern, Wicklungen, Wärme- und Überlastabbildern, die Wärme der Bauteile und das Hindernisprotokoll; alles außer der Maschine, die die Parameter neu bauen).
Beim Setzen eines Zustands wird die Maschine aus seinen Parametern gebaut und die Momentaufnahme in sie zurückgespielt: so lange, wie das Bauen der Maschine dauert, wie weit der Zustand auch vom Start entfernt ist. Ein serialisierter Zustand trägt die Momentaufnahme als Bytes, so dass ein deserialisierter ebenso schnell gesetzt wird, auf derselben oder einer anderen Instanz. Beides ergibt Bit für Bit die Signale der gespeicherten Simulation: auf jeder registrierten Maschine und jeder Maschinendatei aus machines/ mit laufendem Zyklus (crates/sim-fmi/tests/fmi.rs, tests/fmi3.rs und über fmpy in tools/check_fmu.py).
Alles wird gebaut, bevor die Instanz geändert wird: Ein Zustand, der sich nicht setzen lässt (seine config_file ist weg, eine Konfiguration wird jetzt abgelehnt), wird mit fmi2Error / fmi3Error abgelehnt, und die Instanz macht weiter, wo sie war.
Grenzen:
- Ein serialisierter Zustand wächst nicht mit den Schritten seit der Initialisierung; seine Größe ist die der Momentaufnahme (Zustand der Maschine, Regler mit Plan und Antrieben), einige Kilobyte, mehr, solange eine Bahn oder ein Zyklus mit vielen Punkten läuft.
- Ist
config_filegesetzt, liest das Setzen eines Zustands diese Datei erneut. Eine seit dem Zustand auf der Platte geänderte Datei ergibt eine andere Simulation oder eine Ablehnung, wenn ihre Signale abweichen. - Ein serialisierter Zustand wird gegen die GUID oder das Instanziierungs-Token der FMU und die Zahl ihrer Variablen geprüft; ein Zustand einer anderen FMU, ein abgeschnittener Zustand oder einer mit überzähligen Bytes wird mit
fmi2Error/fmi3Errorabgelehnt. Die Zahlen der Momentaufnahme werden mit allen Bits geschrieben, so dass die nächsten Schritte auf derselben Binärdatei Bit für Bit die der gespeicherten Simulation sind; eine Binärdatei, die mit einem anderen Compiler oder für eine andere Plattform gebaut ist, rechnet ab dem Zustand mit ihren eigenen Gleitkommaergebnissen. - Das serialisierte Format: der Text
sim-fmi state 4und ein Null-Byte, die Version der FMU (1.1.0), die GUID, der Modus, die Startzeit, die drei Auslöser und die gesetzten Werte, Little-Endian, dann die Ausgänge beim Zustand und die Momentaufnahme, wiepostcard1 sie schreibt (das Datenmodell von serde, Feld für Feld in der Reihenfolge der Deklaration). Ihr Aufbau folgt den Typen des Simulators, also setzt nur die Version der FMU einen Zustand, die ihn gespeichert hat: einer anderen Version die Zustände des Formats 3 (ein Aufbau der Momentaufnahme von vor dem 25. November 2026) und die wiederholten der Formate 2 (14. November 2026) und 1 (davor) werden mitfmi2Error/fmi3Errorund einer Meldung abgelehnt, die Version oder Format nennt.
Log-Kategorien
Die Modellbeschreibung deklariert logEvents (die Befehle der Auslöser, gesetzte FMU-Zustände), logStatusWarning (abgelehnte Befehle, nicht planbare Bahnen), logStatusError (abgelehnte Aufrufe) und logAll. Eine Instanz, die mit loggingOn false angelegt wurde, meldet Warnungen und Fehler; mit true auch die Ereignisse. fmi2SetDebugLogging / fmi3SetDebugLogging schalten die genannten Kategorien ein oder aus, alle, wenn sie keine oder logAll nennen; eine unbekannte Kategorie wird mit einem Fehler abgelehnt und ändert nichts. Meldungen von FMI 2.0 gehen als Formatzeichenkette an den Logger, mit jedem % verdoppelt, sodass ein Logger, der formatiert, und einer, der sie unverändert ausgibt, beide den Text zeigen.
Richtungs- und adjungierte Ableitungen
fmi2GetDirectionalDerivative, fmi3GetDirectionalDerivative und fmi3GetAdjointDerivative nehmen Ausgänge (Real / Float64, Kausalität output) als Unbekannte und Sollwerteingänge als Bekannte an, im Initialization Mode und im Step Mode, und geben für jeden Eintrag null zurück. Das ist die genaue Antwort, kein Platzhalter: In Co-Simulation ist die Ableitung die partielle Ableitung der Ausgänge am aktuellen Kommunikationszeitpunkt nach den Eingängen an diesem Zeitpunkt. Die Ausgänge sind die Signale am Ende des letzten Schritts; ein neuer Sollwert geht zu Beginn des nächsten Schritts an den Regler. Einen Eingang zu setzen ändert also keinen Ausgang, bevor DoStep läuft, und jede partielle Ableitung ist null. Die Tests prüfen das gegen eine von Hand gebildete finite Differenz: Sie setzen einen Sollwert um 1e-4 m höher, lesen jeden Ausgang erneut und finden die Differenz null.
Was diese Funktionen nicht liefern, ist die Empfindlichkeit der Ausgänge nach dem nächsten Schritt gegenüber den Eingängen (wie weit sich die Achse in einem Schritt je Meter Sollwert bewegt). Der FMI-Standard definiert diese Größe für Co-Simulation nicht, also wird sie unter diesen Funktionsnamen nicht angeboten. Ein Importeur, der sie braucht, kann einen FMU-Zustand nehmen, mit zwei Eingangswerten schrittweise rechnen und den Zustand wiederherstellen.
Jede andere Referenz (ein Eingang als Unbekannte, ein Ausgang oder Parameter als Bekannte, time) wird mit fmi2Error / fmi3Error abgelehnt.
Warum es kein Model Exchange gibt
Model Exchange übergibt die stetigen Zustände der FMU und ihre Ableitungen dem Integrator des Importeurs. Für diesen Simulator wäre das nur mit diesen Teilen richtig:
- Stetige Zustände: der mechanische Zustand der Maschine und je Antrieb der Wicklungsstrom und die drei Energieintegrale des Schritts (
Sim::advance_with_windingsintegriert sie zusammen als einen Vektor). - Ein Zeitereignis bei jedem Grundschritt
sim.dt_s(62,5 µs in den mitgelieferten Konfigurationen): Dort tastet der Regler die Motoren ab, rechnet seine Kaskadenregelkreise und die Sollwertinterpolation und setzt die Wicklungsspannungen, die dann über den Schritt gehalten werden. Integratoren, Filter, Interpolator, Antriebszustände, Zwischenkreis- und Bremswiderstandslogik des Reglers sind diskrete Zustände, die sich nur bei diesen Ereignissen ändern. - Weitere Sprünge bei denselben Ereignissen:
Machine::after_stepändert den Zustand nach jedem Schritt (ein Zahnsprung des Riemens ändert die Drehzahl einer Riemenscheibe auf einmal), die Bauteiltemperaturen werden mit der genauen Lösung eines über den Schritt gehaltenen Verzögerungsglieds erster Ordnung fortgeschrieben, und das Umschalten der Nutzlast ändert die Maschine.
Punkt 2 allein bedeutet 16 000 Ereignisse je simulierter Sekunde. Der Integrator des Importeurs startet nach jedem Ereignis neu, also macht ein Löser mit variabler Schrittweite nie einen Schritt länger als 62,5 µs und behandelt dazu bei jedem ein Ereignis; Model Exchange wäre langsamer als Co-Simulation und brächte nichts dafür. Die Ergebnisse wichen auch von sim-cli run und von der FMU für Co-Simulation ab, weil der Integrator des Importeurs das Runge-Kutta-Verfahren vierter Ordnung mit fester Schrittweite und Teilschritten ersetzt, das der Simulator verwendet und das die Tests Bit für Bit vergleichen. Schließlich brauchen die Punkte 1 bis 3 die inneren Zustände des Reglers und der Simulation, die sim-components privat hält; sie zu öffnen änderte die Schnittstellen Sim und Machine, gegen die die Maschinen-Crates geschrieben sind. Aus diesen Gründen bietet dieser Export in beiden FMI-Versionen nur Co-Simulation.
Prüfung
Durchgeführt unter Windows 11 x86_64 am 13. November 2026 mit der Binärdatei aus cargo build --release -p sim-fmi -p sim-cli. Die FMUs waren die Standardkonfigurationen von t-gantry und single-axis und t-gantry mit crates/machine-t-gantry/exct-30.toml, jeweils für FMI 2.0 und FMI 3.0.
Rust-Tests (cargo test -p sim-fmi -p sim-cli --release): die Funktionen von FMI 2.0 und FMI 3.0 so aufgerufen, wie ein Importeur sie aufruft; die Signale jeder Maschine Bit für Bit gleich einer einfachen Sim mit denselben Sollwerten und mit derselben Fahrt und Bahn über die Auslöseeingänge; der FMU-Zustand Bit für Bit wiederhergestellt auf derselben Instanz (aus seiner Momentaufnahme, auf jeder Maschine mit laufendem Zyklus) und, serialisiert mit seiner Momentaufnahme, auf einer zweiten Instanz; eine zeitoptimale Bahn über command.path_file und die Posen von command.trajectory_file so, wie Sim::plan_path und Command::Trajectory sie fahren; Zustände eines anderen Formats oder einer anderen Version als solche abgelehnt; ein Zustand, der sich nicht setzen lässt, lässt die Instanz weiterlaufen; die Log-Kategorien geschaltet; Ableitungen gegen die finite Differenz von Hand; Ablehnungen.
fmpy 0.3.32 mit numpy 2.3.4 unter Python 3.13.17, aus PyPI in eine virtuelle Umgebung installiert:
python -m venv .venv
.venv/Scripts/python -m pip install fmpy==0.3.32 numpy==2.3.4
.venv/Scripts/python tools/check_fmu.py target/release/sim-cli.exe t-gantry-3.fmu t-gantry
.venv/Scripts/fmpy validate t-gantry-3.fmu
.venv/Scripts/fmpy simulate t-gantry-3.fmu --stop-time 0.1 --output-file sim3.csv
tools/check_fmu.py prüft die FMU mit dem Validator von fmpy (das XSD der FMI-Version der FMU, Variablennamen, Modellstruktur, Startwerte, Kausalität und Variabilität, Einheiten), simuliert sie mit fmpy 1 s lang im Standardschritt, vergleicht jeden Ausgang mit sim-cli run und nimmt dann über die Anbindung der C-Funktionen in fmpy nach 5 Schritten einen FMU-Zustand, prüft, dass die 7 Schritte danach auf derselben Instanz und serialisiert auf einer zweiten Bit für Bit wiederkommen, und prüft, dass Richtungsableitung und finite Differenz null sind; seit dem 14. November 2026 danach eine Fahrt und eine zeitoptimale Bahn über die Eingänge gegen sim-cli run --move und sim-cli run --path DATEI --time-optimal (Ergebnisse in der englischen Fassung). Ergebnis für alle sechs FMUs:
FMU state: restored bit for bit, serialized 360 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry (FMI 2.0): 0 validator problems, 96 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 306 bytes and restored bit for bit; directional derivative and finite difference zero
single-axis (FMI 2.0): 0 validator problems, 51 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 358 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 2.0): 0 validator problems, 94 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 360 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry (FMI 3.0): 0 validator problems, 96 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 306 bytes and restored bit for bit; directional derivative and finite difference zero
single-axis (FMI 3.0): 0 validator problems, 51 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
FMU state: restored bit for bit, serialized 358 bytes and restored bit for bit; directional derivative and finite difference zero
t-gantry crates/machine-t-gantry/exct-30.toml (FMI 3.0): 0 validator problems, 94 outputs, 101 rows, worst 5.0e-10 (axis.x.position): ok
Die größte Abweichung von 5e-10 ist die Rundung der 9 Stellen, die sim-cli run ausgibt. fmpy validate gab “No problems found.” aus, und fmpy simulate lief ohne Fehler.
OMSimulator 3.0.0.post198 (das Co-Simulationswerkzeug von OpenModelica), aus PyPI in eine zweite virtuelle Umgebung installiert:
python -m pip install OMSimulator==3.0.0.post198
python -m OMSimulator --validate t-gantry-3.fmu
python -m OMSimulator t-gantry-3.fmu --stopTime 1.0 --resultFile oms-3.csv
Es meldete “t-gantry-2.fmu conforms to the FMI-2.0 schema” und “t-gantry-3.fmu conforms to the FMI-3.0 schema” und simulierte beide 1 s lang im Standardschritt von 0,01 s. Seine 101 Zeilen aller 96 Ausgänge weichen für beide Versionen um höchstens 5,0e-10 vom Spitzenwert des jeweiligen Signals von sim-cli run ab.
Nicht ausgeführt: fmusim der Modelica Association (Reference-FMUs) und der FMU Compliance Checker. Keines von beiden ist in einem Paketverzeichnis veröffentlicht: pip index versions findet keine Distribution namens fmusim, reference-fmus, fmi-compliance-checker oder fmucheck, und conda ist hier nicht installiert. Beide werden als Binärdateien in GitHub-Releases verteilt, die nicht heruntergeladen wurden.
Import in andere Werkzeuge
Der Import in Simulink und Dymola wurde hier nicht geprüft: Keines der beiden stand zur Verfügung. OpenModelica 1.27.1 stand zur Verfügung (siehe seinen Abschnitt). Die Schritte folgen den dokumentierten Menüs der Werkzeuge. In jedem Werkzeug muss der Kommunikationsschritt ein ganzzahliges Vielfaches von sim.dt_s sein (62,5 µs in den mitgelieferten Konfigurationen); den Standardschritt der FMU nehmen, profile.setpoint_interval_s (10 ms), außer dieses Intervall wird in der Konfiguration geändert.
Simulink
Simulink importiert FMUs für FMI 2.0 Co-Simulation mit dem FMU-Block; MathWorks führt den Import von FMI 3.0 Co-Simulation ab R2023b (die Versionshinweise des eigenen Release prüfen).
- Die FMU schreiben (
sim-cli fmu t-gantry --out t-gantry.fmuoder mit--fmi 3). - Im Library Browser Simulink Extras > FMU Import öffnen und den FMU-Block ins Modell ziehen (oder auf die Arbeitsfläche klicken,
FMUtippen und den Block wählen). - Den Block öffnen und als FMU-Namen die
.fmu-Datei angeben. Der Block zeigtcommand.setpoint.<Achse>undcommand.enableals Eingangsports und die gewählten Ausgänge als Ausgangsports. - Die Kommunikationsschrittweite des Blocks auf 0,01 s setzen (oder ein anderes ganzzahliges Vielfaches von
sim.dt_s) und einen Löser mit fester Schrittweite verwenden, dessen Schritt sie teilt. - Im Parameterreiter bei Bedarf
config_fileoder die Schaltereffects.<Name>setzen; nach der Initialisierung sind sie fest. - Die Sollwerteingänge mit dem Regler- oder SPS-Modell verbinden und starten.
OpenModelica
Geprüft mit OpenModelica 1.27.1 (64 Bit, Windows) am 14. November 2026. OpenModelica rechnet diese FMUs mit OMSimulator, seinem Co-Simulationswerkzeug, nicht als Modelica-Blöcke:
- OMSimulator 2.1.3, das mit OpenModelica 1.27.1 kommt, rechnete die FMUs nach FMI 2.0 des T-Portals, des Delta D3 und der H-Bot-Maschinendatei 1 s lang im Standardschritt von 0,01 s (
OMSimulator t-gantry.fmu --stopTime=1.0 --stepSize=0.01 --resultFile=result.csv). Jeder Ausgang stimmt mitsim-cli runbis auf 5,0e-10 seines Höchstwerts überein, die Rundung der 9 Stellen der Befehlszeile. Diese Version lehnt FMI 3.0 ab („unsupported FMI version“); OMSimulator 3.0 (aus PyPI, oben) rechnet beide. - OMEdits File > Import > FMU (
importFMUdes Compilers) macht nur aus FMUs für FMI 2.0 Model Exchange Modelica-Blöcke; diese Co-Simulation-FMUs lehnt es ab („Only FMI 2.0 ModelExchange is supported“), und dieser Export hat kein Model Exchange (siehe warum). - FMIL, die FMI-Bibliothek von OpenModelica und anderen Werkzeugen, meldete beim Lesen der Beschreibung nach FMI 2.0 einen Fehler: Sie verlangt einen Startwert an der unabhängigen Variable
time, den der Standard dort verbietet. Seit dem 14. November lässt die Beschreibung nach FMI 2.0timeweg (der Standard nimmt sie dann stillschweigend an; ihre Wertreferenz antwortet weiter), und FMIL liest sie ohne Meldung. Die Beschreibung nach FMI 3.0 führt sie auf.
In OMEdit öffnet File > New SSP Model ein OMSimulator-Modell, dem die FMU als Komponente hinzugefügt und mit anderen FMUs verbunden wird.
Dymola
Dymola importiert FMUs für FMI 2.0; für den Import von FMI 3.0 die Dokumentation der eigenen Dymola-Version prüfen.
- File > Import > FMU…, die
.fmu-Datei wählen. - Im Importdialog Co-Simulation wählen (diese FMU hat keinen Teil für Model Exchange) und bestätigen. Dymola erzeugt einen Modelica-Block, der die FMU aufruft.
- Den Block in ein Modell ziehen, die Sollwerteingänge verbinden und mit einem Ausgabeintervall simulieren, das ein ganzzahliges Vielfaches des Kommunikationsschritts ist.
SPS-Inbetriebnahme
Die OPC-UA-Kopplung (sim-opcua) lässt eine Maschine in Echtzeit laufen und eine SPS sie fahren. Diese Seite beschreibt die PLCopen-Motion-Schnittstelle, den Echtzeittakt und seine Messung, die Beispiele in Strukturiertem Text und den Dauertest. Die übrigen Knoten der Kopplung (Signale, Ziele, Sollwerte, Bahnen, Zyklus) stehen im Benutzerhandbuch.
English version: PLC virtual commissioning.
Kopplung starten
cargo run --release -p sim-opcua -- t-gantry --port 4840 --host 192.168.0.10 --cycle-ms 10 --lang de
| Argument | Standard | Bedeutung |
|---|---|---|
MACHINE | t-gantry | Die Maschine, als Erstes, wenn angegeben |
--machine-file FILE | keine | Eine in einer Datei beschriebene Maschine (Maschinendateien), anstelle von MACHINE |
--config FILE | die der Maschine | Die Konfiguration der Maschine, gelesen wie sim-cli sie liest: Ein Schlüssel, den die Maschine nicht hat, wird mit Namen abgewiesen |
--set PFAD=WERT | keiner | Ein Konfigurationswert über der Konfiguration, in TOML-Schreibweise (--set "start.pose = [0.2, 0.3]"); wiederholbar, der Reihe nach angewandt |
--trajectory FILE | keine | Lagen zu Zeitpunkten, die beim Start gefahren werden, wie sim-cli run --trajectory sie nimmt: eine Zeile je Lage, die Zeit in s, dann eine Lage je Achse, durch Kommas getrennt |
--port N | 4840 | TCP-Port |
--host IP | 127.0.0.1 | Adresse, auf der der Server lauscht. Eine SPS im Netz braucht eine Adresse dieses Rechners, die sie erreicht. Die Adresse selbst angeben, nicht 0.0.0.0: Der Server nennt sie in seiner Endpunkt-URL |
--lang en|de | en | Sprache der Meldungen und der Variablenbeschriftungen |
--cycle-ms N | 10 | Takt der Simulationsschleife, 1 bis 1000 ms |
--pki DIR | pki | Ordner des Server-Zertifikats und der vertrauten und abgewiesenen Client-Zertifikate, relativ zum Arbeitsverzeichnis (siehe Sicherheit) |
--trust-all | aus | Jedes Client-Zertifikat annehmen und bei den vertrauten ablegen. Nur zur Inbetriebnahme |
--user NAME | keiner | Clients müssen sich mit diesem Benutzernamen und dem Passwort aus der Umgebungsvariablen SIM_OPCUA_PASSWORD anmelden; anonyme Clients werden abgewiesen, und der Endpunkt ohne Sicherheit wird nicht angeboten. Ohne die Variable startet die Kopplung nicht |
--user-cert FILE | keines | Ein Benutzerzertifikat (.der oder .pem): Ein Client, der mit seinem privaten Schlüssel signiert, meldet sich als dieser Benutzer an (X.509-Benutzer-Token). Wiederholbar; wie bei --user werden anonyme Clients abgewiesen, und der Endpunkt ohne Sicherheit wird nicht angeboten |
--renew-certificate | aus | Zertifikat und Schlüssel des Servers beiseitelegen (.old) und neue erzeugen, 365 Tage gültig |
Strg+C beendet die Kopplung und gibt den gemessenen Takt in einer Zeile dieser Form aus (die Zahlen sind die des Dauertests unten, nicht eines Laufs mit Strg+C):
Echtzeittakt (Taktdauer, größter und effektiver Jitter in ms, Überläufe, Echtzeitfaktor): 10.017 · 16.116 · 4.581 · 42 · 1.0000
Beim Start gibt die Kopplung außerdem den absoluten Pfad ihres pki-Ordners aus, ob --trust-all, --user oder --user-cert gesetzt sind, und eine Warnung, wenn das Zertifikat des Servers in weniger als 30 Tagen abläuft. Am Ende gibt sie die Abstände der Schreib- und Lesezugriffe der Clients aus (siehe Der Takt des Clients), hier die des Musters in sim-opcua/tests/interop.rs, neun Abstände von 10 ms und einer von 40 ms, dreimal:
Client-Schreibzugriffe (Abstände, Mittel, Standardabweichung, größter in ms): 30 · 13.000 · 9.000 · 40.000
Client-Lesezugriffe (Abstände, Mittel, Standardabweichung, größter in ms): 30 · 13.000 · 9.000 · 40.000
Sicherheit
Der Server bietet sieben Endpunkte, alle unter derselben URL opc.tcp://HOST:PORT/:
| Sicherheitsrichtlinie | Nachrichtensicherheit | Client-Zertifikat geprüft |
|---|---|---|
| None | None | Nein (nicht angeboten mit --user oder --user-cert) |
| Basic256Sha256 | Sign, SignAndEncrypt | Ja |
| Aes128_Sha256_RsaOaep | Sign, SignAndEncrypt | Ja |
| Aes256_Sha256_RsaPss | Sign, SignAndEncrypt | Ja |
Basic256Sha256 bieten S7-1500, TwinCAT TF6100 und der CODESYS-OPC-UA-Client alle an; die beiden Aes-Richtlinien sind die neueren aus OPC UA 1.04 und später, für Clients, die sie haben. Das sind alle Richtlinien von async-opcua 0.19, die OPC UA nicht abkündigt: Basic128Rsa15 und Basic256 bleiben weg.
Restrisiko: RSA-Zeitverhalten (RUSTSEC-2023-0071, „Marvin“). async-opcua 0.19.0, die neueste Version (geprüft am 14. November 2026), verwendet die Crate rsa 0.9, deren RSA-Entschlüsselung nicht in konstanter Zeit läuft; rsa 0.10.0 (8. November 2026) behebt das, aber noch keine async-opcua-Version verwendet sie. Der Server entschlüsselt an jedem gesicherten Endpunkt mit seinem privaten Schlüssel: Die OpenSecureChannel-Anfrage ist immer verschlüsselt, bei Sign wie bei SignAndEncrypt, und async-opcua entschlüsselt sie, bevor es nachsieht, ob dem Zertifikat des Clients vertraut wird; ein verschlüsseltes Passwort wird ebenfalls entschlüsselt. Wer den Port erreicht, kann also Verbindungsaufbauten schicken und die Antwortzeiten messen und mit sehr vielen davon womöglich den privaten Schlüssel des Servers gewinnen, dann aufgezeichnete Sitzungen entschlüsseln oder sich als Server ausgeben. Weder nur Sign noch nur vertraute Client-Zertifikate schließen das. Was es begrenzt:
- Die Kopplung lauscht auf 127.0.0.1, wenn
--hostkeine andere Adresse nennt.--hostnur eine Adresse in einem Inbetriebnahmenetz geben, das fremde Rechner nicht erreichen, nie eine aus dem Internet erreichbare; eine Firewallregel, die nur die Adresse der SPS zulässt, hält die anderen schon vom Verbindungsaufbau ab. - Der Schlüssel ist der eigene des Servers, auf diesem Rechner erzeugt und für nichts anderes verwendet:
--renew-certificateersetzt ihn, sobald ein Verdacht besteht, spätestens nach einem Jahr. - Der Simulator ist ein Inbetriebnahmewerkzeug, kein Produktionsserver: Ihn nicht unbeaufsichtigt in einem geteilten Netz laufen lassen.
Die Ausnahme in deny.toml bleibt, bis eine async-opcua-Version rsa 0.10 verwendet.
Das Zertifikat des Servers. Beim ersten Start legt die Kopplung ihr Anwendungsinstanz-Zertifikat im pki-Ordner an (--pki, Standard pki im Arbeitsverzeichnis; /pki ignoriert git):
| Datei | Was sie ist |
|---|---|
own/cert.der | Das Zertifikat: selbst signiert, RSA 2048 Bit, 365 Tage gültig. Anwendungs-URI urn:kinematics-simulation:server; die alternativen Namen enthalten diesen URI, localhost, den Rechnernamen und seine IP-Adressen |
private/private.pem | Sein privater Schlüssel. Er bleibt auf diesem Rechner |
trusted/ | Client-Zertifikate, die der Server annimmt |
rejected/ | Client-Zertifikate, die der Server abgewiesen hat |
Eine SPS, die sich mit Sicherheit verbindet, muss own/cert.der vertrauen: es in den Zertifikatsspeicher der SPS als vertrauten Partner importieren (TIA Portal: Zertifikatsmanager der CPU; TwinCAT TF6100 und CODESYS: siehe unten). Ab 30 Tagen vor Ablauf des Zertifikats warnt jeder Start. Dann, oder wenn sich Rechnername oder Adresse ändern und die SPS sie prüft, einmal mit --renew-certificate starten: Altes Zertifikat und alter Schlüssel bleiben als own/cert.der.old und private/private.pem.old neben den neuen, und dem neuen Zertifikat, 365 Tage gültig, muss die SPS neu vertrauen.
Client-Zertifikate. Ein Client an einem gesicherten Endpunkt, dessen Zertifikat nicht in trusted/ liegt, wird abgewiesen, und sein Zertifikat wird nach rejected/ geschrieben. Um ihm zu vertrauen, die Datei von rejected/ nach trusted/ verschieben; die nächste Verbindung wird angenommen, ohne Neustart. Ein Zertifikat, das in rejected/ liegt, wird auch mit --trust-all abgewiesen: Es erst verschieben oder löschen. --trust-all nimmt jedes Client-Zertifikat an und kopiert es nach trusted/, wo es nach dem Beenden bleibt: Während der Inbetriebnahme verwenden, danach aus trusted/ löschen, was nicht bleiben soll. Der Endpunkt ohne Sicherheit prüft keine Client-Zertifikate; er ist für Werkzeuge wie UaExpert auf demselben Rechner und für die Tests da.
Benutzername und Passwort. Mit --user NAME verlangt jeder Endpunkt diesen Benutzernamen und das Passwort aus SIM_OPCUA_PASSWORD, das aus der Umgebung gelesen wird, damit es nicht in der Prozessliste erscheint:
SIM_OPCUA_PASSWORD=geheim cargo run --release -p sim-opcua -- t-gantry --user sps
(PowerShell: vorher $env:SIM_OPCUA_PASSWORD = "geheim".) Mit --user wird der Endpunkt ohne Sicherheit nicht angeboten, damit das Passwort nie im Klartext übertragen wird: Die SPS verbindet sich mit Sign oder SignAndEncrypt. Anonyme Clients werden dann abgewiesen. Es gibt einen Benutzer; Rollen (nur lesen, schreiben) werden nicht unterschieden.
Benutzerzertifikate. Mit --user-cert FILE (wiederholbar) meldet sich ein Client mit einem X.509-Benutzer-Token an: Er signiert Zertifikat und Nonce des Servers mit dem privaten Schlüssel dieses Zertifikats, und die Kopplung lässt ihn als den nach der Datei benannten Benutzer ein (sps.der: sps). Nur die angegebenen Zertifikate werden angenommen, verglichen über den Fingerabdruck; ihre Vertrauenskette wird nicht geprüft. async-opcua verlangt die Signatur des Tokens mit dem Verfahren von Basic128Rsa15 (RSA PKCS#1 v1.5 mit SHA-1), gleich welche Richtlinie der Endpunkt hat; das legt die Bibliothek fest und lässt sich nicht einstellen. Benutzername und Zertifikate lassen sich zusammen angeben.
Knoten-IDs und Datentypen
Jede Variable ist ein Skalar (ValueRank −1) im Namensraum urn:kinematics-simulation, mit einer Zeichenketten-Knoten-ID, die bei jedem Start derselben Maschine gleich ist: Sie entsteht aus den Signal-, Achsen- und Bausteinnamen, nie durch Nummerieren. Der Namensraumindex ist derzeit 2 (0 ist der von OPC UA, 1 der Anwendungs-URI des Servers); ein Client sollte ihn trotzdem über den URI ermitteln (OPC_UA_NamespaceGetIndexList, UA_GetNamespaceIndex, UA_NamespaceGetIndex). Die Tabelle nennt für jeden Knoten den OPC-UA-Datentyp und den IEC-61131-3-Typ, den eine SPS-Variable zum Lesen oder Schreiben braucht; * steht für beliebigen Text, und die erste passende Zeile gilt. Ein Test (sim-opcua/tests/interop.rs) durchsucht jede Variable jeder Maschine und prüft DataType, ValueRank, AccessLevel und Wert gegen die englische Fassung dieser Tabelle.
| Knoten-ID | OPC-UA-Typ | IEC 61131-3 | Zugriff |
|---|---|---|---|
signal.* | Double | LREAL | lesen |
command.target.*, command.setpoint.* | Double | LREAL | lesen, schreiben |
command.move, command.cycle, command.disable, command.enable, command.path_time_optimal, command.run_path, command.reset_pacing | Boolean | BOOL | lesen, schreiben |
command.path | String | STRING | lesen, schreiben |
status.busy | Boolean | BOOL | lesen |
status.refused | String | STRING | lesen |
status.overruns, status.cycles, status.steps, status.client_writes, status.client_reads | UInt64 | ULINT | lesen |
status.* | Double | LREAL | lesen |
axis.*.ActualPosition, axis.*.ActualVelocity | Double | LREAL | lesen |
axis.*.Enable, axis.*.Execute | Boolean | BOOL | lesen, schreiben |
axis.*.Position, axis.*.Distance, axis.*.Velocity, axis.*.Acceleration, axis.*.Deceleration, axis.*.Jerk | Double | LREAL | lesen, schreiben |
axis.*.RatioNumerator, axis.*.RatioDenominator, axis.*.MasterOffset, axis.*.SlaveOffset, axis.*.MasterScaling, axis.*.SlaveScaling, axis.*.StartMode, axis.*.CamTableID | Double | LREAL | lesen, schreiben |
axis.*.Master, axis.*.Table | String | STRING | lesen, schreiben |
axis.*.ErrorID | UInt16 | UINT | lesen |
axis.*.StateID | Int32 | DINT | lesen |
axis.*.State | String | STRING | lesen |
axis.*.Status, axis.*.Valid, axis.*.Error, axis.*.Done, axis.*.InGear, axis.*.InSync, axis.*.Busy, axis.*.Active, axis.*.CommandAborted, axis.*.IsHomed | Boolean | BOOL | lesen |
Was die SPS-Clients brauchen:
- Siemens S7-1500 (
OPC_UA_Connect,OPC_UA_NamespaceGetIndexList,OPC_UA_NodeGetHandleList,OPC_UA_ReadList,OPC_UA_WriteList): die Variablen der Listen in einem Datenbaustein, mit den IEC-Typen oben (LReal, Bool, UInt, DInt, ULInt, String). Ein S7-Stringfasst höchstens 254 Zeichen; für ein längerescommand.pathWStringnehmen, das der Client ebenfalls auf OPC-UA-String abbildet. Die S7-1200 kennt keinULInt: die UInt64-Zähler mit einer S7-1500 lesen oder weglassen. - Beckhoff TF6100 (
UA_Connect,UA_GetNamespaceIndex,UA_NodeGetHandle,UA_Read,UA_Write): Der Wert geht als Zeiger und Größe, also bestimmt der Typ der SPS-Variablen, was gesendet wird. LREAL für jedes Double: Ein REAL schreibt ein Float, das die Kopplung annimmt, aber ein Double passt beim Lesen nicht in ein REAL. StandardmäßigSTRING(255); eine längere Bahn braucht einen längeren STRING. - CODESYS-OPC-UA-Client (PLCopen-Bausteine
UA_Connect,UA_NamespaceGetIndex,UA_NodeGetHandle,UA_Read,UA_Write): Der Wert ist ein IN_OUT vom Typ ANY, also ist sein deklarierter Typ der auf der Leitung.
Die Kopplung nimmt beim Schreiben einer Zahl Double, Float, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64 oder UInt64 an (IEC LREAL, REAL, SINT, USINT, INT, UINT, DINT, UDINT, LINT, ULINT), beim Schreiben eines Merkers Boolean; alles andere wird mit BadTypeMismatch abgewiesen, ebenso eine 64-Bit-Ganzzahl über 2^53, die ein Double nicht genau fasst.
PLCopen-Achsen
Jede Achse der Maschine hat einen Ordner axis.<Achsen-ID> mit einem Satz Handshake-Variablen je Funktionsbaustein. Die Knoten-IDs sind Zeichenketten im Namensraum urn:kinematics-simulation, zum Beispiel axis.x.MoveAbsolute.Execute. Die Namen sind die englischen PLCopen-Namen und in beiden Sprachen gleich.
| Knoten | Typ | Zugriff | Bedeutung |
|---|---|---|---|
axis.<id>.Power.Enable | Boolean | schreiben | MC_Power.Enable: true schaltet die Achse ein |
axis.<id>.Power.Status | Boolean | lesen | Enable ist true und die Antriebe sind an |
axis.<id>.Power.Valid | Boolean | lesen | Status und kein Achsfehler |
axis.<id>.Power.Error, .ErrorID | Boolean, UInt16 | lesen | Der Achsfehler, auch wenn Enable false ist: Die Achse bleibt bis MC_Reset in ErrorStop |
axis.<id>.Home.Execute | Boolean | schreiben | MC_Home |
axis.<id>.MoveAbsolute.Execute | Boolean | schreiben | MC_MoveAbsolute |
axis.<id>.MoveAbsolute.Position | Double | schreiben | Ziel, m |
axis.<id>.MoveAbsolute.Velocity, .Acceleration, .Deceleration, .Jerk | Double | schreiben | Grenzen der Fahrt, m/s, m/s², m/s², m/s³. Sie beginnen bei den Achsgrenzen |
axis.<id>.MoveRelative.Execute | Boolean | schreiben | MC_MoveRelative |
axis.<id>.MoveRelative.Distance | Double | schreiben | Weg, m, ab dem Achssollwert bei der steigenden Flanke |
axis.<id>.MoveRelative.Velocity, .Acceleration, .Deceleration, .Jerk | Double | schreiben | Wie bei MoveAbsolute |
axis.<id>.Stop.Execute | Boolean | schreiben | MC_Stop |
axis.<id>.Stop.Deceleration | Double | schreiben | Bremsverzögerung, m/s² |
axis.<id>.Reset.Execute | Boolean | schreiben | MC_Reset |
axis.<id>.GearIn.Execute | Boolean | schreiben | MC_GearIn: diese Achse ist die Folgeachse |
axis.<id>.GearIn.Master | String | schreiben | Die Achs-ID der Leitachse |
axis.<id>.GearIn.RatioNumerator, .RatioDenominator | Double | schreiben | Das Übersetzungsverhältnis, Weg der Folgeachse über Weg der Leitachse (zu Beginn 1 und 1) |
axis.<id>.GearIn.Acceleration, .Deceleration, .Jerk | Double | schreiben | Wie die Geschwindigkeit der Folgeachse auf das Verhältnis mal die der Leitachse kommt; Deceleration bremst die Folgeachse auch, wenn die Leitachse verloren geht |
axis.<id>.GearIn.InGear | Boolean | lesen | Die Folgeachse fährt mit dem Verhältnis mal der Geschwindigkeit der Leitachse und folgt ihrem Weg mal dem Verhältnis (statt Done) |
axis.<id>.GearOut.Execute | Boolean | schreiben | MC_GearOut |
axis.<id>.CamIn.Execute | Boolean | schreiben | MC_CamIn: diese Achse ist die Folgeachse |
axis.<id>.CamIn.Master | String | schreiben | Die Achs-ID der Leitachse; leer für die virtuelle Leitachse der Maschine (mit CamTableID 1) |
axis.<id>.CamIn.Table | String | schreiben | Die Kurventabelle des Clients (CamTableID 0): Zeilen Leitweg, Hub der Folgeachse, Gesetz (dwell, linear, 3-4-5, 4-5-6-7, cycloid, harmonic) oder Punkte Leitwert, Folgewert[, Steigung], durch die eine kubische Kurve läuft |
axis.<id>.CamIn.MasterOffset, .SlaveOffset, .MasterScaling, .SlaveScaling | Double | schreiben | Absolut: die Folgeachse bei SlaveOffset + SlaveScaling × Tabelle(MasterScaling × Leitwert + MasterOffset); zu Beginn 0, 0, 1, 1 |
axis.<id>.CamIn.StartMode | Double | schreiben | 1 relativ (zu Beginn): die Tabelle beginnt, wo Leit- und Folgeachse stehen, bei MasterOffset in ihr, SlaveOffset ungenutzt; 0 absolut: die Folgeachse muss stehen, wo die Tabelle sie hinlegt (kein Einkoppeln über eine Rampe) |
axis.<id>.CamIn.CamTableID | Double | schreiben | 0 die Tabelle des Clients, 1 die eigene elektronische Kurvenscheibe der Maschine für diese Achse |
axis.<id>.CamIn.InSync | Boolean | lesen | Die Folgeachse folgt der Tabelle (statt Done) |
axis.<id>.CamOut.Execute | Boolean | schreiben | MC_CamOut |
axis.<id>.<FB>.Done, .Busy, .Active, .CommandAborted, .Error | Boolean | lesen | Ausgänge jedes Bausteins (InGear und InSync statt Done). Active liest dasselbe wie Busy |
axis.<id>.<FB>.ErrorID | UInt16 | lesen | Warum der Baustein scheiterte, 0 ohne Fehler |
axis.<id>.State | String | lesen | Disabled, Standstill, ErrorStop, Stopping, Homing, DiscreteMotion, ContinuousMotion oder SynchronizedMotion |
axis.<id>.StateID | Int32 | lesen | Der Zustand als Zahl: 1 Disabled, 2 Standstill, 3 ErrorStop, 4 Stopping, 5 Homing, 6 DiscreteMotion, 7 ContinuousMotion, 8 SynchronizedMotion (wie MC_AxisStates in TwinCAT) |
axis.<id>.ActualPosition, .ActualVelocity | Double | lesen | Lage und Geschwindigkeit der simulierten Achse (signal.axis.<id>.position, .velocity) |
axis.<id>.IsHomed | Boolean | lesen | MC_Home ist einmal fertig geworden |
axis.<id>.Error, .ErrorID | Boolean, UInt16 | lesen | Der Achsfehler. Ungleich 0 heißt ErrorStop |
| ErrorID | Bedeutung |
|---|---|
| 1 | Die Achse ist nicht eingeschaltet (Disabled) |
| 2 | In diesem Zustand nicht erlaubt: jeder Baustein außer Reset in ErrorStop, eine Fahrt in Stopping oder Homing, Home, während die Achse fährt, GearOut oder CamOut, während die Achse nicht gekoppelt ist |
| 3 | Ein Parameter ist keine positive endliche Zahl |
| 4 | Das Ziel liegt außerhalb des Achsbereichs |
| 5 | Eine Fahrt, Bahn oder der Zyklus der übrigen Befehle der Kopplung läuft |
| 6 | Der Regler hat einen gestreamten Sollwert abgelehnt (Achsfehler) |
| 7 | Die Antriebe wurden ausgeschaltet, während die Achse eingeschaltet war: command.disable oder eine Zwischenkreis-Abschaltung (Achsfehler) |
| 8 | Die Antriebe gingen aus, weil die Maschine gegen ein Hindernis fuhr (effects.crash, Achsfehler) |
| 9 | GearIn oder CamIn: keine Achse dieser Master-ID, die Folgeachse selbst, eine Leitachse, die selbst Folgeachse ist, oder ein leerer Master ohne eigene Kurvenscheibe der Maschine; gekoppelt: die Leitachse ging in ErrorStop oder Disabled |
| 10 | CamIn: die Kurventabelle des Clients ist nicht lesbar, oder die Maschine hat keine eigene Kurvenscheibe (CamTableID 1) |
So verhalten sich die Bausteine:
- Eine steigende Flanke an
Executestartet einen Baustein mit den Eingängen, die er in diesem Moment hat. Erneutes Schreiben vontrue, währendExecutetrue ist, bewirkt nichts. Done,CommandAbortedundErrorbleiben true, solangeExecutetrue ist. FälltExecute, werden sie gelöscht, sobald der Baustein fertig ist. FälltExecute, während der Baustein arbeitet, läuft er weiter, und seine Ausgänge bleiben bis zur nächsten steigenden Flanke stehen, damit ein pollender Client sie sieht.- Die Ausgänge werden einmal je Schleifentakt veröffentlicht. Ein Client, der
Donegleich nach dem Schreiben vonExecuteliest, kann den Wert des vorigen Befehls lesen. Der Handshake, der funktioniert:Executeauf false schreiben, warten, bisDonefalse liest, die Eingänge undExecutetrue schreiben, dannBusy,Done,CommandAbortedundErrorpollen. Die Beispiele in Strukturiertem Text tun das. - Fahrten und Stop übernehmen die laufende Bewegung mit der Lage und Geschwindigkeit, die die Achse hat. Der Baustein, der lief, meldet
CommandAborted, außer es ist derselbe Baustein, neu gestartet: Der beginnt neu mit gelöschten Ausgängen. Done,Busy,CommandAbortedundErroreines Bausteins sind nie zugleich true. Ein Baustein, der währendBusyneu gestartet wird und dessen neue Eingänge abgewiesen werden (Ziel außerhalb des Bereichs,Velocity0, …), meldet nurErrorund gibt seine Bewegung ab: Die Achse bremst mit der Verzögerung dieser Bewegung bis zum Stillstand, inDiscreteMotion, und kein Baustein meldet dafürDone. Eine neue Fahrt darf das Bremsen übernehmen. PLCopen Teil 1 lässt diesen Fall offen; die alte Bewegung unter einem Baustein weiterlaufen zu lassen, derErrorzeigt, ließe die SPS ohne einen Baustein, dem sie gehört.- MC_Stop bremst mit
Stop.Decelerationbis zum Stillstand und meldet dannDone. Die Achse bleibt inStopping, solangeStop.Executetrue ist, und lehnt dort Fahrten ab (ErrorID 2). Sie geht nachStandstill, wennStop.Executefällt. - MC_Home fährt die Achse in ihre Grundstellung, mit der halben Geschwindigkeits- und Beschleunigungsgrenze der Achse, und setzt
IsHomed. Die Grundstellung ist der Achswert der Startpose der Maschine ([start] posein der Konfiguration). Es sucht keinen Schalter und setzt keinen neuen Nullpunkt: Lagen im Simulator sind absolut. - Ein Achsfehler bleibt über
Power.Enablefalse hinweg bestehen, wie im Zustandsdiagramm von PLCopen: Die Achse bleibt in ErrorStop, undPower.ErrorundPower.ErrorIDzeigen den Fehler. MC_Reset löscht den Achsfehler und verlässt ErrorStop nach Standstill (oder Disabled, wennPower.Enablefalse ist). Nach ErrorID 7 oder 8 schaltet es die Antriebe wieder ein; nach einem Aufprall lässt sich die Achse dann aus dem Hindernis fahren, und eine Fahrt weiter hinein schaltet die Antriebe wieder ab. - MC_Power: Der Regler hat eine Freigabe für alle Antriebe. Die Antriebe gehen an, wenn eine Achse eingeschaltet wird, und aus, wenn die letzte Achse ausgeschaltet wird. Eine Achse mit
Power.Enablefalse ist Disabled und lehnt Bausteine ab, ihr Motor hält aber die Lage, solange eine andere Achse die Antriebe an hält. Ausschalten einer Achse bricht ihre Bewegung ab. - Parameter über den Achsgrenzen werden auf die Grenzen gekürzt. Das Profil ist ein Trapez: Geschwindigkeit, Beschleunigung und Verzögerung werden eingehalten,
Jerkwird angenommen und nicht verwendet. - MC_GearIn und MC_CamIn (PLCopen Teil 1) liegen im Ordner der Folgeachse und nennen die Leitachse bei ihrer Achs-ID. Die Folgeachse folgt dem Sollwert der Leitachse (MasterValueSource Sollwert) im selben Sollwertintervall: Die Leitachse fährt zuerst. MC_GearIn bringt die Geschwindigkeit der Folgeachse mit seiner
Acceleration(seinerDeceleration, wo die Folgeachse langsamer werden muss) auf das Verhältnis mal die der Leitachse, meldet dannInGearund hält die Folgeachse auf dem Weg der Leitachse mal dem Verhältnis. MC_CamIn hält die Folgeachse ab seinem Start auf seiner Tabelle beim Leitwert und meldet sofortInSync. Beide bleibenBusyundActive, solange die Folgeachse gekoppelt ist, inSynchronizedMotion; eine Leitachse darf nicht selbst Folgeachse sein. - MC_GearOut und MC_CamOut lösen die Kopplung und melden
Done: Der koppelnde Baustein ist nicht mehr busy (nichtCommandAborted), und die Folgeachse fährt mit ihrer Geschwindigkeit weiter, inContinuousMotion, bis ein anderer Baustein (MC_Stop, eine Fahrt) sie übernimmt. Eine Fahrt oder MC_Stop an der Folgeachse löst die Kopplung ebenfalls: Der koppelnde Baustein meldetCommandAborted. - Geht eine Leitachse in ErrorStop oder Disabled, während eine Folgeachse gekoppelt ist, endet die Kopplung mit ErrorID 9: Die Folgeachse bremst mit der Verzögerung der Kopplung (
Decelerationvon GearIn, die Achsgrenze bei CamIn), ohne Baustein, dem die Bewegung gehört. Ein GearIn oder CamIn, das währendBusyneu gestartet wird und dessen neue Eingänge abgewiesen werden, gibt seine Kopplung genauso ab (die Regel oben). - CamTableID 1 nimmt die eigene elektronische Kurvenscheibe der Maschine für diese Achse (die Kurbel- und Kurvenmaschinen,
Machine::cam): ihre Tabelle über eine Leitperiode, an 1440 Punkten mit ihren Steigungen abgetastet. Mit leeremCamIn.Masterist die Leitachse die virtuelle der Maschine, aus dem Stand mit ihrer Rampe (cam.ramp_s) auf die Leitgeschwindigkeit der Kurvenscheibe gebracht; so fährt eine einachsige Kurvenmaschine ihre Kurvenscheibe über PLCopen. - Die PLCopen-Bausteine nicht gleichzeitig mit
command.setpoint.*,command.move,command.cycleodercommand.run_pathan derselben Maschine verwenden. Bausteine, die gestartet werden, während diese laufen, scheitern mit ErrorID 5; ein Sollwertstrom, der startet, während Bausteine laufen, lässt den Regler einen der beiden ablehnen.
Wie es arbeitet, und seine Grenzen
Der Kernregler fährt alle Achsen gemeinsam auf einem synchronisierten Profil, lehnt eine neue Fahrt ab, während eine läuft, und Command::Stop hält nur den Zyklus nach seinem Segment an. Eine PLCopen-Achse braucht mehr: Achsen, die unabhängig und gleichzeitig fahren, ein MC_Stop, das mitten in einer Fahrt bremst, und eine neue Fahrt, die die alte abbricht. Die Kopplung rechnet deshalb selbst ein Profil je Achse und streamt die Lagen aller Achsen mit Command::Setpoint an den Regler, einen Sollwert je profile.setpoint_interval_s (10 ms), gezählt in Simulationsschritten. So fährt eine SPS Servoantriebe über einen Feldbus. Der Regler interpoliert linear zwischen den Sollwerten und schließt die Regelkreise.
Grenzen:
- Das gestreamte Profil hat eine Schrittweite von 10 ms. Innerhalb eines Schritts ist die Geschwindigkeit konstant, die Beschleunigung ändert sich also an jedem Schritt. Es gibt keine Ruckbegrenzung und kein Input Shaping der PLCopen-Fahrten.
- Eine Fahrt, die eine schnelle Fahrt zu einem näheren Ziel abbricht oder umkehrt, bremst mit
Decelerationund kann überschwingen. Verlässt das Überschwingen den Achsbereich, lehnt der Regler den Sollwert ab und die Achse geht nach ErrorStop (ErrorID 6). - Keine gepufferten oder überschliffenen Fahrten (
BufferMode), kein MC_MoveVelocity, MC_Halt, MC_ReadParameter. Von der synchronen Bewegung MC_GearIn, MC_GearOut, MC_CamIn und MC_CamOut, ohne MC_GearInPos, MC_Phasing,EndOfProfile, den Istwert der Leitachse als Quelle und ohne Einkoppeln über eine Rampe beim absoluten Kurvenstart; die Leitachse einer Folgeachse ist nie selbst Folgeachse. Eine Maschine mit elektronischer Kurvenscheibe (machine-crank-cam,cam.run = true) fährt sie als Zyklus:command.cyclestartet sie,command.stopfährt ihren Leitwert herunter. - Die Kopplung fügt die Latenz von OPC UA hinzu: Ein Client sieht die Wirkung eines Schreibens nach ein bis zwei Schleifentakten plus seiner eigenen Pollzeit.
Echtzeittakt und Jitter
Die Simulationsschleife wacht auf einem festen Raster von Zeitpunkten auf, einer je --cycle-ms. Bei jedem Aufwachen führt sie die eingetroffenen Befehle aus und rechnet dann so viele Simulationsschritte, wie die Uhrzeit seit dem letzten Aufwachen erlaubt (je 62,5 µs bei den Maschinen hier). Die Zahl der Schritte folgt also der Uhr, nicht der Zahl der Aufwachvorgänge: Ein spätes Aufwachen rechnet mehr Schritte. Ein Aufwachen, das mehr als einen Takt zu spät kommt, wird nicht mit einer Folge zusätzlicher Aufwachvorgänge nachgeholt. Fällt der Rechner weiter zurück als 0,1 s oder zwei Takte, je nachdem, was länger ist, verwirft die Simulation die Zeit darüber hinaus, statt Arbeit aufzustauen.
Die Kopplung misst die Zeit zwischen den Aufwachvorgängen seit dem Start oder seit command.reset_pacing:
| Knoten | Typ | Bedeutung |
|---|---|---|
status.cycle_s | Double | Der Nenntakt, s |
status.cycle_period_s | Double | Mittlere gemessene Zeit zwischen zwei Aufwachvorgängen, s |
status.jitter_max_s | Double | Größte Abweichung einer Periode vom Takt, s |
status.jitter_rms_s | Double | Effektivwert dieser Abweichung, s |
status.overruns | UInt64 | Aufwachvorgänge, die mehr als einen ganzen Takt zu spät kamen (Periode über dem doppelten Takt) |
status.cycles | UInt64 | Gemessene Aufwachvorgänge |
status.realtime_factor | Double | Simulierte Zeit durch Uhrzeit |
status.steps | UInt64 | Simulationsschritte seit dem Start |
command.reset_pacing | Boolean, schreiben | true beginnt die Messung neu |
Unter Windows folgt der Timer der Laufzeitumgebung der Systemuhr von 15,6 ms. Bei einem Takt von 10 ms kommen die Aufwachvorgänge daher 0 bis 15,6 ms zu spät; das zeigt sich als Jitter von einigen Millisekunden, während die mittlere Periode und der Echtzeitfaktor genau bleiben. Ein eigener Thread mit dem hochauflösenden Sleep der Standardbibliothek wurde erprobt und war auf einem belasteten Rechner schlechter. Unter Linux hat der Timer eine Auflösung von etwa 1 ms. Keins von beiden ist ein Echtzeitsystem: Andere Last auf dem Rechner zeigt sich unmittelbar im Jitter.
Der Takt des Clients
Neben ihrer eigenen Schleife misst die Kopplung, wie regelmäßig die Clients sie erreichen: die Zeit zwischen einer Leseanforderung an die Variablen des Simulators und der nächsten, und dasselbe für Schreibanforderungen. Eine SPS, die in jedem Tasktakt einmal liest und schreibt, zeigt hier ihre Zykluszeit und ihren Jitter, wie der Server sie sieht: den Jitter der SPS-Task, dazu den des Netzes und der Ablaufsteuerung dieses Rechners.
| Knoten | Typ | Bedeutung |
|---|---|---|
status.client_writes, status.client_reads | UInt64 | Gemessene Abstände (eins weniger als Anforderungen) |
status.client_write_mean_s, status.client_read_mean_s | Double | Mittlerer Abstand, s |
status.client_write_std_s, status.client_read_std_s | Double | Standardabweichung der Abstände (der Grundgesamtheit, durch ihre Anzahl geteilt), s |
status.client_write_max_s, status.client_read_max_s | Double | Größter Abstand, s |
- Eine Anforderung zählt einmal, wie viele Variablen sie auch liest oder schreibt. Eine SPS, die zwei Variablen mit zwei
UA_Read-Bausteinen im selben Takt liest, sendet zwei Anforderungen und zeigt Abstände eines halben Takts: Beim Messen mit einer Anforderung je Takt lesen (OPC_UA_ReadListoder ein Baustein). Das Beispielsim_cycle.sthat dafür einen Schalter. - Nur das Lesen von Variablenwerten zählt; Durchsuchen (die übrigen Attribute) und Abonnements nicht. Ein Abonnement trägt den Takt des Clients nicht: Der Server tastet ab und veröffentlicht in seinem eigenen Veröffentlichungsintervall, und die Publish-Anfragen des Clients holen nur ab, was ansteht; ihr Zeitverhalten zeigte das Intervall des Servers und das Netz, nicht die SPS-Task. Ein Lesen wird gezählt, nachdem es beantwortet ist, also erscheint ein Lesen dieser Variablen nicht in seiner eigenen Antwort.
- Alle Clients zählen zusammen: Beim Messen nur die SPS verbinden (UaExpert schließen).
command.reset_pacingbeginnt diese Werte zusammen mit denen der Schleife neu, im Schreibzugriff selbst.- Die Kopplung gibt sie beim Beenden aus (siehe Kopplung starten).
Beispiele in Strukturiertem Text
crates/sim-opcua/examples/plc/twincat/sim_plcopen.st ist für TwinCAT 3 mit der Bibliothek Tc3_PLCopen_OpcUa (UA_Connect, UA_GetNamespaceIndex, UA_NodeGetHandle, UA_Read, UA_Write, UA_NodeReleaseHandle, UA_Disconnect). crates/sim-opcua/examples/plc/codesys/sim_plcopen.st verwendet die PLCopen-Bausteine für OPC-UA-Clients, wie die PLCopen-Spezifikation OPC 30001 (PLCopen-CFB) v1.02 sie benennt, für eine CODESYS-Bibliothek, die sie bereitstellt.
Beide Dateien enthalten:
| Baustein | Was er tut |
|---|---|
SIM_Access | Ein Lesen oder Schreiben einer Variablen: Knoten-Handle holen, Wert lesen oder schreiben, Handle freigeben |
SIM_Handshake | Der Handshake eines Bausteins am Simulator, wie oben beschrieben |
SIM_MC_Power, SIM_MC_Home, SIM_MC_MoveAbsolute, SIM_MC_MoveRelative, SIM_MC_Stop, SIM_MC_Reset | Hüllen mit den PLCopen-Ein- und -Ausgängen, dazu Verbindungs-Handle, Namensraumindex und Achsen-ID |
PRG_SimDemo | Verbindet, schaltet die Achse ein, referenziert sie, startet eine Fahrt, stoppt sie nach 0,5 s, schaltet aus und trennt |
Diese Dateien wurden nicht übersetzt und können es hier nicht werden. TwinCAT und CODESYS lassen sich nur mit der Anmeldung an einem Herstellerkonto herunterladen, die die Entwicklung dieses Projekts nicht hat. Am 14. November 2026 wurden die Namen stattdessen gegen die öffentliche Dokumentation geprüft:
- TwinCAT: Beckhoff Infosys, TF6100 TwinCAT 3 OPC UA Client (Dokumentation 1.3.0 vom 8. April 2026), und Beckhoffs
TF6100_Samplesauf GitHub. Jeder Name ist geklärt bis auf einen: obUA_WritealscbDataeines STRINGLENoderSIZEOFnimmt, sagt die Dokumentation nicht (mitCHECKmarkiert). - CODESYS: Die öffentliche Hilfe von CODESYS zeigt nur seine objektorientierte Bibliothek „OPC UA Client“ (Client, Read, Write, …), nicht die
UA_*-Bausteine von PLCopen; ob eine CODESYS-Bibliothek sie anbietet, unter welchem Namensraumpräfix, ließ sich nicht prüfen (mitCHECKam Anfang jeder Datei markiert). Die Namen folgen der PLCopen-Spezifikation v1.02, die auchUA_NamespaceGetIndex,UA_NodeGetHandle,UA_ReadundUA_Writeals auslaufend zugunsten ihrer*List-Varianten führt.
Die Dateien sind ein Ausgangspunkt, der auf einer echten SPS zu übersetzen und zu prüfen ist. Jeder Zugriff holt ein Knoten-Handle und gibt es wieder frei, was drei Umläufe kostet; Produktionscode behält die Handles. Server-URL, Achsen-ID und Lagen sind an die Maschine anzupassen.
sim_cycle.st in jedem Ordner fügt PRG_SimCycle hinzu, ein Programm für eine 10-ms-Task, das tut, was ein SPS-Programm mit der Maschine tut: sich mit Basic256Sha256 SignAndEncrypt (oder None) und, falls gesetzt, Benutzername und Passwort verbinden; den Namensraumindex ermitteln; die Antriebe mit MC_Power einschalten; MC_MoveAbsolute fahren; eine Bahn schreiben (command.path) und fahren (command.run_path), bis status.busy fällt; ausschalten und trennen. Währenddessen liest SIM_CyclicRead in jedem Takt die Achslage (signal.axis.<id>.position) und den Schleppfehler (signal.axis.<id>.following_error) über Knoten-Handles, die einmal geholt werden, und das Programm merkt sich den größten Schleppfehler. Es verwendet die Bausteine aus sim_plcopen.st. Die Bahn ist für das T-Portal geschrieben (Achsen x und z, Startpose x 0,1 m, z 0,35 m); für eine andere Maschine sie und das Ziel ändern.
sim_sync.st in jedem Ordner fügt die synchrone Bewegung hinzu: SIM_MC_GearIn, SIM_MC_GearOut, SIM_MC_CamIn und SIM_MC_CamOut mit PLCopen-Ein- und -Ausgängen, über SIM_SyncHandshake, das die Zahlen und Texte des Bausteins (Master, Table) schreibt, Execute setzt und dann Busy, InGear oder InSync, CommandAborted, Error und ErrorID pollt, solange der Baustein busy bleibt: Ein koppelnder Baustein ist, anders als eine Fahrt, busy, solange die Folgeachse gekoppelt ist. PRG_SimSyncDemo fährt die Leitachse x langsam über ihren Hub, koppelt y mit 2:1 ein, nach einer Sekunde im Gleichlauf wieder aus, koppelt sie auf eine 3-4-5-Tabelle von 20 mm über 0,1 m von x und zurück, löst sie und hält sie an. Es verwendet die Bausteine aus sim_plcopen.st (und für CODESYS SIM_WriteString aus sim_cycle.st); wie diese wurde es nicht übersetzt.
Die Beispiele gegen sim-opcua auf demselben Rechner fahren
Beide brauchen die SPS-Laufzeit auf diesem Rechner; nichts davon liegt diesem Projekt bei. Die Schritte folgen der Dokumentation der Hersteller und konnten hier nicht ausprobiert werden.
1. Die Kopplung starten, in einem Terminal im Ordner des Repositorys, für die erste Verbindung mit --trust-all:
cargo run --release -p sim-opcua -- t-gantry --port 4840 --trust-all --lang de
Sie lauscht auf opc.tcp://127.0.0.1:4840/, der URL in PRG_SimCycle, und nennt den pki-Ordner.
2a. TwinCAT 3 (TF6100).
- In TwinCAT XAE (Visual Studio) ein neues TwinCAT-XAE-Projekt anlegen und ein SPS-Projekt hinzufügen (Standard PLC Project).
- Unter References
Tc3_PLCopen_OpcUahinzufügen. TF6100 braucht eine Lizenz; eine 7-Tage-Testlizenz lässt sich unter System > License aktivieren. - Den Code einfügen: TwinCAT importiert
.st-Dateien nicht direkt. Für jedenFUNCTION_BLOCKund jedesPROGRAMaustwincat/sim_plcopen.st,twincat/sim_cycle.stundtwincat/sim_sync.steine POU dieses Namens anlegen, die Deklaration (vom Kopf bisEND_VAR) in den oberen Teil und den Rumpf in den unteren Teil kopieren.E_SimKindin eine DUT. PRG_SimCycleaus der SPS-Task aufrufen und deren Zykluszeit auf 10 ms setzen.- Die Konfiguration aktivieren, das Zielsystem in den Run-Modus setzen (die lokale Laufzeit braucht einen freien Kern oder Hyper-V-Einstellungen, wie Beckhoff sie beschreibt), einloggen und starten.
- TF6100 erzeugt beim ersten Start sein eigenes Client-Zertifikat, in seinem PKI-Ordner:
%TcInstallDir%\3.1\Target\OpcUa\Client\PKIfür Client 2.x,%ProgramData%\Beckhoff\TF6100-OPC-UA\TcOpcUaClient\PKIfür 1.x. Beim ersten gesicherten Verbindungsaufbau legt es das Zertifikat des Servers in seinenrejected-Ordner: Es dort nachtrustedverschieben und erneut verbinden. - Beobachten, wie
nStepauf 100 geht,fbPosition.fValueder Fahrt und der Bahn folgt, undfLargestError. Im Terminal der Kopplung liegt das Client-Zertifikat jetzt inpki/trusted: Von nun an die Kopplung ohne--trust-allstarten.
2b. CODESYS Control Win.
- CODESYS Development System V3.5 mit CODESYS Control Win (SoftSPS) installieren und die SoftSPS über ihr Taskleistensymbol starten.
- Ein Standardprojekt für das Gerät „CODESYS Control Win V3 x64“ anlegen und im Bibliotheksverwalter eine Bibliothek hinzufügen, die die PLCopen-Bausteine für OPC-UA-Clients bereitstellt (
UA_Connect,UA_NodeGetHandle, …). Die eigene Bibliothek „OPC UA Client“ von CODESYS ist objektorientiert und tut das nicht, soweit ihre öffentliche Hilfe zeigt: Dann sind die Dateien auf ihre Bausteine Client, Read und Write umzuschreiben. - Für jeden Baustein aus
codesys/sim_plcopen.st,codesys/sim_cycle.stundcodesys/sim_sync.steine POU anlegen und Deklaration und Rumpf einfügen;E_SimKindin eine DUT. - In der Taskkonfiguration eine zyklische Task von 10 ms anlegen, die
PRG_SimCycleaufruft. - Für die gesicherte Verbindung unter Ansicht > Security Screen, Registerkarte Geräte, das Zertifikat des Clients für das Gerät erzeugen. Beim ersten Versuch landet das Zertifikat des Servers (
pki/own/cert.der) dort unter „Zertifikate in Quarantäne“: Es nach „Vertrauenswürdige Zertifikate“ ziehen. Oder für einen ersten Test am Endpunkt ohne SicherheitxSecure := FALSEsetzen. - Einloggen, laden, starten. Beobachten, wie
iStepauf 100 geht,fbPosition.lrValueundlrLargestError.
3. Den Takt-Jitter ablesen. bReadFollowingError (TwinCAT) oder xReadFollowingError (CODESYS) auf FALSE setzen, damit das Programm eine Leseanforderung je Takt sendet, und die Kopplung nach dem Lauf mit Strg+C beenden: Die Zeile Client-Lesezugriffe ... nennt die Zahl der Abstände, ihr Mittel (der Tasktakt, 10 ms, wenn jedes Lesen innerhalb eines Takts zurückkommt; 20 ms, wenn es bis zu zwei braucht), ihre Standardabweichung und den größten. Während das Programm läuft, stehen dieselben Werte in status.client_read_*.
Dauertest
cargo test -p sim-opcua --release --test soak -- --nocapture
SOAK_SECONDS=3600 cargo test -p sim-opcua --release --test soak -- --nocapture
Der Test bedient das T-Portal und fährt beide Achsen gemeinsam mit MC_MoveAbsolute zwischen 30 % und 70 % ihres Bereichs, so schnell der Handshake erlaubt, für SOAK_SECONDS (Standard 20). Er scheitert, wenn:
- ein Baustein oder eine Achse einen Fehler meldet oder
status.refusednicht leer ist; - eine Achse nach einer Fahrt mehr als 0,2 mm von ihrem Ziel steht;
- der Echtzeitfaktor um mehr als 2 % von 1 abweicht oder die Schrittzahl um mehr als 1 s plus 2 % von der Laufzeit abweicht;
- die mittlere Periode um mehr als 2 ms vom Takt abweicht, der effektive Jitter 10 ms, der größte Jitter 100 ms übersteigt oder mehr als 10 % der Aufwachvorgänge Überläufe sind;
- der belegte Speicher um mehr als 64 MB wächst (nur unter Linux gemessen).
Ergebnis eines Laufs von 20 s unter Windows 11, während alle Kerne mit anderen Builds belegt waren: 26 Fahrten, größte Zielabweichung 0,084 mm, mittlere Periode 10,017 ms, größter Jitter 16,1 ms, effektiver Jitter 4,6 ms, 42 Überläufe in 2030 Takten, Echtzeitfaktor 1,0000, 328898 Schritte. Der Speicher wird unter Windows nicht gemessen. Läufe unterscheiden sich im Jitter mit der Last auf dem Rechner.
Feldbus
Ein simulierter Antrieb an EtherCAT oder PROFINET statt an OPC UA ist in Feldbus-Emulation besprochen.
Feldbus-Emulation: ein simulierter Antrieb an EtherCAT oder PROFINET
Entwurfsnotiz. Die Frage: Kann der Simulator einer echten SPS als Servoantrieb an EtherCAT oder PROFINET erscheinen, sodass die Motion-Software der SPS (TwinCAT NC, CODESYS SoftMotion, S7-1500-Technologieobjekte) ihn wie einen echten Antrieb fährt? Heute spricht die SPS über OPC UA mit dem Simulator (SPS-Inbetriebnahme); das ist azyklisch und weit langsamer als ein Antriebsbus. English version: Fieldbus emulation.
Ergebnis: möglich, aber nicht mit dem Simulator allein. EtherCAT braucht Slave-Hardware; PROFINET RT-Klasse 1 geht mit einer gewöhnlichen Netzwerkkarte unter Linux, braucht aber eine Echtzeitschleife mit 1 ms. Gebaut wurde hier keins von beiden. Die Fakten wurden am 13.11.2026 geprüft; die Quellen sind verlinkt.
Was ein Antrieb am Bus können muss
| EtherCAT | PROFINET | |
|---|---|---|
| Antriebsprofil | CiA 402 über CoE (ETG.6010). Für zyklisch synchrone Lageregelung (CSP): Steuerwort 0x6040, Statuswort 0x6041, Betriebsart 0x6060/0x6061, Sollposition 0x607A, Istposition 0x6064, Istgeschwindigkeit 0x606C und die CiA-402-Zustandsmaschine (Nanotec-Handbuch) | PROFIdrive. Telegramm 1 oder 3 (Drehzahlsollwert, Lageregler in der SPS), Telegramm 105 für S7-1500-Positionierachsen mit DSC (Lageabweichung XERR und Verstärkung KPC von der SPS, Lageregler im Antrieb). Die Wortbelegung der Telegramme 3, 102, 105 und 111 wurde hier nicht an einem Siemens-Listenhandbuch geprüft |
| Gerätebeschreibung | ESI (XML), Vendor-ID von der ETG (mit Mitgliedschaft kostenlos) | GSDML, Vendor-ID von PI |
| Zyklus | 250 µs bis 1 ms, Distributed Clocks mit SYNC0-Jitter unter 100 ns (Synapticon) | RT-Klasse 1: 1 bis 4 ms. IRT (isochron, nötig für DSC im Taktsynchronbetrieb) braucht besondere Hardware |
| Konformität | Hersteller müssen mit dem ETG-Konformitätstest prüfen (ETG); für ein Laborgerät nicht nötig | Zertifizierung durch PI; für ein Laborgerät nicht nötig |
EtherCAT
Ein EtherCAT-Slave verarbeitet jeden Frame im Durchlauf in Hardware, dem EtherCAT Slave Controller (ESC). Eine gewöhnliche Netzwerkkarte kann das nicht; ein konformer Slave braucht also einen ESC.
| Möglichkeit | Was es ist | Lizenz, Kosten |
|---|---|---|
| SOES auf einer ESC-Platine | Quelloffener Slave-Stack von rt-labs. Hardwareschichten für LAN9252 (auch am Raspberry Pi), XMC4, TI Sitara (Repository) | Die Lizenzdatei im Repository nennt GPLv2 mit Linking-Ausnahme, die Produktseite von rt-labs GPLv3 zur Evaluierung und eine kommerzielle Lizenz ab 490 € im Jahr (rt-labs). Platine etwa 50 bis 200 € |
| Beckhoff FC1100 | PCI-Karte mit ET1100-ESC; ein PC wird Slave. Echtzeit laut Beckhoff „eingeschränkt“ (FC1100) | Kommerziell |
| Hilscher cifX mit Firmware NXLFW-ECS | PC-Karte als zertifizierter Slave (Hilscher) | Kommerziell, Karte einige hundert Euro |
| Beckhoff-Brücke EL6695 | Tauscht Prozessdaten zwischen zwei Mastern aus, mit DC (Beckhoff). Der Simulator bräuchte einen eigenen Master (z. B. SOEM) | Klemme und ein zweiter Master; SOEM 2.x ist GPLv3 oder kommerziell |
| TwinCAT TE1111 EtherCAT Simulation | Ein zweiter PC mit TwinCAT bildet die Slaves einer Konfiguration auf einer gewöhnlichen Netzwerkkarte nach, mit DC und CoE (Beckhoff). Ob ein fremdes Programm seine Prozessdaten speisen kann, wurde nicht gefunden | TwinCAT-Lizenz je simuliertem Gerät |
| acontis EC-Simulator HiL | Bildet Slaves auf einer gewöhnlichen Netzwerkkarte nach, gegen TwinCAT- und CODESYS-Master, kann eine FMU rechnen (acontis) | Kommerziell. Die FMU des Simulators (sim-fmi) könnte hier eingesetzt werden |
| Raw-Socket-Slave auf einer Netzwerkkarte | Software-Slave am Ende der Linie (z. B. das alte Projekt ecslave). Keine Verarbeitung im Durchlauf, keine DC-Genauigkeit | Nicht konform; nur gegen nachsichtige Master brauchbar |
SOEM ist ein Master, kein Slave. Es nützt nur auf der Simulatorseite einer EL6695-Brücke.
PROFINET
Ein PROFINET-RT-Gerät sendet und empfängt gewöhnliche Ethernet-Frames; für RT-Klasse 1 reicht eine gewöhnliche Netzwerkkarte unter Linux.
| Möglichkeit | Was es ist | Lizenz, Kosten |
|---|---|---|
| p-net | Quelloffener PROFINET-Device-Stack von rt-labs. Konformitätsklasse A/B, RT-Klasse 1, kein IRT. Linux mit jeder Netzwerkkarte, die Rohframes senden kann (rt-labs) | GPLv3 oder kommerziell. Keine Hardwarekosten |
| pnio (Rust) | PROFINET-RT-Device rein in Rust, Linux, eine Verbindung, nach eigener Angabe mit einer S7-1515 erprobt (docs.rs) | MIT/Apache-2.0. Version 0.1.0 vom August 2026; seine Reife wurde nicht geprüft |
| Hilscher cifX mit NXLFW-PNS | PC-Karte als PROFINET-Device | Kommerziell, Karte einige hundert Euro |
| Siemens SIMIT Unit PN | Hardware, die bis zu 128 oder 256 PROFINET-Geräte gegenüber einer echten Steuerung nachbildet, mit Antriebsverhalten je Telegramm; Zyklus ab SIMIT V10 bis 1 ms (Siemens) | Kommerziell |
Siemens PN Driver ist ein Controller-Stack, kein Device-Stack. PLCSIM Advanced simuliert kein PROFINET IO mit fremden Geräten.
Echtzeitanforderungen und dieser Simulator
Der Simulator rechnet seine Physik in Schritten von 62,5 µs; das ist schnell genug: Ein Schritt kostet beim T-Portal 3 µs Rechenzeit (50 ms je simulierter Sekunde, gemessen). Was nicht passt, ist der Takt. Die Kopplung wacht alle 10 ms auf (einstellbar bis 1 ms), mit dem Timer des Betriebssystems, und rechnet die fälligen Schritte am Stück. Ein Antrieb am Bus muss in jedem Buszyklus antworten:
- PROFINET RT-Klasse 1 mit 1 bis 4 ms: braucht eine Schleife, die in jedem Buszyklus mit einem Jitter weit unter einem Zyklus aufwacht. Unter Linux mit PREEMPT_RT und einem festgelegten Thread ist das üblich. Unter Windows ist das ohne Echtzeiterweiterung nicht erreichbar.
- EtherCAT mit DC bei 250 µs bis 1 ms: Der ESC gibt den Takt vor; der Simulator muss die nächste Istposition vor dem nächsten SYNC0 liefern, in jedem Zyklus. Mit einem ESC an SPI (LAN9252) ist das eine harte Echtzeitschleife unter Linux mit 1 kHz oder mehr.
- Noch vor jedem Bus misst die OPC-UA-Kopplung, wie regelmäßig eine SPS sie erreicht (
status.client_read_*,status.client_write_*, siehe Der Takt des Clients): den Jitter der SPS-Task samt dem dieses Rechners, den ein Buszyklus unterbieten müsste. - Die Sollwertinterpolation des Simulators (
profile.setpoint_interval_s) würde zum Buszyklus, und seine Feldbusverzögerung und sein Feldbusjitter (profile.fieldbus_delay_cycles,fieldbus_jitter_cycles) würden durch den echten Bus ersetzt.
Lizenzen
Das Projekt steht unter MIT/Apache-2.0. GPLv3-Stacks (p-net, SOEM 2.x, SOES nach der heutigen Angabe von rt-labs) dürfen nicht hineingelinkt werden. Sie können als eigener Prozess laufen, der über einen Socket oder gemeinsamen Speicher mit dem Simulator spricht; das lässt die Lizenz des Simulators unberührt, das eigene Programm steht dann unter GPLv3. Das Rust-Crate pnio steht unter MIT/Apache-2.0 und könnte gelinkt werden.
Empfohlener Weg
- Zuerst PROFINET: ein Linux-PC mit PREEMPT_RT, ein zweiter Netzwerkanschluss und ein Device-Prozess (pnio, oder p-net als eigener GPL-Prozess), der je Achse einen Antrieb mit PROFIdrive-Telegramm 3 anbietet und Soll- und Istwerte jede Millisekunde über gemeinsamen Speicher mit dem Simulator austauscht. Auf der Simulatorseite braucht es eine Echtzeitschleife mit 1 ms anstelle des 10-ms-Takts der OPC-UA-Kopplung und eine PROFIdrive-Zustandsmaschine (STW1/ZSW1). Keine Hardware außer einer Netzwerkkarte. Das ist der günstigste Weg zu einer S7-1500 oder einer CODESYS-Steuerung.
- Danach EtherCAT: eine LAN9252-Platine mit SOES als CiA-402-CSP-Slave, deren Prozessdaten über SPI oder einen Socket an den Simulator gehen, mit dem Simulator unter Linux bei 1 kHz. Oder, für TwinCAT-Anwender mit einem zweiten PC, TE1111 oder der acontis EC-Simulator mit der FMU aus sim-fmi, wenn eine Lizenz da ist.
- OPC UA mit PLCopen-Bausteinen bleibt für die virtuelle Inbetriebnahme von Abläufen, bei denen 10 ms und etwas Jitter keine Rolle spielen.
Ist es hier machbar?
Nicht in diesem Schritt. Jeder Weg braucht Hardware oder einen Linux-Echtzeitrechner, um gegen eine echte SPS zu prüfen, eine GPLv3-Grenze oder ein junges Crate, eine neue Echtzeitschleife anstelle des Takts der Kopplung und eine Zustandsmaschine des Antriebsprofils. Ohne SPS und Bus zum Prüfen gebaut, wäre es ungeprüfter Code. Es wurde daher nicht gebaut. Die PLCopen-Schnittstelle über OPC UA ist der Teil, der sich hier prüfen lässt, und sie ist geprüft.
Anbindungen: CAD, FreeCAD, Onshape und der Auslegungsbericht
Der Simulator legt eine Maschine anhand einer Konfigurationsdatei aus. Diese Seite beschreibt, wie Werte aus dem CAD in diese Datei kommen und wie die Bewertungen als Dokument herauskommen, das ein Kunde unterschreibt. Die englische Fassung ist ../integrations.md.
| Teil | Ort | Stand |
|---|---|---|
| STEP → Masse, Schwerpunkt, Trägheit → Konfiguration | tools/cad/step_mass.py | fertig, getestet |
| FreeCAD-Makro: Teile markieren, exportieren, Auslegung prüfen | tools/cad/SimSizing.FCMacro | fertig, ohne Oberfläche getestet und einmal in der Oberfläche |
| Onshape-Masseneigenschaften → Konfiguration | tools/cad/onshape_mass.py | Prototyp: Offline-Weg getestet, API-Weg ungetestet |
| Auslegungsbericht, PDF und HTML | sim-cli report, Knopf „Auslegungsbericht…“ in der App | fertig, getestet |
Woher ein Wert kommt
Jeder Wert einer Konfiguration kann in einem Kommentar direkt darüber sagen, woher er kommt:
# [catalogue] …aus einem Herstellerdokument gelesen oder abgeleitet;# [estimate] …nicht veröffentlicht, unsere Schätzung (mit unterem und oberem Wert in[bounds]);# [cad] <Quelle>: m=…, COM=(…) m, I_com=[[…]] kg m2von den Werkzeugen unten aus einem CAD-Modell berechnet.
Eine Markierung gilt für die Schlüssel direkt darunter, bis zu einer Leerzeile oder dem nächsten Kommentar, so dass
eine Gruppe von Werten eine Markierung teilt; eine [cad]-Zeile, die die CAD-Werkzeuge je Schlüssel schreiben, gilt
nur für den Schlüssel darunter. Eine Markierung im Kommentar am Ende der Zeile eines Schlüssels gilt für diesen. Eine
Markierung direkt über oder hinter einer Tabellenüberschrift ([mass]) gilt für jeden Schlüssel der Tabelle ohne
eigene. Stehen in einem Kommentarblock Markierungen auf mehreren Zeilen, zählt die dem Schlüssel nächste Zeile; nennt
eine Zeile zwei („[catalogue] … its efficiency [estimate]“), werden beide angegeben, und ihr Wortlaut sagt, welcher
Wert welcher ist. Ein Wert in einer Inline-Tabelle (mass = { … }) bekommt keine Markierung. Der Auslegungsbericht
führt jede Eingabe mit ihrer Quelle auf.
Rollen: welches Teil wohin gehört
Teile werden mit einer Rolle markiert. Mehrere Teile einer Rolle werden zusammengefasst: Massen addiert, ein gemeinsamer Schwerpunkt, die Trägheitstensoren mit dem Satz von Steiner dorthin verschoben.
| Maschine | carriage | arm | payload |
|---|---|---|---|
t-gantry | mass.carriage_kg | mass.z_axis_kg | mass.payload_kg |
single-axis | mass.carriage_kg | — | mass.payload_kg |
delta-d3 | mass.platform_kg | mass.upper_arm_kg, upper_arm_cg_m, upper_arm_inertia_kgm2 | mass.payload_kg |
Delta-Oberarm: einen Oberarm so modellieren, dass seine Schulterachse auf der x-Achse des CAD durch den Ursprung
liegt. upper_arm_cg_m ist der Abstand seines Schwerpunkts von dieser Achse, upper_arm_inertia_kgm2 seine
Trägheit um sie.
Geschrieben werden nur Werte in [mass]. Der volle Tensor und der Schwerpunkt stehen im [cad]-Kommentar; die
Modelle nutzen heute nicht mehr davon (zum Beispiel wird geometry.z_com_drop_m des T-Portals nicht aus dem CAD
gesetzt). Zwei Dinge überlassen die Werkzeuge Ihnen: [bounds] eines Werts, der nun aus dem CAD kommt, bleiben, wie
sie waren, so dass --bands ihn weiter über den Bereich der alten Schätzung variiert (enger fassen oder entfernen);
und die upper_arm_*-Werte des Deltas sind der Arm ohne Ellbogenblock, der in mass.elbow_kg steht: den
Ellbogenblock nicht markieren, sonst zählt er doppelt. delta-d3 ist nutzbar, sobald der Simulator diese Maschine
registriert (sim-cli list).
(a) STEP-Dateien
OpenCascade kommt von PyPI (cadquery-ocp, mit Wheels für Python 3.10 bis 3.14):
.venv/Scripts/python -m pip install cadquery-ocp
python tools/cad/step_mass.py MODELL.step --map tools/cad/example-map.toml --machine t-gantry --out cad.toml --report
sim-cli verdicts t-gantry --config cad.toml
Die Zuordnungsdatei gibt Dichten ([materials], kg/m³; Stahl, Aluminium, Edelstahl, POM und Kohlefaser sind
eingebaut) und Regeln [[part]] mit match (ein Muster auf den Produktnamen im STEP), role und material; die
erste passende Regel gilt, nicht zugeordnete Teile werden auf der Fehlerausgabe genannt und nicht gezählt. Die
Längeneinheit der Datei rechnet der Leser in Meter um. --config wählt die Ausgangskonfiguration (sonst die
default.toml der Maschine); sie muss vollständig sein, und nur die zugeordneten Zeilen in [mass] und ihre
[cad]-Kommentare ändern sich, jede andere Zeile bleibt Byte für Byte.
Getestet gegen von Hand gerechnete Körper: Quader, Vollzylinder, Hohlrohr, ein Teil abseits des
Ursprungs, eine Datei in Metern und ein Verbund gegen OpenCascades eigenes Ergebnis (tools/cad/test_cadmass.py).
(b) FreeCAD
FreeCAD 1.x: tools/cad/SimSizing.FCMacro ausführen (Makro → Makros…, mit dem Makroordner auf tools/cad, oder den
ganzen Ordner kopieren). Im Dialog:
- Teile im Baum wählen und mit Rolle und Werkstoff oder einer Dichte markieren. Die Markierungen sind Eigenschaften
des Objekts (
SimRole,SimMaterial,SimDensity), im Eigenschafteneditor sichtbar und in der.FCStdgespeichert. - Einstellungen: Maschine, das Programm
sim-cli, die Ausgangskonfiguration und die Ausgabedatei; in FreeCADs Parametern (Macros/SimSizing) gespeichert. - „Export and check“ fasst die markierten Teile je Rolle zusammen (Formen in mm, in SI umgerechnet, jede in ihrer
globalen Lage), schreibt die Konfiguration mit
[cad]-Zeilen (Quelle: der Name des Dokuments), ruftsim-cli verdictsdarauf auf und zeigt jede Prüfung mit Wert, Grenze, Reserve und Ergebnis, nicht bestandene rot, in einer Tabelle und in der Ausgabeansicht.
Die Logik steht in tools/cad/simsizing.py und läuft ohne Oberfläche; tools/cad/test_freecad_macro.py führt sie
unter freecadcmd an einem markierten Quader und Zylinder aus und vergleicht Massen und Trägheiten mit Handwerten.
Reserve im Makro: sim-cli verdicts gibt keine Richtung an. Stimmt „Wert ≤ Grenze“ mit dem Ergebnis überein, ist es
eine Höchstwert-Prüfung mit der Reserve (Grenze − Wert) / Grenze; sonst eine Mindestwert-Prüfung (Lebensdauern,
Riemenlose) mit (Wert − Grenze) / Wert, wie im Auslegungsbericht.
(c) Onshape: Entwurf und Prototyp
Ziel. Wie bei FreeCAD: Massen und Trägheiten markierter Teile in eine Konfiguration und die Bewertungen zurück.
Wege.
- REST-Anbindung (gewählt). Onshapes Endpunkt
GET /api/v9/partstudios/d/{did}/{w|v|m}/{id}/e/{eid}/masspropertiesliefert Masse, Volumen, Schwerpunkt und Trägheit eines Part Studios, von Onshape mit den dort zugewiesenen Werkstoffen berechnet. Ein kleiner Client liest ihn und schreibt die Konfiguration mittools/cad/cadmass.pywie die beiden anderen Werkzeuge. Läuft überall, wo Python läuft, braucht keinen Code in Onshape. - FeatureScript-Feature. Läuft in Onshape und könnte eine Rolle als Attribut an Teile hängen, kann aber den Simulator nicht aufrufen, und ob es einen Trägheitstensor auswerten kann, wurde hier nicht geprüft. Später zumindest zum Markieren nützlich.
- Onshape-App mit OAuth im Browser, die Bewertungen in Onshape zeigt: braucht einen Server und eine App-Registrierung; der Schritt nach dem REST-Client.
Rollen. Ein Part Studio je Rolle (später ein Teilefilter): der Eintrag -all- seiner Masseneigenschaften ist die
Rolle.
Was bekannt ist. Aus Onshapes Dokumentation (Part-Studios-Leitfaden, API-Schlüssel-Leitfaden): die Antwort hat
bodies["-all-"] mit mass (3 Zahlen), centroid (9), inertia (27), hasMass und massMissingCount; die Zahlen
passen zu SI-Einheiten (Masse durch Volumen im Beispiel ergibt 7850 kg/m³), und jede Größe scheint ihr Wert gefolgt
von unterer und oberer Schranke zu sein. Anfragen werden mit einem API-Schlüssel signiert: HMAC-SHA256 über Methode,
Nonce, Datum, Content-Type, Pfad und Query, jeweils mit Zeilenumbruch, in Kleinbuchstaben, Base64.
Was nicht bestätigt ist, weil es ein Konto und Schlüssel braucht, die dieses Projekt nicht hat: ob der Tensor um
den Schwerpunkt oder um den Ursprung gilt (--inertia-about centroid|origin, Vorgabe centroid), die Reihenfolge der
Schranken und ob eine so gebaute Signatur angenommen wird. Ein Teil ohne Werkstoff macht massMissingCount ungleich
null; der Prototyp lehnt das ab, statt das Teil wegzulassen.
Prototyp. tools/cad/onshape_mass.py:
python tools/cad/onshape_mass.py --machine t-gantry --role carriage=carriage.json --role payload=payload.json --out cad.toml
Eine Quelle ist eine gespeicherte massproperties-Antwort (angemeldet im API Explorer von Onshape speichern: geht ohne
Schlüssel) oder eine Part-Studio-URL, abgerufen mit ONSHAPE_ACCESS_KEY und ONSHAPE_SECRET_KEY (ungetestet).
tools/cad/test_onshape.py prüft die Umrechnung an einer Antwort in der Form des dokumentierten Beispiels, beide
Bezugspunkte des Tensors, das Ablehnen von Teilen ohne Werkstoff und die Signatur gegen das dokumentierte Verfahren.
Zum Fertigstellen, mit Schlüsseln: einen Stahlquader 100 × 200 × 300 mm abseits des Ursprungs modellieren, abrufen und mit den Handwerten vergleichen; das klärt Bezugspunkt und Signatur. Danach ein Teilefilter, damit ein Part Studio alle Rollen enthalten kann.
(d) Der Auslegungsbericht
sim-cli report t-gantry --config crates/machine-t-gantry/exct-30.toml --bands --lang de --out bericht.pdf
Endet --out auf .pdf, entsteht ein PDF (A4), sonst eigenständiges HTML (Diagramme als eingebettetes SVG; bei
Bedarf aus dem Browser drucken). --lang de schreibt ihn deutsch, --bands fügt die Fehlerbänder hinzu, und jede
Option der anderen Befehle (--motor, --set, …) wirkt wie dort. Das Ergebnis (alle bestanden oder wie viele nicht)
steht auf der Fehlerausgabe; der Rückgabewert ist in beiden Fällen 0. In der App schreibt „Auslegungsbericht…“ neben
den Knöpfen der Konfigurationsdatei den Bericht der Konfiguration, wie sie gerade ist, mit Fehlerbändern, wenn sie im
Analysebereich angehakt sind.
Inhalt:
- Maschine: Name, Konfigurationsdatei, Datum, Simulatorversion, Zykluszeit und Gesamtergebnis; die in
[parts]benannten Teile und die Werte aus[mass]und[geometry], jeder mit seiner Quelle. - Zyklus: Motormoment und -drehzahl über den gemessenen Durchlauf und die Arbeitspunkte gegen die Drehmoment-Drehzahl-Kennlinie des Antriebs.
- Bewertungen: jede Prüfung mit Wert, Grenze, Reserve und Ergebnis; nicht bestandene Zeilen rot. Die Reserve ist
eins minus die Auslastung der Prüfung (Wert durch Grenze; bei Lebensdauern und Riemenlose Grenze durch Wert),
negativ heißt überschritten. Die Werte sind die, die
sim-cli verdictsausgibt. - Fehlerbänder (mit
--bands): je Prüfung der niedrigste und höchste Wert mit jedem begrenzten Parameter auf seinen Grenzen und ob der ungünstigste Fall besteht. - Eingaben und ihre Quellen: jeder Wert des Laufs mit
[catalogue],[estimate]oder[cad]aus den Kommentaren, „Teil in [parts]“, wo ein aus dem Katalog benanntes Teil ihn gebracht hat, „für diesen Lauf gesetzt“, wo er von der Datei abweicht (--set, ein Teilename auf der Kommandozeile, eine Änderung in der App), „nicht angegeben“, wo die Datei nichts sagt. - Freigabe: erstellt von, geprüft von und abgenommen vom Kunden, jeweils mit Name, Firma, Datum und Unterschrift.
Das PDF schreibt der Simulator selbst (sim_components::report), mit den Standardschriften Helvetica und ohne fremde
Bibliothek; Zeichen außerhalb von Latin-1 erscheinen als „?“.
Tests
cargo test -p sim-components report
cargo test -p sim-cli --test cli report
SIM_CLI=target/release/sim-cli.exe .venv/Scripts/python -m unittest discover tools/cad
Die Python-Tests überspringen, was sie nicht ausführen können (kein OpenCascade, kein FreeCAD, kein sim-cli, das
die aktuellen Konfigurationen liest), und sagen warum. FREECADCMD nennt freecadcmd, wo es nicht von selbst
gefunden wird.