pub fn drive_derating(cfg: &Config, article: &str) -> Result<f64, ConfigError>Expand description
The share of its rated output current a catalogue drive gives at the installation conditions of the config
(DRIVE_CONDITION_KEYS); 1 for a config that gives none, and for an article that is neither an S210 converter nor an
S120 Motor Module. A drive of another maker with a condition given is refused (error-drive-derating-none): its rows
state no derating, and silently ignoring the condition would judge it at rated conditions.
S210 (derating_s210.csv, operating instructions Table 12-9): the table of altitude against ambient temperature,
an altitude by the row “up to” the next table altitude, the ambient interpolated linearly between the columns (as
Siemens’ rule trades 5 K for 10 % of the current), the pulse frequency fixed at 8 kHz. S120 booksize Motor Module
(derating_s120.csv): the factors of altitude (10 % per 1000 m above 1000 m), ambient temperature (2.67 % per K above
40 degC) and pulse frequency (a curve by module group), multiplied. Siemens does not say how they combine; the product is
this simulator’s assumption on the safe side. Of Siemens’ two ways to trade altitude (reduce the current by 10 % per
1000 m, or the ambient by 5 K per 1000 m) the current reduction is implemented, not both. Refused, naming the key
(error-drive-derating-range): above 4000 m, above the highest ambient (S210 50 degC, S120 55 degC), below 0 degC, an
S210 pulse frequency other than 8 kHz, an S120 one above 16 kHz or not above 0, and an ambient above 45 degC at 16 kHz.