<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[请问这段程序为啥D70内容不停的在加一]]></title>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182.html]]></link>
 <description><![CDATA[Latest 50 replies of 请问这段程序为啥D70内容不停的在加一]]></description>
 <copyright><![CDATA[Copyright(C) 工控人家园]]></copyright>
 <generator><![CDATA[www.ymmfa.com]]></generator>
 <lastBuildDate><![CDATA[Wed, 29 Apr 2026 04:24:17 +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[玩这个的目的是什么？练习什么指令，或者到达什么效果。光光是程序，说明不了，成功和失败。不过这么看是失败了。虽然不知道目的。程序有问题改就是。又是for又是变址，又是inc，这些都是常见的指令。扫描时间也是个非常重要的参数。先用土方法解决问题。然后再用高级指令精妙方法来解决问题。这是一个过程。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930749.html]]></link>
 <author><![CDATA[libin520]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 04:06:20 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[PLC的程序是从头到尾不断的重复执行的，和电脑上C语言之类的不一样。
在第一个扫描周期内，Z0=0，然后在for循环内，D70只累加了一次；
但到了第二个扫描周期，Z0又重新等于0，然后开始for循环，D70又累加了一次；
所以应该是第一个MOV指令改为脉冲形式，这样后面的扫描周期里就不会使Z0一直变0了。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930742.html]]></link>
 <author><![CDATA[wear99]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 03:51:29 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[循环内没有一直在加，是每一次扫描周期开始后，第一次进入循环时累加一次，也就是Z0=0时累加一次]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930736.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 03:37:12 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[我觉得并不是循环内一直在加，而是你的SM400一直在，循环完一次又一次，自然你模拟看到的D70的值一直在加。你要看出结果，循环完一次就复位掉SM400]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930725.html]]></link>
 <author><![CDATA[咗臉ヅ微笑ぺ]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 02:56:48 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[作为小弟，我觉得有些大神，就是在哪里自以为是，装作很牛逼的样子，在那里很不服气的说搞笑哦！！！我很郁闷了，其实大家的指正我很愿意接受，但是那些嘲笑的人我觉得没法接受，你可以指正，可以告诉我怎么理解，可以提供你的思路，不要去嘲笑别人！再说你也不是很牛逼！我也没有看见你在论坛发过啥很牛逼的帖子，让大家 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930709.html]]></link>
 <author><![CDATA[yuetianbing]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:46:37 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[第5楼w45062099是不加思索或者没有分析验证，说得太绝对。程序初一看，会误认为是INC D70 条件会一直成立，认为加脉冲化P会只执行一次累加，实际上由于一个周期内存在OFF到ON到OFF，所以加脉冲化还是会每个周期累加一次，所以认为是等效于于SM400 INCP D70 是不对的。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930706.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:38:52 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[所以二楼说的不完全对。因为在一个周期内条件不会一致成立，所以即使加脉冲化P也是会累加]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930700.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:27:38 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[由于一个扫描周期内，都会存在INC D70条件成立，所以首先D70自加，之后INC D70条件不成立，不自加，这样一个周期内INC条件会有OFF编程ON又变成OFF；所以即使INC D70变为INCP 70，还是会每个周期加1]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930699.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:25:53 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第5楼w45062099于2017-10-26 21:44发表的&nbsp;&nbsp;:

搞笑，自己没明白什么问题，说2楼不对，自己云里雾里，程序写得就不行！再回去看书面壁思过吧！
[/quote]
 
大神，我是小弟呀，我只想告诉你我这样模拟对吗？莫非三菱的软件有问题呀？求解释？？？ [attachment=215674]]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930696.html]]></link>
 <author><![CDATA[yuetianbing]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:21:42 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[其实这个程序Z0和循环的作用基本上算是多余。由于D70等于本身，所以Z0=0时，加1，Z0不等于0时，D71-D112里的值不等于D70里的值，可以把程序简单化简为上图]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930694.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:21:11 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[先说第一个扫描周期，第一行Z0为0，执行到第二行，进行43次循环，第0次循环时，执行到第三行，此时由于Z0为0，所以条件= D70Z0 D70其实就是= D70 D70，显然条件是成立的，所以INC D70就会加1，也就是 D70为1，之后执行第四行，Z0自加为1（Z0为1），，接着执行到第五行NEXT，但是由于没有达到43次，所以再循环到第三行，（ ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930690.html]]></link>
 <author><![CDATA[枫落云端]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 01:10:50 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[呃，总感觉有问题]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930684.html]]></link>
 <author><![CDATA[咗臉ヅ微笑ぺ]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Fri, 27 Oct 2017 00:53:58 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[楼主对Plc 循环扫描工作方式不熟啊。
Inc z0后，
回到上面Mov k0 z0，
这样Z0永远是0，
D70Z0不就还是D70]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930643.html]]></link>
 <author><![CDATA[wsqjs]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 14:22:47 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第4楼yuetianbing于2017-10-26 21:36发表的&nbsp;&nbsp;:
谢谢大家的指正，这段程序，要么Z0=1要么就是D71Z0=D70时候在INC加一，同时更正下二楼管理员的回复，INCP是不行的！
[/quote]
搞笑，自己没明白什么问题，说2楼不对，自己云里雾里，程序写得就不行！再回去看书面壁思过吧！]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930630.html]]></link>
 <author><![CDATA[w45062099]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 13:44:54 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[谢谢大家的指正，这段程序，要么Z0=1要么就是D71Z0=D70时候在INC加一，同时更正下二楼管理员的回复，INCP是不行的！]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930625.html]]></link>
 <author><![CDATA[yuetianbing]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 13:36:22 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[此程序的症结 MOV K0 Z0
不要说for循环&nbsp;&nbsp;for循环是周期内的事情 我说的是一个个的周期
每次周期 Z0都=0 你说d70z0是不是就是D70? 是D70就加1很正常 Z0瞬间（周期内）就变成了43了
在单周期内 D70是不变的 下一个周期呢 在下一个呢]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930579.html]]></link>
 <author><![CDATA[不小心遇见你]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 10:07:47 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[每个扫描周期d70=d70=0，d70=d70=1,d70=d70=2……所以每个扫描周期d70都会+1，不知道理解的对不对[s:28]&#160;&#160;把mov k0 z0&#160;&#160;改成mov k1 z0应该可以变成楼主说的那样]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930576.html]]></link>
 <author><![CDATA[qq317438652]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 09:44:25 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[INC每一个扫描周期都加一次
如果INCP就是条件成立后只加一次]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1635182#1930570.html]]></link>
 <author><![CDATA[ymmfa]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Thu, 26 Oct 2017 09:24:41 +0000]]></pubdate>
</item>
</channel></rss>