A Brief Introduction to TwinCAT PLC Control Global Variables which can be used throughout the project PLC Configuration for configuring your hardware Task Configuration for guiding your program through tasks Sampling Trace for graphic display of variable values Watch and Recepe Manager for displaying variable values and setting default variable values See the chapter called " The Ressources [ } 161] ". Libraries You can include in your project a series of libraries whose POUs, data types, and global variables you can use just like user-defined variables. The library "standard.lib" is a standard part of the program and is always at your disposal.
See the chapter called " Library Manager [ } 252] ". Data types Along with the standard data types the user can define his own data types. Structures, enumeration types and references can be created. See ' Standard [ } 182] -' and ' User Defined Datatypes [ } 182] ' in the appendix. 2.2 Languages 2.2.1 Programming Languages TwinCAT PLC Control supports all IEC 61131-3 languages. There are two textual languages and four grafical languages.
texual languages Instruction List (IL) [ } 16] Structured Text (ST) [ } 18] grafical languages Function Block Diagram (FBD) [ } 27] Ladder Diagram (LD) [ } 28] Continous Function Chart (CFC) [ } 27] Sequential Function Chart (SFC) [ } 23] 2.2.2 Instruction List (IL) An instruction list (IL) consists of a series of instructions. Each instruction begins in a new line and contains an operator and, depending on the type of operation, one or more operands separated by commas. In front of an instruction there can be an identification mark (label) followed by a colon (:). A comment must be the last element in a line. Empty lines can be inserted between instructions. Example:
LD 17 ST lint (* comment *) GE 5 JMPC next LD idword EQ istruct.sdword STN test next: TX1200 16 Version: 1.3