AH500 Programming Manual 16-bit register, and performs the logical exclusive OR operation on each pair of corresponding bits. The operation result is stored in the 16-bit register. Step 3: The values of the bits in the 16-bit registers are shifted by one bit to the right. The value of the highest bit becomes 0. Step 4: If the value of the right-most bit which is shifted to the right is 0, the data gotten from step 3 is stored in the 16-bit register. Otherwise, the logical operator XOR takes 16#A001 and the data in the 16-bit register, and performs the logical exclusive OR operation on each pair of corresponding bits. The operation result is stored in the 16-bit register. Step 5:
Repeat step 3 and step 4, and perform the operation on the 8-bit message. Step 6: Repeat step 2~step 5, and get the next 8-bit message. Perform the operations on all messages. The final result in the 16-bit register is the CRC check code. Notice that the low 8-bit data in the 16-bit register is interchanged with the high 8-bit data in the 16-bit register before the CRC check code is put into the check code of the message. Start/End: The data transmission speed is as follows. Example: Reading the data from the two registers in the drive at address 16#01 The initial register address is 16#2102. Inquiry message: Response message:
6-389 Baud rate (bps) RTU timeout Timer (ms) Baud rate (bps) RTU timeout timer (ms) 4800 9 115200 1 9600 5 260400 1 19200 3 520800 1 38400 2 1041600 1 57600 1 Address 16#01 Function 16#03 16#21 Initial register address 16#02 16#00 Number of data 16#02 (counted by the word) CRC CHK Low 16#6F 16#F7 CRC CHK High Address 16#01 Function 16#03 Number of data 16#04 (counted by the byte) Contents of the register 16#17 at address 16#70 16#2102 Contents of the register 16#00 at address 16#00 16#2103 CRC CHK Low 16#FE CRC CHK High 16#5C