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
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 ...