【正文】
relays, are implemented using Pascal Boolean variables. When any of these variables is TRUE, that represents an ON state。外文原文 Programmable Logic Controllers versus Personal Computers for Process Control Industrial Engineering Department University of Puerto Rico . Box 5000 Mayaguez, Puerto Rico 00681 ABSTRACT It is proposed that Personal Computers (PCs) can be used effectively for the same industrial applications as Programmable Logic Controllers (PLCs). The basic concepts related to the operation of a PLC to emulate the behavior of a relay panel are explained. This is used to build a simple model for using standard PCs in the same applications as PLCs. This is demonstrated using a simple example of an automated process, Sample code in a standard high level language is presented that can be used as a template for future developments. Finally, the potential advantages and enhancements that can result in using PCs for process control are presented. Keywords: Programmable Logic Controller, Personal Computer, Automation, Ladder Logic, Relay Panels INTRODUCTION Personal Computers (PCs) can be used effectively for the same applications as Programmable Logic Controllers (PLCs). A modem PLC is a puterbased device designed to control a process. It relates information ing from sensors that monitor the state of a process, with the status of some actuators that are capable of changing it. This relationship is established in most cases in Boolean logic. Typical sensors used in industrial applications include limit switches, proximity sensors, and other binary sensors. Actuators may include solenoids, motor starters, and other similar devices. Figure 1shows a simplified model of an industrial application where a PLC might be used. Fig. 1: Model of Simple Process RELAY PANELS PLCs wore designed to replace relay panels. These are custom made controllers dedicated to a particular application. They can be expensive for plex systems, cannot be easily reconfigured, are difficult to troubleshoot, consume lots of energy, have a relatively moderate speed of operation, and have low reliability. Relay panels are not the most suitable alternative for a moderate to plex industrial application where flexibility, ease of maintenance and troubleshooting are very important. On the other hand, they are relatively lowtech and are easy to understand by electricians and nonengineering personnel. The electrical control circuits of relay panels are generally drawn using socalled electric ladder diagrams. They differ slightly from conventional wiring diagrams in that they do not show the physical arrangement of the ponents, but emphasize the function of each circuit. They are a set of parallel circuits that in essence represent a hardwired program that controls the sequence of operations in a given process. Being electrical circuits in parallel gives the advantage of solving all the control logic simultaneously and practically instantaneously. Figure 2 represents an electric ladder diagram for a relay panel that can be used to control the process presented in fig. 1. Fig. 2: Electric Ladder Diagram PLCs are typically puterbased, solidstate, singleprocessor devices that emulate the behavior of an electric ladder diagram. Since they are