07 Descriptions of Parameter Settings | REG2000
20
register.
Step 5: Repeat Steps 3–4, until all eight bits are complete.
Step 6: Repeat Step 2–5, and take the message command from the next 8-bit byte until all
message commands are computed. Finally, the acquired value in the CRC register is the
CRC checksum. Note that the CRC checksum must alternate places within the message
command checksum.
The following is an example of computing the CRC checksum using C language.
unsigned char* data
// message command index
unsigned char length
// length of message command
unsigned int crc_chk(unsigned char* data, unsigned char length)
{
int j;
unsigned int reg_crc=0Xffff;
while(length--){
reg_crc ^= *data++;
for(j=0;j<8;j++){
if(reg_crc & 0x01){ /* LSB(b0)=1 */
reg_crc=(reg_crc>>1) ^ 0Xa001;
}else{
reg_crc=reg_crc >>1;
}
}
}
return reg_crc;
// final value returned to CRC register
4. Definition of parameter addresses in the communication protocol
Definition of
REG2000
parameters
Parameter
address
(GGnnH)
Function Description
GG stands for the parameter group and nn stands for the parameter
number. For example: Pr.04-01 is shown as 0401H.
Read/
Write
Command/
Write only
2000H
bit 1–0
00: No function (operation command remains unchanged)
W
01:
Stop
W
10:
Start
W
bit 15–3
No function
N/A
2001H
No
function
N/A
2002H
bit 0
1: Enable the external fault (E.F.)
W
bit1
2: Reset Command
W
bit 5–2
No function
N/A
Status
monitor/
Read only
2100H
bit7–0
High Byte: Error Code
R
bit15–8
Low Byte: Warning Code
R
2110H
bit7–0
Identity code of the Power Regenerative Unit (same as
Pr.00-00)
R
bit15–8
Product model ID (REG2000 code: 14)
R
2112H
bit15–0
Firmware version (high word, SX.XX)
S: 0–9, Defined by Delta
X.XX: 0.00–9.99, REG firmware version #
R