PID tuner, logger and simulator


Keywords
PID, Tuner, controllogix, pid-control, pid-tuner, python
License
MIT
Install
pip install pytunelogix==1.1.19

Documentation

pytunelogix

Python PID Tuner for ControlLogix

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)

Assumes CV and PV data stored at 100ms intervals.

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:

U_Sim

Reverse Acting:

U_SimR

To launch use:

from pytunelogix.simulate import simulator

simulator.main()
    

ControlLogix FOPDT Process Simulator (PID Simulator)

Direct Acting:

C

Reverse Acting:

C_R

To launch use:

from pytunelogix.clxpidsim import clxsim

clxsim.main()