Skip to main content

apply_axis

Function apply_axis 

Source
pub fn apply_axis(
    cfg: &mut Config,
    name: &str,
    entry: Option<&MachineEntry>,
) -> Result<(), ConfigError>
Expand description

Puts an axis of the catalogue into a config (axis_names): pulley radius, the belt (as apply_belt for the Megadyne belt of its profile and width; EA from the maker’s own stretch where it states one, Festo), the teeth in mesh (half the pulley’s), the torque the pulley allows (Festo’s maximum torque; Bahr’s peak feed force times the radius) where the config rates it, and the moved masses. The config’s strokes stay, except that an EXCT gets the shortest Z stroke Festo offers that holds the config’s. A stroke the axis does not have is refused, and so is an axis for another kind of machine (an X/Z gantry axis on a config without a Z stroke).

Moved masses: Bahr’s gantry sheets state them per axis (Z axis: the Z mass; carriage: the X mass less it). Bahr’s single axes state none, and the config’s carriage stays. Festo states the mass its torque formula holds against gravity (the Z axis) and the formula’s constant, in which carriage, Z axis, pulleys and belt are lumped. With a machine at hand (entry) the carriage is set so that the machine’s own torque at 45 degrees (ax = az, a = 1 m/s², no payload, the gearbox taken out) is Festo’s, as the hand-written exct-30.toml was; without one (a config only read for its ratings) the carriage stays.

A mechanical axis (mech_axes): ball screws by part number and guide sets as “x”, joined by “+” (e.g. “R25-20K4-FSC+HGH25CAx4”), as mechanics::apply_mech_axis puts them in.