custom帮助文件.doc_第1页
custom帮助文件.doc_第2页
custom帮助文件.doc_第3页
custom帮助文件.doc_第4页
custom帮助文件.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CUSTOM模块的定义 Init 值为1时,初始化模块, Repeat 定义模块发送请求信息的最小等待时间(毫秒),通常与任务的执行速率相同。 MODE Gould Modbus 4代表Modbus Master Mode4,7串口通讯 7代表Modbus Slave Mode 51,53网口通讯 51代表Open Modbus Slave Mode 53代表Open Modbus Master Mode Enron Modbus: 8代表Modbus Slave. 52 Open Modbus Slave CustomLIST 模块需要使用信号的列表号 STATUS 模块执行后状态 COMPORT:定义端口 1-PortA 2-PortB 3-PortC 4-PortD 13-Eth3 14-Eth2 15-Eth1 SlaveAddress 从设备地址 Timeout 等待从设备相应时间(毫秒) IPAddress CUSTOM模块的IP地址,MASTER从这个地址读数 STATUS 模块执行后状态(看帮助有详细说明) DoneCount 通讯要求完成次数的总合 DoneFlag Parameter is set Off when the communication request is initiated and On when the communication request is complete.CUSTOM模块列表信号的定义(MODE=4)SIGNAL1:FUNCTION KEY 1-READ AND WRITE DI 2-READ DI 4-READ AI 8-WRITE DO 9-WRITE AO3-READ HOLDING REGISTERSIGNAL2:SLAVE START ADDRESS从设备信号起始地址SIGNAL3:SIGNAL COUNT信号数量 (数量必须与列表实际信号数量一致) 从设备地址寄存器的第一位到有用信号的最后一位SIGNAL4:LIST NUMBER 读写信号对应的信号列表SIGNAL5:ARRAY NUMBER 读写信号对应的数组号SIGNAL6:DATA SIZE 1代表single bit data 2代表8bit floating data 3代表16bit integer data (default value) AO输出必须使用该选项 4代表32bit integer data , taking up half register address 5代表32bit floating point data , taking up one register address 6代表32bit integer data , taking up one register address 7代表32bit floating point data , taking up two register address CUSTOM模块列表信号的定义(MODE=7) SIGNAL1:定义存储读写数字量信号的列表号,信号的地址从0xxxx开始,一 次最多被读取2000个数字量信号SIGNAL2:定义存储读写模拟量信号的列表号,信号的地址从4xxxx开始 , 一次最多被读取62个(32bit) 或125个(16bit)数据SIGNAL3:定义The Exception Status Coils list,列表中共有8个信号,如果列 表包含数量少于8个信号,将用 OFF代替缺少信号。SIGNAL4:定义存储只读数字量信号的列表号,信号的地址从1xxxx开始 Using Modbus function code 02SIGNAL5:定义存储只读模拟量信号的列表号,信号的地址从3xxxx开始. Using Modbus function code 04SIGNAL6:DATA SIZE 1代表single bit data2代表8bit floating data 3代表16bit integer data (default valute) 4代表32bit integer data , taking up half register address 5代表32bit floating point data , taking up one register address 6代表32bit integer data , taking up one register address 7代表32bit floating point data , taking up two register address CUSTOM模块列表信号的定义(MODE=8)SIGNAL1:定义存储读写数字量信号的列表号,信号的地址1001到3000,一 次最多被读取2000个数字量信号SIGNAL2:定义存储读写模拟量信号的列表号,信号的地址从7001开始 , SIGNAL3:定义The Exception Status Coils list,列表中共有8个信号,如果列 表包含数量少于8个信号,将用 OFF代替缺少信号。SIGNAL4:定义存储只读数字量信号的列表号, Using Modbus function code 02SIGNAL5:定义存储只读模拟量信号的列表号, Using Modbus function code 04CUSTOM相应的LIST的端口意义的定义做MODBUS_MASTER时LIST的端口一般用11个。1 功能类型(FUNCTION).1Read Coil Status12Read Input Status23Read Holding Registers - see note 134Read Input Registers45Force Single Coil56Preset Single Register - see note 167Read Exception Status78Force Multiple Coils159Preset Multiple Registers - see note 11610Diagnostics - see note 28255User Defined Function - see note 3N/A第一列为输入值,第二列为输入意义,第三列为相应的MODE点值。2 模拟量,卷轴和输入的起始地址(STARTADDRESS)3 (NUMBER)4 输入输出的LISTNUMBER号(IOList)5 接收字节记数(IOarray)。只有当参数1被选择用户定义功能时才用到。6 数据类型(DateSize)A value of 1 indicates use of single bit register data.A value of 2 indicates use of 8-bit register data.A value of 3 indicates use of 16-bit integer register data. A value of 4 indicates use of 32-bit integer register datawith each double integer value taking up one register address.A value of 5 indicates that 32-bit floating-point datais to be used with each floating-point value taking up one register addressA value of 6 indicates use of 32-bit integer register data with each double integer value taking up two register addresses.A value of 7 indicates that 32-bit floating-point datais to be used with each floating-point value taking up two register addresses.A value of 8 indicates use of 32-bit integer register data with each double integer value taking up two register addresses.A value of 9 indicates that 32-bit floating-point data is to be used with each floating-point value taking up two register addresses.A value of 10 indicates that variable length data is to be expected in the response message.7数据读取顺序BIT(BitOrder)0是从高位开始读,1是从低位开始读8数据读取顺序BYTE(ByteOrder)0是从低位开始读,1是从高位开始读9数据读取顺序WORD(WordOrder)0是从低位开始读,1是从高位开始读10异步串口通讯延迟(RTS/CTS Delay)11异步串口通讯延迟节点(RTS/CTS Delay Mode)做MODSLAVE时LIST的端口一般用12个。(PLC做从供中心读数用这个)1 线圈的LIST号(coil_list)2 模拟量的LIST号(register_list)3 特殊状态的线圈的LIST号(excep_list)4 数字量输入(contact_list)5 模拟量输入(input_list)6 数据和时间类型(data_size)Parameter 6 (Data Size) - Specifies the data size to be used when accessing Holding Registers via function codes 3, 6 and 9. This option does not affect the operation of any other function codes.A value of 1 indicates use of single bit register data.A value of 2 indicates use of 8-bit register data.A value of 3 indicates use of 16-bit integer register data. (Default Value)A value of 4 indicates use of 32-bit integer register data with each double integer value taking up one register address.The count in the Modbus message will be equal to the count defined in Parameter 3.The address in the Modbus message will be equal to the address defined in Parameter 2.A value of 5 indicates that 32-bit floating-point data is to be used with each floating-point value taking up one register address. In this mode, the selection is also used on Preset Single Register and Preset Multiple Register commands.The count in the Modbus message will be equal to the count defined in Parameter 3.The address in the Modbus message will be equal to the address defined in Parameter 2.A value of 6 indicates use of 32-bit integer register data with each double integer value taking up two register addresses.The count in the Modbus message will be twice the value of the count defined in Parameter 3. The address in the Modbus message will be twice the value of the address defined in Parameter 3.A value of 7 indicates that 32-bit floating-point data is to be used with each floating-point value taking up two register addresses. In this mode, the selection is also used on Preset Single Register and Preset Multiple Register commands.The count in the Modbus message will be twice the value of the count defined in Parameter 3. The address in the Modbus message will be twice the value of the address defined in Parameter 3.A value of 8 indicates use of 32-bit integer register data with each double integer value taking up two register addresses.The count in the Modbus message will be twice the value of the count defined in Parameter 3.The address in the Modbus message will be equal to the address defined in Parameter 2.A value of 9 indicates that 32-bit floating-point data is to be used with each floating-point value taking up two register addresses. In this mode, the selection is also used on Preset Single Register and Preset Multiple Register commands.The count in the Modbus message will be twice the value of the count defined in Parameter 3.The address in the Modbus message will be equal to the address defined in Parameter 2.A value of 10 indicates that variable length data is to be expected in the response message. Parameter 4 must define an array structure when defining a DataSize value of 10. The response data will be copie

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论