
- •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

Appendix I: - Use of Keyboard
Appendix I: Use of Keyboard
If you would like to run CoDeSys using only the keyboard, you will find it necessary to use a few commands that are not found in the menu.
•The function key <F6> allows you to toggle back and forth within the open POU between the Declaration and the Instruction parts.
•<Alt>+<F6> allows you to move from an open object to the Object Organizer and from there to the Message window if it is open. If a Search box is open, <Alt>+<F6> allows you to switch from Object Organizer to the Search box and from the there back to the object.
•Press <Strg>+<F6> to move to the next open editor window, press <Strg>+<Shift>+<F6> to get to the previous.
•Press <Tab> to move through the input fields and buttons in the dialog boxes.
•The arrow keys allow you to move through the register cards and objects within the Object Organizer and Library Manager.
All other actions can be performed using the menu commands or with the shortcuts listed after the menu commands. <Shift>+<F10> opens the context menu which contains the commands most frequently used for the selected object or for the active editor.
Key Combinations
The following is an overview of all key combinations and function keys:
General Functions |
|
|
|
Move between the declaration part and the instruction part |
<F6> |
of a POU |
|
|
|
Move between the Object Organizer, the object and the |
<Alt>+<F6> |
message window |
|
|
|
Context Menu |
<Shift>+<F10> |
|
|
Shortcut mode for declarations |
<Ctrl>+<Enter> |
|
|
Move from a message in the Message window back to the |
<Enter> |
original position in the editor |
|
|
|
Move to the next open editor window |
<Strg>+<F6> |
|
|
Move to the previous open editor window |
<Strg>+<Umschalt>+<F6> |
|
|
Open and close multi-layered variables |
<Enter> |
|
|
Open and close folders |
<Enter> |
|
|
Switch register cards in the Object Organizer and the |
<Arrow keys> |
Library Manager |
|
|
|
Move to the next field within a dialog box |
<Tab> |
|
|
Context sensitive Help |
<F1> |
|
|
|
|
General Commands |
|
|
|
'File' 'Save' |
<Ctrl>+<S> |
|
|
'File' 'Print' |
<Ctrl>+<P> |
|
|
'File' 'Exit' |
<Alt>+<F4> |
|
|
CoDeSys V2.3 |
10-95 |

|
Appendix I: - Use of Keyboard |
|
|
|
|
'Project' 'Check' |
|
<Strg>+<F11> |
|
|
|
'Project' 'Build' |
|
<Umschalt>+<F11> |
|
|
|
'Project' 'Rebuild all' |
|
<F11> |
|
|
|
'Project' 'Delete Object' |
|
<Del> |
|
|
|
'Project' 'Add Object' |
|
<Ins> |
|
|
|
'Project' 'Rename Object' |
|
<Spacebar> |
|
|
|
'Project' 'Open Object' |
|
<Enter> |
|
|
|
'Edit' 'Undo' |
|
<Ctrl>+<Z> |
|
|
|
'Edit' 'Redo' |
|
<Ctrl>+<Y> |
|
|
|
'Edit' 'Cut' |
|
<Ctrl>+<X> or |
|
|
<Shift>+<Del> |
|
|
|
'Edit' 'Copy' |
|
<Ctrl>+<C> |
|
|
|
'Edit' 'Paste' |
|
<Ctrl>+<V> |
|
|
|
'Edit' 'Delete' |
|
<Del> |
|
|
|
'Edit' 'Find next' |
|
<F3> |
|
|
|
'Edit' 'Input Assistant' |
|
<F2> |
|
|
|
'Edit' 'Next Error' |
|
<F4> |
|
|
|
'Edit' 'Previous Error' |
|
<Shift>+<F4> |
|
|
|
'Online' 'Log-in' |
|
<Alt><F8> |
|
|
|
'Online' 'Logout' |
|
<Ctrl>+<F8> |
|
|
|
'Online' 'Run' |
|
<F5> |
|
|
|
'Online' 'Toggle Breakpoint' |
|
<F9> |
|
|
|
'Online' 'Step over' |
|
<F10> |
|
|
|
'Online' 'Step in' |
|
<F8> |
|
|
|
'Online' 'Single Cycle' |
|
<Ctrl>+<F5> |
|
|
|
'Online' 'Write Values' |
|
<Ctrl>+<F7> |
|
|
|
'Online' 'Force Values' |
|
<F7> |
|
|
|
'Online' 'Release Force' |
|
<Shift>+<F7> |
|
|
|
'Online' ''Write/Force dialog' |
|
<Shift>+<F7> |
|
|
|
'Window' 'Messages' |
|
<Shift>+<Esc> |
|
|
|
|
|
|
FBD Editor Commands |
|
|
|
|
|
'Insert' 'Network (after)' |
|
<Shift>+<T> |
|
|
|
'Insert' 'Assignment' |
|
<Ctrl>+<A> |
|
|
|
'Insert' 'Jump' |
|
<Ctrl>+<L> |
|
|
|
'Insert' 'Return' |
|
<Ctrl>+<R> |
|
|
|
10-96 |
CoDeSys V2.3 |
Appendix I: - Use of Keyboard |
|
|
|
|
|
'Insert' 'Operator' |
|
<Ctrl>+<O> |
|
|
|
'Insert' 'Function' |
|
<Ctrl>+<F> |
|
|
|
'Insert' 'Function Block' |
|
<Ctrl>+<B> |
|
|
|
'Insert' 'Input' |
|
<Ctrl>+<U> |
|
|
|
'Extras' 'Negate' |
|
<Ctrl>+<N> |
|
|
|
'Extras' 'Zoom' |
|
<Alt>+<Enter> |
|
|
|
|
|
|
CFC Editor Commands |
|
|
|
|
|
'Insert' 'POU' |
|
<Ctrl>+<B> |
|
|
|
'Insert' 'Input' |
|
<Ctrl>+<E> |
|
|
|
'Insert' 'Output' |
|
<Ctrl>+<A> |
|
|
|
'Insert' 'Jump' |
|
<Ctrl>+<G> |
|
|
|
'Insert' 'Label' |
|
<Ctrl>+<L> |
|
|
|
'Insert' 'Return' |
|
<Ctrl>+<R> |
|
|
|
'Insert' 'Comment' |
|
<Ctrl>+<K> |
|
|
|
'Insert' 'POU input' |
|
<Ctrl>+<U> |
|
|
|
'Extras' 'Negate' |
|
<Ctrl>+<N> |
|
|
|
'Extras' 'Set/Reset' |
|
<Ctrl>+<T> |
|
|
|
'Extras' 'Connection' |
|
<Ctrl>+<M> |
|
|
|
'Extras' 'EN/ENO' |
|
<Ctrl>+<E> |
|
|
|
'Extras' 'Zoom' |
|
<Alt>+<Enter> |
|
|
|
|
|
|
LD Editor Commands |
|
|
|
|
|
'Insert' 'Network (after)' |
|
<Shift>+<T> |
|
|
|
'Insert' 'Contact' |
|
<Ctrl>+<K> |
|
|
|
'Insert' 'Parallel Contact' |
|
<Ctrl>+<R> |
|
|
|
'Insert' 'Function Block' |
|
<Ctrl>+<B> |
|
|
|
'Insert' 'Coil' |
|
<Ctrl>+<L> |
|
|
|
'Extras' 'Paste below' |
|
<Ctrl>+<U> |
|
|
|
'Extras' 'Negate' |
|
<Ctrl>+<N> |
|
|
|
'Extras' 'Zoom' |
|
<Alt>+<Enter> |
|
|
|
|
|
|
SFC Editor Commands |
|
|
|
|
|
'Insert' 'Step-Transition (before)' |
|
<Ctrl>+<T> |
|
|
|
'Insert' 'Step-Transition (after)' |
|
<Ctrl>+<E> |
|
|
|
CoDeSys V2.3 |
10-97 |

Appendix I: - Use of Keyboard
'Insert' 'Alternative Branch (right)' |
<Ctrl>+<A> |
|
|
'Insert' 'Parallel Branch (right)' |
<Ctrl>+<L> |
|
|
'Insert' 'Jump' |
<Ctrl>+<U> |
|
|
'Extras' 'Zoom Action/Transition' |
<Alt>+<Enter> |
|
|
Move back to the editor from the SFC Overview |
<Enter> |
|
|
|
|
Work with the PLCresp. Task Configuration |
|
|
|
Open and close organization elements |
<Enter> |
|
|
Place an edit control box around the name |
<Spacebar> |
|
|
'Extras' 'Edit Entry' |
<Enter> |
|
|
|
|
Working in the Parameter Manager Editor |
|
|
|
Toggle between navigation window and list editor |
<F6> |
|
|
Delete a line in the list editor |
<Ctrl>+<Del> |
|
<Shift>+<Del> |
|
|
Delete a field in the list editor |
<Del> |
|
|
|
|
10-98 |
CoDeSys V2.3 |