Skip to main content

Module drive

Module drive 

Source
Expand description

Servo drive: cascaded position (P, the Kv factor), velocity (PI) and current (PI) control on the motor’s own encoder, with feedforward, measurement effects and torque limits. One switch each.

The current controller works on the motor winding as a resistance and an inductance with the back-EMF of the turning rotor: L di/dt = u - R i - ke w, torque = kt i, and |u| limited by the DC link. With Kp = L / T and Tn = L / R the current follows its setpoint with time constant T. The controller holds its voltage over a base step, as an inverter holds it over a PWM period; the winding current is integrated over the step together with the mechanics (Sim::step), so that the electrical power and the work on the shaft come from the same integration.

The one winding stands for the three phases: its current is the RMS phase current and u i is the electrical power, so u is three times the RMS phase voltage. A DC link U gives a phase amplitude of U / sqrt(3), that is U / sqrt(6) RMS: the winding gets sqrt(3/2) U at most (WINDING_PER_DC_LINK).

Structs§

Drive
The loops and filters of one drive.
DriveParams
FieldWeakening
effects.field_weakening: the permanent-magnet synchronous motor in d-q axes. The one winding is the q axis, scaled as the module comment says (current the RMS phase current, voltage three times the RMS phase voltage); the d axis is scaled alike, so that R, L and the voltage limit are the winding’s and the flux linkage is ke / pole pairs. With the electrical speed w = pole pairs * shaft speed: u_q = R i_q + L_q di_q/dt + ke speed + w L_d i_d, u_d = R i_d - w L_q i_q, u_q^2 + u_d^2 <= U^2, torque = kt i_q + pole pairs (L_d - L_q) i_d i_q. Above base speed the drive sets a negative d current, the least that brings the voltage within the circle (DriveParams::d_current_for); i_q^2 + i_d^2 is the RMS phase current squared.
Overload
effects.drive_overload: the drive’s thermal image (i^2 t) of its power unit in two nodes, as the SINAMICS power units model a slow heat sink and the fast chips on it: x = x_s + x_c with x_s’ = ((1 - w) q - x_s) / tau and x_c’ = (w q - x_c) / tau_c, q = (i / I_rated)^2, w the chips’ share of the rise (chip_share). x is 1 at the rated current held. At the trip level the drive lowers its current limit to the base load current, and holds it there until the image is back at 1. The trip level follows from the time the drive gives its maximum current from the rated load: trip = r^2 - (r^2 - 1) ((1 - w) exp(-t_max / tau) + w exp(-t_max / tau_c)) for r = I_max / I_rated. With w = 0 the one node of 14 November 2026.
Phases
The state of a stepper’s or an induction motor’s windings and drive beside the servo’s (Motor); unused for the servo.
Precontrol
What the drive does with the setpoints between and beside the gains, as a SINAMICS S120/S210 in DSC is set up. The default is the drive before 14 November 2026: setpoint held, rigid model, no friction, no balancing.
ResistorHeating
effects.braking_resistor_heating: the braking resistor as one heat capacity, rise’ = (rated_rise P / P_continuous - rise) / tau: at its continuous power it settles at its rated rise, and a peak of its peak power for the duty cycle the catalogue gives (braking_s120.csv) warms it within the time constant.
ThermalNodes
effects.motor_thermal_nodes: three nodes, winding, stator/housing and ambient, as two heat capacities in a chain. The resistances add up to the one-node model’s, rated rise over rated loss, so the settled rises stay; the winding has the share winding_share of it (to the housing) and the time constant winding_time_constant against the housing. The heat capacities add up to the one-node model’s too (thermal time constant over the resistance).

Enums§

DriveMode
How a drive takes its command, as a servo drive’s operating modes. Position: the controller’s plan through the position and velocity loops (the default). Velocity: a speed setpoint from outside, rad/s at the motor, for the velocity loop; the position loop is bypassed. Torque: a torque setpoint from outside, N m at the motor, in place of the velocity loop’s output; both loops are bypassed. Either way the setpoint still passes the torque filter, notch, torque limit and delay, the current loop, the winding and the DC link. Outside position mode the position setpoint tracks the measured position (no following error), as a drive’s tracking mode does.
Motor
motor.kind: “servo” (the default, the permanent-magnet servo motor of this module), “stepper” (stepper::Stepper behind an open-loop step and direction drive) or “induction” (induction::Induction on a frequency converter).

Constants§

WINDING_PER_DC_LINK
Winding voltage per DC link voltage, sqrt(3/2): see the module comment.
WINDING_STATES
The electrical states of a winding in the integration of a base step (Sim::step), per drive: the first state, the electrical energy, the copper loss and the work on the shaft, then three more. The servo’s one winding has its current first and the last three at rest; the other motors keep theirs in Phases::x.

Functions§

s1_curve_of
The printed S1 curve of a config (motor.s1_curve_speed_rad_s, motor.s1_curve_torque_nm): the same number of points each, at least two, finite, speeds rising from 0 or above, torques not negative. Empty where the config has neither key or both empty: the straight line.
s1_interpolated
The S1 torque at speed (either direction) from a printed curve: linear between its points, the first torque below the first speed and the last one beyond the last (the curve ends where the maker’s graph does).
s1_line
The S1 line: from the static torque at standstill straight to the rated torque at the rated speed, and on along that line above it, never below 0.
shared_dc_link
One base step of the DC link that all drives share, after their current loops: one Line Module, one DC link, as 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 drive shows the link’s voltage, the powers of resistor, rectifier and line module and the trip as its own.