1. Field of the Invention
This invention relates to a time chart creation apparatus, a controller, a mechanical element control system, a time chart creation method, and an information storage medium.
2. Description of Background Art
Japanese Patent Application Laid-open No. 2003-228403 describes a system in which a personal computer is used to create a time chart that indicates an operation pattern of an actuator, such as a cylinder, which is automatically operated based on the created time chart.
Japanese Patent Application Laid-open No. 07-191717 describes a control program automatic creation apparatus having a function of automatically creating a ladder program that is directly executed by a programmable controller from a time chart. The ladder program describes the operation of an arm, which is an n-state control target device, that moves to a designated position based on the time chart, and device control information that includes basic parameters including the maximum movement velocity, acceleration time, deceleration time, and the like, and operation parameters including the movement velocity and the like, which are stored in a device control information storage unit.
Japanese Patent Application Laid-open No. 2003-84838 describes utilization of a trapezoidal velocity command that is generated by changing the acceleration time, constant-velocity time, and deceleration time based on an intended movement distance when generating a target track for causing a positioning control target to arrive at a target position from a current position.
The entire contents of these publications are incorporated herein by reference.
According to one aspect of the present invention, a time chart creation apparatus for providing control data to a machine control system controlling an operation conversion apparatus includes circuitry which receives an input of a travel distance of a mechanical element of the operation conversion apparatus, receives an input of one or more of an acceleration time, a deceleration time, an acceleration rate and a deceleration rate of the mechanical element of the operation conversion apparatus, calculates a time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate and the deceleration rate such that the time chart includes a velocity transition of the mechanical element of the operation conversion apparatus, and outputs the control data to the machine control system, which controls the mechanical element of the operation conversion apparatus based on the time chart represented in the control data.
According to another aspect of the present invention, a machine control system for controlling an operation conversion apparatus includes a controller which controls a mechanical element of the operation conversion apparatus connected to the controller based on a time chart represented in control data. The controller receives the time chart from a time chart creation apparatus including circuitry which receives an input of a travel distance of the mechanical element of the operation conversion apparatus, receives an input of one or more of an acceleration time, a deceleration time, an acceleration rate and a deceleration rate of the mechanical element of the operation conversion apparatus, calculates the time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate and the deceleration rate such that the time chart includes a velocity transition of the mechanical element of the operation conversion apparatus, and outputs the control data to the controller which controls the mechanical element of the operation conversion apparatus based on the time chart represented in the control data.
According to yet another aspect of the present invention, a method of creating a time chart for providing control data to a machine control system controlling an operation conversion apparatus includes receiving a user input of a travel distance of a mechanical element of the operation conversion apparatus, receiving an input of one or more of an acceleration time, a deceleration time, an acceleration rate and a deceleration rate of the mechanical element of the operation conversion apparatus, calculating a time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate and the deceleration rate such that the time chart includes a velocity transition of the mechanical element of the operation conversion apparatus, and outputting the control data to the machine control system that controls the mechanical element of the operation conversion apparatus based on the time chart represented in the control data.
According to still another aspect of the present invention, a non-transitory computer readable medium having stored thereon a program that when executed by a computer causes the computer to execute a method of creating a time chart for providing control data to a machine control system controlling an operation conversion apparatus, and the method includes receiving an input of a travel distance of a mechanical element of the operation conversion apparatus, receiving an input of one or more of an acceleration time, a deceleration time, an acceleration rate and a deceleration rate of the mechanical element of the operation conversion apparatus, calculating a time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate and the deceleration rate such that the time chart includes a velocity transition of the mechanical element of the operation conversion apparatus, and outputting the control data to the machine control system that controls the mechanical element of the operation conversion apparatus based on the time chart represented in the control data.
A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:
The embodiments will now be described with reference to the accompanying drawings, wherein like reference numerals designate corresponding or identical elements throughout the various drawings.
The time chart creation apparatus 10 is an apparatus that supports the creation by the user of an arbitrary program relating to a machine control system. The machine control system controls a mechanical element by executing a program, which being control data describing control contents. Specifically, the time chart creation apparatus 10 supports the creation of a time chart (operation pattern diagram) on a computer screen. Further, the time chart creation apparatus 10 converts the thus-created time chart into control data that can be executed by a controller included in the machine control system. The converted control data is transferred to the machine control system and executed by the machine control system.
For ease of understanding, an example is now described below in which the time chart creation apparatus 10 is used to create a time chart for causing the machine control system illustrated in
The horizontal axis of the time charts 20-1 to 20-4 is a time axis. However, the meaning of the vertical axis differs depending on the type of unit. In other words, the vertical axis of the time charts 20-1, 20-3, and 20-4, which are time charts for an input unit or an output unit, represents the level of an input signal or an output signal. The vertical axis of the time chart 20-2 for the servo unit 105 represents the movement velocity of the slider, which is a mobile body being driven by the servo unit 105. Here, the term “input unit” is defined as a device that inputs a signal level of any one of high and low to the controller 100 as an input signal, and the term “output unit” is defined as a device that receives a signal level of any one of high and low from the controller 100 as an output signal. Further, a device for driving a mobile body, like the servo unit 105, is called “mechanical element”.
The time chart 20-1 for the push switch 102 includes a waveform 22 that rises when the push switch 102 is pressed and falls when the pressing of the push switch 102 is released, which corresponds to Step S1 of
Further, during operation of the machine control system illustrated in
Similarly, during operation of the machine control system illustrated in
In the screen illustrated in
On the other hand, regarding the time chart 20-2 relating to the servo unit 105, when the start timing of the waveform 24 is designated by the cursor 30, a window 34 illustrated in
Further, on the screen illustrated in
When receiving the inputs of the condition line 32 and the identification line 23, the input reception unit 12a functions as an association reception unit structured to receive an input of an association between a timing at which a change occurs in an input from an input unit and a timing at which the mechanical element indicated by the time chart starts to move.
Returning to
Especially, as illustrated in
Here, if the designated travel distance is sufficiently large, the slider is accelerated to its maximum velocity, and then operates at a constant velocity (constant-velocity operation). If a time chart including this constant-velocity operation is referred to as a first time chart, this first time chart is the trapezoidal waveform 24 for controlling the slider to perform, in order, an acceleration operation, in which the slider accelerates for the designated acceleration time at a predetermined acceleration rate until reaching the designated maximum velocity or accelerates at the designated acceleration rate until reaching the designated maximum velocity, a constant velocity movement in which the slider moves at the designated maximum velocity, and a deceleration operation in which the slider decelerates for the designated deceleration time at a predetermined deceleration rate until stopping or decelerates at the designated deceleration rate until stopping.
In contrast, if the designated travel distance is small, the slider decelerates without being accelerated to its maximum velocity. If this operation that shifts to deceleration after acceleration is referred to as a second time chart, this second time chart is the waveform 24 of a triangular waveform, in which after an acceleration operation of accelerating at a predetermined acceleration rate for the designated acceleration time or accelerating at the designated acceleration rate, the slider is controlled to perform a deceleration operation of decelerating at a predetermined deceleration rate for the designated deceleration time or decelerating at the designated deceleration rate. Therefore, the chart calculation unit (12b) selectively calculates the first time chart and the second time chart based on the travel distance of the slider.
With the time chart creation apparatus 10 according to this embodiment, a waveform based on the operation of the actual mechanical element can be calculated. Especially, in this time chart creation apparatus, for example, if the movement distance has been designated, multiple waveforms, namely, multiple types of time chart (here, the first time chart and the second time chart) that reflect the operations of an actual mechanical element, can be selectively calculated based on the magnitude of the movement distance. Therefore, time charts reflecting the operation of an actual mechanical element can be created, and consequently, the application range of operations that can be created by the time chart creation apparatus can be significantly enlarged.
In
Further, in the window 34 illustrated in
If the acceleration time and the deceleration time or the acceleration rate and the deceleration rate are to be set the same, the user only needs to input any one of those parameters. Further, although the maximum velocity can be input by the user, a fixed value can also be stored by the time chart creation apparatus 10 as the maximum velocity, or the maximum velocity may be acquired from a different device such as the servo amplifier 106. The term “deceleration rate” as used herein means the acceleration rate in the direction in which velocity decreases (i.e., negative acceleration). When the expressions “accelerate at a predetermined acceleration rate” and “decelerate at a predetermined deceleration rate” are used, those expressions not only include cases in which the acceleration rate during acceleration and the deceleration rate during deceleration are held constant, but also cases in which the acceleration rate and the deceleration rate change smoothly or in steps so that the acceleration rate during acceleration and the deceleration rate during deceleration are a predetermined acceleration rate and a predetermined deceleration rate, respectively as a whole. For example, those expressions include a case in which the acceleration rate and the deceleration rate change along a so-called S-shaped curve. The chart display unit (12c) displays the time charts calculated by the chart calculation unit (12b) on a display.
As illustrated in
The chart data storage unit 16 also stores link data that is schematically shown in
The setting data storage unit 18 stores various pieces of information relating to the machine control system. Those pieces of information may be input by the user using the numerical value input device and the pointing device. Further, a part or all of this information may be downloaded from another computer via an information communication network, such as the Internet. Here, the setting data includes data about the type of each unit for which a time chart is stored in the chart data storage unit 16. Further, allocation data indicating which control port of the controller 100 each unit corresponds to is also included in the setting data. In addition, detailed information relating to the servo unit 105, such as a conversion rate between rotary motion of the servo motor (108a) and linear motion of the slider, is also included in the setting information.
The control data output unit 14 generates control data that can be interpreted and executed by the controller 100 based on the time chart data and link data for each unit stored in the chart data storage unit 16, and allocation data and a conversion rate stored in the setting data storage unit 18. Further, the control data output unit 14 transfers the generated control data to the controller 100. The control data includes data instructing output units, such as the LED 110, and the servo unit 105 to perform a designated operation when a designated time point arrives based on the time chart. Further, especially for an instruction that is issued based on link data, the control data includes data for monitoring the arrival of the timing relating to a drive event, and starting the driven event when the timing arrives, or as needed, after a designated time period has elapsed.
Here, among the processes performed by the chart calculation unit 12b illustrated in
As illustrated in
X1=Vm×(Ta+Td)/2 (1)
X1=Vm2×(Aa−1+Ad−1)/2 (2)
Next, the travel distance (X) and the travel distance (X1) are compared with each other (S102). If the travel distance (X) is larger, the waveform generated by this processing has a trapezoidal shape, and hence the chart calculation unit (12b) calculates the first time chart. If the travel distance (X) is smaller, the waveform generated by this processing has a triangular shape, and hence the chart calculation unit (12b) calculates the second time chart.
If the first time chart is to be calculated, the chart calculation unit (12b) calculates the constant-velocity operation time (Tc) based on the following expression (3) (S103).
Tc=(X−X1)/Vm (3)
If the shape and respective vertices of the generated first time chart are the ones shown in
t1=ts (4)
V1=0 (5)
t2=ts+Ta (6)
V2=Vm (7)
t3=ts+Ta+Tc (8)
V3=Vm (9)
t4=ts+Ta+Tc+Td (10)
V4=0 (11)
t1=ts (12)
V1=0 (13)
t2=ts+Vm/Aa (14)
V2=Vm (15)
t3=ts+Vm/Aa+Tc (16)
V3=Vm (17)
t4=ts+Vm/Aa+Tc+Vm/Ad (18)
V4=0 (19)
On the other hand, in Step S102, if the travel distance (X) is not larger than the travel distance (X1), in order to generate the second time chart, first, the chart calculation unit (12b) determines whether the travel distance (X) is equal to the travel distance (X1) (S105). If the travel distance (X) is equal to the travel distance (X1), the coordinates (tr1, Vr1) to (tr3, Vr3) of the respective vertices P1 to P3 of a triangular waveform in which the constant-velocity operation time (Tc) is zero, namely, the waveform shown in
tr1=ts (20)
Vr1=0 (21)
tr2=ts+Ta (22)
Vr2=Vm (23)
tr3=ts+Ta+Td (24)
Vr3=0 (25)
tr1=ts (26)
Vr1=0 (27)
tr2=ts+Vm/Aa (28)
Vr2=Vm (29)
tr3=ts+Vm/Aa+Vm/Ad (30)
Vr3=0 (31)
Further, if the travel distance (X) is not equal to the travel distance (X1) in Step S105, the maximum velocity (Vm) is corrected (S107). Specifically, the maximum velocity (Vm) is corrected so that when the slider is moved based on a triangular waveform formed from the designated acceleration time (Ta) and deceleration time (Td) or the designated acceleration rate (Aa) and deceleration rate (Ad), the travel distance is equal to the designated travel distance (X). The corrected maximum velocity (Vm′) is determined based on the following expression (32) when the designated acceleration time and deceleration time are used, and is determined based on the following expression (33) when the designated acceleration rate and deceleration rate are used.
Vm′=2×X/(Ta+Td) (32)
Vm′=[2×X/(Aa−1+Ad−1)]1/2 (33)
Then, using the corrected maximum velocity (Vm′) instead of the maximum velocity (Vm), each vertex of the triangular waveform is determined (S108). The processing performed at this stage may be the same as the processing performed in S106. In other words, the coordinates (tr1, Vr1) to (tr3, Vr3) of the respective vertices P1 to P3 of the triangular waveform are calculated based on the above-mentioned expressions (20) to (25) when the designated acceleration time and deceleration time are used, and are calculated based on the above-mentioned expressions (26) to (31) when the designated acceleration rate and deceleration rate are used.
If the maximum velocity (Vm) is to be corrected, user confirmation can be requested by, along with displaying the corrected maximum velocity (Vm′) on the screen, outputting a message such as “maximum velocity (Vm) needs to be changed”, for example, and setting and displaying the corrected maximum velocity (Vm′) in the numerical value entry field relating to the maximum velocity of the window 34. In this state, if the user again clicks on the OK button (34a), the processing of Step S108 of
As described above, the time chart creation apparatus 10 according to this embodiment is employed in cases in which time charts are created using the designated acceleration time and deceleration time and in cases in which time charts are created using the designated acceleration rate and deceleration rate. Further, as described above with reference to
When building a mechanical element control system, due to reasons such as limitations of a mechanical element, for example, there are cases in which it is desirable to move a mechanical element at a fixed acceleration rate and the like, or conversely, cases in which it is desirable to move a mechanical element for a fixed acceleration time and the like.
With the time chart creation apparatus 10 according to this embodiment, a time chart can be created that reflects a detailed velocity waveform for a mechanical element, such as the acceleration rate or the acceleration time. Consequently, even in cases in which it is desirable to move a mechanical element at a fixed acceleration rate, for example, a suitable time chart that meets such a demand can be created. Further, even in cases in which it is desirable to move a mechanical element for a fixed acceleration time, for example, a suitable time chart that meets such a demand can be created. In addition, by selecting which of those time charts that have different characteristics to create, detailed demands of the user can be coped with. Therefore, the time chart creation apparatus 10 according to this embodiment can further increase the flexibility of how to describe the operation of a mechanical element based on a time chart, and improve user-friendliness.
In the time chart illustrated in
Accordingly, with the time chart creation apparatus 10 according to this embodiment, output to a specific output unit (here, the LED 110) can be set (output-associated setting) so as to change in association with an input signal from an arbitrary input unit and/or an output signal to an arbitrary output unit.
Specifically, as illustrated in
Regarding this point, by definition, a time chart is a diagram that describes the operation of a device on a time axis, which is different from a diagram that is mainly intended to describe a logic circuit, such as a ladder language. Consequently, no consideration is given to, for example, processing that is described by a logic operation in which an input signal is received at an arbitrary timing, and an output signal is output in association with the input signal. With the time chart creation apparatus 10 according to this embodiment, which includes the output-associated setting unit, even the time chart describing the operation of a device on a time axis enables such basic logic operation processing. Therefore, the level of freedom in time chart creation can be significantly increased.
When a checkbox (35c) in the window 35 is checked, the output of the output unit for which an output-associated setting has been set is inverted with respect to the signal of the input unit or the output unit that is the output association source. This window 35 is an example of an output-associated setting unit realized by the input reception unit 12a.
According to this embodiment described above, by inputting information such as a travel distance of a slider and other mechanical elements, a time chart indicating the velocity transitions of the mechanical elements is automatically created. This time chart is converted into control data that can be interpreted and executed by the controller 100. Consequently, only by inputting the intuitive information of the travel distance of the mechanical element, the user can cause a mechanical element to perform an operation in which the movement velocity gradually increases and subsequently gradually decreases.
Moreover, although in the above description, a slider, which is a mechanical element that has a linear motion, is given as an example to simplify the description, this disclosure can be similarly applied even for a mechanical element that has a rotary motion.
A time chart creation apparatus according to an embodiment of the present invention includes: a travel distance reception unit which receives an input of a travel distance of a mechanical element; a time chart calculation unit which calculates, based on the travel distance, a time chart that includes a velocity transition in which a movement velocity of the mechanical element gradually increases and/or gradually decreases; a control data output unit which outputs control data for controlling the mechanical element based on the time chart; and an acceleration/deceleration time reception unit which receives an input of an acceleration time and/or a deceleration time of the mechanical element, and/or an acceleration/deceleration rate reception unit which receives an input of an acceleration rate and/or a deceleration rate of the mechanical element. The time chart calculation unit calculates the time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate, and the deceleration rate.
The time chart calculation unit may selectively calculates, based on the travel distance, a first time chart for causing the mechanical element to perform at least an acceleration operation, a constant-velocity operation, and a deceleration operation, and a second time chart for causing the mechanical element to perform an operation of shifting to deceleration after acceleration.
The time chart calculation unit may calculate, when calculating the second time chart, a time chart in which the acceleration time and/or the deceleration time is reflected as an operation of the mechanical element.
The time chart calculation unit may calculate, when calculating the second time chart, a time chart in which the acceleration rate and/or the deceleration rate is reflected as an operation of the mechanical element.
The time chart calculation unit may be capable of selecting, when calculating the second time chart, a time chart in which the acceleration time and/or the deceleration time is reflected as an operation of the mechanical element, and a time chart in which the acceleration rate and/or the deceleration rate is reflected as the operation of the mechanical element.
The time chart creation apparatus may further include: an input change timing reception unit which receives a timing at which a change occurs in an input from an input unit; and an association reception unit which receives an input of an association between a timing at which a change occurs in an input from the input unit and a timing at which the mechanical element indicated by the time chart starts to move, and the control data output unit may output control data for causing the mechanical element to start to move when the input of an association is received under a condition that a change in an input from the input unit occurs.
The time chart creation apparatus may further include an output-associated setting unit which sets so that an output to a specific output unit changes in association with an input signal from an arbitrary input unit and/or an output signal to an arbitrary output unit.
The output-associated setting unit may set whether to invert the output to the specific output unit with respect to the input signal and/or the output signal.
The time chart creation apparatus may further include a maximum velocity reception unit which receives an input of a maximum velocity of the mechanical element, and the time chart calculation unit may set a velocity of the mechanical element in the constant-velocity operation as the maximum velocity when calculating the first time chart.
A controller according to an embodiment of the present invention controls a mechanical element by executing a time chart created by the above-mentioned time chart creation apparatus.
A mechanical element control system according to an embodiment of the present invention includes: the above-mentioned controller; and a mechanical element that is connected to the controller so that the mechanical element is controllable by the controller.
A method of creating a time chart according to an embodiment of the present invention includes: receiving an input of a travel distance of a mechanical element; calculating, based on the travel distance, a time chart that includes a velocity transition in which a movement velocity of the mechanical element gradually increases or gradually decreases; outputting control data for controlling the mechanical element based on the time chart; and receiving an input of an acceleration time and/or a deceleration time of the mechanical element, and/or an acceleration rate and/or a deceleration rate of the mechanical element. The calculating of the time chart is carried out based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate, and the deceleration rate.
A computer-readable information storage medium according to an embodiment of the present invention has a program for causing a computer to function as: a travel distance reception unit which receives an input of a travel distance of a mechanical element; a time chart calculation unit which calculates, based on the travel distance, a time chart that includes a velocity transition in which a movement velocity of the mechanical element gradually increases or gradually decreases; a control data output unit which outputs control data for controlling the mechanical element based on the time chart; and an acceleration/deceleration time reception unit which receives an input of an acceleration time and/or a deceleration time of the mechanical element, and/or an acceleration/deceleration rate reception unit which receives an input of an acceleration rate and/or a deceleration rate of the mechanical element. The time chart calculation unit calculates the time chart based on the travel distance and one or more of the acceleration time, the deceleration time, the acceleration rate, and the deceleration rate.
Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.
Number | Date | Country | Kind |
---|---|---|---|
PCT/JP2012/061492 | Apr 2012 | JP | national |
The present application is a continuation of and claims the benefit of priority to International Patent Application PCT/JP2013/060758, filed Apr. 9, 2013, which is based upon and claims the benefit of priority to International Patent Application PCT/JP2012/061492, filed Apr. 27, 2012. The entire contents of these applications are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2013/060758 | Apr 2013 | US |
Child | 14524354 | US |