XP8900
60
s
Software Reference
int plcXP89RdCalib( int chan,
struct _eioAdcCalib *pCalib )
Reads the calibration structure of a D/A channel from an XP8900
Series board.
PARAMETERS:
chan
is the channel number, 063, of the XP8900
Series D/A channel.
chan
=
8*board_ channel_number
.
_eioAdcCalib *pCalib
is a pointer to a calibration structure. Use
eioAdcDigitize
to compute the actual D/A output of a given analog
value.
RETURN VALUE: 0 if the operation is successful, otherwise returns a
negative number.
LIBRARY:
EZIOPBDV.LIB
int eioAdcMakeCoeff( struct _eioAdcCalib *cnvrsn,
unsigned d1, unsigned d2, float f1, float f2 )
Takes the raw values and actual values of two data points, then com-
putes the calibration coefficients (assumes linearity).
PARAMETERS:
struct _eioAdcCalib *cnvrsn
is a pointer to a
calibration structure that stores the coefficients.
d1
is the raw (quantized) value of the first data point.
d2
is the raw (quantized) value of the second data point.
f1
is the actual (real) value (in volts) of the first data point.
f2
is the actual (real) value (in volts) of the second data point.
RETURN VALUE: 1 if it is not possible to compute the calibration
coefficients, otherwise 0.
LIBRARY:
EZIOPBDV.LIB
plcXP89RdCalib(32,&cinfo)
// read calib info of channel 0 of XP8900
// XP8900 Series board 4 into cinfo
eioAdcMakeCoeff(&cinfo,96,4000,9.97,-10.33)
// the actual value at quantized value 96 is 9.97 V
// the actual value at quantized value 4000 is -10.03 V
// compute the coefficients and put into cinfo
Содержание 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 ...