iec 61131 basics

31
Page 1 www.PLCopen.org PLCopen ® for efficiency in automation IEC 61131 Basics Presented by Bill Lydon, Director PLCopen North America Automation Industry Consultant [email protected]

Upload: bill-lydon

Post on 13-Apr-2017

195 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: IEC 61131 Basics

Page 1 www.PLCopen.org

PLCopen®

for efficiency in automation

IEC 61131 BasicsPresented by

Bill Lydon, Director PLCopen North AmericaAutomation Industry Consultant

[email protected]

Page 2: IEC 61131 Basics

Page 2 www.PLCopen.org

PLCopen®

for efficiency in automation

Why standard software?

Standardization Improves Productivity

Quality & Reliability

Page 3: IEC 61131 Basics

Page 3 www.PLCopen.org

PLCopen®

for efficiency in automation

Percentage of Software development costs in production systems (source: McKinsey)

0%

20%

40%

60%

80%

100%

1970 1980 1990 2000

Mechanic Electric Software

Page 4: IEC 61131 Basics

Page 4 www.PLCopen.org

PLCopen®

for efficiency in automation

Software Functions IncreasingComplexity Increases Exponentially

Page 5: IEC 61131 Basics

Page 5 www.PLCopen.org

PLCopen®

for efficiency in automation

“… the never ending story of software ”enhancements…..

new requirements ...new functionalities ….

new wishes ...

Typically software enhancements & maintenance cost are 2 times the initial development investment.

Page 6: IEC 61131 Basics

Page 6 www.PLCopen.org

PLCopen®

for efficiency in automation

ConceptualDesign Specification

FunctionalDesign

Verification

CodingTesting

Refining

Commissioning

Maintenance

Standard Software Advantages

Page 7: IEC 61131 Basics

Page 7 www.PLCopen.org

PLCopen®

for efficiency in automationStandard Software Advantages Improved Software Reliability – Common Design

Architecture Improved Productivity Common Base of Understanding & Training Improves Maintenance Efficiency

• Emergency Bug Fixes & Corrective Bug Fixes• Adding Features & Functions• Mandatory Changes ( Law, Safety,...)• Enhancements• Studies show software maintainers spend about 50% their time

understanding the code.

Lifecycle Maintenance = 2 X Initial Development

Page 8: IEC 61131 Basics

Page 8 www.PLCopen.org

PLCopen®

for efficiency in automation

IEC 61131-3 - International Electrotechnical Commission (IEC)Open Programmable Logic Controller Standard

1st published 1993 - 3rd edition published 2013

Defined application program development environment Strong data typing for error prevention 1 Structuring Tool – Sequential Function Chart (SFC) 4 programming languages: 2 Textual & 2 Graphical Program Organization - Program Structuring & Reuse

What is IEC 61131-3 ?

Page 9: IEC 61131 Basics

Page 9 www.PLCopen.org

PLCopen®

for efficiency in automation

IEC 61131-3 Strong Data Types

BOOLEAN REAL INTEGER STRING

TIME ARRAY STRUCTURES USER DEFINED

Page 10: IEC 61131 Basics

Page 10 www.PLCopen.org

PLCopen®

for efficiency in automation

Languages Instruction List (IL) Structured Text (ST) Ladder Logic/Diagram (LD) Function Block (FB) Sequential Function Chart (SFC)

Page 11: IEC 61131 Basics

Page 11 www.PLCopen.org

PLCopen®

for efficiency in automation

A B C-| |--|/|----------------( )---[Function[---

Ladder Diagram (LD)

Standardized set of relay ladder programming symbols and terminology

• Electrical Flow• Large base of users• Boolean equations• Function Blocks• Easy rules

Page 12: IEC 61131 Basics

Page 12 www.PLCopen.org

PLCopen®

for efficiency in automationLadder Diagram (LD)

Page 13: IEC 61131 Basics

Page 13 www.PLCopen.org

PLCopen®

for efficiency in automation

LD AAND BST C

• Single accumulator based execution model

• Low Level Programming

• One operation such as storing a value in the accumulator register, is allowed per line

Instruction List (IL)Single statements, or instructions, written and executed in a line-by-line format.

Page 14: IEC 61131 Basics

Page 14 www.PLCopen.org

PLCopen®

for efficiency in automationInstruction List (IL)

Page 15: IEC 61131 Basics

Page 15 www.PLCopen.org

PLCopen®

for efficiency in automation

C:= A AND NOT BIf A = FALSE THEN ...CASE Select OF ....

• High level language, block structured• Syntax resembles PASCAL, C, C+• Complex statements and nested instructions

possible• Support for

• Iteration loops (REPEAT-UNTIL; WHILE-DO)• Conditional execution (IF-THEN-ELSE; CASE)• Functions (SQURT(); SIN())

Structured Text (ST)

Page 16: IEC 61131 Basics

Page 16 www.PLCopen.org

PLCopen®

for efficiency in automationStructured Text (ST)

Page 17: IEC 61131 Basics

Page 17 www.PLCopen.org

PLCopen®

for efficiency in automation

ANDA CB

• Graphical Language

• Program elements appear as blocks to be “wired” together

Function Block Diagram (FB)

Function Examples: ADD, SQRT, SIN, COS, AND, OR, CASE, etc.

Page 18: IEC 61131 Basics

Page 18 www.PLCopen.org

PLCopen®

for efficiency in automationFunction Block Diagram (FB)

Page 19: IEC 61131 Basics

Page 19 www.PLCopen.org

PLCopen®

for efficiency in automation

Inputs Outputs

Function Block• Explicit Data• Variables• Tag Names• Logic• Actions/Calculations

Self Contained Building Blocks

Function Block

Inherent Data Integrity Checks

Page 20: IEC 61131 Basics

Page 20 www.PLCopen.org

PLCopen®

for efficiency in automation

Inputs Outputs

Function Examples• AND, OR, XOR, GATE…• PID, SELECT, LIMIT…• SQUARE ROOT, COS…• ADD, SUB, DIV, MUL…

Function Block

Self Contained Building Blocks

Page 21: IEC 61131 Basics

Page 21 www.PLCopen.org

PLCopen®

for efficiency in automationFunction Block

Inputs Outputs

Send/Receive EmailServe UP WEB PagesSend Messages (SMS)Send SOAP MessagesSend XML MessagesOPC UA CommunicationPEER to PEER

Self Contained Building Blocks

Page 22: IEC 61131 Basics

Page 22 www.PLCopen.org

PLCopen®

for efficiency in automation

BUILDYOUR OWNFUNCTIONS

Function Block

Encapsulation

Page 23: IEC 61131 Basics

Page 23 www.PLCopen.org

PLCopen®

for efficiency in automationFunction Block

Built from standard blocks ...

Inputs OutputsUser Created

Object

Encapsulation

Page 24: IEC 61131 Basics

Page 24 www.PLCopen.org

PLCopen®

for efficiency in automationFunction BlockLadder Logic Instruction List Structured Text

Build your own function blocks with Ladder Logic, Instruction List, or Structured Text Standardization

Reuse Tested CodeEasily UnderstoodSelf DocumentingPassword Protect

Inputs OutputsYour OwnFunction Block

Page 25: IEC 61131 Basics

Page 25 www.PLCopen.org

PLCopen®

for efficiency in automationSequential Function Chart (SFC)

Step 1

Transition

Step 2

Transition

Action 1Action 2

Action 1

• Sequential Controls• Procedural Controls• Structured • Describes Process• Logic Driven • Partition Control Functions• Rapid Visual Diagnostics

Page 26: IEC 61131 Basics

Page 26 www.PLCopen.org

PLCopen®

for efficiency in automation

• Serial & Parallel Processes• Process Synchronization• Application examples

• Startup Sequences• Shutdown Sequences• Presses• Productions Lines• Process Automation• Packaging technology• Machine tools • Batch Process Control – S88• Flexible Manufacturing

Sequential Function Chart (SFC)

Page 27: IEC 61131 Basics

Page 27 www.PLCopen.org

PLCopen®

for efficiency in automation

• Multiple Automation and Control Disciplines• Process Design• Logic Simulation• Automatic Documentation• Engineering Tools

• Online Debug Environment• Breakpoints• Watch Windows• Strip chart Recorder• Integrated HMI

IDE - Integrated Design Environment (IDE)

IEC 61131 Controller

Page 28: IEC 61131 Basics

Page 28 www.PLCopen.org

PLCopen®

for efficiency in automation

Page 29: IEC 61131 Basics

Page 29 www.PLCopen.org

PLCopen®

for efficiency in automationPLCopen Extensions Vendor Independent, Not for Profit Organization Extends IEC 61131-3 Functionality

Page 30: IEC 61131 Basics

Page 30 www.PLCopen.org

PLCopen®

for efficiency in automation

More Information...www.PLCopen.org

Electronic NewsletterApplication Examples

SpecificationsCompliant Products

Bill Lydon, Director PLCopen North AmericaAutomation Industry Consultant

[email protected]

Page 31: IEC 61131 Basics

Page 31 www.PLCopen.org

PLCopen®

for efficiency in automation