Skip to main content

search_supplies_of

Function search_supplies_of 

Source
pub(crate) fn search_supplies_of(
    args: &Args,
    cfg: &Config,
) -> Result<Vec<&'static str>, Failure>
Expand description

search <machine>: every motor of the catalogue on the cycle of the config, each with the drive the catalogue pairs with it, the passing ones first, cheapest first (installed weight stands in for the price). --series PREFIX limits it to article numbers starting that way, --supply picks 230v or 400v (S210) or s120 (the S120 motors and Motor Modules), by default the config’s own parts.motor_supply, else 400v; or any other of catalog::SUPPLIES (another maker’s at a line voltage, or the S210 with the new 6SL5310 converters). --vendor NAME keeps the supplies of that maker (vendor_of; “all” every maker), all of them where --supply names none; the candidates of several supplies are ranked together, each with its supply. --gearboxes SERIES also tries each motor with the fitting gearboxes of that series, on a machine that has a gearbox; a motor none fits with the config’s own gearbox. SERIES is a maker (wittenstein), a maker’s series (wittenstein-sp, neugart-ple, siemens-nrk), “” for all, or a prefix of the size (NRK, as before); see catalog::gearboxes_for_motor. --axes tries every motor on every axis of the catalogue of the machine’s kind as well, the axis’s weight in the cost: belt axes, and for a screw, rack or linear motor machine the ball screws and guide sets (catalog::mech_axes; a linear motor machine’s motors are the supply’s linear motors). --motor-id ID sizes one motor of a machine with several (a machine file’s): each candidate becomes that motor’s own [parts.ID], the other motors stay as the config has them, and the cost, the tightest check, the peak torque and the winding rise are that motor’s alone (catalog::search_motor); not with --axes. Says on the error stream how many candidates could not be simulated (the reason is in the table), with --gearboxes how many motors no gearbox of the series fits, and how long the search took on how many processors.

The wide table (search::Figures) follows the parts and the tightest check: rank, front (search::front), cycle time, energy, thermal and drive current utilisation, following and settling error, inertia ratio, the failing checks, what is estimated, and one column u_<check> per check. --rank-by orders the passing ones (search::rank_by), --drives paired|neighbours|all the drives tried with each motor (catalog::Drives), several --config FILE with --weights a duty mix (catalog::Options::duties), and --robust N judges the first N passing ones at the worst corner of their bounds (search::robust_ranking), with four columns more and on the error stream whether the order changes. The supplies a search on cfg runs at: --supply, else the config’s own (parts.motor_supply), else 400 V; with --vendor that maker’s supplies (“all”: every one), all of them unless --supply names one.