Numerical controller reestablishing machine coordinate value by using absolute position detector

10185300 ยท 2019-01-22

Assignee

Inventors

Cpc classification

International classification

Abstract

A numerical controller for controlling a machine receives an instruction to reestablish a machine coordinate value of a movable part of the machine and stops a servo motor driving the movable part. When the servo motor is stopped, the numerical controller acquires position information of a position detector provided to the servo motor. Then, the numerical controller updates the machine coordinate value of the movable part based on the position information, and further updates the absolute coordinate value of the movable part based on the updated machine coordinate value.

Claims

1. A numerical controller for controlling a machine including a movable part driven by a servo motor having a position detector, the numerical controller comprising: an axis stop unit configured to output an instruction to stop the servo motor upon receiving an instruction to reestablish a machine coordinate value of the movable part; a machine coordinate value updating unit configured to acquire, when the axis stop unit stops the servo motor, position information of the servo motor detected by the position detector and update, based on the acquired position information, the machine coordinate value of the movable part; and an absolute coordinate value updating unit configured to update, based on the machine coordinate value updated by the machine coordinate value updating unit, an absolute coordinate value of the movable part, wherein the servo motor is stopped until the absolute coordinate value of the movable part is updated.

2. The numerical controller according to claim 1, wherein the instruction to reestablish the machine coordinate value of the movable part is issued based on a signal operation to the numerical controller.

3. The numerical controller according to claim 1, wherein the position detector is an absolute position detector.

4. The numerical controller according to claim 2, wherein the position detector is an absolute position detector.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The forgoing and other objects and feature of the invention will be apparent from the following description of preferred embodiments of the invention with reference to the accompanying drawings, in which:

(2) FIG. 1 is an explanatory diagram showing a machine coordinate system and an absolute coordinate system;

(3) FIG. 2 is a functional block diagram showing a numerical controller according to an embodiment of the present invention;

(4) FIG. 3 is a flow chart showing a flow of process executed in the numerical controller in FIG. 2; and

(5) FIGS. 4A to 4C are transition diagrams in a coordinate system in which a machine coordinate value and an absolute coordinate value are updated.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(6) A numerical controller according to the present invention enables a rapid reestablishment of a machine coordinate value by a signal operation without moving an axis in a power activated state of a machine tool. Further, the numerical controller can select an axis for which the machine coordinate value is reestablished. At this time, an absolute coordinate value is preset in accordance with the reestablishment of the machine coordinate value.

(7) Here, the term machine coordinate value is a coordinate value in the coordinate system (machine coordinate system) based on the machine origin and the term absolute coordinate value is a coordinate value in the coordinate system (an absolute coordinate system, a workpiece coordinate system or a program coordinate system) based on the workpiece origin. The term workpiece origin means a position shifted from the machine origin so that the coordinate system based on the workpiece may be established.

(8) In the description hereinafter, as shown in FIG. 1, it is assumed that a coordinate system defining the machine origin as the origin of coordinate system is the machine coordinate system denoted by Xm and Ym, and a coordinate value indicating the present position in the machine coordinate system is the machine coordinate value. Further, it is assumed that a coordinate system defining the workpiece origin as the origin of coordinate system is the workpiece coordinate system denoted by Xw and Yw, and a coordinate value indicating the present position in the workpiece coordinate system is the absolute coordinate value.

(9) Since the absolute position detector and establishment of the machine origin have been publicly known by means of Japanese Patent Application Laid-Open No. 2013-084102 or other literatures, the description here will be omitted.

(10) Hereinafter, embodiments of the present invention will be described together with figures.

(11) FIG. 2 is a functional block diagram of a numerical controller according to an embodiment of the present invention. A numerical controller 1 of the present embodiment is provided with a programmable machine controller (PMC) 10, an axis stop unit 11, a servo control unit 12, a machine coordinate value updating unit 13 and an absolute coordinate value updating unit 14.

(12) The PMC 10 controls an auxiliary device of a machine tool by outputting signals to the auxiliary device based on a sequence program stored in the numerical controller 1. Further, the PMC 10 receives signals from various switches or the like on a control panel provided to the machine tool body and conducts necessary processing for the signals and then outputs processed signals to respective parts of the numerical controller 1. This PMC 10, upon receiving a signal operation, outputs a signal for starting reestablishment processing of the machine coordinate value to the axis stop unit 11.

(13) The axis stop unit 11, upon receiving the signal from the PMC 10, confirms whether the axis for which the machine coordinate value is to be reestablished is stopped or not, and after the confirmation of the stoppage, the axis stop unit 11 instructs the servo control unit 12 to prohibit the movement of the axis and also instructs the machine coordinate value updating unit 13 to update the machine coordinate value.

(14) The axis for which the machine coordinate value is reestablished is selected in advance by the setting of parameters or the like.

(15) The servo control unit 12 controls the movement of the servo motor 2 in accordance with the operation control by the numerical controller 1. Further, the servo control unit 12, upon receiving an instruction from the axis stop unit 11, cuts off instructions for movements regarding the servo motor 2 issued based on the operation control to prohibit the movements of the servo motor 2.

(16) The machine coordinate value updating unit 13, upon receiving an instruction from the axis stop unit 11, acquires the position information stored in the absolute position detector 3 provided to the servo motor 2, and updates the absolute coordinate value of the numerical controller 1 stored in the memory 20 based on the acquired position information, thereby outputting the updated machine coordinate value to the absolute coordinate value updating unit 14.

(17) The absolute coordinate value updating unit 14 updates the absolute coordinate value of the numerical controller 1 stored in the memory 20 based on the machine coordinate value updated by the machine coordinate value updating unit 13.

(18) Hereinafter, the flow of processing executed in the numerical controller 1 configured in this manner will be described based on a flowchart of reestablishment processing of the machine coordinate value and absolute coordinate value in FIG. 3, and transition diagrams of the coordinate system on which the machine coordinate value and absolute coordinate value are updated in FIGS. 4A to 4C.

(19) At the starting point of processing of reestablishment of the machine coordinate value and absolute coordinate value, the machine coordinate value controlled by the numerical controller 1 has been lost (FIG. 4A), and the reestablishment of the machine coordinate value is started by a trigger made when a signal for starting the reestablishment of the machine coordinate value issued by a signal operation or the like is received by the PMC 10. It is assumed that an automatic operation by the position control follows the end of this processing. [Step SA01] The axis stop unit 11 confirms whether the axis for which the machine coordinate value is to be reestablished is stopped or not. When the axis for which the machine coordinate value is to be reestablished is not stopped, the processing proceeds to Step SA05, and when the axis is stopped, the processing proceeds to Step SA02. [Step SA02] The axis stop unit 11 prohibits the axis to move. [Step SA03] The machine coordinate value updating unit 13 acquires the position information stored in the absolute position detector 3 and updates, based on the acquired position information, the machine coordinate value of the numerical controller 1 stored in the memory 20 (FIG. 4B). [Step SA04] The absolute coordinate value updating unit 14 updates, based on the machine coordinate value updated by the machine coordinate value updating unit 13, the absolute coordinate value of the numerical controller 1 stored in the memory 20 (FIG. 4C). [Step SA05] Whether to output the alarm indicating that the axis is not stopped is determined according to the setting or the like in the numerical controller 1. When the alarm is output, the processing proceeds to Step SA06, and when the alarm is not output, the processing returns to Step SA01 to continue confirming the stop of the axis. [Step SA06] The alarm informing that the axis is not stopped is output and the processing is terminated.

(20) FIG. 4A shows a state (state in which the machine coordinate value is lost) in which the machine coordinate value and absolute coordinate value do not accord with the position information (the position of the servo motor) of the absolute position detector 3 before processing at Step SA03. FIG. 4B shows that the machine coordinate value is updated based on the position information of the absolute position detector in Step SA03 and the updated machine coordinate value and the position information (the position of the servo motor) of the absolute position detector accord with each other. Further, FIG. 4C shows that the absolute coordinate value is updated based on the machine coordinate value updated in Step SA04.

(21) As described above, the numerical controller according to the present embodiment enables a rapid reestablishment of the machine coordinate value by a signal operation without moving the axis while the machine tool is in the power-on state and thus can reestablish the machine coordinate value and absolute coordinate value safely.

(22) Though embodiments of the present invention have been described above, the present invention is not limited to the examples of embodiments described above and can be implemented in various aspects by making an appropriate modifications.