Activity for Relay Pi-Plate

  • lwalbert lwalbert posted a comment on discussion General Discussion

    Hi, I was working on libraries for Pi-Plates in codesys back in 2019 too :) I was struggling with the same issue as you regarding GPIO25. Looks like you cannot access the GPIO25 outside a task eg. changing state within the library for each read/write cycles in a for loop. But I found a workaround: Connecting a optocoupler controlled by CS1 (chip select) to toggle GPIO25 towards Pi-Plate wire. and adjusting SPI communication speed/frequency and delay, I got it working. I decided to update and publish...

  • BG_Automation BG_Automation committed [r4]

    ADDED MAIN SCREEN TO TEST RELAYS

  • BG_Automation BG_Automation committed [r3]

    Start of SPI Driver for Pi-Relay PlateModified description file

  • BG_Automation BG_Automation committed [r2]

    Renamed pi-plate xml to pi-plate.devdesc.xml per suggestion from aliazzz, ticket number 2

  • BG_Automation BG_Automation modified ticket #3

    piplate.xml

  • BG_Automation BG_Automation posted a comment on ticket #3

    Ok, can do, thanks for the advise!

  • aliazzz aliazzz created ticket #3

    piplate.xml

  • BG_Automation BG_Automation modified ticket #2

    Create Sudo Code Convert Python to SPI

  • BG_Automation BG_Automation created ticket #2

    Create Sudo Code Convert Python to SPI

  • BG_Automation BG_Automation posted a comment on discussion General Discussion

    I need to link a GPIO to a function block. I think I just need to point the address to the GPIO when the function block is initialized. Then control the output when needed. Output 25 turns on just before the SPI transmits to the relay board then turns off afterward. I don't know what is used for, but I am going to follow what the creator of the relay board did. Any suggestions?

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation renamed a wiki page

    Convert to Python to Codesys

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation renamed a wiki page

    Relay Plate Python Code

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation created a wiki page

    Pi-Plate Information

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation modified a wiki page

    Convertion to Python to Codesys

  • BG_Automation BG_Automation modified a wiki page

    Convertion to Python to Codesys

  • BG_Automation BG_Automation modified a wiki page

    Convertion to Python to Codesys

  • BG_Automation BG_Automation modified a wiki page

    Convertion to Python to Codesys

  • BG_Automation BG_Automation renamed a wiki page

    Convertion to Python to Codesys

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation committed [r1]

    Start of SPI Driver for Pi-Relay Plate

  • aliazzz aliazzz modified a comment on a wiki page

    Nice posting Seems to me not too difficult to rewrite it into Structured Text. Little advice; 1) Just write an FB (class!) which extends the SPI baseclass and try to translate this python source into it. This will be your CODESYS basic Function Block driver. 2) Study other SPI drivers for extra help. Lots of resources on it here. 3) Use CfUnit for debugging and write unit tests for your FB driver in your library ;-) It will help you develop the driver quicker and more painless and it will also serve...

  • aliazzz aliazzz modified a comment on a wiki page

    Nice posting Seems to me not too difficult to rewrite it into Structured Text. Little advice; 1) Just write an FB (class!) which extends the SPI baseclass and try to translate this python source into it. This will be your CODESYS basic Function Block driver. 2) Study other SPI drivers for extra help. Lots of resources on it here. 3) Use CfUnit for debugging and write unit tests for your FB driver in your library ;-) It will help you develop the more driver quicker and will also serve as useful information...

  • aliazzz aliazzz modified a comment on a wiki page

    Nice posting Seems to me not too difficult to rewrite it into Structured Text. Little advice; 1) Just write an FB (class!) which extends the SPI baseclass and try to translate this python source into it. This will be your Function Block driver. 2) Study other SPI drivers for extra help. 3) Use CfUnit for debugging and write unit tests for your FB driver in your library ;-) It will help you develop the more driver quicker and will also serve as useful information for other developers. If you first...

  • aliazzz aliazzz posted a comment on a wiki page

    Nice posting Seems to me not too difficult to rewrite it into Structured Text. Little advice; 1) Just write an FB (class!) which extends the SPI baseclass and try to translate this python class into it. This will be your Function Block based driver. 2) Study other SPI drivers for extra help. 3) Use CfUnit for debugging and write unit tests for your FB driver in your library ;-) It will help you develop the more driver quicker and will also serve as useful information for other developers. If you...

  • BG_Automation BG_Automation modified a wiki page

    Home

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation renamed a wiki page

    Pi-Plate Python Code To SPI

  • BG_Automation BG_Automation modified a wiki page

    Home

  • BG_Automation BG_Automation modified a wiki page

    Pi-Plate Code to Convert To SPI

  • BG_Automation BG_Automation renamed a wiki page

    Pi-Plate Code to Convert To SPI

  • BG_Automation BG_Automation renamed a wiki page

    Sudo Code For Relay On

  • BG_Automation BG_Automation modified a wiki page

    Home

  • BG_Automation BG_Automation modified a wiki page

    Home

  • BG_Automation BG_Automation modified a wiki page

    Home

1