Manufacturing Automation Lecture 2
Manufacturing Automation Lecture 2
2 Credits – Lectures
Lecture 1
• Some Micro Logix series (or in general some PLC’s) have fixed I/O’s,
thus they are low cost but inflexible
Power Supply
Allen Bradley Control Logix
Power Supply
Control Logix Controllers
• Physical Housing for the CPU, I/O modules and Power Supply
• The back plane provides the paths and electrical connections to
connect modules, power supply and CPU
• Modules can be plugged in and out easily. The ability to quickly
change I/O modules make PLC’s very robust and useful
• Can also handle remote I/O
I/O Modules
• Input Modules:
– Either Analog or Digital (available for DC, TTL Logic and AC)
however AC modules are not commonly used (in case of AC the
PLC converts it into low voltage DC)
Input Output
Module Module
Siemens
S7 Simatic S5 Simatic
Omron & Yokogawa
Applications
• Mainly to replace old hard wired systems with systems
which are more flexible
• Reduce downtime of Process plant.
• Ladder Logic
– A symbolic representation of an Circuit Diagram of
Relay logic hardware
– Mimics Relay logic
• Quite popular because it is quite easy to understand and
requires minimum training of Engineers
• What is a Relay?
– How does a relay operate?
Relays
• An electrically operated switch
– Old relays were based on electromagnet
• Which contact & switch would you use for counting boxes
on a conveyer?
– Normally Open
• Which contact & switch would you use for Home Alarm
system?
– Normally Closed
– Why Normally Closed???
Contacts
• When the rung condition changes from false to true, OSR will be true for once
scan only
• Often used for pulse, timings and to perform operation only in one cycle
– Addition of numbers based on OSR (the numbers will be added only once)
Basic Terminologies
• Coils (Outputs):
– Coils are output symbols
– Output can be off different forms (motor, valves, counters, timers)
– Ladder logic evaluates the inputs and operates the coils based on the
evaluation
– Coils (binary) are of different types:
• Output Energize
• Output latch
• Output Unlatch
• Consider the following rung, two normally open switches control the
output ‘light’. Explain the operation!!!!
Ladder Diagram
• Multiple Contacts:
– A ladder can have multiple contacts put on the same rung
• Branching:
– Contacts can also be added in parallel to already existing contacts
Scan Times
• This process of monitoring inputs and generating outputs is called scanning
• Scan Cycle:
– First checks all the inputs before it enters the ladder
– Evaluates the logic to decide which outputs have to be changed (however doesn't
toggle them yet)
– Finally changes all the outputs by copying the output image tables to the
corresponding output channel
• The amount of time it takes the PLC to check input, evaluate logic and then update I/O
tables is called scan times
Scan Times
• Scan times can be divided into two parts:
– I/O scan
– Program scan
• Increasing the size and complexity (math operations) increases scan times
• Rockwell Scan Order:
– Input Scan
– Program Scan
– Output Scan
– Service Communication
– Overheads (timers, bits, counters)
Boolean Logic Design
• Objectives:
– Boolean Algebra and Conversion to Ladder Logic
• Boolean Algebra:
– Was developed in 1800 by an Irish Mathematician James Bool
– Found to be very useful in designing digital circuits and is still very commonly
used
• Basic Operators:
– AND, NOT, OR
• Other Operators:
– Exclusive OR, NAND, NOR
Boolean Algebra
• How to convert NAND, NOR and EOR (which don’t have equivalent
descriptions in Ladder logic) to Basic operations
Boolean Logic Ladder Logic
Boolean Logic Ladder Logic
Boolean Logic Ladder Logic
Example with Given Circuit
Example with Given Circuit
• Simplified circuit is then drawn as Ladder logic.
• This ladder logic generates the same outputs and the original complex
function
Multiplexer in Ladder Logic
Rockwell Memory & File Organization
• Program Memory:
– File 0 contains processor type, I/O Configurations etc
– File 1 is reserved
– File 2 contains the main ladder logic
– File 3-255 are user created according to subroutines in the main ladder
Rockwell Memory & File Organization
• Data Memory:
– Data Memory also has 256 files
– Mainly contains the status of I/O and other instructions used in the main
ladder and subroutine ladders
– There exists different files with different functions:
• File 0 (O) : Stores the status of outputs. If you want to change the status of the
output you could put 0 or 1 in the correct bit
• File 1 (I) : Stores the status of the inputs. You can check the status of any input
by looking in the file
• File 2 (S): Mainly stores status bits corresponding to the processors state.
• File 3 (B): Used to store bit information. You can store different information
relating to contacts and coils.
• File 4 (T): Used to store Timer information.
• File 5 (C): Used to store data corresponding to Counters
• File 6 (R): Used for control, example when working with Sequencers & Shift
registers
Rockwell Memory & File Organization
• File 9-255: These files are user defined. The user can define them
according to his requirements. They can be used to store integers,
floating points etc
Memory Addressing
• Memory addressing is the processing of reading or writing data to
the files
– The first letter in the input address is called the identifier
– The second letter is the file number (the default number is 1)
– The next item is the delimiter (colon)
– The next item after limiter is the slot number (in the chassis) and after
that the Bit number Slot 0
I1:0/1 Channel 1
Input Register (File 1)
Memory Addressing
SLOT NO. 0 1 2 3 4 5
• How would you address different slots and channels within those
slots??????
Memory Addressing
• Similarly Timer and Counter Files can also be addressed however they
contain additional parameters that can be addressed
• Convert to Boolean Logic Simplify and then write the ladder logic
Karnaugh Maps