登录
首页 PLC论坛 PLC论坛
回帖 发帖
正文

主题:模拟量输入数据的平滑处理

点击:35292 回复:32

This function provide to smooth a analog input. The function calculate the smooth value by add S/16 of previous value with (16-S)/16 of actual value
the formula used isOut = ([Smooth_factor]/16)*[Prev_value]+((16-[Smooth_factor])/16)*[Input_value]
S = smoothing factor X1 = initial value/previous output X2 = new input from I/O table
Valid entries for S smooth factorIf you want to.... then enter...Prevent the smoothing 0 Provide minimal smoothing 1 provide maximum smoothing 15
This function provide to smooth a analog input. The function calculate the smooth value by add S/16 of previous value with (16-S)/16 of actual value
the formula used is
Out = ([Smooth_factor]/16)*[Prev_value]+((16-[Smooth_factor])/16)*[Input_value]
S = smoothing factor X1 = initial value/previous output X2 = new input from I/O table
Valid entries for S smooth factor
If you want to.... then enter...
Prevent the smoothing 0 Provide minimal smoothing 1 provide maximum smoothing 15
02-09-29 09:56
不说罢了
04-12-07 14:09
看了更不懂 。不看还好。
04-12-07 14:42
为什么要这样呢!
04-12-07 15:13
不要说模拟量了,先说你的贴子就没人看懂!:)
04-12-08 11:54

引用 xiouxian 在 2004-12-8 11:54:00 发言【内容省略】

04-12-08 13:00
好象是个高手
04-12-08 13:18
还真是看 不懂呀!
04-12-08 14:14
有必要讲得这么复杂吗
04-12-09 08:38
不懂
04-12-11 23:26

上一页下一页

工控新闻

更多新闻资讯