Home

EDAM5000 User's Manual V13

image

Contents

1. 75 10 17 AAAHnnnn Clear A D High Alarm 76 10 18 AAALnnnn Clear A D Low Alarm 76 10 19 AAB Read Channel Burnout Gtaius 77 10 20 AAB Read Channel Burnout Enable Disable Giaius 78 10 21 AABn Enable disable burnout detection AA 78 10 22 AA3 Read the CJC Temperature rn rrreeenn 79 10 23 AAC Read the CJC Enable disable 79 10 24 AACn Enable Disable the JC area ea 80 10 25 AA9snnnn Set the all channel CJC Offset lt lt 80 10 26 AA9c Read single channel CJC Offset 81 10 27 AA9cSnnnn Set single channel CJC Offset i 82 10 28 AAR Read AD Filter Value nn 82 10 29 AARf OL ANE 1 EE E e AE ori 83 10 30 AA6 Read the Channel Enable Disable Status 83 10 31 AA5vvvv Enable Disable A D Channels 84 4 EDAM 5000 User s manual 10 32 AA8Ci Read the Single A D Channel Range 84 10 33 AA7CiRrr Set the Single Channel Range 85 10 34 AAS1 Reload the Default configuration 85 10 35 AA Read the Digital I O Status as ai ade lea tale 86 10 36 AAnn Set the Digital Output Channels 86 10 37 AAnnnn Set the Digital Output Channels ss 87 10 38 AAnnnnnn Set the Digital Output Channels ss 87 10 39 AA0Ann Set the Digital 15 byte DOO DO7 Output
2. 23 EDAM 5000 User s manual 3 3 EDAM 5019 Front side connectors EDAM 5019 LINK USB PWR kat kd DIO AIO Dit AN DOO AI2 e AB e AIA AIS Al6 Al7 8 AI9 Al10 Al11 Al12 Al13 AI14 Al15 24 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 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 011 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 DI16 DIO DI17 011 0118 012 0119 013 0120 014 0121 DIS DI22 DIG DI
3. 50 EDAM 5000 User s manual 6 2 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 0 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 0 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 N 0368 N 0383 0 15 Clear analog input low alarm status R W Note In Modbus PDU each data is addressed is n
4. 3 wire RTD connection 37 EDAM 5000 User s manual 4 2 EDAM 5017 wiring 4 2 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 30V PWR USB RJ 45 Ext Power 10V 30V QI Power GND RS232 GND Ol RS485 DATA or RS232 TX QI RS485 DATA or RS232 RX EDAM 5017 LINK USB PWR o 4 2 2 Analog input wiring RS485 DATA RS485 DATA 38 EDAM 5000 User s manual 4 2 3 Digital input wiring Input logic 0 Input logic 0 OV 3V ee 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 30V PWR USB RJ 45 Ext Power 10V 30V Ol Power GND RS232 GND Ol RS485 DATA or RS232 TX QI RS485 DATA or RS232 RX EDAM 5019 LINK USB PWR The function of DX DX pins are depended on the Interface switch settings see page 26 4 3 2 Analog input wiring RS485 DATA RS485 DATA Where Aln and Aln represent Al input channel n 40 EDAM 5000 User s manual 4 3 3 Digital input wiring Input logic 0 Input logic 1 Open Input logic 0 4 OV 3V CH Input logic 1 5V 24V 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 Power Adaptor U
5. AlEnable Enable disable settings bit n 0 disable channel n bit n 1 enable channel n 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 ESKDAQ 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 132 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_ReadAINormalMultiChannel 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 intid unsigned int startch unsigned int counts double Altemp Parameters Id the target module id Startch start channel number counts channels Altemp points to a array to store AI normal values Altemp 0 normal value of channel startch Altemp 1 normal va
6. refer to the Error code Module name DI Active option Description EDAM8060 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 EDAM8060 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 148 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 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 M
7. 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 135 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 E5K_ResetAlMinimum Lib E5KDAQ dll _ ByVal id As Integer ByVal resetopts As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ResetAIMinimum 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 Re
8. C 13 to 185 F Humidity 5 to 95 non condensing Atmosphere No corrosive gases NOTE Equipment will operate below 30 humidity However static electricity problems occur much more frequently at lower humidity levels Make sure you take adequate precautions when you touch the equipment Consider using ground straps anti static floor coverings etc if you use the equipment in low humidity environments 10 EDAM 5000 User s manual 1 7 Dimensions The following diagrams show the dimensions of the EDAM 5000 I O module in millimeters EDAM LINK USB PWR eee e DIO AIO e on AI e 2 0 AL AIB A4 AI5 206 AI7 AIB A9 41106 20110 40120 AI13 24140 40150 103 9 mm SO oo oo 5 5 Se ww 29822 E E Ss 11 EDAM 5000 User s manual C a 77 101 1 mm 135 mm 103 9 mm RT ie ww JL 996 KS e O d 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 Atleast 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
9. Declare public Function E5K_SetMultiChannelColdJunctionOffset Lib E5KDAQ dll 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 ReadColddunctionTemperature Description Read cold junction temperature Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadColdJunctionTemperature Lib E5KDAQ dil ByVal id As Integer ByRef CjTemp As Double As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadColdJunctionTemperature int Wd double CJtemp Parameters Id the target module id CJtemp CJC temperature such as 23 67 Return Code refer to the Error code 126 EDAM 5000 User s manual 11 52 E5K ReadColdJunctionStatus Description Read CJC enable disable status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadColdJunctionStatus Lib E5KDAQ dil ByVal id As Integer ByRef Cjs As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadColdJunctionStatus
10. 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 93 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 is read 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 if an 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 Pulse 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
11. 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 141 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 E5K_WriteDO Lib ESKDAQ 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 bit n 1 active Return Code refer to the Error code 142 EDAM 5000 User s manual 11 82 E5K_SetDOSingleChannel Description Set single DO channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ
12. see ESKDAQ bas E5KDAQ vb Declare public Function E5K_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 111 EDAM 5000 User s manual 11 25 E5K_WriteModbusRegister Description Write data to Modbus Holding registers Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_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 E5K_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 regsi data buffer be written regs n value for Modbus holding register address startaddr n 0 lt n lt counts Return Code refer to the Error code 11 26 E5K ReadModbusRegister Description Read Modbus Hol
13. 11 18 E5K ReadAlarmeventData Description Read alarm event information from device Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_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 E5K_StartStreamEvent Lib ESKDAQ dil 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 108 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 E5K_StopStreamEvent Lib ESKDAQ dIl ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K_StoptStreamEventIP char IPaddress Parameters IPaddress Stream data event source IP address Return 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 E5
14. AlType buffer pointer to store the Channel Type See sec 8 2 Return Code refer to the Error code 123 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 E5K_SetAlChannelType Lib ESKDAQ dIl ByVal id As Integer ByVal AlChannel As Integer ByVal AlType 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 E5K_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 Id the target module id Chno channel number CjOffset channel CJC offset value such as 0 231 Return Code refer to the Error code 124 EDAM 5000 User s manual 11 48 E5K_ReadSingleChannelColdJunctionOffset Description Read cold junction offset of single analog cha
15. 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 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_RecvASCIl 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 114 EDAM 5000 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 ESK
16. EDAM 5028 MIT TS 42 4 4 1 Interface CONNECTION E 42 4 4 2 Digital input Wiling D 42 4 4 3 Digital output wiring DEE 43 4 5 EDAM 5029 wiring eene 43 4 5 1 Interface CONSOMME Le een eee eee e eee een lee ee epee EEE 43 4 5 2 Digital input il e DEE 44 4 5 3 Digital Output Wifing essen 44 4 6 TEDAM SOBDWIING ee 45 4 6 1 Interface CONDE 61 1 10 EE 45 4 6 2 Digital input Warning ses cs esse ee ak ak et a tn ee 45 4 6 3 Digital Output WINING enee SPERSPERSRERUFERSPERSPERSBERUFERSPERSPERSBERUFERSPERSTEREREESTERRR 46 Chapter 5 Modbus Command structure lt lt 47 EN NO 5 Ile En 1 164 TE 47 5 2 M dbus funetion c de introdueli ns rss gege 48 Chapter 6 Modbus Address Mapping lt lt lt lt 49 6 1 Modbus mapping of EDMASO15 EE 49 6 1 1 Register address unit 11 EE 49 6 1 2 Bitaddress Unit e 63464 49 6 2 Modbus mapping of EDMASOT ae Haie 50 6 2 1 Register address unit 16 bits 50 6 2 2 Bir address uni V Di nenne ann nennen en 51 6 3 Modbus mapping orEDMASUTIIH eee 52 6 3 1 Register address unit 16 bits 52 6 3 2 Bitaddress unit 1 CT EE 53 6 4 Modbus mapping of EDMA5028 54 6 4 1 Register address unit EC cs cn ec sc a rer 54 6 4 2 Bit address 111 een D EE 55 6 5 Modbus mapping of EDMASO29 nn nee hen 56 6 5 1 Register address unit 16 bits 56 6 5 2 Bitaddress unit 087 57 6 6 Modbus mapping of EDMAOGU 58 6 6 1
17. Examples 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 ifthe 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 01B cr Response 010101 cr Channel 0 8 are open wiring and channel 1 7 and 9 15 are all normal 77 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 AAB cr is a delimiter character AA range 00 3F represents the 2 character hexadecimal address of module B is the Enable disable burnout command cr is the terminating
18. IAA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 0523 cr Response 05 cr Valid command 05 Module ID 23 Set 23 Hex to Digital output channels channel 0 1 5 are active other channels are inactive 86 EDAM 5000 User s manual 10 37 AAnnnn 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 IAA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh Command 050023 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 IAA cr Valid command AA cr 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 Digi
19. long Resp_data 15 lt lt 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 91946744 Chan 1 Counts 842225154 59 EDAM 5000 User s manual 7 2 How to convert Modbus data to Al voltage temperature Formula Actual Channel voltage Modbus register value Max range of channel type 32767 Example 1 written with C Read analog input channel with type of voltage current Assume the type of Channel 0 is 2 5V Channel 1 is 2 5V and Channel 2 is 4 20mA Send Request command as Note 0x7656 30294 start address of Al normal channel 0 01 04 76 56 00 03 Total Channels 3 Start Channel 0 Modbus function 4 Module Address 1 Receive Response from module as 01 04 06 65 7A FO 08 5E F8 Ce Channel 2 data big endian Channel 1 data big endian Channel 0 data big endian Total data bytes 6 Modbus function 4 Module Address double Chan0_voltage Chan1_voltage Chan2_current 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 06 total data bytes Il Resp_data 9 10 0x65 0x7A data of channel 0 Il Resp_data 11 12 0xF0 0x08 data of channel 1 Il Resp_data 13 14 0x5E 0xF8 data of channel 2 short Chan0_data short Resp_data 9 lt lt 8 Resp_data 10 0x657A 25978 short Chan1_data short Resp_data 11 lt l
20. 88 10 40 AAOBnn Set the Digital 2 s byte DO8 DO15 Output 88 10 41 AAOCnn Set the Digital 3 s byte DO16 DO23 Output 89 10 42 AAnn Read digital input counter sise 89 10 43 AACn Clear digital input counter lt lt lt lt lt lt lt lt lt lt lt lt lt lt gt gt gt gt gt gt gt gt gt gt gt 90 10 44 AACnn Clear digital input counter 90 10 45 AALS Read the latched DI status 91 10 46 AAC Clear the latched DI status ricco 91 10 47 AA9nn Read Single Do Pulse High Low Width 92 10 48 AA9nnhhhhilll Set Single Do Pulse High Low Width 92 10 49 AAAnn Read Single Do High Low Delay Width 93 10 50 AAAnnhhhhilll Set Single Do High Low Delay Width 93 10 51 AABnn Read Single Do Pulse amp 0011 lt lt 94 10 52 AA2nncccc Write Single Do Pulse Counts AAA 94 10 53 AA3nns Start Stop DO Pulse Counts lt lt 95 10 54 AA4v Read the Power On Safe Value A 95 10 55 AA5v Set current Do value as power on safe value 96 10 56 AA5vnnnnnn Set specified value as power on safe value 96 10 57 AAD Read DI O active state 97 10
21. Clear DI 2 counter value command 01C02 cr Response 01 cr 90 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 ODh 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 ODh 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 91 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 if an invalid operation was entered delimiter indicating a valid command was received delimiter indicating the command was invalid AA represents the 2 character hexadecimal
22. Of Channel 14 0x0E 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 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 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 73 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 module 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
23. 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 01E 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 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
24. 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 50175019 AlarmEventChannel short Return the alarm channel number 5015 5017 5019 AlarmEventiD short Return the ID address of alarm model 5015 5017 5019 AlarmEventiP string Return the IP address of alarm model All models A
25. 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 Read Maximum Value Of All Channels 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 data 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 10
26. 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 01 AL 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 75 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 terminating character carriage return ODh AA cr if the command is valid or AA cr if the command is invalid There is no response ifthe module detects a syntax error or
27. bit n 1 Flash LED n FlashCounts Flash counts Return Code refer to the Error code 119 EDAM 5000 User s manual 11 38 E5K_IsValidiIPAddress 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 ESKDAQ dIl ByVal zIP As String As Integer VC see ESKDAQ h unsigned short E5K_IsValidIPAddress 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 _ as integer VC BC Builder see ESKDAQ h unsigned short E5K_GetLocallP char 120 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 120 EDAM 5000 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 ESKDAQ
28. character carriage return ODh AAbb cr if the command is valid or AA cr if the command is invalid There is no response ifthe 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 is the 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 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 comma
29. configuration of the specified DI channel 11 74 E5K_ReadDIStatus Read DI status 11 75 E5K_ReadDILatch 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 100 EDAM 5000 User s manual 11 4 E5K_SearchModules Description Search all connected EDAM5000 modules Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SearchModules Lib ESKDAQ dIl pd as E5K_DEVICE_ID_INFO interface_type as integer as integer VC BC Builder see ESKDAQ h unsigned short E5K_SearchModules E5K_DEVICE_ID_INFO pd unsigned int interface_type Parameters pd points to a structure E5K_DEVICE_ID_INFO interface type indicate what connection be used for searchi
30. 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 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 20 uV C Span dri
31. 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 E5KDAQ 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 118 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 n 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 E5K_FlashLED Lib ESKDAQ dll ByVal id As Integer ByVal LedMask As Integer FlashCount As Long As Integer 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
32. 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 71 EDAM 5000 User s manual 10 10 AAMLn Read Minimum Value Of Specified Channel Description Syntax Response Example Example 10 11 AAML Description Syntax Response E
33. 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 analog input normal value double fAiMaxValue 16 analog 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_INFO to callback function 151 EDAM 5000 User s manual Chapter 14 E5KDAQ ActiveX control 14 1 Properties of ESKDSAQ ActiveX control Name
34. 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 7 1000 volts 7 4712 volts 7 2555 volts 7 1234 volts and 7 5678 volts The average value is 3 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 68 EDAM 5000 User s manual 10 4 AAn Read the single analog input Description Syntax Response Example 10 5 AAMH Description Syntax Response Example 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 0 to F 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
35. 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 ESKDAQ dIl _ 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 Id the target module id Cjs CJC enable disable option 0 disable 1 enable Return Code refer to the Error code 127 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 E5K_ReadAIChannelConfig Lib ESKDAQ dIl ByVal id As Integer ByVal chno As Integer ByRef mConfig As AI 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 ESKDAQ H about structure CHANNEL_CONFIG Return 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 E5K_SetA
36. nn 20 3 2 EDAM 5017 Frontside connectors Lerro neice meaner citi nie 22 3 3 EDAM 5019 Front side connectors 24 34 EDAM 5028 Front side connectors ire arreter rte ane res 26 3 5 EDAM 5029 Front side connectors 28 3 6 EDAM 5060 e Ee Eet 30 3 7 EDAM 5000 Rear side connectors i 32 3 8 EDAM 5000 reset switch and CIC Sensor russian 33 3 9 EDAM 5015 Analog Digital I O block diagram nnnn 34 3 10 EDAM 5017 Analog Digital I O block diagram nn nn n nenn nen nennen 34 3 11 EDAM 5019 Analog Digital I O block diagram 35 3 12 EDAM 5028 Analog Digital I O block diagram nn nenn nennen nnnnne 35 3 13 EDAM 5029 Analog Digital I O block diagram nennen nnnnnn 36 3 14 EDAM 5060 Analog Digital I O block diagram 36 Chapter A Application wiring 000u ui 37 dI VEDAM SOTISWING are ee DIE 37 4 1 1 Interface Connection E 37 4 1 2 Analog INPUEMINMNQE dirt din indie dir Midi dl le Ne Ar An 37 42 VEDAM SOTZMIING ses nu ea 38 4 2 1 Interface connection EE 38 4227 Analog WOU WINING WEE 38 EDAM 5000 User s manual 4 2 3 Digital Tele e GE 39 4 2 4 Digital output wiring Etes ne ee ia 39 4 53 N EDAM SOTSWIIING EE 40 4 3 1 Int rface COTM sanken 40 4 3 2 Anal g iNDULWINNG E 40 4 3 3 Digital input it 16 DEE 41 4 3 4 Digital output WINING ers srl 41 44
37. of channel 0 Il Resp_data 11 12 0xF0 0x08 data of channel 1 short Chan0_data short Resp_data 9 lt lt 8 Resp_data 10 0x657A 25978 short Chan1_data short Resp_data 11 lt lt 8 Resp_data 12 0xF008 4088 Chan0_Temp double Chant data 1370 32767 K type has max temp 1370 Chan1_Temp double Chan1_data 760 32767 J type has max temp 760 printf n rChan 0 Temperature 000 002f C Chan0O Temp printf n rChan 1 Temperature 000 002f C Chan1_Temp Result Chan 0 Temperature 1086 15 C Chan 1 Temperature 094 82 C 61 EDAM 5000 User s manual Example 3 written with C Read analog input channel with type of temperature Assume Modbus data format is set to engineering format 1 Assume the type of Channel 0 is T C K type Channel 1 is T C J type 2 Send Request command as Note 0x7656 30294 start address of Al normal channel 0 01 04 76 56 00 02 Total Channels 2 Start Channel 0 Modbus function 4 Module Address 3 Receive Response from module as 01 04 04 01 45 FF 03 Channel 1 data big endian Channel 0 data big endian Total data bytes 4 Modbus function 4 Module Address double Chant Temp Chan Temp 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 04 total data bytes Il Resp_data 9 10 0x65 0x7A data of channel 0 Il Resp_data 11 12 0xF0 0x08 d
38. 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 0 1 and 8 to be in average mode only 74 EDAM 5000 User s manual 10 16 AAAL Description Syntax Response Example Read AD high low Alarm Status 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 ODh 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 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
39. range 00 3F represents the 2 character hexadecimal address of module H 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 er 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 83 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 AA00 data1 data2 cr if the command is valid AA cr if an 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 hexadecimal value representing the values of the digital input channels data2 an 8 characters hexadecimal value representing the values of the digital output channels
40. see ESKDAQ h unsigned short E5K_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 137 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 E5K_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 E5K_SetDIChannelConfig Lib E5KDAQ dil ByVal id As Integer ByVal chn As Integer config As DI CHANNEL CONFIG As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetDIChannelConfig int id unsigned int chn DI_CHANNEL_ CONFIG config Parameters Id the target module id Chn DI channel number Config points to a structure buffer where stores the DI configuration paramet
41. vb Declare public Function E5K_SetDOSingleChannel Lib E5KDAQ dIl _ 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 ESK_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 143 EDAM 5000 User s manual 11 84 E5K_ReadDOPulseWidth Description Read pulse high low width of specified DO channel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDOPulseWidth Lib ESKDAQ dll ByVal id As Integer ByVal dochn As Integer ByRef highwidth As Long ByRef Lowwidth As Lo
42. 0 0C 200C 5015 0x28 RTD JIS Pt100 0C 400C 5015 0x29 RTD JIS Pt100 200C 200C 5015 0x2A RTD Pt1000 40C 160C 5015 0x2B RTD Ni 80C 100C 5015 0x2C RTD Ni 0C 100C 5015 64 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 65 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 AAE 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 Ala
43. 0 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 0000 OxFFFF R W in 0 5msec N 0208 N 0215 0 7 Digital output pulse high width 0000 OxFFFF R W 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 0x0000 0xFFFF 54 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 0 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 0 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 da
44. 00 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 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 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 69 EDAM 5000 User s manual 10 6 AAMHn Description Syntax Response Example Example 10 7 AAMH Description Syntax Response 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 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 respons
45. 000000 0000000000 OOO 45 EDAM 5000 User s manual 4 6 3 Digital output wiring 10V 30V 46 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 certain 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 indentifie
46. 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 0 disable no generate interrupt or event 1 enable generate interrupt or event for USB Ethernet connections only N 0224 N 0239 0 15 Start Stop DO pulse output R W 0 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 57 EDAM 5000 User s manual 6 6 Modbus mapping of EDMA5060 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 0x0OFFF 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 inpu
47. 030 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 79 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 s the enable disable CJC command N 0 disable CJC n 1 enable CJC cr s 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 s a delimiter character indicating a valid command was received AA range 00 FF represents the 2 character hexadecimal address of modul
48. 110 E5K_WriteModbusDiscrete ss 111 E5K_WriteModbusRegister E 112 E5K_ReadModbusRegister 112 E5K ReadaModbusDiscreler nein aan 113 E5K_SendASCRequestAndWaitResponse nn 114 ESK REBVASEH ee 114 al Ee ee re 115 E5K_SendHEXRequestAndWaitResponse nn 116 tele 1 EE 117 ESKHRSEY HIER ni tI NARA 117 E5K CaleulateC Re 16v nennen 118 le RE Le E 118 ah MUER 119 ES FASREED 119 ESK Seege 120 ES gt nes ER 120 ESK EO TEE 121 ESK NEP SeMmd Did EE 121 EK ker ER E DEE 122 ESK e ll EE 122 OK MGR DISGORMME GL en needs ads ee 123 e e Ei in RK EE 123 Te Ei ERR 124 E5K_SetSingleChannelColdJunctionOffset nn 124 E5K_ReadSingleChannelColdJunctionOffset 125 E5K_ReadMultiChannelColdJunctionOffset nn nnnrennneennnnn na 125 5_ 0 01061401 1661040120006 1 126 BOK ReadColdJuncton Temperature ET 126 E5K_ReadColdJunctionStatus ss 127 EDAM 5000 User s manual 11 93 HONS Old JUNCHON EEN 127 11 54 E5K_ReadAlChannelConfig lt lt lt lt lt lt lt 128 11 55 E5K_SetAlChannelConfig E 128 11 56 E5K_ReadAlBurnOutS
49. 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 0348 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 52 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 0 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 0 disable DO pulse output 1 enable DO pulse out until Digital output pulse c
50. 23 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 011 Digital Input channel 1 DI2 Digital Input channel 2 DI3 Digital Input channel 3 DI4 Digital Input channel 4 DIS Digital Input channel 5 DIG 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 Isol
51. 58 AADvn Set DIVO active state scalza 97 Chapter 11 ESKD AG ET 98 Th 00001 0 98 11 2 Analog UNCION S 99 118 IDIOMUNCHONS se ae 100 11 4 Tee EE 101 11 5 HE EE Eeer ns ts sn 101 11 6 ee ET 102 11 2 YESK OpenMoQuUlBEEOM saure 103 11 8 E et ET 103 11 9 EIS elD 2 _ 1 een ere 104 11 10 E5K_VerifyPassWord negli lai iene 104 11 11 ee e DE 105 11 12 TE Ee EE E 105 EDAM 5000 User s manual 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 11 51 11 52 Bok SetRXTiMeQUtOptioN EE 106 d ET 106 E5K StopAlarmEventlP arena 107 ESK StarlAlammEventl SBrase nasser RER RER se 107 01 0006 0 0 093 0 0 00 0 00046460 0 0 108 ESK ReadAlarmEventDatta u nenne an 108 SK EECHER 108 E5K_StopStreamE vent ss 109 ESK 16 10 1 11 1 17 ENEE 109 61 0006000600100 lt lt lt lt lt lt lt 110 6 _ 00000060
52. 5K_SetDOPowerOnValue ee ee ee 146 11 89 ESK REadDOPOWwerOm ET 146 11 90 e Ree 147 11 91 E5K SetDIOActiveLevel EENS 148 Chapter 12 E5KDAQ DLL Error COde nn enenennnnennneenennenennnnnnnennnenennee 149 EDAM 5000 User s manual Chapter 13 Event Stream Interrupt structure Li 151 13 1 Event interrupt structure za 151 13 2 Stream interrupt SCHEUER 151 Chapter 14 E5KDAQ ActiveX control nuuuuunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 152 14 1 Properties of ESKDSAQ ActiveX Control 152 14 2 Methods of ESKDAQ ActiveX Control 153 14 3 Events of ESKDA ActiveX Tute ET 153 Chapter 15 Firmware Update uuunnunsssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnn 154 Version 1 3 October 3 2011 EDAM 5000 User s manual Chapter 1 Major Features 1 1 Multi Interface DA amp C HO 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 Intelli
53. AQ 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_ClearAllDILatch 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 140 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 E5K_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 Function 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
54. DAQ dII ByVal id As Integer ByVal Txstring As String as integer VC see ESKDAQ h unsigned short E5K_SendASCll int id char Txbuffer Parameters id module ID address Txstring points ASCII string buffer Return Code refer to the Error code 115 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 E5BKDAQ 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 cTxDatal unsigned int wTxlen unsigned char cRxdatal unsigned int wRxlen unsigned int buffersize Parameters id module ID address cTxDatal points to binary data buffer wTxlen how many bytes be sent cRxdatal 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 116 EDAM 5000 User s manual 11 32 E5K_SendHEX Description Send an Hex data to the module Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SendHex Lib E5KDAQ dll ByVal id As Integer Byref Hexdata As By
55. 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 4 January 11 2012 EDAM 5000 User s manual Table of Contents Chapter 1 Major Features lt lt 9 1 1 Multi Interface Tele 9 1 2 Intelligent VO 001 5 lt lt 9 1 3 Mixed I O in One Module to fit all applications 9 1 4 Modbus TCP and RTU protocol supported for open connectivity 9 E SE e lee EE 9 1 6 Common technical specification of EDAM OO 10 it Dimensions ee ea ee e Ee 11 1 8 System REqULEMENSzen tr nt tan ne net ne nn re 13 1 PO modules MIN ess ne den eiae 61986469646464006464 na 13 Chapter 2 SpeCiiicaons an ana 14 2 1 EDAM 5015 SpeGiicatioNs ocio 14 2 2 VEBAM 5017 specifications EE 15 2 3 EDAM 5019 specifications oe ee aaa at 16 2 4 EDAM 5028 specifications EE 17 2 9 VEDANE SS E Ee 0 1 EE 18 26 EDAM 5060 specifications see 19 Chapter 3 Connector pin assignment uusssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 20 3 1 EDAM 5015 Front side connectors un
56. K_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 109 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 ESKDAQ dIl 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 Return Code refer to the Error code 110 EDAM 5000 User s manual 11 24 E5K_WriteModbusDiscrete Description Write data to Modbus discrete Modbus coil Syntax Visual Basic VB Net
57. Lib ESKDAQ dIl 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_OpendModuleIP function for Ethernet Connection only Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_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 104 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 E5K_ChangePassWord Lib ESKDAQ dIl ByVal id As Integer _ ByVal OldPassword As String _ ByVal Oldlength As Integer _ ByVal NewPassword As String _ ByVal Newlength As Integer As Inte
58. RC16 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_IsValidIPAddress 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 98 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 cold 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 con
59. Register address unit 16 bits 58 EDAM 5000 User s manual 66 2 Bil adaress umit DIL EE 58 Chapter 7 Modbus data conversion lt lt lt lt 59 7 1 How to calculate DI counter value AA 59 7 2 How to convert Modbus data to Al voltaoetemperature 60 Chapter 8 Analog and digital UO channel type ns 63 EN HDichannel e EE 63 8 2 AI CHanMel DEIER 64 Chapter 9 TCP IP port assignments un 65 Chapter 10 ASCII 601008110 lt lt 4 lt lt iraniani 66 10 1 Been Mul EEN 66 10 2 Digital eu 67 10 3 AA Read the analog Inputs of all 68 10 4 AAn Read the single analog input ss 69 10 5 AAMH Read Maximum Value Of All Channels nenene 69 10 6 AAMHn Read Maximum Value of Specified Channel 70 10 7 AAMH Clear All Maximum Value siennes ER 70 10 3 AAMHn Clear Maximum value Of specified Channel 71 10 9 AAML Read Minimum Value Of All Channels ernennen 71 10 10 AAMLn Read Minimum Value Of Specified Channel 72 10 11 AAML Clear All Minimum Value esse 72 10 12 AAMLn Clear Minimum Value Of specified Channel 73 10 13 AAAV Read Average EE 73 10 14 AAE Read Channel Average Enable Disable Status 74 10 15 AAEnnnn Disable Enable Channel in Average 74 10 16 AAAL Read AD high low Alarm Status
60. S I NM I N NN t Figure 10 158 EDAM 5000 User s manual 10 Click Reboot button to reboot the module eDAM 5000 Utility 92 10 2011 07 07 DLL Ver 1 6 159
61. SB cable Ethernet Cable 10V 30V PWR USB RJ 45 Ext Power 10V 30V EDAM 5028 DCH el Power GND RS232 GND lo EINIG USB Par QI RS485 DATA or RS232 TX gt Si QI RS485 DATA or RS232 RX 4 4 2 Digital input wiring 0000000000 0000000000 3 00000000 000000000 SS aS SS ET EH EES SS SSS SS E E DOLOLOOOOOO 0 O 5V 24V Wet Contact Dry Contact 42 EDAM 5000 User s manual 4 4 3 Digital output wiring 4 5 4 5 1 00000000 QO 10 10V 30V DO EDAM 5029 wiring Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 30V PWR USB RJ 45 EDAM 5029 t LINK USB PWR i i N 43 Ext Power 10V 30V Power GND RS232 GND RS485 DATA or RS232 TX RS485 DATA or RS232 RX EDAM 5000 User s manual 4 5 2 Digital input wiring 5V 24V Dry Contact Wet Contact 4 5 3 Digital output wiring 10V 30V 44 EDAM 5000 User s manual 4 6 EDAM 5060 wiring 4 6 1 Interface connection DC Power Adaptor USB cable Ethernet Cable 10V 30V PWR USB RJ 45 Ext Power 10V 30V Ol Power GND RS232 GND QI RS485 DATA or RS232 TX QI RS485 DATA or RS232 RX EDAM 5060 LINK USB PWR 4 6 2 Digital input wiring DI ooo COOC QI Din Wet contact Din Dry contact 5V 24V 0000000 0000
62. _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 RxTimeoutinterval 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 E5KDAQ dIl As Integer VC see ESKDAQ h unsigned short E5K_CloseModules void Parameters none no parameters Return Code refer to the Error code 103 EDAM 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 E5K_GetDLLVersion
63. 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 Description Command Syntax Response Example Read Single Do Pulse High Low Width 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 in 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 termina
64. alue will start decreasing after calling E5K_StartDOPulse Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function ERR 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 145 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 E5K_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 ReadDOPowerOnvValue Description Read DO power on value Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadDOPowerOnValue Lib ESKDAQ dII ByVal id As Integer ByRef Dopoweron As Long As Integer VC see ESKDAQ h unsigned short E5K_ReadDOPowerOnvValue int id unsigned long PowerOnValue Parameters id module ID address poweronvalue points to a 32 bit buffer to stor
65. annel 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 UO ranges on all channels It accepts Various Digital inputs MOSFET outputs and provides data to the host computer Digital Input Channels 16 channels Input type Voltage logic 0 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 0 for 3Vdc maximum logic 1 for 5 0 minimums or Switch On Off Isolation voltage 2000 V Relay Output Relay Channel 10 Relay outpu
66. annel 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 e o e DIO AIO e Di 21 e 20 Al2 Al3 Al4 AIS AIS Al7 AIB 219 4110 Al11 21126 4113 21146 4115 22 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 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 011 Digital Input channel 1 DOO Digital Output channel 0 IGND Isolated Digital GND
67. artAlarmEventIP Start alarm event from IP Ethernet only 11 14 E5K_StopAlarmEventIP 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 binary 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_CalculateC
68. ata of channel 1 short Chan0_data short Resp_data 9 lt lt 8 Resp_data 10 0x0145 325 short Chan1_data short Resp_data 11 lt lt 8 Resp_data 12 0Xff03 253 Chan0_Temp double Chant data 10 Chan1_Temp double Chan1_data 10 printf n rChan 0 Temperature 000 002f C Chan0O Temp printf n rChan 1 Temperature 000 002f C Chan1_Temp Result Chan 0 Temperature 32 50 C Chan 1 Temperature 25 30 C 62 EDAM 5000 User s manual Chapter 8 Analog and digital l O channel type 8 1 DI channel types Code Type Models 00 01 DI transparent Counter 5017 5019 5028 5029 5060 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 63 EDAM 5000 User s manual 8 2 Al channel types Code Type and Range Models 0x09 2 5V 5017 5019 Ox0A 1V 5017 5019 0x0B 500mV 5017 5019 0x0C 150mV 5017 5019 0x0D 0 20mA 125 ohms 5017 5019 Ox0E 4 20mA 125 ohms 5017 5019 0x20 RTD IEC Pt100 50C 150C 5015 0x21 RTD IEC Pt100 0C 100C 5015 0x22 RTD IEC Pt100 0C 200C 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 OC 100C 5015 0x27 RTD JIS Pt10
69. ated 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 DOO DIO DO1 011 002 012 DO3 DI3 DO4 014 DOS DIS DO6 DIG DO7 DI7 DO8 DI8 DO9 DI9 DO10 DI10 DO11 DI11 DO12 DI12 DO13 DI13 DO14 DI14 DO15 0115 28 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 111 Digital Input channel 1 DI2 Digital Input channel 2 DI3 Digital Input channel 3 DI4 Digital Input channel 4 DIS Digital Input channel 5 DI6 Digital Input channel 6 DI7 Digital Input channel 7 118 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 DOS Digital Output channel 8 DO9 Dig
70. ax 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 95 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 96 AA5vnnnnnn 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 nnnnnn represents DO power on safe value cr Carriage return AA cr if
71. 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 x 1 clear low alarm status of channel x bit x 0 no clear 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 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 01L0101 cr Response 01 cr Clear low alarm status of channel 0 and 4 76 EDAM 5000 User s manual 10 19 AAB Read Channel Burnout Status Description Syntax Response
72. counts command nn is DO channel number cccc represents DO pulse output counts cr is the terminating character carriage return ODh AA cr H the command is valid AA cr if an 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 94 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 if an 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 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 Synt
73. 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 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 syntax error or communication error delimiter character indicates a valid command was received delimiter character indicates the command was invalid AA range 00 FF r
74. dIl 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 E5KDAQ 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 121 EDAM 5000 User s manual 11 42 E5K_TCPRecvData Description Receive data from TCP connection Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_TCPRecvData 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 sh
75. ding 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 regel points data buffer Return Code refer to the Error code 112 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 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_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 read points data buffer Discrete n 0 or 1 of Modbus coil or discrete input address startaddr n 0 lt n lt counts 113 EDAM 5000 User s manual 11 28 E5K SendASCRequestAndWaitResponse
76. e cr s the 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 is a 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 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 the same cold junction offset to 0010 Hex 0 01 0 16C 80 EDAM 5000 User s manual 10 26 AA9c Description Syntax Response Examples Examples Read single channel CJC Offset read cold junction offset of specified channel AA9c cr isa delimiter character AA 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 carr
77. e DO power on value Return Code refer to the Error code 146 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 147 EDAM 5000 User s manual 11 91 E5K SetDIOActiveLevel Description Set DI DO active level options Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_SetDIOActiveLevel Lib E5KDAQ 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 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
78. e 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 01 MH2 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 Clear All Maximum Value 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 invalid 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 Val
79. egister 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 48 EDAM 5000 User s manual Chapter 6 Modbus Address Mapping 6 1 Modbus mapping of EDMA5015 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 Functio
80. el 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 O Oxffff R W X 0176 N 0176 0 Digital output pulse low width OO00 OxFFFF R W 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 OxFFFF N 0273 N 0273 16 31 Digital power on value DO16 DO31 R W 0x0000 OxFFFF 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
81. epresents 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 is the 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 i 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 84 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 character AA range 00 FF represents the 2 character hexadecimal address of module ZC is the Set channel type command i channel number rr channel type code cr is the termi
82. er 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 131 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 ESKDAQ dIl ByVal id As Integer ByVal AlEnable As Long As Integer VC BC Builder see ESKDAQ h unsigned short E5K_SetAlChannelEnable int id unsigned int AlEnable Parameters Id the target module id
83. erefore 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 Bus 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 IO 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
84. ers see ESKDAQ H Return Code refer to the Error code 138 EDAM 5000 User s manual 11 74 E5K_ReadDiIChannelConfig 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 ld 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 ESKDAQ dIl ByVal id As Integer ByRef Didata As Long As Integer VC see ESKDAQ h unsigned short E5K_ReadDIiStatus 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 139 EDAM 5000 User s manual 11 76 E5K_ReadDiLatch Description Read 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 ESKD
85. figuration of the specified Al channel 11 55 E5K_ReadAIBurnOutStatus 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 Set Al filter frequency 11 60 E5K_ReadAI ModuleFilter 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_ReadAINormalMultiChannel Read AI normal value of multiple AI channels 11 64 E5K_ReadAlMaximunMultiChannel Read AI maximum value of multiple AI 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_ResetAIHighAlarm Reset high alarm flag of the specified AI channels 11 69 E5K_ResetAlLowAlarm Reset low alarm flag of the specified Al channels 11 70 E5K_ReadAlChannelAverage Read in average status of Al channels 11 71 E5K_SetAlChannelAverage Enable Al channels in average 11 72 99 EDAM 5000 User s manual 11 3 DIO functions Function name Description Sec E5K_SetDIChannelConfig Set configuration of the specified DI channel 11 73 E5K_ReadDIChannelConfig Read
86. fore terminating the APP ReadAlarmEventDa None boolean Return the status of alarm data ta 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 None be called when error occurred string Errmsg out 153 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 Module ID address to 3FH A0 A1 A2 A3 A4 A5 to ON position ID Address Interface pbooonoo oo AO Al A2 A3 A4 85 232 485 CAN Figure 1 Where AO bit 0 of ID address A1 bit 1 of ID address A2 bit 2 of ID address A3 bit 3 of ID address A4 bit 4
87. ft 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 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 lt Vin lt 3Vdc logic 1 for 5V lt 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 requireme
88. gent UO 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 design 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 Th
89. ger 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 dIl last error code Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_GetLastErrorCode Lib E5KDAQ dil As Integer VC see ESKDAQ h unsigned short E5K_GetLastErrorCode void Parameters none no parameters Return Code 105 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 E5KDAQ vb Declare public Function E5K_SetRXTimeOutOption Lib E5KDAQ dil _ 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 Return Code refer to the Error code 11 14 E5K_StartAlarmEventiP Description Start alarm event from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Functio
90. hhhllll 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 AAS5vnnnnnn 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 67 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 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 is a delimiter character data is the input value in the configured data format of the module cr is the terminating character carriage return 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
91. iage 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 81 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 isa delimiter 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
92. inactive 88 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 isthe terminating character carriage return ODh Response Example IAA 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 ODh 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 nnnnnnnn represents 4 bytes counter value cr is the terminating character carriage return ODh Read DI latch status command 0102 cr Res
93. 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 129 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 E5K_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_ReadAIBurnOut Lib E5KDAQ dn ByVal id As Integer ByRef option As Byte As Integer VC BC Builder see ESKDAQ h unsigned short E5K_ReadAIBurnOut int id SBYTE option Parameters Id the target module 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 130 EDAM 5000 Us
94. ital 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 RLYO DIO RLY1 011 112 012 1 013 14 014 5 DIS RLY6 DIG RLY7 DI7 RLY8 DI8 RLY9 DI9 DI10 DI11 DI12 30 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 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 I
95. lChannelConfig 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 128 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 E5K_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_ReadAlAlarmStatus Lib E5KDAQ dil 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
96. larmEventStatus 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 DIChannelIndex 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 5060 DOChannels short Return the total DO channels of model 5017 5019 5028 5029 5060 DOOulseCounts long Set the output count value for the specified DO channel which 5017 5019 5028 152 EDAM 5000 Use
97. le The Tempearature sensor cold junction compensation CJC is avalibale for EDAM5019 only CH CIC Reset 33 EDAM 5000 User s manual 3 9 EDAM 5015 Analog Digital UO block diagram VCC eDAM 5015 Photo Isolation Micro INIT processor EEPROM Power supply Isolated Power 3 10 EDAM 5017 Analog Digital UO block diagram 3 3V 5V ISO 15V eDAM 5017 Micro INIT processor EEPROM Data Data VS GND 34 EDAM 5000 User s manual 3 11 EDAM 5019 Analog Digital UO block diagram 3 3V 5V ISO 15V eDAM 5019 Micro INIT processor EEPROM Data Data VS GND 15V eDAM 5028 DIO DI23 EVCC INIT processor EEPROM DOO Data Data S vs DO7 GND IGND 35 EDAM 5000 User s manual 3 13 EDAM 5029 Analog Digital UO block diagram 15V eDAM 5029 DI15 EVCC INIT processor EEPROM Data RA Data e Ka DO15 GND IGND 15V eDAM 5060 processor EEPROM DIE 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 30V PWR USB RJ 45 Ext Power 10V 30V EDAM 5015 DCH el Power GND RS232 GND lO Bs HS one QI RS485 DATA or RS232 TX ell gl QI RS485 DATA or RS232 RX 4 1 2 Analog input wiring RS485 DATA RS485 DATA
98. lue of channel startch 1 Altemp 2 normal value of channel startch 2 Return Code refer to the Error code 133 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_ReadAIMaximumMultiChannel 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 134 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_ReadAIMinimunMultiChannel 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_ReadAIMinimunMultiChannel int id unsigned int startch
99. n RATIS E5060BIOS_M20 bin BDSM gz WERIT Binary Files scr v ee Figure 6 156 EDAM 5000 User s manual 6 Click Download button to start to update firmware see Figure 7 D eDAM 5000 Utility 92 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name Load File Target D Oo Target Name Status Idle Figure 7 7 The Utility is searching module Power off Jon the module or press Reset button at the down side of the module to reboot the module see Figure 8 D eDAM 5000 Utility 2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name 5BI0S_HTTP_M21 bin oad File Target ID 3F Hex Target Name 5015 Status 100 completed 35400H 215Kbytes Figure 8 157 EDAM 5000 User s manual 8 If module found The Target ready window pop up see Figure 9 Click OK button to start 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 3F Hex Status Idle Figure 9 9 The progress bar shows the progress of updating firmware see Figure 10 File Name E501 SBIOS_HTTP_M21 bin Target ID 3F Hex Target Name 501 5 Cancel Exit DI amp DM
100. n 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 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 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 O 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 49 EDAM 5000 User s manual 6 2 Modbus mapping of EDMA5017 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 Chann
101. n E5K_StartAlarmEventIP Lib E5KDAQ dIl ByVal IPaddress As string As Integer VC see ESKDAQ h Int E5K_StartAlarmEventIP char IPaddress Parameters IPaddress Alarm event source IP address Return Code refer to the Error code 106 EDAM 5000 User s manual 11 15 E5K_StopAlarmEventIP Description Stop alarm event from IP Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_StopAlarmEventIP 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 E5K_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 107 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 E5K_StopAlarmEventUSB Lib ESKDAQ dIl 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
102. nating 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 ODh Example Command 01S1 cr Response 01 cr Reloads the Default configuration 85 EDAM 5000 User s manual 10 35 AA Description Syntax Response Example 10 36 AAnn Description Syntax Response Exam
103. nd 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 78 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 ti 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 ODh 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 0
104. ng 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 E5KDAQ dll 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 144 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 id 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 v
105. ng 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 E5K_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 101 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 E5K_OpenModulelP Lib ESKDAQ dIl ByVal IP As String Byval Byval ConnecttimeOut as long Byval RxTotalTimeOut as long Byval RxTimeoutinterval 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 timeout interval msec RxTimeOutinterval receive character timeout interval msec Return Code Return the ID address of module if open success 102 EDAM 5000 User s manual 11 7 E5K
106. ng character carriage return 0Dh 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 01 ML cr Response 01 cr Clear Minimum Value Of all Channels 72 EDAM 5000 User s manual 10 12 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 channel0 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 01MLE cr Response 01 cr Clear Minimum Value
107. nnel Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_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 E5K_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 125 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
108. nput channel 15 DIO Digital Input channel 0 011 Digital Input channel 1 DOO Digital Output channel 0 IGND Isolated Digital GND 31 EDAM 5000 User s manual 3 7 EDAM 5000 Rear side connectors There are two 6 pin DIP switches labeled as ID address and Interface ID address switch is used for setting ID address of module KI N y RN RN NI N NS NI 1 2 ON logic 1 OFF logic 0 AO Al A2 A3 AA A5 Where AO bit 0 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 A0 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 modu
109. nput 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 in is only available for the module which has digital output channels 97 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 only 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_St
110. nts 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 o C K type 0 13700 C T type 100 400 o C E type 0 1000 o C R type 500 1750 o C S type 500 17500 C B type 500 1800 o C Sampling rate 10 samples sec 20 samples sec 50 samples sec Input impedance 10 MQ Accuracy 0 15 or better Zero drift 6 uV C Span drift 25 ppm C Digital Input Input Channel 2 channels Input Type Voltage logic 0 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 Isolation 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 UO 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 0 for 3Vdc maximum logic 1 for 5Vdc minimums or Switch On Off Isolation voltage 2000 V Digital Output Output Ch
111. ode 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 149 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 150 EDAM 5000 User s manual Chapter 13 Event Stream Interrupt structure 13 1 Event interrupt structure typedef struct EVENT_INTERRUPT_INFO 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
112. of ID address A5 bit 5 of ID address 2 Connect EDAM module to USB hub 103 9 mm Figure 2 154 EDAM 5000 User s manual 3 Executes provided EDAM5000 utility called E5KUtility exe see Figure 3 eDAM 5000 Utility 2 10 2011 07 07 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Communication Inteface JU fazio e Dout Status Search Completed Device List Figure 3 4 Click Firmware Update in the menu bar see Figure 4 H eDAM 5000 Utility 7 10 201 17 07 DLL Yer 1 6 Exit Search Terminal Help Communication Int 9 Pins S Fe 1200 BUY Address Connection Configuration iption USB USBDAG 63 0 12 Channel RTD Input module Figure 4 155 EDAM 5000 User s manual 5 Click Load File button to load firmware file and select the firmware file your are going to update see Figure 5 and Figure 6 D eDAM 5000 Utility 2 10 201140707 DLL Yer 1 6 Exit Search Terminal Firmware Update Help Firmware Update utility File Name Load File Target ID Target Name Download Reboot Cancel Status Idle Figure 5 Open File 230 O Bin si ex ES j a E5015BIOS_HTTP_M21 bin E5015BIOS_M21 bin Kat E5017BIOS_HTTP_M21 bin E5017BIOS_M21 bin E5019BIOS_HTTP_M21 bin Am E5019BIOS_M21 bin un E5028BIOS_HTTP_M20 bin E5028BIOS_M20 bin REZI E5029BIOS_HTTP_M20 bin Z E5029BIOS_M20 bin E5060BIOS_HTTP_M20 bi
113. ort 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 E5K_TCPPing Lib ESKDAQ dIl _ 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 122 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 E5K_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 E5K_ReadAIChannelType Lib ESKDAQ dIl ByVal id As Integer ByVal AlChannel As Integer ByRef AlType As 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
114. ounts 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 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 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 53 EDAM 5000 User s manual 6 4 Modbus mapping of EDMA5028 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 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 DO
115. ow 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 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 R Channel 0 high word data big endian Total data bytes 8 Modbus function 4 Module Address char Resp_datal Modbus response data received from Module where 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 0xFE 0xF8 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 lt lt 16
116. ple Read the Digital I O Status 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 01 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 Channels 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
117. ponse 0100000003 latch status 00000003 DI 2 counter value 3 89 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 if an 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 is Clear 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 if an 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
118. r s manual 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 StreamEventID 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 E5KDAQ 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 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 be
119. r 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 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 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 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 nr 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 47 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 r
120. rm 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 66 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 15 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 Digital 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 AA9nnh
121. 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 is 60Hz 82 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
122. t 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 19 EDAM 5000 User s manual Chapter 3 Connector pin assignment 3 1 EDAM 5015 Front side connectors PWR USB RJ 45 EDAM 5015 LINK USB PWR e RTD6 RTDO RTD7 RTD1 RTD8 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 ch
123. t 8 Resp_data 12 0xF008 4088 short Chan2_data short Resp_data 13 lt lt 8 Resp_data 14 Ox5EF8 24312 ChanO_voltage double ChanO_data 2 5 32767 Max range 2 5V Chan1_voltage double Chan1_data 2 5 32767 Max range 2 5V Chan2_current double Chan1_data 20 32767 Max range 20mA printf n rChan 0 voltage 000 002f V ChanO_voltage printf n rChan 1 voltage 000 002f V Chan1 voltage printf n rChan 2 current 000 002f mA Chan2_current Result Chan 0 voltage 001 98 V Chan 1 voltage 000 31 V Chan 2 current 014 84 mA 60 EDAM 5000 User s manual Example 2 written with C Read analog input channel with type of temperature Assume Modbus data format is set to 2 s complement format 1 Assume the type of Channel 0 is T C K type 700C 1370C Channel 1 is T C J type 100C 760C 2 Send Request command as Note 0x7656 30294 start address of Al normal channel 0 01 04 76 56 00 02 Total Channels 2 Start Channel 0 Modbus function 4 Module Address 3 Receive Response from module as 01 04 04 65 7A FO 08 Channel 1 data big endian Channel 0 data big endian Total data bytes 4 Modbus function 4 Module Address double Chant Temp Chan Temp 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 04 total data bytes Il Resp_data 9 10 0x65 0x7A data
124. t debounce time interval 0 0xF FFF R W X 0176 N 0187 0 15 Digital output pulse low width 0000 0xFFFF in R W 0 5msec N 0208 N 0217 0 9 Digital output pulse high width 0000 0xFFFF in R W 0 5msec N 0240 N 0249 0 9 Digital output pulse counts R W N 0272 0 9 Digital power on value DOO DO9 R W 0x0000 0xFFFF 6 6 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 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 output R W 0 disable DO pulse output 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 58 EDAM 5000 User s manual Chapter 7 Modbus data conversion This chapter shows you h
125. ta model each element within a data block is numbered from 1 to n 55 EDAM 5000 User s manual 6 5 Modbus mapping of EDMA5029 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 Attribute 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 0000 OxFFFF R W in 0 5msec N 0208 N 0223 0 15 Digital output pulse high width 0000 0xF FFF R W in 0 5msec N 0240 N 0255 0 15 Digital output pulse counts R W N 0272 0 7 Digital power on value DOO DO15 R W 0x0000 0xFFFF 56 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
126. tal output channels channel 0 1 5 8 9 16 are active other channels are inactive 87 EDAM 5000 User s manual 10 39 AAOAnn Set the Digital 1 s byte D00 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 0A 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 IAA 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 Set 23 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 IAA cr Valid command AA cr Invalid command cr is the terminating character carriage return ODh 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
127. tatus u nasser RR RI Ruedi 129 11 57 ESRK ReagAlAlamSlal scan innen E 129 1158 E5K SeA El TEE 130 11 59 ESK ReadAlBurndut enin tn ann a e a aE e a a Ea 130 11 60 E5K_SetAlModuleFilter 22 222222 222 ne tn mt tr tn ta 131 11 61 16 1 810 1 E 131 11 62 ESK SelAlChannelEnable una na aa 132 11 63 ESK ReadAlChannelEnables a su un annsrskaiaRi EHRE 132 11 64 E5K_ReadAINormalMultiChannel 133 11 65 E5K_ReadAlMaximumMultiChannel ss 134 11 66 E5K_ReadAIMinumumMultiChannell 135 11 607 CESK E En E 135 11 68 E5K_ResetAlMiNiIMUM EE 136 11 609 BOK ResetAtHighAlafmi ta te ne sn en 136 11 70 6 E e EEN 137 11 71 E5K_ReadAlChannelAverage ss 137 11 72 E5K_SetAlChannelAverage 20 138 11 73 ESK SetDIChannelCoOntid stante Ten nn nn One en reset 138 11 74 ESK 0 0800000 0 nenn 139 11 75 ESK ReadDiStatus san ns a a a a a a Eia 139 11 76 ESK Re3dgBlLatch 2 42 22 I 140 TFI ESK TR e EE 140 11 78 ESK ClearsingleDIGo nler seess ENEE 141 11 79 ES ReadMultiDICounter 20s een nen eee 0000 ARL LOLA 141 11 00 ESK WriiteDO ee 142 11 81 e Re EE 142 11 82 ESK SelDO8ingleChannelz a dire dre nee 143 11 83 E5K SelDOPUISeW IQ ses 143 11 84 ESR640DOPUISEVVIcthi 2230303 ene 4 eee 144 EE EE 10 6 EE 144 11 86 Ee El ET 145 11 87 ESK ReadDoOPulseBbount ausser RER Er 145 11 88 E
128. te 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 of the 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 E5K_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 117 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 E5K_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 bDatal 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
129. 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 output 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 i
130. ting 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 92 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 AAAnnhhhhilll 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 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
131. turn 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 E5K_ResetAlHighAlarm Lib ESKDAQ dIl 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 136 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 E5K_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 channel in average status Syntax Visual Basic VB Net see ESKDAQ bas E5KDAQ vb Declare public Function E5K_ReadAIChannelAverage Lib ESKDAQ dIl ByVal id As Integer ByRef inavg As Long As Integer VC BC Builder
132. ue Of all Channels 70 EDAM 5000 User s manual 10 8 AAMHn Description Syntax Response Example 10 9 AAML Description Syntax Response Example Example Clear Maximum value Of specified Channel 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 is the 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 0x0E Read Minimum Value Of All Channels 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 hexadecimal 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
133. umbered from 1 to n In the Modbus data model each element within a data block is numbered from 1 to n 51 EDAM 5000 User s manual 6 3 Modbus mapping of EDMA5019 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 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 DOO 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 O Oxffff R W X 0176 N 0176 0 Digital output pulse low width 0000 OxFFFF R W in 0 5msec N 0208 N 0208 0 Digital output pulse high width 0000 0xF FFF 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
134. xample 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 01 ML2 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 AAML 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 terminati

Download Pdf Manuals

image

Related Search

Related Contents

MANUEL DE L`UTILISATEUR    testo inglese 2/2001  4面 - 東京消防庁  AMS95 TECH INFO  BR58 Body Shape Skin Beauty System User Manual  取扱説明書 (2.37 MB/PDF)  Braun Photo Technik DigiFrame 701  RFID ICODE Handheld Interface User Manual  Cisco Systems 828 Router User Manual  

Copyright © All rights reserved.
Failed to retrieve file