Giter Club home page Giter Club logo

plc_hello_mixing_tank's Introduction

PLC HELLO MIXING TANK

In industrial automation the "hello world" program is a mixing tank. As a part of my portfolio I have written a simple mixing tank controller and a simulator. The project is meant for begginers and for educational purposes. It is published under MIT license. Written in CODESYS 3.5 and in structured text language.

Screenshot of the programs HMI

USAGE

The repository consists out of a CODESYS 3.5 project file, its generated PlcOpenXml and the serialized data in the docs folder.

  • The codesys file can be opened with CODESYS and ran there.

  • On different platforms than CODESYS the PlcOpenXml file can be used to import the data as no CODSYS native functions have been used in the project.

  • Finally the user can read the code in markdown format located in this repository under docs folder or from this link

FUNCTIONAL DESCRIPTION

There are two ways of operation:

  • Manual

  • Automatic

Manual

  • Operator is able to operate each valve manually

  • Operator is able to operate the mixer motor manually

  • Overfill protections are disabled

  • Operator is able to put the system to auto

Automatic

  • Program will automatically control the valves and the mixing motor if system is in auto

  • If the tanks level is undefined it assumes draining state

  • In draining state, drains the tank until LS02 activates (tank is empty)

  • When tank is empty, it activates the medium 1 and 2 valves, closes the drain valve and the tank is filling up

  • Filling state is until LS01 is activated (Tank is full)

  • Then the mixer motor is mixing for 10 seconds

  • After mixing is completed, drain the whole contents

  • Repeats as long as auto is activated

HMI Requirements

  • Manual / Auto needs to be correctly controlled and displayed

  • If manual, clicking on devices activates or stops them

  • If auto, clicking is not doing anything

  • If auto, system is counting number of cycles completed

  • Devices must clearly display if they are activated or deactivated

MODIFICATION FOR EDUCATIONAL PURPOSES

The project is designed in a way that the user can disable the main program and replace it with his own implementation. Simulator and the HMI sees only the IO and HMI global variables so if the user wishes to create an own implementation those variables should be written. On the simulator side the operator can see if the implementation is working correctly.

LICENSE

This project is meant as a tutorial and as it it can be used under the MIT license.

plc_hello_mixing_tank's People

Contributors

tkucic avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.