XP8600
Software Reference
s
31
Address Target Board
int plcXP86Init( int Addr )
Initializes and turns on XP8600. Call this function before calling
plcXP86Out
.
PARAMETERS:
Addr
is the logical address of the board set by
jumpers, and ranges from 07. With special PALs, the address can
range from 063.
RETURN VALUE: 1 if the board cannot be found, 0 if the initializa-
tion is completed.
LIBRARY:
EZIOPBDV.LIB
Operate Target Board
int plcXP86Out( int Addr, unsigned int oValue )
Sends the 12-bit
oValue
to the proper D/A converter channel. Call
plcXP86Init
before calling
plcXP86Out
.
PARAMETERS:
Addr
, the logical address of the D/A converter
channel, is
2*board_ channel_number
. Note that
board_number
and
channel_number
start from zero. Without a
special PAL,
board_number
ranges from 0 to 7 as set by the address
jumpers. With the special PAL,
board_number
can range from 0 to
63.
channel_number
ranges from 0 to 1.
oValue
is the 12-bit value to send to the D/A converter.
RETURN VALUE: -1 if the D/A converter cannot be found, 0 if the
operation is successful.
LIBRARY:
EZIOPBDV.LIB
Sample Program
The sample program
XP86_1.C
in the Dynamic C
SAMPLES\PLCBUS
subdirectory demonstrates higher level function calls for the D/A converter
outputs. The program is used to detect XP8600 boards attached to the
PLCBus, and maximizes the D/A converter outputs.
Содержание 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 ...