Navigation

  • Page 1

    Programming a Programmable LogicControler (PLC)Jens BatheltContent of Module 3— Lesson 3.1, 1h: deepening Programmable Logic Controlers (PLC) and explaining Sequential Function Charts (SFC).— Case 3.1, 2h: Programming SFC using SIMATIC S7-Graph— Lesson 3.2, 1h: The remaining four IEC-1131 l...

  • Page 2

    Objectives— Understand the principle setup and the properties of a PLC— Distinguish between the different sequential control types and their characteristics— Classification of the major programming languages (SFC, ST FBD, IL, LD) concerning their level of programming complexity— Know the ...

  • Page 3

    Overview of control typsElectrical controls(Elektrische Steuerungen)Logic control(Verknüpfungs-Steuerung)Sequential control(Ablaufsteuerung)Time bounded(zeitgeführt) Process bounded(prozessgeführt)Cyclic signal processing (zyklische Signalverarbeitung)Event oriented signal processing (ereignis...

  • Page 4

    Event oriented signal processing— cut-off deviceif (start-valve/START-Ventil 1.2 is activated)Cylinder 1.0 is extendedif (limit switch/Grenztaster 1.3 is reached)Cylinder 1.0 will be retractedSIEMENS TIA Modul C1PLC (Programmable Logic Controller)— PLC Online Tutorial:http://www.plcs.net/cont...

  • Page 5

    Examples of machines controlled by a PLC— PLCs are used in many "real world" applications. If there is industry present, chances are good that there is a PLC present. If you are involved in machining, packaging, material handling, automated assembly or countless other industries you a...

  • Page 6

    Mechatronic systemrequirementsassurance of propertiessystem designsystem integrationproductmodeling and model analysisdomain-specific designE-CADprogrammingM-CADControlSimulation3D VisualizationControlBasic SystemSensorsActorsInformationMaterialEnergyElectro mechanicalBorderMechanical designContr...

  • Page 7

    PLC program executionEingänge/Inputs:E0.0 E0.1 E0.2 ..1 0 1 ..Ausgänge/Outputs:A0.0 A0.1 A0.2 ..0 1 1 ..Check input statusUpdate output status1x1x∞I/O-List- Inputvariables- OutputvariablesProgram- SequentiallogicSensorsActorsOverview of control typesElectrical Controls(Elekt...

  • Page 8

    PLC Sequential Function Charts (SFC)PLCuploadProgramming environmentThe software development process for PLC’slevel of languagehighlowdesignanalysiscodingABCLDANDNSTILSFCSTFBDABCANDLD-¦ ¦--¦/¦---------( )A B CC:=A AND NOT B12NFillSEmptyT1Bonfatti F., Monari P. D. and Samp...

  • Page 9

    Fields of application for the PLC languages— LD: Derived from the pre-PLC relay based controls. For instance used for the tool handling in the FANUC machine control— ST: Good for former C programmers— FBD: Drawing functions blocks to express logics (like and/or/not) analog to signal flows o...

  • Page 10

    SFC basicsloop‚and‘‚or‘SFC properties— Graphical language (not like C)— Derived from Petri Nets— Transition conditions do lead to a sensor— Actions do lead to an actuator— SIEMENS: GRAPH— The IEC standard does support a language mix: SFC for the top-level structure and for ins...

  • Page 11

    Animated 3D Model of the cutting deviceCutting device (Abschervorrichtung)Cyl. AHoldingCyl. C ClampingCyl. DCuttingCyl. B FeedingCylinder A extends and holds the bar materialCylinder B extends and feeds the material to the limit stopCylinder C extends and clamps the bar material in the cutting de...

  • Page 12

    Path-step diagram for the cutting deviceCyl. AHoldingCyl. C ClampingCyl. DCuttingCyl. B FeedingCyl. AHoldingCyl. C ClampingCyl. DCuttingCyl. B FeedingCylinder A extends and holds the bar materialCylinder B extends and feeds the material to the limit stopCylinder C extends and clamps the bar mater...

  • Page 13

    I/O list for the cutting deviceSIEMENS TIA Modul C1— The I/O list is listing all In- and Outputs used in the control:Cyl. AHoldingCyl. C ClampingCyl. DCuttingCyl. B FeedingCyl. AHoldingCyl. C ClampingCyl. DCuttingCyl. B FeedingA/SVariable NameCommentS0di_startStart buttonS1di_cylA_homeLimit swi...

  • Page 14

    I/O list: bits and bytes— Naming convention(sample):— di_xxx //digital input f.i. for a limit switchdo_xxx //digital output f.i. for simple pneumatic cylinderai_xxx //analog input f.i. for a temperature sensorao_xxx //analog output f.i. for a motor— PLC byte interface for the communicat...

  • Page 15

    Objectives— Understand the principle setup and the properties of a PLC— Distinguish between the different sequential control types and their characteristics— Classification of the major programming languages (SFC, ST FBD, IL, LD) concerning their level of programming complexity— Know the ...

  • Page 16

    English settings in SIMATIC !— SIMATIC— Optionen— Einstellungen— Sprache ENGLISCH (Baustein Block,..)— Mnemonics ENGLISCH (I E, Q A,..)

x