ICS TRIPLEX T8801机器人模块卡件
主传输:BYTES示例/描述从机11的从机地址1 0B消息功能代码1 02读取数字输入状态STARTING digital input 2 00 05从数字输入5 NUMBER OF DIGITAAL INPUTS 2 00 05 5数字输入(即D5、D6、D7、D8、D9)CRC 2 A8 A2 CRC,由主从机响应计算:BYTES示例/描述从机11功能代码1 02读取继电器线圈状态字节计数1 02 2字节位掩码位掩码2 71请求数字输入CRC 2 C5 B9 CRC的01位掩码,由从机GE Power Management 469电机管理继电器6-7 6通信6.2支持MODBUS功能6示例2:请求从机11响应数字输入1至4的状态:数字输入状态D1:访问关闭D2:测试打开D3:启动器状态打开D4:紧急重启打开D5:远程重置关闭D6:可分配输入1关闭D7:可指派输入2关闭D8:可指定输入3打开D9:可分派输入4关闭位掩码(LSB)0111 0001主传输:BYTES示例/描述从机11功能代码1 02的从机地址1 0B消息读取数字输入状态STARTING digital Input 2 00 01从数字输入1数字输入数量2 00 04 4数字输入(即D1、D2、D3、D4)CRC 2 28 A3由主从机计算的CRC响应:BYTES示例/描述从机11功能代码1 02读取继电器线圈状态BYTE COUNT 1 01 2字节位掩码位掩码2 01所请求数字输入的位掩码CRC 2 63 90由从机计算6-8 469电机管理继电器GE Power Management 6.2支持的MODBUS功能6通信6 6.2.3功能代码03/04:读取设定值/实际值MODBUS实现:读取输入和保持寄存器469实现:读取设定点和实际值对于MODBUS的469实现,这些命令可用于读取任何设定值(“保持寄存器”)或实际值(“输入寄存器”)。保持寄存器和输入寄存器是16位(两字节)值,先以高位字节传输。因此,所有469个设定值和实际值都作为两个字节发送。一次传输中可读取的最大寄存器数为125。功能代码03和04被配置为可互换地读取设定值或实际值,因为某些PLC不支持这两个功能代码。从机对这些功能码的响应是从机地址、功能码、后续数据字节数的计数、数据本身和CRC。每个数据项都以两字节的形式发送,首先发送高阶字节。CRC以两字节数的形式发送,低位字节先发送。消息格式和示例请求从机11以地址0308开始的2个寄存器进行响应。在本例中,这些地址中的寄存器数据为:地址数据0308 0064 0309 000A主传输:BYTES示例/描述从站地址1 0B消息从站11功能代码1 03读取寄存器数据起始地址2 03 08数据起始于0308设置点数量2 00 02 2个寄存器(共4字节)CRC 2 45 27 CRC,由主从站响应计算:BYTES示例/描述从机11的从机地址1 0B响应消息功能代码1 03读取寄存器字节计数1 04 2寄存器=地址0308中的4字节数据1 2 00 64值数据2 2 00 0A地址0309中的值CRC 2 EB 91 CRC由从机GE Power Management 469电机管理继电器6-9 6通信6.2支持的MODBUS功能6 6.2.4功能代码05:执行操作MODBUS实施:强制单线圈469实施:执行操作此功能代码允许主机请求469执行特定命令操作。
MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 02 read digital input status STARTING DIGITAL INPUT 2 00 05 starting at digital input 5 NUMBER OF DIGITAL INPUTS 2 00 05 5 digital inputs (i.e. D5, D6, D7, D8, D9) CRC 2 A8 A2 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 02 read relay coil status BYTE COUNT 1 02 2 byte bit mask BIT MASK 2 71 01 bit mask of requested digital input CRC 2 C5 B9 CRC calculated by the slave GE Power Management 469 Motor Management Relay 6-7 6 COMMUNICATIONS 6.2 SUPPORTED MODBUS FUNCTIONS 6 Example 2: Request slave 11 to respond with status of digital inputs 1 to 4: Digital Input Status D1: Access Closed D2: Test Open D3: Starter Status Open D4: Emergency Restart Open D5: Remote Reset Closed D6: Assignable Input 1 Closed D7: Assignable Input 2 Closed D8: Assignable Input 3 Open D9: Assignable Input 4 Closed Bit Mask (LSB) 0111 0001 MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 02 read digital input status STARTING DIGITAL INPUT 2 00 01 starting at digital input 1 NUMBER OF DIGITAL INPUTS 2 00 04 4 digital inputs (i.e. D1, D2, D3, D4) CRC 2 28 A3 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 02 read relay coil status BYTE COUNT 1 01 2 byte bit mask BIT MASK 2 01 bit mask of requested digital input CRC 2 63 90 CRC calculated by the slave 6-8 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 6 6.2.3 FUNCTION CODES 03/04: READ SETPOINTS/ACTUAL VALUES Modbus implementation: Read Input and Holding Registers 469 Implementation: Read Setpoints and Actual Values For the 469 implementation of Modbus, these commands can be used to read any Setpoint ("holding registers") or Actual Value ("input registers"). Holding and input registers are 16 bit (two byte) values transmitted high order byte first. Thus all 469 Setpoints and Actual Values are sent as two bytes. The maximum number of registers that can be read in one transmission is 125. Function codes 03 and 04 are configured to read setpoints or actual values interchangeably because some PLCs do not support both function codes. The slave response to these function codes is the slave address, function code, a count of the number of data bytes to follow, the data itself and the CRC. Each data item is sent as a two byte number with the high order byte sent first. The CRC is sent as a two byte number with the low order byte sent first. MESSAGE FORMAT AND EXAMPLE Request slave 11 to respond with 2 registers starting at address 0308. For this example the register data in these addresses is: Address Data 0308 0064 0309 000A MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 03 read registers DATA STARTING ADDRESS 2 03 08 data starting at 0308 NUMBER OF SETPOINTS 2 00 02 2 registers (4 bytes total) CRC 2 45 27 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 03 read registers BYTE COUNT 1 04 2 registers = 4 bytes DATA 1 2 00 64 value in address 0308 DATA 2 2 00 0A value in address 0309 CRC 2 EB 91 CRC calculated by the slave GE Power Management 469 Motor Management Relay 6-9 6 COMMUNICATIONS 6.2 SUPPORTED MODBUS FUNCTIONS 6 6.2.4 FUNCTION CODE 05: 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.