Databases: The perfect complement to PLCs

Tuesday Apr 27

Databases: The perfect complement to PLCs

If you’re concerned about pulling historical data for regulatory purposes, add a relational database to your PLC

Most control engineers have tackled PLCs and can program them with one hand tied behind their backs. So what’s the next logical challenge? According to Inductive Automation President Steve Hechtman, “Think SQL and relational databases (RDBs). You’d be amazed at the similarity,” he says. “It’s the next logical progression“.  You might ask how it is they’re even related. For one thing, RDBs can be [like] an extension of PLC memory,” says Hechtman. Live values can be mirrored in RDBs bi-directionally. Historical values and events can be recorded there as well. But operators and managers can interact with them too. “Over the last six years I’ve delved heavily into SQL and learned a lot about relational databases. I’ve discovered that working with SQL is remarkably similar to working with PLCs and ladder logic,” adds Hechtman.

SQL has four basic commands and about a hundred different modifiers that can be applied to each in various ways to achieve all types of results. Hechtman provides an example: Imagine effluent from a wastewater plant with its flow, pH and other things being monitored and logged. That’s what you typically see. But now associate these with other things: discrete lab results, the name of the persons who did the lab work, the lab equipment IDs and calibration expiration dates, who was on shift at the time and the shift just prior, their certification levels, what chemicals where added and when, who the chemical suppliers were, how long the chemicals sat before use and so forth. All of this becomes relational data, meaning that if it’s arranged properly in tables, users can run SQL queries to obtain all types of interesting results. The queries might provide insight into the most likely conditions that could result in an improper discharge so it can be prevented in the future.

“SQL is a high level language that isn’t very hard to learn, and you can be very clever with it,” adds Hechtman. He prefers to think of it as a natural extension of his PLC programming skills. SQL can be used to obtain or extract the history of a machine for the period it has been operating, and that history can be stored in a relational database. Furthermore, RDBs and SQL pull people and processes together. Machines don’t run alone. They’re merely part of a containing process, and that process was devised by people. SQL and relational databases form the bridge to integrate processes, machinery and people.

Hechtman doesn’t believe a commercial-off-the-shelf (COTS ) software package can fit an application any more than a COTS palletizer program can fit into different food processors’ applications. Every machine is different and every business process is different. That’s where SQL comes in. It has to duplicate or augment existing process flows, and these are intimately connected to the machinery.

To get started, Hechtman suggests picking up a “Dummies” type book. Then download and install the open-source MySQL database server along with the MySQL administrator and query browser. It only takes a few minutes to install, and then engineers can begin to experiment. “You can read about a LEFT JOIN or INNER JOIN, but typing one in and observing the results is worth about 1,000 words,” says Hechtman

Source: www.foodengineeringmag.com – April 2010

news & press index

 

Hayden's Bakeries to create 150 new jobs

Resurrected seafood plant to create 70 jobs

New Forest Ice Cream factory to create 30 new jobs

Uncertainty abound as Hain Celestial explores 'synergies'

Warburtons to invest £25M in new bakery site

£1.2m government boost for St Merryn Meats

Plant of the Year: Keystone Foods Puts Its Best Food Forward

Original Bagel Achieves Paperless Traceability

Moy Park to invest millions in robotics

Keeping Weight Errors Low

Databases: The perfect complement to PLCs

Food Technology Update: Pumping Systems

Fresh sector in rude health, finds report

Food inflation has fallen to its lowest level in three years

Cameron drops in on Warburtons as parties woo the Food Industry

Cadbury commits to Frederick’s Dairies for another decade

Complete control in Food, Drink and Pharma

Waste not water, and want not for tax and cost savings

Cadbury save save time and money with pipe ducts

The business case for outsourcing in the Food Industry

Sanitary Equipment Design Advances in Food Industry

Mixing up the ingredients in the skills pot

Tech Update: Mixing and Blending

Outsourcing Engineering

Food Processors mandate: Innovate, Source, Make, Deliver

Hain Celestial cuts jobs to save Luton site

Coca-Cola & Tetra Pak move toward Renewable Plastics

Cadbury agrees £11.7bn Kraft takeover

Food & Beverage Industry wises up to Water Treatment

Asset Management: Food Manufacturing Plants

Food Manufacturers see the Light

Automation threatens 80 jobs at Pork Farms

Food industry gives on-site turbines a second wind

Yogurt Plant maximises Process Control technology

Day rates drop for Food Industry Interims

Samworth Bros to recruit a further 150 staff

Overall Equipment Effectiveness (OEE) — Problem solved

Unilever look to control Waste

Premier Foods installs new Air Treatment Technology

Harsh penalties await Food Processors who are energy inefficient

Pulsed Electric Field Technology in Food Processing

Heineken Brewery generates its own Electricity

Sharpak plans £500,000 for ready meals growth

Food Careers nominated for 4 National Awards

Banana Price War at Grocery Multiples

Counterfeit Vodka Manufacturing Plant closed

Findus Longbenton site to recover by 2011

Government Should Increase Support for the Food Industry

Obsession with 'High-Yields' is Damaging

Premier Seeks to Grow Ambient Desserts Category

Shippam's go Gourmet with Sandwich Fillings

Diageo's Full-Year Results Show Resilience in Tough Conditions

Cadbury faces strike threat over Pay

Livestock Producers urged to consider SALSA

Ginsters Beefs up its Savory lines

Morrisons launches Farming Initiative

Scot's Waste Millions Binning Bread

Rowe's secures deal with Tesco

David's Keeping His Eye on the (Dough) Ball

Protected Name Status set for Fish Product

Kerry Foods Back on Track

Brewery Comes Under Fire

Food Manufacturing Excellence Awards

Purple Patch for Vimto

Food Careers teams up with Productivity improvement Specialist

  Manchester: Food Careers Ltd. Carrington Business Park, Manchester, Carrington, M31 4DD manchester@foodcareers.net T: 0161-776-4141 
  London: Food Careers Ltd. 2nd Floor, 145-157 St John Street, London, EC1V 4PY london@foodcareers.net T: 0207-060-1966 
  Leicester: Food Careers Ltd. Beaumont Enterprise Centre, Boston Road, Leicester, LE4 1HB leicester@foodcareers.net T: 0116-250-5079 
Home |  Job Search |  For Jobseekers |  For Employers |  Food Consultancy |  Contact | Site Map
Copyright © FoodCareers.net 2006 - 2010. Registered in England No 4564275.