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);
Summary of Contents for ETH-TTL-64
Page 1: ...Hardware Description Juli ETH TTL 64 2019 ...
Page 5: ...I Introduction Seite 5 Introduction ...
Page 7: ...II Hardware description Seite 7 Hardware description ...
Page 13: ...Hardware description Seite 13 2 4 Overview screen ETH TTL 64 ...
Page 17: ...Hardware description Seite 17 problem is solved ...
Page 19: ...III Software Seite 19 Software ...
Page 29: ...Software Seite 29 Choose the option create VIs for DLL and press continue ...
Page 39: ...Software Seite 39 ...
Page 40: ...IV Hardware Seite 40 Hardware ...
Page 46: ...Hardware Seite 46 Geben Sie hier den Text ein ...
Page 47: ...V DELIB API reference Seite 47 DELIB API reference ...
Page 79: ...VI Appendix Seite 79 Appendix ...