XP8600
32
s
Software Reference
Use the following steps to run the sample program.
1. Compile the program by pressing
F3
or by choosing
Compile
from the
COMPILE
menu. Dynamic C compiles and downloads the program
into the controllers memory. During compilation, Dynamic C rapidly
displays several messages in the compiling window, which is normal.
2. Run the program by pressing
F9
or by choosing
Run
from the
RUN
menu. It is also possible to single-step through the program with
F7
or
F8
.
3. To halt the program, press
<CTRL-Z>
.
4. To restart the program, press
F9
.
Check the board jumpers, PLCBus connections, and the PC/
controller communications if an error message appears.
See the
Dynamic C Technical Reference
manual for more
detailed instructions.
XP86_1.C
#use eziocmmnn.lib
#use eziobl17.lib
#use ezioplc2.lib
char TITLE[] = "XP86xx DAC Output";
main(){
int i;
unsigned long delayCounter;
printf("%s\n\n", TITLE);
plcBusReset();
// reset the PLCBs
for (delayCounter = 0x8000; delayCounter--;)
hitwd();
// delay
// locate all possible jumper-set addresses
// from 0 to 7 and display status
for (i = 0; i <= 7; ++i) {
if (plcXP86Init(i)==-1) {
// do a read to locate the board
printf("board %d is not located\n\n",i);
}
else {
printf("Board %d is located \n",i);
plcXP86Out(i*2,0x0ffff);
}
printf("\n");
hitwd();
}
}
!
$
Summary of Contents for XP8600
Page 6: ...vi s Table of Contents XP8600 XP8900 Blank ...
Page 10: ...XP8600 XP8900 x s About This Manual Blank ...
Page 11: ...XP8600 ...
Page 12: ...This page is blank intentionally Blank ...
Page 20: ...XP8600 20 s Getting Started Blank ...
Page 26: ...XP8600 26 s I O Configurations Blank ...
Page 38: ...XP8600 38 s Software Reference Blank ...
Page 39: ...XP8900 ...
Page 40: ...This page is blank intentionally Blank ...
Page 48: ...XP8900 48 s Getting Started Blank ...
Page 52: ...XP8900 52 s I O Configurations Blank ...
Page 64: ...XP8900 64 s Software Reference Blank ...
Page 65: ...APPENDICES ...
Page 66: ...This page is blank intentionally Blank ...
Page 78: ...XP8600 XP8900 78 s PLCBus Blank ...
Page 79: ...XP8600 XP8900 Specifications s 79 APPENDIX B SPECIFICATIONS ...
Page 84: ...XP8600 XP8900 84 s Specifications Blank ...
Page 89: ...XP8600 XP8900 Simulated PLCBus Connections s 89 APPENDIX D SIMULATED PLCBUS CONNECTIONS ...