AddPidController
Description
This function adds a new PID controller to the NETx Server. The controller loop is called every ta seconds.
Signature
AddPidController (ItemID, ItemID, ItemID, number, number, number, number, number, number, number, number, boolean)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
actualItemId | ItemID | M | The item that provides the current value |
setpointItemId | ItemID | M | The item that provides the set point |
controlItemId | ItemID | M | The item that is used to write the control value |
ta | number | M | The time interval of the controller (in seconds) |
Kp | number | M | The proportional gain of the controller |
Ki | number | M | The integral gain of the controller (Ki = Kp/ti) |
Kd | number | M | The derivative gain of the controller (Kd = Kp*td) |
minControlValue | number | M | The minimum value of the control value |
maxControlValue | number | M | The maximum value of the control value |
esumMin | number | M | The minimum of the error sum |
esumMax | number | M | The maximum of the error sum |
onChange | boolean | M | If true, the control value is only sent if it changes |
Return
None.
Article applies to the following products:
- NETx BMS Platform R2 Build 1000+
- NETx Multi Protocol Server R2 Build 1000+