ICS TRIPLEX T8821工控模块机器人备件
..6-4 469电机管理继电器GE Power Management 6.2支持的MODBUS功能6通信6 6.2支持的MODBUS功能6.2.1概述469支持以下功能:•01-读取继电器线圈•02-读取数字输入状态•03-读取设定值和实际值•04-读取设定点和实际值·05-执行操作•06-存储单个设定值•07-读取设备状态•08-环回测试•16-存储多个设定值6.2.2功能代码01/02:读取继电器线圈/数字输入状态Modbus实施:读取线圈和输入状态469实施:读取继电器盘管和数字输入状态对于Modbus的469实施,这些命令可用于读取继电器线圈状态或数字输入状态。a) 功能01标准实现需要以下内容:从属地址(一个字节)、功能代码(一字节)、启动继电器线圈(两字节)、要读取的线圈数(两个字节)和CRC(两个)。从机响应包括从机地址(一个字节)、功能代码(一个)、继电器线圈掩码字节计数(一字节;由于只有六个继电器线圈,所以始终为01)、指示请求的继电器线圈状态的位掩码(一个字节)和CRC(两个字节)。b) FUNCTION 02标准实现要求如下:从属地址(一个字节)、功能代码(一个字符)、起始数字输入(两个字符),要读取的数字输入数量(两个字节)和CRC(两个字母)。从属响应是从属地址(一个字节)、功能代码(一个)、数字输入掩码的字节计数(一个字符)、指示所请求数字输入状态的位掩码(一个或两个字符)和CRC(两个字符。注意:CRC以两字节数字的形式发送,先发送低位字节。GE Power Management 469电机管理继电器6-5 6通信6.2支持的MODBUS功能6 c)消息格式和示例,功能01请求从机11响应继电器线圈3至5的状态:如果输入了零的启动继电器线圈(启动数字输入),则469将默认为一。如果请求的继电器数量(数字输入数量)超过可用继电器数量,则会提示用户“非法数据”信息。继电器状态R1通电R2断电R3断电R4断电R5通电R6通电位掩码0011 0001(0 x 31)主传输:BYTES示例/描述从属11功能代码1 01的从属地址1 0B消息读取继电器线圈状态启动继电器线圈2 00 03启动继电器线圈3继电器数量2 00 03 3个继电器线圈(即R3、R4、R5)CRC 2 8C A1 CRC,通过从机11功能代码1 01读取继电器线圈状态字节计数1 01 1字节位掩码位掩码1请求继电器的10位掩码(0001 0000)CRC 2 53 93由从机计算的CRC注释6-6 469电机管理继电器GE Power Management 6.2支持的MODBUS功能6通信6 d)消息格式和示例,功能02示例1:请求从设备11响应数字输入5至9的状态:数字输入状态D1:访问关闭D2:测试打开D3:启动器状态打开D4:紧急重启打开D5:远程重置关闭D6:可分配输入1关闭D7:可指配输入2关闭D8:可指派输入3关闭D9:可指定输入4关闭位掩码(LSB)0111 0001位掩码(MSB)0000 0001
6-4 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 6 6.2 SUPPORTED MODBUS FUNCTIONS 6.2.1 OVERVIEW The following functions are supported by the 469: • 01 - Read Relay Coil • 02 - Read Digital Input Status • 03 - Read Setpoints and Actual Values • 04 - Read Setpoints and Actual Values • 05 - Execute Operation • 06 - Store Single Setpoint • 07 - Read Device Status • 08 - Loopback Test • 16 - Store Multiple Setpoints 6.2.2 FUNCTION CODES 01/02: READ RELAY COIL / DIGITAL INPUT STATUS Modbus implementation: Read Coil and Input Status 469 Implementation: Read Relay Coil and Digital Input Status For the 469 implementation of Modbus, these commands can be used to read Relay Coil Status or Digital Input Status. a) FUNCTION 01 The standard implementation requires the following: slave address (one byte), function code (one byte), starting relay coil (two bytes), number of coils to read (two bytes), and CRC (two bytes). The slave response is the slave address (one byte), function code (one byte), relay coil mask byte count (one byte; always 01 since only six relay coils), bit mask indicating the status of requested relay coils (one byte), and CRC (two bytes). b) FUNCTION 02 The standard implementation requires the following: slave address (one byte), function code (one byte), starting digital input (two byte), number of digital inputs to read (two bytes), and CRC (two bytes). The slave response is the slave address (one byte), function code (one byte), byte count of digital input mask (one byte), bit mask indicating the status of requested digital inputs (one or two bytes), and CRC (two bytes). Note: the CRC is sent as a two byte number with the low order byte sent first. GE Power Management 469 Motor Management Relay 6-5 6 COMMUNICATIONS 6.2 SUPPORTED MODBUS FUNCTIONS 6 c) MESSAGE FORMAT AND EXAMPLE, FUNCTION 01 Request slave 11 to respond with status of relay coil 3 to 5: If STARTING RELAY COIL (STARTING DIGITAL INPUT) of Zero is entered, then 469 will default it to One. If the NUMBER OF RELAYS (NUMBER OF DIGITAL INPUTS) requested exceeds the number of relays available then user is prompted with a “ILLEGAL DATA” message. Relay Status R1 Energized R2 De-energized R3 De-energized R4 De-energized R5 Energized R6 Energized Bit Mask 0011 0001 (0 x 31) MASTER TRANSMISSION: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B message for slave 11 FUNCTION CODE 1 01 read relay coil status STARTING RELAY COIL 2 00 03 starting relay coil 3 NUMBER OF RELYAS 2 00 03 3 relays coils (i.e. R3, R4, R5) CRC 2 8C A1 CRC calculated by the master SLAVE RESPONSE: BYTES EXAMPLE / DESCRIPTION SLAVE ADDRESS 1 0B response message from slave 11 FUNCTION CODE 1 01 read relay coil status BYTE COUNT 1 01 1 byte bit mask BIT MASK 1 10 bit mask of requested relay (0001 0000) CRC 2 53 93 CRC calculated by the slave NOTE 6-6 469 Motor Management Relay GE Power Management 6.2 SUPPORTED MODBUS FUNCTIONS 6 COMMUNICATIONS 6 d) MESSAGE FORMAT AND EXAMPLE, FUNCTION 02 Example 1: Request slave 11 to respond with status of digital inputs 5 to 9: 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 Closed D9: Assignable Input 4 Closed Bit Mask (LSB) 0111 0001 Bit Mask (MSB) 0000 0001