170 Incorporation of C-Functions as CoDeSys Library WAGO-I/O-SYSTEM 750
758-874/000-131 WAGO-I/O-IPC-C6
Manual
Version 1.0.0
4. Then define the input parameter with value : WORD; and add a semicolon
in the program part of the function (lower window). Otherwise, a CoDeSys
error will occur.
Figure 97: "MyTestFunction" window
5. Select File > Save as… in the menu bar. Enter "mytest.lib" as the file name,
select the file type "External library" and click on [Save].
Figure 98: "Save File as" window
If the library contains several functions, allow these functions to be linked as well.
In doing so, functions with several transfer parameters are also possible.