Autor Thema: motors  (Gelesen 5261 mal)

Offline krazeeandrei

  • Newbie
  • *
  • Beiträge: 1
motors
« am: Juni 05, 2006, 12:17:39 Nachmittag »
hello,
i'm working for a few month with easy but i encountered a problem.
i have to start 18 motors on delayed by 5s. when all are running i can stop them off delayed 5s starting the last turned on.
on starting: if a problem occures until they are all running, they  will stop backwords (from the last turned on).
if they are all running and a foult occures in the middle, all upwards motors will stop alltogether and downwards (starting the one before the one with the problem to the first turned on) delayed by 5s.

if somebody has a similar problem answered or can help me anayway, i am waiting for your respons.

thank you,
Andrei.

Bimbo

  • Gast
Re: motors
« Antwort #1 am: März 28, 2007, 21:45:05 Nachmittag »
What you need?

Offline boppel

  • Full Member
  • ***
  • Beiträge: 192
  • Zwei mal Halbwissen ist noch kein Vollwissen.
Re: motors
« Antwort #2 am: März 29, 2007, 20:00:07 Nachmittag »
priwjet Andrei,

try it with a blinking timer (5 sec) which increases a counter.
Then convert the counter value into the output signals for the motors:

counter  | motor no.
value      | 18 17 16 15 14 13 12 11 10 9  8  7  6  5  4  3  2  1
-----------|-----------------------------------------------------------------
00000     |  0   0   0   0   0   0   0   0   0  0  0  0  0  0  0  0  0  0
00001     |  0   0   0   0   0   0   0   0   0  0  0  0  0  0  0  0  0  1
00010     |  0   0   0   0   0   0   0   0   0  0  0  0  0  0  0  0  1  1
00011     |  0   0   0   0   0   0   0   0   0  0  0  0  0  0  0  1  1  1
00100     |  0   0   0   0   0   0   0   0   0  0  0  0  0  0  1  1  1  1
00101     |  0   0   0   0   0   0   0   0   0  0  0  0  0  1  1  1  1  1
...

For switching off the drives, reverse the counter direction (decrease).
Clearing the counter will switch all drives off.
Setting the counter to a specific value will switch some drives on, the others off.


Hope this will help you,

poka

Boppel

Offline chris39

  • Newbie
  • *
  • Beiträge: 3
Re: motors
« Antwort #3 am: August 14, 2007, 14:43:33 Nachmittag »