Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

QR-code generation

Runtime
e.kislov
2019-05-17
2019-08-26
  • e.kislov

    e.kislov - 2019-05-17

    There is a simple example how to generate a QR-code and show it in web-visu: Example_QrCode_RPI.projectarchive

    Requirements:

    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:

    [SysProcess]
    Command=AllowAll

    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).

    IMG: Bild

    IMG: Bild

     
  • Majabuc

    Majabuc - 2019-08-26

    Hello, I tried to install it on SoMachine 4.3 from Scheider, but it returned several errrors.
    I'm looking for an example that generates qr code to print from a Modicon PLC programmed with CoDeSys.

    Could you help me please?

    Thank you very much!

    Mariano

     
  • e.kislov

    e.kislov - 2019-08-26

    Not sure that it's possible with SoMachine...
    I think you should to connect with Schneider support

     

Log in to post a comment.