Top Banner
InTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure the protocol of the COM port on Host PC you use to communicate with ADAM-5000/485 from menu bar ( Menu bar L [Configure] L [Com Port Settings … ] ) t
20

InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Mar 13, 2018

Download

Documents

vocong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

InTouch Getting Started

1. Execute and configure ADAM-5000 DDE driverStep1: Run ADAM-5000 DDE driver

Step2: Configure the protocol of the COM port on Host PC you use to

communicate with ADAM-5000/485 from menu bar ( Menu bar è

[Configure] è [Com Port Settings …] )

t

Page 2: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

As you see from the previous figure, you should set the proper protocol of

communication. Please select the correct Com port and baudrate, then set

None parity, 8 data bit, 1 stop bit for ADAM series. The default setting is

9600,N,8,1.

MNotice:

Please note that you can’t change the settings of ADAM series here, you

should use ADAM.EXE utility to modify the configuration of ADAM series.

For example, the communication protocol of ADAM modules is set as

19200, N, 8, 1 with Checksum, but you select 9600, N, 8, 1 without

Checksum here, then the connection is never linked and the protocol settings

of ADAM modules are still unchanged.

Step3: Build topic definition. ( Menu bar è [Configure] è [Topic Definition] )

When you select [Topic Definition], the following dialog box will be

appeared. You can click [New] to add a new topic and you’ll see the pop-up

window of “ADAM-5000 topic definition”.

t

Page 3: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Please refer to the above figure, type the name of topic and set the proper

address of your ADAM module. According to your ADAM-5000/485, select

the correct item for each slot in this window. After that, please make sure

there is ok for all settings, then click [OK] to exit this window.

MNotice:

You can regard “Topic” as one ADAM-5000/485 device, so you should set

the relative information such as ID address, I/O modules in ADAM DDE

driver. Besides, the topic name is also unique in ADAM DDE driver, just

like unique ID address in whole network.

MNotice:

] Coil Read Size è Enter the maximum number of consecutive coils to be

read at one time in this field. The default value is 2000. You are not advised

to change this value.

] Register Read Size è Enter the maximum number of consecutive

registers to be read at one time in this field. The default value is 125. We

also recommend you had better not change this value.

] Update Interval è Enter the frequency (in milliseconds) that the DDE

Server will read (poll) the item/points associated with this topic. The default

value is 1000 and its range is from 1 to 65535.

MNotice:

ADAM50xx is reserved for new ADAM modules, don’t need to care about

it.

After completing the topic definition, you’ll see the below window with

listing all topics you have already built.

Page 4: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step3: DDE Server Settings ( Menu bar è [Configure] è [DDE Server Settings] )

You can adjust the value of Protocol Timer Tick to change the performance

of DDE Server.

MNotice:

] Protocol Timer Tick è Enter the frequency that the server is to check for

data to process. This should be approximately 2 to 4 times faster than the

fastest rate desired to update data from the ADAM-5000/485 modules. The

default value is 50 msec.

] Configuration File Directory è To create a new default configuration file,

enter the complete path for the directory in which the file is to be saved in

this field. This new path will automatically be written to the WIN.INI file

and the DDE Server will use this path to load its configuration file the next

time it is started.

] NetDDE being used è Select this option if you are networking using

Wonderware NetDDE. ( Please refer to the help files of ADAM-5000 DDE

driver or InTouch to get the advanced information )

Step4: Re-execute the ADAM-5000 DDE driver. After configuring ADAM-5000

DDE driver, please terminate it first and re-run it again, then the change of

settings will take effect.

Page 5: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

2. Run InTouch to add a new directory and windowStep1: [Start] è [Program] è [InTouch for Windows] è [InTouch]

Step2: Press [Create Directory] to build a new directory.

Window Maker Window Viewer

Page 6: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step3: Please input the directory name under the proper path

Step4: After clicking [OK], you’ll see the new directory is appeared in the list.

Step5: Please choose [Window Maker] to develop your application. When you

enter the development environment of InTouch, please select [New Window]

from [File] label to add a new window.

Page 7: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step6: Before developing your application, please type the name and set the

relative properties

Step7: After that, you can start to design your HMI under this window.

MNotice:

You can regard a directory as a project, a window as a picture of HMI. Each

project may include several pictures. For example, you develop your factory

project, so you can set the name as “Factory”. Under this “Factory”, you

design several HMI displays, such as “Temperature Display”, “Pressure

Display”, so you can switch the displays by yourself. Hence, directory

means your project, window means your HMI display.

Page 8: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

3. Build your HMI

You can use build-in diagrams or pictures under InTouch to design your

HMI. Please pay your attention to the toolbox and focus on the icon of wizard,

just click it and you’ll see the list is appeared. When you highlight certain item

from the list, all provided diagrams by this item will be shown in the right side.

Just choose what you want and put it down in the proper location.

Page 9: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Please follow the below figure to build your HMI step by step

¶ Wizard è Meters è 2

· Wizard è Buttons è 4

¸ Wizard è Switches è 1

¹ Wizard è Lights è 1

º Wizard è Buttons è 6

» Wizard è Lights è 4

¼ Wizard è Meters è 4

½ Text ( T ) è ###.00, set the format of display

# à before dot, 0 à after dot

·

¸ ¹

º

»

¼

½

Page 10: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

4. Set tagnames for I/O modules of ADAM-5000/485Step1: Select [Special] è [Tagname Dictionary] to add a new tagname.

Step2: Click [New]

Step3: Fill out tagname and relative items you want to input, then click [Type …]

Page 11: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step4: Select the correct data type of tagname.

As you see from the above table, there are several kinds of data type, which

kind you should use depends on the property of tagname. For example, we

get analog data from ADAM-5000/485 through DDE driver, so we should

select “DDE Real” as data type.

Step5: Set “DDE Access Name”.

When you select “DDE Real” type, “DDE Access Name” will be appeared.

Because you want to use DDE to exchange data, you should tell InTouch

what DDE server you adopt and the other relative information. Please click

[DDE Access Name] to set it.

Step6: Click [Add] to add a new DDE Access Name

Page 12: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step7: Define DDE Access Name

MNotice:

DDE server for ADAM-5000 è ADAM5000

DDE server for ADAM-4000 è ADAM

DDE Topic è The topic you set in ADAM-5000 DDE Driver

Please refer to Help to get detailed information about the other items

MNotice:

The format of DDE è Server | Topic ! Item

DDE Access Name = Server | Topic ( Refer to the above figure )

( For example, ADAM5000_DDE = ADAM5000 | ADAM5000_1 )

Step8: Check the list of DDE Access Name

You can click [Done] to terminate it or press [Modify] to change the content

Page 13: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step9: Set Item of DDE ( ADAM commands )

Don’t forget the format of DDE è Server | Topic ! Item. DDE Access Name

equals to Server | Topic , so you need to define Item to complete the

connection of DDE. Actually, you can regard Item as ADAM command here,

please refer to the Help of ADAM-5000 DDE Driver to get the Item

according to the list of ADAM-5000 command.

ADAM-5000 DDE Driver

t

t

t

Page 14: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

t

Please click [Done] to end the operation of tagname or [New] to add another

new tagname.

Page 15: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

MNotice:

Please follow the below information to add the other tagnames for AI

( ADAM5018 ), DO ( ADAM5056 ) and DI ( ADAM5051 )

AO :

Tagname è A5024_0 ( depends on you )

Type è DDE Real

Comment è ADAM5024 channel 0

DDE Access Name è ADAM5000_DDE

Item è #SOCO ( Slot 0 )

AI :

Tagname è A5018_0 ( depends on you )

Type è DDE Real

Comment è ADAM5018 channel 0

DDE Access Name è ADAM5000_DDE

Item è $S3C0 ( Slot 3 )

DO :

Tagname è A5056_n ( depends on you, n : 0 - 4 )

Type è DDE Discrete

Comment è ADAM5056 channel n

DDE Access Name è ADAM5000_DDE

Item è #S2BB ( Slot 2 ),

BB=00 for 8 bits, BB=1? for single bit, ?=0-7

For example:

#S200 à the tagname represents 8 bit ( CH0-7 )

#S210 à the tagname represents first bit ( Ch0 )

#S214 à the tagname represents fourth bit ( Ch4 )

DI :

Tagname è A5051( depends on you )

Type è DDE Integer

Comment è ADAM5051 16 bits

DDE Access Name è ADAM5000_DDE

Item è $S16 ( Slot 1 )

MNotice:

If you get all data through ADAM DDE Driver, DDE Server is fixed.

However Topic represents one ADAM-5000/485 module, so you can find

out DDE Access Names are the same for all I/O modules inserted in one

ADAM-5000/485.

Page 16: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

5. Assign each diagram of HMI with a proper tagname

Step1: Focus on certain diagram and double click

Step2: Move mouse to “Expression” and double click.

Step3: Select a proper tagname you want the diagram to reflect

Page 17: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

MNotice:

Please follow the hints to complete the asignments for all diagrams:

¶ ( For display ) è A5024_0

· ( For control ) è A5024_0

¸ ( For display ) è

¹ ( For display ) è A5056_0 ~ A5056_3

º ( For control ) è A5056_0 ~ A5056_3

» ( For alarm ) è A5056_4

¼ ( For display ) è A5018_0

½ ( For display ) è A5018_0

MNotice:

So far we don’t assign number ¸ diagrams with any tagname because the

diagram belongs to Discrete type ( Bool ), it just can accept discrete tagname.

But A5051 tagname is Integer type, it represents 16-bit, not only one bit, so

you need to change the format for ADAM-5051. Next Section will show you

how to solve this problem.

MNotice:

You can run the Window Viewer to check the communication between your

Host PC and ADAM-5000/485 is successful or not ( Wiring connection è

Pin to Pin ). In the meanwhile, please check your program is good or wrong

Page 18: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

6. How to build conditions or relationships between tagnamesIn some special cases, you could want to set some conditions to monitor

certain signals or control system process. If it is needed, Scripts function provided

by InTouch will fit your request. This section will show you how to use Scripts

function to deal with calculations or conditions.

Step1: Run Script function ( [Special] è [Scripts] è [Conditions Scripts] )

Step2: Define your condition and actions when the condition is true or false.

For example, the reading of ADAM5018 #Ch0 is higher than 50 degree,

then the output of ADAM5056 #Ch4 is set to 1, otherwise, it’s set to 0.

t

Page 19: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

t

t

Page 20: InTouch Getting Starteddownloadt.advantech.com/.../1-11BDB/Intouch.pdfInTouch Getting Started 1. Execute and configure ADAM-5000 DDE driver Step1: Run ADAM-5000 DDE driver Step2: Configure

Step3: Write a script to transfer ADAM5051 with 16-bit to 16 ADAM5051_? with

1-bit.

MNotice:

You can follow the above figure to input the actions in your script. As you

see, the condition we set is always true, so all calculations will be executed.

That is to say, A5051 tagname is always transfered to 16 variables ( from

ADAM5051_00 to ADAM5051_15 ). After that, we can assign the digital

input display diagram ¸ with these variables. By the way, when you finish

and want to exit, InTouch will ask you to define ADAM5051_00 ~

ADAM5051_15, please refer to the following hints to complete it.

A5051 è DDE Integer è 16 bits ( Already defined )

T5051 è Memory Integer è temp. of A5051

A5051_00 è Memory Discrete è #Ch0

A5051_01 è Memory Discrete è #Ch1

: : : :

A5051_15 è Memory Discrete è #Ch15