Detailed IFS/OPC Client Configuration—Exercises

Basic Data Setup

Define Basic OPC Client Configurations

Purpose: The purpose of this exercise is to show you the required data that is used in the exercises below.

  1. Configuration File with IFS Extended Server, OPC Server, Group, Tag and Event information.

General exercise for Basic IFS/OPC Client Configuration

Test Points and Parameters

Purpose: The purpose of this exercise is to show you the required data that is used in the exercises below.

  1. Ensure you have an equipment object PM-PA-312-001 with Test Point * and Parameter 50.

 General exercise for Defining Test Points and Parameters

Main Exercise

Purpose: The purpose of these exercises is to show you how to define detailed configuration levels to simplify the management of OPC data.

Windows:
Server Properties
Group Properties
Item Properties
Event Properties
Options

Define Server Variable

  1. Click the File menu and click Open.
  2. Browse for and select the configuration XML file you saved as part of the Basic IFS/OPC Client Configuration exercise.
  3. Right click on the server you created and click Properties.
  4. Click the Variables tab.
  5. Click the New button to add a new server variable. The Variable dialog box opens.
  6. In the Name field, enter the name of the server level variable you want to add. e.g. SITE (should be the name of the field in the input parameter place)
  7. Optionally, in the Value field, enter the value this server level variable should always hold. e.g. 70
  8. Click OK and proceed to close the Server Properties dialog box.
  9. Click the File Menu and click Save.

Define Group Variable

  1. Right click on the group you created and click Properties.
  2. Click the Variables tab.
  3. Click the New button to add a new group variable. The Variable dialog box opens.
  4. In the Name field, enter the name of the group level variable you want to add. e.g. TEST_POINT
  5. Optionally, in the Value field, enter the value this group level variable should always hold. e.g. *
  6. Repeat steps 4 and 5 to include a variable named PARAMETER with a value of 50.
  7. Click OK and proceed to close the Group Properties dialog box.
  8. Click the File Menu and click Save.

Define Group Subscriber

  1. Right click on the group you created and click Properties.
  2. Click the Subscriber tab.
  3. In the Operation field, use the List of Values to select a suitable operation from those in the Extended Server that you want to associate with the defined group. e.g.ReceiveMeasurement. Note: The Interface field will be filled by default when an operation is selected.
  4. Click OK.

Define Tag Variable

  1. Right click on the tag you created and click Properties.
  2. Click the Variables tab.
  3. Click the New button to add a new group variable. The Variable dialog box opens.
  4. In the Name field, enter the name of the tag level variable you want to add. e.g. MCH_CODE
  5. Optionally, in the Value field, enter the value this tag level variable should always hold. e.g. PM-312-PA-001
  6. Click OK and proceed to close the Tag Properties dialog box.
  7. Click the File Menu and click Save.

Define Input Record Parameters

  1. On the Subscriber tab of the Group Properties window, view the measurements in the Input Definition pane.
  2. To edit the parameter references, double click the parameter in the Input Definition pane. Edit the following parameter references as follows:
Parameter Source Source Value  Value
OBJECT_ID Tag.Variables MCH_CODE -
PARAMETER_CODE Group.Variables PARAMETER 50
REGISTERED Tag.TimeStamp PM-312-PA-001 Date and time tag was created on the OPC client
REMARK <LocalValue> - Value acquired through OPC (or any required remark text)
SITE Server.Variables SITE 70
TEST_POINT_ID Group.Variables TEST_POINT *
VALUE Tag.Variables MCH_CODE <Null>
  1. Click OK.
  2. Click the File Menu and click Save.

Define Event Script

  1. Right click on the event you created in the previous exercise and click Properties.
  2. Click the Script tab.
  3. In the Script pane, enter the VB script you would like to configure on the event. e.g. Config.DebugMessage("Operational time:" & Tag.Value)
  4. Select the Activate check box, if required, to activate the script to run on event trigger.
  5. Click OK.
  6. Click the File Menu and click Save.