FactoryTalk View SE Tag Group Change Event

keith.morton

Member
Join Date
Apr 2013
Location
SA
Posts
11
I want to use the change event to run some VBA code. It seems that sometimes the change event is missed causing the changed tag to be ignored.
Has anyone experienced this problem?
 
Last edited:
I have set up a tag group and I am using the change event for the group. The tag I am expecting to trigger the event is a Boolean tag.
 
Yes the display is always loaded. The Withevents keyword I have not come across! I do know that the change event triggers OK most of the time, its just intermittently it seems to miss!
 
Actually, I do use WithEvents as follows:
"Public WithEvents oGroupFlags As TagGroup" and oGroupFlags is the group which has the change event coded.
 
Sure:
Private Sub oGroupFlags_Change(ByVal TagNames As IGOMStringList)
'this function monitors flags from PLC to call required functions 16/01/13 krm
Dim lTagErrorList As StringList, blnReturn As Boolean

If gblnRecordingMix Then Exit Sub 'in case routine is already active recording a mix
gblnRecordingMix = True
If fncGetTagValue_Flags("{::[CPLX]Program:Mixers.HMI_Record_Mix_Med}") Then
subRecordMix 'record batch
Call subSetTagValue_Flags("{::[CPLX]Program:Mixers.HMI_Record_Mix_Med}", False) 'reset flag
End If
gblnRecordingMix = False
End Sub

the flag gblnRecordingMix is used to ensure any secondary calls to subroutine are ignored. The group has 2 tags at present, one is the tag being monitored here and alos a cyclic 3 second bit to call routine in case it is missed by change of state of Record_Mix flag.
 
The monitored tag, in the PLC... Does it latch in the PLC? or is it just an OTE?

For my event based triggers in FTView, I latch the trigger bit in the PLC (with a 30 second timer to unlatch it and set a fault in the PLC for when View decides it is time for a reboot), and then unlatch it as you are after the routine has processed.

Doing that, you also don't need to add your gbInRecordingMix flag and logic, as the event is only triggered once from the PLC, so you can just exit if your PLC tag is zero. If it is 1, then process your logic.
 

Similar Topics

I have a FactoryTalk View Se project, Is it possible to export Direct Reference tags to edit in a CSV file or Excel? I know I can export HMI...
Replies
1
Views
299
Hi All, I'm trying to look into if it's possible to get FactoryTalk SE to build a process log report, recording various tag values at a poll rate...
Replies
1
Views
589
We are cutting over a PLC5 to ControlLogix and we ran into some issues with the HMI (FTView v10, Network Distributed). We found that after...
Replies
0
Views
958
RE: FactoryTalk View Tag Browser Datatype - UNRECOGNIZED Hi All I have a new install of FactoryTalk View SE 12 with the May 2022 patch rollup...
Replies
6
Views
3,288
Hi All, Does anyone know that how to monitor tag value during the client file is running? I don't want to create button with animation to find...
Replies
2
Views
1,466
Back
Top Bottom