最完整的开关电源培训教程(北京交大).pdf
《最完整的开关电源培训教程(北京交大).pdf》由会员分享,可在线阅读,更多相关《最完整的开关电源培训教程(北京交大).pdf(667页珍藏版)》请在文库网上搜索。
1、B hex (107 decimal). Error: Error code 2 chars 0x83 Exception 2 chars 01 or 02 or 03 or 04 For error example: The master addresses a query to slave device 1 (01 hex). The function code (03 hex) is for a Read Holding Registers operation. It requests the data of the holding registers at address (0250
2、hex). If the Holding Registers address is nonexistent in the slave device, the slave will return the exception response with the exception code shown (02 hex). This specifies an illegal data address for the slave. For example, if the slave is a 27 with 8 holding registers, this code would be returne
3、d. MODBUS Exception Codes Code Name Meaning 01 ILLEGAL FUNCTION The function code received in the query is not an allowable action for the server (or slave). This may be because the function code is only Edition:Sep 2010 5 applicable to newer devices, and was not implemented in the unit selected. It
4、 could also indicate that the server (or slave) is in the wrong state to process a request of this type, for example because it is non-configured and is being asked to return register values. 02 ILLEGAL DATA ADDRESS The data address received in the query is not an allowable address for the server (o
5、r slave). More specifically, the combination of reference number and transfer length is invalid. For a controller with 100 registers, a request with offset 96 and length 4 will be success, a request with offset 96 and length 5 will generate exception 02. 03 ILLEGAL DATA VALUE A value contained in th
6、e query data field is not an allowable value for server (or slave). This indicates a fault in the structure of the remainder of a complex request, such as that the implied length is incorrect. It specifically does NOT mean that a data item submitted for storage in a register has a value outside the
7、expectation of the application program, since the MODBUS protocol is unaware of the significance of any particular value of any particular register. 04 SLAVE DEVICE FAILURE An unrecoverable error occurred while the server (or slave) was attempting to perform the requested action. For read function (
8、0x03) example: The master query is a Read Holding Registers request to slave device address 01. The message requests data from two holding registers, 0x2AB through 0x2AC. Note that the message specifies the starting register address as 0683 (02AB hex). The slave response echoes the function code, in
9、dicating this is a normal response. The Byte Count field specifies how many 8bit data items are being returned. It shows the count of 8bit bytes to follow in the data. How to Use the Byte Count Field: When you construct responses in buffers, use a Byte Count value that equals the count of 8bit bytes
10、 in your message data. The value is exclusive of all other field contents, including the Byte Count Field. Edition:Sep 2010 6 RTU mode Slave Address Function Starting Address No. of Registers CRC HiLo HiLo 0x01 0x03 0x02 0xAB 0x000x020xb40x53 RESPONSE ExampleASCIIRTU Field NameCharacters8-Bit Field
11、Header : (colon)None Slave Address 01 0 10000 0001 Function 03 0 30000 0011 Byte Count 04 0 40000 0110 Data Hi 23 2 30010 0011 Data Lo 05 0 50000 0101 Data Hi 23 2 30010 0110 Data Lo 00 0 00000 0000 Error Check (LRC / CRC) A D (2 chars)1111 1000 (16 bits) 1000 0110 Trailer CR LRNone Total Bytes : 19
12、9 Slave Response RTU mode Slave Address Function Byte count DataData CRC Hi LoHiLo 0x01 0x03 0x04 0x23 0x050x230x000xf8 0x86 Edition:Sep 2010 7 For write single register function (0x06) example: The master query is a Writing Single Holding Registers request to slave device address 01. The message re
13、quested preset value which is specified in the data field into single holding registers 0193 (00C0 hex). The normal response is an echo of the request, returned after the register contents have been written. RTU mode Slave Address Function Register Address Register Value CRC HiLo HiLo 0x01 0x06 0x00
14、 0xC0 0x090x600x8f0x8e Edition:Sep 2010 8 RTU mode Slave Address Function Register AddreMotionNetwork使连接与控制简易化。因此可缩短设计机器的交期,减少成本,简化布线。 ? ? ? ? ? ? ? ? ? ? ? ? 减少成本 简化布线 节省时间 减少人力 Ezi-MotionNetwork优点 针对各种运动网络的界面新方案 即时通讯 由运动网关连接各种协议 由PLC控制I/O 简易开关控制I/O ? 各种高阶控制器系统结构界面 通过连接各种主控制器实现控制,如PC,PLC及嵌入系统 Ezi-M
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 完整 开关电源 培训 教程 北京 交大