Creating new objects and folders
How to create a new →object or a new →folder in the →project:
Select a folder of the project in which you want to create the new object/folder. This existing folder will be the parent folder. (But it is possible to change the parent folder in the dialog when entering the name of the object/folder).
If the folder is displayed with the decorator at the name, the folder is a read-only folder. Subsequently, it is not possible to create new objects/folders in this read-only folder within the application navigator. If you are interested in how to transform a folder into a read-only folder, please contact logi.cals for the relevant information that is included in the documentation "Administrator's Manual".
Recommendation by logi.cals on the location of new objects:
Create a new object only within a folder that is displayed within the view containing the projects/resources by default. Example: folder src
Do not create a new object within a folder that is hidden within the view containing the projects/resources by default. Examples: folder target and src-gen – If you do anyway, it is not possible to use blocks of such objects within the editors (see "Block or library is not available in projects" for details).
In menu File or from the context menu of the folder, select New and one of the following commands (depending on the →resource you want to create). See " List of possible objects ".
By using the provided command Other... instead, a wizard is opened. In this wizard, expand the group Other or General, select one of the resources in this group and click Next > .
Your logi.CAD 3 version might provide several object templates in a wizard, when you select the command for an object. If in doubt about what to select, the best practice is to select the object template Default template and to click Next >.
In the dialog or in the wizard, enter the name of the object in File name or Folder name.
If other fields are provided as well, enter/select these fields as appropriate.If you want to create a →linked resource, click Advanced >>. Then check Link to file in the file system or Link to alternate location (Linked Folder), type in the full path or click the button Browse to locate the file or folder on the file system.
Click Finish.
Result: The view displays the appropriate resource. It is opened in the assigned default editor.
List of possible objects
|
|
Command available in |
|
Ressource |
Command |
menu "File" |
context menu |
project |
See "Creating new project", if you want to create a project. |
|
|
Library Configuration |
|
|
|
Data type |
Data Type
A →data type is an ST-object with the ST-syntax for the respective data type. |
|
|
FBD Program, FBD Function Block and FBD Function |
|
|
|
Global-Object |
|
|
|
LD Program, LD Function Block and LD Function |
|
|
|
ST-Object |
|
|
|
ST Program, ST Function Block and ST Function These objects are ST-objects with the ST-syntax for the respective language element →program, →function block or →function. |
|
|
|
folder |
Folder |
|
|
generic |
File |
|
|
More commands to create other objects might be provided in your used logi.CAD 3 version.
|
|
Command available in |
|
Ressource |
Command |
menu "File" |
context menu |
ST-Interface |
|
|
|
Device Object |
|
|
|
PLC-Object |
|
|
|
VarCfg-Object |
|
|
List of objects and the default editor
Resource (with icon) |
Meaning |
Assigned default editor |
|
|
name |
→library configuration (object to create →libraries) |
editor for library configurations – see " Syntax for library configuration " |
|
libraries |
→library reference (object to manage →libraries) – By default, the library reference is not visible within the view containing the projects/resources and it cannot be created. |
editor for library reference – see "Using the library reference and its syntax" |
|
name |
FBD-object (object with FBD-code or logic) FBD-objects have the file extension .iecfbd. See the following note. |
|
|
name |
global-object (object for the central declaration of global variables) Global-objects have the file extension .global. See the following note. |
|
|
name |
LD-object (object with ladder diagram) LD-objects have the file extension .iecld. See the following note. |
|
|
name |
ST-object (object with ST-code for your application in ST) ST-objects have the file extension .iecst. See the following note. |
|
|
name |
enum-object (data type with named elements within an ST-object) |
|
|
name |
– |
|
|
name |
→linked folder |
– |
|
name |
generic object |
text editor You may open a text editor without creating a file first: context menu for project, New, Other..., group General, Untitled Text File |
More objects and default editors might be provided in your used logi.CAD 3
version.
Resource (with icon) |
Meaning |
Assigned default editor |
|
|
name |
ST-interface (object with the interface for your application in C) ST-interfaces have the file extension .iecif. See the following note. |
ST-editor |
|
name |
device object (object for the device configuration) Device objects have the file extension .device. See the following note. |
|
|
name |
PLC-object (object with information on PLC, available as ST-code) PLC-objects have the file extension .iecplc. See the following note. |
|
|
name |
VarCfg-object (object for the central declaration of VAR_CONFIG sections) VarCfg-objects have the file extension .varcfg. See the following note. |
Note: The file extensions (e.g. .iecst) are not displayed in the view containing the projects/resources. But if you rename the appropriate objects in logi.CAD 3, the appropriate file extension is visible. Do not manipulate the file extension! If you do nevertheless (e.g. you delete the file extension or you change the file extension to upper case letters), the file is not recognized as appropriate object (e.g as ST-object) any longer.