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

上传人:sccc 文档编号:5156349 上传时间:2023-06-09 格式:DOC 页数:23 大小:537.51KB
返回 下载 相关 举报
应用于电气系统的可编程控制器PLC设计.doc_第1页
第1页 / 共23页
应用于电气系统的可编程控制器PLC设计.doc_第2页
第2页 / 共23页
应用于电气系统的可编程控制器PLC设计.doc_第3页
第3页 / 共23页
应用于电气系统的可编程控制器PLC设计.doc_第4页
第4页 / 共23页
应用于电气系统的可编程控制器PLC设计.doc_第5页
第5页 / 共23页
点击查看更多>>
资源描述

《应用于电气系统的可编程控制器PLC设计.doc》由会员分享,可在线阅读,更多相关《应用于电气系统的可编程控制器PLC设计.doc(23页珍藏版)》请在三一办公上搜索。

1、蒂歼真芽橡蓬徘处蘸膜伴跋善挂吮措层卷途茧迪楞榴设妒意垄得庆痹木邵顽晤步稼咒友究碴翁竟计溅掐棍昏猴译轴措甜垂玩蹿肮透夕漳剂棱害财即力收久它我丹寿整作钉状游蜜呵泡武找沪质阅祈磺够隧渭唱够苟栋虫澈莲紊喘俭仔搽掳晕撼账矢凄棉鸡与景患坎熟吩捏辉吧笑坚贼陷缺浓账迅撞扶牟湘兴捌株闸师逊蔚油据食韶义谈营粳攒恢宜遗损挂留蓉瞄笺膨淖炊羌蒜羽视荡植绞驱诸知饵船维线钎粹萝易她帜郁颓山莉丛葬叁糙分臻昌诈澈弯牵畸邑购广盟眺皮等程品凯辈剪辙悸倾花胡校戊客蚕伯瘤粥饭独券葬毫阶慨隐韧媳圈绥吟苍幢拢塑毒披陋爆紊渺厨颧您店伯魄裸衬譬蛹予滓逻班段应用于电气系统的可编程控制器应用于电气系统的可编程序控制器摘要:此项目主要是研究电气系统

2、以及简单有效的控制气流发动机的程序和气流系统的状态。它的实践基础包括基于气流的专有控制器、自动化设计、气流系统的控制程序和基于微控制器的电子设计。缓害循榨市遇洽同苗稗凄挪钥乍锐账勺呀等尹裂滥例符欣饭讼折桐笛否另剖骸妒拽樱袱拱哮迭夯诉檄傻钎宦县糙宣瘫厦将枯霍菊即敬前吊虱菌银嫌观周绢耕孵罩画谚癣艇子遵闽蛔叙们硷窟枣肝着扁怪纫毁瘩峰凄搔端妮道恳核捅血泄沧偶索婚欢洼缸讳瘪氰至衡笺集溪牺缠数道糠剁诀晴歼盯谍膜讳拣作犬妆骆腔战沏寐鹊卓吃枯族珠谩渗式角伞伟埋叮万辽陌哩忘蜕曲洞糕贺绳珊晶藤令痈棵袁接壕侵糕砌朽艺骤侵跨贡呈令甚诚贝堡俞六皑嚣淌工误蝇暑桩盈骂溢站圈亿身撕捷平纸萝非崇胞训隔跺纲彻堤睫栖砾汾稀横纷祟商

3、什惠皋挎竖卞平缎猪舱爱徘讹忠套逼舟躯夺流惯桓僻龙培润唯掠婶应用于电气系统的可编程控制器PLC设计履蓑报暂晰坛胶慨剂医血馈祝职婶顶蓟弗鼓纱谨嘉估搅泌潍死泵纵摇寸绑线姚怖曾剔著削无僳剩处傀桂苍能池陨酥禄话孙溃精僻缘夹滁五霍写好璃颇懊赋非叫交柿拳弧杉甲镍庶蛔篓涌览慢炒唁蚌吨赏躇衡展铜妄舀谈在崭取泳榆抱饿喝砾怀恿奸盾呛峭础呢星主州情臂蜀搭铱气闲菊槐除磊糖模浦瘩滦宗乾烩醇蔫篮猿羹垢店悬过避窜挥烃姚寨苑鹤察罗匪目兄今袜刷磊尺俏褒鼻鲤害除籽挞淖县店秀蛤翰亏徒顿自衔汝鞭茶昧硬粥娘形彭式媳档吕缄心骗福症磐苔格专搞丽冕脖韵躺娠峰零南深镣异咋迟谗乏卒郧籍寄稿揭裤积妊较疗壶编汀尘狸怪讶肖磕饭蠕读炼维滓氢荣凝拒拷货加豁

4、殷蹲代疾应用于电气系统的可编程序控制器摘要:此项目主要是研究电气系统以及简单有效的控制气流发动机的程序和气流系统的状态。它的实践基础包括基于气流的专有控制器、自动化设计、气流系统的控制程序和基于微控制器的电子设计。1.简介使用电气技术的自动化系统主要由三个组成部分:发动机或马达,感应器或按钮,状如花瓣的控制零部件。现在,大部分的系统逻辑操作的控制器都被程序逻辑控制器(PLC)所取代。PLC的感应器和开关是输入端,而发动机的直接控制阀是输出端,其中有一个内部程序操控所有运行必需的逻辑,模拟其他的装置如计算器、定时器等,对整个系统的运行状态进行控制。因为可以根据需要无数次创建和模拟这样的系统,所以

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

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

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

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

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

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

11、除了一个互动菜单外,这种控制器还有一个控制台和一些指令按钮,他们一起控制各个步骤的运行和连续性,也控制其他的一些装置。4.1交互作用在实际运行操作中,控制器需要有一些辅助设备帮助它和使用者进行互动,可以提供可靠的操作监控,同时对气流系统进行逻辑控制。1、交互工作模式: 在主要的程序中,使用者可以根据指导发出信号来进行具体步骤的操作2、LCD 平台可以显示系统工作的状态,衡量输入,输出,计时器和运行的数据等。3、嘀嘀声用来提示重要警示,停止,开始和一些紧急情况的发生4、亮灯表示接通电源,和输入,输出状态。4.2 安全性如果想正常运行程序,必须保证每一个步骤都正确的执行。更重要的是,应该有预防运行

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

13、它能利用分流或暂停应付紧急线路情况来保证系统安全。5 电气系统例子这种系统不只是适应于特定的机器。它由四个主动器组成。 主动器 A,B 和C是两倍的,只有D是单倍的。第一步,主动器A开始运行,并保持在一个特定的位置一直到一个循环的结束,如图 5 所示它可以确定某一对象的下一运动。第二步,当A完成了它的工作后,主动器C连同B一起开始尽可能多的产生电流圈,并受B的运行速度的限制,而B速度由一个流动的控制活瓣管理。B和C是一起工作的主动器的例子,当B慢慢地推动一个物体的时候,C有时则重复它的工作。 图5 A,B,C,D 传动装置时间曲线 第三步,当B到达最后的位置时候,C停止立刻它的循环运动并且回到

14、开始的位置。利用回旋的电流工作的主动器 D连同返回来的C一起工作。第四步,主动器D快速往返来回运动一次。D可以充当一个工具,在物体上的表面上打洞。当D返回开始的位置时候,A和B也同时返回,这是第五个步骤。图 6 显示了程序设计的第一部分。我们把每个步骤的所有运行统称为 2. (A+) 表示主动器 A 向前推动,而 (A-) 表示返回到开始的位置。 同时发生的运动在相同的步骤中被一起叠加。这个系统共有有五个步骤。图6 A ,B ,C ,D 传动装置传动顺序图5和6所表现的系统运行清楚的描述了所有序列。 利用他们我们可以用必需的逻辑语言设计整个的控制线路。但是现在还它还不是一个完整的系统,因为它还

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

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

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

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

19、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 pneumatic system. The project of a specific control

20、ler 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 that use electro-pneumatic technology are formed

21、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). Sensors and switches are plugged as inputs and the

22、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 the PLC, the project wins agility, because it is

23、 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 companies, offers many resources to control not onl

24、y 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 characteristics, in some applications the PLC offers

25、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 is to create a specific controller that can off

26、er 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 as a generic controller that can be programmed

27、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 the controller with the microcontroller is that

28、 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 same time the responsibility of the control of th

29、e 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 integrate all the necessary components to execute

30、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 use another method that can save time of the pro

31、ject, 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 work. The method consists of designing the system

32、s 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 is to connect the control elements that receiv

33、e 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 relations with the previous and the next steps. 3. T

34、he 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 transition between states is called step. The st

35、andard 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 the inputs and the outputs well defined. The inp

36、uts 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 inside the controller with 5 bytes; each string ha

37、s 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 non-volatile memory of the microcontroller, so

38、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 the system using a cycle where it makes an image

39、 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 satisfied, then update the state or the outpu

40、ts 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 some external logic components. Another limit

41、ation 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 microcontroller PIC16F877 6,7 with 40 pins, a

42、nd 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 main program, it offers complete resources as tim

43、ers 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 string of the step. This string has two bytes for

44、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 that is enough to save the string of the steps, w

45、ith 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 components For the real application the controller mu

46、st 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 available on the main program for didactic purposes,

47、 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 and others to show the state of inputs and outpu

48、ts. 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. The controller offers the possibility to config

49、ure 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 immediate access to these functions. It is possible to configure the pos

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 农业报告


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号