Lecture Notes PLC - Unit II
Lecture Notes PLC - Unit II
By
Dr. Ahteshamul Haque
Unit II
A display of input and output register bits shows the “set” and “reset” states for the PLC at this moment in time:
SOLUTION OF ASSIGNMENTS
Prob.1: Draw the ladder Diagram of the Logic Diagram Shown Below:
SOLUTION OF ASSIGNMENTS
Prob.2: Draw the ladder Diagram of the Logic Diagram Shown Below:
LATCHING FUNCTION IN PLC
Application of this in industrial PLC systems is a latching start/stop program for controlling electric motors by means of
momentary-contact push-button switches.
- In this system, two push-button switches are connected to discrete inputs on a PLC, and the PLC in turn energizes the
coil of a motor contactor relay by means of one of its discrete outputs.
- Pressing the “Start” pushbutton energizes discrete input channel 6 on the PLC, which “closes” the virtual contact in the
PLC program labeled IN switch Start.
- The normally-closed virtual contact for input channel 7 (the “Stop” pushbutton) is already closed by default when the
“Stop” button is not being pressed, and so the virtual coil will receive “power” when the “Start” pushbutton is pressed
and the “Stop” pushbutton is not.
- The coil labeled OUT contactor writes the status of that bit, while the contact labeled OUT contactor reads the status
of that same bit. The purpose of this contact, of course, is to latch the motor in the “on” state after a human operator
has released his or her finger from the “Start” pushbutton.
- This programming technique is known as feedback, where an output variable of a function (in this case, the feedback
variable is OUT contactor) is also an input to that same function.
PLC DIAGRAM FOR TRANSITIONAL EVENT
PLC DIAGRAM FOR TRANSITIONAL EVENT
PLC DIAGRAM FOR TRANSITIONAL EVENT
- When the pushbutton switch is pressed and the discrete input energized, the first test lamp will blink “on” for
exactly one scan of the PLC’s program, then return to its off state.
- The positive transition contact (with the letter “P” inside) activates the coil OUT test1 only during the scan it
sees the status of IN test transition from “false” to “true,” even though the input remains energized for many
scans after that transition.
- Conversely, when the pushbutton switch is released and the discrete input de-energizes, the second test
lamp will blink “on” for exactly one scan of the PLC’s program then return to its off state.
- The negative-transition contact (with the letter “N” inside) activates the coil OUT test2 only during the scan it
sees the status of IN test transition from “true” to “false,” even though the input remains de-energized for
many scans after that transition:
- It should be noted that the duration of a single PLC program scan is typically very short: measured in
milliseconds.
STEP BY STEP METHOD FOR PROGRAMMING USING PLC
The procedure for programming a PLC for a certain application depends on the type of standard
manufacturer software tool and the type of control application.
The primary step to program the PLC is to get the idea for
which you are going to develop an application-based
program. If you are driving a line follower robot by the use
of DC motor when the push button is pressed. This status
must be displayed by the LED light when the motor gets
turn on. The motor is also attached with a sensor (Here it is
considered as another switch) that detects obstacles, so
when this turned on, the motor should be turned off. And
correspondingly, if the motor switched off, the buzzer
should be turned on.
STEP BY STEP METHOD FOR PROGRAMMING USING PLC
Step 2: List All the Conditions and Get the Design using Flowchart
FLOW CHART
STEP BY STEP METHOD FOR PROGRAMMING USING PLC
Step3: Open and Configure the PLC Programming Software
•
When X1 = ON, TMR instruction will be executed. Timer T1 will be ON and
start counting for 5 sec. When T1 reaches its set value, the NO (Normally Open)
contact T1 will be activated and indicator YI will be ON.
•
When X1 = OFF, TMR instruction will not be executed. Timer T1 will be
OFF and so will NO contact T1. Therefore, the indicator Y1 will be OFF.
Number of PLC Inputs Required
X1 – Start Switch.
Enabling the indicator to be ON after a 3 sec delay when switch pressed and OFF immediately by the switch
PLC Ladder Program Description:
•
When X1 = ON, TMR instruction will be executed.
Timer T1 will be ON and
start counting for 3 sec. When T1 reaches its set
value, the NO (Normally Open)
contact T1 will be activated and indicator YI will be
ON.
•
When X1 = OFF, TMR instruction will not be executed.
Timer T1 will be
OFF and so will NO contact T1. Therefore, the
indicator Y1 will be OFF.
Number of PLC Inputs Required
X1 – Start Switch.
Number of PLC Outputs Required
Y1 – Output Indicator
Number of PLC Timer Required
T0 – 3 second Timer, 100 ms Time Base. (See K30
Preset Value for Timer)
PLC Ladder Programming: