HIMA K9202B工控模塊卡件,備件模塊
執行操作Modbus實施:強制單線圈469實施:執行操作此功能代碼允許主機請求469執行特定命令操作。存儲器映射的命令區域中列出的命令編號對應于功能代碼05的操作代碼。操作命令也可以通過使用功能代碼16寫入存儲器映射的命令區域來啟動。有關完整的詳細信息,請參閱第6-8頁第6.2.8節:功能代碼16:存儲多個設置點。支持的操作:重置469(操作代碼1);電機啟動(操作代碼2)電機停止(操作代碼3);波形觸發器(操作代碼4)消息格式和示例:重置469(操作代碼1)。6.2.5功能代碼06:存儲單個設定點Modbus實現:預設單個寄存器469實現:存儲單個設置點此命令允許主機將單個設置點存儲到469的存儲器中。從屬設備對該功能代碼的響應是響應整個主傳輸。消息格式和示例:請求從設備11將值01F4存儲在設定點地址1180中。在本示例中的傳輸完成后,設定點地址1180將包含值01F4。主傳輸:BYTES示例/描述從機11的從機地址1 0B消息功能代碼1 05執行操作操作代碼2 00 01重置命令(操作代碼1)代碼值2 FF 00執行功能CRC 2 DD 50主從機響應計算的CRC:BYTES示例/描述從屬機11的從屬機地址1 0B響應消息功能代碼105執行操作操作代碼2 00 01重置命令(操作代碼1)代碼值2 FF 00執行功能CRC 2 DD 50 CRC,由從屬主傳輸計算:BYTES示例/描述從屬11的從屬地址1 0B消息功能代碼1 06存儲單個設置點數據起始地址2 11 80設置點地址1180數據2 01 F4數據,地址1180 CRC 2 8D A3 CRC,由主從屬響應計算:字節示例/描述從機11功能代碼1 06的從機地址1 0B響應消息存儲單個設置點數據起始地址2 11 80設置點地址1180數據2 01 F4數據,地址1180 CRC 2 8D A3 CRC由從機GE Multilin 469電機管理繼電器6-7 6通信6.2 MODBUS功能6 6.2.6功能代碼07:讀取設備狀態MODBUS實現:讀取異常狀態469實施:讀取設備狀態這是一個用于快速讀取所選設備狀態的功能。短消息長度允許快速讀取狀態。根據從屬設備的狀態,返回的狀態字節將具有設置為1或0的單個位。469一般狀態字節:如果狀態既沒有停止也沒有運行,則電機正在啟動。消息格式和示例:從機11請求狀態。6.2.7功能代碼08:回路測試Modbus實施:回路測試469實施:回路試驗此功能用于測試通信鏈路的完整性。469將響應請求。消息格式和示例:從機11的環回測試。位號描述位號。說明B0 R1跳閘繼電器操作=1 B4 R5塊啟動繼電器操作=B1 R2輔助繼電器操作=B5 R6服務繼電器操作=B2 R3輔助繼電器操作=1 B6停止=1 B3 R4報警繼電器操作=B7運行=1主傳輸:BYTES示例/描述從機11功能代碼1 07讀取設備狀態CRC 2 47 42 CRC計算由主從機響應:BYTES示例/描述從機地址1 0B響應消息從機11功能代碼1 07讀取設備狀態device status 1 59 status=01011001,二進制CRC 2 C2 08 CRC由從機主傳輸計算:BYTES示例/描述從屬機地址1 0B消息從機功能代碼1 08環回測試DIAG代碼2 00 00必須為00 00數據2 00 00必須是00 00 CRC 2 E0 A1 CRC,由主從機響應計算:BYTES示例/描述從機地址1 0B響應消息,從機11功能代碼1 08環回測試DIAG代碼2 00 00必須是00 0數據2 00 00,從機6-8 469電機管理繼電器GE Multilin 6.2 MODBUS功能6通信6 6.2.8功能代碼16:存儲MULTIPLE SETPOINTS Modbus實現:預設多個寄存器469實現:存儲多個設定值此功能代碼允許將多個設定點存儲到469存儲器中。Modbus“寄存器”是16位(兩字節)值,先傳輸高位字節。因此,所有469個設定值都作為兩字節值發送。一個傳輸中可存儲的最大設定值數量取決于從設備。Modbus允許最多存儲60個保持寄存器。對該功能代碼的469響應是回顯從屬地址、功能代碼、起始地址、存儲的設置點的數量,
EXECUTE OPERATION Modbus Implementation: Force Single Coil 469 Implementation: Execute Operation This function code allows the master to request an 469 to perform specific command operations. The command numbers listed in the Commands area of the memory map correspond to operation code for function code 05. The operation commands can also be initiated by writing to the Commands area of the memory map using function code 16. Refer to Section 6.2.8: Function Code 16: Store Multiple Setpoints on page 6–8 for complete details. Supported Operations: Reset 469 (operation code 1); Motor Start (operation code 2) Motor Stop (operation code 3); Waveform Trigger (operation code 4) MESSAGE FORMAT AND EXAMPLE: Reset 469 (operation code 1). 6.2.5 FUNCTION CODE 06: STORE SINGLE SETPOINT Modbus Implementation: Preset Single Register 469 Implementation: Store Single Setpoint This command allows the master to store a single setpoint into the memory of an 469. The slave response to this function code is to echo the entire master transmission. MESSAGE FORMAT AND EXAMPLE: Request slave 11 to store the value 01F4 in Setpoint address 1180. After the transmission in this example is complete, setpoints address 1180 will contain the value 01F4. MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 05 execute operation OPERATION CODE 2 00 01 reset command (operation code 1) CODE VALUE 2 FF 00 perform function CRC 2 DD 50 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 05 execute operation OPERATION CODE 2 00 01 reset command (operation code 1) CODE VALUE 2 FF 00 perform function CRC 2 DD 50 CRC calculated by the slave MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 06 store single setpoint DATA STARTING ADDRESS 2 11 80 setpoint address 1180 DATA 2 01 F4 data for address 1180 CRC 2 8D A3 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 06 store single setpoint DATA STARTING ADDRESS 2 11 80 setpoint address 1180 DATA 2 01 F4 data for address 1180 CRC 2 8D A3 CRC calculated by the slave GE Multilin 469 Motor Management Relay 6-7 6 COMMUNICATIONS 6.2 MODBUS FUNCTIONS 6 6.2.6 FUNCTION CODE 07: READ DEVICE STATUS Modbus Implementation: Read Exception Status 469 Implementation: Read Device Status This is a function used to quickly read the status of a selected device. A short message length allows for rapid reading of status. The status byte returned will have individual bits set to 1 or 0 depending on the status of the slave device. 469 General Status Byte: If status is neither stopped or running, the motor is starting. MESSAGE FORMAT AND EXAMPLE: Request status from slave 11. 6.2.7 FUNCTION CODE 08: LOOPBACK TEST Modbus Implementation: Loopback Test 469 Implementation: Loopback Test This function is used to test the integrity of the communication link. The 469 will echo the request. MESSAGE FORMAT AND EXAMPLE: Loopback test from slave 11. Bit No. Description Bit No. Description B0 R1 Trip relay operated = 1 B4 R5 Block start relay operated = 1 B1 R2 Auxiliary relay operated = 1 B5 R6 Service relay operated = 1 B2 R3 Auxiliary relay operated = 1 B6 Stopped = 1 B3 R4 Alarm relay operated = 1 B7 Running = 1 MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 07 read device status CRC 2 47 42 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 07 read device status DEVICE STATUS 1 59 status = 01011001 in binary CRC 2 C2 08 CRC calculated by the slave MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 08 loopback test DIAG CODE 2 00 00 must be 00 00 DATA 2 00 00 must be 00 00 CRC 2 E0 A1 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 08 loopback test DIAG CODE 2 00 00 must be 00 00 DATA 2 00 00 must be 00 00 CRC 2 E0 A1 CRC calculated by the slave 6-8 469 Motor Management Relay GE Multilin 6.2 MODBUS FUNCTIONS 6 COMMUNICATIONS 6 6.2.8 FUNCTION CODE 16: STORE MULTIPLE SETPOINTS Modbus Implementation: Preset Multiple Registers 469 Implementation: Store Multiple Setpoints This function code allows multiple setpoints to be stored into the 469 memory. Modbus "registers" are 16-bit (two byte) values transmitted high order byte first. Thus all 469 setpoints are sent as two byte values. The maximum number of setpoints that can be stored in one transmission is dependent on the slave device. Modbus allows up to a maximum of 60 holding registers to be stored. The 469 response to this function code is to echo the slave address, function code, starting address, the number of Setpoints stored, and the CRC. MESSAGE FORMAT AND EXAMPLE: Request slave 11 to store the value 01F4 to Setpoint address 1180 and the value 01DE to setpoint address 1181.