Posts

Showing posts from 2009

Siemens PCS7 Direct PLC Tag Data Retreival

Image
Exciting Work in Development at IDX TOPIC: PCS7 Direct PLC Communication via IDX Runtime Background: IDXOnline has an exciting solution in development to solve a long–standing challenge which involves collecting plant data directly from the Siemens PLC as opposed to from the WinCC OPC Server. Out with the old: In With the New: How will we achieve this? IDX has obtained a dll package from one of our partners that are able to communicate with a Siemens PLC via TCP/IP. The package is suitable to be incorporated into the IDX runtime as a driver module, and thus will work like any other IDX driver module will enable communication with any other software that IDX currently supports. Is there already software available that can do this? Yes. IDX has tested the Softing S5/S7 OPC Server as well as the Wonderware DasSIDirect Server, and the results that this test yielded were impressive when compared to the standard WinCC OPC server. A report of the findings is available and can be provided on

C# COM issue : "the application has called an interface that was marshalled for a different thread”

Hello people. I bled a little on something, so I thought I might share and save you some pain: When calling code in a com class (for example, when using an external dll written in some other language (vb, for example), the implicit threading can be an issue) VB by default uses STA threading (Single thread apartment), which loosely means that the application runs in one thread. If you use the above class in C#, which by default uses MTA (Multi thread Apartment), You get an error : “the application has called an interface that was marshalled for a different thread” . SO: When you use such a dll in c#, you need to add the [STAThread] directive above your main program.cs file as follows: namespace MYIDXApp {   class TimeServer   {     [STAThread]     static void Main(string[] args)     {     }   } } Furthermore: There is a “feature” in c# that even though you specify that the main thread runs under STAThread, any timer events happen as MTAThread. Thus, for a timer event, you must launch a

Scheduling the printing of an Excel file which has an add-in from the command line using visual basic scripting (vbs) via wscript

On a recent project I was required to print out an Excel based report which made extensive use of OSIsoft PI DataLink's Excel Add-in on a sechduled basis (7am daily). Unfortunately Excel does not easily allow for the printing of an Excel file via the command line via switches or parameters when calling Excel.exe (e.g. C:\Windows\MS Office\Excel.exe -print "C:\Reports\My Report.xls"). I was able to find examples on the Internet which made use of cscript or wscript where one calls VBS code, and where one provides the file name as argument, for example: wscript "C:\Data\My Scripts\printXLS.vbs" "C:\Data\My Reports\Daily Analyser Excursion Report.xls" Note the convention of using "" around full path filenames as they contain spaces. The file printXLS.vbs would contain something akin to the following code: Dim XLApp Dim XLWkbk Dim ObjArgs set ObjArgs = wscript.arguments if ObjArgs.count <> 1 then wscript.echo "Invalid passed arguments&

Handling Late Data

Image
Handling "Late Data" into a historian can be tricky when that data changes over time. For example, we have a situation where material arrives in a truck on a weighbridge for processing. A sample is taken and sent to a laboratory for composition analysis but in order that the process can continue without waiting for the lab results, estimates are made and stored in the historian for temporary use. After some time, once analysis has taken place, the actual values then replace the initial values (and the temporary historian entries for that timestamp must be updated) so that more accurate calculations on the given data can be performed. This back-tracking and synchronisation of historical data and more have been incorporated into our IDX Listener technology to allow for efficient handling of these 'late data' into a historian. Download PPT Show

Profibus PA for Hazardous Areas

Image
Presentation and Paper by Michael Bean on the use of Profibus PA for Hazardous applications. Profibus PA was designed as a solution for automation in Process Applications where it is often necessary to guarantee levels of safety with regard to potentially explosive atmospheres. In this paper and presentation given at the Hazardous Areas Conference held at Gallagher Estate in 2008 I discuss Profibus PA's applicability to such applications. The presentation raised quite a bit of interest as various parties debated their companies' acceptance of the FISCO . Many were surprised at the advantages offered by the "high-powered trunk" concept. Download Paper Download Presentation Slides

Profibus Diagnostics

Image
I often have people asking for a copy of my slides from a Profibus Diagnostics Seminar that we gave at the Eskom convention centre last year. I got the last slot of the day so I ended up speaking to only 40 people or so. If you missed it you can have a look at the slides here. Download Profibus DP Diagnostics Presentation

ProfiTrace Version 2.4 Released

Image
Download ProfiTrace v2.4 * *If you are registered you can, just fill in your email address and leave the other fields blank. ProfiTrace Version 2.4 contains 7 languages and includes bug fixes and lots of improvements like the amazing oscilloscope trigger for level and framing errors, reports in different languages, Vista 64 bit support, multiple ProfiCores running on a PC, etc.

Welcome to the IDX Blog

Hi and Welcome from the team at Industrial Data Xchange to the IDX Blog! We are a company of industrial data communication consultants and in the weeks and months that follow we will be posting information about our activities, product updates as well as interesting information about the world of industrial data connectivity. We believe that as the nerve centre of any industrial production process, the data communication systems employed can 'make or break' an enterprise. We are excited at the prospects of publishing useful and interesting insites that help the world of industry become even more productive and gain greater control over the plethera of systems that make them tick!