what is the best instruction to use in this project , MICR0820

dikopiano

Member
Join Date
Mar 2021
Location
Simi valley
Posts
1
hello all, I am a beginner in this world of the PLC, I would like to know if someone can recommend me what function (instruction) I should use for this project thank you.

Allen Bradley MICRO820 2080-LC20-20QWB

INPUT 00 light 1 on (output 00)
INPUT 00 light 2 on (output 01)
INPUT 00 light 3 on (output 02)
INPUT 01 turn off all the lights to start again.


thank you again to all.
 
Welcome to the forum, I suggest you give a little bit more detail in what you wish to achieve, do you mean use the one input (0/0) to turn on lights in succession ? do you need them to come on & stay on or rotate in sequence.
If in sequence then I suggest you use a counter, with an less than function so the counter only counts up to 3 then, reset the counter with the second input.
Use Compare functions to drive the outputs
IO/O
-------| |---------[ LES < C5:0.ACC 3 ]-------------[C 5:0 4]----
IO/1
-------| |-----------------------------------[RST C5:0]
O:0/0
--------[ GRT > C5:0.ACC 0]--------------( )

O:0/1
--------[ GRT > C5:0.ACC 1]--------------( )

O:0/2
--------[ GRT > C5:0.ACC 2]--------------( )

So providing the counter accumulator is less than a count of 3 the toggle of the input will count up, on count 1 the first lamp will come on
on the second count the second light will come on
on the third count the third light will come on subsequent toggle of the input will not do anything
Toggling the second input will reset the counter to zero all lights will go out.
If you only want one light at a time replace the compare functions with EQ.
Then the lights will only come on depending on the counter value.
Sorry I do not have RSL at the moment on this pc, hope this helps, there are of course many other ways of doing it by sequence bits or words.
 

Similar Topics

Hi, trying to explain my situation as simply as I can. I want to use a numeric entry in my panelview to load a specific number to an integer in...
Replies
5
Views
1,372
Lately, I've been using Modbus for reading sensor values in process programming. I haven't used Modbus much, so I spent some time looking at...
Replies
4
Views
1,891
for micrologix devices rslinx 5000 I am task with adding some static bars to one of our lines. The current code has 2 bars already in place. I'm...
Replies
3
Views
1,487
Just want to put the question out to the PLC guru's... What is the best permissive logic for an Allen Bradley PLC MSG logic? I have seen message...
Replies
6
Views
3,350
I am working with an AB PLC5 I need to scan 256 inputs that are normally high if one drops low then take action but continue scanning for others...
Replies
3
Views
1,602
Back
Top Bottom