Watlow CLS200, MLS300 and CAS200 User Manual Page 87

  • Download
  • Add to my manuals
  • Print
  • Page
    / 92
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 86
Appendix A: Communications Driver
Communications Specification 81
char sts; Controller status. See the Anafaze
Controller/Host InterfaceData
and Communication
Specification manual.
Example Call:
return_value = DownLoad(TYPE_CLS8, 1, SETPT, 0, 8, sp); This call
downloads 8 setpoints to an 8CLS with an address of 2.
Includes:
#include “def.h”
Return Value:
Returns: 1 if the download was successful. This what you
should normally get.
2 if the controller found an error in the download
comm string. Sent NAK or negative
acknowledge.
3 if the download was completely unsuccessful.
4 if the download was not completed because
controller editing was in progress. Controller
locked out any attempts to write.
UpLoad()
Use this command to upload 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.
char sts; Controller status. See the Anafaze
Controller/Host InterfaceData
and Communications
Specification manual.
Page view 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92

Comments to this Manuals

No comments