Table of contents Table of contents 1 Foreword.................................................................................................................................................... 3 1.1 Notes on the documentation ............................................................................................................. 3 1.2 For your safety .................................................................................................................................. 3 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)..................................................................................... 23 2.2.5 Function Block Diagram (FBD) ........................................................................................ 27 2.2.6 The Continuous Function Chart Editor (CFC).................................................................. 27 2.2.7 Ladderdiagram (LD).........................................................................................................
28 2.2.8 Debugging, Online Functions........................................................................................... 29 2.2.9 IEC 61131-3..................................................................................................................... 30 3 Sample Program...................................................................................................................................... 32 4 Individual Components...........................................................................................................................
41 4.1 The Main Window ........................................................................................................................... 41 4.2 Options............................................................................................................................................ 43 4.3 Managing Projects .......................................................................................................................... 66 4.4 Objects ............................................................................................................................................
87 4.5 Editing Functions............................................................................................................................. 99 4.6 Online Functions ........................................................................................................................... 103 4.7 Windows........................................................................................................................................ 112 4.8 Help System..................................................................................................................................
113 4.9 Log ................................................................................................................................................ 113 5 Editors.................................................................................................................................................... 115 5.1 Declaration Editor.......................................................................................................................... 116 5.2 Text Editors ...................................................................................................................................
125 5.3 Instruction List Editor..................................................................................................................... 128 5.4 Structured Text Editor ................................................................................................................... 129 5.5 Graphical Editors........................................................................................................................... 130 5.6 Function Block Diagram Editor......................................................................................................
132 5.7 Ladder Diagram Editor .................................................................................................................. 136 5.8 Continuous Function Chart Editor (CFC) ...................................................................................... 141 5.9 Sequential Function Chart Editor .................................................................................................. 152 6 Resources..............................................................................................................................................
161 6.1 Global Variables............................................................................................................................ 161 6.2 Alarm Configuration ...................................................................................................................... 164 6.2.1 Alarm system, Terms ..................................................................................................... 165 6.2.2 Alarm classes.................................................................................................................
166 6.2.3 Alarm groups.................................................................................................................. 169 TX1200 6 Version: 1.3