168 • MODBUS FunctionsDescription of the MODBUS FunctionsWAGO-I/O-SYSTEM 750ETHERNET TCP/IP6.3.6 Function Code FC6 (Write single register)This function writes the value of one single output register to a slave device inword format.RequestThe request specifies the reference number (register address) of the firstoutput word to be written. The value to be written is specified in the “RegisterValue” field. The reference number of the request is zero based; therefore, thefirst register starts at address 0.Example: Write a value of 0x1234 to the second output register.Byte Field name ExampleByte 0, 1 Transaction identifier 0x0000Byte 2, 3 protocol identifier 0x0000Byte 4, 5 length field 0x0006Byte 6 Unit identifier 0x01 not usedByte 7 MODBUS function code 0x06Byte 8, 9 reference number 0x0001Byte 10, 11 Register Value 0x1234ResponseThe reply is an echo of the inquiry.Byte Field name Example.....Byte 7 MODBUS function code 0x06Byte 8, 9 Reference number 0x0001Byte 10, 11 Register Value 0x1234ExceptionByte Field name Example.....Byte 7 MODBUS function code 0x85Byte 8 Exception code 0x01 or 0x02