Closed Loop Counter Position mode

5 years 8 months ago #29530436 by Hannari
I am making a winch using a MDC1460, which I want to be able to tell to go to a certain position and then back again. E.g. Go 1000 revs out and -1000 revs back.

I was thinking of just using one proximity sensor on the wheel to sense a spot on the wheel. Than I would use that to count the revs. Is that something that I could use? It would then just be a digital signal going high every time the wheel turns on rev.

If that method is not possible, I could perhaps then use an encoder to count the number of revs. I figured that I could use the Closed Loop Count Position mode. However, because of certain circumstances I cannot put the encoder on the back of the motor. Can I not just put it at the end of the gearbox, as shown in fig 45 on page 79 in the user manual, and set the motor speed to the gear speed. I have a 3000RPM motor that is on a 20 gear, giving me 150RPMs out at max speed. Can’t I just set the motor max speed to 150 rpms. That way when the gear has reached the max speed according to the encoder the motor is also at its max. Is this a solution I could go by or is there another way?

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

5 years 8 months ago #29530440 by TechSupport
You can use it that to it that way. You may likely need to write a micro-basic script that queries that input and creates a count and then an action that can occur after count reaches so many.

Let's just use Digital input 1 as example. This is just a start to get your sensor to create a count.

dim sensor as integer
dim count as integer
count = 0
top:
sensor = getvalue(_DI, 1)
if sensor = 1 then count++
wait(1)
goto top
The following user(s) said Thank You: Hannari

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

Moderators: tonysantoni
Time to create page: 0.108 seconds