Chapter 4_6375 4 Ch4

User Manual: Chapter 4 Point of View Software ation - AutomationDirect

Open the PDF directly: View PDF PDF.
Page Count: 28

DownloadChapter 4_6375 4 Ch4
Open PDF In BrowserView PDF
TUTORIAL: BUILDING A
SIMPLE PROJECT

CHAPTER

4

TUTORIAL: BUILDING A SIMPLE PROJECT.........................................................................4-2
CREATING A NEW PROJECT........................................................................................................ 4-3
SPECIFYING THE STARTUP SCREEN.............................................................................................. 4-5
CREATING TAGS......................................................................................................................4-6
CREATING THE MAIN SCREEN...................................................................................................... 4-8
CREATING THE SYNOPTIC SCREEN.............................................................................................4-13
CONFIGURING THE COMMUNICATION DRIVER...............................................................................4-22
DEPLOYING YOUR PROJECT AS A WEB APPLICATION.......................................................................4-26

Chapter 4: Tutorial: Building a Simple Project

1

Tutorial: Building a Simple Project
This section explains, using a step-by-step tutorial, how to build a simple project, as well as how to
select and configure an I/O driver.

2
3
4
5
6
7
8
9
10
11
A
B
4-2

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project

Creating a New Project

1

This part of the tutorial shows how to create a new project, including how to give it a name and
select the target platform.
1)

Click the Application button in the top-left corner of the development environment, and then
click New on the Application menu. The New dialog is displayed.

2)

Click the Project tab.

3)

In the Project name box, type the name of your project. For this tutorial, type Tutorial.
The development application automatically creates a new directory of the same name and
assigns your project file to that directory. (Notice the Configuration file text box in the figure.)
To put your project file somewhere other than in the default projects folder, click Browse and
navigate to the preferred location.

4)

In the Product type list, select the type of project that you want to build. For this example,
select Windows Standard. This is a tag and feature-limited product type that can be safely
deployed on Windows PC Platforms.

2
3
4
5
6
7
8
9
10
11

Selecting the target platform and product type

A
5)

Click OK.
The New dialog is closed and the Project Wizard dialog is displayed.

6)

In the Template list, select Empty Application.

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

B
4-3

Chapter 4: Tutorial: Building a Simple Project
7)

In the Resolution list, select 640 x 480.

1
2
3
4
5
Specifying an empty Application with 640x480 resolution

6
8)

7

Click OK.
The Project Wizard dialog is closed and the new project is created in the development
environment.

8
9
10
11
A
B
4-4

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project

Specifying the Startup Screen

1

This part of the tutorial shows how to open the project settings and then specify which screen
should be displayed on startup.
• Use the Information tab to provide information that identifies the project (such as project
description, revision number, Company name, Author's name, field equipment, and general
notes).

2

• Use the Options tab to specify generic settings for the project, such as the Target System,
Automatic Translation, Alarm history and Events, Default Database and Shared Tags.

3

• Use the Viewer tab to enable/disable the runtime desktop parameters.
• Use the Communication tab to specify communication parameters relating to the project in
general.

4

• Use the Preferences tab to enable/disable warning messages when using the development
application.

5

To specify the startup screen:
1)

On the Project tab of the ribbon, in the Settings group, click Viewer.
The Project Settings dialog box is displayed with the Viewer tab selected.

2)

In the Startup screen box, type main.scr.
When you run the project, it will automatically display the main screen (or whichever screen
you specify) first. You can specify a screen before you create it, but if the screen has been
created, then you can also select it from the list.

3)

6
7

Click OK.

8
9
10
11
A
B
Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-5

Chapter 4: Tutorial: Building a Simple Project

1
2

Creating tags
This part of the tutorial shows how to create new tags by adding them to the Project Tags datasheet.
A tag is any variable that holds a value. All tags created in an project are stored in the Project Tags
folder, on the Global tab of the Project Explorer.

3
4
5
6

Project Tags folder

7

1)

In the Project Explorer, click the Global tab.

2)

Double-click Project Tags to expand the folder.

3)

Double-click Datasheet View to open the Project Tags datasheet.

4)

Use the following parameters to create a tag for the sample project.
a. Name: Specify a unique tag name. For this tutorial, type Level.

8

b. Array: Specify the top array index of the tag. (Simple tags have an Array of 0.) For this
tutorial, type 3.

9

Each array index relates to one of the three tanks:
• Level[1] is the level of Tank #1
• Level[2] is the level of Tank #2

10

• Level[3] is the level of Tank #3
You will not use Level[0] in this tutorial, even though it is a valid tag.
c. Type: Specify the data type of the tag: Boolean, Integer, Real, String, or Class. For this
tutorial, select Integer.

11

d. Description (optional): Type a description of the tag for documentation purposes only.
e. Scope: Specify how the tag is managed between the Server and the Thin Client stations.

A

• Select Local if you want the tag to have independent values on the Server and Client
stations.
• Select Server if you want the tag to share the same value on the Server and Client
stations.

B

For this tutorial, select Server.

4-6

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project

1
2
Creating the Level tag

5)

3

Save and close the Project Tags datasheet.

You will create additional tags as you build the project.

4

NOTE: You can sort the data in the Project Tags datasheet or insert/remove additional columns by rightclicking on it and then choosing the applicable option from the pop-up menu.

5
6
7
8
9
10
11
A
B

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-7

Chapter 4: Tutorial: Building a Simple Project

1

Creating the Main Screen
This part of the tutorial shows how to create your first screen, which will contain a single button
that opens another screen.

2

1)

In the Project Explorer, click the Graphics tab.

2)

Right-click Screens, and then click Insert on the shortcut menu.
The development application stores all screens created for an project in this Screens folder.

3
4
5
6
7
8

The Screen Attributes dialog box is displayed.

9
10
11
A
B

Screen Attributes dialog box

4-8

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
3)

Use this dialog to set screen properties such as size and type.
For this tutorial, click OK to accept the default settings.
The Screen Attributes dialog box is closed, and the new screen is opened in the workspace for
editing.

1

4)

On the Graphics tab of the ribbon, in the Screen group, click Background Color. A standard
color picker is displayed.

2

5)

In the color picker, select a light gray color.

3
4
5
Color Picker

6

That color is applied to the screen.

Drawing the Main Screen's Title
This part of the tutorial shows how to draw the main screen's title using a Text object.
1)

On the Graphics tab of the ribbon, in the Active Objects group, click Text.
Your mouse cursor changes from an arrow to a crosshair.

2)

Click on the screen, type Welcome to the Tutorial Application, and then press Return.
This creates a new Text object with the specified text.

3)

Double-click the object to open its Object Properties dialog box.

7
8
9
10
11

Object Properties: Text dialog box

• Double-clicking on any screen object opens an Object Properties dialog box containing the
properties for that object. The properties shown in the dialog change depending on the type
of object.
• The Object Properties dialog box also contains a pin button that controls whether this dialog
remains open. The button changes state (and function) each time you click on it, as follows:

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-9

A
B

Chapter 4: Tutorial: Building a Simple Project
• When the pin button is released, the focus is passed to the object on the screen as soon
as it is selected. It is recommended that this button is kept released when you want to
manipulate the objects (Copy, Paste, Cut, or Delete). Although the Object Properties
dialog box is on the top, the keyboard commands (Ctrl+C, Ctrl+V, Ctrl+X, or Del) are
sent directly to the objects.

1
2

• When the pin button is pressed, the focus is kept on the Object Properties dialog, even
when you click the objects on the screen. We recommend you keep this button pressed
when you want to modify the settings of the objects. You can click an object and type the
new property value directly in the Object Properties dialog (it is not necessary to click on
the window to bring focus to it). Also, when the pin button is pressed, the Object
Properties dialog does not automatically close when you click on the screen.

3
4)

4

Click Fonts to open Font
dialog box, and then specify
the font settings.
For this tutorial…
• Font is Arial

5

• Font style is Regular
• Size is 20
• Color is Blue

6
7

Specifying the font settings

5)

8

Click OK to close the Font dialog box.
The font settings are applied to the Text object.

9
10
11
A
B

Font settings applied to Text object

4-10

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
6)

Close the Object Properties dialog box (i.e., click the Close button in the dialog box's top-right
corner).

1

Drawing a Button to Open Another Screen
This part of the tutorial shows how to draw and configure a button that will open another screen.
1)

On the Graphics tab of the ribbon, in the Active Objects group, click Button.
Your mouse cursor changes from an arrow to a crosshair.

2)

Click and hold on the screen, and then drag the cursor to draw the Button object.

3)

Double-click the object to open its Object Properties dialog box.

4)

In the Caption box, type the following text: Click here to open the synoptic screen.

2
3
4
5
6
7
8
9

Adding a caption to the button

5)

Click Command.
The Object Properties dialog box changes to show the properties for the Command animation.

6)

In the Type list, select Open Screen.

7)

In the Open Screen box, type synoptic.scr.

10
11
A
B

Configuring an Open Screen command on the button

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-11

Chapter 4: Tutorial: Building a Simple Project
You can specify a screen that you have not yet created.

1

8)

Close the Object Properties dialog box.

Saving and Closing the Main Screen

2

This part of the tutorial shows how to properly save and close a screen.

3

1)

Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.
A standard Windows Save dialog box is displayed.

2)

In the File name box, type main.

3)

Click Save.
The file is saved in your project folder (at […]\Documents\Point of View v7.1 Projects\
projectname\Screen\main.scr), and the Save dialog box is closed.

4)

Click the Application button at the top-left of the development environment, and then click
Close on the Application menu.

4
5
6
7
8
9
10
11
A
B
4-12

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project

Creating the Synoptic Screen

1

This part of the tutorial show how to create your second screen, which will include an animated
tank of liquid and some basic controls for that tank.
1)

In the Project Explorer, click the Graphics tab.

2)

Right-click the Screens folder, and then click Insert on the shortcut menu.
The Screen Attributes dialog box is displayed.

3)

Use this dialog box to set attributes such as size and type.
For this tutorial, click OK to accept the default settings.

3

4)

Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.
A standard Windows Save dialog box is displayed.

4

2

5)

In the File name box, type synoptic.

6)

Click Save.
The file is saved in your project folder (at […]\Documents\Point of View v7.1 Projects\project_
name\Screen\synoptic.scr), and the Save dialog box is closed.

5

Do not close the screen like you did the main screen when you saved it. You still need to draw the
synoptic screen.

6

Drawing the Synoptic Screen's Title

7

As in a previous part, this part of the tutorial shows how to draw the synoptic screen's title using a
Text object.
1)

On the Graphics tab of the ribbon, in the Active Objects group, click Text.

2)

Click on the screen, type Synoptic Screen, and then press Return.

3)

Double-click the object to open its Object Properties dialog box.

4)

Click Fonts to open Font dialog, and then specify the font settings.
For this tutorial…

8
9

• Font is Arial
• Font style is Bold

10

• Size is 20
• Color is Blue

11

5)

Close the Object Properties dialog box.

6)

Move the Text object to the top left corner of the screen.

7)

Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

A

This figure shows how your screen should look after you've created the screen title.

B
Finished screen title

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-13

Chapter 4: Tutorial: Building a Simple Project
Drawing "Date" and "Time" Displays

1

This part of the tutorial shows how to draw "Date" and "Time" displays by linking Text objects to
system tags. Date and Time are system tags that hold the current date and time of the local station.
These tags are available to any project.

2
3
4

1)

On the Graphics tab of the ribbon, in the Active Objects group, click Text.

2)

Click on the screen, type Date: ##########, and then press Return.

3)

Double-click the object to open its Object Properties dialog box.

4)

Click Text Data Link.
The Object Properties dialog changes to show the properties for the Text Data Link animation.

5)

In the Tag/Expression box, type Date.

5
6
7

Specifying the Date system tag

During runtime, the project replaces the ########## characters of the Text object with the
value of the system tag Date.

8
9

6)

Close the Object Properties dialog box.

7)

On the Graphics tab of the ribbon, in the Active Objects group, click Text.

8)

Click on the screen, type Time: ##########, and then press Return.

9)

Double-click the object to open its Object Properties dialog box.

10) Click Text Data Link.
The Object Properties dialog changes to show the properties for the Text Data Link animation.

10

11) In the Tag/Expression box, type Time.

11
A
B
Specifying the Time system tag

4-14

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
During runtime, the project replaces the ########## characters of the Text object with the
value of the system tag Time.

1

12) Close the Object Properties dialog box.
13) Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

2

This figure shows how your screen should look after you've created the date and time objects.

3
Finished date and time objects

4

Placing an "Exit" Icon
This part of the tutorial shows how to place an icon (by selecting and configuring a Linked Symbol)
that allows the user to exit the runtime project.

5

NOTE: If any part of the project doesn't work as expected (or to exit the runtime application), switch back to
the development application (ALT+TAB) and then click Stop on the Home tab of the ribbon. Then if needed,
begin troubleshooting.

6

1) On the Graphics tab of the ribbon, in the Libraries group, click Symbols.
The symbols library is displayed.
2)

In the Symbols menu tree, open the System Symbols folder and then open the Icons sub-folder.

3)

In the Icons sub-folder, select exit01.
The symbol will be displayed in the symbol viewer to the right of the menu tree.

4)

Click on the symbol.
The mouse cursor will change to show that the symbol is ready to be placed in a screen.

7
8
9
10
11

Selecting the "exit01" symbol

5)

A

Switch back to the screen where you want to place the symbol and then click in it. The symbol
is placed as a Linked Symbol object.

B
Placing the Linked Symbol object

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-15

Chapter 4: Tutorial: Building a Simple Project

1
2

6)

With the object still selected, click Command (on the Graphics tab of the ribbon, in the
Animations group) to apply this animation to the object.

7)

Double-click the object to open its Object Properties dialog box.

8)

In the Type list, select VBScript.

9)

In the On Down box, type $Shutdown().
Shutdown is one of Point of View's built-in scripting functions, but it can be used within
VBScript by prefacing it with a dollar sign ($).

3
4
5
Specifying the Shutdown command on the symbol

6

10) Close the Object Properties dialog box.
11) Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

7
8

Now, when a user clicks this icon during runtime, the project will stop and exit to the station's
desktop.

Testing the Project
This part of the tutorial show how to test the project so far.

9
10
11

1)

On the Home tab of the ribbon, in the Local Management group, click Run.
The project runs and the startup screen is displayed.

2)

Click the button to open the synoptic screen.
The synoptic screen is displayed.

3)

Click the exit icon to shut down the project.

If any part of the project doesn't work as expected, switch back to the development application
(ALT+TAB) and then click Stop on the Home tab of the ribbon.

Placing an Animated Tank

A

This part of the tutorial shows how to select an animated tank from the Symbol Library and place it
on the screen (similar to how you selected and placed the "Exit" icon), then associate some project
tags with the tank's properties.

B
4-16

1)

On the Graphics tab of the ribbon, in the Libraries group, click Symbols.

2)

In the Symbols menu tree, open the System Symbols folder and then open the Tanks

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
sub-folder.
3)

1

In the Tanks sub-folder, select a tank symbol.
You may select any tank you like; they all function basically the same way.

2
3
4
5
6
Selecting a tank symbol

4)

Click on the symbol.
The mouse cursor will change to show that the symbol is ready to be placed in a screen.

5)

Switch back to the screen where you want to place the symbol and click in it.
The symbol is placed as a Linked Symbol object.

6)

Double-click the object to open its Object Properties dialog box.

7
8
9
10
11
A

The tank symbol's properties

A tank is an arrangement of different objects and animations (for example a rectangle, a bar
graph, etc.), all combined together as a Linked Symbol. You can modify the properties of this
symbol by editing the properties list. For this tutorial, you will modify the tag associated with

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-17

B

Chapter 4: Tutorial: Building a Simple Project
the tank level.

1

7)

For the property TagLevel, delete the existing value and then type Level[Index].
Note that you do not need to reopen the Project Tags datasheet to create tags as you develop the
project.
Because you have not previously created the tag Index in the Project Tags database, an alert
message asks you if you would like to create it.

8)

Click Yes.
A New Tag dialog is displayed.

9)

Configure the new tag with Array as 0, Type as Integer, and Scope as Local.

2
3
4
5
6

Configuring a new tag

7

10) Click OK to close the New Tag dialog.
You can use the tag Index to set the array position of the tag Level, and show the level for any of
the three tanks in the same object:

8

• When Index equals 1, the tank object shows the level of Tank #1 (i.e., Level[1]);
• When Index equals 2, the tank object shows the level of Tank #2 (i.e., Level[2]); and
• When Index equals 3, the tank object shows the level of Tank #3 (i.e., Level[3]).

9

Also, because the tag scope is local, the tag can have different values for the Server and
Client stations at the same time. Consequently, the local user (i.e., the Server station) can be
monitoring the level of Tank #1 while the remote user (i.e., the Client station) is monitoring
the level of Tank #2.

10

11) Close the Object Properties dialog box.
12) Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.
This figure shows how your screen should look after you've created the tank object.

11
A
B

Finished tank object

4-18

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
Placing a Level Slider

1

This part of the tutorial shows how to select a slider control from the Symbol Library and then
connect it to the animated tank.
1)

On the Graphics tab of the ribbon, in the Libraries group, click Symbols.

2)

In the Symbols menu tree, open the System Symbols folder and then open the Sliders
sub-folder.

2
3
4
5
6
7

Selecting a slider symbol

3)

In the Sliders sub-folder, select a slider control.
You may select any slider you like; they all function basically the same way.

4)

Click on the symbol.
The mouse cursor will change to show that the symbol is ready to be placed in a screen.

5)

Switch back to the screen where you want to place the symbol and click in it.
The symbol is placed as a Linked Symbol object.

6)

Double-click the object to open its Object Properties dialog box.

7)

For the property TagName, delete the existing value and then type Level[Index].
Just as with the tank, you need to modify the symbol property associated with the slider level.

8)

Close the Object Properties dialog box.

9)

Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

8
9
10
11
A
B

Finished level slider object

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-19

Chapter 4: Tutorial: Building a Simple Project
Drawing a Tank Selector

1

This part of the tutorial shows how to draw a text input box that can be used to change which realworld tank is represented by the animated tank on the screen.

2
3
4
5

1)

On the Graphics tab of the ribbon, in the Active Objects group, click Text.

2)

Click on the screen, type Tank: #, and then press Return.

3)

Double-click the object to open its Object Properties dialog box.

4)

Click Text Data Link.
The Object Properties dialog changes to show the properties for the Text Data Link animation.

5)

In the Tag/Expression box, type Index.

6)

Select the Input Enabled option.
This allows the operator to enter a new value for the tag during runtime.

7)

In the Minimum Value box, type 1.

8)

In the Maximum Value box, type 3.

6
7
8
Configuring the "Tank" text input

9

9)

Close the Object Properties dialog box.

10) Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

10

This figure shows how your screen should look after you've created the tank selector object
(shown with a red arrow).

11
A
B
Finished tank selector object during runtime

4-20

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
Testing the Project

1

This part of the tutorial show how to test the project again with the animated tank, the level slider,
and the tank selector.
1)

On the Home tab of the ribbon, in the Local Management group, click Run.
The project runs and the startup screen is displayed.

2)

Click the button to open the synoptic screen.
The synoptic screen is displayed.

3)

Type the tank number (1, 2, or 3) in the Tank label, and then use the slider to adjust the tank
level.
Note that you can view/adjust the level of each tank independently.

3

4)

Click the exit icon to shut down the project.

4

2

If any part of the project doesn't work as expected, switch back to the development application
(ALT+TAB) and then click Stop on the Home tab of the ribbon.

5
6
7
8
9
10
11
A
B

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-21

Chapter 4: Tutorial: Building a Simple Project

1

Configuring the Communication Driver
This part of the tutorial shows how to select and configure a driver to communicate with an external
I/O device.
NOTE: If you are using a DirectLOGIC or P3000 controller, see the Quick Start Guide for AutomationDirect
Drivers manual (PV-ADCDRV-M) for information pertaining to those controllers.

2
3

1)

In the Project Explorer, click the Comm tab.

2)

Right-click the Drivers folder, and the click Add/Remove Drivers on the shortcut menu.
The Communication Drivers dialog is displayed.

4

3)

Select a driver from the Available drivers list, and then click Select.
For this tutorial, select MODBU.
The driver is moved to the Selected drivers list.

5
6
7
8
9

MODBU driver selected

10
11

4)

Click OK.
The Communication Drivers dialog is closed, and the driver is added to the Drivers folder in
the Project Explorer.

5)

In the Project Explorer, right-click the MODBU folder, and then click Settings on the shortcut
menu.

A
B
4-22

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
The Communication Settings dialog is displayed.

1
2
3
4
5

Communication Settings dialog for MODBU driver

6)

Configure the communication settings as needed for the target device. For this tutorial, accept
the default settings.

6

NOTE: For more information about a specific driver, click Communication Drivers on the Help tab of the
ribbon.

7

7)

Click OK to close the dialog.

8)

In the Project Explorer, right-click the MODBU folder and then click Insert on the shortcut
menu.
A new driver worksheet named MODBU001.drv is created and opened for editing.

9)

8

Configure the worksheet header:
a. In the Description box, type Tutorial Modbus.
This setting is for documentation only; it does not affect the runtime project in any way.

9

b. In the Enable Read When Idle box, type 1.
This setting is a trigger that takes a Boolean value. A value of 1 — either entered manually
as above or evaluated from a tag/expression — forces your project to continue reading tag
values from the target device even when there are no changes in value.
c. In the Enable Write On Tag Change box, type 1.
This setting is also a trigger. A value of 1 forces your project to write tag values to the target
device only when those values change, rather than continuously. This saves system resources
and improves performance during rutime.

10
11

d. In the Station box, type 1.
This indicates the I/O device number to be accessed by this driver.
Typically, the PLC is specified as Device #1.

A

e. In the Header box, type 4X:0.
You must use a driver-specific format. The format for the MODBU driver is:
register_type:initial_offset

B

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-23

Chapter 4: Tutorial: Building a Simple Project
Register Type

1
2

Description

0x

Coil Status

1x

Input Status

3x

Input Register

4x

Holding Register

ID

Slave ID Number

3
4
5
6
7
Completed worksheet header

10) In the worksheet body, enter the tags and their associated device addresses — for each tag:

8

a. In the Tag Name field, type the name of the project tag.
b. In the Address field, type the value to be added to the header to form the complete device
address.

9
10

Tag Name

Address

Complete Device Address

Level[1]

1

4X:1 (Holding Register 1)

Level[2]

2

4X:2 (Holding Register 2)

Level[3]

3

4X:3 (Holding Register 3)

11
A
B
Completed worksheet body

4-24

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
11) Click the Application button at the top-left of the development environment, and then click
Save on the Application menu.

1

12) When prompted to choose the driver sheet number, type 1 and then click OK.

Monitoring Device I/O During Runtime

2

This part of the tutorial shows how to monitor device I/O during runtime by using the Log
window.
1)

On the Home tab of the ribbon, in the Local Management group, click Run.
The project runs and the startup screen is displayed.

2)

Press ALT+TAB to switch back to the development application.

3)

Right-click in the Output window, and then click Settings.
The Log Settings dialog is displayed.

4)

Select the Field Read Commands, Field Write Commands, and Protocol Analyzer options.

5)

Click OK to close the Log Settings dialog.

3
4
5

You can now monitor the device I/O during runtime.

6
7
8
9
10
11
A
B
Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-25

Chapter 4: Tutorial: Building a Simple Project

1
2
3

Deploying Your Project as a Web Application
This part of the tutorial shows how to deploy your project as a web application, to which remote
users can connect with Internet Explorer.
For Internet Explorer to work as a web thin client, it must install an ActiveX control that "plays"
POV project screens. If your computer is connected to the Internet, then IE will automatically
download the control from AutomationDirect.com's public server when you connect to a project
runtime server for the first time.
To deploy your project as a web application:
1)

Configure the IP address of the data server.
a. On the Project tab of the ribbon, in the Thin Clients group, click Web.
The Project Settings dialog box is displayed with the Web tab selected.

4
5
6
7
8

Web tab of Project Settings dialog box

9

b. In the Data Server IP Address box, type the IP address of the web server.
For this tutorial, type 127.0.0.1, which is the standard loopback address (a.k.a. "localhost").
c. Click OK to close the dialog.

10
2)

Make sure the data server is set to start up when you run your project.
a. On the Home tab of the ribbon, in the Local Management group, click Tasks.

11
A
B
4-26

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

Chapter 4: Tutorial: Building a Simple Project
The Execution Tasks dialog box is displayed.

1
2
3
4
5
6
7
Execution Tasks dialog box

8

b. In the list of tasks, select TCP/IP Server Runtime, and then click Startup.
The Startup dialog box is displayed.

9
10
Startup dialog box

11

c. Select Automatic, and then click OK.
d. Click OK to close the Execution Tasks dialog box.

A

3)

Save and close all open screens and worksheets.

4)

Click the Application button at the top-left of the development environment, and then click
Publish > Save All As HTML on the Application menu.
Your project screens are saved as HTML files in the Web sub-folder of your project folder
(i.e., \project_name\Web).

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M

4-27

B

Chapter 4: Tutorial: Building a Simple Project
5)

1
2

Configure a web server to make the Web sub-folder available to the network.
For this tutorial, use NT Web Server, the free, lightweight web server program that is included
with POV. Simply copy the program file from […]\AutomationDirect\Point of View v7.1\Bin\
NTWebServer.exe to the Web sub-folder, and then double-click the file to run it. It
automatically serves the contents of whatever folder it is in, without any further configuration.

WARNING: NT Web Server is provided for testing purposes only. It should never be used in a real
production environment or on a secure network.

3

You can also configure the "root directory" or "home directory" setting of some other web
server program (e.g., Microsoft IIS) to point to the Web sub-folder, or you can copy the
Web sub-folder to an existing web server on your network. The web server (which makes the
HTML files available to clients) and the data server (which actually runs your POV project and
exchanges data with the clients) do not need to be the same computer.

4
5
6

6)

On the Home tab of the ribbon, in the Local Management group, click Run.

7)

Open a web browser (e.g., Microsoft Internet Explorer), and then enter the URL address of the
synoptic screen on the web server. For this tutorial, type http://127.0.0.1/synoptic.html and
then press Return. (127.0.0.1 is the standard IP address for the loopback network interface,
a.k.a. "localhost.")
After a few moments, during which the browser downloads and installs the ActiveX control, the
synoptic screen is displayed in the browser.

Notice that you can modify the level of any tank either locally using the project viewer or remotely
using the web browser, and changes on one client appear immediately on the other. They work
equally well.

7
8
9
10
11
A
B
4-28

Point of View Software Reference Guide, 1st Edition - PV-SWREF-M



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Author                          : bdehner
Create Date                     : 2013:10:30 13:06:17-04:00
Modify Date                     : 2013:10:30 13:29:03-04:00
XMP Toolkit                     : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:08:04
Creator Tool                    : PScript5.dll Version 5.2.2
Metadata Date                   : 2013:10:30 13:29:03-04:00
Format                          : application/pdf
Title                           : Chapter 4_6375.indd
Creator                         : bdehner
Producer                        : Acrobat Distiller 9.2.0 (Windows)
Document ID                     : uuid:05db42d3-6abd-46b2-83e6-1956db2515ca
Instance ID                     : uuid:59164169-2d17-442a-ab51-58d6e15cdc79
Page Layout                     : SinglePage
Page Mode                       : UseOutlines
Page Count                      : 28
EXIF Metadata provided by EXIF.tools

Navigation menu