Monday, September 21, 2009

Numatics/DeltaV Integration

Back in May, I wrote about the interest we got during our annual user group get together for the Numatics smart manifold/remote IO product. We finally got a unit into our proof of concept area and have been putting it through its paces.


We have it connected up on one of our DeviceNet segments and have one of the solenoids connected up to a Crane Saunders diagram valve with a conventional switchpack. We used our standard valve module template in DeltaV, but instead of the output going directly to the solenoid, it goes to a register input within the Numatics.

We then constructed some logic, using function blocks available in the Numatics, to provide local interlocking based on another discrete input (a make-believe tank high level switch). One more switch allows us to turn the Numatics logic on and off, so comparisons between it and DeltaV can be demonstrated.




This puppy if FAST. I’m in the process of putting together a video I hope to upload to the Process Automation Usability Project website sometime after Emerson Exchange. We also constructed a valve sequence within DeltaV and ran it as fast as we could, simulating the valves around the bowl of a centrifuge. We then put the same logic in the Numatics and using another register, triggered the sequence from DeltaV. We actually had to slow the sequence in the Numatics down just so we could see it!


Friday, September 11, 2009

So I’m trying to “get” this whole Twitter thing, and I’m not sure I’m doing it right. I apologize to the few folks who have decided to follow me – at least they won’t be inundated with posts, at least not for a while.

I have, on the other hand, been following a few folks to try and figure it out and hopefully pick up some useful information – honestly, I’m not just lurking.

Along with my engineering and management responsibilities, I dabble on the sales side of automation and have been introduced to the concept of the “elevator talk”. Either Jim Cahill or Mike Boudreaux, on one of their recent twits (is that what they're called?), provided a link to a blog (which provided another link to another blog) on the topic of the “customer’s elevator rant”, a prequel to the elevator pitch. It’s very enlightening, and a must read in preparing for the upcoming Emerson Exchange.

Hey, good news – in getting the hyperlinks to include in this post, I think I’ve made a small breakthrough in my twitter adventure. Maybe I’m not too old for this stuff after all. Ready to check me out - click here.

Wednesday, September 2, 2009

Data View Web Part, Part II

So we’ve done some more playing around with the data view web part. I think I’m warming up to it because it does have a lot of capabilities and Drew’s doing the heavy lifting.

So we’ve put together a really good Batch Duration example. It’s a combination of 3 data view web parts, feeding each other in series. The first data view allows the selection of a formula, which populates the second data view with a list of batches that meet the formula criteria. By clicking on a particular batch id then populates the third data view showing durations. We even took advantage of the web part to highlight durations that exceed a fixed amount of time. Great for doing batch to batch comparisons.

Wednesday, August 19, 2009

Data View Web Part

I came across a web part for our dashboard development that makes access to SQL data a little easier. It’s from a company named Lightning Tools Ltd, and it’s the LT Data Viewer Web Part. Its claim to fame is not requiring SharePoint Designer to drop a table, view, or stored procedure on to a SharePoint site.

In the screenshot below, I’ve used the web part to display data from a stored procedure, showing recent batches run on our demo system. The web part has the ability to highlight values or whole rows based on expressions. In this case, I’ve highlighted batches whose duration has exceeded a predetermined limit. Makes it easy to quickly identify the outliers.


Of course, it would be really neat if I could just click on the Batch ID in the list and get access to a report or launch a tool like History Analysis…

Monday, August 17, 2009

SharePoint As An Automation Dashboard

We’ve been doing some heavy experimenting lately, exploiting SharePoint (specifically WSS 3.0) as a dashboard tool for DeltaV. And while we’re messing around with some 3rd party tools specifically developed for accessing real-time data, I also wanted to see what we could do using the out-of-the-box web parts.

SharePoint is SQL based, so it’s SQL aware, almost SQL friendly. And since DeltaV has lots of stuff stored away in SQL (batch data, Syncade data, alarms and events data), this seemed like a good place to start.

First thing though, you’ve got to have Microsoft Office SharePoint Designer. The good news, it’s now free from Microsoft (Bill Gates must have been feeling especially generous one day). Click here to follow the link to the download site. You’ll want to get a good book on Designer and SharePoint (I’m still looking for one).

The specific tool we’ve been experimenting with is the data view web part. So to get a summary of orders from Syncade, you create a data source into the DMI_EBR database, looking at the vOrders view:


Note how sorting and filtering are possible right within creating the data source. You can then check to make sure you’ve set everything up right by looking at the data:


Then it’s just a matter of dropping the data source on a SharePoint web page. You can even link one data view web part to another. For example, selecting a particular Syncade order in the upper web part populates the lower web part of all the work instructions executed during the order:


Is it really just that easy? No way – you’ll need to spend a lot of time with this, but the benefits are huge. Next post I’ll talk about other techniques for unlocking the hidden value of your data.

Thursday, August 6, 2009

A Prolific Comment

Our Site Services manager, Mark Moore, brought this to my attention and I thought it was such a prolific observation, not to mention one of my favorite topics for presentation, I’d share it here.

When a pharmaceutical company representative remarked “We’re awash with data, but we have no information”, Alison Smith of Aspen Technology she commented “this was a very apt statement. It applies to any environment in which technology has been deployed in the absence of an information design…”

Data to information, information to knowledge – a holistic approach to the application of S95 is key to keep all those thousands of terabytes of data from gathering electronic dust.

Tuesday, July 28, 2009

Webinar Series for SA Customers

Electronic Signatures within DeltaV has been around for years now, but at least in my experience, it’s one of the most under utilized features of the system. So with that in mind, we have initiated a Webinar series for our Service Agreement customers the first topic being the use of Electronic Signatures and ESIG Policies.

Our goal is to provide helpful insight in our product and technology offerings and to help our Service Agreement customers get the most out of their systems.

I hosted the inaugural Webinar just this morning and we had excellent attendance from throughout the Carolinas.

Friday, July 17, 2009

Batch Events Whitepaper

I'm sorry I jumped the gun last time in directing you out to the Acme Biotech site to download my whitepaper on Batch Events in DeltaV version 10.3 - I've got it finished now, so head on over to Acme and follow the links to the document.

Thursday, July 9, 2009

PMBR


With batch event and LOG EVENT information going into the DeltaV version 10.3 Event Chronicle, you can start putting together simple views or what I’ve affectionately termed as Poor Man’s Batch Reporting (PMBR).

Process History View just doesn’t have the horsepower for the types of queries required. And that’s OK, because the Event Chronicle is a SQL database. So what I’ve done is link the alarms and events table into Access. This was easy because the ODBC data source is already setup for you in DeltaV:






Then I created two queries – one to get unique Batch ID’s and one to get the batch events. The Find Unique BatchIDs query looks like this in SQL:


SELECT Right(Events1!Attribute,Len(Events1!Attribute)-InStr(1,Events1!Attribute," ")) AS BatchID
FROM Events1
GROUP BY Right(Events1!Attribute,Len(Events1!Attribute)-InStr(1,Events1!Attribute," ")), Events1.Attribute
HAVING (((First(Events1.Attribute)) Like "@*") AND ((Count(Events1.Attribute))>1));

Executing this gives:







The Batch Events query required a parameter (well it did for me, anyway, but I am no SQL guru – I’m sure someone out there can do a better job), its SQL looks like this:


PARAMETERS BatchID Text ( 255 );
SELECT Events1.Date_Time, Events1.State, Events1.Desc1, Events1.Desc2
FROM Events1
WHERE (((Events1.Attribute) Like "*" & [BatchID])) OR (((Events1.Desc1) Like "*" & [BatchID]))
ORDER BY Events1.Date_Time;


When I run the query, I get prompted for the BatchID:



And the results look like this:



The pressure drop data was captured with the LOG EVENT function in the FERM_PTEST phase.


So here's a way to generate some simple batch reports without dealing with those pesky EVT files. Head over to my website - I'll be consolidating the 3 posts about batch events/reports into a whitepaper.

Batch Events in PHV

Back in April, I wrote about how major batch events can now make their way into Process History View. So what’s that look like? How do I find these batch events? Well, there’s a new Category named BATCH-EVENT. So if I go into PHV, and filter on Category equal to BATCH-EVENT, I get something like this (I’ve hidden some columns that don’t pertain to batch events to make it easier to read):



One of the first things to note is the Parameter column contains both the unique Batch ID as assigned by DeltaV and the Batch ID as entered from the Create Batch view. The State column gives you a taste of the different “major batch events” now being captured. Here’s a non-comprehensive list of major batch events:

BATCH ADDED
BATCH REMOVED
CAMPAIGN CREATED
LOAD
Manual Phase Started
Mode Change
Operation Finished
Operation Started
Operation Started with Equipment
Phase Finished
Phase Started
Phase Started with Equipment
Procedure Finished
Procedure Started
REMOVED
Resource Acquired by recipe
Resource Released by recipe
State Changed
Unit Procedure Finished
Unit Procedure Started
Unit Procedure Started with Equipment

Noticeably absent from the list are report parameters. If I could somehow get report-like parameters into PHV, I’d have some pretty useful information. Enter the LOG EVENT function. The LOG EVENT function has been around a long time (go to BOL on how to use it), but the cool thing is how it looks in PHV. And it looks different, depending if it’s used in a regular module as opposed to phase logic:


When it’s used in just a regular module, the Desc1 column is empty. When it’s used in phase logic, the Desc1 column contains the Batch ID!

So for this example, if I look at the Parameter column to contain Acme11May2009 or the Desc1 column to contain Acme11May2009, and sort the result by Date/Time…to be continued.