Adding Objects
Requirement: A project is open. At least the top <project name> node exists in the Devices view ("device tree") and in the POUs view.
The following instructions demonstrate some options on how to create objects in the project.
In the device tree or in the POU tree, select an entry, for example the Application object.
Click
.Depending on the selected entry, CODESYS provides the suitable objects which can be selected.
For example, select the POU object and in the Add POU which opens, select the Program type with Structured Text (ST) as the implementation language and "
prog
" as the name.After you click Add, CODESYS inserts a prog program object below Application in the device tree.
In the tree, select an object and click
in the context menu.The Properties dialog opens with the object-relevant categories. If you use a user management, then you could, for example, restrict the access to an object here.
In the tree, select an entry below which you want to create a folder to hold specific objects.
Note: You cannot create your own folders to structure the layout of the device nodes and device objects.
In the context menu, click OK.
and define a name for the new folder in the dialog which opens. ClickThe folder is displayed in the tree.
In the tree, select an object and drag it to another location within the tree, for example to the folder.
Do not select an object in the device tree, but set the focus on any free position in the CODESYS user interface. Click and then, for example, click the Text List object.
The Text List object is inserted in the POUs view.