GithubHelp home page GithubHelp logo

lanweizq / openplc_v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thiagoralves/openplc_v2

0.0 2.0 0.0 9.72 MB

OpenPLC with the new IEC ST to C compiler

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

License: GNU General Public License v3.0

Dockerfile 0.01% Shell 3.21% C++ 79.83% C 2.91% Objective-C 1.26% CMake 0.11% Batchfile 0.01% Makefile 0.41% Perl 0.31% M4 0.15% TeX 0.02% XSLT 0.65% HTML 0.15% C# 2.59% Scala 1.48% Java 2.76% JavaScript 0.26% Yacc 3.19% LLVM 0.70%

openplc_v2's Introduction

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.

openplc_v2's People

Contributors

thiagoralves avatar trevoraron avatar 0ussama avatar andrewchi avatar skytrix avatar jseed avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.