Mitsubishi Electric MELSEC iQ-F FX5 User Manual page 66

Modbus communication
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

The following is a calculation example in the case where function code 05H is sent to station No. (address field) 2.
CRC error check procedure
(Load the register whose 16 bits are all "1")
02H (Station No.)
Exclusive OR (XOR)
Shift 1
Generator value
Exclusive OR (XOR)
Shift 2
Generator value
Exclusive OR (XOR)
Shift 3
Shift 4
Generator value
Exclusive OR (XOR)
Shift 5
Shift 6
Generator value
Exclusive OR (XOR)
Shift 7
Shift 8
Generator value
Exclusive OR (XOR)
05H (Function code)
Exclusive OR (XOR)
Shift 1
Generator value
Exclusive OR (XOR)
Shift 2
Shift 3
Shift 4
Generator value
Exclusive OR (XOR)
Shift 5
Shift 6
Generator value
Exclusive OR (XOR)
Shift 7
Generator value
Exclusive OR (XOR)
Shift 8
CRC value
APPX
64
Appendix 3 The frame specifications
Address field
Function code
(02H)
16-bit register
1111
1111
0000
0000
1111
1111
0111
1111
1010
0000
1101
1111
0110
1111
1010
0000
1100
1111
0110
0111
0011
0011
1010
0000
1001
0011
0100
1001
0010
0100
1010
0000
1000
0100
0100
0010
0010
0001
1010
0000
1000
0001
0000
0000
1000
0001
0100
0000
1010
0000
1110
0000
0111
0000
0011
1000
0001
1100
1010
0000
1011
1100
0101
1110
0010
1111
1010
0000
1000
1111
0100
0111
1010
0000
1110
0111
0111
0011
73H
CRC (Error check)
(05H)
(C1H)
Carry Flag
1111
1111
0000
0010
1111
1101
1111
1110
0000
0001
1111
1111
1111
1111
0000
0001
1111
1110
1111
1111
1111
1111
0000
0001
1111
1110
1111
1111
1111
1111
0000
0001
1111
1110
0111
1111
0011
1111
0000
0001
0011
1110
0000
0101
0011
1011
1001
1101
0000
0001
1001
1100
0100
1110
0010
0111
0001
0011
0000
0001
0001
0010
0000
1001
0000
0100
0000
0001
0000
0101
1000
0010
0000
0001
1000
0011
1100
0001
C1H
(73H)
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents