Skip to main content

opc_write_values

Function opc_write_values 

Source
pub fn opc_write_values(
    pid: PidParameters,
    controller_type: ControllerType,
    integral_type: IntegralType,
) -> OpcWriteValues
Expand description

The literal integral/derivative values to write back to the DCS/PLC for one PidParameters, given the controller type the run was configured for. Pure port of the controller-type-conditional part of WritePIDparametersToOPCtags — proportional is always pid.proportional, so this only exists to decide integral/derivative, which ControllerType::P/ControllerType::Pi algorithms don’t use: