
- •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
which are calculated for the components a, b, c by the addition of base offsets and template defined offsets: Indices: 16#2301, 16#2302, 16#2303; SubIndices:16#23, 16#33, 16#43.
Basing on this automatically created entries now you can continue to edit the parameter list.
6.11.4Managing parameter lists
Insert list
Shortcut: Ins
To insert a new parameter list in the Parameter Manage use the command 'Insert list...', resp. 'Insert new list' in the 'Insert' or context menu. The commands are available when the focus is in the empty navigation window resp. on an already existing entry in the navigation tree.
The dialog 'Insert list' opens:
Dialog 'Insert list'
Insert a Name for the new parameter list (must be unique within the list type) and choose one of the following list types:
Variables |
Entries for process variables |
|
|
Parameters |
Entries for data, whose values remain unattached by the process |
|
|
Template |
Template of attribute setting for the components of a function |
|
block or a structure |
|
|
Instance |
Entries for variables of type of a function block or a structure, |
|
basing on the corresponding template (see above) |
|
|
CoDeSys V2.3 |
6-63 |

|
|
|
Parameter Manager .. |
|
|
Mappings |
|
Entries for process variables, intended for being used in the PDO |
|
|
|
|
||
|
|
|
mapping of a CAN Device. This type is only available, if supported |
|
|
|
|
by the target system ! |
|
|
|
|
|
|
|
System parameters |
|
Entries for parameters whose values are not attached by the |
|
|
|
|
process and which are defined by the target system |
|
|
|
|
|
|
After confirming the settings and closing the dialog with OK the new parameter list will appear as an entry in the navigation window, the list type indicated by the icon. In the table editor the appropriate attributes will be displayed as column titles. Selection and order of the columns are defined by a target specific description file, otherwise the default settings are used. Now you can edit the table, by entering a line for each desired parameter (see Chapter 6.11.4, Editing a parameter list).
Rename List
The parameter list, which is currently marked in the navigation window, can be renamed by using the command 'Rename list' which is available in the 'Extras' menu or in the context menu. An edit field will open, which you also get when doing a double-click with the mouse on the list name.
Cut / Copy /Paste list
Shortcut: <Strg> + <X>, <Strg> + <C>, <Strg> + <V>,
The command 'Cut' (Edit menu) resp. 'Cut list' (context menu) moves the currently marked list from the navigation window to a temporary buffer, so that you can reinsert it by the 'Paste' command at any other position in the navigation tree. Before re-inserting mark that list, above which you want to insert.
The command 'Copy' resp. 'Copy list' also uses the temporary buffer, but the original navigation tree entry will be kept, and a copy will be added by 'Paste'.
Delete list
Shortcut: <Del>
The list currently selected in the navigation window will be removed by the command 'Delete' ('Edit' Menu) resp. 'Delete list' ('Extras' or context menu).
Please regard: In online mode this command will delete the corresponding list in the runtime system.
6.11.5Editing parameter lists
Which columns (attributes) are displayed:
The currently marked parameter list (navigation window) will be displayed in the table window as defined by a target specifc description file resp. according to the default settings.
This means that the attributes' values of each particular parameter will be displayed in a separate line according to the list-type-specific order and selection of columns.
You can fade out and fade in columns by deactivating/activating them in the context menu when the cursor is pointing to any field of the list column title bar.
For modifying the column move the dividers between the column title fields or use one of the commands available in the context menu when the cursor is placed on a column title field: Command Standard column width will set a standard width for all columns which makes them all visible in the window. Maximize width will change the width of the currently focussed column so that each entry will be fully displayed.
Commands for editing a parameter list entry:
The following commands for editing a parameter list are available in the context menu resp. in the menus 'Insert' or 'Extras':
Inserting /Deleting lines:
6-64 |
CoDeSys V2.3 |

|
6 - The Resources |
Insert line resp. |
A new entry (line) will be inserted before that one where the |
New line |
cursor is currently placed. |
Line after resp. |
A new entry (line) will be inserted after that one where the |
New line after |
cursor is currently placed. . |
Shortcut:<Ctrl><Enter> |
|
Delete line |
The line, where the cursor is currently placed, will be deleted. |
Shortcut: <Shift>+<Del> |
|
Cut, copy, paste line |
These commands can be used to move (cut/paste) or to copy |
|
(copy/paste) the selected line. |
Editing attribute values:
If a new line for a parameter entry is inserted, the attribute fields will be automatically filled with target specific default values. See chapter 6.11.3, 'Parameter List Types and Attributes' for the possible attributes. To enter or edit an attribute value, click on the corresponding field. An edit field will be opened, if the attribute is editable. The input assistant (<F2>) will be available in fields where a component of the CoDeSys project should be entered.
Press <Enter> to close the entry.
Use the arrow keys to jump to another field.
Press <Del> to delete the entry of the currently edited field.
In order to toggle the input format between 'decimal' and hexadecimal' use the command 'Format Dec/Hex' in the 'Extras' menu.
Press <F6> in order to set the focus to the navigation window (and back). Options:
Below the table in the editor window there can be activated the following options (availability depending on list type):
Download with program: At a login the list will be downloaded automatically to the controller. Synchronous actions: All read-/write accesses on other POUs defined for any list.
entries, will be executed by the target system synchronously with the call of the respective entry.
Sorting parameter lists
The sequence of entries within a parameter list can be sorted concerning an attribute (column) in ascending or descending order of the attribute values. This works in offline and in online mode.
Perform a mouse-click on the field which contains the column title of the desired attribute. Thus the table lines will be re-sorted and in the column title field of the attribute am arrow symbol will be displayed, showing the current sorting (pointing upwards = ascending sort sequence, pointing downwards = descending sort sequence).
6.11.6Parameter Manager in Online Mode
List transfer between Editor and Controlling Unit
In online mode the parameter lists, which have been created in the editor, can be downloaded to resp. uploaded from the runtime system. Furtheron you can write single parameter values to the runtime system.
Please regard: At login automatically a download of all parameter lists will be done for which the option 'Load with project' is activated !
CoDeSys V2.3 |
6-65 |

Parameter Manager ..
The current value of each parameter is monitored in an additional column which is displayed in the parameter manager in online mode :
The following commands are available in the 'Extras' menu for handling the list transfer between editor and controller:
Delete list |
The list currently marked in the navigation window will be deleted from the PLC |
|
runtime system. |
Write list |
This command will open the dialog 'Copy objects' where you can select from |
|
the available lists those you want to download to the runtime system. The |
|
download will be done as soon as you confirm with OK. |
Read list |
All lists of type 'Parameters' will be read from the runtime system and loaded |
|
into the Parameter Manager. |
Write values |
All values defined in column 'Value' will be written to the parameter list in the |
|
runtime system. To write single values, perform a double-click on the |
|
respective field in the column to get the dialog 'Write value', as known from the |
|
function 'Online' 'Write values'. |
Write default values The values defined in column 'Default' will be written to the parameter list in the runtime system.
Take over values The current values will be read from the runtime system and be uploaded to column 'Value'.
The command Format Dec/Hex is also available to toggles the input format between 'decimal' and hexadecimal' .
Parameter lists in boot project
It depends on the target system, whether parameter lists will be regarded when a boot project is created.
6.11.7Export / Import of parameter lists
'Extras' 'Export'
The command 'Export' of the 'Extras' menu can be used to export the lists of the Parameter Manager to a XML-file. This file for example might be imported to another project by using the import function in the CoDeSys Parameter Manager. The standard dialog for saving a file will be opened, the file extension *.prm will be preset. All lists available in the Parameter Manager will be written to the export file.
The content of the Parameter Manager also can be exported using the general project export function ('Project' Export').
'Extras' 'Import'
The command 'Import' of the 'Extras' menu can be used to import a XML-file which describes parameter lists. This file for example might be created by using the export function in the CoDeSys Parameter Manager.
If the import file contains a list, the name of which is already used in the Parameter Manager, a dialog will open asking the user whether the existing list should be overwritten.
6-66 |
CoDeSys V2.3 |