XP8900
62
s
Software Reference
Sample Program
The sample program
XP89_1.C
in the Dynamic C
SAMPLES\PLCBUS
subdirectory demonstrates how to calibrate the D/A converter channels.
The basic sample program is designed for the BL1200, BL1600, PK2100,
and PK2200 controllers. Remember to uncomment the lines that apply to
the controller being used with the XP8900 Series expansion board.
To use this program properly, it may be necessary to edit the statements
that initialize the channel, margin,
f1
, and
f2
. The program may also be
compiled as is, with watch expressions added to override the assignment
statements (be sure to execute the watch expression AFTER the assignment
statement is executed).
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.
!
$
Содержание XP8600
Страница 6: ...vi s Table of Contents XP8600 XP8900 Blank ...
Страница 10: ...XP8600 XP8900 x s About This Manual Blank ...
Страница 11: ...XP8600 ...
Страница 12: ...This page is blank intentionally Blank ...
Страница 20: ...XP8600 20 s Getting Started Blank ...
Страница 26: ...XP8600 26 s I O Configurations Blank ...
Страница 38: ...XP8600 38 s Software Reference Blank ...
Страница 39: ...XP8900 ...
Страница 40: ...This page is blank intentionally Blank ...
Страница 48: ...XP8900 48 s Getting Started Blank ...
Страница 52: ...XP8900 52 s I O Configurations Blank ...
Страница 64: ...XP8900 64 s Software Reference Blank ...
Страница 65: ...APPENDICES ...
Страница 66: ...This page is blank intentionally Blank ...
Страница 78: ...XP8600 XP8900 78 s PLCBus Blank ...
Страница 79: ...XP8600 XP8900 Specifications s 79 APPENDIX B SPECIFICATIONS ...
Страница 84: ...XP8600 XP8900 84 s Specifications Blank ...
Страница 85: ...XP8600 XP8900 Connecting and Mounting Multiple Boards s 85 APPENDIX C CONNECTING AND MOUNTING MULTIPLE BOARDS ...
Страница 89: ...XP8600 XP8900 Simulated PLCBus Connections s 89 APPENDIX D SIMULATED PLCBUS CONNECTIONS ...
Страница 98: ...XP8600 XP8900 98 s Index Blank ...