| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class PID
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_pid.c | |
Implements the robust PID control algorithm.

Normally the PID-object is used together with a Mode-object. The same goes for
CompPID and CompMode.
The Modeobject works as an interface to the PID. From the Modeobject you can
choose between MANUAL, AUTO and CASCADE:
-Manual mode. The Outsignal of the controller is forced to the desired output.
-Auto mode. The controller setpoint is input from the operator, and stored in
the Mode-object.
-Cascade mode. An external setpoint comes to the Mode-object in XSetVal [XSV],
and is distributed to the controller.
The proportional term and the derivative term of the controller, can be based
either on the process value, or the control deviation. The PidAlg parameter
decides which.
Example: PI+D means that the P-part and I-part works on the control deviation,
but the derivative part works only on the process value. A step change on the
setpoint won't affect the D-part at all, but the P-part will give a step and
the I-part will give a slope.
I+P means that the P-part will only be affected by changes on the process value.
When using the P- or PD-algorithm we use an absolute algorithm. The output
will not be stable away from zero without a control deviation.
If PDAbsFlag is zero, there will be a offset that is calculated when the
controller is in manual mode (force), so that there is no jump in the output
when going from manual to auto.
When using algorithms with I-part, the output is divided in two parts, depending
on the bitmask WindupMask. The I-part is always calculated and limited in the
OutWindup, and you can select to include the Bias, the P-part and the D-part also.
OutWindup is limited to MinWindup and MaxWindup, which sets the signals EndMin and EndMax
The rest of the output is calculated as an absolute part in AbsOut, that is added to the
OutWindup, and then limited to MinOutput and MaxOutput.
You can still turn off the integration
with an input to the object
The PID-object has two outputs.
OUT (OutVal ) is the normal output from the controller, or from the operator in
manual mode. It is used for speedreferences, setpoint for positioning of a
valve, or similar output.
OC (OutChange ) is the change of the output signal (incremental form), that
works even if the controller output is restricted by MinOut or MaxOut. It can
be used with an INC3P-object, that integrates the signal, and converts it to
time for opening or closing, if we have a valve without position transducer.
The derivative term of the controller is filtered with a 1st order filter. You
can remove the filtering by setting DerGain to zero, but that will result in a
controller, very sensitive for ripple.
Normally DerGain is about 3, which means the output from the derivate part
initially will be 3 times that of the P-part. The D-part will then be smeared
out in time, so that the total effect of the D-part will be the same as it
would have been without the filter.
You can use a feedforward signal by the Bias-input, with BiasGain.
The output from the controller is divided in two parts, OutWindup and AbsOut.
The OutWindup contains the I-part and possibly the bias, P and D parts.
Select by WindupMask between I, BI, BPI and BPID.
OutWindup, is limited to the interval { MinWindup , MaxWindup }. This means
that you can loose your stable controlpoint if you have much noise. Especially
if you use the D-part of the controller. If you set the flag WindupMask to BIP
you remove the influence of D from the OutWindup. You can also set it to BI or I to remove the
influence of P and Bias from the OutWindup
The total output is also limited to the interval {MinOut , MaxOut }
Example: You have a rather noisy flowcontrol with an output 0-100% as
speedreference to a pump. WindupMask = BPID. MinWindup = 0, MaxWindup = 100.
The output varies +- 5% as a result of the noise. At the moment we need 98%
output as an average to reach the desired setpoint. If we use 100% as MaxWindup
for the controller, the output will be cut all the time, and it will vary
between 90 and 100% with 95% as an average. We will not reach the setpoint.
The solution is to change WindupMask to I or BI. The disturbances will not affect the windup,
but the output will still be limited to 0-100 %
For a servo valve for position control, you may want to have a slow I-part for leakage control,
but limited to +- 20 %. WindupMask = I or BI,
Set MinWindup = -20, Max Windup = + 20, MinOutput = -100, Max Output = +100
EndMin and EndMax can now be used to give alarm for leakage.
The controller has bumpless transfer between manual and auto, and after forced
output, but not if you use the P or PD-form with the flag PDAbsFlag.
EXAMPLE 1
Curves to show the effect of the P- and D-part at different input to the
controller.

Upper part:
Brown curve Input ( and also P-part of controller). Step and then a ramp.
Cerise curve Output from PID (yellow curve in lower part)
Lower part - D-component of controller.
Green curve DerTime = 10s. No filtering (DerGain = 0) Note very big peak
at the step.
Yellow curve DerTime = 10s. Filtered D. DerGain = 3.
Blue curve DerTime = 20s. Filtered D. DerGain = 3.
EXAMPLE 2 to show the difference betweenPID, PI+D och I+PD on a setpont step:

I+PD (upper left) starts slowly to integrate the output after the step.
PI+D (upper right) starts with a step from the P, which quickens the
process respons.
PID (lower left) adds a short spike at the start, which in this case
doesn't affect anything.
MaxOut = 500%
PID (lower right) is identical with the left, except for MaxWindup = 100%,
and WindupMask = BPID, which gives "wrong" result.
At the setpoint step, the P-part gives an increase of 30 %, and the
P-part wants a spike of 90 %. That results in an output of 155%, which
is cut to 100% because of saturation of the output signal. Then the D-part
will remove 90 % again, and the controller will restart from 10% output,
which is not desired.
Use WindupMask = BPI !!
Flow Control
Flow control by speed control of a pump; see figure See Speed Control of a Pump. The set point value is set from an external optimising program (the Av signal OptFlow) once / 10 minutes e.g., or direct by an operator. Starts with the control signal 0 at pump start.

Speed Control of a Pump A solution in principle to control the pump is shown in figure 3-36

Configuration of Speed Control of a Pump The Mode object is configured as follows:

The Pid object is configured as follows:

The input signal Force1 and the parameter OpMod in the Mode object shows the current operational mode. OpMod = MANUAL (=1) The output signal Force from the Mode object becomes TRUE. The Pid object is forced to the value of ForcVal. At the switching time, AUTO --> MANUAL, ForcVal has the value of the last control signal OutVal. This value is a good initial value to start upon in a manual increase/decrease session. In this mode the operator can change ForcVal as well as the set point value SetVal. MinOut and MaxOut, in the Pid object, represent no limitation at all in the MANUAL mode. OpMod = AUTO (=2) The operator sets and changes the flow set point value SetVal. The value has to be in the interval of MinSet and MaxSet. The optimising set point value XSetVal is ignored. The controller's control signal OutVal varies in the interval 10 -100. The Mode object reads in the Pid object the last value of OutVal and stores it in the output signal ForcVal as long as this mode continues. OpMod = CASCADE (=4) The optimising external set point value XSetVal is copied into SetVal. The Pid object controls against this set point value.. Force1 = 1 PUMP STOP Independent of the value of OpMod the control signal of the controller is forced against ForcVal = XForcVal (=0), i.e. MinOut and MaxOut represent no limitation at all at forced control.Alternate Controllers with Tracking

Shunt Control Through shunt control by the heat exchanger, the TT1-temperature in the secondary loop will be kept constant. The TT2-temperature of the return flow to the boiler may not be below the dewpoint, which may be the case at high power consumption. At low primary temperature TT2-control is selected. When the operating conditions allows, the control is focused on TT1 again. In MANUAL mode the shunt valve is fed by the TT1-controller. TIC2 may not be set in MANUAL mode. See figure See PLC program with Alternative Controllers. Adjustments ... in the Mode object TIC1M have been selected: AccMod = 3 , i.e. AUTO / MANUAL are allowed modes. OpMod = AUTO means that the operator sets the set point value in SetVal = MANUAL means that the operator sets the output signal ForcVal ... in the Pid object TIC1 has been selected: Inverse = TRUE, i.e. low TT1-temperature implies an increasing flow through the heat exchanger. ... in the Mode object TIC2M have been selected: AccMod = 2 , i.e. only AUTO The designer sets the limit value, i.e. the minimum of TT2 in SetVal ... in the Pid object TIC2 has been selected: Inverse = FALSE, i.e. reverse control action, at low TT2-temperatures the flow through the heat exchanger decreases, the by-pass increases.

PLC program with Alternative Controllers Operating conditions: Normal operating conditions. TIC1 in AUTO. TIC2 follows in forced control. TT2 low. TIC2 is switched to AUTO, and TIC1 follows in forced control. TIC1M in MANUAL. TIC1 chooses the value of TICM. ForcVal as output TIC2 follows in forced control. TIC2 returns to AUTO when TT2 goes below the limit. The flow through the heat exchanger is enough to put the TT1 above the set point value. Switches to TT1-control, i.e. TIC1 controls the shunt valve.Cascade Control
Temperature control in a furnace with two separate fuel loops, apart from the control of combustion air for the furnace, is shown in figure See Block Diagram Temperature Control. TT is the temperature transmitter, FT the flow transmitters, and FIC the flow controllers. TIC is a temperature controller

Block Diagram Temperature Control All the Pid objects have Inverse set to TRUE. Forced control with average flow ought to be added to TIC1M, when none of the flow controllers is in cascade. An implementation is shown in figure See Traditional Cascade Configuration.

Traditional Cascade ConfigurationCommon or Individual Control of Several Control Loops
In figure 3-41 two control loops share a common Mode object to a synchronous behaviour in AUTO and MANUAL mode. But every single loop can also be controlled individually from separate Mode objects with an internal set point and its own manual output signal. The individual control overrides the common one.

Two Levels with Mode Objects in a Control LoopRatio Control
Figure See Addition of a Reagent shows addition of a reagent. The ratio of the mixing is to be kept constant and independent of the FT2-flow. FT is the flow transmitter and FIC the flow controller.

Addition of a Reagent An implementation is shown in figure See Ratio Control. The control can be made in AUTO (= the operator sets the ratio set point value) or MANUAL ( = the operator sets the control signal to adjust the valve position). The ratio process value ought to be checked against division by zero.

Ratio ControlObject graph

See also
| RtBody attributes pwr_sClass_pid | |||
|---|---|---|---|
| Float32 | ProcVal | PV | Specifies the process value. |
| Float32 | SetVal | SV | Specifies the set point value. This input is in general connected to the corresponding output of a Mode object. |
| Float32 | Bias | BIS | Specifies the feed forward value. The value may be changed in the more info form of the Pid object. |
| Float32 | ForcVal | FOV | Specifies which value is to be used when Force is TRUE. When Force is TRUE OutVal is equal to ForcVal. This input is in general connected to the corresponding output of a Mode object. |
| Boolean | Force | for | Specifies whether forced or MANUAL control is selected or not. FALSE means none; TRUE means that either forced or MANUAL control has been selected. This input is in general connected to the corresponding output of a Mode object. |
| Boolean | IntOff | iof | Specifies whether to enable or disable the integration. FALSE means that the integration is on; TRUE switches the integration off. The value may be changed in the more info form of the Pid object. |
| Float32 | OutVal | OUT | The controller's control signal. The value is based either on the algorithm's current result, a value set by the operator in MANUAL mode, or a forced value. |
| Float32 | OutChange | OC | Changes in the control signal between two consecutive scans; i.e. OutVal(t) - OutVal(t-1). |
| Float32 | ControlDiff | DIF | Control error (= ProcVal - SetVal). |
| Boolean | EndMax | max | Specifies if OutWindup at this scanning has been limited against any of the limit values in the interval { MinWindup, MaxWindup } or not. If a limitation is done against -- MinWindup, then EndMin is set TRUE -- MaxWindup, then EndMax is set TRUE else they are FALSE. EndMin /EndMax can only be set in AUTO or CASCADE control mode, i.e. not in MANUAL mode for example. See also EndHys below. |
| Boolean | EndMin | min | |
| PidAlgEnum | PidAlg | PidAlg | The PID control algorithm |
| Float32 | Gain | Gain | Specifies the proportional control factor; >= 0. The value may be changed in the more info form of the Pid object. |
| Float32 | IntTime | IntTime | Specifies the integral action time in seconds. The value may be changed in the more info form of the Pid object. |
| Float32 | DerTime | DerTime | Specifies the derivative time in seconds; see p. 3-258. Normally DerTime is greater than ScanTime and 1.0 <= DerGain < DerTime/ScanTime |
| Float32 | DerGain | DerGain | Factor to specify the first order lag filter used in filtering of the derivative contribution. 1.0 <= DerGain < DerTime/ScanTime, otherwise no filtering DerGain is normally in the size of 3 to 4. The value may be changed in the more info form of the Pid object. |
| Boolean | Inverse | Inverse | Specifies whether the control action should be inverted or not. FALSE means that a spontaneous increasing process value, in a control with fixed set point, is met by an increasing control signal, i.e. reverse control action. TRUE is the normal case, where a spontaneous increasing process value is met by a decreasing control signal. |
| Float32 | BiasGain | BiasGain | Specifies the feed forward gain; this factor may be negative. The values may be changed in the more info form of the Pid object. |
| Boolean | PDAbsFlag | PDAbsFlag | Flag to force no offset after manual mode. Will cause an output jump when switching from manual to Auto. Not Bumpless transfer! |
| WindupMaskEnum | WindupMask | WindupMask | WindupMask The possible values are as follows: 1 -- I Only the I-part is limited in OutWindup 2 -- BI Bias and I are limited in OutWindup 4 -- BPI Bias, P and I are limited in OutWindup 8 -- BPID All parts of the controller are limited in OutWindup |
| Float32 | MinWindup | MinWindup | At AUTO and CASCADE control for controllers with an I-part, the control signal OutWindup is supposed to be in the interval { MinWindup, MaxWindup }. The EndMin /EndMax flags are used to signal if any limitation has occurred. If OutWindup is greater than MaxWindup or less than MinWindup, OutWindup is limited to the value at the end of the interval. If MinWindup >= MaxWindup no limitation will occur. After addition of the absolute output part, OutVal is limited to the interval {MinOut , MaxOut }. If MinOut >= MaxOut no limitation will occur. |
| Float32 | MaxWindup | MaxWindup | |
| Float32 | MinOut | MinOut | |
| Float32 | MaxOut | MaxOut | |
| Float32 | EndHys | EndHys | Specifies the hysteresis on MinOut and MaxOut in connection with the handling of EndMin/EndMax. |
| Float32 | SetMinShow | SetMinShow | The lower respectively upper limit in the graph at presentation of ProcVal and SetVal in the Pid object display. The values may be changed in the more info form of the Pid object. |
| Float32 | SetMaxShow | SetMaxShow | |
| String16 | SetEngUnit | SetEngUnit | Specifies the engineering unit of SetVal / SetMinShow / SetMaxShow, e.g. meter. Used in the Pid object display. |
| FloatPrecisionEnum | SetPrecision | Specifies the number of characters displayed after the decimal point for set value and process value in the object graph. |
|
| Float32 | OutMinShow | OutMinShow | The lower respectively upper limit in the graph at presentation of the control signal OutVal in the Pid object display. The values may be changed in the more info form of the Pid object. |
| Float32 | OutMaxShow | OutMaxShow | |
| String16 | OutEngUnit | OutEngUnit | Specifies the engineering unit of OutVal / Force / OutMinShow / OutMaxShow, e.g., %. Used in the Pid object display. |
| FloatPrecisionEnum | OutPrecision | Specifies the number of characters displayed after the decimal point for output value in the object graph. |
|
| Float32 | TrendTimeRange | Specifies time range for the trends in the object graph. | |
| Pointer to Float32 | ScanTime | ScanTime | Program cycle period in seconds, i.e. the sample time. |
| Int32 | AccGain | AccGain | The operator's authorities to change Gain respectively IntTime. 0 -- Changes not allowed. != 0 -- Changes allowed. |
| Int32 | AccInt | AccInt | |
| Int32 | AccDer | AccDer | The operator's authorities to change DerTime. 0 -- Changes not allowed. != 0 -- Changes allowed. |
| Int32 | AccDGain | AccDGain | The operator's authorities to change DerGain. 0 -- Changes not allowed. != 0 -- Changes allowed. |
| Int32 | AccBias | AccBias | |
| Int32 | AccBGain | AccBGain | |
| Float32 | MinGain | MinGain | The minimum and maximum allowed value of Gain at changes made by an operator. |
| Float32 | MaxGain | MaxGain | |
| Float32 | MinInt | MinInt | The minimum and maximum allowed value of IntTim at changes made by an operator. |
| Float32 | MaxInt | MaxInt | |
| Float32 | MinDer | MinDer | The minimum and maximum allowed value of DerTim at changes made by an operator. |
| Float32 | MaxDer | MaxDer | |
| Float32 | MinDGain | MinDGain | The minimum and maximum allowed value of DerGain at changes made by an operator. |
| Float32 | MaxDGain | MaxDGain | |
| Float32 | MinBias | MinBias | The minimum and maximum allowed value of Gain at changes made by an operator. |
| Float32 | MaxBias | MaxBias | |
| Float32 | MinBGain | MinBGain | The minimum and maximum allowed value of BiasGain at changes made by an operator. |
| Float32 | MaxBGain | MaxBGain | |
| Objid | ModeObjDId | ModeObjDId | Specifies the complete name of the Mode object associated to this Pid object. The attribute makes it possible to start the object display of the associated Mode object from a button in the object display of the Pid object. |
| Float32 | FiltDer | FiltDer | Filtered derivative is saved to the next program cycle. |
| Float32 | PDManOffset | PDManOffset | Offset for PD-controller when switching from manual to auto mode |
| Float64 | OutWindup | OutWindup | Output that is cut off (limited) with MinWindup and MaxWindup |
| Float64 | AbsOut | AbsOut | The absolute part of the output. (Contrary to OutWindup) |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 150 |
| parameters[0] | 6 |
| parameters[1] | 0 |
| parameters[2] | 5 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 0 (standard, individual attributes) |
| graphindex | 0 |
| default_mask[0] | 27 |
| default_mask[1] | 1 |
| segname_annotation | 1 |
| compmethod | 4 |
| compindex | 0 |
| executeordermethod | 2 |
| objname | PID |
| graphname | PID |
| debugpar | |
| Template Object | |
|---|---|
| PidAlg | 3 |
| Gain | 1.0 |
| IntTime | 120.0 |
| MaxOut | 100 |
| DerGain | 3.0 |
| BiasGain | 1.0 |
| Inverse | 1 |
| AccGain | 15 |
| AccInt | 15 |
| AccDer | 15 |
| AccBias | 15 |
| AccBGain | 15 |
| MinGain | 0.1 |
| MaxGain | 10.0 |
| MinInt | 10.0 |
| MaxInt | 600.0 |
| MaxDer | 20.0 |
| MaxBias | 100.0 |
| MinBGain | -100.0 |
| MaxBGain | 100.0 |
| OutMaxShow | 100.0 |
| SetMaxShow | 100.0 |
| SetEngUnit | % |
| SetPrecision | 1 |
| OutEngUnit | % |
| OutPrecision | 1 |
| TrendTimeRange | 100 |
| WindupMask | 4 |
| MaxWindup | 100.0 |
| ProcVal Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | PV | |
| Body | RtBody | |
Specifies the process value.
| SetVal Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | SV | |
| Body | RtBody | |
Specifies the set point value. This input is in general connected to the corresponding output of a Mode object.
| Bias Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | BIS | |
| Body | RtBody | |
Specifies the feed forward value. The value may be changed in the more info form of the Pid object.
| ForcVal Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | FOV | |
| Body | RtBody | |
Specifies which value is to be used when Force is TRUE. When Force is TRUE OutVal is equal to ForcVal. This input is in general connected to the corresponding output of a Mode object.
| Force Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | NOINVERT | REDUTRANSFER | |
| GraphName | for | |
| Body | RtBody | |
Specifies whether forced or MANUAL control is selected or not. FALSE means none; TRUE means that either forced or MANUAL control has been selected. This input is in general connected to the corresponding output of a Mode object.
| IntOff Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | STATE | NOEDIT | NOINVERT | REDUTRANSFER | |
| GraphName | iof | |
| Body | RtBody | |
Specifies whether to enable or disable the integration. FALSE means that the integration is on; TRUE switches the integration off. The value may be changed in the more info form of the Pid object.
| OutVal Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | OUT | |
| Body | RtBody | |
The controller's control signal. The value is based either on the algorithm's current result, a value set by the operator in MANUAL mode, or a forced value.
| OutChange Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | OC | |
| Body | RtBody | |
Changes in the control signal between two consecutive scans; i.e. OutVal(t) - OutVal(t-1).
| ControlDiff Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | DIF | |
| Body | RtBody | |
Control error (= ProcVal - SetVal).
| EndMax Output | ||
|---|---|---|
| Class | Output | |
| Type | Boolean | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | max | |
| Body | RtBody | |
Specifies if OutWindup at this scanning has been limited
against any of the limit values in the interval {
MinWindup, MaxWindup } or not. If a limitation is done
against
-- MinWindup, then EndMin is set TRUE
-- MaxWindup, then EndMax is set TRUE
else they are FALSE.
EndMin /EndMax can only be set in AUTO or CASCADE
control mode, i.e. not in MANUAL mode for example. See
also EndHys below.
| EndMin Output | ||
|---|---|---|
| Class | Output | |
| Type | Boolean | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | min | |
| Body | RtBody | |
| PidAlg Intern | ||
|---|---|---|
| Class | Intern | |
| Type | PidAlgEnum | |
| Flags | REDUTRANSFER | |
| GraphName | PidAlg | |
| Body | RtBody | |
There are several variations of the PID control
algorithm. PidAlg specifies the current choice. The
possible values are as follows:
1 -- I Integral controller. Gain is not used.
3 -- I+P Integral controller with proportional
control action. The P-term is based on the
the process value.
6 -- P Proportional Controller.
7 -- PI Proportional Integral Controller. The
P-term is based on the control error.
11 -- I+PD Integral controller with proportional
derivative control action. Both the P- and
D-term are based on the process value.
14 -- P+D Proportional Controller with derivative
control action. P is based on the control error,
D on the process value.
15 -- PI+D Proportional Integral Controller with
derivative control action. P is based on
the control error, D on the process value.
30 -- PD Proportional Derivative Controller. Both
the P- and D-term are based on the control
error.
31 -- PID Proportional Integral Derivative
Controller. Both the P- and D-term are
based on the control error.
| Gain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | Gain | |
| Body | RtBody | |
Specifies the proportional control factor; >= 0. The value may be changed in the more info form of the Pid object.
| IntTime Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | IntTime | |
| Body | RtBody | |
Specifies the integral action time in seconds. The value may be changed in the more info form of the Pid object.
| DerTime Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | DerTime | |
| Body | RtBody | |
Specifies the derivative time in seconds; see p. 3-258.
Normally DerTime is greater than ScanTime and
1.0 <= DerGain < DerTime/ScanTime
| DerGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | DerGain | |
| Body | RtBody | |
Factor to specify the first order lag filter used in filtering of the derivative contribution. 1.0 <= DerGain < DerTime/ScanTime, otherwise no filtering DerGain is normally in the size of 3 to 4. The value may be changed in the more info form of the Pid object.
| Inverse Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | REDUTRANSFER | |
| GraphName | Inverse | |
| Body | RtBody | |
Specifies whether the control action should be inverted or not. FALSE means that a spontaneous increasing process value, in a control with fixed set point, is met by an increasing control signal, i.e. reverse control action. TRUE is the normal case, where a spontaneous increasing process value is met by a decreasing control signal.
| BiasGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | BiasGain | |
| Body | RtBody | |
Specifies the feed forward gain; this factor may be negative. The values may be changed in the more info form of the Pid object.
| PDAbsFlag Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | REDUTRANSFER | |
| GraphName | PDAbsFlag | |
| Body | RtBody | |
Flag to force no offset after manual mode. Will cause an output jump when switching from manual to Auto. Not Bumpless transfer!
| WindupMask Intern | ||
|---|---|---|
| Class | Intern | |
| Type | WindupMaskEnum | |
| Flags | ||
| GraphName | WindupMask | |
| Body | RtBody | |
WindupMask The possible values are as follows: 1 -- I Only the I-part is limited in OutWindup 2 -- BI Bias and I are limited in OutWindup 4 -- BPI Bias, P and I are limited in OutWindup 8 -- BPID All parts of the controller are limited in OutWindup
| MinWindup Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinWindup | |
| Body | RtBody | |
At AUTO and CASCADE control for controllers with an I-part,
the control signal OutWindup is supposed to be
in the interval { MinWindup, MaxWindup }.
The EndMin /EndMax flags are used to signal if any
limitation has occurred.
If OutWindup is greater than MaxWindup or less than MinWindup,
OutWindup is limited to the value at the end of the
interval.
If MinWindup >= MaxWindup no limitation will occur.
After addition of the absolute output part,
OutVal is limited to the interval {MinOut , MaxOut }.
If MinOut >= MaxOut no limitation will occur.
| MaxWindup Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxWindup | |
| Body | RtBody | |
| MinOut Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinOut | |
| Body | RtBody | |
| MaxOut Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxOut | |
| Body | RtBody | |
| EndHys Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | EndHys | |
| Body | RtBody | |
Specifies the hysteresis on MinOut and MaxOut in connection with the handling of EndMin/EndMax.

| SetMinShow Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | SetMinShow | |
| Body | RtBody | |
The lower respectively upper limit in the graph at presentation of ProcVal and SetVal in the Pid object display. The values may be changed in the more info form of the Pid object.
| SetMaxShow Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | SetMaxShow | |
| Body | RtBody | |
| SetEngUnit Intern | ||
|---|---|---|
| Class | Intern | |
| Type | String16 | |
| Flags | ||
| GraphName | SetEngUnit | |
| Body | RtBody | |
Specifies the engineering unit of SetVal / SetMinShow / SetMaxShow, e.g. meter. Used in the Pid object display.
| SetPrecision Intern | ||
|---|---|---|
| Class | Intern | |
| Type | FloatPrecisionEnum | |
| Flags | ||
| Body | RtBody | |
Specifies the number of characters displayed after the decimal point for set value and process value in the object graph.
| OutMinShow Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | OutMinShow | |
| Body | RtBody | |
The lower respectively upper limit in the graph at presentation of the control signal OutVal in the Pid object display. The values may be changed in the more info form of the Pid object.
| OutMaxShow Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | OutMaxShow | |
| Body | RtBody | |
| OutEngUnit Intern | ||
|---|---|---|
| Class | Intern | |
| Type | String16 | |
| Flags | ||
| GraphName | OutEngUnit | |
| Body | RtBody | |
Specifies the engineering unit of OutVal / Force / OutMinShow / OutMaxShow, e.g., %. Used in the Pid object display.
| OutPrecision Intern | ||
|---|---|---|
| Class | Intern | |
| Type | FloatPrecisionEnum | |
| Flags | ||
| Body | RtBody | |
Specifies the number of characters displayed after the decimal point for output value in the object graph.
| TrendTimeRange Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| Body | RtBody | |
Specifies time range for the trends in the object graph.
| ScanTime Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Pointer to Float32 | |
| Flags | INVISIBLE | POINTER | PRIVATE | |
| GraphName | ScanTime | |
| Body | RtBody | |
Program cycle period in seconds, i.e. the sample time.
| AccGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccGain | |
| Body | RtBody | |
The operator's authorities to change Gain respectively IntTime. 0 -- Changes not allowed. != 0 -- Changes allowed.
| AccInt Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccInt | |
| Body | RtBody | |
| AccDer Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccDer | |
| Body | RtBody | |
The operator's authorities to change DerTime. 0 -- Changes not allowed. != 0 -- Changes allowed.
| AccDGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccDGain | |
| Body | RtBody | |
The operator's authorities to change DerGain. 0 -- Changes not allowed. != 0 -- Changes allowed.
| AccBias Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccBias | |
| Body | RtBody | |
| AccBGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccBGain | |
| Body | RtBody | |
| MinGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinGain | |
| Body | RtBody | |
The minimum and maximum allowed value of Gain at changes made by an operator.
| MaxGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxGain | |
| Body | RtBody | |
| MinInt Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinInt | |
| Body | RtBody | |
The minimum and maximum allowed value of IntTim at changes made by an operator.
| MaxInt Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxInt | |
| Body | RtBody | |
| MinDer Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinDer | |
| Body | RtBody | |
The minimum and maximum allowed value of DerTim at changes made by an operator.
| MaxDer Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxDer | |
| Body | RtBody | |
| MinDGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinDGain | |
| Body | RtBody | |
The minimum and maximum allowed value of DerGain at changes made by an operator.
| MaxDGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxDGain | |
| Body | RtBody | |
| MinBias Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinBias | |
| Body | RtBody | |
The minimum and maximum allowed value of Gain at changes made by an operator.
| MaxBias Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxBias | |
| Body | RtBody | |
| MinBGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinBGain | |
| Body | RtBody | |
The minimum and maximum allowed value of BiasGain at changes made by an operator.
| MaxBGain Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxBGain | |
| Body | RtBody | |
| ModeObjDId Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Objid | |
| Flags | ||
| GraphName | ModeObjDId | |
| Body | RtBody | |
Specifies the complete name of the Mode object associated to this Pid object. The attribute makes it possible to start the object display of the associated Mode object from a button in the object display of the Pid object.
| FiltDer Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | INVISIBLE | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | FiltDer | |
| Body | RtBody | |
Filtered derivative is saved to the next program cycle.
| PDManOffset Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | INVISIBLE | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | PDManOffset | |
| Body | RtBody | |
Offset for PD-controller when switching from manual to auto mode
| OutWindup Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float64 | |
| Flags | INVISIBLE | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | OutWindup | |
| Body | RtBody | |
Output that is cut off (limited) with MinWindup and MaxWindup
| AbsOut Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float64 | |
| Flags | INVISIBLE | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | AbsOut | |
| Body | RtBody | |
The absolute part of the output. (Contrary to OutWindup)
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |