Properties Common to all Variable types
The following properties are common to all variable types (bit, alarm, register and text). Some are found in the General tab, the others in the Advanced tab.
- Name - The name for the variable. See the Rules for Branch and Variable Naming topic.
- Description - A description for the variable up to 255 characters in length. This string is bilingual. A variable's description and has a number of uses.
- It is displayed when the variable is selected in the Select Variable dialog box.
- It appears as a prompt in the dialog box seen by a User when changing a variable's value.
- It appears in the Alarm Viewer, and when an Alarm is printed.
- It appears in the Log Viewer, and when a log is printed.
- It may be displayed by certain animation types.
- Domain - The Domain to which the variable is allocated (optional).
- Nature - The Nature to which the variable is allocated (optional).
- Associated label - An associated label is used to display a variable's value as text strings instead of a boolean value or number. See the topic Using Associated Labels with variables.
- Command - Enable the value of the variable to be set internally from a command type animation, a Recipe or a SCADA BASIC program.
- Scope - Defines the scope of the variable, i.e. its distribution across stations and its accessibility across user sessions. For more information, see below and topics Understanding how to use the scope and Configuration items affected by scope.
The following properties are in the variable's Advanced configuration tab.
- Command
- Command level - The command level that must be enabled in the User Account in order for a User to change the value of the variable. Only visible when the Command property, in the General tab, is set.
- Miscellaneous
- Browsing level - The browsing level that the User Account must have in order to see the variable when using a browsing service of PcVue.
See the topic Properties that affect access by 3rd party applications for further information about interfaces for which this privilege is enforced.
See the topic OPC DA server configuration for further information about OPC Security. - Inhibited - Temporarily disable the variable and all functions associated with it. The variable remains in the inventory but is not active.
- Simulation
- Simulated - Temporarily breaks the link between a variable's value and its data source, so that the variable can be set to an arbitrary value.
- Locked - If set, the variable's simulation state is locked, the Simulated property cannot be changed at runtime.
- With fallback value - A predefined fallback value assigned to ensure the variable maintains a consistent state when simulated.
- With expiration time - An expiration date for the simulation, set either manually or automatically, after which the variable will revert to live data acquisition from the configured data source.
- Saved - Save the variable so that the value of its properties modified at run-time are persisted whilst PcVue is shutdown and restored at start-up.
- VCR - Record the value of the variable for replay through a mimic using a special VCR project. See the topic on the VCR Facility for further information.
- Remote access - The variable is flagged as being available for access by a third party software.
- No context window - If selected the ability use a context window with the variable is disabled.
- Monitoring
- Permanent scan for mimics - See the topic Using the permanent scan for mimic option.
- Networking.
- Servers – The name of a server station list. Used on multi-station applications to define on which station the variable will be available. See the topic, Configuring and Managing the Inventory, in the Networking book for further information.
- Clients – The name of a client station list. Used on multi-station applications to define on which station the variable will be available. See the topic, Configuring and Managing the Inventory, in the Networking book for further information.
- Internal
- Broadcast - (Internal variables only) Broadcast the value of the variable on the local area network each time it changes. This is used to keep internal variables in step when PcVue is used in redundant operation using two or more Stations with identical projects running in parallel.
When a variable is in simulation mode, its status is set to SIM (simulated with a value) or SIM NS (simulated with no value set) and displayed in the Variable tree pane.
To change the Simulated property at runtime, it must be commandable. See the topic Variable Settings for more details.
Access to simulation features depends on user permissions. Authorized users can set or reset variable simulation, and modify both the fallback value and expiration time based on the configured Command level for the Simulated property.
Because the Application Explorer only displays variables that the running station produce or consume, remember to always configure first the list that contains the running station when you create a new variable or modify networking lists of an existing variable. Failing to do so can lead to situations where the variable is configured but is not displayed in the Application Explorer.
Because it is a configuration modification (as opposed to a runtime change), changing the value of the Inhibited property here is not archived as part of a log list.
The modes ENABLE and DISABLE of the instruction VARIABLE are the only way to change the inhibition status of an alarm. As for any other type of variable, such changes done by script will be logged if the alarm is archived and the log list is configured appropriately.
Understanding the behavior of the Saved property
When the Saved property is activated, PcVue periodically saves the value of properties that are modified at run-time, so that they can be restored at start-up. The list of properties that are saved depends on the type of the variable, its source, and a number of settings related to variable properties. In details:
- General rule - Only variables mapped to I/O (data acquisition) and internal variables can be saved.
HMI variables, as well as percent and temporary variables cannot be saved. - The Saved property is ignored on system variables created automatically by PcVue.
- Saving Binary attributes, Text extended attributes or the Simulated property - If such run-time property is configured to be persistent (see the Variables settings), it will be for any variable configured to be saved.
- Saving alarms - Alarms can be saved, in which case only the alarm status is saved (acknowledged or not, masked or not...).
- Saving internal variables - If an internal variable is saved, its value, timestamp and status is saved, as well as any saved attribute or run-time property configured to be persistent (see the Variables settings). If this variable is an alarm, its alarm status is also saved.
- Saving variables mapped to I/O - Such a variable mapped to I/O can be saved for 2 purposes:
- Saving Binary attributes, Text extended attributes or the Simulated property - As for internal variables.
- Saving the alarm status - In which case the alarm status is saved.
- In all cases, the value, timestamp and status of the variable itself is not saved.
The frequency at which variables are saved is configured in Variables settings.
To save Binary attributes, Text extended attributes or the Simulated property, you must configure them as persistent in the Variables settings. These settings only apply to variables for which you have activated the property Saved.
Properties related to variables are stored in the file \Per\VariablesSaved.dat of the project. This includes the VTQ of internal variables, attributes and other run-time properties.
Properties related to alarms are stored in the file \Per\AlarmSaved.dat of the project. This includes the status of alarms.
How a variable's properties and behaviors are affected by scope
Because of the change in how a variable's value is distributed when the scope is either Client Context or Session Context, some variable properties and behaviors are not applicable and cannot be configured in the variable's configuration.
In general:
- A variable of scope Session context cannot be logged nor trended,
- A variable of scope Client context cannot be used as alarm, logged nor trended.
- A variable is exposed via server interfaces such as the OPC Server, the IEC 104 outstation or the Web Services Toolkit only if its scope is Shared or Local station.
If you attempt to change the scope of a variable, with one of these properties or behaviors already configured, to Client Context or Session Context an error message is generated and the change in scope is canceled.
The use of the following properties is affected by the variable's scope:
Tab | Property | Shared | Local station | Session context | Client context |
General | Alarm | Yes | Yes | Yes | Not applicable |
General | Log | Yes | Yes | Not applicable | Not applicable |
Advanced | Archiving.Log on.Positive transition | Yes | Yes | Not applicable | Not applicable |
Advanced | Archiving.Log on.Negative transition | Yes | Yes | Not applicable | Not applicable |
Advanced | Miscellaneous.Saved | Yes | Yes | Not applicable | Not applicable |
Advanced | Miscellaneous.Recorder | Yes | Yes | Not applicable | Not applicable |
Advanced | Miscellaneous.Remote access | Yes | Yes | Not applicable | Not applicable |
Advanced | Miscellaneous.No context window | Yes | Yes | Not applicable | Not applicable |
Advanced | Networking.Servers | Yes | Yes | Not applicable | Not applicable |
Advanced | Networking.Clients | Yes | Yes | Not applicable | Not applicable |
Advanced | Internal.Broadcast | Yes | Yes | Not applicable | Not applicable |
General | Maximum value (by variable) | Yes | Yes | Not applicable | Not applicable |
General | Minimum value (by variable) | Yes | Yes | Not applicable | Not applicable |
Advanced | Command.Maximum value (by variable) | Yes | Yes | Not applicable | Not applicable |
Advanced | Command.Minimum value (by variable) | Yes | Yes | Not applicable | Not applicable |
The use of the following behaviors is affected by the variable's scope:
Behavior | Shared | Local station | Session context | Client context |
Trend | Yes | Yes | Not applicable | Not applicable |
Discrepancy | Yes | Yes | Not applicable | Not applicable |
Alarm.Acknowledgment transmission | Yes | Yes | Yes | Not applicable |
Alarm.Program action | Yes | Yes | Yes | Not applicable |
Alarm.Window action | Yes | Yes | Yes | Not applicable |
Alarm.Masking by variable | Yes | Yes | Yes | Not applicable |
Alarm.Masking by expression template | Yes | Yes | Yes | Not applicable |
Threshold behavior is unaffected other than the scope of the threshold variables follow that of the source variable.