Function Code 15: Write Multiple Coils Request 1 Byte 1 to 255 PLC Node Address 1 Byte 0x0F Function Code 2 Bytes 0x0000 to 0xFFFF Starting Address 2 Bytes 1 to 1968 Quantity of Outputs 1 Byte N = Quantity of outputs / 8 Byte Count N Bytes Value(s) Outputs Value Response 1 Byte 1 to 255 PLC Node Address 1 Byte 0x0F Function Code 2 Bytes 0x0000 to 0xFFFF Starting Address 2 Bytes 1 to 1968 Quantity of Outputs Function Code 16: Write Multiple Registers Request 1 Byte 1 to 255 PLC Node Address 1 Byte 0x10 Function Code 2 Bytes 0x0000 to 0xFFFF Starting Address 2 Bytes 1 to 123 Quantity of Registers 1 Byte 2 * N (Quantity of registers) Byte Count N * 2 Bytes Value(s) Outputs Value Response 1 Byte 1 to 255 PLC Node Address 1 Byte 0x10 Function Code 2 Bytes 0x0000 to 0xFFFF Starting Address 2 Bytes 1 to 123 Quantity of Registers
Function Code 15: Write Multiple Coils Request PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x0F Starting Address 2 Bytes 0x0000 to 0xFFFF Quantity of Outputs 2 Bytes 1 to 1968 Byte Count 1 Byte N = Quantity of outputs / 8 Outputs Value N Bytes Value(s) Response PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x0F Starting Address 2 Bytes 0x0000 to 0xFFFF Quantity of Outputs 2 Bytes 1 to 1968 Function Code 16: Write Multiple Registers Request PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x10 Starting Address 2 Bytes 0x0000 to 0xFFFF Quantity of Registers 2 Bytes 1 to 123 Byte Count 1 Byte 2 * N (Quantity of registers) Outputs Value N * 2 Bytes Value(s) Response PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x10 Starting Address 2 Bytes 0x0000 to 0xFFFF Quantity of Registers 2 Bytes 1 to 123
PI_ModbusE_4.0.2.80.docx