RUNG001 is for controlling Conveyor Belt 1 motor M1 which is operated by Box Detection proximity switch.
When the process is started and empty box is detected by Proximity having address of I:1/1, power supply to the
motor of Conveyor Belt 1 is given. This drives the Motor M1 moving objects on the conveyor belt 1.
Every time a part is detected by the I:1/1 Part detector, Counter C5:0 is incremented by 1. Counter has a
preset value of 6. Here that means when total 5 parts are detected, counter done bit C5:0/DN is set to 1.
When C5:0/DN bit is set, timer T4:0 is activated for 2secs which is an assumption that the part will take
approximately 2secs to fall into the box after it is detected by the Pat Detector proximity switch I:1/0.
Counter is immediately reset when C5:0/DN goes true. So one shot is generated by C5:0/DN bit. It latches
the Latching Motor1 bit before it goes false.
Conveyor Belt 2 motor M2 (O:2/1) is operated when counter value reaches to 6 that is when total 5 parts are
detected. And it is stopped when an empty box is detected again.
And the process is repeated.
Important thing to note here is that Counter Preset is set 6 that is because when the counter is reset, the
value is the accumulator is set to 1 because of latching bit.
Runtime Test Cases
Inputs
Output
Physical Elements
I:1/1 = 1
O:2/0 = 1, O:2/1 = 0 Start Conveyor1, Stop Conveyor2
I:1/0 = 1(Momentarily)
C5:0.ACC = +1
Part is detected, Increment Counter
C5:0.ACC = 6 T4:0.EN = 1
Enable Timer T4:0, Reset Counter
T4:0/DN = 1 O:2/1 = 1 Start Conveyor2, Stop Conveyor1
PLC Program for Counting of Parts from Conveyor
This is a PLC Program for Counting of Parts from Conveyor.
Dostları ilə paylaş: