1.14.4.21 V
Val - ValueAxis
Value Property
Description of Tag Object
Displays the value of the tags at the last read access or the value written or to be written. Value
represents
the value of a tag. After calling in the "Read" method, the tag value read is returned.
Before writing, the new tag value required can be assigned to the property. After calling in the
"Write" method, the property contains the value last written.
VARIANT (write-read access)
Example:
The following example writes a new value in the "Tag1" tag:
'VBS94
Dim objTag
Set objTag = HMIRuntime.Tags("Tag1")
objTag.Value = 50
objTag.Write
Description of WinCC Gauge Control
Defines the value to which the pointer points. Value Range: "ValueMin" to "ValueMax".
Description of DataItem Object
Returns a value copy or object reference. Furthermore, an already added value can be
changed via the value property.
Example:
The example shows how to add a value to the list, and how to output it as a trace. After that,
the
value is changed, output again and then removed. It make sense to perform this in several
different actions.
'VBS198
HMIRuntime.DataSet.Add "motor1", 23
HMIRuntime.Trace "motor1: " & HMIRuntime.DataSet("motor1").Value & vbNewLine
HMIRuntime.DataSet("motor1").Value = 55
HMIRuntime.Trace "motor1: " & HMIRuntime.DataSet("motor1").Value & vbNewLine
VBS for Creating Procedures and Actions
1.14 VBS Reference
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
610
System Manual, 11/2008,