
- •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 J: - Compiler Errors and Warnings
Appendix J: Compiler Errors and Warnings
10.33 Warnings
1100
"Unknown function '<name>' in library."
An external library is used. Please check, whether all functions, which are defined in the .hex file, are also defined in the .lib file.
1101
"Unresolved symbol '<Symbol>'."
The code generator expects a POU with the name <Symbol>. It is not defined in the project. Define a function/program with this name.
1102
"Invalid interface for symbol '<Symbol>'."
The code generator expects a function with the name <Symbol> and exactly one scalar input, or a program with the name <Symbol> and no input or output.
1103
"The constant '<name>' at code address '<address>' overwrites a 16K page boundary!"
A string constant exceeds the 16K page boundary. The system cannot handle this. It depends on the runtime system whether the problem could be avoided by an entry in the target file. Please contact the PLC manufacturer.
1200
"Task '<name>', call of '<name>' Access variables in the parameter list are not updated"
Variables, which are only used at a function block call in the task configuration, will not be listed in the cross reference list.
1300
"File not found '<name>'"
The file, to which the global variable object is pointing, does not exist. Please check the path.
1301
"Analyze-Library not found! Code for analyzation will not be generated."
The analyze function is used, but the library analyzation.lib is missing. Add the library in the library manager.
1302
"New externally referenced functions inserted. Online Change is therefore no longer possible!"
Since the last download you have linked a library containing functions which are not yet referenced in the runtime system. For this reason you have to download the complete project.
1400
"Unknown Pragma '<Name>' is ignored!"
CoDeSys V2.3 |
10-99 |

Appendix J: - Compiler Errors and Warnings
This pragma is not supported by the compiler. See keyword ‘pragma’ for supported directives.
1401
"The struct '<name>' does not contain any elements."
The structure does not contain any elements, but variables of this type allocate 1 Byte of memory.
1410
"'RETAIN' and 'PERSISTENT' do not have any effect in functions"
Remanent variables which are defined locally in functions are handled like normal local variables.
1411
"Variable '<name>' in the variable configuration isn't updated in any task"
The top level instance of the variable is not referenced by a call in any task. Thus it will not be copied from the process image.
Example:
Variable Configuration:
VAR_CONFIG
plc_prg.aprg.ainst.in AT %IB0 : INT; END_VAR
plc_prg:
index := INDEXOF(aprg);
The program aprg is referenced but not called. Thus plc_prg.aprg.ainst.in never will get the actual value of %IB0.
1412
"Unexpected token '<Name>' in pragma {pragma name}"
You are using a pragma which is not written correctly resp. which cannot be used at this location. See keyword 'pragma' in the CoDeSys Online Help or Users Guide for getting help for a correction.
1413
"'<Name>' is not a valid key for list '<Name>'. The key will be ignored"
In the pragma a nonexistent parameter list is specified. Check the list name resp. have a look in the Parameter Manager for the currently available lists.
1500
"Expression contains no assignment. No code was generated."
The result of this expression is not used. For this reason there is no code generated for the whole expression.
1501
"String constant passed as 'VAR_IN_OUT': '<Name>' must not be overwritten!"
The constant may not be written within the POU, because there no size check is possible.
1502
"Variable '<Name>' has the same name as a POU. The POU will not be called!"
A variable is used, which has the same name like a POU. Example:
PROGRAM a
...
10-100 |
CoDeSys V2.3 |
Appendix J: - Compiler Errors and Warnings
VAR_GLOBAL a: INT;
END_VAR
...
a; (* Not POU a is called but variable a is loaded. *)
1503
"The POU ‘<name>’ has no outputs. Box result is set to 'TRUE'."
The Output pin of a POU which has no outputs, is connected in FBD or KOP. The assignment automatically gets the value TRUE.
1504
"’<name>’ (‘<number>’): Statement may not be executed due to the evaluation of the logical expression"
Eventually not all branches of the logic expression will be executed. Example:
IF a AND funct(TRUE) THEN ....
If a has is FALSE then funct will not be called.
1505
"Side effect in '<Name>'! Branch is probably not executed !"
The first input of the POU is FALSE, for this reason the side branch, which may come in at the second input, will not be executed.
1506
"Variable '<name>' has the same name as a local action. The action will not be called!"
Rename the variable or the action.
1507
"Instance '<name>' has the same name as a function. The instance will not be called."
You call in ST an instance which has the same name like a function. The function will be called ! Use different names.
1550
"Multiple calls of the POU '<Name>' in one network may lead to undesired side effects"
Check, whether the multiple call of this POU is really necessary. By a multiple call unwanted value overstrikes may occur.
1600
"Open DB unclear (generated code may be erroneous)."
The original Siemens program does not tell, which POU is opened.
1700
"Input not connected."
An input box is used in CFC which has no assignment. For this no code will be generated.
|
|
|
CoDeSys V2.3 |
10-101 |

Appendix J: - Compiler Errors and Warnings
1750
"Step '<Name>': the minimal time is greater than the maximal time!"
Open dialog 'Step attributes' for this step and correct the time definitions.
1800
"<name>(element #<element number>): Invalid watchexpression '<name>'"
The visualization element contains an expression which cannot be monitored. Check variable name and placeholder replacements.
1801
"'<name> (number): No Input on Expression '<name>' possible"
In the configuration of the visualization object at field input a composed expression is used. Replace this by a single variable.
1802
"<Visualization object>(Element number): Bitmap '<name>' was not found"
Make sure, that an external bitmap-file is available in that path which is defined in the visualization configuration dialog.
1803
"'<name>'('<number>'): "The print action would not supported for weband target visualization"
A print action is assigned to an alarm configured in the visualization. This will not be regarded in the Webor Target-Visualization.
1804
"'<name>'('<number>'): The font '<name>' is not supported by the target."
In the visualization you are using a font, which is not supported by the target system. See in the target settings, category 'Visualization' for the supported fonts.
1805
"'<name>'('<number>'): 'Store trend data in PLC' should be set."
You are using a visualization element for storing trend data. This however will not be regarded on the PLC, because option 'Store trend data' is not activated in the target settings, category Visualization.
1806
"'<name>'('<number>'): The target setting 'Alarm handling in the PLC' should be set."
You are using an element for alarm visualization. This however will not be regarded on the PLC because option 'Alarm handling in the PLC' is not activated in the target settings, category 'Visualization'.
1900
"POU '<name>' (main routine) is not available in the library"
The Start-POU (e.g. PLC_PRG) will not be available, when the project is used as library.
1901
"Access Variables and Variable Configurations are not saved in a library!"
Access variables and variable configuration are not stored in the library.
10-102 |
CoDeSys V2.3 |