HIMA XPSMF2DO1602模擬量輸入模塊
反向shr(x)右移運算符(x的LSbit被移位到定時約束中。接收設備必須測量字符接收之間的時間。如果三個半字符時間過去了,沒有新字符或數(shù)據(jù)包完成,則必須重置通信鏈路(即所有從設備開始偵聽來自主設備的新傳輸)。因此,在9600波特時,大于3.5×1/9600×10=3.65 ms的延遲將導致通信鏈路復位。GE Multilin 469電機管理繼電器6-3 6通信6.2 MODBUS功能6 6.2MODBUS功能6.2.1支持的功能469支持以下功能:MODBUS功能代碼01:讀取繼電器線圈MODBUS功能代碼02:讀取數(shù)字輸入狀態(tài)MODBUS功能代碼03:讀取設定點和實際值MODBUS功能代碼04:讀取設定點和實際值功能代碼05:執(zhí)行操作Modbus功能代碼06:存儲單設定點Modbus功能代碼07:讀取設備狀態(tài)Modbus功能代碼08:環(huán)回測試Modbus功能代碼16:存儲多個設定點6.2.2功能代碼01/02:讀取繼電器線圈/數(shù)字輸入狀態(tài)Modbus實現(xiàn):讀取線圈和輸入狀態(tài)469實現(xiàn):讀取這些命令可用于讀取繼電器線圈狀態(tài)或數(shù)字輸入狀態(tài)。消息格式和示例,功能01:標準實現(xiàn)需要以下內(nèi)容:從地址(一個字節(jié))、功能代碼(一個)、啟動繼電器線圈(兩個字節(jié)),要讀取的線圈數(shù)(兩個)和CRC(兩個字符)。從機響應包括從機地址(一個字節(jié))、功能代碼(一個)、繼電器線圈掩碼字節(jié)計數(shù)(一字節(jié);由于只有六個繼電器線圈,所以始終為01)、指示請求的繼電器線圈狀態(tài)的位掩碼(一個字節(jié))和CRC(兩個字節(jié))。請求從機11響應繼電器線圈3至5的狀態(tài):如果輸入了零的啟動繼電器線圈(啟動數(shù)字輸入),469將默認為一。如果請求的繼電器數(shù)量(數(shù)字輸入數(shù)量)超過可用的繼電器數(shù)量,系統(tǒng)將提示用戶非法數(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,通過主從機響應:BYTES示例/描述從機11功能代碼1 01讀取繼電器線圈狀態(tài)BYTE COUNT 1 01 1字節(jié)位掩碼位掩碼1請求繼電器的10位掩碼(0001 0000)CRC 2 53 93 CRC由從機計算注釋6-4 469電機管理繼電器GE Multilin 6.2 MODBUS FUNCTIONS 6 COMMUNICATIONS 6 message FORMAT AND示例,功能02:標準實現(xiàn)需要以下內(nèi)容:從屬地址(一個字節(jié))、功能代碼(一字節(jié))、起始數(shù)字輸入(兩字節(jié))、要讀取的數(shù)字輸入數(shù)量(兩個字節(jié))和CRC(兩個)。從屬響應是從屬地址(一個字節(jié))、功能代碼(一個字符)、地址和地址,
reversed shr (x) right shift operator (the LSbit of x is shifted into a timing constraints. The receiving device must measure the time between the reception of characters. If three and one half character times elapse without a new character or completion of the packet, then the communication link must be reset (i.e. all slaves start listening for a new transmission from the master). Thus at 9600 baud a delay of greater than 3.5 × 1 / 9600 × 10 = 3.65 ms will cause the communication link to be reset. GE Multilin 469 Motor Management Relay 6-3 6 COMMUNICATIONS 6.2 MODBUS FUNCTIONS 6 6.2MODBUS FUNCTIONS 6.2.1 SUPPORTED FUNCTIONS The following functions are supported by the 469: Modbus Function Code 01: Read Relay Coil Modbus Function Code 02: Read Digital Input Status Modbus Function Code 03: Read Setpoints and Actual Values Modbus Function Code 04: Read Setpoints and Actual Values Modbus Function Code 05: Execute Operation Modbus Function Code 06: Store Single Setpoint Modbus Function Code 07: Read Device Status Modbus Function Code 08: Loopback Test Modbus Function Code 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. MESSAGE FORMAT AND EXAMPLE, 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). Request slave 11 to respond with status of relay coil 3 to 5: If a Starting Relay Coil (Starting Digital Input) of Zero is entered, the 469 will default it to One. If the Number of Relays (Number of Digital Inputs) requested exceeds the number of relays available, the 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-4 469 Motor Management Relay GE Multilin 6.2 MODBUS FUNCTIONS 6 COMMUNICATIONS 6 MESSAGE FORMAT AND EXAMPLE, 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),