<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[求助：程序执行耗时问题]]></title>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148.html]]></link>
 <description><![CDATA[Latest 50 replies of 求助：程序执行耗时问题]]></description>
 <copyright><![CDATA[Copyright(C) 工控人家园]]></copyright>
 <generator><![CDATA[www.ymmfa.com]]></generator>
 <lastBuildDate><![CDATA[Mon, 20 Apr 2026 14:47:04 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[工控人家园]]></title>
 <link><![CDATA[http://www.ymmfa.com]]></link>
 <description><![CDATA[工控人家园]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第12楼mcsensor于2009-05-21 09:34发表的&nbsp;&nbsp;:
引用
引用第7楼lanjinghao于2009-05-18 12:44发表的&nbsp;&nbsp;:
我有个高压变频系统，PLC采用S7-200，触摸屏是TP277。现在触摸屏显示的运行频率、输入电流和输出电流有时会跳变到0，但实际的运行参数又没有任何变化。运行参数都是主控板采集或计算出来 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#526385.html]]></link>
 <author><![CDATA[lanjinghao]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Fri, 22 May 2009 09:41:05 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[引用
引用第7楼lanjinghao于2009-05-18 12:44发表的&nbsp;&nbsp;:
我有个高压变频系统，PLC采用S7-200，触摸屏是TP277。现在触摸屏显示的运行频率、输入电流和输出电流有时会跳变到0，但实际的运行参数又没有任何变化。运行参数都是主控板采集或计算出来的，PLC通过通讯指令读取到运行参数并存储到PLC的存储空间，然后通过 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#524839.html]]></link>
 <author><![CDATA[mcsensor]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Thu, 21 May 2009 01:34:11 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[你这个建议非常不错 [s:21]]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#522906.html]]></link>
 <author><![CDATA[lanjinghao]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Tue, 19 May 2009 03:12:03 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第7楼lanjinghao于2009-05-18 12:44发表的&nbsp;&nbsp;:
我有个高压变频系统，PLC采用S7-200，触摸屏是TP277。现在触摸屏显示的运行频率、输入电流和输出电流有时会跳变到0，但实际的运行参数又没有任何变化。运行参数都是主控板采集或计算出来的，PLC通过通讯指令读取到运行参数并存储到PLC的存储空间，然后通 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#522649.html]]></link>
 <author><![CDATA[醉湮邃虞]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Mon, 18 May 2009 15:49:13 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第4楼醉湮邃虞于2009-05-14 23:35发表的&nbsp;&nbsp;:
建议你在可能的情况下在主程序中加入：
诸如：if&nbsp;&nbsp; I0.0&nbsp;&nbsp; (or MB0&lt;&gt;0 )&nbsp;&nbsp;&nbsp;&nbsp;than&nbsp;&nbsp;call&nbsp;&nbsp;SUB0&nbsp;&nbsp;以缩短扫描周期，扫描周期过长的确会带来一系列问题。
我理解不是20毫秒不可 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#521996.html]]></link>
 <author><![CDATA[justinzhou]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Mon, 18 May 2009 05:29:47 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[有启发，有收获。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#521971.html]]></link>
 <author><![CDATA[justinzhou]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Mon, 18 May 2009 05:00:23 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[我有个高压变频系统，PLC采用S7-200，触摸屏是TP277。现在触摸屏显示的运行频率、输入电流和输出电流有时会跳变到0，但实际的运行参数又没有任何变化。运行参数都是主控板采集或计算出来的，PLC通过通讯指令读取到运行参数并存储到PLC的存储空间，然后通过触摸屏显示出来。而这个问题又是随机发生，有时候在试验平台有这个 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#521956.html]]></link>
 <author><![CDATA[lanjinghao]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Mon, 18 May 2009 04:44:14 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[从你叙述的通讯的控制出方式上看，感觉你的通讯控制方式有问题。你文中的计数器不是计数器，、而而是个计时器，用记时器就有可能造成通讯随机，这种随机方式有可能某个命令会很长时间比如10秒才发送一次，
使用个内存单元，比如VD0，为零时，0号通讯,完毕使其为1,然后1号通讯，结束后，使其为2,然后2号命令通讯.......... ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#519705.html]]></link>
 <author><![CDATA[醉湮邃虞]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Fri, 15 May 2009 08:16:57 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[现在有个问题是，自由口通讯轮询时间间隔为50ms，加个计数器，每个50ms计数器加1，判断计数器的值进行轮询发送通讯命令，一次轮询发送10个通讯命令。可能是扫描周期过长的原因，轮询的通讯命令不是按照顺序发送，而是随机发送。这样也就意味着一个轮询需要50×10＝500ms的时间，再加上20ms的扫描周期，有可能实际上一个轮 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#519277.html]]></link>
 <author><![CDATA[lanjinghao]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Fri, 15 May 2009 00:14:28 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[建议你在可能的情况下在主程序中加入：
诸如：if&nbsp;&nbsp; I0.0&nbsp;&nbsp; (or MB0&lt;&gt;0 )&nbsp;&nbsp;&nbsp;&nbsp;than&nbsp;&nbsp;call&nbsp;&nbsp;SUB0&nbsp;&nbsp;以缩短扫描周期，扫描周期过长的确会带来一系列问题。
我理解不是20毫秒不可控，而是各种动作要延迟20毫秒才能有动作。
至于加上20毫秒，如果需 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#519200.html]]></link>
 <author><![CDATA[醉湮邃虞]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Thu, 14 May 2009 15:35:33 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第1楼醉湮邃虞于2009-05-14 19:15发表的&nbsp;&nbsp;:
这里有个概念
你的整个工作过程20毫秒？这也太短了。程序控制的是微生物的什么？
你的整个程序扫描周期20毫秒？这也太长了。扫描周期超过15毫秒就要精检程序了，一般的在7毫秒左右。 
没明白你的意思,的，无从回答。
你这里有三个时间，50毫秒，20毫秒，第 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#518933.html]]></link>
 <author><![CDATA[lanjinghao]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Thu, 14 May 2009 12:07:43 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[定时器应该是跟程序扫描同时进行的，到程序扫描2个周期后，如果定时器在再过10MS后被扫描到，那么时间控制的是最精确的，如果定时器在2个周期+10MS之前就扫描了，那么到下一周期才会扫描到定时器输出变化]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#518898.html]]></link>
 <author><![CDATA[qwe123zxclk]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Thu, 14 May 2009 11:38:27 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[这里有个概念
你的整个工作过程20毫秒？这也太短了。程序控制的是微生物的什么？
你的整个程序扫描周期20毫秒？这也太长了。扫描周期超过15毫秒就要精检程序了，一般的在7毫秒左右。 
没明白你的意思,的，无从回答。
你这里有三个时间，50毫秒，20毫秒，第二个周期定时器时间。

定时器啥时记时，和他的输入端开毕时间有直 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-37148#518883.html]]></link>
 <author><![CDATA[醉湮邃虞]]></author>
 <category><![CDATA[西门子工控论坛]]></category>
 <pubdate><![CDATA[Thu, 14 May 2009 11:15:07 +0000]]></pubdate>
</item>
</channel></rss>