<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to QR-code generation</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/</id><updated>2020-02-27T17:22:23.878000Z</updated><subtitle>Recent posts to QR-code generation</subtitle><entry><title>QR-code generation</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/?limit=25#9cbe" rel="alternate"/><published>2020-02-27T17:22:23.878000Z</published><updated>2020-02-27T17:22:23.878000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.come13d183c43c3982de3ef902f0b8e1a64c6677125</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not sure that it's possible with SoMachine...&lt;br/&gt;
I think you should to connect with Schneider support&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>QR-code generation</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/?limit=25#e57c" rel="alternate"/><published>2020-02-27T17:22:22.895000Z</published><updated>2020-02-27T17:22:22.895000Z</updated><author><name>Majabuc</name><uri>https://forge.codesys.com/u/majabuc/</uri></author><id>https://forge.codesys.comc28f5fd287e2181344008094ccb2ba512020b022</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I tried to install it on SoMachine 4.3 from Scheider, but it returned several errrors.&lt;br/&gt;
I'm looking for an example that generates qr code to print from a Modicon PLC programmed with CoDeSys.&lt;/p&gt;
&lt;p&gt;Could you help me please?&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Mariano&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>QR-code generation</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/aefc6b0892/?limit=25#8939" rel="alternate"/><published>2020-02-27T17:22:20.119000Z</published><updated>2020-02-27T17:22:20.119000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.comc24e68a3a636f904e7a76502026275c408518213</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is a simple example how to generate a QR-code and show it in web-visu: &lt;a class="" href="https://ftp.owen.ru/CoDeSys3/99_ForumFiles/Example_QrCode_RPI.projectarchive" rel="nofollow"&gt;Example_QrCode_RPI.projectarchive&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://imggmi.com/full/2019/5/17/d6df58c40cb7b7af48b0318d2cc37e29-full.png.html" rel="nofollow"&gt;&lt;/a&gt; &lt;a class="" href="https://imggmi.com/full/2019/5/17/5c59f967217895661baf38720c5137bb-full.png.html" rel="nofollow"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requirements:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1&lt;/strong&gt;. You need to install &lt;strong&gt;qrencode&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sudo apt-get install qrencode&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2&lt;/strong&gt;. You need to install &lt;strong&gt;OwenStringUtils&lt;/strong&gt; library. It included in projectarchive or you can install it separately: &lt;a class="" href="https://ftp.owen.ru/CoDeSys3/04_Library/05_3.5.11.5/02_Libraries/OwenStringUtils_v3.5.4.7.compiled-library" rel="nofollow"&gt;download&lt;/a&gt;&lt;br/&gt;
It's nice lib with additional string functions like ASCII/Unicode conversion, formatting and parsing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; In example used &lt;strong&gt;SysProcess&lt;/strong&gt; library.&lt;br/&gt;
So you need to add in &lt;strong&gt;/etc/CODESYSControl_User.cfg&lt;/strong&gt; next lines:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysProcess]&lt;/span&gt;&lt;br/&gt;
Command=AllowAll&lt;/p&gt;
&lt;p&gt;Keep in mind that you need to have write access rights:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sudo chmod 0666 /etc/CODESYSControl_User.cfg&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4&lt;/strong&gt;. You need to set write access rights for &lt;strong&gt;/visu&lt;/strong&gt; directory:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sudo chmod 0666 /var/opt/codesys/PlcLogic/visu&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5&lt;/strong&gt;. You can see qr-code in web-visu, but not in service-visu (CODESYS IDE-visu).&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://cdn1.imggmi.com/uploads/2019/5/17/d6df58c40cb7b7af48b0318d2cc37e29-prev.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://cdn1.imggmi.com/uploads/2019/5/17/5c59f967217895661baf38720c5137bb-prev.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>