Numerical control device with display control using high level language

Information

  • Patent Grant
  • 4739468
  • Patent Number
    4,739,468
  • Date Filed
    Friday, August 23, 1985
    39 years ago
  • Date Issued
    Tuesday, April 19, 1988
    36 years ago
Abstract
A numerical control device which is capable of using a general-purpose setting display section to display machining date for controlling a machine tool or the like. The machining data can be displayed in character or graphic form, and internal processing is carried out using a high level language. A transmitting and receiving unit is interfaced with the general-purpose setting display section using a standard serial data interface to transmit the display data using the high level language.
Description

BACKGROUND OF THE INVENTION
The present invention relates to a numerical control device which uses a general-purpose setting display section to display machining data, etc., for a numerical control device used to numerically control a machine tool or the like.
A conventional numerical control device of the same general type to which the invention pertains is shown in FIG. 1. In FIG. 1, reference numeral 1 designates a paper tape on which machining data has been recorded; 2, an input section for inputting this data; 3, a control section implemented with a CPU (central processing unit); 4, a movable arithmetic section for converting the machining data into movable data; 5, a memory section for temporarily storing the machining data; 6, an output section for outputting machining instruction data from the control section 3; and 7, a machine tool which is operated automatically according to the control section 3, the movable arithmetic section 4, the memory section 5, and the output section 6 forming a numerical control section 10.
The setting display section 8, which serves as a man-machine interface for the numerical control section only, includes a display unit (not shown) and an operating board, namely, a keyboard (not shown). The setting display section 8 is exclusively connected to a data transmitting and receiving circuit 9 provided in the control section 3. The display unit fixedly displays in a predetermined format machining data temporarily stored in the memory section 5.
The operation of the numerical control device thus constructed will be described.
First, the machining data for the machine tool recorded on the paper tape 1 is applied to the control section 3 by the input section 2. The machining data thus applied is analyzed by the control section 3 and converted into movable data by the movable arithmetic section 4. The control section 3 outputs the latter data, as operating instruction data for the machine tool 7, through the output section 6, and accordingly the machine tool 7 is automatically operated. The machining data can be temporarily stored in the memory section 5 if necessary.
The contents of the machining data or movable data can be displayed on the display unit (not shown) in the setting display section 8. The operator can edit the data by operating the keys on the operating board (not shown). The setting display section 8 can be used for diagnosis of the overall numerical control device, or for simulating machining conditions on the screen utilizing the machining data.
Thus, as mentioned above the setting display section 8 is used as a man-machine interface unit. However, the main purposes of the setting display section 8 are to allow the operator to input machining data and to allow the programmer to enter programs for automatic control of the machine tool 7. In general, the setting display section 8 includes a display unit and an operating board, which are provided in the numerical control device, used to enter machining data and to perform programming operations. The operator or the programmer operates the operating board to perform the data entering operation or the programming operation.
The setting display section 8 in the conventional numerical control device is a special setting display unit used for the numerical control section 10 only, which displays machining data or the like in a fixed form at all times.
In the conventional numerical control device designed as described above, the display by the setting display section is in a dedicated form. Furthermore, since a fixed data interface is employed for the data transmitting and receiving section, no setting display unit other than the above-described special setting display unit can be employed. In addition, it is impossible to display data in a desired form using ASCII codes or the like.
SUMMARY OF THE INVENTION
An object of the invention is to eliminate the above-described difficulties accompanying a conventional numerical control device.
In accordance with the above and other objects, the invention provides a numerical control device in which a numerical control section and a setting display section are serially interfaced with each other using ASCII code data or JIS eight-bit serial data, and the setting display section employs a general-purpose setting display device, and a high level language is employed as the control language so that data can be displayed in a desired form.





BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing the arrangement of a conventional numerical control device;
FIG. 2 is a block diagram showing the arrangement of a numerical control device according to an embodiment of the invention;
FIG. 3 is a functional diagram showing the flow of data in essential components in the device shown in FIG. 2; and
FIG. 4 is a flow chart describing the operation of the embodiment shown in FIGS. 2 and 3.





DESCRIPTION OF THE PREFERRED EMBODIMENTS
A preferred embodiment of the invention will be described with reference to FIG. 2. In FIG. 2, those components which have been previously described with reference to FIG. 1 are designated by the same reference numerals. Further in FIG. 2, reference numeral 3 designates a control section using a CPU which can operate in a high level language. The control section 3 includes a data transmitting and receiving section 9 which can perform a standard interfacing operation. The reason why operation in a high level language is required, is that, with a high level language, data can be entered or edited by programming, and if display data is stored in a RAM in the numerical control device and the addresses are specified, then the display data can be transmitted to the display unit. A general-purpose setting display section 8 (general-purpose setting display unit) connected to the data transmitting and receiving section 9 uses an ordinary personal computer which employs ASCII codes as cue codes and data codes. Interfacing the data transmitting and receiving section 9 (data transmitting and receiving element) 9 is carried out using a serial data interface RS232C based on the V24 international standard recommended by CCITT (International Telegraph and Telephone Consultative Committee). A memory section 5 in the control section 10 (numerical control unit) includes: a display data forming section 5a in which programs have been stored to form display data, a display data storing section 5c for data formed for display, and a display data indicating section 5b in which programs for indicated data to be displayed on the general-purpose display section 8 are stored.
The following Table shows a program whose purpose is to prepare display data for display on a CRT, as indicated by the comment at line number 100 of the Table. Line numbers 110 to 160 show the steps in the program and contain comments to explain the purpose of the steps, respectively.
TABLE__________________________________________________________________________100 ; [CRT DISPLAY DATA]110 A = $8000; N = 0 Input 8000 into "A" register, and 0 into "N" register.120 INPUT "DATA" C Store the key input in "C" register.130 POKE A + N, C; N = N + 1 Store the content of "C" register of "C" in address A + N. Increase N.140 PRINT C, N Display the contents of "C" and "N" registers.150 IF N > 1000 STOP; PRINT "END" If N > 1000, stop the program, and print "END".160 GO TO 120 If N .ltoreq. 1000, go to address 120.__________________________________________________________________________ According to the abovedescribed program, the inputted display data can be stored in addresses from $8000 to $8000 + 1000 in the display data memory section.
The operation of the numerical control device thus constructed will be described. The operation in which input data is read from the paper tape 2 to automatically operate the machine tool 7 is the same as that of the conventional numerical control device. Therefore, in the numerical control device of the invention, the operations of the general-purpose setting display section 8, which is capable of displaying display data in a desired form, and essential components of the numerical control section 10 will be described.
First, in the general-purpose setting display section 8, a program in a high level language for forming display data is entered. The program thus entered is inputted through the data transmitting and receiving section 9 to the control section 3 where it is stored in the display data forming section 5a. Thereafter, display conditions and display data are set by operating the keys of the general-purpose setting display section 8. The display conditions and the display data are applied through the data transmitting and receiving section 9 to the control section 3 for storage in the display data storing section 5c. The control section analyzes the data received through the data transmitting and receiving section 9, and, according to the contents of the display data indicating section 5b in which data to be displayed has been stored, the display data is transmitted through the data transmitting and receiving section 9 to the general-purpose setting display section 8 for display on a display screen such as that of a CRT (cathode-ray tube) (not shown).
The flow of the data handled in the above-described embodiment is as shown in FIG. 3. FIG. 4 is a flow chart describing the operation of the embodiment shown in FIGS. 2 and 3.
With reference to FIG. 3, when operation of the general purpose setting display section 8 is initiated by the operator, data is routed along the path a to b indicated in the drawing. Upon receipt of a data transmission signal, the display data is formed using, e.g., the program shown in the Table, and stored in the section 5c; that is, the data moves along a path from a to c. When the section 8 is actuated, the display data top address stored in the section 5b is read by the section 3 through a route of a to e. With this address passing through a route of f, the display data is displayed on the CRT of the section while passing along a route of g to a.
The numerical control device includes the general-purpose setting display section 8, which may be a personal computer, and uses a standard interface, such as an RS232C interface, for the numerical control section. Furthermore, a high level language is employed as the control language. Therefore, character or graphic display of the data formed by the numerical control section 10 can be effected as desired within the range of capability of the general-purpose setting display section.
As is apparent from the above description, the numerical control device of the invention, which employs a general-purpose setting display unit in the setting display section, has a standard interface such as an RS232C interface, and uses a high level language. Therefore, with the numerical control device of the invention, data can be displayed on the display screen in a form which meets the requirements of the operator, and machining loci can be displayed. Furthermore, it is unnecessary to separately provide an exclusive setting display section. Accordingly, the numerical control device of the invention is economical and provides excellent display performance.
Claims
  • 1. A numerical control device comprising:
  • general-purpose setting display means (8), including a display device, for displaying machining data on said display device of a machine tool in character or graphic form which can be changed in accordance with a user's desires and effecting internal data processing using a high level language;
  • numerical control means (10), having a data transmitting and receiving section (9) serially interfaced with said general-purpose setting display means, for transmitting display data using said high level language, said numerical control means further comprising a CPU (3) for numerical control; and
  • memory means (5c) for temporarily storing said display data, wherein said memory means includes a display data forming section (5a) for storing programs for forming data to be displayed by said general-purpose setting display means;
  • a display data storing section (5c) for temporarily storing said display data;
  • a display data indicating section (5b) for indicating display data of said general-purpose setting display means; and
  • whereby the type and format of the data displayed by said display device can be changed as desired by the user.
  • 2. The numerical control device as claimed in claim 1, in which said general-purpose setting display means comprises a general-purpose personal computer.
  • 3. The numerical control device as claimed in claim 1, in which said transmitting and receiving section comprises means for effecting data transmittal through a serial data interface.
  • 4. The numerical control device as claimed in claim 1, in which said general purpose display means includes input means for transmitting commands of the user to change the type and format of the data displayed.
  • 5. A method for setting the type and format of data to be displayed at a display device of a general purpose setting display section in a numerical control device, the type and format of the data to be displayed being controlled by a program using a high level programming language, said method comprising the steps of:
  • (a) inputting the program, using the high level language at an input section of said setting display section, to change the data to be displayed into display data having a desired type and format;
  • (b) transmitting the inputted program to a display data forming section by means of a data transmitting and receiving section;
  • (c) storing the program in said data forming section;
  • (d) inputting, at said input section, display format commands and the data to be displayed;
  • (e) transmitting said data to be displayed and display format commands being transmitted to said data forming section by means of said data transmitting and receiving section;
  • (f) forming said display data using said program;
  • (g) transmitting the display data to a display data storing section for temporary storage; and
  • (f) actuating a screen display program, using said setting display section, to display particular display data stored in said data storing section which are indicated by a display data indicating section when said screen display program is actuated,
  • whereby the type and format of the data to be displayed can be controlled as desired by a user.
Priority Claims (1)
Number Date Country Kind
59-175239 Aug 1984 JPX
US Referenced Citations (5)
Number Name Date Kind
4092719 Salmon May 1978
4149235 Froyd et al. Apr 1979
4439834 Dahlgren, Jr. et al. Mar 1984
4443865 Schultz et al. Apr 1984
4521860 Kanematsu et al. Jun 1985
Foreign Referenced Citations (1)
Number Date Country
0103789 Mar 1984 EPX
Non-Patent Literature Citations (1)
Entry
"The New Wave of Personal Robots"-Computers & Electronics, vol. 21, No. 1, pp. 37-41, Jan. 1983.