s7-300_cp340_341_440_441串口通讯

上传人:小** 文档编号:55707161 上传时间:2018-10-04 格式:DOC 页数:37 大小:1.52MB
返回 下载 相关 举报
s7-300_cp340_341_440_441串口通讯_第1页
第1页 / 共37页
s7-300_cp340_341_440_441串口通讯_第2页
第2页 / 共37页
s7-300_cp340_341_440_441串口通讯_第3页
第3页 / 共37页
s7-300_cp340_341_440_441串口通讯_第4页
第4页 / 共37页
s7-300_cp340_341_440_441串口通讯_第5页
第5页 / 共37页
点击查看更多>>
资源描述

《s7-300_cp340_341_440_441串口通讯》由会员分享,可在线阅读,更多相关《s7-300_cp340_341_440_441串口通讯(37页珍藏版)》请在金锄头文库上搜索。

1、串口通讯模块的信息与使用串口通讯模块的信息与使用朱震忠朱震忠 SIEMENS A x:= B: TTY; x:= C: RS422/485) This card is always supplied with the installation CD for PtP communication.Single license (MODBUS master): 6ES7 870-1AA01-0YA0 This delivery package includes the installation CD for retrofittable MODBUS master driver, documentat

2、ion and a hardware dongle for the CP341.orSingle license (MODBUS slave): 6ES7 870-1AB01-0YA0 This delivery package includes the installation CD for retrofittable MODBUS slave driver, documentation and a hardware dongle for the CP341.For each further MODBUS master link you need an additional CP341 mo

3、dule (see above) and another single license without software and documentation (only hardware dongle). The order number for this is: SingleSingle licenselicense (without software and documentation): 6ES7 870-1AA01-0YA1This delivery package includes oneone hardware dongle for the CP341.For each furth

4、er MODBUS slave link you need an additional CP341 module (see above) and another single license without software and documentation (only hardware dongle). The order number for this is: SingleSingle licenselicense (without software and documentation): 6ES7 870-1AB01-0YA1This delivery package includes

5、 oneone hardware dongle for the CP341.The following configurations with CP341 are released: 1.PCS 7 / STEP 7 is MODBUS master or slave (not redundant)Required order: 1* CP341 and 1* single license2.PCS 7 / STEP 7 is MODBUS master or slave (not redundant)Required order: 1* CP341 and 1* single license

6、 5.PCS 7 / STEP 7 is MODBUS master or slave (redundant)Required order: 1* CP341 and 1* single licenseAdditional order: 1* CP341 and 1* single license (without software and documentation) 返返 回回QUESTIONQUESTION 3 3 : : 在用在用 CP340,CP341CP340,CP341 与第三方产品通讯时与第三方产品通讯时( (如如 PCPC 机机, ,用用 VB,VCVB,VC 读数据读数据)

7、 )怎样识别联线怎样识别联线 是否是好的?是否是好的? 解答:解答: 在用 CP340,CP341 与 PC 机通讯时,常常读不出数据,这样有两个方面原因。其一,在 PLC 侧程序是否正确。用上升沿触发 P_Send,可以看见 TXD 灯闪,这样可以判断 PLC 侧程序没问题;其二,PC 侧 VB,VC 程序的问题及电缆线的联接好坏,无从知道,如果联线没问题,就可以集中精力在 PC侧找原因,判定联线是否接好,显得非常重要,有一个小方法可以测出。在 PLC 侧修改 CP340 用ASCII 方式传送,在发送 DB 块中写几个字符形式的数据(chat 如1,2,A等)并间隔触发P_Send 功能块

8、。在 PC 侧修改串口参数与 PLC 一致,如波特率,数据长度,停止位,奇偶校验,无握手信号等。在 Windows 下附件中打开“Hyper Terminal“建立一个直接到串口的连接,这样就可以读到从 PLC 中发送的数据如12A等。同样用“Send Text File“的功能,把一些字符送到 PLC。这样如果联接电缆是好的,那么可以简单地判断问题是出在哪里返返 回回Entry ID:12932189 Date:01/20/2004 QUESTIONQUESTION 4 4 : : 在点到点通信中,协议在点到点通信中,协议 3964(R)3964(R)和和 RKRK 512512 之间的区别

9、是什么?之间的区别是什么?解答:解答:这两个协议的主要区别在于消息报头和响应消息的不同。使用 RK 512,提供有最高的数据完整性。下面是一个带有可用协议的分类的参考模块: 图 1:可用协议的分类 程序程序 3964(R)3964(R) 当传送信息数据时,程序 3964(R)将控制字符(安全层)添加到信息数据上。这些控制字符激活通信伙伴,检查数据是否全部接收,是否无错误。程序 3964(R)和 RK 512 评估下列控制字符: 控制字符控制字符含义含义 ( (英语英语) )STXSTX文本开始DLEDLE数据链路换码ETXETX文本结束BCCBCC块检查字符(仅 3964R/RK512)NAK

10、NAK否定应答表 1:控制字符概览 下图所示为程序 3964(R)发送时数据传送的顺序: 图 2:当用程序 3964(R)发送时的数据通信量 程序程序 RKRK 512512 与程序 3964(R)相反,计算机连接 RK 512 除了有位传送层(第 1 层)和安全层(第 2 层)外,还有传输层(第 4 层)。计算机连接 RK 512 也提供了更高的数据完整性,以及更好的地址选项。图 3 显示了当用计算机连接 RK 512 发送一个响应消息时的数据传送顺序: 图 3:当发送响应消息时的数据通信量 更多的信息可在表 2 中列出的电气手册中获得,这些手册可以从网站中下载: 设备设备题目题目条目条目

11、IDIDS7-300S7-300 / / CPCP 340340建立和参数化点到点链接 CP 3401137332S7-300S7-300 / / CPCP 341341建立和参数化点到点链接 CP 3411117397S7-400S7-400 / / CPCP 440440建立和参数化点到点链接 CP 4402042641S7-400S7-400 / / CPCP 441441建立和参数化点到点链接 CP 4411137419表 2:电气手册返返 回回Entry ID:17854293 Date:12/18/2003QUESTIONQUESTION 5 5 : :如何在如何在 ET200ME

12、T200M 从站上添加一个插有硬件从站上添加一个插有硬件 DongleDongle(如(如 ModbusModbus MasterMaster)的)的 CP341CP341 模模 板,实现板,实现 S7300S7300 PLCPLC 对通讯数据的读写?对通讯数据的读写?How can I load a loadable driver (e.g. CP PtP MODBUS Master) into a CP 341 that is connected to a high-availability system by means of the ET 200M? ANSWER:ANSWER:In

13、order to expand the functions and adapt the CP 341 to the communication partner, other transmission protocols can be loaded onto the CP, in addition to the standard protocols.The following basic requirements must be fulfilled in order to load drivers into a CP 341 subsequently. There must be a versi

14、on of STEP 7 Base V4.02 or higher installed. There must be a version of the Point-to-Point Couplings Parameterization (CP PtP Param) options package V4.1 or higher installed. The latest version of this software is available to download from the Internet as freeware under Entry ID: 12310504. Plug the

15、 dongle which comes with the driver into the back of the CP.The loadable driver has to be configured in the “CP-PtP Param“ parameterization user interface first of all. Once this has been configured, the configuration and parameterization data can be loaded online from the PG into the CPU via the “L

16、oad target system“ menu command.In order to load the loadable MODBUS driver in the S7-400 high-availability system into the CP 341 on the ET 200M, both high-availability CPUs must be switched to “STOP“ mode.The driver is then loaded directly from the PG into the EPROM on the CP 341 via the MPI interface on the master CPU. For this reason, module exchange is not possible without a PG!This loading process can also take place in a S7-3

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 管理学资料

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