phuz
Member
Is this example really the easiest way to write to an HMI tag in VBA?
I've been playing with this for a couple hours and so far this is the only thing I can get to actually work.
Even in IFIX this can be accomplished with a single line of:
writevalue 1, "Node.tagname.F_CV"
I've been playing with this for a couple hours and so far this is the only thing I can get to actually work.
Code:
Public WithEvents MyGroup As TagGroup
Public oTag As Tag
Private Sub Display_AnimationStart()
Set MyGroup = Application.CreateTagGroup(Me.AreaName)
MyGroup.Add ("MyHMITag")
Set oTag = MyGroup.Item("MyHMITag")
oTag.Value = 0
End Sub
Even in IFIX this can be accomplished with a single line of:
writevalue 1, "Node.tagname.F_CV"