二,PC侧 VB,VC程序的问题及电缆线的联接好坏,无从知道,如果联线没问题,就可以集中精力在PC侧找原因,判定联线是否接好,显得非常重要,有一个小方法可以测出。在PLC侧修改CP340用ASCII方式传送,在发送DB块中写几个字符形式的数据(chat 如'1','2','A'等)并间隔触发P_Send功能块。在PC侧修改串口参数与PLC一致,如波特率,数据长度,停止位,奇偶校验,无握手信号等。在Windows下附件中打开\建立一个直接到串口的连接,这样就可以读到从PLC中发送的数据如‘12A’等。同样用\的功能,把一些字符送到PLC。这样如果联接电缆是好的,那么可以简单地判断问题是出在哪里 返 回
12932189 Entry ID:
01/20/2004 Date:
QUESTION 4 : 在点到点通信中,协议 3964(R)和RK 512 之间的区别是什么? 解答:
这两个协议的主要区别在于消息报头和响应消息的不同。使用RK 512,提供有最高的数据完整性。下面是一个带有可用协议的分类的参考模块:
图 1:可用协议的分类
程序 3964(R) 当传送信息数据时,程序 3964(R)将控制字符(安全层)添加到信息数据上。这些控制字符激活通信伙伴,检查数据是否全部接收,是否无错误。程序 3964(R)和RK 512 评估下列控制字符: 控制字符 STX DLE ETX BCC NAK 表 1:控制字符概览
下图所示为程序 3964(R)发送时数据传送的顺序:
含义 (英语) 文本开始 数据链路换码 文本结束 块检查字符(仅 3964R/RK512) 否定应答
图 2:当用程序 3964(R)发送时的数据通信量
程序 RK 512 与程序 3964(R)相反,计算机连接RK 512 除了有位传送层(第 1 层)和安全层(第 2 层)外,还有传输层(第 4 层)。
计算机连接RK 512 也提供了更高的数据完整性,以及更好的地址选项。图 3 显示了当用计算机连接RK 512 发送一个响应消息时的数据传送顺序:
图 3:当发送响应消息时的数据通信量
更多的信息可在表 2 中列出的电气手册中获得,这些手册可以从网站中下载:
设备 S7-300 / CP 340 S7-300 / CP 341 S7-400 / CP 440 S7-400 / CP 441 表 2:电气手册
返 回
Entry ID: Date:
题目 建立和参数化点到点链接 CP 340 建立和参数化点到点链接 CP 341 建立和参数化点到点链接 CP 440 建立和参数化点到点链接 CP 441 条目ID 1137332 1117397 2042641 1137419 17854293 12/18/2003
QUESTION 5 :如何在ET200M从站上添加一个插有硬件Dongle(如Modbus Master)的CP341模板,实现S7300 PLC对通讯数据的读写?
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:
In 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 version 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 dongle which comes with the driver into the back of the CP.
?
The loadable driver has to be configured in the \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 \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 \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-300 central rack via an S7-300 CPU. The CP is then plugged into the ET 200M. Note:
This procedure is only necessary for loading the loadable drivers, not for assigning parameters.
The loadable driver only has to be loaded into the CP 341 once. With the hardware dongle plugged in, the CP can then be operated with the MODBUS master/slave protocol.
You can find further information about these drivers in the manuals on the \(Entry ID: 1218007) and \1220184).
The loadable drivers \ and \ are available to download on the Internet under Entry IDs: 8715908 and 8713784 respectively. 返 回 Entry ID: Date:
18590727 03/08/2004
相关推荐: