z-logo
open-access-imgOpen Access
A Graphical Post Processor For An Educational Cnc Code Generator
Author(s) -
Anthony Hotchkiss,
Slade Gellin
Publication year - 2020
Language(s) - English
Resource type - Conference proceedings
DOI - 10.18260/1-2--11503
Subject(s) - computer science , graphical user interface , code (set theory) , generator (circuit theory) , numerical control , engineering drawing , interface (matter) , code generation , operating system , embedded system , state (computer science) , machining , programming language , computer hardware , engineering , mechanical engineering , key (lock) , power (physics) , physics , set (abstract data type) , bubble , quantum mechanics , maximum bubble pressure method
The authors have developed a post-processor with a graphical user interface for use with a CNC code generator that was originally intended to operate one particular vertical milling machining center. The CNC code-generator, VAL-CAM, was developed by one of the authors for teaching part of a CAD/CAM course for engineering technology students. In order to make the CNC code more universally applicable, a post-processor has been written as a stand-alone program. The program not only converts the current CNC code to operate other machine tools, but also allows the addition of machine tool functions that are not included in the existing CNC code. This will allow engineering technology students to use a variety of CNC milling machines that have recently been, and may at some future time be, installed at Buffalo State College. The program was written in Visual Basic to run under the Microsoft Windows environment, and hence on any PC platform. Modules have been written for existing CNC milling machines. The modules allow for capabilities of new machines to be added above and beyond those capabilities already incorporated. For instance, the machine for which the VAL-CAM program was originally written does not have an automatic tool changer, whereas one of the recently installed machine tools does have such a tool changer. The program module for this new machine allows the user to specify the codes that are used by the new machine that will effect an automatic change of tool. A variety of standard and non-standard codes are also provided so that the user can tailor the code to operate most new machine tools. The significance of this project is that the generality and modularity of the post-processor lends itself to utilization in similar laboratories at other educational facilities. Introduction and Problem Statement A CNC code generator, VAL-CAM, was developed by one of the authors for teaching part of a CAD/CAM course for engineering technology students. This program is couched as an attachment to AutoCAD and is written in AutoLisp, a command language affiliated with AutoCAD. The program used geometric data from a drawing currently on the AutoCAD screen, and, after the user supplied choices for various tooling and milling options, produced CNC code for one particular vertical milling machining center, as well as a graphical representation on the AutoCAD screen of the milling process. This process provided an instructional tool for learning Page 855.1 Proceedings of the 2003 American Society for Engineering Education Annual Conference & Exposition Copyright 2003, American Society for Engineering Education about CNC machining in general and reading and understanding CNC coding in particular. How well students learn these concepts is assessed through exams and projects. Recently, the Department of Technology at Buffalo State College has purchased and installed new milling machines each with different capabilities and/or options. The CNC codes required for these machines reflect their individual capabilities. In order to effectively use these machines in the course, thus giving students a greater variety of CNC machining experience, it was necessary to obtain software to facilitate the process from drawing to machine part. A wide variety of CAD/CAM software is available commercially. The scope and complexity of these programs vary widely. Those that have broad applicability would require many hours of training that would take significant time away from the rest of the course curriculum. All had price tags well beyond what the Department of Technology could afford. It was at this point that it was decided to write the necessary code in-house. In the course of determining the best way of doing this task, the authors realized an opportunity for manufacturing engineering technology and engineering education research. Accordingly, the project is now considered a solution to the following problem statement: How does one best develop, utilize and assess the impact of a piece of software that satisfies both a technical and pedagogical need in an established CAD/CAM course? The authors believed that the necessary enhancements to VAL-CAM should be incorporated in a multiple path approach. The two primary paths were in (1) CNC coding for the various machines, and (2) functional and graphical enhancements of the program. After much discussion, it was decided that the two paths should be housed in separate programs. In order to accomplish this, VAL-CAM would now have as its output a set of “generic” instructions for process and tool selection, as well as the appropriate geometric data, while a new, stand-alone post-processor, tentatively named BSC-POST, would take this output and, after the user has selected a machine and its particular features to be used for the intended process, would generate the appropriate CNC code for that machine. This paper describes the development, features, implementation and significance of BSC-POST, a graphical post-processor for an educational CNC code generator. Objectives The objectives of this research are as follows: • To develop a post-processor to work in tandem with VAL-CAM that will automate code generation for CNC milling machines currently in use in laboratories in the Department of Technology at Buffalo State College. • That this post-processor be easy to learn and use within the confines of a required, existing CAD/CAM course. • That efficient utilization of the post-processor enhances the overall learning experience in the CAD/CAM course. Page 855.2 Proceedings of the 2003 American Society for Engineering Education Annual Conference & Exposition Copyright 2003, American Society for Engineering Education • That the design of the program be such that it is expandable should Buffalo State College purchase additional CNC milling machines. • That program improvement implementation provides opportunities for senior and master’s level projects. • That this project be accomplished at little or no cost to Buffalo State College. To measure the extent to which these objectives are being met, the authors will use the following assessment tools and/or criteria: • If VAL-CAM and BSC-POST together can successfully produce a part based on an AutoCAD drawing, then the first objective above will be satisfied. • The effort required to incorporate data associated with subsequent machines will be measured in man-hours to determine if the program is readily expandable. • An undergraduate student assisted with this project as part of an Independent Study course. A graduate student is currently working on improvements to VAL-CAM as part of a master’s project. • To assess whether the post-processor is easy to learn and use, and if it is enhancing the learning experience in the CAD/CAM course, a questionnaire about the programs will be given to the students in the course. They will be asked to respond to positive statements about the programs on a Likert scale ranging from Strongly Agree to Strongly Disagree. This questionnaire is in development as of this writing, but will be available by semester end. • Projects and exams will continue to measure the students’ understanding of CNC coding. • The project costs will be measured. Discussion The primary goal of the development of BSC-POST is stated in the problem statement above. To this end, the authors had many discussions on the capabilities and formatting that the program should have. An overview of the program features and utilization is given in the Appendix. Great importance was given to keeping the program as simple, yet thorough, as possible, in order to maximize its utilitarian value and minimize the training time. Early tests of the program indicated that BSC-POST accomplished its technical objective of writing CNC code for each of the milling machines currently available to the Department of Technology. Furthermore, once the code was debugged for the first machine, subsequent machine incorporation went faster, at about 25% of the time needed for the first machine. An “alpha” version of the program was shown to students that had previously taken the CAD/CAM course in order to determine if the design of the program was conducive to meeting the educational objectives described above. These students generally had a favorable reaction to the program on issues of user-friendliness and their ability to learn the program quickly. Many of them (about 80%) expressed the opinion that if the program were available when they had taken the CAD/CAM course that they would have had an enhanced learning experience in the use of CNC programming. While these students had more of a “hindsight” perspective than the target group of students that would potentially be exposed to CNC programming for the first time, it was believed that their comments and suggestions carried enough weight to indicate that P ge 855.3 Proceedings of the 2003 American Society for Engineering Education Annual Conference & Exposition Copyright 2003, American Society for Engineering Education the general approach taken was correct, though modifications to individual features in the program would be necessary to maximize meeting the educational objectives stated above. As noted above, a questionnaire is in development to elicit student perceptions on the effectiveness of BSC-POST in facilitating their understanding of the applications of CNC programming. Some typical statements to be evaluated by students would be: “BSC-POST was easy to learn.” “BSC-POST enabled me to understand the CNC code output when placed along-side the input from VAL-CAM.” “My familiarity with BSC-POST has given me confidence that I can successfully use commercially available programs to program CNC milling machines in a ‘real-world’ industrial setting.” The cost to Buffalo State College to date is $0. Conclusions and Future Research The “beta” version of BSC-POST is ready for incorporation into the CAD/CAM course this spring. T

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom