# PMSM control with Rotational Speed (Controlled)

**URL:** <https://forum.plexim.com/t/pmsm-control-with-rotational-speed-controlled/956>\
**Category:** PLECS\
**Tags:** speed, rotational, pmsm\
**Created:** [February 8, 2021, 4:04pm UTC](https://forum.plexim.com/t/pmsm-control-with-rotational-speed-controlled/956 "2021-02-08T16:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oming0731](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@oming0731](https://forum.plexim.com/u/oming0731)\
**Post date:** [February 8, 2021, 4:04pm UTC](https://forum.plexim.com/t/pmsm-control-with-rotational-speed-controlled/956/1 "2021-02-08T16:04:38Z")

</div>

Deal all,

I want to use Rotational Speed (Controlled) in my PMSM with inverter model.

However, when I try to use it, there is error same as below

1)State/source dependence in components

- 210208\_SingleInverter\_speedload/PM Machine/Inertia
- 

2)Inconsistent source

- 210208\_SingleInverter\_speedload/PM Machine/Inertia
- 

I thought it is the same as speed load in MATLAB/SIMULINK.

but it isn’t

Please let me know how to use it.

I attached error and figure of circuit

 ![캡처.PNG](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/2ebc7e834e4f5c4d4c38073adb8bb37ab9d19b86.png)

 ![캡처2.PNG](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/81105b37e17c74ef4f5b0ff993bdf0c4dd565df1.png)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [February 8, 2021, 5:08pm UTC](https://forum.plexim.com/t/pmsm-control-with-rotational-speed-controlled/956/2 "2021-02-08T17:08:17Z")

</div>

Set the machine’s Inertia parameter to zero, as shown below.

From the PLECS Documentation: “A speed source may not be short-circuited or connected in parallel with other speed sources, nor may a speed source directly drive an inertia.” Setting the inertia to zero overcomes this issue.

You can also read a bit more about the error [message at this link for a deeper understanding](https://www.plexim.com/support/solutions/166).

 ![61](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/f4d8ceb740d44a4ba883f186185bbaa5e9d76672.png)
