5-24
ADAM-5511
Programming and Downloading
if( InitADAM4014(5, FALSE) ) ex14 = 1; else ex14 = 0;
if( InitADAM4017(6, FALSE) ) ex17 = 1; else ex17 = 0;
if( InitADAM4018(7, FALSE) ) ex18 = 1; else ex18 = 0;
if( InitADAM4021(8, FALSE) ) ex21 = 1; else ex21 = 0;
if( InitADAM4050(9, FALSE) ) ex50 = 1; else ex50 = 0;
if( InitADAM4052(10, FALSE) ) ex52 = 1; else ex52 = 0;
if( InitADAM4053(11, FALSE) ) ex53 = 1; else ex53 = 0;
if( InitADAM4060(12, FALSE) ) ex60 = 1; else ex60 = 0;
if( InitADAM4080(13, FALSE) ) ex80 = 1; else ex80 = 0;
printf(“I/O cards present :\n11,12,13,14,17,18,21,50,52,53,60,80\n”);
printf(“%2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d
%2d”,ex11,ex12,ex13, ex14,ex17,ex18,ex21,ex53,ex60,ex80);
while(1)
{
//Get4017(1, 0, &Data)
//void Set4060(int ID, void *pValue, int Bit, int Size)
//Clear_Mem_Buffer()
if( ex11 ) Get4011(2, &Data11);
if( ex12 ) Get4012(3, &Data12);
if( ex13 ) Get4013(4, &Data13);
if( ex14 ) Get4014(5, &Data14);
printf(“\nAdam-4017 = “);
if( ex17 )
{
Summary of Contents for ADAM-5511
Page 1: ...1 Introduction ...
Page 2: ......
Page 19: ...0 Quick Start Chapter ...
Page 35: ...1 Introduction Chapter ...
Page 39: ...2 System Specifications Chapter ...
Page 45: ...3 Installation Guidelines Chapter ...
Page 57: ...4 I O Modules Chapter ...
Page 110: ...4 54 ADAM 5511 I O Modules This page inyrntionally left blank ...
Page 111: ...5 Programming and Downloading Chapter ...
Page 143: ...6 Function Library Chapter ...
Page 153: ...ADAM 5511 6 11 Chapter 6 ADAMdelay 1000 WDT_clear WDT_disable Remarks None ...
Page 161: ...ADAM 5511 6 19 Chapter 6 SetRTCtime RTC_hour hour Remarks None ...
Page 163: ...ADAM 5511 6 21 Chapter 6 printf nNode number Error Remarks None ...
Page 169: ...ADAM 5511 6 27 Chapter 6 write_user_ram 0 Remarks None ...
Page 171: ...ADAM 5511 6 29 Chapter 6 Remarks None ...
Page 175: ...ADAM 5511 6 33 Chapter 6 Remarks None ...
Page 211: ...ADAM 5511 6 69 Chapter 6 Remarks None ...
Page 219: ...ADAM 5511 6 77 Chapter 6 Remarks None ...
Page 223: ...ADAM 5511 6 81 Chapter 6 printf start failed n Remarks None ...
Page 242: ...6 100 ADAM 5511 Function Library Remarks None ...
Page 244: ...6 102 ADAM 5511 Function Library Remarks None ...
Page 246: ...6 104 ADAM 5511 Function Library Remarks None ...
Page 248: ...6 106 ADAM 5511 Function Library Remarks None ...
Page 250: ...6 108 ADAM 5511 Function Library printf nAdam 4017 channel3 d data17 Remarks None ...
Page 252: ...6 110 ADAM 5511 Function Library printf nAdam 4018 channel3 d data18 Remarks None ...
Page 254: ...6 112 ADAM 5511 Function Library Remarks None ...
Page 260: ...6 118 ADAM 5511 Function Library printf nAdam 4080 channel2 d Idata80 Remarks None ...
Page 264: ...6 122 ADAM 5511 Function Library This page is blank ...
Page 297: ...A COM Port Register Structure Appendix ...
Page 301: ...B Data Formats and I O Ranges Appendix ...
Page 312: ...B 12 ADAM 5511 Data Formats and I O Ranges This page is blank ...
Page 313: ...C Examples on CD Appendix ...
Page 315: ...D RS 485 Network Appendix ...
Page 323: ...E Grounding Reference Appendix ...
Page 330: ...E 8 ADAM 5511 Grounding Reference Figure E 6 wire impedance ...