5-69
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;
// the value that sent back to the CRC register finally
}
4. Definition of the Parameters Addresses of the Communication Protocol:
Definition
Parameter Address
Function
Parameter setting
within the drive
GGnnH
GG suggests the parameter group whereas nn
suggests the parameter code. For example,
Pr. 04-01 is indicated as 0401H.
Command toward
the drive
2000H
Bit0~3
0: no function
1: STOP
2: RUN
3: JOG + RUN
Bit4~5
00B: no function
01B: FWD
10B: REV
11B: direction change
Summary of Contents for S3000 Series
Page 8: ...2 5 DIMENTIONS 2 5...
Page 9: ...2 6 403 216...
Page 10: ...2 7...
Page 11: ...2 8 S3000 IP06...