F U N C T I O N C A L L S
void WINAPI Program_Encoder (int Card, int Channel, int
Encoder)
DESCRIPTION
Turns the Encoder on a channel either “On” or “Off”. Error checking is performed,
appropriate bits are masked, and the new value (0 or 1) is written to the card.
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.
Encoder = an integer which is either a “0” (turns Encoder On), or a “1” (turns Encoder Off).
RETURNED DATA
This routine does not return any data.
EXAMPLE CODE
Code Result/Returned
Data
Program_Encoder(4,4,0);
Turns the encoder of card #4,
channel 4, on.
Data Device Corporation
SB-3621X Manual
51
Содержание SB-3621 Series
Страница 3: ......