EDAM-9000 Analog & DIO Series: Data Acquisition Modules User's Manual
EDAM-9000 Analog & DIO Series: Data Acquisition Modules User's Manual
EDAM-9000 Analog & DIO Series: Data Acquisition Modules User's Manual
EDAM-9000
Analog & DIO series
Trademark:
The names used in this manual for identification only maybe registered trademarks of their
respective companies
NOTE: Equipment will operate below 30% humidity. However, static electricity problems occur much more
frequently at lower humidity levels. Make sure you take adequate precautions when you touch the equipment.
Consider using ground straps, anti-static floor coverings, etc. if you use the equipment in low humidity
environments.
EDAM-9015 Specification
Analog Input:
Effective resolution: 16-bit
Channels: 7
lnput type: PT100, PT1000, Balco 500 & Ni
lnput range:
PT100 -50°C ~ 150°C ,0°C ~ 100°C ,0°C ~ 200°C ,0°C ~ 400°C ,-200°C ~ 200°C ,
PT1000 -40°C ~ 160°C
Balco 500 -30°C ~ 120°C
Ni 604 -80°C ~ 100°C or 0°C ~ 100°C
Ni 1000 -60°C ~ 160°C
Isolation voltage: 2000V
Sampling rate: 12 samples / sec.
Input impedance: 20 MΩ
Accuracy: ±0.05% or better
Zero drift: ±3 µV/° C
Span drift: ±25 ppm/° C
CMR @ 50/60 Hz: 150 dB
NMR @ 50/60 Hz: 100 dB
Built-in Watchdog Timer
Power requirements: Unregulated +10 ~ +30 VDC
Power consumption: 2.2W
Fig 2-1
Input impedance: 20 MΩ
Application Wiring
Application Wiring
The top of the operation screen consists of a function menu and a tool bar for user’s commonly operating functions.
Figure 3-3
3.8.1 Module IP
MAC Address:
This is also called Ethernet address and needs no further configuration.
IP Address, Subnet Mask, and Default Gateway: (default 10.0.0.1, 255.255.255.0 and 0.0.0.0)
The IP address identifies your EDAM-9000 devices on the global network. Each EDAM-9000 has same
default IP address 10.0.0.1. Therefore, please do not initial many EDAM-9000 at the same time to avoid
the Ethernet collision. If you want to configure the EDAM-9000 in the host PC’s dominating network,
only the IP address and Subnet Mask will need to set (The host PC and EDAM Ethernet I/O must
belong to same subnet Mask).
If you want to configure the EDAM-9000 via Internet or other network domination, you have to ask your
network administrator to obtain a specific IP and Gateway addresses, and then configure each
EDAM-9000 with the individual setting.
DHCP: (default Disabled)
Allow you to get IP address from the DHCP servo without setting IP address by manual.
Note:
The default password of EDAM-9000 is “00000000”. Please make sure to keep the correct password by yourself. If
you lose it, please contact to Inlog’s technical support center for help.
Selecting EDAM-9000 Digital Modules and select “Test” tab, user can read following information from the Utility.
The digital input channels support counter and signal latch functions. Click the specific channel, there will be four
working modes for choosing.
Note:
1. The new working mode setting will take effective after click the “Update” button.
2. If necessary, users could invert the original single for flexible operation needs.
Selecting EDAM-9000 analog input Modules includes EDAM-9017 and select “General Settings” tab, user can read following
Click the Minimum value tab, you will see the historical minimum values in each channel unless to press the
against “Reset” buttons.
Span Calibration
1. Follow the same procedure of zero calibration
2. Use a precision voltage source to apply a calibration voltage to the V+ and V- terminals of the EDAM-9017
module.
3. Click the Execute button.
This chapter assumes that you are familiar with the basic concepts of using Visual Basic, Delphi,
Borland C++ Builder, and Visual C++, including selecting the type of application, designing the
form, placing the control on the form, configuring the properties of the control, creating the code
(event handler routines) for this control.
Note: For Borland Delphi 6, the Delphi 6 Update Pack fixes for ActiveX must be installed.
ModBusReadCoil short Startaddress None Read coil data from remote module, and stored
short Counts into coildata[] buffer
short coildata[]
ModBusReadReg short Startaddress None Read holding register data from remote
short Counts module, and stored into regdata[] buffer
short regdata[]
TCP_StartStream To instruct the PC to start to receive stream data that coming from 5.6.23
EDAM-9000
TCP_StopStream To instruct the PC to stop receiving stream data from all modules 5.6.24
TCP_ReadStreamData To receive stream data that coming from the specific EDAM-9000 5.6.25
TCP_StartEvent To instruct the PC to start to receive alarm event data that coming 5.6.26
from EDAM-9000
TCP_StopEvent To instruct the PC to stop receiving alarm event data from all 5.6.27
modules
TCP_ReadEventData To receive alarm event data that coming from the specific 5.6.28
EDAM-9000
5.6.2 TCP_Close
Description: To terminates use of the TCPDAQ.dll.
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Sub TCP_Close Lib "TCPDAQ.dll" Alias "_TCP_Close@0" ()
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ Close();
Delphi: (see TCPDAQ.pas)
function TCP_ Close(); StdCall;
VC++: (see TCPDAQ.h)
int TCP_ Close();
Parameters:
void
Return Code:
refer to the Error code.
5.6.4 TCP_Disconnect
Description: disconnecting the Window TCP socket from all EDAM-9000 modules
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Sub TCP_Disconnect Lib "TCPDAQ.dll" Alias "_TCP_Disconnect@0" ()
Borland C++ Builder: (see TCPDAQ.h)
void TCP_Disconnect(void);
Delphi: (see TCPDAQ.pas)
procedure TCP_Disconnect ; StdCall;
VC++: (see TCPDAQ.h)
void TCP_Disconnect(void);
Parameters:
void
Return Code:
none.
5.6.6 TCP_SendData
Description: to send data to a specific EDAM-9000 module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_SendData Lib "TCPDAQ.dll" Alias "_TCP_SendData@12"
( ByVal szIP As String, ByRef pData As Byte, ByVal wDataLen As Integer) As
Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_SendData(char szIP[],char *pData,u_short wDataLen);
Delphi: (see TCPDAQ.pas)
Function TCP_SendData (szIP: PChar; pData: PByte; wDataLen: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_SendData(char szIP[],char *pData,u_short wDataLen);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
pData[in]: 8 bit data array
wDataLen[in]: length of data be sent
Return Code:
refer to the Error code.
5.6.8 TCP_SendReceiveASCcmd
Description: to accept an ASCII format string as a command, and transform it to meet the Modbus/TCP's
specification. Then sending it to EDAM-9000 and receiving the response from EDAM-9000
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_SendReceiveASCcmd Lib "TCPDAQ.dll" Alias
"_TCP_SendReceiveASCcmd@12" ( ByVal szIP As String, ByVal Sendbuf As
String, ByVal Recvbuf As String) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_SendReceiveASCcmd(Char szIP[], char Sendbuf [], char Recvbuf []);
Delphi: (see TCPDAQ.pas)
Function TCP_SendReceiveasCcmd (szIP: PChar; Sendbuf: PChar; Recvbuf: PChar): Longint;
StdCall;
VC++: (see TCPDAQ.h)
Int TCP_SendReceiveASCcmd(Char szIP[], char Sendbuf[], char Recvbuf[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Sendbuf [in]: 8 bit data array to be sent
Recvbuf [out]: 8 bit data array that stored the received data
Return Code:
refer to the Error code.
5.6.10 UDP_Disconnect
Description: disconnecting the Window UDP socket from all EDAM-9000 modules
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Sub UDP_Disconnect Lib "TCPDAQ.dll" Alias "_UDP_Disconnect@0" ()
Borland C++ Builder: (see TCPDAQ.h)
void UDP_Disconnect(void);
Delphi: (see TCPDAQ.pas)
procedure UDP_Disconnect ; StdCall;
VC++: (see TCPDAQ.h)
void UDP_Disconnect(void);
Parameters:
void
Return Code:
none
5.6.12 UDP_SendData
Description: send data to a specific EDAM-9000 module (Datagram)
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function UDP_SendData Lib "TCPDAQ.dll" Alias "_UDP_SendData@12"
(ByVal szIP As String, ByRef pData As Byte, ByVal wDataLen As Integer) As
Long
Borland C++ Builder: (see TCPDAQ.h)
int UDP_SendData(char szIP[],char *pData,u_short wDataLen);
Delphi: (see TCPDAQ.pas)
Function UDP_SendData (szIP: PChar; pData: PByte; wDataLen: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
int UDP_SendData(char szIP[],char *pData,u_short wDataLen);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
pData[in]: points to data buffer
wDataLen[in]: length of data be sent
Return Code:
refer to the Error code.
5.6.14 UDP_SendReceiveASCcmd
Description: send an ASCII format string as a command to EDAM-9000 and receiving the response from
EDAM-9000
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function UDP_SendReceiveASCcmd Lib "TCPDAQ.dll" Alias
"_UDP_SendReceiveASCcmd@12" (ByVal szIP As String, ByVal Txdata As _
String, ByVal Rxdata As String) As Long
Borland C++ Builder: (see TCPDAQ.h)
int UDP_SendReceiveASCcmd(char szIP[],char Txdata [],char Rxdata []);
Delphi: (see TCPDAQ.pas)
Function UDP_SendReceiveAsCcmd (szIP: PChar; Txdata:PChar; Rxdata: PChar): Longint;
StdCall;
VC++: (see TCPDAQ.h)
int UDP_SendReceiveASCcmd(SOCKET UDPsock,char Txdata [],char Rxdata []);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Txdata [in]: 8 bit array that stored the data to be sent
Rxdata [out]: 8 bit array that stored the received data
Return Code:
refer to the Error code.
5.6.16 TCP_GetModuleID
Description: return ID number of a specific module.
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_GetModuleID Lib "TCPDAQ.dll" Alias "_TCP_GetModuleID@8" (ByVal
szIP As String, ByRef ModuleID As Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_GetModuleID(char szIP[], char * ModuleID);
Delphi: (see TCPDAQ.pas)
Function TCP_GetModuleID(szIP: PChar; ModuleID: PByte): Longint; StdCall;;
VC++: (see TCPDAQ.h)
Int TCP_GetModuleID(char szIP[], char * ModuleID);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
ModuleID [in]: the ID number
Return Code:
refer to the Error code.
5.6.18 TCP_ScanOnLineModules
Description: search on-line EDAM900 modules in the same subnet
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ScanOnLineModules Lib "TCPDAQ.dll" Alias
"_TCP_ScanOnLineModules@8" (ModuleIP As ModuleInfo, ByVal Sortkey As
Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ScanOnLineModules( struct ModuleInfo ModuleIP[], u_char SortKey);
Delphi: (see TCPDAQ.pas)
Function Scan_OnLineModules (var ModuleIP: TModuleInfo; Sortkey: Byte): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_ScanOnLineModules( struct ModuleInfo ModuleIP[], u_char SortKey);
Parameters:
ModuleIP[out]: points to ModuleInfo structure array
SortKey[in]: sortkey word (by IP address,by ID number, or by Module no)
=SORT_MODULE_IP ,sort by IP address
=SORT_MODULE_ID ,sort by ID number
=SORT_MODULE_NO ,sort by module number
Return Code:
refer to the Error code.
5.6.20 TCP_GetModuleNo
Description: return the module name of a specific IP address
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_GetModuleNo Lib "TCPDAQ.dll" Alias "_TCP_GetModuleNo@8" _
(ByVal szIP As String, ByRef Mname As Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_GetModuleNo(char szIP[], char Mname[]);
Delphi: (see TCPDAQ.pas)
Function TCP_GetModuleNo (szIP: PChar; Mname: PByte): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_GetModuleNo(char szIP[], char Mname[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Mname[out]: 8 bit array that stored the module name string
Return Code:
refer to the Error code.
5.6.22 TCP_PingIP
Description: ping to remote IP address
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_PingIP Lib "TCPDAQ.dll" Alias "_TCP_PingIP@8" (ByVal IPadr As String,
ByVal PingTimes As Integer) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_PingIP(char szIP[],int PingTimes);
Delphi: (see TCPDAQ.pas)
Function TCP_PingIP(szIP: PChar;PingTimes: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_PingIP(char szIP[],int PingTimes);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
PingTimes [in]:Timeout value
Return Code:
=-1, no response from remote IP
>0, response time from remote IP
5.6.24 TCP_StopStream
Description: to instruct the PC to stop receiving stream data from all modules.
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_StopStream Lib "TCPDAQ.dll" Alias "_TCP_StopStream@0" () As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_StopStream(void);
Delphi: (see TCPDAQ.pas)
Function TCP_StopStream: Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_StopStream(void);
Parameters:
void
Return Code:
refer to the Error code.
5.6.26 TCP_StartEvent
Description: to start listening the alarm event trigger
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_StartEvent Lib "TCPDAQ.dll" Alias "_TCP_StartEvent@8" (ByVal IPadr As
String, ByVal EventFromApp As Long) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_StartEvent(char szIP[],HANDLE EventFromApp);
Delphi: (see TCPDAQ.pas)
Function TCP_StartEvent(szIP: PChar; EventFromApp: Longint): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_StartEvent(char szIP[],HANDLE EventFromApp);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
EventFromApp: event handle (be signaled, when alarm event occured)
Return Code:
refer to the Error code.
5.6.28 TCP_ReadEventData
Description: to read triggered alarm event message
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadEventData Lib "TCPDAQ.dll" Alias "_TCP_ReadEventData@8"
(ByVal szIP As String, ByRef lpData As AlarmData) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadEventData (char szIP[], struct _AlarmInfo *lpData);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadEventData (SzIP: PChar; Var lpData: TEventInfo): integer; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadEventData (char szIP[], struct _AlarmInfo *lpData);
Parameters:
szIP[in]: the IP address for an EDAM-9000 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.
5.6.30 TCP_ReadDIO
Description: to read DI/DO's status for an EDAM-9000 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-9000 that to be connected
byDI[out]: an 8 bit array that stored the DI channel status
byDO[out]: an 8 bit array that stored the DO channel status
Return Code:
refer to the Error code.
5.6.32 TCP_WriteDISignalWidth
Description: to set the minimal high/low signal width of all D/I channels
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_WriteDISignalWidth Lib "TCPDAQ.dll" Alias
"_TCP_WriteDISignalWidth@12" (ByVal szIP As String, ByRef ulLoWidth As
Long, ByRef ulHiWidth As Long) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_WriteDISignalWidth(char szIP[],u_long ulLoWidth[],u_long ulHiWidth[]);
Delphi: (see TCPDAQ.pas)
Function TCP_WriteDISignalWidth(szIP: PChar; var ulLoWidth:array of Longword; var
ulHiWidth:array of Longword): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_WriteDISignalWidth(char szIP[],u_long ulLoWidth[],u_long ulHiWidth[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
ulLoWidth[in]: an unsigned 32 bits array that stored the minimal low signal width for
each D/I channel. The unit is 0.5 mSec
ulHiWidth[in]: an unsigned 32 bits array that stored the minimal high signal width for
each D/I channel. The unit is 0.5 mSec
Return Code:
refer to the Error code.
5.6.34 TCP_ClearDICounter
Description: to clear the counter value when a D/I channel function in 'Counter' mode
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ClearDICounter Lib "TCPDAQ.dll" Alias "_TCP_ClearDICounter@8"
(ByVal szIP As String, ByVal wChno As Integer) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ClearDICounter(char szIP[],u_short wChNo);
Delphi: (see TCPDAQ.pas)
Function TCP_ClearDICounter (szIP: PChar; wChno: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ClearDICounter(char szIP[],u_short wChNo);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
wChNo[in]: the D/I channel to be cleared.
Return Code:
refer to the Error code.
5.6.36 TCP_StopDICounter
Description: to stop the counting when a D/I channel function as 'Counter' mode
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_StopDICounter Lib "TCPDAQ.dll" Alias "_TCP_StopDICounter@8"
(ByVal szIP As String, ByVal wChno As Integer) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_StopDICounter(char szIP[],u_short wChNo);
Delphi: (see TCPDAQ.pas)
Function TCP_StopDICounter (szIP: PChar; wChno: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_StopDICounter(char szIP[],u_short wChNo);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
wChNo[in]: the channel number that is disabled to count
Return Code:
refer to the Error code.
5.6.38 TCP_ReadDILatch
Description: to read the DI latch status when a D/I channel function in 'Lo to Hi Latch' or 'Hi to Lo Latch’
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadDILatch Lib "TCPDAQ.dll" Alias "_TCP_ReadDILatch@8"
(ByVal szIP As String, ByRef wLatch As Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadDILatch(char szIP[],u_char wLatch[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadDILatch (szIP: PChar; wLatch: PByte): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadDILatch(char szIP[],u_char wLatch[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
wLatch[out]: an unsigned 8 bits array that stored the latch stsatus for each D/I channel
Return Code:
refer to the Error code.
5.6.40 TCP_WriteDOPulseCount
Description: to write the pulse output count for EDAM-9000 DIO modules during runtime
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_WriteDOPulseCount Lib "TCPDAQ.dll" Alias _
"_TCP_WriteDOPulseCount@12" (ByVal szIP As String, _
ByVal wDoChannel As Integer, ByVal ulPulseCount As Long) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_WriteDOPulseCount(char szIP[],u_short wDoChannel,u_long ulPulseCount);
Delphi: (see TCPDAQ.pas)
Function TCP_WriteDOPulseCount(szIP: PChar; wDoChannel: Integer; ulPulseCount:
Longint): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_WriteDOPulseCount(char szIP[],u_short wDoChannel,u_long ulPulseCount);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
wDoChannel[in]: the channel index for writing
ulPulseCount[in]: the pulse output count.
Return Code:
refer to the Error code.
5.6.45 TCP_ReadAITypes
Description: to read all channel type of a specific ananlog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Fu5.6.46nction TCP_ReadAITypes Lib "TCPDAQ.dll" Alias "_TCP_ReadAITypes@8"
(ByVal szIP As String, ByRef szRange As Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadAITypes(char szIP[],u_char szTypes[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadAITypes (szIP: PChar; szRange: PByte): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadAITypes(char szIP[],u_char szTypes[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
szTypes[out]: an array that stored the types of all A/I channels
Return Code:
refer to the Error code.
5.6.47 TCP_ReadAIMaxVal
Description: to read all channel maxmal value of a specific ananlog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadAIMaxVal Lib "TCPDAQ.dll" Alias "_TCP_ReadAIMaxVal@8"
(ByVal szIP As String, ByRef dMaxValue As Double) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadAIMaxVal(char szIP[],double dMaxValue[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadAIMaxVal (szIP: PChar; dMaxValue: PDouble): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadAIMaxVal(char szIP[],double dMaxValue[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
dMaxValue[out]: an array that stored the maximal analog values of all A/I channels
Return Code:
refer to the Error code.
5.6.49 TCP_ReadAIMultiplexChannel
Description: to read all channel activation status of a specific analog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadAIMultiplexChannel Lib "TCPDAQ.dll" Alias
"_TCP_ReadAIMultiplexChannel@8" (ByVal szIP As String, ByRef szchno As
Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadAIMultiplexChannel(char szIP[],u_char szChno[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadAIMultiplexChannel(szIP: PChar; szchstatus: PByte): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadAIMultiplexChannel(char szIP[],u_char szChno[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
szChno[in]: an 8 bit array that stored the AI channel which represent in numeric.
The meanning for a value in an entity as follow:
szChno[n]:0 disable channel #n for multiplexing
szChno[n]:1 Enable channel #n for multiplexing
Return Code:
refer to the Error code.
5.6.51 TCP_ReadAIAverageChannel
Description: to read all channels in-average status of a specific analog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadAIAverageChannel Lib "TCPDAQ.dll" Alias
"_TCP_ReadAIAverageChannel@8" (ByVal szIP As String, ByRef avgch As
Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadAIAverageChannel(char szIP[],u_char avgch[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadAIAverageChannel(szIP: PChar; avgch: PByte): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadAIAverageChannel(char szIP[],u_char avgch[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
avgch[in]: an 8 bit array that stored the AI channel which represent in numeric.
The meanning for a value in an entity as follow:
avgch [n]:0 the channel #n is in average
avgch [n]:1 the channel #n is not in average
Return Code:
refer to the Error code.
5.6.56 TCP_ClearAILatchAlarm
Description: to clear channel latch status when A/I channel function in “Latch alarm” mode
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ClearAILatchAlarm Lib "TCPDAQ.dll" Alias
"_TCP_ClearAILatchAlarm@12" (ByVal szIP As String, ByVal Chno As Integer,
ByVal alarmlevel As Byte) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ClearAILatchAlarm(char szIP[],u_short Chno,u_char Alarmlevel);
Delphi: (see TCPDAQ.pas)
Function TCP_ClearAILatchAlarm(szIP: PChar; Chno: Integer; alarmlevel: Byte): Longint;
StdCall;
VC++: (see TCPDAQ.h)
Int TCP_ClearAILatchAlarm(char szIP[],u_short Chno,u_char Alarmlevel);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Chno[in]: the channel index for writing
Alarmlevel[in]: alarm latch be cleared (0=low alarm latch , 1=high lalarm latch)
Return Code:
refer to the Error code.
102 Printed Date: 3 October 2017
EDAM-9000 User’s manual Version 4.6
5.6.57 TCP_ClearAIMaxVal
Description: to clear channel maxmal value of a specific analog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ClearAIMaxVal Lib "TCPDAQ.dll" Alias "_TCP_ClearAIMaxVal@8"
(ByVal szIP As String, ByVal Chno As Integer) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ClearAIMaxVal(char szIP[],u_short Chno);
Delphi: (see TCPDAQ.pas)
Function TCP_ClearAIMaxVal (szIP: PChar; Chno: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_ClearAIMaxVal(char szIP[],u_short Chno);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Chno[in]: the channel index for clearing
Return Code:
refer to the Error code.
5.6.58 TCP_ClearAIMinVal
Description: to clear channel minimal value of a specific analog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ClearAIMinVal Lib "TCPDAQ.dll" Alias "_TCP_ClearAIMinVal@8"
(ByVal szIP As String, ByVal Chno As Integer) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ClearAIMinVal(char szIP[],u_short Chno);
Delphi: (see TCPDAQ.pas)
Function TCP_ClearAIMinVal (szIP: PChar; Chno: Integer): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_ClearAIMinVal(char szIP[],u_short Chno);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Chno[in]: the channel index for clearing
Return Code:
refer to the Error code.
5.6.60 TCP_ReadAIAlarmLimit
Description: to read all channel high/low alarm limit value
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadAIAlarmLimit Lib "TCPDAQ.dll" Alias "_TCP_ReadAIAlarmLimit@16"
(ByVal szIP As String, ByVal Chno As Integer, ByRef dHighLimit As Double,
ByRef dLowLimit As Double) As Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_ReadAIAlarmLimit(char szIP[],u_short Chno, double dHighLimit[],
double dLowLimit[]);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadAIAlarmLimit(szIP: PChar; Chno: Integer; dHighLimit: PDouble; dLowLimit:
PDouble): Longint; StdCall;
VC++: (see TCPDAQ.h)
int TCP_ReadAIAlarmLimit(char szIP[],u_short Chno, double dHighLimit[],
double dLowLimit[]);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Chno[in]: the channel index for reading
dHighLimit[out]: 32 bit array that stored the high larm limit value
dLowLimit[out]: 32 bit array that stored the low larm limit value
Return Code:
refer to the Error code.
5.6.62 TCP_StartAIAlarm
Description: to start channel alarm of a specific analog module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_StartAIAlarm Lib "TCPDAQ.dll" Alias "_TCP_StartAIAlarm@12"
(ByVal szIP As String, ByVal Chno As Integer, ByVal alarmlevel As Byte) As
Long
Borland C++ Builder: (see TCPDAQ.h)
int TCP_StartAIAlarm(char szIP[],u_short Chno,u_char alarmLevel);
Delphi: (see TCPDAQ.pas)
Function TCP_StartAIAlarm (szIP: PChar; Chno: Integer; alarmlevel: Byte): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_StartAIAlarm(char szIP[],u_short Chno,u_char alarmLevel);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
Chno[in]: the channel index for starting alarm
alarmLevel[in]: =0 start low alarm, =1 start high larm
Return Code:
refer to the Error code.
5.6.64 TCP_WriteCJCOffset
Description: to set cold junction offset of a specific EDAM9019 module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_WriteCJCOffset Lib "TCPDAQ.dll" Alias "_TCP_WriteCJCOffset@12"
(ByVal szIP As String, ByVal CJoffset As Double) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_WriteCJCOffset(char szIP[],double CJoffset);
Delphi: (see TCPDAQ.pas)
Function TCP_WriteCJCOffset (szIP: PChar; CJoffset: Double): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_WriteCJCOffset(char szIP[],double CJoffset);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
CJoffset[in]: cold junction temperature offset
Return Code:
refer to the Error code.
5.6.66 TCP_ReadCJCTemperature
Description: to read cold junction temperature from a specific EDAM9019 module
Syntax:
Visual Basic: (see TCPDAQ.bas)
Declare Function TCP_ReadCJCTemperature Lib "TCPDAQ.dll" Alias
"_TCP_ReadCJCTemperature@8" (ByVal szIP As String, ByRef CJTemp As
Double) As Long
Borland C++ Builder: (see TCPDAQ.h)
Int TCP_ReadCJCTemperature(char szIP[],double *CJTemp);
Delphi: (see TCPDAQ.pas)
Function TCP_ReadCJCTemperature (szIP: PChar; CJTemp: PDouble): Longint; StdCall;
VC++: (see TCPDAQ.h)
Int TCP_ReadCJCTemperature(char szIP[],double *CJTemp);
Parameters:
szIP[in]: the IP address for an EDAM-9000 that to be connected
CJTemp[out]: cold junction temperature
Return Code:
refer to the Error code.
Code(Hex) Type
0x07 4-20mA
0x08 +/-10V
0x09 +/-5V
0x0a +/-1V
0x0b +/-500mV
0x0c +/-150mV
0x0d 0-20mA
0x0e J type -8824 uV ~ 69536 uV,
0x0f K type -5891 uV ~ 54807 uV
0x10 T type -5603 uV ~ 20869 uV
0x11 E type -9835 uV ~ 76373 uV
0x12 R type -0000 uV ~ 21101 uV
0x13 S type -0000 uV ~ 18693 uV
0x14 B type -0000 uV ~ 13820 uV
0x20 IEC Pt100 -50C ~ 150C
0x21 IEC Pt100 0C ~ 100C
0x22 IEC Pt100 0C ~ 200C
0x23 IEC Pt100 0C ~ 400C
0x24 IEC Pt100 -200C ~ 200C
0x25 JIS Pt100 -50C ~ 150C
0x26 JIS Pt100 0C ~ 100C
0x27 JIS Pt100 0C ~ 200C
0x28 JIS Pt100 0C ~ 400C
0x29 JIS Pt100 -200C ~ 200C
0x2A Pt1000 -40C ~ 160C
0x2B BALCO500 -30C ~ 120C
0x2C Ni -80C ~ 100C
0x2D Ni 0C ~ 100C
Figure 6-1 Analog input types
If you want to read the first two values of EADM-9017 (address: 40001~40002), the request command should be:
Enter the correct password and click send button to verify the password. If the password is not correct, a
warming message box will show up to remain you to reenter the password
If the password is correct, the module monitoring page will pop up in the web browser.