Example: Reading system time
The system time is deposited in table 1 under the
address 3000. The system time consists of 6 Bytes
with year, month, day, hours, minutes and seconds
in format "char" = 0..255. The device address of the
UMG 505 is considered as address = 01.
The "
Query Message" looks as follows:
Description Hex Comment
Device address 01 UMG505, Address = 1
Function 03 "Read Holding Register"
Start address Hi 0B 3000dez = 0BB8hex
Start address Lo B8
Number of val. Hi 00 6dez = 0006hex
Number of val. Lo 06
Error Check -
The "Response" of the UMG505 can look as follows:
Description Hex Comment
Device address 01 UMG505, Address = 1
Function 03
Byte counter 06
Data 00 Year = 00hex = 00dez = 2000dez
Data 0A Month = 0Ahex = 10dez = Okt.
Data 0C Day = 0Chex = 12dez
Data 0F Hour = 0Fhex = 15dez
Data 1E Minute = 1Ehex = 30dez
Data 0A Second =0Ahex = 10dez
Error Check (CRC)-