PLC API 4.2.1.3.13 FB_CTRL_STEP_PID The function block controls a digitally manipulated variable for the integration of actuators. It is based on a standard PID controller with an additional binary output signal in conjunction with the analog output and works without a precise position feedback signal. The position feedback signal required to calculate the controller output is estimated using the limiting values and the time required to reach these limits. The function block then generates pulses that are required to drive the actuator as a servomotor. Inputs VAR_INPUT fSetpointValue : LREAL; fActualValue : LREAL; bLimitSwitchPos : BOOL; bLimitSwitchNeg : BOOL; bAutoReset :
BOOL; nSensorType : E_CTRL_STEP_SENSORTYPES; fDisturbanceValue : REAL; bManualDigitalPos : BOOL; bManualDigitalNeg : BOOL; eMode : E_CTRL_MODE; END_VAR Outputs VAR_OUTPUT bCtrlDigitalPos : BOOL; bCtrlDigitalNeg : BOOL; fCtrlAnalog : LREAL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; TF4100 83 Version: 2.2.4 Name Type Description fSetpointValue LREAL Setpoint of the controlled variable fActualValue LREAL Actual value of the control value bLimitSwitchPos BOOL Limit switch, becomes TRUE when the upper stop is reached. bLimitSwitchNeg BOOL Limit switch, becomes TRUE when the lower stop is reached.
bAutoReset BOOL If the variable is TRUE, it resets the controller to initial conditions. nSensorType E CTRL STEP _ _ _ SENSORTYPES Enables the selection of the correct thermocouple type. fDisturbance Value REAL Actual value of the disturbance variable bManualDigital Pos BOOL If the variable is TRUE, the motor is manually set to the positive direction bManualDigital Neg BOOL If TRUE, the motor is manually set to the negative direction eMode E CTRL MODE _ _ Input specifying the operation mode of the controller