详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于RS-485总线传输的接口电路原理图。根据组态王提供的通讯协议和单片机多机串口通讯的原理,给出程序设计流程与思路。 Abstract: In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
上传时间: 2013-12-19
上传用户:tecman
介绍了当前普通标记机控制系统现状及其存在缺点,给出气动标记机及相频修正PWM模式的工作原理。采用ATmega16单片机和USB转换RS232接口器件CH341T实现驱动控制系统与PC的实时通讯,标记控制系统可升级到USB接口。采用基于ATmega16的相频修正PWM替换555振荡电路产生的PWM,可直接通过软件调整PWM信号。使用达林顿三极管TIP122替代直流继电器驱动高频电磁阀,使得电磁阀驱动电路简单,成本低廉。该控制系统已成功应用于气动标记机。 Abstract: In this paper,the actuality and demerit of the common gas marking machine control systems are described.The operation principle of the gas marking machine and the phase and frequency correct PWM of ATmega16is introduced.The real-time communication between the driving control system and PC by CH341T which its function is translated USB to RS232is realized,the control systems is updated grade to USB interface.The PWM signal can be adjustable by software for the555surge circuit was substituted by the phase and frequency.The high frequency electromagnetic value’s driving circuit by DC relay is replaced by TIP122,therefore,the circuit is become simple and the cost cheap.The control systems has been widely used in gas marking machine.
上传时间: 2013-10-18
上传用户:1427796291
对于传统的跑步机无法联机组网,保存历史数据,实时调试等问题,介绍了一个由多台跑步机通过RS-232串行总线与上位机相连组成的跑步机联网系统。系统采用W77E58作为下位机核心控制器件,它具有双串行通讯端口,其中一个串口用于与变频器通讯,另一个串口则与上位机相连,构成跑步机网络。 Abstract: The traditional running machine can not be connected to a network, saving historical data, real time debug etc.In this paper,a new network system which is composed of running machines connected by a RS-232 communication bus is introduced.In the system,W77E58 is used as a core control unit.W77E58 has two serial ports,one is connected to the inverter and the other is connected to the PC. Thus a network appears.
上传时间: 2014-12-27
上传用户:哇哇哇哇哇
针对材料试验机等设备中要求测量或控制材料拉伸或压缩的位移,一般采用光电轴角编码器检测位置信号,输出正交编码脉冲信号。若采用其他方法检测位置信号,必然导致电路设计复杂,可靠性降低。因此,提出一种基于LS7266R1的电子式万能材料试验机设计方案。给出了试验机中的控制器工作原理,LS7266R1与单片机的接口硬件设计,以及主程序软件流程图。巧妙地把力量传感器,位移传感器等机械运动状态的压力或拉力以及位置坐标,变成了电压信号和电脉冲数字信号,供A/D测量和LS7266R1计数,从而实现了独立完成材料试验控制或通过PC机串口命令完成材料试验控制。 Abstract: Aiming at the requirement that the displacement of the tension and compression always be tested and controlled in the equipement such as material testing machine. The position signal was tested by photoelectric axial angle coder. Therefore, the paper proposes the design of electronic universal testing machine design based on LS7266R1. If the position signal detected by other methods, will inevitably lead to the circuit design complexity, reliability decreased. The work theory of the controller, the hardware interface design between LS7266R1 and single chip, and the flow chart of main program, are presented in this paper. The signal of the compression or tension power and displacement at working, which tested by power sensor and displacement sensor especially, is changed into electric voltage and electric pulse numerical signals. And these signals can be tested by A/D and counted by LS7266R1. Finally the test of the material properties can be controlled by itself, or controlled by the COM command of PC.
上传时间: 2013-11-02
上传用户:yl1140vista
针对当前安检力学试验机所能完成的试验种类单一、自动化程度低等问题,提出一种以ATmega128单片机为核心控制器的安检力学试验机的设计。详细阐述了该安检力学试验机各个组成部分的设计原理和方案,并且给出了各部分的软件设计思想和操作流程。经过大量测试试验表明:设计的安检力学试验机可以完成多达十余种的力学安检试验,完全符合相关国家标准,并且具有数据采集精度高、传输速度快、操作安全简便等特点,实现了安检设备的多功能化、数字化和自动化。 Abstract: Currently, many mechanical security testing machines have only one function. The degree of automation of them is low. To solve those problems, a new kind of mechanical security testing machine, using ATmega128 micro-controller as its core controller, has been advanced. It describes the components of the machine. The principles and the scheme in the designing processes are presented in detail, and the software architecture and the operation processes of each part are given. After having done many testing, we have reached the following conclusions: the mechanical security testing machine presented can do over ten mechanical security tests complying with related national standards. It has high data acquisition accuracy and high transmission speed. The operation of the machine is simple and safe. In general, this machine is a multi-functional, highly automatic, digitalized security testing device.
上传时间: 2013-11-05
上传用户:a67818601
概述MCS-51单片机引入国内高等教学已达10年之久,随着半导体技术的迅猛发展,经典的MCS-51单片机已不能适应当前的教学需要。全球领先的C8051F单片机覆盖了嵌入式系统的主要技术内容,且与51单片机相兼容,是MCS-51单片机的升级换代产品。且目前发展势头强劲,其必将成为单片机教学的新方向。SILABS公司MCU产品中国区代理--新华龙电子有限公司适时的设计、开发了贴近当前高校教学的C8051F单片机教学实验机(NCD-CIP51F020-B)。
上传时间: 2013-11-07
上传用户:lvzhr
摘要:介绍了采取专用电平转换芯片MAX232实现PC机与MCS51单片机之间的串行通信的方法.通过对系统的通信方式选择89C51通信波特率的设置、通信的设置,以及对接口电路的软件和硬件的设计分析,展示了该电路的实用性.关键词:微处理器;PC机;串行通信;RS-232接口;MAX232芯片
上传时间: 2014-01-22
上传用户:shizhanincc
摘要:提出一种全新的利用键盘接口实现单片机系统和PC机通信的方案,介绍了键盘与PC机通信的原理,并成功地应用于实际系统。该方案为外部单片机系统与3-机通信提供了一条有效的途径。关键词:键盘接口 单片机系统 时序 命令字
上传时间: 2013-11-03
上传用户:drink!
TM2101测控系统简介 本测控系统专为拉力机、压力机、电子万能材料试验机而研制。适用于测定各种材料在拉伸、压缩、弯曲、剪切、撕裂、剥离、穿刺等状态下的力学性能及有关物理参数。可做拉伸、压缩、三点抗弯、四点抗弯、剪切、撕裂、剥离、成品鞋穿刺、纸箱持压、泡棉循环压缩、弹簧拉压及各种动静态循环测试。
上传时间: 2013-10-10
上传用户:liangrb
摘要:为解决基于单片机的电子提花机所面临的问题,提出一种新的基于单片机W78E516B的嵌入式提花机控制器,包括硬件电路和单片机软件.分析了控制器实际中遇到的及可能遇到的技术问题,提出相应的对策.用盘代替软盘输入花样数据,解决了花样纬数受限制的实际问题.控制器实现了意外停机保护功能,且意外停机后可以快速恢复生产,文件管理系统经过反复拷贝删除也不会产生碎片.经在多家工厂运行,结果表明使用该控制器的提花机动作简洁、准确.关键词:提花机;控制器;单片机;USB;文件管理
上传时间: 2013-11-11
上传用户:banyou