FB PI-Control V15.0.7
FB PI-Control V15.0.7
FB PI-Control V15.0.7
7"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
VAR CONSTANT
END_VAR
BEGIN
#PastTime := LREAL_TO_REAL(RUNTIME(#StaticCycleTime_Aux));
IF #ib_Reset THEN
#Controller_Response_Integral := 0.0;
#or_Output := 0.0;
ELSE
END_IF;
#Controller_Response_Integral := #Lower_limit;
END_IF;
#Controller_Response_Integral := #Upper_limit;
END_IF;
END_IF;
END_IF;
#Controller_Response_Integral := #Lower_limit;
END_IF;
IN := #Controller_Response_Proportional + #Controller_Response_Integral,
MX := #Upper_limit);
END_IF;
END_FUNCTION_BLOCK
FUNCTION_BLOCK "fb_D-Control_V15.0.5"
TITLE = D-Regler
{ S7_Optimized_Access := 'TRUE' }
AUTHOR : sf
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
VAR_TEMP
HoldingTime : Real; // in s
END_VAR
BEGIN
#PastTime := LREAL_TO_REAL(RUNTIME(#StaticCycleTime_Aux));
#Intermediate_value := 0;
#or_Output := 0;
ELSE
END_IF;
END_IF;
END_FUNCTION_BLOCK
FUNCTION_BLOCK "fb_PID-Control_V15.0.6"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
VAR CONSTANT
END_VAR
BEGIN
#"idb_PI-Control"(ir_Input := #ir_Input,
ir_Setpoint := #ir_Setpoint,
ir_ProportionalGain := #ir_ProportionalGain,
ir_IntegrationGain := #ir_IntegrationGain,
ib_Reset := #ib_Reset,
ir_DifferentialGain := #ir_DifferentialGain,
itime_DifferezialActionTime := #itime_DifferezialActionTime,
ib_Reset := #ib_Reset,
IN := #"ControllerResponse_Integral+Proportional" +
#ControllerResponse_Differential,
MX := #Upper_limit);
END_FUNCTION_BLOCK