《毕业设计英文翻译可编程控制器的数据库系统DatabaseSystemsforProgrammableLogicControllers.pdf》由会员分享,可在线阅读,更多相关《毕业设计英文翻译可编程控制器的数据库系统DatabaseSystemsforProgrammableLogicControllers.pdf(19页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、1 2020 年 4 月 19 日毕业设计英文翻译可编程控制器的数据库系统DatabaseSystemsforProgrammableLogicControllers 2 2020 年 4 月 19 日文档仅供参考3 2020 年 4 月 19 日Database Systems for Programmable Logic ControllersABSTRACTIn this paper, we identify the database issues associated with programmable logic controllers (PLC), special-purpose
2、computers used in scientific and industrial applications, e.g. in factories in manufacturing environments. We propose as a PLC database system a single-user,real-time, scalable main-memory-only relational database system with a two-level architecture having historical data modeling and manipulation
3、capabilities, and query processing techniques incorporating time- and/or error-constrained query evaluation. We revise the ladder logic language, the most common PLC language, to incorporate data manipulation language instructions. We add a separate time component into the PLC processor scan time to
4、 handle database updates, backup, integrity enforcement and data archival issues. 1. IntroductionA programmable logic controller (PLC) is a special-purpose computer used within real-time scientific computing systems, and industrial control systems, say, the automated control of a factorys machinery
5、- the running example used in this paper. This paper is a position paper that proposes a PLC database system and discusses its features. In doing so, we touch bases with a number of basic database 文档仅供参考4 2020 年 4 月 19 日topics, and, thus, frequently refer to other work for details. PLCs are mostly u
6、sed in manufacturing environments - hence, the choice of our running example. However, PLCs are also used in scientific applications for signal data gathering and preliminary data processing. Thus, we think that for some scientific applications, a PLC database may also serve as a local/transient par
7、t of a larger scientific database.With the rapid advances in computer hardware and falling memory prices, in recent years, the capabilities of the new PLCs in the marketplace have been increasing dramatically. This paper is a position paper that argues that a PLC software can now contain a database
8、system to greatly increase its functionality. We propose the architecture in Figure 1 as the architecture of an environment where real-time data gathering (from multiple sensors) and real-time data manipulation takes place.We now list the advantages of having a database system directly inside a PLC.
9、(1)Data Modeling Techniques : The input and output buffers represent a rather unorganized transient model of the real world, and hence, carl be modeled better using the traditional data modeling techniques of databases.(2) Historical Databases : PLCs routinely deal with different 文档仅供参考5 2020 年 4 月
10、19 日versions of data over time. Therefore, historical data modeling techniques as well as historical data manipulation techniques can replace the ad hoc ways of manipulating historical data in PLCs.(3) User-Friendly Interfaces : Presently in the marketplace, the PLC software and industrial terminals
11、 allow a limited display of messages and variable-data information in memory. For example, the contact histogram function displays the on/off history of a specific main memory.(4) Handling Large Volumes of Data : With the added capabilities of a database and a query language, the PLC may analyze muc
12、h larger volumes of data.(5) Data Reduction and Compaction at the PLC Level : Presently, for further analysis or simply due to various regulations, data collected by PLCs get transmitted and stored into a host computer file using an architecture shown.Since the present PLCs cannot satisfactorily ana
13、lyze most data, they simply transmit data to the host computer. In some scientific experiments and applications, the data gathered is so large that arguments have been raised for processing the data on-the-fly during the execution of an experiment/transaction SSDB 86(a)Real-Time Database : The data
14、in the input buffer must be scanned within reasonably short real-time intervals ranging from 文档仅供参考6 2020 年 4 月 19 日microseconds to seconds. Therefore,responses to queries must be guaranteed to be less than a certain realtime time bound, almost always less than 5 to 10 seconds.(b)Main Memory Databas
15、e : Microseconds/seconds query response restrictions necessitate main-memory-only databases.(c) Scalable Database : Once the environment of a PLC and the requirements of the associated application program are determined, the possible query types to the database stay fixed for a reasonably long perio
16、d of time. Since the response time of queries is of utmost importance, the DBMS should be scaled so that only the needed routines/functions (e.g., access methods, data structures, etc.) are incorporated.In section 2, we discuss the general characteristics PLCs, and briefly present the ladder logic l
17、anguage. Section 3 discusses the features of the proposed database system for PLCs.In general, the PLC hardware is mostly custom-built with occasional off-the-shelf hardware, and consists of a CPU (or multiple CPUs), main memory, an industrial terminal, and high- and medium-speed data communications
18、 hardware. The size of the main memory ranges from 16K bytes (of 5 to 10 years ago) to 8M bytes (of the present time).Although the CPU has an instruction set similar to those found in CPUs of 16-bit and 32-bit machines, it is especially equipped 文档仅供参考7 2020 年 4 月 19 日with fast bit manipulation inst
19、ructions. The industrial terminal comes with a special keyboard to make the programming of the PLC easier and/or to intervene with the application program.The PLC software consists of an operating system (ranging from a very simplistic monitor (of ten years ago) to a sophisticated real-time operatin
20、g system (of the recent time), high-speed communications software for communicating with I/O processors,medium-speed communications software to the industrial terminal and to other intelligent devices.Both general-purpose computers and PLCs are used for industrial control Star 87.However, they diffe
21、r in the programming languages that they use, environmental specifications, and their user types. PLCs are rugged, and work in hostile environments with no special climate controls, tolerating extremes of temperature (60 C), humidity (95%) and air contamination. Users of PLCs include the original pr
22、ogrammers of the application programs, as well as plant electricians and maintenance personnel, who are accustomed to relay-type controlling environments.A rung is an ordered set of PLC instructions drawn on a single line. Instructions on a rung are classified as input instructions (those that monit
23、or the input buffer) and output instructions (those that set the output buffer), and are executed from left to right, sequentially 文档仅供参考8 2020 年 4 月 19 日(Please see figure 4). A PLC application program consists of a main program and a set of subroutines, each of which containing an ordered set of r
24、ungs。To summarize, the application programmer deals with actual (realtime) clock times, and needs to have precise estimates for program scan times and I/O scan times. For time estimations, the PLC manufacturers supply information such as 4 mseconds for 1000 ladder logic instructions, and 1 mseconds
25、for copying 256 words into an input buffer during the I/O scan. In most applications, the processor scan time is kept below 10 seconds.Thus, database manipulation instructions also need to have precise time limits available to (or set by) users.2. ArchitectureWe propose a two-level, single-user data
26、base system architecture as shown in figure 6. We have omitted from our architecture the external model of the traditional database architecture not because PLCs are not powerful, but because concurrently running application programs using different views create problems in accurately estimating the
27、 application program scan times. That is, in a multitasking environment where tasks compete for the resources such as database relations and communication lines, deciding a single top-to bottom execution time of a task in actual time is rather difficult (if at all possible).As far as the hardware co
28、mputing power is concerned, 文档仅供参考9 2020 年 4 月 19 日the present day PLCs are as powerful as personal computers (and, indeed, in some recent products,PLCs are personal computers), and can certainly support multiple industrial terminals and data sharing among the application programs.3. Data Modeling I
29、ssuesThe traditional data modeling techniques directly apply to PLC databases. There is no reason why, say, the Entity-Relationship Model Chen 76 of the data in the PLC database cannot be designed. All the well-known advantages of data modeling ToeF 82 directly carry over to the PLC database environ
30、ment, and will not be elaborated here. As for the conceptual model of our prototype effort, we have chosen the relational model. The PLC environment naturally deals with historical data, e.g., the last reading of a grinding machine sensor, its value yesterday, etc. Again, there are various historica
31、l data modeling approaches SnoA 85 in the literature and, theoretically, any one of them is acceptable.Example. Consider a set of furnaces that produce high-precision airplane parts. There are two entity relations, FURNACE and PART, and one time-varying relationship relation PRODUCES as described in
32、 figure 7. Please note that PRODUCES relation has tuple timestamping with BEGIN-TIME and END-TIME attributes.4. DBMS Issues文档仅供参考10 2020 年 4 月 19 日There are a number of issues that need to be resolved in a time-constrained, single user DBMS environment. These are(a) Data Archival.(b) Database Backup
33、.(c) Database Integrity enforcement.5. Query Processing IssuesThe conventional database management systems (DBMS) do not have the capability of dynamically meeting the time constraints when the amount of data is too large to process within a given time quota. Our approach is, for a given time quota,
34、 to take an appropriate amount of sample data such that the set of sampled data is guaranteed to be processible by the DBMS within the given.Some basic PLC instructions have also been extended to increase their functionality.For example, we have extended the examine logic switch instructions, the Ex
35、amine Input Closed (XIC) and the Examine Input Open (XIO) AB 84, AB 85, to test the logical value of a propositional calculus formula, rather than testing a bit value corresponding to the condition of a physical I/O. An examine F instruction causes the formula F to be evaluated and the role value is
36、 then examined as in the basic examine instructions. In general, the formula F may contain a constant, a variable, a component of a tuple being scanned by the pointer, and fiE) where f is an aggregate function 文档仅供参考11 2020 年 4 月 19 日and E is a relational algebra expression. The functionality of the
37、 PLC Timer and Counter instructions have also been enhanced. Usually conditioned by examine instructions, timers and counters keep track of timed intervals or events; the number of timed intervals or events to be counted is set in the preset value variables AB 85, AB 84. With the introduction of a t
38、ime dimension into the database, events and intervals can also be counted using database queries.6 .Query Processing IssuesThe conventional database management systems (DBMS) do not have the capability of dynamically meeting the time constraints when the amount of data is too large to process within
39、 a given time quota. Our approach is, for a given time quota, to take an appropriate amount of sample data such that the set of sampled data is guaranteed to be processible by the DBMS within the given time quota, and, exact time-cost formulas can be derived.Clearly, the more stages the query proces
40、sor goes through, the more overhead is involved in the run-time estimation approach. This implies that, at each stage, as large an amount of time as possible should be allocated to reduce the number of stages. On the other hand, allocating large amounts of time has a higher risk of overspending the
41、time quota and may end up wasting a large amount of time, especially in a hard time constrained environment AbGM 88, 文档仅供参考12 2020 年 4 月 19 日StZa 88. The hard time constrained environments denote those environments where overspending the time quota is strictly not allowed. Therefore, when overspendi
42、ng happens, the query has to be aborted prematurely and the amount of time used in the last stage is considered wasted.7.Other IssuesThe issue of incomplete information in the PLC database is also being investigated.Quite often, the sensors give incomplete information, usually a range for a reading.
43、 On those occasions, the incomplete data is only known to be within some range of values.We represent an incomplete data item as an interval which contains the unknown value.We have finished the implementation of the first version of a PLC database -Liu89 having some of the features summarized in se
44、ction 3. The system has been developed on SUN workstations using the C language. We are planning to transport it into a PLC, and evaluate its performance.ReferencesAB84 PLC-3 Programmable Controller Programming Manual, Allen-Bradley Co., 1984.AB85 PLC-5 /15 Programmable Controller Processor Manual,
45、Allen-Bradley Co., 1985.文档仅供参考13 2020 年 4 月 19 日Chri83 Christodoulakis, S., Estimating Record Selectivities, Information Systems,Vol 8, 1983.HP88 Hewlett-Packard Announcement of the HP RTDBS, Sept. 1988.Klug81 A. Klug, ABE - A Query Language for Constructing Aggregate-by-Example, 1st LBL Workshop on
46、 Statistical Database Management, Dec. 1981.Ullm88 J.D Ullman, Principles of Database and Knowledge-Base Systems, Computer Science Press, 1988.SSDB86 Panel on Scientific Databases, Third Int. Workshop on Statistical and SCientific Database Management, 1986.Star87 R.J. Staron, A Toolset to Develop Pr
47、ogrammable Controller Systems,unpublished manuscript, Allen-Bradley Co., March 1987.文档仅供参考14 2020 年 4 月 19 日可编程控制器的数据库系统文章摘要在这篇文章中,我们确定一种在科学和工业上有特别应用目的的计算机 可编程控制器( PLC )数据库系统的相关问题。例如:在制造环境的工厂里。我们建议作为数据库系统的PLC的那些单用户,实时可调整的主记忆体。只有关系数据库系统有一个双级结构,具有历史数据建模和操作能力,查询处理技术。区别于阶梯逻辑语言,最常见的PLC 语言,融合数据操作语言指令。我们放入
48、一个单独组成的PLC 处理器的扫描时间,处理数据库更新,备份简单算法和数据档案等问题。1. 简介可编程控制器 ( PLC )是一个专用计算机,用来实施科学计算系统和工业控制系统。在本文中举一个自动化控制工厂的机器运行的例子。本文是一份立场文章,提出了PLC的数据库系统 ,并讨论其特征。 这样,我们接触基地的一批基础数据库,因为经常提及其它工作细节而使内容很丰富。可编程序控制器大多用于制造的环境,因此我们选择了运行的例子。不过,也有的可编程序控制器用在科学应用的信号数据采集和初步数据处理。因此,我们认为对一些科学应用,可编程数据库 ,也能够作为本地较大的科学数据库的瞬态部分。现在我们列出有一个直
49、接内置数据库系统的PLC的优点。文档仅供参考15 2020 年 4 月 19 日( 1 )数据建模技术:输入和输出缓冲器是一个对真实世界的活动比较散乱的暂态模型,因此,卡尔建模法是传统数据库建模技术中比较好的方法。( 2)历史数据库:可编程序控制器一段时间内例行处理不同版本的数据。因此,历史数据建模技术以及历史数据操纵技术能够取代专案方式操纵的历史数据的可编程序控制器。( 3 )用户界面友好:当前在市场上买到的该PLC的软件。能有限的展示信息和可变数据信息存储。例如,接触直方图显示功能作为开机 /关机史上的一个特定的主记忆体。(4)处理大量数据:由于一个数据库和查询语言的增加,PLC能够分析大
50、容量数据。(5)在 PLC 水平上的数据压缩和压实:当前,由简单系统或是简单处理的的信息,收集的数据由PLC 的传送并储存到主机的内存中。由于当前的可编程序控制器不能分析出令人满意的大部分的数据,而只是将数据传输到主机。在一些科学实验和应用中,需要收集到的数据是如此之大。现在还没有PLC 的数据库和实时数据库的书面文献报道。然而,就在最近,惠普宣布了1989 年获得惠普实时数据库惠普 88 所用的内部结构。显然,结构图3 的主机通信线路胜于结构。然而,个人电脑可能超载太多数据。现在我们开始讨论可编程数据库的性能。文档仅供参考16 2020 年 4 月 19 日(1)实时数据库:相当短的“ 实时