- 1、本文档共33页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
双坐标十字滑台数控编程
学号14113500521
毕业论文
题目:双坐标十字滑台数控编程插补控制的实现
作 者 张 晖 届 别 201届
院 别 工程学院 专 业 指导教师 职 称
完成时间 2015年5月
摘要
本文主要研究双坐标十字滑台数控机床的直线插补与圆弧插补算法及外围电路的设计,完整的构建一个数控系统(包括软件与硬件的设计)。该系统以51单片机位核心,硬件部分:由单片机最小系统、按键模块、LCD1602显示模块、步进电机驱动模块、位置检测模块、报警模块所构成。该系统具有功耗低、可靠性高、体积小、人机界面友好等特点。软件部分:根据各自数据手册采用C51对各个模块编程,其中直线插补算法、圆弧插补算法采用绝对坐标与相对坐标坐标系结合分象限讨论的方法对逐点比较法分析,构造偏差函数、分析偏差、减小偏差进给、终点判断、偏差计算的循环来进行插补运算,绘制程序流程图然后用C51编程将计算出来的结果输出到步进电机驱动模块控制电机转动。用户界面:用户通过键盘输入数控指令,单片机自动判断输入参数是否正确如错误则重输入正确则执行相应指令驱动电机插补。
关键词:十字滑台; 直线插补; 圆弧插补; 步进电机; 数控编程
Abstract
This paper studies the design of two-coordinate cross-slide CNC machine tools linear interpolation and circular interpolation algorithm and peripheral circuits. We build complete a numerical control system (including software and hardware design). The system of the core is 51-bit microcontroller. The hardware parts consist of the smallest single-chip system, the key module, the LCD1602 display module, the stepper motor drive module, the detecting position module, and alarm module. The system has low power consumption, high reliability, small size, friendly interface and other features. In terms of the software components, according to the respective data sheets for each module we use the C51 to code. the linear interpolation algorithm and circular interpolation algorithm use the absolute coordinate and relative coordinate to combine. We distinguish different quadrant to discuss point by point comparison method of analysis. The way of structural deviation function, analytical bias, reducing the bias feed, determining the end point and the deviation calculation cycle is to interpolation operation. We draw program of flow chat and then use the C51to programming .In the last, the calculated results output to the stepper motor drive module for controlling the motor to rotate. In respect of the user interface, the user by keyboard input CNC command and the microcontr
文档评论(0)