Skip to main content

BallScrew

Struct BallScrew 

Source
pub struct BallScrew {
Show 19 fields pub lead: f64, pub nominal_diameter: f64, pub root_diameter: f64, pub length: f64, pub mounting: Mounting, pub efficiency: f64, pub back_efficiency: f64, pub nut_stiffness: f64, pub bearing_stiffness: f64, pub preload: f64, pub dynamic_rating: f64, pub static_rating: f64, pub load_factor: f64, pub static_safety: f64, pub speed_factor: f64, pub buckling_safety: f64, pub max_dn: f64, pub axial_damping_ratio: f64, pub fixed_bearing_at: Option<f64>,
}
Expand description

A ball screw: shaft, nut and the bearings that hold the shaft. The nut moves the load by lead per turn.

Config [screw]: lead_m, nominal_diameter_m, root_diameter_m, length_m (between the bearings, or from the fixed bearing to the free end), mounting (as Mounting::parse), efficiency, friction_coefficient (with effects.screw_lead_efficiency, lead_efficiency), nut_stiffness_n_m, bearing_stiffness_n_m, preload_n, dynamic_load_rating_n (Ca), static_load_rating_n (C0a), load_factor (fw), static_safety_factor, critical_speed_factor, buckling_safety_factor, max_dn (d n with d in mm and n in r/min; 0 for none), and optionally axial_damping_ratio (the damping ratio of the mass behind the nut on the screw’s axial spring, from the nut, the bearings and the guides: Converter::apply_back; 0 where it is absent). With effects.screw_stiffness_with_position (off where absent), fixed_bearing_at_m: the joint’s travel at which the fixed bearing stands (TravelCompliance).

Fields§

§lead: f64§nominal_diameter: f64§root_diameter: f64§length: f64§mounting: Mounting§efficiency: f64§back_efficiency: f64

Driven back by the load, with effects.screw_lead_efficiency (lead_back_efficiency); the forward one otherwise.

§nut_stiffness: f64§bearing_stiffness: f64§preload: f64§dynamic_rating: f64§static_rating: f64§load_factor: f64§static_safety: f64§speed_factor: f64§buckling_safety: f64§max_dn: f64§axial_damping_ratio: f64§fixed_bearing_at: Option<f64>

With effects.screw_stiffness_with_position: the joint’s travel at the fixed bearing, m. None: the stiffness is the one at the position converter is given for the whole stroke.

Implementations§

Source§

impl BallScrew

Source

pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>

Source

pub fn lead_efficiency(lead: f64, nominal_diameter: f64, mu: f64) -> f64

The rolling efficiency of a ball screw driving its nut, from its lead angle beta = atan(lead / (pi d)) and the balls’ friction coefficient mu (THK’s formula): (1 - mu tan beta) / (1 + mu / tan beta), tan beta / tan(beta + rho) with mu = tan rho. effects.screw_lead_efficiency puts it in place of screw.efficiency, which is a catalogue’s lumped figure that holds the nut’s preload drag too; the preload drags apart (preload_torque).

Source

pub fn lead_back_efficiency(lead: f64, nominal_diameter: f64, mu: f64) -> f64

The efficiency of the load driving the screw back (THK): (1 - mu / tan beta) / (1 + mu tan beta). Zero or less where tan beta <= mu: the screw locks itself (from_config refuses that). It is the driving one with force and motion swapped, tan(beta - rho) / tan(beta) with mu = tan rho.

Source

pub fn ratio(&self) -> f64

Screw radians per metre of travel: 2 pi / lead.

Source

pub fn inertia(&self) -> f64

The shaft’s moment of inertia about its axis, a solid steel cylinder of the nominal diameter: pi rho L d^4 / 32.

Source

pub fn critical_speed_rpm(&self) -> f64

The first bending mode of the shaft as a speed, r/min: n = 60 / (2 pi) (lambda L)^2 / L^2 sqrt(E I / (rho A)), a uniform beam of the root diameter over length.

Source

pub fn allowed_speed_rpm(&self) -> f64

The highest screw speed the cycle may reach, r/min: the critical speed times critical_speed_factor (makers ask for 0.8).

Source

pub fn buckling_load(&self) -> f64

Euler’s buckling load of the shaft, N: factor pi^2 E I / L^2 with the mounting’s factor.

Source

pub fn allowed_buckling_force(&self) -> f64

The highest axial force allowed against buckling: the buckling load over buckling_safety_factor.

Source

pub fn allowed_static_force(&self) -> f64

The highest axial force allowed by the static rating: C0a over the static safety factor.

Source

pub fn stiffness(&self, x: f64) -> f64

Axial stiffness between the motor’s shaft angle and the nut, N/m, with the nut x from the fixed bearing (the fixed-fixed shaft held at both ends: A E L / (x (L - x))): shaft, nut and bearings in series. The shaft’s share at least that of its whole length.

Source

pub fn preload_torque(&self) -> f64

The drag torque of the nut’s preload, N m (THK’s formula): K Fpr l / (2 pi), K = 0.05 / sqrt(tan beta), beta the lead angle atan(l / (pi d)).

Source

pub fn equivalent_load(&self, force: f64) -> f64

The load each ball track of a preloaded double nut carries under an axial force: Fpr (1 + Fa / (2.83 Fpr))^(3/2) until the force lifts the preload off the other nut (at 2.83 Fpr), the force itself beyond (Hiwin’s catalogue).

Source

pub fn damage_rate(&self, force: f64, rpm: f64) -> f64

The share of the nominal life (L10 = (Ca / (fw Fm))^3 10^6 turns, ISO 3408-5) used per hour at an axial force and a screw speed (r/min): 60 |n| (fw F_eq / Ca)^3 / 10^6. Its mean over a cycle is one over the life in hours.

Source

pub fn dn(&self, rpm: f64) -> f64

d n, the nominal diameter in mm times the speed in r/min, against max_dn.

Source

pub fn converter(&self, x: f64) -> BackDriven

The screw as a converter, stiff as it is with the nut at x from the fixed bearing. Every builder passes softest_position(). Without fixed_bearing_at that is the joint gearbox’s stiffness for the whole stroke, which judges resonance and settling on the safe side; with it the gearbox follows the nut from there (travel).

Source

pub fn travel(&self, x: f64) -> Option<TravelCompliance>

The shaft’s compliance along the travel with x as the reference (TravelCompliance), where it follows the nut.

Source

pub fn softest_position(&self) -> f64

Where the shaft is softest: its far end, or its middle where both ends are fixed.

Source§

impl BallScrew

The signals and rating checks of a ball screw on joint id (one of chain::MOTOR_IDS, its motor motor): screw speed (r/min), d n, and the share of its life used per hour, from the joint’s speed and force (signal joint.<id>.force). Checks: “screw-speed” (against allowed_speed_rpm), “screw-dn” (where max_dn is set), “screw-buckling” (|force| against allowed_buckling_force; pulling too, on the safe side), “screw-static” (against allowed_static_force) and “screw-life” (against required_life_h, where set).

Source

pub fn signal_infos(&self, id: &str, key: &'static str) -> Vec<SignalInfo>

Source

pub fn signals(&self, speed: f64, force: f64, out: &mut Vec<f64>)

Joint speed (m/s) and force (N) to the values of signal_infos.

Source

pub fn rating_checks( &self, id: &str, motor: usize, required_life_h: Option<f64>, ) -> Vec<RatingCheck>

Trait Implementations§

Source§

impl Clone for BallScrew

Source§

fn clone(&self) -> BallScrew

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BallScrew

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for BallScrew

Source§

fn eq(&self, other: &BallScrew) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for BallScrew

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.