Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Panel | ||||
---|---|---|---|---|
| ||||
How can I get "CODESYS control" running on a sensorEDGE FIELD (NFS-M8-QM-D2-N16/NFLD) device? |
Panel | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
General informationThe CODESYS© SoftPLC runs on different kinds of devices and is compatible with different processor architectures. On the official CODESYS store, the company CODESYS offers users links to precompiled runtimes and executables for different processor architectures that are ready-to-download and -use. Not only runtimes but extension packages are provided in the shop as well. With the correct links, they can also be downloaded electronically from an FTP server. To get CODESYS running on your device, you can build a container yourself and run it or deploy a pre-built container from a repository. To build a container yourself you need to include the following packages from the CODESYS FTP server:
Building a container yourselfIf you are familiar with building containers, you can easily build a container yourself in minutes on a device using a Dockerfile. An example of a Dockerfile to build a container for ARM64 architecture based systems is shown below. The environment variables CDS_VERSION and EDGE_VERSION define the package versions loaded from the FTP server.
On the device, create a file named "Dockerfile" with an editor such as "vi" first, using the following line:
In the editor press the key "i" first to activate the "insert mode". Then copy and paste the Dockerfile lines above into the editor's empty text field. Initiate to save the file with the key [ESC] plus the key ":" and then use the keys "wq" + [ENTER] afterward for the write + quit command. Alternatively, just download the example file from here: Dockerfile and copy it to a folder on your device. In the folder of the Dockerfile, use the docker build command to build the container:
Deploying the containerAfter the container has been built you can immediately deploy the container with
It is important to run the container in the modes 'host' and 'privileged', since it needs access to host device specific system variables. Containers on public repositoryPrebuilt (as described above) container images are made public on the Docker Hub container repository https://hub.docker.com/repository/docker/hilschernetiotedge/codesys_control_sl_linux ready for deployment. Programming CODESYS controlOnce the container is deployed, the CODESYS runtime can be programmed with the CODESYS development system V3 (for Windows). The progamming port 1217 (Edge gateway) is exposed. Licensing informationWithout a license the CODESYS runtime in the container runs for 2 hours only and then stops. It gives you enough time to test the runtime intensively. Else restart the container and continue testing. IMPORTANT NOTE! During the licensing procedure the license will be stored within the context of the container. If you stop and delete the container then your license is lost forever. So make sure you saved the license file through the CODESYS development system before or use the docker commit command to create a 1:1 container image backup copy of your currently running container inclusive the license. |
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|