-
Notifications
You must be signed in to change notification settings - Fork 1
StControl
The StControl
class consists of fast performing controller object-oriented
instance that is designed to be @persist
and initialized in expression
first() || dupefinished()
. That way you create the controller instance once
and you can use it as many times as you need, without creating a new one.
wire_expression2_stcontrol_enst > Contains flag that enables status output messages
wire_expression2_stcontrol_dprn > Stores the default status output messages streaming destination
You can create a controller object by calling one of the dedicated creators newStControl
below
either with an argument of sampling time to make the sampling time static or without
a parameter to make it take the value dynamically as some other thing may slow down the E2.
Then you must activate the instance setIsActive(1)
to enable it to calculate the control signal,
apply the current state values setState
and retrieve the control signal afterwards by calling
getControl(...)
.
The internal type of the class is xsc
and internal expression type stcontrol
, so to create
an instance you can take a look at the example.
The description of the API is provided in the table below.
ˑˑInstance.creatorˑˑ | ˑOutˑ | ˑDescriptionˑ |
---|---|---|
newStControl () |
Returns state control object with dynamic sampling time | |
newStControl () |
Returns state control object with static sampling time | |
noStControl () |
Returns invalid state control object |
ˑˑˑˑˑˑˑˑˑˑˑClass.methodsˑˑˑˑˑˑˑˑˑˑˑ | ˑOutˑ | ˑDescriptionˑ |
---|---|---|
:dumpItem () |
Dumps state control to the chat area by number identifier | |
:dumpItem () |
Dumps state control to the chat area by string identifier | |
:dumpItem (,) |
Dumps state control by number identifier in the specified area by first argument | |
:dumpItem (,) |
Dumps state control by string identifier in the specified area by first argument | |
:getBias () |
Returns state control control bias | |
:getControl () |
Returns state control automated control signal signal | |
:getControlTerm () |
Returns state control automated control term signal | |
:getControlTerm () |
Returns state control automated control term signal | |
:getControlTermD () |
Returns state control derivative automated control term signal | |
:getControlTermI () |
Returns state control integral automated control term signal | |
:getControlTermP () |
Returns state control proportional automated control term signal | |
:getCopy () |
Returns state control object copy instance | |
:getCopy () |
Returns state control object copy instance with static sampling time | |
:getErrorDelta () |
Returns state control process error delta | |
:getErrorNow () |
Returns state control process current error | |
:getErrorOld () |
Returns state control process passed error | |
:getGain () |
Returns state control proportional term gain, integral term gain and derivative term gain | |
:getGain () |
Returns state control proportional term gain, integral term gain and derivative term gain | |
:getGainD () |
Returns state control derivative term gain | |
:getGainI () |
Returns state control integral term gain | |
:getGainID () |
Returns state control integral term gain and derivative term gain | |
:getGainID () |
Returns state control integral term gain and derivative term gain | |
:getGainP () |
Returns state control proportional term gain | |
:getGainPD () |
Returns state control proportional term gain and derivative term gain | |
:getGainPD () |
Returns state control proportional term gain and derivative term gain | |
:getGainPI () |
Returns state control proportional term gain and integral term gain | |
:getGainPI () |
Returns state control proportional term gain and integral term gain | |
:getManual () |
Returns state control manual control signal value | |
:getPower () |
Returns state control proportional term power, integral term power and derivative term power | |
:getPower () |
Returns state control proportional term power, integral term power and derivative term power | |
:getPowerD () |
Returns state control derivative term power | |
:getPowerI () |
Returns state control integral term power | |
:getPowerID () |
Returns state control integral term power and derivative term power | |
:getPowerID () |
Returns state control integral term power and derivative term power | |
:getPowerP () |
Returns state control proportional term power | |
:getPowerPD () |
Returns state control proportional term power and derivative term power | |
:getPowerPD () |
Returns state control proportional term power and derivative term power | |
:getPowerPI () |
Returns state control proportional term power and integral term power | |
:getPowerPI () |
Returns state control proportional term power and integral term power | |
:getTimeBench () |
Returns state control process benchmark time | |
:getTimeDelta () |
Returns state control dymamic process time delta | |
:getTimeNow () |
Returns state control process current time | |
:getTimeOld () |
Returns state control process passed time | |
:getTimeRatio () |
Returns state control process time ratio | |
:getTimeSample () |
Returns state control static process time delta | |
:getType () |
Returns state control control type | |
:getWindup () |
Returns state control windup lower bound and windup upper bound | |
:getWindup () |
Returns state control windup lower bound and windup upper bound | |
:getWindupD () |
Returns state control windup lower bound | |
:getWindupU () |
Returns state control windup upper bound | |
:isActive () |
Checks state control activated working flag | |
:isCombined () |
Checks state control combined flag spreading proportional term gain across others | |
:isIntegrating () |
Checks integral enabled flag | |
:isInverted () |
Checks state control inverted feedback flag of the reference and setpoint | |
:isManual () |
Checks state control manual control flag | |
:remGain () |
Removes state control proportional term gain, integral term gain and derivative term gain | |
:remGainD () |
Removes state control derivative term gain | |
:remGainI () |
Removes state control integral term gain | |
:remGainID () |
Removes state control integral term gain and derivative term gain | |
:remGainP () |
Removes state control proportional term gain | |
:remGainPD () |
Removes state control proportional term gain and derivative term gain | |
:remGainPI () |
Removes state control proportional term gain and integral term gain | |
:remTimeSample () |
Removes state control static process time delta | |
:remWindup () |
Removes state control windup lower bound and windup upper bound | |
:remWindupD () |
Removes state control windup lower bound | |
:remWindupU () |
Removes state control windup upper bound | |
:resState () |
Resets state control automated internal parameters | |
:setBias () |
Updates state control control bias | |
:setGain (,,) |
Updates state control proportional term gain, integral term gain and derivative term gain | |
:setGain () |
Updates state control proportional term gain, integral term gain and derivative term gain | |
:setGain () |
Updates state control proportional term gain, integral term gain and derivative term gain | |
:setGainD () |
Updates state control derivative term gain | |
:setGainI () |
Updates state control integral term gain | |
:setGainID (,) |
Updates state control integral term gain and derivative term gain | |
:setGainID () |
Updates state control integral term gain and derivative term gain | |
:setGainID () |
Updates state control derivative term gain and derivative term gain | |
:setGainP () |
Updates state control proportional term gain | |
:setGainPD (,) |
Updates state control proportional term gain and derivative term gain | |
:setGainPD () |
Updates state control proportional term gain and derivative term gain | |
:setGainPD () |
Updates state control proportional term gain and derivative term gain | |
:setGainPI (,) |
Updates state control proportional term gain and integral term gain | |
:setGainPI () |
Updates state control proportional term gain and integral term gain | |
:setGainPI () |
Updates state control proportional term gain and integral term gain | |
:setIsActive () |
Updates state control activated working flag | |
:setIsCombined () |
Updates combined flag spreading proportional term gain across others | |
:setIsIntegrating () |
Updates integral enabled flag | |
:setIsInverted () |
Updates state control inverted feedback flag of the reference and setpoint | |
:setIsManual () |
Updates state control manual control signal value | |
:setManual () |
Updates state control manual control value | |
:setPower (,,) |
Updates state control proportional term power, integral term power and derivative term power | |
:setPower () |
Updates state control proportional term power, integral term power and derivative term power | |
:setPower () |
Updates state control proportional term power, integral term power and derivative term power | |
:setPowerD () |
Updates state control derivative term power | |
:setPowerI () |
Updates state control integral term power | |
:setPowerID (,) |
Updates state control integral term power and derivative term power | |
:setPowerID () |
Updates state control integral term power and derivative term power | |
:setPowerID () |
Updates state control derivative term power and derivative term power | |
:setPowerP () |
Updates state control proportional term power | |
:setPowerPD (,) |
Updates state control proportional term power and derivative term power | |
:setPowerPD () |
Updates state control proportional term power and derivative term power | |
:setPowerPD () |
Updates state control proportional term power and derivative term power | |
:setPowerPI (,) |
Updates state control proportional term power and integral term power | |
:setPowerPI () |
Updates state control proportional term power and integral term power | |
:setPowerPI () |
Updates state control proportional term power and integral term power | |
:setState (,) |
Works state control automated internal parameters | |
:setTimeSample () |
Updates state control static process time delta | |
:setWindup (,) |
Updates state control windup lower bound and windup upper bound | |
:setWindup () |
Updates state control windup lower bound and windup upper bound | |
:setWindup () |
Updates state control windup lower bound and windup upper bound | |
:setWindupD () |
Updates state control windup lower bound | |
:setWindupU () |
Updates state control windup upper bound | |
:tuneAH (,,) |
Tunes the state control using the Astrom-Hagglund method (AH)
|
|
:tuneAutoZN (,) |
Tunes the state control using the Ziegler-Nichols auto-oscilation method (ZN)
|
|
:tuneAutoZN (,,) |
Tunes the state control using the Ziegler-Nichols auto-oscilation method with overshot option (ZN)
|
|
:tuneIAE (,,) |
Tunes the state control using the integral absolute error method (IAE)
|
|
:tuneISE (,,) |
Tunes the state control using the integral square error method (ISE)
|
|
:tuneITAE (,,) |
Tunes the state control using the integral of time-weighted absolute error method (ITAE)
|
|
:tuneOverCHRLR (,,) |
Tunes the state control using the Chien-Hrones-Reswick method (CHR) load rejection 20% overshot |
|
:tuneOverCHRSP (,,) |
Tunes the state control using the Chien-Hrones-Reswick method (CHR) set point track 20% overshot |
|
:tuneProcCC (,,) |
Tunes the state control using the Choen-Coon method (CC)
|
|
:tuneProcCHRLR (,,) |
Tunes the state control using the Chien-Hrones-Reswick method (CHR) load rejection |
|
:tuneProcCHRSP (,,) |
Tunes the state control using the Chien-Hrones-Reswick method (CHR) set point track |
|
:tuneProcZN (,,) |
Tunes the state control using the Ziegler-Nichols plant process method (ZN)
|