beckhoff TwinCAT 2 PLC Control — Table of contents

Table of contents Table of contents 1 Foreword.................................................................................................................................................... 3 1.1 Notes on the documentation ............................................................................................................. 3 1.2 Safety instructions............................................................................................................................. 4 1.3 Notes on information security............................................................................................................

5 2 A Brief Introduction to TwinCAT PLC Control........................................................................................ 9 2.1 Project Components........................................................................................................................ 10 2.2 Languages ...................................................................................................................................... 16 2.2.1 Programming Languages................................................................................................. 16 2.2.2 Instruction List (IL)............................................................................................................

16 2.2.3 Structured Text (ST)......................................................................................................... 18 2.2.4 Sequential Function Chart (SFC)..................................................................................... 24 2.2.5 Function Block Diagram (FBD) ........................................................................................ 28 2.2.6 The Continuous Function Chart Editor (CFC).................................................................. 28 2.2.7 Ladderdiagram (LD).........................................................................................................

29 2.2.8 Debugging, Online Functions........................................................................................... 30 2.2.9 IEC 61131-3..................................................................................................................... 31 3 Sample Program...................................................................................................................................... 33 4 Individual Components...........................................................................................................................

42 4.1 The Main Window ........................................................................................................................... 42 4.2 Options............................................................................................................................................ 44 4.3 Managing Projects .......................................................................................................................... 67 4.4 Objects ............................................................................................................................................

88 4.5 Editing Functions........................................................................................................................... 100 4.6 Online Functions ........................................................................................................................... 104 4.7 Windows........................................................................................................................................ 113 4.8 Help System..................................................................................................................................

114 4.9 Log ................................................................................................................................................ 114 5 Editors.................................................................................................................................................... 116 5.1 Declaration Editor.......................................................................................................................... 117 5.2 Text Editors ...................................................................................................................................

127 5.3 Instruction List Editor..................................................................................................................... 130 5.4 Structured Text Editor ................................................................................................................... 130 5.5 Graphical Editors........................................................................................................................... 131 5.6 Function Block Diagram Editor......................................................................................................

133 5.7 Ladder Diagram Editor .................................................................................................................. 137 5.8 Continuous Function Chart Editor (CFC) ...................................................................................... 142 5.9 Sequential Function Chart Editor .................................................................................................. 153 6 Ressources............................................................................................................................................

162 6.1 Global Variables............................................................................................................................ 162 6.2 Alarm Configuration ...................................................................................................................... 165 6.2.1 Alarm system, Terms ..................................................................................................... 166 6.2.2 Alarm classes.................................................................................................................

167 6.2.3 Alarm groups.................................................................................................................. 170 TwinCAT 2 PLC Control 6 Version: 1.0