西门子模块6GK7 343-1EX21-0XE0 西门子模块6GK7 343-1EX21-0XE0
硬件及络组态 本文以采1个315-2PN/DP,1个S7-200 ART PLC为例,介绍它们之间S7通信。
在STEP7中创建一个新项目,项目名称为S7-300-ART。1个S7-300,在硬件组态中CPU 315-2 PN/DP。如图4所示。

图4 STEP7 项目中S7-300点
设置CPU 315-2PN/DPIP地址:192.168.0.1,如图5所示。硬件组态完成后,即可下载该组态。

图5 设置CPU PN IP地址
打开“NetPro”设置络参数,选中CPU 315-2PN/DP,在连接列表中建立新连接。步骤如图6所示。

图6 NetPro组态视图中新连接
选择 Unspecified 点,选择通协议 S7 connection, Apply,如图7所示。

图7 组态新连接
在弹S7 connection属性对话框中,勾选 Establish an active connection,设置Partner address:192.168.0.2(S7-200 ART PLC IP 地址),如图8所示。

图8 设置S7连接参数
"Address Details" ,再弹来对话框设置 Partner Slot 为1,如图9所示。 OK即可关闭该对话框。

图9 设置“address details”参数
络组态创建完成后,需要编译,如图10所示。
