IMPROVING PROCESS CONTROL APPLICATIONS BY USING IP COMMUNICATIONS

Similar documents
PIC Microcontroller Introduction

Variable Power Supply Digital Control Circuit Diagram Using Lm317

Introduction to Embedded Systems

MPLAB SIM. MPLAB IDE Software Simulation Engine Microchip Technology Incorporated MPLAB SIM Software Simulation Engine

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

SBC65EC. Ethernet enabled Single Board Computer

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

ECE 354 Computer Systems Lab II. Interrupts, Strings, and Busses

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Question Bank Microprocessor and Microcontroller

Section 30. In-Circuit Serial Programming (ICSP )

Bolt 18F2550 System Hardware Manual

8051 Microcontroller

ME 515 Mechatronics. A microprocessor

The amount of current drawn and the temperature generated by DC motor are crucial in understanding the performance and reliability of motors.

ECE 354 Introduction to Lab 2. February 23 rd, 2003


EasyPIC5 Development System

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

UserGuide_TempSensor_with_Alarms Issue 4/

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

EEE394 Microprocessor and Microcontroller Laboratory Lab #6

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

Microcontroller Based Automatic Temperature Control System

3.1 Description of Microprocessor. 3.2 History of Microprocessor

SBC44EC. Single board computer for 44 pin PLCC PICs

UNIT 3 THE 8051-REAL WORLD INTERFACING

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Introduction to Mechatronics and the Mechatronic Design Center Microchip Technology Incorporated. All Rights Reserved. 1

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

PICado Alpha Development Board V1.0

Exercise 4-1. DSP Peripherals EXERCISE OBJECTIVES

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

2016, IJournals All Rights Reserved Page 121

Design of Intel 8751 Microcontroller-based System for Monitoring and Control of a Thermal Process

Good Idea to Working Electronic Model

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

GSM MODULE BASED SMART NOTICE BOARD

Z8 Encore! XP 4K Series with extended Peripherals

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

The Microcontroller Idea Book

Capacitive Touch Remote Control Reference Design User s Guide

ME 6405 Introduction to Mechatronics

PROGRAMMING AND CUSTOMIZING

CENG-336 Introduction to Embedded Systems Development. Timers

AC : DESIGN OF DATA ACQUISITION SYSTEM FOR COMPUTER ENGINEERING EDUCATION

evsjv `k cigvyy kw³ Kwgkb BANGLADESH ATOMIC ENERGY COMMISSION

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

William Sandqvist

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

Interrupt/Timer/DMA 1

Microcontrollers. Microcontroller

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

MICROCONTROLLER BASED SMART FAN SYSTEM

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application...

ECE 372 Microcontroller Design

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Embedded systems. Exercise session 3. Microcontroller Programming Lab Preparation

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

Design of Bicycle mileage Speed Meter

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

Based on a Single Chip Microcomputer to Realize Electronic Clock Design and Analysis

MPI-DN, MPI-D MULTICHANNEL ELECTRONIC RECORDER for HART or RS-485/ MODBUS RTU SENSORS

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

AVR MICROCONTROLLER PROJECT TUTORIAL E-PUB

Section 46. Scalable Comparator Module

Microcomputer Architecture and Programming

Implementation of Temperature Sensor on PICM4520 Microcontroller

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4

Chapter 2. Integration of the distributed data server with the. vital sign meter

CERBERUS. Cerberus multi I/O. Datasheet. Shaping the future of sound reinforcement. Cerberus. Applies to Part Number:

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

8051 Microcontroller memory Organization and its Applications

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

Microprocessors/Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Department of Electronics and Instrumentation Engineering Question Bank

Pic24f Family Reference Manual Section 14. Timers

Microcontroller Overview

DL405 CPU COMPARISONS

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

D7000 SERIES MODBUS TCP/IP ETHERNET INTERFACE MODULES

Lecture 1. Course Overview and The 8051 Architecture

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

SRI VENKATESWARA COLLEGE OF ENGINEERING

Linux Kernel Hacking Free Course, 3rd edition. HWMPS: Hardware Monitor & Protection System

Wall Industries SMPS and Microcontrollers

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

INTERRUPTS in microprocessor systems

- SELF-TUNING PID ALGORITHM - INTUITIVE COLOR DISPLAY WITH TEXT MESSAGING - UNIVERSAL PROCESS AND TC/RTD INPUTS - MULTI- FUNCTION RAMP- DWELL/PROCESS

DERTS Design Requirements (1): Microcontroller Architecture & Programming

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

Lecture (02) PIC16F84 (I)

Transcription:

7 th International Conference on DEVELOPMENT AND APPLICATION SYSTEMS S u c e a v a, R o m a n i a, M a y 27 29, 2 0 0 4 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 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 low as 0.5-0.6Ω, LM135 is the best choice for most of temperature control applications [4, 5]. 109

Temperature Sensor 1 RA0 RB6 RB7 RD0 1 2 3 4 5 6 C 0 RD7 7 8 9 E 16- 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 110

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: ( Vin 1C8h ).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 t2 (Figure 2) for the best response from the device. There is a minimum value for the difference between t 2 and, preset to 0.2 degrees. t 1 Output state "1" "0" 1 t 2 t 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. 111

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? Keyboard Interrupt? Commands Decoding and Processing Counter ++ Serial communication Web commands processing Parameters changed? Counter Comp ==6? Command execution Send Command Clear Counter Clear Timers History saving Alarms processing Clear Counter Clear Timers Figure 3. Software flow diagram 112

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 - t2 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] *** (2000) SitePlayer SP 1 Embedded Web Server Coprocessor Module, NetMedia Inc. [2] *** (2001) SitePlayer SPK1 Web Server Coprocessor Developer Kit, NetMedia Inc. [3] *** (1997) PICmicro Mid-Range MCU Family Reference, MicroChip. [4] *** (2000) LM135/LM235/LM335 Precision temperature sensors, National Semiconductor [5] *** (2003) LM135/LM235 Precision Temperature sensors, ST Microelectronics. 113