<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LT &#187; PLC</title>
	<atom:link href="http://www.davidrobot.com/tag/plc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidrobot.com</link>
	<description>walking and thinking</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:19:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>西门子C7-634 DP面板(OP17)串口连接线接线图</title>
		<link>http://www.davidrobot.com/2011/11/rs232_c7-634_op7_wire.html</link>
		<comments>http://www.davidrobot.com/2011/11/rs232_c7-634_op7_wire.html#comments</comments>
		<pubDate>Wed, 23 Nov 2011 08:22:23 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[HMI]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=5727</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2011/11/rs232_c7-634_op7_wire.html" title="西门子C7-634 DP面板(OP17)串口连接线接线图"></a>西门子面板C7-634 DP (OP17) 用ProTool下载数据时，需要串口连接电缆，但是该面板是15针母头D型接口，而电脑上串口是9针公头D型接口。那么15针和9针两者针脚是如何对应连线的呢？LT 对此作了笔记。 在网上搜索资料如下：http://www.plctalk.net/qanda/showthread.php?t=9115 I have cable of Siemens 6XV1440-2KH32 at my eyes. There are two side: 1-(for serial 9 pin) and another 2-(15 pin for OP). 9pin&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-15pin 1+4+6(are connected) 7+8(are connected) 2&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-4 3&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-3 5&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-12 在西门子网站上找到此电缆 6XV1440-2K___ 官方接线图 &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2011/11/rs232_c7-634_op7_wire.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2011/11/rs232_c7-634_op7_wire.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无线连接提升工业自动化现场调试效率</title>
		<link>http://www.davidrobot.com/2011/09/wireless_commissioning_on_site_with_tl-wr700n.html</link>
		<comments>http://www.davidrobot.com/2011/09/wireless_commissioning_on_site_with_tl-wr700n.html#comments</comments>
		<pubDate>Sat, 10 Sep 2011 08:18:28 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[机器人]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[PLC]]></category>
		<category><![CDATA[REIS]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=4893</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2011/09/wireless_commissioning_on_site_with_tl-wr700n.html" title="无线连接提升工业自动化现场调试效率"></a>现在大多数工业设备都已经集成了以太网功能，以方便工厂更好进行设备的信息管理。以PLC或者工业机器人为例，经常在工业自动化现场做调试的朋友可能会有这么样的感受，通常调试都需要带一根网线，用来将笔记本电脑和设备连接起来，而现场环境又不是那么完美，有时候为了增加笔记本的移动范围，往往用的网线很长，比如10米，拖个长尾巴不说，而且网线在现场拖来拖去，会弄得很脏。 自然而然就想到了无线连接，LT  的同事确实已经这么做了，曾见调试 PLC 的同事带了一个家用的无线路由器，只是体积硕大，很不方便。所以实用性不大。而比较小巧的无线路由器就只有苹果的 AirPort Express ，但是价格又贵。今年 TP-Link 推出了小巧的便携无线路由器  TL-WR700N，顿时让 LT 感到时机来了，于是花了85元大洋弄了一个测试。(同类产品还有68元的FW150RM 和 MW150RM，据说是硬件和TL-WR700N差不多，是穿了不同的马甲) TL-WR700N 比他的弟弟 TL-WR703N / TL-WR702N 个头大些，因为内置了电源插头，这个是插在插线板上的效果图。但个头比一般家用型的无线路由器小多了。（后来又出来个TL_WR800N，个头和TL_WR700N一样大，速率是300M） 下面是一个大小的比较，比信用卡大一些。 这种路由器一般都有AP工作模式，所谓AP，就是无线接入点，顾名思义就是能让无线网卡接入网络的功能。看到上图那个RJ45接口了么，如果用来连接设备，那么由设备出来的网线就直接插在这个网口了，然后笔记本通过无线网卡再和AP相连。就彻底摆脱网线，自由了。 为了实现自己的想法，LT 赶紧找了个工业机器人控制柜来测试，用一根网线，一头插入机器人控制柜的网口，一头插入WR700N，WR700N自带的电源插头这时候就显示出方便了，直接插在控制柜的电源插座上。看下面图片，找到 “小白”了么？ &#160; 笔记本上呢，以前是在有线网卡处设置IP的，这样就改为在无线网卡属性里设置了。搜索到AP的SSID，连接成功！嗯，试试距离，LT 跑到了车间的另一头，然后打开命令行窗口，ping 一下工业机器人的IP地址，无延迟，很完美！ 再试试专门的配套调试软件，哦也！完全能hold住！ P.S. 这个小装置，经常出差也用得着，酒店里用来将有线转为无线来用。这个本是它的设计初衷。 扩展阅读： 哪位高人做过step7无 线 监 控plc300程序的项目  http://bbs.e10000.cn/a/a.asp?B=302&#38;ID=910530 使用无线路由器实现计算机与PLC的以太网通信   &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2011/09/wireless_commissioning_on_site_with_tl-wr700n.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2011/09/wireless_commissioning_on_site_with_tl-wr700n.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>总线通讯中的看门狗 &#8211; 心跳检测</title>
		<link>http://www.davidrobot.com/2011/06/bus_communication_monitoring_watchdog_livebit.html</link>
		<comments>http://www.davidrobot.com/2011/06/bus_communication_monitoring_watchdog_livebit.html#comments</comments>
		<pubDate>Sun, 26 Jun 2011 15:30:25 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[机器人]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=4429</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2011/06/bus_communication_monitoring_watchdog_livebit.html" title="总线通讯中的看门狗 - 心跳检测"></a>熟悉单片机或工控机的朋友，想必都对看门狗有所熟悉。什么是看门狗呢？看门狗一般是主板的一个定时芯片，可以由程序启动，程序正常运行时，不断重置定时器，俗称“喂狗”。一旦程序异常，“喂狗”失败，定时时间到，便会触发复位电路，将系统重启。 在工业机器人应用中，常常需要用总线将 PLC 站和机器人控制器相连用于数据交换，典型的应用是在一个 Profibus 网络中，PLC 控制器充当主站，机器人控制器充当从站，那么对于总线通讯的状态，我们就需要监测。对于通讯错误，硬件报错自然可以查看到报警，但是软件我们如何监测呢？思路和看门狗一样的。 在讨论之前，我们设想一种情况：为何不能设置某个信号为1或者0，当监测不到这个信号时，就认为异常。这个是不行的，就如我们用电脑一样有时候死机，信号当然保持不动了。所以我们需要动态监测。 回想前面的看门狗思路，周期性地“喂狗”，定时器&#8230;..嗯，在机器人控制器里，需要设置一个定时器，用 PLC 主站发过来的信号周期性喂狗，一旦喂狗失败，定时器启动，便进行相应的后续处理。对于喂狗信号，需要检测动态特征，最简单的就是检测跳沿，用每次边沿触发来重置定时器（关于边沿检测，参考前面的文章《PLC 边沿检测原理》）。 这个周期性喂狗信号，还被赋予一个称呼“ Live Bit ”，最简单的可以用 PLC 主站发来脉冲信号来实现。机器人控制器收到后，再将其反转后回传给PLC主站，PLC 主站对其回传的反转信号再进行检测，以便判断通讯是否正常，并进行相应的后续处理。后来 LT 在与 雪野苍狼(eaglesky) 交流时，得知这种方法还有个中文名字叫“心跳检测”。 扩展阅读： 心跳检测：http://blog.csdn.net/loveforld/archive/2009/07/06/4325715.aspx 怎么编写程序判断触摸屏与PLC通讯失败与否: http://www.automationit.cn/webpage/forum/201101/2011011916221400001-1.shtml 关于工控机断电后PLC停机的问题: http://www.ad.siemens.com.cn/club/bbs/post.asp?b_id=4&#38;a_id=785525&#38;s_id=0&#38;num=6 如何做CPU心跳点: http://www.fa.omron.com.cn/forum/read.jsp?threadId=18776 DP看门狗? http://www.ad.siemens.com.cn/club/bbs/post.asp?b_id=7&#38;a_id=510516&#38;s_id=0&#38;num=10 watchdog/live bit mechanism http://www.copadata.com/forums/showthread.php?t=333 direct push技术原理 http://blog.csdn.net/charles1900/article/details/2060001 &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2011/06/bus_communication_monitoring_watchdog_livebit.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2011/06/bus_communication_monitoring_watchdog_livebit.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PLC 边沿检测原理</title>
		<link>http://www.davidrobot.com/2011/04/plc_flank.html</link>
		<comments>http://www.davidrobot.com/2011/04/plc_flank.html#comments</comments>
		<pubDate>Sat, 16 Apr 2011 10:19:44 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[机器人]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=3662</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2011/04/plc_flank.html" title="PLC 边沿检测原理"></a>还记得许久以前 LT 曾有篇日志对ABB的编程语言 RAPID 有无边沿检测功能作过讨论《RAPID 编程中对边沿检测》,当时 LT 对PLC 还不是很熟悉，所以未寻到答案。近期通过对PLC原理的学习，对此有些认识，笔记之。 所谓的边沿检测，就是检测某个信号从0变为1或从1变为0的这个过程，通常用于输入只需要一次的情况的，比如某个输入信号到来时只触发一次操作。 西门子PLC 的  S7  里，其提供了上升沿或下降沿的检测，STL语言里即 FP 或FN，可以在一个扫描周期内输出一个信号1。用法如下。 A        I0.1       // I0.1 输入信号 FP     M0.1     //检测 I0.1从0到1 =       Q4.0      // 输出 但是在 S5里面 ，并没提供这个指令，我们在S7里面也可以自行编写。原理是需要有一个存储位来存储信号前后的状态，比较即可输出。通常思路如下，以上升沿检测为例： &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2011/04/plc_flank.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2011/04/plc_flank.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>SPS-VISU配合STEP7仿真西门子PLC程序 &#8211; 乒乓电路</title>
		<link>http://www.davidrobot.com/2011/03/sps-visu_step7_s7_pingpang.html</link>
		<comments>http://www.davidrobot.com/2011/03/sps-visu_step7_s7_pingpang.html#comments</comments>
		<pubDate>Tue, 22 Mar 2011 13:43:38 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=3157</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2011/03/sps-visu_step7_s7_pingpang.html" title="SPS-VISU配合STEP7仿真西门子PLC程序 - 乒乓电路"></a>话说前段时间，在东家的培训课上，培训老师介绍了一个 S5/S7 仿真程序 SPS-VISU，这个软件可以仿真按钮、灯、气缸、升降机、传感器等众多工业自动化元素，如果用 STEP7 进行 PLC 编程并与之配合仿真，更加形象生动，比如气缸、升降机等元素是可以动作的，而 STEP7 中的  PLCSIM 组件就没有这种直观效果。所以用途呢，应该是定位于培训和演示以及临时仿真使用。具体如何，就让我们用个小程序来看看吧。 我们以设计一个乒乓电路(即单按钮起停)为例。一个输入按钮 I 0.0 ，一个输出指示灯 Q 4.0 ，按动一次按钮，灯泡亮，再按一次按钮，灯泡灭，如此反复。这个例子在《西门子PLC编程技术及工程应用》一书第79页可以找到(注* 这本书是 LT 买的第一本关于PLC工程应用的书，虽然此书内容上有些许错漏的地方，但是经过 LT 读后感受，书本的后几章偏重于PLC编程思路的介绍，与实际应用是很接近的。这本书，总体说了，值得一读)，不过原书只是给出了梯形图 ( LAD ) 的表达方式，并且原书并没有解释设计思路，而仅仅分析了给出的梯形图所完成的功能。梯形图虽然逻辑上不易理解，但是表达清楚，在某些工业元素如电机、阀门等处，易于监控，与好友雪野苍狼交流时，他告诉我这样子。不过，现在让 LT 用 STL 语句表的思路来考虑如何设计这个电路：如果要满足按钮按一下一种状态，需要使用边沿检测并将之存储，然后设置两个中间状态，并将之异或（  XOR 即相同出0不同出1），间断改变两个中间的状态，就可以实现一合一开的输出效果。 STL 语句实现如下： A    I0.0          //输入按钮 &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2011/03/sps-visu_step7_s7_pingpang.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2011/03/sps-visu_step7_s7_pingpang.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IBH LINK S7 PLUS 和 STEP7 连接初试</title>
		<link>http://www.davidrobot.com/2010/12/ibh_link_s7_plus_step7-step-by-step.html</link>
		<comments>http://www.davidrobot.com/2010/12/ibh_link_s7_plus_step7-step-by-step.html#comments</comments>
		<pubDate>Sun, 19 Dec 2010 08:50:48 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=2712</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2010/12/ibh_link_s7_plus_step7-step-by-step.html" title="IBH LINK S7 PLUS 和 STEP7 连接初试"></a>书接上回《Microsoft AppLocale 和 土耳其语不得不说的故事 – 关于 IBH LINK》，LT 介绍了软件安装过程遇到的一个问题的解决方案。 话说这回 LT 又有机会接触到这个IBH LINK，亲自体验了一回连接的过程。本文主角隆重登场：IBH LINK S7 PLUS 1、首先，在 PC  上安装软件，见上篇文章。然后进行硬件连接，用网线连接 IBH LINK 的网口和 PC 的网口。 2、在 PC 上打开 “IBHNet and IBHLink settings” ，出现 IBH Network Settings 的对话框。 3、然后点击 “S7 IBHLink”按钮。会出现 IBHLinks &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2010/12/ibh_link_s7_plus_step7-step-by-step.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2010/12/ibh_link_s7_plus_step7-step-by-step.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Microsoft AppLocale 和 土耳其语不得不说的故事 &#8211; 关于 IBH LINK</title>
		<link>http://www.davidrobot.com/2010/11/applocale-turkce-ibh_net_s7.html</link>
		<comments>http://www.davidrobot.com/2010/11/applocale-turkce-ibh_net_s7.html#comments</comments>
		<pubDate>Thu, 18 Nov 2010 08:33:41 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[PLC]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=2567</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2010/11/applocale-turkce-ibh_net_s7.html" title="Microsoft AppLocale 和 土耳其语不得不说的故事 - 关于 IBH LINK"></a>不得不说，Microsoft Applocale 和土耳其语真是一惊天地泣鬼神的绝配！还记得上次 LT 曾写过一篇文章《Microsoft AppLocale 解决专业软件乱码实例两则》, 其中提到过土耳其语，这次又要有请它了。 话说，有一个 PLC设备接口，IBH LINK ，如下图。此设备能将西门子 S7 的 MPI 接口转换为以太网接口 RJ45 , 这样可以通过交换机路由器来克服 长距离的问题。 去官方网站下载驱动，在下载页面，找到 IBH Link S7++ / IBH Link S7 / IBH Link S7 Plus ，下载程序 IBHNETSetup.exe 。但是在安装界面，遇到一个错误提示“ Error:      The filename, &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2010/11/applocale-turkce-ibh_net_s7.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2010/11/applocale-turkce-ibh_net_s7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrated PLC AC500 in IRC5</title>
		<link>http://www.davidrobot.com/2010/06/integrated-plc-ac500-in-irc5.html</link>
		<comments>http://www.davidrobot.com/2010/06/integrated-plc-ac500-in-irc5.html#comments</comments>
		<pubDate>Mon, 28 Jun 2010 17:02:33 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[机器人]]></category>
		<category><![CDATA[ABB]]></category>
		<category><![CDATA[IRC5]]></category>
		<category><![CDATA[PLC]]></category>
		<category><![CDATA[REIS]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=1489</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2010/06/integrated-plc-ac500-in-irc5.html" title="Integrated PLC AC500 in IRC5"></a>前面提到ABB的机器人系统是否有PLC功能，因为 LT 最高只接触到 S4C+ 的系统，所以以 LT 过时的知识只是了解到，到 S4C+ 系统为止，ABB 的机器人并没有集成PLC 功能，如果要让机器人同时提供其他控制功能，就要用到多任务( Multitasking )的功能，这对于那些习惯了PLC 编程的工程技术人员来说，多少有些不习惯。据 LT 所知，其他品牌的机器人，多少都集成了 PLC 功能，比如 Reis Robotics 的系统RSV就集成了一个软PLC系统，类似于S5的指令集。 近日笔者在逛ABB软件论坛时发现 ABB 的 IRC5 控制器已经出现了集成 AC500 PLC 的功能（查看这个主题：RobotWare 5.13\Utility\Integrated PLC）。在这个帖子里，j_proulx 提到在 RobotWare 5.13 里 ABB 引入了一个内部 PLC 功能。他还上传了一个PPT附件，里面介绍此功能，感兴趣的看官可以下来看看。 摘录一点PPT中的介绍： &#8230;<p class="read-more"><a href="http://www.davidrobot.com/2010/06/integrated-plc-ac500-in-irc5.html">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2010/06/integrated-plc-ac500-in-irc5.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RAPID 编程中对边沿检测</title>
		<link>http://www.davidrobot.com/2010/06/rapid-edge-detection.html</link>
		<comments>http://www.davidrobot.com/2010/06/rapid-edge-detection.html#comments</comments>
		<pubDate>Sat, 05 Jun 2010 11:58:31 +0000</pubDate>
		<dc:creator>LT</dc:creator>
				<category><![CDATA[机器人]]></category>
		<category><![CDATA[PLC]]></category>
		<category><![CDATA[RAPID]]></category>

		<guid isPermaLink="false">http://www.davidrobot.com/?p=1334</guid>
		<description><![CDATA[<a href="http://www.davidrobot.com/2010/06/rapid-edge-detection.html" title="RAPID 编程中对边沿检测"></a>RAPID （Robotics Application Programming Interactive Dialogue）是 ABB industrial robots 的编程语言 ，是 LT 非常欣赏的一种高级语言。 LT在使用中曾经遇到一搞PLC的同事咨询，ABB的IO系统是否可以象PLC那样有对信号边沿检测的功能？笔者当时并没有发现IO配置上有此功能，于是一直在思考这个问题。（如果看客你知道有这个功能，请不喜吝啬告诉小弟，不胜感激！） 近来在想，RAPID中的Interrupt功能不是就有此功能吗？当一个信号由0变为1，或由1变为0时，触发一个中断子程序来处理后续，是不是就有类似PLC中的上升沿，下降沿检测功能了么。 如果你有什么好的实现方法, 欢迎讨论:) P.S. 20110504补充： 后期的 IRC5 集成了PLC功能，那么这个边沿检测自然更不成问题了。参见《Integrated PLC AC500 in IRC5》]]></description>
		<wfw:commentRss>http://www.davidrobot.com/2010/06/rapid-edge-detection.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

