Contents
Strategic Partner Links
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
SDK Examples
Properties common to most Tags are as follows:
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
Name | Name | How the Tag will be presented and referenced in the system. The Tag path will be the provider, the folder structure, and this name. | String | OPC, Query, Expression, Derived, Client |
Value | Value | The value of the Tag. Can only be modified if the Tag allows value writing and the user has sufficient privileges. This property is conditionally writeable meaning the system.tag.addTag has a parameter specifically for changing the value of a Tag on creation, but system.tag.editTag may not change the Value of Tag. Instead, use system.tag.write. | Object (depends on the datatype of the Tag) | OPC, Query, Expression, Derived, Client |
Data Type | Datatype | The data type of the Tag. It is important that this be set as correctly as possible with regards to the Tag's underlying data source. The Tags system will attempt to coerce any raw incoming value (for example, from OPC or a SQL query) into the desired type. | String or Integer | OPC, Query, Expression, Derived, Client |
Enabled | Enabled | Whether the Tag will be evaluated by the scan class. If false, the Tag will still be present, but will have a bad quality. | Boolean | OPC, Query, Expression, Derived, Client |
Access Rights | AccessRights | Specifies the access level allowed to the Tag: Read/Write, Read only, or Custom. If Custom, the Tag will use the permission settings. | N/A The Access Rights of a Tag is not directly editable. However, the value can be modified manually through the Tag Editor window. In regard to scripting, both system.tag.addTag and system.tag.editTag have dedicated parameters that allow Access Rights manipulation. | OPC, Query, Expression, Derived, Client |
Additional Properties - OPC Tags | ||||
OPC Server | OPCServer | The server against which to subscribe the data point. | String | OPC |
OPC Item Path | OPCItemPath | The path to subscribe to on the server. The point will be subscribed at the rate dictated by the scan class. | String | OPC |
Source Data Type | SourceDataType | The data type used by the Tag: Byte, Short, Integer, Long, Float, Double, Boolean, etc.. | String or Integer | OPC, Query, Expression, Derived |
Scan Class Properties | ||||
Scan Class | ScanClass | The scan class that will execute the Tag. The scan class dictates the rate and conditions on which the Tag will be evaluated. | String | OPC, Query, Expression, Derived |
Additional Properties - Tag in External Providers | ||||
Driver | DriverName | The name of the Ignition Gateway that will be responsible for the execution of the Tag. All other Gateways will monitor the value. | String | OPC |
Last Change | LastChange | The last time the Tag was written to or changed. This Tag attribute is not writeable. | Date | OPC, Query, Expression, Derived |
Quality | Quality | Identifies if the Tag's data is of good quality, and should be trusted. This Tag attribute is not writeable. | QualityData | OPC, Query, Expression, Derived |
Tag Types | ||||
Tag Type | TagType | Tag types that can be created in Ignition are OPC, Memory, Expression, Query and Derived. They are identical in their configurations apart from defining how the value is generated. | Integer | OPC, Query, Expression, Derived |
The Numeric properties are available to OPC, DB, and Client Tags whose data types are numeric.
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
Scale Mode | ScaleMode | If and how the Tag value will be scaled between the source, and what is reported for the Tag. | Integer | OPC |
Raw Low | RawLow | Start of the "raw" value range. | Double | OPC |
Raw High | RawHigh | End of the "raw" value range. | Double | OPC |
Scaled Low | ScaledLow | Start of "scaled" value range. Raw low will map to Scaled low for the Tag. | Double | OPC |
Scaled High | ScaledHigh | End of "scaled" value range. Raw high will map to Scaled high for the tag. | Double | OPC |
Clamp Mode | ClampMode | How values that fall outside of the ranges will be treated. "Clamped" values will be adjusted to the low/high scaled value as appropriate. | Integer | OPC |
Scale Factor | ScaleFactor | For single parameter modes (currently only Exponential Filter), the factor parameter for the equation. | Double Used when the Scale Mode property is set to Exponential Filter | OPC |
Deadband | Deadband | A floating point value used to prevent unnecessary updates for Tags whose values "float" by small amounts. | Double | OPC |
Deadband Mode | DeadbandMode | There are two modes to choose from: Absolute or Percent. | Integer | OPC |
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
Format String | FormatString | How the value should be formatted when converted to a string (only applies to numerical data types). | String | OPC, Query, Expression, Derived, Memory |
Eng Unit | EngUnit | The engineering units of the value. | String | OPC, Query, Expression, Derived, Memory |
Engineering Limits Low | EngLow | The lowest expected value of the Tag. | Double | OPC, Query, Expression, Derived, Memory |
Engineering Limits High | EngHigh | The highest expected value of the Tag. | Double | OPC, Query, Expression, Derived, Memory |
Engineering Limit Enforcement | EngLimitMode | Dictates how the engineering range should be enforced on the Tag. If not "none", the Tag will change to bad quality ("limit exceeded"), when the value exceeds the specified range. | Integer | OPC, Query, Expression, Derived, Memory |
Tooltip | Tooltip | The tooltip provides a hint to visual components as to what should be displayed when the user hovers their mouse cursor over the component that is being driven by the value of this Tag. | String | OPC, Query, Expression, Derived, Memory |
Documentation | Documentation | A freeform text property for information about the Tag. | String | OPC, Query, Expression, Derived, Memory |
By default, a Tag's Access Rights property is set to Read/Write, which means that any user can read the value of the Tag and write to the Tag. Read-only mode makes the Tag non-writeable for all users. Custom mode allows the Tag to assign Read/Write or Read-Only privileges to individual roles. Any roles not explicitly granted a right by using the Custom Permissions Editor will not be able to read the Tag's value or write to the Tag.
Tag's Access Writes
Make sure your Tag's Access Rights (in the General section of the Tag Editor window) is set to Custom for these permissions to have an effect. Users must have at least one role in this list in order to have access to the Tag. If a user has more than one of the roles in the list, the role with the highest privilege will apply.
The properties on the History tab of the Tag Editor window specify if and how the Tag's history will be stored in the Tags Historian system.
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
Store History | HistoryEnabled | Whether the Tag will report its history to the Tags Historian system. | Boolean | OPC, Query, Expression, Derived, Memory |
History Provider | PrimaryHistoryProvider | Which Tag Historian data store the Tag will target. A particular Tag can only target one history store. For more information, refer to Historian Providers in Configuring Tag Historian. | String The string name of the Historical Provider | OPC, Query, Expression, Derived, Memory |
Historical Scanclass | HistoricalScanclass | The scan class to use to evaluate Tag history. This allows the Tag's history to be stored at a slower rate than the status is updated at. | String | OPC, Query, Expression, Derived, Memory |
Historical Deadband | HistoricalDeadband | A deadband that applies only to historical evaluation. | Double | OPC, Query, Expression, Derived, Memory |
Max Time between Records | HistoryMaxAgeMode | The maximum amount of time that can pass before a new record is logged for the Tag. The "Max Time between Records" property header contains the property, HistoryMaxAgeMode, which can be set using the Radio Button for "Unlimited" number of executions. | Integer | OPC, Query, Expression, Derived, Memory |
HistoryMaxAge | The maximum amount of time that can pass before a new record is logged for the Tag. The "Max Time between Records" property header contains the property, HistoryAgeMode, which can be set using the Radio Button and the Spinner for a specified number of executions, and the Dropdown for the type of execution (Milliseconds, Seconds, Minutes, etc.). Note: The HistoryMaxAgeMode and the HistoryMaxAge properties have the same property name, but the two are distinctly separate properties that work together: Unlimited and Number of Executions. To learn more, refer to Max Time Between Records in Configuring Tag Historian. | Integer | OPC, Query, Expression, Derived, Memory | |
Historical Deadband Mode | DeadbandMode | There are two modes to choose from: Absolute or Percent. | Integer | OPC, Query, Expression, Derived, Memory |
Timestamp Source | HistoryTimestampSource | Which timestamp is used for the value of the Tag. Refer to Timestamp Source in Configuring Tag Historian. | Integer | OPC, Query, Expression, Derived, Memory |
Value Mode | InterpolationMode | Value Mode dictates the type of value that the Tag represents, how the deadband will apply to the values, and how interpolation should be performed when querying.
To learn more about Analog and Discrete values, refer to Value Mode in Configuring Tag Historian. | Integer | OPC, Query, Expression, Derived, Memory |
User Defined Types (UDTs) are essentially data templates that can be configured to easily control multiple instances. UDTs can hold multiple other basic types of Tags (Integers, Strings, etc.) as well as other UDTs. Changes made to the parent UDT will automatically be propagated to all children.
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
UDT Parent Type | UDTParentType | UDTs are similar to data templates where a particular structure of a Tag is defined. A UDT can be created as if it were a single Tag to create Tag instances. | String States the UDT Definition associated with a UDT instance | UDT Instance |
Tags have the ability to define any number of alarms. Each alarm is a condition that will be evaluated when the value of the Tag changes. When the condition becomes true, the alarm is said to be active. When it becomes false, the alarm is said to be cleared.
Here is a list of Alarm Properties that you can edit or bind when creating or editing a Tag.
Property Name | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
---|---|---|---|---|
Main | ||||
Name | name | Each alarm has it's own name. For example, if the Tag is representing a level, the alarm name might be High Level. | String | OPC, Query, Expression, Derived, Memory |
Enabled | enabled | This boolean determines whether or not the alarm will be evaluated. A disabled alarm's condition will not be evaluated, and thus will not generate any alarm events. | Boolean | OPC, Query, Expression, Derived, Memory |
Priority | priority | An alarm's priority can affect how is appears in an Alarm Status table, or can affect how it is escalated through a pipeline. The priorities, which can be referenced by their integer equivalent in scripts and expressions, are: Diagnostic [0], Low [1], Medium [2], High [3], Critical [4]. | String | OPC, Query, Expression, Derived, Memory |
Timestamp Source | timestampSource | Chooses where the timestamp for the alarm event should come from: the system time of when the event was generated, or the timestamp of the value that tripped the event. | Integer | OPC, Query, Expression, Derived, Memory |
Label | label |
This feature is new in Ignition version 7.9.8
Click here to check out the other new features An optional name that will be used for display purposes. Provides a dynamic alternative to the static name property. If left blank, the name will be used. | String | OPC, Query, Expression, Derived, Memory |
Display Path | displayPath | This is a string value that will be used to display the alarm to operators. If this is blank, the operator will see the path to the Tag instead. Please use the forward-slash character to separate hierarchy levels in this path, for example: East Area/Boilers/Boiler5 | String | OPC, Query, Expression, Derived, Memory |
Ack Mode | ackMode | Dictates how acknowledgement works for the alarm.
| String | OPC, Query, Expression, Derived, Memory |
Notes | notes | A place for any free-form documentation about the alarm that can be displayed to operators. | String | OPC, Query, Expression, Derived, Memory |
Ack Notes Required | ackNotesReqd | If this setting is true, the operators will be unable to acknowledge this alarm without entering some notes. | Boolean | OPC, Query, Expression, Derived, Memory |
Shelving Allowed | shelvingAllowed | If this setting is true, the shelving feature will be unavailable for this alarm. | Boolean | OPC, Query, Expression, Derived, Memory |
Alarm Mode Settings | ||||
Mode | mode | This setting controls what condition this alarm is evaluating. The available modes are as follows:
| String | OPC, Query, Expression, Derived, Memory |
Setpoint / Low | setpointA | The value used to initiate an alarm. If the alarm mode calls for two setpoints, this is the low value. | Double | OPC, Query, Expression, Derived, Memory |
Inclusive / | inclusiveA | If true, the Setpoint or Low Setpoint value is used inclusively for the condition to alarm. | Boolean | OPC, Query, Expression, Derived, Memory |
High Setpoint | setpointB | The high value used to initiate an alarm when the alarm mode calls for two setpoints. Available for modes: Between Setpoint, Outside Setpoints. | Double | OPC, Query, Expression, Derived, Memory |
High Inclusive | inclusiveB | If true, the High Setpoint value is used inclusively for the condition to alarm. Available for modes: Between Setpoint, Outside Setpoints. | Boolean | OPC, Query, Expression, Derived, Memory |
Any Change | anyChange | If true, will alarm on each value change given the alarm mode conditions are met. Note that this alarm will NEVER be "active" because each active event is paired with a matching clear event, instantly. Available for modes: Above Setpoint, Below Setpoint, Between Setpoints, and Outside Setpoints. | Boolean | OPC, Query, Expression, Derived, Memory |
On Zero | bitOnZero | If true, will alarm when the specified bit is not high (when the bit is 0). Available for modes: Bit State. | Boolean | OPC, Query, Expression, Derived, Memory |
Bit Position | bitPosition | The position of the bit, starting at 0 that will be watched. Available for modes: Bit State. | Integer | OPC, Query, Expression, Derived, Memory |
Is Active | activeCondition | When this property is active, the alarm will be active. Typically has a binding of some sort that will be used to determine when the alarm goes active. If the expression evaluates to True, the alarm is active. If the expression evaluates to False, the alarm is not active. Available for mode: On Condition. | Boolean | OPC, Query, Expression, Derived, Memory |
Deadbands and Time Delays | ||||
Deadband | deadband | The value for the deadband, interpreted according to the Deadband mode. Note that all alarms are only evaluated after the Tag's value changes, which means that the Tag's own deadband will be considered first. When the deadband is positive, an active alarm condition needs to clear its setpoint(s) by the amount of the deadband for the alarm to clear. For example, suppose you had a Between Setpoints alarm with a low setpoint of 50 and a high setpoint of 70, and with a deadband of 2. The alarm will go active if the value is between 50 and 70, but will only clear if the value falls below 48 or rises above 72. | Double | OPC, Query, Expression, Derived, Memory |
Deadband Mode | deadbandMode | Defines how the deadband value is used.
| Integer | OPC, Query, Expression, Derived, Memory |
Active Delay | timeOnDelaySeconds | The time, in seconds, before the alarm will be considered active after the alarm's condition becomes true. Also known as a "rising edge time deadband." | Double | OPC, Query, Expression, Derived, Memory |
Clear Delay | timeOffDelaySeconds | The time, in seconds, before an active alarm will be considered clear after the alarm's condition becomes false. Also known as a "falling edge time deadband." | Double | OPC, Query, Expression, Derived, Memory |
Notification | ||||
Active Pipeline | activePipeline | The name of an alarm notification pipeline to put this alarm into when it becomes active in order to send out active alarm messages. Many alarms may share a single pipeline. | String | OPC, Query, Expression, Derived, Memory |
Clear Pipeline | clearPipeline | The name of an alarm notification pipeline to put this alarm into when it becomes cleared in order to send out cleared messages. | String | OPC, Query, Expression, Derived, Memory |
Ack Pipeline | ackPipeline | The name of the alarm notification pipeline to put this alarm into when the alarm has been acknowledged. | String | OPC, Query, Expression, Derived, Memory |
Email Notification Properties | ||||
Custom Subject | CustomEmailSubject | A string that will be used as the subject line of an email notification message. If blank, the message settings defined on the notification block that sent the email out will be used instead. | String | OPC, Query, Expression, Derived, Memory |
Custom Message | CustomEmailMessage | A string that will be used as the body of this alarm's email notification message. If blank, the message settings defined on the notification block that sent the email out will be used instead. | String | OPC, Query, Expression, Derived, Memory |
SMS Notification Properties | ||||
Custom Message | CustomMessage | If specified, will be used for the SMS message. If blank, the message defined in the notification block will be used. | String | OPC, Query, Expression, Derived, Memory |
Associated Data | ||||
User Defined Data | Associated Data are custom alarm properties that can be added to any alarm. These properties will often be bound to other Tags that represent associated contextual data that may be related to the alarm. A snapshot of the values of these properties will be taken when the alarm becomes active. These values will be attached to the alarm event as it moves through the rest of the alarming system, meaning that the values will be available from the alarm status system, the alarm journal system, and in the alarm notification system. | String | OPC, Query, Expression, Derived, Memory |
Many alarm properties are bindable, which means they can be bound to other Tags in the system, or expressions. For example, you might bind the enabled property to another Tag which represents whether or not your process is running, thereby, disabling the alarm when production is stopped. Or, you might bind the setpoint of an alarm to a Tag that operators can manipulate, thereby, letting the setpoint be changed at runtime.
To bind a Tag, simply click on the binding icon (
), and the binding UI will slide in from the right. From here, you can select the binding type (No Binding, Tag, Expression, or UDT Parameter, if applicable). Note, that the expression can reference many useful values such as the Tag's value and other settings of the alarm. When you configured the binding to your liking, click on the Back button.
Query Tags and Expression Tags have the ability to use an SQL query or expression (respectively) as their value instead of an OPC item path. This can be used to select information from the database or create your own formulas to manipulate other Tag values.
In Expression Tags, the Tag can use all of the features available in the expression language. It can refer to other Tags, and use operators and functions to calculate a value for the Tag.
In SQL Query Tags, the Tag's value will be the result of the specified SQL query. The query can be any valid query, but should result in only one value. Note, that insert and update queries can be used, and will often result in an integer value, so the Tag's data type should be set accordingly.
Like SQL Query bindings in the Vision module, the queries for Tags can refer to other Tag values. The values of referenced Tags will be inserted as literal text in the query before being sent to the database.
Client Tags have the ability to be used as either Expression or SQL Query Tags. There is an Expression/SQL page in the Tag editor that allows you to select what type it is.
Query/Expression Attributes | ||||
---|---|---|---|---|
Property | Binding/Scripting Name | Description | Datatype | Applicable Tag Type |
OPC Server | OPCWriteBackServer | The server against which to subscribe the data point. | String | Query, Expression |
OPC Item Path | OPCWriteBackItemPath | The path to subscribe to on the server. | String | Query, Expression |
Query | Expression | Text area to build your query or expression. | String This is the code used by the Tag: either a SQL Query for Query Tags, or an Expression for Expression Tags. | Query, Expression |
Query Type | QueryType | When the TagType property is set to 1, this property determines if the Tag should be a Memory, Expression, or Query Tag. | Integer | Query, Expression, Memory |
Datasource | SQLBindingDatasource | The default data source of the Tag provider. | String | Query |
Each Tag has the option to have Tag Event Scripts on it. When you edit a Tag, you can navigate to the Tag Events section to see a list of all of the Tag scripts. You can then select which event you would like to write a script for. You can even write a script for multiple events if you like.