PM DC Machine (dcPm)
A DC motor with magnets and a single armature winding.
Group: Machines · Kind: {"kind":"machine","model":"dcPm"}
When to use it
Use it for small brushed DC motors and servos driven by a chopper or an H-bridge. Use DC Machine when you need to control the field.
Pins
| Pin | Domain | Meaning |
|---|---|---|
ap |
electrical | Armature positive, current in gives positive torque |
an |
electrical | Armature negative terminal |
shaft |
mechanical | Mechanical shaft, speed in rad/s |
Common parameters
ke: Voltage made per unit of speed (Default: 0.5)ra: Resistance of the armature winding (Default: 0.5)la: Inductance of the armature winding (Default: 5m)j: How strongly the rotor resists speeding up (Default: 1m)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
ra |
Ω | 0.5 | Resistance of the armature winding | |
la |
H | 5m | Inductance of the armature winding | |
ke |
V·s/rad | 0.5 | Voltage made per unit of speed | |
j |
kg·m² | 1m | How strongly the rotor resists speeding up | |
b |
N·m·s/rad | 0 | Friction that grows with speed | |
w0 |
rad/s | 0 | Shaft speed at the start |
Parameter descriptions are in English in both languages.
Model
The back-EMF constant equals the torque constant. The equations are va = ra·ia + la·dia/dt + ke·ωm and Te = ke·ia, so in steady state the speed is ωm = (va - ra·ia)/ke. When va falls below ke·ωm the current reverses and the machine brakes, which a one-quadrant chopper cannot carry. Brush drop, friction other than b and temperature effects are not modelled. The armature current is i(M1.a).
Common mistakes
- ke in V·s/rad equals the torque constant in N·m/A, so enter it once. Convert values given in V per krpm or mN·m/A first, for example 10 V per krpm is 0.0955 V·s/rad.
- The stall current is the voltage divided by ra, far above the continuous rating. Limit the current with a loop, and never start the shaft at full voltage without one.
- A buck chopper built on a diode cannot return braking current to the source. Lower the speed reference only slowly, or use a two-quadrant stage, because otherwise the current loop cannot go negative.
Datasheet and sources
Take ke from the back-EMF constant or the torque constant, ra and la from the terminal resistance and inductance, and j from the rotor inertia. Resistance rises with winding temperature, so use the value at the operating temperature.
Example
Open the example with the command file.openExample and the name demo:dcPm.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.