ICS TRIPLEX T8821工控模塊機器人備件
..6-4 469電機管理繼電器GE Power Management 6.2支持的MODBUS功能6通信6 6.2支持的MODBUS功能6.2.1概述469支持以下功能:?01-讀取繼電器線(xiàn)圈?02-讀取數字輸入狀態(tài)?03-讀取設定值和實(shí)際值?04-讀取設定點(diǎn)和實(shí)際值·05-執行操作?06-存儲單個(gè)設定值?07-讀取設備狀態(tài)?08-環(huán)回測試?16-存儲多個(gè)設定值6.2.2功能代碼01/02:讀取繼電器線(xiàn)圈/數字輸入狀態(tài)Modbus實(shí)施:讀取線(xiàn)圈和輸入狀態(tài)469實(shí)施:讀取繼電器盤(pán)管和數字輸入狀態(tài)對于Modbus的469實(shí)施,這些命令可用于讀取繼電器線(xiàn)圈狀態(tài)或數字輸入狀態(tài)。a) 功能01標準實(shí)現需要以下內容:從屬地址(一個(gè)字節)、功能代碼(一字節)、啟動(dòng)繼電器線(xiàn)圈(兩字節)、要讀取的線(xiàn)圈數(兩個(gè)字節)和CRC(兩個(gè))。從機響應包括從機地址(一個(gè)字節)、功能代碼(一個(gè))、繼電器線(xiàn)圈掩碼字節計數(一字節;由于只有六個(gè)繼電器線(xiàn)圈,所以始終為01)、指示請求的繼電器線(xiàn)圈狀態(tài)的位掩碼(一個(gè)字節)和CRC(兩個(gè)字節)。b) FUNCTION 02標準實(shí)現要求如下:從屬地址(一個(gè)字節)、功能代碼(一個(gè)字符)、起始數字輸入(兩個(gè)字符),要讀取的數字輸入數量(兩個(gè)字節)和CRC(兩個(gè)字母)。從屬響應是從屬地址(一個(gè)字節)、功能代碼(一個(gè))、數字輸入掩碼的字節計數(一個(gè)字符)、指示所請求數字輸入狀態(tài)的位掩碼(一個(gè)或兩個(gè)字符)和CRC(兩個(gè)字符。注意:CRC以?xún)勺止潝底值男问桨l(fā)送,先發(fā)送低位字節。GE Power Management 469電機管理繼電器6-5 6通信6.2支持的MODBUS功能6 c)消息格式和示例,功能01請求從機11響應繼電器線(xiàn)圈3至5的狀態(tài):如果輸入了零的啟動(dòng)繼電器線(xiàn)圈(啟動(dòng)數字輸入),則469將默認為一。如果請求的繼電器數量(數字輸入數量)超過(guò)可用繼電器數量,則會(huì )提示用戶(hù)“非法數據”信息。繼電器狀態(tài)R1通電R2斷電R3斷電R4斷電R5通電R6通電位掩碼0011 0001(0 x 31)主傳輸:BYTES示例/描述從屬11功能代碼1 01的從屬地址1 0B消息讀取繼電器線(xiàn)圈狀態(tài)啟動(dòng)繼電器線(xiàn)圈2 00 03啟動(dòng)繼電器線(xiàn)圈3繼電器數量2 00 03 3個(gè)繼電器線(xiàn)圈(即R3、R4、R5)CRC 2 8C A1 CRC,通過(guò)從機11功能代碼1 01讀取繼電器線(xiàn)圈狀態(tài)字節計數1 01 1字節位掩碼位掩碼1請求繼電器的10位掩碼(0001 0000)CRC 2 53 93由從機計算的CRC注釋6-6 469電機管理繼電器GE Power Management 6.2支持的MODBUS功能6通信6 d)消息格式和示例,功能02示例1:請求從設備11響應數字輸入5至9的狀態(tài):數字輸入狀態(tài)D1:訪(fǎng)問(wèn)關(guān)閉D2:測試打開(kāi)D3:?jiǎn)?dòng)器狀態(tài)打開(kāi)D4:緊急重啟打開(kāi)D5:遠程重置關(guān)閉D6:可分配輸入1關(guān)閉D7:可指配輸入2關(guān)閉D8:可指派輸入3關(guān)閉D9:可指定輸入4關(guān)閉位掩碼(LSB)0111 0001位掩碼(MSB)0000 0001
6-4 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 6 6.2 SUPPORTED MODBUS FUNCTIONS 6.2.1 OVERVIEW The following functions are supported by the 469: ? 01 - Read Relay Coil ? 02 - Read Digital Input Status ? 03 - Read Setpoints and Actual Values ? 04 - Read Setpoints and Actual Values ? 05 - Execute Operation ? 06 - Store Single Setpoint ? 07 - Read Device Status ? 08 - Loopback Test ? 16 - Store Multiple Setpoints 6.2.2 FUNCTION CODES 01/02: READ RELAY COIL / DIGITAL INPUT STATUS Modbus implementation: Read Coil and Input Status 469 Implementation: Read Relay Coil and Digital Input Status For the 469 implementation of Modbus, these commands can be used to read Relay Coil Status or Digital Input Status. a) FUNCTION 01 The standard implementation requires the following: slave address (one byte), function code (one byte), starting relay coil (two bytes), number of coils to read (two bytes), and CRC (two bytes). The slave response is the slave address (one byte), function code (one byte), relay coil mask byte count (one byte; always 01 since only six relay coils), bit mask indicating the status of requested relay coils (one byte), and CRC (two bytes). b) FUNCTION 02 The standard implementation requires the following: slave address (one byte), function code (one byte), starting digital input (two byte), number of digital inputs to read (two bytes), and CRC (two bytes). The slave response is the slave address (one byte), function code (one byte), byte count of digital input mask (one byte), bit mask indicating the status of requested digital inputs (one or two bytes), and CRC (two bytes). Note: the CRC is sent as a two byte number with the low order byte sent first. GE Power Management 469 Motor Management Relay 6-5 6 COMMUNICATIONS 6.2 SUPPORTED MODBUS FUNCTIONS 6 c) MESSAGE FORMAT AND EXAMPLE, FUNCTION 01 Request slave 11 to respond with status of relay coil 3 to 5: If STARTING RELAY COIL (STARTING DIGITAL INPUT) of Zero is entered, then 469 will default it to One. If the NUMBER OF RELAYS (NUMBER OF DIGITAL INPUTS) requested exceeds the number of relays available then user is prompted with a “ILLEGAL DATA” message. Relay Status R1 Energized R2 De-energized R3 De-energized R4 De-energized R5 Energized R6 Energized Bit Mask 0011 0001 (0 x 31) MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 01 read relay coil status STARTING RELAY COIL 2 00 03 starting relay coil 3 NUMBER OF RELYAS 2 00 03 3 relays coils (i.e. R3, R4, R5) CRC 2 8C A1 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 01 read relay coil status BYTE COUNT 1 01 1 byte bit mask BIT MASK 1 10 bit mask of requested relay (0001 0000) CRC 2 53 93 CRC calculated by the slave NOTE 6-6 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 6 d) MESSAGE FORMAT AND EXAMPLE, FUNCTION 02 Example 1: Request slave 11 to respond with status of digital inputs 5 to 9: Digital Input Status D1: Access Closed D2: Test Open D3: Starter Status Open D4: Emergency Restart Open D5: Remote Reset Closed D6: Assignable Input 1 Closed D7: Assignable Input 2 Closed D8: Assignable Input 3 Closed D9: Assignable Input 4 Closed Bit Mask (LSB) 0111 0001 Bit Mask (MSB) 0000 0001