回复:求助:PID控制种采样时间和作用方向问题

布什

  • 帖子

    139
  • 精华

    1
  • 被关注

    3

论坛等级:游士

注册时间:2004-04-08

普通 普通 如何晋级?

发布于 2005-07-04 13:00:44

0楼

Table TYPE Comment
Command Real Command value
Feedback REAL Feedback value
Zero_Int BOOL Zero integral value input
Freeze_Int BOOL Freeze integrator
Bipolar_Feedback BOOL Feedback signal is capable
of going bipolar
Invert_Output BOOL Invert the output for proper control
Kp REAL Proportion gain value
Ki REAL Integral gain value
Kd REAL Differential gain value
Integral_Lim REAL Bipolar limit of the
integral value
Last_Error REAL Previous scan error for
calculating rate
//of change for derivative
Integral_Value REAL Sum of the process integral
Correction REAL Correction output (unitless)
Max_Change_Per_Scan REAL Max allowable change in
error per scan
Error REAL Error value in current scan
Proportional REAL Proportional correction value
Derivative REAL Derivative correction value
Scan_Differential REAL Change in error in the last scan

L #Command
L #Feedback
-R
A #Bipolar_Feedback
JC BPLR
L #Command
>R
JC BPLR
TAK
BPLR: T #Error
L #Error
L #Last_Error
-R
L #Kd
*R
T #Derivative
L #Error
T #Last_Error
L #Error
L #Kp
*R
T #Proportional
A #Freeze_Int
JC FRZ
L #Error
L #Ki
*R
L #Integral_Value
+R
T #Integral_Value
FRZ: NOP 0
L #Integral_Value
L #Integral_Lim
>R
JC TOUT
L -1.000000e+000
*R
L #Integral_Value
JC TOUT
TAK
TOUT: T #Integral_Value
AN #Zero_Int
JC SKIP
L 0.000000e+000
T #Integral_Value
SKIP: NOP 0
L #Proportional

L #Integral_Value
+R
L #Derivative
+R
AN #Invert_Output
JC NINV
NEGR
NINV: T #Correction

这是我在E文网上找的一种PID算法,是S7-300的PID函数块,希望大家喜欢!!
主要特点,简单明.
除了老婆!我怕谁?
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54774条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。