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.
- 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.
- 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
- Click the File menu and click Open.
- Browse for and select the configuration XML file you saved as part of
the Basic IFS/OPC Client Configuration exercise.
- Right click on the server you created and click
Properties.
- Click the
Variables tab.
- Click the New button to add a new server variable. The
Variable dialog box opens.
- 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)
- Optionally, in the Value field, enter the value
this server level variable should always hold. e.g. 70
- Click OK and
proceed to close the Server Properties dialog box.
- Click the File Menu and click Save.
- Right click on the group you created and click
Properties.
- Click the
Variables tab.
- Click the New button to add a new group variable. The
Variable dialog box opens.
- In the Name field, enter the name of the group level variable you
want to add. e.g. TEST_POINT
- Optionally, in the Value field, enter
the value this group level variable should always hold. e.g. *
- Repeat
steps 4 and 5 to include a variable named PARAMETER with a value of 50.
- Click OK and
proceed to close the Group Properties dialog box.
- Click the File Menu and click Save.
- Right click on the group you created and click
Properties.
- Click the Subscriber tab.
- 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.
- Click OK.
- Right click on the tag you created and click Properties.
- Click the
Variables tab.
- Click the New button to add a new group variable. The
Variable dialog box opens.
- In the Name field, enter the name of the tag level variable you
want to add. e.g. MCH_CODE
- Optionally, in the Value field, enter
the value this tag level variable should always hold. e.g. PM-312-PA-001
- Click OK and proceed to close the
Tag Properties
dialog box.
- Click the File Menu and click Save.
- On the Subscriber tab of the
Group Properties
window, view the measurements in the Input Definition pane.
- 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> |
- Click OK.
- Click the File Menu and click Save.
- Right click on the event you created in the previous exercise and click
Properties.
- Click the Script tab.
- In the Script pane, enter the VB script you would like to configure on
the event. e.g. Config.DebugMessage("Operational time:" & Tag.Value)
-
Select the Activate check box, if required, to activate the script to
run on event trigger.
- Click OK.
- Click the File Menu and click Save.
Copying forbidden: The material in this manual is protected by copyright law, and may not be copied entirely or in part, without the prior permission of Industrial & Financial Systems AB. © 2012 Industrial & Financial Systems AB