AnalogDevice object continuous execution: general
- Last UpdatedJul 18, 2024
- 1 minute read
If the AnalogDevice object is configured as an analog regulator:
-
Get the raw value of PV input.
-
Perform scaling, if enabled.
-
The new PVAuto value must be greater than the old PVAuto value by the Deadband value before PVAuto will be changed.
-
If PV.Mode is Auto, then PV equals PVAuto
-
-
The time stamp associated with PV.Input.Value is used to update PV and PVAuto, if they are updated.
-
Get the raw value of SP input.
-
Perform scaling, if enabled, and set the value of the input SP.
-
If SP has been commanded to change by a set attribute since the last execute, then reverse scale the output (if scaling is enabled) and output the requested value for SP. The original time stamp passed in the set call is used to update the time stamp of SP.WriteValue.
-
If alarming, then calculate the alarms.
If the AnalogDevice object is configured as a basic analog device with no output:
-
Same as AnalogRegulator for PV processing.
-
No SP processing.
If the AnalogDevice object is configured as a basic analog device with output:
-
Same as for analog with no output, but in addition, if the PV has been commanded to change by a set attribute since the last execute.
-
Reverse scale and output the requested value for PV.
-
The original time stamp passed in the set call is used to update the time stamp of PV.Output.Value.