ModBus常用功能码 (功能码为10进制) 01 READ COIL STATUS 读线圈寄存器 02 READ INPUT STATUS 读状态寄存器03 READ HOLDING REGISTER 读保持寄存器04 READ INPUT REGISTER 读输入寄存器 05 WRITE SINGLE COIL 写单线圈寄存器 06 WRITE SINGLE REGISTER 写单保持寄存器15 WRITE MULTIPLE COIL 写多线圈寄存器16 WRITE MULTIPLE REGISTER 写多保持寄存器