BACnetLoopEnablePidAlgorithm (FUN)ΒΆ
FUNCTION BACnetLoopEnablePidAlgorithm : IEC_BACNET_STATUS
Enables or disables the internal PID algorithm for the specified loop object.
In case the internal PID algorithm is enabled it will be calculated using the given property values which specify the PID constants. The calculation interval is taken from the update-interval property which is linited in range from 10 ms to 10000 ms. The internal algorithm will take the set-point from the reference specified in set-point-reference or from the set-point property. The controlled value will be taken from the controlled-variable-value property which is updated from the controlled-variable-reference object. It will update the present-value along with the object specified with the manipulated-variable-reference property. In case this function is called to enable the internal PID algorithm this function will trigger the PID calculation too. In case the internal algorithm is not enabled no calculations are done but changes in present-value property are distributed also to the manipulated-variable-reference object and changes in the set-point-reference object also update the set-point property along with changes in the controlled- valariable-reference which update the controlled-variable-value property. Initially after object construction the internal PID algorithm in the loop object is disabled.
Return: IEC_BACNET_STATUS
- InOut:
Scope
Name
Type
Comment
Return
BACnetLoopEnablePidAlgorithm
Input
deviceInst
The instance number of the local device in which the local loop object exists.
instNumber
The instance number which specifies the local loop object to change.
bEnablePidAlgorithm
If set to TRUE the internal PID algorithm will be enabled.