Assign values to HMI tags in factory talk view SE using VBA

NoLegalMoves

Member
Join Date
Jul 2012
Location
Utah
Posts
6
Using VBA I am trying to assign a value to my HMI tags.
The tag name is Alarm_TM. Once this tag value is set to 1, this triggers an animation on the HMI
Here is is my code so far

Public Sub auto_open()

gTagDb.getTag("_internal\Alarm_TM").Value = 0

End Sub

Whether I set the value to 0, or 1 the animation is not changing which tells me the tag value is not assigned.
What is the proper way of doing this?
 
Create a tag group, add the tag(s) you need to the group. Then make the assignment, and use the "WritePendingValues(TagsInError)" method of the tag group to update them.

Tag_str = "{[" & IOTopic & "]MyDigitalTag}"
Set HMITag = MyGroup.Item(Tag_str)
HMITag.PendingWriteValue = 0
Results = MyGroup.WritePendingValues(TagsInError)
 

Similar Topics

I have 32 masters in a linear topology network chain. I would prefer to use AL1xxx series from IFM. They do support device level ring if that...
Replies
15
Views
1,011
On my HMI-1200, I'm trying to assign the image of a floppy disk ("save" icon) to a function key. I couldn't find one in the default drop-down...
Replies
5
Views
596
Hi everybody. I got some problems about how to perform this task Now, I got an FB where I have this code snippet that looks like: L P##DBD_134...
Replies
5
Views
1,128
Good Morning, I'm not sure if this is a stupid question, but I've been working with FTView ME for quite some time now and I can't solve this...
Replies
9
Views
1,490
Hi I have a few Movimot motors on profinet, where i need to change the profinet name on the motor. I have been true this before, where i deleted...
Replies
7
Views
2,419
Back
Top Bottom