RPIPLC Input/Output example

Raspberry Pi PLC an simple I/O example

rpiplc.io.example.png

Video: rpiplc.io.example.mp4

Guide

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.

ldr.hlp.io.example.png

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

IMPORTANT!
Works only under Linux using SSH. Set up SSH.

ldr.hlp.download.png

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.

ldr.hlp.dlg.setup.ssh.png

  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.

ldr.hlp.dlg.download4.png

Download succeeded.

ldr.hlp.dlg.download5.png

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.

ldr.hlp.mnu.plc.run.png

RPiPLC is started.

ldr.hlp.run.oke.png

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.

ldr.hlp.plc.state1.png

Now the PLC state window will appear.

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

ldr.hlp.plc.state5.png

State of the inputs.

ldr.hlp.plc.state2.png

State of the outputs.

ldr.hlp.plc.state3.png

State of the analog inputs.

ldr.hlp.plc.state4.png

 

Add new comment