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

CODESYS on Raspberry Pi

smsr
2022-09-19
2022-09-22
  • smsr - 2022-09-19

    Hello,

    I am currently working on Raspberry Pi using CODESYS to get data from Beckhoff I/Os. I created a visualization using webvisu to visulaize and to contol using a display but now i need to view and control the I/Os in another way through Raspberry Pi, i.e. maybe using c++ or python on Raspberry pi where the data is visualized and can be saved for data logging purposes. Does anyone know how i achieve this?

    Thank you

     
  • draygoon - 2022-09-20
     
    πŸ‘
    1
    • smsr - 2022-09-21

      Hello!
      Thank you very much! This is what i need but i wanted to know if there's is any possible way to achieve the same using Raspberry PI, i meant without buying RevPi.

      Thank you again

       
  • yannickasselin - 2022-09-22

    You have everything you need in Codesys. Not sure I understand your question. Are you trying to not use Codesys? If so, it might not be the right place to ask how to get rid of Codesys. lol

     
    • smsr - 2022-09-22

      Yes Codesys works fine. I programmed the RPI using codesys and created a visualization and disconnected PC and check the values/ control through display connected to RPI. But now theres another requirement i.e. another board is connected to RPI, whose values are also needed to be read. Instead of checking the values of Codesys in browser and the values from board in another window, i want a method such that both the values are show in the same window. The values of the board can be read through Python/c++ GUI, so it would be easy if there was a way such that the value of Codesys can be retrieved by Python/C. So that both the values can be seen in same GUI/Window.

       
      • yannickasselin - 2022-09-22

        One easy solution would be to expose the Codesys values in modbus (modbus slave) and use pymodbus to read them from your Python application (modbus master).

        If you want to do it the other way around, showing the python app values in the Codesys Visu, you could use the Linux SL Extension that comes with the raspberry pi runtime.

         
        πŸ‘
        1
        • smsr - 2022-09-22

          Thank you for the idea. I will try it out.

           

Log in to post a comment.