pub fn apply_drive(
cfg: &mut Config,
article: &str,
supply: &str,
) -> Result<(), ConfigError>Expand description
Puts a drive into a config: an S210 converter of converters_s210.csv or an S120 Motor Module of
motor_modules_s120.csv, by article number. It sets the drive’s rated and maximum output current as
ratings.drive_rated_current_a and drive_max_current_a, where the config has them; verdicts judges the
cycle’s RMS and peak motor current against them (checks drive-current, drive-peak-current). The currents of
a Double Motor Module are per axis. With effects.drive_current_limit the maximum current also limits the simulated
current (DriveParams::torque_range): a cycle that asks more of the drive lags behind and fails the check.
The DC link, where the config has these ratings. An S210 converter (braking_s210.csv, from its operating
instructions) sets dc_link_overvoltage_v to its trip level (410 V on 1 AC, 820 V on 3 AC) and the powers of its
internal braking resistor, braking_resistor_continuous_w and _peak_w; not on the supply “230v” for a 3 AC
converter, where Siemens requires an external resistor and the config’s own values stand for it. Siemens publishes
no switch-on threshold of the braking chopper, so braking_threshold_v stays the config’s estimate; only where that
is at or above the trip level (a config for a 400 V bus scaled to a 230 V converter’s 325 V) it is taken halfway
between the highest line peak the converter is rated for (240 or 480 V + 10 %, times the square root of 2) and the
trip level. Nor does Siemens publish the S210’s DC link capacitance, which stays as the config has it unless
dc_link_measured.csv has one measured on a real drive of that article. An S120 Motor Module sets
dc_link_capacitance_uf from motor_modules_s120.csv, half of it per axis for a Double Motor Module. A Motor
Module has no braking resistor of its own: on the S120 the line-up brakes through a Braking Module, so it sets the
braking from the Braking Module row of braking_s120.csv (6SL3100-1AE31-0AB1 with its 6SL3100-1BE31-0AA0 resistor:
1.5 kW continuous, 100 kW peak, switching on at 770 V as braking_threshold_v) and dc_link_overvoltage_v to the
Active Line Modules’ trip at 820 V (dc_link_trip_s120.csv, from the booksize equipment manual), and switches
effects.shared_dc_link on, where the config has it: the axes of a line-up share its DC link (an S210 converter
switches it off, each has its own). Before 13 November 2026 an S120 drive was
judged against the S210 converter’s internal resistor the config had (100 W, 5.7 kW on the EXCT-30). And it sets
drive.braking_module, so that verdicts judges the axes’ braking power together against the one module (an S210
clears it); until the eleventh review each axis was judged against the whole module.
And ratings.drive_base_load_current_a, the current the drive falls back to when its thermal image trips
(effects.drive_overload): an S120 Motor Module’s from motor_modules_s120.csv; for an S210 converter, whose base load
current Siemens does not publish, S210_BASE_LOAD_SHARE of its rated current [estimate].
The rated and the base load current are those of the drive’s rated conditions, derated by drive_derating for the
installation conditions the config gives (ratings.drive_ambient_c, drive_altitude_m, drive_pulse_frequency_hz;
absent: the rated ones, and every figure as the catalogue has it). The maximum current is not derated. A drive
of another maker, whose rows state no derating, is refused when the config gives a condition.