## BLDCM

Brushless DC/AC machine
Inputs(5) i1 i2 i3 w K
Parameters(1) p1
Default p1=1,
Select from Components/Blocks/Machines
Function The output equals the electric torque produced by the machine. The inputs are the three phase currents, the angular speed of the rotor and the machine constant for the calculation of the torque and the produced EMF.

u1:=K*sin(angle);u2:=K*sin(angle-(2*PI/3));u3:=K*sin(angle-(4*PI/3));if(p1=0)then  begin  if(u1 < 0) then u1:=K else u1:=-K;  if(u2 < 0) then u2:=K else u2:=-K;  if(u3 < 0) then u3:=K else u3:=-K;  end;if(p1=1)then  begin  if(u1 < 0) then u1:=K else u1:=0;  if(u2 < 0) then u2:=K else u2:=0;  if(u3 < 0) then u3:=K else u3:=0;  end;T=u1*i1+u2*i2+u3*i3

Use an INT_VAR block to get the EMF voltages and position of the rotor:

 INT_VAR Output p1=1 u1 p1=2 u2 p1=3 u3 p1=4 Position of the rotor (in Radians) p1=5 Rotor position polar x-coordinate p1=6 Rotor position polar y-coordinate

p1=0 Brushless DC machine
p1=1 Brushless AC machine
Special You can use the block INVCTRL for controlling the inverter to drive the BLDCM