DELIB API reference |
Seite
53
5.1.5. DapiOpenModuleEx
Description
This function opens a specific module with ethernet interface. The particularity
of this command is, that parameters like IP-address, portnumber and timeout
can be specified.
Definition
ULONG DapiOpenModuleEx(ULONG moduleID, ULONG nr, unsigned char* exbuffer,
0);
Parameters
moduleID = Specifies the module, which is to be opened (see delib.h)
nr = Indicates No of module which is to be opened.
nr = 0 -> 1. module
nr = 1 -> 2. module
exbuffer = buffer for IP-adresse, port and timeout
Return value
handle = handle to the corresponding module
handle = 0 -> Module was not found
Remarks
The handle returned by this function is needed to identify the module for all
other functions.
This command is only support by modules with ethernet interface.
Example program
// Open ETH-Module with parameter
DAPI_OPENMODULEEX_STRUCT open_buffer;
strcpy((char*) open_buffer.address, "192.168.1.10");
open_buffer.portno = 0;
open_buffer.timeout = 5000;
handle = DapiOpenModuleEx(RO_ETH, 0, (unsigned char*) &open_buffer, 0);
printf("Module handle = %x\n", handle);
Содержание ETH-TTL-64
Страница 1: ...Hardware Description Juli ETH TTL 64 2019 ...
Страница 5: ...I Introduction Seite 5 Introduction ...
Страница 7: ...II Hardware description Seite 7 Hardware description ...
Страница 13: ...Hardware description Seite 13 2 4 Overview screen ETH TTL 64 ...
Страница 17: ...Hardware description Seite 17 problem is solved ...
Страница 19: ...III Software Seite 19 Software ...
Страница 29: ...Software Seite 29 Choose the option create VIs for DLL and press continue ...
Страница 30: ...Software Seite 30 In the next window choose the path to the delib h and delib dll and press continue ...
Страница 31: ...Software Seite 31 Press continue again The Header File will now be analized Afterwards press continue ...
Страница 32: ...Software Seite 32 Follow the instructions and configurate the name and the saving location for the VIs ...
Страница 33: ...Software Seite 33 In the new window choose Easy error correction in the drop down menu and press continue ...
Страница 39: ...Software Seite 39 ...
Страница 40: ...IV Hardware Seite 40 Hardware ...
Страница 46: ...Hardware Seite 46 Geben Sie hier den Text ein ...
Страница 47: ...V DELIB API reference Seite 47 DELIB API reference ...
Страница 79: ...VI Appendix Seite 79 Appendix ...