Adding objects
The following instructions indicate some possibilities to create objects in the PLC project.
- A PLC project is open.
- 1. Select an entry in the PLC project tree, for example the folder POUs.
- 2. Select the command Add in the context menu.
- Depending on the entry selected in the tree, TwinCAT offers suitable objects for selection. The following objects are available to you:
- Object POU
- Object POUs for implicit checks
- Object DUT
- Object Global Variable List
- Object Referenced Task
- Object Recipe Manager
- Object Image Pool
- Object Interface
- Object Parameter List
- Object "Text list"
- Object "Class Diagram"
- Object "Visualization" Manager"
- Object "Visualization"
- 3. For example, select the object POU and in the dialog Add POU, which then appears, select the type Program with implementation language "Structured Text (ST)" and the name "Prog". Click on Open.
- TwinCAT adds a program object Prog in the PLC project tree below the selected entry.
- 4. Select an object in the tree and select the command Properties (object) in the context menu.
- The Properties view with object-relevant categories becomes active. If you use a user administration you could, for example, restrict access to the object here.
- 5. Select an entry in the tree below which you wish to create a folder in order to collect objects in it.
- 6. Select the command Add > New Folder in the context menu.
- The folder appears in the PLC project tree.
- 7. Give the folder a name and confirm it.
- 8. Select an object in the PLC project tree and move it to a different position, for example into the folder, by dragging it with the mouse inside the project tree.
See also:
- TC3 User Interface documentation: Command Add Existing Item (Object)
- TC3 User Interface documentation: Command Properties (object)
- TC3 User Interface documentation: Command New folder