FORUM TOPIC · READ ONLY

PWM motor output error

PWM motor output error

Forum : General Remark and Questions

17 message(s) · archive en lecture seule

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.

Pièce jointe : errors_PWM_motor_block.PNG

LubinKerhuel

Re: PWM motor output error

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

Re: PWM motor output error

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

Pièce jointe : dspic30f6015.mdl

LubinKerhuel

Re: PWM motor output error

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

Re: PWM motor output error

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

Re: PWM motor output error

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

Re: PWM motor output error

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

Re: PWM motor output error

Citation : 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.

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

Pièce jointe : error.JPG

Pièce jointe : FYP_pwm_model.mdl

william_yan

Re: PWM motor output error

i will be using with dsPIC33fJ64MC802 and microstick .
akwer

Re: PWM motor output error

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.

Pièce jointe : 1.png

LubinKerhuel

Re: PWM motor output error

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

PWM on 32MX460F512L

Hi Lubin,



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

Re: PWM motor output error

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

Re: PWM motor output error

Thanks for the screen shoot.
cheaproomd

Re: PWM motor output error

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

Re: PWM motor output error

Thanks for the screen shoot.
cheaproomd

Re: PWM motor output error

Thanks for the screen shoot.