Advanced Tags For Kepserverex: Easy Guide
Advanced Tags For Kepserverex: Easy Guide
for KEPServerEX
®
Easy Guide
Introduction EASY GUIDE
Follow the steps below to learn how to launch Advanced Tags and create
six easy-to-use, pre-defined tags to execute math, logic, or analysis.
Step 2:
Create Tags
Next, create tags using the quick add icons located in the
toolbar or by right-clicking on the Advanced Tags icon.
In Tag Properties, enter a name for the tag and then define its
parameters, which are unique to each type of Advanced Tag.
See Types of Tags to learn more.
Link Tags enable you to transfer data between two existing tags in the
server. For example, you can take an output from an Allen-Bradley
Programmable Logic Controller (PLC) and use it as an input for a
Modbus register.
The data link will trigger when the data value has changed or on a set time
interval. You can configure this trigger to always occur or to only occur when
a certain condition is met (for example, if a bit from a PLC is high).
The Link Tag can be used in many different applications. For example, you
can trigger a cooling process if a device temperature goes too high by linking
data to a chiller system, or link recipe data from a SQL database to a PLC
when the recipe changes.
Step 1:
Create a Link Tag
In the Tree View, right-click on the Advanced Tags icon and select
New Link Tag. Enter a name for the tag.
Step 2:
Check the Tag Output
Open the OPC Quick Client and locate the group for “Channel1.Device1”.
Verify that Tag2 is updating with values: this data is coming from the
Ramp1 tag.
Derived Tags execute a math or logic operation using existing tags in the
server. Expressions can be created using the value or quality of system tags
and device tags paired with supporting operators. For example, in order to
calculate power, you can subtract a DC offset from collected voltage data
and then take the square of that voltage and divide by measured resistance.
Step 1:
Create a Derived Tag
In the Tree View, right-click on the Advanced Tags icon and select In Expression, click on the ellipsis located to
New Derived Tag. Enter a name for the tag. the right of the text box. Select a tag from the
project and click Apply. This example uses
“Channel1.Device1.Tag1”. Enter an asterisk (*)
in the text box after the first tag.
Step 2:
Check the Tag Output
Open the OPC Quick Client and select the “_AdvancedTags” group that
was automatically created. The Derived Tag that was just created should
be updating with the multiplied values.
Complex Tags enable you to unify several tags into one complex XML
structure that is represented in a single output tag with the String data type.
This is helpful if you would like to transfer a bulk amount of data in only
one tag and send that data in one transaction; for example, to populate a
form with string data in one operation. Separate tags in the server can be
designated as elements in the Complex Tag. You can trigger updates based
on a zero to non-zero transition or at a set rate.
} }
String PLCArea1 Complex Structure Form
Separate Device Tags
Step 1:
Create a Complex Tag
Step 2:
Check the Tag Output
Open the OPC Quick Client and select the “_AdvancedTags” group that
was automatically created. The Complex Tag that was just created should
be updating with an XML string that contains data for the tags added.
Maximum, Minimum, and Average Tags enable you to perform simple yet
useful analysis on a data tag, and trigger the computation on a zero to
non-zero transition. For example, you can do the following:
Step 1:
Create an Average Tag
In the Tree View, right-click In Average, click on the ellipsis located to the
on the Advanced Tags icon right of the text box and select a tag from the
and select New Average Tag. server. This example uses “Simulation Examples.
Enter a name for the tag. Functions.Ramp1”.
Step 2:
Check the Tag Output
Open the OPC Quick Client and select the tag group “Data Type
Examples.16 Bit Device.K Registers”. Right-click on the tag “Data
Type Examples.16 Bit Device.K Registers.Boolean1” and then
select Synchronous Write.
In Write Value, enter 1 and then click OK. This will trigger the
Average Tag to begin calculating.
Kepware is a software development business of PTC Inc. located in Portland, Maine. Kepware provides a portfolio of software solutions to help businesses connect diverse automation devices and software applications and enable the Industrial Internet of Things.
From plant floor to wellsite to windfarm, Kepware serves a wide range of customers in a variety of vertical markets including Manufacturing, Oil & Gas, Building Automation, Power & Utilities, and more. Established in 1995 and now distributed in more than 100 countries, Kepware’s
software solutions help thousands of businesses improve operations and decision making.
© 2017, PTC Inc. All rights reserved. Information described herein is furnished for informational use only, is subject to change without notice, and should not be taken as a guarantee, commitment, condition or offer by PTC. PTC, the PTC logo, Kepware, KEPServerEX
and all other PTC product names and logos are trademarks or registered trademarks of PTC and/or its subsidiaries in the United States and other countries. All other product or company names are property of their respective owners.
J8554–Advanced-Tags-for-KEPServerEX–EG-EN–0717