摘要:color: #f85959。color: #f85959。

<div><p>控制的目的</p><p>当传感器检测到人或车时时警示灯点亮。</p><div class="pgc-img"><img src="http://p3.pstatp.com/large/pgc-image/1532436790240aa877e9904" img_width="631" img_height="301" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>控制要求</p><p>人一侧</p><p>1、当传感器X0检测到人通过时,绿灯Y1闪烁。</p><p>2、当人通过传感器X1 5S后,绿灯Y1熄灭</p><p>汽车一侧</p><p>1、当传感器X2检测到汽车通过时,绿灯Y4点亮。</p><p>2、汽车通过传感器X3 5S后,绿灯Y4熄灭</p><p>3、如果汽车在传感器X2和X3之间停留10S,红灯Y3点亮,并且蜂鸣器Y7响</p><p>4、汽车通过X3处传感器时,红灯Y3熄灭,并且蜂鸣器Y7停止</p><p>梯形图及各个IO点的配置</p><div class="pgc-img"><img src="http://p9.pstatp.com/large/pgc-image/153243648824393b5c883da" img_width="1027" img_height="699" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>执行过程</p><p>人通过时</p><div class="pgc-img"><img src="http://p3.pstatp.com/large/pgc-image/1532436514426723b1da81e" img_width="1023" img_height="748" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>人经过X0时,使Y0得电输出,使红灯亮</p><div class="syl1532437192831"><p><style> #pgc-card .pgc-card-href { text-decoration: none; outline: none; display: block; width: 100%; height: 100%; } #pgc-card .pgc-card-href:hover { text-decoration: none; } /*pc 样式*/ .pgc-card { box-sizing: border-box; height: 164px; border: 1px solid #e8e8e8; position: relative; padding: 20px 94px 12px 180px; overflow: hidden; } .pgc-card::after { content: " "; display: block; border-left: 1px solid #e8e8e8; height: 120px; position: absolute; right: 76px; top: 20px; } .pgc-cover { position: absolute; width: 162px; height: 162px; top: 0; left: 0; background-size: cover; } .pgc-content { overflow: hidden; position: relative; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .pgc-content-title { font-size: 18px; color: #222; line-height: 1; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pgc-content-desc { font-size: 14px; color: #444; overflow: hidden; text-overflow: ellipsis; padding-top: 9px; overflow: hidden; line-height: 1.2em; display: -webkit-inline-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .pgc-content-price { font-size: 22px; color: #f85959; padding-top: 18px; line-height: 1em; } .pgc-card-buy { width: 75px; position: absolute; right: 0; top: 50px; color: #406599; font-size: 14px; text-align: center; } .pgc-buy-text { padding-top: 10px; } .pgc-icon-buy { height: 23px; width: 20px; display: inline-block; background: url(https://s0.pstatp.com/pgc/v2/pgc_tpl/static/image/commodity_buy_f2b4d1a.png); }</style><div id="pgc-card" class="pgc-card"> <a href="https://uland.taobao.com/coupon/edetail?e=%2BygJBl76gN8GQASttHIRqRFUlibnY2uReIG8W1%2BEkZ%2FGVWvbOqykriyl9y2g8y99dR9SExamYgKatrMfww8EHFC%2FNehToczZDfqEFBOhTczbpK7bHbgeQb7%2Bt6mc%2FYewU60KZFGdFtpeXM%2BWro8TU9ANYcnCzwncvSuyvDjpcHlQND4yg8MKgL7Ix3F%2BnHc%2BPhZYeJM7X5hXebHXmfEAdYb%2FfW10abqX3UKSr9ahxUn7J8FmRkgg%2BCUzVkkdwsIm" target="_blank" class="pgc-card-href"> <div class="pgc-cover" style="background-image:url(https://img.alicdn.com/bao/uploaded/i2/TB16OdCRpXXXXX.aXXXXXXXXXXX_!!0-item_pic.jpg)"></div> <div class="pgc-content"> <div class="pgc-content-title">三菱PLC技术完全攻略 PLC控制系统设计方法及技巧 三菱plc编程入门教程书籍</div> <div class="pgc-content-desc"></div> <div class="pgc-content-price">¥133.8</div> </div> <div class="pgc-card-buy"> <div><i class="pgc-icon-buy"></i></div> <div class="pgc-buy-text">领5元券</div> </div> </a></div></p></div><p>人经过X1时</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/15324365516996dd864e9b9" img_width="1028" img_height="700" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>车进入时</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/1532436592149883b0cfb60" img_width="1027" img_height="721" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>Y4得电并使灯亮。</p><p>车在中间时</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/1532436622231c5b8ebbbc4" img_width="1025" img_height="747" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>T2定时10S</p><div class="pgc-img"><img src="http://p3.pstatp.com/large/pgc-image/15324366552006b3af47865" img_width="1026" img_height="700" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>定时10s时间到后Y4Y7得电。</p><p>车经过以后</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/1532436683691f95ba63d5d" img_width="1025" img_height="695" alt="图文详解基于FX系列PLC的传感器检测的程序" inline="0"><p class="pgc-img-caption"></p></div><p>Y4Y7复位。</p><div class="syl1532437192834"><p><style> #pgc-card .pgc-card-href { text-decoration: none; outline: none; display: block; width: 100%; height: 100%; } #pgc-card .pgc-card-href:hover { text-decoration: none; } /*pc 样式*/ .pgc-card { box-sizing: border-box; height: 164px; border: 1px solid #e8e8e8; position: relative; padding: 20px 94px 12px 180px; overflow: hidden; } .pgc-card::after { content: " "; display: block; border-left: 1px solid #e8e8e8; height: 120px; position: absolute; right: 76px; top: 20px; } .pgc-cover { position: absolute; width: 162px; height: 162px; top: 0; left: 0; background-size: cover; } .pgc-content { overflow: hidden; position: relative; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .pgc-content-title { font-size: 18px; color: #222; line-height: 1; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pgc-content-desc { font-size: 14px; color: #444; overflow: hidden; text-overflow: ellipsis; padding-top: 9px; overflow: hidden; line-height: 1.2em; display: -webkit-inline-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .pgc-content-price { font-size: 22px; color: #f85959; padding-top: 18px; line-height: 1em; } .pgc-card-buy { width: 75px; position: absolute; right: 0; top: 50px; color: #406599; font-size: 14px; text-align: center; } .pgc-buy-text { padding-top: 10px; } .pgc-icon-buy { height: 23px; width: 20px; display: inline-block; background: url(https://s0.pstatp.com/pgc/v2/pgc_tpl/static/image/commodity_buy_f2b4d1a.png); }</style><div id="pgc-card" class="pgc-card"> <a href="https://s.click.taobao.com/t?e=m%3D2%26s%3DqdHMEpKG2z8cQipKwQzePOeEDrYVVa64XoO8tOebS%2BdRAdhuF14FMVbNOGmjB5ar1aH1Hk3GeOi%2Fd9aMATwSlgPpAxRc2hl%2BDkTLlyKkkO75Z5fY4E52ootgwMO1YqTJ4q%2BRXokHRqtJj8mT44MdBHQC%2B2qnp67EwG%2BoD66Gtg7TD8PGCRICO%2Bosac%2By6Xv%2F44C0XafTRCPwU0lUoCOLqa599K4T39MaOz9E7h8ol3G1F%2FvqI8YzPbCSDu2lkM9fTkB6%2FHOV8b7GDmntuH4VtA%3D%3D" target="_blank" class="pgc-card-href"> <div class="pgc-cover" style="background-image:url(https://img.alicdn.com/bao/uploaded/i2/2960779084/TB26Gfzai2A11Bjy0FdXXbPwVXa_!!2960779084.jpg)"></div> <div class="pgc-content"> <div class="pgc-content-title">三菱FX3U PLC学习机实验箱板触摸屏组态编程变频器PLC程序例子</div> <div class="pgc-content-desc"></div> <div class="pgc-content-price">¥790</div> </div> <div class="pgc-card-buy"> <div><i class="pgc-icon-buy"></i></div> <div class="pgc-buy-text">购买</div> </div> </a></div></p></div></div>
相关文章