wloe2gf 发表于 2024-10-3 18:42:23

Proface触摸屏和西门子S7-1200/1500标签通讯


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">本文介绍Proface触摸屏和西门子S7-1200/1500 CPU的标签通讯。</span></p>



    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">PLC型号</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">CPU1511-1PN</span></span></p>


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">HMI型号</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">5B10+SP5500TP</span></span></p>


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">PLC-IP<span style="color: black;">位置</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">192.168.1.100</span></span></p>


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">HMI-IP<span style="color: black;">位置</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">192.168.1.11</span></span></p>



    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">请<span style="color: black;">按照</span><span style="color: black;">实质</span><span style="color: black;">运用</span><span style="color: black;">状况</span><span style="color: black;">选取</span>对应的型号。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">GP-Pro EX 软件设置</strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■</span></span><span style="color: black;"><span style="color: black;">制造商<span style="color: black;">选取</span></span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Siemens AG</span></span></strong><span style="color: black;">,系列<span style="color: black;">选取</span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">TIA Portal Ethernet</span></span></strong><span style="color: black;">,端口</span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">默认以太网(TCP)</span></span></strong><span style="color: black;">:</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/q_70/images03/20240813/52822ceb06c74068afbbe2d71ed98636.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■特定<span style="color: black;">掌控</span>器中,IP Address 填入 PLC 的 IP <span style="color: black;">位置</span>,<span style="color: black;">而后</span>导入变量表:</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/q_70/images03/20240813/4767137be84d4f6d9bea8dfb4d6af3d4.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">变量表导入</strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■在特定<span style="color: black;">掌控</span>器设置中,勾选 </span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Use Tag Data</span></span></strong><span style="color: black;">,<span style="color: black;">而后</span>点击 </span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">New</span></span></strong><span style="color: black;">:</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q4.itc.cn/q_70/images03/20240813/4a6e5e44bc00411cb6bda98c234ec13e.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">■</span></span></strong><span style="color: black;"><span style="color: black;">在 Tag list 界面中点</span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Import:</span></span></strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/q_70/images03/20240813/2be2deaa31664431ae0ae5f340a02614.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■在</span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Tag Import</span></span></strong><span style="color: black;">界面中点击 </span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Browse</span></span></strong><span style="color: black;">,<span style="color: black;">而后</span>找到需要导入变量表的PLC 程序,选中该程序,<span style="color: black;">而后</span>点击打开,等待导入</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q5.itc.cn/q_70/images03/20240813/b8786d38d2654241a3d73a4acd85d2ca.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■当导入完成时,在 </span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Tag Import </span></span></strong><span style="color: black;">界面中点击 OK,在 </span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Tag list</span></span></strong><span style="color: black;">界面中点击 OK</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/q_70/images03/20240813/29edf8a42b8c4520a4f2b1f2b31b5e37.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■在特定<span style="color: black;">掌控</span>器设置中点击确定,至此变量表就导入完成</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q5.itc.cn/q_70/images03/20240813/65bec288c6824542a8da5a5f4d7430be.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■当需要</span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">更新</span></span></strong><span style="color: black;">HMI 工程中的变量表内容时,若 PLC 程序当前所在路径与首次导入时保持一致,打开特定<span style="color: black;">掌控</span>器设置,点击</span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">Edit-Import</span></span></strong><span style="color: black;">,<span style="color: black;">就可</span>完成更新</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">■<span style="color: black;">能够</span><span style="color: black;">运用</span></span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">通用设置-符号变量设置</span></span></strong><span style="color: black;"><span style="color: black;">,利用导入的 PLC 变量表来创建位<span style="color: black;">位置</span>和字<span style="color: black;">位置</span>,以方便后期调试、</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/q_70/images03/20240813/610717d498424697a3413b94319022df.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">重视</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">!</span></span></strong><span style="color: black;"><span style="color: black;">非首次导入时,PLC 程序当前所在路径与之前保持一致,<span style="color: black;">然则</span>修改了程序名<span style="color: black;">叫作</span>(如下图所示),变量<span style="color: black;">能够</span>导入成功,<span style="color: black;">然则</span>原工程所有部件绑定好的<span style="color: black;">位置</span>会丢失,<span style="color: black;">表示</span>为 Undefined</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q3.itc.cn/q_70/images03/20240813/dfdfdce1dac247bba53811dfa811f97e.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">!</span></span></strong><span style="color: black;"><span style="color: black;">变量名<span style="color: black;">叫作</span>以及变量所在的每一层的名<span style="color: black;">叫作</span><span style="color: black;">不可</span>含有以下符号,否则会<span style="color: black;">引起</span>导入变量失败</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;"><span style="color: black;">不可</span>含有的符号依次为:</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">.,!“$%^&amp;*-+={}[]/\?#@~:;&lt;&gt;‘’|</span></span></strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/q_70/images03/20240813/a11a6f0fbf1a49759369b29f5cc926c9.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">!</span></span></strong><span style="color: black;"><span style="color: black;">变量表导入以后,不更改 PLC 程序存储路径,否则再次导入变量表可能会<span style="color: black;">显现</span>部件绑定好的<span style="color: black;">位置</span>丢失的<span style="color: black;">状况</span>,部件<span style="color: black;">位置</span>栏<span style="color: black;">表示</span>为 Undefined</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">西门子 PLC 设置</strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">■</span></span></strong><span style="color: black;"><span style="color: black;">将西门子 PLC 的以太网端口的 IP <span style="color: black;">位置</span>设置为 </span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;">192.168.1.100</span></span></strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q0.itc.cn/q_70/images03/20240813/abb66ef9d03247c0931e7fd9e0d1455b.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">■</span></span></strong><span style="color: black;"><span style="color: black;">设置 PLC 的防护与安全,在连接机制中勾选“</span></span><strong style="color: blue;"><span style="color: black;"><span style="color: black;"><span style="color: black;">准许</span>来自远程对象的 PUT/GET 通信<span style="color: black;">拜访</span></span></span></strong><span style="color: black;">”</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/q_70/images03/20240813/fc86555860ba45c0abbc80e7fcb92d63.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">测试</strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">(1)将人机界面程序及 PLC 程序分别下载</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">(2)用网线将人机界面和 PLC 连接起来。</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">(3)按下开关 M000,Q000 指示灯变亮;松开开关 M000,Q000 指示灯变灭,则通讯成功。按下<span style="color: black;">或</span>松开开关 M001 和 M002,相应指示灯<span style="color: black;">亦</span>会<span style="color: black;">显现</span>相同的变化</span></span></span><a style="color: black;"><span style="color: black;">返回<span style="color: black;">外链论坛: http://www.fok120.com</span>,查看<span style="color: black;">更加多</span></span></a></p>

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">责任编辑:网友投稿</span></p>




j8typz 发表于 2024-10-22 13:32:24

论坛是一个舞台,让我们在这里尽情的释放自己。

b1gc8v 发表于 2024-10-25 23:29:17

我们有着相似的经历,你的感受我深有体会。

nqkk58 发表于 2024-11-13 15:20:37

我们有着相似的经历,你的感受我深有体会。
页: [1]
查看完整版本: Proface触摸屏和西门子S7-1200/1500标签通讯