Skip to content

OpenPLC是一个开源的可编程逻辑控制器,它可以用于自动化控制和监控楼宇中的各种设备,如照明、暖通空调、电梯等。它支持多种通讯协议,包括Modbus、BACnet、CAN等,可以轻松地与各种设备进行通信。该项目基于C/C++和Python编写

Notifications You must be signed in to change notification settings

rxyong0915/OpenPLC_v3

 
 

Repository files navigation

OpenPLC Runtime version 3

Build Status Build status

OpenPLC is an open-source Programmable Logic Controller that is based on easy to use software. Our focus is to provide a low cost industrial solution for automation and research. OpenPLC has been used in many research papers as a framework for industrial cyber security research, given that it is the only controller to provide the entire source code. The OpenPLC Project consists of two sub-projects:

  1. Runtime
  2. Programming editor

Installation:

git clone https://github.com/thiagoralves/OpenPLC_v3.git
cd OpenPLC_v3
./install.sh [platform]

Where [platform] can be:

win - Install OpenPLC on Windows over Cygwin

linux - Install OpenPLC on a Debian-based Linux distribution

docker - Used by the Dockerfile (i.e. doesn't invoke sudo)

rpi - Install OpenPLC on a Raspberry Pi

custom - Skip all specific package installation and tries to install OpenPLC assuming your system already has all dependencies met. This option can be useful if you're trying to install OpenPLC on an unsuported Linux platform or had manually installed all the dependency packages before.

Building, Installing and Running inside Docker

When using Ubuntu: make sure docker for Ubuntu is installed

When using Linux Mint 21: make sure docker for Linux Mint 21 is installed

Build

# instead of running install.sh as stated above, run:
docker build -t openplc:v3 .

RUN

Devices can be passed to the docker daemon using the -v flag (e.g. -v /dev/ttyACM0:/dev/ttyACM0)

docker run -it --rm --privileged -p 8080:8080 openplc:v3

EtherCAT capability

To build with EtherCAT capability try ./install.sh linux ethercat for more information see utils/ethercat_src

About

OpenPLC是一个开源的可编程逻辑控制器,它可以用于自动化控制和监控楼宇中的各种设备,如照明、暖通空调、电梯等。它支持多种通讯协议,包括Modbus、BACnet、CAN等,可以轻松地与各种设备进行通信。该项目基于C/C++和Python编写

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 76.1%
  • C 4.3%
  • JavaScript 3.2%
  • Shell 3.0%
  • Yacc 2.9%
  • Java 2.5%
  • Other 8.0%