PiFace I/O always high...

yann2021
2021-04-09
2021-04-09
  • yann2021 - 2021-04-09

    Hello,

    I use a Raspberry with a PiFace I/O module. I downloaded a Codesys example on the web and is working fine, I can see the inputs and outputs changing TRUE/FALSE, fine. So I try to create a project from scratch (File > New > Standard project) under SPI I added a new device for the PiFace interface and write a simple program (see attached file).
    The problem is when I run the program all the inputs and outputs are going to TRUE and this is not correct... Is not a hardware problem because with the first project all is working fine.
    Where is my mistake? Do I forget something...?

    In advance many thanks for your help.

     
  • eschwellinger

    eschwellinger - 2021-04-09

    Check the SPI maxspeed...need to bei reduced

     
    • yann2021 - 2021-04-09

      Ok, and where is that?

       
      • Ingo

        Ingo - 2021-04-09
         
        πŸ‘
        1
        • yann2021 - 2021-04-09

          Many thx for the link, I changed this "SPI speed setting" from 0 to 100000 and is now working.

           
        • yann2021 - 2021-04-09
           

          Last edit: yann2021 2021-04-09

Log in to post a comment.