The embodiments of the invention will be described below in detail with reference to the accompanying drawings. While a machine tool having one form will be used as an example in the embodiments below, the invention can be applied to an industrial machine and an industrial robot in addition to a machine tool.
The data observation device 1 is connected to the control device 2 communicatably, and has an observational data-specifying means 11, a trigger data-specifying means 12, a trigger condition-setting means 13, and a data display unit 14. The observational data-specifying means 11 specifies observational data to be targeted for observation. The trigger data-specifying means 12 specifies trigger data used to determine the timing of a trigger (or the timing of triggering) for start and/or termination of acquisition of observational data. The trigger condition-setting means 13 sets a trigger condition to apply a trigger based on a value of trigger data. The data display unit 14 displays the observational data acquired by data acquisition unit 30 on a display device such as a CRT or LCD. When the control device 2 is an NC control device, both observational and trigger data can be specified with parameters. Herein the parameters are pieces of data for making specifications in association with a coordinate system, the control of axes and screen display required for numerical control.
The control device 2 has a control unit 20 and a data acquisition unit 30. The control unit 20 has a high-hierarchical controller 21, a servo control unit 22, and a spindle control unit 23. The high-hierarchical controller 21 analyzes a working program for a work piece, sends a command for driving the servo motor to the servo control unit 22, and sends a command for driving the spindle motor to the spindle control unit 23. The high-hierarchical controller 21 receives feedback data in response to commands from the servo control unit 22 and the spindle control unit 23. The data acquisition unit 30 judges whether or not the trigger condition to be described later is satisfied in the trigger-judging unit 32, and starts or terminates acquisition of observational data from the control unit 20, and acquires observational data.
The trigger condition will be described below. Specifically, trigger data used to determine the trigger timing of observational data may be position feedback data of X-axis and Y-axis servo motors when the observational data are RPM (the Number of Rotations) of a Z-axis spindle motor and an electric current value thereof. In this case, a condition where the position feedback data of the X-axis and Y-axis servo motors are each within a predetermined range can be set as a trigger condition. The trigger condition-judging process will be described below by way of first to fourth concrete examples.
As for the flow charts specified in the description below, the numbers following the character “S” show step numbers.
At Step S301, trigger-target data D12 is recognized.
At Step S302, a trigger condition (a≦D1≦b) is recognized.
At Step S303, the trigger-target data D1 is monitored.
At Step S304, it is judged whether or not the trigger-target data D1 satisfies the trigger condition a ≦D1≦b. The process execution proceeds to Step S305 when the result of the judgment is YES, and it returns to Step S303 when the result is NO.
At Step S305, acquisition of observational data is started or terminated.
At Step S401, trigger-target data D1, D2, . . . , Dx are recognized.
At Step S402, the trigger condition (all the conditions a≦D1≦b, c ≦D2≦d, and x≦Dx≦y are met) is recognized.
At Step S403, the trigger-target data D1 is monitored.
At Step S404, it is judged whether or not the trigger-target data D1 satisfies the trigger condition (a≦D1≦b) recognized at Step S402. The process execution proceeds to Step S405 when the result of the judgment is YES, and it returns to Step S403 when the result is NO.
At Step S405, trigger-target data D2 is monitored.
At Step S406, it is judged whether or not the trigger-target data D2 satisfies the trigger condition (c≦D2≦d) recognized at Step S402. The process execution proceeds to Step S407 when the result of the judgment is YES, and it returns to Step S403 when the result is NO.
At Step S407, the trigger-target data Dx is monitored.
At Step S408, it is judged whether or not the trigger-target data Dx satisfies the trigger condition (x≦Dx≦y) recognized at Step S402. The process execution proceeds to Step S409 when the result of the judgment is YES, and it returns to Step S403 when the result is NO.
At Step S409, acquisition of observational data is started or terminated.
At Step S501, the trigger-target data D1, D2, . . ., Dx are recognized.
At Step S502, the trigger condition (any one of the conditions a≦D1≦b, c≦D2≦d, and x≦Dx≦y is met) is recognized.
At Step S503, the trigger-target data D1 is monitored.
At Step S504, it is judged whether or not the trigger-target data D1 satisfies the trigger condition (a≦D1≦b) recognized at Step S502. The process execution proceeds to Step S509 when the result of the judgment is YES, and it proceeds to Step S505 when the result is NO.
At Step S505, the trigger-target data D2 is monitored.
At Step S506, it is judged whether or not the trigger-target data D2 satisfies the trigger condition (c≦D2≦d) recognized at Step S502. The process execution proceeds to Step S509 when the result of the judgment is YES, and it proceeds to Step S507 when the result is NO.
At Step S507, the trigger-target data Dx is monitored.
At Step S508, it is judged whether or not the trigger-target data Dx satisfies the trigger condition (x≦Dx≦y) recognized at Step S502. The process execution proceeds to Step S509 when the result of the judgment is YES, and it returns to Step S503 when the result is NO.
At Step S509, acquisition of observational data is started or terminated.
At Step S601, the trigger-target data D1, D2, . . . , Dx are recognized.
At Step S602, the trigger condition (a≦y≦b) of a function y=f(D1, D2, . . . , Dx) of the trigger-target data D1, D2, . . . , Dx is recognized.
At Step S603, the trigger-target data D1, D2, . . . , Dx are monitored.
At Step S604, the function y=f(D1, D2, . . . , Dx) is calculated.
At Step S605, it is judged whether or not the function y of the trigger-target data D1, D2, . . . , Dx satisfies the trigger condition a≦y≦b. The process execution proceeds to Step S606 when the result of the judgment is YES, and it returns to Step S603 when the result is NO.
At Step S606, acquisition of observational data is started or terminated.
Number | Date | Country | Kind |
---|---|---|---|
2006-157494 | Jun 2006 | JP | national |