下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、plc(即可编程控制器) 是为了在机械控制中代替必要的继电器时序电路而发明的一种设备。plc必须考虑它的输入端口并且以他们的状态为依据,来断开和接通它的输出端口。用户通常经过给出理想结果的软件或者上编程其进入程序当中。plc别用在很多的领域中,人们在从事机械制造,包装,材料加工等不计其数的工业生产中。plc是必不可少的。如果不用plc,那么将浪费大量的时间和金钱。几乎任何需要电器控制的设备都需要plc。例如,在开关闭合时需要一个线圈接通5秒,然后不管开关接通多长时间都将线圈断开。借于此我们可以做一个简单的外部定时器。如果过程中有更多的开关和线圈时,那就需要更的外部定时器。正如人们所见,越大的操
2、作系统就越能应用到plc。我们可以编写plc的程序来计算输入量,并且在特定的时候接通线圈。plc只要由cpu、存储器、和输入/输出端口等组成。我们可以把plc看成一个里面充满了成千上万的继电器、计数器、定时器和数据存储单元的一个大盒子。2. 1plc每个元件的作用 输入继电器(接触器):输入接触器plc与外界的连接口。输入继电器能接收到开关,传感器等元件发出的信号,并且不仅仅当作继电器使用而且还可以用来做晶体管。计算器:计数器用来计数。有普通计数器和高速计数器两类。普通计数器主要用来对程序中反映的信号进行计数实现。告诉计数器则用来对高于plc扫描频率的机外脉冲计数。计数器工作中需要一个表示计数
3、器状态的位元件及一个存储计数当前值的字元件,也为位复合元件。定时器:定时器相当于继电接触器系统中的时间继电器,用于时间控制。plc中的定时对脉冲计数实现。由于定时器以对时基技术的方式计时,在存储器数值的存储单元字长一定时,定时器的计时时间长短就受到分辨率的影响。输出继电器:输出继电器存储程序执行的结果。每个输出继电器在存储区中占一位,每一个输出继电器与一个输出口相对应。输出继电器上通过隔离电路,将程序运算结果到输出口并决定输出口所连接器件的工作状态。正常运行中输出继电器的状态只由程序的执行决定。数据存储单元:数据存储单元用来存放“数字”类数据,占用的存储单元可以是字节、字,也可以是双字。数据存
4、储单元存储数据量大。2. 2plc工作过程plc的工作过程是一个持续扫描的过程。通常分为3个阶段。如图1所表示:1) 输出处理:plc在输入采样阶段,首先扫描所有输入端子,并将个输入状态存入内存中各个对应的输入映像寄存器中。此时,输入映像寄存器被刷新。接着,进入程序执行阶段,在程序执行阶段或输出阶段,输入映像寄存器与外界连接,无论输入信号如何变化,其内容保持不变,直到下一个扫描周期的输入采样阶段,才重新写入输入端的新内容。2) 程序执行阶段:根据plc梯形图程序扫描原则,当指令中涉及到输入输出状态时,plc就从输入映像存储器中“读入”上一阶段采入的对应的输入端子状态,从输出映像寄存器“读入”对
5、应元件映像寄存器的当前状态。然后,进行相应的运算,运算结果再存入元件的寄存器中。3) 输出刷新阶段:在所有指令执行完毕后,输出映像寄存器中所有输出继电器的状态(接通/断开)在输出刷新阶段存到输出锁存器中,通过一定方式输出,驱动外部负载。图1 plc的工作原理fig.1 the process of the plca plc (programmable logic contraller) is a device that was invented to replace the necessary sequential relay circuits for machine control.the
6、plc works by looking at its inputs and depending upon their state,turning on/off its outputs.the user enters a program,usually viasoftware programmer,that gives the desired results.plc is used in many “real world”applications.if there is industry prerent,chances are good that there is a plc presrnt.
7、if you are involved in matching,packaging,material handing,automated assembly or countless other industries,you are probably already using them.if you are not,you are wasting money and time.almost any application that needs some type of electrical control has a need for a plc.for example,lett assume
8、 that that when a switch turns on we want to turn a solenoid on for 5 seconds and then turn it off regardless of how long the switch is on for.we can do this with a simple external timer.but what if the process included 10 switches and solenoids? we would need 10 external timers.but what if the proc
9、ess also needed to count how many times the switches individually turned on,we need a lot of external counters.as we can see,the bigger the process the more of a need we have for a plc.we can simply program the plc to count its inputs and turn the solenoids on for the specified time.the plc mainly c
10、onsists of a cpu,memory ares,and appropriate circuits to receive input/outputdata,we can actually consider the plc to be a box full of hundreds or thousands of separate relays,counters,times and data storage locations.1. 1the role of the each part 待添加的隐藏文字内容3input relays-(contacts):these are connect
11、ed to the outside world.they physically exist and receive signals from switchs,sensors,etc.typically they are not relays but rather they are transistors. counters: there again do not physically exist.they are simulated counted and they can be programmed to count pulses.typically these counters can c
12、ount up,down or both up and down.since they are simulated,they are limited in their counting speed.some manufacturers also include high-speed counters that are hardware based.we can think of these as physically existing.most times these counters can count up,down or up and down.timers:these also do
13、not physically exist.they come in many varieties and increments.the most common type is an on-delay type.others include off-delay and both retentive and non-retentive types.increments vary from 1ms through.output relays-(coils):these are connected to the outside world.they physically exist and send
14、on/off signals to solenoids,lights,etc.they can be transistors,relays,or trials depanding upon the model chosen.data storage:typically there are registers assigned to simply store data.they are usually used as temporary storage for math or data manipulation.they can also typically be used to store d
15、ata when power is removed from the plc.upon power-up they will still have the same contents as before power was removed.very convenient and necessary!1. 2the work process of the plc a plc works by continually scanning a program.we can think of this scan cycle as consisting of three important steps,a
16、s shown in figure 1.there are typically the others are checking the system and updating the current internal counter and timer values.figure 1 the work prcess of plcstep 1 check input status:first the plc takes a look at each input to determine if it is on or off.in other words,is the sensor connect
17、ed to the first input on? how about the second input? how about the third it records this data into its memory to be used during the next step.step 2 exeaute program:next the plc executes your program one instruction at a time.maybe your program said that if the first input was on then it should tur
18、n in zhe first out.since it already kowns which inputs are on/off from the previous step,it will be able to decide whether the first output should be turned on based on the state of the first input.it will store the execution results for use later during the next step.step 3 update output status:fially the
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版企业销售业务员合作协议范本3篇
- 2025年度猪圈建造与农业循环经济合同4篇
- 二零二五版电影院装修升级合同范本3篇
- 2025版学校教师聘用合同范本:职称晋升条款详解3篇
- 2025年度体育场馆草坪铺设与维护服务合同4篇
- 2025年度货车司机劳动合同(附交通事故责任及赔偿)
- 2025年度智能科技股权众筹协议书模板
- 二零二五年度离职员工保密及竞业禁止合同模板保障公司权益
- 二零二五年度网红直播广告合作简易合同
- 2025年度货车司机劳动合同(含车辆安全操作及维护培训)
- 高考语文复习【知识精研】《千里江山图》高考真题说题课件
- 河北省承德市2023-2024学年高一上学期期末物理试卷(含答案)
- 高中物理斜面模型大全(80个)
- 012主要研究者(PI)职责药物临床试验机构GCP SOP
- 农耕研学活动方案种小麦
- 2024年佛山市劳动合同条例
- 污水管网规划建设方案
- 城镇智慧排水系统技术标准
- 采购管理制度及流程采购管理制度及流程
- 五年级美术下册第9课《写意蔬果》-优秀课件4人教版
- 节能降耗课件
评论
0/150
提交评论