Object ‘C Code File’¶
Symbol:
This object contains the C-code for the C-integration in its editor.
The C-code files can be created in the following ways:
- You add an object C Code Module to the application and, in the dialog box Add C Code module, you specify a source directory containing C-code files; you import this directory into CODESYS.
- You add an object C Code File to a C Code Module and in doing so you specify a C-file in the dialog box Add C Code File that you import into CODESYS.
- You add an object C Code File to a C Code Module and in doing so you specify the name for a new C-file in the dialog box Add C Code file. As opposed to the two other methods you create an empty file by doing this.
Possible file formats of a C-code file:
- *.c
- *.ccp
- *.h
- *.hpp
You can make simple changes to the C-code in the text editor.
Objects for C-stubs: ‘iec_external.c’ and ‘iec_external.h’
If you create C-stubs with the command Create stub implementation in C, these are stored in the objects iec_external.c and iec_external.h of the Extensions folder. The object iec_external.c contains the C-stubs, iec_external.h contains the associated declarations.
Attention
The object iec_external_c contains a marked range for header includes (range between /\*\* INCLUDE SECTION BEGIN \*\*/
and /\*\* INCLUDE SECTION END \*\*/
). You may not change this range!
See also