ICS TRIPLEX T8821工控模塊機器人備件
..6-4 469電機管理繼電器GE Power Management 6.2支持的MODBUS功能6通信6 6.2支持的MODBUS功能6.2.1概述469支持以下功能:?01-讀取繼電器線圈?02-讀取數(shù)字輸入狀態(tài)?03-讀取設定值和實際值?04-讀取設定點和實際值·05-執(zhí)行操作?06-存儲單個設定值?07-讀取設備狀態(tài)?08-環(huán)回測試?16-存儲多個設定值6.2.2功能代碼01/02:讀取繼電器線圈/數(shù)字輸入狀態(tài)Modbus實施:讀取線圈和輸入狀態(tài)469實施:讀取繼電器盤管和數(shù)字輸入狀態(tài)對于Modbus的469實施,這些命令可用于讀取繼電器線圈狀態(tài)或數(shù)字輸入狀態(tài)。a) 功能01標準實現(xiàn)需要以下內(nèi)容:從屬地址(一個字節(jié))、功能代碼(一字節(jié))、啟動繼電器線圈(兩字節(jié))、要讀取的線圈數(shù)(兩個字節(jié))和CRC(兩個)。從機響應包括從機地址(一個字節(jié))、功能代碼(一個)、繼電器線圈掩碼字節(jié)計數(shù)(一字節(jié);由于只有六個繼電器線圈,所以始終為01)、指示請求的繼電器線圈狀態(tài)的位掩碼(一個字節(jié))和CRC(兩個字節(jié))。b) FUNCTION 02標準實現(xiàn)要求如下:從屬地址(一個字節(jié))、功能代碼(一個字符)、起始數(shù)字輸入(兩個字符),要讀取的數(shù)字輸入數(shù)量(兩個字節(jié))和CRC(兩個字母)。從屬響應是從屬地址(一個字節(jié))、功能代碼(一個)、數(shù)字輸入掩碼的字節(jié)計數(shù)(一個字符)、指示所請求數(shù)字輸入狀態(tài)的位掩碼(一個或兩個字符)和CRC(兩個字符。注意:CRC以兩字節(jié)數(shù)字的形式發(fā)送,先發(fā)送低位字節(jié)。GE Power Management 469電機管理繼電器6-5 6通信6.2支持的MODBUS功能6 c)消息格式和示例,功能01請求從機11響應繼電器線圈3至5的狀態(tài):如果輸入了零的啟動繼電器線圈(啟動數(shù)字輸入),則469將默認為一。如果請求的繼電器數(shù)量(數(shù)字輸入數(shù)量)超過可用繼電器數(shù)量,則會提示用戶“非法數(shù)據(jù)”信息。繼電器狀態(tài)R1通電R2斷電R3斷電R4斷電R5通電R6通電位掩碼0011 0001(0 x 31)主傳輸:BYTES示例/描述從屬11功能代碼1 01的從屬地址1 0B消息讀取繼電器線圈狀態(tài)啟動繼電器線圈2 00 03啟動繼電器線圈3繼電器數(shù)量2 00 03 3個繼電器線圈(即R3、R4、R5)CRC 2 8C A1 CRC,通過從機11功能代碼1 01讀取繼電器線圈狀態(tài)字節(jié)計數(shù)1 01 1字節(jié)位掩碼位掩碼1請求繼電器的10位掩碼(0001 0000)CRC 2 53 93由從機計算的CRC注釋6-6 469電機管理繼電器GE Power Management 6.2支持的MODBUS功能6通信6 d)消息格式和示例,功能02示例1:請求從設備11響應數(shù)字輸入5至9的狀態(tài):數(shù)字輸入狀態(tài)D1:訪問關閉D2:測試打開D3:啟動器狀態(tài)打開D4:緊急重啟打開D5:遠程重置關閉D6:可分配輸入1關閉D7:可指配輸入2關閉D8:可指派輸入3關閉D9:可指定輸入4關閉位掩碼(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