User Manual for PLC Programming with CoDeSys 2.3 Copyright 1994, 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2010 by 3S-Smart Software Solutions GmbH All rights reserved. We have gone to great lengths to ensure this documentation is correct and complete. However, since it is not possible to produce an absolutely error-free text, please feel free to send us your hints and suggestions for improving it. Trademark Intel is a registered trademark and 80286, 80386, 80486, Pentium are trademarks of Intel Corporation. Microsoft, MS and MS-DOS are registered trademarks, Windows and Intellisense are trademarks of Microsoft Corporation. Publisher 3S - Smart Software Solutions GmbH Memminger Straße 151 D-87439 Kempten Tel. +49 831 5 40 31 - 0 Fax +49 831 5 40 31 – 50 Last update 28.10.2010 Document Version 6.0, CoDeSys V.2.3.9.24 Table Of Content Content 1 A Brief Introduction to CoDeSys 1-1 1.1 What is CoDeSys............................................................................................... 1-1 1.2 Overview of CoDeSys Functions... .................................................................... 1-1 1.3 Overview on the user documentation for CoDeSys ........................................... 1-3 2 What is What in CoDeSys 2-1 2.1 Project Components... ....................................................................................... 2-1 2.2 Languages... ...................................................................................................... 2-9 2.2.1 Instruction List (IL)... .......................................................................................... 2-9 2.2.2 Structured Text (ST)... ....................................................................................... 2-11 2.2.3 Sequential Function Chart (SFC)....................................................................... 2-16 2.2.4 Function Block Diagram (FBD)... ....................................................................... 2-21 2.2.5 The Continuous Function Chart Editor (CFC).................................................... 2-21 2.2.6 Ladder Diagram (LD)... ...................................................................................... 2-22 2.3 Debugging, Online Functions............................................................................. 2-23 2.4 The Standard... .................................................................................................. 2-26 3 We Write a Little Program 3-1 3.1 Controlling a Traffic Signal Unit... ...................................................................... 3-1 3.2 Visualizing a Traffic Signal Unit... ...................................................................... 3-11 4 The Individual Components 4-1 4.1 The Main Window... ........................................................................................... 4-1 4.2 Project Options... ............................................................................................... 4-3 4.3 Managing Projects... .......................................................................................... 4-22 4.4 Managing Objects in a Project........................................................................... 4-53 4.5 General Editing Functions.................................................................................. 4-61 4.6 General Online Functions... ............................................................................... 4-67 4.7 Window set up... ................................................................................................ 4-83 4.8 Help when you need it... .................................................................................... 4-83 5 Editors in CoDeSys 5-1 5.1 This is for all Editors........................................................................................... 5-1 5.2 Declaration Editor .............................................................................................. 5-3 5.2.1 Working in the Declaration Editor ...................................................................... 5-3 5.2.2 Declaration Editors in Online Mode ................................................................... 5-10 5.2.3 Pragma instructions in the Declaration Editor.................................................... 5-11 5.3 The Text Editors................................................................................................. 5-21 5.3.1 Working in text editors ....................................................................................... 5-21 5.3.2 The Instruction List Editor .................................................................................. 5-25 5.3.3 The Editor for Structured Text............................................................................ 5-26 5.4 The Graphic Editors........................................................................................... 5-26 5.4.1 Working in graphic editors ................................................................................. 5-26 5.4.2 The Function Block Diagram Editor ................................................................... 5-30 5.4.3 The Ladder Editor .............................................................................................. 5-35 5.4.4 The Sequential Function Chart Editor................................................................ 5-41 CoDeSys V2.3 i Table Of Content 5.4.5 The Continuous Function Chart Editor (CFC) .................................................... 5-49 6 The Ressources 6-1 6.1 Overview of the Ressources ..............................................................................6-1 6.2 Global Variables, Variable Configuration, Document Frame ............................. 6-2 6.2.1 Global Variables.................................................................................................6-2 6.2.2 Variable Configuration........................................................................................6-6 6.2.3 Document Frame ...............................................................................................6-7 6.3 Alarm Configuration ........................................................................................... 6-8 6.3.1 Overview ............................................................................................................6-8 6.3.2 General information on alarms, Terms............................................................... 6-9 6.3.3 Alarm classes.....................................................................................................6-10 6.3.4 Alarm groups......................................................................................................6-13 6.3.5 Alarm saving ......................................................................................................6-15 6.3.6 'Extras' Menu: Settings.......................................................................................6-16 6.4 Library Manager .................................................................................................6-16 6.5 Log .....................................................................................................................6-18 6.6 PLC Configuration..............................................................................................6-20 6.6.1 Overview ............................................................................................................6-20 6.6.2 Working in the PLC Configuration...................................................................... 6-21 6.6.3 General Settings in the PLC Configuration ........................................................ 6-23 6.6.4 Custom specific parameter dialog......................................................................6-24 6.6.5 Configuration of an I/O Module ..........................................................................6-25 6.6.6 Configuration of a Channel ................................................................................6-28 6.6.7 Configuration of Profibus Modules ..................................................................... 6-29 6.6.8 Configuration of CANopen modules...................................................................6-36 6.6.9 Configuration of a CanDevice (CANopen Slave) ............................................... 6-41 6.6.10 Configuration of DeviceNet Modules.................................................................. 6-45 6.6.11 PLC Configuration in Online Mode.....................................................................6-49 6.6.12 Hardware scan/State/Diagnosis information from the PLC................................ 6-50 6.7 Task Configuration .............................................................................................6-51 6.7.1 Overview ............................................................................................................6-51 6.7.2 Working in the Task Configuration ..................................................................... 6-52 6.7.3 System Events ...................................................................................................6-55 6.7.4 Task Configuration in Online Mode....................................................................6-55 6.8 Watch- and Recipe Manager ............................................................................. 6-57 6.8.1 Overview ............................................................................................................6-57 6.8.2 Creating Watch Lists, Recipes ...........................................................................6-59
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages469 Page
-
File Size-