Algorithm; Timing - GE MOTOR MANAGEMENT RELAY 469 Instruction Manual

Table of Contents

Advertisement

6 COMMUNICATIONS
Once the following algorithm is complete, the working register "A" will contain the CRC value to be transmitted.
Note that this algorithm requires the characteristic polynomial to be reverse bit ordered. The MSbit of the char-
acteristic polynomial is dropped since it does not affect the value of the remainder.
Symbols:
-->
A
A
low
A
high
CRC
i, j
(+)
N
D
i
G
shr (x) right shift operator (the LSbit of x is shifted into a carry flag, a '0' is shifted into the

Algorithm:

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Data packet synchronization is maintained by timing constraints. The receiving device must measure the time
between the reception of characters. If three and one half character times elapse without a new character or
completion of the packet, then the communication link must be reset (i.e. all slaves start listening for a new
transmission from the master). Thus at 9600 baud a delay of greater than 3.5 × 1 / 9600 × 10 = 3.65 ms will
cause the communication link to be reset.
GE Power Management
data transfer
16 bit working register
low order byte of A
high order byte of A
16 bit CRC-16 result
loop counters
logical EXCLUSIVE-OR operator
total number of data bytes
i-th data byte (i = 0 to N-1)
16 bit characteristic polynomial = 1010000000000001 (binary) with MSbit dropped
and bit order reversed
MSbit of x, all other bits are shifted right one location)
FFFF (hex) --> A
0 --> i
0 --> j
D
(+) A
--> A
i
low
low
j + 1 --> j
shr (A)
Is there a carry? No: go to step 8.
Yes: G (+) A --> A and continue.
Is j = 8?
No: go to 5.
Yes: continue.
i + 1 --> i
Is i = N?
No: go to 3.
Yes: continue.
A --> CRC
469 Motor Management Relay
6.1 MODBUS COMMUNICATIONS
6.1.5 CRC-16 ALGORITHM

6.1.6 TIMING

6
6-3

Advertisement

Table of Contents
loading

Table of Contents