PWM motor output error

Create new topics, add your comment, remark, bugs...
Post Reply
jirka
Posts: 4
Joined: Mon Oct 26, 2009 7:44 am

PWM motor output error

Post by jirka » Tue Oct 27, 2009 7:23 am

Hi Lubin,
I have a problem with setting of processor type dsPIC30f6015. I can't set PWM motor output. I don't know how this problem removes. I placed print screen of this error at attachment. Then I would like asking you a possibility to set-up of dead time on PWM. I don't find this options in setting of PWM motor output block. I used R2008a version of Matlab. Thanks for your help.
Attachments
errors_PWM_motor_block.PNG

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PWM motor output error

Post by LubinKerhuel » Tue Oct 27, 2009 11:08 am

Hi Jirka,

Thanks for the screen shoot.
This seems to be a bug from the blockset since the error message talk about PWM motor 2 peripheral, but the PWM motor dialog is set on PWM motor 1 !

Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.

For the dead time, I did not implemented it yet as I usually use this block just for generating PWM, not for motor control. I will try to have a look within few weeks. If you have any suggestion on how you want to have it implemented (as a constant set in the dialog box (best I think), as a block input ?)

Lubin

jirka
Posts: 4
Joined: Mon Oct 26, 2009 7:44 am

Re: PWM motor output error

Post by jirka » Tue Oct 27, 2009 2:15 pm

Hi Lubin,

Thanks for answer. I upload the mdl file as you required.

For the dead time, I don't have special requirement. I think that it implement as constant set in the dialog box is good.

Jirka
Attachments
dspic30f6015.mdl
(25.87 KiB) Downloaded 1144 times

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PWM motor output error

Post by LubinKerhuel » Tue Oct 27, 2009 11:28 pm

Hi Jirka,

I compiled successfully this model on my system without doing anything particular.

Could you try to download the latest blockset version and test it again ?

Let me know if you still get the error.

Lubin

jirka
Posts: 4
Joined: Mon Oct 26, 2009 7:44 am

Re: PWM motor output error

Post by jirka » Thu Oct 29, 2009 8:57 am

Hi Lubin,

I reinstall blockset for dspic and now it is all right. Thank you for help.

Now I waiting only on setting of deat time so I can try to control BLDC motor. Could you give know when you'll have complete setting for dead time?
Once again thank you for everything.

Jirka

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PWM motor output error

Post by LubinKerhuel » Tue Nov 17, 2009 3:11 pm

Hi Jirka

I implemented the Dead time on the PWM motor peripheral.
Please test the new blockset version and let me know if the way it is implemented is usefull for BLDC motor control.
download link : http://www.kerhuel.eu/wiki/Download

It would be great to get an example of BLDC control using this blockst. Would it be possible to post a model here, or even better, on the wiki ?

Lubin

jirka
Posts: 4
Joined: Mon Oct 26, 2009 7:44 am

Re: PWM motor output error

Post by jirka » Sun Nov 22, 2009 6:44 pm

Hi Lubin,

thanks for the deat time, but I'm very busy now.I will try to have a look within few weeks.

Jirka

william_yan
Posts: 2
Joined: Thu Nov 03, 2011 10:27 am

Re: PWM motor output error

Post by william_yan » Thu Nov 03, 2011 10:39 am

jirka wrote:Hi Lubin,
I have a problem with setting of processor type dsPIC30f6015. I can't set PWM motor output. I don't know how this problem removes. I placed print screen of this error at attachment. Then I would like asking you a possibility to set-up of dead time on PWM. I don't find this options in setting of PWM motor output block. I used R2008a version of Matlab. Thanks for your help.
hi lubin...

i have a smilar project with the above but i got another error showing this erro for PWM.. please advice me .. i really need help ..i did attach the error screem shot and the .mdl fine for your red.. hope u will help me :))

regards
William
Attachments
FYP_pwm_model.mdl
(36.83 KiB) Downloaded 1017 times
error.JPG

william_yan
Posts: 2
Joined: Thu Nov 03, 2011 10:27 am

Re: PWM motor output error

Post by william_yan » Thu Nov 03, 2011 10:43 am

i will be using with dsPIC33fJ64MC802 and microstick .

akwer
Posts: 1
Joined: Fri Mar 16, 2012 2:44 pm

Re: PWM motor output error

Post by akwer » Fri Mar 16, 2012 3:16 pm

Hi Lubin,
I have a bug with PWM block set.
I use dsPIC Toolbox for Matlab R2011b.
I created new folder "blocks2"and put it in a file "dsPIC_PWM_motor_callback_InitMask.p".
The "dsPIC_PWM_motor_callback_InitMask.p" is copy "dsPIC_PWM_Motor_callback_InitMask.p" from folder "blocks".
Then I added the path to the Matlab search Path.
It solved the my problem. Compilation was successful.
Attachments
1.png
1.png (7.37 KiB) Viewed 36184 times

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PWM motor output error

Post by LubinKerhuel » Fri Apr 27, 2012 1:22 am

Akwer,

Matlab is now case sensitive.
I corrected few problem caused by this change.

You might be using an old blockset version. Please update and let me know if the problem is still there.

The file dsPIC_PWM_Motor_callback_InitMask.p has M of Motor upper case in latest blockset release.

Lubin

nasrullah
Posts: 2
Joined: Sun Dec 23, 2012 3:47 am

PWM on 32MX460F512L

Post by nasrullah » Wed Dec 26, 2012 2:50 am

Hi Lubin,

It is true that there is no PWM motor peripheral available on chip 32MX460F512L?

ruxania
Posts: 1
Joined: Thu Mar 14, 2013 9:04 am

Re: PWM motor output error

Post by ruxania » Thu Mar 28, 2013 4:44 am

I'm only a freshmen without any knowledge in building stuff. I want to build a motor in which can vibrate at a given frequency. It will be helpful if the materials are cheap to get. I was looking at an electromagnetic linear motor but i cant find one in which i can buy.
______________________
healthy dinner recipes ~ simple recipes for dinner ~ low fat recipes

chiclothe
Posts: 2
Joined: Fri Sep 06, 2013 7:28 am
Contact:

Re: PWM motor output error

Post by chiclothe » Fri Sep 06, 2013 7:29 am

Thanks for the screen shoot.

cheaproomd
Posts: 4
Joined: Fri Sep 06, 2013 7:47 am
Contact:

Re: PWM motor output error

Post by cheaproomd » Mon Sep 09, 2013 6:51 am

Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.

cheaproomd
Posts: 4
Joined: Fri Sep 06, 2013 7:47 am
Contact:

Re: PWM motor output error

Post by cheaproomd » Wed Sep 25, 2013 7:11 am

Thanks for the screen shoot.

cheaproomd
Posts: 4
Joined: Fri Sep 06, 2013 7:47 am
Contact:

Re: PWM motor output error

Post by cheaproomd » Mon Sep 30, 2013 4:50 am

Thanks for the screen shoot.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests