In the figure bellow, the item is computed without variables associated with MIB variables. The return value of the associated JScript function is string with information about JScript engine. Please see also example of JScript OPC items using variables associated with MIB variables.
Figure: Dialog view to define a JScipt OPC item.
Name
arbitrary within address space unique name of the OPC Item that does not contain spaces. It can be edited by hand, imported on line from device or off line from MIB file of a device (the characters like *, ., /, -, :, _, ;, " are not allowed).
|
Description
It can be edited by hand or imported from MIB file of a device
|
Data type
Data type of the return value from JScript function
|
Input items
Configuring of items that will be used as input variables for JScript function
|
|
Device
|
Device from that variables will be used - device and variables must be configured in advance
|
|
JS variable name
|
Name of the variable that will be used in JScript function
|
|
Item path
|
Path to the variable from device - folder, sub folders, variable name. In the list box only variables from chosen device will be listed
|
|
Add
|
adding of new variable from device
|
|
Change
|
changing of definition for the configured variable from device
|
|
Remove
|
Remove variable from list of input variables
|
Generate alarms
If checked in, a preconfigured alarm definition will be associated with the OPC item.
|
|
Mess. prefix
|
A few OPC items can be associated with the same alarm definition. To distinguish alarm messages for distinct OPC items a message prefix can be used.
|
Value
|
Name of the preconfigured alarm definition
|
Send feedback on this topic.
Copyright © 2004-2013, SAE - Automation, s.r.o. (Ltd.), All rights reserved.