ICS TRIPLEX T8423模拟量输入模块,模块控制器
469将响应请求。从机11的消息格式和示例环回测试。主传输:BYTES示例/描述从机11功能代码1 08环回测试DIAG代码2 00 00必须是00 00数据2 00 00应该是00 00 CRC 2 E0 A1由主从机响应计算的CRC:BYTES示例/描述从属机11功能码1 08环返回测试DIAG码2 00 00的从机地址1 0B响应消息必须是00 0数据2 00 0必须为00 00 CRC 2 E0 A1 CRC,由从属GE Power Management 469电机管理继电器6-13 6通信6.2支持的MODBUS功能6 6.2.8功能代码16:存储多个设置点MODBUS实现:预设多个寄存器469实现:存储多设置点此功能代码允许将多个设定点存储到469存储器中。Modbus“寄存器”是16位(两字节)值,先传输高位字节。因此,所有469个设定值都作为两字节值发送。一个传输中可存储的最大设定值数量取决于从设备。Modbus允许最多存储60个保持寄存器。对该功能代码的469响应是回显从属地址、功能代码、起始地址、存储的设置点数量和CRC。消息格式和示例请求从设备11将值01F4存储到设定点地址1180,将值01DE存储到设定值地址1181。在该示例中的传输完成之后,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数据2 2 01地址1181 CRC 2 DB B1的DE数据,由主从设备响应计算:BYTES示例/描述从设备11功能代码1 10存储设置点数据起始地址2 11 80设置点地址1180设置点数量2 00 02 2设置点CRC 2 45 B6 CRC,由从设备6-14 469电机管理继电器GE电源管理6.2计算支持的MODBUS功能6通信6 6.2.9功能代码16:执行命令某些PLC可能不支持使用功能代码5执行命令,但支持使用功能码16存储多个设置点。要使用功能代码16(10H)执行此操作,必须同时向469写入特定的命令序列。序列包括:命令功能寄存器、命令操作寄存器和命令数据(如果需要)。命令函数寄存器必须写入值5,表示请求执行操作。然后,命令操作寄存器必须写入内存映射中显示的命令列表中的有效命令操作编号。如果命令操作需要数据,则必须使用有效数据写入命令数据寄存器。所选命令将在收到有效传输后立即执行。消息格式和示例在469(操作代码1)主传输上执行重置:BYTES示例/描述从属地址1 0B消息用于从属11功能代码1 10存储设置点数据起始地址
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