Programmable Controller Basics Files And Programs

Slides:



Advertisements
Similar presentations
Dc input modules can either be sources or sinks for dc current. This depends on the transistor used in the input card and the polarity of the dc supply.
Advertisements

Programmable Controller Basics Introduction
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
PLC Timer Instructions
ECT 464 Lecture 5 Modes and Memory. Do the thing you fear and the death of fear is certain. Be strong and courageous. Do not be afraid or terrified because.
Copyright © 2002 Delmar Thomson Learning Chapter 11 Processor Data Organization.
Copyright © 2002 Delmar Thomson Learning Chapter 12 Basic Relay Instructions.
Chapter 6 Introduction to Logic.
Switchgears Control Using SCADA System Based on PLC
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Starting & Stopping Motors Micro Logix 1100 RSLogix 500 LAB#1.
Chapter 19 Fundamental PLC Programming
Timers.
6 PLC Programming. 6 PLC Programming Objectives List the rules for creating a PLC ladder logic diagram. Convert a relay logic diagram to a PLC ladder.
Programmable Logic Controllers
MOV,MOVM,COP,FLL,BSL,BSR, FRD,TOD
Introduction to PLC Operation
Chapter 10 PLC Processors.
1 FUNDAMENTOS DEL CONTROLADOR PROGRAMABLE. 2 ¿QUE ES UN CONTROLADOR PROGRAMABLE? PROGRAMMABLE CONTROLLER ENTRADAS A solid state device that controls output.
Program Control Instructions:
MicroLogix Packaged Controllers Programmable Controller Basics Memory & Data.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Processor Data Organization
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Turbine Crane CRANES TURBINE NEA39. Turbine Crane PLANT STATUS! PV Daily Status Report.
Chapter 10 Advanced Programming, PLC Interfacing, and Troubleshooting
Copyright © 2002 Delmar Thomson Learning Chapter 10 PLC Processors.
Counters. Counter Applications Counters count events such as the number of: Parts passing a certain point on a conveyor system Good parts/bad parts manufactured.
Logic Functions and Symbols
PROGRAMMABLE LOGIC CONTROLLER
PLC PROGRAMMING.
1 Micro Economix 1500 RSLogix 500 LAB#3 Sequencing and Subroutines.
Copyright © 2002 Delmar Thomson Learning Chapter 14 Documenting Your PLC System.
Introduction to PLC Operation
Programmable Logic Controllers
Sequencers SQO,SQC,SQL.
Timers. Mechanical Timing Relay Time delay relays are simply control relays with a time delay built in. Their purpose is to control an event based on.
Programmable Logic Controller
Chapter 5.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
1 Introduction to PLCs: Programming Counters ELMT Basic Programmable Logic Controllers Chapter 0x_W Source: www Based on Ch 8 of Frank D. Petruzella.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Chapter 7.
Lesson 1.C PLC PROGRAMMING.
6 CHAPTER PLC Programming. 6 CHAPTER PLC Programming.
9 CHAPTER PLC Counter Instructions. 9 CHAPTER PLC Counter Instructions.
Chapter 5.
MICROPROCESSOR BASED SYSTEM DESIGN
Input/Output.
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
Introduction of microprocessor
Chapter 12 © 2011, The McGraw-Hill Companies, Inc.
Programming Timers.
Programmable Logic Controllers
MicroEconomix 1500 RSLogix 500 LAB#2
Timer Instructions Overview
Manisha Goel, Lecturer, EE Deptt Govt. Polytechnic Manesar
MicroEconomix 1500 RSLogix 500 LAB#1
Lesson 19: PLC Programming Techniques
Program Control Instructions.
Timer and Counter Instructions
Documenting Your PLC System
Basic Relay Instructions
PLC 5 and ControlLogix Subroutine Parameters
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
Programmable Logic Controllers (PLCs)
Computer System Overview
Presentation transcript:

Programmable Controller Basics Files And Programs MicroLogix Packaged Controllers 1

We are going to discuss... 1. What Are Program Files 2. Program File Functions 3. Ladder Logic Concepts 4. I/O Addressing 5. Logic 6. Examples

Memory Organization MicroLogix 1000 only DATA FILES MicroLogix 1000 1 2 3 4 5 6 7 Output File Input File Status File Bit File Timer File Counter File Control File Integer Files MicroLogix 1000 MEMORY PROGRAM FILES 1 2 3 4 5 6 - 15 System Reserved Main Program Error File HSC File STI File Subroutine Files MicroLogix 1000 only

Memory Organization MicroLogix 1000 only MicroLogix 1000 MEMORY PROGRAM FILES 1 2 3 4 5 6 - 15 System Reserved Main Program Error File HSC File STI File Subroutine Files MicroLogix 1000 only

File 0 - System File Dedicated & Reserved file Used to store various system related information. Processor type and configuration Communication parameters I/O configuration Passwords Misc...

File 1 - Reserved Future New enhancements New features New functionality

File 2 - Main Program Dedicated & Open file Main Ladder Program Typically is where the “main” user program resides Must have some program logic

File 3 - Error File Preconfigured and Open file Referred to as the Error Subroutine Will be “scanned” whenever a recoverable fault is detected (Allows users to clear certain errors and inhibit a shutdown) Recoverable faults include: Retentive data lost (0005) Startup protection after power loss (0016) Minor Error at end of scan (0020) File boundaries violated ( Sequencers 0032, Stacks and Bit Shifts (0033) Negative data in ACC or PRE of a timer (0034) Invalid HSC preset (0037) May be used as a user subroutine, but is not recommended

File 4 - High Speed Counter File Preconfigured and Open file Referred to as the HSC Subroutine Will be “scanned” whenever a HSC interrupt occurs HSC Interrupts are: “Preset” data value is reached (High or Low) Underflow or Overflow conditions are detected May be used as a user subroutine, but is not recommended

File 5 - Selectable Timed Interrupt File Preconfigured and Open file Referred to as the STI subroutine Scanned whenever the STE instruction is set (1) Adjustable interval, 10msec resolution May be used as a user subroutine, but is not recommended

Files 6-15 - User Subroutines “Open” Files Typically used for application specific requirements. Accessed from file 2 (Main program) through special program flow instructions JSR Jump to Subroutine and return SBR Subroutine Identifier RET Ret to Main program Nesting of subroutines is allowed (8 Levels allowed, 3 Levels if the Error, HSC or STI subroutines are enabled) MicroLogix 1000 and SLC 500 only

Relay Ladder Logic (RLL) What is Relay Ladder Logic? Is the primary programming language for PLCs A graphical representation of the program designed to look like relay logic

Ladder Logic Concepts | | ( ) | | |/| | | | | |/| | | |/| | | | | |/| Read / Conditional Instructions Write / Control Instructions | | Start (Rung #1) ( ) | | |/| | | | | |/| | | |/| | | | | |/| ( ) End (Rung #5)

Ladder Logic Concepts |/| | | ( ) |/| |/| T F F T T T Read / Conditional Instructions Write / Control Instructions |/| | | ( ) T F F No Logical Continuity |/| |/| T T T Logical Continuity

Logical AND Construction IF input 4 AND input 5 have power THEN energize output 0 On | | I/4 | | I/5 ( ) O/0 T T T Logical Continuity

Logical OR Construction IF input 4 OR input 5 have power THEN energize output 0 T On | | I/4 ( ) O/0 Logical Continuity | | I/5 F F On | | I/4 ( ) O/0 Logical Continuity | | I/5 T

Complex Construction | | |/| | | | | |/| ( ) | | | | |/| |/| | | | |

Read Instructions -| |- -|/|- The instruction is: If the input device is The input bit is Examine ON -| |- XIC Examine OFF -|/|- XIO Open (0) Logic 0 False True Closed (1) Logic 1 True False

Write Instruction -( )- Rung State Output Bit Output Terminal OTE | | |/| ( ) T Rung State Output Bit Output Terminal OTE Output Energize -( )- TRUE ON ENERGIZED FALSE OFF De-energized

Putting it Together | | ( ) I/8 O/0 PB1 Supply Voltage Unused Unused COM I / 0 I / 1 I / 2 I / 3 I / 4 COM I / 5 I / 6 I / 7 I / 8 I / 9 L 1 L 2 / N GND VAC O / 0 VAC O / 1 VAC O / 2 VAC O / 3 VAC O / 4 O / 5 VDC VDC VDC VDC VDC Supply Voltage I/8 O/0 | | ( )

Addressing Example | | | | | | ( ) HHP I/5 I/6 I/7 O/0 Logix I:0/5 PB1 LS1 PS2 SOL6 I/5 I/6 I/7 O/0 | | | | | | ( ) HHP I/5 I/6 I/7 O/0 Logix I:0/5 I:0/6 I:0/7 O:0/0 ADDRESS DEVICE PB1 LS1 PS2 SOL6

Relay Logic to Ladder Logic |/| CR3 M1 PB1 LS1 SOL2 PB2 LS3 LS4 I/4 I/6 O/0 O/1 | | ( ) I/5 I/7 B/0 |/| I/8 I/9 | | Again, the similarities are virtually identical. The primary enhancement is that if changes are needed, or if other logic or conditions need to be added, it’s as simple as a few keystrokes on the computer. INPUT Address Assignment: PB1- I/4 PB2- I/5 LS1- I/6 LS2- I/7 LS3- I/8 LS4- I/9 OUTPUT Address Assignment: SOL2- O/0 M1- O/1 29