全国服务热线: 17373148720
企业新闻

SIEMENS/西门子S7-300通讯模块CP340带RS232C接口(V.24)6ES7340-1AH02-0AE0

发布时间:2023-12-17        浏览次数:3        返回列表
前言:西门子PLC.西门子变频器,西门子电机.西门子触摸屏.西门子电缆.西门子变压器.西门子高压变频器.西门子低压配电设备
SIEMENS/西门子S7-300通讯模块CP340带RS232C接口(V.24)6ES7340-1AH02-0AE0-宣传视频
SIEMENS/西门子S7-300通讯模块CP340带RS232C接口(V.24)6ES7340-1AH02-0AE0
在安装时如图所示按图号顺序安装,总结一句话就是:<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">3.项目成功创建后,我们点击左下角的“项目视图"转到编辑界面:4.点击项目名称左边的小箭头展开项目树,双击“添加新设备"5.接下来我们先插入一个CPU1516-3PN/DP:请依次点击“控制器"、“SIMATIC S7-1500"、“CPU"、“CPU 1516-3PN/DP"左侧的小箭头展开项目树,然后选择PLC订货号“6ES7 516-3AN00-0BA0",*后点击“确认"按钮插入:7.现在我们再插入一个DI模块:在“设备视图"右侧的产品目录中,依次点击“DI"、“DI 16*24VDC HF"左侧的小箭头展开项目树,然后用鼠标点中订货号“6ES7 521-1BH00-0AB0",按住鼠标左键不放,将DI模块拖拽到3号槽位上,松开鼠标:<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">8.设备组态至此已经完成,在项目视图下方的“设备概览"中,我们可以查看到系统默认分配的数字量输出地址是QB0~QB1,数字量输入的地址是IB0~IB1:9.编写变量表:为了提高程序的可读性,我们需要对I/Q地址起一些符号名。<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">----1.双击项目树中的“显示所有变量"----2.在变量表中,我们定义地址I0.0的名称是“Moto_Start", 地址I0.1的名称是“Moto_Stop", 地址Q0.0的名称是“Moto"。<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">10.接下来我们开始编程:依次点击软件界面左侧的项目树中的“PLC_1[CPU 1516-3PN/DP]"、“程序块"左侧的小箭头展开结构,再双击“Main[OB1]"打开主程序:----5.接下来我们为逻辑指令填写地址:单击指令上方的,依次输入地址I0.0,I0.1,Q0.0和Q0.0,如下图所示:<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">一、要对S7-1500进行项目下载,我们首先要设置电脑网卡的IP地址。由于在之前的项目组态中,CPU1516-3PN/DP的“PROFNET接口_1"的默认的IP地址是192.168.0.1,因此我们要将电脑网卡的IP地址设为192.168.0.2。----1.打开Windows 7 操作系统的控制面板,找到小图标视图,单击打开“Network and Sharing Center":----2.点击窗口左侧的“Change Adapter settings":----3.鼠标右击实际使用的本地连接,选择属性(Properties)----4.在属性窗口中:选中“Internet Protocol Version 4(TCP/IPv4)",再点击属性按钮:二、STEP 7 Professional V12 软件中的下载操作:----1.我们先选中项目树中的“PLC_1[CPU1516-3PN/DP]",然后点击“在线"下拉菜单中的“扩展的下载到设备(X)…."----2.在“扩展的下载到设备"窗口中:--------a.选择“PG/PC接口类型"为“PN/IE"<p helvetica="" neue",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" background-color:="" rgb(255,="" 255,="" 255);="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="" style="margin-top: 0px; margin-bottom: 24px; padding: 0px; border: 0px; font-family: "Microsoft YaHei"; white-space: normal; background-color: rgb(255, 255, 255); outline: 0px; max-width: ****; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-size: 17px; letter-spacing: 0.544px; text-align: justify;">--------b.选择“PG/PC 接口"为实际使用的网卡----如果CPU1516-3PN/DP没有出现在“目标子网的兼容设备"窗口中,请您再勾选“显示所有兼容的设备"(1)将PLC的模式开关设置为RUN,如下所示:(2)按下连接在输入点I0.0上的按钮,即可看到输出点Q0.0点亮了。至此,表明我们的程序和PLC运行一切正常
推荐产品
信息搜索
 
上海乘晖科技集团有限公司
  • 地址:上海市奉贤区驰华路775号2幢
  • 手机:17373148720
  • 联系人:肖先生