驱动器接口.jpg
驱动器接口.jpg

基于S7-200PLC步进电机调速控制

收藏

资源目录
跳过导航链接。
基于S7-200PLC步进电机调速控制.rar
压缩包内文档预览:
预览图
编号:23180233    类型:共享资源    大小:1.11MB    格式:RAR    上传时间:2019-11-07 上传人:qq77****057 IP属地:江苏
25
积分
关 键 词:
基于 S7 200 PLC 步进 电机 调速 控制
资源描述:
基于S7-200PLC步进电机调速控制,基于,S7,200,PLC,步进,电机,调速,控制
内容简介:
编号无锡太湖学院毕业设计(论文)相关资料题目:基于S7-200PLC步进电机调速控制 步进驱动控制系统设计 信机 系 机械工程及自动化专业学 号: 0923127 学生姓名: 肖超 指导教师: 宋广雷(职称:副教授 ) 2013年5月25日目 录一、毕业设计(论文)开题报告二、毕业设计(论文)外文资料翻译及原文三、学生“毕业论文(论文)计划、进度、检查及落实表”四、实习鉴定表无锡太湖学院毕业设计(论文)开题报告题目:基于S7-200PLC步进电机调速控制 步进驱动控制系统设计 信机 系 机械工程及自动化 专业学 号: 0923127 学生姓名: 肖 超 指导教师:宋广雷 (职称:副教授 ) 2012年11月25日 课题来源自拟题目科学依据(1)课题科学意义基于步进电动机良好的控制和准确定位特性,被广泛应用在精确定位方面,诸如数控机床、喷绘机、工业控制系统、自动控制计算装置、自动记录仪表等自动控制领域。随着计算机技术的发展,可编程逻辑控制器的功能不断扩展和完善,其功能远远超出了逻辑控制的范围,具有了PID、A/D、D/A、算术运算、数字量智能控制、监控、通信联网等多方面的功能,它已变成了实际意义上的一种工业控制计算机。PLC作为简单化的计算机,以其通用性强、可靠性高、指令系统简单、编程简便易学、易于掌握、体积小、维修工作少、现场接口安装方便等一系列优点,在全世界广泛应用,为生产生活带来巨大效益方便。PLC控制的步进电机开环伺服机构应用于组合机床自动生产线上的数控滑台控制,可省去该单元的数控系统使该单元的控制系统成本降低7090%,甚至只占用自动线控制单元PLC的35个I/O接口及1KB的内存。特别是大型自动线中可以使控制系统的成本显著下降。因此,通过研究用PLC来控制步进电动机的,既可实现精确定位控制,又能降低控制成本,还有便于维护。(2)PLC控制步进电机的发展及前景 小型PLC从产生到现在,实现了接线逻辑到存储逻辑的飞跃;其功能从弱到强,实现了逻辑控制到数字控制的进步;如今的小型PLC在编程,I/O扩展,通讯接口,开关量和模拟量的调节以及一些特殊功能模块如高速计数输入和脉冲输出的应用上已经基本满足用户的需求了。但随着应用需求及关联产品技术性能的提升(如步进驱动的脉冲响应频率及精度,HMI及关联系统的通讯功能),PLC将继续得已完善和发展。我国可编程控制器的引进、应用、研制、生产是伴随着改革开放开始的。最初是在引进设备中大量使用了可编程控制器。接下来在各种企业的生产设备及产品中不断扩大了PLC的应用。目前,我国自己已可以生产中小型可编程控制器。可以预期,随着我国现代化进程的深入,PLC在我国将有更广阔的应用天地。但是与国外还有一定的差距。研究内容(1)阐述了步进电机的基本工作原理;(2)对PLC的简单介绍以及对PLC的选型; (3)对步进电机电气原理图以及PLC I/O接线图; (4)熟练掌握PLC技术,完成基于S7-200步进电机控制系统设计,梯形图; (5)完成说明书的撰写,并且翻译外文资料1篇拟采取的研究方法、技术路线、实验方案及可行性分析(1)技术路线首先对基于PLC的步进电机系统进行分析,从整体上把握其设计原则;然后对硬件和软件系统进行研究分析,总结出符合工程学要求的设计理论;最后将整体的设计分析和软硬系统的设计相结合,寻找有效的结合点并进行统一协调,最终设计出更加简单、高效的系统。(2)研究方法控制步进电机硬件设计 控制步进电机软件设计,结合软硬系统进行设计元件的选取(3)实验方案确定具体设计方案(包括步进电机的选择,驱动器选择,PLC控制系统设计)研究计划及预期成果研究计划:全文主要论述和研究了以下内容:(1)阐述了步进电机的基本工作原理;(2)对PLC的简单介绍以及对PLC的选型;(3)对步进电机电气原理图以及PLC I/O接线图;(4)基于S7-200步进电机控制系统设计,梯形图。预期成果:我国市场前景广阔,产品质量性能逐渐满足要求,因此产品的发展必须由单纯的追求技术上的完善,转向产品外观质量的提高,放到与技术改进放到同等重要的位置,通过本课题的研究,产品必定以合理的色彩以及人性化的结构方式提高自己的附加值,吸引到更多地客户,加大自己产品的市场占有率,提高在行业中的竞争力。 特色或创新之处(1)可靠性,抗干扰能力强。(2)通用性强,使用方便。(3)功能性强,适应面广。(4)以移位指令作为步进控制主体编程,使程序的柔性更好,非常容易修改。已具备的条件和尚需解决的问题(1)步进电动机存在振荡和失步现象,必须对控制系统和机械负载采取相应的措施。(2)步进电机转速不受负载大小的影响,不像普通电机,当负载加大时就会出现速度下降的情况,所以步进电机使用在对速度和位置都有严格要求的场合。(3)步进电机只能通过脉冲电源供电才能运行,不适合使用在长时间同方向运转的情况,容易烧坏产品,不能直接使用交流电源以及直流电源指导教师意见 指导教师签名:年 月 日教研室(学科组、研究所)意见 教研室主任签名: 年 月 日系意见 主管领导签名: 年 月 日英文原文PLC technique discussion and future developmentProgrammable Controller (Programmable Logic Controller, customarily referred to as PLC) is a microprocessor as the core of the general industrial automation devices. Is in the late 1960 s in the relay control system developed on the basis of, it will traditional relay control technology combined with computer technology and communication technology, has a simple structure, superior performance, high reliability, flexible, general and convenient use, easy to programming. In particular, the characteristics of the PLC is shown as the following Aspects: (1) the high reliability of hardware. PLC is specialized in industrial environment under the conditions of application and design. Can be placed in a well designed PLC has a very high voltage noise, electromagnetic interference and mechanical vibration, extreme temperature, and humidity environment. Is in the aspect of hardware design, first of all with high quality components, and adopt reasonable system structure, strengthening, simplify installation, makes it easy to anti vibration shock, to the printed circuit board design, machining and welding process are taken very strict measures, and on the circuit, the structure and process had taken some unique ways. Because the PLC itself has very high reliability, so in the event of a failure parts mostly focused on the input/output parts and such as sensors, limit switches, photoelectric switch, electromagnetic valve, motor, etc. programming and easy to use. Automatic control by microcomputer, commonly used assembly language programming, difficult to grasp, requires the user has a certain level of knowledge of computer hardware and software. PLC used for process control, problem oriented programming method, compared with the currently used assembly language microcomputer control, while inside the PLC increases the interpretation procedure, to increase the programs execution time, but for most of the mechanical and electrical control equipment, this loss is negligible. (3) Wiring is simple, high universality. In the case of electrical matching, PLC connection just put the input signal of the device (button, switch, etc.) connected to the input terminal of PLC, will accept the output signal of executive control tasks (contactor, solenoid valves), executive components connected to the PLC output terminals. Wiring is simple, leaves out the conventional relay control system wiring and removing the trouble. PLC programming logic provides can change according to the requirements of logical relationship, so that production line automation process can change at will. This performance makes the PLC has the very high economic benefits. Used to connect field devices of the hardware interface design has actually become a part of PLC, since the diagnosis of modular interface circuit can point to the fault, and easy to troubleshooting and replacement of fault parts, so that the software and hardware design of the site electrical personnel and technical personnel to use. (4) can be connected to control network system. PLC can be connected to become powerful network system. General PLC network can be divided into two kinds: one kind is a low-speed network, USES the master-slave mode communication, transfer rate from the potter thousands and thousands of potter to the transmission distance is 500 2500 m; Another kind of high-speed network, USES the token passing mode communication, communication rate of 1 m to 10 MBPS, transmission distance is 500 1000 m, 1024 online nodes. These two types of networks are linked together, can be compatible with different types of programmable controller and computer, forming control range a lot of local network. 5. Easy to install, easy to maintain. PLC installation is simple and powerful functions, its relatively small size allows them to install the relay control box usually required for half of the space. In the large PLC system installation, remote I/o in the optimal location. Remote I/O station through double axis of coaxial cable, or even to the CPU, which greatly reduces the material and labor, remote subsystem method means from different parts of the system can be installed in field. Because almost all of the components are modular, only need to change when maintaining module level plug-in components, fault detection circuit diagnosis indicator will be embedded in each part, can indicate the device is working correctly, the resistance in programming is visible input/output devices ON or OFF, still can write programming instructions to report failures. In addition, PLC automation technology, computer technology and communication technology together, and you can also complete the following functions: logic control, timing control, counting control, stepper control, A/D and D/A conversion, data processing, communication network and monitoring on the control system. In general, the application of PLC have boom in the world, the PLC development direction mainly toward miniaturization, deflationary force, standardization, standardization, intelligence, high speed, large capacity, network development, this will make the PLC function is stronger, higher reliability, more convenient use, wide application and more The PLC biggest characteristics lie in: The electrical engineering teacher already no longer electric hardware up too many calculations of cost, as long as order the importation that the button switch or the importation of the sensors order to link the PLC up can solve problem, pass to output to order the conjunction contact machine or control the start equipments of the big power after the electric appliances, but the exportation equipments direct conjunction of the small power can.PLC internal containment have the CPU of the CPU, and take to have an I/ O for expand of exterior to connect a peoples address and saving machine three big pieces to constitute, CPU core is from an or many is tired to add the machine to constitute, mathematics that they have the logic operation ability, and can read the procedure save the contents of the machine to drive the homologous saving machine and I/ Os to connect after pass the calculation; The I/ O add inner part is tired the input and output system of the machine and exterior link, and deposit the related data into the procedure saving machine or data saving machine; The saving machine can deposit the data that the I/ O input in the saving machine, and in work adjusting to become tired to add the machine and I/ Os to connect, saving machine separately saving machine RAM of the procedure saving machine ROM and dates, the ROM can do deposit of the data permanence in the saving machine, but RAM only for the CPU computes the temporary calculation usage of hour of buffer space.The PLC anti- interference is very and excellent, our root need not concern its service life and the work situation bad, these all problems have already no longer become the topic that we fail, but stay to our is a concern to come to internal resources of make use of the PLC to strengthen the control ability of the equipments for us, make our equipments more gentle.PLC language is not we imagine of edit collected materials the language or language of Cs to carry on weaving the distance, but the trapezoid diagram that the adoption is original after the electric appliances to control, make the electrical engineering teacher while weaving to write the procedure very easy comprehended the PLC language, and a lot of non- electricity professional also very quickly know and go deep into to the PLC.Is PLC one of the advantage above and only, this is also one part that the people comprehend more and easily, in a lot of equipments, the people have already no longer hoped to see too many control buttons, they damage not only and easily and produce the artificial error easiest, small is not a main error perhaps you can still accept; But lead even is a fatal error greatly is what we cant is tolerant of. New technique always for bringing more safe and convenient operation for us, make we a lot of problems for face on sweep but light, do you understand the HMI? Says the HMI here you basically not clear what it is, also have no interest understanding, change one inside text explains it into the touch to hold or man-machine interface you knew, and it combines with the PLC to our larger space.HMI the control not only is reduced the control press button, increase the vivid of the control, more main of it is can sequence of, and at can the change data input to output the feedback with data, control in the temperature curve of imitate but also can keep the manifestation of view to come out. And can write the function help procedure through a plait to provide the help of various what lies in ones power, the one who make operate reduces the otiose error. Currently the HMI factory is also more and more, the function is also more and more strong, the price is also more and more low, and the noodles of the usage are wide more and more. The HMI foreground can say that think to be good very.At a lot of situations, the list is a smooth movement that cant guarantee the equipments by the control of the single machine, but pass the information exchanges of the equipments and equipments to attain the result that we want. For example fore pack and the examination of the empress work preface, we will arrive wrapping information feedback to examine the place, and examine the information of the place to also want the feedback to packing. Pass the information share thus to make both the chain connect, becoming a total body, the match of your that thus make is more close, at each other attain to reflect the result that mutually flick.The PLC correspondence has already come more body now its value, at the PLC and correspondence between PLC, can pass the communication of the information and the share of the dates to guarantee that of the equipments moderates mutually, the result that arrive already to repair with each other. Data conversion the adoption RS232 between PLC connect to come to the transmission data, but the RS232 pick up a people and can guarantee 10 meters only of deliver the distance, if in the distance of 1000 meters we can pass the RS485 to carry on the correspondence, the longer distance can pass the MODEL only to carry on deliver.The PLC data transmission is just to be called a form to it in a piece of and continuous address that the data of the inner part delivers the other party, we, the PLC of the other party passes to read data in the watch to carry on the operation. If the data that data in the watch is a to establish generally, that is just the general data transmission, for example today of oil price rise, I want to deliver the price of the oil price to lose the oil ally on board, that is the share of the data; But take data in the watch for an instruction procedure that controls the PLC, that had the difficulty very much, for example you have to control one pedestal robot to press the action work that you imagine, you will draw up for it the form that a procedure combine with the data sends out to pass by.The form that information transport contain single work, the half a work and the difference of a workers .The meaning of the single work also is to say both, a can send out only, but a can receive only, for example a spy he can receive the designation of the superior only, but cant give the superior reply; A work of half is also 2 and can send out similar to accept the data, but cant send out and accept at the same time, for example when you make a phone call is to cant answer the phone, the other party also; But whole pair works is both can send out and accept the data, and can send out and accept at the same time. Be like the Internet is a typical example.The process that information transport also has synchronous and different step cent: The data line and the clock lines are synchronous when synchronous meaning lie in sending out the data, is also the data signal and the clock signals to be carry on by the CPU to send out at the same time, this needs to all want the specialized clock signal each other to carry on the transmission and connect to send, and is constrained, the characteristics of this kind of method lies in its speed very quick, but correspond work time of take up the CPU and also want to be long oppositely, at the same time the technique difficulty also very big. Its request lies in canting have an error margins in a dates deliver, otherwise the whole piece according to compare the occurrence mistake, this on the hardware is a bigger difficulty. Applied more and more extensive in some appropriative equipments, be like the appropriative medical treatment equipments, the numerical signal equipments.etc., in compare the one data deliver, its result is very good.And the different step is an application the most extensive, this receive benefit in it of technique difficulty is opposite and want to be small, at the same time not need to prepare the specialized clock signal, its characteristics to lie in, its data is partition, the long-lost send out and accept, be the CPU is too busy of time can grind to a stop sex to work, also reduced the difficulty on the hardware, the data throw to lose at the same time opposite want to be little, we can pass the examination of the data to observe whether the data that we send out has the mistake or not, be like strange accidentally the method, tired addition and eight efficacies method etc., can use to helps whether the data that we examine to send out have or not the mistake occurrence, pass the feedback to carry on the discriminator.A line of transmission of the information contains a string of and combine the cent of: The usual PLC is 8 machines, certainly also having 16 machines. We can be an at the time of sending out the data a send out to the other party, also can be 88 send out the data to the other party, an and 8 differentiations are also the as that we say to send out the data and combine sends out the data. A speed is more and slowly, but as long as 2 or three lines can solve problem, and can use the telephone line to carry on the long range control. But combine the ocular transmission speed is very quick of, it is a string of ocular of 25600%, occupy the advantage in the short distance, the in view of the fact TTL electricity is even, being limited by the scope of one meter generally, it combine unwell used for the data transmission of the long pull, thus the cost is too expensive.Under a lot of circumstances we are total to like to adopt the string to combine the conversion chip to carry on deliver, under this kind of circumstance not need us to carry on to deposited the machine to establish too and complicatedly, but carry on the data exchanges through the data transmission instruction directly, but is not a very viable way in the correspondence, because the PLC of the other party must has been wait for your data exportation at the time of sending out the data, it cant do other works.When you are reading the book, you hear someone knock on door, you stop to start up of affair, open the door and combine to continue with the one who knock on door a dialogue, the telephone of this time rang, you signal hint to connect a telephone, after connecting the telephone through, return overdo come together knock on door to have a conversation, after dialogue complete, you continue again to see your book, this kind of circumstance we are called the interruption to it, it has the authority, also having sex of have the initiative, the PLC had such function .Its characteristics lie in us and may meet the urgently abrupt affairs in the operation process of the equipments, we want to stop to start immediately up of work, the whereabouts manages the more important affair, this kind of circumstance is we usually meet of, PLC while carry out urgent mission, total will keep the current appearance first, for example the address of the procedure, CPU of tired add the machine data etc., be like to stick down which the book that we see is when we open the door the page or simply make a mark, because we treat and would still need to continue immediately after book of see the behind. The CPU always does the affair that should do according to our will, but your mistake of give it an affair, it also would be same to do, this we must notice.The interruption is not only a, sometimes existing jointly with the hour several inside break, break off to have the preferred Class, they will carry out the interruption of the higher Class according to persons request. This kind of breaks off the medium interruption to also became to break off the set. The Class that certainly break off is relevant according to various resources of CPU with internal PLC, also following a heap of capacity size of also relevant fasten.The contents that break off has a lot of kinds, for example the exterior break off, correspondence in of send out and accept the interruption and settle and the clock that count break off, still have the WDT to reset the interruption etc., they enriched the CPU to respond to the category while handle various business. Speak thus perhaps you cant comprehend the internal structure and operation orders of the interruption completely also, we do a very small example to explain.Each equipment always will not forget a button, it also is at we meet the urgent circumstance use of, which is nasty to stop the button. When we meet the Human body trouble and surprised circumstances we as long as press it, the machine stops all operations immediately, and wait for processing the over surprised empress recover the operation again. Nasty stop the internal I/ O of the internal CPU of the button conjunction PLC to connect up, be to press button an exterior to trigger signal for CPU, the CPU carries on to the I/ O to examine again, being to confirm to have the exterior to trigger the signal, CPU protection the spot breaks off procedure counts the machine turn the homologous exterior I/ O automatically in the procedure to go to also, be exterior interruption procedure processing complete, the procedure counts the machine to return the main procedure to continue to work. Have 1:00 can what to explain is we generally would nasty stop the button of exterior break off to rise to the tallest Class, thus guarantee the safety.When we are work a work piece, giving the PLC a signal, counting PLC inner part the machine add 1 to compute us for a day of workload, a count the machine and can solve problem in brief, certainly they also can keep the data under the condition of dropping the electricity, urging the data not to throw to lose, this is also what we hope earnestly.The PLC still has the function that the high class counts the machine, being us while accept some dates of high speed, the high speed that here say is the data of the in all aspects tiny second class, for example the bar code scanner is scanning the data continuously, calculating high-speed signal of the data processor DSP etc., we will adopt the high class to count the machine to help we carry on count. It at the PLC carries out the procedure once discover that the high class counts the machine to should of interruption, will let go of the work on the hand immediately. The trapezoid diagram procedure that passes by to weave the distance again explains the high class for us to carry out procedure to count machine would automatic performance to should of work, thus rise the Class that the high class counts the machine to high one Class.You heard too many this phrases perhaps: crash, the meaning that is mostly is a workload of CPU to lead greatly, the internal resources shortage etc. the circumstance cant result in procedure circulate. The PLC also has the similar circumstance, there is a watchdog WDT in the inner part of PLC, we can establish time that a procedure of WDT circulate, being to appear the procedure to jump to turn the mistake in the procedure movement process or the procedure is busy, movement time of the procedure exceeds WDT constitution time, the CPU turn but the WDT reset the appearance. The procedure restarts the movement, but will not carry on the breakage to the interruption.The PLC development has already entered for network ages of correspondence from the mode of the one, and together other works control the net plank and I/ O card planks to carry on the share easily. A state software can pass all se hardwires link, more animation picture of keep the view to carries on the control, and cans pass the Internet to carry on the control in the foreign land, the blast-off that is like the absolute being boat No.5 is to adopt this kind of way to make airship go up the sky.The development of the higher layer needs our continuous effort to obtain. The PLC emergence has already affected a few persons fully, we also obtained more knowledge and precepts from the top one experience of the generation, coming to the continuous development PLC technique, push it toward higher wave tide.Knowing the available PLC network options and their best applications will ensure an efficient and flexible control system design.The programmable logic controllers (PLC) ability to support a range of communication methods makes it an ideal control and data acquisition device for a wide variety of industrial automation and facility control applications. However, there is some confusion because so many possibilities exist. To help eliminate this confusion, lets list what communications are available and when they would be best applied.To understand the PLC communications versatility, lets first define the terms used in describing the various systems.ASCII: This stands for American Standard Code for Information Interchange. As shown in Fig. 1, when the letter A is transmitted, for instance, its automatically coded as 65 by the sending equipment. The receiving equipment translates the 65 back to the letter A. Thus, different devices can communicate with each other as long as both use ASCII code.ASCII module: This intelligent PLC module is used for connecting PLC to other devices also capable of communicating using ASCII code as a vehicle.Bus topology: This is a linear local area network (LAN) arrangement, as shown in Fig. 2A, in which individual nodes are tapped into a main communications cable at a single point and broadcast messages. These messages travel in both directions on the bus from the point of connection until they are dissipated by terminators at each end of the bus.CPU: This stands for central processing unit, which actually is that part of a computer, PLC, or other intelligent device where arithmetic and logical operations are performed and instructions are decoded and executed.Daisy chain: This is a description of the connection of individual devices in a PLC network, where, as shown in Fig. 3, each device is connected to the next and communications signals pass from one unit to the next in a sequential fashion.Distributed control: This is an automation concept in which portions of an automated system are controlled by separate controllers, which are located in close proximity to their area of direct control (control is decentralized and spread out over the system).Host computer: This is a computer thats used to transfer data to, or receive data from, a PLC in a PLC/computer network.Intelligent device: This term describes any device equipped with its own CPU.I/O: This stands for inputs and outputs, which are modules that handle data to the PLC (inputs) or signals from the PLC (outputs) to an external device.Kbps: This stands for thousand bits per second, which is a rate of measure for electronic data transfer.Mbps: This stands for million bits per second.Node: This term is applied to any one of the positions or stations in a network. Each node incorporates a device that can communicate with all other devices on the network.Protocol: The definition of how data is arranged and coded for transmission on a network.Ring topology. This is a LAN arrangement, as shown in Fig. 2C, in which each node is connected to two other nodes, resulting in a continuous, closed, circular path or loop for messages to circulate, usually in one direction. Some ring topologies have a special loop back feature that allows them to continue functioning even if the main cable is severed.RS232. This is an IEEE standard for serial communications that describes specific wiring connections, voltage levels, and other operating parameters for electronic data communications. There also are several other RS standards defined.Serial: This is an electronic data transfer scheme in which information is transmitted one bit at a time.Serial port: This the communications access point on a device that is set up for serial communications.Star topology. This is a LAN arrangement in which, as shown in Fig. 2B, nodes are connected to one another through a central hub, which can be active or passive. An active hub performs network duties such as message routing and maintenance. A passive central hub simply passes the message along to all the nodes connected to it.Topology: This relates to a specific arrangement of nodes in a LAN in relation to one another.Transparent: This term describes automatic events or processes built into a system that require no special programming or prompting from an operator.Now that were familiar with these terms, lets see how they are used in describing the available PLC network options.PLC network optionsPLC networks provide you with a variety of networking options to meet specific control and communications requirements. Typical options include remote I/O, peer-to-peer, and host computer communications, as well as LANs. These networks can provide reliable and cost-effective communications between as few as two or as many as several hundred PLC, computers, and other intelligent devices.Many PLC vendors offer proprietary networking systems that are unique and will not communicate with another make of PLC. This is because of the different communications protocols, command sequences, error-checking schemes, and communications media used by each manufacturer.However, it is possible to make different PLC talk to one another; whats required is an ASCII interface for the connection(s), along with considerable work with software.Remote I/0 systemsA remote I/O configuration, as shown in Fig. 4A, has the actual inputs and outputs at some distance from the controller and CPU. This type of system, which can be described as a master-and-slave configuration, allows many distant digital and analog points to be controlled by a single PLC. Typically, remote I/Os are connected to the CPU via twisted pair or fiber optic cables.Remote I/O configurations can be extremely cost-effective control solutions where only a few I/O points are needed in widely separated areas. In this situation, its not always necessary, or practical for that matter, to have a controller at each site. Nor is it practical to individually hard wire each I/O point over long distances back to the CPU. For example, remote I/O systems can be used in acquiring data from remote plant or facility locations. Information such as cycle times, counts, duration or events, etc. then can be sent back to the PLC for maintenance and management reporting.In a remote I/O configuration, the master controller polls the slaved I/O for its current I/O status. The remote I/O system responds, and the master PLC then signals the remote I/O to change the state of outputs as dictated by the control program in the PLC memory. This entire cycle occurs hundreds of times per second.Peer-to-peer networksPeer-to-peer networks, as shown in Fig. 4B, enhance reliability by decentralizing the control functions without sacrificing coordinated control. In this type of network, numerous PLC are connected to one another in a daisy-chain fashion, and a common memory table is duplicated in the memory of each. In this way, when any PLC writes data to this memory area, the information is automatically transferred to all other PLCs in the network. They then can use this information in their own operating programs.With peer-to-peer networks, each PLC in the network is responsible for its own control site and only needs to be programmed for its own area of responsibility. This aspect of the network significantly reduces programming and debugging complexity; because all communications occur transparently to the user, communications programming is reduced to simple read-and-write statements.In a peer-to-peer system, theres no master PLC. However, its possible to designate one of the PLC as a master for use as a type of group controller. This PLC then can be used to accept input information from an operator input terminal, for example, sending all the necessary parameters to other PLC and coordinating the sequencing of various events.Host computer linksPLC also can be connected with computers or other intelligent devices. In fact, most PLC, from the small to the very large, can be directly connected to a computer or part of a multi drop host computer network via RS232C or RS422 ports. This combination of computer and controller maximizes the capabilities of the PLC, for control and data acquisition, as well as the computer, for data processing, documentation, and operator interface.In a PLC/computer network, as shown in Fig. 4C, all communications are initiated by the host computer, which is connected to all PLC in a daisy-chain fashion. This computer individually addresses each of its networked PLC and asks for specific information. The addressed PLC then sends this information to the computer for storage and further analysis. This cycle occurs hundreds of times per second.Host computers also can aid in programming PLC, powerful programming and documentation software is available for program development. Programs then can be written on the computer in relay ladder logic and downloaded into the PLC. In this way, you can create, modify, debug, and monitor PLC programs via a computer terminal.In addition to host computers, PLC often must interface with other devices, such as operator interface terminals for large security and building management systems. Although many intelligent devices can communicate directly with PLC via conventional RS232C ports and serial ASCII code, some dont have the software ability to interface with individual PLC models. Instead, they typically send and receive data in fixed formats. Its the PLC programmers responsibility to provide the necessary software interface.The easiest way to provide such an interface to fixed-format intelligent devices is to use an ASCII/BASIC module on the PLC. This module is essentially a small computer that plugs into the bus of the PLC. Equipped with RS232 ports and programmed in BASIC, the module easily can handle ASCII communications with peripheral devices, data acquisition functions, programming sequences, number crunching, report and display generation, and other requirements.Access, protocol, and modulation functions of LANsBy using standard interfaces and protocols, LANs allow a mix of devices (PLC, PCs, mainframe computers, operator interface terminals, etc.) from many different vendors to communicate with others on the network.Access: A LANs access method prevents the occurrence of more than one message on the network at a time. There are two common access methods.Collision detection is where the nodes listen to the network and transmit only if there are no other messages on the network. If two nodes transmit simultaneously, the collision is detected and both nodes retransmit until their messages get through properly.Token passing allows each node to transmit only if its in possession of a special electronic message called a token. The token is passed from node to node, allowing each an opportunity to transmit without interference. Tokens usually have a time limit to prevent a single node from tying up the token for a long period of time.Protocol: Network protocols define the way messages are arranged and coded for transmission on the LAN. The following are two common types.Proprietary protocols are unique message arrangements and coding developed by a specific vendor for use with that vendors product only.Open protocols are based on industry standards such as TCP/IP or ISO/OSI models and are openly published.Modulation: Network modulation refers to the way messages are encoded for transmission over a cable. The two most common types are broadband and baseband.Network transmission interfacesThe vast majority of PLC communications is done via RS232C and twisted pair cables. Most PLC have an RS232 port and are capable of handling communications with host computers, printers, terminals, and other devices. Maximum transmission speed is 19.2 Kbps.The distance and data transmission rates are standards for the various interfaces. Their actual performance is a function of the driving devices and varies significantly between manufacturers. As such, you should consult the manufacturers specifications for actual distance and data transmission rate capabilities.The only real limitation on RS232C is the 50-ft recommended distance between devices. While RS232C installations often can achieve cabling distances greater than this, the unbalanced design of the interface results in a greater susceptibility to surrounding electrical noise and reduced data integrity. This is particularly true where electromagnetic interference (EMI) and radio-frequency interference (RFI) are known to exist.When longer transmission distances are needed, RS422 is a better choice. Unlike the RS232C interface, RS422 is balanced. Each of its primary signals consists of two wires that are always at opposite logic levels, with respect to signal ground. As a result, the interface can achieve longer transmission distance (4000 ft) and higher data transmission rates (up to 90 Kbps). In shorter runs (less than 50 ft), data transfer can reach 10 Mbps.Fiber optic communications are gaining greater acceptance and are being used in more and more installations. Fiber optic cable is virtually impervious to harsh environmental conditions and electrical noise. Also, these links can span extremely long distances and transmit data at very high speeds.中文译文可编程控制器技术可编程序控制器(Programmable Logic Controller,习惯上简称为PLC)是以微处理器为核心的通用工业自动化装置。是20世纪60年代末在继电器控制系统的基础上开发出来的,它将传统的继电器控制技术与计算机技术和通信技术融为一体,具有结构简单、性能优越、可靠性高、灵活通用、易于编程、使用方便等优点。具体来说,PLC的特点表现为以下几个方面:硬件的可靠性高。PLC专业在工业环境的恶劣条件下应用而设计。一个设计良好的PLC能置于有很强电噪声、电磁干扰、机械振动、极端温度和湿度很大的环境中。在硬件设计方面,首先是选用优质器件,再就是采用合理的系统结构,加固、简化安装,使它易于抗振冲击,对印刷电路板的设计、加工和焊接都采取了极为严格的工艺措施,而在电路、结构及工艺上采取了一些独特的方式。由于PLC本身具有很高的可靠性,所以在发生故障的部位大多集中在输入/输出的部位以及如传感器件、限位开关、光电开关、电磁阀、电机等外围装置上。编程简单,使用方便。用微机实现自动控制,常使用汇编语言编程,难于掌握,要求使用者具有一定水平的计算机硬件和软件知识。PLC采用面向控制过程、面向问题的编程方式,与目前微机控制常用的汇编语言相比,虽然在PLC内部增加了解释程序,增加了程序的执行时间,但对大多数的机电控制设备来说,这种损耗是微不足道的。接线简单,通用性好。在电信号匹配的情况下,PLC的接线只需将输入信号的设备(按钮、开关等)与PLC输入端子连接,将接受输出信号执行控制任务的执行元件(接触器、电磁阀)与PLC输出端子连接。接线简单、工作量少,省去了传统的继电器控制系统的接线和拆线的麻烦。PLC的编程逻辑提供了能随要求而改变的逻辑关系,这样生产线的自动化过程就能随意改变。这种性能使PLC具有很高的经济效益。用于连接现场设备的硬件接口实际上已经设计成为PLC的组成部分,模块化的自诊断接口电路能指出故障,并易于排除故障与替换故障部件,这样的软硬件设计就使现场电气人员与技术人员易于使用。可连接为控制网络系统。PLC可连接成为功能很强的网络系统。一般PLC网络可以分为两类:一类是低速网络,采用主从方式通信,传输速率从几千波特到上万波特,传输距离为5002500m;另一类为高速网络,采用令牌传送方式通信,通信速率1M10Mbps,传输距离为5001000m,网上结点达1024。这两类网络相连,可以兼容不同类型的可编程控制器和计算机,从而组成控制范围很大的局部网络。易于安装,便于维护。PLC安装简单而且功能强大,其相对小的体积使之能安装在通常继电器控制箱所需空间的一半的地方。在大型PLC系统的安装中,远程输入/输出安放在最优地点。远程I/O站通过同轴电缆或双轴线连向CPU,这种配置大大减少了物料和劳力,远程子系统方法也意味着系统不同部分可在到达安装场地安装时间。从一开始,PLC便以易维护作为设计目标。由于几乎所有的器件都是模块化的,维护时只需要换模块级插入式部件,故障检测电路将诊断指示器嵌在每一部件中,能指示器件是否正常工作,借阻于编程设备可见输入/输出是ON还是OFF,还可写编程指令来报告故障。另外,PLC把自动化技术、计算机技术和通信技术融为一体,并且还可以完成以下功能:逻辑控制、定时控制、计数控制、步进控制、A/D和D/A转换、数据处理、通信联网、对控制系统监控。总的来说,PLC的推广应用已在世界范围内形成热潮,目前PLC发展方向主要是朝着小型化、廉价化、标准化、系列化、智能化、高速化、大容量化、网络化方面发展,这将使PLC功能更强,可靠性更高,使用更方便,适用而更广PLC的内部包含了具有中央处理器的CPU,并带有外部I/O口扩展的I/O接口地址和存储器三大块组成,CPU的核心是由一个或者多个累加器组成,它们具有逻辑的数学运算能力,并能读取程序存储器的内容通过计算后去驱动相应的存储器和I/O接口;I/O口将内部累加器和外部的输入和输出系统连接起来,并将相关的数据存入程序存储器或者数据存储器中;存储器可以将I/O口输入的数据存入存储器中,并在工作时调转到累加器和I/O接口上,存储器分程序存储器ROM和数据存储器RAM,ROM可以将数据永久的存入存储器中,而RAM只能作为CPU计算时临时计算使用的缓冲空间。PLC的抗干扰是极其优秀的,我们根本不用去关心它的使用寿命和工作场合的恶劣,这些所有的问题已不再成为我们失败的主题,而留给我们的是关心如何来利用PLC的内部资源为我们加强设备的控制能力,使我们的设备更加的柔性。PLC的语言并不是我们所想象的汇编语言或C语言来进行编程,而是采用原有的继电器控制的梯形图,使得电气工程师在编写程序时很容易就理解了PLC的语言,而且很多的非电气专业人士也对PLC很快认识并深入。以上仅仅是PLC的优点之一,这也是人们比较容易理解的一部分,在很多的设备中,人们已不再希望看到太多的控制按钮,它们不但容易损坏而且极易产生人为的失误,小的并不是主要的失误也许你还能够接受;但过大的甚至是致命的失误是我们无法容忍的。新的技术总是为了给我们带来更安全和便捷的操作,使得我们面临的一大堆问题一扫而光,你有了解过HMI吗?这里说HMI你根本不清楚它是什么,也没有兴趣了解,换一个中文把它说明为触摸屏或者人机界面你就知道了,它和PLC的结合给了我们更大的空间。HMI控制不仅仅是减少了控制按钮,增加控制的灵活性,更主要的它是可顺序性的,而且在能够改变数据输入和数据输出反馈,在温度控制曲线的模拟也能直观的显示出来。并且能够通过编写功能帮助程序来提供各种力所能及的帮助,使得操作者减少不必要的失误。HMI的厂商目前也越来越多,功能也越来越强,价格也越来越低,使用的面越来越广。HMI的前景可以说十分的看好。在很多场合,单靠单机的控制是无法保证设备的顺畅运行,而通过设备与设备的信息交流达到我们想要的效果。比如在前包装和后工序的检测,我们就要将包装的信息反馈到检测处,而检测处的信息也要反馈到包装来。这样通过信息共享来使得两者之间链接起来,形成一个共体,从而使的两者间的配合更加的紧密,在彼此间达到映影相挥的效果。PLC的通信已经愈来愈体现它的价值,在PLC与PLC之间的通信,能够通过信息的沟通和数据的共享来保证设备之间的相互协调,已达到互补的效果。PLC之间的数据转换采用RS232接口来传送数据,而RS232接口只能保证10米的传输距离,如果在1000米的距离内我们可以通过RS485来进行通信,更长的距离只能通过MODEL来进行传输。PLC的数据传送只是将内部的数据传送到对方的一块连续的地址中,我们把它称为一个表,对方的PLC通过读取表中的数据来进行操作。如果表中的数据是一个一般设置的数据的话,那只是一般的数据传送,比如今天的油价上升了,我要把油价的价格传送到所有的输油机上,那就是数据的共享;而当表中的数据是一段控制PLC的指令程序,那就很有难度了,比如你要控制一台机器人来按你想象的动作工作,你会给它编制一段程序并以数据的形式发送过去。信息输送的形式有单工位、半双工位和全双工位的分别。单工位的意义也就是说两者之间,一个只能发送,而一个只能接收,比如一个特务他只能接收上司的指示,而无法给上司回复;半双工位也就是两个能都能发送和接受数据,但不能同时发送和接受,比如你打电话时是不能接电话,对方也一样;而全双工位是两者之间都能发送和接受数据,并可同时发送和接受。像互联网就是典型的例子。信息输送的过程也有同步和异步之分:同步的意义在于发送数据时数据线和时钟线是同步的,也就是数据信号和时钟信号同时由CPU进行发送,这需要彼此都要专门的时钟信号来进行传送和接送,并且是强制性的,这种方法的特点在于它的速度极快、但相应占用CPU的工作时间也相对的要长、同时技术难度也非常的大。它的要求在于在一帧的数据传送中不能有一位的误差,不然的话整个数据将发生错误,这在硬件上是一个比较大的难度。在一些专用的设备中应用的越来越广泛,像专用的医疗设备、数字信号设备等,在比较单一数据的传输中,它的效果非常的好。而异步是应用范围最广泛的,这得益于它的技术难度相对要小、同时不需要配制专门的时钟信号、它的特点在于,它的数据是间隔性的,离散性的发送和接受,当CPU太忙的时候可以停顿性去工作,在硬件上也减少了难度,同时数据的丢失相对要少,我们可以通过数据的检测来观察我们发送的数据是否有错误,像奇偶法、累加法和八位效验法等,都可以用来帮助我们检测发送的数据是否有错误发生,通过反馈来进行辨别。信息的传送口线有串口和并口之分:通常的PLC是8位机,当然也有16位机。我们在发送数据的时候可以是一位一位的发送给对方,也可以8位8位的将数据发送到对方,一位和8位区别也就是我们所说的串口发送数据和并口发送数据。串口速度比较慢,但只要两条或者三条口线就能解决问题,并能借用电话线来进行远程控制。而并口的传送速度是极快的,它是串口的256倍,在短距离占有优势,由于是TTL电平,一般限于1米的范围,它并不适用于长距离的数据传送,这样成本太昂贵了。很多的情况下我们总喜欢采用串并转换芯片来进行传输,这种情况下不需要我们进行过于复杂的寄存器设置了,而直接通过数据传送指令进行数据交流,但在通信中并不是一个十分可行的办法,因为在发送数据的时候对方的PLC必须一直等待你的数据输出,它不能去做其他的工作。当你在看书的时候,你听到有人敲门、你停下手上的事情、去打开门、并同敲门者对话、这个时候电话响了、你示意接个电话、在接完电话后、回过头来同敲门者继续对话、对话完毕后、你再继续看你的书,这种情况我们把它称为中断,它具有权威性,也具有优先性,PLC具备了这样的功能。它的特点在于我们在设备的操作过程中可能会遇到紧急的突发事件,我们要立刻的停下手上的工作,去处理更重要的事情,这种情况是我们经常所遇到的,PLC在去执行紧急的任务时,总会先保存目前的状态,比如程序的地址,CPU的累加器数据等,就像我们去开门时要记下我们看的书在第几页了或者干脆作个记号,因为我们待会还要继续接着看后面的书。CPU总是按照我们的意愿去做应该做的事情,但你错误的给它一件事情,它也会同样的去做,这一点我们必须注意。中断并不是只有一个,有时会同时存在几个中断,中断具有优先的级别,他们会根据人的要求去执行更高级别的中断。这种中断中的中断也就形成了中断嵌套。当然中断的级别根据各种PLC内部CPU的资源有关,同时也跟堆栈的容量大小也有关系。中断的内容有很多种,比如外部中断、通信中的发送和接受中断、定时和计数的时钟中断、还有WDT复位中断等,它们丰富了CPU在处理各种事务时响应种类。这样讲也许你并不能完全理解中断的内部结构和操作顺序,我们做一个小小的例子来说明.每一个设备总是不会忘记有一个按钮,它也是在我们遇到紧急情况时使用的,那就是急停按钮。当我们遇到人身事故和意外情况时我们只要按下它,机器立即停止所有的操作,并等待处理完意外后再恢复操作。急停按钮连接PLC内部CPU的内部I/O接口上,当按钮给CPU一个外部触发信号时,CPU对I/O进行再次检测,当确认有外部触发信号时,CPU保护现场并将程序计数器自动转到相应的外部I/O中断程序中去,当外部中断程序处理完毕,程序计数器返回到主程序继续工作。有一点可以说明的是我们一般会把急停按钮的外部中断升至最高级别,从而保证安全。当我们在工作完一
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:基于S7-200PLC步进电机调速控制
链接地址:https://www.renrendoc.com/p-23180233.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

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