1、 基于 PLC 的多路信号采集实验装置研制 学生姓名学生姓名 院系名称院系名称 工学院机电工程系工学院机电工程系 专业名称专业名称 电气工程及其自动化电气工程及其自动化 班班 级级 学学 号号 指导教师指导教师 完成时间完成时间 20122012 年年 5 5 月月 1414 日日 基于 PLC 的多路信号采集实验装置研制 学生姓名: 指导老师: 内容摘要: 本文介绍了基于 PLC 的信号采集的硬件设计和软件设计。本文介绍的重点 是信号采集系统,而该系统硬件部分的重心在于 PLC。信号采集与通信控制采用 了LM3107来实现, 硬件部分是以PLC为核心, 包括4通道模拟量输入模块LM3310
2、和串行接口部分。4 路被测信号通过模拟量输入模块实现模拟量到数字量的转 换,然后经过 PLC 的处理,再通过串行口 RS232 传输到上位机,由上位机负责 信号的显示。软件部分应用 POWERPRO 编写梯形图程序实现信号的采集,转换和 显示。 关键词关键词:PLC 上位机 模拟信号 信号采集 The design of muti-channel signal sampling experimental device based on PLC AbstractAbstract: : This article describes the PLC signal collecting hardwar
3、e and software design. This article describes the focus of the signal sampling system, the system hardware part of the center of gravity lies in the PLC. Signal sampling and communication is controlled by the LM3107 to the hardware part is based on the PLC as the core of to including 4-channel analo
4、g input module LM3310, and serial interface part. 4-channel analog to digital conversion the signal through the analog input module, and then after the PLC processing, and then to the PC via serial port RS232 transmission from the host computer is responsible for signal display. The software part of
5、 the application the POWERPRO to write ladder program to achieve signal sampling, conversion and display. Keywords: PLC the host computer analog signal signal sampling 目目 录录 1 绪论 1 1.1 研究背景及其目的意义. 1 1.2 国内外研究现状. 2 1.3 该课题研究的主要内容. 2 2 方案拟定 3 2.1 信号采集系统. 3 2.2 系统原理框图. 3 3 硬件设计 4 3.1 传感器检测电路的设计. 4 3.1.
6、1 传感器概述 . 4 3.1.2 传感器及其检测电路的选择 . 6 3.2 PLC 的选取. 9 3.2.1 PLC 概述 . 9 3.2.2 PLC 的选取 12 4 软件设计 . 14 4.1 POWERPRO 简介. 14 4.2 算法设计 . 15 4.2.1 信号采集的程序设计 15 4.2.2 软件滤波的程序设计 16 4.2.3 数据显示的程序设计 18 结语. 20 参考文献. 21 致谢. 22 1 基于基于 PLCPLC 的多路信号采集的多路信号采集实验实验装置研制装置研制 1 1 绪论绪论 1.1 研究背景及其目的意义 信号采集又称数据采集,近年来,数据采集及其应用受到了人们越来越广泛 的关注,数据采集系统也有了迅速的发展,它可以广泛的应用于各种领域。 数据采集系统起始于 20 世纪 50 年代,1956 年美国首先研究了用在军事上 的测试系统,目标是测试中不依靠相关的测试文件,由非成熟人员进行操作,并 且测试任务是由测试设备高速自动控制完成的。 由于该种数据采集测试系统具有 高速性和一定的灵活性,可