如何监视s7-200与串行设备之间的自由口通信

上传人:E**** 文档编号:107010010 上传时间:2019-10-17 格式:PDF 页数:3 大小:134.79KB
返回 下载 相关 举报
如何监视s7-200与串行设备之间的自由口通信_第1页
第1页 / 共3页
如何监视s7-200与串行设备之间的自由口通信_第2页
第2页 / 共3页
如何监视s7-200与串行设备之间的自由口通信_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《如何监视s7-200与串行设备之间的自由口通信》由会员分享,可在线阅读,更多相关《如何监视s7-200与串行设备之间的自由口通信(3页珍藏版)》请在金锄头文库上搜索。

1、Service & Support (填写文档类型:常问问题) P1-3 如何监视如何监视 S7-200 和串行设备之间的自由口通信?和串行设备之间的自由口通信? 配置注意事项:配置注意事项: 此条目描述了监视 S7-200 和串行通信设备(如一个调制解调器)之间的 ASCII(自由口)通信的简易方 法。 这是通过在 PPI 电缆上附加一个适配器实现的。 功能:功能: 由于通信端口在物理上是 RS485 通信口,因此即便工作在自由口模式下,它也是支持总线通信的。只 有在使用了 RS232/PPI 电缆(作为一个电平转换器)之后,通信口才会变成 RS232 物理接口。 这个特性可以用来和一个适配

2、器配合进行被动监听。 这里使用了 RS485 接口,而且附加的 RS232/PPI 电缆要连接到这个接口上。 图 01 在 PC 侧,数据只能通过串行口监控。您可以使用 HyperTerminal (超级终端)来做此项工作。 这个做法的优点在于附加于 RS485 侧的 PPI 电缆。RS485 总线上发送和接收的数据都会通过电缆。 这样在附加的 PPI 电缆的 RS232 侧就可以同时监视双向的数据通信。但是也有缺点:无法自动分辨 什么是发送的数据、什么是接收的数据。 当然如果协议是已知的,在分辨起来不难。 以下是不同做法的相关描述。 版本版本 A/B (需要焊接和特殊元器件需要焊接和特殊元器

3、件) 配置 A: 图 02 配置 B: 图 03 元器件元器件 Version A Version B 电缆 9-针电缆 9-针扁平电缆 插头 1x 带焊接针 1x 带扁平电缆压接头 插座 2x 带焊接针 2x 带扁平电缆压接头 PPI 电缆 1x RS232/PPI 电缆 1x RS232/PPI 电缆 表 01 版本版本 C (使用标准设备使用标准设备) 配置 C: Service & Support (填写文档类型:常问问题) P2-3 Fig. 04 元器件元器件 版本版本 C PROFIBUS 电缆 约 1m 长的标准 PROFIBUS 电缆 PROFIBUS 连接器 2x 带 PG

4、 编程插座 (重要!) CPU 1x (另外还需要一个为第二根 PPI 电缆供电) PPI 电缆 1x RS232/PPI 电缆 表 02 在版本 C 配置中,你必须把附加的 CPU 的通信口置为“静音”状态(它只是用来为第二根电缆供电),它 必须在进行数据通信时被排除在外。这可以通过把通信口设置为自由口模式而很容易地做到。 HyperTerminal (超级终端超级终端)的使用:的使用: 请参考条目号: 30839030 ,其中第三章“自由口”中包含如何使用 Windows 通讯程序“ HyperTerminal (超级终端)”用于接收数据的例子。 关键词:关键词: 数据归档,跟踪,数据跟踪

5、 条目号条目号:26726155 日期日期:2009-10-26 Scroll down for English: How can you monitor the freeport communication between an S7- 200 and a serial device? Configuration Notes: This entry describes how you can easily monitor an ASCII communication (freeport communication) between the S7-200 and a serial device

6、 (e.g. modem). Essentially, this is an adapter to which an additional PPI cable is connected. Function: Since the interface is an RS485 physical interface, it is a bus-compatible interface. Even if the interface is operated in the freely programmable communication. The interface becomes an RS232 phy

7、sical only when the RS232/PPI cable (“as level converter“) is used. This property can be used for passive monitoring with an adapter. The bus physical of the RS485 interface is used and an additional RS232/PPI cable is connected to the interface. Bild 01 On the PC, the data has to be monitored by th

8、e serial interface. You can use the HyperTerminal for this. The advantage here is that the division for the additional PPI cable is on the RS485 side. With the RS485, Send and Receive are on both data cables. In this way both data directions can be seen on the additional PPI cable on the RS 232 side

9、. But there are also disadvantages. There is no automatic Service & Support (填写文档类型:常问问题) P3-3 distinction made between what is sent and received. If the protocol is known, the distinction can be made. Below are descriptions of various procedures. Versions A/B (soldering and special parts required)

10、Configuration A: Bild 02 Configuration B: Bild 03 Part Version A Version B Cable 9-pin cable 9-pin ribbon cable Connector 1x with solder pins 1x for pressing on ribbon cable Socket 2x with solder pins 2x for pressing on ribbon cable PPI cable 1x RS232/PPI cable 1x RS232/PPI cable Table 01 Version C

11、(using standard hardware) Configuration C: Bild 04 Part Version C PROFIBUS cable approx. 1m standard PROFIBUS cable PROFIBUS connector 2x with PG socket (!) CPU 1x (additional as power supply for 2nd PPI cable) PPI cable 1x RS232/PPI cable Table 02 In Version C, you must mute the additional CPU (onl

12、y as power supply for the second cable) on the interface. It must be excluded that it reacts to the running data traffic! This is easily done by switching over the interface to freeport. Using HyperTerminal: Refer to Entry ID 30839030, chapter 3 “Freeport“, for an example of how to use the Windows communication program “HyperTerminal“ for receiving data. Keywords: Data Logger, Trace, Tracing Entry ID:26726155 Date:2009-10-08

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号