HIMA HSD9044工控模塊機器人備件
在該示例中的傳輸完成之后,469從機11將存儲以下設置點信息:地址數據1180 01F4 1181 01DE主傳輸:字節示例/描述從機11的從機地址1 0B消息功能代碼1 10存儲設置點數據起始地址2 11 80設置點地址1180設置點數量2 00 02 2設置點(共4字節)字節計數1 04 4字節數據數據1 2 01 F4地址數據1180 DATA 2 2 01 DE數據地址1181 CRC 2 DB B1 CRC由主從機響應計算:BYTES示例/描述從機11功能代碼1 10存儲設置點DATA STARTING address 2 11 80設置點地址1180 NUMBER OF setpoint 2 00 02 2設置點CRC 2 45 B6 CRC由從機GE Multilin 469電機管理繼電器6-9 6計算通信6.2 MODBUS功能6 6.2.9功能代碼16:執行命令某些PLC可能不支持使用功能代碼5執行命令,但支持使用功能碼16存儲多個設置點。要使用功能代碼16(10H)執行此操作,必須同時向469寫入特定的命令序列。序列包括:命令功能寄存器、命令操作寄存器和命令數據(如果需要)。命令函數寄存器必須寫入值5,表示請求執行操作。然后,命令操作寄存器必須寫入內存映射中顯示的命令列表中的有效命令操作編號。如果命令操作需要數據,則必須使用有效數據寫入命令數據寄存器。所選命令將在收到有效傳輸后立即執行。消息格式和示例:對469(操作代碼1)執行重置6.2.10錯誤響應當469檢測到CRC錯誤以外的錯誤時,將向主機發送響應。功能碼字節的MSbit將被設置為1(即,從從機發送的功能碼將等于從主機發送的功能代碼加上128)。以下字節將是一個異常代碼,指示發生的錯誤類型。469將忽略從具有CRC錯誤的主機接收的傳輸。從機對錯誤(CRC錯誤除外)的響應為:?從機地址:1字節?功能代碼:1字節(MSbit設置為1)?異常代碼:1個字節?CRC:2字節469實現以下異常響應代碼。01:非法功能傳輸的功能代碼不是469支持的功能之一。02:非法數據地址主機發送的數據字段中引用的地址不是469的允許地址。03:非法數據值主機傳輸的數據字段中引用的值不在所選數據地址的范圍內。主傳輸:字節示例/描述從機11的從機地址1 0B消息功能代碼1 10存儲設置點數據起始地址2 00 80設置點地址0080設置點數量2 00 02 2個設置點(總共4字節)字節計數1 04 2寄存器=4字節命令功能2 00 05地址0080命令操作2 00 01地址0081 CRC 2 0B D6 CRC數據主從機響應:BYTES示例/描述從機11的從機地址1 0B響應消息功能代碼1 10存儲設置點數據起始地址2 00 80設置點地址0080設置點數量2 00 02 2個設置點(總共4字節)CRC 2 40 8A由從機6-10 469電機管理繼電器GE Multilin 6.3存儲器映射6通信6 6.3存儲器映射6.3.1存儲器映射計算信息469中存儲的數據分為設定值和實際值。設置點可由主計算機讀取和寫入。實際值為只讀。所有設定值和實際值存儲為雙字節值。也就是說,每個寄存器地址都是兩字節值的地址。地址以十六進制列出。數據值(設定點范圍、增量、出廠值)以十進制表示。許多Modbus通信驅動程序將40001d添加到寄存器地址的實際地址。例如:如果要讀取地址0h,則40001d將是Modbus通信驅動程序所需的地址;如果要讀取地址320h(800d),則40801d將是Modbus通信驅動程序所需的地址。6.3.2用戶自定義內存映射區469具有一個強大的功能,稱為用戶
After the transmission in this example is complete, 469 slave 11 will have the following Setpoints information stored: Address Data 1180 01F4 1181 01DE MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 10 store setpoints DATA STARTING ADDRESS 2 11 80 setpoint address 1180 NUMBER OF SETPOINTS 2 00 02 2 setpoints (4 bytes total) BYTE COUNT 1 04 4 bytes of data DATA 1 2 01 F4 data for address 1180 DATA 2 2 01 DE data for address 1181 CRC 2 DB B1 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 10 store setpoints DATA STARTING ADDRESS 2 11 80 setpoint address 1180 NUMBER OF SETPOINTS 2 00 02 2 setpoints CRC 2 45 B6 CRC calculated by the slave GE Multilin 469 Motor Management Relay 6-9 6 COMMUNICATIONS 6.2 MODBUS FUNCTIONS 6 6.2.9 FUNCTION CODE 16: PERFORMING COMMANDS Some PLCs may not support execution of commands using function code 5 but do support storing multiple setpoints using function code 16. To perform this operation using function code 16 (10H), a certain sequence of commands must be written at the same time to the 469. The sequence consists of: command function register, command operation register and command data (if required). The command function register must be written with the value of 5 indicating an execute operation is requested. The command operation register must then be written with a valid command operation number from the list of commands shown in the memory map. The command data registers must be written with valid data if the command operation requires data. The selected command will execute immediately upon receipt of a valid transmission. MESSAGE FORMAT AND EXAMPLE: Perform a reset on 469 (operation code 1) 6.2.10 ERROR RESPONSES When an 469 detects an error other than a CRC error, a response will be sent to the master. The MSbit of the Function Code byte will be set to 1 (i.e. the function code sent from the slave will be equal to the function code sent from the master plus 128). The following byte will be an exception code indicating the type of error that occurred. Transmissions received from the master with CRC errors will be ignored by the 469. The slave response to an error (other than CRC error) will be: ? SLAVE ADDRESS: 1 byte ? FUNCTION CODE: 1 byte (with MSbit set to 1) ? EXCEPTION CODE: 1 byte ? CRC: 2 bytes The 469 implements the following exception response codes. 01: ILLEGAL FUNCTION The function code transmitted is not one of the functions supported by the 469. 02: ILLEGAL DATA ADDRESS The address referenced in the data field transmitted by the master is not an allowable address for the 469. 03: ILLEGAL DATA VALUE The value referenced in the data field transmitted by the master is not within range for the selected data address. MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 10 store setpoints DATA STARTING ADDRESS 2 00 80 setpoint address 0080 NUMBER OF SETPOINTS 2 00 02 2 setpoints (4 bytes total) BYTE COUNT 1 04 2 registers = 4 bytes COMMAND FUNCTION 2 00 05 data for address 0080 COMMAND OPERATION 2 00 01 data for address 0081 CRC 2 0B D6 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 10 store setpoints DATA STARTING ADDRESS 2 00 80 setpoint address 0080 NUMBER OF SETPOINTS 2 00 02 2 setpoints (4 bytes total) CRC 2 40 8A CRC calculated by the slave 6-10 469 Motor Management Relay GE Multilin 6.3 MEMORY MAP 6 COMMUNICATIONS 6 6.3MEMORY MAP 6.3.1 MEMORY MAP INFORMATION The data stored in the 469 is grouped as Setpoints and Actual Values. Setpoints can be read and written by a master computer. Actual Values are read only. All Setpoints and Actual Values are stored as two-byte values. That is, each register address is the address of a two-byte value. Addresses are listed in hexadecimal. Data values (setpoint ranges, increments, factory values) are in decimal. Many Modbus communications drivers add 40001d to the actual address of the register addresses. For example: if address 0h was to be read, 40001d would be the address required by the Modbus communications driver; if address 320h (800d) was to be read, 40801d would be the address required by the Modbus communications driver. 6.3.2 USER-DEFINABLE MEMORY MAP AREA The 469 has a powerful feature, called the User