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 Tue Aug 20, 2019 7:16 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: QR-code generation
PostPosted: Fri May 17, 2019 5:25 pm 
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 181
There is a simple example how to generate a QR-code and show it in web-visu: Example_QrCode_RPI.projectarchive

Image Image


1. You need to install qrencode:

sudo apt-get install qrencode

2. You need to install OwenStringUtils library. It included in projectarchive or you can install it separately: download
It's nice lib with additional string functions like ASCII/Unicode conversion, formatting and parsing.

3. In example used SysProcess library.
So you need to add in /etc/CODESYSControl_User.cfg next lines:


Keep in mind that you need to have write access rights:

sudo chmod 0666 /etc/CODESYSControl_User.cfg

4. You need to set write access rights for /visu directory:

sudo chmod 0666 /var/opt/codesys/PlcLogic/visu

5. You can see qr-code in web-visu, but not in service-visu (CODESYS IDE-visu).

Make CODESYS great again

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

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 8 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