User Documentation

Table Of Contents
Appendix: Tutorial - call C function from IEC
System manual
2696790000/02/04.2020
127
rv1: DINT;
res1 : REAL;
res2 : STRING [106];
END_VAR
In the code area the IEC function MyCFunction is called as follows:
rv1 := MyCFunction( in_dword := 17, in_string := 'Hello c-Function',
in_real := 25.58, out_real => res1, out_string => res2);
The variables res1 and res2 contain the variables calculated in the C func-
tion which can be used later in the application.
Then the project can be loaded to the control (see online help u-create stu-
dio) and finally it can be executed.