IMPROVING PROCESS CONTROL APPLICATIONS BY USING IP COMMUNICATIONS



Similar documents
I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

An Introduction to MPLAB Integrated Development Environment

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Microcontroller-based experiments for a control systems course in electrical engineering technology

SMS GSM Alarm Messenger

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

Sigma Control PC INSIDE. 97 psi 187 F R on load

Accurate Measurement of the Mains Electricity Frequency

Monitoring of Intravenous Drip Rate

Temperature & Humidity SMS Alert Controller

Getting Started with PIC24F/PIC24H Programming and Interfacing in C

Network Enabled Battery Health Monitoring System

Simplify Data Acquisition with a Built-in LXI Web Server

Fondamenti su strumenti di sviluppo per microcontrollori PIC

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Chapter 13. PIC Family Microcontroller

MICROCONTROLLER BASED SMART HOME WITH SECURITY USING GSM TECHNOLOGY

Serial port interface for microcontroller embedded into integrated power meter

Smart Thermostat page 1

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

2.0 Command and Data Handling Subsystem

GSM ATT Modules Simply effective remote control

NETWORK ENABLED EQUIPMENT MONITOR

Section bit A/D Converter

HyperAccess Access Control System

Lecture N -1- PHYS Microcontrollers

Using Xbee in Serial Communication

DSO138 oscilloscope program upgrade method

ADVANCED FIRE ALARMING SYSTEM THROUGH MOBILE PHONE

A Smart Telephone Answering Machine with Voice Message Forwarding Capability

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Analog-to-Digital Converters

Microprocessor & Assembly Language

Bristol ControlWave Redundant Control

Disturbance Recoder SPCR 8C27. Product Guide

DESIGN AND IMPLEMENTATION OF LOW COST HOME SECURITY SYSTEM USING PIC MICROCONTROLLER ANDGSM NETWORK

MICROPROCESSOR AND MICROCOMPUTER BASICS

A Practical Approach to Education of Embedded Systems Engineering

Web Datalogger. Unit RS232C. General-purpose modem RS485. IP address search screen

DS1104 R&D Controller Board

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Using the AVR microcontroller based web server

3. Identification of water pumps through RFID technology. 4. Wireless control of remote water pump using RF technology.

Lab Experiment 1: The LPC 2148 Education Board

T3 Mux M13 Multiplexer

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

8051 MICROCONTROLLER COURSE

Transmitter Interface Program

Fingerprint Based Biometric Attendance System

Dyeing Programmer DP - 01

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

INTELLIGENT CONTROL MODULE SA-2000-II HARDWARE MANUAL. Access Technologies International, Inc.

STEPPER MOTOR SPEED AND POSITION CONTROL

Microcontroller to Sensor Interfacing Techniques

MINIMAT-EC-Servo Screwdriver Spindles

Applying Use Cases to Microcontroller Code Development. Chris Gilbert Cypress Semiconductor

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

ezsystem elab16m Project 1F: Alarm System (Full Project description)

MX PIC24F Educational Module User Manual

ONLINE HEALTH MONITORING SYSTEM USING ZIGBEE

Using the HT1632 for Dot Matrix LED Displays

Configuring Allen-Brandly ControlLogix PLC with Moxa MGate 5105-MB-EIP. 1 Application Description Objective Goals...

DESIGN OF SMS ENABLED CAR SECURITY SYSTEM

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

LADDER LOGIC/ FLOWCHART PROGRAMMING DIFFERENCES AND EXAMPLES

Controlling a Dot Matrix LED Display with a Microcontroller

Embedded Web Server for Infra Red Remote Control

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

Switch board datasheet EB

Development of an Internet based Embedded System for Smart House Controlling and Monitoring

Section 28. In-Circuit Serial Programming (ICSP )

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Remote PLC system using GSM network with application to home security system

Section 19. Voltage Reference

PART B QUESTIONS AND ANSWERS UNIT I

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Design of Strong-motion Monitoring System for Dam-reservoir D s e i s gn of Stro r ng-mo m tion Monito t ri r ng Syst s em

Olson Electronics Remote Power Monitoring Meter

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

AXE033 SERIAL/I2C LCD

Portal Software GSM-PRO Run LED displays module activity Com LED displays activity on the GSM network GSM-PRO

Modbus RTU Communications RX/WX and MRX/MWX

International Journal of Electronics and Computer Science Engineering 1588

Programmer/Controller

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

User's Guide. Integrating Sound Level Datalogger. Model Introduction

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Evaluation copy. Build a Temperature Sensor. Project PROJECT DESIGN REQUIREMENTS

HEAT MONITORING AND CONTROL INSTRUMENTS FOR TRANSFORMERS MB 103 TEMPERATURE CONTROL UNIT PT 100 TEMPERATURE SENSOR

Remote Patient Monitoring- An Implementation in ICU Ward

Current Monitoring Kit QUICK START GUIDE

Development of Low Cost Private Office Access Control System(OACS)

Tutorial for MPLAB Starter Kit for PIC18F

Flexible Active Shutter Control Interface using the MC1323x

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Transcription:

IMPROVING PROCESS CONTROL APPLICATIONS BY USING IP COMMUNICATIONS Eugen COCA University "Stefan cel Mare" Suceava Faculty of Electrical Engineering 13, Universitatii, 720229 - SUCEAVA, ROMANIA Tel: +40-230-522-978, fax: +40-230-520-277 Email: ecoca@eed.usv.ro Abstract. This article presents an implementation of a process control application including a temperature monitoring and control device that may be integrated in more complex process control automations. By using Internet communication and both a web enabled and a local user interface, the device designed and implemented using low-cost embedded microcontrollers offer the possibility to setup all the process parameters in a convenient way. By using standard IP network communications the user has the chance to remote control all the process parameters, all data being available in real time to the management unit. The application tested and presented here is very easy to integrate in any existing control system; the range of parameters to control may be extended only by changing the input conditioning process interface components. Keywords: process, control, temperature, communications, interface, Internet Introduction Process control applications include many parameter measurements. One of the common parameter to be determined is the temperature. Low cost microcontrollers are widely used in common applications, because the sensors used are converting the temperature to a voltage or a current by a non-linear equation. Due to high response speed, the computation needs are increasing at this level and the microcontroller is the only suitable solution. By integrating a web enabled microcontroller at this level, we may obtain a low cost Internet controlled device. In this article we present a possible implementation of a temperature control application witch could be used stand alone or integrated in a large process control environment. The microcontroller used for the real-life application is PIC16F876, but the applications may be developed with any low cost microcontroller (i.e. 80Cxxx family). If an analog to digital converter is not present on the chip, the developer must provide an external 12 bit converter. The communication uses an embedded microcontroller from the SitePlayer [1, 2] family. With few external components and software instructions, we may connect this device to a standard port. Process interface and block diagram The hardware block diagram is presented in Figure 1. Temperature sensors are connected to the PIC microcontroller PORTA via an interface witch made filtering and signal conditioning [3]. The Local Interface & Display and Control Unit display the temperature values, a history of all measurements and serves as a user to machine interface. All the adjustments made over the keys could be made from web applications as well. The embedded web microcontroller is plugged in an port and serves as a HTTP web server. Temperature sensor interface Temperature measurement uses LM135, a high precision integrated circuit sensor. Operating as a 2-terminal Zener diode, the LM135 has a breakdown voltage directly proportional to the absolute temperature, with +10 mv/ K and a highly linear output characteristic. The maximum error over a 100 C measurement interval, when calibrated at 25 C, is no more than 1 percent. Having a dynamic impedance as

Temperature Sensor 1 RA0 RB6 RB7 RD0 1 2 3 C 4 5 6 0 RD7 7 8 9 E 16-MaxTemp2 Temperature Sensor n RA1 Local Interface & Display and Control Unit Process side / parameters measurement RxD TxD TxD RxD Interface Execution element RB1 Process side / Execution device PIC16F876 SitePlayer Switch Internet Hub / Switch Hub / Switch PC k1 PC n1 PC km Other Internet-enabled Communication Applications Process Control and Management Unit PC no Figure 1. Block diagram of the process control interface with Internet enabled communication

low as 0.5-0.6Ω, LM135 is the best choice for most of temperature control applications [4, 5]. The signal from the sensor is filtered and applied to the microcontroller on RA0 pin, software configured as an analog input. Signals on RA2 and RA3 pins are used as a reference. The second channel is connected to the RA1 analog input. Due to analog to digital signal conversion, we may obtain digital values from 000H to 03Fh, corresponding to the full scale sensor temperature. In order to obtain the correct representation of the real temperature, meaning to decode the dependence between the sensor output voltage and the real temperature, we implemented an assembler routine to make the calculations. This routine consists of a 24 and 16 bit multiplication routine, a 32/16 bit division and a 24 bit subtraction one. The result will be a decimal number, given by the equation: ( V 1C8h ) in.0c8h T = 032h [ C] (1) 199h where T represents the temperature as displayed by the microcontroller at the corresponding input voltage. V in is the numerical representation of the input voltage on the RA0 analog input. The computation accuracy is highly influenced by the division operation result and this is the reason for we keep the whole division results into two registers. The temperature value is stored in four registers: the first two representing the integer value and two for the fractional one. One bit is dedicated for the sign. The software interface offers the chance to change the temperatures t1 and t 2 (Figure 2) for the best response from the device. There is a minimum value for the difference between t 2 and t, preset to 0.2 degrees. 1 Output state "1" "0" t 1 t 2 Temperature Figure 2. Programmable temperature characteristic Internet interface As said in the introduction, the main advantage of this configuration, where we combine both a local and a remote control for the application, is the opportunity offered to the process control application designer to integrate all sensors in unique remote control software. If the idea is used to control only the temperature in a remote location, we may communicate with the device and give commands to the execution unit (a fan, a heating or a cooling unit). The communication security used by the web microcontroller is a password based one. If the needs are far enough, we may implement an IP address ACL - access control list (on the switch) or we may set up a more powerful security system on the central server. The software application may read all the parameters in real time, display the instantaneous values and keep a local event history. Is a failure is detected in the remote system, the supervisor could be announced via Email, SMS or paging messages.

Power-on System initialization History and constants restoring Timer1 is used to generate fixed-time interval interrupts for temperature measurement. To overcome false alarms, we used a counter and only after six out-of-range temperature values, the execution element is triggered. The used may change the working parameters via the local keyboard or the web-server interface. If a parameter change is detected, no alarm will be triggered and the measurement subroutine will be called from the entry point. For future analysis and decision control, a history of temperature, alarms, parameters and user request is saved on the non-volatile microcontroller memory. The history may be downloaded, archived and cleared via the web interface. An external watch dog circuit is provided. Timer1 overflow? TMR1 Temperature TMR1 ++ Comp ==5F? Out_of_Range? No No No Keyboard Interrupt? Commands Decoding and Processing Counter ++ No Serial communication Web commands processing Parameters changed? No No Counter Comp ==6? Command execution Send Command Clear Counter Clear Timers History saving Alarms processing Clear Counter Clear Timers Figure 3. Software flow diagram

Software control As shown in Figure 3, the main part of the software is dedicated to the real time events. After the circuit power on, all the constants and history are restored from the EEPROM memory. Sensor reading is done at regular time intervals, as preprogrammed or introduced by the user via the local interface. If the temperature is in the interval t1 - t 2 no action should be taken. If the temperature is out of this interval, an alarm LED will signal on the local panel and a corresponding event will be displayed and recorded at the remote Internet location. The execution unit is triggered only if the device was programmed to do so. The maximum priority is reserved to the calculation routine, the key inputs are read after all sensors are read. The remote display is refreshed automatically, the same value will be both on the local and the remote unit. Timer1 is used to generate fixed-time interval interrupts for temperature measurement. To overcome false alarms, we used a counter and only after six out-of-range temperature values, the execution element is triggered. The used may change the working parameters via the local keyboard or the web-server interface. If a parameter change is detected, no alarm will be triggered and the measurement subroutine will be called from the entry point. For future analysis and decision control, a history of temperature, alarms, parameters and user request is saved on the non-volatile microcontroller memory. The history may be downloaded, archived and cleared via the web interface. An external watch dog circuit is provided, to overcome a possible software error. After a lack of response the circuit will make hardware reset for the microcontrollers. Conclusions The process control applications in use today are local oriented, meaning a remote user could not watch, change or take actions over the process, without going on site. There are many situations where a user should know as many parameters from the process as possible. We could mention here the power supply unit from mobile phone base stations, where the remote operator must know 8 to 10 process parameters to take the correct decision before sending the maintenance team. By web enabling the control unit, the whole application will become more reliable and cost effective. The application presented here may be easily upgraded to 8 or 16 inputs, by adding other microcontrollers or by multiplexing the analog inputs. All circuit components are easily to integrate on a custom device, reducing the costs at a minimum. Further developments are studied: a possible application of this device is on old automation in power stations, where we could control the process without buying new relays and signaling devices. References [1] ***, SitePlayer SP 1 Embedded Web Server Coprocessor Module, NetMedia Inc., 2000 [2] ***, SitePlayer SPK1 Web Server Coprocessor Developer Kit, NetMedia Inc., 2001 [3] ***, PICmicro Mid-Range MCU Family Reference, MicroChip, 1997 [4] ***, LM135/LM235/LM335 Precision temperature sensors, National Semiconductor, 2000 [5] ***, LM135/LM235 Precision Temperature sensors, ST Microelectronics, 2003