Execute a .py file with Codesys

yann2021
2025-08-26
2025-09-03
  • yann2021 - 2025-08-26

    Hello,

    I have a Raspberry Pi 3 which has a printer connected to his USB port.
    I have a PiFace Board on the Raspberry.
    I have a python script file (.py) to print a logo + a text.
    The script is working because when I execute it from the Raspberry terminal it works.
    Now, when I push a button on the PiFace I would like to execute the python script file to print.

    How can I do that ?

    Many thanks for your help and advices!

     

    Last edit: yann2021 2025-08-26

Log in to post a comment.