Encoder Counter Reset

5 years 1 month ago - 5 years 1 month ago #29531017 by rajeshwar
Hi,

Is it possible to reset the encoder counter without resetting the power? I am using an older version of FBL2360.

Thanks,
Rajeshwar

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

5 years 1 month ago #29531018 by roboteq
Replied by roboteq on topic Encoder Counter Reset
Send the command for loading a value in the counter

!c 1 0 for counter 1
!c 2 0 for counter 2

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

5 years 1 month ago #29531019 by rajeshwar
Replied by rajeshwar on topic Encoder Counter Reset
I am running my motor in closed loop count position mode with encoder as a feedback. Suppose my encode reading was 10000 and as soon as I gave that command, my motor started to vibrate and drew heavy current causing an over current fault in the power supply.

I should rephrase my question: Can I reset the encoder reading while I am operating in closed loop count position mode?

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

5 years 1 month ago #29531021 by TechSupport
Replied by TechSupport on topic Encoder Counter Reset
You want to reset while in open loop, otherwise it will reset and then try to go to last count.

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

5 years 1 month ago #29531024 by rajeshwar
Replied by rajeshwar on topic Encoder Counter Reset
In Open loop mode, it is working fine. I am finding it difficult to reset the encoder count in closed loop mode only.

Also, while operating in closed loop count position mode with encoder as a feedback, when the encoder count equals the command count, motor is stopping abruptly. I have tried to change acceleration and deceleration values but it did not help. I have tried with different set of PID values but in every case the motor was stopping abruptly.

I want the motor to stop smoothly.

Command given to FBL 2360 was

!P 1 1000000

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

5 years 1 month ago #29531025 by TechSupport
Replied by TechSupport on topic Encoder Counter Reset
The reset in closed loop presents problems. That is why you were told to do it in open loop. Put in open loop mode and reset to zero and then change back to closed loop.

If you are having issues with not stopping smoothly, then the problem is in the PID (P gain use, little I), and possibly the integrator limit% reset. You can set to 1% so that when it gets close to destination or at position, it will limit output to 1%.

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

5 years 1 month ago #29531028 by rajeshwar
Replied by rajeshwar on topic Encoder Counter Reset
I did used very little I. I already explained that I did tried with different set of PID values without any success. As suggested, I shall reset the integrator limit.

Does changing the acceleration and deceleration values not affect the outcome?

Thanks,

Rajeshwar

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

5 years 1 month ago #29531029 by TechSupport
Replied by TechSupport on topic Encoder Counter Reset
Of course it will, it is a closed loop system. You correct one parameter, it will have an effect on the other parameters. This is why lots of trial and error has to be done(Tuning).

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

5 years 1 month ago #29531040 by rajeshwar
Replied by rajeshwar on topic Encoder Counter Reset
I tried resetting the integrator limit to different values. With all the tuning, I am only able to start the motor smoothly but it is stopping abruptly each time, no matter what PID parameters I have selected. What else I can do?

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

5 years 1 month ago #29531041 by roboteq
Replied by roboteq on topic Encoder Counter Reset
It looks like you are using a speed that is faster than which at the motor can physically move.

In the position count mode, a destination count is computed every 1ms and the PID serves to make he motor go to that instant position. You can vew it in the Tracking channel in the chart.

What happens then, if you have the loop error detection disabled, is that the target destination grows higher than the one that the motor is at a given time. The slow down occurs in the Tracking but the motor is so fr behind that it is still trying to catch up. Eventually, the destination is reached and the motor stops abruptly.

Try using a slower speed.

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

Moderators: tonysantoni
Time to create page: 0.205 seconds