← All projects

Motion control and motor sizing

Servo-axis cycle planner

Jerk-limited motion profiles with motor-duty integration, load-corner checks, and a synthetic tracking study.

Implemented planner with executed motor-duty and tracking studies

Selected shuttle velocity over a complete inspection cycle.
Selected shuttle velocity over a complete inspection cycle.

Implementation

Exact piecewise integration of jerk into acceleration, velocity and position. Short moves omit phases without violating their limits.

Polynomial torque extrema and duty integrals include translating mass, screw efficiency, rotating inertia, friction, copper losses and regenerative power.

Forty-eight motion settings are compared at five declared load and efficiency corners. The output retains rejected limits and selects the shortest accepted grid cycle.

The commissioning counterpart executes second-order tracking, command quantization, overloaded-load rejection and integration refinement using declared synthetic inputs.

Inputs and assumptions

  • Horizontal 320 mm inspection shuttle with 22 kg nominal moving mass, 20 mm screw lead, 0.25 s outward dwell and 0.35 s return dwell. All quantities are editable SI inputs.
  • The selected drive envelope is a reference input: 0.30 N m continuous, 0.62 N m peak and 1,800 rpm. It does not identify a commercial motor.
  • Five corners cover mass, friction, transmission efficiency and rotating inertia. The combined corner uses 30 kg moving mass.
  • The tracking model assumes position/velocity command feedforward, a 0.75 damping ratio and declared 25, 35 or 8 Hz bandwidth. It is not fitted to measured hardware.

Results

RECORDED ANALYSIS

Inspection shuttle velocity

Compare the included analysis results.

Charts display stored numerical results, not live solver runs.

Recorded results for the included reference case
Candidate/corner calculations240
Accepted motion settings35 of 48
Selected complete cycle2.39667 s
Worst-corner RMS torque0.26 N m
Worst-corner peak torque0.55827 N m
35 Hz synthetic following error0.04992 mm
Report figures (4)
Calculated position, velocity, acceleration and jerk for the selected shuttle cycle
Calculated position, velocity, acceleration and jerk for the selected shuttle cycle
Calculated shaft torque and estimated bus power through the complete cycle
Calculated shaft torque and estimated bus power through the complete cycle
Cycle time and worst-corner RMS torque for the 48-setting grid
Cycle time and worst-corner RMS torque for the 48-setting grid
Synthetic following error at three declared loop bandwidths
Synthetic following error at three declared loop bandwidths

Open the full report ↗

Verification

20 regression tests and 15 additional acceptance checks pass. The study evaluates 240 candidate/corner runs, exact energy balances, independent quadrature, a rejected overload and a rejected low-bandwidth tracking case.

python run.py && python verify.py && python complete_validation.py
Download the verification record ↓

Additional scenarios

15 outcomes checked through executed numerical and synthetic commissioning study. The report lists the expected and observed outcomes for each check.

Read the validation report ↗

Project files

The ZIP contains the source, inputs, results, and instructions. These files are also available individually.

Download project ZIP · 596 KB
Archive checksum

SHA-256

5eeecccf22c25f8e56cf34e19dadc5b9ce35cc03f846eea71f89a042d8f07706

Run locally

Python 3.12+ / NumPy 2.3.5 / SciPy 1.17.0 / Matplotlib 3.10.8

Extract the ZIP and open a terminal in the servo-axis-planner folder. The README includes setup and usage details.

python -m pip install -r requirements.txt
python run.py
python verify.py
python complete_validation.py

Limits

  • The solver covers one horizontal axis with symmetric rest-to-rest moves. Vertical holding loads and arbitrary moving endpoint states are excluded.
  • The motor envelope, efficiencies, friction and loop bandwidths are declared assumptions. No physical motor selection, drive tuning or measured accuracy is claimed.
  • Regeneration includes the declared copper and conversion losses but does not model bus capacitance, voltage excursions or a selected resistor.
  • Structural flexibility, backlash, screw critical speed, bearing life, winding temperature, safety limits and emergency stopping are outside this design study. The exported CSV is not machine-control firmware.