1. Field of the Invention
The present invention relates to the numerical controller for performing control of path table operation.
2. Description of the Related Art
A signal with the variable value such as time, the principal axis position and or another axis position is set as a reference signal. The position of the control axis to the reference signal value is stored as table format data. And the control axis is drive-controlled in synchronization with the reference signal. The control system mentioned above is known as path table operation.
For example, Japanese Patent Application Laid-Open No. 2003-303005 mentions path table operation that stores the position of the control axis to the position of the reference axis (the reference signal) in a data table and drives the control axis in synchronization with the motion of the reference axis. In path table operation, the auxiliary functions and the principal axis function are set and stored with respect to the position of the reference axis and those functions are also executed in synchronization with the position of the reference axis. And the position of the reference axis is overridden and path table operation is performed on the basis of the overridden position of the reference axis.
Meanwhile, it is known to provide the numerical controller with the self-diagnosis function or the like in order to facilitate investigation of the source of alarm generation when an alarm is generated and operation has to be suspended while operation of tools such as the machine tool is being controlled by the numerical controller. For example, Japanese Utility Model Application Laid-Open No. 3-25904 mentions the numerical controller comprising the self-diagnosis function to chronologically store alarm generation history, input signal history, interpolated output history, date and time information.
When an alarm is generated and operation is stopped while the numerical controller is being operated, the numerical controller stores the alarm generation history and the operating history and so forth in order to facilitate investigation of the source of alarm generation is already known as mentioned above. However, the work of investigating the source of alarm generation is not straightforward in a conventional system for storing alarm history in cases of an alarm is generated during path table operation.
The processor of the numerical controller judges whether an alarm has been generated in every predetermined cycle. If an alarm is generated, the processor stores alarm signal information, I/O signal information at that time, date and time information in history buffer 100 as alarm generation history information. Thereafter, alarm generation history information, which is the single unit that consists of alarm signal information, I/O signal information, date and time information, is stored in history buffer 100 whenever an alarm is generated. The history buffer 100 is constituted as ring buffer-format and alarm generation history information of the predetermined number of units is stored cyclically.
Further, the source of alarm generation is investigated by reading alarm generation history information stored in history buffer 100 with display control means 101 and displaying alarm generation history information on display device 102 or is investigated on the basis of alarm generation history information stored in external storage device 104 via external output means 103.
If alarm history display instruction is input to the numerical controller when an alarm is generated and operation of the numerical controller is stopped, alarm generation history information stored in history buffer 100 is displayed as shown in
Accordingly, when an alarm is generated, it is possible to discriminate the name of the program being executed and the program position from the program name and the position of cursor CS shown on the program check screen. In addition, previously generated alarm information and current (the latest) alarm information are displayed on the screen displaying alarm generation history information shown on
However, when an alarm is generated during path table operation, the position of cursor CS on the program check screen displays the row of path table operation start instruction. FIG. 10A shows an example in which an alarm is generated during path table operation and cursor CS is displayed on the program check screen in the position ‘M1013Q0001’ which is path table operation start instruction.
Hence, when an alarm is generated during path table operation, it is only known that an alarm was generated during path table operation and it is not possible to specify the position in which an alarm was generated during path table operation.
Therefore, an object of the present invention is to solve this problem and to make it possible to specify the position in which an alarm was generated during path table operation.
The reference signal value and the position of the control axis to the reference signal value are stored in memory as a path table in order to drive-control the control axis in synchronization with the reference signal of a variable value. The present invention relates to the numerical controller that performs path table operation to drive-control the control axis in synchronization with the reference signal based on stored path tables. The numerical controller comprises means that stores, in each predetermined sampling cycle during path table operation, the reference signal value and the position of the control axis which is in synchronization with the reference signal in buffer at the time of sampling as operating history information for predetermined period and saving memory that stores operating history information accumulated in buffer when an alarm is generated.
M code information instructed during sampling may also be extracted and used as operating history information in each predetermined sampling cycle.
The information on the state during sampling of preset terms representing the state of the numerical controller may be extracted and used as operating history information in each predetermined sampling cycle. The preset terms representing the state of the numerical controller can include the program name of a path table under execution, the state of I/O signal, the principal axis override value, the time override value.
The numerical controller can further comprise means for reading operating history information stored in the operating history saving memory and causing the display means to display operating history information. The numerical controller can also further comprise means for reading, from the program name of a path table under execution stored as operating history information, data of the path table of that program name and causing the display means to display the data of the path table. A cursor can be displayed to the data that is corresponding to the data inside of the displayed path table based on the reference signal value in displayed operating history information.
The numerical controller may also comprise a plurality of memory for storing operating history and enable to store many operating history information
When an alarm is generated during path table operation, the numerical controller of the present invention stores the instruction point in path table operation connected with alarm generation and therefore facilitates investigation of the source of alarm generation. Furthermore, in addition to the states of the numerical controller when an alarm is generated and a predetermined time before the alarm generation, the numerical controller stores the position of the axis, which is drive-controlled in synchronization with the reference signal, and the instructed M codes. Hence, investigation of the source of alarm generation is further facilitated by displaying storage information and so forth.
The above objects and characteristics of the present invention and further objects and characteristics will become clear from the following description of the preferred embodiments with reference to the attached drawings as follows:
When the numerical controller is performing path table operation, date and time information 30, reference signal information 31 of path table operation (a signal with the variable value such as time, the principal axis position, an other axis position), control data 32 for performing control in synchronization with the reference signal, information 33 representing the state of the numerical controller during sampling are stored in buffer 34 in each predetermined sampling cycle.
The path table operation reference signal information 31 includes a signal indicating time and a signal indicating the position of the specified moving axis or indicating the position of the principal axis. In addition, the position of the control axis controlled in association with the value indicated by the reference signal and the M codes (the codes of the auxiliary functions) are stored in path table provided in memory. Hereinafter, the reference signal value for path table operation will be referred to as ‘the reference signal value’ and the data of the reference signal will be called ‘the reference signal information’.
The control data (synchronized control data) 32, which is controlled in synchronization with the reference signal, includes the position of the control axis that drives moving parts of the machine tool or the like, the principal axis position of the machine tool, and M code instructions output in synchronization with the reference signal (or instructions for the auxiliary functions that NC machine tool have the functions such as to start/stop the rotation of the principal axis, automatic tool exchange, ON/OFF states of coolant).
The information 33 representing the state of the numerical controller includes state information required for specifying (or investigating) the source of alarm generation such as alarm signal information, I/O information, the path table program name, and includes principal axis override and time override historical information.
Buffer 34 is formed of ring buffer type and buffer 34 cyclically stores, as one set of operating history information, date and time information 30 during sampling which is picked up in each sampling cycle, reference signal information 31, synchronization control data 32, and information 33 representing the state of the numerical controller. As a result, information during a plurality of sampling events for the predetermined period is stored in buffer 34.
When an alarm is generated, operation of the numerical controller is stopped and operating history information stored in buffer 34 is stored in the operating history saving memory 36.
Furthermore, when investigating the source of alarm generation, operating history information stored in operating history saving memory 36 is read by display control means 37 and displayed on a display device 38 or operating history information stored in the operating history saving memory 36 is read by external output means 39 and stored in an external storage device 40.
Operating history information displayed on the display device 38 (date and time information 30, reference signal information 31, synchronization control data 32, and information 33 representing the state of the numerical controller) or operating history information stored in the external storage device 40 is referred to in order to specify the source of alarm generation. In addition, when operating history information stored in the operating history saving memory 36 is displayed on the display device 38 (or when operating history information is stored in the external storage device 40), table format data (path table data) 35 of the program name specified by the information 33 representing the state of the numerical controller which is included in operating history information is read from memory and displayed on the display device 38 (or stored in the external storage device 40 with operating history information).
The displayed data (or the data stored in the external storage device 40) includes reference information when an alarm was generated, synchronization control data for the position of the synchronized control axis, and information of the state of the numerical controller. As a result, the point of alarm generation can be clearly specified even in the case of an alarm that is generated during parameter operation. Furthermore, operating history information during a plurality of sampling events (date and time information 30, reference signal information 31, synchronization control data 32, and information 33 representing the state of the numerical controller) are displayed (and stored) retroactively starting from when the alarm was generated. Hence, it is possible to perform investigation of the source of alarm generation by referring to information and investigation is straightforward.
The operating history saving memory 36 is divided into a plurality of storage areas as shown in
In
The memory 12 stores system programs or input the NC program and path tables (table format data) and comprises memory unit that corresponds to the buffer 34 which stores operating history and memory unit that corresponds to the operating history saving memory 36. The axis control means 17 performs position and velocity feedback control on the basis of motion instruction issued by the CPU 11 based on the NC program or the like and the feedback signal from the position/velocity detector that is attached to a servo motor 21, and further performs current feedback control, to drive the servo motor via a servo amplifier. The number of each of the axis control means 17 and the servo motor 21 to be provided are the same as the number of control axes of the machine tool. However, only one of each of axis control means 17 and servo motor 21 is shown in
Furthermore, the principal axis control means 18 drive-controls the principal axis motor 22 by performing velocity control on the basis of velocity instruction issued by the CPU 11 and the feedback signal from a detector (not shown) for detecting the rotational speed of the principal axis.
The numerical controller 10 is the same as the conventional numerical controller that controls the machine tool or the like in view of constitution but different from the conventional numerical controller in that software such as operating history saving processing software, which captures operating history data during path table operation (described subsequently) in buffer and stores the operating history data in operating history saving memory when an alarm is generated, is stored in the memory 12.
The CPU 11 of the numerical controller 10 executes the NC program shown in
During path table operation, the CPU 11 executes the operating history saving processing shown in
First, the CPU 11 reads date and time information from timer means 16 (step S1) and reads the current value of the reference signal (a signal representing the time generated within the numerical controller, a signal indicating the principal axis position, or a signal not shown in
The CPU 11 stores the operating history information thus read (date and time information, reference signal value, control axis position, M codes, and signal information representing the state of the numerical controller) in ring buffer-format memory unit provided in the memory 12 (corresponding to the buffer 34 in
The CPU 11 then judges whether an alarm has been generated (step S5) and, unless an alarm has been generated, ends the processing during sampling. Meanwhile, in cases where an alarm has been generated, the CPU 11 stops operation of the numerical controller (step S6) and stores operating history information stored in ring buffer-format memory unit in operating history saving memory unit provided in nonvolatile memory unit of memory 12 (corresponds to the operating history saving memory 36 in
Upon investigating the source of alarm generation when an alarm is generated and operation of the numerical controller is stopped, the source of alarm generation is investigated based on operating history information stored in operating history saving memory unit being displayed on display device 14 or based on operating history information that is transferred to a external storage device via interface 15 and stored in the external storage device.
Therefore, in cases where operating history information is displayed on the display device 14, if alarm information display instruction is input by means of input means 13, the latest operating history information stored in the operating history saving memory unit of memory 12 is read and displayed on the display screen of display device 14. In this case, information to be first displayed is the operating history information at the time of alarm generation.
In addition, only operating history information stored in operating history saving memory unit of memory 12 may be displayed. However, in this embodiment, from a program name of path tables contained in the latest operating history information displayed, the path table format data of the program name stored in memory 12 is read and the path table format data thus read is also displayed.
The CPU 11 starts processing of
Furthermore, the CPU 11 specifies the point of the executed instruction on the path table format data when an alarm is generated, based on the reference signal value of displayed operating history information (step T5) and displays a cursor in the position of the specified instruction point in the displayed path table format data (step T6). When the corresponding instruction point of the path table format data is specified from the reference signal value as mentioned above, the CPU 11 judges whether the displayed reference signal value exists between the reference signal values of the respective instructions of row n and row (n+1) (where n=0, 1, 2, . . . ) of the path table format data. Further, when the reference signal exists, the CPU 11 assumes that the instruction of row (n+1) at this time is the instruction that is executed when an alarm is generated (the point of the instruction in the path table format data corresponding to the displayed reference signal value) and displays a cursor in that position.
When operating history information display instruction is input, operating history information (date and time information, reference signal value, control axis position, M codes, and signal information representing the state of the numerical controller) picked up during sampling in the state where an alarm is first generated is displayed.
In the example shown in
Furthermore, based on the reference signal value ‘4800’ when an alarm is generated, the cursor CS is displayed in the position of the path table format data ‘L5000 X1000.0’ of the instruction that is being executed when the alarm is generated. This is because the fact that the reference signal value is ‘4800’ means that the instruction for the path table format data ‘L5000 X1000.0’ is sampled under execution and therefore cursor CS is displayed in the position ‘L5000 X1000.0’.
Additionally, if scroll instruction is input by the input means 13, operating history information that is picked up at each sampling event is displayed on the display screen of the display device 14 retroactively starting with the point that the alarm was generated. Thereupon, in cases where the reference signal value goes back to the position of the value instructed by the path table, the cursor CS is displayed in the data position in the path table format data representing this value.
Operating history saving memory unit (memory 36 in
As described herein above, because operating history information representing the operating state of the numerical controller is displayed retroactively starting from when an alarm was generated, it is possible to easily specify the source of the alarm generation by referring to the displayed operating history information.
When operating history information stored in the operating history saving memory unit is stored in an external storage device, path table format data corresponding to the program name of the path table stored in each operating history information item is read from the memory 12 and stored with the operating history information.
Number | Date | Country | Kind |
---|---|---|---|
2007-294670 | Nov 2007 | JP | national |