西门子MM430变频器代理商
西门子MM430变频器代理商
西门子MM430变频器代理商
_______________________
SIEMENS(西门子销售中心)
上海西邑电气技术有限公司
zx-plc.com )
联系人:万紫云(销售经理)

line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">串口模块ET200S 1SI(订货号:6ES7 138-4DF01-0AB0)是一款用于ET200S上的串口模块,支持两种软件协议(ASCII和3964(R)),通过接线区分可支持三种硬件接口(RS232C、RS422和RS485)。
在Step 7硬件组态中选择模块时,硬件目录中有以下六种版本的模块:
? ASCII (4B)
? ASCII(8B)
? ASCII(32B)
? 3964(R) (4B)
? 3964(R) (8B)
? 3964(R) (32B)
4/8/32字节代表数据传输的吞吐率大小,字节数越大,吞吐率越大,即数据传输越快,但是在ET200S机架上占用的I/O存储区也越多,如果从传输速率考虑,选择32B快,如果从占用的I/O区小考虑,选择4B占用少,根据具体应用要求选择。
模块信息及指示灯含义,如下图1所示。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图1 模块指示灯含义
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">RS232C、RS422和RS485三种接口通讯的终端模块端子分配和电缆连接,如下图2/3/4所示。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图2-1 RS232C接口终端模块端子分配
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图2-2 RS232C接口终端模块电缆连接
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图3-1 RS422接口终端模块端子分配
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图3-2 RS422接口终端模块电缆连接
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图4-1 RS485接口终端模块端子分配
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图4-2 RS485接口终端模块电缆连接
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">注意:RS485接口内部已经短接,不需要外部短接处理,只要直接连接1,2,8。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
2. 软件环境
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">2.1 STEP7 V5.4 SP5
用于编写S7-300/400程序,此软件需要从西门子购买,本文档中的部分代码使用Step7 V5.4 SP5的软件编写。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">2.2 ET200S 1SI 串行接口模块的功能块
STEP 7 软件中不包含ET200s 1SI模块做串口通讯的功能块,需要单独安装一个软件,然后在Libraries下才有ET200sSI的库,功能块可供通讯调用,该软件从以下的链接下载。25358470
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">2.3 串口调试器
第三方提供的串口调试工具,可以从互联网上免费下载,可用于测试串口通讯。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
3. 硬件列表和接线
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">3.1 硬件列表
| CPU | CPU317-2PN/DP | 6ES7 317-2EK14-0AB0 |
| ET200S | 接口模块 | 6ES7 151-1BA01-0AB0 |
| 功率模块 | 6ES7 138-4CA00-0AA0 | |
| 1 SI串口模块 | 6ES7 138-4DF01-0AB0 | |
| 功率模块的终端模块 | TM-P15S23-A0 | 6ES7 193-4CD20-0AA0 |
| 电子模块的终端模块 | TM-E15C24-01 | 6ES7 193-4CA30-0AA0 |
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">表1 硬件设备
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">3.2 硬件接线示意图
以RS232C的方式接线为例说明,1 Si 模块按照RS232C的接线方式连接到电脑的232口,连接示意图如下所示。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图5 硬件结构和接线示意图
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
4.组态设置和编程
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">4.1 组态和配置
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">1.打开STEP7,点击File->New...创建一新项目,项目名称为et200s ASCII。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图6新建项目对话框
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">2.用鼠标右键点击项目名称,选择Insert New Object->SIMATIC 300 Station,更改站的名称为 317-2PN/DP ,如下图7所示。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图7 插入S7-300站
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">3. 在硬件组态中按订货号和硬件安装次序依次插入机架、CPU和ET200S标准从站模块,如下图8所示,注意所选串行接口模块为32字节的1SI ASCII (这里仅考虑数据传输的吞吐率,不考虑占用的I/O存储区的大小)。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
西门子低压代理
图8组态硬件
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">4.双击1 SI ASCII 模块,点击Parameter选项,配置串口通信 参数。
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">
图9 参数分配
line;color:#333333;white-space:normal;background-color:#FFFFFF;"; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; -ms-word-break: break-all; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit;">本例中,“Interface”设为RS232C接口,勾选断线诊断,流量控制:无。通信波特率:9.6kb/s,数据位:8位,停止位:1位,奇偶效验:无,字符延迟时间:4ms,其他的参数都采用默认设置。注意:设定的参数要和通讯伙伴的相 同。
