EasyManua.ls Logo

Holip hlp-c+ - RTU Mode

Holip hlp-c+
103 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 75 -
HLP-C
+
Inverters
Quiet ADDR FUNC LEN D
n-1
~D
(0)
CRC Quiet
50ms 50ms
Length set: when one word, LEN=3
when one byte or
1byte,
LEN=2
DATA
<Data characters> data content. 2n ASCII compose
n bytes, it have fty ASC
at most.
LRC
longitudinal redundancy check
ASCII mode: Get LRC methods is that add ADDR to the last
data, if the result is more than 256,then the result subtract 256
until the result is less then 256 (if the result is 128H, take 28H),
then 100H subtract the result get LRC.
For example: write 30.00Hz to inverter of 01
write to C000
STX ADDR FUNC LEN DATA LRC END
“0”
1
“0”
“2”
“0”
“2”
“0”“0”“0”
“B”“HB”“8”
“3”
7”
“CR
“LF
3AH
30H
31H
30H
32H
30H
33H
30H 30H 30H
42H 42H 38H
33H
37H
0DH
0AH
Calculate LRC: 01H+02H+03H+00H+0BH+B8H=C9H
C9H subtracted from 100H: 37H
So the sent data is following
3AH 30H 31H 30H 32H 30H 33H
30H 30H 30H
42H 42H 38H 33H 37H 0DH 0AH
3.2 RTU Mode
Quiet: the time of no data is more than 50 ms
ADDR
Communication address, 8-bit data
FUNC
Function code, 8-bit data, refers to 3.1-3
LEN
Data length, the length of D
n-1
~D0
DATA
data content, n*8-bit
LRC
Longitudinal Redundancy Check
RTU mode: get CRC
cyclical Redundancy Check
.
The CRC calculation method is following:
make a 16-bit register and set value 0FFFFH(call CRC
register)
done rst byte of data Exclusive OR with low byte of 16-bit

Table of Contents

Related product manuals