WAGO-I/O-SYSTEM 750Incorporation of C-Functions as CoDeSys Library131758-874/000-110 WAGO-I/O-IPC-C6ManualVersion 2.3.012.1.3Copying a Library and INI File and Restarting the CoDeSysRuntime SystemTo link the library and the INI file to the CoDeSys runtime system, proceed asfollows:1.Copy both of the newly created files (libmytest.so and extlibs.ini) onto theI/O-IPC. Use a USB memory, a CF card, FTP or NFS to do this.2.Copy the file extlibs.ini into the directory/home/codesys.3.Copy the library into the directory/libor/usr/lib.There is also the possibility of copying the new library to any place in theI/O-IPC. To do this, adjust the environment variable LD_LIBRARY_PATHin the Linux console you are using before each restart of CoDeSys, e.g.:env LD_LIBRARY_PATH=/home/codesys ./plclinux_rt4.Before the CoDeSys runtime system can be restarted, you must enter thefollowing command in the Linux console:ps A5.Determine the PID of the program "plclinux_rt" from the displayed list.6.Stop the CoDeSys runtime system by entering the commandkill with the previously determined PID, e.g.,kill 2069.7.To restart the runtime system, enter the following command in the Linuxconsole:plclinux_rt &.If there is a discrepancy between the INI file and the library, an error message willbe displayed on the Linux console when the CoDeSys runtime system is restarted.CoDeSys runtime systemThe CoDeSys runtime system must be restarted by a user with superuser rights.Alter the libraryDo not alter the library while it is being used by the CoDeSys runtime systemsince, otherwise, access violations may occur.