Beruflich Dokumente
Kultur Dokumente
A programmable logic controller is a digital computer used for electromechanical processes.Unlike general purpose computers,the PLC is designed for multiple
IOs,extended temperature ranges,immunity to electrical noise and resistance to vibration and impact.A PLC is an example of real time system.Keeping in view the importance of PLCs,our project covers all the advanced applications of PLCs.
PLC
applications
cut
across
discrete,process and hybrid automation segments and are poised for steady growth across all manufacturing.
AIM
To explore the advanced digital and analog applications of
Parts
Part I
Introduction
Abdul Wahab
Part II
Discrete application
Imran Khan
Part III
Analog application
Zahid Raza
Introduction
Introduction
PLC Used
Allen Bradleys SLC 500 Belongs to Modular family Numerous power supply options Extensive I/O capacity Allows a system specifically designed for ones application Control hundreds of thousands of processes around the world Large choices of I/Os available from Rockwell Automation Can be upgraded to latest technology
Development
Modern PLCs can be programmed in a variety of languages from ladder logic to more traditional languages such as Basic and C . We used Ladder Logic as programming language The reason of using Ladder Logic is that it allows the programmer to see any issues with the timing of the logic sequence more easily than other formats.
Software Used
RS Logix 500 was used as the application software, the software allows entering and editing of Ladder style logic,and assists in debugging and troubleshooting the software. The sotware allows uploading and downloading of program between computer and PLC. Communication between computer and PLC was established through RS-232 The program is stored in battery backed-up-RAM.
Functionality
Functionality have evolved over the years to include sequential relay control,process control,distributed control systems and networking. Data handling,processing power and communcation capabilities of some modern PLCs are approximately equivalent to some modern computers. The processor we used is Allen Bradleys SLC 5/03,1747-L531 Modular controllers of upto 4096 IOs and memory of 16k words can be configured using SLC 5/03
5/03 provides bit instruction execution times of 0.44ms and overall system throughput of upto 10 times faster than competitive processors. Additional capabilities include floating point math,online programming , run time editing,flash memory upgrades , built-in key-switch , built-in real time clock and calender
Features
PLCs are armored for severe conditions and have extensive IOs as compared to other computers.
Can read limit switches,analog process variables and position of complex positioning systems Some PLCs include machine vision.
System Scale
A small PLC has typical number of connections for IOs. Expansions are available if base model has insufficient IOs Several racks can be administrated by the single processor and may have thousands of IOs The PLC we are using has seven slots rack with following arrangements.
I/O Configuration
# 0 1 Card Name 1747-L531 1746-IB16 Card Type 5/03,8k- Mem 16 input,24V(DC)
1746-0W16
16output(RLY),24 V(DC)
2 input, 2 Output(RLY) Analog 8 channel input-class 3 Analog 4 channel Voltage output
1746-IO4
4 5
1746-NI8 1746-NO4V
RS Logix-500 features
A free-form ladder editor that lets concentrate on the application logic instead of syntax as we write our program A powerful project verifier that we can use to build a list of errors we can navigate to make corrections at convenience Drag-and-drop editing to quickly move data table elements from one data file to another, rungs from one subroutine or project to another, or instructions from rung to rung within a project An address wizard that makes entering addresses easier and reduces keying errors.
RS Logix-500 features
Search and replace to quickly change occurrences of a particular address or symbol A point-and-click interface called a project tree that lets access all the folders and files contained in project A custom data monitor to view separate data elements together and observe interactions
Communications
Communications settings are established using RS Linx software. We used RS-232 however RS-485 and ethernet are also available as communication protocols.
Discrete Application
AIM
To make a mockup which utilizes the deep concepts of
Sorting system
Function
In this application,the sorting system places the small
Sorting System
Mechanisms
Process
Automatic Loading Detection Passing through Conveyor Sorting
Process Diagram
Start
Action (Sorting)
Loading
Sorting System
Passing through Conveyor
(every 11secs)
Detection
Process
Start
Loading
Detection
Processing
Sorting
3-IR Sensors
Conveyor Belt
Flash simulation
Similarly the third size is sorted The sensors are not indicated
I/O Addresses
S.No
1 2 3 4 5 6 7
Type
Input Input Input Input Input Output Output Output
Component
Sensor 1 Sensor 2 Sensor 3 Red Switch Green Switch Conveyor motor Loader motor Green LED
Type of I/O
1746-IB16 1746-IB16 1746-IB16 1746-IB16 1746-IB16 1746-OW16 1746-OW16 1746-OW16
Address
I:1/3 I:1/4 I:1/5 I:1/1 I:1/0 O:2/6 O:2/0 O:2/1
I/O Addresses
S.No
9
Type
Output
Component
Plunger 1
Type of I/O
1746-OW16
Address
O:2/7
10
11
Output
Output
Plunger 2
Plunger 3
1746-OW16
1746-OW16
O:2/3
O:2/2
Sensor Circuits
Type
IR sensors were used
Designing Targets
To consider the sinking / sourcing of I/O cards To consider power requirements of I/O cards To achieve the appropriate range of detection
Sensor Circuits
The sinking / sourcing of I/O cards
Sourcing output is required for sinking input card 1746IB16 We used PNP transistor BC-327 as a switch to produce the sourcing output
Power Requirements
The input card 1746-IB16 takes 22-24 V dc as logic 1,so we have to design the sensors accordingly
Sensor Circuits
Interface Circuit
Required to match the ratings of output components and PLC output card 1746 OW16 Consists of mechanical relays of 24V and 3A Input components like spring loaded plungers are having high current requirements which PLC cant fulfill,so seperate batteries have been used
Output
Plunger 1
Plunger 2 Plunger 3
4
5
Conveyor Motor
Loader Motor
Programming
BSR,BSL
Instructions Bit Timers Counters
RES,CLR
Condition
Green button pressed Sensor 1 detects R6:0 enables T4:2 starts Sensor 2 detects
Action 1
Start conveyor BSL B3:0 shifts a bit to the left T4:1 starts for 7.5 Secs T4:2 starts for 1 sec BSL B3:1 shifts a bit to the left
Action 2
Start loader after every 11 secs R6:0 enables
3 4
With the DN bit of T4:1,T4:2 starts With the DN bit of T4:2,Plunger 1 strikes R6:1 enables
9 10
File address
Control address
Sensor Address
Length
The address of control register whose bits are used to control operation
The address of the sensor which detects the presence of the object
Process
When the rung goes from false to true the processor sets the enable bit (EN) and the data block is shifted to the left The specified bit at the bit address is shifted into the first bit position The last bit is shifted out of the array and stored in the unload bit The shift is completed immediately
BSL
Considering that for the 2nd ,3rd and 4th shift pulses , no object is detected , then after 4th shift
B3:0/7 0 0 0 0 B3:0/3 1 0 0 B3:0/0 0
Analog Application
AIM
To implement the advanced advanced analog concepts of
PLCs
Why Pendulum ?
Available in the Robotics Lab Provides good practice for prospective control engineers Among the most difficult systems to control in the field of control engineering
Hardware
Hardware
1746 NI8
1746 NI8
Recieves and stores digitally converted analog data into its image table for retrieval Supports connections from any combination of upto eight voltage or current analog sensors Multi-class single slot module Class 1 utilizes 8 input and 8 output words class 3 configuration utilizes 16 input and 12 output words the 5/02 and higher processors can be configured for class 1 or class 3 We configured for class 3
1746 NI8
The data presented to the processor can be configured as engineering units,scaled for PID,propotional counts (32768 to +32768 range),propotional counts with user defined range and1746-NI4 data format We used only scaled for PID and propotional counts data formats for configuration Provides open-circuit, out of range and invalid configuration indication via LEDs We used only two channels for inputs connected single endedly
A/D conversion
NI8
Mutilplexer sequentially switches each input channel
Input
1746-NI8
SLC-500 Processor
Hardware
1746 NO4V
Servomotor
Control Output + +
Gain Potentiometer
Gain Potentiometer
_ Y=X+L*z +
Gain Potentiometer
Angle z
I/Os Used
S.No 1746-NI8 1746-NO4V Used as
4.0
PV At the point indicated in the Previous slide SP At the point indicated in the previous slide Used as compensated output and applied at the point indicated
4.1
5.0
Controlled output
So what we did is that we replaced the phase lead compensator of the control console with the PID compensator using PLC