Numerical control method
First Claim
1. A method for a numerical control device which executes numerical control processing based on a machining program composed of multiple items of numerical control command data such as numerical command data and G-code data which are stored in a machining program memory in blocks, comprising the steps of:
- (a) inserting the G-code data in the machining program at appropriate locations, each item of the G-code data comprising an alphabetic character G, a first code following the alphabetic character G, and a second code following the first code, the first code defining one of several groups of items of G-code data, a storage area being provided for each group, and the first and second codes specifying a type of processing;
(b) executing numerical control processing upon reading the machining program out of the machining program memory one block at a time;
(c) discriminating whether read numerical control command data in the machining program is G-code data;
(d) discriminating one of the items of G-code data;
(e) executing, using the numerical control device, processing specified by the discriminated item of G-code data until another one of the items of G-code data belonging to the same group is discriminated;
(f) specifying the storage area by the first code following the character G;
(g) designating a bit position in the specified storage area by the second code;
(h) assigning, when an item of G-code data is discriminated, only the bit position of the storage area designated by the item of G-code data a logical value of "1"; and
(i) assigning all other bit positions of the storage area a logical value of "0".
1 Assignment
0 Petitions
Accused Products
Abstract
A numerical control method for a numerical control device which executes processing based on a machining program composed of multiple items of numerical control command data such as numerical command data and G-code data. Each item of the G-code data is expressed in the form of an alphabetic character G, a numerical value following G, and a code following the numerical value. The method includes inserting the items of G-code data in the machining program at suitable locations, subsequently discriminating the G-code data, and causing the numerical control device to execute processing specified by the discriminated G-code data.
-
Citations
5 Claims
-
1. A method for a numerical control device which executes numerical control processing based on a machining program composed of multiple items of numerical control command data such as numerical command data and G-code data which are stored in a machining program memory in blocks, comprising the steps of:
-
(a) inserting the G-code data in the machining program at appropriate locations, each item of the G-code data comprising an alphabetic character G, a first code following the alphabetic character G, and a second code following the first code, the first code defining one of several groups of items of G-code data, a storage area being provided for each group, and the first and second codes specifying a type of processing; (b) executing numerical control processing upon reading the machining program out of the machining program memory one block at a time; (c) discriminating whether read numerical control command data in the machining program is G-code data; (d) discriminating one of the items of G-code data; (e) executing, using the numerical control device, processing specified by the discriminated item of G-code data until another one of the items of G-code data belonging to the same group is discriminated; (f) specifying the storage area by the first code following the character G; (g) designating a bit position in the specified storage area by the second code; (h) assigning, when an item of G-code data is discriminated, only the bit position of the storage area designated by the item of G-code data a logical value of "1"; and (i) assigning all other bit positions of the storage area a logical value of "0".
-
-
2. A method according to claim 1, wherein step (e) comprises executing, by the numerical control device, a prescribed control operation in dependence upon the logical values in each of the storage areas.
-
3. A method according to claim 1, wherein said first and second codes are first and second numerical values separated by a period.
-
4. A numerical control method using a processor and a G-code memory to execute numerical control instructions including G-code instructions having a G-code label, a numerical value and a code, said method comprising the steps of:
-
(a) reading the numerical control instructions one at a time; (b) determining whether the numerical control instruction is a G-code instruction; (c) accessing a memory location in the G-code memory designated by the numerical value if the numerical control instruction is a G-code instruction; (d) changing a bit designated by the code at the memory location to a first logical value if the numerical control instruction is a G-code instruction; (e) changing all other bits at the memory location to a second logical value if the numerical control instruction is a G-code instruction; and (f) executing numerical control processing in dependence upon the contents of the G-code memory.
-
-
5. A method according to claim 4, wherein step (f) comprises executing numerical control processing in dependence upon the numerical control instructions using the contents of the G-code memory as control data.
Specification