



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
PLC的工作原理可编程控制器,英文称ProgrammableLogicController,简称PLC。PLC是基于电子计算机,且适用于工业现场工作的电控制器。它源于继电控制装置,但它不像继电装置那样,通过电路的物理过程实现控制,而主要靠运行存储于PLC内存中的程序,进行入出信息变换实现控制。 PLC基于电子计算机,但并不等同于普通计算机。普遍计算机进行入出信息变换,多只考虑信息本身,信息的入出,只要人机界面好就可以了。而PLC则还要考虑信息入出的可靠性、实时性,以及信息的使用等问题。特别要考虑怎么适应于工业环境,如便于安装,抗干扰等问题。当PLC投入运行后,其工作过程一般分为三个阶段,即输入采样、用户程序执行和输出刷新三个阶段。完成上述三个阶段称作一个扫描周期。在整个运行期间,PLC的CPU以一定的扫描速度重复执行上述三个阶段。1输入采样阶段在输入采样阶段,PLC以扫描方式依次地读入所有输入状态和数据,并将它们存入I/O映象区中的相应得单元内。输入采样结束后,转入用户程序执行和输出刷新阶段。在这两个阶段中,即使输入状态和数据发生变化,I/O映象区中的相应单元的状态和数据也不会改变。因此,如果输入是脉冲信号,则该脉冲信号的宽度必须大于一个扫描周期,才能保证在任何情况下,该输入均能被读入。2.用户程序执行阶段在用户程序执行阶段,PLC总是按由上而下的顺序依次地扫描用户程序(梯形图)。在扫描每一条梯形图时,又总是先扫描梯形图左边的由各触点构成的控制线路,并按先左后右、先上后下的顺序对由触点构成的控制线路进行逻辑运算,然后根据逻辑运算的结果,刷新该逻辑线圈在系统RAM存储区中对应位的状态;或者刷新该输出线圈在I/O映象区中对应位的状态;或者确定是否要执行该梯形图所规定的特殊功能指令。即,在用户程序执行过程中,只有输入点在I/O映象区内的状态和数据不会发生变化,而其他输出点和软设备在I/O映象区或系统RAM存储区内的状态和数据都有可能发生变化,而且排在上面的梯形图,其程序执行结果会对排在下面的凡是用到这些线圈或数据的梯形图起作用;相反,排在下面的梯形图,其被刷新的逻辑线圈的状态或数据只能到下一个扫描周期才能对排在其上面的程序起作用。3. 输出刷新阶段当扫描用户程序结束后,PLC就进入输出刷新阶段。在此期间,CPU按照I/O映象区内对应的状态和数据刷新所有的输出锁存电路,再经输出电路驱动相应的外设。这时,才是PLC的真正输出同样的若干条梯形图,其排列次序不同,执行的结果也不同。另外,采用扫描用户程序的运行结果与继电器控制装置的硬逻辑并行运行的结果有所区别。当然,如果扫描周期所占用的时间对整个运行来说可以忽略,那么二者之间就没有什么区别了。一般来说,PLC的扫描周期包括自诊断、通讯等,即一个扫描周期等于自诊断、通讯、输入采样、用户程序执行、输出刷新等所有时间的总和。The working principle of PLCProgrammable controller, English called ProgrammableLogicController, referred to as PLC. PLC is based on a computer, and apply to the industrial scene, the work of the controller. It originates from the relay control devices, but it does not relay device, through circuit to achieve control of the physical processes, and mainly rely on operation in the memory stored in the PLC process, transform information into and out of control.PLC based on a computer, but not equivalent to ordinary computer. Universal computer into the information conversion, considered only the information itself, information into and out of, as long as the human-computer interface can be a good. The PLC will have to consider the information on the reliability, real-time, and information use and so on. Special consideration for how to adapt to the industrial environment, such as easy to install, the anti-jamming problems.When PLC is put into operation, its work process is generally divided into three stages, namely the input sampling, the user program execution and outputs a refresh in three stages. The completion of the three phase is called a scan cycle. During the whole operation, PLC CPU to scan speed repeating the above three stages.1.the input sampling phaseIn the input sampling phase, PLC to scan sequentially reads all input states and data, and put them into I / O image area in the corresponding unit. The input sampling after the end, into the user program execution and outputs a refresh phase. In the two stage, even though the input state and the data changes, I / O mappings in unit area corresponding to the state and data will not change. Therefore, if the input is a pulse signal, the pulse width must be greater than one scanning cycle, to ensure that in any case, the input can be read.2. the user program execution phaseIn the user program execution phase, PLC always according to the order to scan user program ( ladder ). In the scanning each of the ladder, and always first scanning ladder diagram left by the contact of the control circuit, and according to the first left, after the first sequence of the control circuit by the contact is in the form of logical calculation, and then based on the result of the logic operation, refresh the logic in the system RAM storage coil District in the corresponding state; or refresh the output coils in I / O image area corresponding to a state; or to determine whether to execute the ladder diagram under the special function instruction.Namely, in the user program execution process, only the input points in I / O map area of the state and the data will not change, while the other output point and soft equipment in I / O image area or system RAM storage area within the state and data may have changed, but the upper ladder diagram, the program execution results will be on the following is typically used to these coils or data ladder play a role; instead, on the row below the ladder diagram, which is a refresh logic coil state or data only to the next scan cycle to row in the above procedure plays role.3.outputs a refresh phaseWhen scanning the user program ended, PLC to output the refresh phase. During this period, CPU according to I / O image area corresponding to the state and data refresh all of the output of the latch circuit, the output circuit drives the corresponding peripheral. At this time, is PLC real outputThe same number of ladder diagram, the order of execution of different, the different results. In addition, by scanning the user program running results and relay control device of hard logic running in parallel with the result different. Of course, if the scan cycle time of the whole operation can be ignore
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025黑龙江牡丹江东宁市人力资源和社会保障局招聘公益性岗位21人(2025年第一批)考前自测高频考点模拟试题及参考答案详解
- 2025河南郑州大学第三附属医院招聘160名考前自测高频考点模拟试题及答案详解(考点梳理)
- 2025北京十一未来城学校春季招聘考前自测高频考点模拟试题参考答案详解
- 2025年威海技师学院公开招聘工作人员(29名)考前自测高频考点模拟试题及完整答案详解1套
- 2025春季中铁水务集团有限公司校园考前自测高频考点模拟试题附答案详解(突破训练)
- 2025恒邦财产保险股份有限公司营业部招聘1人模拟试卷及答案详解(必刷)
- 2025安徽芜湖市人才发展集团有限公司招聘2人考前自测高频考点模拟试题及答案详解(考点梳理)
- 2025年长春医学高等专科学校公开招聘编外聘用制工作人员(2人)考前自测高频考点模拟试题及答案详解(各地真题)
- 2025北京三支一扶招聘473人模拟试卷及答案详解(名校卷)
- 2025年上半年上海市卫生健康技术评价中心工作人员公开招聘考前自测高频考点模拟试题及答案详解(典优)
- (2025年)政工师考试试题(附答案)
- 2025版简易劳务合同模板
- 2025年浙江省单独考试招生语文试卷试题真题(含答案详解)
- T/CAPE 10108-2024设备设施报废管理指南
- 消防水池挖槽施工方案
- 常微分方程教案
- 高三试卷:2025届浙江省“江浙皖县中”共同体高三10月联考-政治试题+答案
- 手术室实习生带教课件
- 智能决策系统智能决策模型优化与改进方案
- 高一地理第一次月考卷02【测试范围:必修一第1~2章】(考试版)
- 盆底康复培训课件
评论
0/150
提交评论