CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Oct 20, 2019 2:38 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jan 25, 2018 6:25 pm 

Joined: Fri Jan 20, 2017 2:40 pm
Posts: 4

I have several RPi running Codesys and I would like to know if I could update my PLC software (running with codesyscontrol service) without the Codesys Development System on my working station.
The idea is to run a shell script on the RPi that stop codesyscontrol, then it could copy some files to change the PLC software (or something else) and then restart codesyscontrol service.

Is it possible?

Best regards,


PostPosted: Thu Jan 25, 2018 7:20 pm 
User avatar

Joined: Fri Feb 10, 2017 6:12 am
Posts: 59
Yes, it is possible. You need something like this:


CURRDIR=`dirname $0`

systemctl stop codesyscontrol

while kill -0 `pidof codesyscontrol` 2> /dev/null; do sleep 1; done

for dir in /var/opt/codesys//PlcLogic/*; do
    [ -z "${dir##*trend*}" ] && continue
    rm -rf "$dir"

if [ -f $CURRDIR/ ]; then unzip $CURRDIR/ -qo -d /var/opt/codesys; fi


systemctl start codesyscontrol created manually using Codesys (save boot application).

PostPosted: Fri Jan 26, 2018 2:00 pm 
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3495
why not just use the official way to do this?

sudo dpkg -i

will update the plc runtime Version and bootprojekt runs imidiately in the new version... if already on the system running before the update
To update your application means-> update the content of /var/opt/codesys/PlcLogic/ (which are the application files)


Last edited by Edwin Schwellinger on Fri Feb 16, 2018 6:24 pm, edited 1 time in total.

PostPosted: Fri Feb 16, 2018 6:10 pm 

Joined: Fri Jan 20, 2017 2:40 pm
Posts: 4

Sorry for the delay and but thank you for your answer.
I will try it soon when I have the opportunity.


PostPosted: Sun Apr 15, 2018 4:06 pm 

Joined: Mon Sep 18, 2017 5:19 pm
Posts: 3
Hi Viacheslav

Nice Script, but how do you save the boot project as a file.
I can only save the file as a file which I can not open as a zip-file ???
I am doing as discribed in the online help.

Best regards.


You do not have the required permissions to view the files attached to this post.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited