SlideShare a Scribd company logo
1 of 7
Download to read offline
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 51
Theory and Practical for week 07
A) Relay: A relay is an electromechanical device that consists of two basic components, a relay coil and
relay contact. The relay contact is used to switch a circuit on or off and the relay coil is used to change the
state of the relay contact. The three main types of relays are spring return relays, latching relays and
multipole relays. Relay ladder logic (RLL) is the most common programming language used to
communicate with PLCs and was developed to mimic relay logic. It uses graphical representations of
contacts, coils and special instruction blocks and was originally designed to facilitate simplicity and ease-of-
use.
Below is a very simple motor control relay logic and its corresponding ladder logic. Relay Logic has a Start
switch, Stop switch, Control Relay and Relay Coil (CR1) and a Motor (Mtr). Ladder logic shares similar
look and feel as relay logic. But the physical switches and coils of relay logic are replaced with PLC’s
memory location which are represented as Inputs (I) and Outputs (O).
Motor Control Relay Logic [Automation Studio] Motor Control PLC Ladder Logic [LogixPro]
B) Jumps: Jump instruction in ladder logic is used to skip some
process or rungs according to the requirement. It is paired with Label
which is used to limit the skipping the process.
Example: If there are 4 motors used for various processes. On-demand base Motors 1& 2 are needed. Then
we need to design a program to skip Motor 3 & 4 when it does require for the process. When The input I:1/0
is used all Motors turn on. The input I:1/1 is used to initiate the jump function (Q2:0). When Jump is
initiated and input I:1/0 is off only Motor 1 & 2 will be initiated. This Jump statement is specially used to
control elements within JMP to LML.
Without Initiating Jump Command Initiating Jump Command
C) Subroutines: JSR, SBR, and RET instructions are used to direct the controller to execute a separate
subroutine file within the ladder program and return to the instruction following the JSR instruction. The
SBR instruction must be the first instruction on the first rung in the program file that contains the subroutine.
• Use a subroutine to store recurring sections of program logic that must be executed from several points
within your application program
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 52
• A subroutine saves memory because you program it only once.
• Update critical I/O within subroutines using immediate input and/or output instructions (IIM, IOM),
especially if your application calls for nested or relatively long subroutines
• Otherwise, the controller does not update I/O until it reaches the end of the main program (after
executing all subroutines)
• Outputs controlled within a subroutine remain in their last state until the subroutine is executed again.
When the JSR instruction is executed, the controller jumps to the subroutine instruction (SBR) at the
beginning of the target subroutine file and resumes execution at that point. You cannot jump into any part of
a subroutine except the first instruction in that file.
The target subroutine is identified by the file number that you entered in the JSR instruction. The SBR
instruction serves as a label or identifier for a program file as a regular subroutine file. The instruction must
be programmed as the first instruction of the first rung of a subroutine.
The RET instruction marks the end of subroutine execution or the end of the subroutine file. The rung
containing the RET instruction may be conditional if this rung precedes the end of the subroutine.
Sub Routines PLC Example
In the above picture, there are totally 8 files listed. In that SYS 0 and SYS 1
are default files.
LAD 2-Main is the main page of the program, that means PLC starts
executing IO’s from this page only.
LAD-3-IO MAPPING, LAD 4-SCALING, LAD 5-PID, LAD 6-PLANT 1
and LAD 7 PLANT 2 are sub programs categorized by project function and
sequence.
PLC Instruction Description
a) JSR-Jump to Sub routine
We can use this instruction using condition by adding some input before
the instruction like,
In the SBR File number, we should give the ladder number i.e. which sub routine we should call at this place
as shown in figure.
b) RET: Return to Main Page
Return instruction should add at the end of the sub routine program.
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 53
Experiment: Develop Ladder Program for relay-based motor control automation such that the motor
reverses its direction when the limit switches are activated
Problem Description
A motor is connected to PLC. Run this motor in the Forward and Reverse direction using Ladder Diagram
programming language.
Problem Solution
• For any three-phase AC motor, reversing can be accomplished by reversing any two leads. For single-
phase motor, reversing start lead with respect to the main leads. And for DC motor, reversing the field
leads with respect to the armature leads.
• There are certain ways to reverse the motor. One is to use DPDT (Double Poles, Double Throw) switch
and another one is by using Reversing Contactors.
• DPDT switch is best suitable for reversing a small DC motor while Reversing Contactor is used to
reverse Three-Phase AC motors.
• Single-phase motors are not widely used for reversing operation. In fact, these are not even available
widely with reversing capability.
• As here we have a three-phase AC motor, reversing any two leads will drive the motor in reverse
direction.
• Contactor is an electrical switch used for switching an electrical power circuit.
• Two magnetic contactors are used, one for forward connections and the other for reverse connections.
• Only Push-Button switches are used to control the direction of this three-phase AC motor.
• We have the input commands to these Push Button switches which are then internally processed by PLC
and then there is the output terminal which activates the corresponding relay to energize the relevant
magnetic contactors.
• Configure forward and reverse wiring of the motor with contactors such that forward contactor is
connected directly in the normal direct phasing of the motor terminal and reverse contactor is connected
with two of the motor terminals in the opposite phase.
• When it is switched to reverse direction, forward rotation does not stop instantaneously hence we have
to determine what time it takes to completely stop one particular direction. Then provide time delay of a
second or two and activate the other contactor.
PLC Program
Here is PLC program to Drive Motor in Forward and Reverse Direction, along with program explanation
and run time test cases.
List of Inputs and Outputs
I:1/0 = Forward Start (Input)
I:1/1 = Reverse Start (Input)
I:1/2 = Stop (Input)
O:2/14 = Latched coil 1 for forward direction (Output)
O:2/0 & O:2/1 = Forward Contactor (Output)
T4:1 = Delay before forward direction (Timer)
O:2/15 = Latched coil 2 for reverse direction (Output)
O:2/2 & O:2/3 = Reverse Contactor (Output)
T4:0 = Delay before reverse direction (Timer)
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 54
Ladder Diagram to solve this problem
Program Description
• Important thing to note here that basically programmers do not provide time delay for such applications
where motor has to be run in forward and reverse directions.
• But when motor supply is cut down, it has an actual breaking during which its speed reduces and then
comes to rest.
• So, assuming that the motor takes approximately 10secs to come down to its rest state.
• Suppose the motor is currently running in the forward direction.
• While it is running in the forward direction, O:2/15 coil2 remains de-energized and reverse action is not
activated. TOF is used here so input to T4:0 is true hence timer is not activated.
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 55
• When I:1/1 is pressed, O:2/14 coil1 energizes making coil2 O:2/15 de-energized.
• When O:2/15 is de-energized, input to timer T4:1 goes true from false and input to T4:0 goes false from
true.
• Since TOF is used, when input goes true to false, T4:0 is activated. XIO of T4:0/DN is given to Reverse
Coils (O:2/2 and O:2/3) are not energized until timer count is completed. Completion of time delay sets
Done bit to low energizing Reversing Coils (O:2/2 and O:2/3).
• Similar operation happens when motor is running in the reverse direction and forward direction input is
given.
Runtime Test Cases
• Simulation of this problem was successfully performed in software LogixPro of Allen Bradley and
verified using I/O Simulator.
• Instead of actual contactors or motor outputs, simple LED outputs were used to perform this in I/O
Simulator.
Experiment: Simulate the PLC ladder diagram developed for an alarm system
Problem Description
Consider the design of a Burglar Alarm for a house. This alarm will be activated if an unauthorized person is
detected by a Window Sensor or a Motion Detector. Implement this Alarm System in PLC using Ladder
Diagram programming language.
Problem Solution
• Basically, two sensors are used, one is Motion Detector and other one Window Sensor.
Window sensor is nothing but a loop of wire that is a piece of thin metal foil which encircles the
window.
• The motion detector is designed such that when a person is detected, the output of sensor goes true.
• Important thing to note here is that in Window Sensor, current is always passing until there is a
breakage in glass of a window. Hence output is always true. When alarm system is active and someone
tries to break the window, current does not flow through the metal foil causing output to go false.
PLC Program
Here is PLC program for Burglar Alarm Security System, along with program explanation and run time test
cases.
List of Inputs and Outputs
I:1/0 = Master Switch (Input)
I:1/1 = Deactivate system (Input)
I:1/2 = Motion Detector (Input)
I:1/3 = Window Sensor (Input)
I:1/4 = Button to Stop Alarm (not the system) (Input)
O:2/0 = Master Coil (Output)
O:2/1 = Alarm Coil (Output)
O:2/2 = Alarm (Output)
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 56
Ladder Diagram for Burglar Alarm Security System
Problem Description
• RUNG000 simply shows a latching of a coil O:2/0 to activate the entire security system.
• When Activate button I:1/0 is pressed momentarily, the security system is activated.
• If the system is not activated, alarm does not indicate anything since sensors will have no effects on the
Alarm Coil O:2/1.
• When system is active and Motion detector detects a person, the alarm coil will momentarily go high
activating the Alarm O:2/2 which stays ON until I:1/4 is pressed manually.
• As we can see in RUNG001 that XIO (Normally Closed) contact is used for Window Sensor input I:1/3
because it is normally in true state when not activated. So when the breakage of a window is detected, it
goes false from its true condition allowing Alarm Coil O:2/1 to go high for a moment which in turn
activates Alarm O:2/2.
• In RUNG002, latching has to be provided in order to keep the alarm ringing even if the detection by the
sensors is momentary or to be accurate, pulsating.
Runtime Test Cases
Master Window Motion Alarm
Switch
0 x x 0
0 x x 0
0 x x 0
0 x x 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 57
Logic Experiment: Develop a PLC ladder diagram to construct an alarm system which operates as
follows.
- If one input is ON nothing happens.
- If any two inputs are ON, a red light goes ON.
- If any three inputs are ON, an alarm sirens sound.
- If all are ON, the fire department is notified.
• Execute the Ladder

More Related Content

Similar to Elements of Industrial Automation Week 07 Notes.pdf

Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Ronza Sameer
 
Matlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A ReviewMatlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A ReviewIRJET Journal
 
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...IRJET Journal
 
Service industry internship (2016) report (plc traning)
Service industry internship (2016) report (plc traning)Service industry internship (2016) report (plc traning)
Service industry internship (2016) report (plc traning)iqtadar ali gilani
 
IRJET-Single Stage Single Phase Reconfigurable Inverter Topology
IRJET-Single Stage Single Phase Reconfigurable Inverter TopologyIRJET-Single Stage Single Phase Reconfigurable Inverter Topology
IRJET-Single Stage Single Phase Reconfigurable Inverter TopologyIRJET Journal
 
Report no.4(microprocessor)
Report no.4(microprocessor)Report no.4(microprocessor)
Report no.4(microprocessor)Ronza Sameer
 
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...IRJET Journal
 
Instrumentation limited kota
Instrumentation limited kotaInstrumentation limited kota
Instrumentation limited kotaMohit Nainwaya
 
bidirectional report
bidirectional reportbidirectional report
bidirectional reportHasan baig
 
Distribution and Load Sharing of Transformer Automatically by using Microcont...
Distribution and Load Sharing of Transformer Automatically by using Microcont...Distribution and Load Sharing of Transformer Automatically by using Microcont...
Distribution and Load Sharing of Transformer Automatically by using Microcont...IRJET Journal
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]akmalKhan55
 
Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUIIRJET Journal
 
IRJET- Design & Development of Automatic Switching of Line Transformer as...
IRJET-  	  Design & Development of Automatic Switching of Line Transformer as...IRJET-  	  Design & Development of Automatic Switching of Line Transformer as...
IRJET- Design & Development of Automatic Switching of Line Transformer as...IRJET Journal
 
Motor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper MotorsMotor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper MotorsDevashish Raval
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...eSAT Journals
 

Similar to Elements of Industrial Automation Week 07 Notes.pdf (20)

Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)
 
Matlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A ReviewMatlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A Review
 
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...
Performance Evaluation of Three Phase Induction Motor using MOSFET & IGBT Bas...
 
Service industry internship (2016) report (plc traning)
Service industry internship (2016) report (plc traning)Service industry internship (2016) report (plc traning)
Service industry internship (2016) report (plc traning)
 
IRJET-Single Stage Single Phase Reconfigurable Inverter Topology
IRJET-Single Stage Single Phase Reconfigurable Inverter TopologyIRJET-Single Stage Single Phase Reconfigurable Inverter Topology
IRJET-Single Stage Single Phase Reconfigurable Inverter Topology
 
Report no.4(microprocessor)
Report no.4(microprocessor)Report no.4(microprocessor)
Report no.4(microprocessor)
 
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
 
PLC.pdf
PLC.pdfPLC.pdf
PLC.pdf
 
Robo Leg
Robo LegRobo Leg
Robo Leg
 
Instrumentation limited kota
Instrumentation limited kotaInstrumentation limited kota
Instrumentation limited kota
 
bidirectional report
bidirectional reportbidirectional report
bidirectional report
 
My minor project
My minor projectMy minor project
My minor project
 
Distribution and Load Sharing of Transformer Automatically by using Microcont...
Distribution and Load Sharing of Transformer Automatically by using Microcont...Distribution and Load Sharing of Transformer Automatically by using Microcont...
Distribution and Load Sharing of Transformer Automatically by using Microcont...
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
 
Ct36570573
Ct36570573Ct36570573
Ct36570573
 
Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUI
 
IRJET- Design & Development of Automatic Switching of Line Transformer as...
IRJET-  	  Design & Development of Automatic Switching of Line Transformer as...IRJET-  	  Design & Development of Automatic Switching of Line Transformer as...
IRJET- Design & Development of Automatic Switching of Line Transformer as...
 
IIA module 6
IIA module 6IIA module 6
IIA module 6
 
Motor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper MotorsMotor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper Motors
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...
 

More from THANMAY JS

Multimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfMultimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfTHANMAY JS
 
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfFundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfTHANMAY JS
 
Elements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfElements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfFundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfFundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfFundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfFundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfFundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfTHANMAY JS
 
Elements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfElements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfElements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfElements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfElements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfElements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfElements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfTHANMAY JS
 
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfAutomation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 06 Theory Notes 20ME51I.pdf
Automation and Robotics Week 06 Theory Notes 20ME51I.pdfAutomation and Robotics Week 06 Theory Notes 20ME51I.pdf
Automation and Robotics Week 06 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfAutomation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfAutomation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfAutomation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfTHANMAY JS
 

More from THANMAY JS (20)

Multimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfMultimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdf
 
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfFundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
 
Elements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfElements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdf
 
Fundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfFundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdf
 
Fundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfFundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdf
 
Fundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfFundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdf
 
Fundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfFundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdf
 
Fundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfFundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdf
 
Elements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfElements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdf
 
Elements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfElements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdf
 
Elements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfElements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdf
 
Elements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfElements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdf
 
Elements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfElements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdf
 
Elements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfElements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdf
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdf
 
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfAutomation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 06 Theory Notes 20ME51I.pdf
Automation and Robotics Week 06 Theory Notes 20ME51I.pdfAutomation and Robotics Week 06 Theory Notes 20ME51I.pdf
Automation and Robotics Week 06 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfAutomation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfAutomation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfAutomation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Elements of Industrial Automation Week 07 Notes.pdf

  • 1. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 51 Theory and Practical for week 07 A) Relay: A relay is an electromechanical device that consists of two basic components, a relay coil and relay contact. The relay contact is used to switch a circuit on or off and the relay coil is used to change the state of the relay contact. The three main types of relays are spring return relays, latching relays and multipole relays. Relay ladder logic (RLL) is the most common programming language used to communicate with PLCs and was developed to mimic relay logic. It uses graphical representations of contacts, coils and special instruction blocks and was originally designed to facilitate simplicity and ease-of- use. Below is a very simple motor control relay logic and its corresponding ladder logic. Relay Logic has a Start switch, Stop switch, Control Relay and Relay Coil (CR1) and a Motor (Mtr). Ladder logic shares similar look and feel as relay logic. But the physical switches and coils of relay logic are replaced with PLC’s memory location which are represented as Inputs (I) and Outputs (O). Motor Control Relay Logic [Automation Studio] Motor Control PLC Ladder Logic [LogixPro] B) Jumps: Jump instruction in ladder logic is used to skip some process or rungs according to the requirement. It is paired with Label which is used to limit the skipping the process. Example: If there are 4 motors used for various processes. On-demand base Motors 1& 2 are needed. Then we need to design a program to skip Motor 3 & 4 when it does require for the process. When The input I:1/0 is used all Motors turn on. The input I:1/1 is used to initiate the jump function (Q2:0). When Jump is initiated and input I:1/0 is off only Motor 1 & 2 will be initiated. This Jump statement is specially used to control elements within JMP to LML. Without Initiating Jump Command Initiating Jump Command C) Subroutines: JSR, SBR, and RET instructions are used to direct the controller to execute a separate subroutine file within the ladder program and return to the instruction following the JSR instruction. The SBR instruction must be the first instruction on the first rung in the program file that contains the subroutine. • Use a subroutine to store recurring sections of program logic that must be executed from several points within your application program
  • 2. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 52 • A subroutine saves memory because you program it only once. • Update critical I/O within subroutines using immediate input and/or output instructions (IIM, IOM), especially if your application calls for nested or relatively long subroutines • Otherwise, the controller does not update I/O until it reaches the end of the main program (after executing all subroutines) • Outputs controlled within a subroutine remain in their last state until the subroutine is executed again. When the JSR instruction is executed, the controller jumps to the subroutine instruction (SBR) at the beginning of the target subroutine file and resumes execution at that point. You cannot jump into any part of a subroutine except the first instruction in that file. The target subroutine is identified by the file number that you entered in the JSR instruction. The SBR instruction serves as a label or identifier for a program file as a regular subroutine file. The instruction must be programmed as the first instruction of the first rung of a subroutine. The RET instruction marks the end of subroutine execution or the end of the subroutine file. The rung containing the RET instruction may be conditional if this rung precedes the end of the subroutine. Sub Routines PLC Example In the above picture, there are totally 8 files listed. In that SYS 0 and SYS 1 are default files. LAD 2-Main is the main page of the program, that means PLC starts executing IO’s from this page only. LAD-3-IO MAPPING, LAD 4-SCALING, LAD 5-PID, LAD 6-PLANT 1 and LAD 7 PLANT 2 are sub programs categorized by project function and sequence. PLC Instruction Description a) JSR-Jump to Sub routine We can use this instruction using condition by adding some input before the instruction like, In the SBR File number, we should give the ladder number i.e. which sub routine we should call at this place as shown in figure. b) RET: Return to Main Page Return instruction should add at the end of the sub routine program.
  • 3. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 53 Experiment: Develop Ladder Program for relay-based motor control automation such that the motor reverses its direction when the limit switches are activated Problem Description A motor is connected to PLC. Run this motor in the Forward and Reverse direction using Ladder Diagram programming language. Problem Solution • For any three-phase AC motor, reversing can be accomplished by reversing any two leads. For single- phase motor, reversing start lead with respect to the main leads. And for DC motor, reversing the field leads with respect to the armature leads. • There are certain ways to reverse the motor. One is to use DPDT (Double Poles, Double Throw) switch and another one is by using Reversing Contactors. • DPDT switch is best suitable for reversing a small DC motor while Reversing Contactor is used to reverse Three-Phase AC motors. • Single-phase motors are not widely used for reversing operation. In fact, these are not even available widely with reversing capability. • As here we have a three-phase AC motor, reversing any two leads will drive the motor in reverse direction. • Contactor is an electrical switch used for switching an electrical power circuit. • Two magnetic contactors are used, one for forward connections and the other for reverse connections. • Only Push-Button switches are used to control the direction of this three-phase AC motor. • We have the input commands to these Push Button switches which are then internally processed by PLC and then there is the output terminal which activates the corresponding relay to energize the relevant magnetic contactors. • Configure forward and reverse wiring of the motor with contactors such that forward contactor is connected directly in the normal direct phasing of the motor terminal and reverse contactor is connected with two of the motor terminals in the opposite phase. • When it is switched to reverse direction, forward rotation does not stop instantaneously hence we have to determine what time it takes to completely stop one particular direction. Then provide time delay of a second or two and activate the other contactor. PLC Program Here is PLC program to Drive Motor in Forward and Reverse Direction, along with program explanation and run time test cases. List of Inputs and Outputs I:1/0 = Forward Start (Input) I:1/1 = Reverse Start (Input) I:1/2 = Stop (Input) O:2/14 = Latched coil 1 for forward direction (Output) O:2/0 & O:2/1 = Forward Contactor (Output) T4:1 = Delay before forward direction (Timer) O:2/15 = Latched coil 2 for reverse direction (Output) O:2/2 & O:2/3 = Reverse Contactor (Output) T4:0 = Delay before reverse direction (Timer)
  • 4. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 54 Ladder Diagram to solve this problem Program Description • Important thing to note here that basically programmers do not provide time delay for such applications where motor has to be run in forward and reverse directions. • But when motor supply is cut down, it has an actual breaking during which its speed reduces and then comes to rest. • So, assuming that the motor takes approximately 10secs to come down to its rest state. • Suppose the motor is currently running in the forward direction. • While it is running in the forward direction, O:2/15 coil2 remains de-energized and reverse action is not activated. TOF is used here so input to T4:0 is true hence timer is not activated.
  • 5. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 55 • When I:1/1 is pressed, O:2/14 coil1 energizes making coil2 O:2/15 de-energized. • When O:2/15 is de-energized, input to timer T4:1 goes true from false and input to T4:0 goes false from true. • Since TOF is used, when input goes true to false, T4:0 is activated. XIO of T4:0/DN is given to Reverse Coils (O:2/2 and O:2/3) are not energized until timer count is completed. Completion of time delay sets Done bit to low energizing Reversing Coils (O:2/2 and O:2/3). • Similar operation happens when motor is running in the reverse direction and forward direction input is given. Runtime Test Cases • Simulation of this problem was successfully performed in software LogixPro of Allen Bradley and verified using I/O Simulator. • Instead of actual contactors or motor outputs, simple LED outputs were used to perform this in I/O Simulator. Experiment: Simulate the PLC ladder diagram developed for an alarm system Problem Description Consider the design of a Burglar Alarm for a house. This alarm will be activated if an unauthorized person is detected by a Window Sensor or a Motion Detector. Implement this Alarm System in PLC using Ladder Diagram programming language. Problem Solution • Basically, two sensors are used, one is Motion Detector and other one Window Sensor. Window sensor is nothing but a loop of wire that is a piece of thin metal foil which encircles the window. • The motion detector is designed such that when a person is detected, the output of sensor goes true. • Important thing to note here is that in Window Sensor, current is always passing until there is a breakage in glass of a window. Hence output is always true. When alarm system is active and someone tries to break the window, current does not flow through the metal foil causing output to go false. PLC Program Here is PLC program for Burglar Alarm Security System, along with program explanation and run time test cases. List of Inputs and Outputs I:1/0 = Master Switch (Input) I:1/1 = Deactivate system (Input) I:1/2 = Motion Detector (Input) I:1/3 = Window Sensor (Input) I:1/4 = Button to Stop Alarm (not the system) (Input) O:2/0 = Master Coil (Output) O:2/1 = Alarm Coil (Output) O:2/2 = Alarm (Output)
  • 6. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 56 Ladder Diagram for Burglar Alarm Security System Problem Description • RUNG000 simply shows a latching of a coil O:2/0 to activate the entire security system. • When Activate button I:1/0 is pressed momentarily, the security system is activated. • If the system is not activated, alarm does not indicate anything since sensors will have no effects on the Alarm Coil O:2/1. • When system is active and Motion detector detects a person, the alarm coil will momentarily go high activating the Alarm O:2/2 which stays ON until I:1/4 is pressed manually. • As we can see in RUNG001 that XIO (Normally Closed) contact is used for Window Sensor input I:1/3 because it is normally in true state when not activated. So when the breakage of a window is detected, it goes false from its true condition allowing Alarm Coil O:2/1 to go high for a moment which in turn activates Alarm O:2/2. • In RUNG002, latching has to be provided in order to keep the alarm ringing even if the detection by the sensors is momentary or to be accurate, pulsating. Runtime Test Cases Master Window Motion Alarm Switch 0 x x 0 0 x x 0 0 x x 0 0 x x 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1
  • 7. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 57 Logic Experiment: Develop a PLC ladder diagram to construct an alarm system which operates as follows. - If one input is ON nothing happens. - If any two inputs are ON, a red light goes ON. - If any three inputs are ON, an alarm sirens sound. - If all are ON, the fire department is notified. • Execute the Ladder