应用于电气系统的可编程控制器PLC设计.doc

上传人:豆**** 文档编号:17222596 上传时间:2022-05-22 格式:DOC 页数:15 大小:183KB
返回 下载 相关 举报
应用于电气系统的可编程控制器PLC设计.doc_第1页
第1页 / 共15页
应用于电气系统的可编程控制器PLC设计.doc_第2页
第2页 / 共15页
点击查看更多>>
资源描述

《应用于电气系统的可编程控制器PLC设计.doc》由会员分享,可在线阅读,更多相关《应用于电气系统的可编程控制器PLC设计.doc(15页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、【精品文档】如有侵权,请联系网站删除,仅供学习与交流应用于电气系统的可编程控制器PLC设计.精品文档.应用于电气系统的可编程序控制器摘要:此项目主要是研究电气系统以及简单有效的控制气流发动机的程序和气流系统的状态。它的实践基础包括基于气流的专有控制器、自动化设计、气流系统的控制程序和基于微控制器的电子设计。1.简介使用电气技术的自动化系统主要由三个组成部分:发动机或马达,感应器或按钮,状如花瓣的控制零部件。现在,大部分的系统逻辑操作的控制器都被程序逻辑控制器(PLC)所取代。PLC的感应器和开关是输入端,而发动机的直接控制阀是输出端,其中有一个内部程序操控所有运行必需的逻辑,模拟其他的装置如计

2、算器、定时器等,对整个系统的运行状态进行控制。因为可以根据需要无数次创建和模拟这样的系统,所以藉由PLC的使用,此项目有灵活的优点。因此,可以节省时间,减少失误的危险,同时在使用相同材料的情况下,它可以更加精密。市场上的许多家公司都使用了常规的PLC,它不仅可以用气流系统来控制,还可以用各种电气设备。PLC 的用途广泛,可以应用于许多工业生产中,甚至用于建筑物的安全和自动化系统中。由于以上的各种特性,在一些实际应用中PLC提供了很多的资源,甚至包括不控制系统的资源,电气系统就是一种这样的应用。对于自动化的工程,PLC的使用是比较昂贵的,尤其是对那些小型的系统。针对这种情况可行的一种办法是创建一

3、个可提供特定尺寸和功能的控制器。这种控制器可以根据微控制器来制作。这种基于微控制器的控制器的适用范围比较小,只能用于一个类型的机器或者可以用做一个像普通PLC一样可以被编程的控制器,那样它就可以通过可变化的逻辑程序来进行各种作业。所有的这些特性根据具体需要的不同而不同,具体的设计者的经验的不同而不同。但是这种设计的主要优点在于设计人员非常了解自己的控制器,可以自由掌握控制器的大小尺寸,改变它的功能。这就意味着此项目有更多的独特性,但同时系统的控制也由它的设计者所控制。2.电气系统人们可以从一个自动化系统中找到三个上文中提到的基本部件,外加一个控制系统的逻辑线路。只有成熟先进的技术能做出特定的逻

4、辑线路和执行正确操作所需要的部件升级。对于一个简单的运动,系统自动程序可以完成,但是对于间接或更加复杂的运动,系统的程序就会产生复杂的线路和错误的信号。这是就需要另一种方法可以节省时间,产生清晰线路,能够防止偶然的信号交叠和线路堵塞。这种方计的不同标准的线路基法叫循序渐进式或规则系统,它对气流和电气系统非常有效,而且也是此项目的一个基础。它包括根据发动机状态各个不同变化所设础上的系统。 图1 气压系统标准回路 图2 电控气压系统标准回路 第一步是为每个步骤设计那些种标准的线路。第二步是联编标准的线路,最后一步是连接接收来自感应器,开关和先前的运动信号,同时把空气或电传送给每个步骤的补给线。如图

5、中所示, 1 和 2 标准线路是为气流的和电气系统服务。我们能够很清楚的看到每一步骤和下一个步骤之间的联系。3.控制器内部的应用原理上述方法可以使发动机的每一个运动都被很好地用步骤来定义。这也就是说发动机的每一次运动变化都是系统的一个新的状态,而两个不同状态之间的转变叫做步骤。先前提到的标准线路可以帮助设计人员定义系统的不同状态和不同步骤的变化所带来的不同环境。在设计的最后阶段,系统中会有一个从来不变化的序列和明确的输入和输出端。我们把一个序列从输入端输入,经过转换后,由输出端输出。这些步骤的所有过程都是在微控制器内部进行的,并且以同样的方式在运行着。部件的序列在控制器里被 5个位元组规划;

6、每个部分都有程序的一个步骤结构。输入端有二个位元组,输出端有一个,其他结构部分和附加功能步骤有两个。 在编程之后,部件序列被内部微控制器的记忆所储藏,因此,他们是可读的而且可以运行。不同于传统的PLC,这种控制器的工作目的是成为特定领域设计的多用控制器。传统的 PLC 的系统运行程序是一个循环的线路:输入一个图像,运行所有的内部程序, 然后升级输出的状态。 这一个控制器以不同的方式工作,它读取步骤的结构,等待输入,然后升级或输出,然后直接跳跃到下一个步骤,开始另一次的程序运行。它也有局限性,例如这种控制器有时会不执行指令,在同一程序指令下,会出现某一个运行的反复等等,但是这一个问题可以通过外部

7、的逻辑运行解决。另外,这中控制器在没有序列的系统上不能够被应用。这些局限性也是这个系统的特性,这种系统的每一个应用都必须要有相应的系统分析。4.控制器的特色这种控制器以微集成电路微控制器 PIC16F877为基础,它拥有全部此次项目所需要的资源。它有足够的插孔,线路连续通讯 EEPROM 记忆解救系统的所有结构和步骤的序列。它提供了项目所需要的所有的运行,例如定时器和分岔等。我们做出了控制器的资源目录,想尽可能的使它变的完善。在步骤的运行过程中,程序自动选择如何读取每一步骤的结构。这个操作有两个位元组位于电子输入处。一个位元组位于输出端,还有一个被用作内部定时器,类似输入或暂停功能。EEPRO

8、M 记忆内部是 256 位元组,可以储藏所有步骤的运行,即可以储藏 48个步骤之间的所有运行。除了一个互动菜单外,这种控制器还有一个控制台和一些指令按钮,他们一起控制各个步骤的运行和连续性,也控制其他的一些装置。4.1交互作用在实际运行操作中,控制器需要有一些辅助设备帮助它和使用者进行互动,可以提供可靠的操作监控,同时对气流系统进行逻辑控制。1、交互工作模式: 在主要的程序中,使用者可以根据指导发出信号来进行具体步骤的操作2、LCD 平台可以显示系统工作的状态,衡量输入,输出,计时器和运行的数据等。3、嘀嘀声用来提示重要警示,停止,开始和一些紧急情况的发生4、亮灯表示接通电源,和输入,输出状态

9、。4.2 安全性如果想正常运行程序,必须保证每一个步骤都正确的执行。更重要的是,应该有预防运行故障和问题的解决方法。控制器提供了这种可能性,通过使用两个内部虚拟线路同时运行。他们可以重新启动程序,随时恢复到程序的原有状态。有两个输入端共同工作可以快速的运行这些功能。4.3 接口程序运行序列可以用控制器的接口来编程。一台计算机的接口也可以用来升级使用程序。使用者能利用接口配置一连串定义序列的步骤位元组。但是也可以设计一个程序,利用可视资源为使用者翻译所需要的信息。 但是,如果想联结电脑接口和控制器,至少应该有一个仪器来保证数据的可靠性。4.4 固件主要的线环是通过读取EEPROM 记忆中的每一资

10、讯步骤进行工作。 在每个步骤中,系统的状态被储存,同时它也在显示器上被显示。根据使用者的构造,它能利用分流或暂停应付紧急线路情况来保证系统安全。5 电气系统例子这种系统不只是适应于特定的机器。它由四个主动器组成。 主动器 A,B 和C是两倍的,只有D是单倍的。第一步,主动器A开始运行,并保持在一个特定的位置一直到一个循环的结束,如图 5 所示它可以确定某一对象的下一运动。第二步,当A完成了它的工作后,主动器C连同B一起开始尽可能多的产生电流圈,并受B的运行速度的限制,而B速度由一个流动的控制活瓣管理。B和C是一起工作的主动器的例子,当B慢慢地推动一个物体的时候,C有时则重复它的工作。 图5 A

11、,B,C,D 传动装置时间曲线 第三步,当B到达最后的位置时候,C停止立刻它的循环运动并且回到开始的位置。利用回旋的电流工作的主动器 D连同返回来的C一起工作。第四步,主动器D快速往返来回运动一次。D可以充当一个工具,在物体上的表面上打洞。当D返回开始的位置时候,A和B也同时返回,这是第五个步骤。图 6 显示了程序设计的第一部分。我们把每个步骤的所有运行统称为 2. (A+) 表示主动器 A 向前推动,而 (A-) 表示返回到开始的位置。 同时发生的运动在相同的步骤中被一起叠加。这个系统共有有五个步骤。图6 A ,B ,C ,D 传动装置传动顺序图5和6所表现的系统运行清楚的描述了所有序列。

12、利用他们我们可以用必需的逻辑语言设计整个的控制线路。但是现在还它还不是一个完整的系统,因为它还缺少一些辅助设施(图中没有显示)。 对于程序的最后运行,这些辅助设施十分的重要,因为他们能使线路有更多的功能。他们中最重要的是连接在每一步骤中的平行线路。那一个线路能够随时停止序列而且将主动器的状态换成一个特定的位置。它可以重起系统或是应付紧急情况。图7和8显示的是在没有使用控制器的情况下会发生的一些结果。这些照片是控制线路的电图表,包括感应器,控制键和电的活瓣卷。图7 电气图表举例图8 电气图表举例另外的一些辅助设施也包括在这个系统中,比如自动机械/手动调控器,他们可以使系统不断的循环工作;两个开始

13、控制键,他们能让操作员手动控制系统的开始和停止,这样就减少了发生意外事件的危险。6 使用者变更例子规划气流线圈在前面已经详细说明过:它可以让我们了解到控制一个系统所需要的条件,那就是在系统的实际运行中必须提供所有的功能设施。但是,如前面提到的那样,使用一个PLC或特定的控制器,这种控制就变得比较容易的,而且系统的精密性也会提高。 表2所示的是控制上面提到的系统的必需设施。通过时间图表,表2,和图5和6描述了每一步骤的程序和系统的各个部件。这说明记录所有步骤的运行结构图并把他们送给控制器 (表3和4所示)。使用传统的PLC的,如图7,8所示,在绘制接口处的电图表时,要注意线路的逻辑。使用这种可编

14、程的控制器,使用者必须知道运行方法的观念并且规划每个步骤的结构。 那就是说,使用传统的PLC,使用者清楚各个操作之间的关系。一般情况下,使用者可以在接口上运行一个模拟程序寻找逻辑上的错误同之前所述的一样,新的编程允许每一步骤的结构被分割。序列独自被定义,但每一步骤只被输入和输出端描述。图9 A ,B 传动装置和传感器图10 C ,D 传动装置和传感器表 5 表现的是使用系统如何被储藏在控制器里,这在前文中也详细说明过。序列被 25个位元组所定义。这些位元组被分成5组,每一组描述系统运行的一个步骤。(图 9 和 10)7 结论这种控制器是专门为这一项目所设计的。它不需要为了获取微控制器里的资源而

15、安装外部记忆器或外部的定时器。除了微控制器之外,只有少量的零部件执行一些如输出,输入,类比输入,显示接口和连续运行的情况等功能。单独使用内部记忆,我们可以控制一个有48个步骤的气流系统,但是如果使用一个比较简单的系统,就会达到60个步骤.控制器的变成不使用 PLC 语言,而是用一个比较简单的和直觉的结构。利用电气系统,我们的项目应用了相同的技术,但同时我们的设计更加直接。 一种非常简单的机械语言能让设计者用四或五个位元组定义步骤所有结构构成。这就要看他使用控制器的经验如何了。这种控制器虽然不能和商业的 PLC 相比,但是它原本就是为特定的的目的而设计的,所以很难说哪一个好哪一个坏。总之,我们的

16、这个系统是基于微控制器而设计,简单快捷。Programmable designed for electro-pneumatic systems controllerThis project deals with the study of electro-pneumatic systems and the programmable controller that provides an effective and easy way to control the sequence of the pneumatic actuators movement and the states of pneum

17、atic system. The project of a specific controller for pneumatic applications join the study of automation design and the control processing of pneumatic systems with the electronic design based on microcontrollers to implement the resources of the controller.1. IntroductionThe automation systems tha

18、t use electro-pneumatic technology are formed mainly by three kinds of elements: actuators or motors, sensors or buttons and control elements like valves. Nowadays, most of the control elements used to execute the logic of the system were substituted by the Programmable Logic Controller (PLC). Senso

19、rs and switches are plugged as inputs and the direct control valves for the actuators are plugged as outputs. An internal program executes all the logic necessary to the sequence of the movements, simulates other components like counter, timer and control the status of the system. With the use of th

20、e PLC, the project wins agility, because it is possible to create and simulate the system as many times as needed. Therefore, time can be saved, risk of mistakes reduced and complexity can be increased using the same elements.A conventional PLC, that is possible to find on the market from many compa

21、nies, offers many resources to control not only pneumatic systems, but all kinds of system that uses electrical components. The PLC can be very versatile and robust to be applied in many kinds of application in the industry or even security system and automation of buildings.Because of those charact

22、eristics, in some applications the PLC offers to much resources that are not even used to control the system, electro-pneumatic system is one of this kind of application. The use of PLC, especially for small size systems, can be very expensive for the automation project.An alternative in this case i

23、s to create a specific controller that can offer the exactly size and resources that the project needs 3, 4. This can be made using microcontrollers as the base of this controller. The controller, based on microcontroller, can be very specific and adapted to only one kind of machine or it can work a

24、s a generic controller that can be programmed as a usual PLC and work with logic that can be changed. All these characteristics depend on what is needed and how much experience the designer has with developing an electronic circuit and firmware for microcontroller. But the main advantage of design t

25、he controller with the microcontroller is that the designer has the total knowledge of his controller, which makes it possible to control the size of the controller, change the complexity and the application of it. It means that the project gets more independence from other companies, but at the sam

26、e time the responsibility of the control of the system stays at the designer hands2. Electro-pneumatic systemOn automation system one can find three basic components mentioned before, plus a logic circuit that controls the system. An adequate technique is needed to project the logic circuit and inte

27、grate all the necessary components to execute the sequence of movements properly. For a simple direct sequence of movement an intuitive method can be used 1, 5, but for indirect or more complex sequences the intuition can generate a very complicated circuit and signal mistakes. It is necessary to us

28、e another method that can save time of the project, make a clean circuit, can eliminate occasional signal overlapping and redundant circuits. The presented method is called step-by-step or algorithmic 1, 5, it is valid for pneumatic and electro-pneumatic systems and it was used as a base in this wor

29、k. The method consists of designing the systems based on standard circuits made for each change on the state of the actuators, these changes are called steps. The first part is to design those kinds of standard circuits for each step, the next task is to link the standard circuits and the last part

30、is to connect the control elements that receive signals from sensors, switches and the previous movements, and give the air or electricity to the supply lines of each step. In Figs. 1 and 2 the standard circuits are drawn for pneumatic and electro-pneumatic system 8. It is possible to see the relati

31、ons with the previous and the next steps. 3. The method applied inside the controller The result of the method presented before is a sequence of movements of the actuator that is well defined by steps. It means that each change on the position of the actuators is a new state of the system and the tr

32、ansition between states is called step. The standard circuit described before helps the designer to define the states of the systems and to define the condition to each change between the states. In the end of the design, the system is defined by a sequence that never chances and states that have th

33、e inputs and the outputs well defined. The inputs are the condition for the transition and the outputs are the result of the transition. All the configuration of those steps stays inside of the microcontroller and is executed the same way it was designed. The sequences of strings are programmed insi

34、de the controller with 5 bytes; each string has the configuration of one step of the process. There are two bytes for the inputs, one byte for the outputs and two more for the other configurations and auxiliary functions of the step. After programming, this sequence of strings is saved inside of a n

35、on-volatile memory of the microcontroller, so they can be read and executed. The controller task is not to work in the same way as a conventional PLC, but the purpose of it is to be an example of a versatile controller that is design for an specific area. A conventional PLC process the control of th

36、e system using a cycle where it makes an image of the inputs, execute all the conditions defined by the configuration programmed inside, and then update the state of the outputs. This controller works in a different way, where it read the configuration of the step, wait the condition of inputs to be

37、 satisfied, then update the state or the outputs and after that jump to the next step and start the process again. It can generate some limitations, as the fact that this controller cannot execute, inside the program, movements that must be repeated for some time, but this problem can be solved with

38、 some external logic components. Another limitation is that the controller cannot be applied on systems that have no sequence. These limitations are a characteristic of the system that must be analyzed for each application.4. Characteristics of the controller The controller is based on the MICROCHIP

39、 microcontroller PIC16F877 6,7 with 40 pins, and it has all the resources needed for this project .It has enough pins for all the components, serial communication implemented in circuit, EEPROM memory to save all the configuration of the system and the sequence of steps. For the execution of the mai

40、n program, it offers complete resources as timers and interruptions. The list of resources of the controller was created to explore all the capacity of the microcontroller to make it as complete as possible. During the step, the program chooses how to use the resources reading the configuration stri

41、ng of the step. This string has two bytes for digital inputs, one used as a mask and the other one used as a value expected. One byte is used to configure the outputs value. One bytes more is used for the internal timer , the analog input or time-out. The EEPROM memory inside is 256 bytes length tha

42、t is enough to save the string of the steps, with this characteristic it is possible to save between 48 steps (Table 1).The controller (Fig.3) has also a display and some buttons that are used with an interactive menu to program the sequence of steps and other configurations.4.1. Interaction compone

43、nts For the real application the controller must have some elements to interact with the final user and to offer a complete monitoring of the system resources that are available to the designer while creating the logic control of the pneumatic system (Fig.3):Interactive mode of work; function availa

44、ble on the main program for didactic purposes, the user gives the signal to execute the step.LCD display, which shows the status of the system, values of inputs, outputs, timer and statistics of the sequence execution.Beep to give important alerts, stop, start and emergency. Leds to show power on an

45、d others to show the state of inputs and outputs. 4.2. Security To make the final application works property, a correct configuration to execute the steps in the right way is needed, but more then that it must offer solutions in case of bad functioning or problems in the execution of the sequence. T

46、he controller offers the possibility to configure two internal virtual circuits that work in parallel to the principal. These two circuits can be used as emergency or reset buttons and can return the system to a certain state at any time 2. There are two inputs that work with interruption to get an

47、immediate access to these functions. It is possible to configure the position, the buttons and the value of time-out of the system. 4.3. User interface The sequence of strings can be programmed using the interface elements of the controller. A Computer interface can also be used to generate the user

48、 program easily. With a good documentation the final user can use the interface to configure the strings of bytes that define the steps of the sequence. But it is possible to create a program with visual resources that works as a translator to the user, it changes his work to the values that the con

49、troller understands. To implement the communication between the computer interface and the controller a simple protocol with check sum and number of bytes is the minimum requirements to guarantee the integrity of the data. 4.4. Firmware The main loop works by reading the strings of the steps from the EEPROM memory that has all the inform

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 小学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁