Skip to main content

Module control

Module control 

Source
Expand description

Motion controller: plans in tool coordinates, transforms to motor setpoints, and runs one drive per motor. It works on any machine through the machine interface.

Structs§

CommandError
A command the controller refuses; key is a translation key.
Controller
GantrySync
How the two drives of a dual-drive gantry are kept in step, beyond each following the common setpoint.
LimitViolation
An axis limit that asks more of a motor than the drive allows; key is a translation key.

Enums§

Command
StopCategory
The stop categories of IEC 60204-1 as servo drives make them (SINAMICS: STO / OFF2, OFF3, and a stop that holds).

Functions§

cam_peaks
With Machine::cam: per tool axis (a slave) the highest speed, acceleration and jerk the cam asks of it at the master’s steady speed (the cam’s first three rates over the master times v, v^2 and v^3) over a period, at 4000 points; empty without a cam. check_limits reports them against the axis limits, the verdicts judge them (analysis).
check_limits
Checks that the axis limits do not ask more of a motor than its drive and motor allow (drives, each motor’s own, in the order of Machine::motors): the motor speed at the highest axis speeds against the motor’s maximum speed (DriveParams::max_speed), and the torque of the rigid machine at the highest axis accelerations against its torque-speed curve at that speed (or the torque of the drive’s maximum current, where lower). A diagonal move loads one motor with both axes, so every combination of axis directions is tried, at the middle pose.
lines_through
The path of a cycle segment with corners_m: lines through its via points to the target, whose corners the planner rounds within that tolerance (path::round_corners): a lift, traverse and lower through the two corners at the lift’s height, passed without a stop.
rigid_inertias
Each motor’s moment of inertia in the rigid, loss-free model at a tool pose: the torque it needs for a unit acceleration of its own while the others stand, less what it needs at rest (gravity). What a drive’s constant-inertia precontrol is set to (S120 p1498, the load’s inertia, plus the motor’s).
via_pieces
The path of a cycle segment through its via points (via in [[cycle.segment]]): a line to the first, a smooth curve (Piece::Spline) through the others, and a line from the last to the target. So the path leaves its start and arrives at its target on straight lines, and rounds the corners in between: with via points straight above the start and the target, a lift, traverse and lower without a stop. One via point alone is two lines, with a stop between.