blockSensorlessCtrl3phStateGraphNG

Commutation applying PWM

Extends from OpenBLDC.Icons.ControlLaw (Icon for a control algorithm).

Information

Mit dem Rampen-algorithmus am Besten direkt auf das PWM und Brückentreiber gehen. Dann kann dort auch gleich der einfache Hall-Regler eingebaut werden.

Parameters

TypeNameDefaultDescription
IntegerPwmMode1Two-leg (1) or single-leg (2) mode
Modelica.SIunits.DurationDelayCommutation20e-006Delay commutation
Modelica.SIunits.DurationTimeoutCommutation0.01Motor has stopped when Timeout

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutput[3]hCtrl
Modelica.Blocks.Interfaces.BooleanOutput[3]lCtrl
Modelica.Blocks.Interfaces.RealInputangleDecoded hall
Modelica.Blocks.Interfaces.RealInputv_dcdc link voltage
Modelica.Blocks.Interfaces.RealInput[3]vvoltage per phase
Modelica.Blocks.Interfaces.RealInputdutyCycleCommanded duty cycle

Components

TypeNameDefaultDescription
BooleanchAngle
IntegerintAngle
Modelica.Blocks.Tables.CombiTable1DscombiTable1Ds
Modelica.Blocks.Sources.IntegerExpression[3]integerExpression
Modelica.StateGraph.InitialStepinitialStep
Modelica.StateGraph.StepWithSignalsenseBEMF
Modelica.StateGraph.TransitionWithSignaltransitionWithSignal
DetectCommutationIntBEMFdetectCommutation
Modelica.StateGraph.StateGraphRootstateGraphRoot
Modelica.StateGraph.TransitionspeedOKCheck speed?
Modelica.StateGraph.TransitiondelaySenseWait some time until current crosses zero
Modelica.StateGraph.StepwaitWait
Modelica.StateGraph.StepWithSignalstepIncrement
Modelica.StateGraph.TransitioncatchTimeoutTimeout of catch start
Modelica.StateGraph.TransitionWithSignalcatchedCatching successful
CatchStartcatchStart
Modelica.StateGraph.TransitionfirstAction
Modelica.StateGraph.StepWithSignalcatching
CommutationCountercommutationCounter
Modelica.StateGraph.StepWithSignalstartRunningInitialize motor angle and start PWM
Modelica.StateGraph.Transitiontransition
Modelica.StateGraph.TransitiontooSlow
Modelica.StateGraph.StepWithSignalshutDownMotorShutdown motor (because of stall)
Modelica.StateGraph.TransitiontransLoop1Timeout of catch start
Modelica.StateGraph.StepWithSignalrampMotorOpen loop motor speed ramp up
PulseLogicpulseLogic
PulseControlSelectorpulseControlSelector
StartMotorstartMotor
Modelica.StateGraph.TransitionWithSignalrampDone
Modelica.Blocks.Logical.Andand1
HalfBridgeLogicBLDC[3]halfBridgeLogicINSD