ladder logic

nazeeravt

Member
Join Date
Feb 2012
Location
Hyderabad
Posts
31
I am finding it difficult to solve this problem,the question is:
I have 5 led's
led 1
led 2
led 3
led 4
led 5

in the increasing order the led's should glow and each time only one led should be glowing serially from 1 to 5. Again the led's should start in reverse order i.e
from 5 to 1 and this should be continuous.

I have solved 1-5 and again 1-5 continuously but not 1-5 , 5-1.

Thanks
 
two plcs are available siemens s7 200 and allenbradley micrologix 1000.I can convert one from the other.For siemens step 7 microwin 32 and micrologix 500 for allenbradley.
 
Hi I am a beginner plc programmer as well but the way I would do it, is using counters and timers,
if counter = 1 then turn on light 1 after the timer is done, then increase the counter by 1.
if counter =2 then turn on light 2, you get the picture.
When you get to the last light instead of increasing the counter decrease it. I haven't messed with seq but this is pretty easy with counters and timers I think.
 
What the OP has asked for is very, very basic programming.
Would be interesting to see how/what he has done so far, before he gets a multiple of dozens different suggestions from us others ;).

Kalle
 
Nazeeravt,

Here is a sequencer method to do 1-5 then 5-1, apparently left over from your instructor's class last year. This one has variable time steps too, but maybe he decided that was just too difficult. It should be easy for an experienced student like yourself to figure out how to reverse the sequencer pattern numbers.

Some of the last two rungs got cut off by my PDF printer, but you should have enough to see the method!
 
Last edited:
What the OP has asked for is very, very basic programming.
Would be interesting to see how/what he has done so far, before he gets a multiple of dozens different suggestions from us others ;).

Kalle

I am with you on that, but with my suggestion he still gotta know how to use timers, and counters.
 
this is a very easy code.. You only need CTU and CTD with same Address, a pulser series with directional bit xic (Down if on, count up if off) then trigger your Counter up, Next CTD or Counter down with pulser series with Directional Bit xio in off ..
 
insert spoon

I wonder of these instructors are giving the students enough time to figure this stuff out or if they are not starting until it is too late?

As for the assignment,

I suppose you have to use a timer in order to see the LEDs change state.

Try using just one timer.

A counter might be a good way to go, but I would increment an INTeger.

Maybe like a use case, or a simple if then

The only trick here is that you need to "remember" that you have already counted UP to 5 and then you need to count down.

One section will count up, then you get to 5, how do you "remember" that you have already counted UP and should now count down?

That is the thing he is adding to this assignment versus the previous.

I am sure he mentioned this.

There are several ways to do it. In Siemens there are probably at least 100.
 
I may not have followed the question correctly, but why count down at all? I mean you can but it sounds potentially harder.

0 - none
1 - 1
2 - 2
3 - 3
4 - 4
5 - 5
6 - 4
7 - 3
8 - 2
9 - 1
(RST)

Just use a count up and have the outputs run on OR statements. (There are a lot of ways to solve this though.)
 
Using one CTU and one CTD that is triggered by the DN bit of the CTU, set both to only count to 5 of from 5. a equal than command to trigger each LED at given number, when the counter get to each number the corresponding LED should light up
 
Using one CTU and one CTD that is triggered by the DN bit of the CTU....
Cheezy, Something like this Allen Bradley MicroLogix 1000 program?
 
Last edited:

Similar Topics

Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
9
Views
96
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
193
Good morning crew! Ok my logic works but I am missing something. When the start button is pushed it should like the red light for 4sec then shut...
Replies
13
Views
419
Working on project will update after it is completed.
Replies
2
Views
353
Can someone help me piece this problem together. I have a lot of it down I think but cannot seem to get it right. Probably an easy one for most on...
Replies
1
Views
301
Back
Top Bottom