This function establishes a connection to the port of the Ethernet I/O device. Once a connection is established, a handle will be returned for additional functions. C/C++int MXEIO_E1K_Connect( char * szIP,WORD wPort,DWORD dwTimeOut,int * hConnection,char * szPassword); Visual BasicDeclare Function MXEIO_E1K_Connect Lib "MXIO.dll" (ByVal szIP As String, ByVal iPort As Integer, ByVal nTimeOut As Long, handle As Long, ByVal szPassword As String) As Long Arguments:szIP
IP address of the Ethernet I/O device to be connected.A-OPC Server IP address or ioLogik 1200 IP address
wPort
TCP port number of Ethernet I/O device. Please use 502 for ioLogik 1200
dwTimeOut
Timeout value for establishing a network connection with the ioLogik Ethernet Adapter. The unit is in milliseconds.
hConnection
Handle for the I/O device connection.
szPassword
Max length 8 bytes
Return Values :Succeed
MXIO_OK
Fail
Refer to Return Codes.
function MXEIO_E1K_Connect(szIP:Pchar;dPort:integer;dwTimeout:integer ;hConnection:integer;szPassword:pchar):integer;stdcall;external 'MXIO.dll';
MXEIO_E1K_Connect('192.168.0.3' ,502,2000,hConnection,'123456');
报内存错误
IP address of the Ethernet I/O device to be connected.A-OPC Server IP address or ioLogik 1200 IP address
wPort
TCP port number of Ethernet I/O device. Please use 502 for ioLogik 1200
dwTimeOut
Timeout value for establishing a network connection with the ioLogik Ethernet Adapter. The unit is in milliseconds.
hConnection
Handle for the I/O device connection.
szPassword
Max length 8 bytes
Return Values :Succeed
MXIO_OK
Fail
Refer to Return Codes.
function MXEIO_E1K_Connect(szIP:Pchar;dPort:integer;dwTimeout:integer ;hConnection:integer;szPassword:pchar):integer;stdcall;external 'MXIO.dll';
MXEIO_E1K_Connect('192.168.0.3' ,502,2000,hConnection,'123456');
报内存错误
解决方案 »
- (Httprio as 接口) 转换出错的问题win2003 sp2
- 救命啊!放假一来发现所有的电脑上的系统都不可以使用了,提示一个错ntdll.dll出错啊!
- 关于C/S程序的一点小问题
- [Fatal Error] Could not create output file是什么意思,怎么解决,紧急求助!!
- 各位好!~ 在画线时什么使画出来的线 会由于表单的上下拉而被擦除掉!!!!!!!!
- 小小问题!!!
- DELPHI基础问题,在线等待回答
- 求购QQ号,100分换取,绝不食言!!!可发短消息给我,立即给分!!!在线等!!!
- 求助:请各位大哥来帮我可看看这个问题,谢谢!
- 这个网页如何提交?
- 怎么在showModal子窗体创建多线程呢?
- 疑惑。这个网页用idhttp打开居然不显示网页内容?求助
WORD wPort,
DWORD dwTimeOut,
int * hConnection,
char * szPassword);function MXEIO_E1K_Connect( szIP: PAnsiChar;
wPort:WORD ;
dwTimeOut: DWORD;
var hConnection: Integer;
szPassword: PAnsiChar): Integer; stdcall; external 'MXIO.dll';
function MXEIO_E1K_Connect(szIP: PAnsichar; wPort: Word; dwTimeOut: Cardinal;
var hConnection: Integer; szPassword: PAnsichar): Integer; cdecl; external 'dllname.dll';