Process (output instruction)
PID instruction
Closed-loop proportional, integral and derivative control on an analog process value.
PID(number, pv, sp, kp, ki, kd, min, max, db, ff, manTag, man)Arguments
| Name | What it is | Accepts | Default |
|---|---|---|---|
| destination | What the instruction acts on | a register | required |
| pv | Measured value (PV) | a tag | — |
| sp | Setpoint (SP) | a number or a tag | 50 |
| kp | Kp | a number | 1 |
| ki | Ki | a number | 0 |
| kd | Kd | a number | 0 |
| min | Out min | a number | 0 |
| max | Out max | a number | 100 |
| db | Deadband | a number | 0 |
| ff | Feed-forward | a number or a tag | 0 |
| manTag | Manual mode bit | a tag | — |
| man | Manual output | a number or a tag | 0 |
Arguments are positional and this table is generated from the simulator's own instruction registry, so it always matches what the engine accepts.
