Control Pid Tune
control_pid_tuneComputes P, PI, or PID gains from a first-order-plus-dead-time model using Ziegler-Nichols, Cohen-Coon, IMC, or SIMC rules, then simulates the loop to report overshoot, settling time, stability, and margins.
Instructions
PID tuning from a first-order-plus-dead-time model G = K exp(-L s)/(T s + 1): rule = ziegler_nichols (open-loop reaction curve), cohen_coon, imc (lambda tuning) or simc; controller = P, PI or PID; form = standard (Kc, Ti, Td) or parallel (Kp, Ki, Kd). Returns the gains with the formulas named, what the rule is meant for, and a closed-loop simulation (delay as a Pade approximation of the stated order, derivative filter N): overshoot, rise and settling time, stability by exact pole count, and gain/phase margins with the true delay. Starting points only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gain": "<gain>",
"time_constant": "<time_constant>",
"delay": "<delay>"
},
"name": "control_pid_tune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | 'standard' Kc(1 + 1/(Ti s) + Td s) (default) or 'parallel' Kp + Ki/s + Kd s | standard |
| gain | Yes | Process gain K (> 0): change of output per unit change of controller output at steady state | |
| rule | No | 'ziegler_nichols', 'cohen_coon', 'imc' or 'simc' | imc |
| delay | Yes | Dead time L with unit, e.g. '2 s' (must be > 0; L/T between 0.01 and 100) | |
| controller | No | 'P', 'PI' or 'PID' (imc and simc: PI or PID) | PI |
| pade_order | No | Order n (1..10) of the (n, n) Pade approximation of the delay in the simulated loop (default 3) | |
| lambda_time | No | IMC/SIMC closed-loop time constant with unit, e.g. '3 s'. Empty = max(L, 0.1 T) | |
| time_constant | Yes | Process time constant T with unit, e.g. '10 s' | |
| derivative_filter | No | Derivative filter ratio N in Td s/(1 + Td s/N) used in the simulation (2..100, default 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |