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

How to use LD-programmning with PiFace

nusu
2014-04-06
2014-04-07
  • nusu - 2014-04-06

    Hi,
    Can I make programs in the IEC 1131 language LD when using PiFace as I/O-card?
    How to address the different input/output pin on the PiFace?

    Regards / Anders

     
  • eschwellinger

    eschwellinger - 2014-04-07

    Hi Anders,

    would propose to use attached example.
    Either you generate single bits (in my example xIn0,xIn1) in the mapping or you map a byte and access then later with bytename.0 to bytename.7 (byOut)
    the single bit's in the Byte.

    BR
    Edwin

    IMG: Mapping.jpg

    IMG: PIFace_LD.jpg

    PiFaceIoDrv_LD.project [151.49 KiB]

     

Log in to post a comment.