GenBroker Tag Syntax

Use the GenBroker's Advanced tab's Tag Syntax sub-tab to configure tag extension syntax and XML DA syntax. (For help accessing GenBroker, refer to the GenBroker Overview topic.) You use this tab to redefine separators for OPC item names. The Tag Syntax sub-tab is shown in the figure below.

 

The GenBroker Tag Syntax Form

 

Note. Any changes you make can be undone by clicking the Default button. This button restores all of the default tag syntax settings that were in place directly after Hyper Historian 's installation.

 

XML DA syntax has the following properties:

http://opcfoundation.org/XmlDaSampleServer/Da30Service.asmx

 

An item on the server is defined by its name; for example:

Dynamic/Analog Types/Double.

 

When GENESIS64 applications refer to an item on an XML DA OPC server, they use one string which consists of the server’s URL and the item name, separated with the separator specified here; the default separator is #, and results in the following address:

http://opcfoundation.org/XmlDaSampleServer/Da30Service.asmx# Dynamic/Analog Types/Double.

Note. Not all OPC servers honor requests for asynchronous extended point attribute calls, which is the method that ICONICS clients use.

 

Tag extensions are used by ICONICS applications to request a specific value from the OPC Server. Use the Tag Extension Syntax section to identify the separators used in the syntax. Typically, you never change these values; however, if an OPC item ID or tag ID uses any of the characters listed on this tab as a separator, you must specify a different separator that is not in use elsewhere and which is reserved for use only as the separator.

 

Fields on the Tag Syntax tab (see above) include the following:

Standard Tag Syntax

The standard syntax for a tag in GENESIS64 client applications is:

 

[\\<node>\]<server>\<itemid>

where:

 

Example: \\PC1\ICONICS.Simulator\SimulatePLC.Sine

 

However, the client application may need to request additional information from the OPC server. To request additional information, the application request must follow the guides for tag extension syntax.

 

Tag extensions let client applications request additional or specific information from the OPC server. The syntax for tag extensions is described here. Tag extension syntax begins with tag: before the tag name, followed by any additional options; the options that are used must make use of the separators defined on the GenBroker’s Tag Syntax sub-tab (located on the Advanced tab). Note that you can combine options in a tag but the options that you use must conform to the sequence shown below in the syntax.

Syntax for Tag Extensions

Here is the syntax for tag extensions which makes use of the default separators:

 

@tag:[\\<node>\]<server>\<itemid>[::< accpath>][- -><prop>][< idx>][#< attr>][@<rate>]

 

where the variables used above include:

Property IDs and names supported by GenBroker in tag extensions are listed in the table below. Their meanings are defined in the OPC Specification 2.0. The property names and IDs are interchangeable. Refer to these property names and IDs when reviewing the examples that follow.

 

Property Names and IDs

Property Name

ID

Data Type

1

Value

2

Quality

3

Timestamp

4

AccessRights

5

ScanRate

6

EUUnits

100

Description

101

HighEU

102

LowEU

103

HighIR

104

LowIR

105

CloseLabel

106

OpenLabel

107

TimeZone

108

DefDisplay

200

FgColor

201

BkColor

202

Blink

203

BMPFile

204

SoundFile

205

HTMLFile

206

AVIFile

207

CondStatus

300

AlQuickHelp

301

AlAreaList

302

AlPrimArea

303

CondLogic

304

LimExceeded

305

Deadband

306

HiHiLimit

307

HiLimit

308

LoLimit

309

LoLoLimit

310

ROCLimit

311

DevLimit

312

ItemID

5000

Name

5001

UsageCnt

5002

When any of the following attributes is used in a tag extension, GenBroker returns the value of the attribute rather than the value of the specified item. Possible attributes are listed here. Refer to these attributes when reviewing the examples that follow.

 

Tag Extension Attributes

Attribute

Datatype

Purpose

quality

INTEGER

Quality of the item – see the OPC UA Specification for more details.

valid

BOOLEAN

Flag if the item value is valid. True for GOOD and UNCERTAIN qualities and for BAD quality with LAST KNOWN VALUE substatus.

timestamp

DATE/TIME

Time of the last change of the item value.

qualgood

BOOLEAN

True when the item value has GOOD quality, False otherwise.

See Also:

GenBroker

Channels

Redundancy Node Pair Tab