ICS TRIPLEX T8423模擬量輸入模塊,模塊控制器
469將響應(yīng)請求。從機(jī)11的消息格式和示例環(huán)回測試。主傳輸:BYTES示例/描述從機(jī)11功能代碼1 08環(huán)回測試DIAG代碼2 00 00必須是00 00數(shù)據(jù)2 00 00應(yīng)該是00 00 CRC 2 E0 A1由主從機(jī)響應(yīng)計(jì)算的CRC:BYTES示例/描述從屬機(jī)11功能碼1 08環(huán)返回測試DIAG碼2 00 00的從機(jī)地址1 0B響應(yīng)消息必須是00 0數(shù)據(jù)2 00 0必須為00 00 CRC 2 E0 A1 CRC,由從屬GE Power Management 469電機(jī)管理繼電器6-13 6通信6.2支持的MODBUS功能6 6.2.8功能代碼16:存儲(chǔ)多個(gè)設(shè)置點(diǎn)MODBUS實(shí)現(xiàn):預(yù)設(shè)多個(gè)寄存器469實(shí)現(xiàn):存儲(chǔ)多設(shè)置點(diǎn)此功能代碼允許將多個(gè)設(shè)定點(diǎn)存儲(chǔ)到469存儲(chǔ)器中。Modbus“寄存器”是16位(兩字節(jié))值,先傳輸高位字節(jié)。因此,所有469個(gè)設(shè)定值都作為兩字節(jié)值發(fā)送。一個(gè)傳輸中可存儲(chǔ)的最大設(shè)定值數(shù)量取決于從設(shè)備。Modbus允許最多存儲(chǔ)60個(gè)保持寄存器。對該功能代碼的469響應(yīng)是回顯從屬地址、功能代碼、起始地址、存儲(chǔ)的設(shè)置點(diǎn)數(shù)量和CRC。消息格式和示例請求從設(shè)備11將值01F4存儲(chǔ)到設(shè)定點(diǎn)地址1180,將值01DE存儲(chǔ)到設(shè)定值地址1181。在該示例中的傳輸完成之后,469從機(jī)11將存儲(chǔ)以下設(shè)置點(diǎn)信息:地址數(shù)據(jù)1180 01F4 1181 01DE主傳輸:字節(jié)示例/描述從機(jī)11的從機(jī)地址1 0B消息功能代碼1 10存儲(chǔ)設(shè)置點(diǎn)數(shù)據(jù)起始地址2 11 80設(shè)置點(diǎn)地址1180設(shè)置點(diǎn)數(shù)量2 00 02 2設(shè)置點(diǎn)(共4字節(jié))字節(jié)計(jì)數(shù)1 04 4字節(jié)數(shù)據(jù)數(shù)據(jù)1 2 01 F4地址數(shù)據(jù)1180數(shù)據(jù)2 2 01地址1181 CRC 2 DB B1的DE數(shù)據(jù),由主從設(shè)備響應(yīng)計(jì)算:BYTES示例/描述從設(shè)備11功能代碼1 10存儲(chǔ)設(shè)置點(diǎn)數(shù)據(jù)起始地址2 11 80設(shè)置點(diǎn)地址1180設(shè)置點(diǎn)數(shù)量2 00 02 2設(shè)置點(diǎn)CRC 2 45 B6 CRC,由從設(shè)備6-14 469電機(jī)管理繼電器GE電源管理6.2計(jì)算支持的MODBUS功能6通信6 6.2.9功能代碼16:執(zhí)行命令某些PLC可能不支持使用功能代碼5執(zhí)行命令,但支持使用功能碼16存儲(chǔ)多個(gè)設(shè)置點(diǎn)。要使用功能代碼16(10H)執(zhí)行此操作,必須同時(shí)向469寫入特定的命令序列。序列包括:命令功能寄存器、命令操作寄存器和命令數(shù)據(jù)(如果需要)。命令函數(shù)寄存器必須寫入值5,表示請求執(zhí)行操作。然后,命令操作寄存器必須寫入內(nèi)存映射中顯示的命令列表中的有效命令操作編號。如果命令操作需要數(shù)據(jù),則必須使用有效數(shù)據(jù)寫入命令數(shù)據(jù)寄存器。所選命令將在收到有效傳輸后立即執(zhí)行。消息格式和示例在469(操作代碼1)主傳輸上執(zhí)行重置:BYTES示例/描述從屬地址1 0B消息用于從屬11功能代碼1 10存儲(chǔ)設(shè)置點(diǎn)數(shù)據(jù)起始地址
The 469 will echo the request. MESSAGE FORMAT AND EXAMPLE Loopback test from slave 11. 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 GE Power Management 469 Motor Management Relay 6-13 6 COMMUNICATIONS 6.2 SUPPORTED MODBUS FUNCTIONS 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. 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 6-14 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 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) MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 10 store setpoints DATA STARTING ADDRESS