Need help with basic ladder logic.

Ron, PM Phil and see if he will remove the phone number. I recommend not doing that again, if there PM or email is not available then probably not worth conversing with.
 
leitmotif said:
1. Read book
2. Make a proposed design
3. Share proposed design here
4. You will get feedback on good bad points

OR
Submit $200 retainer and I will do your work for you.

Dan Bentler


damnnn didn't know one could make money doing this ****..... hmmmm better make myself a note
 
milldrone said:
XIO,

Remember Ron Beaufort's "big hint", post #12. Things do not happen instantly with a PLC. And they scan the ladder top to bottom. This makes PLC's like a timer. But unlike a timer the "timing" is in sync with the plc.

This should work on your PLC. Can you tell me how it works?

If you put rung #2 first it won't work. Why?

Okay, Milldrone, that took a few minutes to fully understand it. The question's already been answered, but in my words:

1. Upon startup, there is no path from left to right.
2. When you first press the input, Input is on, output is off, and internal is on, giving the input -> !internal -> !output -> output as the path.
3. Internal address goes on while the input is on.
4. While you're holding the input, the path from output -> internal address -> output keeps the light on.
5. When you let go of the input, the output -> not input -> output path is the active path.
6. When you press input again, the output -> input path is broken, turning off output, BUT...
7. During this time, the internal address keeps the light on via the output -> internal -> output path.
8. When you let go, the light turns off.


It won't work when it's backwards because then input and internal are the same value, and you have to have a moment where they are opposite in order to activate the output. This can be done by allowing the scan parameters of the PLC to work in your favour - the first rung is scanned first, then each rung is scanned in order from top to bottom.

Here's my question: Is there a chance that it will fail if the input happens to trigger in between rungs, or does a PLC read the inputs first, before it starts to process the ladder logic?

Ah, my friend Mr. Manual tells me that the PLC I'm using scans its inputs, runs the ladder logic, updates the outputs, does some diagnostics, scans its inputs again, and so on. Ah, so now the "fast IO" makes some sense.
 
I have posted "LogixPro Alternation Methods" in the Allen-Bradley Downloads section. These are the 8 best working toggle methods I could find after searching all the different flip-flops posted here on PLCs.net. My 3 favorites are 1-rung solutins. You may recognize your contribution (thanks!). If there is any interest, I can convert it to RSS and PDF files also.
 
Last edited:

Similar Topics

Hello there, I'm practically new to the PLC world, I'm quite familiar with Siemens TIA Portal but I'm currently tasked to program Schneider PLCs...
Replies
5
Views
1,880
Using studio5000 v21 I had a challenge in a course. When you press a light pushbutton on it turns the light on. When you release the pb it stays...
Replies
7
Views
2,920
Hi, I am using visilogic to control a system that i have designed. I have designed a automated color sorting mechanism using a color sensor. I...
Replies
2
Views
1,453
using S7-200 PLC for this case... Heres my problem... I have 2 NORMALLY OPEN Push Buttons PB1 is I0.0 PB2 is I0.1 PB1 and PB 2 are connected in...
Replies
5
Views
1,525
I have a slc 5/04 (1747-L541C). I have a 1746-BAS 5/02 in the rack. I have 2 automation direct EZtouch screens. I have no problem programming...
Replies
1
Views
1,587
Back
Top Bottom