实现功能:想实现通过网络,局域网或者外网给PLC下载程序。PLC连接串口服务器,串口服务器直接与电脑端虚拟串口软件建立网络连接,PLC编程软件与虚拟串口连接,编程软件通过虚拟串口+串口服务器的形式下载和上载或者监控PLC的程序。
一、硬件连接
S7-200 PLC连接PPI编程线缆,PPI编程线缆的RS232端连接串口服务器的RS232口,串口服务器网口连接电脑网口或者路由器网口。

二、串口服务器配置
设置串口服务器的IP地址与局域网网段一致,设置串口服务器的波特率为9600,校验数据位停止位:EVEN 8 1。这个参数要和PLC的参数一致。

三、虚拟串口配置
打开虚拟串口软件,并创建虚拟串口

虚拟串口创建完成后的界面如图所示。
四、V4.0 STEP 7 MicroWIN SP9软件配置
打开S7-200的编程软件 setp 7软件。


五、设置通信COM口及超时时间
点击设置PG/PC接口,选择PC/PPI,点击属性,将超时时间设置大点,设置10或者100。

然后点击本地连接选择刚才虚拟的串口com2

六、 搜索PLC设备
点击【通信】,双击刷新,软件会自动搜索PLC,搜索到之后,点击确定。


七、新建PLC工程程序,并下载
点击下载,下载时会提示下载进度条。


八、上载程序


九、PLC程序运行(RUN)和停止(STOP)
可以控制PLC的运行状态,此时观察PLC的指示灯会有变化。

十、程序状态监控
关键词:智嵌物联串口服务器连接西门子PLC(智嵌物联接线)