# 如何通过InConnect云服务实现远程上下载西门子PLC程序

**URL:** <https://www.m2mlib.com/t/inconnect-plc/345>\
**Category:** InConnect\
**Tags:** InConnet-Client, 远程维护, 西门子\
**Created:** [2019 年11 月 15 日 10:20 UTC](https://www.m2mlib.com/t/inconnect-plc/345 "2019-11-15T10:20:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![zhangning](https://www.m2mlib.com/letter_avatar_proxy/v4/letter/z/c77e96/32.png) [@zhangning](https://www.m2mlib.com/u/zhangning)\
发布日期： [2019 年11 月 15 日 10:20 UTC](https://www.m2mlib.com/t/inconnect-plc/345/1 "2019-11-15T10:20:04Z")

</div>

[InConnct用户手册](https://inhandnetworks.s3.cn-north-1.amazonaws.com.cn/InConnect云平台用户手册.pdf)

1. [https://ics.inhandiot.com/](https://ics.inhandiot.com/) 注册账号
2. 电脑安装客户端软件，下载电脑端“OpenVPN配置文件”并导入该配置；
3. 在平台添加InRouter的序列号，并在路由器下添加PLC的IP地址。

[![IR611-remotemoniter3.png](https://www.m2mlib.com/storage/article/20200716/54dca0a1461997488fe1b435b01afe03.png "IR611-remotemoniter3.png")](https://www.m2mlib.com/storage/article/20200716/54dca0a1461997488fe1b435b01afe03.png)

1. 路由器可以上网之后，配置路由器链接平台；

[![IR611-remotemoniter1.png](https://www.m2mlib.com/storage/article/20200716/b61438cedf31dfeec899fa5c297d9a7f.png "IR611-remotemoniter1.png")](https://www.m2mlib.com/storage/article/20200716/b61438cedf31dfeec899fa5c297d9a7f.png)

[![IR611-remotemoniter2.png](https://www.m2mlib.com/storage/article/20200716/032384cab59207abe2cb7de12233e8ba.png "IR611-remotemoniter2.png")](https://www.m2mlib.com/storage/article/20200716/032384cab59207abe2cb7de12233e8ba.png)

使用OpenVPN GUI建立维护通道后，打开博图V13软件创建项目并选择相应的PLC（本次使用S7-300系列PLC）。

[![IR611-remotemoniter4.png](https://www.m2mlib.com/storage/article/20200716/ac541d7f5c6bd8bb52c128233a3ae1db.png "IR611-remotemoniter4.png")](https://www.m2mlib.com/storage/article/20200716/ac541d7f5c6bd8bb52c128233a3ae1db.png)

[![建立项目.jpg](https://www.m2mlib.com/storage/article/20191115/a8c3cadb4135d395ae664d61daedc4bb.jpg "建立项目.jpg")](https://www.m2mlib.com/storage/article/20191115/a8c3cadb4135d395ae664d61daedc4bb.jpg)

上传PLC程序：  
1.设置PLC的以太网参数，将IP地址修改为对应的虚拟IP（本次测试使用的虚拟IP为10.16.2.1）。

[![设置PLC以太网参数.jpg](https://www.m2mlib.com/storage/article/20191115/33a1da8f896e292eb90609a23e7b2f78.jpg "设置PLC以太网参数.jpg")](https://www.m2mlib.com/storage/article/20191115/33a1da8f896e292eb90609a23e7b2f78.jpg)

2.点击“转至在线”，按下图所示配置扫描参数，随后将扫描到的PLC转至在线。

[![转至在线.jpg](https://www.m2mlib.com/storage/article/20191115/251872f679a957efd5618e074eea9777.jpg "转至在线.jpg")](https://www.m2mlib.com/storage/article/20191115/251872f679a957efd5618e074eea9777.jpg)

3.选择需要上传程序的PLC并点击“从设备上传”。

[![从设备上传.jpg](https://www.m2mlib.com/storage/article/20191115/cdc8c88e9c789489ef8e4928c066346d.jpg "从设备上传.jpg")](https://www.m2mlib.com/storage/article/20191115/cdc8c88e9c789489ef8e4928c066346d.jpg)

4.勾选继续，点击从设备上传。等待完成程序上传。

[![继续.jpg](https://www.m2mlib.com/storage/article/20191115/a09be647c228fd153566a591f549e209.jpg "继续.jpg")](https://www.m2mlib.com/storage/article/20191115/a09be647c228fd153566a591f549e209.jpg)

5.完成PLC程序上传。

[![完成上传.jpg](https://www.m2mlib.com/storage/article/20191115/2dd4a2eb7631a1b5ee7525e302da431b.jpg "完成上传.jpg")](https://www.m2mlib.com/storage/article/20191115/2dd4a2eb7631a1b5ee7525e302da431b.jpg)

下载PLC程序：  
1.编写或修改好PLC程序后，配置PLC的IP地址为真实IP地址（如192.168.2.222）。

[![修改IP地址.jpg](https://www.m2mlib.com/storage/article/20191115/7a57e4aae351a4ef5e432cde0c079f73.jpg "修改IP地址.jpg")](https://www.m2mlib.com/storage/article/20191115/7a57e4aae351a4ef5e432cde0c079f73.jpg)

2.选择需要更新程序的PLC，点击“下载到设备”。

[![下载到设备.jpg](https://www.m2mlib.com/storage/article/20191115/8debdea589875c1f7502fd12800e33ac.jpg "下载到设备.jpg")](https://www.m2mlib.com/storage/article/20191115/8debdea589875c1f7502fd12800e33ac.jpg)

3.在“扩展的下载到设备”页面中的“目标子网中的兼容设备”中设定设备的访问地址为虚拟IP（本次测试使用的虚拟IP为10.16.2.1）。

[![设定访问地址.jpg](https://www.m2mlib.com/storage/article/20191115/379cd1d2b5ff7ec760a8b2005f99f7e4.jpg "设定访问地址.jpg")](https://www.m2mlib.com/storage/article/20191115/379cd1d2b5ff7ec760a8b2005f99f7e4.jpg)

4.点击其他任一位置使设定的地址生效，随后选择搜索到的PLC并点击下载。

[![选择下载的PLC.jpg](https://www.m2mlib.com/storage/article/20191115/fc8dc187a772917122f4fed9914715b2.jpg "选择下载的PLC.jpg")](https://www.m2mlib.com/storage/article/20191115/fc8dc187a772917122f4fed9914715b2.jpg)

5.按照下载流程下载程序并启动PLC，完成PLC程序下载。

[![完成PLC下载1.jpg](https://www.m2mlib.com/storage/article/20191115/fcae3fe5b38cb3ce1901406b7b086db7.jpg "完成PLC下载1.jpg")](https://www.m2mlib.com/storage/article/20191115/fcae3fe5b38cb3ce1901406b7b086db7.jpg)

[![完成PLC下载2.jpg](https://www.m2mlib.com/storage/article/20191115/6969f056d8300eb879cb1491ce5d08da.jpg "完成PLC下载2.jpg")](https://www.m2mlib.com/storage/article/20191115/6969f056d8300eb879cb1491ce5d08da.jpg)
