RPIPLC Input/Output example

Raspberry Pi PLC an simple I/O example


Video: rpiplc.io.example.mp4


This guide will show you how to create and run the input / output example on the Raspberry Pi board.    

  1. Create the Ladder Diagram.
  2. Save & Build .
  3. Download the Ladder Diagram.
  4. Run RPIPLC.
  5. Check PLC state.

The Ladder Diagram

Simple input/output ladder diagram example.


Picture above represents a example of a ladder diagram with inputs and outputs implemented.

In the first network (0) output 0.0 is set to true if the value of input 0.3 is true.
For the next network (1) output 0.1 is set to true if the value of input 0.3 is true.
For network 2 output 0.3 is set to true if the value if the value of input 0.3 is true, etc.

Download the ladder diagram example: ioexample.xdg.tar.gz.

Save, Build and Download the Ladder Diagram

Save and Build the Ladder Diagram.

Download Ladder Diagram to the RPi board

Works only under Linux using SSH. Set up SSH.


You'll be asked to sign in only the first time you connect to the raspberry pi board.
This menu entry brings up a dialog box, which allows the user to set username, pasword en ip-address for the local machine en the embedded linux machine.


  1. Local User Name: Not used this time.
  2. Local Password: Not used this time.
  3. Local IP-address: Not used this time.
  4. RPi User Name: Root login of Raspberry Pi board.
  5. RPi Password: Password of Raspberry Pi board.
  6. RPi IP-address: IP address of Raspberry Pi board.

SSH connection succeeded.


Download succeeded.


Run/stop the RPIPLC software on the Raspberry Pi board

Works only under Linux using SSH. Set up SSH.

On the toolbar click the Start button, or Click on Start in the PLC menu.


RPiPLC is started.


Check the PLC State

RPiPLC is now running on the Raspberry Pi board.

Only works if SSH is installed. Set up SSH.

Click on State in the PLC menu.


Now the PLC state window will appear.

The Rasberry Pi is connected to 2 PCA9555 port expanders and 1 GNUBLIN ADC-Module.


State of the inputs.


State of the outputs.


State of the analog inputs.



Add new comment