Connect PSMS to Mechanical model
16 views (last 30 days)
Show older comments
Michael Bäumler
on 11 Apr 2016
Commented: Michael Bäumler
on 19 Apr 2016
Hello together,
I´m trying to simulate an industrial robot regarding to it´s energy consumption.
The mechanical model is built up in a CAD-program and implemented into SimMechanics. The Motor is the PSMS from SimPowerSystems library. Both, the mech. model and the PMSM, are in two seperate models.
How can I connect the PSMS with the mechanical model, so that the robot is moving?
Should I put the PSMS an the mech. model in one model together or is it possible to connect the two models?
Thank you for your help.
Kind regards
Michael
0 Comments
Accepted Answer
Sebastian Castro
on 12 Apr 2016
First, download the Simscape Multibody 3D-1D interface blocks from the File Exchange:
These blocks let you connect between Simscape 1-D mechanical ports, which the PMSM blocks have, to SimMechanics joints (revolute or prismatic).
If you're using SimPowerSystems Simscape Components, the connection should be straightforward using the blocks above.
If you're using SimPowerSystems Specialized Technology, you can go to the Configuration tab of the PMSM block and change the "Mechanical input" to "Mechanical rotational port". This will expose a Simscape mechanical port you can similarly connect using the interface blocks.
- Sebastian
3 Comments
Sebastian Castro
on 12 Apr 2016
I think those are 2 different things, unfortunately.
If you want to move the robot, you can set up motion actuation on the joints and measure the required torque to achieve that motion. This blog post explains that very well.
The thing is, to physically connect the PMSM and the SimMechanics model, you have to make sure there is energy transfer and the components are bidirectionally coupled. To do that with the interface blocks, you have to have torque actuation and velocity measurement on the joint.
Also, I am not sure that the PMSM Motor Drive block you are using has the option of exposing a Simscape port. I was thinking about the plain PMSM block which doesn't have all the controls around it...
Hope that helps.
- Sebastian
More Answers (0)
See Also
Categories
Find more on Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!