Giter Club home page Giter Club logo

pilc's Introduction

PiLC - The Raspberry Pi PLC

PiLC is a Rapberry Pi OS Operating System derivative that comes with Awlsim preinstalled and ready-to-go.

PiLC can be used to run a Raspberry Pi just like a "real" PLC.

Download PiLC SD card image

Download the latest ready to use PiLC SD card image for the Rasperry Pi from the PiLC download page.

How to setup PiLC on the Raspberry Pi?

Just copy the PiLC image file onto an SD card. The process of installing PiLC is exactly the same as installing the standard Raspbian distribution.

Please see the install instructions for more details.

There is no need to set up anything else. The PiLC image is pre-configured so that the Awlsim core will automatically start during bootup. The Awlsim core on the PiLC listens to SSH connections on the Ethernet port.

How to connect to the PiLC?

  1. Connect the Raspberry Pi's Ethernet port to your network and power up the Raspberry Pi. It will automatically fetch an IP address from your router.

  2. Check your router information page to see which IP address the Raspberry Pi obtained.

  3. Start the Awlsim GUI on your PC.

  4. Load the example project raspberrypi-gpio.awlpro that is shipped with Awlsim into the Awlsim GUI by clicking File and then Open project...

  5. Then connect to the PiLC by clicking CPU and then Go online (Connect to a CPU) in the menu bar.

  6. Enter the IP address of your Raspberry Pi here:
    awlsim-gui

  7. Then click Accept.

  8. If Awlsim asks you to confirm the connection authentication, click Yes:
    awlsim-gui

  9. Finally type in the Raspberry Pi login password. The default password is raspberry
    awlsim-gui

Connection failure

If the connection fails with the following error message, it might be due to a failed SSH authentication:
awlsim-gui

This will happen, if you re-install PiLC on the Raspberry Pi.
Re-installing PiLC generates new SSH keys and therefore causes subsequent authentications to fail.

To fix this delete the SSH authentication (known_hosts entry) on the PC (not on the Raspberry Pi). If you are using OpenSSH/Linux on the PC, enter the following command into a command prompt:

ssh-keygen -R 192.168.0.10

Replace 192.168.0.10 with the IP address of your Raspberry Pi.

How do I get my PLC program onto PiLC?

Just connect to PiLC (see previous chapter) and click the download button in the Awlsim GUI. This will transfer the program over to the PiLC.
awlsim-gui

If the PiLC is not in RUN state, click the RUN button to start the program.

Where does Awlsim store its state on the Raspberry Pi?

The Awlsim working directory is /etc/awlsim/
The loaded project and other configuration files are stored there.

pilc's People

Contributors

mbuesch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.