modelRRTorqueAnalysis

Extends from Modelica.Icons.Example (Icon for runnable examples), Servomechanisms.Examples.RRServomechanism.Data (RR Servomechanism Data).

Information

General

With this model the torque and RMS torque on each joint can be analysed. With this configuration the dynamic of the system can be calculated.

Implementation

The block of the trayectory is used as input. The outputs of this block are connected to the inputs of the block of inverse kinematics. In this way the coordinates of the trayectory are transform into joint variables.

Utilizing the position source the mechanisms will follow the trayectory and with the acausal modelling it is possible to obtain the torque needed in each joint. If a reduction is used, then the joint variables should be multiplied with the parameter ratio of the idealgear block in order to obtain the expected result.

Notes

  • The velocities obtain are equivalent to calculate differential fordward kinematics
  • The results in this simulations are equivalent to obtain the dynamical behaviour of the systems with methods as Euler Lagrange Equations or Newton-Euler Equations.
  • The analysis of torques and velocities allow the selection of the actuator (dc motor) following the next criteria (although it should be taken into account the effects of disturbances):
  • In order to evaluate the rms torque the simulation should run for two cycles
  • Note that there are two torque analysis (or force analysis) elements per joint, one to evaluate the needed values for the mechanisms and other for those that the motor would proportionate if a reduction is added.

Example

For the first joint:

  • Position
  • Velocity
  • Acceleration
  • Torque and RMS torque since the second cycle
  • Parameters

    TypeNameDefaultDescription
    Reall1 (from Data)0.2
    Realw1 (from Data)0.02
    Realh1 (from Data)0.005
    Reald1 (from Data)400
    Realmin1 (from Data)0
    Realmax1 (from Data)pi/2
    Reall2 (from Data)0.1
    Realw2 (from Data)0.02
    Realh2 (from Data)0.005
    Reald2 (from Data)400
    Realmin2 (from Data)-pi/2
    Realmax2 (from Data)pi/2
    Realr (from Data)0.03
    Realxc (from Data)0.25
    Realyc (from Data)0.075
    Realratio1 (from Data)10
    Realratio2 (from Data)5
    Realperiod (from Data)8
    RealR (from Data)0.101
    RealL (from Data)0.0000266
    Realk (from Data)0.0115
    RealJ (from Data)0.0000119
    RealVoltage (from Data)12
    Realkp2 (from Data)4.423
    Realkp1 (from Data)7.1543

    Components

    TypeNameDefaultDescription
    Servomechanisms.Control.CircleTrayectorycircletrayectory1
    Servomechanisms.Control.RRInverseKinematicsrrinversekinematics1
    Modelica.Blocks.Math.Gaingain2
    Modelica.Blocks.Math.Gaingain1
    Modelica.Mechanics.Rotational.Sources.Positionposition2
    Modelica.Mechanics.Rotational.Sources.Positionposition1
    Servomechanisms.Mechanism.TorqueAnalysistorqueMotor1
    Servomechanisms.Mechanism.TorqueAnalysistorqueMotor2
    Modelica.Mechanics.Rotational.Components.IdealGearidealgear2
    Modelica.Mechanics.Rotational.Components.IdealGearidealgear1
    Servomechanisms.Mechanism.TorqueAnalysistorqueNeeded1
    Servomechanisms.Mechanism.TorqueAnalysistorqueNeeded2
    Servomechanisms.Mechanism.RRrr1