Inti Sakura Solutions
BerandaホームHome Tentang会社概要About LayananサービスServices Kontakお問い合わせContact BlogブログBlog
| |

Membuat PLC dengan ESP32 dan OpenPLC untuk Operasi Ladder Diagram ESP32 と OpenPLC を使用した PLC の作成とラダーダイアグラムの動作検証 Building a PLC with ESP32 and OpenPLC for Ladder Diagram Operation

12 Maret 2026 · Otomasi 2026年3月12日 · オートメーション March 12, 2026 · Automation

Di dalam bidang industri, PLC (Programmable Logic Controller) umum digunakan untuk otomasi pabrik. Beberapa brand PLC mudah ditemukan, seperti Omron dan Schneider, dan dapat diprogram sesuai kebutuhan otomasi menggunakan LD (Ladder Diagram) yang mudah dimengerti karena tampilannya. Namun, harga PLC yang relatif tinggi sering menjadi kendala untuk konfirmasi kinerja LD di dunia nyata (PLC editor biasanya memiliki fungsi simulasi untuk konfirmasi secara virtual). 産業分野では、工場の自動化のために PLC(Programmable Logic Controller)が広く使用されています。PLC の代表的なブランドとしては、Omron や Schneider などがあり、LD(ラダーダイアグラム)を用いて自動化の要件に合わせたプログラミングが可能です。ラダーダイアグラムは表示が分かりやすく、直感的に理解しやすいという特徴があります。しかしながら、PLC は比較的高価であるため、ラダーダイアグラムの動作を実環境で確認する際の障壁になることがあります(多くの PLC エディタには仮想環境で確認できるシミュレーション機能が搭載されています)。 In industry, PLCs (Programmable Logic Controllers) are commonly used for factory automation. Several PLC brands are easy to find, such as Omron and Schneider, and can be programmed for automation needs using LD (Ladder Diagram), which is easy to understand because of how it's displayed. However, the relatively high price of PLCs is often a barrier to confirming LD performance in the real world (PLC editors usually have a simulation function for virtual confirmation).

Pada kesempatan ini, ISS mencoba menggunakan ESP32 untuk konfirmasi operasi LD di dunia nyata dengan harga yang lebih terjangkau. Program LD dapat dimasukkan ke ESP32 menggunakan OpenPLC Editor yang berbasis open source. 今回、ISS では ESP32 を利用し、より低コストでラダーダイアグラムの実環境での動作確認を行う方法を試しました。オープンソースベースの OpenPLC Editor を使用することで、作成した LD プログラムを ESP32 に書き込むことができます。 For this project, ISS tried using an ESP32 to confirm LD operation in the real world at a more affordable price. The LD program can be loaded onto the ESP32 using the open-source OpenPLC Editor.

Aplikasi sederhana yang dibuat menggunakan dua conveyor belt. Setiap belt dilengkapi sensor objek yang akan mendeteksi objek dan menjalankan belt saat objek terdeteksi. Belt pertama disambungkan dengan belt kedua, sehingga belt kedua bergerak saat objek sampai di sana. Kedua belt dapat dihentikan dengan tombol stop (untuk menyederhanakan contoh ini, belt tidak berhenti selain dengan tombol stop). 今回作成したシンプルなアプリケーションは、2 本のコンベアベルトを使用するシステムです。各コンベアベルトには物体検出センサーが設置されており、物体を検知するとベルトが動作します。1 本目のコンベアベルトは 2 本目のコンベアベルトに接続されており、物体が 2 本目のコンベアベルトに到達すると、2 本目のベルトが作動します。また、コンベアベルトはストップボタンによって停止することができます(今回の例を簡略化するため、コンベアベルトはストップボタン以外では停止しない仕様としています)。 The simple application built uses two conveyor belts. Each belt has an object sensor that detects an object and runs the belt once detected. The first belt is connected to the second, so the second belt moves once the object reaches it. Both belts can be stopped with a stop button (to keep this example simple, the belts don't stop except via the stop button).

Conveyor belt system wiring scheme with two object detection sensors
Skema sistem dua conveyor belt2本コンベアベルトシステムの構成図Two conveyor belt system scheme

Program LD yang dibuat untuk aplikasi di atas adalah sebagai berikut: 上記アプリケーションのために作成した LD プログラムは以下の通りです。 The LD program built for the application above is as follows:

Ladder diagram program with PB1, PB2, STOP, BELT1, BELT2 rungs

Program LD dapat dimasukkan ke dalam ESP32, sehingga uji coba operasi adalah sebagai berikut: LD プログラムを ESP32 に書き込むことで、次のような動作確認ができます。 The LD program can be loaded onto the ESP32, so the operation test proceeds as follows:

Ladder diagram step 1, first sensor active
Ketika sensor objek pertama aktif (true), conveyor belt pertama akan aktif. a. 最初の物体センサーがアクティブ(true)になると、1 本目のコンベアベルトが作動します。 When the first object sensor is active (true), the first conveyor belt activates.
Ladder diagram step 2, first sensor inactive but belt still running
Ketika sensor objek pertama berubah tidak aktif (false), conveyor belt pertama tetap aktif untuk memindahkan barang ke tempat berikutnya. b. 最初の物体センサーが非アクティブ(false)に変わっても、1 本目のコンベアベルトは次の場所へ物体を搬送するために動作を継続します。 When the first object sensor turns inactive (false), the first belt stays active to move the item to the next spot.
Ladder diagram step 3, second sensor active
Ketika sensor objek kedua aktif (true), conveyor belt kedua akan aktif. c. 2 番目の物体センサーがアクティブ(true)になると、2 本目のコンベアベルトが作動します。 When the second object sensor is active (true), the second conveyor belt activates.
Ladder diagram step 4, second sensor inactive but belt still running
Ketika sensor objek kedua berubah tidak aktif (false), conveyor belt kedua tetap aktif untuk memindahkan barang ke tempat berikutnya. d. 2 番目の物体センサーが非アクティブ(false)に変わっても、2 本目のコンベアベルトは次の場所へ物体を搬送するために動作を継続します。 When the second object sensor turns inactive (false), the second belt stays active to move the item to the next spot.
Ladder diagram step 5, stop button pressed, both belts off
Kedua conveyor belt dapat dihentikan dengan menekan tombol stop. e. ストップボタンを押すことで、2 本のコンベアベルトを停止することができます。 Both conveyor belts can be stopped by pressing the stop button.

Di ISS, kami dapat memberikan solusi otomasi untuk manufaktur Anda dengan menggunakan PLC — untuk beragam skala bisnis dari UMKM hingga pabrik skala besar. ISS では、PLC を活用した製造業向けの自動化ソリューションを提供しています。中小企業から大規模工場まで、さまざまなビジネス規模に対応可能です。 At ISS, we provide automation solutions for your manufacturing using PLCs — for businesses ranging from SMEs to large-scale factories.

← Kembali ke Blog ← ブログ一覧へ ← Back to Blog

Inti Sakura Solutions — Bandung, Indonesia Indonesia · Inggris · Jepangインドネシア語・英語・日本語Indonesian · English · Japanese