Macroprogram-based code debugging and simulation method and device

A technology of macro programs and codes, which is applied in the field of code debugging, simulation and devices based on macro programs, can solve the problems of lack of versatility, difficulty in processing program compilation, and long time-consuming, so as to reduce operation difficulty and risk, and reduce processing Improvement of preparation time and productivity

Inactive Publication Date: 2011-02-09
CAXA TECH
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1) Writing macro programs is mainly to manually write processing codes, which takes a long time and is prone to errors, and cannot be competent for programming parts with complex shapes
According to foreign statistics, when manual programming is used, the ratio of the writing time of a program to the actual time of processing on the machine tool is about 30:1 on average, and 20% to 30% of the reasons why the CNC machine tool cannot be started are Due to the difficulty in program

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Macroprogram-based code debugging and simulation method and device
  • Macroprogram-based code debugging and simulation method and device
  • Macroprogram-based code debugging and simulation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The above and other technical features and advantages of the present invention will be described in more detail below in conjunction with the accompanying drawings.

[0041] For this specific embodiment, the machining code program is understood as: a numerical control machining code is composed of multiple program segments, each program segment executes a processing step, and a program segment can be composed of several words, and the word is The basic elements that make up the program segment are the commands of the CNC system composed of words. With the development of numerical control technology, most numerical control systems can not only handle general preparation functions and auxiliary functions, but also handle macro programs.

[0042] Macro program is an important supplement to NC programming, where variables are used for: operation, increment or decrement, compare with an expression, decide whether to realize the conditional branch of the jump function, and tr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a macroprogram-based code debugging and simulation method and a macroprogram-based code debugging and simulation device. The method comprises the following steps of: a, inputting a processing code program; b, writing the code program by taking a program segment as a unit and establishing a statement tree; c, traversing the statement tree and calculating a result so as to generate track data; d, selecting to enter a debugging and simulation environment; and e, performing single segment execution or breakpoint setting execution to reach a certain program segment.

Description

technical field [0001] The invention relates to a method and a device for debugging and simulating a numerical control machining code program, in particular to a method and a device for debugging and simulating a code based on a macro program. Background technique [0002] With the increasingly fierce global competition, CNC machining is widely used in various manufacturing fields such as automobiles, aviation, and molds as an important means to ensure product quality, improve labor productivity, and realize automation. Whether the CNC machine tool can give full play to its role depends on the efficiency and ease of use of the CNC program it uses. In actual production, there are many parts with similar structures and different sizes. If each batch of parts is programmed for NC machining, a lot of time will be wasted. Making full use of macro programs is a very effective measure to solve these problems. Instructions including functions such as variable, direction, compariso...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 贾喜存白俊涛高玉凤
Owner CAXA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products