laitimes

How to turn a Raspberry Pi into a PLC

author:A sprouted potato
How to turn a Raspberry Pi into a PLC

The Raspberry Pi 5 uses a new quad-core ARM Cortex-A76 CPU, clocked at up to 2.4GHz, which is a significant increase from the 1.8GHz clock speed of its predecessor, the Raspberry Pi 4. In addition, the Raspberry Pi 5 also comes with the new Mali-G77 GPU, which provides a huge boost to graphics performance.

I bought a set of official basic kits, including power supply, MicroHDMI cable, TF card, and heat dissipation shell, and the configuration is very complete.

How to turn a Raspberry Pi into a PLC

How do you turn a Raspberry Pi into a PLC?

1. Install the Raspberry Pi system

You can download and install it on the official website of Raspberry Pi, and I will not repeat it here:

Raspberry Pi OS – Raspberry Pi

My version information is as follows:

How to turn a Raspberry Pi into a PLC

2. Install Linux Arm64 SL

First, open the Installer in CODESYS and install CODESYS Control for Linux ARM64 SL (you can search it directly or find the source in the previous documentation)

How to turn a Raspberry Pi into a PLC

3、安装CODESYS Rntime到树莓派

Flash CODESYS Runtime to Raspberry Pi: Open Tools - Update LInux ARM64 Options:

How to turn a Raspberry Pi into a PLC

In the following dialog box, log in to the user, scan the device, and then install:

How to turn a Raspberry Pi into a PLC

During the installation process, there will be relevant information output, you can pay attention to:

How to turn a Raspberry Pi into a PLC

4. Start Runtime

Once the installation is complete, start the Runtime:

How to turn a Raspberry Pi into a PLC

After starting, write a simple program that simulates the axis to follow the encoder, visualize it on the web page, log in and verify it, and it's completely OK

How to turn a Raspberry Pi into a PLC

If you want a Raspberry Pi with a shaft for motion control, remember to patch it in real time!

Read on