Home
NSDDE Manual
Contents
1. LogData Log Events Retentive Value Initial Value Input Conversion Dn Msg ooo On Off Direct Reverse Off Msg fo Access Name test tem status Use Tagname as Item Name 19 From Excel you can read the status of the communications by entering the following formula in a cell NuDAMITopicName STATUS 3 3 Monitor the Status of an DDE Conversation InTouch also supports a built in topic name called IOStatus DDEStatus in versions prior to InTouch 7 0 that can be used to monitor the status of specific DDE conversations When using the built in topic IOStatus to monitor an I O conversation the item name is the actual Topic Name that you want to monitor Let s assume that WindowViewer View is communicating with the NuDAM 6000 I O DDE Server to a NuDAM module that has been defined in the NuDAM 6000 DDE Server with Modulel for its topic name The tagname definition is as the following figures Tagname Dictionary 9 9 P Members en cot one Group gi m 3 5 20 Excel can also be used to perform this same type of monitoring by entering the same information in a formula in a spreadsheet cell For example to monitor the same topic as above the following would be entered zViewlIOStatus Modulel 21 DDE Item Names In NuDAM 6000 DDE Server The following sections list the commands and the correspon
2. located in Samples directory is provided This configuration file defines all the topic names required for executing our sample programs To use this configuration file set the configuration file path as the directory where this configuration file is located the default is CAADLinkNuDDE6 Samples and then re execute NuDAM 6000 DDE Server program 38 Step 3 DDE Server Settings Protocol Timer Tick 50 msec I NetDDE being used m Configuration File Directory C ADLink nudde6 S amples This configuration file will be used while NuDAM 6000 DDE Server program is re executed For the configured topics fitting your system use Configure Topic Definition command to modify the contents of the topics e COM port module address data format etc Please refer to section 2 2 2 for the detailed descriptions about topic definition Start the InTouch program INTOUCH EXE and select the InTouch sample program you want to execute in the list in the InTouch Application Manager dialog box If the sample programs are not shown in the list on the Tools menu click Find Applications The Starting directory for search dialog box appears and locates the directory in which you want to search for applications and then click OK The InTouch Application Manager will reappear displaying icons for all applications that were found in the selected directory Please refer to InTouch User s Guide or related reference books to get th
3. 6080 R W Integer Trigger Level Gate Mode 6080 Enable Disable LAN 6014D Discrete Read Analog Input AAI 6011 6012 6013 Real Read Analog Input AAI Integer AA1 from channel 0 Analog Data Out AAO1 6021 Real AAO1 AAO2 Real AAO2 AAO3 ger AAO3 Integer AnalogDataOut AAOA AAOD 6024 Red Digital Input from ACIO 27 6011 6012 6014D Integer Chamel 050 602 LI 6053 6054 6058 6060 ACOO 7 6050 6060 6063 R W Channel N Digital Data Out for 7 6056 RW Integer specified port Digital Data for ACOAO0 ACOA7 6058 RW Integer channel N of a ACOBO ACOB7 ME specified port ACOCO ACOC7 Digital Input ADI 6011 6012 6010D Discrete 6053 6054 6058 6060 specified port ADIC 34 Digital Input from all ADIT 6056 6058 Integer Eum m LT ports Digital Output ADO 6011 6012 6014D RW Integer 6050 6060 6063 6080 Digital Output fora ADOH 6056 RW Integer Digital Output for a 6058 Integer Digital Output for all ADOT 6056 6058 R W ports Enable Disable A 6080 Discrete Counter0 Enable Disable A 6080 W Discrete Counter Enable Disable AE 6011 6012 R W Integer fie Eee ol Al Read Alarm Status_ AEA 6080 Integer Read Firmware AF 6011 6012 6013 Message u NE m am aa ri 6050 6052 6060 6080 a a of counter 0 in Hexadecimal of Counter 1 in Hexadecimal Value Read Analog Input A
4. Server User s Manual 2 2 NUDAM 6000 I O DDE Server Configuration For NuDAM 6000 I O DDE Server to perform properly NuDAM 6000 DDE server configuration is required before its operation To perform the required configurations start up NuDAM 6000 I O DDE Server by clicking NuDAM 6000 DDE Server V6 01 from program files menu and then the NuDAM main window is shown as follows rt Settings Topic Definition DDE Server Settings The configuration items include Com Port settings Topic Definition and DDE Server Settings The detail of the configuration items is described in the following sections 2 2 1 Configure Comm Port Configuration To configure the communication ports which are used to communicate with NuDAM Modules select Com Port Setting from Configuration Menu in NuDAM main window The Communication Port Settings dialog box is as follows Communication Port Settings Reply Timeout 3 secs Save Defaults 140 Baud Rate C110 C 300 600 1200 C2400 C4800 9600 14400 19200 38400 r Data Bits Stop Bits Cy ts 4 C2 r Parity Even C dd None C Space The fields and buttons in Communication Port Settings dialog box are described in the following Comm Port Select the communication port for this configuration Reply Timeout This field is used to input the amount of time in seconds the NuDAM modules on this communication port wil
5. Server executes the communication protocol The valid range of the Protocol Timer Tick is from 1 to 65535 and the default value is 50 msec NetDDE being used This field must be checked when Wonderware NetDDE is used Push this button to close DDE Server Settings dialog box and cancel this command Push this button to save the settings and close DDE Server Settings dialog box after the configuration is finished 13 Using NuDAM 6000 1 DDE Server with InTouch 3 1 DDE Item Names Definition in InTouch For InTouch the DDE item name can be defined in Tag Name Dictionary to read write data from other applications To define the tagnames invoke the Special Tag Name Dictionary command in WindowMaker The Tagname Dictionary dialog box will appear Cancel Close Tagname DDETaaname Type o Integer Group system C Readonly Read Write Comment JAccessLevel LogData Log Events Retentive Value Retentive Parameters Click on this button to define a new Tag Name Tag Name DDETagname Enter the Tagname in this field The tagname defined here is the name InTouch will use The NuDAM 6000 DDE Server does not see this name The item name that NuDAM 6000 DDE Server uses is defined in Name field an input field in Details box Click on this button to select the tag type The Tag Types dialog box is as follows 14 Memory Discrete I 0 Discre
6. and 6063 R Read Synchronized A4 Oorl Discrete Data Status this command is only available for NUDAM 6050 6052 6053 6054 and 6060 For InTouch the value of Nth bit of ADI ADO can be requested poked by using Tag ON as the item name For example to request the value of the Oth bit Digital Data In ADI 0 to 255 6050 6052 0 to 65535 6053 0 to 32767 6054 0 to 15 6060 this command is only available for NUDAM 6050 6052 6053 6054 and 6060 example 3 000000115 indicates the status of DO 0 and DO 1 are on and the others are off 28 of ADI for NuDAM 6050 set tagname as Tag 00 or to request the value of the 3th bit of ADI for NUDAM 6050 set tagname as Ta g 03 ACIn and n is the channel number commands are used for the m th channel digital data input and output individually 4 6 NUDAM 6056 6058 Configuration and Digital I O Command Set value Configuration Status Read Firmware Version Read Module Name Synchronized Sampling Digital Data In for DI ADI Digital Data In for a ADIA specified port Digital Data In for all the DI channels and ports ADIT ACIO ACD7 Digital In from Channel N TTCCFF TT input range code CC baud rate code FF 8 bit parameter example 090600 Pe lo Pe lah A2 30 Name example 6050 1 this command is only available for NUDAM 6058 0 to 15 6058 this command is only available for NUDAM 6058 example 3 00
7. the relationship between the number I Read Synchronized Data A8S Oorl Read Synchronized Data Last Value Readback for A6A AOA output port A the specified port A6B A6B output port B A6C A6C output port C A6D A6D output port D E 3 uu a of counts to increase or decrease the output current and the poked values is as follows counts 0 95 0 to 95 counts increase counts 161 255 95 to I counts decrease NuDAM 6024 only supports engineering format ACIn n is the channel number command is used for the n th channel digital data input 4 5 NUDAM 6050 6052 6053 6054 6060 6063 Configuration and Digital I O Command Set Requested Poked value 27 Configuration A2 TTCCFF Message Status TT input range code CC baud rate code FF 8 bit parameter example 090600 Read Firmware Version Message eames S P a 5 example 6050 Synchronized AS 1 W Sampling this command is only available for NUDAM Digital In from ACIO ACI15 1 Integer Channel N this command is only available for NUDAM 6050 6052 6053 6054 and 6060 6050 6052 6053 6054 Digital Data Out ADO Data 0 to 255 for RW Integer NUDAM 6050 Data 0 to 15 for NUDAM 6060 Data 0 to 255 for NUDAM 6063 example 8 00001000 indicates DO3 is on and the others are off and 6060 Digital Data Out for ACOO ACO7 0 1 RW Integer Channel N this command is only available for NUDAM 6050 6060
8. using A5 to read or set channel status the requested or poked values must be in decimal format However the hexadecimal format of the requested or poked value represents the real meaning of the value The bit 3 0 of the first character of the hexadecimal value control channel 7 4 The bit 3 0 of the second character control channel 3 0 For example the requested data is 72 and the hexadecimal format of 72 is 0x48 4 is 0100 means enable channel 6 and disable channel 7 5 4 And 8 is 1000 that means enable channel 3 and disable channel 2 1 0 Please refer to NuDAM 6017 6018 User s Manual for the details The following commands are only available for NUDAM 6018 Command Requested Poked value CJC status A3 Data example 36 8 CJC Offset Calibration Counts 0 65535 W 23 4 3 NUDAM 6011 6012 6013 6014D 1 Analog Input Command Set Command Item Name Requested Poked value R W Read Analog Input from AAI ex 1 6888 for AAT Real Channel 0 AAI ex 12345 for AA1 Integer AA1 EE example 36 8 CJC Status Read Synchronized Data A4 data Real example 5 822 A3 Span Calibration A Offset Calibration CJC Offset Calibration counts 0 65535 W AAT is only valid for 6011 6012 6014D that support Two s complements hexadecimal type of data format Since the data have been converted to be in Decimal format by NuDAM 6000 DDE Server the data type of recei
9. whenever at least one conversation has been established between the server s logical device and the outside world s applications client The topic is de active when the last conversation to a topic has terminated e ltems Tagnames Items are individual pieces of data that are passed between applications An item is active whenever any DDE conversation is referencing this item All the valid item names for NUDAM 6000 DDE server are mentioned in chapter 4 of this manual For example the item name is ADP for client application e g InTouch to get the digital input data of NuDAM 6011 Please refer to the related chapter for the details The following statement is the DDE address convention for representing an DDE conversation ApplicationlTopicMtem For example to get the digital input data of NuDAM 6011 through NuDAM 6000 DDE Server the conversation might be the following assume the topic name is defined as NM601 1 6 ADI Getting Started 2 1 NUDAM 6000 I O DDE Server Installation 2 1 1 Installation The NuDAM 6000 DDE Server Setup program provided by ADLink s Manual amp Software Utility CD performs all tasks necessary for complete installation step 1 step 2 step 3 step 4 step 5 Insert the ADLink s Manual amp Software Utility CD into your CD ROM drive Click the Start button on the Taskbar then choose Run Type x Asetup x identifies the drive that contains th
10. 058 commands are used for the nth channel digital data input and nth channel digital data output from output port p individually 4 7 NUDAM 6080 1 Configuration Counter Input and Display Command Set Item Requested Poked value Data Type Name Configuration Status A2 TTCCFF Message TT input range code CC baud rate code FF 8 bit parameter example 090600 30 Read Firmware Version Read Module Name Input Signal Mode Read Counter Frequency Value of counter 0 or Counter 1 in Hexadecimal Read Counter Frequency Value of counter 0 or Counter 1 in Decimal Item ame Maximum Counter Value of counter or Counter 1 in Hexadecimal Maximum Counter Value of counter or Counter 1 in Decimal Initial Counter value of counter 0 or Counter 1 in Hexadecimal Initial Counter value of counter or Counter 1 in Decimal of counter or Counter 1 51 Read then Clear the A70 or Overflow Flag of counter 71 0 or Counter 1 Command A O or Al Data xxxxxxxx AOD or AID 2 Counter Setup Command Set essage Message Discrete Message E Version example B2 10 Module Name example 6080 RW example 00002FFF Data XXXXXXXXXx example 1234567890 G 0 1 2 Data xxxxxxxx R W Message example 0000FFFF V 0 1 Discrete R W R W R W S 0 1 3 Digital Filter amp Programmable Threshold Command Set Item Name Requested Poked value Data Type Digital Filter St
11. 1 12 indicates the status of DO 0 and DO 1 are on and the others are off 0 to 255 this command is only available for NUDAM 6058 example 3 0000001 15 indicates the status of DO 0 and DO 1 are on and the others are off 0 to 268435455 this command is only available for NUDAM 6058 Oorl this command is only available for NUDAM 6058 meas 10 tem 29 Digital Data Out for the specified port Data 0 to 127 For ADOA ADOB ADOC and ADOL ADOA ADOB Data 0 to 255 ADOC example 8 000010005 indicates DO3 is on and the others are off Digital Data Out for Data 0 to 32767 for RW Integer all Ports NUDAM 6056 Data 0 to 16777215 for NUDAM 6058 Integer Digital Data for For 6056 Data 0 or 1 channel N of a 7 specified port ACOLO ACOL7 For 6058 Read Synchronized A4 Oorl Discrete Data Status this command is only available for NUDAM 6058 ACOAO ACOA7 ACOBO ACOB7 ACOCO ACOC7 Set Programmable Data 0 to 15 For InTouch the value of Nth bit of ADI ADO can be requested poked by using Tag ON as the item name For example to request the value of the Oth bit of ADI for NuDAM 6050 set tagname as Tag 00 or to request the value of the 3th bit of ADI for NUDAM 6050 set tagname as Tag 03 I O Mode this command is only available for ACIn and p is the port number and n is the channel number NUDAM 6
12. 3 NUDAM 6011 6012 6013 6014D 7 sese neret nnne 24 42 4 NUDAM 6021 rete ttt REPERTUS ES RUNI etre 25 7 4 NUDAM 0024 5 tte Sce eee e e eee i e Re 26 4 5 NUDAM 6050 6052 6053 6054 6060 6063 27 4 6 NUDAM 6056 6058 occ cssessesessesessssessnesnssesuesesucsesuesesseecesesceseesesceseseesenesseneeneaesneaeeaeanes 29 4 7 NUDAM 60980 oet REPE PER RE RE RU c etn eels 30 4 7 TABEE FOR ADLETTEMS unde t er cob E A ee Cel E dO E ee E Nd 32 APPENDIX INTOUCH SAMPLE 5 5 37 Introduction to NuDAM 6000 DDE Server NuDAM 6000 I O DDE Server is an application for the Microsoft Windows 95 and Windows NT operating systems It acts as a DDE Dynamic Data Exchange Server and allows other Windows application programs to access data from NuDAM 6000 series Modules NuDAM 6000 I O DDE Server communicates with the NuDAM 6000 series Modules via serial lines It may be used with Wonderware InTouch and any Microsoft Windows program that is capable of acting as a DDE Client 1 1 What is DDE DDE Dynamic Data Exchange is a communication protocol designed by Microsoft to allow concurrently running programs in the Windows environment to exchange data and instructions with each other It implements a client server relationship between the applications The server application provi
13. 8 Channels for Multiplexing 6014D RW String Linear Mapping 3 4 4 Read Synchronized 4 Data Status 6053 6054 6058 6060 i i Reset Status 5 6021 6024 6050 6052 6053 6054 6056 6058 6060 Read Write Target 5 Last Va lue Readback A6 6021 Real A6 A6H Integer A6H 6080 8 8 8 9 0 Digital Filter Status 6080 Discrete 6063 High Low Values for Current Readback 6021 Real A8 Integer A8H Discrete Discrete Discrete Read Synchronized 6024 Select LED Data 6014D Origin Synchronized 6024 Send LED Data 6014D CJC Offset A 6011 6018 e Maximum Counter A30 6080 in Hexadecimal Maximum Counter A 6080 Counter Start Stop A 6080 6 8 3 A A A A A A A A A A A A A 5 5 D H 1 1 in Hexadecimal Status of Counter 1 Read then Clear the A70 6080 overflow flag of counter 0 overflow flag of counter 1 Value of counter 0 in Decimal 33 E m s m Rn z z z lt amp Maximum Counter Value of counter 1 __ a in Decimal Read Counter 6080 Real counter 0 in Decimal Frequency Value of counter 1 in Decimal Initial Counter value AOE 6080 R W Real of counter 0 in Decimal Initial Counter value AIE 6080 W Real of Counter 1 in Decimal 1 AOD AID AOL AIL AIH Minimum Input Signal Width at C O PS Low Level Signal Width at High Level e eel ame pue Trigger Level TTL Input High
14. IO AI7 6013 6017 6018 Real eee ee Read Analog Input AIO AD 6013 Real cdm pe Read Set Low Alarm A 6011 6012 R W Real ee ue ee ee Read Module Name A 6011 6012 6013 Message 6017 6018 6021 6080 Alarm Limit Value of AP 6080 R W Message Hexadecimal Alarm Limit Value of APD 6080 R W Real Decimal Set Programmable AP 6058 W Integer Lom ee eec ee eee A Initial Counter value Read Event Counter 6011 6012 Integer Synchronized 6011 6012 6050 W Discrete Sampling 6060 Alarm Limit Value of ASA 6080 R W Message Counter 1 in Hexadecimal 35 EO El A L M A 10 S Alarm Limit Value of Counter 1 in Decimal Read host watchdog status Read Host WatchDog WD Safe Value WDI WD2 Set Host WatchDog WDC Safe Value o Read Command Leading Code Setting 6011 6012 6013 6017 6018 6021 6050 6052 6060 6080 6011 6012 6013 6017 6018 6021 6050 6052 6060 6080 6011 6012 6013 6017 6018 6021 6050 6052 6060 6080 6011 6012 6013 6017 6018 6021 6050 6052 6060 6080 6011 6012 6013 6017 6018 6021 6050 6052 6060 6080 36 PI ED Integer WD Integer WD1 String WD2 Appendix InTouch Sample Program There are several InTouch sample programs provided in this software package They could help you to program your own applications by using InTouch and NuDAM 6000 DDE Server easily The brief description
15. Max EU Min Raw and Max Raw _ etes Name Click on this button to define the DDE access name associated to the tagname The Access Name dialog box is as follows Click on this button to close the dialog box Click on this button to define a new DDE access name Click on this button to modified the selected DDE access name An Modify Access Name dialog box will appear Click on this button to delete the selected DDE access name The following figure illustrate the Add Modify Access Name dialog box 16 Modify Access Name Access Name est Node Name Cancel Application Name nudam Topic Name test Which protocol to use DDE SuiteLink When to advise server Advise all items Advise only active items Access Name Enter an arbitrary name InTouch uses Access Names to reference real time I O data of tagname associated to the Access name It is generally advisable that the same name defined for the NuDAM 6000 DDE topic is used here If the data resides in a network I O Server type the remote node s name in the field Application Name In this field type the actual program name NuDAM for the NuDAM 6000 DDE Server program from which the data value will be acquired Note Do not enter the exe extension portion of the program name Topic Name In this field type the topic name you want to access The Topic Name MUST be the same name used wh
16. NuDAM 6000 DDE Server ver 6 1 User Guide 5 CONTENT S E OEE ERE E AE Ma enm DIETE Mee E 2 INTRODUCTION NUDA M 6000 DDE SERVER 3 2 nee ebat Ne te t RAN edt 3 1 2 DD E CONVERSATION rete deme et e et en te Ee 4 GETTING STARTED testo see ease TEE UR Ree eee coger Dep epo 6 2 1 6000 1 0 DDE SERVER INSTALLATION tentent nennen ns 6 2 mstallationzsi si o die 6 2 2 6000 1 0 DDE SERVER CONFIGURATION eret tennnnnn ns 8 2 2 1 Configure Comm Port Configuration eee 8 2 2 2 7 Gonfigure Iopic ii e ER eben on EE E TREE Ee 10 2 2 3 Configure DDE Server Settings nette 12 USING NUDAM 6000 1 0 DDE SERVER WITH 14 3 1 DDE ITEM NAMES DEFINITION IN INTOUCH esent then nnne tenens 14 3 2 MONITOR THE COMMUNICATION STATUS OF MODULES reete 19 3 3 MONITOR THE STATUS OF AN DDE CONVERSATION ener tentent tn nnns 20 DDE ITEM NAMES IN NU DAM 6000 DDE 22 4 1 SPECIA COMMAND SET RE E Ce AERE AER He el Deb PEERS e HERE 22 4 2 NUDAM 6017 OO E inset tee EE eR Es 23 4
17. Topic Definition from Configuration Menu in NuDAM main window The Topic Definition dialog box is as follows Topic definition Topics diy Delete The fields and buttons in Topic Definition dialog box are described in the following Push this button to close the dialog box Define a new topic and the NuDAM Topic Definition dialog box displays as the figure below 10 This button appears only as at least one topic is defined Push this button to modify the settings for the selected topic This button appears only as at least one topic is defined Push this button to delete the selected topics The following section shows the NuDAM Topic Definition dialog box and gives the detailed description of each field NuDAM Topic Definition Topic Name 1 Module Address J 1 Com Port come Update Interval fi 000 msec Checksum Not Use Module Config Module 6012 6013 6014D 2 6018 6021 6024 C 6052 6053 f 6054 6056 6058 6060 6063 6080 41440 Data Format Engineering units hd 41740 Data Range 15m Topic Name This field is used to enter a Topic Name The same DDE Topic Name is entered in the InTouch DDE Access Name definition dialog box described in the section 3 1 The topic must be a unique name that is matched by the DDE clients for example InTouch Topic Name can be up to 32 characters
18. atus Minimum Input Signal Width at High Level Width at Low Level Level IL 1 50 TTL Input Low Trigger A Data 1 R W Integer Level 4 Digital Output amp Alarm Command Set Requested Poked value 31 Enable Disable Alarm Status of CounterO or Counter Read Alarm Status S 0 1 W Discrete where 0 disable alarm 1 enable alarm S 0 3 Integer Example 3 112 indicates that the alarm status of counter 0 and counter 1 are enabled Alarm Limit Value of Data Message Counter 0 in Example F0000000 Hexadecimal Alarm Limit Value of Counter 1 in Hexadecimal Data 0 3 Example 3 2 112 indicates that the status of DOO and DO are on 4 8 Table for All Items AII the Item names used by NuDAM 6000 I O DDE Server are listed in the following table 4 mA Calibration 6014D 6017 6018 6021 Read Counter 6080 Message Frequency Hexadecimal Value of Counter 1 Hexadecimal 6011 6012 6013 Discrete 6014D 6017 6018 6021 Configuration A2 6011 6012 6013 Message Status 6014D 6017 6018 6021 6024 6050 6052 6053 6054 6056 6058 6060 6063 6080 CJC Status 6011 6018 Real Trim Calibration 6021 6024 W Integer Offset Calibration 20 mA Calibration 32 Read Write Source High Low Values for Linear Mapping Read Synchronized Data Save Power on AO Value 7 B ases E E Read Enable Disable 6013 6017 601
19. counts to increase or decrease the output current and the poked values is as follows counts 0 95 0 to 95 counts increase counts 161 255 95 to I counts decrease NuDAM 6021 supports three types of data format Please refer to the NuDAM6021 user s manual for the details of data format for Analog output For NUDAM 6000 DDE server the relationship between item names and data format is listed in the following table Engineering Units 1 Percent of FSR AAO2 Hexadecimal Format AAO3 Though AAOD3 is the item name for AO in Hexadecimal Format the poked data MUST been in DECIMAL format NuDAM 6000 DDE Server will convert the poked data to be Hexadecimal format before the data sent to NuDAM module The valid range of poked data is from 0 to 4095 4 4 NUDAM 6024 Configuration and Analog Output Command Set 26 value Configuration Status TTCCFF TT input range code CC baud rate code FF 8 bit parameter example 090600 Read Firmware Version Version example A2 10 A2 AF Read Module Name AM Module Name example 6024 Reset Status AS AD 8 Digital In 0 to 127 Digital In from ACIO ACIG6 1 Channel N Synchronized Sampling Data Real ex 02 000 Analog Data Out AAOA output port W Real AAOB output port B AAOC output port C AAOD output port D Data ex 12 345 xxxxx Trim Calibration A3 counts 0 95 or Integer Value For using A3 to perform Trim Calibration
20. des the data and accepts requests from any other application interested in the data The requesting applications are called clients which can both read and write data maintained by the server Some applications such as InTouch and Microsoft Excel can simultaneously be both a client and a server Client applications can use DDE for one time data transfers or for continuous data exchanges in which updates are sent as soon as new information is available For one time data transfers the client application only requests the snapshot data from the server application For example as a macro for report generation is executed in Excel a link to another DDE program will be set up to request the specified data The link will be terminated after the requested data is received Then the received data are used to generate reports The continuous data exchanges mode is also named hot link While a client application sets up a link to another DDE program it requests the server application to advise the client whenever a specific item s value changes These data links will remain active until either the client or server program terminates the link or the conversation It is a very efficient means of exchanging data because once the link has been established no communication occurs until the specified data value changes InTouch uses DDE to communicate with I O device drivers and other DDE application programs For InTouch if the tagname are defi
21. ding item names and the data types of NuDAM 6000 series modules The Special Command Set is available for all the NuDAM 6000 series modules Except special commands all the item names begin with an A character The definition of each data type is described in section 3 1 of this manual Please refer to the related section for the details 4 1 Special Command Set Requested Poked value Read host watchdog bit0 reserved Integer status bitl Power or watchdog failure bit2 Host watchdog failure bit3 Host failure Read Command Leading WLC Example Message Code Setting default R Read Host WatchDog WD WD Flag Integer Safe Value WD1 Enable Disable host Integer WD2 watchdog timer and String safe state value 0 disable 1 enable WDI TimeOut xx 01 WD2 SafeValue The format depends on the module types 22 Set Host WatchDog Safe WDC Flag Enable Disable W Message f host watchdog timer and safe state value 0 disable 1 enable TimeOut 01 SafeValue The format depends on the module types Example 1121C 4 2 NUDAM 6017 6018 Configuration and Analog Input Command Set TT input range code CC baud rate code Requested Poked value FF 8 bit parameter Configuration Status Message ample 090600 example A2 10 example 6017 Channel N example 1 4567 A A Channel Status Span Calibration Offset Calibration For NuDAM 6000 DDE server
22. e 18 The last step is to define the DDE item name In this field type the item name for the desired data value in the NuDAM 6000 DDE Server Please refer to the chapter 4 for the valid item names of each NuDAM module For example to access the module name of NuDAM6011 module type AM in this field Note It is important to understand that the tagname is the name used within InTouch to refer to data value The is the name used by I O DDE Server program to refer to the same value These names do not have to be the same however it is recommended when applicable to use the same names 3 2 Monitor the Communication Status of Modules For each module being used there is a built in discrete item Status that you can use to monitor the state of the communications with NuDAM module Status is set to 0 when communications with the device fails and set to 1 when communications is successful From InTouch you can read the state of the communications by defining a tagname and associating it with the topic configured for the device by using the word Status as the item name The following figure is an example of Tagname Definition for monitoring the status of all communication to NuDAM module in InTouch Tagname Dictionan Main c ine Hew Restore Delete Save lt Cancel Close Tagname STATUS Type Discrete Group Sesto C Readonl Read Write Comment AccessLevel
23. e information about using InTouch 39
24. e compact disc in Open text box then click OK Setup first displays the main screen Select Software Package Setup then displays the ADLink s software products screen Select InTouch amp DDE Server Setup then prompts the following screen Select NuDAM 6000 DDE InTouch 7 0 OEM PCI Base DDE e to go on installation Setup then prompts a user information dialog box including Name Company and Serial Number text fields The Serial Number field must be filled in correctly otherwise the NuDAM 6000 DDE Server will run in DEMO version Setup then prompts a dialog box for you to specify the destination directory for NuDAM 6000 DDE Server The default path is CAADLink NuDDE6 If you want to install NuDAM 6000 DDE Server n another directory please click Browse button to change the destination directory Then you click Next button to go on the installation While the installation is completed the Install directory should contain the following files File Sub directory Samples lt DIR gt InTouch Sample programs Samples NuDAM cfg Configuration file for running sample programs NuDAM exe NuDAM 6000 series 32 bit DDE Server Program NuDAM32 exe NuDAM 6000 series Administrating Utility NuDAM hip NuDAM 6000 series 32 bit DDE Server Help File NuDAM 6000 series 32 bit DDE Server Help Contents File Wwdlg32 dll Required DLL file for running NuDAM 6000 DDE server program NuDDE6 pdf NuDAM 6000 DDE
25. en the topics were configured in the NuDAM 6000 I O DDE Server program C Advise all items Select Advise all items if you want the server program to poll for all data whether or not it is in visible windows alarmed logged trended or used in a script Note Selecting this option will impact performance therefore its use is not recommended Advise only active items Select Advise only active items if you want the server program to poll only points in visible windows and points that are alarmed logged trended or used in any script Click on this button to save the settings followed by closing the dialog box and then the Access Names dialog box will reappear Click Done to close the dialog box and return to Tagname Dictionary dialog box and Details dialog box as the figure below Click on this button to cancel the command followed by closing the dialog box and then the Access Names dialog box will reappear Click Done to close the dialog box and return to Tagname Dictionary dialog box and Details dialog box as the figure below C Main Details C Alarms Details amp Alarms HEW Restore Delete Save lt lt Ec Cancel Close Tagname DDETagname Type vo Message Group vien C Readonl Read write Comment AccessLevel Log Events Retentive Value Maximum Length fi 31 Initial Value Access Name test tem aM Use Tagname as Item Nam
26. l be given to reply to commands from the NuDAM 6000 DDE Server The Timeout message is sent out when a NuDAM module fails to respond The value is valid from 1 to 32 and the default value is 3 seconds Note Except that the Baud Rate is lower than 2400 the default value of 3 seconds should be sufficient for most NuDAM modules Parity Select the Parity setting which matches the configuration of the NuDAM modules on this communication port The default setting is None Stop Bits Select the appropriate number of Stop Bits for the NuDAM Modules on this communication port The default setting is 1 Baud Rate Select the Baud Rate for the NuDAM Modules on this communication port The default setting is 9600 Note 1 The settings for all the modules on the same communication port have to be the same 2 If you wish to change the Baud Rate or Checksum settings of NuDAM Modules it is required to use NuDAM Administrating utility accompanied with the modules to perform the modifications Hence the settings for 6000 I O DDE Server must be the same as those on the modules Please refer to the corresponding user s manuals of NuDAM modules you wish to operate for the details Push this button to close the dialog box Saye Push this button to save the settings after the configuration is finished _Defauits Set all the settings as the default values 2 2 2 Configure Topic Definition To define the Topics select
27. long Comm Port Associate the topic with a communication port additional topics may be associated with this same port at a later time Module Address The address of the NuDAM mode configured The valid range of the module Address is from 0 to 255 The default value is 1 11 ATAO Data Format The data format setting of Analog Input or Output for the NuDAM module configured The field is only available for the modules support AI 6011 6012 6013 6014D 6017 and 6018 or AO 6021 6024 AI AO Data Range The data range setting of Analog Input or Output for the NuDAM module configured The field is only available for the modules support AI 6011 6012 6013 6014D 6017 and 6018 or AO 6021 6024 Update Interval This field tells the server how often it will try to poll the data from the module associated to the topic defined The valid range of Update Interval is from 1 to 65535 and the default value is 1000 msec Module The NuDAM module name associated to the topic defined The default setting is 6011 Module Config Push this button to invoke NuDAM Administrating utility for module configuration Please be sure this utility has been installed in your system Note If you wish to change the address AI AO Data Format or AI AO Data Range settings of NuDAM Modules it is required to use NuDAM Administrating utility accompanied with the modules to perform the modifications Hence the module address AI AO Da
28. ned as I O type they can read or write their values to or from another DDE compliant Windows program For example InTouch can read or write their values to Excel and Excel can also read or write data to InTouch Database Whenever the data from source are updated the remote data are updated automatically as soon as new information is available DDE can be used to dispatch control instructions to process connected instruments With this ability two or more related applications can be combined together to make up a large size of super application For example Excel spreadsheet can perform the optimal calculation for production Thus Excel may read data from InTouch database which are accessed from I O controllers or sensors Reference to the data the Excel spreadsheet performs some complicated calculation InTouch reads the calculated result back from Excel and then uses this optimal value to control various production parameters 1 2 DDE Conversation Two Windows application wishing to exchange data must establish a conversation The client opens a channel to the server application by specifying e Server Application Name For NuDAM 6000 DDE Server the application name is NuDAM e Topic Logical Device Name The DDE topic is a general classification of data within which multiple data items may be discussed exchanged during the conversation For NuDAM 6000 DDE Server the topic might be a NuDAM module name e g NM6011 The topic is active
29. s 01 4 Data Conversion and Display Command Set This command set is ONLY available for 6014D Item Name Requested Poked value Read Write Source A Data format R W String High Low Values for low_value high_ Value Linear Mapping example 04 000 20 000 Read Write Target Data format RW String High Low Values for low value high Value Linear Mapping example 000 00 200 00 Enable Disable Linear AA Oor 1 R W Discrete Mapping A8 imum T Max value 19999 example 1999 0 4 4 NUDAM 6021 Configuration and Analog Output Command Set Command Item Requested Poked value R W Data Type Name A2 Configuration Status TTCCFF Message TT input range code CC baud rate code FF 8 bit parameter example 090600 25 Discrete Read Firmware Version AF Version example A2 10 Read Module Name AM Module Name example 6021 8 Current Readback Data A ex 18 773 for A8 Real A8 A8H ex 2047 Integer A8H Analog Data Out Format AAOI ex 12 345 xx xxx AAO2 ex 023 45 xxx xx AAO3 ex 4095 xxxx Real AAO1 Real AAO2 Integer in decimal format AAO3 Last Value Readback Data ex 02 000 for A6 Real A6 A6H ex 2047 for A6H Integer A6H 4 mA Calibration FW Discrete ee ee ee eee a Trim Calibration A3 counts 0 95 or W Integer Save Power on AO A4 1 W Discrete punc ge e nr el For using A3 to perform Trim Calibration the relationship between the number of
30. s of these sample programs are specified as follows 6011Demo NuDAM 601 1 InTouch Sample Program 6012Demo NuDAM 6012 InTouch Sample Program 6013Demo NuDAM 6013 InTouch Sample Program 6014Demo NuDAM 6014D InTouch Sample Program 6017Demo NuDAM 6017 InTouch Sample Program 6018Demo NuDAM 6018 InTouch Sample Program 6021Demo NuDAM 6021 InTouch Sample Program 6024Demo NuDAM 6024 InTouch Sample Program 6050Demo NuDAM 6050 InTouch Sample Program 6052Demo NuDAM 6052 InTouch Sample Program 6053Demo NuDAM 6053 InTouch Sample Program 6054Demo NuDAM 6054 InTouch Sample Program 6056Demo NuDAM 6056 InTouch Sample Program 6058Demo NuDAM 6058 InTouch Sample Program 6060Demo NuDAM 6060 InTouch Sample Program 6063Demo NuDAM 6063 InTouch Sample Program 6080Demo NuDAM 6080 InTouch Sample Program NudamDemol NuDAM 6000 Series InTouch Sample Program NudamDemo2 NuDAM 6017 6050 InTouch Sample Program To run these sample programs please follow the following steps 37 Step1 Execute NuDAM 6000 DDE Server program Step 2 Configure NuDAM 6000 DDE Server properly The topic names required for each sample program have to be defined The demo programs with their own corresponding topics are list in the following table ND6011 ND6012 ND6013 ND6017 ND6018 ND6021 ND6050 ND6052 ND6060 ND6080 ND6011 ND6050 Please refer to chapter 2 for the detailed descriptions about the NuDAM 6000 DDE Server configuration A configuration file NuDAM cfg
31. ta Format and AI AO Data Range settings for NuDAM 6000 I O DDE Server must be the same as those on the module Please refer to the corresponding user s manual of NuDAM modules you wish to operate for the details 2 2 3 Configure DDE Server Settings A number of parameters that controls the internal operation of the Server can be set most cases the default settings for these parameters provide good performance and do not require changing However they can be changed to fine tune the Server for a specific environment To configure the NuDAM 6000 12 DDE Server select DDE Server Settings from Configuration Menu in NuDAM main window The DDE Server Settings dialog box is as follows DDE Server Settings Protocol Timer Tick 50 msec NetDDE being used Cancel Configuration File Directory Link nudde6 S amples The fields and buttons in dialog box above are described in the following Configuration File Directory This field is used to specify the path disk drive and directory in which the NuDAM 6000 DDE server will save its configuration file NuDAM 6000 DDE server will use this path to load the configuration file the next time it is started The default path is the path that the NuDAM 6000 DDE Server program located Note Only the path may be modified with this field The configuration file is always named NuDAM cfg Protocol Timer Tick This field is used to change the frequency where the
32. te Indirect Discrete Memory Integer Memory Real 1 0 Real Indirect Analog Memory Message 1 0 Message Indirect Message Group Var Hist Trend Cancel Details select Ali Clear fll I To access NuDAM 6000 DDE Server items the type of Tagname should be type There are four I O types They are briefly described in the following e T O Discrete Discrete input output tagname with a value of either O False Off or 1 True On e T O Integer A 32 bit signed integer value between 2 147 483 648 and 2 147 483 647 e I O Real Floating decimal point tagname The floating point value may be between 3 4e and 43 4e All floating point calculations are performed with 64 bit resolution but the result is stored in 32 bit e I O Message Text string input output tagname that can be up to 131 characters long After selecting tag types the Details dialog box associated to the tag type will appear Initial Value o Min 32768 Max EU 32767 Deadband o Min Raw 32769 Raw 32767 ec Conversion Eng Units gm Access Name test tem Use Tagname as Item Name Log Deadband o C Square Root 15 Note If Details dialog box does not appear click Details at the top of the Tagname Dictionary dialog box Input all the information related to the tag name If selecting I O Integer or I O Real as the type for your tagname it is required to input the values of Min EU
33. ved data is signed integer Please refer to the ND 6011 6012 6014D user s manual for the details of data format for Analog output A9 are only valid for 6011 A4 1s NOT available for 6013 The following command is only available for NUDAM 6013 Item Name Requested Poked value Read Analog Input from AIO AD Data Real Channel N example 1 4567 2 Configuration Command Set Item Name Requested Poked value R W Configuration Status 2 TTCCFF Message TT input range code CC baud rate code FF 8 bit parameter example 090600 Read Firmware Version AF Version Message example Read Module Name AM Module Message 3 Digital I O Alarm and Event Command Set This command set is ONLY available for 6011 6012 and 6014D 24 Name Requested Poked value Synchronized Sampling AS Ww Dre Read Digital In xi R megr Digital Out ADO 0to3 RW Integer example 3 21 l5 indicates both of the status of DO 0 and DO1 are on Read Event Counter data 00000 65535 IR X integer pee ER lee example 2 05 Low Alarm Value AL data low alarm W Real example 0 375 Clear Latch Alarm ACA Clear Event Counter ACE For InTouch the value of Nth bit of ADO can be poked by using Tag ON as the item name For example to poke the value of the Qn bit of ADO set tagname as Tag 00 or to poke the value of the 1st bit of ADO set tagname a
Download Pdf Manuals
Related Search
Related Contents
Lochinvar A05H00172528 User's Manual blue eye pro Manual データシート manual de instrucciones manuel des instructions manual de Consulter en ligne ou télécharger le catalogue des ateliers des La familia Checkbox Utilisation vanne multi Copyright © All rights reserved.
Failed to retrieve file