基于PLC的车辆入出库管理系统设计说明

上传人:l**** 文档编号:149034891 上传时间:2020-10-23 格式:DOC 页数:18 大小:99.50KB
返回 下载 相关 举报
基于PLC的车辆入出库管理系统设计说明_第1页
第1页 / 共18页
基于PLC的车辆入出库管理系统设计说明_第2页
第2页 / 共18页
基于PLC的车辆入出库管理系统设计说明_第3页
第3页 / 共18页
基于PLC的车辆入出库管理系统设计说明_第4页
第4页 / 共18页
基于PLC的车辆入出库管理系统设计说明_第5页
第5页 / 共18页
点击查看更多>>
资源描述

《基于PLC的车辆入出库管理系统设计说明》由会员分享,可在线阅读,更多相关《基于PLC的车辆入出库管理系统设计说明(18页珍藏版)》请在金锄头文库上搜索。

1、. . . . 摘 要随着生产力和科学技术的不断发展,人们的日常生活和生产活动大量的使用自动化控制,不仅节约了人力资源,而且很大程度的提高了生产效率,又进一步的促进了生产力快速发展,并不断的丰富着人们的生活。早期的自动控制系统是依靠继电-接触器来实现的,其特点是:结构简单、价格低廉、抗干扰能力强,可以实现集中控制和远距离控制,但是其采用固定接线,通用性和灵活性差;又采用触点的开关动作,工作频率低,触点易损坏,可靠性差。1969年,出现了可编程逻辑控制器PLC(Programmable Logic Controller),其特点是:具备逻辑控制、定时、计数等功能,编程语言采用直观的梯形图语言,软

2、件更改方便,通用性和灵活性好。目前,可编程控制器PLC主要是朝着小型化、廉价化、标准化、高速化、智能化、大容量化、网络化的方向发展,与计算机技术相结合,形成工业控制机系统、分布式控制系统DCS(Distributed Control System)、现场总线控制系统FCS(Field bus Control System),这将使PLC的功能更强,可靠性更高,使用更方便,适用围更广。本设计是基于PLC的车辆出入库管理系统,采用两位LED来显示车库车辆的实际数量。使用两个光传感器来监控车辆的进出并完成计数工作,车辆进入时经过两个传感器使显示数字加一,车辆外出时经过两个传感器使显示数字减一,但当车

3、辆只经过一个传感器时不计数。为了防止意外计数错误,本系统采用反复程序校验,来提高系统的可靠性。首先,注意控制两个传感器之间的距离,用程序验证进出车库的是否是车辆,当人通过传感器时不计数;其次,采用逻辑互锁方式,启动加计数则要锁定减计数,产生加计数脉冲时则要锁定减计数脉冲,如此以保证可靠性;最后,及时的进行复位处理,以免车辆在传感器附近作往返运动时错误计数。关键词: PLC 传感器 车辆 可靠性 AbstractWith productivity and the continuous development of science and technology, peoples daily liv

4、es and production activities of a large number of the use of automated control, not only saving human resources, but a large degree of improved production efficiency, further promote the rapid development of productive forces, and constant enrich peoples lives. Early automatic control system relies

5、on the relay - Contactor to achieve, and its features are: simple structure, low cost, anti-interference capability, can achieve centralized control and remote control, but the introduction of fixed wiring, versatile and flexible of the poor and by the switch contacts, the low frequency contacts eas

6、ily damaged, poor reliability.1969, a programmable logic controller PLC (Programmable Logic Controller), its features are: a logic control, timing, counting, and other functions, intuitive programming language used ladder diagram language, software changes convenience, versatility and flexibility go

7、od.At present, the major PLC programmable controller is a small, low-cost, standardized, high-speed, intelligent, high-capacity, in the direction of the network, and computer technology, formation of industrial control systems, distributed Control Systems DCS (Distributed Control System), fieldbus c

8、ontrol system FCS (Field bus Control System), the PLC will enable more powerful, more reliable, more convenient to use, a wider scope. The design is based on the storage of vehicles PLC management systems, LED used two vehicles in the garage to show that the actual number. The use of two light senso

9、r to monitor vehicle access and complete count, the two vehicles entered the house through the sensor and a digital display, two vehicles going through the sensor by a digital display, but only after a sensor vehicles will not count. In order to prevent accidents counting error, the system used repe

10、atedly checking procedures to enhance the reliability of the system. First of all, pay attention to control the distance between the two sensors, access to the garage with the certification procedures for the vehicles, through the sensor when people do not count; Secondly, the introduction of the lo

11、gical interlocked, and counting would start by counting lock, a Canadian Counting will have to lock pulse by pulse count, so in order to ensure reliability; Finally, a reduction of the processing time to avoid vehicles in the vicinity of sensors for counting from the wrong campaign. Key words: PLC S

12、ensor Vehicles Reliability目 录摘 要IAbstractII目 录III第一章 引 言41.1 PLC的基本结构41.2 PLC的工作原理4第二章 车辆出入库管理系统的构成62.1 整体框架62.2 传感器的布置62.3 显示电路7第三章 PLC的I/O端口接线8第四章 I/O 口地址分配9第五章 程序设计105.1 控制要求105.2 计数逻辑105.3 程序流程图115.4 梯形图12第六章 结 论14第七章 参考文献15第八章 致 16第九章 元器件清单17 . . . 第一章 引 言1.1 PLC的基本结构 1、中央处理单元(CPU) 中央处理单元 (CPU)

13、是PLC的控制核心。它按照PLC系统程序赋予的功能:a. 接收并存储从用户程序和数据;b.检查电源、存储器、I/O以及警戒定时器的状态,并能诊断用户程序中的语法错误。 2、存储器 可编程序控制器的存储器分为系统程序存储器和用户程序存储器。存放系统软件(包括监控程序、模块化应用功能子程序、命令解释程序、故障诊断程序及其各种管理程序)的存储器称为系统程序存储器;存放用户程序(用户程序存和数据)的存储器称为用户程序存储器,所以又分为用户存储器和数据存储器两部分。 3输入接口电路 输入输出信号有开关量、模拟量、数字量三种,在我们实际涉及到的信号当中,开关量最普遍。4输出接口电路:可编程序控制器的输出有

14、:继电器输出(M)、晶体管输出(T)、晶闸管输出(SSR)三种输出形式。5电源 PLC的电源在整个系统中起着十分重要得作用。如果没有一个良好的、可靠得电源系统是无常工作的,因此PLC的制造商对电源的设计和制造也十分重视。一般交流电压波动在+10%(+15%)围,可以不采取其它措施而将PLC直接连接到交流电网上去。如FX1S额定电压AC100V240V,而电压允许围在AC85V264V之间。允许瞬时停电在10ms以下,能继续工作。一般小型PLC的电源输出分为两部分:一部分供PLC部电路工作;一部分向外提供给现场传感器等的工作电源。 1.2 PLC的工作原理PLC则是采用循环扫描的工作方式。一个扫

15、描周期主要可分为3个阶段。1输入刷新阶段在输入刷新阶段,CPU扫描全部输入端口,读取其状态并写入输入状态寄存器。完成输入端刷新工作后,将关闭输入端口,转入程序执行阶段。在程序执行期间即使输入端状态发生变化,输入状态寄存器的容也不会改变,而这些变化必须等到下一工作周期的输入刷新阶段才能被读入。2程序执行阶段在程序执行阶段,根据用户输入的控制程序,从第一条开始逐步执行,并将相应的逻辑运算结果存入对应的部辅助寄存器和输出状态寄存器。当最后一条控制程序执行完毕后,即转入输入刷新阶段。3输出刷新阶段当所有指令执行完毕后,将输出状态寄存器中的容,依次送到输出锁存电路(输出映像寄存器),并通过一定输出方式输出,驱动外部相应执行元件工作,这才形成PLC的实际输出。由此可见,输入刷新、程序执行和输出刷新三个阶段构成PLC一个工作周期,由此循环往复,因此称为循环扫描工作方式。 显然扫描周期的长短主要取决于程序的长短。扫描周期越长,响应速度越慢。由于每个扫描周期只进行一次I/O刷新,即每一个扫

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

当前位置:首页 > 办公文档 > 工作范文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号