Function Code 6: Write Single Register Request 1 Byte 1 to 255 PLC Node Address 1 Byte 0x06 Function Code 2 Bytes 0x0000 to 0xFFFF Register Address 2 Bytes 0x0000 to 0xFFFF Register Value 2 Bytes Variable CRC Response 1 Byte 1 to 255 PLC Node Address 1 Byte 0x06 Function Code 2 Bytes 0x0000 to 0xFFFF Register Address 2 Bytes 0x0000 to 0xFFFF Register Value 2 Bytes Variable CRC 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 2 Bytes Variable CRC 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 2 Bytes Variable CRC
Function Code 6: Write Single Register Request PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x06 Register Address 2 Bytes 0x0000 to 0xFFFF Register Value 2 Bytes 0x0000 to 0xFFFF CRC 2 Bytes Variable Response PLC Node Address 1 Byte 1 to 255 Function Code 1 Byte 0x06 Register Address 2 Bytes 0x0000 to 0xFFFF Register Value 2 Bytes 0x0000 to 0xFFFF CRC 2 Bytes Variable 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) CRC 2 Bytes Variable 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 CRC 2 Bytes Variable
PI_ModbusS_4.0.7.61.docx