MDC2230 Count position mode not run

7 years 4 months ago #29531405 by edmodi
Hi, I'm try to use count position mode with my MCD2230 but when i use "!P 1 1000" command for example the motor not run. I configured accel, decel and speed, the encoder count ok and the loop error detection is disabled. Also the encoder is configured as feedback for the motor at issue.

In open loop or speed mode, the motor and the counter run ok

I update to last firmaware (v.1.5, October 02, 2015). Where is the problem?. Is configuration issue?

Thanks in advanced

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

7 years 4 months ago #29531409 by niko
Hello,

most probably it is a configuration issue.

Make sure when you run in open loop that when motor goes with positive motor command, the encoder counter is going up and vice versa.

If so and you still have a problem play around with the PID. For closed loop count position, With values proportional = 2, integral = 0 and differrential = 0, it should work.

If not please save your configuration in a file and attach it here in order to see if there is anything wrong.

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

7 years 3 months ago #29531468 by edmodi
Hi, sorry for taking so long to answer. I update the same firmware another time and magic!!!. Run without problem.

Now, I'm try to do chaining goto but I don´t know how this mode run. Can you help me with a example script?


Thanks

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

7 years 3 months ago #29531479 by niko
Hi again,

First you need to configure closed loop position motor mode and use p command for goto now and px for goto next. Advise the user manual and for any questions feel free to ask.

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

7 years 3 months ago #29531481 by edmodi
I tried that but when I use px the motor not moving. Specifically I use !P 1 1000 and immediately !PX 1 500 so the counter must be in 1500 not?

Thanks

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

7 years 3 months ago #29531486 by niko
P and PX are for absolute position. PR and PRX are for relative position. In your example you should have used PR and PRX in order to be in position 1500.

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

Moderators: tonysantoni
Time to create page: 0.091 seconds