Inputs
Outputs
Comment
D
Qn+1 Q^n+1
0
0 1
Reset Condition
1
1 0
Set Condition
Programming Application - Photoeye
Make and Break Logic (Debounce)
Article ID: 15
Last updated: 13 Oct, 2010
How many times have you seen your photoeye lens get dirty and think there was a part to sense but
really it was just a false input? Hopefully in this example I can explain to you how to implement make /
break into your control logic.
Let's say that you have a photoeye that makes sure your part is present before it fires a pusher
cylinder that moves your part down stream 90 degrees. See the example logic below.
Most everyday, the photoeye will function properly by seeing your part on the conveyor, sending a
signal to the PLC, and then the PLC will tell the pusher to push the part to the other side. However,
let's say one day the photoeye lens gets dirty. Now no matter if you have a part in front of the sensor
or not, the input to the PLC is still going to be true. So when it comes time to evaluate this rung again,
your pusher would function just like normal even with no part present and the maintenance guys are
going to give you a goofy look because your pusher has just cycled with not part on the conveyor.
Designing make / break logic for devices such as a pusher to verify the part has indeed left the
automated area is a common practice easy to implement. The concept is to use an internal latch bit in
conjunction with a single shot bit. Once your pusher has retracted it will unlatch the "make" bit. See
example logic below.
PLC LADDER Programming Practice Problems 1
Topics Covered in this example is
Dostları ilə paylaş: