Unitek Miyachi LW250 Operation, Maintenance And Service Manual page 99

Yag laser
Table of Contents

Advertisement

APPENDIX B: EXTERNAL COMMUNICATIONS INTERFACE SPECIFICATION
char command[300];
/*
calbcc: used to calculate BCC and concatinate
BCC to the end of the string.
NOTE:
printf statement is only to help debugging.
*/
char calbcc(bf)
char
*bf;
{
char bcc;
int n;
printf("Command: %02X ", bf[0]);
bcc = 0;
for (n = 1; ; n++)
{
printf("%02X ", bf[n]);
bcc ^= bf[n];
if (bf[n] == ETX)
break;
}
printf(" BCC: %02X\n", bcc);
bf[++n] = bcc;
]
main()
{
/*
Following statement compose a command string to read
Repeated PPS of schedule 5
*/
990-605 REV B: May, 1997
LW250 PULSED Nd: YAG LASER
B-6

Advertisement

Table of Contents
loading

Related Products for Unitek Miyachi LW250

Table of Contents