Ad d0-06 ladder seq.

nykommling

Lifetime Supporting Member
Join Date
May 2004
Location
minneapolis
Posts
39
Hi, Could someone explain to me why this code will not set output Y1 as it is written. I placed rung 9(set Y1) after rung 10(reset) and it worked fine. How can the reset happen if Y1 in rung 10 isn't true?


ductors.jpg

Thank You
 
nykommling said:
How can the reset happen if Y1 in rung 10 isn't true?
Y1 is true in rung 10. The state of Y1 is updated immediately, although it won't update the 'physical' output until the end of the scan.

EDIT: It looks like you want Y1 to alternate each time the counter reaches preset. Are you trying to make a flip-flop?

🍻

-Eric
 
Last edited:
First off, the outputs are only written to the actual hardware output at the end of each scan, but the status of the output as stored in the memory location is updated as each rung is scanned.

That means that in your example when rung 9 is solved, Y1 is OFF and if CT0 and C12 is ON the logic will set - turn ON - Y1. This stores a "1" or "ON" in the memory location of the PLC for Y1.

Then when rung 10 is solved, Y1 is seen as ON. That's because the previous rung stored a "1" in Y1. Since Y1 is ON, if C10 is also on Y1 is reset - turned OFF and a 0 or OFF stored in the memory location for Y1.

At the end of the scan Y1 has a 0 in it's memory, so when the output table is written to the physical outputs Y1 is OFF and so is any load connected to it. When the program scan repeats, it gets to rung 9, and Y1 is off, so .................

This logic is an example of why I personally hate and despise SET and RESET commands. It is not obvious what is going on, and trouble shooting is much harder than it needs to be.

Incidentally, I also hate one shots (PD coils) for the same reason.
 

Similar Topics

my ccw softwer stops working when i add and try to open a ladder program.
Replies
0
Views
79
Hello, I am going over some old code from days gone by. I would like the expert to confirm my findings to see if I got it correct. 1. B64:22/3...
Replies
7
Views
482
Hello, I´m having a problem trying to program in Ladder. An output should be trigged by two possible contacts. Take a look on the printscreen...
Replies
5
Views
187
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
210
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
426
Back
Top Bottom