F U N C T I O N C A L L S
WORD WINAPI Read_Angle_WORD (int Card, int Channel)
DESCRIPTION
Using the given channel, the appropriate register is selected, and the sixteen bits are read
from the register. No conversion is done in this routine.
INPUT DATA
Card = an integer between 0 and 7 for the card of interest. The card number is set in the
MOTION FEEDBACK BOARD MANAGER.
Channel = an integer between 0 and 5 for the channel of interest.
RETURNED DATA
This routine returns the angle of a given channel as a WORD ( range = 0x0000 to 0xFFFF).
EXAMPLE CODE
Code Result/Returned
Data
WORD Angle;
Angle = Read_Angle_WORD(3,5);
Returns the angle (as a WORD)
for card #3, channel 5.
180
90
45
22.5
11.25
5.625
2.8125
1.40625
.703125
.3515625
.17578125
.087890625
.0439453125
.02197265625
.010986328125
.0054931640625
MSB
LSB
Theoretical Angle Values
Angle =
Reading X 360
2
16
Data Device Corporation
SB-3621X Manual
58
Содержание SB-3621 Series
Страница 3: ......