Step 5
In the following, you will find information on how to program the two
modules.
All
modules
are
DapiOpenModule. This command is defined as follows:
ULONG DapiOpenModule(ULONG moduleID, ULONG nr);
Address the USB OPTION-8 with the NR 0
ulong handle;
handle = DapiOpenModule(USB_OPTOIN_8, 0);
the no. 0
Address the USB OPTION-8 with the NR 1
ulong handle;
handle = DapiOpenModule
(USB_OPTOIN_8, 1);
module USB-OPTION-8 with the no.1
Note:
All modules have the no. "0" as the factory setting.
If you want to use several identical USB modules, a unique no. must
be assigned to the modules one after the other.
opened
uniformly
// Opens the
with
the
// opens the module USB-OPTOIN-8 with
Software | Seite 172
command