Frame Length Calculation - Fuji Electric FRENIC-AQUA series User Manual

Rs-485 communication
Hide thumbs Also See for FRENIC-AQUA series:
Table of Contents

Advertisement

N
PROCESS
38
CRC = No.37 Xor GP
39
Shift > 1
40
CRC = No.39 Xor GP
41
Shift > 2
42
CRC = No.41 Xor GP
43
Shift > 1
44
CRC = No.43 Xor GP
th
45
5
data byte
46
CRC = No.44 Xor No.45
47
Shift > 5
48
CRC = No.47 Xor GP
49
Shift > 2
50
CRC = No.49 Xor GP
51
Shift > 1
52
CRC = No.51 Xor GP
th
53
6
data byte
54
CRC = No.52 Xor No.53
55
Shift > 3
56
CRC = No.55 Xor GP
57
Shift > 2
58
CRC = No.57 Xor GP
59
Shift > 2
60
CRC = No.59 Xor GP
61
Shift > 1
(shift of No. 8 terminated)
Transmitted CRC data
From the above calculation, the transmitted data is as shown below:
Station
'FC'
address
01
03
H
H
3.4.4

Frame length calculation

To calculate CRC-16, it is necessary to know the length of variable length messages. The
length of all types of messages can be determined according to Table 3.14 Lengths of response
messages.
'FC'
1
Read coil status
3
Read holding registers
5
Force single coil
6
Preset single register
8
Diagnostics
15
Force multiple coils
16
Preset multiple registers
128 to 255
Exception function
th
rd
th
*1 7
, 3
: The 7
and 3
Table 3.13 CRC data calculation table (Continued)
15 14
13 12
11
10
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
0
1
0
0
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
0
1
1
1
1
0
0
1
0
0
0
0
0
0
1
1
1
0
0
1
0
0
0
1
1
1
1
0
1
1
1
1
0
0
1
0
1
1
1
0
0
0
1
1
0
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
4
Function code
03
02
H
H
Table 3.14 Length of response messages
Description
Query/Broadcast message
length (except CRC code)
6 bytes
6 bytes
6 bytes
6 bytes
6 bytes
7 + (7
7 + (7
Unused
rd
byte count values stored in the frame.
3-23
9
8
7
6
5
4
1
1
0
0
0
1
1
1
1
0
0
0
1
1
1
0
0
0
1
0
1
1
1
0
1
0
1
1
1
0
0
1
0
1
1
1
0
1
0
1
1
1
0
0
0
0
0
0
0
1
0
1
1
1
1
1
0
1
0
0
1
1
0
1
0
0
0
1
1
1
0
1
0
1
1
1
0
1
0
0
1
1
1
0
0
0
1
1
1
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
0
1
0
1
1
0
0
1
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
1
1
0
1
E
Number of read
CRC check
data
00
14
E4
H
H
th
) bytes *1
th
) bytes *1
3.4 CRC-16
3
2
1
0
Flag
0
1
1
1
1
0
1
1
1
1
0
1
0
0
0
1
0
1
0
0
1
1
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
1
1
0
1
0
0
0
1
0
1
0
0
1
1
1
0
0
1
1
1
0
0
0
0
1
0
0
1
1
0
0
1
1
1
1
1
1
1
1
0
0
1
1
1
1
0
1
1
0
1
0
0
1
1
1
0
0
0
0
1
0
0
0
4
41
H
H
Length of response
message
(except CRC code)
rd
3 + (3
) bytes *1
rd
3 + (3
) bytes *1
6 bytes
6 bytes
6 bytes
6 bytes
6 bytes
3 bytes

Advertisement

Table of Contents
loading

This manual is also suitable for:

Frenic-hvac series

Table of Contents