Wonderware Delta Retrieval Mode applied to just 1 tag

startergirl

Member
Join Date
Nov 2020
Location
London
Posts
1
Hi everyone!

I am very new here (only a few hours old) but I am so glad this website exists. It has proved so useful already and I hope to be able to help others someday. Okay...my question.

I am trying to get tag information anytime a specific tag in my query e.g [Alarm] changes. I also want other tags to come up as well to provide me with more information about the alarm such as [RecipeName]and [ValveOutput].I decided to use the delta retrieval mode which seemed like the perfect solution, except it records when the value of any of the three tags changes, and I only want it to record when [Alarm]changes and print the [RecipeName] and [ValveOutput]in that instance.

Is there anyway to apply the delta mode to only one tag in my query?

Here is an example of my query

SET QUOTED_IDENTIFIER OFF
SELECT * FROM OPENQUERY(INSQL, "SELECT DateTime = convert(nvarchar, DateTime, 21), [Alarm], [RecipeName], [ValveOutput]
FROM WideHistory
WHERE [Alarm] >0
AND wwRetrievalMode = 'Delta'
AND wwVersion = 'Latest'
AND DateTime >= DateAdd(hh,-6,GetDate())
AND DateTime <= GetDate()")

Thank you so much for reading my question! :geek:
 
Your query is asking for all historical data between the specified date range. Are you looking for a rising edge detector?

Maybe try adding some criteria for an UNACK alarm state, or 'Alarm.IsSet'.

Otherwise, you'll need to create some unions to compare adjacent values to detect a rising alarm edge from 0->1.
 

Similar Topics

Anyone knows how to communicate Delta DVP-20SX PLC to Wonderware Intouch using ethernet (MBENET)/modbus ethernet? Using this I/O server MBENET, i...
Replies
2
Views
2,394
I am trying to integrate a Delta PLC (DVP-12SA2) with wonderware intouch to be used for a worm driven position control. The program is almost...
Replies
1
Views
7,304
Hi guys, I have experience with PLC to Excel etc...just starting on using intouch scada screens. I have an Excel sheet that uses mainly...
Replies
1
Views
172
Hello everyone, Recently, my Archestra IDE shut down while I was editing. After restarting the IDE, I noticed warning symbols under my opened...
Replies
1
Views
112
Good morning all. I'm working on a rehab where they had a standalone InTouch 2014 HMI that they called a SCADA, but it's really basic stuff. The...
Replies
4
Views
198
Back
Top Bottom