3. Point Tools

The Program Editor provides tools to facilitate working with points in a script, as follows.

1

Browse

2

Edit

3

New

4

Set

5

Get

6

Dim

 

1

Browse

  1. Place the insertion point in the script where the selected point will be inserted.

  2. Click Tools>Points>Browse on the Program Editor menu bar.

The Select a Point Browser opens.

  1. Select the point to be inserted.

  1. Click OK.

Result: The point ID is inserted in double quotes at the insertion point.

2

Edit

  1. Select a point ID in the script.

  1. Click Tools>Points>Edit on the Program Editor menu bar.

The Point Properties dialog box opens for the selected point.

  1. Make required edits to the point.

  2. Close the Point Properties dialog box.

Result: The selected point configuration is edited if the project is:

Running and Dynamic Configuration is enabled

Not running after a configuration update has been performed.

3

New

  1. Place the insertion point in the script where the new point will be inserted.

  2. Click Tools>Points>New on the Program Editor menu bar.

A New Point dialog box opens.

  1. Create and configure a new point (in the Point Properties dialog box).

  1. Close the point's Point Properties dialog box.

Result: The new point ID is inserted in the script at the insertion point.

4

Set

  1. Place the insertion point in the script where the PointSet statement will be inserted.

  2. Click Tools>Points>Set on the Program Editor menu bar.

A Set Point dialog box opens.

  1. Fill in the fields as follows.

Field

Description

Point ID

Point ID that will be inserted in the PointSet statement.

Value

Value assigned to the point in the PointSet statement.

  1. Click OK.

Result: A PointSet statement is inserted at the insertion point in the script

Example

PointSet "TANK905" ,25

5

Get

  1. Place the insertion point in the script where the PointGet function will be inserted.

  2. Click Tools>Points>Get on the Program Editor menu bar.

A Get Point dialog box opens.

  1. Fill in the fields as follows.

Field

Description

Point ID

Point ID that will be inserted in the PointGet function.

Returns

Value received by the point in the PointGet function.

  1. Click OK.

Result: A PointGet function is inserted at the insertion point in the script.

Example

P = PointGet ("TANKLEVEL")

6

Dim

  1. Place the insertion point in the script where a Dim statement will be inserted.

  2. Click Tools>Points>Dim on the Program Editor menu bar.

A Dimension Point Object dialog box opens.

  1. Fill in the fields as follows.

Field

Description

Point Variable

Point variable ID

New

Check to declare a new instance of the point variable.

  1. Click OK.

Result: A Dim statement for a point or new point variable is inserted at the insertion point in the script.

Example

Dim MyPoint1 As New Point

More information

Edit programs.