摘要在数控加工(NC)中,对于各种形状复杂的工件,要怎样才能保证数控程序的正确性,已经成为一个至关重要的问题。众所周知,只有正确的符合加工标准的NC代码才能正确的反映出操作人员的加工意图。针对上述问题,本文研究了NC代码的语法及功能。基于VB语言开发出了一个数控系统的输入模块。25811
(1)从NC代码的结构和功能入手,进行了深入的分析,整理出常见的NC程序的错误类型,并且对于每种错误的原因进行清楚的界定。针对NC代码的特点,对NC代码进行文法描述,并且设计了输入模块的总体结构。
(2)将整个对NC代码的处理阶段分为词法分析、语法分析、代码显示和错误提取。以Windows系统为开发平台,以Visual Basic语言为开发工具开发出输入模块,并且提取出关键数据,为后续的仿真工作做好了铺垫。
(3)整个输入模块分为刀库建立、毛坏选择、代码显示、错误显示、错误提取。
毕业论文关键词  数控加工   输入模块  NC代码  语法错误
毕业设计说明书外文摘要
Title  The design of the CNC system input module
Abstract
In NC machining (NC), for all kinds of complicated shape workpiece, need to do to ensure the correctness of the numerical control program, has become a critical problem.As we all know, the only right up to the standard of machining NC code can correctly reflect the operating personnel processing. According to the above problem, this paper studies the NC code syntax and function. Based on VB language developed a CNC system input module.
    (1)  From the structure and function of NC code, carried on the thorough analysis, sorting out the common errors of NC program type, and clearly defined for each type of the cause of the error. According to the characteristics of the NC code, to grammar description of NC code, and the overall structure of the input module is designed.
    (2)  The whole processing phase of NC code can be pided into the lexical analysis, syntax analysis, error code display and extraction. Based on Windows system development platform, based on Visual Basic language development tool developed input module, and to extract the key data, has laid a good groundwork for the subsequent simulation work.
    (3)  The input module is pided into a knife library building, bad choice, code display, error, error extraction.
Keywords  numerical control machining  input module  NC Code  grammatical mistake
目   次
1引言 1
1.1课题背景 1
1.2输入模块设计概述 1
1.3课题来源 2
1.3.1数控编程简介 2
1.3.2NC代码编译技术现状 3
1.4课题的主要研究工作 5
1.4.1课题研究的意义 5
1.4.2课题研究的内容 5
2   数控软件的总体设计 6
2.1  系统需求分析与功能描述   6
2.2 数控系统软件运行流程   7
3 加工环境模块和NC代码处理模块的开发  8
3.1加工环境模块的开发 8
3.1.1毛坏处理模块  9
3.1.2刀库建立模块 9
3.2.1NC程序的格式 12
3.2.2NC程序的词法和语法分析 14
3.2.3以VB为工具实现NC代码的输入语法检查及显示 14
4程序的运行与调试 25
总结  28
致谢  29
参考文献30
附录A    31
1  引言
1.1  课题背景
数字控制(Numerical Control-NC )简称数控,即通过数字信号实现对机床进行控制的一种方式。国际信息处理联盟(International Federation of Information Processing-IFIP)第五技术委员会对NC机床做了如下定义:NC机床是一个装有程序控制系统的机床。其中提及的程序控制系统即为数控系统,它可以见输入的数据信息转化为驱动数控机床运转的数字信号,从而控制机床运转[1]。自从上世纪40年代数控被创造至今,已有半个多世纪,如今数控机床的拥有量、年产量以及技术水平已经成为衡量一个国家是否为制造大国的重要指标[2]。
上一篇:Labview单片机阻抗测量系统设计+电路图+源程序
下一篇:基于PLC的交流电机调速系统设计+梯形图

DSP+ARM的电能质量监测仪...

PLC的机床数控系统设计+梯形图

OpenGL相贯线切割机伺服数控系统设计

Matlab模块化多电平变换器的控制策略研究

具有输入饱和的二阶多智...

LPC1114磁阻传感器与加速度...

51单片机船舶电站管理系统...

国内外无刷直流电动机研究现状

高校网球场馆运营管理初探【1805字】

多元化刑事简易程序构建探讨【9365字】

《醉青春》导演作品阐述

浅谈新形势下妇产科护理...

中国古代秘书擅权的发展和恶变

谷度酒庄消费者回访调查问卷表

浅谈传统人文精神茬大學...

拉力采集上位机软件开发任务书

辩护律师的作证义务和保...