Copying A Library And Ini File And Restarting The Codesys Runtime System - WAGO -I/O-IPC-C6 Manual

Wago-i/o-system 750
Hide thumbs Also See for WAGO-I/O-IPC-C6:
Table of Contents

Advertisement

WAGO-I/O-SYSTEM 750
758-874/000-110 WAGO-I/O-IPC-C6
12.1.3
Copying a Library and INI File and Restarting the CoDeSys
Runtime System
To link the library and the INI file to the CoDeSys runtime system, proceed as
follows:
1.
Copy both of the newly created files (libmytest.so and extlibs.ini) onto the
I/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 /lib or /usr/lib.
There is also the possibility of copying the new library to any place in the
I/O-IPC. To do this, adjust the environment variable LD_LIBRARY_PATH
in the Linux console you are using before each restart of CoDeSys, e.g.:
env LD_LIBRARY_PATH=/home/codesys ./plclinux_rt
4.
Before the CoDeSys runtime system can be restarted, you must enter the
following command in the Linux console:
ps A
5.
Determine the PID of the program "plclinux_rt" from the displayed list.
6.
Stop the CoDeSys runtime system by entering the command
kill <PID>
kill 2069
7.
To restart the runtime system, enter the following command in the Linux
console:
plclinux_rt &
If there is a discrepancy between the INI file and the library, an error message will
be displayed on the Linux console when the CoDeSys runtime system is restarted.
CoDeSys runtime system
The CoDeSys runtime system must be restarted by a user with superuser rights.
Alter the library
Do not alter the library while it is being used by the CoDeSys runtime system
since, otherwise, access violations may occur.
Manual
Version 2.3.0
Incorporation of C-Functions as CoDeSys Library
with the previously determined PID, e.g.,
.
.
131

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents