Home
DCON_DLL - kolbinger electronic
Contents
1. 43 m AnaloginHex 87K Description Obtain the analog input value in Hexadecimal format from I 87K series analog input modules Syntax AnaloginHex 87K DWORD dwBufl float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87013 87017 87018 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The channel number of analog input module for 87013 17 18 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive The analog input value in Hex format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 44 m AnaloginFsr 87K Description Obtain the analog input value in FSR format from I 87K series analog input modules Syntax AnalogInFsr_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output
2. 99 m DigitalOutReadBack 87K Description Read back the digital output value of the digital output module for I 87K series modules Syntax DigitalOutReadBack_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87054 55 56 57 60 63 64 65 66 68 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital output data read back 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 100 WR DigitalBitOut 87K Description Set the digital output value of the specific digital output channel No of the digital output module for 87K series modules The output value is only for 0 or 1 Syntax DigitalBitOut_87K DWORD dwBufl float Bull char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError
3. OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7014 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 fBuf 1 Low Source Value High Source Value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 64 m ReadTargetValueOfLM Description Obtain the setting value of Linear Mapping target range for I 7014 7016 modules Syntax ReadTargetValueOfLM WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7014 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 fBuf 1 Low Target Value High Target Value DCON DLL user s Manual 2003
4. 3 Debug File Folder res File Folder Test 17000 H 61 KB C Header file m 18000 h 19KB C Header file 3 items selected mM i87000 h 15KB C Header file Step 3 Copy the UART LIB and 17000 LIB to the same directory with application program DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 13 Address 3 E Test DI Go Debug File Folder res File Folder 8KB LIB File 31 KB LIB File Step 4 Select Build Settings Link and key in UART LIB and 17000 LIB in the object library modules field Project Settings 21 x Settings For win32 Debug D Source Files 2 43 Header Files Si 17000 H 18000 h i87000 h E MainFrm h E Resource h Si StdAfx h Si TEST h E TESTDoc h Si TESTView h Resource Files E ReadMe txt General Debug CJC Link Resources M Category General Reset Output file name Debug TEST exe Objectlibrany modules UART LIB 17000 LIB Generate debug info I Ignore all default libraries IV Link incrementally IT Generate mapfile IT Enable profiling Project Options UART LIB 17000 LIB nologo subsystem windows fincremental yes pdb Debug TEST pdb debug machine 1386 jout Debug TEST exe pdbtype sept E Cancel DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 14 4 3 USING VISUAL BASIC The demo programs are tested OK in Windows
5. 4 4 4 5 APPLICATION IN VISUAL e APPLICATION IN MFC EEN EA ERT e USING DELP H eet APPLICATION IN BORLAND CT BupEn 5 UARTDLL EE EE ME NE ME S nd Bi ary E R celve ln e sesh ete ete a eta GOL Com Slats iia ee cd pine Change Baudhate Change Confg A Get Wart NEEN Gs 17000 DLb ees 6 1 l 7000 series e e UE ne UE AnaloglnHex EE DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 2 AnaloginFsr asnnnorrnnnnnnnnnrnnnnnnrrrnnnnnnnnnnnnnnnnrrnnnnnennnnnnnnnnrrnnnnennnnnnnn 34 Analogi EE 35 ThermocoupleOpen 2011 36 Al UE 37 GetLedDisplay sansene 38 6 1 2 l 8000 series modules sara 39 Analogin OK 39 AnaloginHex 8K E 40 PAPO e Une e 41 AnaloqinAll 8K cecceic0 coco pet ota a patos 42 6 1 3 l 87K series MOOUICS ass needed nese 43 Analogli Ska saa 43 AnaloginHex EE 44 Analoglntsr Sch 45 AnalognAll rg EE 46 6 2 MODULE ALARM FUNCTIONS E 47 6 2 1 1 7000 siles DENTEN gg 47 Ebert Mee 47 DisableMarm E 48 eil Neng EE 49 GetAlarmt mmmmtalue eeaeee nenen 50 FAG ALAM VAG de 51 ReadOutputAlarmState 00 ccc cece cece eee eeeeeeeeeeeeeeeeeeeeeeeeaaees 52 6 22 l 8000 series modules asco ccos ses ccce snes cnce snes sant snes rekkene 53 SetAlarmMode OK 53 SetAlarmConnect hb 54 ClearLatchAlarm 2h eneee e ennnen nennen 55 SetAlarmLimitValue 8K 56 ReadAlarmLimitValue_8K ccccccccecceeeceeeeeeeeeeeeeeeeeeeeseeeeeeeees 57 ReadAlarmMode OK 58
6. BC VB Delphi and BC Builder The features of DCON_DLL are given as following 1 2 Provide general purpose RS 232 application functions Provide general purpose the command sending and response receiving functions of DCON 1 7000 8000 87K series modules Provide high performance application functions for DCON series modules Provide several of demo programs for VC VB Delphi BCB C DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 8 2 ARCHITECTURES UNDER WINDOWS The UART DLL amp 17000 DLL are the dynamic linking library DLL designed for Windows 95 98 and Windows NT 3 51 4 0 2000 XP applications The users can apply it to develop their own application program through many programming languages such as VC BC BC Builder VB and Delphi For your convenience application there are many demo programs provided for VC VB Delphi and BC Builder Based on the demo programs User can easily understand how to use the function and develop their own application in a quick way The relationship among UART DLL 17000 DLL and user s application are depicted as follows Application Layer Application by VB or VC BCB Delphi J DCON series modules driver function s L Driver Layer 7 Series port function of DCON VxComm Virtual COM port The VxComm Driver creates a virtual COM port s of PC and maps them to Ethernet 7188E modules 3 Physics Layer gt
7. OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87016 0x87021 0x87022 0x87024 0x87026 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog output channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Analog output value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 74 H AnalogOutReadBack 87K Description Read back the analog output value of analog output modules for I 87K series modules This function currently supports I 87021 22 24 26 There are two types of read back functions as described in the following 1 Last value is read back by AA6 command 2 Analog output of current path is read back by AA8 command Syntax AnalogOutReadBack 87K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf DWORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to I 87K series modules szReceive Result string receiving from 87K series modules Return Value NoError OK Others Error code dwBuf DWORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address from 0x00 to OxFF dwBuf 2 Module ID 0X87016
8. WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x 7024 Checksum 0 disable 1 enable Time out setting normal 100 unit ms Channel No 0 to 3 if module ID is 7024 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The initial output value when the power is on DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 143 E ReadPowerOnValueForDo Description Obtain the initial output setting value of digital output module for l 7000 series module when the power is on Syntax ReadPowerOnValueForDo WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 6 COM port number 1 to 255 module address 0x00 to OxFF module ID 0x7050 60 63 65 66 67 42 43 44 c
9. OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8017 0x8018 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The channel number of analog input module for 8013 17 18 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive Slot number the I O module installed in l 8000 main unit fBuf Float Input Output Table fBuf 0 The analog input value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 41 m AnaloginAll 8K Description Obtain the analog input values of all channels from l 8013 l 8017 or l 8018 Syntax AnalogInAll_8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 801 7 8018 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt no save to szSe
10. fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Not used O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 Module s Host watchdog is in NORMAL mode 4 Module s Host watchdog is in HOST FAILURE mode 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 135 m ResetModuleHostWatchdogStatus Description Reset the modules Host Watchdog status for l 7000 series modules The related function is ReadModuleHostWatchdogStatus Syntax ReadModuleHostWatchdogStatus WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wB
11. D A DI D O 3 DCON_DLL Driver BCB uartbc lib gt import library of UART DLL 4 DCON_DLL Driver BCB I7000bc lib gt import library of 17000 DLL 5 DCON_DLL Driver BCB UART h gt declarations for UART DLL 6 IDCON DD Driver BCB I7000 h gt declarations for 17000 DLL 7 IDCON DD Driver BCB I8000 h gt declarations for 17000 DLL 8 IDCON DD Driver BCB I87000 h gt declarations for 17000 DLL 9 DCON_DLL Driver BCB I7000u cpp gt functions for BCB Demos The uartbc lib and I7000bc lib are different to the library files in application of VC and these two files must be included into the project as shown in following figure Project Manager er XK New Remove Activate Include th se library files i7000bc lib uartbe lib E Current_Work BBI OK Demo BCB3 7k DEMC In the unit1 cpp file users must include declaration files 1 7000 h 1 8000 h 187k h and uart h into BC builder environment as shown in figure below The 17000 h 18000 h and 187K h are the declaration files for l 7000 l 8000 and I 87K series modules respectively DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 18 amp Uniti cpp o gt Unit epp include lt vel h gt pragma hdrstop Hoer bi i 7000 n i8000 h i87000 pragma package smart_init pragma resource dfm ff void _ fastcall OpenCom TFormi Formi Char cPort cData cStop cParity Word w 0
12. Description Configure the initial digital output value of digital output module for l 7000 series modules when its power is on Syntax WORD SetPowerOnValueForDo WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7050 60 63 66 67 42 43 44 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Power On value in Hex format 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 138 m SetSafeValueForAo Description Configure the channel No safe value of analog output module for l 7000 series modules when the WatchDog function of the module has been enabled Syntax SetSafeValueForAo WORD wull float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument ta
13. Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87054 55 56 57 60 63 64 65 66 68 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 1 bit digital output data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive The digital output channel No Data to output 0 or 1 fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 101 6 6 Counter Functions m Counterln 7080 Description Obtain the value of the selected counter in module l 7080 Syntax Counterln 7080 WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 M
14. Set low alarm value 1 gt Set high alarm value fBuf Float Input Output Table fBuf 0 Alarm value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 57 m ReadAlarmMode 8K Description Obtain the alarm mode setting of analog input modules for l 8000 series modules Syntax ReadAlarmMode 8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 dwBuf 9 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 8017 8018 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog input channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit 0 gt Read low alarm mode setting 1 gt Read high alarm mode setting 0 gt Alarm disable 1 gt Momentary alarm 2 gt Latch alarm fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 58 m ReadAlarmStatus Ok Descript
15. WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 0x7014 0x7016 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 86 6 4 2 1 8000 series modules m Digitalln 8K Description Obtain the digital input value from l 8000 series modules Syntax Digitalln 8K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8040 42 51 52 53 54 55 58 63 77 O checksum disable 1 checksum enable Time
16. module watchdog can reset the module if it is down under the effect of too large noise signal refer to Figure 5 Sometimes even the host PC may be down for hardware or software reasons The software host watchdog can monitor the status of host PC This host watchdog can be applied to two situations 1 If the host PC is down all the output of DCON series modules will go to their predefined safe states for safety protection reason refer to Figure 1 to 3 2 If the RS 485 network is broken all the host command can not send to remote modules This is very dangerous in real world application The DCON series output modules will force their output going to their predefined safe state for safety consideration if the host watchdog is active Therefore these dual watchdog features module and host watchdog will increase the reliability of system 1 Host watchdog software If the host is down all modules output go to their predefined safe value refer to Figure 1 to 4 2 Module watchdog hardware If the module is down module will reset itself and output go to safe value refer to Figure 5 to 6 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 147 m Host WatchDog The host may be down under the effect of the following condition 1 Noise too large gt make host hardware going error 2 Software problem gt make host going to the dead lock state 3 Hardware problem 3 host hardware is damaged 4 The RS485 networ
17. szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 dwBuf 9 dwBuf 10 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 8017 8018 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The specified channel number for 1 8013 8017 8018 8033 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 8000 main unit 0 gt Low Alarm 1 gt High Alarm The slot number of DO module The defined DO channel according to the alarm function fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 54 m ClearLatchAlarm 8K Description Clear the high or low latch alarm of analog input modules for l 8000 series modules Syntax ClearLatchAlarm 8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series mod
18. 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7050 52 53 60 63 65 4 1 44 Checksum O disable 1 enable Time out setting normal 100 unit ms The digital input Channel No 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive Counter value of the digital input channel No fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 83 m ClearDigitallnCounter Description Clear the counter value of the channel number of Digital Input module Syntax ClearDigitallnCounter WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7050 52 53 60 63 65 4 1 44 Checksum O disable 1 enable Time out setting normal 100 unit ms The digital input Channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s
19. 2080 114 SetModuleMode 2080 115 ReadodulehMode 2090 116 SetLe velVolt 7080 55 117 Read evelvVoht 2090 118 SetMinSignalWidth 2080 119 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 5 ReadMinSignalWidth 2090 120 SetGateMode 2080 121 ReadGateMode 2080 122 ReadOutputAlarmState 080 123 ReadAlarmLimitValue 080 125 SetAlarmLimitValue 2080 126 ReadCounterStatus 2080 127 SetCGonfiguration 70802 vneresemerigsneisesnandemeiee 128 DataToLed_7080 arresten raskt a mek nhk ska make nananana 130 6 7 DUAL WATCHDOG FUNCTIONS Lan aana deg ea adm ddmd dude ned 131 ele Cal 131 ToSetupHostWatchdog rrrrrrrnnnnnnnnnnnnnnrrrrrnnnnnnnnnrnnnnnrrnnnnnnnnnnnnn 132 ToReadHostWatchdog neeeeeeeeeenennnreeessesenennrnersssrrrennnneeeeet 133 Readodulebesetztatus 134 ReadModuleHostWatchdogStatus oasssnnnrnnnnnnnnnnnrnnnnnrrnnnnnn 135 ResetModuleHostWatchdogStatus arrsnnnrnnnnnnnnnnnnnnnnnnnnnnnnn 136 GetGateValuetoro 137 SetPowerOnValueForDo o0000000nnnnnnnnnnnaanannnnnnnnnnnnnnnnnnnnennennnn 138 LU e EES 139 GetbowerOnValuetor ho 140 SetPowerOnSafeValue rrrrrrrnnnnnnnnnnnnnnnnrrrnnrnnnnnnnnnnnnrrnnnnnnnnnnn 141 ReadGateValuetor o 142 ReadbowerOnValuetor o 143 ReadPowerOnValueForDo nnnn00000anannnnnnnnnnnnnnnnnnnennnnnnnnnnne 144 ReadGateValuetorto 145 Lee elle LE TEE 146 APPENDIX A WATGHDOG iisisiccisscciscissccdeecsscciveies
20. 3 wBuf 4 wBuf 6 wBuf 5 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive 0 gt gate control mode is low active 1 gt gate control mode is high active 2 gt gate control mode is disable fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 122 m ReadOutputAlarmState 7080 Description Obtain the alarm digital output and the corresponding alarm setting status of l 7080 module Syntax ReadOutputAlarmState 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms No used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive For 7080 mode alarm mode 0 0 gt Counter 0 disable Counte
21. 95 98 NT 2000 XP and VB 5 0 version The user of VB appliocation has to implement these files as following 1 DCON_DLL Driver UART DLL gt functions to deal with RS 232 2 DCON_DLL Driver I7000 DLL gt functions for A D D A Di D O 3 DCON_DLL Driver VB I7000 bas gt declarations for UART amp 17000 DLL 4 DCON_DLL Driver VB I7000u bas gt some functions for VB Demos n the project files users must include declaration files 1 7000 bas and 17000u bas into VB modules environment as shown in below figure Project Project 1 Project1 PROJECT1 BP E3 Forms Ej Formi Form1 frm E S Modules a 17000 17000 bas 2 17000u 17000u Bas After double clicking on the I 7000 bas to open the file users can see the declarations of function for UART DLL and 17000 DLL and some defined constant declarations DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 15 General 3 SecIarations J zl Global Const ExceedInputRange 20 a Const InvalidateCounterNo Declare Function Open Com Lib uart dll ByVal Port As Byte ByVal BaudRate As Long _ ByVal cData As Byte ByVal cParity As Byte ByVal cStop As Byte As Integer Declare Function Close Com Lib uart dll ByVal Port As Byte As Boolean Declare Function Get Com Status Lib uart dll ByVal Port As Byte As Boolean Declare Function Change Baudrate Lib uart dll ByVal Port As Byte ByVal dwBaudrate As
22. COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7050 7052 7053 7060 7041 7044 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital input data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 80 m DigitallnLatch Description Obtain the latch value of the high or low latch mode of Digital Input module Syntax DigitallnLatch WORD wBufl float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address 0x00 to OxFF wBuf 2 Module ID 0x7050 52 53 60 63 65 41 44 wBuf 3 Checksum 0 disable 1 enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 0 low Latch mode 1 high Latch mode wBuf 6 0 gt no save to szSend amp szReceive 1 Save to szSend amp szReceive wBuf 7 Latch value fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 81 m ClearDigitallnLatch Description This function can clear the latch
23. DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 9 3 INSTALLATION 3 1 INSTALLATION STEPS The following steps will demonstrate the installation process for the driver DCON DLL If users want to apply the DCON utility please refer to DCON utility manual Step 1 Insert ICPDAS Product CD into CD ROM driver Step2 Click Start Run in the task bar Step 3 Enter the path as CD Path Napdos Driver DCON_DLL setup exe Step 4 Follow the instructions to complete installation process Step 5 When the installation is finished you can find all materials of the DCON driver are in the path C DAQPro DCON_DLL and contains the following topics 1 What New records the last information of DCON DLL 2 Manual folder provides the manuals of DCON_DLL 3 Driver folder contains all of library files which are required in program development 4 Demo folder includes the demo programs of DCON_DLL for different development environment 5 Demo Board folder has the demo program and manual for Demo Board Note that the driver UART DLL and 17000 DLL is copied to the directory C windows system or C winnt system32 c windows system32 for Windows 95 or 98 or Windows NT 2000 XP system respectively If users want to upgrade the DCON driver it is allowed to download new release UART DLL and 17000 DLL to this directory and replace these files The UART DLL take care of the communication process of t
24. Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 38 6 1 2 1 8000 series modules m Analogin 8K Description Obtain the analog input value in float format from l 8000 series modules Syntax Analogin 8K DWORD dwBufl float fBuf char szSend char szReceivef Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8017h 0x8018 0x8013 0x8033 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The channel number of analog input module for 8013 17 18 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in l 8000 main unit fBuf Float Input Output Table fBuf 0 Analog input value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 39 m AnaloginHex 8K Description Obtain the analog input value in Hexadecimal format from l 8000 series modules Syntax AnaloginHex 8K DWORD dwBuf float fBuf char szSend char szReceivef Input
25. ReadAlarmStatus bk 59 6 3 STRAIN GAUGE FUNCTIONS Hasse 60 Setup mearhapping 60 EnableLinearMapping eesoessnnneeeeeeeeeenrrnnrnenseerrrrnnrnnenserrrrrrnnn 61 Disablet mmearhMappmg 62 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 3 ReadLinearMappingStatus ornrrrrrnnnnnnnrrrnnnnrrrrrnnnnnrnrrrnnnnnnrrnnnnn 63 ReadSourceyValueOtt NM 64 ReadfargetValueOnt NM 65 6 3 ANALOG OUTPOTFINGTIONS sere ee 66 6 3 1 l 7000 series NOOMESLannuddvaenhen jenmnaddejnnbauddvejsdebn 66 AnalOgOuUl A eieiei EE E E S oe E E 66 AnalogCutbeadback 67 AnalogOutHex rrrrrrrnnnnnnnnrnnnnnrrrrnnnnnnnnnrnnnnnnrrnnnnnnnnnsnnnnnnrrnnnnnnensnnnn 68 ee LTE 69 AnalogOutReadBackHex rnrrnnnnnnnnnnronnnnnrrrrrnnnnnnnnnnnnnnrrrnnnnnnnnnnnn 70 AnalogCutbeadbackter 71 6 3 1 l 8000 series ET 72 PINAL GO UN SK erse nanan aae EE EE 72 AnalogOutReadBack 8K 73 6 3 3 l 87K series NODES x ieicsrs cciciein non adeenenag ane eo eRGERGG 74 A alogOut d EE 74 AnalogOutReadBack Sch 75 AnalogoulHex 87K nennen aar AA 76 AnalogOutFsr_87K EE 77 AnalogOutReadBackHex 27 78 AnalogOutReadBackFsr Sch 79 6 4 DIGTALINPUTFINGTIONS Lan ende 80 6 4 1 l 7000 series modules EG 80 Digitalln EE 80 Digan ateh seen 81 CeartDgontalint atch 82 DigitallnCounterRead AAA 83 CeartDgontallnCounter ee eeeeenennnrrrrnsererrrrnnn resene 84 Read REENEN 85 ClearEvent Counter 000aaaaeeeee aeee reenen 86 6 4 2 l 8000 serie
26. back by AA8 command Syntax AnalogOutReadBack WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7016 7021 7022 7024 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 command AA6 read back 1 command AA8 read back 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive The analog output channel No 0 to 3 of module l 7024 No used for single analog output module fBuf Float Input Output Table fBuf 0 Analog output read back value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 67 m AnalogOutHex Description Output the analog value of analog output modules through Hex format Syntax AnalogOutHex WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l
27. demo for 7017 7018 Demo05 gt 8 Channels Analog Input demo for 7017 7018 Demo06 gt Analog Output demon for 7021 Demo07 gt Analog Output demo for 7024 Demo08 gt Synchronized Analog Input demo for 7012 Digital Demo09 gt Digital Input demo Demo10 gt Digital Output demo Demo1 1 gt 8 Channels Analog Input demo for 7017 7018 Demo12 gt Digital Input Output demo for 7050 7060 SafeAl gt Safe value for Al module s output for 7011 7012 7014 SafeAO gt Safe value for AO module for 7021 7024 SafeDO gt Safe value for DO module Start1 gt Getting Started for 7011 7012 7014 Watchdog gt Dual Watchdog for all modules for 70xx Watchdog2 gt Dual Watchdog for all modules for 70xx 87k AnalogOut_8K gt AnalogOut_8K demo Analogin_8K gt Analogin 8K demo LAD gt Digital Input demo _ Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Output and ReadBack demo DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 159 8k AnalogOut_87K gt AnalogOut 87K demo AnalogIn_87K gt Analogin 87K demo Di gt Digital Input demo Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Output and ReadBack demo DCON
28. output value of l 7000 series modules This fuction currently supports l 7011 l 7012 l 7014 and I 7016 Syntax ReadOutputAlarmState WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 0x7014 0x7016 O checksum disable 1 checksum enable Time out setting normal 100 unit ms No used gt no save to szSend amp szReceive gt save to szSend amp szReceive gt alarm disable gt momentary alarm gt latch alarm gt DO 0 off DO 1 off gt DO 0 on DO 1 off gt DO 0 off DO 1 on gt DO 0 on DO 1 on On OM CO CH fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 52 6 2 2 1 8000 series modules E SetAlarmMode 8K Description Disable or enable the alarm function of l 8000 series modules into momentary alarm or latch alarm mode This function currently supports l 8013 1 8017h l 8018 and l 8033 Syntax SetAlarmMode_8K DWORD dwBuf float fBuf ch
29. series modules The counter preset value OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Configure counter 0 1 gt Configure counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 113 m ReadPresetCounterValue 7080 Description Obtain the preset value of the selected counter in l 7080 module Syntax ReadPresetCounterValue 7080 WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Read 7080 s counter 0 1 gt Read 7080 s counter 1 0 gt no save toSendTo7000 amp szRe
30. status of digital input module when latch function has been enabled Syntax ClearDigitallnLatch WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7050 52 53 60 63 65 4 1 44 Checksum O disable 1 enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 82 WR DigitallnCounterRead Description Obtain the counter event value of the channel number of Digital Input module Syntax DigitallnCounterRead WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf
31. table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 7012 7014 7016 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 49 E SetAlarmLimitValue Description Set the high or low alarm limit value of l 7000 series modules This function currently supports l 7011 l 7012 l 7014 and I 7016 Syntax SetAlarmLimitValue WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 0x7014 0x7016 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt lo
32. wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Output data to LED display DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 130 6 7 Dual Watchdog Functions All ICPDAS DCON 1 7000 8000 87K series modules equip a hardware module watchdog and software host watchdog The DCON series modules are designed for industry applications therefore they can work in the harsh envioronment About the detail Dual Watchdog description please refer to Appendix A m HostlsOK Description This function provides a method to tell all module Host PC is OK by sending command string If the module can t receive during a time interval the host WatchDog function will be enabled The related functions are ToSetupHostWatchdog and ToReadHostWatchdog Syntax HostlsOK WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBu
33. 0 COM port number 1 to 255 dwBuf 1 Module address 0x00 to OxFF dwBuf 2 Module ID 0x87051 52 53 54 63 dwBuf 3 Checksum 0 disable 1 enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 Not used dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 90 m DigitallnCounterRead_87K Description Obtain the counter value of the digital input channel No of I 87K series modules Syntax DigitallnCounterRead_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dWBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x87051 52 53 54 63 Checksum O disable 1 enable Time out setting normal 100 unit ms The digital input Channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Counter value of the digital input channel No fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 Jun
34. 0 DLL gt functions for A D D A D I D O DCON_DLL Driver Delphi l7000 pas gt declarations for UART amp 17000 DLL DCON_DLL Driver Delphi l8000 pas gt declarations for 17000 DLL DCON_DLL Driver Delphi l87000 pas gt declarations for 17000 DLL DCON_DLL Driver Delphi l7000u pas gt functions for Delphi Demos on A WwW PY n the unit file users must include declaration files I 7000 pas I 8000 pas I87k pas and 17000u pas into Delphi environment as shown in below figure The 17000 pas 18000 pas and 187k pas are the declaration files for I 7000 l 8000 and 87K series modules respectively B Uniti pas JC gt Unit1 end var Formi TForm1 iRet iStatus Integer iCount Integer wRet Word implementation ME Include these declaration files Uses 17000 18000 187000 I7000u Var bCfgChg bComOpen Boolean iCounter integer SR DFM procedure TForml FormCreate Sender TObject begin ComComboBox ItemIndex E BaudRateComboBox ItemIndex 45 51 Modified Insert DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 17 4 5 Application in Borland C Builder The demo programs are tested OK in Windows 95 98 NT 2000 XP and C Builder 3 0 version The BC amp BC Builder user has to include these files as following 1 DCON_DLL Driver UART DLL gt functions to deal with RS 232 2 DCON_DLL Driver I7000 DLL gt functions for A D
35. 00 80 DWord awBaudRate float 7000 80 Boolean bComOpen bCfgChg Char szSend 80 szReceive 80 9 21 Modified Insert DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 19 5 UART DLL E Open Com Description This function is used to configure and open the COM port It must be called once before sending receiving command through COM port Syntax Open Com char cPort DWORD dwBaudRate char cData char cParity char cStop Input Parameter cPort 1 COM1 2 COM2 255 COM255 dwBaudRate 50 75 110 134 5 150 300 600 1200 1800 2400 4800 7200 9600 19200 38400 57600 115200 cData 5 6 7 8 data bit cParity 0 NonParity 1 OddParity 2 EvenParity cStop 0 1 stop 1 1 5 stp 2 2 stop NOTE cData 8 cParity 0 cStop 0 is the default for DCON series modules Return Value NoError OK Others Error code NOTE About the Error Code please refer to Appendix C Error Code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 20 m Close Com Description This function closes and releases the resources of the COM port from computer recourse And it must be called before exiting the application program The Open Com will return error message if the program exit without calling Close Com function Syntax Close Com char cPort Input Parameter cPort 1 COM1 2 COM2 255 COM25 Return Value NoError OK Others Error code DCON DLL use
36. 00 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0X7033 0X7016 Checksum O disable 1 enable Time out setting normal 100 unit ms Set display channel for 7033 or 7016 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 37 m GetLedDisplay Description Get the current setting of the specified channel for LED Display channel in l 7033 or l 7016 Syntax GetLedDisplay WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7033 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms Current channel for LED display O channel 0 1 channel_1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table
37. 000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Set the low trigger level 1 gt Set the high trigger level 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The trigger level value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 117 E ReadLevelVolt 7080 Description Obtain the high or low trigger level setting value of non isolated input in l 7080 module Syntax ReadLevelVolt_7080 WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Read the low trigger level 1 gt Read the high trigger level 0 gt no save to szSe
38. 080 Description Disable the alarm mode of l 7080 module This function only supports l 7080 module Syntax DisableCounterAlarm 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 108 m EnableCounterAlarm 7080D Description Enable the momentary alarm mode or latch alarm mode of I 7080D module This function only supports I 7080D module Syntax EnableCounterAlarm_7080D WORD wBufl float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string r
39. 0x8041 42 54 55 56 57 60 63 64 65 66 68 77 Checksum O disable 1 enable Time out setting normal 100 unit ms Output digital data 0 or 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 8000 main unit The output channel No fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 98 6 5 3 1 87K series modules m DigitalOut 87K Description Set the digital output value of the digital output module for I 87K series modules Syntax DigitalOut_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module 1ID0x87054 55 56 57 60 63 64 65 66 68 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital output data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35
40. 17 8018 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog input channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit 0 gt Set low alarm value 1 gt Set high alarm value fBuf Float Input Output Table fBuf 0 Alarm value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 56 E ReadAlarmLimitValue Ok Description Obtain the high or low alarm limit value of analog input modules for l 8000 series modules Syntax ReadAlarmLimitValue_8K DWORD dwBufl float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 8017 8018 8033 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog input channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit 0 gt
41. 3 June Ver 3 5 7MS 018 35 119 m ReadMinSignalWidth 7080 Description Obtain the setting width value of the minimum high or low input signal level in l 7080 module Syntax ReadMinSignalWidth 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt read the min width at low level 1 gt read the min width at high level 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive The input Signal Min Width fBuf Float Input Output Table Not use DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 120 E SetGateMode 7080 Description Configure the gate control mode of l 7080 module There are 3 type modes 0 gt gate input signal must be low to enable counter 1 gt gate input signal must be high to enable counter 2 gt gate input signal is ignored The counter will be always enable Syntax SetGateMod
42. 4 7017 7018 7033 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms Channel number for 7017 7018 7033 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive The analog input value in Hexadecimal format fBuf Float Input Output Table Not used Note Users have to use DCON utility to set up the analog input configuration of the module in hex format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 33 m AnaloginFsr Description Obtain the analog input value in FSR format from l 7000 series modules The FSR means Percent format Syntax AnaloginFsr WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 7012 7013 7014 7017 7018 7033 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Channel number for 7017 7018 7033 wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The analo
43. 7 gt 8 Channels Analog Input demo Demo28 gt Analog Output ReadBack demo Demo07 gt Multi speed amp Multi data format demo Demo29 gt Digital OutputReadBack demo 87k Di gt Digital Input demo Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Outoput and ReadBack demo 8k Di gt Digital Input demo Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Outoput and ReadBack demo DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 154 DELPHI DEMO PROGRAM These files are too large to print in this manual refer to floppy disk for details DCON_DLL Demo Delphi Delphi3 Demo List 7k CompuTEX gt CompuTEX show demo UART Demo00 gt Send Receive Command demo Demo01 gt Send_Receive_command demo SRCmd gt Send Receive Command demo Analog Demo02 gt Analog Input demo for 701 1 7012 7013 7014 Demo03 gt Analog Input demo for 7011 7012 7013 7014 Demo04 gt Analog Input demo for 7017 7018 Demo05 gt Analog Output demo for 7021 Demo06 gt 8 Channels Analog Input demo Demo07 gt Analog Input demo for 701 1 7012 7013 7014 Demo08 gt Analog Output demo Demo09 gt send synchronal command an
44. 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7021 21P 22 Checksum O disable 1 enable Time out setting normal 100 unit ms The analog output channel No 0 to 3 of module l 7024 No used for single analog output module 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Analog output value in Hexadecimal Data format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 68 m AnalogOutFsr Description Output the analog value of analog output modules through of span data format This function only can be used after analog output module is set as FSR output mode Syntax AnalogOutFsr WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address 0x00 to OxFF wBuf 2 Module ID 0x7021 21P 22 wBuf 3 Checksum 0 disable 1 enable wBuf 4 Time o
45. 87021 87024 87026 dwBuf 3 0 checksum disable 1 checksum enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 The defined analog output channel No dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Analog output read back value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 75 E AnalogOutHex 87K Description Output the analog value of analog output I 87K series modules through Hex format Syntax AnalogOutHex_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code wBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x87022 26 Checksum O disable 1 enable Time out setting normal 100 unit ms The analog output channel No 0 to 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Analog output value in Hexadecimal Data format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 76 m
46. AKE file Please refer to DCON_DLL Demo vc demoxXX demoxxX MAK 7 Edit the BATCH file refer to DCON_DLL Demo vc demoXx c bat 8 Execute the batch file 9 Execute the execution file DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 12 4 2 Application in MFC The usage of DCON DLL in MFC application is very similar to the one in VC The demo programs are tested OK under Windows 95 98 NT XP and Visual C 4 0 The application key points are given in the following steps Step 1 Use MFC wizard to create source code Fev Als Files Projects Workspaces Other Documents ATL COM AppWizard Project name Cluster Resource Type Wizard TEST aJ Custom AppWizard Database Project ANE 2 DevStudio Add in Wizard ere Sy Extended Stored Proc Wizard EATEST TEST E S ISAPI Extension Wizard fin MFC ActiveX ControlWizard MFC AppWizard dll Create new workspace du MFC AppWizard exe Add to current workspace NNew Database Wizard 7 Utility Project pe EDEN ENE E a Win32 Application Win32 Console Application 2 Win32 Dynamic Link Library Win32 Static Library Platforms ee om Step 2 The application program must include the head files shown in the below figure The 17000 h and 18000 h and 187K h are the declaration files for l 7000 l 8000 and I 87K series modules respectively Address 3 E Test DI Go Name L sze type s
47. ATION 4 1 Application in VISUAL C The whole demo programs of VC development enlivenment are given in directory DCON_DLL Demo Vc They are tested OK under Windows 95 98 NT 2000 XP and Visual C 4 0 development tool The VC user has to include these files as following DCON_DLL Driver UART DLL gt functions to deal with RS 232 DCON_DLL Driver I7000 DLL gt functions for A D D A DI D O DCON_DLL Driver VC UART h declarations for UART DLL DCON_DLLY Driver VC I7000 h gt declarations for 17000 DLL DCON_DLL Driver VC I8000 h declarations for 17000 DLL DCON_DLL Driver VC I87000 h declarations for 17000 DLL DCON_DLL Driver VC UART lib gt import library of UART DLL DCON_DLL Driver VC I7000 lib gt import library of 17000 DLL DCON_DLL Driver WCWU7000u cpp gt functions for VC Demos oO ON Oa FW N The key points for how to use these demo programs are given as following 1 Enter the DOS command prompt under Windows 2 Make sure the environment variable PATH which includes the Visual C compiler 3 Execute the MSDEV BIN VCVARS32 BAT one time to setup the environment variable Visual C will provide the VCVARS32 BAT file The application program must include 17000 H 18000 h 187k and uart h 4 Copy the UART LIB and 17000 LIB to the same directory with application program 5 Edit the demo program refer to CON_DLL Demo vc demoXX demoXX C 6 Edit the NM
48. AnalogOutFsr 87K Description Output the analog value of analog output through of span data format for I 87K series modules This function only can be used after analog output module is set as FSR output mode Syntax AnalogOutFsr 87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x87022 87026 Checksum O disable 1 enable Time out setting normal 100 unit ms The analog output channel No 0 to 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf WORD Input Output Table fBuf 0 Analog output value in of Span data format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 TT H AnalogOutReadBackHex 87K Description Read back the analog output value of analog output modules in hex format for 87K series modules There are two types of read back functions as described in the following 1 Last value is read back by AA6 command 2 Analog output of current path is read back by AA8 comma
49. Buf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 110 m ReadinputSignalMode 7080 Description Obtain the setting value of input signal mode in l 7080 module For more detail information for Input signal mode please refer user s manual Syntax ReadlnpuitSignalMode 7080 WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive 0 gt Counter 0 TTL Counter 1 TTL 1 gt Counter 0 Photo Counter 1 Photo 2 gt Counter 0 TTL Counter 1 Photo 3 gt Counter 0 Photo Counter 1 TTL fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 111 m SetinputSignalMode 7080 Description Configure the setting value of input signal mode in l 7080 module Syntax SetInputSigna
50. DCON DLL User s Manual Version 3 5 Dynamic Link Library DLL for DCON 1 7000 8000 87K Series Modules Warranty All products manufactured by ICPDAS Inc are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICPDAS Inc assumes no liability for damages consequent to the use of this product ICPDAS Inc reserves the right to change this manual at any time without notice The information furnished by ICPDAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICPDAS Inc for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 1997 2003 by ICPDAS Inc and all rights is reserved Trademark The names used for identification only maybe registered trademarks of their respective companies License The user can use modify and backup this software on a single machine The user may not reproduce transfer or distribute this software or any copy in whole or in part DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 1 Contents 14 INTRODUCTION seen 2 ARCHITECTURES UNDER WINDOWS rmnnnvvnnnnnnnvvnnnnnnnnnenennnnnnvennnnnnnnvenennnnner 34 INSTALEA ION vunne udedaniduknd de 3 1 NN EE HE ee ee eer EA ONE GIE 4 DELJAPPLICATION ciscescccscartacwinacasauenacaiauescuaierancweravenauducvenerdenuenacaaavencatuavensdanecds 4 1 4 2 4 3
51. DLL user s Manual 2003 June Ver 3 5 7MS 018 35 160 APPENDIX C Error Code Error Code Constant Value Description NoError 0 Functions work normally FunctionError 1 Call wrong function error PortError 2 Use wrong COM Port error BaudRateError 3 Baud rate error DataError 4 Data Bit error StopError 5 Stop Bit error ParityError 6 Parity Bit error CheckSumeError 7 CheckSum mechanism error ComPortNotOpen 8 COM is not open error SendThreadCreateError 9 Send thread create error SendCmdError 10 Send command error ReadComStatusError 11 Read COM Port status error ResultStrCheckError 12 Result string check error CmdError 13 Command error TimeOut 15 TimeOut error ModuleldError 17 Module ID error AdChannelError 18 Channel number error UnderInputRange 19 Under input range error ExceedinputRange 20 Exceed input range error InvalidateCounterNo 21 Invalidate counter number error InvalidateCounterValue 22 Invalidate counter value error InvalidateGateMode 23 Invalidate gate mode error InvalidateChannelNo 24 Invalidate channel No error ComPortInUse 25 COM Port is in use error DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 161 PROBLEMS REPORT Technical support is available at no charge The best way to report problems is send electronic mail to serviceQicpdas com When reporting problems please include the followi
52. DLL user s Manual 2003 June Ver 3 5 7MS 018 35 47 E DisableAlarm Description Disable alarm function of l 7000 series modules This fuction currently supports l 7011 l 7012 l 7014 and I 7016 Syntax DisableAlarm WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 7012 7014 7016 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Not used wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 48 m ClearLatchAlarm Description This function can clear the alarm latched of l 7000 series modules This fuction currently supports l 7011 l 7012 l 7014 and I 7016 Syntax ClearLatchAlarm WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument
53. June Ver 3 5 7MS 018 35 65 6 3 Analog Output Functions 6 3 1 1 7000 series modules m AnalogOut Description Output the analog value from Analog output module of l 7000 series modules Syntax AnalogOut WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID ID 0x7016 21 22 24 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The analog output channel No 0 to 3 of module l 7024 No used for single analog output module 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Analog output value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 66 E AnalogOutReadBack Description Read back the analog output value of analog output modules for l 7000 series modules There are two types of read back functions as described in the following 1 Last value is read back by AA6 command 2 Analog output of current path is read
54. K Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 7012 7013 7014 7017 7018 7033 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Channel number for 7017 7018 7033 wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Note wBuf 6 is the debug setting If this parameter is set as 1 users can get whole command string and result string from szSend and szReceive respectively fBuf Float Input Output Table fBuf 0 Analog input value return DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 32 E AnaloginHex Description Obtain the analog input value in Hexadecimal format from l 7000 series modules Syntax AnaloginHex WORD wu float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 7012 7013 701
55. Long As In Declare Function Change Config Lib uart dll ByVal Port As Byte ByVal dwBaudrate As Long ByVal c Declare Function Send_Cmd Lib uart dll ByVal Port As Byte ByVal Cmd As String _ ByVal TimeOut As Integer ByVal wChkSum s Integer As Integer Declare Function Receive Cmd Lib uart dll ByVal Port As Byte ByVal szResult As String _ ByVal TimeOut As Integer ByVal CheckSum As Integer wT As Integer As Integer Declare Function Send_Binary Lib uart dll ByVal Port As Byte ByVal Cmd As Stlring _ iLen As Integer As Integer Declare Function Receive_Binary Lib uart dll ByVal Port As Byte ByVal szResult As String _ ByVal TimeOut As Integer ByVal wLen s Integer wT As Integer As Integer SelitideleiientitnintetllVal Port As Byte ByVal szCmd As String ring ByVal TimeOut As Intege 3 Declare Function Dett r Deva ees m AS Integer wT As Integer po ee ee ere ee ae Bao Trees exsion Lib i7000 d11 As elatesa Declare Function ReadConfigStatus Lib i7000 d11 w7000 As Integer f7000 As Single _ ByVal SendTo7000 As String ByVal ReceiveFrom7000 As String As Integer A DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 16 4 4 USING DELPHI The demo programs are tested OK in Windows 95 98 NT 2000 XP and Delphi 3 0 version The Delphi user has to use these files as following 1 DCON_DLL Driver UART DLL gt functions to deal with RS 232 DCON_DLL Driver l700
56. Manual 2003 June Ver 3 5 7MS 018 35 84 WH ReadEventCounter Description Obtain the value of event counter of I 7000 series modules This function only supports l 7011 l 7012 and l 7014 modules Syntax ReadEventCounter WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 0x7014 0x7016 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive The value of event counter fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 85 m ClearEventCounter Description Clear the value of event counter of l 7000 series modules This function only supports l 7011 l 7012 and l 7014 modules Syntax ClearEventCounter WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others
57. ORD Input Output argument table fBuf Float Input Output argument table SzSend Command string to be sent to I 87K series modules szReceive Result string receiving from 87K series modules Return Value NoError OK Others Error code dwBuf WORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address 0x00 to OxFF dwBuf 2 Module ID 0x87022 87026 dwBuf 3 Checksum 0 disable 1 enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 0 command AA6 read back 1 command AA8 read back dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive dwBuf 7 The analog output channel fBuf Float Input Output Table fBuf 0 Analog output value read back in of Span data format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 79 6 4 Digital Input Functions 6 4 1 1 7000 series modules m Digitalln Description Obtain the digital input value from l 7000 series modules Syntax Digitalln WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6
58. Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 0x8017h 0x8018 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The channel number of analog input module for 8013 17 18 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive Slot number the I O module installed in l 8000 main unit The analog input value in Hex format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 40 m AnaloginFsr 8K Description Obtain the analog input value in FSR format from l 8000 series modules The FSR means Percent format Syntax AnaloginFsr 8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules
59. PowerOn value Note that the power on value can be set as different output value before module is reset Therefore the user needs to send output command AA5 to module for checking and keeping the same output state before and after module watchdog reset Figure 5 Module Watchdog will reset the module when the module is hanged DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 151 The flow chart of the failure detection for module hardware watchdog is given as Figure 6 Get every module s failure status by A45 Clear the status reset and use the PowerOn value No s 0 This value may be ag ta and may be dangerous for your applications Thus you must output the correct value again for work correctly Function n Figure 6 The flow chart of Module Watchdog DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 152 m Comparison of Host and Module Watchdog Host Watchdog Module Watchdog Software or e Software Watchdog Hardware Watchdog Hardware e Built in firmware e Circuit in module Monitor the Host PC e Monitor the Module Purpose e Used in all output modules Used in all modules When to occur Host is down e Communication line is broken e Module is hanged Noise is too large in the working environment e Module go to safe state e Module status S 0x04 e Module s output go to safe Reset the Module Module Reset s
60. ReadModuleMode 7080 Description Obtain the setting status of counter alarm mode in l 7080 module Syntax ReadModuleMode 7080 WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt alarm mode 0 5 alarm mode 1 gt no save to szSend amp szReceive gt save to szSend amp szReceive OD fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 116 m SetLevelVolt 7080 Description Configure the high or low trigger level value of non isolated input in l 7080 module Syntax SetLevelVolt 7080 WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7
61. a format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 71 6 3 1 1 8000 series modules m AnalogOut 8K Description Output the analog value of analog output module for 1 8000 series modules Syntax AnalogOut 8K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8024 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog output channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit fBuf Float Input Output Table fBuf 0 Analog output value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 72 H AnalogOutReadBack 8K Description Read back the analog output value of analog output module for l 8000 series modules This function currently supports 1 8022 8024 8026 modules Syntax AnalogOutReadBac
62. ar szSend char szReceive Input Parameter dwBuf DWORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 8000 series modules szReceive Result string receiving from l 8000 series modules Return Value NoError OK Others Error code dwBuf DWORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address from 0x00 to OxFF dwBuf 2 Module ID 0x8013 801 7 801 8 8033 dwBuf 3 0 checksum disable 1 checksum enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 The specified channel number for 1 8013 8017 8018 8033 dwBuf 6 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive dwBuf 7 Slot number the UO module installed in I 8000 main unit dwBuf 8 0 gt Low Alarm 1 gt High Alarm dwBuf 9 0 gt disable gt Momentary alarm mode SLatch alarm mode fBuf Float Input Output Table Not used N DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 53 m SetAlarmConnect 8K Description This function makes a connection effect between DO module and alarm function of analog input modules in l 8000 main unit That is if the alarm function of analog input has happened then the specified DO channel of DO modules produce the defined output Syntax SetAlarmConnect 8K DWORD dwBulfl float fBuf char szSend char szReceivef Input Parameter dwBuf fBuf
63. argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87013 87017 87018 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The channel number of analog input module for 87013 1 7 18 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The analog input value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 45 m AnaloginAll 87K Description Obtain the analog input values of all channels from 1 87013 1 87017 and 1 87018 Syntax AnalogInAll_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87013 0x87017 87018 0 checksum disable 1 c
64. ate alarm mode Strain Gauge Strain Gauge 1 gt Stain Gauge Using I 7016 to simulate LinearMap function Using l 7021 to simulate analog input source Strain Gauge 1 gt Application demo program of Stain Gauge VB Demo List 7k UART Demo00 gt Send Receive command demo for 7000 series Analog Demo01 gt Analogln for 7000 series Demo02 gt Analog Input demo for 7017 7018 Demo03 gt AnalogOut in Hex or Fsr format for 7021 Demo04 gt AnalogOut demo amp performance evaluation Demo05 gt AnalogInAll demo amp performance evaluation Demo06 gt Demo program for use MSComm and UART DLL to read analog input value Demo07 gt demo program for send synchronal command and read analog input value from several modules Demo08 gt Demo program for 7016 and 7033 to set display channel of model and get display channel Demo09 gt Multi speed demo 7012 and one 7021 Digital Demo10 gt Digitalln demo amp performance evaluation Demo1 1 gt DigitalOut demo amp performance evaluation 7080 Demo12 gt reading 7080 7080D Counter Frequency value Demo13 gt 7080 7080D Alarm demo Alarm gt Demo program for alarm of 7000 series module DCON DLL
65. ble Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7021 0x7024 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms The analog output channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Analog output safe value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 139 E SetPowerOnValueForAo Description Configure the initial analog output of analog output module for l 7024 module when its power is on Syntax SetPowerOnValueForAo WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7021 0x7024 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The analog output Cha
66. cedaciescsivevescsdaaiesedinevescsinaestcies 147 Operation PING Eed een 147 Host WatchDog DEE 148 Module Watchtog 151 Comparison of Host and Module Watchdog 153 APPENDIX B DEMO LIST aaa aa ais aa aa a paie ea paa aaa aa aaa aaa aaa aia aaa aaa aR 154 VISUAL C DEMO PROGRAM 154 DELPHI DEMO PROGRAM ua 155 VISUAL BASIC DEMO PROGRAM 4 Jade gn 157 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 6 BORLAND C BUILDER DEMO PROGRAM APPENDIX C ERROR GODE eserdeeggeeugegegegegege avenewtaavancdessncacstndresedenduacadeaawadadeeds ERROR GODE serer eee een PROBLEMS REPORT E DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 7 1 INTRODUCTION There are two software packages which are DCON Utility and DCON DLL for ICPDAS DCON 1 7000 8000 87K series modules The DCON Utility is an utility diagnostic package for WINDOWS 95 98 NT 2000 XP users End user can easily setup the configuration of I 7000 8000 87K series modules by this tool The functions of DCON Utility are listed as below 1 d OO s en e es RS 232 COM port selection Search the DCON 1 7000 I 8000 and 1 87K series modules in control Network To setup the configuration for DCON series modules Module calibration Analog Input Output Digital Input Output Hi Lo alarm setting Send Command string and receive response The DCON_DLL is a DLL functions designed for Windows 95 98 NT 2000 XP and can be utilized by VC
67. ceive 1 gt save toSendTo7000 amp szReceive The high word of preset value The low word of preset value fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 114 E SetModuleMode 7080 Description Configure the alarm mode of the selected counter in l 7080 module There are two counter alarm modes alarm mode 0 and alarm mode 1 These two alarm modes can be used in both of l 7080 amp I 7080D For more detail information please refer user s manual Syntax SetModuleMode 7080 WORD wBufl float fBuf char zSendTo7000 char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt to set into 7080 alarm mode mode 0 1 gt to set into 7080D alarm mode mode 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 115 E
68. close state If the response value is 1 thermocouple l 7011 is working in open state For more information please refer to user manual Syntax ThermocoupleOpen_7011 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive wBuf 5 0 gt the thermocouple is close 1 gt the thermocouple is open fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 36 m SetLedDisplay Description Configure LED Display for specified channel of l 7033 or l 7016 Syntax SetLedDisplay WORD wBulf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 70
69. d read analog input value from several modules Demo10 gt scan rate testing for analog input Digital Demo1 1 gt Digital Input demo Demo12 gt Digital Output demo Demo13 gt Digital Input Output demo for 7050 7060 SafeAl gt Safe value for Al module s output for 7011 7012 7014 ASafeAO gt Safe value for AO module for 7021 7024 SafeDO gt Safe value for Digital output module Start1 gt Getting Started for 7011 7012 7014 WatchDog gt Dual Watchdog demo WatchDog2 gt Dual WatchDog demo 87k DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 155 AnalogOut_87K gt AnalogOut_8K demo Analogin_87K gt Analogin 8K demo Di gt Digital Input demo Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Output and ReadBack demo 8k AnalogOut_8K gt AnalogOut_8K demo Analogin_8K gt Analogin 8K demo Di gt Digital Input demo Do gt Digital Output and ReadBack demo DoBit gt Digital Bit Output and ReadBack demo DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 156 VISUAL BASIC DEMO PROGRAM These files are too large to print in this manual refer to floppy disk for details DCON_DLL Demo VB Using l 7012 and l 7021 to simul
70. e Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 103 m ClearCounter 7080 Description Clear the value of the selected counter in module l 7080 Syntax ClearCounter 7080 WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Clear the value of counter 0 1 gt Clear the value of counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 104 E ReadCounterMaxValue 7080 Description Obtain the maximum setting value of the selected counter in module l 7080 Syntax ReadCounterMaxValue 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Out
71. e Ver 3 5 7MS 018 35 91 m ClearDigitallnCounter 87K Description Clear the counter value of the digital input channel No of I 87K series modules Syntax ClearDigitallnRead 87K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dWBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x87051 52 53 54 63 Checksum O disable 1 enable Time out setting normal 100 unit ms The digital input channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 92 6 5 Digital Output Functions 6 5 1 1 7000 series modules m DigitalOut Description Output the value of the digital output module for l 7000 series modules Syntax DigitalOut WORD wull float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Comma
72. e_7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt the gate is low active gt the gate is high active 3 the gate is disable gt no save to szSend amp szReceive gt save to szSend amp szReceive ON fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 121 E ReadGateMode 7080 Description Obtain the setting status of the gate control mode in l 7080 module Syntax ReadGateMode 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf
73. eceiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt momentary alarm mode 1 gt latch alarm mode 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 109 m DisableCounterAlarm 7080D Description Disable the alarm mode of I 7080D module This function only supports I 7080D module Syntax DisableCounterAlarm 7080D WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive f
74. ed by the module In addition if PC is work and try to control the module again host PC can send command AA0 to read in the module status and then use command AA1 to clear the module status to let the module work again AA 1 Clear module status Figure 3 Host PC must use command AA0 to read the module status and AA1 to clear the module status The flow chart of the host computer is given as Figure 4 Note that host OK cammand must be sent out to notify the module after every function sent DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 149 watchdog timer before time out Figure 4 The flow chart of Host Watchdog DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 150 ms Module WatchDog The module watchdog is a hardware reset circuit to monitor the modules s operation status While working in a harsh or noisy environment the module may be down by the external signal The circuit may let the module to work continuous and never halt The reset status is set while the module power on or reset by module watchdog And it can be cleared while the command AA5 of read reset status is applied This command is useful for user to check the module working status When the reset status is set means that the module is reset and the output may be change to the PowerOn value When the reset status is clear means that the module is not reseted and the output is not change to
75. f WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Not used wBuf 2 Not used wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Not used wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 131 m ToSetupHostWatchdog Description Configure the timer working interval of the Host Watchdog for l 7000 series modules Also it can enable or disable WatchDog function Syntax ToSetupHostWatchdog WORD wull float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Not used 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 Disable host watchdog 1 Enable host watchdog If TimeOut value 0 then disable the Host Watchdog 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Timer setting for watchdog
76. g input value Note Users have to use DCON utility to set up the analog input configuration of the module in FSR format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 34 H AnaloginAll Description Obtain analog input values of all channels from l 7017 or l 7018 or l 7033 Syntax AnalogInAll WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 2 3 4 255 wBuf 1 Module address 0x00 to OxFF wBuf 2 Module ID 0x7017 18 33 wBuf 3 Checksum 0 disable 1 enable wBuf 4 Time out setting normal 100 unit ms wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Analog input value of channel 0 fBuf 1 Analog input value of channel 1 fBuf 7 Analog input value of channel 7 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 35 E ThermocoupleOpen 7011 Description This function can be used to detect the thermocouple state of l 7011 module for the supporting type J K T E R S B N C is open or close If the response value is 0 thermocouple l 7011 is working in
77. he PC s RS 232 port For application UART H and UART LIB stand as the header file and import library of UART DLL respectively The 17000 DLL is designed for the control application functions of 1 7000 8000 87K series modules That is I7000 DLL will call UART DLL to send command to and receive response from the DCON series modules DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 10 3 2 README TXT FILES The DCON DLL software will be continuously upgrade all the time Therefore some information may not be given in this manual All of the extra information will be provided in the files that are located in the companion floppy disk or CD ROM as following after the installation DCON_DLL readme txt gt DCON_DLL release notes DCON_DLL WhatNew txt gt DCON_DLL release what s new DCON_DLL Demo VC DemoList txt gt The list of demo programs for VC DCON_DLL Demo VB DemoList txt gt The list of demo programs for VB DCON_DLL Demo Delphi DemoList txt gt The list of demo programs for Delphi DCON_DLL Demo BCB DemoList txt gt The list of demo programs for BCB The contents of readme txt can be depicted as following Release notes User s manual Demo program documentation Compiler amp link documentation Application notes It is recommended to read readme txt file very carefully before starting to use this DCON software DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 11 4 DLL APPLIC
78. he analog output channel No 0 to 3 of module l 7024 No used for single analog output module dwBuf 9 Analog output value in Hexadecimal Data format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 70 H AnalogOutReadBackFsr Description Read back the analog output value of analog output modules through of span data format for l 7000 series modules 1 Last value is read back by AA6 command 2 Analog output of current path is read back by AA8 command Syntax AnalogOutReadBackFsr WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf SzSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 9 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7021 21P 22 Checksum O disable 1 enable Time out setting normal 100 unit ms 0 command AA6 read back 1 command AA8 read back 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive The analog output channel No 0 to 3 of module l 7024 No used for single analog output module Analog output value in of Span dat
79. hecksum 0 disable 1 enable Time out setting normal 100 unit ms 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Power on value in hex format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 144 m ReadSafeValueForDo Description Obtain the safe setting value of digital output module for l 7000 series modules when WatchDog function of the module has been enabled Syntax ReadSafeValueForDo WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7050 60 63 65 66 67 42 43 44 Checksum O disable 1 enable Time out setting normal 100 unit ms Safe Value in hex format 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 145 m ReadConfigStatus Description Obtain the configuration status of the module for l 7000 series modules F
80. hecksum enable Time out setting normal 100 unit ms 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 fBuf 1 fBuf 7 analog input value of channel 0 analog input value of channel 1 analog input value of channel 7 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 46 6 2 Module Alarm Functions 6 2 1 1 7000 series modules E EnableAlarm Description Enable the alarm function of l 7000 series modules and configure it in the status of momentary alarm and latch alarm mode This fuction currently supports l 7011 l 7012 l 7014 and I 7016 Syntax EnabledAlarm WORD wBufl float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 7012 7014 7016 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 0 gt momentary alarm mode 1 gt latch alarm mode wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON
81. ion Obtain the alarm status of analog input modules for 1 8000 series modules Syntax ReadAlarmStatus_8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf DWORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 8000 series modules szReceive Result string receiving from l 8000 series modules Return Value NoError OK Ohers Error code dwBuf DWORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address 0x00 to OxFF dwBuf 2 Module ID 0x8013 17 18 33 dwBuf 3 Checksum 0 disable 1 enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 The defined analog input channel No dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive dwBuf 7 Slot number the I O module installed in 1 8000 main unit dwBuf 8 1 High Alarm Occur 0 Don t Occur dwBuf 9 1 Low Alarm Occur 0 Don t Occur fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 59 6 3 Strain Gauge Functions m SetupLinearMapping Description Configure the linear mapping translation of l 7014 or l 7016 module from raw data range to target range data value However before using this function user need to get the module s range code of the module by calling ReadConfigStatus and set it into wBuf 7 That is this function provides linear mappi
82. iption Obtain the status of the linear mapping function for l 7014 or l 7016 module Syntax ReadLinearMappingStatus WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7014 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms 0 linear mapping is disable 1 linear mapping is enable 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 63 m ReadSourceValueOfLM Description Obtain the setting value of Linear Mapping source range for I 7014 7016 module Syntax ReadSource ValueOfLM WORD wull float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others ORD Input Output argument table float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules
83. ital output channels If wBuf 7 is 1 it means to output the digital value through Bit2 and Bit3 digital output channels Syntax DigitalOut 7016 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms 2 bit digital output data in decimal format 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive 0 BitO Bit1 output 1 Bit2 Bit3 output fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 96 6 5 2 1 8000 series modules m DigitalOut 8K Description Set the digital output value of digital output module for l 8000 series modules Syntax DigitalOut_8K DWORD dwBufl float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command stri
84. k is broken gt can t send out command to modules The software host watchdog is designed to monitor the host computer If the host computer is down the output value of the modules will automatically go to their predefined safe states to avoid unpredictable damaged Followings are the three methods for Host watchdog after module host watchdog is enabled 1 Host PC sends command to every module to notify that the Host PC is OK If module host watchdog is enabled this command must be sent to the module within the timeout period of watchdog timer and reset timer to mean that Host PC is OK Figure 1 Host PC send command to every module to notify that the Host PC is OK 2 When the host PC command can not be sent to every module which may be caused by host PC is down or RS 485 network is broken that is module watchdog timer can not be reset within default time period Therefore the module figures out the host PC is down and then it set the output value to the predefined safety value to avoid unpredictable damaged DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 148 Wires connection is broken Figure 2 If Host PC can not send command to every module then every Host Watchdog of the module set its output the predefined value for safety reason 3 Once the timer of host watchdog is not reset by host PC and module safety output is preduced then any command will be ignor
85. k_8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8024 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog output channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit fBuf Float Input Output Table fBuf 0 Analog output read back value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 73 6 3 3 1 87K series modules m AnalogOut 87K Description Output the analog value of analog output module for I 87K series modules Syntax AnalogOut_87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules
86. lMode 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms gt Counter 0 TTL Counter 1 TTL gt Counter 0 Photo Counter 1 Photo gt Counter 0 TTL Counter 1 Photo gt Counter 0 Photo Counter 1 TTL gt no save to szSend amp szReceive gt save to szSend amp szReceive O U N O fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 112 m PresetCounterValue 7080 Description Configure the preset value of the selected counter in l 7080 module Syntax PresetCounterValue 7080 WORD wull float Bull char szSend char szReceive double PresetValue Input Parameter wBuf fBuf szSend szReceive PresetValue Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000
87. lied to change the Baudrate setting of serial communication after COM port was opened Syntax Change BaudRate char cPort DWORD dwBaudrate Input Parameter cPort 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 dwBaudrate 50 75 110 134 5 150 300 600 1200 1800 2400 4800 7200 9600 19200 38400 57600 115200 Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 28 m Change Config Description This function only can be used to change the configuration of the COM port after COM port was opened Syntax Change Config char cPort DWORD dwBaudRate char cData char cParity char cStop Input Parameter cPort 1 COM1 2 COM2 255 COM255 dwBaudRate 50 75 1 10 134 5 150 300 600 1 200 1 800 2400 4800 7200 9600 19200 38400 57600 1 15200 cData 5 6 7 8 data bit cParity 0 NonParity 1 OddParity 2 EvenParity cStop 0 1 stop 1 1 5 stp 2 2 stop Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 29 m Get Uart Version Description Users can obtain the version information of UART DLL Syntax Get Uart version void Input Parameter Users don t need to provide any parameter Return Value Return the version of UART DLL with hexadecmal format Demo Program int ver Set ver is a integer Variable ver Get_Uart_Version f the return value is 0X202 it means the versi
88. lue is 0 it means module has not been reset If the return value is 1 it means module has been reset Syntax ReadModuleResetStatus WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 module has not been reset 1 module has been reset 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 134 E ReadModuleHostWatchdogStatus Description Obtain the modules Host Watchdog status for l 7000 series modules If the return value is 0 it means Module s Host watchdog is in NORMAL mode If the return value is 4 it means Module s Host watchdog is in HOST FAILURE mode Syntax ReadModuleHostWatchdogStatus WORD wu float fBuf char szSend char szReceivef Input Parameter wBuf
89. modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7014 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 61 m DisableLinearMapping Description Disable the linear mapping function for l 7014 or l 7016 module Syntax DisableLinearMapping WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7014 0x7016 Checksum O disable 1 enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 62 m ReadLinearMappingStatus Descr
90. n the command string Otherwise the command string will be stoped by space character For example 01M 02 03 is user s command string However the actual command sent out is 01M Syntax Send_Cmd char cPort char szCmd WORD wTimeOut WORD wCheckSum Input Parameter cPort 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 szCmd Sending command string Terminated with O wTimeOut Communicating timeout setting time unit 1ms wCheckSum 0 DISABLE 1 ENABLE Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 23 m Receive Cmd Description Users can utilize this function to obtain the response string from the modules in RS 485 Network And this function provides a response string without the last byte 0xOD Syntax Receive Cmd unsigned char cPort char szResult WORD wTimeOut WORD wChksum WORD wT Input Parameter Cport 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 szResult Receiving the response string from the modules wTimeOut Communicating timeout setting time unit 1ms wCheckSum 0 DISABLE 1 ENABLE wT Total time of receiving interval unit 1 ms Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 24 m Send Binary Description Send out the command string by fix length which is controlled by the parameter iLen The difference between
91. nd Syntax AnalogOutReadBackHex_87K DWORD dwBulf float fBuf char szSend char szReceivef Input Parameter dwBuf DWORD Input Output argument table fBuf Float Input Output argument table SzSend Command string to be sent to I 87K series modules szReceive Result string receiving from 87K series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address 0x00 to OxFF dwBuf 2 Module ID 0x87022 87026 dwBuf 3 Checksum 0 disable 1 enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 0 command AA6 read back 1 command AA8 read back dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive dwBuf 7 The analog output channel No 0 to 1 dwBuf 9 Analog output value read back in Hexadecimal Data format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 78 H AnalogOutReadBackFsr 87K Description Read back the analog output value of analog output modules through of span data format for 87K series modules There are two types of read back functions as described in the following 1 Last value is read back by AA6 command 2 Analog output of current path is read back by AA8 command Syntax AnalogOutReadBackFsr 87K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf DW
92. nd amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The trigger level setting value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 118 m SetMinSignalWidth 7080 Description Configure the width value of the minimum high or low input signal level in 1 7080 module Syntax SetMinSignalWidth 7080 WORD wBuf float fBuf char szSend char szReceive long MinWidth Input Parameter wBuf fBuf szSend szReceive MinWidth Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules The minimum input signal width of the high or low trigger level The value unit is uS and the corresponding range is from 2 uS to 65535 uS For Example when MinWidth 2000 it means the minimum with is 2 mS OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt set the min width at low level 1 gt set the min width at high level 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 200
93. nd amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in I 8000 main unit fBuf Float Input Output Table fBuf 0 fBuf 1 fBuf 7 analog input value of channel 0 analog input value of channel 1 analog input value of channel 7 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 42 6 1 3 1 87K series modules m Analogin 87K Description Obtain the analog input value from 87K series analog input modules for example 1 87017 or 1 87018 Syntax Analogin 87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87013 0x87017 0x87018 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Channel number of analog input module for 87013 1 7 18 33 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 The analog input value return DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35
94. nd amp szReceive 1 gt save to szSend amp szReceive Hi Word of counter value Lo Word of counter value fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 125 m SetAlarmLimitValue 7080 Description Users can set alarm limit value for l 7080 for alarm mode 0 Syntax SetAlarmLimitValue 7080 WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number to 255 Module address 0x00 to OxFF Module ID 0x7080 Checksum O disable 1 enable Time out setting normal 100 unit ms When in 7080 alarm mode mode 0 0 To set Counter 0 alarm value 1 To set Counter 1 alarm value When in 7080D alarm mode mode 0 0 To set Counter 0 high alarm value 1 To set Counter 0 high high alarm value 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 126 m ReadCounterStatus 7080 Description Obtain the counter working status readi
95. nd string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7050 60 63 65 66 67 42 43 44 11 12 14 80 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital output data 0 gt no save to szSend amp szReceive 1 Save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 93 WR DigitalBitOut Description Set the digital output value of the channel No of l 7000 series modules The output Value is 0 or 1 Syntax DigitalBitOut WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7050 60 63 65 66 67 42 43 44 Checksum O disable 1 enable Time out setting normal 100 unit ms Not
96. ne Ver 3 5 7MS 018 35 141 m ReadSafeValueForAo Description Obtain the safe setting value of analog output module for l 7000 series modules Syntax ReadSafeValueForAo WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7021 0x7022 0x7024 Checksum O disable 1 enable Time out setting normal 100 unit ms Not used if module ID is 7021 Channel No 0 to 1 if module ID is 7022 Channel No 0 to 3 if module ID is 7024 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Safe value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 142 E ReadPowerOnValueForAo Description Obtain the initial output setting value of analog output module for I 7000 series module when the power is on Syntax ReadPowerOnValueForAo WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others
97. ng from range area a b to c d where fBuf 0 a fBuf 1 b fBuf 2 c fBuf 3 d Syntax SetupLinearMapping WORD wBuf float fBuf J char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address 0x00 to OxFF wBuf 2 Module ID 0x7014 0x7016 wBuf 3 Checksum 0 disable 1 enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Not used wBuf 6 Flag 0 no save 1 save send receive string wBuf 7 Range code of this module fBuf Float Input Output Table fBuf 0 Source low value a fBuf 1 Source high value b fBuf 2 Target low value c fBuf 3 Target high value d DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 60 m EnableLinearMapping Description Enable linear mapping function for l 7014 or l 7016 module Syntax EnableLinearMapping WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series
98. ng information 1 Is the problem reproducible If so how 2 What kind and version of Platform are you using For example Windows 3 1 Windows for Workgroups Windows NT 4 0 etc 3 What kinds of our products are you using Please see the product s manual 4 Ifa dialog box with an error message was displayed please include the full text of the dialog box including the text in the title bar 5 If the problem involves other programs or hardware devices what devices or version of the failing programs do you use 6 Other comments relative to this problem or any suggestions will be welcomed After we had received your comments we will take about two business days to test the problems that you have reported And then We will reply it as soon as possible to you Please check that we had received your comments And please keep in contact with us E mail service icpdas com Web site http Awww icpdas com tw DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 162
99. ng stop of l 7080 module Syntax ReadCounterStatus_7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt to read Counter 0 status 1 gt to read Counter 1 status 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive 0 gt Counting 1 gt Stop fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 127 m SetConfiguration 7080 Description Set the configuration of l 7080 or I 7080D module Syntax SetConfiguration 7080 WORD wull float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Inpu
100. ng to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8041 42 54 55 56 57 60 63 64 65 66 68 77 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital output data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit fBuf Float Input Output Table Not Used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 97 DigitalBitOut_8K Description Set the digital value of the digital output channel No of l 8000 series modules The output value is O or 1 Syntax DigitalBitOut_8K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf WORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address 0x00 to OxFF Module ID
101. nnel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Power On analog output value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 140 E SetPowerOnSafeValue Description Configure the power on and safe value of the digital output channels for l 7011 l 7012 and l 7014 modules Power On value 00 gt DOO off DO1 off 01 gt DOO on DO1 off 02 gt DOO off DO1 on 03 gt DOO on DO1 on Safe value 00 DOO off DO1 off 01 DOO on DO1 off 025 DOO off DO1 on 03 gt DOO on DO1 on Syntax SetPowerOnSafeValue WORD wu float fBuf char zSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address from 0x00 to OxFF wBuf 2 Module ID 0x7011 0x7012 0x7014 wBuf 3 0 checksum disable 1 checksum enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Power On value in hex format wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive wBuf 7 Safe value in hex format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 Ju
102. odule address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Set counter 0 1 gt Set counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceiveseries High word of counter value from the selected counter Low word of counter value from the selected counter fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 102 m StartCounting 7080 Description Start stop the counting process of the selected counter in module l 7080 Syntax StartCounting_7080 WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms gt Select the counter 0 gt Select the counter 1 gt no save to szSend amp szReceive gt save to szSend amp szReceive 3 Stop Counting gt Start Counting ch O O O fBuf Float Input Output Tabl
103. on of UART DLL is 2 0 2 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 30 6 17000 DLL The functions of 17000 DLL can be clarified as 8 groups as depicted as below Analog Input Functions Module Alarm Functions Stain Gauge module Functions Analog Output Functions Digital Input Functions Digital Output Functions Counter module Functions oa EE YS Dual WatchDog and safety Functions The following sections will explore the more detail description for all functions m Get DI Version Description Obtain the version information of 17000 DLL Syntax Get DI Version void Input Parameter Users don t need to provide any parameter Return Value Return the version message by hexadecmal format Demo Program int ver define ver is a integer Variable ver Get_DLL_Version If the return value is 0X505 it means the version of 17000 DLL is 5 0 5 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 31 6 1 Analog Input Functions 6 1 1 1 7000 series modules H Analogin Description Obtain the analog input value from DCON series modules Syntax Analogin WORD wBufl float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError O
104. or more detail information of the parameter please refer to the user s manual Syntax ReadConfigStatus WORD wBuf float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 wBuf 9 wBuf 10 COM port number 1 to 255 Module address 0x00 to OxFF Module ID for all modules Checksum O disable 1 enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Module address Module Range Code Module baudrate Module data format fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 146 APPENDIX A WatchDog Operation Principle All ICPDAS DCON 1 7000 8000 87K series modules equip a hardware module watchdog and software host watchdog The DCON series modules are designed for industry applications therefore they can work in the harsh envioronment The modules may be down if its application environment is very bad and produces the noise effect to not be overcome by modules Therefore the built in hardware
105. out setting normal 100 unit ms 16 bit digital input data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 87 6 4 3 1 87K series modules m Digitalln 87K Description Obtain the digital input value from I 87K series modules Syntax Digitalln 87K DWORD dwBuf float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to I 87K series modules Result string receiving from 87K series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x87054 55 56 57 60 63 64 65 66 68 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital input data 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 88 m DigitallnLatch 87K Description Obtain the digital Input latch value of the high or low latch mode of 1 87K serie
106. put argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Select counter 0 1 gt Select counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive High word of maximum setting value from the selected counter Low word of maximum setting value from the selected counter fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 105 E SetCounterMaxValue 7080 Description Configure the maximum value of the selected counter for module l 7080 Syntax SetCounterMaxValue 7080 WORD wBuf float Gut char szSend char szReceive double MaxValue Input Parameter wBuf fBuf szSend szReceive MaxValue Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules The maximum counter value OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port n
107. r s Manual 2003 June Ver 3 5 7MS 018 35 21 m Send Receive Cmd Description This function sends a command string to RS485 Network and receives the response from RS485 Network If the wCheckSum 1 this function automatically adds the two checksum bytes into the command string and also check the checksum status when receiving response from the modules Note that the end of sending string is added 0x0D to mean the termination of every command This Send Receive Cmd is not a multi task DLL Syntax Send Receive Cmd char cPort char szCmdj char szResult WORD wTimeOut WORD wCheckSum WORD wT Input Parameter cPort 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 szCmd Sending command string szResult Receiving the response string from the modules wTimeOut Communicating timeout setting time unit 1ms wCheckSum 0 DISABLE 1 ENABLE WI Total time of send receive interval unit 1 ms Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 22 E Send Cmd Description This function only sends a command string to DCON series modules If the wCheckSum 1 it automatically adds the two checksum bytes to the command string And then the end of sending string is further added 0x0D to mean the termination of the command szCmd Note that the function Send_Cmd is a multi task and multi thread DLL And this command string cannot include space char withi
108. r 1 disable 1 gt Counter 0 enable Counter 1 disable 2 gt Counter 0 disable Counter 1 enable 3 gt Counter 0 enable Counter 1 enable For 7080D mode alarm mode 1 0 gt Counter 0 disable 1 gt Counter 0 momentary alarm mode 2 gt Counter 0 latch alarm mode DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 123 Counter 1 No used in Alarm mode 1 wBurf 8 Alarm digital output 0 gt DO 0 off DO 1 off 1 gt DO 0 on DO 1 off 2 gt DO 0 off DO 1 on 3 gt DO 0 on DO 1 on fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 124 m ReadAlarmLimitValue 7080 Description Obtain the maximum value of the can read alarm limit value of l 7080 for alarm mode 0 Syntax ReadAlarmLimitValue 7080 WORD wu float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 wBuf 8 COM port number 1 to 255 Module address 0x00 to OxFF Module ID 0x7080 Checksum 0 disable 1 enable Time out setting normal 100 unit ms 0 Counter 0 1 Counter 1 0 gt no save to szSe
109. s modules Syntax DigitallnLatch_87K DWORD dwBuf float fBuf char szSend char szReceivef Input Parameter dwBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to I 87K series modules szReceive Result string receiving from 87K series modules Return Value NoError OK Others Error code dWBuf WORD Input Output Table dwBuf 0 COM port number 1 to 255 dwBuf 1 Module address 0x00 to OxFF dwBuf 2 Module ID 0x87051 52 53 54 58 63 dwBuf 3 Checksum 0 disable 1 enable dwBuf 4 Time out setting normal 100 unit ms dwBuf 5 0 low latch mode 1 high latch mode dwBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive dwBuf 7 Latch value fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 89 m ClearDigitallnLatch 87K Description This function can clear the latch status of digital input module when latch function has been enabled Syntax ClearDigitallnLatch 87K DWORD dwBufl float fBuf char szSend char szReceive Input Parameter dwBuf WORD Input Output argument table fBuf Float Input Output argument table szSend Command string to be sent to I 87K series modules szReceive Result string receiving from I 87K series modules Return Value NoError OK Others Error code dWBuf WORD Input Output Table dwBuf
110. s modules Launenvnenv aus aesanesssessnunmuesm 87 Di italln EE 87 6 49 l 87K series EE 88 Digitalln 87K E 88 DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 4 DigitallnLatch 87K rrrnnnnnnnnonnnnnrrrrnnnnnnnnnrnnnnnrrrnnnnnnnnnrnnnnnrrrnnnnn 89 ClearDigitallnLatch Sch 90 DigitallnCounterRead_87K rrnnnnnnnnnnnnnnnnnnnnnnrrrrnnnnnnnnrrnnnnnrrnnnnnn 91 ClearDigitallnCounter 87K rrrrrnnnnrrrnnnnnnnnnvnnnnnrrrrrnnnnnnnnrrnnnnnnn 92 6 5 DIGITAL OUTPUT FUNCTIONS ee Ce 93 6 5 1 l 7000 genee MOAUIeS anaana aa aaa EATE EKETE EKRENE EKETE ERa 93 DONG UC QU EE 93 Bee LO EE 94 DigitalOutReadBack rrrnnnnnonnnnnnrrrrnnnnnnnnrrnnnnnrrrnnnnnnnnnnnnnnnnnnnnnnne 95 let E Lal Sdt 96 6 5 2 l 8000 series modules sxiiccecectssievesssccheesssnibvesssscheossunibveaaescbeoehuedbvoek teeke 97 DigHalQut TEE 97 lte EE E 98 6 53 EE 99 DigitalOut SGCh 99 DigitalOutReadBack Sch 100 DIGHNAIBIOUL STK Le 101 6 6 COUNTER ENEE 102 Counterln 080 102 StatCo nting 7080 2 uaissereseseaenmerggnemsssaereamavmee 103 ClearCounter 7080 1ssnnrrnnnnrrnnnnnnnnnnnnnnnnvvnnnnnnnnnnnnnnnvnvnnnnnnnn 104 ReadCounterMaxValue 080 105 SetCounterMaxValue 080 106 EnableCounterAlarm 2080 107 DisableCounterAlarm 2080 108 EnableCounterAlarm 20800 109 DisableCounterAlarm 20900 110 ReadlnputzonalMode 2090 111 SetInputSignalMode 080 112 PresetCounterValue 080 113 ReadPresetCounterValue
111. t Output Table Notice if you change the Baudrate or Checksum please short the INIT pin6 to GND pin10 wBuf 0 COM port number 1 to 255 wBuf 1 Module original address 0x00 to OxFF wBuf 2 Module ID 0x7080 wBuf 3 Module original checksum 0 disable 1 enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 Desired frequency gate time 0 0 1 second 1 1 0 second Don t care wBuf 5 if set the module in Counter mode wBuf 6 Flag 0 no save 1 save send receive string wBuf 7 Desired new address wBuf 8 Desired Type 1 Counter mode 0 Frequency mode wBuf 9 Desired Baudrate 3 1200 BPS 4 2400 BPS DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 128 5 4800 BPS 6 9600 BPS 7 19200 BPS 8 38400 BPS 9 57600 BPS 10 115200 BPS wBuf 10 Desired Checksum Address fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 m DataToLed 7080 Description Output the defined data to LED display of I 7080D module Syntax DataToLed 7080 WORD wBufl float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2
112. tatus S 0x01 What to do value Module s output go to All output command will be PowerOn value ignored CLEAR AA1 module status e Ssetto 0 AAO READ module status eS 4 Hostis down S 0 Hostis OK READ module reset sta tus e AA5 eS 1 gt Module Reset eS 0 gt Not reset Setup steps amp Setup the safe value Setup the timer interval value of Host Watchdog and enable the Host Watchdog Setup the PowerOn value Send Host is OK Send this command to modules before timeout of Host Watchdog s timer DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 153 APPENDIX B Demo list VISUAL C DEMO PROGRAM These files are too large to print in this manual refer to floppy disk for details DCON_DLL Demo VC VC Demo List 7k AMFC Analog gt Analog Input demo SDK Demo01 gt Send Receive command with checksum disable Demo02 gt Send Receive command with checksum enable Demo03 gt Send Receive command to Counter ANC PC 202 Demo04 gt Send Receive command to OMRON PLC CQM1 or C200H Demo05 gt Multi speed demo Demo06 gt Multi data format demo Demo20 gt Analog Input demo Demo21 gt Analog Input demo Demo23 gt Analog Output demo Demo24 gt Digital Input demo Demo25 gt Digital Output demo Demo26 gt Multi speed demo Demo2
113. this function and Send cmd is that Send Binary terminates the sending process by the string length iLen instead of the character CR Carry return Therefore this function can send out command string with or without null character under the consideration of the command length Besides because of this function without any error checking mechanism Checksum CRC LRC etc users have to add the error checking information to the raw data by themselves if communication checking system is required Note that this function is usually applied to communicate with the other device but not for ICPDAS DCON 1 7000 8000 87K series modules Syntax Send Binary unsigned char cPort char szCmd int iLen Input Parameter cPort 1 COM1 2 COM2 3 COMB3 4 COM4 255 COM255 szCmd Sending command string Terminated with 0 ILen The length of command string Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 25 m Receive Binary Description This function is applied to receive the fix length response The length of the receiving response is controlled by the parameter iLen The difference between this function and Receive cmd is that Receive Binary terminates the receiving process by the string length iLen instead of the character CR Carry return Therefore this function can be used to receive the response string data with or without null character
114. uf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Not used O checksum disable 1 checksum enable Time out setting normal 100 unit ms Not used 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 136 m SetSafeValueForDo Description Configure the safe value of DO modules for l 7000 series modules when WatchDog function of the module has been enabled Syntax SetSafeValueForDo WORD wBufl float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7050 60 63 66 67 42 43 44 O checksum disable 1 checksum enable Time out setting normal 100 unit ms Safe digital output value in Hex format 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 137 E SetPowerOnValueForDo
115. ules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 8017 8018 O checksum disable 1 checksum enable Time out setting normal 100 unit ms The defined analog input channel No 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive Slot number the I O module installed in 1 8000 main unit 0 gt Low Alarm 1 gt High Alarm fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 55 m SetAlarmLimitValue 8K Description Configure the high or low alarm limit value of analog input modules for 1 8000 series modules Syntax SetAlarmLimitValue_8K DWORD dwBuil float fBuf char szSend char szReceive Input Parameter dwBuf fBuf szSend szReceive Return Value NoError Others DWORD Input Output argument table Float Input Output argument table Command string to be sent to l 8000 series modules Result string receiving from l 8000 series modules OK Error code dwBuf DWORD Input Output Table dwBuf 0 dwBuf 1 dwBuf 2 dwBuf 3 dwBuf 4 dwBuf 5 dwBuf 6 dwBuf 7 dwBuf 8 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x8013 80
116. umber 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt Configure counter 0 1 gt Configure counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 106 E EnableCounterAlarm 7080 Description Enable counter alarm for alarm mode 0 of l 7080 module Syntax EnableCounterAlarm 7080 WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7080 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt enable alarm mode for counter 0 1 gt enable alarm mode for counter 1 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 107 m DisableCounterAlarm 7
117. under the consideration of receiving length Besides because of this function without any error checking mechanism checksum CRC LRC etc users have to remove the error checking information from the raw data by themselves if communication checking system is used Note that this function is usually applied to communicate with the other device but not for CPDAS DCON 1 7000 8000 87K series modules Syntax Receive_Binary unsigned char cPort char szResult WORD wTimeOut WORD wLen WORD wT Input Parameter cPort 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 szResult The receiving string from the module wTimeOut Communicating timeout setting time unit 1ms wLen The length of result string wT Total time of receiving interval unit 1 ms Return Value NoError OK Others Error code DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 26 E Get Com Status Description The function can obtain COM Port status If return value is 0 false it means The COM Port is not in used Otherwise if the return value is 1 true it means The COM Port is in used Syntax Get Com Status char cPort Input Parameter cPort 1 COM1 2 COM2 3 COM3 4 COM4 255 COM255 Return Value 0 COM port is not in used 1 COM port is in used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 27 m Change BaudRate Description This function only can be app
118. unit is 0 1 second For example when wBuf 7 45 the timer interval is 4 5 second fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 132 E ToReadHostWatchdog Description Obtain the setting value of timer interval and WatchDog status of the module for l 7000 series modules Syntax ToReadHostWatchdog WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 wBuf 7 COM port number 1 to 255 Module address from 0x00 to OxFF Not used O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 Host watchdog is disabled 1 Host watchdog is enabled 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive timer setting value for watchdog unit is 0 1 second For example When wBuf 7 45 the timer interval is 4 5 second fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 133 E ReadModuleResetStatus Description Obtain the module reset status If the return va
119. used 0 gt no save to szSend amp szReceive 1 gt Save to szSend amp szReceive The digital output channel No Logic value 0 or 1 fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 94 m DigitalOutReadBack Description Read back the digital output value of l 7000 series modules Syntax DigitalOutReadBack WORD wull float fBuf char szSend char szReceivef Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7050 60 66 67 42 43 44 0 checksum disable 1 checksum enable Time out setting normal 100 unit ms 16 bit digital output data read back 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table Not used DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 95 m DigitalOut 7016 Description Set the digital output value of the specified channel No of l 7016 module If the parameter of wBuf 7 is 0 it means to output the digital value through Bt and Bu dig
120. user s Manual 2003 June Ver 3 5 7MS 018 35 157 Demo08 gt Multi speed demo 7012 and one 7021 SafeAl gt Demo program for safe value of Analog input modules SafeAO gt Demo program for safe value for Analog output modules SafeDO gt Application of demo program for safe value for Digital Output modules Start gt demo program for Getting Start for 7011 7012 7014 Watchdog gt Dual Watchdog for all modules for 70xx Watchdog2 gt Dual Watchdog for all modules for 70xx Digitalln_87K DigitalOut_87K DigitalBitOut_87K AnalogInAll_ 87K AnalogOut_87K amp AnalogOutReadBack_87K Digitalln_8K DigitalOut_8K DigitalBitOut_8K AnalogInAll_ 8K AnalogOut_8K amp AnalogOutReadBack_8K AuotDemo gt DigitalOut_8K InfoDemo gt Get module information DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 158 BORLAND C BUILDER DEMO PROGRAM These files are too large to print in this manual refer to floppy disk for details DCON_DLL Demo BCB BCB3 Demo List 7k UART Demo00 gt Send Receive command demo for 7000 series Demo01 gt Send Receive command demo for 7000 series Analog Demo02 gt Analog Input demo for 7011 7012 7013 7014 Demo03 gt Analog Input demo for 701 1 7012 7013 7014 Demo04 gt Analog Input
121. ut setting normal 100 unit ms wBuf 5 The analog output channel No 0 to 3 of module l 7024 No used for single analog output module wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf WORD Input Output Table fBuf 0 Analog output value in of Span data format DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 69 E AnalogOutReadBackHex Description Read back the analog output value of analog output modules in hex format for l 7000 series modules There are two types of read back functions as described in the following 1 Last value is read back by AA6 command 2 Analog output of current path is read back by AA8 command Syntax AnalogOutReadBackHex WORD wBuf float fBuf char szSend char szReceive Input Parameter wBuf WORD Input Output argument table fBuf Float Input Output argument table SzSend Command string to be sent to l 7000 series modules szReceive Result string receiving from l 7000 series modules Return Value NoError OK Others Error code wBuf WORD Input Output Table wBuf 0 COM port number 1 to 255 wBuf 1 Module address 0x00 to OxFF wBuf 2 Module ID 0x7021 21P 22 wBuf 3 Checksum 0 disable 1 enable wBuf 4 Time out setting normal 100 unit ms wBuf 5 0 command AA6 read back 1 command AA8 read back wBuf 6 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive wBuf 7 T
122. w alarm value setting 1 gt high alarm value setting 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Alarm value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 50 E ReadAlarmLimitValue Description Obtain the high or low alarm limit value of l 7000 series modules This fuction currently supports l 7011 l 7012 l 7014 and I 7016 Syntax ReadAlarmLimitValue WORD wBufl float Gul char szSend char szReceive Input Parameter wBuf fBuf szSend szReceive Return Value NoError Others WORD Input Output argument table Float Input Output argument table Command string to be sent to l 7000 series modules Result string receiving from l 7000 series modules OK Error code wBuf WORD Input Output Table wBuf 0 wBuf 1 wBuf 2 wBuf 3 wBuf 4 wBuf 5 wBuf 6 COM port number 1 to 255 Module address from 0x00 to OxFF Module ID 0x7011 0x7012 0x7014 7016 O checksum disable 1 checksum enable Time out setting normal 100 unit ms 0 gt low alarm value setting 1 gt high alarm value setting 0 gt no save to szSend amp szReceive 1 gt save to szSend amp szReceive fBuf Float Input Output Table fBuf 0 Alarm value DCON DLL user s Manual 2003 June Ver 3 5 7MS 018 35 51 m ReadOutputAlarmState Description Obtain the alarm mode and alarm digital
Download Pdf Manuals
Related Search
Related Contents
Manutenzione Samsung WA4000H Top Loader with Activ Dualwash technology, 7.5 kg, Red دليل المستخدم 取扱説明書 - 日立の家電品 S E R V IC IO - Portal de Servicio Koblenz the Little Reader User Manual User manual 2 Notice d'utilisation 22 Sony XS-L101P5 User's Manual Samsung GW71B Manual de utilizare 10 ÷ 31 - Airwell Copyright © All rights reserved.
Failed to retrieve file