Help for this PLC question(same output used twice)

AliAzi

Member
Join Date
Nov 2020
Location
Saudi Arabia
Posts
6
Hi all!

I have one question, it might be simple for one of you but I spent hours searching and reading through different platform until I found this one.

I wish I can get the answer:
Q. Write a ladder logic program that will cause a light to come on if a
PLC counter value is less than 10 or more than 30?

This is what I came by
2nQzSCY

https://ibb.co/2nQzSCY
continue
Wz3LFGW

https://ibb.co/Wz3LFGW

I want to know if there is a possibility to use the same output(O2:0) twice since the question asked about a light. Thanx!
 
Last edited:
Trying to use the MCR instruction is making things far more difficult than it needs to be. Use the input to increment the counter as you are doing. Only use the coil instruction for the lamp in a single rung. That rung will have two parallel branches. On branch will be the condition of the counter less than 10. The other branch will be the condition of the counter greater than 30.
Some older PLCs may not permit parallel comparison instructions. If yours is one of those, create individual rungs with each comparison instruction turning on a different internal coil instruction. Then add a third rung with contact instructions addressed to your two internal coils in parallel, turning on the lamp. That third rung is the OR instruction AustralIan referred to.
 
You could use the LIM instruction instead of the LES & GRT and do it all on one rung
and one output
 
What I will do is creat a new internal bit( for eg: B3:0/0) which activates b/w 10 to 30 and in another rung use XIO(B3:0/0) which turns light on

ya we cannot use same output which is being activated by two different things:unsure:
 
Welcome to the forum!


What have you tried so far? Can you post a sample (PDF or text file or image or zip, etc.)?


I am certain you will want to assign a 1 or 0 (via OTE instruction, in A-B lingo) any single output only once; there is a way to effect a logical OR using "branches" on a single rung.
 

Similar Topics

Hi all, this is my first thread on here, completely new to plc. Have been given a 1769 L24ER QB1B to play with. I have a PA2 power supply and a...
Replies
3
Views
1,786
Hi, I have no knowledge of TwinCat:shoot: We have a system running TwinCat PLC v.2.11 on a XP computer, EtherCAT BECKHOFF EK1100, 8 24 vOLTS i/O...
Replies
10
Views
3,282
So ive chosen the first option. Is it correct? it would be helpful If i could get an explanation too. thanks
Replies
7
Views
2,261
Hello Everybody. I would not post this here if I did not really need some help with this. I appreciate your patience. I normally use this site...
Replies
22
Views
6,376
Hi all i'm new her , i really want help with this question i totally don't understand it i think put nothing come in mind plz help because that...
Replies
8
Views
3,206
Back
Top Bottom