
- •1 A Brief Introduction to CoDeSys
- •1.1 What is CoDeSys
- •1.2 Overview of CoDeSys Functions...
- •1.3 Overview on the user documentation for CoDeSys
- •2 What is What in CoDeSys
- •2.1 Project Components...
- •2.2 Languages...
- •2.2.1 Instruction List (IL)...
- •2.2.2 Structured Text (ST)...
- •2.2.3 Sequential Function Chart (SFC)...
- •2.2.4 Function Block Diagram (FBD)...
- •2.2.5 The Continuous Function Chart Editor (CFC)...
- •2.2.6 Ladder Diagram (LD)...
- •2.3 Debugging, Online Functions...
- •2.4 The Standard...
- •3 We Write a Little Program
- •3.1 Controlling a Traffic Signal Unit...
- •3.2 Visualizing a Traffic Signal Unit...
- •4 The Individual Components
- •4.1 The Main Window...
- •4.3 Managing Projects...
- •4.4 Managing Objects in a Project...
- •4.5 General Editing Functions...
- •4.8 Help when you need it...
- •5 Editors in CoDeSys
- •5.1 This is for all Editors...
- •5.2 Declaration Editor...
- •5.2.1 Working in the Declaration Editor
- •5.2.3 Pragma instructions in the Declaration Editor
- •5.3 The Text Editors...
- •5.3.1 Working in text editors
- •5.3.2 The Instruction List Editor...
- •5.3.3 The Editor for Structured Text...
- •5.4 The Graphic Editors...
- •5.4.1 Working in graphic editors
- •5.4.2 The Function Block Diagram Editor...
- •5.4.3 The Ladder Editor...
- •5.4.4 The Sequential Function Chart Editor...
- •5.4.5 The Continuous Function Chart Editor (CFC)...
- •6 The Resources
- •6.1 Overview of the Resources
- •6.2 Global Variables, Variable Configuration, Document Frame
- •6.2.1 Global Variables...
- •6.2.2 Variable Configuration...
- •6.2.3 Document Frame...
- •6.3 Alarm Configuration
- •6.3.1 Overview
- •6.3.2 General information on alarms, Terms
- •6.3.3 Alarm classes
- •6.3.4 Alarm groups
- •6.3.5 Alarm saving
- •6.3.6 'Extras' Menu: Settings
- •6.4 Library Manager...
- •6.6 PLC Configuration...
- •6.6.1 Overview
- •6.6.2 Working in the PLC Configuration...
- •6.6.3 General Settings in the PLC Configuration
- •6.6.4 Custom specific parameter dialog
- •6.6.5 Configuration of an I/O Module...
- •6.6.6 Configuration of a Channel
- •6.6.7 Configuration of Profibus Modules...
- •6.6.8 Configuration of CAN modules...
- •6.6.9 Configuration of a CanDevice (CANopen Slave)
- •6.6.10 PLC Configuration in Online Mode
- •6.6.11 Hardware scan/State/Diagnosis information from the PLC
- •6.7 Task Configuration...
- •6.7.1 Working in the Task Configuration
- •6.7.2 System Events
- •6.7.3 Taskconfiguration in Online Mode
- •6.8 Watch and Receipt Manager...
- •6.8.1 Overview
- •6.8.2 Watch and Receipt Manager in the Offline Mode
- •6.8.3 Watch and Receipt Manager in the Online Mode
- •6.9 The Sampling Trace
- •6.9.1 Overview and Configuration
- •6.9.2 Display of the Sampling Trace
- •6.9.3 'Extras' 'Save Trace'
- •6.9.4 'Extras' 'External Trace Configurations'
- •6.10 Workspace
- •6.11 Parameter Manager ..
- •6.11.1 Overview, Activating
- •6.11.2 The Parameter Manager Editor, Overview
- •6.11.3 Parameter List Types and Attributes
- •6.11.4 Managing parameter lists
- •6.11.5 Editing parameter lists
- •6.11.6 Parameter Manager in Online Mode
- •6.11.7 Export / Import of parameter lists
- •6.12 Target Settings
- •6.13 The PLC-Browser
- •6.14 Tools
- •6.14.1 Properties of available Tool Shortcuts (Object Properties)
- •6.14.2 Managing Tool Shortcuts
- •6.14.3 Frequently asked questions on Tools
- •7.1 What is ENI
- •7.2 Preconditions for Working with an ENI project data base
- •7.3 Working with the ENI project data base in CoDeSys
- •7.4 Object categories concerning the project data base
- •8 DDE Interface
- •8.1 DDE interface of the CoDeSys programming system...
- •8.2 DDE communcation with the GatewayDDE Server...
- •9 The License Management in CoDeSys
- •9.1 The License Manager
- •9.1.1 Creating a licensed library in CoDeSys
- •10 APPENDIX
- •Appendix A: IEC Operators and additional norm extending functions
- •Arithmetic Operators...
- •Bitstring Operators...
- •Selection Operators
- •Comparison Operators...
- •Address Operators...
- •Calling Operators...
- •Type Conversions...
- •Numeric Operators...
- •Appendix B: Operands in CoDeSys
- •Constants
- •Variables
- •Addresses
- •Functions
- •Appendix C: Data types in CoDeSys
- •Standard data types
- •Defined data types
- •Appendix D: The CoDeSys Libaries
- •The Standard.lib library
- •String functions...
- •Bistable Function Blocks...
- •Trigger...
- •Counter...
- •Timer...
- •The Util.lib library
- •BCD Conversion
- •Bit-/Byte Functions
- •Mathematic Auxiliary Functions
- •Controllers
- •Signal Generators...
- •Function Manipulators...
- •Analog Value Processing...
- •The AnalyzationNew.lib library
- •The CoDeSys System Libraries
- •Appendix E: Operators and Library Modules Overview
- •Appendix F: Command Line-/Command File
- •Command Line Commands
- •Command File (cmdfile) Commands
- •Appendix G: Siemens Import
- •Import from a SEQ Symbol File
- •Import from a S5 Project File
- •Converting S5 to IEC 61131-3
- •Appendix H: Target Settings in Detail
- •Settings in Category Target Platform
- •Appendix I: Use of Keyboard
- •Appendix J: Compiler Errors and Warnings
- •Warnings
- •Errors

6 - The Resources
Executing Tool Shortcuts
A shortcut will be executed on a double-click on the entry in the Resources tree or by the command 'Open Object' in the 'Project' 'Object' menu resp. in the context menu (right mouse button).
If the execution of the file, which is defined in the shortcut properties (Parameter), fails, then an appropriate error message will appear. If a parameter file will not be found, the exe-file of the tool will be executed and a dialog will open, asking you whether the file should be created.
If the exe-file of the tool is not found in the defined path or if no path has been defined, then the standard dialog for selecting a file will be opened and the user will be asked to enter the path of the exe-file. This path will be saved when the dialog is closed by OK and thus will be available for the tool also in other CoDeSys projects.
Saving Tool Shortcuts
When the CoDeSys project is saved, the status and settings of the 'Tools' folder in the Resources tree will also be saved.
Please note: If you save a project by 'Save as' with a new name, then you must consider the following if you use the template $(PROJECT_NAME) in the definition of the parameter file and of the files which are to be downloaded:
If you had added shortcuts for a tool (FixedCount=0) in the old project, then in the new project the file names have to be renamend manually corresponding to the new project name. In contrast for a tool which is defined with a fix number of shortcuts, the template always will be replaced automatically by the current project name !
6.14.3Frequently asked questions on Tools
Why do I get no entry 'Tools' in the 'Resources' ?
Only if it is defined in the target file of the currently set target system, the 'Tools' functionality will be available.
For which tools already shortcuts are available, which shortcuts can I add in the CoDeSys project ?
Open the folder 'Tools' in the 'Resources' tree of the Object Organizer by a double-click on the plus sign. You will see which tools already are connected for the current project. If you have just set up a new project and not yet worked on the Tools list, then just those entries will be displayed, which are predefined unalterably by the definitions in the target file. Otherwise you might see an already project specifically modified tools list. In order to check, whether the list is extendable by new entries, select the command 'Add Object'. You will get a dialog offering all tools for which additional shortcuts can be created.
Which global properties do the available tools have ?
Mark the entry 'Tools' in the Object Organizer and choose the command 'Object Properties' from the context menu (right mouse button). Expand the appearing dialog by pressing the 'Advanced' button. Now you will see a list of the available tools and the corresponding parameters. Select one of the tools by a mouse click on the IDSymbol in order to – for example - get displayed the allowed number of shortcuts for the tool in the field 'FixedCount', or to get displayed which files will be downloaded to the PLC if the shortcut is activated. The file names or paths might be shown in the form of templates, which will be interpreted for each single shortcut as described in the following paragraph:
Which individual properties have the available shortcuts ?
Mark one of the entries below 'Tools' in the Object Organizer and select the command 'Object Properties' in the context menu (right mouse button). Press button 'Advanced' to get the parameters of the chosen shortcut. Partially they will correspond to the above described global tool properties. If allowed by the definition in the target file you can edit these parameters here.
How can I create a shortcut for a tool ?
Mark the entry 'Tools' in the Object Organizer and choose the command 'Add Object' from the context menu (right mouse button). You will see a list of available tools, but only of those for which the maximum number of shortcuts (FixedCount) is not yet reached. Choose a tool and press OK. The tool will now be inserted in the Tools folder in the Object Organizer. If you want to insert it once more, then you must enter a different tool name first, which means to mark the new entry as another instance of the same tool. For example you could name the instances of the tool Toolxy "Toolxy_1", "Toolxy_2" etc.
CoDeSys V2.3 |
6-75 |

Tools
How can I modify the parameters of a tool ?
In order to modify the parameters of a shortcut (instance of a tool connection), mark the shortcut in the Object Organizer and choose command 'Object Properties' from the context menu. It depends on the pre-definition of the tool in the target file, whether the parameters can be edited in the properties dialog. (See in the expanded dialog whether the option 'Editable' is activated. Button 'Standard' resets all edited values to the defaults.
How can I execute a tool shortcut ?
Perform a double-click on the shortcut entry in the Object Organizer or select the command 'Open Object' in the context menu resp. in the 'Project' menu when the entry is marked in the Object Organizer.
6-76 |
CoDeSys V2.3 |