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

actualItemIdItemIDMThe item that provides the current value
setpointItemIdItemIDMThe item that provides the set point
controlItemIdItemIDMThe item that is used to write the control value
tanumberMThe time interval of the controller (in seconds)
KpnumberMThe proportional gain of the controller
KinumberMThe integral gain of the controller (Ki = Kp/ti)
KdnumberMThe derivative gain of the controller (Kd = Kp*td)
minControlValuenumberMThe minimum value of the control value
maxControlValuenumberMThe maximum value of the control value
esumMinnumberMThe minimum of the error sum
esumMaxnumberMThe maximum of the error sum
onChangebooleanMIf 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+