tag:blogger.com,1999:blog-14098428296141722562008-05-13T14:19:43.768-07:00Inductive Automationsurferbnoreply@blogger.comBlogger40125tag:blogger.com,1999:blog-1409842829614172256.post-37341572389522183062008-05-12T10:23:00.000-07:002008-05-12T14:09:54.595-07:00Displaying Alarm Activity StatusHi, my name is Bobby and I am a part of the tech support team at Inductive Automation. I'm going to be using this blog to post some ideas and tricks for FactoryPMI and FactorySQL that you may not have thought of. If it gets the wheels spinning and you want some more info, feel free to jump into our forums (<a href="http://www.inductiveautomation.com/forum">www.inductiveautomation.com/forum</a>) or email me (rmckenzie AT inductiveautomation DOT com).<br /><br />Displaying alarm activity status:<br /><br />I have dealt with this problem a few time times. It's important to understand the way alerts work in FactoryPMI and FactorySQL if you want to do anything other than the basic alarm screen. It's also important to note that the Inductive Automation Demo project already contains components using this, so you can always check that out to see the finished product.<br /><br />Your database will contain two tables that hold all the information about the alarms. Do not modify either of these unless you REALLY know what you are doing, but feel free to look at them to set up your select queries. These tables are usually named something like alarm_status and alarm_log, but they could be renamed to anything (to check the names, go to the FactorySQL Frontend -> Settings -> Alert Settings in the menu options). For this trick, we will just be looking at the status table, and the important column here is current_state_id. This is the column that tells you what state each alarm is in, and we want to know if there is one or more alarms that are currently active.<br /><br />To write an SQL query to get this info, you use something like:<br />SELECT COUNT(*)<br />FROM alarm_status<br />WHERE current_state_id != 0<br />This will count the number of rows that contain active alarms (if current_stats_id is zero, then the alarm is not active). Just put this into a dynamic property on your text label and bind the visibility to true if this property is greater than zero.<br /><br />There is a lot more you can do here, with different colors indicating more alarms or more severe alarms, display the number of active alarms, or filter out specific groups of alarms, to name a few. You can even do these on a per-project or per-area basis using the point_path or group_name and group_folder columns. Don't forget to give your label a mouseClicked event to switch to your alarm screen!<br /><br /><br />Robert McKenzie<br />Inductive AutomationRobert McKenziehttp://www.blogger.com/profile/00903944404934507331noreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-25521379550730688072008-04-17T04:22:00.000-07:002008-04-17T04:24:49.389-07:00Success Story: Bronco Wine Company<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_hsWThc1UE9o/SAczcu4YhGI/AAAAAAAAKC4/XXUe5zAIlww/s1600-h/FranziaSunsetBlush5LTR.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp3.blogger.com/_hsWThc1UE9o/SAczcu4YhGI/AAAAAAAAKC4/XXUe5zAIlww/s200/FranziaSunsetBlush5LTR.jpg" alt="" id="BLOGGER_PHOTO_ID_5190173664281658466" border="0" /></a><i>"Efficiencies have improved upwards of 30%, productivity targets are hit every day." - Paul Franzia</i><br /><br />Bronco Wine Company, Ceres, CA (the producer of "Two-buck Chuck") uses FactoryPMI for enterprise-wide process monitoring, control, and troubleshooting. It was a business decision to use this technology, and is paying off handsomely for the Franzia family-owned business.<br /><br /><a href="http://www.inductiveautomation.com/company/casestudies/BroncoCaseStudy.pdf">Click here to read the entire success story</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-48537524217016572072008-04-17T04:19:00.000-07:002008-04-17T04:22:27.170-07:00Inductive Automation Introduces Online Video Library<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_hsWThc1UE9o/SAcy3e4YhFI/AAAAAAAAKCw/KaPVv1l921U/s1600-h/movie.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_hsWThc1UE9o/SAcy3e4YhFI/AAAAAAAAKCw/KaPVv1l921U/s200/movie.jpg" alt="" id="BLOGGER_PHOTO_ID_5190173024331531346" border="0" /></a>Inductive Automation is pleased to announce the introduction of a new online video library, available starting April 10, 2008. The library features sets of training videos geared to a specific part of Inductive Automation's software. Access to the library is free and available at <a href="http://www.inductiveautomation.com/support/videos/">http://www.inductiveautomation.com/support/videos/</a>.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-22288773681189399762008-04-17T04:11:00.000-07:002008-04-17T04:19:35.456-07:00Inductive Automation attends 2008 North American Interop Conference; Receives 'Self-Tested' certification<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_hsWThc1UE9o/SAcxre4YhDI/AAAAAAAAKCg/t8U2p-9I6go/s1600-h/OPC+Self-Tested+Logo+%28color%29-Small.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 82px; height: 112px;" src="http://bp2.blogger.com/_hsWThc1UE9o/SAcxre4YhDI/AAAAAAAAKCg/t8U2p-9I6go/s200/OPC+Self-Tested+Logo+%28color%29-Small.jpg" alt="" id="BLOGGER_PHOTO_ID_5190171718661473330" border="0" /></a>Inductive Automation is pleased to announce that for the third year in a row FactorySQL was successfully tested at the OPC Foundation's North American Interoperability Conference. FactorySQL was successfully tested with a large range of industry leading OPC servers, and once again received the OPC Foundation's "Self-Tested" certification.<br /><br />This year's server field included over 40 products from MatrikonOPC, Kepware, Cogent Realtime Systems, Siemens, Software Toolbox, Wonderware and more. Each server was tested for compatibility with the OPC specification, and operation with FactorySQL. Additionally, FactorySQL once again passed the OPC "Self-Tested" certification test, which is conducted by OPC officials and tests for compliance with the specification and best-practice guidelines.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_hsWThc1UE9o/SAcyB-4YhEI/AAAAAAAAKCo/DeZWaBNET1I/s1600-h/factorysql.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_hsWThc1UE9o/SAcyB-4YhEI/AAAAAAAAKCo/DeZWaBNET1I/s200/factorysql.gif" alt="" id="BLOGGER_PHOTO_ID_5190172105208529986" border="0" /></a>FactorySQL is a full featured, bi-directional OPC to SQL databridge, providing historical logging, realtime status and control, and more. The OPC foundation is a collective of over 300 top-name companies dedicated to ensuring interoperability in automation by creating and maintaining open specifications for communication. Since the first specification was published in 1996, OPC has become the de-facto standard in the field. Through OPC, FactorySQL is able to effortlessly link nearly all industrial devices with any standard database system.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-57538747141960761662008-03-09T17:43:00.000-07:002008-03-09T18:21:00.035-07:00FactoryPMI and FactorySQL Benchmark Whitepaper Summary<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_hsWThc1UE9o/R9SMf4sstyI/AAAAAAAAHWA/qBMGe4sL-no/s1600-h/check.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp1.blogger.com/_hsWThc1UE9o/R9SMf4sstyI/AAAAAAAAHWA/qBMGe4sL-no/s200/check.jpg" alt="" id="BLOGGER_PHOTO_ID_5175916351179241250" border="0" /></a>Ever wondered how many clients you could <i>really</i> run with FactoryPMI's unlimited client licensing? How about the maximum tag throughput of SQLTags on a MySQL database? Inductive Automation has published a whitepaper detailing the results of rigorous performance tests on its products, FactoryPMI<sup><small>TM</small></sup> and FactorySQL<sup><small>TM</small></sup>. These benchmarks will answer these questions and more.<br /><br />You can download the benchmarks here <a href="http://www.inductiveautomation.com/products/whitepapers/IABenchmarkWhitepaper2008.pdf">http://www.inductiveautomation.com/products/whitepapers/IABenchmarkWhitepaper2008.pdf</a>.<br /><br />For those of you who do not have the time to wade through 14 pages of technical benchmark methodology and results, here is the executive summary. The benchmarks are divided up into two major tests. The first test monitored the FactoryPMI Gateway under high concurrent load count to determine how many clients FactoryPMI can support at a time. The test was run on large and small servers, and with large and small projects. With a small server, you can expect to run between 70-100 clients at a time, depending on the size of your project. With a large server, those clients counts go up to 150+. Within these ranges, you can expect tags to update at their proper rates, and expect sub-second write-to-readback round-trip times. Note that these projects were using pure-SQLTags for data display.<br /><br />The second test involved the SQLTags throughput between FactorySQL and various databases. We found that MySQL with the MyISAM data engine and Microsoft SQL Server gave the best performance. We frequently hear the question: <i>"How many tags can I have"</i>. It turns out, the real question should be: <i>"How many tags can I have changing per second"</i>. This is because a tag's presence in the system doesn't dramatically affect performance unless it is changing. So, systems with upwards of 250,000 tags are feasible, as long as only a small percentage of them are actively changing every second. This benchmark found that the tag throughput for a low-end server or high-end desktop computer, ranges between 2,500, and 13,000 tag changes per second. The factors that contribute to this are wide spread are explained in detail in the whitepaper.<br /><br /><b>Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-83519403974562514602008-03-09T17:40:00.001-07:002008-03-09T18:23:48.974-07:00MatrikonOPC Tunneller Now Bundled with FactorySQL<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_hsWThc1UE9o/R9SNa4sstzI/AAAAAAAAHWI/RzVo5COA5io/s1600-h/matrikon_logo.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 140px; height: 31px;" src="http://bp1.blogger.com/_hsWThc1UE9o/R9SNa4sstzI/AAAAAAAAHWI/RzVo5COA5io/s200/matrikon_logo.jpg" alt="" id="BLOGGER_PHOTO_ID_5175917364791523122" border="0" /></a>Inductive Automation is pleased to announce that MatrikonOPC's popular OPC Tunneller is now included as an optional installation in their unified installer system. The OPC Tunneller is the perfect companion to FactorySQL, and allows users to easily overcome DCOM headaches to create efficient, seamlessly networked OPC solutions.<br /><br />Security and configuration problems associated with DCOM have long made even the simplest remote OPC configurations a hassle. MatrikonOPC Tunneller provides the perfect answer, translating local COM based OPC calls into standard network traffic. Furthermore, it provides a range of additional features such data encryption, compression, and aggregation making it the perfect choice for someone looking to collect data from one or more remote sources. Configuration is minimal, allowing users to get up and running extremely quickly.<br /><br />FactorySQL is an industry leading OPC to SQL databridge. It provides bi-directional synchronization, historical logging, e-mail alert notifications, and much more. When paired with the MatrikonOPC Tunneler, within minutes users could have data being retrieved from any number of remote sources and available in their corporate database. There truly isn't a more cost effective, powerful way to retrieve and monitor remote data.<br /><br />For more information on FactorySQL or the MatrikonOPC Tunneller, contact Inductive Automation at (800) 266-7798.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-78072110630635714382008-03-09T17:38:00.000-07:002008-03-09T17:39:22.930-07:00End-User Highlight: Metaldyne<a href="http://www.metaldyne.com/" target="_blank"><img src="http://www.inductiveautomation.com/files/article_images/logoMetaldyne.gif" border="0" align="right" valign="top"></a>This month we interviewed Michael Young, the Lead Process Engineering Technician for Metaldyne, a leading global designer and supplier of powertrain and chassis products for the automotive industry.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What do you use Inductive Automation software for in your company or facility?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: We are monitoring our process for machine status, alarm history, downtime and OEE calculations. We can now view this anytime and in real time from unlimited clients through intranet or VPN.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Why did you choose Inductive Automation software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: It is the most versatile I have seen yet, and if you are imaginative, the Inductive Automation technical support staff can help you figure out how to turn those dreams into reality.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What features have you found most useful to your specific process?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: I have found out, while learning to use them, that all of the tools such as SQL syntax, scripting, Jython and expression language give you tremendous options and flexibility.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How has the introduction of SQL affected your development and implementation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: I am still learning it, but without it some things just are not possible without a lot of extra work.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What have you found to be the main benefits of the software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: The flexibility of it and after getting better at it, the freedom of it.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How do you plan on using IA software in the future?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: All that I can, because there is no limit to the type of information that I can save and store in the database. This makes it a great tool for all of us involved in the project.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Is there anything else you can say regarding your experience with Inductive Automation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Michael</span>: They are in California, but we won?t hold it against them.<br /><br />Screenshots:<br /><br /><img src="http://www.inductiveautomation.com/files/article_images/metaldyne_1.jpg" border="0"><br /><img src="http://www.inductiveautomation.com/files/article_images/metaldyne_2.jpg" border="0"><br /><img src="http://www.inductiveautomation.com/files/article_images/metaldyne_3.jpg" border="0">surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-9166464299831409022008-03-09T17:34:00.000-07:002008-03-09T17:37:16.790-07:00Integrator Highlight: eGenietech Software Services<a href="http://www.egenietech.com/" target="_blank"><img src="http://www.inductiveautomation.com/files/article_images/egen.jpg" border="0" align="right" valign="top"></a>This month we interviewed Vipul Shah, MES Division Head, of eGenietech Software Services about his experience with Inductive Automation software.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Tell us a bit about your company - do you have a focus on any particular industry?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: eGenietech is a software solutions provider in the area of IT for manufacturing. Since we have a good domain experience in the Process Automation Domain, our focus area has been providing solutions in the area of MES and Plant to Enterprise Integration.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Why did you choose Inductive Automation software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: For quite a long time we have been using custom software development for providing solutions to our client. But as the scope and complexity of the projects started increasing we started thinking of a product based approach to reduce the implementation time and maintenance cost. We evaluated a number of products for process data logging and finally chose FactorySQL because of its flexibility, configuration capabilities and its cost advantage due to support for unlimited tags. Another factor was we got very fast response during product evaluation which increased our confidence in Inductive Automation.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What system features do your customers need that you can provide using FactorySQL and FactoryPMI?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: Most of the customers and our projects demand flexibility in configuration, openness to third party integration and extensibility. I feel both FactorySQL and FactoryPMI meet these requirements.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What have you and your customers found to be the main benefits of the software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: Our project involved providing a solution for metals industry, where we needed to seamlessly integrate an Oracle Based Production Management and Scheduling System and RSView Scada and provide a bidirectional transfer of process data among these two systems. Additionally the customer needed extensive data reporting and analysis.<br />The most important benefit we found was that we could deploy the project in a relatively short time with all the IT friendly features of FactorySQL and also could easily incorporate new requirements given by the customer during actual implementation at the customer site.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How do you plan on using IA software in the future?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: Though we were initially a bit wary of using third party products in our projects, and of a vendor who is separated from us by a 12 hour time zone, based on our initial success of using IA products we have decided to aggressively propose solutions to our clients around their products.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Is there anything else you can say regarding your experience with Inductive Automation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Vipul</span>: The best experience was the fast turn around time both from the sales and support side. The most important thing was we didn't actually require much support during actual implementation and that is very credible. Other good thing is the continuous information on new ways to exploit the products that we get through the newsletters. In view of all this we foresee a long term relationship with IA and wish them luck to create new innovations in their products.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-38924244556370282852008-03-09T17:29:00.000-07:002008-03-09T17:33:30.981-07:00How To: Use Click to Graph with FactoryPMI Easy ChartThis article demonstrates how to install and use Click to Graph, a powerful way to add and remove pens from FactoryPMI's Easy Chart Component in runtime. Click to Graph allows you to add a right click menu to components, such as led displays, labels, numeric labels, etc, to add or remove that item from an Easy Chart graph dynamically. You can even save graphs and come back to them at later times. This way you choose what you want to see in a graph. Please read the instructions carefully and perform them in order.<br /><br /><span class="style11">Installing Click to Graph</span><br /><hr size="1" color="#999999" style="padding:0"><br /><div style="padding-top:5px;padding-left:0px;"><br /><span class="style11">Step 1: Download Click to Graph File</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) Click on the following link to download the zip file:<br /><div style="padding-top:5px;padding-left:20px;"><a href="http://www.inductiveautomation.com/downloads/products/?goodie=18">Click to Graph Goodie</a><br /></div><br />2) Extract the contents of the <span class="style7">ctg.zip</span> to a folder. This file contains 5 files:<br /><div style="padding-left:30px;"><br /><span class="style7">ctg.sql</span> - a MySQL backup file containing all the necessary tables<br /><span class="style7">ctg.py</span> - a python script that contains all the necessary functions<br /><span class="style7">ctg.fpal</span> - a custom palette that contains a few sample components<br /><span class="style7">ctg.fwin</span> - a file that contains all the necessary FactoryPMI windows<br /><span class="style7">ctg_shutdown_script.txt</span> - a file that contains the shutdown script needed<br /></div><br /></div><br /><span class="style11">Step 2: Import MySQL Dump File</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) Open up Command Prompt by going to <span class="style7">Start->Program Files->Accessories->Command Prompt</span><br />2) Change directory to MySQL bin by entering in (afterwards press enter):<br /><div style="padding-top:5px;padding-left:20px;"><span class="style7">cd "C:\Program Files\MySQL\MySQL Server 5.0\bin"</span><br /></div><br />3) Now import <span class="style7">ctg.sql</span> by entering in (afterwards press enter):<br /><div style="padding-top:5px;padding-left:20px;"><span class="style7">mysql -u root -p YourDBName < "C:\Location to\ctg.sql"</span><br /></div><br />4) Enter in your MySQL root password (afterwards press enter)<br />5) Done. The Click to Graph tables are now successfully imported.<br /></div><br /><span class="style11">Step 3: Import FactoryPMI Script Module</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) Open up the FactoryPMI Gateway Configuration page from: <span class="style7">Start->Program Files->Inductive Automation->FactoryPMI->Configuration Page</span><br />2) Open up the FactoryPMI Designer by clicking on the <span class="style7">Launch Designer</span> link. Login with your username and password (default is <span class="style7">admin</span> and <span class="style7">password</span>). Select the project you want to use Click to Graph in.<br />3) Once open, go to <span class="style7">Project->Script Modules</span> from the menu bar.<br />4) Click on the <span class="style7">Import a package or script</span> button.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_script.jpg" /><br /></div><br />5) Select the <span class="style7">ctg.py</span> file.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/select_py.jpg" /><br /></div><br />6) Name the module <span class="style7">ctg</span>.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/module_name.jpg" /><br /></div><br />7) Done, you now have some global functions that we are going to use later. Press Ok to close.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_py_done.jpg" /><br /></div><br /></div><br /><span class="style11">Step 4: Import FactoryPMI Palette</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) With the designer still open, right click on the <span class="style7">Component Palette</span> and select <span class="style7">Import Palette(s)</span>.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_palette.jpg" /><br /></div><br />2) Select the <span class="style7">ctg.fpal</span> file.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/select_fpal.jpg" /><br /></div><br />7) Done, you now have some pre-configured components for Click to Graph that we can use.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_fpal.jpg" /><br /></div><br /></div><br /><span class="style11">Step 5: Import FactoryPMI Windows</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) With the designer still open, right click inside the <span class="style7">Project Browser</span> and select <span class="style7">Import Window(s)</span>.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_fwin.jpg" /><br /></div><br />2) Select the <span class="style7">ctg.fwin</span> file.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/select_fwin.jpg" /><br /></div><br />7) Done, you now have some pre-configured windows for Click to Graph that we can use.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/import_fwin_done.jpg" /><br /></div><br />8) Lastly, you need to add the global shutdown script. Go to <span class="style7">Project->Global Event Scripts</span>. Next select the <span class="style7">Shutdown</span> tab and enter in the contents of the <span class="style7">ctg_shutdown_script.txt</span>. The script clears out the current graph when the user logs out or closes the client.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/shutdownscript.jpg" /><br /></div><br /></div><br />All done! Now let's go over how Click to Graph works.<br /></div><br /><span class="style11">How Click to Graph Works</span><br /><hr size="1" color="#999999" style="padding:0"><br /><div style="padding-top:7px"><br />The first part to understand is that Click to Graph stores pen configurations in the database. During the runtime each user picks and chooses from these pens. Picking and choosing these pens manipulates the <span class="style7">ctg_active_client</span> table. This table then drives the Easy Chart's pens/axes datasets dynamically. The ctg_active_client table is based on a unique Client ID created by FactoryPMI when you login to a client. This ID uniquely identifies one client from another. This way each client can have its own set of pens the user can configure. If that ID is somehow lost (possible via redirection), the user must log in again to access the graph.<br />Let's take a look at the databases tables needed for Click to Graph to work (there are 4 of them):<br /><br /><div style="padding-left:20px;"><br /><span class="style7">ctg_pens</span> - table stores all possible pens for the graph.<br /><span class="style7">ctg_axes</span> - table stores all the available axes for the pens.<br /><span class="style7">ctg_saved_pens</span> - table stores the saved graphs.<br /><span class="style7">ctg_active_client</span> - table stores all the pens the clients have selected.<br /></div><br />The <span class="style7">ctg_pens</span> table can be manipulated using the <span class="style7">CTG_Pen_Edit</span> window that we imported into our FactoryPMI project earlier. Here you can add/edit/remove pens. These pens correspond to tag or item that FactorySQL (or another historian) is already trending. Attached to a pen is a <span class="style7">Point ID</span>, which uniquely identifies one pen from another. Every FactoryPMI component that we want to use as a Click to Graph item must also contain the Point ID, so that it knows how to add or remove that specific pen. Let's go over a small example to get started.<br />Next, the actual Easy Chart, located on the <span class="style7">CTG_Graph</span> window, has two expert properties called <span class="style7">pens</span> and <span class="style7">axes</span> which are both bound to a SQL query. The pens dataset is bound to a join of the <span class="style7">ctg_active_client</span> table and the <span class="style7">ctg_pens</span> table. The axes dataset is bound to the <span class="style7">ctg_axes</span> table.<br />Let's go over a small example to understand how everything relates.<br /><span class="style11">Example 1: Using a Click to Graph Component</span><br /><div style="padding-left:20px;padding-top:10px"><br />1) Open up the FactoryPMI Designer.<br />2) Open up or create a window.<br />3) From the Component Palette under <span class="style7">CTG Palette</span>, drag and drop the <span class="style7">Multi-State Indicator</span> pre-configured component into the window.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/drag_ind.jpg" /><br /></div><br />4) You will notice there is a <span class="style7">Dynamic Property</span> called <span class="style7">PointID</span> attached to the component with a value of <span class="style7">HOA</span>. This Point ID must match the Point ID of a pen in the <span class="style7">ctg_pens</span> table.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/pointid.jpg" /><br /></div><br />5) Now, let's take a look at the <span class="style7">Mouse Pressed and Released actions</span> on this component. This is where the right click menu is called. So, right click on the component and select <span class="style7">Configure Actions..</span>.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/action.jpg" /><br /></div><br />6) You will notice the script is the same for the mousePressed and mouseReleased. They both call a global script function that we imported earlier into the Script Modules. We pass the <span class="style7">event</span> object into the showPopup function and it knows how to retrieve the Point ID from the component. The function also takes care of creating the popup menu.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/mouseaction.jpg" /><br /></div><br />7) Now, cancel out of the action configuration and go into Preview mode in the designer by selecting <span class="style7">Project->Preview mode</span> from the menu. Now we can interact with the components. Right click on the indicator and you will get the following menu:<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/menu.jpg" /><br /></div><br />8) That's it! You can click <span class="style7">(+) Add to Graph</span> to add that pen to the current working graph. If the pen does not exist in the <span class="style7">ctg_pens</span> table the script will create one automatically with the default settings. After that, you can remove the pen and event clear out the current graph.<br />9) To see the current graph open up the <span class="style7">CTG_Graph</span> window.<br /><div style="padding-left:0px;"><br /><img src="http://www.inductiveautomation.com/files/article_images/clicktograph/graph.jpg" /><br /></div><br /></div><br /><span class="style11">How to add Click to Graph to already existing components</span><br /><hr size="1" color="#999999" style="padding:0"><br />So, if you would like to add Click to Graph to already existing components do the following:<br />1) Right click on the component and select <span class="style7">Component Customizers->Dynamic Properties</span> and add a new property named <span class="style7">PointID</span> of type <span class="style7">String</span>.<br />2) Lastly, add the following script in the <span class="style7">mousePressed</span> and <span class="style7">mouseReleased</span> actions by right clicking on the component and selecting <span class="style7">Configure Actions..</span>:<br /><div style="padding-left:30px;"><br /><span class="style7">if event.button != event.BUTTON1:<br /> app.ctg.showPopup(event)</span><br /></div><br /></div><br /><br />Have fun with this goodie and as always if you have any questions please call us at 800.266.7798.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-40945483087839117642008-03-09T17:21:00.000-07:002008-03-09T17:29:40.261-07:00FactoryPMI Adds Linux Support<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.inductiveautomation.com/lib/getImage.php?id=2&type=ui"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 58px; height: 80px;" src="http://www.inductiveautomation.com/lib/getImage.php?id=2&type=ui" alt="" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_hsWThc1UE9o/R9SANIsstxI/AAAAAAAAHV4/iPcCtjsquh8/s1600-h/linux.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 72px; height: 80px;" src="http://bp2.blogger.com/_hsWThc1UE9o/R9SANIsstxI/AAAAAAAAHV4/iPcCtjsquh8/s200/linux.jpg" alt="" id="BLOGGER_PHOTO_ID_5175902834917160722" border="0" /></a>Inductive Automation is proud to announce that as of version 3.1.5, FactoryPMI<sup><small>TM</small></sup> supports running on Linux/Unix operating systems. This groundbreaking change will be welcomed by many of our customers, especially international customers, who are running Linux on the plant floor. In an industry so dominated by Microsoft-dependent technologies, Inductive Automation's move towards platform-independence is a breath of fresh air.<br /><br />FactoryPMI is an innovative, full-featured industrial data visualization and control product. It can be coupled with FactorySQL or other database-aware industrial tools to create robust SCADA systems. Additionally, its flat-fee server based licensing model, including unlimited tags, screens, and runtime clients, makes it the most cost-effective solution on the market.<br /><br />FactoryPMI is written in Java, which is renowned for its ability to run on multiple platforms. While our FactoryPMI HMI/SCADA <i>clients</i> have always supported running on multiple platforms, including Linux and MacOSX, the ability to run the FactoryPMI <i>Gateway</i> on Linux is new. Those who know our software architecture will ask, "What about FactorySQL?" As you might have suspected, FactorySQL is tied to Microsoft Windows because of the OPC standard's reliance on DCOM, a Windows technology. However, many of our customers are using FactoryPMI by itself and have their own data-bridge that brings in their industrial data to their database. For now, these customers are the main benefactors of FactoryPMI's platform independence. In the future, Inductive Automation is committed to providing more platform independent solutions.<br /><br />To download FactoryPMI for Linux, visit our downloads page at <a href="http://www.inductiveautomation.com/downloads">http://www.inductiveautomation.com/downloads</a>. There you'll find the tarball for Linux. Inside is a README document that describes how to get the FactoryPMI Gateway up and running.<br /><br /><b>Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-46719157533637146732008-03-09T17:09:00.000-07:002008-03-09T17:38:05.804-07:00End-User Highlight: Hancock Lumber<a href="http://www.hancocklumber.com" target="_blank"><img src="http://www.inductiveautomation.com/files/article_images/hancock.gif" border="0" align="right" valign="top"></a>This month we interviewed Kevin Murphy of Hancock Lumber about his experience with Inductive Automation software.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What do you use Inductive Automation software for in your company or facility?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: We use all three components (Factory SQL, Factory PMI and the Reporting Plug-In) to centrally monitor multiple PLCs at three sawmills located throughout the state of Maine. The collected data is presented in a dashboard-like environment for use by sawmill managers to improve their processes by evaluating correlations between downtime events and process outputs.<br />The flexibility of the software has allowed us to customize both data collection points and interfaces so that we can gather exactly the data that is relevant to our processes.<br />At the beginning of January, 2008, we added a second FactorySQL/PMI data collection server in our Bethel, Maine facility for use in controlling our upgraded wood-fired boiler. Factory PMI with SQL tags made it exceptionally easy for us to custom develop a control panel to meet the needs of our environment in a cost- and time-efficient manner.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Why did you choose Inductive Automation software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: Our primary reason for selecting Inductive Automation was its lower cost compared to competing products. In addition, the ability to install the software and run it in a meaningful way before purchasing it was key to our decision-making process. During our evaluation process, Inductive Automation's engineering staff made themselves available to us to answer many technical questions, long before we bought the software. Having a working model of what FactoryPMI could do for us with our data in it made it very easy for us to get Management approval to purchase the software. <br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What features have you found most useful to your specific process?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: The ability of the software to speak to any database, as well as to any OPC server, has been a big plus to us. In addition, the ability to publish any FactoryPMI solution on any desktop, without the need for additional licensing has made it very easy for us to roll out the solutions in our environment.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How has the introduction of SQLTags affected your development and implementation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: SQLTags made it possible for us to produce the screens for our recent boiler project in a fraction of the time it would have taken in past versions. Since this project was on a very tight timeline, the ability to produce the necessary controls quickly was a huge advantage to us. <br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What have you found to be the main benefits of the software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: The initial benefit to us was in the ease of deploying our solutions. When a user requests access to the dashboard, all we have to do is send them a link with logon information, and they have all the access they need.<br /><br />As we have gotten deeper into the software, we are finding many more ways to utilize the controls features that the FactoryPMI interface offers. We have been able to accomplish several small controls projects quickly and inexpensively simply by building the interfaces through FactoryPMI.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How do you plan on using IA software in the future?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: We look forward to establishing additional servers for data collection at several other points of control throughout our network. We are exploring the possibility of using Inductive Automation tools to update and automate one of our oldest mill facilities.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Is there anything else you can say regarding your experience with Inductive Automation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Kevin</span>: Our experience with support from Inductive Automation has been very, very good. When we called with issues printing from the Reporting plugin, the IA staff worked to replicate the issues we were having so they could help us resolve the issue. We are also tracking other issues within our environment for which IA technical staff have been invaluable resources. In short, Inductive Automation has provided us with excellent service throughout our entire experience with their software.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-54190360209254044152008-01-18T19:57:00.000-08:002008-01-18T20:03:21.542-08:00Redundancy On The Cheap: How to use two servers, FactoryPMI, FactorySQL, and MySQL to make a mission critical HMI/SCADA application.SACRAMENTO, CA </span> - <center><b>Introduction</b></center><br />FactoryPMI and FactorySQL have long supported clustering and redundancy, respectively. But their database-centric architecture always left the question: What about the database? A true clustered database solution, like Microsoft SQL Server Clustering or Oracle 11g RAC works great, but can take 4+ extra servers and tens of thousands of dollars worth of software. This whitepaper describes how to set up redundancy on the cheap, using 2 servers and MySQL.<br /><br />First disclaimer: The solution provided here works well, but you do give up some of the reliability that you'd get with a true clustering solution. If you can afford it, go with a true clustered database. They are great and are built for exactly what you're doing. That said; we understand that budgets aren't infinite, and sometimes you have to do more with less. In that case, read on.<br /><br />Second disclaimer: The solution here isn't rocket science, but it does demand that the user has a solid grasp on our products, databases, and networking. After all, rocket science probably isn't that difficult if you're a rocket scientist. If you start thinking this might be beyond your technical capability, <i>skip to the bottom</i> where we provide a much simpler solution that very well might be "good enough" for many users.<br /><br /><center><b>The Basics</b></center><br />This guide is going to be using some advanced features of FactorySQL, FactoryPMI, and MySQL that you may not be familiar with. Let's go over some of these features first.<br /><br /><b>FactorySQL Redundancy.</b> FactorySQL Redundancy is a feature that lets two or more FactorySQL services running on different physical machines cooperate, so that if the primary instance goes down due to a machine crash or software fault, one of the secondary instances will take over. FactorySQL uses a common database connection to share project configuration data, as well as monitor who is the currently running master instance.<br /><br /><b>FactoryPMI Clustering.</b> FactoryPMI Clustering is a feature that lets two or more FactoryPMI Gateway instances running on different physical machines share configuration data and split client load evenly across all running instances, with dynamic client failover. FactoryPMI Clustering uses UDP communication over the local subnet for all clustering communication.<br /><br /><b>Aggregate Connections / Failover Connections.</b> In FactorySQL, you can create an <i>aggregate connection</i> to a database. This special connection type uses two other database connections to create a single one. If the primary connection goes down, the secondary connection will be used instead. In FactoryPMI, you can specify a <i>failover connection</i> for any datasource connection. In a similar fashion, if that datasource connection fails, the failover connection will be used instead. These two features are very important to the technique presented in this guide, because they let FactorySQL and FactoryPMI use two separate databases as one, which is how we simulate a clustered database.<br /><br /><b>MySQL Replication.</b> MySQL Replication is a feature of MySQL that lets you specify one database as a master and one as a slave. All changes that are made to the master will be replicated over the network to the slave. Setting up MySQL replication is out of the scope of this guide, but was covered in an earlier article, available <a href='http://www.inductiveautomation.comcompany/articles/?id=1'>here</a>. <br /><br /><center><b>The Architecture</b></center><br />The basic idea is to set up MySQL <i>replication</i> for realtime data (status and control), and FactorySQL <i>datacaching</i> for historical data. When both servers are up, history will be logged to the master database, and realtime status and control will go through the master database. In the event that the master server goes down, history will be <i>cached</i> by the secondary server's FactorySQL, and realtime status and control will be routed through the secondary database. When the master server is brought back up, the secondary FactorySQL will put all cached history into the master database. So, during the failure, history will be unavailable, but status and control will work.<br /><br /><div style="float: center;"><center><a href="/files/article_images/rotc_slide1.png"><img border="0" alt="Figure 1: Redundant Architecture Overview" width="473" height="521" src="http://www.inductiveautomation.com/files/article_images/rotc_slide1.png"></a><br /><b>Figure 1: Redundant Architecture Overview</b> (click to zoom)</center></div><br /><br />Figure 1 is a diagram of the architecture this guide is describing. You'll see a "master" and "slave" server. Each server has the full "stack" of software on it, that is: an OPC Server, FactorySQL, a database (MySQL), and FactoryPMI. Don't let the picture frighten you, it's not as bad as it looks. Notice that there is a lot of symmetry here: Both instances of FactorySQL actually have the exact same connections, and the same goes for both of the FactoryPMI Gateways. Let's go over the configuration for each piece of the software stack.<br /><br />First, we have the OPC server. Both OPC servers will be connected to your devices (PLCs, RTUs, etc). They don't need to be specifically set up for "redundancy", but they do need to be configured in the same manner, so that they have access to the same tags, etc.<br /><br />Before we go over FactorySQL, let's look at the database. Notice that there are two separate <i>schemas</i>: one for historical data, and one for realtime data. Separating the data into two schemas lets us use different connections for each schema. The master database has both schemas, but the slave server only has the realtime schema. You need to set up MySQL replication to replicate the realtime schema from the master to the slave. Again, see this article for detailed instructions on <a href='http://www.inductiveautomation.comcompany/articles/?id=1'>setting up MySQL replication </a>. <br /><br />The FactorySQL configuration will be identical on both the master and the slave. The crux of the configuration here is in the Data Connection Settings. You'll need the following connections:<br /><ul><li>HistoryConnection: Connection to the master's historical schema. Native or DSN connection. Ensure that Data Caching is enabled in the Service Settings.</li><br /><li>MasterRealtime: Connection to the master's realtime schema. Native or DSN connection.</li><br /><li>SlaveRealtime: Connection to the slave's realtime schema. Native or DSN connection.</li><br /><li>RealtimeConnection: Aggregate connection with MasterRealtime as the primary connection, and SlaveRealtime<br />as the secondary connection. Failover mode should be set to "Use secondary until primary is available"</li></ul><br />Ensure that SQLTags is enabled and using the RealtimeConnection (unless you aren't using SQLTags). Enable redundancy, and set it to use the RealtimeConnection. Note that FactorySQL redundancy makes your project configuration shared implicitly across your master and slave, but the settings themselves need to be configured individually.<br /><br />FactoryPMI configuration is fairly simple. You'll want to configure your master, and when it is all configured, you'll join your slave into the master's cluster. The configuration, again, mostly has to do with the datasource connections. You'll need the following connections:<br /><ul><li>HistoryConnection: A connection to the master's historical schema.</li><br /><li>SlaveRealtime: A connection to the slave's realtime schema.</li><br /><li>MasterRealtime: A connection to the master's realtime schema, with the SlaveRealtime set as the "Failover Datasource".</li></ul><br /><br />In your project, make sure to use the HistoryConnection for all historical queries (e.g. charts, tables, reports etc. Use the MasterRealtime for all realtime information (e.g. SQLTags). To cluster your two FactoryPMI Gateways together, first set the Cluster Name of the master server to something intelligible, such as "FPMICluster". Then set the slave's Cluster Name to the same name. Ensure that you don't have any software firewalls such as Windows Firewall enabled, and that multicast UDP traffic on a single port can pass between the two Gateways.<br /><br /><center><b>How It Works</b></center><br />Now that you have your master and slave configured, let's take a look at how it will work in the event of a failure. First, look at Figure 2, which shows the path data takes when both servers are running. Notice that realtime and historical data go through the master database, and the FactoryPMI Gateways share the client load. Data flow is shown in the thick green lines. All other connections are not being used.<br /><br /><div style="float: center;"><center><a href="/files/article_images/rotc_slide2.png"><img border="0" alt="Figure 2: Normal Data Flow" width="473" height="521" src="http://www.inductiveautomation.com/files/article_images/rotc_slide2.png"></a><br /><b>Figure 2: Normal Data Flow</b> (click to zoom)</center></div><br /><br />Now let's look at the data flow in the event that the master server has crashed in Figure 3. Again, the active data paths are shown in thick green. Notice that the realtime data is going through the slave's realtime schema, FactorySQL is caching the historical data, and the FactoryPMI clients have all switched to the FactoryPMI Gateway instance running on the slave.<br /> <br /><div style="float: center;"><center><a href="/files/article_images/rotc_slide3.png"><img border="0" alt="Figure 3: Master Crashed Data Flow" width="473" height="521" src="http://www.inductiveautomation.com/files/article_images/rotc_slide3.png"></a><br /><b>Figure 3: Master Crashed Data Flow</b> (click to zoom)</center></div><br /><br /><center><b>Conclusion and a Simpler Alternative</b></center><br />There you have it, with some clever partitioning of connections and some MySQL replication, you can create a mission critical HMI/SCADA system that logs seamless history, and never loses control of your application. Of course, there are details to work out, such as backup schemes for your history in case the master server crash cannot be recovered from, but such things can be put in place fairly easily. If you are going to put a system like this in place, we recommend two additional things: purchase the commercial version of MySQL (it is fairly inexpensive) so that you can receive support from them, and <i>practice</i>. Disaster recovery plans and redundant software can be quite complex. If you're serious about a highly available SCADA system, make sure that you regularly practice simulated outages to ensure that everything goes smoothly.<br /><br />Last but not least, we have promised a simpler alternative, in case this all seems too complex. The alternative is: Have a <i>cold</i>-standby server ready and waiting. Purchase a USB licensing dongle from us (so that you can simply swap the FactoryPMI and FactorySQL license in a physical form), and in the event of a failure, turn on the secondary server and give it the IP address that your master server used to have. Yes, you'll probably be down for 5 to 10 minutes, and you will lose the history during that period, but you'll be able to explain how it works in one sentence. The only tricky part to this is to make sure that your secondary server's project files stay up to date. This can be achieved reliably through well-known procedural guidelines, or through automatic ghosting.<br /><br />As always, if you'd like to speak to one of our engineers to discuss any of these architectures, or have some new ideas that we haven't thought of, please give us a call at 1-800-266-7798.<br /><br /><b>Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-66123009751976598302008-01-18T19:55:00.000-08:002008-01-18T23:02:42.565-08:00Feature Highlight: FactoryPMI Retargeting Creates Seamless SCADA Across Multiple PlantsSACRAMENTO, CA </span> - The ability to web-launch unlimited, free HMI/SCADA clients anywhere on a corporate network is almost universally everyone's favorite feature of FactoryPMI<sup><small>TM</small></sup>. As an added bonus, these days it is commonplace to have a corporate network that spans multiple physical plants, whether they are across town or across the country. With corporate networks like this, a manager at the Austin, TX plant could open up the HMI system for the Atlanta, GA facility to monitor line performance, or check inventory levels. Scenarios like this is where retargeting comes in.<br /><br />FactoryPMI's <i>retargeting</i> feature lets you take advantage of existing corporate networks to create a completely seamless HMI/SCADA system across physical locations, while retaining local functionality at each location in the event that any inter-facility WAN connection were to go down. This feature is so simple that using it takes a single line of script. Suppose you had a FactoryPMI project called "Line A" located in Austin, TX, and another FactoryPMI project in Atlanta, CA called "Line B". If you wanted to add a button to your Line A project to retarget to the Line B project, all you?d have to do was write the following line of script:<br /><p style="padding-left:20px;background-color:#EEEEEE;font-family:monospace;">fpmi.system.retarget(<span style="color:#3333FF;">"Line B"</span>, <span style="color:#3333FF;">"10.0.28.224"</span>)</p>That's it! All you need is the name of the project, and the IP Address of the remote FactoryPMI Gateway. This feature is almost too simple ? most of our users overlook it. Those who have discovered it have used it to create some of the most advanced seamless global SCADA systems in the world. Note that your current authentication credentials will be passed onto the new server when you retarget, which should make for a seamless user experience if you're using Microsoft Active Directory<sup><small>TM</small></sup> authentication. If not, you'll be asked to log into the new project with a valid username. That's all there is to this feature. As additional inspiration, here is a screen capture from a project that uses retargeting to create an interactive facility map:<br /><br /><img src="http://www.inductiveautomation.com/files/article_images/retargeting.gif"><br /><br /><b>Inductive Automation</b><BR/><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-8211070125682645932008-01-18T19:52:00.000-08:002008-01-18T19:55:07.452-08:00Inductive Automation Releases FactoryPMITM 3.1 and FactorySQLTM 4.1SACRAMENTO, CA DECEMBER 11, 2007</span> - Inductive Automation is proud to release FactoryPMI<sup>TM</sup> Version 3.1 and FactorySQL<sup>TM</sup> Version 4.1. The main features of this release are SSL support for enhanced security over public networks, Java 6 support for easier deployment, and a new Historical Group in FactorySQL for easier data logging.<br /><br /><b>FactoryPMI<sup>TM</sup> 3.1</b><br />SSL, or Secure Sockets Layer, is the industry standard encryption protocol for HTTP communication. This is the same technology that protects your sensitive financial information as you interact with your bank or purchase merchandise with a credit card online. FactoryPMI 3.1 natively supports SSL encryption for both its web-based server configuration and its web-launched HMI/SCADA clients. This technology is a natural fit with FactoryPMI, as its deployment and communication are completely web-centric. While most of our customers deploy their HMI/SCADA applications on their private int<b>ra</b>net, we are getting more and more interest in deploying FactoryPMI's web-launched clients over the public int<b>er</b>net. Interest in this technology ranges from simple internet-based deployment of a global SCADA system, to new hosted SCADA business models that only FactoryPMI's innovative web-launched clients can support. We are proud to be able to support applications that need the utmost level of security with SSL encryption in FactoryPMI 3.1.<br /><br />FactoryPMI 3.1 has a host of other features as well. It is now compatible with the Java<sup>TM</sup> Platform version 6, and still backwards compatible with Java version 5. Our popular SQLTags technology now supports the Oracle<sup>TM</sup> database, as well as the PostgreSQL database. We now support licensing through hardware USB-dongles as an alternative to our software CD-Key based licensing. This is useful for customers who want a cold-standby server, because they know they can transfer their license by simply moving a USB-dongle. Last but certainly not least is the new <i>Standalone Mode</i> option for the FactoryPMI Gateway. This option lets FactoryPMI launch clients on multi-homed servers (computers that are on two or more networks), or over port-forward situations with no extra network setup, as long as the Gateway is not part of a load balancing cluster. Combine all of these features with a host of smaller improvements and bug fixes, and you have an upgrade that you don't want to miss. The full changelog can be found under the Support section of our website.<br /><br /><b>FactorySQL<sup>TM</sup> 4.1</b><br />For years, the workhorse of FactorySQL has been its standard "Group". This unit of configuration can morph from a historical logger, real-time status and control synchronizer, downtime tracker, recipe manager, etc. With the introduction of SQLTags much of this can now be accomplished easily and quickly inside of FactoryPMI, leaving only the need to configure history in FactorySQL. Therefore, in this version we have added a new easy to configure historical group. By stripping the options of the standard Group down to only what is used in historical logging, the Historical Group couldn't be simpler to use. Our famous install-to-SQL-logging time of under 5 minutes is now even shorter, with an even flatter learning curve.<br><br />Additionally, version 4.1 boasts improved support for OPC properties such as Quality, Timestamp and item path in all group types, making it extremely quick and simple to log these properties for each tag.<br /><br />FactorySQL 4.1 also provides support 64-bit Windows<sup>TM</sup>, USB-dongle licensing, and Oracle<sup>TM</sup> and PostgreSQL<sup>TM</sup> databases in SQLTags.<br /><br /><b>About Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.<br /><br /><b>Contact</b><br />Jim Meisler<br />(800) 266-7798 x227<br /><a href="mailto:jmeisler@inductiveautomation.com">jmeisler@inductiveautomation.com</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-74816688687407688932008-01-18T19:50:00.000-08:002008-01-18T19:51:55.418-08:00How To: Use SQLTags Scan ClassesSACRAMENTO, CA DECEMBER 11, 2007</span> - Whenever we release a large set of new features, it’s always interesting to watch how those features are received and utilized by our users. Most users prefer to “click and discover” vs. “read the manual”, and apparently the scan class button is too inconspicuous. This article aims to shed some light on scan classes and offer some tips about their advanced features.<br /><br /><b>What is a Scan Class?</b><br />A scan class defines how frequently FactorySQL will receive updates from the OPC server. The default scan class for SQLTags (appropriately named <i>"Default"</i>) is set up for 5 seconds. This means that any tags in this scan class will update at most every 5 seconds. We say “at most”, because if the tag didn’t change in the PLC, then the SQLTag won’t update, of course. This is pretty slow, and we invite users to feel free to modify the default scan class. Without further ado, let’s see how to modify scan class settings.<br /><br/><center><img src="http://www.inductiveautomation.com/files/article_images/scanclasses/sc_1.png"></center><br/><br />First, select the SQLTags provider you wish to work with. Then, press the “Edit Scan Classes… button to bring up the Scan Class Editor window.<br /><br/><center><img src="http://www.inductiveautomation.com/files/article_images/scanclasses/sc_2.png"></center><br/><br />Here you can see all of the options for a scan class. When you change any of these options, all tags assigned to that scan class will immediately be running with the new settings. Scan classes provide a very convenient way to centrally manage the polling options for groups of tags.<br /><br /><b>Scan Class Modes</b><br />There are three modes that a scan class can run in. The most common mode is <b>Direct mode</b>. In this mode, the scan class always runs at a constant <b>Rate</b> (the <b>Low Rate</b>), which is the amount of time in milliseconds between updates. All modes of scan classes also have a <b>Stale Timeout</b>, which is the amount of time (in milliseconds) that can elapse after a scheduled update before the tags in that scan class are considered <i>Stale</i>. (If you aren’t already familiar with them, see the user manual’s discussion of <a href="http://www.inductiveautomation.com/products/factorypmi/usermanual/source/Designer/sqltagsoverlays.htm">SQLTags quality codes here</a>)<br /><br />Most users will only ever use <b>Direct</b> scan classes. It will often make sense to have more than one scan class. For example, suppose you have some control points that you want very quick updates on, perhaps to show feedback of a momentary button or some similar control device. Maybe you have other data that doesn’t need such quick updates. You could have a scan class named “Fast” that was set to update every 500 or 250 milliseconds, and another scan class named “Normal” that was updating every 1250 milliseconds. This way, the system knows to expend more resources updating those crucial tags quickly, but isn’t bothered by the bulk of the tags that don’t need such a fast update rate.<br /><br />There are two other scan class modes besides <b>Direct</b> mode. They are <b>Driven</b> and <b>Leased</b> modes. A Driven scan class will toggle between a <b>High Rate</b> and a <b>Low Rate</b>, based upon the value of some other tag. This can be useful for tags that need very fast updates only when some condition is true. For instance, the values of an oven may need very fast update rates, but only when the oven is on. To set up a driven scan class, set up a tag that will represent the condition that drives the rate of your driven scan class. The only “gotcha” here is that the tag that <i>drives</i> your scan class cannot be <i>in</i> that driven scan class. Other than that, setting up a driven scan class is quite easy<br /><br />The last kind of scan class mode is the <b>Leased</b> mode. A leased scan class also toggles between a <b>High Rate</b> and a <b>Low Rate</b>. Whenever there is any active <i>subscription</i> for a tag in a leased scan class, the scan class will run at its high rate. If nothing has a tag from the scan class subscribed, it will run at the low rate. This is like an on-demand system. When a FactoryPMI window is opened that has bindings for tags in a leased scan class, the scan class will start running at its high rate. When all windows that deal with that scan class are closed, it will run at its low rate. If the low rate is zero, that scan class is essentially disabled or turned off. This mode is useful when bandwidth is expensive, such as a satellite connection, or any time when you don’t want the PLC to be polled unless there is a need.<br /><br /><b>Conclusion</b><br />As you can see, scan classes offer the designer a great deal of flexibility when creating HMI/SCADA applications with FactorySQL and FactoryPMI. While the <b>Direct</b> scan class will suffice for the majority of users, we’ve seen some motivating examples of advanced situations where <b>Driven</b> and <b>Leased</b> scan classes can be useful. If after reading this article, you realize that you’d like to fine tune your scan class settings, but you’ve already created a few tens of thousands of tags, don’t worry! It is easy to bulk-modify tags to modify which scan class they are assigned to. Simply select multiple tags and only edit their scan class property. Even better, use the <b>Tag Search</b> button to quickly find and sort through your tags so that re-assigning their scan classes is a snap.<br /><br /><b>About Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.<br /><br /><b>Contact</b><br />Jim Meisler<br />(800) 266-7798 x227<br /><a href="mailto:jmeisler@inductiveautomation.com">jmeisler@inductiveautomation.com</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-15255978954905725482008-01-18T19:49:00.000-08:002008-01-18T19:50:27.579-08:00Integrator Highlight: MCS IntegrationsSACRAMENTO, CA DECEMBER 11, 2007</span> - <a href="http://www.mcsintegrations.com" target="_blank"><img src="http://www.inductiveautomation.com/lib/getImage.php?id=27171&type=int" border="0" align="right" valign="top"></a>This month we interviewed Pat Callaghan of MCS Integrations about his experience with Inductive Automation software in the field of water/wastewater.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Tell us a bit about your company - do you have a focus on any particular industry?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Pat</span>: MCS Integrations is a systems integrator working primary in the Water/Wastewater Treatment industry. We create control systems used in the treatment and distribution of drinking water and the processing of wastewater.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Why did you choose Inductive Automation software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Pat</span>: We were looking for a web based SCADA application. Some of our customers require access to their SCADA application through the Internet. This has been possible in the past but we were looking for a product that better accomplishes this. The more we started working with IA’s software the more pleased we were with it. <br /><br />To start FactoryPMI is a web launched application running in a Java environment. This gives us two benefits: 1) we do not have to install software on every client that needs to access the application this is handled automatically by FactoryPMI and 2) since the visualization part is processed on the client’s hardware this allows for the server to be smaller saving on overall system cost. Note that it is possible to run IA’s software as a standalone application, a central server is not required, but most of our customers have multiple clients accessing the system in which case a central server makes the most sense.<br /><br />IA software has superior database support. We don’t have to create some crypt procedure in order to have the SCADA application access a database, all we need to do is write a simple SQL statement. IA’s software was created with database access in mind, not as some add-on.<br /><br />Licensing, what could be easier? Whether you want 100 tags or 50,000 tags, whether you have 1 client or 100 clients, it’s all the same cost. In the past we would have to determine how many tags the system would need and how many clients would need to access the system in order to determine the cost of licensing; now it’s just one simple price. Plus there’s no separate cost for runtime licenses and development licenses, they are both part of the licensing.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What have you and your customers found to be the main benefits of the software?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Pat</span>: As an integrator the main benefit that IA’s software offers is freedom. We are able to create the application as we see fit. We can create the database (data storage) as we see fit, this allows us to optimize the application based on each customer’s needs. The development can be as simple as drag-and-drop to complex scripting, this allows us to create an applications look and feel to exact customer requirements. The inclusion of Python in FactoryPMI gives us access to a real programming language which allows us to create some complex applications; we no longer have to say ‘We can’t do that with this software’.<br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>How do you plan on using IA software in the future?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Pat</span>: One of our customers is so pleased with the visualization part of the system that we are getting ready to incorporate record keeping into the system. Operators will enter data such as daily tests and chemical usage into the system. Once the data is in the system operators will be able to pull up charts and trends showing this data instead of having to fumble through paper and excel spreadsheets. <br /><br /><span style="color:#336699;font-weight:bold">IA</span>: <b>Is there anything else you can say regarding your experience with Inductive Automation?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Pat</span>: Great tech support. I can’t say enough about the tech support team you guys have, they are top notch. IA is a company that listens to customers recommendations for improvements to the software and actually implements them.<br /><br />Here is a screenshot from one of his FactoryPMI projects:<br /><img src="http://www.inductiveautomation.com/files/article_images/mcshmi.jpg">surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-32826788304643860542008-01-18T19:47:00.000-08:002008-01-18T19:49:20.025-08:00Inductive Automation Revolutionizes SCADA Application Development with SQLTags™ TechnologySACRAMENTO, CA OCTOBER 12, 2007</span> - <span class="style11">SQLTags™ Technology</span><br /><br />Powered by OPC, SQLTags technology turns any SQL database into a high-performance industrial tag database. Modern databases, like Microsoft SQL Server, Oracle, and MySQL, have storage and performance characteristics that make them ideal for use in industrial applications, and are easy for IT departments to support.<br /><br />The database-centric architecture of FactoryPMI and FactorySQL has long let designers create data-rich SCADA and MES systems with features like downtime and efficiency tracking, recipe and batch management, trending, and PDF reporting. Now with SQLTags, HMI functions like realtime status and control are accomplished with drag and drop ease, letting users benefit from the power of a database-centric architecture without the complexity.<br /><table border="0" cellspacing="0" cellpadding="0" width="90%" align="center"><br /><tr><td><i>"SQLTags is a significant breakthrough in distributed SCADA technology,"</i> said Steve Hechtman, Inductive Automation's president. <i>"In my 22 years experience as a systems integrator, I’ve never encountered a platform that so naturally crosses over between industrial controls and enterprise management."</i><br /></td></tr></table><br /><span class="style11">FactoryPMI™ 3.0 and FactorySQL™ 4.0</span><br />FactoryPMI is a full-featured, database-powered HMI/SCADA system with unlimited clients and data points. Its innovative web-launched rich clients make deployment and management a breeze. IT departments enthusiastically endorse its standards-based approach including Java clients, open SQL database connectivity, web based management, and integrated Microsoft Active Directory authentication. Its highly modular architecture enables systems ranging from redundant enterprise-wide SCADA systems to plant-floor touch-panel machine control.<br /><br />FactorySQL is the easiest, most effective way to bridge the gap between PLCs and standard database systems. It is an OPC powered industrial data bridge that leverages existing IT infrastructures. Drag and drop configuration for both data logging and bi-directional control delivers easy connectivity with industrial devices. Advanced features like alerting, triggers, and stored procedure support make FactorySQL the data bridge of choice in a variety of industries worldwide.<br /><br />FactoryPMI 3.0 and FactorySQL 4.0 are completely backwards compatible. A free evaluation is available for download at: <a href="http://www.inductiveautomation.com/downloads">http://www.inductiveautomation.com/downloads</a>. <br /><br />Get a feel for FactoryPMI’s web-launched rich clients by running our public demo, available at: <a href="http://www.inductiveautomation.com/demo">http://www.inductiveautomation.com/demo</a>. <br /><br />For a 10 - 15 minute live web demonstration sign up at <a href="http://www.inductiveautomation.com/webdemo">http://www.inductiveautomation.com/webdemo</a> or call us at (800) 266-7798,<br /><br /><span class="style11">About Inductive Automation</span><br /><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.<br /><br /><span class="style11">Contact</span><br />Jim Meisler<br />(800) 266-7798 x227<br /><a href="mailto:jmeisler@inductiveautomation.com">jmeisler@inductiveautomation.com</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-84165511117182414842008-01-18T19:45:00.000-08:002008-03-09T18:17:36.634-07:00ISA Expo 2007 a Great SuccessSACRAMENTO, CA OCTOBER 12, 2007</span> - For the second year in a row, Inductive Automation attended the ISA Expo, an international showcase of the latest in automation and industrial technologies. We are pleased to announce that this year's show was a great success, and would like to thank everyone who came by our booth.<br /><br />The highlight of this year's show was the release of FactorySQL 4.0 and FactoryPMI 3.0, introducing SQLTags technology. The release was formally announced with a press release on Wednesday morning, and demoed throughout the week at Inductive Automation's booth. Visitors were surprised by the ease-of-use of SQLTags, and the overall simplicity and power of Inductive Automation's software. <br /><br />The “Turn the Corner” theme of this year's booth was also a great success, and the message of being frustrated by tag, screen, and client licensing restrictions resonated well with visitors. The backdrop scene, depicting two industrial users standing on a street corner with “will work for tags” and “will work for clients” signs, elicited many knowing chuckles and expressions of agreement. The scene provided a good entry way into a conversation as to how Inductive Automation could help users “Turn the Corner” to the future of HMI/SCADA software.<br /><br />As part of ISA's “Cruising for Solutions” contest, Inductive Automation was able to interact with thousands of attendees throughout the week. We enjoyed the opportunity to talk to so many representatives from a wide array of companies and industries, and to demonstrate our software. <br /><br />Many visitors to our booth were surprised to learn what Inductive Automation had to offer them. The following are a few “Frequently Asked Questions” that we received.<br /><br />ISA 2007 Top 5 Most Frequently Asked Question:<br /><br /><b>5) What do you do?</b><br />Simply put, we make a revolutionary web-launched HMI/SCADA system. “Web-launched” meaning that it's launched off of any web browser, but runs as a fully interactive application. All data goes through standard SQL databases, which means it's open, accessible, and IT friendly. Our OPC to SQL bi-directional data bridge does the rest of the work to the device.<br /><br /><b>4) Why does the world need another HMI?</b><br /><br />The fact is, there's a huge market of customers who simply aren't happy with what they have and what they currently see in the market. We had many people approach with this question, and almost all of them left convinced that there is a better way to do SCADA- the Inductive Automation way.<br /><br /><b>3) It's really a fixed price?</b><br />It is! We don't charge extra for more tags, screens or clients. Our solution is about getting things done- if you need another client, simply go launch one. Want some more information on a screen? Fire up the designer and add it. You simply don't have to pay extra to do more. Oh, and one more thing: our prices are fully visible for all to see. We're not afraid to show what it costs.<br /><br /><b>2) Can it connect to ??? (device/database)</b><br />Simple answer- YES. We connect to any database that supports ODBC, and have native connectors for every major system. All device communications are performed through OPC, which means we can communicate with any device that has an OPC server- essentially every device made.<br /><br /><b>1) Will you stamp my card?</b><br />It's true, many people came by simply looking for stamps in the “Cruising for Solutions” game. However, we were genuinely surprised as to how many people stayed around to talk to us about their experiences with SCADA software, and to learn about what we have to offer. <br /><br /><b>About Inductive Automation</b><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.<br /><br /><b>Contact</b><br />Jim Meisler<br />(800) 266-7798 x227<br /><a href="mailto:jmeisler@inductiveautomation.com">jmeisler@inductiveautomation.com</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-44147846008934928182008-01-18T19:43:00.000-08:002008-01-18T19:45:34.050-08:00How to use Indirect Tag Binding for Rapid DevelopmentSACRAMENTO, CA OCTOBER 12, 2007</span> - Indirect tag binding is a type of <i>data binding</i> available in FactoryPMI 3.0. It allows the designer to bind a component’s property to any number of tags using one or more layers of indirection. This lets one create <i>templated</i> components and <i>parameterized</i> windows. A templated component is a component or group of components whose data bindings are relative to some properties of the component. A parameterized window is similar, the difference being that the entire window’s contents are relative to a parameter that is passed into the window when it is opened. Indirect tag binding makes creating these components and windows a snap. All you need to do is bind to a tag, and then choose the part of the tag path that changes, replacing it with a value from a property in the window.<br /><br />To demonstrate indirect tag binding, suppose we had a tank farm with four tanks. Each tank has some properties, like level and temperature. Each tank also has an outlet pump, that can be controlled from the screen and has amperage associated with it. Here is how the tag structure would look in the SQLTags browser:<br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/tagbrowser.png"></center><br />Our goal with indirection is to bind to tag paths like:<br><br /><center><code>[]TankX/PumpAmps</code></center><br><br />... where the <code>"X"</code> is replaced with 1-4. Let’s say we wanted all 4 tanks on the same screen. In this case we’ll set up a templated component, or rather, group of components. Put all the components you want to represent 1 tank in a container, like so:<br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/simple_tanks.png"></center><br />These components were created simply by dragging the tags represented into the container. The pump is an image whose <b>tint color</b> is bound to the pump mode tag. To turn this container into a templated component, simply add an integer <b>dynamic property</b> to the container called <code>"TankNum"</code>, and set its value to 1. Now modify each of the data bindings on the components’ properties from a direct tag binding like this:<br /><br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/binding_before.png"></center><br />... to an indirect tag binding like this:<br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/binding_after.png"></center><br />To create this indirect tag binding, first browse for the tag: <code>"Tank1/Level."</code> Then, remove the <code>"1"</code> in <code>"Tank1"</code>, and browse for your <code>"TankNum"</code> dynamic property. That’s it – your binding is now indirect, and will point to whichever tank is indicated by the value of <code>"TankNum"</code>. Now all you need to do is copy and paste this container 4 times and change the value of <code>TankNum</code> appropriately, to create a screen like this:<br /><br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/4tanks.png"></center><br /><br />Creating a parameterized window is just as easy. The only trick is that the dynamic property <code>"TankNum"</code> that controls the indirection for the bindings needs to be placed on the popup window’s Root Container. This lets you create a popup window like this:<br /><center><img src="http://www.inductiveautomation.com/files/article_images/indirecttag/tankpopup.png"></center><br />Whenever you open this window, simply send it a value of 1 through 4 by passing the <code>"TankNum"</code> parameter in the navigation action. In this way, one popup window can be used for a number of devices.<br /><br /><b>About Inductive Automation</b><br /><br />Inductive Automation pioneered the first full-featured web-launched HMI/SCADA system in the world. Its standards based, database-centric architecture receives accolades from plant managers, IT managers, and system integrators worldwide. With a commitment to software quality and technical support second to none, Inductive Automation is at the forefront of industrial software.<br /><br /><b>Contact</b><br />Jim Meisler<br />(800) 266-7798 x227<br /><a href="mailto:jmeisler@inductiveautomation.com">jmeisler@inductiveautomation.com</a>surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-80138503044225936202008-01-18T19:37:00.000-08:002008-01-18T19:43:07.993-08:00SQLTags Guide for existing FactorySQL and FactoryPMI UsersSACRAMENTO, CA SEPTEMBER 25, 2007</span> - <b>SQLTags™: A Guide for Existing FactorySQL™ and FactoryPMI™ Users</b><br /><br />SQLTags represents a significant change in architecture for FactorySQL and FactoryPMI. While our core architecture of web-launched clients and database-centric data storage hasn’t changed, the techniques used for configuring status and control screens have changed greatly. This guide is meant as a primer for existing users of FactorySQL and FactoryPMI. It will explain the design rationale of SQLTags, introduce the new features, and to provide some motivation for why it might be in your best interest to upgrade your existing system.<br /><br /><b>The Basics</b><br /><br />SQLTags is an underlying technology in FactoryPMI 3.0 and FactorySQL 4.0. These versions are completely backwards compatible. SQLTags works by creating a high-performance tag database inside your existing database. It does this by creating new tables that both FactorySQL and FactoryPMI will use. Because both FactorySQL and FactoryPMI “understand” how these tables work, you (the designer) no longer need to be concerned about writing SQL queries to interface with your data. Rather, you simply deal with “tags”. In essence, we’ve more tightly coupled communication between FactoryPMI and FactorySQL, but all data is still in the database so that we don’t lose any of the much-loved flexibility, scalability, and simplicity of our database-centric architecture.<br /><br />It is important to note, however, that SQLTags currently only deals with real-time status and control data. All history, downtime tracking, etc is accomplished in the same manner as before. There are future plans for a historical addition to SQLTags.<br /><br /><b>Design Rationale</b><ol><li><u>Ease-of-Use</u>. We wanted to decrease the learning curve for using our software for basic HMI-type screens. Specifically, we wanted a new designer to be able to set up a status and control screen without leaving the FactoryPMI Designer, and without writing a single SQL query.</li><br /><li><u>Status Feedback</u>. Our existing status and control architecture was highly de-coupled. It was so de-coupled, in fact, that status information was typically lost without expending extra design effort to capture it. For instance, if a write failed to OPC, the operator wouldn’t know about it. If the PLC was unplugged, the operator wouldn’t know that the numbers s/he was looking at shouldn’t be trusted. SQLTags completely fixes this.</li><br /><li><u>Scalability</u>. Our existing architecture involved polling simple SQL queries to retrieve real-time status information. This didn’t scale very well, because each concurrent client was running its own queries. This put a large strain on the database as more clients were launched. While there was a nice technique to mitigate this problem, it wasn’t immediately obvious. SQLTags improves scalability dramatically.</li></ol><br /><br /><b>How You Use Tags</b><ol>SQLTags introduces a new panel to the FactoryPMI Designer: the SQLTags Tree Browser. This panel gives you access to all the tags in your system. In addition to the tags stored in your database, you also have client tags and system tags. There are actually 4 different types of tags:<li><u>OPC Tags</u>. These tags are stored in the database, and driven by FactorySQL from an OPC server.</li><br /><li><u>DB Tags</u>. These tags are also stored in the database, but aren’t attached to OPC. They can simply be values accessible by all clients, can be calculated via an expression, or be the results of a SQL query.</li><br /><li><u>Client Tags</u>. These tags are stored in your FactoryPMI project itself. Each client will have its own copy of these tags.</li><br /><li><u>System Tags</u>. These tags are available to each client and provide client-specific system information, such as the currently logged-in username, system time, etc.</li></ol><br /><br />Tags are addressed by their path, which looks like this:<br /><b>[MyDB]EastSection/TankFarm/Tank15.value</b><br />The first part, in square brackets <b>[MyDB]</b>, is called the <i>source</i>. Typically this will be the name of your datasource connection, or simply blank to use the project’s default datasource. The next part is the path to the tag with forward slashes as folder delimiters. Lastly, one of the tags properties is referenced (in this case, “Value”). If no property is present, <i>Value</i> is assumed. Tags have lots of properties, such as Value, Quality, Documentation, EngUnits, etc. See the documentation for a full list.<br /><br />Tags are used in your FactoryPMI projects via the familiar property-binding paradigm. Just like you are used to binding properties to expressions or SQL queries, you can now bind properties to tag values. You can bind to most properties of a tag. You can also use tags in expressions and SQL query bindings.<br /><br />Even better, you can simply drag a tag and drop it onto a component. Depending on the component and the type of the tag, appropriate property bindings will be added. Or, if you drop a tag onto a container, it will prompt you to create an appropriate component to display that tag. Lastly, you can drag a tag onto a property, which will add a binding to that property.<br /><br /><b>The Overlay System</b><br />Each tag has a quality. There are many different qualities defined (see the documentation), but some common ones are:<br /><ul><li><b>OPC_BAD_DATA</b>: OPC is reporting that the data is bad, probably due to communication issues with the PLC</li><br /><li><b>GOOD_DATA</b>: The tag is working well</li><br /><li><b>STALE</b>: The value is stale. Either FactoryPMI isn’t fetching the value because you’ve turned the datasource communication off, or FactorySQL isn’t running.</li><br /><li><b>CONFIG_ERROR</b>: Something is wrong with the configuration of the tag.</li></ul><br /><br />New with SQLTags is a status overlay system. Each component in FactoryPMI will calculate its quality based on the worst quality of any tag bindings configured on it. If the quality is anything but GOOD_DATA, you’ll get a noticeable visual overlay on top of the component. This is a crucial part of SQLTags – with no extra effort, you get reliable status indication on every component on your screen.<br /><br /><b>OPC Browsing</b><br />With SQLTags, you can create a new tag manually by pressing the “New Tag” button on the SQLTags Browser Panel’s toolbar. Even better, though, you can now browse your OPC servers from the Designer! Simply open the OPC browsing panel and your FactorySQL instance will be listed. From there you can browse the OPC servers that are available. Drag OPC items into the SQLTags tree to create OPC tags based on those items.<br /><br /><b>Writing to Tags / New Control Buttons</b><br /><br />Writing to tags is very simple – simply check the “bidirectional” checkbox on your tag binding. This is applicable for bindings on properties that change as the user interacts with a component, such as a numeric input field. There are also 3 new control buttons in this release that are made specifically to work with SQLTags:<ol><li>One-Shot Button. This button writes a value to a tag, and then waits for the value to be reset by the PLC.</li><br /><li>Two-State Toggle: This button is great for tags that toggle between two values (such as 0 and 1). It will display differently based on the current state, and is configurable with the Styles feature.</li><br /><li>Multi-State Button: This button is really a series of buttons. Each button represents a value of a multi-state tag. For instance, 1=Hand, 0=Off, 2=Auto. The states and how they are displayed are configurable via the button’s Customizer. </li></ol><br />All 3 of these buttons can be configured simply by dropping the appropriate tag onto them.<br /><br /><b>Scalability</b><br />As mentioned before, SQLTags is a highly scalable system. The load to the database, which has until now been variable with the number of clients, is now fixed. The Gateway handles all SQLTags polling activities irrespective of how many clients are running. Clients then poll the Gateway, which is highly optimized to handle a large number of concurrent clients.<br /><br />As of this writing, we hadn’t performed formal benchmarks yet, but preliminary benchmarks look promising. A quick in-office test with FactorySQL, FactoryPMI, and an un-tuned MySQL database running on a desktop machine served 93 clients running a load test application that handled over 35 tag changes per second with under 50% CPU utilization.<br /><br /><b>Touchscreen Components</b><br />All input components are touchscreen-enabled by default now. No more need to handle touchscreen events with mouse scripts anymore. Don’t worry, this was done in a backwards-compatible manner – your old scripts won’t step on the toes of the new automatic system.<br /><br /><b>Conclusion</b><br />SQLTags completely obsoletes the “old way” of implementing status and control. Using SQLTags, one can implement a more scalable, more reliable status and control screen in much less time compared to FactoryPMI 2.0. The good news for existing users is that it is backwards compatible, but also easy to convert. If you want to convert your existing status and control screens, all you need to do is drag your OPC items into the SQLTags tree, and drop the appropriate tags on top of your existing status and control components. Want to see more? Call us for a personalized web-demo.surferbnoreply@blogger.comtag:blogger.com,1999:blog-1409842829614172256.post-23332129361876096852008-01-18T19:36:00.000-08:002008-01-18T19:37:31.654-08:00End-User Highlight: Helix Water DistrictSACRAMENTO, CA SEPTEMBER 7, 2007</span> - This month we interviewed Henry Palechek, an Engineer of Helix Water District, about his experience with Inductive Automation software.<br /><br /><a href="http://www.hwd.com" target="_blank"><img src="http://www.inductiveautomation.com/files/article_images/helix_logo.jpg" border="0" align="right" valign="top"></a>Located in La Mesa California, Helix Water District is a progressive industry leader, providing high quality water, through an efficient and reliable system. Their innovative and dedicated employees and Board members maximize human and technological resources, providing superior service to their customers.<br /><span style="color:#336699;font-weight:bold">IA</span>: <b>What do you use Inductive Automation software for in your company or facility?</b><br /><br /><span style="color:#3E693B;font-weight:bold">Henry Palechek</span>: There is a requirement under the EPA's Surface Water Treatment Rule (SWTR) that process data be stored every 15 minutes. In the past this was done using the existing SCADA system. The SCADA system used