1、在Factory IO中点击”File—-Driver”打开驱动窗口
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1.png)
2、在下拉列表中选择”Sienmens S7-200/300/400″
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-1.png)
3、选择configuration打开驱动配置窗口
4、确保madel下拉列表中被选择的是S7-200,并且Host区域中的地址是插入的是PLC的IP地址。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-2.png)
5、按ESC键返回到主驱动窗口,现在点击connect连拉到PLC,绿色图标则表示成功的选择连接了一个驱动,在状态条中也会显示这个驱动名称。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-3.png)
连接时的配置信息。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-8.png)
将Factory IO 的IO表导出
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-9.png)
在工作区的文件夹中有一个表格里面有变量信息。要把这个表格剪切到其它位置。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-10.png)
将这个地址和名称复制到PLC软件软件的变量表中。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-11.png)
复制到PLC编程软件中。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-12.png)
制作一个系统启动标志位,在启动时置位,在停止时复位,如果系统启动标志复位也跟着复位所有设备。
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-13.png)
系统启动标志位为1时,供料开关打开,对出料进行置位;供料开关闭时,对出料进行复位;系统启动标志位为1时,对传送带进行置位;
![](http://doc.cntworld.cn:8080/wp-content/uploads/2024/02/1-14.png)