modelController

P-PI cascade controller for one axis

Extends from Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

This controller has an inner PI controller to control the motor speed, and an outer P controller to control the motor position of one axis. The reference signals are with respect to the gear-output, and the gear ratio is used in the controller to determine the motor reference signals. All signals are communicated via the "axisControlBus".

Parameters

TypeNameDefaultDescription
Realkp10Gain of position controller
Realks1Gain of speed controller
SI.TimeTs0.01Time constant of integrator of speed controller
Realratio1Gear ratio of gearbox

Connectors

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities.AxisControlBusaxisControlBus

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Gaingain1
Modelica.Blocks.Continuous.PIPI
Modelica.Blocks.Math.Feedbackfeedback1
Modelica.Blocks.Math.GainP
Modelica.Blocks.Math.Add3add3
Modelica.Blocks.Math.Gaingain2