Program tip

Hello,

I would be realy thankfull if someone could help me.

I would like to know what is the most used way to make a program to control a automatic door using just one button to activate it.

Using three buttons (one to open, one to close and the other to stop) is easy. But I had problems to program it with just one button (at the first touch it opens, at the second it stops and at the third it closes).

Does anyone have an ideia? If someone want to send me a drawing, please send it to my e-mail: [email protected].

Thanks,

Marco
 
I would use one-shot to increment a counter or rotate bit in a word
through four different states:
0 - stop
1 - open
2 - stop
3 - close
4 - return to state 0
 
I think you need to do a better job of defining what you want to accomplish. Something like:

If the door is fully closed, pushing the button makes it open.
If the door is fully open, pushing the button makes it close.
If the door is moving from closed to open, pushing the button makes it stop.
If the door is moving from opened to close, pushing the button makes it stop.
If the door is stopped between closed and open, pushing the button makes it restart in the direction it was previously moving.

Give us as much information about the project as you have, and show us what you've managed to do so far. We'll be happy to offer suggestions.

If you would rather have one of us email you a solution to your homework assignment, send money first.
 
Hint:

Use Modes. ie closed, open, closing, opening, stopped--could be more--close from full open, close from mid open, etc.

So first decide how many modes you need and define them correctly--then structure your code to leave one mode and enter another.

Use the mode bits to control the i/o.

I would like to know what is the most used way to make a program to control a automatic door using just one button to activate it.

Really, the most used way is to sit on your butt ans screw with the code until you can make it do what you want it to. If it works, it's OK--it's not right or wrong, good or bad, it just works.
 
What you mean is 4 step, step relay.it shoud lock like that you need one input and 2 outputs

P.B osr1
--I I----------{ONE SHOT}

OSR L3
--I I-----I I-----{U 1,2,3,} RESET ALL, STOP BETWEEN CLOSED TO OPEN
OSR L2 3
-I I----I I----{L} CLOSED


OSR L1 2
--I I----I I------{L} STOP BETWEEN OPEN TO CLOSED

OSR 1
--I I------------{L} OPEN DOOR


L1 L2 L3
--I I---I/I--I/I--------{OUT 1} OPEN DOOR

L1 L2 L3
--I I---I I--I I--------{OUT 2} CLOSED DOORL3




I hope I helped
 

P.B osr1
--I I----------{ONE SHOT}

OSR L3
--I I-----I I-----{U 1,2,3,} RESET ALL, STOP BETWEEN CLOSED TO OPEN
OSR L2 3
--I I-----I I-----{L} CLOSED

OSR L1 2
--I I-----I I-----{L} STOP BETWEEN OPEN TO CLOSED

OSR 1
--I I-------------{L} OPEN DOOR

L1 L2 L3
--I I---I/I--I/I--------{OUT 1} OPEN DOOR

L1 L2 L3
--I I---I I--I I--------{OUT 2} CLOSED DOORL3


I havent tested this post of ArikBY, I just attempted to clean it up for better viewing.

I am not sure this is the best way to do this but it may offer a way to figure it out.
 
RSDORAN

Thank You I new in this forum and littlle bit confused how to insert
ledder to this area.I think it will work it must to be in that order.
another option is to put timers after evry L .but it became not elegant solution for student.
 

Similar Topics

I need someone who has some other versions of Modsoft or LModsoft to see if this is just me or not. I've tried loading this program into Lmodsoft...
6
Replies
109
Views
I'm looking for the program for a Fitzpatrick IR520 Roller compactor. We acquired one and the program is gone for the whole machine. It would be...
17
Replies
484
Views
Hi everyone, I am currently working on a legacy system equipped with an ABB Procontic T200 PLC. I need to upload and read the program from the...
1
Replies
132
Views
This is my first time seeing this kind of plc and I'm having trouble figuring out what software is used to program it. If anyone has experience...
2
Replies
315
Views
Hello friends, I want to upload project from ABB 07KR51. I have AC31GRAF software, I made cable. But I'm getting timeout error. Somebody can help me?
3
Replies
246
Views
Top