thiagoralves / OpenPLC_v2

OpenPLC with the new IEC ST to C compiler

Home Page:http://www.openplcproject.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenPLC v2

This program is intended to emulate a PLC on a Linux machine. This virtual PLC uses the OpenPLC Software Stack to execute IEC 61131-3 programs and reply to MODBUS/TCP requests. Programs can be created using the PLCopen editor and then uploaded to this virtual PLC.

The OpenPLC has different hardware layers to support physical devices. More hardware layers can be added to the project. For instance, there is a hardware layer for the RaspberryPi, which makes the OpenPLC controls its IO pins.

There is a NodeJS application that works as a http server for the user to upload new programs.

You must have NodeJS and WiringPi (in case you are using Raspberry Pi) installed to use this program. Usage:

  1. Install required packages:
    sudo apt-get update
    sudo apt-get install build-essential pkg-config bison flex autoconf automake libtool make nodejs git

  2. ./build.sh

  3. sudo nodejs server.js

A server will be created on port 8080. Just open your browser and navigate to localhost:8080. After the application is running, you can connect to the virtual PLC using any MODBUS/TCP HMI software.

About

OpenPLC with the new IEC ST to C compiler

http://www.openplcproject.com

License:GNU General Public License v3.0


Languages

Language:C++ 79.8%Language:Shell 3.2%Language:Yacc 3.2%Language:C 2.9%Language:Java 2.8%Language:C# 2.6%Language:Scala 1.5%Language:Objective-C 1.3%Language:LLVM 0.7%Language:XSLT 0.6%Language:Makefile 0.4%Language:Perl 0.3%Language:JavaScript 0.3%Language:HTML 0.2%Language:M4 0.2%Language:CMake 0.1%Language:TeX 0.0%Language:Batchfile 0.0%