Instruction Manual
80 Communications Specification
Appendix A: Communications Driver
char error_check;  Set to BCC, or CRC. BCC = 1. CRC = 2;
Example Call:
Init_Comm_Port(1, TRUE, BCC); Open COM2 for 9600 baud using
Block Check Character(BCC).
Includes:
#include “def.h”
Return Values:
Returns TRUE if opening comm port was successful, or FALSE if
attempt failed.
Close_Comm_Port()
Use this command to Release the comm port and interrupt associated
with it.
void Close_Comm_Port(unsigned port);
unsigned port; This is either 0 or 1, depending on which
port is open.
Example Call:
 Close_Comm_Port(1); Closes comm port 2 if open.
Includes:
#include “def.h”
DownLoad()
Use this command to download controller values.
char UpLoad(int ctlr_type, unsigned char ctlr_addr, unsigned char
cmmd_num, int offset, int num_elements, void * write_addr, char sts);
int ctlr_type;  TYPE_MLS16, TYPE_MLS32, 
TYPE_CLS4, TYPE_CLS8, 
TYPE_CLS16.
unsigned char ctlr_addr;  Controller address 0 to 31.
unsigned char cmmd_num; Command or parameter 
number. See “def.h” for command
defines.
int offset; Offset into array.
int num_elements; Number of array elements to 
download.
void * write_addr;  Starting address of data array.










