
EDAM-4200 Series User’s manual Version 1.03
ulHiPulseWidth[in] : the output pulse signal width at high level.
ulLoDelayWidth[in] : the output signal delay width when set DO from high to low level.
ulHiDelayWidth[in] : the output signal delay width when set DO from low to high level.
Return Code:
refer to the
Error code
.
7.5.42
TCP_ReadDODelayWidth
Description:
to read the pulse and delay signal widths from specific EDAM-6000 DIO modules
Syntax:
♦
Visual Basic:
(
see TCPDAQ.bas
)
Declare Function TCP_ReadDODelayWidth Lib "TCPDAQ.dll" Alias "_TCP_ReadDODelayWidth@24" (ByVal szIP As
String, ByVal wChno As Integer, ByRef ulLoPulseWidth As Long, ByRef ulHiPulseWidth As Long,
ByRef ulLoDelayWidth As Long, ByRef ulHiDelayWidth As Long) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadDODelayWidth(char szIP[],u_short wChno,
u_long *ulLoPulseWidth,u_long *ulHiPulseWidth,
u_long *ulLoDelayWidth,u_long *ulHiDelayWidth);
♦
Delphi: (see TCPDAQ.pas)
Function TCP_ReadDODelayWidth (szIP: PChar; wChno: Integer; ulLoPulseWidth: Longint; ulHiPulseWidth:
Longint;ulLoDelayWidth: Longint; ulHiDelayWidth: Longint): Longint; StdCall;
♦
VC++: (see TCPDAQ.h)
int TCP_ReadDODelayWidth(char szIP[],u_short wChno, u_long *ulLoPulseWidth,lu_long *ulHiPulseWidth,
u_long *ulLoDelayWidth,u_long *ulHiDelayWidth);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
wChno[in]
: the channel index for reading
ulLoPulseWidth[out] : the pulse output signal width at low level
ulHiPulseWidth[out] : the pulse output signal width at high level
ulLoDelayWidth[out] : the delay output signal width at low level
ulHiDelayWidth) [out]: the delay output signal width at high level
Return Code:
refer to the
Error code
.
7.5.43
TCP_MODBUS_ReadCoil
Description:
to read the coil values at a specific range described in parameters
Syntax:
♦
Visual Basic: (
see TCPDAQ.bas
)
Declare Function TCP_MODBUS_ReadCoil Lib "TCPDAQ.dll" Alias "_TCP_MODBUS_ReadCoil@16"
(ByVal szIP As String, ByVal wStartAddress As Integer, ByVal wCount As Integer,
ByRef DATA As Byte) As Long
♦
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_MODBUS_ReadCoil(char szIP[],u_short wStartaddress,u_short wCount,u_char byData[]);
♦
Delphi:
(see TCPDAQ.pas)
Function TCP_MODBUS_ReadCoil (szIP: PChar; wStartAddress: Integer; wCount: Integer; Data: PByte):
Longint; StdCall;
♦
VC++:
(see TCPDAQ.h)
Int TCP_MODBUS_ReadCoil(char szIP[],u_short wStartAddress,u_short wCount,u_char byData[]);
Parameters:
szIP[in]
: the IP address for an EDAM-4200 that to be connected
wStartAddress[in]
: start address of coil registers (1 ~ 255)
wCount[in]
: the count that coil data be read
byData[in]
: the 8 bit array that stored the coil data (0=set, 1=reset)
Printed Date: 27 February 2018
79