PID loop PID
Moves Output to bring the Process Variable to the Setpoint.
PID_LOOP
PVGlobal.TankLevel42.0CVGlobal.ValveOut20.8SP 50.0EN 1MAN 0LIM 0
| Tag | After two scans |
|---|---|
| Kd | 0 |
| Ki | 0.5 |
| Kp | 2 |
| LevelSP | 50 |
| OutMax | 100 |
| OutMin | 0 |
| PidAction | 0 |
| PidManual | 0 |
| PidManualOut | 20.8 |
| PidUpdateMs | 100 |
| PvMax | 100 |
| PvMin | 0 |
| TankLevel | 42 |
| ValveOut | 20.8 |
Operands
| Operand | Data type | Read or write |
|---|---|---|
| PV | DINT, REAL | Reads |
| Setpoint | DINT, REAL or a number | Reads |
| Output | REAL | Writes |
| Manual | BOOL | Reads |
| Manual out | REAL | Reads and writes |
| Kp | DINT, REAL or a number | Reads |
| Ki | DINT, REAL or a number | Reads |
| Kd | DINT, REAL or a number | Reads |
| Out min | DINT, REAL or a number | Reads |
| Out max | DINT, REAL or a number | Reads |
| PV min | DINT, REAL or a number | Reads |
| PV max | DINT, REAL or a number | Reads |
| Update ms | DINT or a number | Reads |
| Action | DINT or a number | Reads |
Common mistakes
- Using learning software to control a real processPractise with a simulated process. Check the PID configuration and feedback before changing its tuning.