PID loop PID

Moves Output to bring the Process Variable to the Setpoint.

TagAfter two scans
Kd0
Ki0.5
Kp2
LevelSP50
OutMax100
OutMin0
PidAction0
PidManual0
PidManualOut20.8
PidUpdateMs100
PvMax100
PvMin0
TankLevel42
ValveOut20.8

Operands

OperandData typeRead or write
PVDINT, REALReads
SetpointDINT, REAL or a numberReads
OutputREALWrites
ManualBOOLReads
Manual outREALReads and writes
KpDINT, REAL or a numberReads
KiDINT, REAL or a numberReads
KdDINT, REAL or a numberReads
Out minDINT, REAL or a numberReads
Out maxDINT, REAL or a numberReads
PV minDINT, REAL or a numberReads
PV maxDINT, REAL or a numberReads
Update msDINT or a numberReads
ActionDINT or a numberReads

Common mistakes

  • Using learning software to control a real processPractise with a simulated process. Check the PID configuration and feedback before changing its tuning.