plc languages

Upload: alesha-zahra

Post on 22-Feb-2018

228 views

Category:

Documents


6 download

TRANSCRIPT

  • 7/24/2019 PLC Languages

    1/16

    Programmable LogicControllers

    Day 3 Presentation

    PLC Languages

  • 7/24/2019 PLC Languages

    2/16

    Engineering

    Agenda

    IEC 61131 Standard

    Programming Models

    Instruction ListStructured Text

    Ladder Diagram

    Function loc! DiagramSe"uential Function Charts

  • 7/24/2019 PLC Languages

    3/16

    Engineering

    IEC 61131 Standard

    #Common and o$en %rame&or!#Loosely de%ined

    #'$$ro(ed in 1))*#Six Main Com$onents

    + IEC 61131+1 ,(er(ie&

    + IEC 61131+* -e"uirements and Test Procedures

    + IEC 61131+3 Data Ty$es and Programming+ IEC 61131+. /ser 0uidelines

    + IEC 61131+ Communications

    + IEC 61131+2 Fuy Control

  • 7/24/2019 PLC Languages

    4/16

    Engineering

    Programming Models

    IL 4Instruction List5

    ST 4Structured Text5

    LD 4Ladder Diagram5FD 4Function loc! Diagram5

    SFC 4Se"uential Function Charts5

  • 7/24/2019 PLC Languages

    5/16

    Engineering

    Instruction List

    #Textual PLC Programming Language#E%%ecti(ely Li!e 'ssemly Programming

    #est Suited %or Small /ncom$licated Programs#Instructions Consist o%7

    + ,$erator

    + Modi%ier

    + ,$erand

    Exam$le7 '8D 8,T 99*99

  • 7/24/2019 PLC Languages

    6/16

    Engineering

    Instruction List Example

  • 7/24/2019 PLC Languages

    7/16

    Engineering

    Instruction List Example 2

  • 7/24/2019 PLC Languages

    8/16

    Engineering

    Structured Text

    #Textual PLC $rogramming language#E%%ecti(ely li!e 'SIC $rogramming

    #Easiest to trouleshoot and understand#/se%ul %or im$lementing calculation+intensi(e

    %unctions and other di%%icult %unctions#Instructions consist o% constructs

    #Exam$le7 'nalog:,ut 7; Error < 0ain=

  • 7/24/2019 PLC Languages

    9/16

    Engineering

    Structured Text

    < Sam$le Structured Text Code < 4comments5>'- 4(ariales5

    tem$7 I8T=

    error7 ,,L=E8D:>'-

    tem$ 7; ?I@.= 4addresses5

    IF tem$ A 3*99 TBE8

    error 7; T-/E=

    ?@ 7; *99=ELSE

    ?@ 7; tem$ 16=

    E8D:IF=

  • 7/24/2019 PLC Languages

    10/16

    Engineering

    Ladder iagram

    #Primary $rogramming language#-esemles original relay logic documentation

    #'ddressing and memory is di%%erent %or e(erymanu%acturer

    #Ladder logic scanning 4rung order (s net&or!

    column5

    #8ot $urely $arallel $rocessor li!e relay logic

  • 7/24/2019 PLC Languages

    11/16

    Engineering

    Ladder iagram

  • 7/24/2019 PLC Languages

    12/16

    Engineering

    !unction "loc# iagram

    #0ra$hical data+%lo& $rogramming method#Interconnected loc!s#Similar to Ladder Logic

  • 7/24/2019 PLC Languages

    13/16

    Engineering

    !unction "loc# iagram Example

  • 7/24/2019 PLC Languages

    14/16

    Engineering

    Se$uential !unction C%arts

    #0ra$hical method %or structuring $rograms#Design tool %or se"uential $rolems#Consists o%7

    + Interconnected ste$s+ 'ctions

    + Transitions

  • 7/24/2019 PLC Languages

    15/16

    Engineering

    Se$uential !unction C%artExample

  • 7/24/2019 PLC Languages

    16/16

    Engineering

    &ext Class'

    Diagnostics