Program Description
Rung000- When start button is pressed and position 1 is detected by LS1, CR1 relay goes ON and is
latched.
Rung001- As long as CR is high, it latches CR1 and CR1 sends continuous true pulse to O:0/12 of Rung007
which energizes motor coil starting the MOTOR. This MOTOR is stopped only when LS2 and/or LS3 are
detected.
Rung002- CR2 is used when the process is stuck in the middle. In this case, manual switch with address
I:0/10 is used to restart the MOTOR.
Rung003- CR3 is energized whenever LS1, CR2 or CR4 goes high. CR3 relay
is used to operate the
UP_MOTOR coil of the stamping motor.
Rung004- UP_MOTOR coil is energized due to CR3 and stamper comes in the main position. This is de-
energized when LSUP is detected which is the upper most and main position of the stamper.
Rung005- When stamping is done that is when lower most position is detected, CR4 is energized and
latched starting the MOTOR until LS3, position 3 of the part is detected.
Rung006- DN_MOTOR coil is energized in order to stamp the part which is when LS2, position 2 of the part
is detected. It stays de-energized whenever CR4 (CR*LSDN) and CR2 (MOTOR) are ON/Energized.
Rung007- Conveyor belt is started whenever MOTOR coil is energized that is whenever LS1 and LSDN is
detected that is whenever Position 1 is detected and again when stamping is done.
Rung008- End of the program and the scan cycle is repeated scanning from the Rung 000 again.
Runtime Test Cases
Input
Relay
Outputs MOTOR
LS1=1,Start=1
CR=ON, CR1=ON, CR3=ON
ON
LS2=1 CR1=OFF, CR3=OFF OFF
Input
Relay Outputs
UP_MOTOR DN_MOTOR
LSDN=1,LS3=0
CR4=1
OFF
OFF
LSUP=0,LS1=1
CR3=1
ON
OFF
LS2=1
C2=0,C4=0 OFF
ON
PLC Program to Drive Motor in Forward and Reverse Direction
This is a PLC Program to Drive Motor in Forward and Reverse Direction.
Dostları ilə paylaş: