Home
EDAM-5000 Series USB, Ethernet, RS232/485 Remote
Contents
1. Function name Description Sec E5K_SetDIChannelConfig Set configuration of the specified DI channel 11 73 E5K_ReadDIChannelConfig Read configuration of the specified DI channel 11 74 E5K_ReadDIStatus Read DI status 11 75 E5K ReadDlLatch Read DI latch status 11 76 E5K ClearAIIDILatch Clear all DI latch status 11 77 E5K ClearSingleDICounter Clear counter value of the specified DI channel 11 78 E5K ReadMultiDICounter Read multiple DI counter value 11 79 E5K WriteDO Write DO channels 11 80 E5K_ReadDOStatus Read DO status 11 81 E5K_SetDOSingleChannel Set reset single DO channel 11 82 E5K_SetDOPulseWidth Set DO pulse high low width 11 83 E5K_ReadDOPulseWidth Read DO pulse high low width 11 84 E5K_StartDOPulse Start DO pulse output 11 85 E5K_StopDOPulse Stop DO pulse output 11 86 E5K ReadDOPulseCount Read back DO pulse count value 11 87 E5K_SetDOPowerOnValue Set DO power on value 11 88 E5K ReadDOPowerOnValue Read DO power on value 11 89 E5K ReadDIOActiveLevel Read DI DO active flag setting 11 90 E5K SetDIOActiveLevel Set DI O channel active flag 11 91 102 EDAM 5000 User s manual 11 4 E5K SearchModules Description Search all connected EDAM 5000 modules Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SearchModules Lib EBKDAQ dll pd as E5K DEVICE ID INFO interface type as integer as integer VC BC Builder see ESKDAQ h unsigned shor
2. Address dec Channel Item Attribute N 0000 N 0000 0 1 Digital input data 0x0000 0x0003 R N 0002 N 0002 0 Digital input latch status 0x0000 0x0003 R W N 0004 N 0007 0 1 Digital input counter value 2 words channel R see sec 7 1 N 0068 N 0068 0 15 Digital output status DO0 DO15 R W 0x0000 0x0001 N 0069 N 0069 16 31 Digital output status DO16 DO31 R W 0x0000 0x0001 N 0080 N 0081 0 1 Digital input mode R W N 0112 N 0113 0 1 Digital input debounce time interval 0 Oxffff R W X 0176 N 0176 0 Digital output pulse low width R W 0000 0xFFFF in 0 5msec N 0208 N 0208 0 Digital output pulse high width R W 0000 0xFFFF in 0 5msec N 0240 N 0240 0 Digital output pulse counts R W N 0272 N 0272 0 15 Digital power on value DO0 DO15 R W 0x0000 0xFFFF N 0273 N 0273 16 31 Digital power on value DO16 DO31 R W 0x0000 0xFFFF N 0290 N 0290 0 15 Analog input burnout status N 0291 N 0290 0 15 Analog input high alarm status R N 0292 N 0292 0 15 Analog input low alarm status R N 0293 N 0293 Cold junction Cold junction temperature in 0 1C R N 0294 N 0309 0 15 Analog input normal value R see sec 7 2 N 0310 Average Analog input average value R N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0330 N 0345 0 15 Analog input minimum value R N 034
3. Connector Description RJ 45 Ethernet Connector PWR External power connector VCC External power 10 Vdc 30 GND Power Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C DIO Digital Input channel 0 111 Digital Input channel 1 DI2 Digital Input channel 2 DI3 Digital Input channel 3 DI4 Digital Input channel 4 DI5 Digital Input channel 5 DI6 Digital Input channel 6 DI7 Digital Input channel 7 DI8 Digital Input channel 8 DI9 Digital Input channel 9 DI10 Digital Input channel 10 DI11 Digital Input channel 11 DI12 Digital Input channel 12 DI13 Digital Input channel 13 DI14 Digital Input channel 14 DI15 Digital Input channel 15 DOO Digital Output channel 0 DO1 Digital Output channel 1 DO2 Digital Output channel 2 DO3 Digital Output channel 3 DO4 Digital Output channel 4 DOS Digital Output channel 5 DO6 Digital Output channel 6 DO Digital Output channel 7 DO8 Digital Output channel 8 DO9 Digital Output channel 9 DO10 Digital Output channel 10 DO11 Digital Output channel 11 DO12 Digital Output channel 12 DO13 Digital Output channel 13 DO14 Digital Output channel 14 DO15 Digital Output channel 15 IGND Isolated Digital GND IGND Isolated Digital GND IGND Isolated Digital GND EVCC External DO voltage input see 4 5 3 29 EDAM 5000 User s manual 3 6 EDAM 5060 Front side connectors USB RJ 45 EDAM 5060 LINK USB PWR e e RLYO DIO RLY1 DI1 RLY2 DI2 RLY3 D
4. Type Input Type Min Max Formula Unit 07 10V 10V 10000 10000 Volt MODBUS data 1000 08 5V 5V 5000 5000 Volt MODBUS data 1000 V 09 2 5V 2 5V 2500 2500 Volt MODBUS data 1000 OA 1V 1V 10000 10000 Volt MODBUS data 10000 0B 500 mV 500 mV 5000 5000 Volt MODBUS data 10 mV 0C 150m V 150mV 15000 15000 Volt MODBUS data 100 0D 0 mA 20 mA 00000 20000 Current MODBUS data 1000 mA 0E 4 20MA 4000 20000 Current MODBUS data 1000 OF Type J T C 100 C to 760 C 1000 7600 10 Type K T C 100 C to 1370 C 1000 13700 11 Type T T C 100 C to 400 C 1000 4000 12 Type E T C 100 C to 1000 C 1000 10000 13 Type R T C 50 C to 1750 C 500 17500 14 Type S T C 50 C to 1750 C 500 17500 15 Type B T C 00 C to 1800 C 0 18000 20 IEC Pt100 50C 150C 500 1500 21 IEC Pt100 OC 100C 0 1000 22 IEC Pt100 OC 200C 0 2000 Aa MES PUDO WE 000 2 4000 Temperature MODBUS data 10 C 24 IEC Pt100 200C 200C 2000 2000 25 JIS Pt100 50C 150C 500 1500 26 JIS Pt100 0C 100C 0 1000 27 JIS Pt100 0C 200C 0 2000 28 JIS Pt100 0C 400C 0 4000 29 JIS Pt100 200C 200C 2000 2000 2A Pt1000 40C 160C 400 1600 2B BALCO500 30C 120C 300 1200 2C Ni604 80C 1006 800 1000 2D Ni604 OC 100C 0 1000 Example Assume type of channel 2 is 10V and MODBUS data 0x2030 Hex 8240 Dec The voltage of channel 2 is
5. unsigned int 521 Ilthe ID address which cause the alarm interrupt unsigned int wintType 0 DI interrupt 1 AD INT TYPE unsigned int wChno Event channel number unsigned int wStatus I 0 for low to high interrupt for DI or high alarm for Al channel 1 for high to low interrupt for DI or low alarm for Al channel double fAddata MAD data if AD alarm occured DEVICE INTERRUPT INFO When event occurred ESKDAQ DLL will transfer argument with structure EVENT INTERRUPT INFO to callback function typedef struct STREAM INTERRUPT INFO 13 2 Stream interrupt structure unsigned int wszID the ID address which cause the alarm change Unsigned long dwDi digital input status Unsigned long dwDiLatch digital input latch status Unsigned long dwDiCount 32 digital input counter value Unsigned long dwDo Idigital output status double fAiNorValue 17 Ilanalog input normal value double fAiMaxValue 16 Ilanalog input maximum value double fAiMinValue 16 fanalog input minimum value unsigned int wAiHighAlarmstatus analog input high alarm status unsigned int wAiLowAlarmstatus analog input low alarm status unsigned int wAiBurnOut lanalog input burn out status 5019 EDAM5015 only double fCJCTemperature cold junction temperature in 0 1C unit 5019 only double fAoValue 16 analog output value STREAM_INTERRUPT_INFO When received active stream data ESKDAQ DLL will transfer argument with structure STREAM INTERRUPT IN
6. AAB cr 96 is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module B isthe Enable disable burnout command cr is the terminating character carriage return ODh AAbb cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module B burnout enable disable status 0 disable 1 enable cr is the terminating character carriage return ODh Command 01B cr read burnout detection enable disable status of specified module Response 001 cr burnout detection is enabled Command 01B cr read burnout detection enable disable status of specified module Response 001 cr burnout detection is enabled Enable disable burnout detection Enables disables channel burnout detection of a specified input module AABn cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module B isthe Enable disable burnout command n represents enable or disable burnout value 1 means enable burnout detection value 0 means disable burnout detection cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid T
7. 0 1 Digital input debounce time interval O Oxffff R W X 0176 N 0176 0 Digital output pulse low width 0000 0xFFFF RAW in 0 5msec N 0208 N 0208 0 Digital output pulse high width 0000 OxFFFF R W in 0 5msec N 0240 N 0240 0 Digital output pulse counts R W N 0272 N 0272 0 15 Digital power on value DO0 DO15 R W 0x0000 0xFFFF N 0273 N 0273 16 31 Digital power on value DO16 DO31 R W 0x0000 0xFFFF N 0290 N 0290 0 15 Analog input burnout status N 0291 N 0290 0 15 Analog input high alarm status R N 0292 N 0292 0 15 Analog input low alarm status R N 0293 N 0293 Cold Cold junction temperature in 0 1C R junction N 0294 N 0309 0 15 Analog input normal value R see sec 7 2 N 0310 Average Analog input average value R N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0330 N 0345 0 15 Analog input minimum value R N 0348 N 0363 0 15 Analog Input type 0x0007 0x000E R W N 0364 Average average type 0x0007 0x000E R W 53 EDAM 5000 User s manual 6 2 2 Bit address unit 1 bit N 10000 for Function 01 0x01 Function 05 0x05 This discrete address mapping support Modbus function 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F Address dec Channel Item Attribute N 0000 N 0001 0 1 DI status 0X0000 0X0003 R N 0032 N 0033 0
8. 16 11012 nent 40 4 3 4 Digit l Cutout Wiring ne een 4 4 4 EDANS028 WILEIO ea In 42 4 4 1 Interface Gone lof est dns Ann nn 42 4 4 2 8119 11 Rp MINS SES era 42 4 4 3 Digital OUT WING isla lali 44 4 87 EDAMESO 2 IM sulle beep 45 4 5 1 Interface CONNOR 45 4 5 2 Digital i pO MINES nd aber ue 45 4 5 3 Digital OUEST WIFIFIG ena da 47 4 0 EDAM SO6D WIRING ins are 48 4 6 1 Interface 1 11 1 6111 rta een 48 4 6 2 Digita IRBULWIEING ae as 48 4 6 3 Digital Bulput Wiring oni aii anna Ba ai ie 49 Chapter 5 Modbus Command 5000101 lt lt lt lt lt lt lt lt lt 50 5 1 Bommand SUM SLURS retina belle Sedi api asa d Ust pei entes 50 5 2 Modbus function code introductions iene 51 Chapter 6 Modbus Address Mapping lt lt lt lt lt lt lt lt lt lt lt 52 6 1 Modbus mapping or SU IS 2 2 u I 32 6 1 1 Register address unit 16 bi ricalca 52 6 1 2 Bit address uri 1 DI orrore sell 52 6 2 Modbus Mapping OT EDAM S00 u 53 6 2 1 Register address unit TOD ina a 53 82 2 Bitaddress nit t TOM RI 54 6 3 Modbus mapping or EDAM ES0 TE lan aha a pat 55 6 3 1 Register address unit DS a res 55 6 32 Bitaddress unit 10 RU nisin alato 56 6 4 Modbus mapping of EDAM 5028 ss 57 6 4 1 Register address unit 16 DIES asien 57 6 4 2 Bit address Unit TBD essri unna dai ena 58
9. 19 EDAM 5000 User s manual Chapter 3 Connector pin assignment 3 4 EDAM 5015 Front side connectors PWR USB RJ 45 EDAM 5015 LINK USB PWR e e e RTD6 RTDO RTD7 RTD1 O RTD3 RTD2 RTD9 RTD3 RTD10 RTD4 RTD11 RTD5 20 EDAM 5000 User s manual Connector Description RJ 45 Ethernet Connector PWR External power connector VCC External power 10 lt Vdc lt 30 GND Power Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C RTDO RTDO RTD input channel 0 AGND RTD common 0 RTD1 RTD1 RTD input channel 1 AGND RTD common 1 RTD2 RTD2 RTD input channel 2 AGND RTD common 2 RTD3 RTD3 RTD input channel 3 AGND RTD common 3 RTD4 RTD4 RTD input channel 4 AGND RTD common 4 RTD5 RTD5 RTD input channel 5 AGND RTD common 5 RTD6 RTD6 RTD input channel 6 AGND RTD common 6 RTD7 RTD7 RTD input channel 7 AGND RTD common 7 RTD8 RTD8 RTD input channel 8 AGND RTD common 8 RTD9 RTD9 RTD input channel 9 AGND RTD common 9 RTD10 RTD10 RTD input channel 10 AGND RTD common 10 11 RTD11 RTD11 RTD common 11 21 EDAM 5000 User s manual 3 2 EDAM 5017 Front side connectors EDAM 5017 LINK USB PWR e o e DIO AIO e e Di AM e e Doo Al2 AI3 e Al4 e AI5 e Al6 e A7 e AIB e 219 e 4110 Al11 21126 4113 Al14 0 Al15 22 EDAM
10. EDAM 5000 User s manual 6 4 2 Bit address unit 1 bit This discrete address mapping support Modbus function 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F N 10000 for Function 01 0x01 Function 05 0x05 Address dec Channel Item Attribute N 0000 N 0023 0 23 DI status 0X000000 0XFFFFFF R N 0032 N 0055 0 23 DI latch status 0X000000 0XFFFFFF R N 0064 N 0071 0 7 DO status R W N 0096 N 0119 0 23 Clear DI latch status R W N 0128 N 0151 0 23 Clear DI counter value R W N 0160 N 0183 0 23 Enable disable DI latch interrupt Event R W O disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0231 0 7 Start Stop DO pulse output R W O disable DO pulse output 1 enable DO pulse out until Digital output pulse counts reaches zero see in Register address table Note In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 58 EDAM 5000 User s manual 6 5 Modbus mapping of EDAM 5029 6 5 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10 Address dec Channel Item Att
11. 11 71 11 72 11 73 11 74 11 75 11 76 11 77 11 78 11 79 11 80 11 81 11 82 11 83 11 84 11 85 11 86 11 87 11 88 11 89 11 90 E5K_ReadColdJunctionTemperature nono nono noconnonnn corn nonn ccoo 128 E5K_ReadColdJunctionStatus 40408 129 ESK SerGoldJUrellol s seit alate 129 E5K ReadAlChannel Contig u a a Po nd 130 ESK SSertAIGhannelGorfig sti dsd oo tento ti don at 130 EK ReadAIBUrnOUtolalis 3 oe eSI ED IR cin 131 E5K ReadAlAlarmStatuS nile 131 ESK SeDAIBUTIOUE ara 132 ESK AECA stt tipi is metam eM mad ctu ctae fa e 132 ESIS SSS LAID 81211 gt 1 I aaa fer 133 ESK ReadAIModuleFillet use el 133 ESK_SelAlChannelEnable one ups a 134 ESK ReadAl Channel Enable scene nenn 134 E5K_ReadAINormalMultiChannel ss 135 E5K ReadAlMaximumMultiChannel nono nono noconoconononnccon cnn 136 E5K ReadAlMinumumwMultiChannel ss 137 ESK 1 1 1 111 01 1 Mi saini bemerken 137 E5K ResetAIMINIMOM a E D E ME 138 ESK ResetAlFigh Alarn cope vei tt eol a ei 138 E5K ReselAllEoWAlarn zar HI decks eso d et ea 139 ESK ReadAlChantielAVerage 5 5 ikea 139 ESIK SetAIGhannelAVerdge suites iere inde bedeckt sie toti Pe OMA aM ace Kod Cute Aa PATREM Aq eae 140 BOK SelDIGhantielG orig ite neue nd 140 E5K ReadDlIChannelConflg 3 3 ne tee cua neas oae ade du 141 ESK 16 SAU SF eeeh 141 ES Read Late ta de i aliene dM As Cine 142 ESK ClearAllDlLateh
12. Command 050B23 cr Response 05 cr Valid command 05 Module ID 23 Set 23 Hex to Digital output channels channel 8 9 13 are active and channel 10 11 12 14 15 are inactive 90 EDAM 5000 User s manual 10 41 AAOCnn Set the Digital 3 s byte DO16 DO23 Output Description Sets the value to Digital Output Channels 16 23 Syntax Command AA0Cnn cr Command leading code AA Module address ID 00 3F OC is the Sets the Digital Output lowest byte DO16 DO23 command nn Output value to channel 16 23 cr is the terminating character carriage return ODh Response Example AA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 050C23 cr Response 05 cr Valid command 05 Module ID 23 Set 23 Hex to Digital output channels channel 16 17 21 are active and channel 18 19 21 22 23 are inactive 10 42 AAnn Read digital input counter Description Syntax Response Example Read DI latch status AAnn cr is a delimiter character AA represents the 2 character hexadecimal Modbus address Always 01 nn represents DI channel number cr is the terminating character carriage return 0Dh AAnnnnnnnn cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal module add
13. Status Polling USB ID Address 3F 169 EDAM 5000 User s manual 19 Apply OVr to channel 0 Al0 AIO as shown in Figure 17 1 20 Apply proper volatage depend on the type been calibrated to channel 1 Al1 Al1 as shown in Figure 17 1 PWR USB EDAM 5019 LINK USB PWR e e O DIO AIO e D1 Al poo AI2 AI3 Al4 AIS AI6 AI7 AI8 AI9 Al10 Al11 AI12 Al13 Al14 e Al15 Apply Voltage 21 Click Start button to calibrate Zero offset first EDAM5019 A D Calibration 1 Apply 0 0000M to Channel 1 2 Click Start ButtorNo calibrate Zero Value Zero Calibration Status Idle 170 EDAM 5000 User s manual 22 Click Span Calibration tab and Select Input Type 23 Enterthe value of voltage see input range applied to channel 1 CH1 CH1 in the Input Value textbox EDAM5019 A D Calibration eee o Zero Calibratfon Span Calibration Calibration steps 1 Apply Filter C 50Hz 60Hz ben C 10042 ReadBack 1 544 v _IncSpan 150mv Auto JK T E Type a Accuracy M R Type Span 1 1004 _ SB Type 20m Input Value 1 542 V Dec Span Status Calibrating Filter 60Hz 24 Click Auto button to start auto calibrating Auto calibration will calibrate Span value of all Filter rate 50Hz 60Hz 100Hz 120Hz 25 You can also click Inc Span or Dec Span button to fine adjust the Span value EDAM5019 A D Calibration
14. Use the shortest possible wire length Use wire trays for routing where possible Avoid running wires near high energy wiring Avoid running input wiring in close proximity to output wiring where possible Avoid creating sharp bends in the wires 13 EDAM 5000 User s manual Chapter 2 Specifications 2 1 EDAM 5015 specifications The EDAM 5015 is a 16 bit 12 channel RTD input module that provides programmable input ranges on all channels It accepts Various RTD inputs Type PT100 PT1000 Balco 500 NI604 NI1000 and provides data to the host computer Analog Input Effective resolution 16 bit Channels 12 Input type PT100 PT1000 Balco 500 NI RTD Input range PT100 type 50 150 C 0 100 C 0 200 C 0 400 C 200 200 C Pt1000 type 40 160 C Balco 500 type 30 120 C Ni604 type 80 100 C Ni1000 type 0 100 C Sampling rate 10 samples sec Input impedance 10 MO Accuracy 0 15 or better Zero drift x20 uV C Span drift 25 ppm C Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max 14 EDAM 5000 User s manual 2 2 EDAM 5017 specifications The EDAM 5017 is a 16 bit 16 channel Analog input module that provides programmable input ranges on all channels Analog Input Effective resolution 16 bit Channels 16 Input type Voltage Current Input range
15. bit n 1 active Return Code refer to the Error code 144 EDAM 5000 User s manual 11 82 E5K SetDOSingleChannel Description Set single DO channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetDOSingleChannel Lib EBKDAQ dll _ ByVal id As Integer ByVal chno As Integer ByVal status As Byte As Integer VC see ESKDAQ h unsigned short E5K_SetDOSingleChannel int id unsigned int chano unsigned char status Parameters id module ID address chano DO channel number 0 31 status status 0 deactivate DO channel status 1 activate DO channel Return Code refer to the Error code 11 83 E5K SetDOPulseWidth Description Set pulse high low width of specified DO channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetDOPulseWidth Lib ESKDAQ dll _ ByVal id As Integer ByVal dochn As Integer ByVal highwidth As Integer ByVal lowwidth As Integer As Integer VC see ESKDAQ h unsigned short E5K SetDOPulseWidth int id unsigned int dochn unsigned int highinterval unsigned int lowInterval Parameters id module ID address dochn DO channel number 0 31 highwidth DO pulse high level width in 0 5msec unit lowwidth DO pulse low level width in 0 5msec unit Return Code refer to the Error code 145 EDAM 5000 User s manual 11 84 E5K ReadDOPulseWidth Description Read pulse high low width of specified DO chann
16. range 00 3F represents the 2 character hexadecimal address of module 9 is the set cold junction offset command C channel number cr is the terminating character carriage return ODh AAsnnnn if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module S sign of cold junction offset nnnn cold junction offset in 0 01C unit cr is the terminating character carriage return Command 0192 cr Response 01 0010 cr The cold junction offset of channel 2 is 0010 Hex 0 01 0 16C Response AA if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return Command 019 0010 cr Response 01 cr Set all channels to have cold junction offset to 0010 Hex 0 01 0 16C 83 EDAM 5000 User s manual 10 27 AA9cSnnnn Set single channel CJC Offset Description Syntax Response Examples 10 28 AAR Description Syntax Response Examples set channel cold junction offset individually AA9csnnnn cr isade
17. 1 DI latch status 0X0000 0X0003 R N 0064 N 0064 0 DO status R W N 0096 N 0097 0 1 Clear DI latch status R W N 0128 N 0129 0 1 Clear DI counter value R W N 0160 N 0161 0 1 Enable disable DI latch interrupt Event R W O disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0224 0 1 Start Stop DO pulse output R W O disable DO pulse output 1 enable DO pulse out until Digital output pulse counts reaches zero see in Register address table X 0256 N 0271 0 15 Enable disable analog channel R W N 0272 N 0287 0 15 Analog input high alarm status R N 0288 N 0303 0 15 Analog input low alarm status R N 0304 N 0319 0 15 Enable disable analog channel in average R W N 0320 X 0335 0 15 Reset analog input maximum value R W N 0336 N 0351 0 15 Reset analog input minimum value R W N 0352 N 0367 0 15 Clear analog input high alarm status R W 0 15 N 0368 N 0383 Clear analog input low alarm status In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 54 EDAM 5000 User s manual 6 3 Modbus mapping of EDAM 5019 6 3 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10
18. 5000 User s manual 10 10 ZAAMLn Read Minimum Value Of Specified Channel Description Syntax Response Example Example 10 11 AAML Description Syntax Response Example The command will return the read minimum value of the specified channel from a specified AA module in the currently configured data format AAMLn cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of an analog input module ML read single channel maximum value command N channel number cr is the terminating character carriage return ODh gt AA data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error AA range 00 FF represents the 2 character hexadecimal address of the analog input module gt is a delimiter character data is the minimum value of the specified channels cr is the terminating character carriage return ODh Command 21ML2 cr Response 21 7 2111 cr The command response the analog input module at address 21h for its minimum values of the channels 2 with 7 2111 volts Command 01ML2 cr Response 01FF5D cr The command response the analog input module at address 21h for its minimum values of the channels 2 with FF5D The configured data format of the analog input module is two s complement Clear All Minimum Value clear minimum Value Of all channels A
19. 5000 User s manual 11 9 E5K_GetDLLVersion Description Get version of ESKDAQ DLL Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK GetDLLVersion Lib E5KDAQ dll _ ByRef Major As Integer ByRef Minor As Integer As Integer VC see ESKDAQ h unsigned short E5K_GetDLLVersion unsigned int Major unsigned int Minor Parameters Major points version major buffer Minor points version minor buffer Return Code refer to the Error code 11 10 E5K VerifyPassWord Description Verify password of the Ethernet connected module The function should be called after calling E5K OpendModulelP function for Ethernet Connection only Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK VerifyPassWord Lib E5KDAQ dil _ ByVal id As Integer ByVal PassWord As String ByVal length As Integer As Integer VC see ESKDAQ h unsigned short E5K_VerifyPassWord int id UNSIGNED CHAR PassWord unsigned int length Parameters id module ID address PassWord points to password string buffer length password length Return Code refer to the Error code 106 EDAM 5000 User s manual 11 11 E5K_ChangePassWord Description Change password of the Ethernet connected module The function is available after calling E5K VerifyPassWord function for Ethernet Connection only Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EB
20. 5015 0x23 RTD IEC Pt100 0C 400C 5015 0x24 RTD IEC Pt100 200C 200C 5015 0x25 RTD JIS Pt100 50C 150C 5015 0x26 RTD JIS Pt100 0C 100C 5015 0x27 RTD JIS Pt100 0C 200C 5015 0x28 RTD JIS Pt100 0C 400C 5015 0x29 RTD JIS Pt100 200C 200C 5015 Ox2A RTD Pt1000 40C 1606 5015 0x2B RTD BALCO500 30C 120C 5015 0x2C RTDNi 80C 100C 5015 0x2D RTDNi 0C 100C 5015 66 EDAM 5000 User s manual Chapter 9 TCP IP port assignments The following table shows you the TCP IP ports used for EDAM 5000 series Functions protocol port Modbus TCP protocol TCP 502 ASCII command Modbus RTU protocol UDP 1025 Broadcast protocol UDP 5048 Stream data UDP 5148 Alarm Event data UDP 5168 Httpd web server TCP 80 67 EDAM 5000 User s manual Chapter 10 ASCII Commands 10 1 Analog commands AA Reads the Analog Inputs of All 10 3 AAN Reads the single Analog Input 10 4 AAMH Read Maximum Value Of All Channels 10 5 AAMHn Read Maximum Value Of Specified Channel 10 6 AAMH Clear All Maximum Value 10 7 AAMHn Clear Maximum Value Of Specified Channel 10 8 AAML Read Minimum Value Of All Channels 10 9 AAMLn Read Minimum Value Of Specified Channel 10 10 AAML Clear All Minimum Value 10 11 AAMLn Clear Minimum Value Of Specified Channel 10 12 HAAAV Read Average Value 10 13 AA
21. 5060 DOChannels Short Return the total DO channels of model 5017 5019 5028 5029 5060 154 EDAM 5000 User s manual Name Type Description Model s DOOulseCounts Long Set the output count value for the specified DO channel which 5017 5019 5028 functions in Pulse output mode 5029 5060 DOStatus Long Return set the status for the specified DO channel which 5017 5019 5028 functions in D O mode 1 Active 0 Inactive 5029 5060 COMBaudRate Long Return set COM port baud rate All models CommunicationType Short Return set communication interface All models StreamEventlD Short Return ID address of module which generate stream data All models StreamIP String Return IP address of module which generate stream data All models Version String Return the version of ActiveX control EBKDAQ OCX All models LastError Short Return the Error code of operation All models LastErrorDescription String Return the error description All models MoudlelD Short Return the module ID number All models ModulelP String Set the remote module IP address All models ModuleName String Return the module name All models ConnectionTimeOut Long Return or set the TCP IP Timeout ms All models ReceiveTimeOut Long Return or set the TCP IP or COM receive Timeout ms All models SendTimeOut Long Return or set the TCP IP Send Timeout ms All models UpdatePeriod Long Return set data update time period ms All
22. 8240 1000 8 24V Example Assume type of channel 1 is 500mV and MODBUS data 0xEF 1B Hex 4325 Dec The voltage of channel 2 is 4235 10 423 5mV Example Assume type of channel 1 is 0 20mA and MODBUS data 0x3B84 Hex 15236 Dec The current of channel 2 is 15236 1000 15 236mA Example Assume type of channel 2 is Type K T C 100 C to 1370 C and Modbus data 0x2030 Hex 8240 Dec The temperature of channel 2 is 8240 10 824 0 C Example Assume type of channel 2 is IEC Pt100 OC 200C and Modbus data 0x05DC Hex 1500 Dec The temperature of channel 2 is 1500 10 150 C 63 EDAM 5000 User s manual 7 2 2 Hex 2 s complemenT Data Format Table Typ Input Type Min Max Formula Unit e 07 10V 10V 8000 7FFF Volt MODBUS data 10 32767 08 5V 5V 8000 7FFF Volt MODBUS data 5 32767 7 09 2 5V 2 5V 8000 7FFF Volt MODBUS data 2 5 32767 OA 1V 1V 8000 7FFF Volt MODBUS data 1 32767 08 500 mV 500 mV 8000 7FFF Volt MODBUS data 500 32767 ig OC 150m V 150mV 8000 7FFF Volt MODBUS data 150 32767 a OD 0 MA 20 mA 8000 7FFF Current MODBUS data 20 32767 x OE 4 20MA E667 7FFF Current MODBUS data 20 32767 T OF Type J T C 100 C to 760 C EF28 7FFF Temperature MODBUS data 10 10 Type K T C 100 C to 1370 C F6A8 7FFF Temp Modbus data 1370 32767 11 Type T T
23. AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return 0Dh Command 01MLE cr Response 01 cr Clear Minimum Value Of Channel 14 OxOE Read Average Value The command will return the average value from the channels which is in average mode AAV cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of the analog input module V identifies Read Ad average value command cr is the terminating character carriage return ODh data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character The command requests the analog input module at address 12h to return the input value of channel 0 The analog input module responds that the input value of channel 0 is equal to 1 4567 volts Command 12V cr Response gt 1 4567 cr The command requests the analog input module at address 12h to return the average value of the module The analog input module responds that the average value of module is equal to 1 4567 volts 75 EDAM 5000 User s manual 10 14 AAE Description Syntax Response Examples Read Channel Average Enable Disable Status read A D channel in average status AAE cr is a delimiter character AA range 003F represents the 2 character hexadecimal address of modul
24. ByRef Dopoweron As Long As Integer VC see ESKDAQ h unsigned short E5K ReadDOPowerOnValue int id unsigned long PowerOnValue Parameters id module ID address poweronvalue points to a 32 bit buffer to store DO power on value Return Code refer to the Error code 148 EDAM 5000 User s manual 11 90 E5K ReadDIOActiveLevel Description Read DI DO active level options Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDIOActiveLevel Lib E5KDAQ dll _ ByVal id As Integer ByRef DlActiveoption As Byte _ ByRef DOActiveoption As Byte As Integer VC see ESKDAQ h unsigned short E5K_ReadDIOActiveLevel int id unsigned char DIActiveoption unsigned char DOActiveoption Parameters id module ID address DlActiveoption points to 8 it buffer to store DI active status option 0 or 1 see Table 11 91 1 DOActiveoption points to 8 it buffer to store DO active status option 0 or 1 see Table 11 91 2 Return Code refer to the Error code 149 EDAM 5000 User s manual 11 91 E5K SetDlOActiveLevel Description Set DI DO active level options Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetDIOActiveLevel Lib ESKDAQ dIl _ ByVal id As Integer ByVal DlActiveoption As Byte ByVal DOActiveoption As Byte As Integer VC see ESKDAQ h unsigned short E5K SetDIOActiveLevel int id unsigned char DIActiveoption unsigned char
25. DOActiveoption Parameters id module ID address id module ID address DIActiveoption DI active state option 0 or 1 see Table 11 91 1 DOActiveoption DO active state option 0 or 1 see Table 11 91 2 Return Code refer to the Error code Module name DI Active option Description EDAM 8060 0 Active state if input open or high voltage Inactive state if input short or low voltage 1 Active state if input short or low voltage Inactive state if input open or high voltage Table 11 91 1 Module name DO Active option Description EDAM 8060 0 Active state if relay close Inactive state if relay open 1 Active state if relay open Inactive state if relay close Table 11 91 2 150 EDAM 5000 User s manual Chapter 12 E5KDAQ DLL Error code Error code Description 00 No Error 01 Device not supported 02 Device is not existed 03 Device driver not activated 04 Device driver open fail 05 Device time out 06 Device response Error 07 Invalid driver version 08 Invalid ID Number 09 Device ID overlapped 10 Invalid interface type 11 Invalid Pass Word or password not be verified 12 Invalid ASCII Command 13 Interrupt Already enabled 14 No Interrupt Data 15 Arguments Out Of Range 16 Invalid Port Number 17
26. ERIS e Eo ope en a 88 10 36 AAnn Set the Digital Output Channels 88 10 37 AAnnnn Set the Digital Output Channels 89 10 38 AAnnnnnn Set the Digital Output Channels sse 89 10 39 FAAOAnn Set the Digital 1 s byte DOO DO7 Output sse 90 10 40 ZAAOBnn Set the Digital 2 s byte DO8 D015 Output cnteeteeeeeeeeeeeees 90 10 41 FAAOCnn Set the Digital 3 s byte DO16 DO23 Output 91 10 42 AAnn Read digital input counter 9 10 43 AACn Clear digital input counter 92 10 44 AACnn Clear digital input counter 92 10 45 SAALS Read the latched DI status ua ise dada 93 10 46 AAC Clear the latched DI status 93 10 47 AA9nn Read Single Do Pulse High Low Width 94 10 48 AA9nnhhhhllll Set Single Do Pulse High Low Width sss 94 10 49 AAAnn Read Single Do High Low Delay Width sse 95 10 50 AAAnnhhhhllll Set Single Do High Low Delay Width sse 95 10 51 AABnn Read Single Do Pulse COUNtS ii 96 10 52 AA2nncccc Write Single Do Pulse Counts ss 96 10 53 ZAA3nns Start Stop DO Pulse Counts ss 97 10 54 AA4v Read the Power On Safe Value 97 10 55 AA5v Set current Do value as power on safe value 98 10 56 AA5vnnnnnn Set specified value as power on safe value sss 98 10 57 AAD Read DI O active Stale sa usi ore pr A
27. ES E ESO19BIOS_M21 bin Ta ES E5028BIOS_HTTP_M20 bin E ESO28BIOS_M20 bin HANS Ej ESO29BIOS_HTTP_M20 bin zi E5029B10 _M20 bin ES ESOGOBIOS_HTTP_M20 bin HAES Ej ESOGOBIOS_M20 bin BEL q am BEO ARAUT Binary Files scr v RH SE Figure 15 6 158 EDAM 5000 User s manual Click Download button to start to update firmware see Figure 15 7 D eDAM 5000 Utility Y2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name Load File Target ID Target Name Status Idle Figure 15 7 The Utility is searching module Power off on the module or press Reset button at the down side of the module to reboot the module see Figure 15 8 D eDAM 5000 Utility Y2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name ESOTSBIOS_HTTP_M21 bin Load File Target ID 3FIHex Target Name 5015 Status 100 completed 35400H 215Kbytes Figure 15 8 159 EDAM 5000 User s manual 9 If module found The Target ready window pop up see Figure 15 9 Click OK button to start eDAM 5000 Utility Y2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name ESOTSBIOS_HTTP_M21 bin Load File Target ID 3FHes Target Name 501 01 02 03 04 05 1C Status Idle
28. ESKDAQ dIl _ ByVal id As Integer ByVal AlEnable As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlChamnelEnable int id unsigned int AlEnable Parameters Id the target module id AlEnable Enable disable settings bit n 0 disable channel n bit n 1 enable channel Zn Return Code refer to the Error code 11 63 E5K_ReadAlChannelEnable Description Read enable disable status of analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlChannelEnable Lib EBKDAQ dll _ ByVal id As Integer ByRef AlEnable As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K ReadAlChannelEnable int id unsigned int AlEnable Parameters Id the target module id AlEnable points to a buffer to store channel Enable disable settings bit n 0 channel n is disabled bit n 1 channel n is enabled Return Code refer to the Error code 134 EDAM 5000 User s manual 11 64 E5K ReadAlNormalMultiChannel Description Read normal value of the multiple analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlNormalMultiChannel Lib E5KDAQ dll _ ByVal id As Integer ByVal startch As Integer ByVal counts As Integer ByRef Altemp As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAINormalMultiChannel int id unsigned int startch unsigned int counts do
29. Figure 15 9 10 The progress bar shows the progress of updating firmware see Figure 15 10 File Name E501 SBIOS_HTTP_M21 bin Target ID 3F Hex Target Name 501 5 Cancel Exit Sesa Xx N N y EE w oe S Figure 15 10 160 EDAM 5000 User s manual 11 Click Reboot button to reboot the module eDAM 5000 Utility 92 10 2011 07 07 DLL Yer 1 6 161 EDAM 5000 User s manual Chapter 16 Reload Default Settings All EDAM 5xxx modules provide a way to reload the default settings see 3 7 as shown in Figure 17 1 Interface Tar Cae XH T3 3 3 5 TOT Cy 4 w ESTA O0 00000 A0 Al A2 A3 M A5 Figure 16 1 Set all Pins of ID address DIP switch to off postion ID 00 Power off on to re boot the module and wait for a few seconds until USB LED or Ethernet LED turn on Set the pins of ID address DIP switch to the desired position ID xx ID 0 is reserved for setting default only Power off on again to use default settings Nea 162 EDAM 5000 User s manual Chapter 17 Zero Span Calibration 17 1 EDAM 5015 calibration Connect EDAM5015 to USB hub Execute E5000Utility Click Start button to search modules Double click EDAM 5015 listed in device list window D I eDAM 5000 Utility 320 2012053724 DLL Yer 3 10 DER Exit Search Terminal Firmware Update Help ommunication Inteface Kira BEN
30. Front side Connectors anstehen 24 3 4 EDAM 5028 Front side connectors ss 26 3 5 EDAM 5029 Front Side Connectors ioi oie do teni eot Pod etat ye Conti icai e Deis 28 3 6 EDAM 5060 Front side ConriecloEs u oh ede o i e s 30 3 7 EDAM 5000 Rear side connectors erii eoe aaa 32 3 8 EDAM 5000 reset switch and CJC sensor lt lt lt lt lt nono nonononnnno non nncon con nono nonnnnos 33 3 9 EDAM 5015 Analog Digital I O block diagram lt lt lt lt 34 3 10 EDAM 5017 Analog Digital I O block diagram seen 34 3 11 EDAM 5019 Analog Digital I O block diagram eene 35 3 12 EDAM 5028 Analog Digital I O block diagram eene 35 3 13 EDAM 5029 Analog Digital I O block diagram eene 36 3 14 EDAM 5060 Analog Digital I O block diagram eene 36 Chapter 4 Application 01 lt lt lt lt rere tr re eire rri er e nein ie eee nni Eie 37 Asi MEDANESOTS WIN Bunte 37 4 1 1 Interface Connection 37 4 12 A seta 0 37 427 EDAM 0 0 Ameisen 38 4 2 1 Interface connection mem SL 38 4 22 Analog IA PUE WIN o A 38 EDAM 5000 User s manual 4 2 3 Digital 1 101 2 1 Oct lis 39 4 2 4 Digital ODA Se e 39 4 3 EDAM 50 19 WING cda 40 4 3 1 Interface Connections eu 40 4 92 Anal g Input WINO furs lasco liana 40 4 3 3 Digital 1
31. Invalid DO Data 18 Invalid Digital Channel Number 19 Invalid Timer Value 20 Invalid Timer Mode 21 Invalid Counter Number 22 Invalid Counter Value 23 Invalid Counter Mode 24 Invalid A D Filter Type 25 Invalid A D Mode 26 Invalid A D channel number 27 Invalid A D Gain 28 Invalid A D Range 29 Invalid A D count Value 30 Invalid A D Scan Rate 31 A D FIFO Half Not Ready 32 Invalid D A channel number 33 Invalid D A Value 34 Invalid Debounce Mode 35 Invalid Debounce Time 36 Invalid Modbus Function 37 Invalid Modbus Start Address 38 Modbus Address Out Of Range 39 Modbus Range over 32 Channel 40 WINSCK Not Opened 41 Windows winsock2 start up error 42 Invalid IP address 43 Can Not Create TCP Socket 44 Can Not Create UDP Socket 45 Can Not Set TCP IP Timeout 46 Can Not Send Package To Destination 47 No Package Received Until Timeout 48 Unable To Read Stream Data 49 No Connection To Remote IP Address 50 Alarm Event Buffer Empty 51 Stream Event Buffer Empty 52 Unable To Allocate Memory 151 EDAM 5000 User s manual Error code Description 53 Can Not Ping Remote IP Address 54 Check Sum CRC error 55 IP not in then subnet 56 COMM port already open 57 No enough buffer size to receive data 58 Error Code Out of Range 152 EDAM 5000 User s manual Chapter 13 Event Stream Interrupt structure 13 1 Event interrupt structure typedef struct EVENT_INTERRUPT_INFO
32. Power Adaptor USB cable Ethernet Cable 10V 430V USB Ext Power 10V 30V EDAM 5028 OI Power GND RS232 GND nO NL ON el RS485 DATA or RS232 TX IQ mme el RS485 DATA or RS232 RX 4 4 2 Digital input wiring There are three jumpers called JP2 JP 5 AND JP6 on the component side of PCB are used to set the input mode of Digital input channels Please remove the front cover and set JP2 JP5 JP6 properly before using digital input channels The default Settings are Dry contact input mode Q EDAM5028 PCB Component side Q 123 123 123 O JP6 JP5 JP2 Reset Switch 42 EDAM 5000 User s manual JP6 is used to set input mode of DI channel from DI 0 DI 7 EDAM 5028 EDAM 5028 JP6 123 Tee NA 10K Voltage Input DI 0 DI 7 DI 0 DI 7 Switch _0V 24V IGND IGND Digital Input Wet Contact gt JP5 is used to set input mode of DI channel from DI 8 DI 15 EDAM 5028 EDAM 5028 JP5 123 K7 10K Voltage Input DI 8 DI 15 DI 8 DI 15 Switch _0V 24V IGND IGND 7 JP2 is used to set input mode of DI channel from DI 16 DI 23 EDAM 5028 EDAM 5028 Voltage Input DI 16 DI 23 ZA DI 16 DI 23 e Switch _0V 24V IGND IGND Digital Input Dry Contact lt gt 43 Digital Input Wet Contact Ne EDAM 5000 User s manual
33. TED Y 20 Y 100 Y EGTE 9 200 Status Searching Ether Device List 5 Click A D Calibration button eDAM 5000 Utility 320 2012 04 24 DLL Yer 3 10 Search Terminal Module Settings Test r Module Settings p A D Settings 4 ID Address RS 232 485 Baud Rate Module Hame meo 80 5015 Filter Rate 60Hz TCP IP Settings ONG A Zaz IP Address 10 0 0 1 Pass Word 0000000 1 8 char SubMask 255 255 0 0 DHCP D WebNerver 1 MODBUS Data Format Enginerring ASCII Data Format Enginerring 10 0 0 1 15 15 15 15 Gateway MAC Address 15 15 15 15 1 Burnout Detect Active Stream IP Settings Alarm Latch Event IP Settings NX 1 255 255 255 255 Enable 1P1 255 255 255 255 I Enable 1P2 255 255 255 255 I Enable IP2 255 255 255 255 I Enable 1P3 255 255 255 255 Enable P3 255 255255 255 Enable IP4 255 255 255 255 Enable IP4 255255255255 I Enable Stream Time Interval 110 Secs Checksum CRC option is only avaliable for RS232 485 Communication ETS Status e PollingUSB ID Address 1 163 EDAM 5000 User s manual 6 Connect 0 ohm resistor to channel 0 RTDO RTDO AGND as shown in Figure 17 1 7 Connect a 120 180 ohms resistor for pt100 calibration 1200 2000 ohms resistor for pt1000 or 500 650 ohms resistor for Balco5
34. be written regs n value for Modbus holding register address startaddr n O lt n lt counts Return Code refer to the Error code 11 26 E5K ReadModbusRegister Description Read Modbus Holding or Input registers Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadModbusRegister Lib E5KDAQ dil _ ByVal id As Integer ByVal startaddr As Integer ByVal counts As Integer regs As Integer As Integer VC see ESKDAQ h unsigned short E5K_ReadModbusRegister int id unsigned int startaddr unsigned int counts int regs Parameters id module ID address startaddr start address in Modbus Holding or Input register 0000 FFFF counts how many register be read regs points data buffer Return Code refer to the Error code 114 EDAM 5000 User s manual 11 27 E5K_ReadModbusDiscrete Description Read Modbus coil or discrete input Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadModbusDiscrete Lib EBKDAQ dll _ ByVal id As Integer _ ByVal startaddr As Integer _ ByVal counts As Integer Discrete As Byte _ As Integer VC see ESKDAQ h unsigned short E5K ReadModbusDiscrete int id Parameters id startaddr counts Discrete Return Code unsigned int startaddr unsigned int counts unsigned char Discrete module ID address start address in Modbus Holding or Input register 0000 FFFF how many bit be r
35. command nn Digital Output channel number 0 17 hhhh high output delay time in 0 5msec VVVV low output delay time in 0 5msec cr is the terminating character carriage return ODh Response AAcr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Example Command 05A02000100 cr Response 05 cr Valid command 05 Module ID 0200 high output delay time 0200 hex 512 dec 0 5msec 256 msec 0100 low output delay time 0100 hex 256 dec 05msec 128 msec 95 EDAM 5000 User s manual 10 51 AABnn Read Single Do Pulse Counts Description Read Pulse Counts of single DO channel Syntax Response Example AABnn cr is a delimiter character AA represents the 2 character hexadecimal module address B isread pulse counts command nn represents DO channel number cr is the terminating character carriage return ODh AAcccc cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cccc represents DO pulse counts cr is the terminating character carriage return ODh Read pulse counts of DO channel 03 command 01B03 cr Response 010020 cr The pulse counts of DO channel 03 is 0020 hex 32 dec 10 52 AA2nncccc Write Single Do Pulse Counts Description Set Puls
36. cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 01E0103 cr Response 01 cr Hexadecimal 0103 equals binary 0000 0001 0000 0011 which enables channel O 1 and 8 to be in average mode only 76 EDAM 5000 User s manual 10 16 ZAAAL Read AD high low Alarm Status Description Syntax Response Example The command will return the alarm status from all channels of a specified AA module AAAL cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of the analog input module AL identifies Read Ad high low Alarm Status command cr is the terminating character carriage return 0Dh AA hhhh IIII cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character Hhhh are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents the status of channel 12 15 and the second word represents the status
37. l O Y Zero Calibre N Calibration steps 1 Apply 2 SelectFilter Frequency Span Calibration Input Type Filter 25V 50Hz Input Value 1 Dec Span HM B Hz _Dec span 500mV 10042 ReadBack K ne Span oe C 120Hz Accuracy D Aut KTE Type R Type Span 1 1004 _ SB Type 20m Status Calibrating Filter 60Hz 26 Cilck Exit button to exit calibration window 171
38. of channel 8 11 etc bit x 0 means the channel x is high alarm bit x 1 means the channel x isn t high alarm cr is the terminating character carriage return ODh are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents the status of channel 12 15 and the second word represents the status of channel 8 11 etc bit x 0 means the channel x is low alarm bit x 1 means the channel x isn t low alarm Command 01AL cr Response 0100010010 cr The command requests the analog input module at address 12h to return thethe alarm status of all channels The analog input module responds that the alarm value of all channel s is equal to 00010010 hex The high alarm status 0001 means the channel 0 is high alarm The low alarm status 0010 means the channel 4 is low alarm 77 EDAM 5000 User s manual 10 17 AAAHnnnn Clear A D High Alarm Description Syntax Response Examples Clear A D High Alarm status over range status AAAHnnnn cr is a delimiter character AA range 003F represents the 2 character hexadecimal address of module H is the clear high alarm command nnnn are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents channel 12 15 and the second word represents channel 8 11 etc bit x 1 clear high alarm status of channel x bit x 0 no clear cr is the te
39. sia PARU 142 ESK ClearolndieDIC OU ida 143 ESK ReadMultiD I COUNTS arena ebenen 143 SKMNM DOS SAS Aa eigener coi i ici i lei e all eni 144 ESI Re eadDOStAtUS s ioni ia 144 E5K_SetDOSingleChannel spec esie A see risienr si ireen rsi see es stese 145 ESC SSIDOPnBISSVWIGINL o tt 145 ES ReadDOP lISeWidth see a Mesa en Sn IR 146 ESK Stan DOPlse eisen ask Ring 146 ESK SI0pDOPUISS cit iso obitu iol Uva ee 147 ESK ReadDOPulseCount iouis tO od ett itus t sao tes voa lit ob V bet th ied 147 BOK SeIDOPOWSFOBNVaIBB siccae stes toS pni len etes rechnen 148 EDBK ReadDOPowerOmvalub tdeo tmo oco Dun 148 E5K ReadDIOAGUVeL evel anstelle 149 EDAM 5000 User s manual 11 91 E5K SetDlOActiveLevel 766 eee 150 Chapter 12 ESKDAQ DLL Error code eennrenensermennseneensenssnnennsnsene 151 Chapter 13 Event Stream Interrupt structure ss 153 18 1 Event interrupt structure usa u ea 153 192 Streami interrupt Structure ee Pru De beo dates ce Puto bete e ens 153 Chapter 14 E5KDAQ ActiveX control eusuunesssensnnnnnnennnnnnennennnnnnnnnnnnnnnnnnennnnnnnnnensnnnnnnennnnnnnne 154 14 1 Properties of ESKDSAQ ActiveX control ss 154 14 2 Methods of ESKDAQ ActiveX control colle 155 14 3 Events of ESKDAO ActiveX Control inicie dere iubeo ei 155 Chapter 15 Firmware 02081 ash 156 Chapter 16 Reload Default Settings lt lt lt lt lt lt lt lt lt nenna
40. the EDAM 5000 I O module in millimeters EDAM LINK USB PWR e e e e DIO Ald e Di AM e e D00 Al2 e Al3 Al4 AI5 e AIG e AI7 e Al8 e AI9 Al10 Anto Ali2 Al13 Al14 AMSe ww LOL ww Gel 103 9 mm c2 c2 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 c3 ww 79 CL mE ida aa 11 EDAM 5000 User s manual C HE W E 101 1 mm 135 mm 103 9 mm FT 04 499 CUM b D 4 EDAM 5000 User s manual 1 8 System Requirements IBM PC compatible computer with 486 CPU Pentium is recommended Microsoft 95 98 2000 NT 4 0 SP3 or SP4 XP or higher versions At least 32 MB RAM 20 MB of hard disk space available VGA color monitor 2x or higher speed CD ROM Mouse or other pointing devices 10 or 100 Mbps Ethernet Card 10 or 100 Mbps Ethernet Hub at least 2 ports USB 2 0 hub with output current at last 400mA if powered by USB hub Two Ethernet Cable with RJ 45 connector Power supply for EDAM 5000 10 to 30 V unregulated if no USB connection 1 9 1 0 modules wiring The system uses a plug in screw terminal block for the interface between I O modules and field devices The following information must be considered when connecting electrical devices to I O modules The terminal block accepts wires from 0 5 mm to 2 5 mm Always use a continuous length of wire Do not combine wires to make them longer
41. 00 Ni604 calibration to channel 1 RTD1 RTD1 AGND as shown in Figure 17 1 EDAM 5015 LINK USB PWR o e o e RIDE RTDO e O RTD7 RTD e O 08 RTD2 O O 09 RTDI e RTD1O RTD4 e O RTD11 RTDS e 000000000 Figure 17 1 8 Click Start button to calibrate Zero offset first EDAM5015 A D Calibration 2 Click Start Button to calibrate Zero Value Zero Calibration 164 EDAM 5000 User s manual 9 Click Span Calibration tab and Select Input Type 10 Enter the value of the resistor connected to channel 1 RTD1 RTD1 in the Input Value textbox 120 200 ohms for PT100 1200 2000 ohms for PT1000 or 500 600 ohms for Balgo500 Ni604 EDAM5015 A D Calibration Zero Calibration Span Calibration Calibration steps 1 Apply to Channel 1 2 Select Filter Freg ency 3 Enter input vajde of Channel 1 in Input Value TextBox 4 Click Auto Inc or Dec Button to calibrate Span Value Span Calibration Filter PT100 C 50Hz InputValue 120 00 ohm Dec Span C PT1000 B Hz ReadBack ohm Inc Span BALCOSO0 Ni604 100Hz 120 200 ne Sen C 12012 Accuracy Auto span Ko Status Calibrating Filter 60Hz 11 Click Auto button to start auto calibrating Auto calibration will calibrate Span value of all Filter rate 50Hz 60Hz 100Hz 120Hz 12 You can also click Inc Span or Dec Span button to fine adjust the Span value EDAM5
42. 000 User s manual 11 40 E5K_TCPConnect Description Establish a TCP connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_TCPConnect Lib EBKDAQ dll _ ByVal zIP As String ByVal port As Integer ByVal iConnectionTimeout As Integer ByVal iSendTimeout As Integer ByVal iReceiveTimeout As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K TCPConnect char szIP u short port int iConnectionTimeout int iSendTimeout int iReceiveTimeout Parameters szIP Target IP address port connection port iConnectionTimeout connection timeout value msec iSendTimeout send timeout value msec iReceiveTimeout receive timeout value msec Return Code refer to the Error code 11 41 E5K TCPSendData Description Send data to TCP connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_TCPSendData Lib ESKDAQ dIl _ ByVal sock As Long ByRef pdata As Byte ByVal datalen As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_TCPSendData SOCKET sock SBYTE pdata u short datalen Parameters Sock TCP socket handle pdata Points to data buffer datalen bytes of data Return Code refer to the Error code 123 EDAM 5000 User s manual 11 42 E5K TCPRecvData Description Receive data from TCP connection Syntax Visual Basic VB Net see ESKDAQ bas ESKDAQ vb Declare public Function EBK TCPRec
43. 01 04 75 34 00 04 Total registers be read 4 Start DI Channel 0 Modbus function 4 Always 1 3 Receive Response from module as 01 04 08 05 7A FE F8 32 33 56 0 N Channel 1 low word data big endian Channel 1 high word data big endian Channel 0 low word data big endian Channel 0 high word data big endian Total data bytes 8 Modbus function 4 Module Address char Resp data Modbus response data received from Module Iwhere Resp data 6 01 module address Il Resp_data 7 04 Modbus function 4 Il Resp data 8 08 total data bytes Il Resp_data 9 10 0x05 0x7A high data of channel 0 Il Resp_data 11 12 OxFE OxF8 low data of channel 0 Il Resp_data 13 14 0x32 0x33 high data of channel 1 Il Resp_data 15 16 0x56 0x02 low data of channel 1 long Chan0_Counts Chan1_Counts Chan0_Counts long Resp_data 9 lt lt 24 long Resp_data 10 lt lt 16 long Resp_data 11 lt lt 8 Resp data 12 Chan1 Counts long Resp_data 13 lt lt 24 long Resp data 14 16 long Resp data 15 8 Resp data 16 printf n rChan 0 Counts d ChanO Counts printf n rChan 1 Counts d Chan1 Counts 4 Result Chan 0 Counts 291946744 Chan 1 Counts 2842225154 EDAM 5000 User s manual 7 2 How to convert Modbus data to Al voltage temperature 7 2 1 Engineering Data Format Table
44. 015 A D Calibration Calibration steps 1 Apply 2 Select Filter Frequency Inputalue TextBox Span Calibration Input Type Filter PT100 C 50Hz C 60H usn ReadBack 120 200 dm C BALCOS500 Ni604 C 100Hz 12042 Accuracy Auto Span 1 0000 Status Calibrating Filter 60Hz 13 Cilck Exit button to exit calibration window 165 EDAM 5000 User s manual 17 2 EDAM 5017 calibration Connect EDAM5019 to USB hub Execute E5000Utility moo qe Double click EDAM D eDAM 5000 Utility Y410 2012705710 Click Start button to search modules 017 listed in device list window DLL Yer 3 20 Exit Search Terminal Firmware Update Help JU dez A 1921880101 x com mar ius Sue h 120 EA 90 EX 2101 Jes sion ES 22 000 IED IAS 2502 E E GIU 1501 inns Y Enable 9 2s Status Searching Et Device List Module Address Connection Configuration Deseription 1 1 1 1 1 1 BS 1 rnet Modules 5 Click A D Calibration button D eDAM 5000 Utility Y410 2212 05 10 0 DLL Yer 3 20 Module Name EDAM5017 Firmware Ver M4 2 Module Settings Module Settings 2F Hex 9500 ID Address En Baud il CheckSum CRC Analog Settings N Disable 5 TCPAP Settings IP Address 192 168 0 17 SubMask 255 255 0 0 Gateway 10 0 0 1 Pass Wor
45. 10V 5V 2 5V 1V 500mV 15mV 0 20mA 4 20mA Sampling rate 10 samples sec Input impedance 10 MO Accuracy 0 15 or better Zero drift 20 uV C Span drift 25 ppm C Digital Input Input Channel 2 channels Input Type Voltage logic 0 for O Vin lt 3Vdc logic 1 for 5V Vin lt 24Vdc or Switch On Off Isolation voltage 2000 V Digital Output Output Channel 1 channel Output Type Open Collect to 30Vdc 3A max Isolation voltage 2000 V Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max 15 EDAM 5000 User s manual 2 3 EDAM 5019 specifications The EDAM 5019 is a 16 bit 16 channel Thermocouple input module that provides programmable input ranges on all channels It accepts Various Thermocouple inputs Type J K T E R S B and provides data to the host computer in engineering units C In order to satisfy various temperature requirements in one module each analog channel is allowed to configure an individual range for several applications Analog Input Effective resolution 16 bit Channels 16 Input type J K T E R S B Input range J type 0 760 C K type 0 1370 C T type 100 400 C E type 0 1000 C R type 500 1750 C S type 500 1750 C B type 500 1800 C Sampling rate 10 samples sec 20 samples sec 50 samples sec Input impedance 10 MQ A
46. 11 AAML ClearAll Minimum Value ss een un 74 10 12 AAMLn Clear Minimum Value Of specified Channel 75 10 13 AAAV Read Average Valle una ua a decl 75 10 14 AAE Read Channel Average Enable Disable Status 76 10 15 AAEnnnn Disable Enable Channel in Average i 76 10 16 AAAL Read AD high low Alarm Status ss q 10 17 AAAHnnnn Clear A D High Alarm ara 78 10 18 AAALnnnn Clear A D Low Alarm 78 10 19 SAAB Read Channel Burnout Status 79 10 20 AAB Read Channel Burnout Enable Disable Status 80 10 24 AABn Enable disable burnout detection 80 10 22 SAAS Read the CJC Temperature oido ais 81 10 23 AAC Read the CJC Enable disable ss 81 10 24 AACn Enable Disable the CIC 82 10 25 AA9snnnn Set the all channel CJC Offset 82 10 26 AA9c Read single channel CJC Offset sess 83 10 27 AA9cSnnnn Set single channel CJC Offset essent 84 10 28 BAAR Read Ark Filter Value ss o et d eee i A e 84 10 29 SAART SetAD Filter Value ptor isla 85 EDAM 5000 User s manual 10 30 AA6 Read the Channel Enable Disable Status 85 10 31 AA5vvvv Enable Disable A D Channels 86 10 32 AA8Ci Read the Single A D Channel Range 86 10 33 SAA7CiRrr Set the Single Channel Range 87 10 34 AAS1 Reload the Default configuration 87 10 35 AA Read the Digital I O Stats ottenere desta sa dete
47. 15 Clear analog input high alarm status R W N 0368 N 0383 0 15 Clear analog input low alarm status R W N 0384 N 0399 0 15 Read AD burnout status R Note In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 56 EDAM 5000 User s manual 6 4 Modbus mapping of EDAM 5028 6 4 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10 0x0000 0xFFFF Address dec Channel Item Attribute N 0000 0 15 Digital input data 0x0000 0xFFFF R N 0001 16 23 Digital input data 0x0000 0x00FF R N 0002 0 15 Digital input latch status 0x0000 0xFFFF R N 0003 16 23 Digital input latch status 0x0000 0x00FF R N 0004 N 0051 0 23 Digital input counter value 2 words channel R see sec 7 1 N 0068 0 7 Digital output status R W DO0 DO7 0x0000 0x00FF N 0080 N 0103 0 23 Digital input mode R W N 0112 N 0135 0 23 Digital input debounce time interval R W 0 OxFFFF X 0176 N 0183 0 7 Digital output pulse low width R W 0000 0xFFFF in 0 5msec N 0208 N 0215 0 7 Digital output pulse high width R W 0000 0xFFFF in 0 5msec N 0240 N 0247 0 7 Digital output pulse counts R W N 0272 0 7 Digital power on value DO0 DO7 R W 57
48. 162 Chapter 17 Zero Span Calibration cccccsssscecesscsseesesssesceesesseeseeseesscneeesensecncessenseeneessesseneeess 163 1721 EDANESU0T5 8allbration are tree eter toon o nt toe ne ae 163 17 2 EDAMS017 Calibration 166 17 3 EDAM 5019 calibration 54 42484 dene e doeet a 169 EDAM 5000 User s manual Chapter 1 Major Features 1 4 Multi Interface DA amp C I O Modules EDAM 5000 is based on the popular Ethernet USB RS485 RS232 networking standards used today in most business environments EDAM 5000 series provides 1 10 100 Mbps Ethernet interface and supports Modus TCP protocol over TCP IP for data connection 2 USB 2 0 high speed interface and supports Modbus RTU ASCII protocol for data connection 3 ES485 232C interface and supports Modbus RTU ASCII protocol for data connection With built in Real Time OS RTOS The EDAM 5000 modules can connect to all communication interface simutimiouslly 1 2 Intelligent I O Modules Enhancing from traditional I O modules EDAM 5000 I O modules have pre built intelligent mathematic functions to empower the system capacity The Digital Input modules provide Counter Totalizer functions the Digital Output modules provide pulse output delay output functions the Analog Input modules provide the Max Min Average data calculation the Analog Output modules provide the PID loop control function 1 3 Mixed I O in One Module to fit all applications EDAM 5000 mixed I O module desig
49. 175019 AlarmEventChannel Short Return the alarm channel number 5015 5017 5019 AlarmEventlD Short Return the ID address of alarm model 5015 5017 5019 AlarmEventlP String Return the IP address of alarm model All models AlarmEventStatus Short Return 1 if AD low alarm or DI high to low All models return 0 if AD high alarm or DI low to high AlarmEventType Short Return 1 if AD type alarm event occurred All models return 0 if DI type alarm event occurred CheckSumCRC Boolean Enable disable CheckSum CRC All models DIChannellndex Short Specifies the digital input channel to perform other DI 5017 5019 5028 properties read write operation 5029 5060 DIChannels Return the total DI channels of model 5017 5019 5028 5029 5060 DlounterValue Long Return the counting value for the specified DI channel which 5017 5019 5028 functions in Count Frequency mode 5029 5060 DILatchStatus Long Return the latch status for the specified DI channel which 5017 5019 5028 functions in Lo Hi Hi Lo latch mode 1 Latched 0 No 5029 5060 latched DIStartCount Boolean Start stop counting for the specified DI channel which 5017 5019 5028 functions in Count Frequency mode True Start 0 Stop 5029 5060 DIStatus Long Return the status for the specified DI channel which functions 5017 5019 5028 in DI mode 1 Active 0 Inactive 5029 5060 DOChannellndex Short Specifies the digital output channel to perform other DO 5017 5019 5028 properties read write operation 5029
50. 27 EDAM 5000 User s manual 11 50 E5K SetMultiChannelColdJunctionOffset Description Set cold junction offset of multiple analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetMultiChannelColdJunctionOffset Lib ESKDAQ dIl _ ByVal id As Integer _ ByVal startch As Integer _ Byval counts as integer _ Byref CjOffset As Double _ As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetMultiChannelColdJunctionOffset unsigned int id unsigned int startch unsigned int counts double CjOffset Parameters Id the target module id startch start channel number counts channels to be set CjOffset points to an array where store channel CJC offset values Return Code refer to the Error code 11 51 E5K ReadColdJunctionTemperature Description Read cold junction temperature Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadColdJunctionTemperature Lib EBKDAQ dll _ ByVal id As Integer ByRef CjTemp As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadColdJunctionTemperature int id double CJtemp Parameters Id the target module id CJtemp CJC temperature such as 23 67 Return Code refer to the Error code 128 EDAM 5000 User s manual 11 52 E5K ReadColdJunctionStatus Description Read CJC enable disable status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ
51. 3 C3 1 000000000 0000000000 o o e nes Dons Se i 5V 24V Dry Contact Wet Contact 4 4 3 Digital output wiring 0000000000 LOAD D00000000 10V 30V 44 EDAM 5000 User s manual 4 5 EDAM 5029 wiring 4 5 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 30V USB Ext Power 10V 30V EDAM 5029 Il 2 O Il Power GND RS232 GND 1e ie DB PUR el RS485 DATA or RS232 TX e e e IO OI RS485 DATA or RS232 RX 4 5 2 Digital input wiring There are two jumpers called JP 5 AND JP6 on the component side of PCB are used to set the input mode of Digital input channels Please remove the front cover and set JP5 JP6 properly before using digital input channels The default Settings are Dry contact input mode EDAM5029 PCB O Component side O Ufo WE gs Go SEE Ufo SE Reset Switch 45 EDAM 5000 User s manual JP6 is used to set input mode of DI channel from DI 0 DI 7 EDAM 5029 Digital Input Dry Contact lt gt EDAM 5029 DI 0 DI 7 _0V 24V Digital Input Wet Contact lt gt JP5 is used to set input mode of DI channel from DI 8 DI 15 EDAM 5029 JP5 12 Switch Input Digital Input Dr
52. 430V PWR USB RJ 45 Ext Power 10V 30V EDAM 5017 10 el Power GND RS232 GND no FEN OI RS485 DATA or RS232 TX IQ OI RS485 DATA or RS232 RX 4 2 2 Analog input wiring Q ext Power RS485 DATA RS485 DATA RS485 DATA RS485 DATA 120 ohms 38 EDAM 5000 User s manual 4 2 3 Digital input wiring Input logic 0 Input logic 0 m OV 3V E Input logic 1 Input logic 1 5V 24V Open 4 2 4 Digital output wiring LOAD 2V 30V 39 EDAM 5000 User s manual 4 3 EDAM 5019 wiring 4 3 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 430V PWR USB RJ 45 EDAM 5019 LINK USB PWR e e e The function of DX DX pins are depended on the Interface switch settings see page 26 4 3 2 Analog input wiring Where Aln and Aln represent Al input channel n 4 3 3 Digital input wiring SO exe rover ex RS485 DATA p RS485 DATA C Si ote ou OI on eu OI omn omn n on el eu OI Sal ome 40 Ext Power 10V 30V ei Power GND RS232 GND eiu RS485 DATA or RS232 TX eli RS485 DATA or RS232 RX EDAM 5000 User s manual M Input logic 0 Input logic 0 OV 3V Input logic 1 Input logic 1 pa a M Open 4 3 4 Digital output wiring LOAD 2V 30V 41 EDAM 5000 User s manual 4 4 EDAM 5028 wiring 4 4 1 Interface connection DC
53. 5000 User s manual Connector Description RJ 45 Ethernet Connector PWR External power connector VCC External power 10 Vdc 30 GND Power Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C Al0 Al0 Analog Input channel 0 AI1 Al1 Analog Input channel 10 AI2 A12 Analog Input channel 2 AI3 Al3 Analog Input channel 3 Al4 Al4 Analog Input channel 4 Al5 Al5 Analog Input channel 5 AI6 AIG Analog Input channel 6 Al7 Al7 Analog Input channel 7 AI8 AI8 Analog Input channel 8 AI9 AI9 Analog Input channel 9 AI10 Al10 Analog Input channel 10 AI11 AI11 Analog Input channel 11 AI12 Al12 Analog Input channel 12 AI13 Al13 Analog Input channel 13 Al14 Al14 Analog Input channel 14 AI15 Al15 Analog Input channel 15 DIO Digital Input channel 0 DI1 Digital Input channel 1 DOO Digital Output channel 0 IGND Isolated Digital GND 23 EDAM 5000 User s manual 3 3 EDAM 5019 Front side connectors EDAM 5019 LINK USB PWR e e e O DIO AIO e e Dit An e e Doo AI2 O AI3 e Al e AIS e AI6 e AI7 e Als O Al9 O Al10 e Al11 Al12 Al13 Al14 0 Al15 e 24 EDAM 5000 User s manual Connector Description RJ 45 Ethernet Connector PWR External power connector VCC External power 10 Vdc 30 GND Po
54. 6 5 Modbus mapping of EDAMSSUZO 5 ars dee 59 6 5 1 Register address unit 16 DIES ea I e acu t epu d ds 59 6 5 2 Bitaddress Unit DID oio ica aie anis da Cad baked ae 60 6 6 Modbus mapping or EDAM 5060 na ee duties 61 6 6 1 Register address unit 16 DIES ri EN ied de Lea 61 EDAM 5000 User s manual 6 6 2 Biraddress uni T DD ee e Aaa 61 Chapter 7 Modbus data conversion u nenne 62 7 1 How to calculate DI counter value nennen 62 7 2 How to convert Modbus data to Al voltage temperature n 63 7 2 1 Engineering Data Format Table 63 7 2 2 Hex 2 s complemenT Data Format Table 64 Chapter 8 Analog and digital I O channel type 65 Cel Di channel YPES xcci emitte a p cai 65 82 Al channel types cec nn ee 66 Chapier 9 TCP IP portassignaments ee ne o 67 Chapter 10 ASCII Commands rera rrr ae ro eui ran ar 68 TOST Analog command S uses ee Eee Eee 68 10 2 Digitalc mmands Ferse 69 10 3 AA Read the analog Inputs of Allan ah a ea e eed 70 10 4 AAn Read the single analog input 71 10 5 AAMH Read Maximum Value Of All Channels 71 10 6 AAMHn Read Maximum Value of Specified Channel 72 10 7 S SAAME Clear Al Maximum Valle rt etre hash nore t a Sete ie e ptu 72 10 8 AAMHn Clear Maximum value Of specified Channel 73 10 9 AAML Read Minimum Value Of All Channels lt nono nonnnonncnnoo 73 10 10 AAMLn Read Minimum Value Of Specified Channel 74 10
55. 8 N 0363 0 15 Analog Input type 0x0007 0x000E R W N 0364 Average average type 0x0007 0x000E R W N 366 N 381 0 15 AD channel cold junction offset in 0 01C R W 55 EDAM 5000 User s manual 6 3 2 Bit address unit 1 bit This discrete address mapping support Modbus function 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F N 10000 for Function 01 0x01 Function 05 0x05 Address dec Channel Item Attribute N 0000 N 0001 0 1 DI status 0X0000 0X0003 R N 0032 N 0033 0 1 DI latch status 0X0000 0X0003 R N 0064 N 0064 0 DO status R W N 0096 N 0097 0 1 Clear DI latch status R W N 0128 N 0129 0 1 Clear DI counter value R W N 0160 N 0161 0 1 Enable disable DI latch interrupt Event R W O disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0224 0 1 Start Stop DO pulse output R W O disable DO pulse output 1 enable DO pulse out until Digital output pulse counts reaches zero see in Register address table X 0256 N 0271 0 15 Enable disable analog channel R W N 0272 N 0287 0 15 Analog input high alarm status R N 0288 N 0303 0 15 Analog input low alarm status R N 0304 N 0319 0 15 Enable disable analog channel in average R W N 0320 X 0335 0 15 Reset analog input maximum value R W N 0336 N 0351 0 15 Reset analog input minimum value R W N 0352 N 0367 0
56. AML cr isa delimiter character AA range 00 3F represents the 2 character hexadecimal address of module ML is the clear minimum value of all channels command cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 01ML cr Response 01 cr Clear Minimum Value Of all Channels 74 EDAM 5000 User s manual 10 42 AAMLn Clear Minimum Value Of specified Channel Description Syntax Response Example 10 13 AAAV Description Syntax Response Example Clear Minimum Value Of specified Channel AAMLn cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module ML is the clear minimum value of all channels command n channel 0 15 cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received 2 delimiter character indicates the command was invalid
57. B JU dex CU ROTA EI 1200 1 Y Une v 1921880101 v dog e ium 9 EN Bi 2200 I 1500 Y inns x com 99 PETS Status Searching Ethegnet Modules Device List Module Address Sgnnection Configuration Description nos 18 Click A D Calibration button D eDAM 5000 Utility 410 2012 05 10 DLL Yer 3 20 r Module Settings AD Settings ID Address RS 232 485 Baud Rate Ipsae Cold Junction Enable IV ET ar Hex 19800 v Disable Wire Open Detect IV Burnout y Filter Rate TCP IP Settings 0 9 4 Za 2 IP Address 192 168 0 11 Pass Word 100000000 a Format Erginerring S SubMask 255 255 255 0 I DHCP W Web Server MODBUS Data Forint Enginerring GateWay 10 0 0 1 MAC Address Fr 9 19 19 19 19 19 Alarm Latch Event IP Settings Digital 1 0 Common Settings P 255 255 255 255 Enable IP1 255 255 255 255 Enable DI Active Level ES I 1P2 255 255 255 255 Enable IP2 255 255 255 255 I Enable Input Close or Low Voltage Active Input Open or High Voltage Active Ip3 255 255 255 255 Enable IP3 255 255 255 255 T Enable ee DO Active Level IP4 255 255 255 255 Enable IP4 255 255 255 255 Enable Output Low Active Stream Time Interval fi 0 Secs Output Open Active Checksum CRC option is only avaliable for RS232 485 Communication ETS i sony Active Stream IP Settings
58. C 100 C to 400 C E000 7FFF Temp Modbus data 400 32767 12 Type E T C 100 C to 1000 C F333 7FFF Temp Modbus data 1000 32767 13 Type R T C 50 C to 1750 C FC57 7FFF Temp Modbus data 1750 32767 14 Type S T C 50 C to 1750 C FC57 7FFF Temp Modbus data 1750 32767 15 Type B T C 00 C to 1800 C 0 TFFF Temp Modbus data 1800 32767 20 IEC Pt100 50C 150C D555 7FFF Temp Modbus data 150 32767 21 IEC Pt100 0C 100C 0 7FFF Temp Modbus data 100 32767 22 IEC Pt100 0C 200C 0 7FFF Temp Modbus data 200 32767 23 IEC Pt100 OC 400C 0 7FFF Temp Modbus data 400 32767 C 24 IEC Pt100 200C 200C 8000 7FFF Temp Modbus data 200 32767 25 JIS Pt100 50C 150C D555 7FFF Temp Modbus data 150 32767 26 JIS Pt100 0C 100C 0 7FFF Temp Modbus data 100 32767 27 JIS Pt100 0C 200C 0 7FFF Temp Modbus data 200 32767 28 JIS Pt100 0C 400C 0 7FFF Temp Modbus data 400 32767 29 JIS Pt100 200C 200C 8000 7FFF Temp Modbus data 200 32767 2A Pt1000 40C 160C E000 7FFF Temp Modbus data 160 32767 2B BALCO500 30C 1206 E000 7FFF Temp Modbus data 120 32767 2C Ni604 80C 1006 9999 7FFF Temp Modbus data 100 32767 2D Ni604 OC 100C 0 1000 Temp Modbus data 100 32767 Example Assume type of channel 2 is 10V and MODBUS data 0x2030 Hex 8240 Dec The voltage of channel 2 is 8240 10 32767 2 514V Example Assum
59. Dh Command 043 cr Response gt 0030 2 cr The command asks the analog input module at address 04h to send its cold junction temperature data The module responds with 0030 2C Read the CJC Enable disable read cold junction compensation enable disable status AAC cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module C read CJC enable disable status command cr is the terminating character carriage return ODh IAAn if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module N n 1 if CJC enabled n 0 if CJC disabled cr is the terminating character carriage return Command 01C cr Response 011 cr CJC for all channels is enabled 81 EDAM 5000 User s manual 10 24 AACn Enable Disable the CJC Description Syntax Response Examples enable disable cold junction compensation AACn cr sa delimiter character AA range 00 3F represents the 2 character hexadecimal address of module C sthe enable disable CJC command N 0disable CJC n 1 enable CJC cr sthe terminating character carriage return ODh IAA if the command is valid or AA cr if the command is invalid There is no response if the module dete
60. E Read Channel Average Enable Disable Status 10 14 AAEnnnn Disable Enable Channel in Average 10 15 AAAL Read AD high low Alarm Status 10 16 AAAHnnnn Clear A D High Alarm 10 17 AAALnnnn Clear A D Low Alarm 10 18 AAB Reads Channel burnout Status 10 19 AAB Read channel burnout enable disable status 10 20 AABn enable disable channel burnout 10 21 AA3 Reads the CJC Temperature 10 22 AAC Reads the CJC Enable disable 10 23 AACn Enables Disables the CJC 10 24 AA9Snnnn Sets the all channel CJC Offset 10 25 AA9c Read single channel CJC Offset 10 26 AA9cSnnnn Set single channel CJC Offset 10 27 AAR Read A D Filter Value 10 28 AARf Set A D Filter Value 10 29 AA6 Reads the Channel Enable Disable Status 10 30 AA5vvvv Enables Disables A D Channel 10 31 AASCI Reads the Single A D Channel Range 10 32 AA7CiRrr Sets the Single Channel Range 10 33 AAS1 Reloads the Default Calibration 10 34 68 EDAM 5000 User s manual 10 2 Digital commands AA Reads the Digital I O Status 10 35 AAnn Sets the Digital Output Channels 10 36 AAnnnn Sets the Digital Output Channels 10 37 AAnnnnnn Sets the Digital Output Channels 10 38 AAOAnn Sets the Digital 1 s byte DOO DO7 Output 10 39 AAOBnn Sets the Digital 2 s byte DO8 DO15 Output 10 40 AAOCnn Sets the Digital 3 s byte DO16 DO23 Output 10 41 AAnn Reads the Digital Input Counter 10 42 AACn Clears the Digi
61. E5K_SetDIChannelConfig int id unsigned int chn DI CHANNEL CONFIG config Parameters ld the target module id Chn DI channel number Config points to a structure buffer where stores the DI configuration parameters see ESKDAQ H Return Code refer to the Error code 140 EDAM 5000 User s manual 11 74 E5K ReadDIChannelConfig Description Read DI channel configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDIChannelConfig Lib ESKDAQ dIl _ ByVal id As Integer ByVal chn As Integer config e As DI CHANNEL CONFIG As Integer VC BC Builder see ESKDAQ h unsigned short E5K ReadDIChannelConfig int id unsigned int chn DI CHANNEL CONFIG confige Parameters Id the target module id Chn DI channel number config points to a structure buffer to store the DI configuration parameters see ESKDAQ H Return Code refer to the Error code 11 75 E5K_ReadDiStatus Description Read digital input status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDIStatus Lib E5KDAQ dIl _ ByVal id As Integer ByRef Didata As Long As Integer VC see ESKDAQ h unsigned short E5K_ReadDIStatus int id unsigned long Didata Parameters id module ID address Didata points to a 32 bit buffer to store DI status Return Code refer to the Error code 141 EDAM 5000 User s manual 11 76 E5K ReadDiLatch Description R
62. EDAM 5000 User s manual EDAM 5000 Series USB Ethernet RS232 485 Remote Module User s manual Web Site www inlog com tw Trademark The names used in this manual for indentification only maybe registered trademarks of their respective companies Rev 1 8 Jun 25 2012 EDAM 5000 User s manual Table of Contents Chapter 1 Major Features iii dada 9 1 1 Multi Interface DA amp C I O MOdUles ss 9 1 2 Intelligent lO Modes still See 9 1 3 Mixed I O in One Module to fit all applicatioNS nenn 9 1 4 Modbus TCP and RTU protocol supported for open connectivity 9 tS Software Supportato a eA Ta iE 9 1 6 Common technical specification of EDAM 5000 nono nonnnnnnnn noo 10 lf Dimensions as 10444 eisen 11 1 8 System REQUIEM Si Re SEE 13 19 Oqmodules MN a ci RR 13 Chapter 2 Specific ON Sii E ad 14 2 1 EDAM 501 5 SD CIICAIONS iaa 14 De VEBAM 5017 speeifiealons sun A ae gia rca 15 2 3 EDAM 5019 SP CIICAONS ss 16 2 44 EDAM 5028 SpecifiCatiORis ant eap 46444 4 o 17 2 5 TEDAMESU2Z9 SCA MON Se 18 26 EDAM 5060 specifications a 19 Chapter 3 Connector pin assignment uusssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 20 3 1 EDAM 5015 Front sidesconneclofs au unse 20 3 2 EDAM 5017 Front side connecl rs susana anni iii alla 22 3 3 EDAM 5019
63. FO to callback function 153 EDAM 5000 User s manual Chapter 14 E5KDAQ ActiveX control 14 1 Properties of ESKDSAQ ActiveX control Name Type Description Model s AlChannellndex Short Specifies the analog input channel to perform other Al 5015 5017 5019 properties read write operation AlNormalValue Double Normal voltage of specifies the analog channel 5015 5017 5019 AlMaximumValue Double Maximal voltage of specifies the analog channel 5015 5017 5019 AlMinimumValue Double Minimal voltage of specifies the analog channel 5015 5017 59019 AlLowAlarmStatus Long Return the low alarm status of specifies the analog channel 5015 5017 5019 1 Alarm occurred 0 No alarm AlHighAlarmStatus Long Return the high alarm status of specifies the analog channel 5015 5017 5019 1 Alarm occurred 0 No alarm AlBurnOutStatus Long Return the Burnout status of specifies the analog channel 5015 5019 1 open O normal AlChannelEnable Long Enable disable Al channels 5015 5017 5019 AlChannels Long Return the total Al channels of model AOChannellndex Short Specifies the analog output channel to perform other Reserved properties read write operation AOChannels Long Return the total AO channels of model AOValue Double Set the analog output voltage All models AlColdJunction Double Return the cold junction temperature reserved AlarmEventADValue Double Return the alarm AD value 5015 50
64. I3 RLY4 DI4 RLY5 DIS RLY6 DIG RLY7 DI7 RLY8 DI8 RLY9 DI9 DI10 DI11 DI12 30 EDAM 5000 User s manual Connector Description USB USB connector RJ 45 Ethernet Connector PWR External power adapterr VCC External power 10 lt Vdc lt 30 GND Power Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C DIO Digital output channel 0 DI1 Digital output channel 1 DI2 Digital output channel 2 DI3 Digital output channel 3 DI4 Digital output channel 4 DIS Digital output channel 5 DIG Digital output channel 6 DI7 Digital output channel 7 DI8 Digital output channel 8 DI9 Digital output channel 9 DI10 Digital output channel 10 DI11 Digital output channel 11 IGND Common GND for digital input IGND Common GND for digital input IGND Common GND for digital input IGND Common GND for digital input RLYO Relay output channel 0 normal open COMO Common 0 RLY1 Relay output channel 1 normal open COM1 Common 1 RLY2 Relay output channel 2 normal open COM2 Common 2 RLY3 Relay output channel 3 normal open COM3 Common 3 RLY4 Relay output channel 4 normal open COM4 Common 4 RLY5 Relay output channel 5 normal open COM5 Common 5 RLY6 Relay output channel 6 normal open COM6 Common 6 RLY7 Relay output channel 7 normal open COM7 Common 7 RLY8 Relay outpu
65. Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K ReadAlChannelType int id unsigned int AlChannel unsigned int AIType Parameters Id target module ID AlChannel channel number AlType buffer pointer to store the Channel Type See sec 8 2 Return Code refer to the Error code 125 EDAM 5000 User s manual 11 46 E5K SetAlChannelType Description Set analog channel type Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetAlChannelType Lib ESKDAQ dIl _ ByVal id As Integer ByVal AlChannel As Integer ByVal AIType As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlChannelType int id unsigned int AlChannel unsigned int Altype Parameters Id target module ID AlChannel channel number AlType buffer pointer to store the Channel Type See sec 8 2 Return Code refer to the Error code 11 47 E5K SetSingleChannelColdJunctionOffset Description Set cold junction offset of single analog channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetSingleChannelColdJunctionOffset Lib E5KDAQ dll _ ByVal id As Integer ByVal chno As Integer ByVal CjOffset As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetSingleChannelColdJunctionOffset int id unsigned int chno double CjOffset Parameters ld the target module id Chno channel number CjOffset channel CJC offset value
66. K ChangePassWord Lib E5KDAQ dll _ ByVal id As Integer _ ByVal OldPassword As String _ ByVal Oldlength As Integer _ ByVal NewPassword As String _ ByVal Newlength As Integer As Integer VC see ESKDAQ h unsigned short E5K ChangePassWord int id unsigned char oldPassWord unsigned int oldlength unsigned char newPassWord unsigned int newlength Parameters id module ID address oldPassWord points to password string buffer oldlength old password length newPassWord points to new password newlength new password length Return Code 11 12 E5K GetLastErrorCode Description Get E5KDAQ dll last error code Syntax Visual Basic VB Net see ESKDAQ bas ESKDAQ vb Declare public Function EBK GetLastErrorCode Lib E5KDAQ dil As Integer VC see ESKDAQ h unsigned short E5K_GetLastErrorCode void Parameters none no parameters Return Code 107 EDAM 5000 User s manual 11 13 E5K SetRXTimeOutOption Description Set receive total timeout and interval timeout of COM port and TCP IP Syntax Visual Basic VB Net see ESKDAQ bas ESKDAQ vb Declare public Function EBK SetRXTimeOutOption Lib EBKDAQ dll _ ByVal RxTotalTimeout As Long ByVal RxChrTimeOutInterval As Long As Integer VC see ESKDAQ h unsigned short E5K_SetRXTimeOutOption long RxTotalTimeout long RxChrTimeOutinterval Parameters RxTotalTimeout receive total timeout msec length receive character interval timeout msec R
67. Return Code refer to the Error code 112 EDAM 5000 User s manual 11 24 E5K_WriteModbusDiscrete Description Write data to Modbus discrete Modbus coil Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK WriteModbusDiscrete Lib ESKDAQ dIl _ ByVal id As Integer ByVal startaddr As Integer ByVal counts As Integer Discrete As Byte As Integer VC see ESKDAQ h unsigned short E5K_WriteModbusDiscrete int id unsigned int startaddr unsigned int counts unsigned char Discrete Parameters id module ID address startaddr start address in Modbus coil 0000 FFFF counts how many bit be written Discrete data buffer be written Discrete n 0 or 1 for Modbus coil address startaddr n 0 lt n lt counts Return Code refer to the Error code 113 EDAM 5000 User s manual 11 25 E5K_WriteModbusRegister Description Write data to Modbus Holding registers Syntax Visual Basic VB Net see ESKDAQ bas ESKDAQ vb Declare public Function EBK WriteModbusRegister Lib ES5KDAQ dII _ ByVal id As Integer ByVal startaddr As Integer ByVal counts As Integer regs As Integer As Integer VC see ESKDAQ h unsigned short EBK WriteModbusRegister int id unsigned int startaddr unsigned int counts Sunsigned int regs Parameters id module ID address startaddr start address in Modbus Holding register 0000 FFFF counts how many register be written regs data buffer
68. SB Lib E5KDAQ dll ByVal Id As integer As Integer VC see ESKDAQ h Int E5K_StopAlarmEventUSB int Id Parameters Id Alarm event source Id Return Code refer to the Error code 11 18 E5K ReadAlarmEventData Description Read alarm event information from device Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadAlarmEventData Lib E5KDAQ dil Intinfo As ALARM EVENT INF As Integer VC see ESKDAQ h Int E5K_ReadAlarmEventData struct ALARM_EVENT_INF Intinfo Parameters Intinfo Points to an Alarm event structure ALARM EVENT INF Return Code Refer to the Error code 11 19 E5K StartStreamEvent Description Start to receive stream data from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK StartStreamEvent Lib E5KDAQ dll ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K_StartStreamEventIP char IPaddress Parameters IPaddress Stream data event source IP address Return Code refer to the Error code 110 EDAM 5000 User s manual 11 20 E5K_StopStreamEvent Description Stop to receive stream data from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK StopStreamEvent Lib ESKDAQ dIl ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K StoptStreamEventlP char IPaddress Parameters IPaddress Stream data event source IP address Retu
69. User s manual 11 30 E5K_SendASCIl Description Send an ASCII string to the module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SendASCII Lib ESKDAQ dII _ ByVal id As Integer ByVal Txstring As String as integer VC see ESKDAQ h unsigned short E5SK SendASCII int id char Txbuffer Parameters id module ID address Txstring points ASCII string buffer Return Code refer to the Error code 117 EDAM 5000 User s manual 11 31 E5K SendHEXRequestAndWaitResponse Description Send binary data to and wait for response from module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SendHEXRequestAndWaitResponse Lib EBKDAQ dll _ ByVal id As Integer _ ByRef Txdata As Byte ByVal Rxlen As Integer _ ByRef Rxdata As Byte _ ByRef Rxlen As Integer _ ByVal RxBufsize As Integer As Integer VC see ESKDAQ h unsigned short E5K SendHEXRequestAndWaitResponse int id unsigned char cTxData unsigned int wTxlen unsigned char cRxdata unsigned int wRxlen unsigned int buffersize Parameters id module ID address cTxData points to binary data buffer wTxlen how many bytes be sent cRxdata points response buffer wRxlen point to buffer to store the number of byte received buffersize size of response buffer Return Code refer to the Error code 118 EDAM 5000 User s manual 11 32 E5K SendHEX Desc
70. VC see ESKDAQ h unsigned short E5K FlashLED int id unsigned long LedMask unsigned int FlashCounts Parameters id module ID address LedMask LED channel mask bit n 0 No Flash LED n bit n 1 Flash LED n FlashCounts Flash counts Return Code refer to the Error code 121 EDAM 5000 User s manual 11 38 E5K IsValidlPAddress Description Check the validity of the specified IP address Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_IsValidlPAddress Lib E5KDAQ dll _ ByVal zIP As String As Integer VC see ESKDAQ h unsigned short E5K IsValidlPAddress char zIP Parameters id module ID address zIP IP address string such as 192 168 0 21 Return Code refer to the Error code 11 39 E5K GetLocallP Description Get host IP address Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_GetLocallP Lib ESKDAQ dIl _ ipO as byte _ ip1 as byte _ ip2 as byte _ ip3 as byte _ Jas integer VC BC Builder see ESKDAQ h unsigned short E5K GetLocallP char ipO char ip1 char ip2 char ip3 Parameters IpO first IP address byte for an EDAM 5000 that to be connected Ip1 second IP address byte for an EDAM 5000 that to be connected Ip2 third IP address byte for an EDAM 5000 that to be connected Ip3 forth IP address byte for an EDAM 5000 that to be connected Return Code refer to the Error code 122 EDAM 5
71. Val id As Integer ByVal startch As Integer ByVal counts As Integer ByRef Altemp As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAIMinimunMultiChannel int id unsigned int startch unsigned int count double Altemp Parameters Id the target module id Startch start channel number counts channels Altemp points to a array to store Al minimum values Altemp 0 minimum value of channel startch Altemp 1 minimum value of channel startch 1 Altemp 2 minimum value of channel startch 2 Return Code refer to the Error code 11 67 E5K ResetAlMaximum Description Reset analog channel maximum value Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ResetAlMaximum Lib E5KDAQ dil _ ByVal id As Integer ByVal restopt As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ResetAlMaximum int id unsigned int resetopt Parameters Id the target module ID Restopt rest mask option bit n 0 no reset maximum value of channel n bit n 1 reset maximum value of channel n Return Code refer to the Error code 137 EDAM 5000 User s manual 11 68 E5K ResetAlMinimum Description Reset analog channel minimum value Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ResetAlMinimum Lib ESKDAQ dIl _ ByVal id As Integer ByVal resetopts As Long As Integer VC BC Builder see ESKDAQ h unsigned sho
72. address to 3FH A0 A1 A2 A3 A4 A5 to ON position Address Interface D M 2 2 M SL CEP oe Figure 15 1 Where AO bit O of ID address A1 bit 1 of ID address A2 bit 2 of ID address A3 bit 3 of ID address A4 bit 4 of ID address A5 bit 5 of ID address 2 Connect EDAM module to USB hub 103 9 mm Figure 15 2 156 EDAM 5000 User s manual 3 Executes provided EDAM 5000 utility called E5KUtility exe see Figure 15 3 eDAM 5000 Utility Y2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Communication Inteface JU fazio padri Status Search Completed Device List Figure 15 3 4 Click Firmware Update in the menu bar see Figure 15 4 I eDAM 5000 Utility 2 10 2011 37 07 DLL Yer 1 6 Exit Search Terminal Firmware Update B Help Communication Int WIE Eril 9 uo Figure 15 4 157 EDAM 5000 User s manual 5 Click Load File button to load firmware file see Figure 15 5 eDAM 5000 Utility Y2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name Target ID Target Name Download Reboot Cancel Figure 15 5 6 Select the firmware file your are going to update see Figure 15 6 230 O Bin v eee i E5015BIOS_HTTP_M21 bin E E5015BIOS_M21 bin AAA el ESOITBIOS HTTP M21 bin 3 E ESO17BIOS_M21 bin E ESO19BIOS_HTTP_M21 bin
73. adecimal address of an analog input module ML Read all channel minimum value command cr is the terminating character carriage return ODh gt AA data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error AA range 00 FF represents the 2 character hexadecimal address of the analog input module gt is a delimiter character data is the minimum value of all channels in the configured data format of the module cr is the terminating character carriage return ODh Command 21ML cr Response 21 7 2111 7 2567 7 3125 7 1000 7 4712 7 2555 7 1234 7 5678 7 2111 7 256 7 7 3125 7 1000 7 4712 7 2555 7 1234 7 5678 cr The command response the analog input module at address 21h for its minimum values of all channels The analog input module responds its minimum values with channels from 0 to 15 with 7 2111 volts 7 2567 volts 7 3125 volts 7 1000 volts 7 4712 volts 7 2555 volts 7 1234 volts 7 5678 volts 7 2111 volts 7 2567 volts 7 3125 volts 7 1000 volts 7 4712 volts 7 2555 volts 7 1234 volts and 7 5678 volts Command 01 ML cr Response 01FF5DE4323212AE3323345663E000FF03 F5DE4323212AE3323345663E000FF03 cr The analog input module at address01 has minimum values of FF5DE4323212AE3323345663E000FF03FF5DE4323212AE3323345663E000FF03 The configured data format of the analog input module is two s complement 73 EDAM
74. alog input maximum value R W N 0336 N 0351 0 15 Reset analog input minimum value R W N 0352 N 0367 0 15 Clear analog input high alarm status RW N 0368 N 0383 0 15 Clear analog input low alarm status R W N 0384 N 0399 0 15 Read AD burnout status R N 0404 Enable disable burnout detection 0 disable 1 enable R W N 0407 Enable disable DHCP 0 disable 1 enable R W N 0408 Enable disable Web Server 0 disnable 1 enable R W N 0409 Enable disable CRC Checksum 0 disable 1 enable R W Note In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 52 EDAM 5000 User s manual 6 2 Modbus mapping of EDAM 5017 6 2 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10 Address dec Channel Item Attribute N 0000 N 0000 0 1 Digital input data 0x0000 0x0003 R N 0002 N 0002 0 Digital input latch status 0x0000 0x0003 R W N 0004 N 0007 0 1 Digital input counter value 2 words channel R see sec 7 1 N 0068 N 0068 0 15 Digital output status DO0 DO15 R W 0x0000 0x0001 N 0069 N 0069 16 31 Digital output status DO16 DO31 R W 0x0000 0x0001 N 0080 N 0081 0 1 Digital input mode R W N 0112 N 0113
75. ata points to binary data buffer wLen size of data wCRC points to buffer to store CRC16 value Return Code refer to the Error code 11 35 E5K SetLEDControl Description Set on board control mode controlled by Module or by user AP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetLEDControl Lib EBKDAQ dll _ ByVal id As Integer ByVal ControlOption As Integer As Integer VC see ESKDAQ h unsigned short E5K SetLEDControl int id char ControlOption Parameters id module ID address ControlOption on board LED control mode 0 controlled by module 1 controlled by user AP Return Code refer to the Error code 120 EDAM 5000 User s manual 11 36 E5K_WriteDataToLED Description Write data to on board LED Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_WriteDataToLED Lib E5KDAQ dll _ ByVal id As Integer ByVal LedData As Integer VC see ESKDAQ h unsigned short E5K WriteDataToLED int id unsigned long LedData Parameters id module ID address LedData Data to be written to on board LED bit n 0 LED n off bit n 1 LED Zn on Return Code refer to the Error code 11 37 E5K FlashLED Description Force on board LED to flash Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK FlashLED Lib EBKDAQ dll _ ByVal id As Integer ByVal LedMask As Integer FlashCount As Long As Integer
76. ax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 FF represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 0058100 cr Response 00 cr Hexadecimal 8100 equals binary 1000 0001 0000 0000 which enables channel 8 15 and disables channels 0 1 2 3 4 5 6 7 and 9 10 11 12 13 and 14 Read the Single A D Channel Range The command read individual channel type AA8Ci cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module 8C isthe read channel type command i channel number cr isthe terminating character carriage return ODh AACiRrr cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module channel number 0 F rr type of channel i cr is the terminating character carriage return Command 018C3 cr Response 01C3R08 cr The type code of channel 3 is 08 10V 86 EDAM 5000 User s manual 10 33 AA7CiRrr Set the Single Channel Range Description The command set channel type individually Syntax AA7CiRrr cr isa delimiter charact
77. ccuracy 0 15 or better Zero drift 20 uV C Span drift 25 ppm C Digital Input Input Channel 2 channels Input Type Voltage logic O for O lt Vin lt 3Vdc logic 1 for 5V lt Vin lt 24Vdc or Switch On Off Isolation voltage 2000 VDC Digital Output Output Channel 1 channels Output Type Open Collect to 30Vdc 3A max solation voltage 2000 VDC Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max 16 EDAM 5000 User s manual 2 4 EDAM 5028 specifications The EDAM 5028 is a 8 channels MOSEFT output and 24 channels input module that provides programmable I O ranges on all channels It accepts Various Digital inputs MOSFET outputs and provides data to the host computer Digital Input Channels 24 channels Input type Voltage logic O for 3Vdc maximum logic 1 for 5Vdc minimums or Switch On Off Isolation voltage 2000 V Digital Output Output Channel 8 channels Output Type Source Output up to 30Vdc 3A max Isolation voltage 2000 V Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max 17 EDAM 5000 User s manual 2 5 EDAM 5029 specifications The EDAM 5029 is a 16 channels MOSEFT output and 16 channels digital input module that provides programmable I O ranges on all channels It accepts Variou
78. cts a syntax error or communication error s a delimiter character indicating a valid command was received AA range 00 FF represents the 2 character hexadecimal address of module cr sthe terminating character carriage return Command 01C1 cr Response 01 cr nable cold junction compensation 10 25 AA9snnnn Set the all channel CJC Offset Description Syntax Response Examples set all channels to have the same cold junction offset AA9snnnn cr isa delimiter character AA range 00 3F represents the 2 character hexadecimal address of module 9 is the set cold junction offset command S sign of cold junction offset nnnn cold junction offset Hex in 0 01C unit cr is the terminating character carriage return ODh IAA ifthe command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return Command 019 0010 cr Response 01 cr Set all channels to have the same cold junction offset to 0010 Hex 0 01 0 16C 82 EDAM 5000 User s manual 10 26 AA9c Read single channel CJC Offset Description Syntax Response Examples Examples read cold junction offset of specified channel AA9c cr is a delimiter character AA
79. d 0000000 DHCP M Web Server MAC Address 20 00 00 03 00 32 Active Stream IP Settings 1 255 255 255 255 Enable 1P2 255 255 255 255 Enable 1P3 255 255 255 255 Enable 1P4 255 255255 255 I Enable Stream Time Interval 110 Secs Alarm Latch Event IP Settings IP1 255 255 255 255 I Enable IP2 265 255 255 255 I Enable IP3 255 255 255 255 I Enable IP4 255 255 255 255 Enable Checksum CRC option is only avaliable for RS232 485 Communication Analog Iput Common Settings Filter Rate 60Hz ET ata Format Enginerring y Enginerring Digital 1 0 Common Settings DI Active Level Input Close or Low Voltage Active Input Open or High Voltage Active DO Active Level 1 Output Low Active C Output Open Active Status Polling USB ID Address 2F 166 EDAM 5000 User s manual 6 Apply OV to channel 0 81045 AIO as shown in Figure 17 1 7 Apply proper volatage depend on the type been calibrated to channel 1 Al1 Al1 as shown in Figure 17 2 PWR USB EDAM 5017 LINK USB PWR e e DIO AIO e Di AM e Do0 AI2 AIB Al4 AI5 AIG AI7 AIB Al9 44100 AI11 AI12 AI13 AM4e AM5e Apply Voltage Figure 17 2 8 Click Start button to calibrate Zero offset first EDAM5017 A D Calibration Status Idle 167 EDAM 5000 User s manual 9 Click Span Calibration tab and Selec
80. d unsigned int dochn Parameters id module ID address dochn DO channel number 0 31 Return Code refer to the Error code 11 87 E5K ReadDOPulseCount Description Read pulse count value The pulse count value will start decreasing after calling E5K_StartDOPulse Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDOPulseCount Lib E5BKDAQ dll _ ByVal id As Integer ByVal dochn As Integer counts As Long As Integer VC see ESKDAQ h unsigned short E5K ReadDOPulseCount int id unsigned int dochn unsigned int counts Parameters id module ID address dochn DO channel number 0 31 counts point to 16 bit buffer to store pulse counter value Return Code refer to the Error code 147 EDAM 5000 User s manual 11 88 E5K SetDOPowerOnValue Description Set DO power on value Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetDOPowerOnValue Lib ESKDAQ dIl _ ByVal id As Integer ByVal poweronvalue As Long As Integer VC see ESKDAQ h unsigned short E5K_SetDOPowerOnValue int id unsigned long poweronvalue Parameters id module ID address poweronvalue 32 bit DO power on value Return Code refer to the Error code 11 89 E5K ReadDOPowerOnValue Description Read DO power on value Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDOPowerOnValue Lib E5KDAQ dll _ ByVal id As Integer
81. decimal value representing the values of the digital input channels data2 an 8 characters hexadecimal value representing the values of the digital output channels cr is the terminating character carriage return ODh Read the values of all DI DO channels command 016 cr Response 010000000F000000FD cr The 4 11 characters 0000000F indicate DI 0 3 channels are active and DI 04 31 channels are inactive The 12 19 characters 000000FD indicate DO 0 2 3 4 5 6 7 channels are active and 1 4 8 31 channels are inactive 85 EDAM 5000 User s manual 10 31 AA5vvvv Enable Disable A D Channels Description Syntax Response Example 10 32 AA8Ci Description Syntax Response Examples Enables disables multiplexing simultaneously for separate channels of a specified input module AA5vvvv cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module 5 is the Enable disable Channels command VVVV are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents the status of channel 4 7 and the second word represents the status of channel 0 3 etc Value 0 means the channel is disabled value 1 means the channel is enabled cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a synt
82. e E is Read A D channel in average status command cr is the terminating character carriage return ODh AAnnnn cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module nnnn are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents channel 12 15 and the second word represents channel 8 11 etc bit x 1 channel x is in average bit x 0 channel isn t in average cr is the terminating character carriage return Command 01 E cr Response 011020 cr Channel 5 and channel 15 are in average only 10 15 AAEnnnn Disable Enable Channel in Average Description Syntax Response Example Enables disables channels to be in average mode AAEvvvv cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module E is the Enable disable channels to be in average command VVVV are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents the status of channel 12 15 and the second word represents the status of channel 8 11 etc Value 0 means enable channel to be in average value 1 means disable channel to be not in average
83. e Counts of Single DO channel Syntax Response Example AA2nncccc cr is a delimiter character AA represents the 2 character hexadecimal module address 2 is set DO pulse counts command nn is DO channel number cccc represents DO pulse output counts cr is the terminating character carriage return ODh AA cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cr is the terminating character carriage return ODh Set DO pulse output counts 32 of DO channels 5 command 012050020 cr Response 01 cr 96 EDAM 5000 User s manual 10 53 AA3nns Start Stop DO Pulse Counts Description Start stop DO pulse output of single DO channel Syntax AA3nns cr is a delimiter character AA represents the 2 character hexadecimal module address 3 is Start stop DO pulse command nn is DO channel number S s 0 represents stop pulse output s 1 represents start pulse output cr is the terminating character carriage return ODh Response AA cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cr is the terminating character carriage
84. e terminating character carriage return ODh gt AA data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error AA range 00 FF represents the 2 character hexadecimal address of the analog input module gt is a delimiter character data is the Maximum value of the specified channels cr is the terminating character carriage return ODh Command 21MH2 cr Response 21 7 2111 cr The command response the analog input module at address 21h for its maximum values of the channels 2 with 7 2111 volts Command 01MH2 cr Response 01FF5D cr The command response the analog input module at address 21h for its maximum values of the channels 2 with FF5D The configured data format of the analog input module is two s complement 10 7 AAMH Clear All Maximum Value Description Syntax Response Example clear maximum Value Of all channels AAMH cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module MH is the clear maximum value of specified channel command cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was i
85. e type of channel 1 is 500mV and MODBUS data 0xEF1B Hex 4325 Dec The voltage of channel 2 is 4235 500 32767 64 622mV Example Assume type of channel 1 is 0 20mA and MODBUS data 0x3B84 Hex 15236 Dec The current of channel 2 is 15236 20 32767 9 299mA Example Assume type of channel 2 is Type K T C 100 C to 1370 C and Modbus data 0x2030 Hex 8240 Dec The temperature of channel 2 is 8240 1370 32767 344 51 C Example Assume type of channel 1 is IEC Pt100 200C 200C and Modbus data 0xC001 Hex 16383 Dec The TEMPERATURE of channel 2 is 16383 200 32767 99 996 C 64 EDAM 5000 User s manual Chapter 8 Analog and digital 1 0 channel type 8 1 DI channel types Code Type Models 00 DI transparent 5017 5019 5028 5029 5060 01 Counter 5017 5019 5028 5029 5060 02 low to high latch 5017 5019 5028 5029 5060 03 high to low latch 5017 5019 5028 5029 5060 04 Frequency 5017 5019 5028 5029 5060 65 EDAM 5000 User s manual 8 2 Al channel types Code Type and Range Models 0x09 2 5V 5017 5019 0x0A 1V 5017 5019 0x0B 500mV 5017 5019 0x0C 150mV 5017 5019 0 01 0 2011 125 ohms 5017 5019 _ 5017 5019 Ox0E 4 20mA 125 ohms 0x20 RTD IEC Pt100 50C 150C 5015 0x21 RTD IEC Pt100 OC 100C 5015 0x22 RTD IEC Pt100 OC 200C
86. ead points data buffer Discrete n 0 or 1 of Modbus coil or discrete input address startaddr n 0 lt n lt counts 115 EDAM 5000 User s manual 11 28 E5K SendASCRequestAndWaitResponse Description Send an ASCII string to and wait for response from module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SendASCRequestAndWaitResponse Lib E5KDAQ dil _ ByVal id As Integer ByVal asccmd As String ByVal response As String ByVal rxbuffersize As Integer As Integer VC see ESKDAQ h unsigned short E5K_SendASCRequestAndWaitResponse int id unsigned char asccmq unsigned char response unsigned int rxbuffersize Parameters id module ID address asccmd points to ASCII string buffer response points response buffer rxbuffersize size of response buffer Return Code refer to the Error code 11 29 E5K_RecvASCIl Description Receive an ASCII string from the module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_RecvASCII Lib ESKDAQ dll _ ByVal id As Integer _ ByVal Rxbuffer As String _ ByVal bufferSize As integer as integer VC see ESKDAQ h unsigned short E5K_RecvASCII int id char Rxbuffer unsigned int BufferSize Parameters id module ID address asccmd points to ASCII string buffer Rxbuffer points receive buffer Buffersize size of revive buffer Return Code refer to the Error code 116 EDAM 5000
87. ead digital input latch status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDILatch Lib ESKDAQ dIl _ ByVal id As Integer ByRef Dilatch As Long As Integer VC see ESKDAQ h unsigned short E5K_ReadDILatch int id unsigned long Dilatch Parameters id module ID address Dilatch points to a 32 bit buffer to store DI latch status Return Code refer to the Error code 11 77 E5K_ClearAllDiLatch Description Clear all digital input latch status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ClearAllDlLatch Lib ESKDAQ dIl _ ByVal id As Integer As Integer VC see ESKDAQ h unsigned short E5K ClearAllDILatch int id Parameters id module ID address Return Code refer to the Error code 142 EDAM 5000 User s manual 11 78 E5K_ClearSingleDiCounter Description Clear counter of single digital input channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ClearSingleDICounter Lib ESKDAQ dIl _ ByVal id As Integer ByVal chan As Integer As Integer VC see ESKDAQ h unsigned short E5K ClearSingleDICounter int id unsigned int chan Parameters id module ID address chan channel no Return Code refer to the Error code 11 79 E5K ReadMultiDICounter Description Clear counter of single digital input channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Fu
88. el Syntax Visual Basic VB Net see ESKDAQ bas ESKDAQ vb Declare public Function E5K_ReadDOPulseWidth Lib ESKDAQ dll _ ByVal id As Integer ByVal dochn As Integer ByRef highwidth As Long ByRef Lowwidth As Long As Integer VC see ESKDAQ h unsigned short E5K ReadDOPulseWidth int id unsigned int dochn unsigned int highwidth unsigned int Lowwidth Parameters id module ID address dochn DO channel number 0 31 highwidth points to 16 bit buffer to store pulse high width in 0 5msec unit lowwidth points to 16 bit buffer to store pulse low width in 0 5msec unit Return Code refer to the Error code 11 85 E5K StartDOPulse Description Start DO pulse output Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_StartDOPulse Lib ESKDAQ dII _ ByVal id As Integer ByVal dochn As Integer ByVal pulses As Long As Integer VC see ESKDAQ h unsigned short E5K_StartDOPulse int id unsigned int Dochn unsigned int pulses Parameters id module ID address dochn DO channel number 0 31 pulses how many pulses Return Code refer to the Error code 146 EDAM 5000 User s manual 11 86 E5K StopDOPulse Description Stop DO pulse output Syntax Visual Basic VB Net see ESKDAQ bas E5SKDAQ vb Declare public Function E5K_StopDOPulse Lib E5KDAQ dll _ ByVal id As Integer ByVal dochn As Integer As Integer VC see ESKDAQ h unsigned short E5K StopDOPulse int i
89. er AA range 00 FF represents the 2 character hexadecimal address of module 7C the Set channel type command i channel number rr channel type code cr isthe terminating character carriage return ODh Response IAA if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 FF represents the 2 character hexadecimal address of module cr is the terminating character carriage return Examples Command 017C3R08 cr Response 01 cr Set type code 08 10V to channel 3 10 34 AAS1 Reload the Default configuration Description Reloads the Default configuration Syntax AAS1 cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module is the Reloads the Default configuration command cr is the terminating character carriage return ODh Response AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return 0Dh Example Command 0181 cr Response 01 cr Reloads the Defau
90. esponse 01 cr Clear low alarm status of channel 0 and 4 78 EDAM 5000 User s manual 10 19 SAAB Description Syntax Response Examples Read Channel Burnout Status Read channel burn out status AAB cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module B is the Channel Diagnose command cr is the terminating character carriage return ODh AAnnnn cr if the command is valid AA cr if an invalid command was issued There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of the module Nnnn range 0000 FFFF is a hexadecimal number that equals the 16 bit parameter representing the status of analog input channels Bit value 0 means normal status and bit value 1 means channel open wiring cr is the terminating character carriage return ODh Command 01 B cr Response 010101 cr Channel 0 8 are open wiring and channel 1 7 and 9 15 are all normal 79 EDAM 5000 User s manual 10 20 AAB Description Syntax Response Example Example 10 21 AABn Description Syntax Response Example Example Read Channel Burnout Enable Disable Status Read channel burnout detection enables disables status of a specified input module
91. eturn Code refer to the Error code 11 14 E5K StartAlarmEventlP Description Start alarm event from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_StartAlarmEventIP Lib ESKDAQ dll ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K StartAlarmEventlP char IPaddress Parameters IPaddress Alarm event source IP address Return Code refer to the Error code 108 EDAM 5000 User s manual 11 15 E5K StopAlarmEventlP Description Stop alarm event from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK StopAlarmEventlP Lib E5KDAQ dll ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K StopAlarmEventIP char IPaddress Parameters IPaddress Alarm event source IP address Return Code refer to the Error code 11 16 E5K StartAlarmEventUSB Description Start alarm event from USB connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK StartAlarmEventUSB Lib E5KDAQ dIl ByVal Id As integer As Integer VC see ESKDAQ h Int E5K_StartAlarmEventUSB int Id Parameters Id Alarm event source Id Return Code refer to the Error code 109 EDAM 5000 User s manual 11 17 E5K StopAlarmEventUSB Description Stop alarm event from USB connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK StopAlarmEventU
92. eturn Code refer to the Error code 11 55 E5K SetAlChannelConfig Description Set analog channel configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetAlChannelConfig Lib ESKDAQ dIl _ ByVal id As Integer ByVal chno As Integer mConfig As Al CHANNEL CONFIG As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAIChannelConfig int id unsigned int ch Al CHANNEL_CONFIG mConfig Parameters Id the target module id chno channel number mConfig points to a structure where stores the channel configuration see ESKDAQ H about structure CHANNEL CONFIG Return Code refer to the Error code 130 EDAM 5000 User s manual 11 56 E5K_ReadAlBurnOutStatus Description Read analog burnout status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadAlBurnOutStatus Lib ESKDAQ dIl _ ByVal id As Integer ByRef status As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAlBurnOutStatus int id unsigned int status Parameters Id the target module id status points to a buffer to store the channel burnout status bit n 0 channel n is normal bit n 1 channel n is burnout Return Code refer to the Error code 11 57 E5K ReadAlAlarmStatus Description Read high low alarm status of analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlAlarmSta
93. f EDAM 5015 6 1 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10 Address dec Channel Item Attribute N 0290 N 0290 0 15 Analog input burnout status N 0291 N 0290 0 15 Analog input high alarm status R N 0292 N 0292 0 15 Analog input low alarm status R N 0294 N 0309 0 15 Analog input normal value R see sec 7 2 N 0310 Average Analog input average value R N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0312 N 0327 0 15 Analog input maximum value R see sec 7 2 N 0330 N 0345 0 15 Analog input minimum value R N 0348 N 0363 0 15 Analog Input type 0x0007 0x000E R W N 0364 Average average type 0x0007 0x000E R W 6 1 2 Bit address unit 1 bit This discrete address mapping support Modbus function 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F N 10000 for Function 01 0x01 Function 05 0x05 Address dec Channel Item Attribute X 0256 N 0271 0 15 Enable disable analog channel R W N 0272 N 0287 0 15 Analog input high alarm status R N 0288 N 0303 0 15 Analog input low alarm status R N 0304 N 0319 0 15 Enable disable analog channel in average R W N 0320 X 0335 0 15 Reset an
94. hannels Command AAnn cr Command leading code AA Module address ID 00 3F nn Output value to channel 0 7 cr is the terminating character carriage return ODh AA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 20523 cr Response 05 cr Valid command 05 Module ID 23 Set23 Hex to Digital output channels channel 0 1 5 are active other channels are inactive 88 EDAM 5000 User s manual 10 37 QAAnnnn Set the Digital Output Channels Description Syntax Response Example Sets the value to Digital Output Channels 0 15 Command AAnnnn cr Command leading code AA Module address ID 00 3F nnnn Output value to channel 0 15 cr is the terminating character carriage return ODh AA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 2050023 cr Response 05 cr Valid command 05 Module ID 0023 Set 23 Hex to Digital output channels channel 0 1 5 are active and channel 2 3 5 6 7 8 9 10 11 12 13 14 15 are inactive 10 38 AAnnnnnn Set the Digital Output Channels Description Syntax Response Example Sets the Digital Output Channels 0 23 Command AAnnnnnn cr Command leading code AA Module address ID 00 3F nnnnnn Output value to channel 0 23 cr is the terminating character carriage return ODh AA cr Valid command AA c
95. here is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 00B1 cr this command enable burnout detection of specified module Response 00 cr this command disable burnout detection of specified module Command 00B0 cr Response 00 cr 80 EDAM 5000 User s manual 10 22 AA3 Description Syntax Response Example 10 23 AAC Description Syntax Response Examples Read the CJC Temperature Read cold junction temperature AA3 cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module 3 is the Read cold junction temperature command cr is the terminating character carriage return ODh gt DATA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error gt delimiter character indicates a valid command was received delimiter character indicates the command was invalid DATA CJC temperature in degrees Celsius consisting of of a sign byte or and followed by 5 decimal digits with a fixed decimal point in tenth of a degree cr is the terminating character carriage return O
96. id operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cr is the terminating character carriage return ODh Clear all latch status command 01C cr Response 01 cr EDAM 5000 User s manual 10 47 AA9nn Read Single Do Pulse High Low Width Description Command Syntax Response Example Read Do Pulse High Low Width of specified DO channel AA9nn cr Command leading code AA Module address ID 00 3F 9 is the Read Do Pulse High Low Width command nn Digital Output channel number 0 17 cr is the terminating character carriage return ODh AAhhhhvvvv cr Valid command hhhh high pulse width in 0 5msec vvvv low pulse width in 0 5msec AA cr Invalid command cr is the terminating character carriage return ODh Command 05902 cr Response 0502000100 cr Valid command 05 Module ID 0200 high pulse width 0200 hex 512 dec 0 5msec 256 msec 0100 low pulse width 0100 hex 256 dec 05msec 128 msec 10 48 AA9nnhhhhllll Set Single Do Pulse High Low Width Description Command Syntax Response Example set Do Pulse High Low Width of specified DO channel AA9nnhhhhvvvv cr Command leading code AA Module address ID 00 3F 9 is the Read Do Pulse High Low Width command nn Digital Output channel number 0 17 hhhh high pulse width i
97. ital Input channel 1 DI2 Digital Input channel 2 DI3 Digital Input channel 3 DI4 Digital Input channel 4 DI5 Digital Input channel 5 DI6 Digital Input channel 6 DI7 Digital Input channel 7 DI8 Digital Input channel 8 DI9 Digital Input channel 9 DI10 Digital Input channel 10 DI11 Digital Input channel 11 DI12 Digital Input channel 12 DI13 Digital Input channel 13 DI14 Digital Input channel 14 DI15 Digital Input channel 15 DI16 Digital Input channel 16 DI17 Digital Input channel 17 DI18 Digital Input channel 18 DI19 Digital Input channel 19 DI20 Digital Input channel 20 DI21 Digital Input channel 21 DI22 Digital Input channel 22 DI23 Digital Input channel 23 DOO Digital Output channel 0 DO1 Digital Output channel 1 DO2 Digital Output channel 2 DO3 Digital Output channel 3 DO4 Digital Output channel 4 DO5 Digital Output channel 5 DO6 Digital Output channel 6 DO7 Digital Output channel 7 IGND Isolated Digital GND IGND Isolated Digital GND IGND Isolated Digital GND EVCC External DO voltage input see 4 4 3 27 EDAM 5000 User s manual 3 5 EDAM 5029 Front side connectors PWR USB RJ 45 EDAM 5029 LINK USB PWR e e e DOO DIO DO1 DI1 DO2 DI2 DO3 DI3 DO4 DI4 DOS DIS DO6 DIG DO7 DI7 DO8 DI8 DO9 DI9 DO10 DI10 DO11 DI11 DO12 DI12 DO13 DI13 DO14 DI14 DO15 DI15 28 EDAM 5000 User s manual
98. iter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cr is the terminating character carriage return ODh Clear DI 2 counter value command 01C02 cr Response 01 cr 92 EDAM 5000 User s manual 10 45 AALS Read the latched DI status Description Read DI latch status Syntax Response Example AALS cr is a delimiter character AA represents the 2 character hexadecimal Modbus address Always 01 LS represents read DI latch status command cr is the terminating character carriage return 0Dh AAnnnnnnnn cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal module address of an EDAM 5000 module cr is the terminating character carriage return 0Dh Read DI latch status command 01LS cr Response 0100000003 latch status 00000003 DI 0 latched DI 1 latched and DI 2 DI 11 no latched 10 46 S AAC Clear the latched DI status Description Clear all digital input counter of specified DI channel Syntax Response Example 93 AAC cr is a delimiter character AA represents the 2 character hexadecimal module address CL is clear latch command cr is the terminating character carriage return ODh AA cr if the command is valid AA cr ifan inval
99. l indentifier 0 Byte 3 Protocol indentifier 0 Byte 4 Length field Byte 5 Length field number of bytes following Byte 6 Unit indentifier 1 always 1 Byte 7 ModBus function code Byte 8 Byte count each register need two byte Byte 9 High bye of first address Byte 10 Low byte of first address Byte 11 High byte of second address rm 12 Low byte of second address FF 7F FF Command Head Command Body Modbus RTU A Modbus request or response carried on the Modbus RTU network A complete command is consisted of command body only If you want to read the values of EADM 5019 with Modbus RTU protocol the request command is the same as Modbus TCP but without Command Head and first byte of Command body should be filled with module address 50 EDAM 5000 User s manual 5 2 Modbus function code introductions Code Hex Name Usage 01 Read Coil Status Read Discrete DI DO Bit 02 Read Input Status Read Discrete DI DO Bit 03 Read Holding Registers 04 Read Input Registers Read 16 bit register 05 Write Single Coil Write data to force coil ON OFF 06 Write Single Register Write data in 16 bit integer format OF Force Multiple Coils Write multiple data to force coil ON OFF 10 Preset Multiple Registers Write multiple data in 16 bit integer format 51 EDAM 5000 User s manual Chapter 6 Modbus Address Mapping 6 1 Modbus mapping o
100. la neuen 112 ESK WriteModbusDiserele sch an 113 E5K WriieModbusResister ascii eee des oae eet names 114 ESK ReadModbu sheglisler 5 enden ae 114 ESK ReadModDusDISCrele oec das 115 E5K_SendASCRequestAndWaitResponse nono nocononnnnconncc nnninos 116 unta a a olearia abi 116 E5SK SendAS O ee 117 E5K_SendHEXRequestAndWaitResponse ss 118 ESI SENTE A NER i ie il rei i 119 ES Recueil se 119 ESK CalculateG REIHE A AAA AAA AA 120 BOK SeILEDGOCODIFOLS ee it 120 ES WinteljataToEE D near es ee es VE 121 ESK PlashbED ent ass ea eyes 121 ESKr IsValidiP Address 3 a 122 mio MCI Noe 122 ESK TOCPCONMECI NR TR 123 ES TGP SGI DAB ee dist etm isses 123 ESK TCPRecvDala ee A A e ai 124 ESI TEPPING Er near fie 124 EST TGPDISCOFIIBOE a ne RE 125 ESK ReadAIChannelTyPesrtni ina t eoa baee ka 125 ESK SepAI Channel Types penes ibo ee ia 126 E5K_SetSingleChannelColdJunctionOffset ss 126 E5K_ReadSingleChannelColdJunctionOffset ss 127 E5K_ReadMultiChannelColdJunctionOffset ccoo nono 127 E5K SetMultiChannelColdJunctionOffset ss 128 6 EDAM 5000 User s manual 11 51 11 52 11 53 11 54 11 55 11 56 11 57 11 58 11 59 11 60 11 61 11 62 11 63 11 64 11 65 11 66 11 67 11 68 11 69 11 70
101. ld junction enable disable status 11 52 E5K SetColdJunction Enable disable CJC 11 53 E5K ReadAlChannelConfig Read configuration of the specified Al channel 11 54 E5K SetAlChannelConfig Set configuration of the specified Al channel 11 55 E5K ReadAlBurnOutStatus Read burnout status of analog channels 11 56 E5K ReadAlAlarmStatus Read Al alarm event status 11 57 E5K_SetAlBurnOut Enable disable burnout detection 11 58 E5K_ReadAIBurnOut Read Al burnout detection enable disable status 11 59 E5K_SetAlModuleFilter SetAl filter frequency 11 60 E5K ReadAlModuleFilter Read Al filter frequency 11 61 E5K SetAlChannelEnable Enable disable Al channel 11 62 E5K ReadAlChannelEnable Read enable disable status of Al channels 11 63 E5K ReadAlNormalMultiChannel Read Al normal value of multiple Al channels 11 64 E5K ReadAlMaximunMultiChannel Read Al maximum value of multiple Al channels 11 65 E5K ReadAlMinimunMultiChannel Read Al minimum value of multiple Al channels 11 66 E5K ResetAlMaximun Reset Maximum value of the specified Al channels 11 67 E5K ResetAlMinimun Reset Minimum value of the specified Al channels 11 68 E5K_ResetAlHighAlarm Reset high alarm flag of the specified Al channels 11 69 E5K_ResetAlLowAlarm Reset low alarm flag of the specified Al channels 11 70 E5K_ReadAlChamnelAverage Read in average status of Al channels 11 71 E5K SetAlChannelAverage Enable Al channels in average 11 72 101 EDAM 5000 User s manual 11 3 DIO functions
102. le id option points to a buffer to store the burnout detection enable disable status 0 burnout detection disabled 1 burnout detection enabled Return Code refer to the Error code 132 EDAM 5000 User s manual 11 60 E5K_SetAlModuleFilter Description Set A D filter frequency Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetAlModuleFilter Lib ESKDAQ dIl _ ByVal id As Integer ByVal Hz As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlModuleFilter int id unsigned int Hz Parameters Id the target module id Hz 50 50Hz 60 60Hz 100 100Hz 120 120Hz Return Code refer to the Error code 11 61 E5K_ReadAlModuleFilter Description Read A D filter frequency Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlModuleFilter Lib EBKDAQ dll _ ByVal id As Integer ByRef Hz As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAlModuleFilter int id unsigned int Hz Parameters Id the target module id Hz points to a buffer to store filter frequency 50 50Hz 60 60Hz 100 100Hz 120 120Hz Return Code refer to the Error code 133 EDAM 5000 User s manual 11 62 E5K SetAlChannelEnable Description Enable or disable analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetAlChannelEnable Lib
103. limiter character AA range 00 3F represents the 2 character hexadecimal address of module 9 is the set cold junction offset command c is the channel number 0 F s sign of cold junction offset nnnn cold junction offset Hex in 0 01C unit cr is the terminating character carriage return ODh IAA if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr isthe terminating character carriage return Command 0193 0010 cr Response 01 cr Set cold junction offset to 0010 Hex 0 01 0 16C to channel 3 Read AD Filter Value Read A D cutoff frequency AAR cr isa delimiter character AA range 00 3F represents the 2 character hexadecimal address of module R read A D cutoff frequency command cr is the terminating character carriage return ODh IAAn if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module n 0 50Hz 1 60Hz 2 100Hz 3 120Hz cr is the terminating character carriage return Command 01R cr Response 011 cr AID cutoff frequency i
104. lt configuration 87 EDAM 5000 User s manual 10 35 AA Read the Digital I O Status Description Syntax Response Example 10 36 AAnn Description Syntax Response Example ead the status of its digital input and digital output channels AA cr isa delimiter character AA range 00 3F represents the 2 character hexadecimal Modbus network address Always 01 cr is the terminating character carriage return ODh gt DI data DO data cr if the command is valid AA cr if an invalid operation was entered There is no response ifthe module detects a syntax error or communication error or ifthe address does not exist gt delimiter indicating a valid command was received delimiter indicating the command was invalid AA range 00 3F represents the 2 character hexadecimal Modbus network address of an EDAM 9000 module DI data 4 character hexadecimal value representing the values of the digital input module DO data 4 character hexadecimal value representing the values of the digital output module cr is the terminating character carriage return ODh Command 201 cr Response gt 0000102000210001 cr 00001020 the status of digital input channels DI channels 4 15 are active and other channels are inactive 00210001 the status of digital output channels DO channels 0 16 18 are active and other channels are inactive Set the Digital Output Channels Sets the Digital Output C
105. models 14 2 Methods of E5KDAQ ActiveX control Name Arguments Return Description Open None None Open E5kDAQ OCX to start operation Must be called before accessing properties at run time Close None None Close ESKDAQ OCX Must be called before terminating the APP ReadAlarmEventData None Boolean Return the status of alarm data TRUE alarm data ready in queue FLASE no alarm data ReadStreamData None Boolean Return the status of stream data TRUE stream data ready in queue FLASE no stream data SendASCII string Send ASCII command RecvASCII None Receive ASCII command SendHEX short Buffer None Send Hex data in buffer short length RecvHEX short Buffer Integer Receive hex data and store into buffer short buffersize return the data length StartAlarmEvent None Long Start alarm interrupt return 0 if error occurred or handle of interrupt StartStreamEvent None Long Start stream interrupt return 0 if error occurred or handle of interrupt 14 3 Events of E5KDAQ ActiveX control Name Arguments Return Description OnError short ErrCode out string Errmsg out None be called when error occurred 155 EDAM 5000 User s manual Chapter 15 Firmware Update The EDAM 5000 utility provides on board firmware update tool that can help you to update firmware through USB interface quickly The following steps show you how to update firmware 1 Set Module ID
106. n ODh Command 21 cr Response gt 7 2111 7 2567 7 3125 7 1000 7 4712 7 2555 7 1234 7 5678 7 2111 7 2567 7 3125 7 1 000 7 4712 7 2555 7 1234 7 5678 3 5678 cr The command response the analog input module at address 21h for its input values of all channels The analog input module responds with channels from 0 to 15 with 7 2111 volts 7 2567 volts 7 3125 volts 7 1000 volts 7 4712 volts 7 2555 volts 7 1234 volts 7 5678 volts 7 2111 volts 7 2567 volts 7 3125 volts 47 1000 volts 7 4712 volts 47 2555 volts 7 1234 volts and 47 5678 volts The average value is 43 5678 volts Command 01 cr Response gt FF5DE4323212AE3323345663E000FF03 FF5DE4323212AE3323345663E000FF03FE02 cr The analog input module at address01 has an input value of FF5DE4323212AE3323345663E000FF03FF5DE4323212AE3323345663E000FF03FE02 The configured data format of the analog input module is two s complement Where FE02 is the average value 70 EDAM 5000 User s manual 10 4 AAn Read the single analog input Description Syntax Response Example The command will return the input value from one of the all channels of a specified AA module in the currently configured data format AAN cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of the analog input module N identifies the channel you want to read The value can range from O to F cr is the terminating character carriage
107. n 0 5msec VVVV low pulse width in 0 5msec cr is the terminating character carriage return ODh AAcr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 05902000100 cr Response 05 cr Valid command 05 Module ID 0200 high pulse width 0200 hex 512 dec 0 5msec 256 msec 0100 low pulse width 0100 hex 256 dec 05msec 128 msec 94 EDAM 5000 User s manual 10 49 AAAnn Read Single Do High Low Delay Width Description Read Do High Low output Delay time of specified DO channel Command AAAnn cr Syntax Command leading code AA Module address ID 00 3F A isthe Read Do High Low Delay time command nn Digital Output channel number 0 17 cr is the terminating character carriage return ODh Response AAhhhhvvvv cr Valid command hhhh high delay time in 0 5msec VVVV low delay time in 0 5msec AA cr Invalid command cr is the terminating character carriage return ODh Example Command 05A02 cr Response 0502000100 cr Valid command 05 Module ID 0200 high output delay time 0200 hex 512 dec 0 5msec 256 msec 0100 low low output delay time 0100 hex 256 dec 05msec 128 msec 10 50 AAAnnhhhhllll Set Single Do High Low Delay Width Description set Do High Low output Delay time of specified DO channel Command AAAnnhhhhvvvv cr Syntax Command leading code AA Module address ID 00 3F A is the Read Do Pulse High Low Width
108. n amount of time for the system to respond If no response arrives a time out aborts the sequence and returns control to the host This chapter explains the structure of the commands with Modbus TCP protocol and guides to use these command sets to implement user s programs 5 1 Command Structure Modbus TCP It is important to understand the encapsulation of a Modbus request or response carried on the Modbus TCP network A complete command is consisted of command head and command body The command head is prefixed by six bytes and responded to pack Modbus format the command body defines target device and requested action Following example will help you to realize this structure quickly Example If you want to read the first two values of EADM 5019 address 40001 40002 with Modbus TCP protocol the request command should be Byte 0 Transaction indentifier 0 Byte 1 Transaction indentifier 0 Byte 2 Protocol indentifier 0 Byte 3 Protocol indentifier 0 Byte 4 Length field Byte 5 Length field number of bytes following Byte 6 Unit indentifier 1 always 1 Byte 7 ModBus function code Byte 8 High byte of start address Byte 9 Low byte of start address Byte 10 Requested number of reading register high byte Byte 11 Requested number of reading register low byte 00 00 00 00 00 06 01 04 00 01 00 02 Command Head Command Body And the response should be Byte 0 Transaction indentifier 0 Byte l Transaction indentifier 0 Byte 2 Protoco
109. n concept provides the most cost effective I O usage for application system The most common used I O type for single function unit are collected in ONE module This design concept not only save I O usage and spare modules cost but also speed up I O relative operations For small DA amp C system or standalone control unit in a middle or large scale EDAM 5000 mixed I O design can easily fit application needs by one or two modules only With additional embedded control modules EDAM 5000 can easily create a localized less complex and more distributed I O architecture 1 4 Modbus TCP and RTU protocol supported for open connectivity EDAM 5000 modules support the popular industrial standard Modbus TCP and RTU protocol to connect with Ethernet Controller or HMI SCADA software built with Modbus TCP or RTU driver 1 5 Software Support Based on the Modbus TCP and RTU standard the EDAM 5000 firmware is a built in Modbus TCP and RTU server Therefore Inlog provides the necessary DLL drivers and Windows Utility for users for client data for the EDAM 5000 Users can configure this DA amp C system via Windows Utility integrate with HMI software package via Modbus TCP driver or Modbus TCP OPC Server Even more you can use the DLL driver and ActiveX to develop your own applications EDAM 5000 User s manual 1 6 Common technical specification of EDAM 5000 Ethernet 10 BASE T IEEE 802 3 100 BASE TX IEEE 802 3u Wiring UTP category 5 or greater B
110. nction E5K_ReadMultiDICounter Lib ESKDAQ dll _ ByVal id As Integer ByVal startchn As Integer ByVal counts As Integer counterval As Long As Integer VC see ESKDAQ h unsigned short E5K ReadMultiDICounter int id unsigned int startchn unsigned int counts unsigned long counterval Parameters id module ID address startchn channel no counts how many chanels counterval points to buffer to store counter value Return Code refer to the Error code 143 EDAM 5000 User s manual 11 80 E5K_WriteDO Description Write data to DO channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK WriteDO Lib E5KDAQ dll ByVal id As Integer ByVal dodata As Long As Integer VC see ESKDAQ h unsigned short E5K WriteDO int id unsigned long dodata Parameters id module ID address dodata 32 bit DO data bit n of dodata represents DO channel n bit n 0 inactive bit n 1 active Return Code refer to the Error code 11 81 E5K ReadDOStatus Description Read DO status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDOStatus Lib ESKDAQ dll _ ByVal id As Integer ByRef doval As Long As Integer VC see ESKDAQ h unsigned short E5K_ReadDOStatus int id unsigned long doval Parameters id module ID address doval points to a 32 bit data buffer to store DO status bit n of doval represents DO channel n bit n 0 inactive
111. nly 11 10 E5K ChangePassWord Change password Ethernet connection only 11 11 E5K GetLastErrorCode Get last DLL error code 11 12 E5K SetRXTimeOutOption Set receive send Timeout 11 13 E5K StartAlarmEventlP Start alarm event from IP Ethernet only 11 14 E5K StopAlarmEventlP Stop alarm event from IP Ethernet only 11 15 E5K StartAlarmEventUSB Start alarm event from USB USB only 11 16 E5K StopAlarmEventUSB Stop alarm event from USB USB only 11 17 E5K ReadAlarmEventData Read alarm event data 11 18 E5K StartStreamEvent Start stream event from IP Ethernet only 11 19 E5K StopStreamEvent Stop stream event from IP Ethernet only 11 20 E5K ReadStreamEventData Read stream data from IP Ethernet only 11 21 E5K ReadModuleConfig Read module configuration 11 22 E5K SetModuleConfig Set module configuration 11 23 E5K WriteModbusDiscrete Write Modbus discrete coil input data to the specified 11 24 module E5K WriteModbusRegister Write Modbus register holding input data to the specified 11 25 module E5K ReadModbusRegister Read Modbus holding input register data from the 11 26 specified module E5K_ReadModbusDiscrete Read Modbus coil input discrete data from the specified 11 27 module E5K_SendASCRequestAndWaitResponse Send ASCII command to and wait response from the 11 28 specified module E5K RecvASCII Receive ASCII data from the specified module 11 29 E5K_SendASCII Send ASCII command to specified module 11 30 E5K_SendHEXRequestAndWaitResponse Send binar
112. nnel in average status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadAlChannelAverage Lib ESKDAQ dIl _ ByVal id As Integer ByRef inavg As Long As Integer VC BC Builder see ESKDAQ h unsigned short ESK ReadAlChannelAverage int id unsigned int inavg Parameters Id the target module id Inavg points to a buffer to store the in average status of channels bit n 0 channel n is not in average bit n 1 channel n is in average Return Code refer to the Error code 139 EDAM 5000 User s manual 11 72 E5K SetAlChannelAverage Description Set analog channel in average Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetAlChannelAverage Lib E5KDAQ dII _ ByVal id As Integer ByVal inavg As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlChannelAverage int id unsigned int inavg Parameters Id the target module id inavg in average status of channels bit n 0 set channel n to be not in average bit n 1 set channel n to be in average Return Code refer to the Error code 11 73 E5K SetDIChannelConfig Description Set DI channel configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetDIChannelConfig Lib EBKDAQ dll _ ByVal id As Integer ByVal chn As Integer config As DI CHANNEL CONFIG As Integer VC BC Builder see ESKDAQ h unsigned short
113. nvalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 01MH cr Response 01 cr Clear Maximum Value Of all Channels 72 EDAM 5000 User s manual 10 8 AAMHn Clear Maximum value Of specified Channel Description Syntax Response Example clear maximum Value Of specified channel AAMHn cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of module MH isthe clear maximum value of specified channel command n channel 0 15 cr is the terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return ODh Command 01MHE cr Response 01 cr Clear Maximum Value Of Channel 14 OxOE 10 9 ZAAML Read Minimum Value Of All Channels Description Syntax Response Example Example The command will return the Read Minimum Value Of All Channels from a specified AA module in the currently configured data format AAML cr is a delimiter character AA range 00 FF represents the 2 character hex
114. on 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F N 10000 for Function 01 0x01 Function 05 0x05 Address dec Channel Item Attribute N 0000 N 001 1 0 11 DI status 0X000 0XFFF R N 0032 N 0043 0 11 DI latch status 0X000 0XFFF R N 0064 N 0073 0 9 DO status R W N 0096 N 0107 0 11 Clear DI latch status R W N 0128 N 0139 0 11 Clear DI counter value R W N 0160 N 0171 0 11 Enable disable DI latch interrupt Event R W O disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0233 0 9 Start Stop DO pulse output0 disable DO pulse output R W 1 enable DO pulse out until Digital output pulse counts reaches zero see in Register address table In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 61 EDAM 5000 User s manual Chapter 7 Modbus data conversion This chapter shows you how to convert Modbus register data to actual analog and digital value 7 1 How to calculate DI counter value Formula Actual DI Channel counts register value high word lt lt 16 register value low word Example 1 written with C 1 Assume the type of DI Channel 0 and channel 1 function as counter frequency mode 2 Send Request command as Note 0x7534 30004 start address of counter value of DI channel 0
115. op DO pulse output R W O disable DO pulse output 1 enable DO pulse out until Digital output pulse counts reaches zero see in Register address table Note In Modbus PDU each data is addressed is numbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 60 EDAM 5000 User s manual 6 6 Modbus mapping of EDAM 5060 6 6 1 Register address unit 16 bits This register address mapping support Modbus function 03 0x03 04 0x04 06 0x06 and 16 0x10 Where N 30000 for Function 04 0x04 N 40000 for Function 03 0x03 Function 06 0x06 and Function 16 0x10 Address dec Channel Item Attribute N 0000 0 11 Digital input data 0x0000 0x0FFF R N 0002 0 11 Digital input latch status 0x0000 0x0FFF R N 0004 N 0027 0 11 Digital input counter value 2 words channel R see sec 7 1 N 0068 0 9 Digital output status DO0 DO9 0x0000 0x03FF R W N 0080 N 091 0 11 Digital input mode R W N 0112 N 0123 0 15 Digital input debounce time interval 0 0xF FFF R W X 0176 N 0187 0 15 Digital output pulse low width R W 0000 0xFFFF in 0 5msec N 0208 N 0217 0 9 Digital output pulse high width R W 0000 0xFFFF in 0 5msec N 0240 N 0249 0 9 Digital output pulse counts R W N 0272 0 9 Digital power on value DO0 DO9 R W 0x0000 0xFFFF 6 6 2 Bit address unit 1 bit This discrete address mapping support Modbus functi
116. pensation CJC is avalibale for EDAM 5019 only di CIC Reset 33 EDAM 5000 User s manual 3 9 EDAM 5015 Analog Digital I O block diagram Micro processor EEPROM Power supply Micro processor EEPROM Isolated Power 34 eDAM 5015 eDAM 5017 EDAM 5000 User s manual 3 11 EDAM 5019 Analog Digital I O block diagram eDAM 5019 Micro processor EEPROM 3 12 EDAM 5028 Analog Digital I O block diagram Micro processor EEPROM 35 EDAM 5000 User s manual 3 13 EDAM 5029 Analog Digital I O block diagram js ig Z ee Z Micro processor EEPROM wir presi Data RK gt wo supply 3 14 EDAM 5060 Analog Digital I O block diagram 15V eDAM 5060 m USB20 2 0 EOS EE Micro ie rocessor V EEPROM bs LAY gt RLYO_COM lu si Power L RLY9 COM supply de RLY9 36 EDAM 5000 User s manual Chapter 4 Application wiring 4 1 EDAM 5015 wiring 4 1 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 430V PWR USB RJ 45 Ext Power 10V 30V EDAM 5015 1e OI Power GND RS232 GND lO PIG HS TN QI RS485 DATA or RS232 TX el RS485 DATA or RS232 RX 4 1 2 Analog input wiring RS485 DATA RS485 DATA 3 wire RTD connection 37 EDAM 5000 User s manual 4 2 EDAM 5017 wiring Interface connection DC Power Adaptor USB cable Ethernet Cable 10V
117. r Invalid command cr is the terminating character carriage return ODh Command 05010323 cr Response 05 cr Valid command 05 Module ID 010323 Set 23 Hex to Digital output channels channel 0 1 5 8 9 16 are active other channels are inactive 89 EDAM 5000 User s manual 10 39 AAOAnn Set the Digital 1 s byte DOO DO7 Output Description Syntax Response Example Sets the value to Digital Output Channels 0 7 Command AA0Ann cr Command leading code AA Module address ID 00 3F OA isthe Sets the Digital Output lowest byte DO0 DO7 command nn Output value to channel 0 7 cr is the terminating character carriage return ODh AA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 050A23 cr Response 05 cr Valid command 05 Module ID 23 Set23 Hex to Digital output channels channel 0 1 5 are active and channel 2 3 4 6 7 are inactive 10 40 AAOBnn Set the Digital 2 s byte DO8 DO15 Output Description Syntax Response Example Sets the value to Digital Output Channels 8 15 Command AA0Bnn cr Command leading code AA Module address ID 00 3F OB isthe Sets the Digital Output lowest byte DO8 DO15 command nn Output value to channel 8 15 cr is the terminating character carriage return ODh AA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh
118. ree pci ul lourdes 99 10 58 AADvn Set DI O active aber dne o EPI ei opc redi P SH er pda que 99 Chapter 11 ES KDAQDL AP nn e ld ad 100 111 Common functions aa m 100 1127 Analog UNCION S ce rr S 101 113 IDIO TUNCHODNS ee Deiner 102 11 4 ESI SearchMOdUles ae a ne er ee 103 11 5 12 OpenModuleus Bs qi ete RU ec RR M DS dU ec ast Ae V a ed WA El 103 11 6 ESK OpenModulelP uni 104 11 2 ESKOpenModule COM corras edo 105 11 8 ESK GloseModules Gasca ail ia aaa 105 11 97 E5K GelDEL Ver on ae 106 11 10 E5K VerifyPassWotd nn RI deed tede Rus 106 EDAM 5000 User s manual 11 11 11 12 11 13 11 14 11 15 11 16 11 17 11 18 11 19 11 20 11 21 11 22 11 23 11 24 11 25 11 26 11 27 11 28 11 29 11 30 11 31 11 32 11 33 11 34 11 35 11 36 11 37 11 38 11 39 11 40 11 41 11 42 11 43 11 44 11 45 11 46 11 47 11 48 11 49 11 50 ESK ChangePass Word en a aa era ae 107 ESR GelEastEer ode as uen M t et 107 E5K Set XTimeQOulboDlOr so d oi tubas uber qb ad dx i ied 108 ESK startAlarmEventlP aint en 108 ESK SOPA MEYER dd odas tse 109 Bok StartAlatmEventU9B soos tei EU nate tat iaia 109 ES StopAlarmbVertubsB s eso d nate tn be pd tabs tera sei 110 ESK ReadAlammEventb at ii ae a a A E ERR Rue 110 ESK Startotreame vent unten 110 ES Stopsirealrib Velib ose o e de O 111 E5K ReadStreamEbventDalta i tesi insel 111 E5K_ReadModuleConfig rr alii fl 112 ESK Se MModuleCoO assi el
119. ress of an EDAM 5000 module nnnnnnnn represents 4 bytes counter value cr is the terminating character carriage return ODh Read DI latch status command 0102 cr Response 0100000003 latch status 00000003 DI 2 counter value 3 91 EDAM 5000 User s manual 10 43 AACn Clear digital input counter Description Clear Counter of all DI Channel Syntax Response Example AACn cr is a delimiter character AA represents the 2 character hexadecimal module address C is Clear DI counter command n is DI channel number cr is the terminating character carriage return ODh AA cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal address of an EDAM 5000 module cr is the terminating character carriage return ODh Clear DI 2 counter value Command 01C2 cr Response 01 cr 10 44 AACnn Clear digital input counter Description Clear Counter of all DI Channel Syntax Response Example AACn cr is a delimiter character AA represents the 2 character hexadecimal module address C isClear DI counter command nn is DI channel number cr is the terminating character carriage return ODh AA cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delim
120. return ODh data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error gt is a delimiter character data is the input value of the channel number N Data consists of a or sign followed by five decimal digits with a fixed decimal point cr is the terminating character carriage return ODh Command 120 cr Response gt 1 4567 cr The command requests the analog input module at address 12h to return the input value of channel 0 The analog input module responds that the input value of channel 0 is equal to 1 4567 volts 10 5 AAMH Read Maximum Value Of All Channels Description Syntax Response Example Example The command will return the Read Maximum Value Of All Channels from a specified AA module in the currently configured data format AAMH cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of an analog input module MH Read all channel maximum value command cr is the terminating character carriage return ODh gt AA data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error AA range 00 FF represents the 2 character hexadecimal address of the analog input module gt is a delimiter character data is the Maximum value of all channels in the configured da
121. return ODh Example Start pulse output of DO channels 5 command 013051 cr Response 01 cr 10 54 AA4v Read the Power On Safe Value Description Read power on safe value Syntax AA4v cr Command leading code AA Module address ID 00 to FF 4 Command to set DO power on safe value V v P set power on value v S set safe value cr Carriage return Response AA cr if the valid command AA cr Invalid command Delimiter for valid command Delimiter for invalid command cr Carriage return Example Read power on safe value ID 05 Command 054P cr Response 0500000014 cr power on value 00000014 DO channel 2 4 on 97 EDAM 5000 User s manual 10 55 AA5v Set current Do value as power on safe value Description et current DO value as power on safe value Syntax Response Example AA5v cr Command leading code AA Module address ID 00 to FF 5 Command to set DO power on safe value V v P set power on value v S set safe value cr Carriage return AA cr if the valid command AA cr Invalid command Delimiter for valid command Delimiter for invalid command cr Carriage return Set current DO value as power on safe value ID 04 Command 045P cr Response 04 cr 10 56 AA5vnnnnnn Set specified value as power on safe value Description set DO power on safe value Syntax Response Example Example 98 AA5vnnnnnn cr Command leading code AA Module addres
122. ribute N 0000 0 15 Digital input data 0x0000 0xFFFF R N 0002 0 15 Digital input latch status 0x0000 0xFFFF R N 0004 N 0035 0 15 Digital input counter value 2 words channel R see sec 7 1 N 0068 0 15 Digital output status DOO DO15 R W 0x0000 0xFFFF N 0080 N 095 0 15 Digital input mode R W N 0112 N 0127 0 15 Digital input debounce time interval R W 0 OxFFFF X 0176 N 0191 0 15 Digital output pulse low width R W 0000 0xFFFF in 0 5msec N 0208 N 0223 0 15 Digital output pulse high width R W 0000 0xFFFF in 0 5msec N 0240 N 0255 0 15 Digital output pulse counts R W N 0272 0 7 Digital power on value DO0 DO15 R W 0x0000 0xFFFF 59 EDAM 5000 User s manual 6 5 2 Bit address unit 1 bit This discrete address mapping support Modbus function 010x01 02 0x02 05 0x05 and 15 0x0F Where N 00000 for Function 00 0x00 and 15 0x0F N 10000 for Function 01 0x01 Function 05 0x05 Address dec Channel Item Attribute N 0000 N 0015 0 15 DI status 0X0000 0XFFFF R N 0032 N 0047 0 15 DI latch status 0X0000 0XFFFF R N 0064 N 0079 0 15 DO status R W N 0096 N 0111 0 15 Clear DI latch status R W N 0128 N 0143 0 15 Clear DI counter value R W N 0160 N 0175 0 15 Enable disable DI latch interrupt Event R W O disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0239 0 15 Start St
123. ription Send an Hex data to the module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SendHex Lib E5KDAQ dll _ ByVal id As Integer Byref Hexdata As Byte ByVal Datalen As Integer as integer VC see ESKDAQ h unsigned short E5K_SendHex int id char Hexdata unsigned int Datalen Parameters id module ID address Hexdata points Hex data buffer Datalen size ofthe data buffer Return Code refer to the Error code 11 33 E5K RecvHEX Description Receive an Hex data from the module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK RecvHex Lib ESKDAQ dIl _ ByVal id As Integer _ Byref Rxbuffer As String _ ByVal bufferSize As integer as integer VC see ESKDAQ h unsigned short E5K_RecvHex int id char Rxbuffer unsigned int BufferSize Parameters id module ID address asccmd points to ASCII string buffer Rxbuffer points receive buffer Buffersize size of revive buffer Return Code refer to the Error code 119 EDAM 5000 User s manual 11 34 E5K CalculateCRC16 Description Calculate CRC16 Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK CalculateCRC16 Lib E5KDAQ dil _ bData as byte byval wLen as integer byref wCRC as integer As Integer VC see ESKDAQ h unsigned short E5K_CalculateCRC16 unsigned char bDatal unsigned int wLen unsigned int wCRC Parameters bD
124. rminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return Command 01H0101 cr Response 01 cr Clear high alarm status of channel 0 and 4 10 18 AAALnnnn Clear A D Low Alarm Description Syntax Response Examples Clear A D High Alarm status under range status AAALnnnn cr is a delimiter character AA range 003F represents the 2 character hexadecimal address of module L is the clear high alarm command nnnn are four hexadecimal values The values are interpreted by the module as four binary words 4 bit The first word represents channel 12 15 and the second word represents channel 8 11 etc bit x71 clear low alarm status of channel x bit x 0 no clear cr is the terminating character carriage return ODh AA cr ifthe command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr isthe terminating character carriage return Command 01L0101 cr R
125. rn Code refer to the Error code 11 21 E5K_ReadStreamEventData Description Read stream data from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadStreamEventData Lib E5KDAQ dll Streamintinfo As STREAM EVENT INFO As Integer VC see ESKDAQ h Int E5K ReadStreamEventDa STREAM EVENT INFO StreamintiInfo Parameters Streamintinfo Points to a stream data buffer structure STREAM EVENT INFO see ESKDAQ H Return Code refer to the Error code 111 EDAM 5000 User s manual 11 22 E5K ReadModuleConfig Description Read module configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadModuleConfig Lib E5KDAQ dll _ ByVal id As Integer mp as MODULE CONFIG As integer VC see ESKDAQ h unsigned short E5K ReadModuleConfig unsigned int id MODULE CONFIG mp Parameters id module ID address mp points to a structure MODULE CONFIG see E5KDAQ H Return Code refer to the Error code 11 23 E5K SetModuleConfig Description Set module configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetModuleConfig Lib ESKDAQ dIl _ ByVal id As Integer mp as MODULE CONFIG As integer VC see ESKDAQ h unsigned short E5K_SetModuleConfig unsigned int id MODULE CONFIG mp Parameters id module ID address mp points to a structure MODULE CONFIG see E5KDAQ H
126. rt E5K_ResetAlMinimum int id unsigned int Restopt Parameters Id the target module ID Restopt rest mask option bit n 0 no reset minimum value of channel n bit n 1 reset minimum value of channel n Return Code refer to the Error code 11 69 E5K ResetAlHighAlarm Description Reset analog high alarm flag Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ResetAlHighAlarm Lib E5KDAQ dll _ ByVal id As Integer ByVal restopt As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ResetAlHighAlarm int id unsigned int restopt Parameters Id the target module ID restopt rest mask option bit n 0 no reset high alarm flag of channel n bit n 1 reset high alarm flag of channel n Return Code refer to the Error code 138 EDAM 5000 User s manual 11 70 E5K ResetAlLowAlarm Description Reset analog low alarm flag Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ResetAlLowAlarm Lib ESKDAQ dIl _ ByVal id As Integer ByVal restopt As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ResetAlLowAlarm int id unsigned int restopt Parameters Id the target module ID restopt rest mask option bit n 0 no reset low alarm flag of channel n bit n 1 reset low alarm flag of channel n Return Code refer to the Error code 11 71 E5K_ReadAlChannelAverage Description Read analog cha
127. s 60Hz 84 EDAM 5000 User s manual 10 29 AARf Set AD Filter Value Description Set A D cutoff frequency Syntax AAR cr isa delimiter character AA range 00 3F represents the 2 character hexadecimal address of module R read A D cutoff frequency command f 0 50Hz 1 60Hz 2 100Hz 3 120Hz cr is the terminating character carriage return ODh Response AAn if the command is valid or AA cr if the command is invalid Examples There is no response if the module detects a syntax error or communication error is a delimiter character indicating a valid command was received AA range 00 3F represents the 2 character hexadecimal address of module cr is the terminating character carriage return Command 01R0 cr Response 011 cr Set A D cutoff frequency to 560Hz 10 30 AA6 Read the Channel Enable Disable Status Description Syntax Response Example Read the status of digital input output channels AA6 cr is a delimiter character AA represents the 2 character hexadecimal module address 6 is the Digital Data In command cr is the terminating character carriage return ODh AAO00 data1 data2 cr if the command is valid AA cr ifan invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal module address of an EDAM 5000 module data1 an 8 characters hexa
128. s Digital inputs MOSFET outputs and provides data to the host computer Digital Input Channels 16 channels Input type Voltage logic O for 3Vdc maximum logic 1 for 5Vdc minimums or Switch On Off Isolation voltage 2000 V Digital Output Output Channel 16 channels Output Type Source Output up to 30Vdc 3A max Isolation voltage 2000 V Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max 18 EDAM 5000 User s manual 2 6 EDAM 5060 specifications The EDAM 5060 is a 10 channels Relay and 12 channels digital input module that provides programmable I O ranges on all channels It accepts Various Digital inputs Relay outputs and provides data to the host computer Digital Input Channels 12 channels Input type Voltage logic O for 3Vdc maximum logic 1 for 5Vdc minimums or Switch On Off Isolation voltage 2000 V Relay Output Relay Channel 10 Relay output Relay Type Form A DPDT Contact rating AC 3A 125V DC 3A 30V 3A 110V Breakdown voltage OPEN contacts 1000VAC Contacts and coil 1000VAC FCC Surge Voltage Contacts and coil 1500V Insulation resistance 100M ohm at 500VDC Operate time 6ms Release time 4ms Min operations 500000 times At 1A 30VDC Built in Watchdog Timer Power requirements USB powered 400mA max or external unregulated 10 30 VDC Power consumption 1 5 W Typical 2W max
129. s ID 00 to FF 5 Command to set DO power on safe value V v P set power on value v S set safe value nnnnnn represents DO power on safe value cr Carriage return AA cr if the valid command AA cr Invalid command Delimiter for valid command Delimiter for invalid command cr Carriage return Set DO power on value to OxFFOOFF ID 04 Command 045PFFOOFE cr Response 04 cr Set DO safe value to OxFFOOFF ID 04 Command 045SFFOOFE cr Response 04 cr EDAM 5000 User s manual 10 57 AAD Read DI O active state Description Read input output active status Syntax AAD cr Command leading code AA Module address ID 00 to FF D Command for reading digital input active status cr Carriage return Response AAmn cr if the valid command AA cr if the invalid command Delimiter for valid command Delimiter for invalid command m Input active status m 0 input low voltage open active m 1 Input high voltage active See n Output active status n 1 output short close active n 0 open active See cr Carriage return Example Read output active status of EDAM5060 ID 05 Command 05D cr Response 0501 cr 01 All input channels are low active and all output channels are short close active Note m is only available for the module which has digital input channels n is only available for the module which has digital output channels 10 58 AADvn Set DI O active state Description Set input o
130. such as 0 231 Return Code refer to the Error code 126 EDAM 5000 User s manual 11 48 E5K ReadSingleChannelColdJunctionOffset Description Read cold junction offset of single analog channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadSingleChannelColdJunctionOffset Lib EBKDAQ dll _ ByVal id As Integer ByVal chno As Integer ByRef CjOffset As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadSingleChannelColdJunctionOffset int id unsigned int chno double CJoffset Parameters Id the target module id Chno channel number CjOffset buffer pointer to store channel CJC offset value Return Code refer to the Error code 11 49 E5K_ReadMultiChannelColdJunctionOffset Description Read cold junction offset of multiple analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadMultiChannelColdJunctionOffset Lib E5KDAQ dil _ ByVal id As Integer ByVal startch As Integer Byval counts as integer Byref CjOffset As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadMultiChannelColdJunctionOffset unsigned int id unsigned int startch unsigned int counts double CjOffset Parameters Id the target module id startch start channel number counts channels to be read CjOffset points to an array to store CJC offset value Return Code refer to the Error code 1
131. t Input Type 10 Enter the value of voltage see input range applied to channel 1 Al1 Al1 in the Input Value textbox EDAM5017 A D Calibration a Zero Calibraon 7 Calibration steps 1 Apply Input Type r Filter C 10V C 50Hz Input Value 1 500 V Dec Span 60H E Z ReadBack 154 v IncSpan 25 C 100Hz 44 04 C 120Hz Accuracy MM Aue 500mi Span 1 1004 _ 4 150m 0 20m amp 4 20mA Status Calibrating Filter 60Hz 11 Click Auto button to start auto calibrating Auto calibration will calibrate Span value of all Filter rate 5072 60Hz 100Hz 120Hz 12 You can also Glick Inc Span or Dec Span button to fine adjust the Span value EDAM5017 A D Calibration EES Calibration steps 1 Apply X 2 Select Filter Frequency Span Calibration Input Type Filter C 10 50Hz Dec Span i c usd ReadBack Inc Span 2 5V C 100Hz 4 10 C 12002 Accuracy MS Auto 500mv Span 1 1004 15 mV 07 20m 4 20mA Status Calibrating Filter 60Hz 13 Cilck Exit button to exit calibration window 168 EDAM 5000 User s manual 17 3 EDAM 5019 calibration 14 Connect EDAM5019 to USB hub 15 Execute E5000Utility 16 Click Start button to search modules 17 Double click EDAM 5019 listed in device list window D eDAM 5000 Utility Y410 2012705710 DLL Yer 3 20 Exit Search Terminal Firmware Update Help Communication Inteface US
132. t E5K_SearchModules EBK DEVICE ID INFO pd unsigned int interface type Parameters pd points to a structure EBK DEVICE ID INFO interface type indicate what connection be used for searching see ESKDAQ h Return Code Return how many modules be found It no module existed if return with 0 11 5 E5K OpenModuleUSB Description Open module by its ID address from USB interface Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK OpenModuleUSB Lib E5KDAQ dil ByVal id As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K OpenModuleUSB unsigned short id Parameters Id module ID address Return Code Return the same ID number as parameter id If open success Return 1 open error 103 EDAM 5000 User s manual 11 6 E5K OpenModulelP Description Open module by IP address for Ethernet connection only Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK OpenModulelP Lib ESKDAQ dIl _ ByVal IP As String Byval Byval ConnecttimeOut as long Byval RxTotalTimeOut as long Byval RxTimeoutlnterval as long As Integer VC BC see ESKDAQ h unsigned short E5K OpenModulelP char 1 unsigned long ConnectTimeOut unsigned long RxTotalTimeOut unsigned long RxTimeoutInterval Parameters IP points to a IP address array such as 192 168 0 12 ConnectTimeOut Connection timeout interval msec RxTotalTimeOut Receive frame timeou
133. t channel 8 normal open COM8 Common 8 RLY9 Relay output channel 9 normal open COM9 Common 9 31 EDAM 5000 User s manual 3 7 EDAM 5000 Rear side connectors There are two 6 pin DIP switches labeled as D address and Interface ID address switch is used for setting ID address of module ON dodo ON logic 1 OFF logic 0 SERE 1 2 on NM v n W amp d dm d du Where AO bit O of ID address A1 bit 1 of ID address A2 bit 2 of ID address A3 bit 3 of ID address A4 bit 4 of ID address A5 bit 5 of ID address Example1 Assume A0 ON A1 A2 A3 OFF and A4 A5 ON Then the ID address A5 A4 A3 A2 A1 A0 110001 31 hex 49 dec Example2 Assume AO0 OFF A1 A2 A3 ON and A4 A5 OFF Then the ID address A5 A4 A3 A2 A1 A0 001110 0E hex 14 dec 32 EDAM 5000 User s manual Interface switch is used for select serial communication interface RS485 RS232 or CAN bus Switch pin setting DX DX GND TX signal of RS232 RX signal of RS232 GND of RS232 Data of RS485 Data of RS485 DX of CAN BUS DX of CAN BUS Note CAN BUS function option 3 8 EDAM 5000 reset switch and CJC sensor There are a reset switch Reset and tempearature sensor CJC on the botton side of the module The reset switch is available for all module The users could push this switch to reboot the module The Tempearature sensor cold junction com
134. t interval msec RxTimeOutinterval receive character timeout interval msec Return Code Return the ID address of module if open success 104 EDAM 5000 User s manual 11 7 E5K_OpenModuleCOM Description Open module by its ID address from COM port Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_OpenModuleCOM Lib ESKDAQ dll _ Byval devid As Integer Byval comport As Integer ByVal RxTotalTimeOut As Long ByVal RxTimeoutinterval As Long ByVal BaudRate As Long ByVal ChksumCRC As Byte As Integer VC BC Builder see ESKDAQ h int E5K_OpenModuleCOM unsigned int devid unsigned int comport unsigned long RxTotalTimeOut unsigned long RxTimeoutinterval unsigned long Baudrate unsigned char ChksumCRC Parameters devid module ID address comport COM port number RxTotalTimeOut Receive time out between characters msec RxTimeoutlnterval Receive total timeout msec Baudrate Baud rate ChksumCRC Enable disable Check sum CRC 1 Enabled 0 disable Return Code Return the same ID number as parameter id If open success Return 1 open error 11 8 E5K_CloseModules Description Close all modules Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_CloseModules Lib EBKDAQ dll As Integer VC see ESKDAQ h unsigned short E5K_CloseModules void Parameters none no parameters Return Code refer to the Error code 105 EDAM
135. ta format of the module cr is the terminating character carriage return ODh Command 21MH cr Response 21 7 2111 7 2567 7 3125 7 1000 7 4712 7 2555 7 1234 7 5678 7 2111 7 256 7 7 3125 7 1000 7 4712 7 2555 7 1234 7 5678 cr The command response the analog input module at address 21h for its maximum values of all channels The analog input module responds its maximum values with channels from 0 to 15 with 7 2111 volts 7 2567 volts 7 3125 volts 7 1000 volts 7 4712 volts 7 2555 volts 47 1234 volts 7 5678 volts 7 2111 volts 7 2567 volts 7 3125 volts 7 1000 volts 7 4712 volts 7 2555 volts 7 1234 volts and 7 5678 volts Command 01MH cr Response 01FF5DE4323212AE3323345663E000FF03 F5DE4323212AE3323345663E000FF03 cr The analog input module at address01 has maximum values of FF5DE4323212AE3323345663E000FF03FF5DE4323212AE3323345663E000FF03 The configured data format of the analog input module is two s complement 71 EDAM 5000 User s manual 10 6 AAMHn Description Syntax Response Example Example Read Maximum Value of Specified Channel The command will return the Read Maximum value Of the specified channel from a specified AA module in the currently configured data format AAMHn cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of an analog input module MH read single channel maximum value command N channel number cr is th
136. tal Input Counter 10 43 AACnn Clears the Digital Input Counter 10 44 AALS Reads the Latched DI Status 10 45 AAC Clears the Latched DI Status 10 46 AA9nn Read Single Do Pulse High Low Width 10 47 AA9nnhhhhllll Set Single Do Pulse High Low Width 10 48 AAAnn Read Single Do High Low Delay Width 10 49 AAAnnhhhhllll Set Single Do High Low Delay Width 10 50 AABnn Read Single Do Pulse Counts 10 51 AA2nncccc Write Single Do Pulse Counts 10 52 AA3nns Start Stop Do Pulse Counts 10 53 AAAv Reads the PowerOn Safe Value 10 54 AA5v Sets current DO value as PowerOn Safe Value 10 55 AA5vnnnnnn Sets specified value as PowerOn Safe Value 10 56 AAD Read DI O active state 10 57 AADvv Set DI O active state 10 58 69 EDAM 5000 User s manual 10 3 AA Read the analog Inputs of all Description Syntax Response Example Example The command will return the input value from a specified AA module in the currently configured data format AA cr is a delimiter character AA range 00 FF represents the 2 character hexadecimal address of an analog input module cr is the terminating character carriage return ODh data cr if the command is valid or AA cr if the command is invalid There is no response if the module detects a syntax error or communication error gt is a delimiter character data is the input value in the configured data format of the module cr is the terminating character carriage retur
137. tus Lib EBKDAQ dll _ ByVal id As Integer ByRef hialarm As Long ByRef loalarm As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAlAlarmStatus int id unsigned int hialarm unsigned int loalarm Parameters Id the target module id hialarm points to a buffer to store the channel high alarm status bit n 0 channel n is normal bit n 1 channel n is high alarm loalarm points to a buffer to store the channel low alarm status bit n 0 channel n is normal bit n 1 channel n is low alarm Return Code refer to the Error code 131 EDAM 5000 User s manual 11 58 E5K SetAlBurnOut Description Enable disable Al burnout detection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK SetAlBurnOut Lib ESKDAQ dIl _ ByVal id As Integer ByVal option As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlBurnOut int id SBYTE option Parameters Id the target module id option 0 disable burnout detection 1 enable burnout detection Return Code refer to the Error code 11 59 E5K ReadAlBurnOut Description Read burnout detection enable disable status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlBurnOut Lib E5KDAQ dll _ ByVal id As Integer ByRef option As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K ReadAlBurnOut int id SBYTE option Parameters Id the target modu
138. uble Altemp Parameters Id the target module id Startch start channel number counts channels Altemp points to a array to store Al normal values Altemp 0 normal value of channel startch Altemp 1 normal value of channel startch 1 Altemp 2 normal value of channel startch 2 Return Code refer to the Error code 135 EDAM 5000 User s manual 11 65 E5K ReadAlMaximumMultiChannel Description Read maximum value of the multiple analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlMaximumMultiChannel Lib ESKDAQ dIl _ ByVal id As Integer ByVal startch As Integer ByVal counts As Integer ByRef Altemp As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAlMaximumMultiChannel int id unsigned int startch unsigned int count double Altemp Parameters Id the target module id Startch start channel number counts channels Altemp points to a array to store Al maximum values Altemp 0 maximum value of channel startch Altemp 1 maximum value of channel startch 1 Altemp 2 maximum value of channel startch 2 Return Code refer to the Error code 136 EDAM 5000 User s manual 11 66 E5K_ReadAlMinumumMultiChannel Description Read minimum value of the multiple analog channels Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAlMinimunMultiChannel Lib ESKDAQ dIl _ By
139. us Connection RJ45 modular jack Comm Protocol Modbus TCP on TCP IP and RTU on UDP IP or RS485 ASCII commands Data Transfer Rate Up to 100 Mbps USB USB 2 0 Wiring USB cable Bus Connection USB type B connector Comm Protocol RTU ASCII commands Data Transfer Rate high speed RS485 232C Wiring Twist pair for RS485 or Three wires cable for RS232C Bus Connection 2 3 pin terminals Comm Protocol RTU ASCII commands Data Transfer Rate 2400 4800 9600 19200 38400 57600 115200 Power USB powered if USB connection External power with unregulated 10 to 30VDC Over voltage protection and power reversal 1 0 Module input isolation 3000 V DC Status Indicator Power Communication Ethernet USB RS485 232 Case ABS with captive mounting hardware Plug in Screw Terminal Block Accepts 0 5 mm 2 to 2 5 mm 2 1 12 or 2 14 to 22 AWG Operating Temperature 10 to 70 C 14 to 158 F Storage Temperature 25 to 85 C 13 to 185 F Humidity 5 to 9596 non condensing Atmosphere No corrosive gases NOTE Equipment will operate below 3096 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 10 EDAM 5000 User s manual 1 7 Dimensions The following diagrams show the dimensions of
140. utput active status Command AADvn CHK cr Syntax Command leading code AA Module address ID 00 to FF D Command for setting digital input active status V Input active status v 0 input low voltage open active v 1 Input high voltage active See n Output active status n 1 output short close active n 0 open active See cr is the terminating character carriage return ODh Response IAA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Example Command 05D01 cr Response 05 cr 05 Module ID 0 Set all inputput channels to high volt open active 1 Set all output channels to high open output active Note iv is only available for the module which has digital input channels nis only available for the module which has digital output channels 99 EDAM 5000 User s manual Chapter 11 E5KDAQ DLL API 11 1 Common functions Function name description Sec E5K SearchModules Search all EDAM5000 modules 11 4 E5K OpenModuleUSB Open module with ID address from USB interface 11 5 E5K OpenModulelP Open module with the module IP address from Ethernet 11 6 E5K OpenModuleCOM Open module with ID address from COM port 11 7 E5K CloseModules Close all modules 11 8 E5K GetDLLVersion Get ESKDAQ DLL version 11 9 E5K VerifyPassWord Verifies Pass word Ethernet o
141. vData Lib E5KDAQ dil _ ByVal sock As Long ByRef pdata As Byte ByVal psize As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_TCPRecvData SOCKET sock char pdata unsigned short psize Parameters sock TCP socket handle pdata Points to data buffer psize size of data buffer Return Code Bytes of data received 11 43 E5K TCPPing Description Ping Specified IP address Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK TCPPing Lib E5KDAQ dll _ ByVal zIP As String ByVal timeout As Integer As Integer VC BC Builder see ESKDAQ h unsigned short E5K_TCPPing char zIP int timeout Parameters zIP IP address string such as 192 168 0 123 timeout ping timeout msec Return Code refer to the Error code 124 EDAM 5000 User s manual 11 44 E5K TCPDisconnect Description Release a TCP connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK TCPDisconnect Lib ESKDAQ dIl _ ByVal sock As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_TCPDisconnect SOCKET sock Parameters sock TCP connection handle Return Code refer to the Error code 11 45 E5K ReadAlChannelType Description Read analog channel type Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadAlChannelType Lib EBKDAQ dll _ ByVal id As Integer ByVal AlChannel As Integer ByRef AIType As
142. vb Declare public Function EBK ReadColdJunctionStatus Lib EBKDAQ dll _ ByVal id As Integer ByRef Cjs As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadColdJunctionStatus int id SBYTE Cjs Parameters Id the target module id Cjs CJC enable disable status 0 disabled 1 enabled Return Code refer to the Error code 11 53 E5K SetColdJunction Description Enable disable CJC Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetColdJunction Lib EBKDAQ dll _ ByVal id As Integer ByVal Cjs As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetColdJunction int id SBYTE Cjs Parameters ld the target module id Cis CJC enable disable option 0 disable 1 enable Return Code refer to the Error code 129 EDAM 5000 User s manual 11 54 E5K_ReadAlChannelConfig Description Read analog channel configuration Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function EBK ReadAlChannelConfig Lib ESKDAQ dIl _ ByVal id As Integer ByVal chno As Integer ByRef mConfig As Al CHANNEL CONFIG As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAlChannelConfig int id unsigned int chno Al CHANNEL_CONFIG mConfig Parameters Id the target module id chno channel number mConfig points to a structure to store the channel configuration see EBKDAQ H about structure CHANNEL_CONFIG R
143. wer Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C Al0 Al0 Analog Input channel 0 AI1 Al1 Analog Input channel 10 AI2 A12 Analog Input channel 2 AI3 Al3 Analog Input channel 3 Al4 Al4 Analog Input channel 4 Al5 Al5 Analog Input channel 5 AI6 AIG Analog Input channel 6 Al7 Al7 Analog Input channel 7 AI8 AI8 Analog Input channel 8 AI9 AI9 Analog Input channel 9 AI10 Al10 Analog Input channel 10 AI11 AI11 Analog Input channel 11 AI12 Al12 Analog Input channel 12 AI13 Al13 Analog Input channel 13 Al14 Al14 Analog Input channel 14 AI15 Al15 Analog Input channel 15 DIO Digital Input channel 0 DI1 Digital Input channel 1 DOO Digital Output channel 0 IGND Isolated Digital GND 25 EDAM 5000 User s manual 3 4 EDAM 5028 Front side connectors PWR USB RJ 45 EDAM 5028 LINK USB PWR e e DI16 DIO DI17 DI1 DI18 DI2 DI19 DI3 DI20 DI4 DI21 DI5 DI22 DI6 DI23 DI7 DOO DI8 DO1 DI9 DO2 DI10 DO3 DI11 DO4 DI12 DOS DI13 DO6 DI14 DO7 DI15 26 EDAM 5000 User s manual Connector Description RJ 45 Ethernet Connector PWR External power connector VCC External power 10 lt Vdc lt 30 GND Power Ground DX Data for RS 485 TX for RS 232C DX Data for RS 485 RX for RS 232C DIO Digital Input channel 0 DI1 Dig
144. y Contact lt gt Er 3 10K DI 8 DI 15 46 EDAM 5029 Voltage Input IGND DI 8 DI 15 _0V 24V Digital Input Wet Contact IGND EDAM 5000 User s manual tc 96000000009 1 3 PO0OOOOOOO 0000000000 0000000000 0000000000 U M 3 000000000 1 96699999999 9999999999 Y Y 5V 24V Dry Contact Wet Contact 4 5 3 Digital output wiring 10V 30V 47 EDAM 5000 User s manual 4 6 EDAM 5060 wiring 4 6 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 430V PWR USB RJ 45 Ext Power 10V 30V Ol Power GND RS232 GND el RS485 DATA or RS232 TX el RS485 DATA or RS232 RX EDAM 5060 LINK USB PWR e e e 4 6 2 Digital input wiring DI ooo co Ra 2 co QI Din Wet contact Din Dry contact 5V 24V 0000000 0000000000 0000000000 OOO 48 EDAM 5000 User s manual 4 6 3 Digital output wiring 10V 30V 49 EDAM 5000 User s manual Chapter 5 Modbus Command structure EDAM 5000 system accepts a command response form with the host computer When systems are not transmitting they are in listen mode The host issues a command to a system with a specified address and waits a certai
145. y data to and wait response from the specified 11 31 module E5K_SendHEX Send HEX command to specified module 11 32 E5K_RecvHEX Receive Hex data from the specified module 11 33 E5K_CalculateCRC16 Calculate CRC16 11 34 E5K SetLEDControl Set LED control mode 11 35 E5K WriteDataToLED Write data to LED board 11 36 E5K FlashLED Force on board LED to flash 11 37 E5K IsValidlPAddress Check IP address is valid or not 11 38 E5K GetLocallP Get Host IP address 11 39 E5K TCPConnect Build a TCP connection 10 43 E5K TCPSendData Send data to TCP connection 11 41 E5K TCPRecvData Receive data from TCP connection 11 42 E5K TCPPing Ping the specified IP address 11 43 E5K_TCPDisconnect Disconnect TCP connection 11 44 100 EDAM 5000 User s manual 11 2 Analog functions Function name Description Sec E5K ReadAlChannelType Read type of the specified Al channel 11 45 E5K SetAlChannelType Set type of the specified Al channel 11 46 E5K SetSingleChannelColdJunctionOffset Set CJC offset of the specified Al channel 11 47 E5K ReadSingleChannelColdJunctionOffset Read CJC offset of a specified Al channel 11 48 E5K ReadMultiChannelColdJunctionOffset Read CJC offset of the multiple Al channels 11 49 E5K SetMultiChannelColdJunctionOffset Set CJC offset of multiple Al channels 11 50 E5K ReadColdJunctionTemperature Read cold junction temperature 11 51 E5K ReadColdJunctionStatus Read co
Download Pdf Manuals
Related Search
Related Contents
Les revues JurisClasseur Calpefina Selladora User`s Manual - Sierra Video Samsung DVD-P4444 راهنمای محصول PG802-S Omega Lift 40500 Automobile Parts User Manual Copyright © All rights reserved.
Failed to retrieve file