Numerical controller
11048221 · 2021-06-29
Assignee
Inventors
Cpc classification
B23Q17/2208
PERFORMING OPERATIONS; TRANSPORTING
B23Q3/1552
PERFORMING OPERATIONS; TRANSPORTING
G05B19/182
PHYSICS
G05B19/19
PHYSICS
G05B2219/49157
PHYSICS
G05B2219/50016
PHYSICS
G05B2219/35349
PHYSICS
International classification
B23Q17/22
PERFORMING OPERATIONS; TRANSPORTING
B23Q3/155
PERFORMING OPERATIONS; TRANSPORTING
G05B19/18
PHYSICS
Abstract
A numerical controller performs control to rotate a turret, which holds a plurality of tools on the outer peripheral portion thereof, thereby moving one (selected tool) of the tools selected by a command to a predetermined position (selected position). The numerical controller sets and holds a partial area of the outer peripheral portion of the turret as an area (passage-prohibited area) prohibited from passing through the selected position and determines whether or not the selected tool is present in the passage-prohibited area or whether or not the passage-prohibited area passes through the selected position as the selected tool is moved to the selected position.
Claims
1. A numerical controller configured to rotate, during a tool selection, a turret, which holds a plurality of tools on an outer peripheral portion thereof, thereby moving a selected one of the plurality of tools selected by a command to a selected position, the numerical controller comprising: a processor configured to: hold a partial area of the outer peripheral portion of the turret as a passage-prohibited area, the turret is prohibited from rotating in a rotational direction that results in the passage-prohibited area passing through the selected position; prior to rotating the turret in the rotational direction to move the selected one of the plurality of tools to the selected position, determine whether or not the selected one of the plurality of tools is present in the passage-prohibited area and whether or not the passage-prohibited area passes through the selected position as the turret is rotated in the rotational direction to move the selected one of the plurality of tools to the selected position during the tool selection; rotate the turret in the rotational direction to move the selected one of the plurality of tools to the selected position when it is determined that the selected one of the plurality of tools is not present in the passage-prohibited area and the passage-prohibited area does not pass through the selected position as the turret is rotated in the rotational direction to move the selected one of the plurality of tools to the selected position; and prohibit the turret from rotating in the rotational direction and generate an alarm when it is determined that the selected one of the plurality of tools is present in the passage-prohibited area or when it is determined that the passage-prohibited area will pass through the selected position as the turret is rotated in the rotational direction.
2. A numerical controller configured to rotate, during a tool selection, a turret, which holds a plurality of tools on an outer peripheral portion thereof, thereby moving a selected one of the plurality of tools selected by a command to a selected position, the numerical controller comprising: a processor configured to: hold a partial area of the outer peripheral portion of the turret as a passage-prohibited area, the turret is prohibited from rotating in a rotational direction that results in the passage-prohibited area passing through the selected position; prior to rotating the turret in the rotational direction to move the selected one of the plurality of tools to the selected position, determine whether or not the selected one of the plurality of tools is present in the passage-prohibited area and whether or not the passage-prohibited area passes through the selected position as the turret is rotated in the rotational direction to move the selected one of the plurality of tools to the selected position during the tool selection; rotate the turret in the rotational direction to move the selected one of the plurality of tools to the selected position when it is determined that the selected one of the plurality of tools is not present in the passage-prohibited area and the passage-prohibited area does not pass through the selected position as the turret is rotated in the rotational direction to move the selected one of the plurality of tools to the selected position; prohibit the turret from rotating in the rotational direction when it is determined that the selected one of the plurality of tools is present in the passage-prohibited area or when it is determined that the passage-prohibited area will pass through the selected position as the turret is rotated in the rotational direction; and in response to prohibiting the turret from rotating in the rotational direction, select a new tool outside the passage-prohibited area, and move the new tool to the selected position.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(17)
(18) 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.
(19) 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.
(20) 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.
(21) In the example of
(22) 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
(23) 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
(24) 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
(25) Alternatively, as shown in
(26) 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.
(27) 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.
(28) The operation of the numerical controller 100 will be described further in detail with reference to the flowcharts of
(29) Step S1: The numerical controller 100 receives a tool change command.
(30) Step S2: The passage-prohibited area check unit 120 receives a command value T of the tool change command.
(31) 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”.
(32) 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.
(33) 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.
(34) 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.
(35) 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.
(36) 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.
(37) Step S7: The passage-prohibited area check unit 120 normalizes NX_T so as to obtain “1≤NX_T≤MX_T”.
(38) Step S8: The passage-prohibited area check unit 120 normalizes ST and ED so as to obtain “ST<ED”.
(39) 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.
(40) 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.
(41) 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.
(42) 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.
(43) 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.
(44) Step S14: The passage-prohibited area check unit 120 updates the current tool number to PR_T+ΔT.
(45) 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.
(46) 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.
(47) The following is a description of some examples of the operation of the numerical controller 100 according to the present embodiment.
Example 1
(48)
Example 2
(49)
Example 3
(50)
(51) 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.
(52) 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.
(53) 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.