SlideShare a Scribd company logo
1 of 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
blydon@PLCopen-NA.org
Page 2 www.PLCopen.org
PLCopen®
for efficiency in automation
Why standard software?
Standardization
Improves Productivity
Quality & Reliability
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 www.PLCopen.org
PLCopen®
for efficiency in automation
Software Functions Increasing
Complexity Increases Exponentially
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 www.PLCopen.org
PLCopen®
for efficiency in automation
Conceptual
Design
Specification
Functional
Design
Verification
CodingTesting
Refining
Commissioning
Maintenance
Standard Software Advantages
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 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 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 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 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 www.PLCopen.org
PLCopen®
for efficiency in automationLadder Diagram (LD)
Page 13 www.PLCopen.org
PLCopen®
for efficiency in automation
LD A
AND B
ST 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 www.PLCopen.org
PLCopen®
for efficiency in automationInstruction List (IL)
Page 15 www.PLCopen.org
PLCopen®
for efficiency in automation
C:= A AND NOT B
If 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 www.PLCopen.org
PLCopen®
for efficiency in automationStructured Text (ST)
Page 17 www.PLCopen.org
PLCopen®
for efficiency in automation
AND
A C
B
• 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 www.PLCopen.org
PLCopen®
for efficiency in automationFunction Block Diagram (FB)
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 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 www.PLCopen.org
PLCopen®
for efficiency in automationFunction Block
Inputs Outputs
Send/Receive Email
Serve UP WEB Pages
Send Messages (SMS)
Send SOAP Messages
Send XML Messages
OPC UA Communication
PEER to PEER
Self Contained Building Blocks
Page 22 www.PLCopen.org
PLCopen®
for efficiency in automation
BUILD
YOUR OWN
FUNCTIONS
Function Block
Encapsulation
Page 23 www.PLCopen.org
PLCopen®
for efficiency in automationFunction Block
Built from standard blocks ...
Inputs Outputs
User Created
Object
Encapsulation
Page 24 www.PLCopen.org
PLCopen®
for efficiency in automationFunction Block
Ladder Logic Instruction List Structured Text
Build your own function blocks
with Ladder Logic, Instruction
List, or Structured Text
Standardization
Reuse Tested Code
Easily Understood
Self Documenting
Password Protect
Inputs Outputs
Your Own
Function Block
Page 25 www.PLCopen.org
PLCopen®
for efficiency in automationSequential Function Chart (SFC)
Step 1
Transition
Step 2
Transition
Action 1
Action 2
Action 1
• Sequential Controls
• Procedural Controls
• Structured
• Describes Process
• Logic Driven
• Partition Control Functions
• Rapid Visual Diagnostics
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 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 www.PLCopen.org
PLCopen®
for efficiency in automation
Page 29 www.PLCopen.org
PLCopen®
for efficiency in automationPLCopen Extensions
 Vendor Independent, Not for Profit Organization
 Extends IEC 61131-3 Functionality
Page 30 www.PLCopen.org
PLCopen®
for efficiency in automation
More Information...
www.PLCopen.org
Electronic Newsletter
Application Examples
Specifications
Compliant Products
Bill Lydon, Director PLCopen North America
Automation Industry Consultant
blydon@PLCopen-NA.org
Page 31 www.PLCopen.org
PLCopen®
for efficiency in automation

More Related Content

What's hot

Presentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip KumarPresentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip KumarDilip Kumar Ckt
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic ControllerSatyamShivansh
 
OPC UA mit der SIMATIC S7-1200/1500 und Python
OPC UA mit der SIMATIC S7-1200/1500 und PythonOPC UA mit der SIMATIC S7-1200/1500 und Python
OPC UA mit der SIMATIC S7-1200/1500 und PythonJohannes Kinzig
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksDMC, Inc.
 
LabVIEW Introduction
LabVIEW IntroductionLabVIEW Introduction
LabVIEW IntroductionSalim Khan
 
Sce guide trainer_pakete_en_without_prices
Sce guide trainer_pakete_en_without_pricesSce guide trainer_pakete_en_without_prices
Sce guide trainer_pakete_en_without_pricesCharles Santos
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1Manoj Patil
 
C program execution and algorithm
C program execution and algorithm C program execution and algorithm
C program execution and algorithm Kunal Pandhram
 
imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02Haji Hussain
 

What's hot (20)

Presentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip KumarPresentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip Kumar
 
Plc introduction
Plc  introductionPlc  introduction
Plc introduction
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 
PLC Programming in Manufacturing
PLC Programming in ManufacturingPLC Programming in Manufacturing
PLC Programming in Manufacturing
 
PLC Basics
PLC BasicsPLC Basics
PLC Basics
 
Basics of plc_programming1
Basics of plc_programming1Basics of plc_programming1
Basics of plc_programming1
 
OPC UA mit der SIMATIC S7-1200/1500 und Python
OPC UA mit der SIMATIC S7-1200/1500 und PythonOPC UA mit der SIMATIC S7-1200/1500 und Python
OPC UA mit der SIMATIC S7-1200/1500 und Python
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
PLC (Programmable Logic Circuit)
PLC (Programmable Logic Circuit)PLC (Programmable Logic Circuit)
PLC (Programmable Logic Circuit)
 
LabVIEW Introduction
LabVIEW IntroductionLabVIEW Introduction
LabVIEW Introduction
 
Sce guide trainer_pakete_en_without_prices
Sce guide trainer_pakete_en_without_pricesSce guide trainer_pakete_en_without_prices
Sce guide trainer_pakete_en_without_prices
 
Plc presentation
Plc presentation Plc presentation
Plc presentation
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
C program execution and algorithm
C program execution and algorithm C program execution and algorithm
C program execution and algorithm
 
imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02
 
MPHS RC Design Flow
MPHS RC Design FlowMPHS RC Design Flow
MPHS RC Design Flow
 
Phases of compiler
Phases of compilerPhases of compiler
Phases of compiler
 
Basic of compiler
Basic of compiler Basic of compiler
Basic of compiler
 
Caap presentation by me
Caap presentation by meCaap presentation by me
Caap presentation by me
 

Similar to IEC 61131 Basics

Builconn20071131 Presentation Jcd
Builconn20071131 Presentation JcdBuilconn20071131 Presentation Jcd
Builconn20071131 Presentation JcdCABA
 
Session 07 - PLC Architecture
Session 07 - PLC ArchitectureSession 07 - PLC Architecture
Session 07 - PLC ArchitectureVidyaIA
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programmingSergio Barrios
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programminghamza239523
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automationMd Talib
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automationMd Talib
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16John Todora
 
Programmable logic controller plc basics.pptx
Programmable logic controller plc basics.pptxProgrammable logic controller plc basics.pptx
Programmable logic controller plc basics.pptxEyjazAhamed
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentationAshutosh Verma
 
Myppt 130914055931-phpapp01
Myppt 130914055931-phpapp01Myppt 130914055931-phpapp01
Myppt 130914055931-phpapp01bharat chaware
 
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.Goutam Biswas
 
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...Zalando Technology
 

Similar to IEC 61131 Basics (20)

Builconn20071131 Presentation Jcd
Builconn20071131 Presentation JcdBuilconn20071131 Presentation Jcd
Builconn20071131 Presentation Jcd
 
Session 07 - PLC Architecture
Session 07 - PLC ArchitectureSession 07 - PLC Architecture
Session 07 - PLC Architecture
 
PLC Architecture
PLC ArchitecturePLC Architecture
PLC Architecture
 
presentation on plc.pptx
presentation on plc.pptxpresentation on plc.pptx
presentation on plc.pptx
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programming
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programming
 
PLC- L-2 Structure.pdf
PLC- L-2 Structure.pdfPLC- L-2 Structure.pdf
PLC- L-2 Structure.pdf
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automation
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automation
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16
 
Programmable logic controller plc basics.pptx
Programmable logic controller plc basics.pptxProgrammable logic controller plc basics.pptx
Programmable logic controller plc basics.pptx
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentation
 
test 2.ppt
test 2.ppttest 2.ppt
test 2.ppt
 
PLC training
PLC trainingPLC training
PLC training
 
1913523 vanshika
1913523 vanshika1913523 vanshika
1913523 vanshika
 
Myppt 130914055931-phpapp01
Myppt 130914055931-phpapp01Myppt 130914055931-phpapp01
Myppt 130914055931-phpapp01
 
ppt on PLC
ppt on PLCppt on PLC
ppt on PLC
 
Electrician Training for USAF
Electrician Training for USAFElectrician Training for USAF
Electrician Training for USAF
 
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.
G.Bs Presentation Of 23rd Iaslic National Seminar,Goutam.
 
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

IEC 61131 Basics

  • 1. Page 1 www.PLCopen.org PLCopen® for efficiency in automation IEC 61131 Basics Presented by Bill Lydon, Director PLCopen North America Automation Industry Consultant blydon@PLCopen-NA.org
  • 2. Page 2 www.PLCopen.org PLCopen® for efficiency in automation Why standard software? Standardization Improves Productivity Quality & Reliability
  • 3. 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
  • 4. Page 4 www.PLCopen.org PLCopen® for efficiency in automation Software Functions Increasing Complexity Increases Exponentially
  • 5. 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.
  • 6. Page 6 www.PLCopen.org PLCopen® for efficiency in automation Conceptual Design Specification Functional Design Verification CodingTesting Refining Commissioning Maintenance Standard Software Advantages
  • 7. 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
  • 8. 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 ?
  • 9. 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
  • 10. 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)
  • 11. 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
  • 12. Page 12 www.PLCopen.org PLCopen® for efficiency in automationLadder Diagram (LD)
  • 13. Page 13 www.PLCopen.org PLCopen® for efficiency in automation LD A AND B ST 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.
  • 14. Page 14 www.PLCopen.org PLCopen® for efficiency in automationInstruction List (IL)
  • 15. Page 15 www.PLCopen.org PLCopen® for efficiency in automation C:= A AND NOT B If 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)
  • 16. Page 16 www.PLCopen.org PLCopen® for efficiency in automationStructured Text (ST)
  • 17. Page 17 www.PLCopen.org PLCopen® for efficiency in automation AND A C B • 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.
  • 18. Page 18 www.PLCopen.org PLCopen® for efficiency in automationFunction Block Diagram (FB)
  • 19. 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
  • 20. 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
  • 21. Page 21 www.PLCopen.org PLCopen® for efficiency in automationFunction Block Inputs Outputs Send/Receive Email Serve UP WEB Pages Send Messages (SMS) Send SOAP Messages Send XML Messages OPC UA Communication PEER to PEER Self Contained Building Blocks
  • 22. Page 22 www.PLCopen.org PLCopen® for efficiency in automation BUILD YOUR OWN FUNCTIONS Function Block Encapsulation
  • 23. Page 23 www.PLCopen.org PLCopen® for efficiency in automationFunction Block Built from standard blocks ... Inputs Outputs User Created Object Encapsulation
  • 24. Page 24 www.PLCopen.org PLCopen® for efficiency in automationFunction Block Ladder Logic Instruction List Structured Text Build your own function blocks with Ladder Logic, Instruction List, or Structured Text Standardization Reuse Tested Code Easily Understood Self Documenting Password Protect Inputs Outputs Your Own Function Block
  • 25. Page 25 www.PLCopen.org PLCopen® for efficiency in automationSequential Function Chart (SFC) Step 1 Transition Step 2 Transition Action 1 Action 2 Action 1 • Sequential Controls • Procedural Controls • Structured • Describes Process • Logic Driven • Partition Control Functions • Rapid Visual Diagnostics
  • 26. 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)
  • 27. 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
  • 28. Page 28 www.PLCopen.org PLCopen® for efficiency in automation
  • 29. Page 29 www.PLCopen.org PLCopen® for efficiency in automationPLCopen Extensions  Vendor Independent, Not for Profit Organization  Extends IEC 61131-3 Functionality
  • 30. Page 30 www.PLCopen.org PLCopen® for efficiency in automation More Information... www.PLCopen.org Electronic Newsletter Application Examples Specifications Compliant Products Bill Lydon, Director PLCopen North America Automation Industry Consultant blydon@PLCopen-NA.org
  • 31. Page 31 www.PLCopen.org PLCopen® for efficiency in automation