2.15 Using Message FunctionsFunction Codes2-359 Ethernet Communications2.15 Using Message FunctionsYou can use any registered function by specifying the corresponding function code in the message func-tion.This section describes the function codes and how to use them.Function CodesThe following tables list the function codes for each protocol.Function Codes for the Extended MEMOBUS ProtocolFunction Code Function00 hex Not used.01 hex Reads the states of coils.02 hex Reads the states of input relays.03 hex Reads the contents of hold registers.04 hex Reads the contents of input registers.05 hex Changes the state of a single coil.06 hex Writes to a single hold register.07 hex Not used.08 hex Performs a loopback test.09 hex Reads the contents of hold registers (extended).0A hex Reads the contents of input registers (extended).0B hex Writes to hold registers (extended).0C hex Not used.0D hex Reads the contents of non-consecutive hold registers (extended).0E hex Writes the contents of non-consecutive hold registers (extended).0F hex Changes the states of multiple coils.10 hex Writes to multiple hold registers.4341 hex Reads the states of bits.4345 hex Changes the state of a single bit.4346 hex Writes to a single register.4349 hex Reads the contents of registers.434B hex Writes to multiple registers.434D hex Reads the contents of non-consecutive registers.434E hex Writes the contents of non-consecutive registers.434F hex Changes the states of multiple bits.Function Codes for the A-compatible 1E Frame ProtocolFunction Code Function01 or 02 hex Reads bit devices in units of one point.03, 04, 09, or 0A hex Reads word devices in units of one point.05 or 0F hex Writes bit devices in units of one point.06, 0B, or 10 hex Writes word devices in units of one point.08 hex Performs a loopback test.0E hex Sets/resets word devices in units of one point by specifying a device number.31 hex Writes to a fixed buffer in units of one word.32 hex Reads from the random access buffer in units of one word.33 hex Writes to the random access buffer in units of one word.