Skip to main content

Module machine

Module machine 

Source
Expand description

The machine interface: the one trait a kinematics has to implement.

Structs§

AxisInfo
A tool-side axis. key is a translation key, id is used in signal ids and config paths.
BeltSection
A belt section for the belt view: the id its signals start with, <id>.tension (N) and <id>.stretch (m, its length less that of its belt unstretched), who it is as a translation key, and the tension it has at rest.
CamMaster
The master of an electronic cam that a machine runs as its cycle instead of [[cycle.segment]] (Machine::cam): its steady speed (its unit per second), its travel per pass of the cycle, and how long it takes from rest to that speed and back (a sin^2 ramp, sim_components::cam::master_at).
FrameMomentum
What everything that moves on a machine’s base does to it, for effects.base_compliance (Machine::frame_momentum). In the frame of the tool pose’s x, y and z (m; an axis the machine lacks stands at 0), about its origin. A part whose mass does not change may leave out what of it does not move (its mass at a joint, the frame’s own): the base takes the load against that at rest at the start pose, so a constant cancels.
FrictionContact
A friction contact with a Coulomb, viscous and Stribeck model, for the friction view: the id its signals start with (see FRICTION_SIGNALS) and who it belongs to, as a translation key.
MachineEntry
One line of the registration list.
Mode
A structural mode of a machine at a pose, from Machine::modes.
MotorInfo
RatingCheck
A rating of one of the machine’s own parts that the cycle is judged against (Machine::rating_checks), beside the checks every machine gets from its motors, drives, gearbox, guides and belts. The analysis follows the signal signal (one of signal_infos, among the base signals) over the measured pass.
SignalInfo
One scope trace and one PLC variable. The label is built from two translation keys.
ThermalPart
A part that warms with one of the machine’s loss powers, power.<id>, with effects.part_heating: of which kind (THERMAL_KINDS), who it belongs to as a translation key, and which part of the scene shows it: the scene_index-th part with the id scene_part.
Train
A motor’s elastic drive train as the time-optimal plan allows for it (Machine::trains), reduced to two masses on a spring: the rotor’s side and the load’s, referred to the motor.

Constants§

BASE_AXES
The tool axes a base’s motion moves (Machine::base_shift): those with these ids, by translation [x, y, z] and by tilt about [x, y, z].
ENERGY_PARTS
The machine’s energy split, as the signals energy.<part> (J), quantity keys quantity-energy-<part>. They add up to Machine::energy.
FRICTION_SIGNALS
What the signals of a friction contact end with, after its id (<id>.friction_<part>): its sliding speed, its force split into Coulomb, viscous and stiction parts (they add up to the signal <id>.friction), and the factor its levels are scaled with by the load.
LOSS_PREFIX
Signals whose id starts with this are powers lost (W) in one place of the machine: a friction contact, a damper, the gearbox. Together with the energy signals they close the machine’s energy balance: the work of the motor torques equals the change of energy.* plus the time integral of every power.*.
TEMPERATURE_PREFIX
What the simulation calls the temperature rise of a ThermalPart (temperature.<id>, K).
THERMAL_KINDS
The kinds of part that can warm with their loss power (ThermalPart); each has the config keys thermal.<kind>_resistance_k_w, thermal.<kind>_time_constant_s and thermal.<kind>_max_rise_k, and the quantity key quantity-<kind>-temperature.
TORQUE_PARTS
The parts of a motor’s torque that a machine can report as the signals motor.<id>.torque_<part> (N m), with the quantity keys quantity-torque-<part>: what accelerates the moved masses and the rotors, what holds them against gravity, what friction takes (guides, shafts, gearbox losses, idlers, cable chain), and the rest (belt elasticity and vibration, ripple, tooth meshing, process force, end stops). The rest is the motor torque less the other three, so the four add up to the motor torque.

Traits§

Machine

Functions§

tool_force_on_rates
The generalised force of a force on the contact coordinates (Machine::set_tool_force, by default the tool’s) on each of the state’s rates rates: its virtual power per unit of each rate, F . d v / d s_j, with their rates v as contact_state gives them, linear in the state’s rates (a unit step on each is exact). Its power on the rates is then F . v, what the simulation books as the obstacles’ work. None where the force is zero.

Type Aliases§

CamCurve
An electronic cam’s curve as Machine::cam_at reads it, on its own (Machine::cam_curve): each slave at a master position, as [s, s’, s’‘, s’‘’].