blockSignMagnitudDrive

Sign-Magnitud Drive

Extends from Modelica.Blocks.Icons.BooleanBlock (Basic graphical layout of Boolean block).

Information

General

The SignMagnitudDrive boolean block is used as a method to control de h-bridge with the inputs of PWM and ENABLE (or direction) comming from the controller. Is the model of the method sign-magnitud.

Implementation

This block uses low-side off-time current, the generation of the outputs are based on the expressions:

O1: PWM*ENABLE 
O2: PWM'+PWM*ENABLE'
O3: PWM*ENABLE'
O4: PWM'+PWM*ENABLE

Notes

  • The outputs should be connected to the h-bridge as: O1-Q1, O2-Q2, O3-Q3, O4-Q4.

Limitations

  • The characteristics of Sign-Magnitud method could generate regenerative braking.

Example

Servomechanisms.Electrical.HBridge Servomechanisms.Electrical.IdealHBridge

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputPWM
Modelica.Blocks.Interfaces.BooleanInputENABLE
Modelica.Blocks.Interfaces.BooleanOutputo1
Modelica.Blocks.Interfaces.BooleanOutputo2
Modelica.Blocks.Interfaces.BooleanOutputo3
Modelica.Blocks.Interfaces.BooleanOutputo4

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.Notnot1
Modelica.Blocks.Logical.Notnot2
Modelica.Blocks.Logical.Andand1
Modelica.Blocks.Logical.Oror1
Modelica.Blocks.Logical.Oror2
Modelica.Blocks.Logical.Andand2
Modelica.Blocks.Logical.Andand3
Modelica.Blocks.Logical.Andand4