Three examples of communication using the three available MODBUS
Functions Codes supported on this device. (0x03) (0x06) and (0x10)
1 : Read the displayed output voltage and current value. (Using Function 0x03)
Message format sent from Host:
From host to slave address 01H
Register starting
address
Register starting address
Number of registers to
read
A total of 2 registers (4 byte = 2
words)
For example if the displayed values are 05.00V , 5.000A , The Slave return response would be:
The contents of 1
st
register read
Output voltage display
values
The contents of 2
nd
register read
Output current display value
2 : Host to set the voltage to 24.00V. (Using Function 0x06)
Message format sent from host:
From host to slave address
01H
The value to write to the register
Message format returned from Slave:
The contents of the register read
3 : Host to set the voltage to 24.00V , The current 1.500A. (Using Function 0x10 (decimal 16))
Message format sent from HOST:
From host to slave address
01H
Register starting address
Register the starting address
Quantity of registers to write to
4 Bytes = 2 words = 2 registers