EasyManuals Logo

Emerson EV2000 Series User Manual

Emerson EV2000 Series
131 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #127 background imageLoading...
Page #127 background image
Appendix 3 Communication Protocol 123
EV2000 Series Universal Variable Speed Drive User Manual
{printf("%02x ",sendstr[i]);} /* display in HEX format */
else{printf("%c",sendstr[i]);} /* display in ASCII format */
}
}
void checksum(char *sendstr,char result_sum[])
{
unsigned int i,sum=0;
static char sum_string[5];
/* calculate the sum of all the
characters */
for(i=0;i<strlen(sendstr);i++)sum+=(unsigned int) sendstr[i];
sprintf(sum_string,"%04x",sum);
for(i=0;i<4;i++)
result_sum[i]=toupper(sum_string[i]); /* convert into capital letters */
result_sum[i]=0x0; /* end of string */
}
/*result_sum return ASCII string
of Verify checksum */

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Emerson EV2000 Series and is the answer not in the manual?

Emerson EV2000 Series Specifications

General IconGeneral
BrandEmerson
ModelEV2000 Series
CategoryDC Drives
LanguageEnglish

Related product manuals