
EDAM-4200 Series User’s manual Version 1.03
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
lpData[out] : points to alarm event data structure that stored event message (ref. to TCPDAQ.H)
Return Code:
refer to the
Error code
.
7.5.29
TCP_ReadDIOMode
Description:
to read the mode of D/I & D/O channels of an EDAM-4200 module.
Syntax:
♦
Visual Basic:
(see TCPDAQ.bas)
Declare Function TCP_ReadDIOMode Lib "TCPDAQ.dll" Alias "_TCP_ReadDIOMode@12" _
(ByVal szIP As String, ByRef DImode As Byte, ByRef DOmode As Byte) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ReadDIOMode(char szIP[],u_char DImode[],u_char DOmode[]);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_ReadDIOMode (szIP: PChar; DImode: PByte; DOmode: PByte): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
int TCP_ReadDIOMode(char szIP[],u_char DImode[],u_char DOmode[]);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
DImode[out]
: an 8 bit array that stored the DI channel mode
DOmode[out] : an 8 bit array that stored the DO channel mode
Return Code:
refer to the
Error code
.
7.5.30
TCP_ReadDIO
Description:
to read DI/DO's status for an EDAM-4200 module
Syntax:
♦
Visual Basic:
(see TCPDAQ.bas)
Declare Function TCP_ReadDIO Lib "TCPDAQ.dll" Alias "_TCP_ReadDIO@12" _
(ByVal szIP As String, ByRef ByDi As Byte, ByRef ByDo As Byte) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ReadDIO(char szIP[],u_char byDI[],u_char byDO[] );
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_ReadDIO (szIP: PChar; ByDi: PByte; ByDo: PByte): Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
Int TCP_ReadDIO(char szIP[],u_char u_byDI[],u_char byDO[] );
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
byDI[out] : an 8 bit array that stored the DI channel status (ex: byDI[0]= 0 → DI channel 0 = 0)
byDO[out] : an 8 bit array that stored the DO channel status (ex: byDO[3] = 1 → channel 3 = 1)
Return Code:
refer to the
Error code
.
7.5.31
TCP_ReadDISignalWidth
Description:
to read the minimal high/low signal width of all D/I channels
Syntax:
♦
Visual Basic: (
see TCPDAQ.bas
)
Declare Function TCP_ReadDISignalWidth Lib "TCPDAQ.dll" Alias "_TCP_ReadDISignalWidth@12" (ByVal szIP As
String, ByRef ulLoWidth As Long, ByRef ulHiWidth As Long) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ReadDISignalWidth(char szIP[],u_long ulLoWidth[],u_long ulHiWidth[]);
Printed Date: 27 February 2018
74