24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 - The Resources<br />

6.13.3 Deleting connections<br />

There are a number of possibilities for removing the connection between the output of an element E1<br />

and the input of an element E2:<br />

Select the output of element E1 and press the key or execute the command 'Edit' 'Delete'.<br />

Several connections will be removed at the same if the output of E1 is connected to more than one of<br />

inputs.<br />

Select the input of element E2 and press the key or execute the command 'Edit' 'Delete'.<br />

Select the input of E2 with the mouse, hold the left mousekey depressed and drag the connection<br />

from the input to E2 away. The connection is removed when the left mousekey is released in a free<br />

area of the screen.<br />

6.13.4 Executing Tool Shortcuts<br />

A shortcut will be executed on a double-click on the entry in the Resources tree or by the command<br />

'Open Object' in the 'Project' 'Object' menu resp. in the context menu (right mouse button).<br />

If the execution of the file, which is defined in the shortcut properties (Parameter), fails, then an<br />

appropriate error message will appear. If a parameter file will not be found, the exe-file of the tool will<br />

be executed and a dialog will open, asking you whether the file should be created.<br />

If the exe-file of the tool is not found in the defined path or if no path has been defined, then the<br />

standard dialog for selecting a file will be opened and the user will be asked to enter the path of the<br />

exe-file. This path will be saved when the dialog is closed by OK and thus will be available for the tool<br />

also in other CoDeSys projects.<br />

6.13.5 Saving Tool Shortcuts<br />

When the CoDeSys project is saved, the status and settings of the 'Tools' folder in the Resources tree<br />

will also be saved.<br />

Please note: If you save a project by 'Save as' with a new name, then you must consider the following if you use<br />

the template $(PROJECT_NAME) in the definition of the parameter file and of the files which are to<br />

be<br />

downloaded:<br />

If you had added shortcuts for a tool (FixedCount=0) in the old project, then in the new project the file<br />

names have to be renamend manually corresponding to the new project name. In contrast for a tool<br />

which is defined with a fix number of shortcuts, the template always will be replaced automatically by<br />

the current project name !<br />

6.13.6 Frequently asked questions on Tools<br />

Why do I get no entry 'Tools' in the 'Resources' <br />

Only if it is defined in the target file of the currently set target system, the 'Tools' functionality will be<br />

available.<br />

For which tools already shortcuts are available, which shortcuts can I add in the CoDeSys<br />

project <br />

Open the folder 'Tools' in the 'Resources' tree of the Object Organizer by a double-click on the plus<br />

sign. You will see which tools already are connected for the current project. If you have just set up a<br />

new project and not yet worked on the Tools list, then just those entries will be displayed, which are<br />

predefined unalterably by the definitions in the target file. Otherwise you might see an already project<br />

specifically modifed tools list. In order to check, whether the list is extendable by new entries, select<br />

the command 'Add Object'. You will get a dialog offering all tools for which additional shortcuts can be<br />

created.<br />

Which global properties do the available tools have <br />

CoDeSys V2.3 6-65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!