The present invention relates to a numerical controller, and more particularly, to a numerical controller capable of avoiding interference with rotation of a tool changer turret.
Some cutting machines are provided with a turret for holding a plurality of tools. When a numerical controller performs a tool change command, the turret rotates to change a tool for machining a workpiece.
The turret 10 rotates in response to an absolute command, an incremental command, and a command based on a manual operation.
In an absolute-command operation, the rotation direction of the turret 10 is restricted to one direction (shortcut direction) corresponding to the newly selected tool. In this case, a problem arises that a long tool (t2) cannot avoid interfering with a machine or some other structure 12 (hereinafter referred to as “machine”) in the process of rotation of the turret 10 for tool change, as shown in
In an incremental-command operation or manual operation, in contrast, the above problems can be avoided by specifying the rotation direction for each command or operation. In order to perform this command, however, it is necessary to specify an optimal rotation method for each tool selection while previously ascertaining the tool position, thus entailing complicated operations.
To overcome this problem, Japanese Patent Application Laid-Open No. 2011-237880 discloses how to avoid interference between the machine 12 and the tools by retracting the turret 10 itself, as shown in
The technique described in Japanese Patent Application Laid-Open No. 2011-237880 (FIG. 7) has a problem, however, that it cannot be adopted without the use of a machine structure that can move the turret itself. Moreover, the technique described in Japanese Patent Application Laid-Open No. 7-251352 (FIG. 8) may also be applied to the turret. In this case, however, it is necessary for a rotation axis of the turret to manage the position information (coordinate values). If the turret is rotated by a motor such as a spindle motor that does not manage the position information (coordinate values), however, the rotation is controlled only based on the necessary number of pulses for rotation for each tool number that is held in advance and the control based on the position information is not easy. Furthermore, the technique of Japanese Patent Application Laid-Open No. 7-251352 does not disclose any control to be performed when a tool in the interference region is selected.
The present invention has been made to solve these problems and its object is to provide a numerical controller capable of avoiding interference with rotation of a tool changer turret.
A numerical controller according to the present invention rotates a turret, which holds a plurality of tools on the outer peripheral portion thereof, thereby moving a selected one of the tools selected by a command to a predetermined selected position. This numerical controller comprises a passage-prohibited area holding unit configured to hold a partial area of the outer peripheral portion of the turret as a passage-prohibited area prohibited from passing through the selected position and a passage-prohibited area check unit configured to determine whether or not the selected tool is present in the passage-prohibited area and/or whether or not the passage-prohibited area passes through the selected position as the selected tool is moved to the selected position.
The numerical controller can further comprise an alarm generating unit configured to generate an alarm if the selected tool is present in the passage-prohibited area.
The passage-prohibited area check unit may be configured to newly select the tool outside the passage-prohibited area if the selected tool is present in the passage-prohibited area, and the numerical controller may further comprise a turret rotation control unit configured to move the newly selected tool to the selected position.
The passage-prohibited area check unit may be configured to generate a new command for rotating the turret reversely relative to the direction responsive to the command for selection if the passage-prohibited area passes through the selected position as the selected tool is moved to the selected position, and the numerical controller may further comprise a turret rotation control unit configured to move the selected tool to the selected position in response to the new command.
The selected tool may be specified by a tool number or the number of tools to be moved.
The passage-prohibited area may be identified by a tool number.
According to the present invention, there can be provided a numerical controller capable of avoiding entanglement of a cable of a cable-connected tool due to interference with rotation of a tool changer turret, or the like.
The numerical controller 100 is characterized by comprising a passage-prohibited area holding unit 110, passage-prohibited area check unit 120, alarm generating unit 130, and turret rotation control unit 140. Other configurations are the same as those of a conventional numerical controller for turret control.
The numerical controller 100 is an information processor that typically comprises a central processing unit (CPU), storage device, and input/output device. The passage-prohibited area holding unit 110, passage-prohibited area check unit 120, alarm generating unit 130, and turret rotation control unit 140 are implemented as the CPU executes a predetermined program.
The passage-prohibited area holding unit 110 previously holds an area (hereinafter referred to as “passage-prohibited area”) of a turret that prohibits the passage of a selected position.
In the example of
For example, the passage-prohibited area holding unit 110 comprises an input unit (not shown) and can accept the input of set values of ST and ED through key input or the like from the input unit. Alternatively, the passage-prohibited area holding unit 110 may have a passage-prohibited area setting mode, in which a user is urged to rotate a turret 10 so that the respective numbers of the tools stopped at the selected position are set as ST and ED, for example. More specifically, as shown in
The passage-prohibited area check unit 120 determines whether or not a tool number specified in response to a tool change command is present in the passage-prohibited area and whether or not the turret 10 passes through the passage-prohibited area as it rotates to select the specified tool. If the specified tool number (t6) is present in the passage-prohibited area, as shown in
Moreover, when the turret 10 is rotated by an absolute-command operation, incremental-command operation, or manual operation, the passage-prohibited area check unit 120 selects the specified tool (t7) by rotating the turret 10 reversely relative to the normal rotation, as shown in
Alternatively, as shown in
The alarm generating unit 130 generates an alarm in response to a request from the passage-prohibited area check unit 120. The alarm can be generated by such a means as generation of a warning sound, lighting of a warning lamp, and display of a warning message.
The turret rotation control unit 140 performs control to rotate the turret 10 in accordance with the direction and amount of rotation required by the passage-prohibited area check unit 120. Typically, the rotation amount is specified by the number of numbers. Specifically, the turret rotation control unit 140 receives commands for forward rotation for two numbers and reverse rotation for three numbers, for example. Since the turret rotation control unit 140 previously holds the necessary pulse number for rotation for one number, the turret can be rotated according to the commands by generating a number of pulses obtained by multiplying the number of numbers commanded by the passage-prohibited area check unit 120 by the above-described pulse number.
The operation of the numerical controller 100 will be described further in detail with reference to the flowcharts of
Step S1: The numerical controller 100 receives a tool change command.
Step S2: The passage-prohibited area check unit 120 receives a command value T of the tool change command.
If the tool number is specified by an absolute command, it is delivered as the command value T to the passage-prohibited area check unit 120. For example, the command value T of a tool change command “M6T5” that specifies No. 5 tool is “5”.
If the number of numbers is specified by an incremental command, in contrast, it is delivered as the command value T to the passage-prohibited area check unit 120. For example, the command value T of a tool change command “M6P5” is “5”. In the case of the manual operation, “1” is delivered as the command value T to the passage-prohibited area check unit 120. The passage-prohibited area check unit 120 holds the command value T as CMD.
Step S3: The passage-prohibited area check unit 120 acquires the passage-prohibited area starting number ST and the passage-prohibited area ending number ED from the passage-prohibited area holding unit 110. Moreover, the passage-prohibited area check unit 120 acquires a currently selected tool number PR_T, total number of tools MX_T that the turret can hold, and necessary number of pulses PLS for the rotation of the turret to the directly adjacent tool number. PR_T, MX_T and PLS are assumed to be previously stored in a predetermined internal or external storage area of the passage-prohibited area check unit 120.
Step S4: The passage-prohibited area check unit 120 analyzes the tool change command. If the tool change command is the absolute command, the processing proceeds to Step S5. If the tool change command is the incremental command or the manual operation, the processing proceeds to Step S6.
Step S5: The passage-prohibited area check unit 120 sets the specified tool number CMD as a tool number NX_T to be selected next.
Step S6: The passage-prohibited area check unit 120 obtains the tool number NX_T to be selected next by adding the command value CMD to the current tool number PR_T.
Step S7: The passage-prohibited area check unit 120 normalizes NX_T so as to obtain “1≤NX_T≤MX_T”.
Step S8: The passage-prohibited area check unit 120 normalizes ST and ED so as to obtain “ST<ED”.
Step S9: The passage-prohibited area check unit 120 checks to see if the currently selected tool number is outside the prohibited area. If the current tool number is in the prohibited area, the alarm generating unit 130 is caused to generate an alarm, whereupon the processing ends.
Step S10: The passage-prohibited area check unit 120 calculates a temporary number of moving tools ΔTtmp. In the case of the incremental command, the passage-prohibited area check unit 120 sets ΔTtmp for the command number CMD. In the case of the absolute command, ΔTtmp is set for the number of moving tools in a shortcut direction from the current selected tool to the next selected tool.
Step S11: The passage-prohibited area check unit 120 changes the passage-prohibited area to a range adapted to the rotation direction of the turret.
Step S12: The passage-prohibited area check unit 120 determines whether or not the next selected tool NX_T is present in the passage-prohibited area. If the tool NX_T is in the pass-age-prohibited area and in the case of the absolute command, the alarm generating unit 130 is caused to generate an alarm, whereupon this processing end. If the tool NX_T is in the passage-prohibited area and in the case of the incremental-command or manual operation, in contrast, the processing proceeds to Step S16.
Step S13: The passage-prohibited area check unit 120 determines whether or not the next selected tool NX_T passes through the passage-prohibited area when it is caused to rotate the turret 10. If the passage-prohibited area is not passed, the number of moving tools ΔT is kept at ΔTtmp. If the passage-prohibited area is passed, the number of moving tools required to pass to reach the next selected tool NX_T by reverse rotation is calculated as ΔT.
Step S14: The passage-prohibited area check unit 120 updates the current tool number to PR_T+ΔT.
Step S15: The passage-prohibited area check unit 120 outputs ΔT×PLS as movement pulses OUTPUT for rotating the turret to the turret rotation control unit 140. Alternatively, the passage-prohibited area check unit 120 may output ΔT to the turret rotation control unit 140 so that OUTPUT can be calculated using PLS that is previously held by the turret rotation control unit 140. The turret rotation control unit 140 rotates the turret in response to OUTPUT.
Step S16: The passage-prohibited area check unit 120 performs processing for automatically changing the next selected tool number to a tool number outside the passage-prohibited area when the incremental command is given. In the present embodiment, if the changed tool number is also present in the passage-prohibited area, the alarm generating unit 130 is caused to generate an alarm, whereupon the processing ends (Step S16_1). Moreover, if the changed tool number is also present in the passage-prohibited area, the processing related to Step S16 may be re-executed so that the changed selected tool number gets out of the passage-prohibited area. In this case, a maximum recalculation frequency may be provided such that the re-execution frequency of the processing related to Step S16 is limited to the maximum recalculation frequency.
The following is a description of some examples of the operation of the numerical controller 100 according to the present embodiment.
An arbitrary narrow area (“ST=2” and “ED=3” in this example) is set as the passage-prohibited area in order to prevent the turret 10 from making more than one revolution. Preferably, the passage-prohibited area can be set in a position diagonal to a cable-connected tool t1. Thus, the passage-prohibited area check unit 120 suitably converts the command to reverse rotation even in case the turret makes a plurality of revolutions in the same direction in response to a plurality of consecutive commands (M6T2, . . . , M6T1, etc.), for example, so that the turret never makes more than one revolution.
According to the present embodiment, if the next selected tool is in the passage-prohibited area or if a route leading to the next selected tool passes through the passage-prohibited area, the passage-prohibited area check unit 120 performs control to generate an alarm, reverse the turret rotation direction, or automatically select a tool outside the passage-prohibited area. Thus, even in case there is neither a turret moving mechanism nor a management mechanism for position information (coordinate values) on the turret rotation axis, the tool change command can easily be incorporated into a machining program and the tool can be manually changed without being aware of the direction of the turret rotation at the time of tool change.
The present invention is not limited to the above-described embodiment and may be suitably changed without departing from the spirit of the invention. Any of the constituent elements of the embodiment may be modified or omitted without departing from the scope of the invention. While the turret according to the above-described embodiment is provided with the passage-prohibited area that is not allowed to pass over the selected position, for example, the same function can also be achieved by setting a passage-prohibited area that is allowed to pass over the selected position. In this case, the passage-prohibited area is set so as to contain the numbers of tools that interfere with the machine or the like, for example.
Number | Date | Country | |
---|---|---|---|
Parent | 15833015 | Dec 2017 | US |
Child | 16704758 | US |