变量定义:
Input
SV Real
PV Real
Reset Bool
Gain Real
Ti Real
Td Real
Manual_Enable Bool
Out_Max Real
Out_Min Real
dt Real
Output
Output Real
Kp_out Real
Ki_out Real
Kd_out Real
InOut
Manual_Vaule Real
Static
D_Value Real
Gain_Last Real
Ti_Last Real
Td_Last Real
Manual_Enable_Last Bool
Para_Change Bool
Td_Value Real
PV_Last Real
Gain_Value Real
Ti_Value Real
D_Value_Last Real
Ti_Value_Last Real
PID_OUT Real
Out_Last Real
Temp
Ti_Temp1 Real
Ti_Temp2 Real
Ti_Temp3 Real
Ti_Temp4 Real
Out_Temp Real
代码实现:
#D_Value := #SV - #PV;
REGION 判断参数是否发生变化
IF #G