Page 1 of 1

PWM motor output error

Posted: Tue Oct 27, 2009 7:23 am
by jirka
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.

Re: PWM motor output error

Posted: Tue Oct 27, 2009 11:08 am
by LubinKerhuel
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

Re: PWM motor output error

Posted: Tue Oct 27, 2009 2:15 pm
by jirka
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

Re: PWM motor output error

Posted: Tue Oct 27, 2009 11:28 pm
by LubinKerhuel
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

Re: PWM motor output error

Posted: Thu Oct 29, 2009 8:57 am
by jirka
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

Re: PWM motor output error

Posted: Tue Nov 17, 2009 3:11 pm
by LubinKerhuel
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

Re: PWM motor output error

Posted: Sun Nov 22, 2009 6:44 pm
by jirka
Hi Lubin,

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

Jirka

Re: PWM motor output error

Posted: Thu Nov 03, 2011 10:39 am
by william_yan
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

Re: PWM motor output error

Posted: Thu Nov 03, 2011 10:43 am
by william_yan
i will be using with dsPIC33fJ64MC802 and microstick .

Re: PWM motor output error

Posted: Fri Mar 16, 2012 3:16 pm
by akwer
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.

Re: PWM motor output error

Posted: Fri Apr 27, 2012 1:22 am
by LubinKerhuel
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

PWM on 32MX460F512L

Posted: Wed Dec 26, 2012 2:50 am
by nasrullah
Hi Lubin,

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

Re: PWM motor output error

Posted: Thu Mar 28, 2013 4:44 am
by ruxania
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

Re: PWM motor output error

Posted: Fri Sep 06, 2013 7:29 am
by chiclothe
Thanks for the screen shoot.

Re: PWM motor output error

Posted: Mon Sep 09, 2013 6:51 am
by cheaproomd
Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.

Re: PWM motor output error

Posted: Wed Sep 25, 2013 7:11 am
by cheaproomd
Thanks for the screen shoot.

Re: PWM motor output error

Posted: Mon Sep 30, 2013 4:50 am
by cheaproomd
Thanks for the screen shoot.