OpenPLC

官网地址

https://openplcproject.com/

简介

支持Windows、Linux、MAC
符合IEC 61131-3标准要求(可编程序控制器第3 部分:编程语言),国标为GB/T 15969.3。
三个组成部分:

  • 编辑器:用于创建 PLC 程序(全功能IDE)
  • 运行时:负责执行 PLC 程序,多平台支持(Windows、Linux、MAC、树莓派等,免安装的)
  • HMI 构建器: ScadaBR,可以创建漂亮的基于 Web 的动画,以呈现运行后的流程状态(运行时的监控)
    HMI与运行时的通行协议:Modbus/TCP

编辑器

使用Python实现,理论上可以运行在多数操作系统(安装Python运行环境),Windows成熟、MAC处于测试阶段、Linux仅支持Debian系列的发行版。

安装步骤(Python2)

下载源码:

git clone https://github.com/thiagoralves/OpenPLC_Editor

安装依赖
– GCC and G++ (or any other C / C++ compiler)
– Bison
– Flex
– Autoconf
– Automake
– Make
– Python 2.7 (including pip)
– wxPython 3.0

安装Python库

pip2 install future zeroconf==0.19.1 numpy==1.16.5 matplotlib==2.0.2 lxml pyro sslpsk pyserial

编译

cd matiec
autoreconf -i
./configure
make -s
cp ./iec2c ../editor/arduino/bin/ #keeps a copy of the iec2c compiler inside the arduino folder

运行测试

python2.7 ./editor/Beremiz.py

Python3
git clone –branch dev-python3 https://github.com/thiagoralves/OpenPLC_Editor

运行时

用户配置

硬件设置

posted @ 2022-09-22 16:50  马洪彪  阅读(1776)  评论(0编辑  收藏  举报