JPH02201222A - Driving of measuring data recorder - Google Patents

Driving of measuring data recorder

Info

Publication number
JPH02201222A
JPH02201222A JP2319489A JP2319489A JPH02201222A JP H02201222 A JPH02201222 A JP H02201222A JP 2319489 A JP2319489 A JP 2319489A JP 2319489 A JP2319489 A JP 2319489A JP H02201222 A JPH02201222 A JP H02201222A
Authority
JP
Japan
Prior art keywords
driving
stepping motor
data
drive
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2319489A
Other languages
Japanese (ja)
Other versions
JPH0733970B2 (en
Inventor
Takaaki Mayumi
真弓 高明
Takashi Inoue
高志 井上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shimadzu Corp
Original Assignee
Shimadzu Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP2319489A priority Critical patent/JPH0733970B2/en
Publication of JPH02201222A publication Critical patent/JPH02201222A/en
Publication of JPH0733970B2 publication Critical patent/JPH0733970B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)

Abstract

PURPOSE:To enable recording of a data waveform in real time by driving a stepping motor at each fixed driving timing with respect to a data inputted at each period from a measuring device. CONSTITUTION:A measuring data from a measuring device 1 is outputted through a filter 2. The measuring data subjected to a filter processing is converted into a digital signal with an A/D converter 3 and inputted into a control section composed of a CPU 5, an ROM 6 and an RAM 7 to be processed for clearing. With the CPU 5, the setting of driving conditions is performed to drive a stepping motor 10 with a vibration circuit 9 along with a data processing. As a digital data is sent at each fixed time from the measuring device 1, the CPU 5 sets a driving timing at each fixed time and outputs a drive signal to a drive circuit 9 for the stepping motor 10.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、材料試験機等により計測されたデータを記録
する記録方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a recording method for recording data measured by a material testing machine or the like.

[従来の技術] 材料試験機等の計測装置により計測されたデータはxY
プロッタ等の記録装置に記録される。XYプロッタは、
ディジタル信号である入力信号に応じて紙などの上に2
次元の図形を描く装置であり、自動平衡記録計やペンオ
シログラフに比べて直線、円、文字などを描くのに適し
た装置である。プロッタの駆動源としては、位置制御に
適することからステッピングモータが使用されている。
[Prior art] Data measured by a measuring device such as a material testing machine is
It is recorded on a recording device such as a plotter. The XY plotter is
2 on paper etc. depending on the input signal, which is a digital signal.
It is a device that draws dimensional figures, and is more suitable for drawing straight lines, circles, letters, etc. than automatic balance recorders and pen oscillographs. A stepping motor is used as a drive source for a plotter because it is suitable for position control.

[発明が解決しようとする課題] 上記プロッタの駆動源となるステッピングモータは、モ
ータの種類、駆動方法、回転方向によって巻線の電流値
や駆動のシーケンスを決定しなければならないが、駆動
の際、最もやっかいな問題は駆動のタイミング制御であ
る。自起動周波数領域と呼ばれる低い回転範囲内で&i
駆動のタイミングに問題はないが、自起動周波数以上の
高速回転を得ようとすればスローアップと呼ばれる徐々
に駆動のタイミングを早くする駆動方法を採用し、駆動
のタイミングを適当に制御しなければ、脱調と呼ばれる
ミスステップが起こり、高精度の位置制御は不可能にな
る。逆転時には更に注意深いりイミング制御が要求され
る。そのため、ステップモータを使用したプロッタでは
時々刻々変化するアナログ波形をリアルタイムで描くの
は困難であるという問題点があった。
[Problems to be Solved by the Invention] In the stepping motor that serves as the drive source for the plotter, the winding current value and drive sequence must be determined depending on the type of motor, drive method, and rotation direction. The most troublesome problem is drive timing control. Within the low rotational range called the self-starting frequency region &i
There is no problem with the drive timing, but if you want to achieve high-speed rotation above the self-starting frequency, you will need to adopt a drive method called slow-up, which gradually speeds up the drive timing, and control the drive timing appropriately. , a misstep called step-out occurs, making highly accurate position control impossible. When reversing, even more careful timing control is required. Therefore, there is a problem in that it is difficult to draw constantly changing analog waveforms in real time using a plotter using a step motor.

そこで本発明は、ステッピングモータを使用したプロッ
タにおいてアナログ波形をリアルタイムで記録できる計
測データ記録装置の駆動方法を提供することを目的とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method for driving a measurement data recording device that can record analog waveforms in real time in a plotter using a stepping motor.

[課題を解決するための手段] 本発明は上記課題を解決するために、次のような構成を
採用した。
[Means for Solving the Problems] In order to solve the above problems, the present invention employs the following configuration.

すなわち、本発明にかかる計測データ記録装置の駆動方
法は、ステッピングモータを駆動源とするプロッタ等計
測データ記録装置の駆動方法であって、計測器から一定
時間間隔に人力するデータに対し、ステッピング千−夕
のステップ駆動数をnとするとき、一定期間Tの両端で
の分割期間をT / 2 n 、その他の分割期間をT
 / nとして決定される各ステップ駆動タイミングで
ステッピングモータを駆動することを特徴とする。
That is, the method for driving a measurement data recording device according to the present invention is a method for driving a measurement data recording device such as a plotter using a stepping motor as a driving source, and is a method for driving a measurement data recording device such as a plotter using a stepping motor as a driving source. - When the number of step drives in the evening is n, the divided periods at both ends of the fixed period T are T / 2 n, and the other divided periods are T
The stepping motor is characterized in that the stepping motor is driven at each step drive timing determined as /n.

[作用] 計測器からデータ信号が一定時間間隔で入力される毎に
、ステッピングモータの駆動条件が単純なアルゴリズム
で決定され、無理のない駆動のタイミング制御が行なわ
れる。例えば、1〜4ステツプ駆動の場合、各ステップ
毎の時間間隔が4T3T、晶T、4T、打、!’4T、
4T)T とな・て、測定対象が急激に変化する波形記
録の場合でも、ステッピングモータの加速が滑らかに行
なわれることになり、リアルタイムで計測波形を描くこ
とができる。
[Operation] Each time a data signal is input from a measuring device at a fixed time interval, the driving conditions of the stepping motor are determined by a simple algorithm, and reasonable driving timing control is performed. For example, in the case of 1-4 step driving, the time interval for each step is 4T3T, crystal T, 4T, stroke,! '4T,
4T)T Therefore, even in the case of waveform recording where the object to be measured changes rapidly, the stepping motor is smoothly accelerated, and the measured waveform can be drawn in real time.

[実施例コ 第1図は本発明の実施例である駆動方法を適用した計測
データ記録装置の構成を示すプロッタ図である。材料試
験機等の計測装置1により採取された計測データは、フ
ィルタ2を介して出力される。フィルタ2は後述するス
テッピングモータ10が脱調現象を起こさないように、
測定対象における急激な変化分を取り除くためのもので
ある。未実施例では、±4ステップの範囲に制限された
データがプロッタに与えられるようになっている。一般
に記録装置が追従できる最高周波数が決まっており、こ
のフィルタの特性が本装置の応答特性を決定する。
Embodiment FIG. 1 is a plotter diagram showing the configuration of a measurement data recording apparatus to which a driving method according to an embodiment of the present invention is applied. Measurement data collected by a measuring device 1 such as a material testing machine is outputted via a filter 2. The filter 2 is designed to prevent the stepping motor 10 (to be described later) from losing synchronization.
This is to remove sudden changes in the measurement target. In the unimplemented example, data limited to a range of ±4 steps is provided to the plotter. Generally, the highest frequency that a recording device can follow is determined, and the characteristics of this filter determine the response characteristics of this device.

フィルタ処理の行なわれた計測データはA/D変換器3
でディジタル信号に変換されて、CPU5、ROM6.
RAM?で構成される制御部に入力され、決算処理され
る。CPU5ではデータ処理とともに、駆動回路9によ
りステッピングモータ10を駆動するための駆動条件の
設定が行なわれる。
The filtered measurement data is sent to the A/D converter 3.
It is converted into a digital signal by CPU5, ROM6.
RAM? The information is input to the control unit consisting of , and the settlement process is performed. The CPU 5 processes data and also sets drive conditions for driving the stepping motor 10 by the drive circuit 9.

計測データに基づきリアルタイムで測定波形を記録する
には、瞬時の駆動制御が問題となる。CPU5は、デジ
タルデータが計測器本体から一定時間毎に送られてくる
ので、かかる一定時間毎に駆動タイミングを設定して駆
動回路9へ駆動信号を出力する。
In order to record measured waveforms in real time based on measurement data, instantaneous drive control is a problem. Since digital data is sent to the CPU 5 from the measuring instrument at regular intervals, the CPU 5 sets drive timing and outputs a drive signal to the drive circuit 9 at regular intervals.

第2図はcpusにより、入力されるディジタルデータ
に従って設定される駆動タイミングを示す図である。デ
ータが送られてくる時間間隔をT、ステップ駆動数をn
とすると、時間Tの間におけるnステップ駆動時のタイ
ミングを、Tの両端でのタイミング期間はT/2n、そ
れ以外の期間はT/nとして決定する。同図における0
印が1ステツプ移動開始するタイミングを示す。この駆
動タイミングはプロッタのX軸、Y軸に対し独立して設
定される。
FIG. 2 is a diagram showing drive timings set by the CPU according to digital data input. The time interval at which data is sent is T, and the number of step drives is n.
Then, the timing during n-step driving during time T is determined as T/2n for the timing period at both ends of T, and T/n for the other periods. 0 in the same figure
The mark indicates the timing at which it starts moving one step. This drive timing is set independently for the X-axis and Y-axis of the plotter.

第3図は、測定対象が急激に変化したためこれに対処す
べく加速する場合の駆動タイミングを示す図である。測
定対象が急激に変化した場合でも前処理(フィルタ処理
)が行なわれているので、1ステツプ駆動、2ステツプ
駆動、3ステツプ駆動の順にステップ駆動値が決定され
る。この場合第3図に示すように、各ステップ毎の時間
間隔は、 ユ■・0.75T  上T−0,5T 4                  、 2旦T’
!0.41T  上T’1.33T12       
        、 3上■ζ0.33T、上■ζ0.
29T 上T−0,25T  上T−0,25T・・・・・・と
なり、滑らかに加速されていくことになる。
FIG. 3 is a diagram showing drive timing when acceleration is performed to cope with a sudden change in the object to be measured. Since preprocessing (filtering) is performed even when the object to be measured changes rapidly, step drive values are determined in the order of 1-step drive, 2-step drive, and 3-step drive. In this case, as shown in Fig. 3, the time interval for each step is
! 0.41T Upper T'1.33T12
, 3 upper ■ ζ 0.33T, upper ■ ζ 0.
29T upper T-0, 25T upper T-0, 25T, etc., and the vehicle is smoothly accelerated.

このように設定された駆動タイミングにより駆動回路9
が作動し、他の相数、駆動モード、ステップ数、回転数
等の設定された駆動条件に基づいてステッピングモータ
ー0が駆動される。他の駆動条件等はキーボード14か
らIlo 15を介してcpusに設定指示される。ス
テッピングモータIOが駆動されることにより、プロッ
タのプーリ11が回転しプリントヘッド12等の記録素
子を移動させる。
With the drive timing set in this way, the drive circuit 9
is activated, and the stepping motor 0 is driven based on other set drive conditions such as the number of phases, drive mode, number of steps, and number of rotations. Other driving conditions etc. are set and instructed to the CPU from the keyboard 14 via the Ilo 15. By driving the stepping motor IO, the pulley 11 of the plotter rotates and moves recording elements such as the print head 12.

上記したように本発明にかかる駆動方法では、一定時間
毎に得られるデータに対し、データが入力される一定時
間毎にステッピングモータの駆動タイミングを設定する
ので、リアルタイムでデータ波形を描くことができる。
As described above, in the driving method according to the present invention, the driving timing of the stepping motor is set at fixed time intervals when data is input for data obtained at fixed time intervals, so data waveforms can be drawn in real time. .

また、例えば1〜4ステツプ駆動を行なう場合には、一
定時間中に合計9回の駆動タイミングがあるだけなので
、X軸、Y軸を独立させて制御することができ、両軸の
モータに対して最適な制御が可能となる。制御のアルゴ
リズムは上記のように単純であり、マイクロプロセッサ
による制御が容易で、特別なハードウェアを必要としな
い。プロッタが行なうオーバスケール処理は一定時間毎
に1回行なえば良いので、各ステップ毎に行なうのに比
べて非常に楽な処理となる。実施例では短時間の一定時
間毎に駆動タイミングの計画を立てるが、長時間のスケ
ールで合理的な加減速制御を行なうこともできる。
In addition, for example, when performing 1 to 4 step drive, there are only nine drive timings in total within a certain period of time, so the X-axis and Y-axis can be controlled independently, and the motors of both axes can be controlled independently. This enables optimal control. The control algorithm is simple as described above, can be easily controlled by a microprocessor, and does not require special hardware. The overscaling process performed by the plotter only needs to be performed once every fixed period of time, which is a much easier process than performing it at each step. In the embodiment, the drive timing is planned at short fixed time intervals, but rational acceleration/deceleration control can also be performed over a long period of time.

[発明の効果] 上記説明から明らかなように、本発明にかかる計測デー
タ記録装置の駆動方法によれば、ステッピングモータを
駆動源とする記録装置であってもリアルタイムでデータ
波形の記録を行なうことができるようになった。
[Effects of the Invention] As is clear from the above description, according to the method for driving a measurement data recording device according to the present invention, data waveforms can be recorded in real time even in a recording device using a stepping motor as a driving source. Now you can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は・本発明の実施例である駆動方法を適用した計
測データ装置の構成を示す図、第2図は駆動タイミング
の設定を説明する図、第3図は加速時の駆動タイミング
を説明する図である。 1・・・計測装置 9・・・駆動回路 5・・・CPU 10−・・ステッピングモータ 特許出願人 株式会社島津製作所
Figure 1 is a diagram showing the configuration of a measurement data device to which a driving method according to an embodiment of the present invention is applied, Figure 2 is a diagram explaining drive timing settings, and Figure 3 is a diagram explaining drive timing during acceleration. This is a diagram. 1...Measuring device 9...Drive circuit 5...CPU 10-...Stepping motor patent applicant Shimadzu Corporation

Claims (1)

【特許請求の範囲】[Claims] (1)ステッピングモータを駆動源とするプロッタ等計
測データ記録装置の駆動方法であって、計測器から一定
期間T毎に入力するデータに対し、ステッピングモータ
のステップ駆動数をnとするとき、一定期間Tの両端で
の分割期間をT/2nその他の分割期間をT/nとして
決定される各ステップ駆動タイミングでステッピングモ
ータを駆動することを特徴とする計測データ装置の駆動
方法。
(1) A method for driving a measured data recording device such as a plotter using a stepping motor as a driving source, in which the number of steps driven by the stepping motor is constant for data input from a measuring instrument every fixed period T. A method for driving a measurement data device, characterized in that a stepping motor is driven at each step drive timing determined by setting a divided period at both ends of a period T as T/2n and other divided periods as T/n.
JP2319489A 1989-01-31 1989-01-31 Driving method of measurement data recording device Expired - Lifetime JPH0733970B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2319489A JPH0733970B2 (en) 1989-01-31 1989-01-31 Driving method of measurement data recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2319489A JPH0733970B2 (en) 1989-01-31 1989-01-31 Driving method of measurement data recording device

Publications (2)

Publication Number Publication Date
JPH02201222A true JPH02201222A (en) 1990-08-09
JPH0733970B2 JPH0733970B2 (en) 1995-04-12

Family

ID=12103858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2319489A Expired - Lifetime JPH0733970B2 (en) 1989-01-31 1989-01-31 Driving method of measurement data recording device

Country Status (1)

Country Link
JP (1) JPH0733970B2 (en)

Also Published As

Publication number Publication date
JPH0733970B2 (en) 1995-04-12

Similar Documents

Publication Publication Date Title
JPH0574078A (en) Magnetic disk device
KR20000069890A (en) Method and device for controlling a stepping motor
JPH09280898A (en) Driving device of stepping motor type instrument
JPH02201222A (en) Driving of measuring data recorder
JP3220587B2 (en) Numerical controller with torque ripple analysis function
JPH036459A (en) Method for detecting number of rotations
JPH0670567A (en) Automatic setting method of control gain for motor and detecting method of backlash
JP3408318B2 (en) Tachometer drive circuit
JPS61293496A (en) Controller of sewing machine
JP3225815B2 (en) Motor rotation speed control device
JPS60120080A (en) Carriage drive controller
SU604112A1 (en) Method of control of synchronous motor
JP3136184B2 (en) Pen controller of pen recorder
JPS60223393A (en) Still picture reproducing device of magnetic recording and reproducing device
JPS63193213A (en) Speed controller for digital servo system with pulse encoder
JPH01298566A (en) Magnetic recording and reproducing device
JPH07102273B2 (en) Sewing machine controller
JPS6240098A (en) Pulse motor control system
JPH04282458A (en) Rotational speed detector of electromotor
JPH02190368A (en) Optimum control system for stepping motor
JPH09182476A (en) Controller for rotational speed of motor
JPS59198554A (en) Control signal generating circuit of magnetic recording and reproducing device
JPH0530216B2 (en)
JPS60181607U (en) Backlash correction device for position control equipment
JPS62220346A (en) Recording control system