Skip to main content

SCARA_TOOL_CONFIG

Constant SCARA_TOOL_CONFIG 

Source
pub const SCARA_TOOL_CONFIG: &str = "# The SCARA in tool space: the default config (config/common.toml, then config/scara.toml) with\n# kinematics.tool_space on and a cycle of straight lines of the tool. A test holds it to the default but for those.\n# Run it with: sim-cli run --machine scara --config crates/machine-joint-kit/config/scara-tool.toml --cycle\n\n# What every machine of this crate shares (config/common.toml); the machine\'s own part follows [profile] below.\nformat_version = 1\n# Obstacles the machine must not touch, as for every machine (see docs/config-reference.md): a list of\n# { name, centre_m, size_m } boxes, or [[obstacles]] tables. None by default.\nobstacles = []\n\n# Parts by name from the catalogue in catalog/, as for every machine (see docs/config-reference.md). \"\" names none:\n# the numbers in this file are used as written.\n[parts]\nmotor = \"\"\nmotor_supply = \"400v\"\n# Motor options: the holding brake (its inertia and weight) and the encoder (\"\" keeps drive.encoder_counts_per_rev;\n# \"AS22DQC\", \"AM22DQC\", for a 1FT2 also the 26-bit \"AS26DQC\", \"AM26DQC\").\nmotor_brake = false\nmotor_encoder = \"\"\ngearbox = \"\"\ndrive = \"\"\nbelt = \"\"\naxis = \"\"\n\n# One switch per effect.\n[effects]\n# The frame or stand under the machine gives way on springs ([base]): it sways under the motors\' reactions and the\n# moving masses and takes the tool with it. Off in the shipped configs: the stiffnesses are [estimate]s.\nbase_compliance = false\n# With base_compliance, two-way: the machine feels its base\'s sway (its motors see it and hold against it) and\n# the base\'s energy is in the budget. Off: one-way, the base sways under the machine.\nbase_reaction = false\n# The URDF arms\' links bend, each in its first Euler-Bernoulli mode in the plane its joint turns it in ([link_bending]):\n# the tool rings with them. Not on the slides and the table, which have no links. Off in the shipped configs: the\n# sections are [estimate]s.\nlink_bending = false\n# The links\' bending acts back on the joints (with link_bending): joints, gearboxes and links one coupled system, the\n# bending\'s energy in the machine\'s. Off in the shipped configs.\nlink_bending_reaction = false\n# A parallelogram rod\'s axial stiffness in series with the gearbox of the joint it carries. Off as shipped.\nbar_elasticity = false\n# The forearm a parallelogram\'s rod turns rocks on the rod\'s spring as a joint of its own. Off as shipped.\nbar_rocking = false\ngravity = true\npayload = true\n# The arms\' payload swings on a pivot at the flange (arm.payload_swing_*): two joints no motor drives. Off here; read\n# by the arms only.\npayload_swing = false\n# Gearbox, coupling, screw or rack twist and stretch under load: motor and load are two bodies per joint. Off, the\n# machine is the rigid reference model, in which the motor turns with the joint times the ratio.\njoint_elasticity = true\n# Friction in the joint: bearings, guides, the screw nut\'s preload.\njoint_friction = true\nmotor_friction = true\ngearbox_backlash = true\ngearbox_efficiency = true\n# The ball screw\'s efficiency from its lead angle and its balls\' friction (screw.friction_coefficient, THK\'s\n# formula) in place of screw.efficiency, a catalogue\'s figure that holds the nut\'s preload drag, which drags apart.\n# Off in the shipped configs: their sizing was done with screw.efficiency.\nscrew_lead_efficiency = false\n# The screw\'s axial stiffness follows its nut: the shaft between the fixed bearing and the nut, E A / a (held at both\n# ends a (L - a) / (E A L)), with the nut a from the bearing at its travel (screw.fixed_bearing_at_m), in place of the\n# far end\'s for the whole stroke.\nscrew_stiffness_with_position = true\n# The efficiency\'s loss as a friction in the gearbox\'s mesh: in proportion to the torque it passes, against the\n# motion at any speed, and sticking at rest inside its band (a gear holding a load stands for anything between the\n# torque that lowers it and the one that lifts it). Off: the loss fades in below 0.5 W, a gear at rest has none.\ngearbox_mesh_friction = true\n# The gearbox\'s no-load running torque at its input, over speed and its lubricant\'s temperature (gearbox.no_load_*):\n# gearbox.efficiency then holds at gearbox.efficiency_torque_nm and falls at part load. Off here: on in the delta\n# pickers D2 and D3, whose sizing was redone with them.\ngearbox_drag = false\n# The motor shaft\'s seals and bearings break away above their sliding level along a Stribeck curve\n# (motor.friction_breakaway_nm, friction_stribeck_rad_s).\nmotor_stiction = false\n# A slide\'s guides hold a load at rest within their breakaway force without creeping and turn over a presliding travel\n# at a reversal: a presliding friction state (slide.presliding_stiffness_n_m, friction_breakaway_n, friction_stribeck_m_s)\n# in place of the smoothed Coulomb step. Read by the slides only (screw, rack, linear motor, the SCARA\'s screw).\nslide_presliding = false\n# The gearbox\'s flanks take the load over a band beyond the backlash, with a hysteresis (gearbox.lost_motion_band_rad,\n# hysteresis_rad).\ngearbox_lost_motion = false\n# A strain wave gear\'s three-segment stiffness, K1 to T1, K2 to T2, K3 beyond (gearbox.stiffness_*). Off in the shipped\n# configs.\ngearbox_stiffness_curve = false\ntorque_ripple = true\nhard_stops = true\nholding_brake = true\n# The holding brakes engage brake.engage_delay_s after they are asked to hold (the torque off) and release\n# brake.release_delay_s after they are asked to let go; a hanging axis sags while its brake engages. Off by default, so\n# that earlier results stay as they were.\nbrake_delay = false\nvelocity_feedforward = true\ntorque_feedforward = true\n# The drive runs the position setpoint on between profile cycles from the last setpoints (pos + v t + a t^2 / 2),\n# as its speed feedforward runs on: a SINAMICS drive\'s fine interpolation, which a position loop at the speed loop\'s\n# cycle (DSC) needs once the profile cycle is longer than the position cycle. Changes nothing while they are equal.\nfine_interpolation = true\n# Friction feedforward (S120 p3820-p3839): with drive.friction_feedforward_model = \"machine\" the friction of the\n# machine\'s own model at the planned speed, else the characteristic drive.friction_feedforward_*. On: it cuts the\n# following error while moving and the settling at the pick (docs/validation.md).\nfriction_feedforward = true\n# The position loop closes on a load-side scale (S120 direct measuring system, drive.load_encoder_step) instead of\n# the motor encoder, which stays for the speed loop.\nload_encoder = false\nencoder_resolution = true\nvelocity_filter = true\ntorque_filter = true\nnotch_filter = false\ntorque_limit = true\n# The drive gives no more than its maximum output current, ratings.drive_max_current_a: the torque setpoint is held to\n# the torque of that current where it is below the motor\'s limit. Without the rating nothing is held.\ndrive_current_limit = true\n# Off here (14 November 2026): the drive\'s overload over time by its thermal image (ratings.drive_base_load_current_a,\n# drive_overload_time_constant_s, drive_max_current_time_s) and the motor\'s three thermal nodes\n# (motor.winding_resistance_share, winding_time_constant_s). On: field weakening of the d-q motor model\n# (motor.pole_pairs, d_inductance_h).\nfield_weakening = true\ndrive_overload = false\nmotor_thermal_nodes = false\n# Motor electrical and thermal model (14 November 2026). On here: field weakening above (the d-q voltage limit), the\n# stator\'s iron loss heating the motor (motor.stall_current_a) and the braking resistor\'s temperature\n# (ratings.braking_resistor_time_constant_s, braking_resistor_rated_rise_k; with dc_link only). Off: the magnets\' flux\n# over temperature (motor.magnet_temperature_coefficient_1_k).\niron_loss = true\nmagnet_temperature = false\nbraking_resistor_heating = true\ncorner_blending = false\ninput_shaping = false\nback_emf = true\nvoltage_limit = true\nwinding_heating = true\npart_heating = false\nthermal_feedback = false\n# The cycle analysis measures its pass with the windings (winding_heating) and, with thermal_feedback, the parts at the\n# rises they settle at on the cycle, iterated from cold to a fixed point, not from cold. Nothing to do where nothing\n# warms back on the run.\nthermal_warm_start = true\ntorque_saturation = true\ndrive_delay = true\ndc_link = true\nshared_dc_link = false\nregenerative_supply = false\nfieldbus_delay = false\nfieldbus_jitter = false\nsensor_noise = false\nshaper_follows_pose = false\n# Obstacles push back on a part that goes into them with their contact stiffness and damping, so that the axes in\n# contact are blocked (see docs/model-reference.md). Off by default; without obstacles it changes nothing.\ncrash = false\n# The drives watch their following error, their standstill and their torque limit ([drive] fault_reaction and the\n# keys after it); one that trips stops all, each by its fault reaction. Off by default, so that earlier results\n# stay as they were.\ndrive_monitoring = false\n\n# With effects.part_heating: each gearbox (with the screw or rack behind it) warms with its loss. [estimate] as for the\n# delta picker\'s planetary gearboxes.\n[thermal]\ngearbox_resistance_k_w = 1.5\ngearbox_time_constant_s = 1200.0\ngearbox_max_rise_k = 50.0\n\n# With effects.thermal_feedback (see mech::ThermalFeedback). [estimate] as for the other machines; the belt\'s\n# coefficient is read but not used, as these machines have no belt.\n[thermal_feedback]\nambient_c = 20.0\nreference_c = 20.0\nviscosity_slope_k = 4000.0\ngearbox_viscous_loss_share = 0.5\n# With effects.thermal_feedback [estimate]: the motor shaft\'s seal friction (motor.friction_coulomb_nm and\n# friction_breakaway_nm) follows the gearbox\'s lubricant, (nu / nu_ref) to this power: a lip seal on its oil film.\nseal_viscosity_exponent = 0.33\nbelt_stiffness_coefficient_1_k = 3.0e-4\n\n[profile]\ncycle_s = 1.0e-3\nfieldbus_delay_cycles = 1\nfieldbus_jitter_cycles = 1\nsetpoint_interval_s = 10.0e-3\nblend_time_s = 0.05\nshaper_frequency_hz = 25.0\nshaper_damping = 0.03\nshaper2_frequency_hz = 0.0\nshaper2_damping = 0.03\n# The shape of moves (see docs/config-reference.md): \"s-curve\" (seven segments), \"sin2\" (Bestehorn), \"poly345\" or\n# \"poly4567\" (VDI 2143); a [[cycle.segment]] may name its own with shape = \"...\". Braking within deceleration_ratio of\n# the acceleration limits (1: as fast as speeding up). vertical_axis: the axis that lifts against gravity (\"z\", \"-z\"\n# where up is its minus direction, \"\" for none), which has up_acceleration_ratio of its acceleration limit upwards.\nshape = \"s-curve\"\ndeceleration_ratio = 1.0\nvertical_axis = \"\"\nup_acceleration_ratio = 1.0\n# The curve a trajectory runs through its poses: \"c2\" (a cubic spline, the acceleration continuous) or \"hermite\" (the\n# slopes of the neighbours, as before 14 November 2026).\ntrajectory_spline = \"c2\"\n# With effects.input_shaping: the shaper (\"zv\", \"zvd\", \"zvdd\", \"ei\", \"ei2\" the two-hump EI), the vibration the EI\n# shapers allow, the axes the first and the second shaper act on ([] for all), and further modes, each convolved:\n# { frequency_hz = 40.0, damping = 0.02, type = \"ei\", axes = [\"z\"] } (type and axes may be left out).\nshaper_type = \"zvd\"\nshaper_ei_tolerance = 0.05\nshaper_axes = []\nshaper_modes = []\ntorque_reserve = 0.8\n# Read but not used: no belt.\ntension_reserve = 0.8\ntension_margin_n = 0.0\n# The share of every limit the time-optimal plan may use, on top of the reserves above (1: all; 0.9 plans at 90 %).\ntime_optimal_margin = 1.0\npath_tolerance_m = 0.0\n# How far a planned path may leave a corner between two lines to round it instead of stopping there (as a CNC\'s\n# G642 or a robot\'s zone): the corner curve starts and ends 16/3 of it from a right-angled corner. 0: stop.\ncorner_tolerance_m = 0.0\n# How the cycle\'s segments are timed: \"axis_limits\" (the S-curves within the axis limits above) or \"time_optimal\"\n# (each segment as fast as the motors, the gearbox and belt ratings and the jerk limits allow, rest to rest).\ncycle_timing = \"axis_limits\"\nmin_clearance_m = 0.0\n\n# SCARA arm: two arms about vertical axes (325 and 275 mm), a quill that moves 200 mm down on a ball screw, a turning\n# flange; bodies from urdf/scara.urdf, 3 kg payload. Joints 1, 2 and 4 behind strain wave gears, joint 3 coupled to its\n# screw.\n#   [estimate]   all but the motor and drive (as the delta picker\'s).\n# The tool pose is the four joints: rad, rad, m (down), rad. With kinematics.tool_space it is the flange\'s x, y, z (m)\n# and its turn c (rad) instead: see config/scara-tool.toml.\n\n[sim]\ndt_s = 62.5e-6\n# Three sub-steps of the integrator, not the belt machines\' four. Two (as on the six-axis arm) diverge at the high bound\n# of gearbox.damping_nm_s_rad: 2 N m s/rad on joint 3, whose screw leaves little inertia behind the damper.\nsubsteps = 3\n\n[arm]\nurdf_file = \"builtin:scara\"\n# Joint 3: the coupling before the screw.\ngear_ratios = [100.0, 80.0, 1.0, 50.0]\npayload_kg = 3.0\npayload_offset_m = [0.0, 0.0, 0.0]\n# About its centre in the flange frame: xx, yy, zz, xy, xz, yz. [estimate] a 3 kg cylinder of 0.1 m diameter and 0.1 m\n# height about the flange\'s axis: m r^2 / 2 = 0.00375 about z, m (3 r^2 + h^2) / 12 = 0.004375 across.\npayload_inertia_kgm2 = [0.004375, 0.004375, 0.00375, 0.0, 0.0, 0.0]\n# The URDF\'s joints as sums of the motors\' joints (see config/palletiser.toml); [] for one motor per joint.\njoint_coupling = []\n# The parallelogram\'s bars (or any rigid piece the URDF leaves out) as bodies of their own: bar i pinned on the link of\n# the URDF joint bars_on[i] (1-based) at bars_pin_m[3i..3i+3] of its frame (empty: its origin), staying parallel to the\n# link of bars_turns_with[i] and so turning with it (empty: with the link it is pinned on, a rigid piece of that link),\n# mass bars_mass_kg[i], its centre bars_com_m[3i..3i+3] from the pin and its inertia about its centre\n# bars_inertia_kgm2[6i..6i+6] (xx, yy, zz, xy, xz, yz; the array may stay empty: 0), both in the frame of the link it\n# turns with. Empty: no bars (the URDF\'s links as they are).\nbars_on = []\nbars_turns_with = []\nbars_pin_m = []\nbars_mass_kg = []\nbars_com_m = []\nbars_inertia_kgm2 = []\n# With effects.bar_elasticity: each bar\'s axial stiffness (0: rigid) and the motor joint (1-based, 0: none) whose turn\n# it carries on the lever of its pin\'s distance from its link\'s joint. Empty: none.\nbars_axial_stiffness_n_m = []\nbars_carries = []\n# With effects.bar_rocking: each bar\'s axial damper (N s/m), on the rocking with the lever\'s square. Empty: none.\nbars_axial_damping_n_s_m = []\n# A planar four-bar the URDF leaves out (`four_bar_*`): the follower\'s pivot on the link of URDF joint four_bar_ground_on\n# (1-based; 0: none) at four_bar_ground_pin_m of its frame, the crank point on the link of four_bar_crank_on at\n# four_bar_crank_pin_m, in the plane square to four_bar_normal (the ground\'s frame); the coupler (crank point to the\n# loop\'s point) and the follower (pivot to it) four_bar_lengths_m long, four_bar_masses_kg heavy (uniform rods), the\n# loop\'s point on the side four_bar_branch (+1: normal x (crank - pivot)) of the line from the pivot to the crank.\nfour_bar_ground_on = 0\nfour_bar_ground_pin_m = [0.0, 0.0, 0.0]\nfour_bar_crank_on = 0\nfour_bar_crank_pin_m = [0.0, 0.0, 0.0]\nfour_bar_normal = [0.0, 0.0, 1.0]\nfour_bar_lengths_m = [0.0, 0.0]\nfour_bar_masses_kg = [0.0, 0.0]\nfour_bar_branch = 1.0\n# With effects.payload_swing: the payload on a pivot payload_offset_m below the flange (it needs a length there), with\n# this spring and damper per axis. [estimate]\npayload_swing_stiffness_nm_rad = 20.0\npayload_swing_damping_nm_s_rad = 0.5\n\n# Off (as shipped): the axes are the joints, [axis.j1] to [axis.j4]. On: the axes are the flange\'s x, y, z (m) and its\n# turn c about the vertical (rad, joints 1 + 2 + 4), [axis.x] to [axis.c], each piece of a path a straight line of the\n# tool; the joints by the closed form, with the elbow \"right\" (joint 2 turned counter-clockwise from the stretched arm,\n# seen from above: the elbow lies to the right of the line from the base to the tool) or \"left\".\n[kinematics]\ntool_space = true\nelbow = \"right\"\n# The tool\'s axes in tool space: x, y, z and the turn about the vertical (rz, here c), in closed form on a SCARA.\ntool_axes = [\"x\", \"y\", \"z\", \"rz\"]\n\n# In tool space: the range of x, y, z (m) and c (rad); poses in it out of the arm\'s reach (600 mm, 50 mm inside) or\n# beyond a joint\'s stop are refused. Targets where the condition number of the arm\'s Jacobian in the plane\n# (d(x, y)/d(joint 1, joint 2)) is above max_condition_number are refused: near the stretched arm (25 at 11 degrees\n# of elbow, 9.6 at the default start pose\'s 29 degrees). [estimate] a design rule.\n[workspace]\ntool_min = [0.15, -0.45, 0.0, -3.0]\ntool_max = [0.6, 0.45, 0.2, 3.0]\nmax_condition_number = 25.0\n\n# The tool\'s limits in tool space. [estimate] below what the joints\' limits allow at the middle of the range.\n[axis.x]\nmax_velocity_m_s = 1.0\nmax_acceleration_m_s2 = 5.0\nmax_jerk_m_s3 = 200.0\n\n[axis.y]\nmax_velocity_m_s = 1.0\nmax_acceleration_m_s2 = 5.0\nmax_jerk_m_s3 = 200.0\n\n[axis.z]\nmax_velocity_m_s = 0.8\nmax_acceleration_m_s2 = 8.0\nmax_jerk_m_s3 = 400.0\n\n[axis.c]\nmax_velocity_rad_s = 4.0\nmax_acceleration_rad_s2 = 30.0\nmax_jerk_rad_s3 = 1000.0\n\n# Each joint\'s bearings and stops. [estimate]\n# The joints\' limits ([estimate]; the quill in m): each below the motor\'s rated 314 rad/s behind its ratio.\n[axis.j1]\nmax_velocity_rad_s = 3.0\nmax_acceleration_rad_s2 = 15.0\nmax_jerk_rad_s3 = 300.0\n\n[axis.j2]\nmax_velocity_rad_s = 3.5\nmax_acceleration_rad_s2 = 20.0\nmax_jerk_rad_s3 = 400.0\n\n[axis.j3]\nmax_velocity_m_s = 0.8\nmax_acceleration_m_s2 = 8.0\nmax_jerk_m_s3 = 400.0\n\n[axis.j4]\nmax_velocity_rad_s = 6.0\nmax_acceleration_rad_s2 = 60.0\nmax_jerk_rad_s3 = 1500.0\n\n[joint]\nfriction_coulomb_nm = 0.5\nfriction_viscous_nm_s_rad = 0.2\nfriction_smoothing_rad_s = 0.01\n# Where the URDF gives no limits (a continuous joint), and for the table.\nmin_angle_deg = -360.0\nmax_angle_deg = 360.0\nstop_stiffness_nm_rad = 100000.0\nstop_damping_nm_s_rad = 50.0\n\n# The quill\'s guide (a ball spline) and its stops; the stroke comes from the URDF.\n[slide]\nstroke_m = 0.2\nincline_deg = 90.0\nfriction_coulomb_n = 10.0\nfriction_viscous_n_s_m = 20.0\nfriction_smoothing_m_s = 0.002\n# With effects.slide_presliding [estimate]: the guides\' breakaway force, 1.5 times their Coulomb level (as the motor\n# shafts\'), the speed over which it falls to that level, and the presliding stiffness: Dahl\'s sigma, the guides\n# turning over within a few micrometres of travel at a reversal.\nfriction_breakaway_n = 15.0\nfriction_stribeck_m_s = 0.001\npresliding_stiffness_n_m = 1.0e7\nstop_stiffness_n_m = 2.0e6\nstop_damping_n_s_m = 2000.0\n\n# The quill\'s ball screw spline. [estimate] 16 x 20.\n[screw]\nlead_m = 0.02\nnominal_diameter_m = 0.016\nroot_diameter_m = 0.0135\nlength_m = 0.3\nmounting = \"fixed-free\"\n# [estimate] The fixed bearing at the motor on the arm, 0.05 m above the nut with the quill up (joint 3 at 0; it\n# travels down): half the run-out of the 0.3 m shaft beyond the 0.2 m stroke. With effects.screw_stiffness_with_position.\nfixed_bearing_at_m = -0.05\nefficiency = 0.9\n# With effects.screw_lead_efficiency: the balls\' rolling friction coefficient. [estimate] THK\'s general value for\n# ball screws, not this screw\'s.\nfriction_coefficient = 0.003\nnut_stiffness_n_m = 2.0e8\nbearing_stiffness_n_m = 4.0e8\n# [estimate] The damping ratio of the mass behind the nut on the screw\'s axial spring (nut, bearings, guides; the\n# damper across the screw\'s spring alone, c = 2 zeta sqrt(k m)): 0.04, the axial mode of a ball screw drive\n# identified by Hosseinkhani (Control Methods for Improving Tracking Accuracy and Disturbance Rejection in Ball\n# Screw Feed Drives, PhD thesis, University of Waterloo, 2013, Table 3.5: 865 rad/s, zeta 0.04).\naxial_damping_ratio = 0.04\npreload_n = 200.0\ndynamic_load_rating_n = 7000.0\nstatic_load_rating_n = 12000.0\nload_factor = 1.2\nstatic_safety_factor = 2.0\ncritical_speed_factor = 0.8\nbuckling_safety_factor = 2.0\nmax_dn = 70000.0\n\n# [estimate] strain wave gears of size 25 (ratio per joint from arm.gear_ratios). Joint 3 sees stiffness and damping\n# through its screw, over (lead / 2 pi)^2: 1 N m s/rad is 1e5 N s/m on the quill.\n[gearbox]\nratio = 100.0\nefficiency = 0.75\nbacklash_rad = 0.0\nstiffness_nm_rad = 40000.0\ndamping_nm_s_rad = 1.0\ninertia_at_input_kgm2 = 4.1e-5\n# The torque at which `efficiency` holds: the strain wave gear\'s rated torque, as Harmonic Drive gives its efficiency\n# ([estimate] as strain_wave.rated_torque_nm).\nefficiency_torque_nm = 67.0\n# With effects.gearbox_drag: the no-load running torque at the input at no_load_speed_rpm and 20 degC. [catalogue] read\n# off Harmonic Drive\'s chart (CSF/CSG engineering data, \"No Load Running Torque\", housed unit, grease SK-1A/SK-2,\n# ratio 100, size 25, 2000 r/min, 20 degC): about 20 N cm, to about 20 %. The chart\'s fall from 20 to 40 degC (a\n# factor of about 0.54 for size 32) is what Palmgren\'s law with thermal_feedback.viscosity_slope_k gives (0.56).\nno_load_torque_nm = 0.2\nno_load_speed_rpm = 2000.0\n# With effects.gearbox_lost_motion: no backlash and no band (the flexspline\'s teeth are in mesh preloaded);\n# [catalogue] the hysteresis loss, Harmonic Drive\'s Table 44 (size 25, ratio 50 and up): 2.9e-4 rad (1 arcmin).\nlost_motion_band_rad = 0.0\nhysteresis_rad = 2.909e-4\n# With effects.gearbox_stiffness_curve: [catalogue] Harmonic Drive\'s Table 43 (ratio 80 and up, size 25): K1 is\n# stiffness_nm_rad up to T1, K2 up to T2, K3 beyond. Its K1 is 3.1e4 N m/rad; stiffness_nm_rad is an\n# estimate of its own. Ratio 50 (joint 4) has K2 3.4e4 and K3 4.4e4.\nstiffness_t1_nm = 14.0\nstiffness_t2_nm = 48.0\nstiffness_k2_nm_rad = 50000.0\nstiffness_k3_nm_rad = 57000.0\n\n[strain_wave]\nrated_torque_nm = 67.0\nrated_input_speed_rpm = 2000.0\nrated_life_h = 10000.0\n\n[motor]\n# [catalogue] 1FK2105-4AF, D 32: rotor 1.7 kg cm2 (as on the delta picker, as is everything in [motor] and [drive])\nrotor_inertia_kgm2 = 1.7e-4\n# [estimate]\nfriction_coulomb_nm = 0.05\nfriction_viscous_nm_s_rad = 2.0e-4\nfriction_smoothing_rad_s = 0.5\n# With effects.motor_stiction [estimate]: the shaft\'s breakaway torque, 1.5 times its Coulomb level (lip seals and\n# bearings break away at about 1.3 to 2 times their running torque), and the speed over which it falls to that level.\nfriction_breakaway_nm = 0.075\nfriction_stribeck_rad_s = 2.0\nripple_fraction = 0.02\nripple_order = 24.0\ncogging_nm = 0.02\ncogging_order = 24.0\n# [catalogue] static torque 5 N m over stall current 4.65 A\ntorque_constant_nm_a = 1.07527\n# [estimate] Siemens publishes neither for the 1FK2.\nresistance_ohm = 2.0\ninductance_h = 0.010\n# With effects.field_weakening [estimate]: pole pairs (not published for the 1FK2; the 1FK7 have 4) and the d-axis\n# inductance, as the winding has it, here that of the q axis above (surface magnets).\npole_pairs = 4.0\nd_inductance_h = 0.01\n# With effects.motor_thermal_nodes [estimate]: the winding\'s share of the thermal resistance to the surroundings (the\n# rest is the stator and housing\'s), and its time constant against the housing.\nwinding_resistance_share = 0.3\nwinding_time_constant_s = 60.0\n# [catalogue] 1FK2105-4AF: static torque 5 N m at the stall current 4.65 A (motors_s210.csv), as a motor named in\n# [parts] brings it. With effects.iron_loss the copper loss at it brings the winding to its rated\n# rise, and the iron loss at the rated speed is the rest of that loss at the rated current; the S1 check (\"motor-s1\")\n# starts at kt times it.\nstall_current_a = 4.65\n# With effects.magnet_temperature [estimate]: NdFeB loses about 0.12 % of its remanence per kelvin.\n# [bounds] -0.0013 ... -0.0009\nmagnet_temperature_coefficient_1_k = -0.0012\n# [catalogue] rated current 4.35 A at 400 V; thermal time constant 37 min; 15 N m at the maximum current of 18 A.\nrated_current_a = 4.35\nthermal_time_constant_s = 2220.0\nrated_temperature_rise_k = 100.0\nstart_temperature_rise_k = 0.0\nmax_current_a = 18.0\ntorque_constant_at_max_current_nm_a = 0.83333\n# [estimate]\nbrake_torque_nm = 8.0\n\n# One drive per motor, all with the same settings. Cycle times must be whole multiples of sim.dt_s.\n[drive]\ncurrent_cycle_s = 62.5e-6\nvelocity_cycle_s = 125.0e-6\nposition_cycle_s = 1.0e-3\ncurrent_delay_cycles = 1\nvelocity_delay_cycles = 1\nkv_1_s = 50.0\n# [estimate] scaled from the delta picker\'s 0.25 by the inertia at the motors.\nvelocity_kp_nm_s_rad = 0.12\nvelocity_tn_s = 0.03\nvelocity_feedforward_factor = 1.0\ntorque_feedforward_factor = 1.0\n# Torque feedforward: \"rigid\", the rigid model\'s inverse dynamics (inertia, gravity, speed terms), or \"inertia\", one\n# moment of inertia per motor (the rigid model\'s at the start pose) times its acceleration setpoint, as a drive\'s\n# speed/torque precontrol with the load inertia set (S120 p1498): no gravity, no coupling.\ntorque_feedforward_model = \"rigid\"\n# With effects.friction_feedforward: the friction characteristic, torque over speed at rising speeds, linear between\n# the points from 0 and held beyond the last (S120 p3820-p3839). [estimate] none recorded: no feedforward.\nfriction_feedforward_speed_rad_s = [10.0]\nfriction_feedforward_torque_nm = [0.0]\n# With effects.friction_feedforward: \"characteristic\" adds the characteristic above; \"machine\" adds in its place the\n# friction of the machine\'s own model at the planned speed (guides, motor shaft, gearbox drag, joints).\nfriction_feedforward_model = \"machine\"\n# The position setpoint passes a first-order lag of this time constant before the position loop compares it, so that\n# it arrives with the motor the speed feedforward moves (S120 p2536 balancing). 0: off, as commissioned by default.\nprecontrol_balance_s = 0.0\n# The winding\'s voltage limit the six-step wave\'s fundamental, 2 sqrt 3 / pi (4 / pi for a stepper) of the\n# sinusoidal one (harmonics and their loss not modelled). Off, as a drive comes.\novermodulation = false\n# With effects.load_encoder: the step of the load-side scales, in the tool axes\' units (m, rad). 1 um: a glass scale.\nload_encoder_step = 1.0e-6\ncurrent_kp_v_a = 40.0\ncurrent_tn_s = 5.0e-3\n# [catalogue] a 400 V line: 540 V DC link\nbus_voltage_v = 540.0\n# The back-EMF per speed of the one winding; 0: the torque constant. A catalogue motor by name sets its printed one.\nback_emf_constant_v_s_rad = 0.0\n# [catalogue] 1FK2105-4AF at 400 V: 15 N m maximum, 4.6 N m rated at 3000 r/min\npeak_torque_nm = 15.0\nrated_torque_nm = 4.6\nrated_speed_rad_s = 314.159\n# sqrt(3/2) * 540 V / 1.07527 N m/A\nno_load_speed_rad_s = 615.07\n# [estimate] The highest speed the motor may turn at (its datasheet\'s maximum speed); here the no-load speed, where the\n# torque-speed curve ends. The time-optimal plan turns the motor up to it along that curve; the verdict motor-speed\n# judges the cycle\'s peak speed against it. A motor by name sets the catalogue\'s.\nmax_speed_rad_s = 615.07\n# [estimate] a 22-bit encoder\nencoder_counts_per_rev = 4194304.0\nvelocity_filter_s = 0.1e-3\ntorque_filter_s = 0.1e-3\nnotch_frequency_hz = 60.0\nnotch_bandwidth_hz = 20.0\nencoder_noise_counts = 4.0\ncurrent_noise_a = 0.01\nnoise_seed = 1\n# effects.drive_monitoring: how a drive stops when the drives trip. \"off1\" ramps the speed setpoint down in off1_ramp_s\n# from the rated speed (S120 p1121), \"off3\" in off3_ramp_s (p1135), \"sto\" takes the torque off at once (the motor\n# coasts), \"current_limit\" brakes at the torque limit; at standstill, below pulse_off_speed_rad_s (p1226), the pulses\n# go off. [estimate] OFF3 in 0.1 s, as commissioned for a fast stop; OFF1 1 s.\nfault_reaction = \"off3\"\noff1_ramp_s = 1.0\noff3_ramp_s = 0.1\n# A category 1 stop (sim-cli run --stop-category 1, sim-cli stop) takes the torque off after this time at the latest,\n# as SS1\'s timer (p9652) does. [estimate] as commissioned: five times the OFF3 ramp.\nss1_time_s = 0.5\npulse_off_speed_rad_s = 2.09\n# What trips it, at the motor (rad): the following error beyond its window (p2546); at standstill, after\n# standstill_time_s of a resting setpoint, beyond the standstill window (p2542, p2543); held at the torque limit below\n# blocked_speed_rad_s for blocked_time_s (F07900: p2175, p2177 3 s); the torque further from the model\'s expected\n# torque than torque_band times the peak torque (0: off), as a robot controller detects a collision. [estimate]\nfollowing_error_window_rad = 1.0\nstandstill_window_rad = 0.1\nstandstill_time_s = 1.0\nblocked_speed_rad_s = 12.57\nblocked_time_s = 3.0\ntorque_band = 0.0\n# Off: each axis brakes into a resistor of its own (an S210); on: one S120 Braking Module for all.\nbraking_module = false\n\n# The quill\'s and the flange\'s joints 3 and 4 have smaller motors than the arms\' 1 and 2, as a real SCARA has (their own\n# tables over the shared ones above, catalog::motor_config). [catalogue] 1FK2104-5AF, 2.4 N m static, 7.5 N m maximum,\n# rotor 0.56 kg cm2, on an S210 6SL3210-5HE10-8UF0 (2.3 A rated, 7.6 A maximum). [estimate] the brake, the flange\'s\n# strain wave gear of size 14 and the velocity gains scaled by the inertia at the motor.\n[parts.3]\nmotor = \"1FK2104-5AF\"\ndrive = \"6SL3210-5HE10-8UF0\"\n\n[parts.4]\nmotor = \"1FK2104-5AF\"\ndrive = \"6SL3210-5HE10-8UF0\"\n\n[motor.3]\nbrake_torque_nm = 3.2\n\n[motor.4]\nbrake_torque_nm = 3.2\n\n[drive.3]\nvelocity_kp_nm_s_rad = 0.04\n\n[drive.4]\nvelocity_kp_nm_s_rad = 0.04\n\n# The joints\' ratios where they are not the shared [gearbox]\'s, as arm.gear_ratios has them (the gearbox\n# life, its drag and the drives\' tuning read the gearbox\'s own; a screw sits on its motor without one).\n[gearbox.2]\nratio = 80.0\n\n[gearbox.3]\nratio = 1.0\n\n[gearbox.4]\nratio = 50.0\nstiffness_nm_rad = 7000.0\ninertia_at_input_kgm2 = 3.3e-6\n\n[strain_wave.4]\nrated_torque_nm = 7.8\n\n[ratings.4]\ngearbox_rated_torque_nm = 11.0\ngearbox_max_torque_nm = 23.0\n\n[ratings]\n# The flange\'s place (m) and its turn c (rad) apart. [estimate] 0.5 mm, and 2 mrad of the turn.\nsettling_tolerance_m = 0.0005\nsettling_tolerance_rad = 0.002\ngearbox_rated_torque_nm = 108.0\ngearbox_max_torque_nm = 172.0\ngearbox_max_input_speed_rpm = 7500.0\n# The DC link of the S210 converter. [estimate] as for the delta picker.\ndc_link_capacitance_uf = 66.0\nbraking_threshold_v = 770.0\n# [catalogue] internal braking resistor and trip level of the S210 (catalog/siemens/braking_s210.csv)\nbraking_resistor_continuous_w = 100.0\nbraking_resistor_peak_w = 5700.0\n# With effects.braking_resistor_heating [estimate]: the braking resistor\'s time constant and its rise at its continuous\n# power. Siemens gives duty cycles (catalog/siemens/braking_s120.csv: peak power 1 s in 68 s), not these.\n# [bounds] time constant 20 ... 300 s, rise 100 ... 300 K\nbraking_resistor_time_constant_s = 60.0\nbraking_resistor_rated_rise_k = 200.0\ndc_link_overvoltage_v = 820.0\ndc_link_discharge_time_constant_s = 130.0\n# [catalogue] S120 Active Line Module 6SL3130-7TE21-6AA4, for effects.regenerative_supply; its efficiency [estimate].\nline_module_rated_power_w = 16000.0\nline_module_max_power_w = 35000.0\nline_module_efficiency = 0.98\nrequired_life_h = 20000.0\nbearing_reliability_percent = 90.0\n# [catalogue] S210 converter 6SL3210-5HE11-5UF0: 5 A rated, 19 A maximum\ndrive_rated_current_a = 5.0\ndrive_max_current_a = 19.0\n# With effects.drive_overload [estimate]: the base load current the drive falls back to when its thermal image trips\n# (0.85 of the rated current, as the S120 Motor Modules up to 30 A have it; a drive by name sets it), the time constant\n# of the image, and how long the drive gives its maximum current from the rated load.\ndrive_base_load_current_a = 4.25\n# With effects.drive_overload [estimate]: the chips\' share of the power unit\'s rise and their time constant, the fast\n# node of the two-node image (the slow one is the heat sink\'s above). Siemens publishes neither.\n# [bounds] share 0 ... 0.5, time constant 0.1 ... 5 s\ndrive_chip_share = 0.3\ndrive_chip_time_constant_s = 1.0\ndrive_overload_time_constant_s = 10.0\ndrive_max_current_time_s = 0.25\n\n# In tool space: x, y, z (m), c (rad).\n[start]\npose = [0.4, -0.25, 0.15, 0.0]\n\n# A pick and place of straight lines: down 100 mm, up, 500 mm across at x = 0.4 m turning the part by 1.5 rad, down,\n# up, and back across. Each line of the tool is straight; the joints follow it by the inverse kinematics.\n[[cycle.segment]]\ntarget = [0.4, -0.25, 0.05, 0.0]\ndwell_s = 0.05\npayload = false\n\n[[cycle.segment]]\ntarget = [0.4, -0.25, 0.15, 0.0]\ndwell_s = 0.0\npayload = true\n\n[[cycle.segment]]\ntarget = [0.4, 0.25, 0.15, 1.5]\ndwell_s = 0.0\npayload = true\n\n[[cycle.segment]]\ntarget = [0.4, 0.25, 0.05, 1.5]\ndwell_s = 0.05\npayload = true\n\n[[cycle.segment]]\ntarget = [0.4, 0.25, 0.15, 1.5]\ndwell_s = 0.0\npayload = false\n\n[[cycle.segment]]\ntarget = [0.4, -0.25, 0.15, 0.0]\ndwell_s = 0.0\npayload = false\n\n# With effects.link_bending [estimate]: each link from its joint to the next as a round tube, outer diameter and\n# wall per joint (0: rigid; the quill and the tool flange do not bend), cast aluminium. Both arms bend in the\n# horizontal plane they turn in.\n[link_bending]\nouter_diameter_m = [0.12, 0.1, 0.0, 0.0]\nwall_m = [0.008, 0.006, 0.0, 0.0]\nyoungs_modulus_pa = 7.0e10\n# [estimate] The directions each link deflects in: \"in_plane\" (the plane its joint turns it in), \"out_of_plane\"\n# (across it), \"torsion\" (twisted about its length, by shear_modulus_pa, cast aluminium).\ndirections = [\"in_plane\"]\nshear_modulus_pa = 2.6e10\ndamping_ratio = 0.02\n\n# With effects.base_compliance [estimate]: the SCARA\'s column and its table tilt about x and y at 30 Hz (30 kg m^2\n# about the floor: k = 30 (2 pi 30)^2 = 1.1e6 N m/rad) and twist about z at 40 Hz (5 kg m^2, 3.2e5 N m/rad);\n# typical, not measured.\n[base]\n# Where it tilts about, in the tool pose\'s frame (x, y, z), m.\npivot_m = [0.0, 0.0, 0.0]\n# Everything that sways with it, the machine on it included: its natural frequency is sqrt(k / M) / 2 pi.\nmass_kg = 120.0\ninertia_x_kgm2 = 30.0\ninertia_y_kgm2 = 30.0\ninertia_z_kgm2 = 5.0\n# 0: rigid in that direction (no state).\nstiffness_x_n_m = 0.0\nstiffness_y_n_m = 0.0\nstiffness_z_n_m = 0.0\ntilt_stiffness_x_nm_rad = 1.1e6\ntilt_stiffness_y_nm_rad = 1.1e6\ntilt_stiffness_z_nm_rad = 3.2e5\ndamping_ratio_x = 0.02\ndamping_ratio_y = 0.02\ndamping_ratio_z = 0.02\ndamping_ratio_rx = 0.02\ndamping_ratio_ry = 0.02\ndamping_ratio_rz = 0.02\n\n# effects.brake_delay: how long the holding brakes take to engage once asked to hold, and to release once asked to let\n# go. [estimate] the Siemens motor data in catalog/ gives no brake times; a servo motor\'s spring-applied brake closes in\n# some 10 to 60 ms and opens in some 30 to 150 ms.\n[brake]\nengage_delay_s = 0.03\nrelease_delay_s = 0.06\n\n# Low and high bound of the values that are estimates (see docs/config-reference.md): error bands, sensitivity.\n[bounds]\nscrew.friction_coefficient = [0.002, 0.01]\nbrake.engage_delay_s = [0.01, 0.06]\nbrake.release_delay_s = [0.03, 0.15]\nlink_bending.youngs_modulus_pa = [6.5e10, 7.2e10]\nlink_bending.shear_modulus_pa = [2.4e10, 2.7e10]\nlink_bending.damping_ratio = [0.01, 0.05]\nbase.mass_kg = [72.0, 192.0]\nbase.tilt_stiffness_x_nm_rad = [4.4e5, 2.75e6]\nbase.inertia_x_kgm2 = [18.0, 48.0]\nbase.damping_ratio_rx = [0.01, 0.05]\nbase.tilt_stiffness_y_nm_rad = [4.4e5, 2.75e6]\nbase.inertia_y_kgm2 = [18.0, 48.0]\nbase.damping_ratio_ry = [0.01, 0.05]\nbase.tilt_stiffness_z_nm_rad = [1.28e5, 8.0e5]\nbase.inertia_z_kgm2 = [3.0, 8.0]\nbase.damping_ratio_rz = [0.01, 0.05]\nmotor.pole_pairs = [3.0, 5.0]\nmotor.magnet_temperature_coefficient_1_k = [-0.0013, -0.0009]\nratings.drive_chip_share = [0.0, 0.5]\nratings.drive_chip_time_constant_s = [0.1, 5.0]\nratings.braking_resistor_time_constant_s = [20.0, 300.0]\nratings.braking_resistor_rated_rise_k = [100.0, 300.0]\nmotor.d_inductance_h = [0.008, 0.012]\nmotor.winding_resistance_share = [0.2, 0.5]\nmotor.winding_time_constant_s = [20.0, 120.0]\nratings.drive_base_load_current_a = [4.0, 4.5]\nratings.drive_overload_time_constant_s = [2.0, 60.0]\nratings.drive_max_current_time_s = [0.1, 1.0]\njoint.friction_coulomb_nm = [0.25, 1.0]\njoint.friction_viscous_nm_s_rad = [0.1, 0.4]\nslide.friction_coulomb_n = [5.0, 20.0]\nslide.friction_breakaway_n = [10.0, 20.0]\nslide.friction_stribeck_m_s = [0.0002, 0.005]\nslide.presliding_stiffness_n_m = [2.0e6, 5.0e7]\ngearbox.efficiency = [0.65, 0.85]\ngearbox.stiffness_nm_rad = [30000.0, 50000.0]\ngearbox.damping_nm_s_rad = [0.5, 2.0]\ngearbox.inertia_at_input_kgm2 = [3.0e-5, 5.0e-5]\nmotor.friction_coulomb_nm = [0.025, 0.1]\nmotor.friction_viscous_nm_s_rad = [1.0e-4, 4.0e-4]\nmotor.ripple_fraction = [0.01, 0.04]\nmotor.cogging_nm = [0.01, 0.04]\nmotor.resistance_ohm = [1.5, 3.0]\nmotor.inductance_h = [0.008, 0.012]\nstrain_wave.rated_torque_nm = [60.0, 75.0]\nscrew.preload_n = [100.0, 300.0]\nthermal.gearbox_resistance_k_w = [0.8, 3.0]\nthermal.gearbox_time_constant_s = [600.0, 2400.0]\nratings.dc_link_discharge_time_constant_s = [30.0, 300.0]\nratings.line_module_efficiency = [0.95, 0.99]\nthermal_feedback.ambient_c = [10.0, 40.0]\nthermal_feedback.viscosity_slope_k = [3470.0, 4730.0]\nthermal_feedback.gearbox_viscous_loss_share = [0.25, 0.75]\nmotor.friction_breakaway_nm = [0.05, 0.1]\nmotor.friction_stribeck_rad_s = [0.5, 10.0]\ngearbox.no_load_torque_nm = [0.16, 0.24]\nthermal_feedback.seal_viscosity_exponent = [0.0, 0.5]\narm.payload_swing_stiffness_nm_rad = [10.0, 40.0]\narm.payload_swing_damping_nm_s_rad = [0.2, 1.0]\n";
Expand description

The full configs of the SCARA and the six-axis arm in tool space (kinematics.tool_space = true), with a cycle of straight lines of the tool: for --config.