{"id":18054099,"url":"https://github.com/mbuesch/pilc","last_synced_at":"2025-04-10T22:53:40.788Z","repository":{"id":153373904,"uuid":"398215649","full_name":"mbuesch/pilc","owner":"mbuesch","description":"PiLC - The Raspberry Pi PLC","archived":false,"fork":false,"pushed_at":"2024-09-06T21:41:53.000Z","size":308,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:53:34.304Z","etag":null,"topics":["plc","raspberry-pi","s7","s7-plc","sps"],"latest_commit_sha":null,"homepage":"https://bues.ch/a/pilc","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbuesch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-20T08:57:28.000Z","updated_at":"2024-09-06T21:41:56.000Z","dependencies_parsed_at":"2023-10-15T18:27:27.435Z","dependency_job_id":"8f3089f5-02a9-434f-9120-deb51bf19d1e","html_url":"https://github.com/mbuesch/pilc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuesch%2Fpilc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuesch%2Fpilc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuesch%2Fpilc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuesch%2Fpilc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbuesch","download_url":"https://codeload.github.com/mbuesch/pilc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312172,"owners_count":21082638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plc","raspberry-pi","s7","s7-plc","sps"],"created_at":"2024-10-31T00:09:16.967Z","updated_at":"2025-04-10T22:53:40.772Z","avatar_url":"https://github.com/mbuesch.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiLC - The Raspberry Pi PLC\n\n[PiLC](https://bues.ch/a/pilc) is a [Rapberry Pi OS](https://www.raspberrypi.com/) Operating System derivative that comes with [Awlsim](https://bues.ch/a/awlsim) preinstalled and ready-to-go.\n\nPiLC can be used to run a Raspberry Pi just like a \"real\" PLC.\n\n\n## Download PiLC SD card image\n\nDownload the latest ready to use PiLC SD card image for the Rasperry Pi from [the PiLC download page](https://bues.ch/a/pilc#download).\n\n\n## How to setup PiLC on the Raspberry Pi?\n\nJust copy the PiLC image file onto an SD card. The process of installing PiLC is exactly the same as installing the standard Raspbian distribution.\n\nPlease see the [install instructions](https://bues.ch/a/pilc#install) for more details.\n\nThere 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.\n\n\n## How to connect to the PiLC?\n\n1. 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.\n\n1. Check your router information page to see which IP address the Raspberry Pi obtained.\n\n1. Start the Awlsim GUI on your PC.\n\n1. Load the example project `raspberrypi-gpio.awlpro` that is shipped with Awlsim into the Awlsim GUI by clicking `File` and then `Open project...`\n\n1. Then connect to the PiLC by clicking `CPU` and then `Go online (Connect to a CPU)` in the menu bar.\n\n1. Enter the IP address of your Raspberry Pi here:\u003cbr /\u003e\n   \u003ca href=\"doc/pic/connection0.png\"\u003e\u003cimg src=\"doc/pic/connection0.png\" alt=\"awlsim-gui\" /\u003e\u003c/a\u003e\n\n1. Then click `Accept`.\n\n1. If Awlsim asks you to confirm the connection authentication, click `Yes`:\u003cbr /\u003e\n   \u003ca href=\"doc/pic/connection1.png\"\u003e\u003cimg src=\"doc/pic/connection1.png\" alt=\"awlsim-gui\" /\u003e\u003c/a\u003e\n\n1. Finally type in the Raspberry Pi login password. The default password is `raspberry`\u003cbr /\u003e\n   \u003ca href=\"doc/pic/connection2.png\"\u003e\u003cimg src=\"doc/pic/connection2.png\" alt=\"awlsim-gui\" /\u003e\u003c/a\u003e\n\n\n## Connection failure\n\nIf the connection fails with the following error message, it might be due to a failed SSH authentication:\u003cbr /\u003e\n\u003ca href=\"doc/pic/connection3.png\"\u003e\u003cimg src=\"doc/pic/connection3.png\" alt=\"awlsim-gui\" /\u003e\u003c/a\u003e\n\nThis will happen, if you re-install PiLC on the Raspberry Pi.\u003cbr /\u003e\nRe-installing PiLC generates new SSH keys and therefore causes subsequent authentications to fail.\n\nTo fix this delete the SSH authentication (`known_hosts` entry) on the PC (*not* on the Raspberry Pi).\nIf you are using OpenSSH/Linux on the PC, enter the following command into a command prompt:\n\n`ssh-keygen -R 192.168.0.10`\n\nReplace `192.168.0.10` with the IP address of your Raspberry Pi.\n\n\n## How do I get my PLC program onto PiLC?\n\nJust connect to PiLC (see previous chapter) and click the `download` button in the Awlsim GUI. This will transfer the program over to the PiLC.\u003cbr /\u003e\n\u003ca href=\"doc/pic/download.png\"\u003e\u003cimg src=\"doc/pic/download.png\" alt=\"awlsim-gui\" /\u003e\u003c/a\u003e\n\nIf the PiLC is not in RUN state, click the RUN button to start the program.\n\n\n## Where does Awlsim store its state on the Raspberry Pi?\n\nThe Awlsim working directory is `/etc/awlsim/`\u003cbr /\u003e\nThe loaded project and other configuration files are stored there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuesch%2Fpilc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbuesch%2Fpilc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuesch%2Fpilc/lists"}