GithubHelp home page GithubHelp logo

gitcontainer / pytunelogix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from destination2unknown/pytunelogix

1.0 0.0 0.0 74 KB

Python PID Tuner with an additional PID Simulator and CSV Logger

License: MIT License

Python 100.00%

pytunelogix's Introduction

pytunelogix

Python PID Tuner for ControlLogix

PyPI PyPI - Downloads PyPI - Python Version GitHub repo size PyPI - License

Windows Exe (no install required) -> https://github.com/Destination2Unknown/pytunelogix/releases

To install use:

pip install pytunelogix

PID tuning in 4 Steps:

A-> Record PRC using Logger
B-> Tune using PID Tuner
C-> Refine tune using PID Simulator
D-> Test tune with FOPDT Simulator for Logix PLC

To use, create a launch file:

examplelaunch.pyw #use pyw for no console

PID Logger

image

To launch, use:

from pytunelogix.pidlogger import clxlogger

clxlogger.main()
    

Stage 1 - PID Tuner based on a CSV file of a Process Reaction Curve (PRC)

Notes and Limitations:

  • Assumes CV and PV data stored at 100ms intervals.

  • Assumes there is a single step in CV.

  • Ambient is calculated as an average of the PV prior to the step change.

  • Doesn't work correctly with a ramp in CV or with multiple CV steps.

To launch, use:

from pytunelogix.stage1 import csvtuner

csvtuner.main()

Direct Acting:

U_Tune

Reverse Acting:

U_TuneR


Stage 2 - Open loop tune

A.mp4

WIP


Stage 3 - Closed loop tune

cl.mp4

WIP


Stage 4 - Adaptive tuner

ad.mp4

WIP


PID Simulator

Direct Acting:

pidDirect_DEP

Reverse Acting:

pidReverse_DEP

To launch, use:

from pytunelogix.simulate import simulator

simulator.main()
    

ControlLogix FOPDT Process Simulator (PID Simulator)

Simulates a Process:

UCLX_Sim

Direct Acting:

C

Reverse Acting:

C_R

To launch, use:

from pytunelogix.clxpidsim import clxsim

clxsim.main()
    

Windows Standalone Exe:

Pytunelogix

pytunelogix's People

Contributors

destination2unknown avatar

Stargazers

Roman 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.