Method for automatically converting numerical control program formats

The invention provides a method for automatically converting numerical control program formats. The method comprises the following steps that: step 1, a numerical control program is loaded into a memory, that is, a text source is constructed, and a key table is initialized; and step 2, tokens are co...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI ZHENGWANG, JIAN JUNJIE, SUN GUANGJU, LIU GUOHANG, WANG HONGYU, LIANG KEFU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method for automatically converting numerical control program formats. The method comprises the following steps that: step 1, a numerical control program is loaded into a memory, that is, a text source is constructed, and a key table is initialized; and step 2, tokens are constructed. According to the construction of the text source, a numerical control program format to be converted is organized into a character string array according to the principle of line-based storage, wherein the principle of line-based storage refers to a storage mode that each character stringis loaded into the memory in a manner that each character string is corresponding to one text line of the numerical control program, so that the text source can be constructed. The key table containsall basic tokens of different types of numerical control programs; each basic token is corresponding to one integer; and mapping relationships between the basic tokens of the numerical control programs and the integers are es