User manual for Digital Indicator and cooperating software
01h
- illegal function (only functions 03h, 06h and 10h are available),
02h
- illegal register address
03h
- illegal data value
08h
- no write permission ( see: “
Config change
” parameter in the “
RS485 port settings
”
menu)
8.3.
EXAMPLES OF QUERY/ANSWER FRAMES
The examples concern a unit with address 1. All values are given in the hexadecimal system.
Designations:
ADDR
Address of the device in the system
FUNC
Function number
REG H,L
Higher and lower part of registry number, to which the command refers to
COUNT H,L
Higher and lower part of registry counter number, to which the command refers
to, starting with the register, which is defined by REG (max. 32)
BYTE C
Number of higher bytes in the frame
DATA H,L
Higher and lower part of data word
CRC L,H
Higher and lower part of CRC sum
1. Read of ID code
ADDR
FUNC
REG H,L
COUNT H,L
CRC L,H
01
03
00
21
00
01
D4
00
The answer:
ADDR
FUNC
BYTE C
DATA H,L
CRC L,H
01
03
02
DATA H,L - identification code (009Ch)
2. Change of the device address from 1 to 2 (write to reg. 20h)
ADDR
FUNC
REG H,L
DATA H,L
CRC L,H
01
06
00
20
00
02
09
C1
DATA H - 0
DATA L - new device address (2)
The answer (the same as the message):
38