IRQ on MSC2250

9 years 7 months ago #29528829 by softelectro
IRQ on MSC2250 was created by softelectro
Hello everyone,

I've got an MDC2250 motor controller that i control with the C++ API. Sometime, the motor controller goes into error and i would like to know the error with the fault flag.

To avoid to ask again and again the motor controller, is it a way to have an IRQ when an error occurs?

Thanks in advance,

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528830 by Griffin Baker
Replied by Griffin Baker on topic IRQ on MSC2250
You can write a microbasic script that will monitor the status flags of the controller.

Refer to page 180 and 181 of the user manual.

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528844 by softelectro
Replied by softelectro on topic IRQ on MDC2250
Thanks for your reply,

I've made the small script but fault flag is always nul, so IRQ (D0) never change the level.

I think that the error that stop the motor is not due to overcurrent, over temperature, ... (= Fault flag error)
I think that the error come when the loopback error is to hight. Because when i disable or change the "CLERD" value, i can't recreate the error.

Like the loopback error security is active in specifique condition. Is there a simple solution to detect this error and make an IRQ?

Thanks in advance

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528845 by Griffin Baker
Replied by Griffin Baker on topic IRQ on MDC2250
You may have the October version firmware that had some bugs in it. Try updating with this one.
Attachments:

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528850 by softelectro
Replied by softelectro on topic IRQ on MSC2250
Hello,

The firmware int the motor controller was v1.2 05/25/2013, that I have update with the latest.

But I don't see the difference that I can use?

Thanks

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528851 by Griffin Baker
Replied by Griffin Baker on topic IRQ on MSC2250
There was a fault flag bug in the previous releases that has been fixed in the one I uploaded in this thread.

Outside of that, there is no harm in updating to the latest version.

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528856 by softelectro
Replied by softelectro on topic IRQ on MSC2250
Ok for the bug fixe, but I'm sure that the motor stop due to loopback error in tricky situation.

In the new firmware, is the loopback error report in the fault flag?
If so, which is the value return by the fault flag?
If not, how can I detect the loopback error security in a microbasic script?

Thanks

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528861 by Griffin Baker
Replied by Griffin Baker on topic IRQ on MSC2250
Page 180 of the user manual.

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29528863 by softelectro
Replied by softelectro on topic IRQ on MDC2250
I've got an very old version of the user manual that don't have all new fonction.

So I will change the microbasic script to use _FM fonction.

And i make a big update.

Thanks for patient and your time

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.072 seconds