Background and Summary of the Invention
The present invention relates to improvements in a numerical controller equipped with an optional block skip function.
Conventional apparatuses of this kind are arranged so that if a special character, such as a slash (the symbol "/"), is present in a cutting program block at the head thereof, when an optional block skip switch on an operator panel is ON, information concerning the block is skipped and regarded as invalid. The information concerning the block is regarded as valid and delivered out to a buffer storage circuit for execution only when the switch is OFF. That is, the prior art apparatuses only permit the option of whether to execute a predetermined block in a specified section in a series of programs.
Accordingly, one has the option of cutting a plate as shown in FIG. 1 and boring at positions 10 and 11 in a certain lot and, in the next lot, boring only at the position 10 after cutting. However, one does not have the option of boring at a position 12 instead of 11 after the cutting in the next lot.
Summary of the Invention
The present invention has for its object to enable the selection of a desired block in a certain specified section in an execution program, thereby to extend the optional block skip function. According to the present invention, a specified block includes skip object indicating information and skip select information, which serves as data for deciding whether to skip over the block and which can assume at least two values. The skip select information, which can take a binary value, can be used to select an optional block from a plurality of blocks.
Brief Description of the Drawings
FIG. 1 is a cutting diagram used for explaining the operation of a prior art example;
FIG. 2 is a block diagram illustrating the principal part of equipment embodying the present invention;
FIG. 3 is a cutting diagram explanatory of the operation of the equipment shown in FIG. 2;
FIGS. 4, 5 and 7 are plan views showing block select switches; and
FIG. 6 is a cutting diagram explanatory of another embodiment of the present invention.
Description of the Preferred Embodiments
FIG. 2 is a block diagram illustrating the principal part of equipment embodying the present invention. Reference numeral 20 indicates a tape reader, 21 a memory, 22 a changeover circuit or switch, 23 is a block select switch, 24 a block skip circuit, 25 a buffer memory circuit, 26 a data processing unit, and TP a command stage. FIG. 3 is a cutting diagram explanatory of the operation of the equipment shown in FIG. 2, reference numerals 30 to 32 indicating the positions where holes are to be made.
In order to make a hole at one of the positions 30 to 32 (as specified by the operator) in FIG. 3, three blocks, such as those given below, are inserted in a section of boring steps in a cutting program:
/ 1 N 1 2 3 G 8 1 X 3 0 - - -
/ 2 N 1 2 3 G 8 1 X 3 1 - - -
/ 3 N 1 2 3 G 8 1 X 3 2 - - -
Here, the slash (/) added to the head or beginning of each block is skip object indicating information specifying that the block is the object of optional block skip control, and the characters "1", "2" and "3" immediately following the slash are skip select information for deciding whether to skip the block. Incidentally, "N 1 2 3" is a sequence number; "G 8 1 X 3 0 . . . ", G 8 1 X 3 1 . . . ", "G 8 1 X 3 2 . . . " are data words instructing boring operations at the positions 30 to 32; and " " is a character indicating the end of the block.
The program, having inserted therein such three blocks as mentioned above, is stored in the form of a command tape TP by punching a numerical information storage medium, such as a paper tape, or the program is stored as numerical information directly in the memory 21.
On the operator panel is further provided the block select switch 23 for entering information as to which ones of the blocks stored as the objects of the optional block skip control in the numerical information storage medium are to be made valid and invalid during actual cutting. The block select switch 23 is, in concrete terms, comprised of three switches 40, 41 and 42 corrsponding to the skip select information 1, 2 and 3, for instance, as shown in a plan view in FIG. 4. From a switch in the OFF state, information to the effect that the block corresponding to the switch is valid is sent to the block skip circuit 24 and, from a switch in the ON state, information to the effect that the block corresponding to the switch is invalid is sent to the block skip circuit 24. In the illustrated example, since only the switch 40 is OFF, information to the effect that only the block related to "/ 1" is valid is sent out. The block select switches shown in FIG. 4 can also be replaced with a single switch as, for example, shown in FIG. 5, which is marked with three graduations 1, 2 and 3. In this case, the switch is designed so that when the operator selects a switch position i (i=1, 2, 3), a block related to "/ i" in the program may be selected.
The cutting program stored in the command tape TP or memory 21 is provided via the changeover circuit 22 to the block skip circuit 24. The block skip circuit 24 checks whether the skip object indicating information "/" is present at the head of each block in the cutting program and, if such information is not added, the block is sent to the buffer circuit 25 because it is an ordinary block which is not the object of the optional block skip control.
If the skip object indicating information "/" is present, the skip select information immediately following the skip object indicating information "/" is collated or compared with information from the block select switch 23 and, if it turns out as a result of the collation that the block is one to be made invalid, the block is skipped over. That is to say, the block is not sent to the buffer memory circuit 25 and is invalidated. As a result of the collation, if the block is one that is to be validated, the block is sent to the buffer memory circuit 25, as is the case with the ordinary block. In the example illustrated in FIG. 4, only the block "/ 1 N 1 2 3 G 8 1 X 3 0 - - - " is sent to the buffer memory circuit 25, from which it is provided to the data processing unit 26, making a hole at the position 30.
In FIG. 4, if only the switch 41 where held in the OFF state, only the block "/ 2 N 1 2 3 G 8 1 X 3 1 - - - " would be executed and, if only the switch 42 were OFF, only the block "/ 3 N 1 2 3 G 8 1 X 3 2 - - - " would be executed.
FIG. 6 is a cutting diagram explanatory of the operation of another embodiment of the present invention, illustrating an embodiment suitable for use in the case where it is desired to make a hole at only one of the positions 60 and 61.
In this embodiment, numeric codes which are equal in absolute value but opposite in polarity, for instance, +1 and -1, are used as the skip select information, and two blocks such as those given below are inserted in a predetermined section of the program:
/ 1 N 1 2 3 G 8 1 X 6 0 - - -
/ -1 N 1 2 3 G 8 1 X 6 1 - - -
As the block select switch 23, only one switch 70 is provided, as shown in FIG. 7. When this switch is ON, information to the effect that the block related to "/ -1" is validated and the block related to "/ 1" is invalidated is sent to the block skip circuit 24, an when the switch is OFF, the reverse information is sent to the block skip circuit 24. With such an arrangement, in the illustrated example, since the switch 70 is ON, the block "/ -1 N 1 2 3 G 8 1 X 6 1 - - - " is executed, carrying out boring at the position 61.
Further, the above-described two embodiments can be combined as another embodiment. That is to say, four blocks such as those given below are inserted in the program, using as the skip select information a plurality of numeric codes which can assume both positive and negative values, such as, for instance, +1, -1, +2 and -2:
/ 1 / 2 N 1 2 3 G 8 1 X 0 1 - - -
/ -1 / 2 N 1 2 3 G 8 1 X 0 2 - - -
/ 1 / -2 N 1 2 3 G 8 1 X 0 3 - - -
/ -1 / -2 N 1 2 3 G 8 1 X 0 4 - - - In the block select switch of FIG. 4, for example, the switch 40 is made to correspond to the block related to "/ .+-.1" and the switch 41 is made to correspond to the blocks related to "/ .+-.2". If it is predetermined that if there exists even one condition invalidating a block, then the block is invalid, the block of "/ 1 -2 N 1 2 3 G 8 1 X 0 3 - - - " would be selected in the illustrated example because the switch 40 is OFF and the switch 41 ON. In general, in the case of including k / .+-.n, such as / .+-.n.sub.1, / =n.sub.2, - - - / .+-.n.sub.k, it is possible to select one of 2.sup.k blocks at maximum.
While in the foregoing, the present invention has been described as being applied to boring, this is only for convenience of description and it is a matter of course that the present invention is applicable to other operations. The gist of the present invention resides in that the skip object indicating information specifying that a block is the object of optional block skip control, and the skip select information which serves as data for deciding whether to skip over the block and which can take at least two values, are added to the head or intermediate option of the block and in that a desired block is selected from a plurality of blocks. Accordingly, various modifications and variations may be effected within the scope of attaining such an object.
As will be appreciated from the foregoing description, according to the present invention, a specified block is provided with the skip object indicating information and the skip select information, which serves as data for deciding whether to skip over the block and which can assume at least two values. By identifying the skip select information, which can take a binary value, a desired block can be selected from a plurality of blocks. Accordingly, it is possible to select a desired block in a specific section of an execution program in such a manner as to execute a step A on one occasion and a step B on another occasion using one cutting program. Thus, the invention has the advantage that the maneuverability and function of the numerical controller can markedly be improved.