JP2011221850A - Electronic cam controller - Google Patents

Electronic cam controller Download PDF

Info

Publication number
JP2011221850A
JP2011221850A JP2010091415A JP2010091415A JP2011221850A JP 2011221850 A JP2011221850 A JP 2011221850A JP 2010091415 A JP2010091415 A JP 2010091415A JP 2010091415 A JP2010091415 A JP 2010091415A JP 2011221850 A JP2011221850 A JP 2011221850A
Authority
JP
Japan
Prior art keywords
signal
data
switching
unit
cam
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.)
Pending
Application number
JP2010091415A
Other languages
Japanese (ja)
Inventor
Naoyasu Yubazaki
直養 湯場崎
Nobuaki Haruno
伸明 春野
Takenobu Nakada
健信 中田
Di Miao
笛 苗
Satoru Mizutani
悟 水谷
Yoshifumi Kawai
芳文 河合
Hidekazu Kitamura
英一 北村
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.)
MYCOM Inc
Original Assignee
MYCOM Inc
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 MYCOM Inc filed Critical MYCOM Inc
Priority to JP2010091415A priority Critical patent/JP2011221850A/en
Publication of JP2011221850A publication Critical patent/JP2011221850A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To improve the positioning precision of slave axial control without using a servo motor or the like.SOLUTION: This electronic cam controller is provided with: a signal generation part 10 for generating a clock signal c based on main axial pulses a, b of an encoder 3; a slave axial pulse generation part 20 for counting a clock signal c to a direction shown by a direction signal d, and for performing frequency division to make a frequency division rate variable, and for outputting it as a slave axial pulse f; and a frequency division rate control part 30 for controlling the frequency division rate of the slave axial pulse generation part 20 based on the clock signal c and the direction signal d. The frequency division rate control part 30 controls the frequency division rate of the slave axial pulse generation part 20 based on the rate of main axial moving quantity to slave axial moving quantity included in cam curve data K preliminarily recorded in a memory part 32.

Description

本発明は、予め設定されたカム曲線データに基づいて駆動対象部を駆動して電気的にカム動作を実現する電子カムコントローラに関する。   The present invention relates to an electronic cam controller that drives a drive target unit based on preset cam curve data to electrically realize a cam operation.

この種の電子カムコントローラについては、主軸に取り付けられたエンコーダの出力信号を予め設定されたカム曲線データに従って分周して従軸パルスを生成し、従軸のステッピングモータ等の駆動を制御する構成となっており、カム曲線データの設定を変更すれば異なったカム動作が実現されることから、カム機構を有した各種機械に多用されている(例えば、特許文献1等)。   This type of electronic cam controller is configured to divide an output signal of an encoder attached to a main shaft in accordance with preset cam curve data to generate a slave shaft pulse and to control the driving of a slave stepping motor or the like Since different cam operations are realized by changing the setting of the cam curve data, it is widely used in various machines having a cam mechanism (for example, Patent Document 1).

特開平3−073003号公報JP-A-3-073003

しかしながら、上記従来例による場合、主軸が様々な要因でハンチングすると、実際の主軸の進み量に対して従軸の進み量に誤差が発生し、これに伴って従軸制御の位置決め精度が低下する。もっとも、サーボモータ等を使用して最適制御を行ったときは、ハンチングが少なくなり上記問題が緩和されるが、制御装置全体の構成が複雑化してコスト高になるという別の問題を招来する。   However, in the case of the above conventional example, if the spindle is hunted due to various factors, an error occurs in the advance amount of the slave shaft with respect to the actual advance amount of the spindle, and accordingly, the positioning accuracy of the slave shaft control is lowered. . However, when optimal control is performed using a servo motor or the like, hunting is reduced and the above problem is alleviated, but this causes another problem that the overall configuration of the control device is complicated and the cost is increased.

本発明は上記した背景の下で創作されたものであって、その主たる目的とするところは、サーボモータ等を使用することなく従軸制御の位置決め精度の向上を図ることが可能な電子カムコントローラを提供することにある。   The present invention was created under the above-mentioned background, and the main object thereof is an electronic cam controller capable of improving the positioning accuracy of slave shaft control without using a servo motor or the like. Is to provide.

上記課題を解決するために、本発明の電子カムコントローラは、主軸用エンコーダの主軸パルスに基づいて少なくともクロック信号を生成する信号生成部と、当該クロック信号を方向信号が示す方向に計数して分周比可変可能に分周し少なくとも当該信号を当該主軸パルスに同期した従軸パルスとして出力する従軸パルス生成部と、クロック信号及び方向信号に基づいて従軸パルス生成部の分周比を制御する分周比制御部とを備えている。特に分周比制御部は、クロック信号及び方向信号に基づいてデータ切替信号及びデータ切替方向信号を生成するタイミング制御部と、カム曲線を主軸移動量と従軸移動量との関係を用いて表したカム曲線データが予め記憶されたメモリ部と、前記メモリ部上のカム曲線データを前記データ切替方向信号が示す方向を切り替えつつ前記データ切替信号が示すタイミングで順次選択して出力する切替部と、前記切替部から出力されたカム曲線データに含まれる主軸移動量と従軸移動量との比率に基づいて前記従軸パルス生成部の分周比を変化させる分周比調節部とを有している。タイミング制御部は、前記データ切替信号がアクティブになると以後の前記クロック信号を前記方向信号が示す方向に計数するアップダウンカウンタと、当該計数値が切替部から出力された主軸移動量の分だけ変化したタイミングをデータ切替信号として出力する一方、方向信号が変化した直後にデータ切替信号が最初にアクティブになったタイミングで方向が反転するデータ切替方向信号を出力する信号出力部とを有している。   In order to solve the above-described problems, an electronic cam controller according to the present invention includes a signal generator that generates at least a clock signal based on a spindle pulse of a spindle encoder, and counts and divides the clock signal in a direction indicated by a direction signal. Divide the variable ratio so that it can be varied and output at least the signal as a driven pulse synchronized with the main pulse, and control the dividing ratio of the driven pulse generator based on the clock signal and direction signal And a frequency division ratio control unit. In particular, the division ratio control unit displays the cam curve using the relationship between the main shaft movement amount and the sub shaft movement amount, and the timing control unit that generates the data switching signal and the data switching direction signal based on the clock signal and the direction signal. A memory unit in which the cam curve data is stored in advance, and a switching unit that sequentially selects and outputs the cam curve data on the memory unit at the timing indicated by the data switching signal while switching the direction indicated by the data switching direction signal; A frequency division ratio adjustment unit that changes a frequency division ratio of the slave pulse generation unit based on a ratio between the main shaft movement amount and the subordinate shaft movement amount included in the cam curve data output from the switching unit. ing. When the data switching signal becomes active, the timing control unit counts the subsequent clock signal in the direction indicated by the direction signal, and the count value changes by the amount of spindle movement output from the switching unit. A signal output unit that outputs a data switching direction signal whose direction is reversed at a timing when the data switching signal is first activated immediately after the direction signal is changed. .

この発明によると、主軸用エンコーダの主軸パルスが入力されると、信号生成部にて主軸パルスに基づきクロック信号が生成され、従軸パルス生成部にて方向信号が示す方向にクロック信号が計数され分周され、この信号が従軸パルスとして生成される。従軸パルス生成部の分周比については、分周比制御部にて予め用意されたカム曲線データに含まれる主軸移動量と従軸移動量との比率に基づいて制御される。   According to the present invention, when the spindle pulse of the spindle encoder is input, the signal generation unit generates a clock signal based on the spindle pulse, and the slave pulse generation unit counts the clock signal in the direction indicated by the direction signal. The signal is divided and this signal is generated as a slave axis pulse. The frequency division ratio of the slave shaft pulse generation unit is controlled based on the ratio between the main shaft movement amount and the sub shaft movement amount included in the cam curve data prepared in advance by the frequency division ratio control unit.

よって、主軸の回転量を示す主軸パルスと主軸の回転方向を示す方向信号を用いて従軸パルスが生成され、予め用意されたカム曲線データに含まれる主軸移動量と従軸移動量との比率に基づいて制御されることから、主軸が様々な要因でハンチングしたとしても、実際の主軸の進み量に対して従軸の進み量に誤差が発生せず、これに伴って従軸制御の位置決め精度が低くなることがなくなる。しかもサーボモータ等を使用しないことから、低コスト化と高性能化との双方を図ることが可能になるという効果がある。   Therefore, a slave pulse is generated using a spindle pulse indicating the rotation amount of the spindle and a direction signal indicating the rotation direction of the spindle, and the ratio between the spindle movement amount and the slave shaft movement amount included in the cam curve data prepared in advance. Therefore, even if the spindle hunts due to various factors, there is no error in the advance amount of the slave shaft with respect to the actual advance amount of the master shaft. The accuracy will not be lowered. In addition, since a servo motor or the like is not used, there is an effect that both cost reduction and high performance can be achieved.

好ましくは、複数種のカム曲線データが予め記憶されたカム曲線データ記憶部と、カム形状の種類を切り替えるためのカム切替情報が入力される入力部と、カム曲線データ記憶部上のカム曲線データを入力部を通じて入力されたカム切替情報の通りに読み出してカムデータ要求信号が示すタイミングで前記メモリ部に転送し、前記メモリ部上のカム曲線データを更新させるカムデータ管理部とを備えた構成にすると良い。この場合、切替部について、メモリ部からカム曲線データの最終データが選択されたことを示すカムデータ要求信号を出力する機能を有する構成のものを用いる。   Preferably, a cam curve data storage unit in which a plurality of types of cam curve data are stored in advance, an input unit to which cam switching information for switching the cam shape type is input, and cam curve data on the cam curve data storage unit And a cam data management unit for updating the cam curve data on the memory unit by reading out the data as the cam switching information input through the input unit, transferring the cam data to the memory unit at the timing indicated by the cam data request signal It is good to make it. In this case, a switching unit having a function of outputting a cam data request signal indicating that the final data of the cam curve data has been selected from the memory unit is used.

この下位概念の発明によると、入力部を通じてカム切替情報が入力されると、カム曲線
データ記憶部からカム切替情報に従ってカム曲線データが読み出され、メモリ部上の記録内容がカムデータ要求信号が示すタイミングで上記カム曲線データに更新される。
According to the subordinate concept invention, when the cam switching information is input through the input unit, the cam curve data is read from the cam curve data storage unit according to the cam switching information, and the recorded content on the memory unit is the cam data request signal. The cam curve data is updated at the timing shown.

よって、カム動作を停止することなくカム形状を連続して変更することができ、作業効率が向上するだけでなく、利用範囲の拡大化を図ることが可能になる。   Therefore, the cam shape can be continuously changed without stopping the cam operation, and not only the working efficiency is improved but also the range of use can be expanded.

本発明の実施の形態に係る電子カムコントローラのブロック図である。It is a block diagram of the electronic cam controller which concerns on embodiment of this invention. 同コントローラのメモリ部に記録されたカム曲線データを示すグラフである。It is a graph which shows the cam curve data recorded on the memory part of the controller. 同コントローラの信号生成部及び従軸パルス生成部等の基本動作を説明するための主要信号のタイミングチャートである。It is a timing chart of the main signal for demonstrating basic operation | movement of the signal generation part of the same controller, a driven-axis pulse generation part, etc. 同コントローラの分周比制御部の主軸正転時の基本動作を説明するための主要信号のタイミングチャートである。It is a timing chart of the main signal for demonstrating the basic operation | movement at the time of the spindle normal rotation of the frequency division ratio control part of the controller. 同コントローラの分周比制御部の主軸の逆転時の基本動作を説明するための主要信号のタイミングチャートである。It is a timing chart of the main signal for demonstrating the basic operation | movement at the time of reverse of the main axis | shaft of the division ratio control part of the controller. 同コントローラの分周比制御部の主軸が逆転から正転に移行する際の基本動作を説明するための主要信号のタイミングチャートである。It is a timing chart of the main signal for demonstrating the basic operation | movement at the time of the main axis | shaft of the division ratio control part of the controller shifting from reverse rotation to normal rotation. 同コントローラの変形例を説明するための分周比制御部の一部を示すブロック図である。It is a block diagram which shows a part of frequency division ratio control part for demonstrating the modification of the same controller.

以下、本発明の実施の形態に係る電子カムコントローラを図1乃至図6を参照して説明する。なお、特許請求の範囲に記載された発明特定事項と同電子カムコントローラの構成要素との間で対応関係が不明なものについては後記する符合の説明の欄において併せて示すものとする。   Hereinafter, an electronic cam controller according to an embodiment of the present invention will be described with reference to FIGS. In addition, what is unclear as to the correspondence between the invention-specifying matters described in the claims and the components of the electronic cam controller will be shown together in the description of reference numerals described later.

ここに例として挙げる電子カムコントローラAは、図1に示すように主軸駆動用のステッピングモータ3に連結された光学式2相パルス出力型のエンコーダ4から出力された主軸パルスa,bを入力として従軸パルスf等を生成し、従軸駆動用のステッピングモータ5をドライバBを通じて駆動させ、従軸2を主軸1に同期して回転させる構成となっている。図中10は信号生成部、20は従軸パルス生成部、30は分周比制御部であり、各部により電子カムコントローラAが構成されている。以下、各部の構成を詳細に説明する。   As shown in FIG. 1, an electronic cam controller A as an example receives spindle pulses a and b output from an optical two-phase pulse output type encoder 4 connected to a stepping motor 3 for driving a spindle as shown in FIG. The slave shaft pulse f and the like are generated, the slave shaft driving stepping motor 5 is driven through the driver B, and the slave shaft 2 is rotated in synchronization with the main shaft 1. In the figure, reference numeral 10 denotes a signal generation unit, 20 denotes a driven shaft pulse generation unit, and 30 denotes a frequency division ratio control unit, and an electronic cam controller A is configured by each unit. Hereinafter, the configuration of each unit will be described in detail.

信号生成部10については、主軸パルスa(又は主軸パルスb)を所定逓倍してクロック信号c(図3等参照)を生成するとともに、主軸パルスaと主軸パルスbとの間の位相差を検出して方向信号d(図3等参照)を生成する回路構成となっている。なお、方向信号dがHレベルであるときには主軸1が正転、Lレベルであるときには主軸1が逆転していることを各々示している。   The signal generator 10 generates a clock signal c (see FIG. 3 etc.) by multiplying the spindle pulse a (or spindle pulse b) by a predetermined number, and detects the phase difference between the spindle pulse a and the spindle pulse b. Thus, the circuit configuration is such that the direction signal d (see FIG. 3 and the like) is generated. When the direction signal d is at the H level, the main shaft 1 indicates normal rotation, and when the direction signal d is at the L level, the main shaft 1 indicates reverse rotation.

従軸パルス生成部20については、クロック信号cを方向信号dが示す方向に計数して分周比可変可能に分周する可変分周器を主とした回路構成であり、従軸パルスf及び方向信号kを生成して出力するようになっている。クロック信号cを分周する分周比については分周比制御部30にて生成された信号oに基づいて制御される。   The slave axis pulse generator 20 has a circuit configuration mainly including a variable frequency divider that counts the clock signal c in the direction indicated by the direction signal d and divides the clock signal c so that the frequency division ratio can be varied. A direction signal k is generated and output. The frequency division ratio for dividing the clock signal c is controlled based on the signal o generated by the frequency division ratio control unit 30.

従軸パルスfは従軸駆動用ステッピングモータ5の回転角度を制御するための信号であって、主軸パルスaに同期した信号(図3等参照)となっている。方向信号kはステッピングモータ5の回転方向を制御するための信号である。従軸パルスf及び方向信号kの生成方法については後述する。   The driven shaft pulse f is a signal for controlling the rotation angle of the driven shaft driving stepping motor 5 and is a signal synchronized with the main shaft pulse a (see FIG. 3 and the like). The direction signal k is a signal for controlling the rotation direction of the stepping motor 5. A method for generating the driven pulse f and the direction signal k will be described later.

分周比制御部30については、クロック信号c及び方向信号dに基づいて信号oを生成して従軸パルス生成部20の分周比を制御する回路である。本実施形態においては、タイミング制御部31、メモリ部32、切替部34及び分周比調節部35から構成されている。   The frequency division ratio control unit 30 is a circuit that generates the signal o based on the clock signal c and the direction signal d and controls the frequency division ratio of the driven-axis pulse generation unit 20. In the present embodiment, the timing control unit 31, the memory unit 32, the switching unit 34, and the frequency division ratio adjustment unit 35 are configured.

タイミング制御部31については、後記するデータ切替信号iがアクティブになると以後のクロック信号cを方向信号dが示す正負の方向に計数を開始するアップダウンカウンタ311と、アップダウンカウンタ311の計数値が切替部34から出力された主軸移動量MAIN(n)の分だけ変化するとこのタイミングをデータ切替信号iとして出力する一方、方向信号dが変化した直後にデータ切替信号iが最初にアクティブになったタイミングで方向が反転するデータ切替方向信号jを出力する信号出力部312とを有している。   With respect to the timing control unit 31, when a data switching signal i, which will be described later, becomes active, the up / down counter 311 that starts counting the subsequent clock signal c in the positive and negative directions indicated by the direction signal d, and the count value of the up / down counter 311 are When the main shaft movement amount MAIN (n) output from the switching unit 34 changes, this timing is output as the data switching signal i. On the other hand, immediately after the direction signal d changes, the data switching signal i becomes active first. And a signal output unit 312 that outputs a data switching direction signal j whose direction is reversed at the timing.

アップダウンカウンタ311については、信号生成部10から出力されたクロック信号c及び方向信号dが入力される一方、切替部34から出力された主軸移動量MAIN(n)に係る信号である主軸移動量データhが入力され、リセット/セット入力にはデータ切替信号iが入力されている。アップダウンカウンタ311の計数値はカウントデータgとして信号出力部312に出力されている。アップダウンカウンタ311の具体的な動作を図4乃至図6を参照して説明する。   For the up / down counter 311, the clock signal c and the direction signal d output from the signal generation unit 10 are input, while the spindle movement amount that is a signal related to the spindle movement amount MAIN (n) output from the switching unit 34. Data h is input, and a data switching signal i is input to the reset / set input. The count value of the up / down counter 311 is output to the signal output unit 312 as count data g. A specific operation of the up / down counter 311 will be described with reference to FIGS.

方向信号dがHレベルであるときにはクロック信号cの入力毎にカウントアップし、データ切替信号iがアクティブになる度にリセットされる。その後、図5に示すように方向信号dがHレベルからLレベルに変化したときは、その時点でカウントアップからカウントダウンに変化し、データ切替信号iがアクティブになるタイミングで主軸移動量データhがセットされる。そして、図6に示すように方向信号dがLレベルからHレベルに変化したときは、その時点でカウントダウンからカウントアップに変化する。以後は上記した動作の繰り返しである。   When the direction signal d is at the H level, it counts up every time the clock signal c is input, and is reset every time the data switching signal i becomes active. After that, when the direction signal d changes from H level to L level as shown in FIG. 5, the spindle movement amount data h changes from count up to count down at that time and the data switching signal i becomes active. Set. Then, as shown in FIG. 6, when the direction signal d changes from L level to H level, it changes from countdown to countup at that time. Thereafter, the above operation is repeated.

信号出力部312については、アップダウンカウンタ311から出力されたカウントデータgと切替部34から出力された主軸移動量データhとを比較する比較器を主とした回路であり、その比較結果及び方向信号dに基づいてデータ切替信号i及びデータ切替方向信号jを生成する構成となっている。信号出力部312の具体的な動作を図4乃至図6を参照して説明する。   The signal output unit 312 is a circuit mainly including a comparator that compares the count data g output from the up / down counter 311 and the spindle movement amount data h output from the switching unit 34. The comparison result and direction The data switching signal i and the data switching direction signal j are generated based on the signal d. A specific operation of the signal output unit 312 will be described with reference to FIGS.

データ切替信号iが所定期間アクティブ(本実施形態ではHレベル)になるのは、方向信号dがHレベルである状態では、カウントデータgが主軸移動量MAIN(n)に等しくなった時点(例えば、図4で示すt0、t1、t2、図6で示されたt8等)であり、方向信号がLレベルである状態では、カウントデータgの値が0に等しくなった時点(例えば、図5で示すt4、t5等)である。方向信号dがHレベルからLレベルに反転するのは、方向信号dがHレベルからLレベルに変化した直後にデータ切替信号iが最初にアクティブになった時点(例えば、図5で示すt4等)であり、方向信号dがLレベルからHレベルに反転するのは、方向信号dがLレベルからHレベルに変化した直後にデータ切替信号iが最初にアクティブになった時点(例えば,図6で示すt8等)である。このようなデータ切替信号i及びデータ切替方向信号jがアップダウンカウンタ311の他、切替部34のデータ制御部341に導かれている。   The data switching signal i becomes active for a predetermined period (H level in the present embodiment) when the count data g becomes equal to the spindle movement amount MAIN (n) when the direction signal d is at the H level (for example, , T0, t1, t2 shown in FIG. 4, t8 shown in FIG. 6, and the like, and when the direction signal is at the L level, the value of the count data g becomes equal to 0 (for example, FIG. 5). T4, t5, etc.). The direction signal d is inverted from the H level to the L level when the data switching signal i is first activated immediately after the direction signal d changes from the H level to the L level (for example, t4 shown in FIG. 5). The direction signal d is inverted from the L level to the H level when the data switching signal i is first activated immediately after the direction signal d changes from the L level to the H level (for example, FIG. 6). T8, etc.). The data switching signal i and the data switching direction signal j are guided to the data control unit 341 of the switching unit 34 in addition to the up / down counter 311.

メモリ部32については、カム曲線を主軸移動量と従軸移動量との関係を用いて表したカム曲線データKが予め記録された記憶部である。本実施形態においては、複数のレジスタを用いている。カム曲線データKについては、主軸移動量MAIN(n)と従軸移動量SUB(n)(n=1,2・・・α・・β: 1≦α<β)とのβ個のデータ対の集合であり、各データ対が後述するマルチプレクサ342により選択出力可能になっている。主軸移動量MAIN(n)及び従軸移動量SUB(n)については、主軸上、従軸上の各所定区間毎に始点と終点の変位量を正負の数値で各々表されている。図2にはカム曲線の一例を示している。メモリ部32に記録されたカム曲線データKは、主軸移動量MAIN(1) と従軸移動量SUB(1)、主軸移動量MAIN(2) と従軸移動量SUB(2),・・・・,主軸移動量MAIN(β)と従軸移動量SUB(β)の各データ対がカム曲線に沿って順番に配列されたデータ群となっている。   The memory unit 32 is a storage unit in which cam curve data K representing a cam curve using the relationship between the main shaft movement amount and the slave shaft movement amount is recorded in advance. In the present embodiment, a plurality of registers are used. For the cam curve data K, β data pairs of a main shaft movement amount MAIN (n) and a sub shaft movement amount SUB (n) (n = 1, 2... Α, β: 1 ≦ α <β) Each data pair can be selectively output by a multiplexer 342 described later. For the main shaft movement amount MAIN (n) and the sub shaft movement amount SUB (n), the displacement amounts of the start point and the end point are represented by positive and negative values for each predetermined section on the main shaft and the sub shaft. FIG. 2 shows an example of the cam curve. The cam curve data K recorded in the memory 32 includes a main shaft movement amount MAIN (1) and a sub shaft movement amount SUB (1), a main shaft movement amount MAIN (2) and a sub shaft movement amount SUB (2),. A data group in which data pairs of the spindle movement amount MAIN (β) and the slave shaft movement amount SUB (β) are arranged in order along the cam curve.

切替部34については、データ制御部341及びマルチプレクサ342を有し、メモリ部32上のカム曲線データKに含まれる上記データ対をデータ切替方向信号jが示す方向に順次切り替えつつデータ切替信号iが示すタイミングで順次選択して出力するようになっている。   The switching unit 34 includes a data control unit 341 and a multiplexer 342, and the data switching signal i is switched while sequentially switching the data pairs included in the cam curve data K on the memory unit 32 in the direction indicated by the data switching direction signal j. The signals are sequentially selected and output at the timing shown.

例えば、メモリ部32上のカム曲線データKのうち切替部34により現在選択されているデータ対が主軸移動量MAIN(1)及び従軸移動量SUB(1)であるとする。データ切替方向信号jがHレベルである状態では、データ切替信号iがアクティブとなる毎にメモリ部32から主軸移動量MAIN(2)及び従軸移動量SUB(2)、主軸移動量MAIN(3)及び従軸移動量SUB(3)・・・が順次的に選択され出力される。データ切替信号iがアクティブにならなくてもデータ切替方向信号jがLレベルからHレベルに変化すると、このタイミングでメモリ部32上のカム曲線データKに含まれるデータ対の選択出力が上記と全く同様に切り替わる。なお、カム曲線データKの最終データである主軸移動量MAIN(β)及び従軸移動量SUB(β)が選択出力されると、その後は、再び元に戻り主軸移動量MAIN(1)及び従軸移動量SUB(1)が選択出力可能となっている。   For example, it is assumed that the data pair currently selected by the switching unit 34 among the cam curve data K on the memory unit 32 is the main shaft movement amount MAIN (1) and the sub shaft movement amount SUB (1). In a state where the data switching direction signal j is at the H level, every time the data switching signal i becomes active, the main shaft moving amount MAIN (2), the driven shaft moving amount SUB (2), and the main shaft moving amount MAIN (3) from the memory unit 32. ) And slave shaft movement amount SUB (3)... Are sequentially selected and output. Even if the data switching signal i does not become active, when the data switching direction signal j changes from the L level to the H level, the selection output of the data pair included in the cam curve data K on the memory unit 32 is completely the same as described above. Switch in the same way. When the main axis movement amount MAIN (β) and the sub axis movement amount SUB (β), which are the final data of the cam curve data K, are selectively output, thereafter, the main axis movement amount MAIN (1) and the sub axis movement amount MAIN (1) The axis movement amount SUB (1) can be selected and output.

また、メモリ部32上のカム曲線データKのうち切替部34により現在選択されているデータ対が主軸移動量MAIN(β)及び従軸移動量SUB(β)であるとする。データ切替方向信号jがLレベルである状態では、データ切替信号iがアクティブとなる毎にメモリ部32から主軸移動量MAIN(β−1)及び従軸移動量SUB(β−1)、主軸移動量MAIN(β−2)及び従軸移動量SUB(β−2)・・・が順次的に選択され出力される。データ切替信号iがアクティブにならなくてもデータ切替方向信号jがHレベルからLレベルに変化すると、このタイミングでメモリ部32上のカム曲線データKに含まれるデータ対の選択出力が上記と全く同様に切り替わる。なお、カム曲線データKの最終データである主軸移動量MAIN(1)及び従軸移動量SUB(1)が選択出力されると、その後は、再び元に戻り主軸移動量MAIN(β)及び従軸移動量SUB(β)が選択出力可能となっている。   Further, it is assumed that the data pair currently selected by the switching unit 34 among the cam curve data K on the memory unit 32 is the main shaft movement amount MAIN (β) and the sub shaft movement amount SUB (β). In a state where the data switching direction signal j is at the L level, every time the data switching signal i becomes active, the main shaft movement amount MAIN (β-1), the driven shaft movement amount SUB (β-1), and the main shaft movement from the memory unit 32. The amount MAIN (β-2) and the driven shaft movement amount SUB (β-2)... Are sequentially selected and output. Even if the data switching signal i does not become active, when the data switching direction signal j changes from the H level to the L level, the selection output of the data pair included in the cam curve data K on the memory unit 32 is completely the same as described above. Switch in the same way. When the main axis movement amount MAIN (1) and the sub axis movement amount SUB (1), which are the final data of the cam curve data K, are selectively output, thereafter, the main axis movement amount MAIN (β) and the sub axis movement amount MAIN (β) The axis movement amount SUB (β) can be selected and output.

データ制御部341については、データ切替信号i及びデータ切替方向信号jを入力としたn(メモリ部32に記録されたカム曲線データKに含まれるデータ対の個数に等しい値に設定)進カウンタである。即ち、データ切替方向信号jがHレベルである状態でデータ切替信号iがアクティブになると、その度にカウントアップされる。一方、データ切替方向信号jがLレベルである状態でデータ切替信号iがアクティブになると、その度にカウントダウンされる。このようなカウント値がデータ選択信号qとしてマルチプレクサ342の選択入力に出力されている。   The data control unit 341 is an n (set to a value equal to the number of data pairs included in the cam curve data K recorded in the memory unit 32) with the data switching signal i and the data switching direction signal j as inputs. is there. That is, when the data switching signal i becomes active while the data switching direction signal j is at the H level, the count is incremented each time. On the other hand, when the data switching signal i becomes active while the data switching direction signal j is at the L level, the countdown is performed each time. Such a count value is output to the selection input of the multiplexer 342 as the data selection signal q.

マルチプレクサ342については、メモリ部32上のカム曲線データKをデータ選択信号qに従って選択する選択器であり、選択されたカム曲線データKを従軸パルス生成部20及び信号出力部312に出力している。例えば、データ選択信号qがカウント値1を示しているときには、マルチプレクサ342によりメモリ部32上のカム曲線データKから主軸移動量MAIN(1)及び従軸移動量SUB(1)が選択して出力される。また、データ選択信号qがカウント値2を示しているときには、マルチプレクサ342によりメモリ部32上のカム曲線データKから主軸移動量MAIN(2)及び従軸移動量SUB(2)が選択して出力される。   The multiplexer 342 is a selector that selects the cam curve data K on the memory unit 32 in accordance with the data selection signal q, and outputs the selected cam curve data K to the driven pulse generator 20 and the signal output unit 312. Yes. For example, when the data selection signal q indicates a count value of 1, the multiplexer 342 selects and outputs the spindle movement amount MAIN (1) and the slave axis movement amount SUB (1) from the cam curve data K on the memory unit 32. Is done. When the data selection signal q indicates the count value 2, the multiplexer 342 selects and outputs the spindle movement amount MAIN (2) and the slave axis movement amount SUB (2) from the cam curve data K on the memory unit 32. Is done.

マルチプレクサ342から出力された主軸移動量MAIN(n)に係る信号を主軸移動量データhとして表し、従軸移動量SUB(n)に係る信号を従軸移動量データeとして表している。主軸移動量データhについては信号出力部312に出力され、主軸移動量データhと従軸移動量データeの双方については分周比調節部35に出力される。   A signal relating to the spindle movement amount MAIN (n) output from the multiplexer 342 is represented as spindle movement amount data h, and a signal relating to the slave axis movement amount SUB (n) is represented as slave axis movement amount data e. The spindle movement amount data h is output to the signal output unit 312, and both the spindle movement amount data h and the slave shaft movement amount data e are output to the frequency division ratio adjustment unit 35.

分周比調節部35については、切替部34から出力されたカム曲線データKに含まれる主軸移動量MAIN(n)と従軸移動量SUB(n)との比率(SUB(n)/MAIN(n)を演算し、この比率に基づいて従軸パルス生成部20の分周比を変化させるための信号oを生成する構成となっている。   For the frequency division ratio adjustment unit 35, the ratio of the main shaft movement amount MAIN (n) and the sub shaft movement amount SUB (n) included in the cam curve data K output from the switching unit 34 (SUB (n) / MAIN ( n) is calculated, and based on this ratio, a signal o for changing the frequency division ratio of the driven pulse generator 20 is generated.

従軸パルス生成部20については、上記したように主軸パルスfを生成する他に、方向信号c及び従軸移動量SUB(n)に基づいて方向信号kを生成している。即ち、方向信号cが正転を示す状態で、従軸移動量SUB(n)が正値を示すときには方向信号kをHレベル(正転)とし、従軸移動量SUB(n)が負値を示すときには方向信号kをLレベル(逆転)としている。一方、方向信号cが逆転を示す状態で、従軸移動量SUB(n)が正値を示すときには方向信号kをLレベル(逆転)とし、従軸移動量SUB(n)が負値を示すときには方向信号kをHレベル(正転)としている。   In addition to generating the main shaft pulse f as described above, the driven shaft pulse generation unit 20 generates the direction signal k based on the direction signal c and the driven shaft movement amount SUB (n). That is, when the direction signal c indicates normal rotation and the driven shaft movement amount SUB (n) indicates a positive value, the direction signal k is set to H level (forward rotation) and the driven shaft movement amount SUB (n) is a negative value. Is indicated, the direction signal k is set to L level (reverse rotation). On the other hand, when the direction signal c indicates reverse rotation, when the driven shaft movement amount SUB (n) indicates a positive value, the direction signal k is set to L level (reverse rotation), and the driven shaft movement amount SUB (n) indicates a negative value. In some cases, the direction signal k is at the H level (forward rotation).

このようにして生成された主軸パルスf及び方向信号kがドライバBに出力され、ドライバBにて従軸駆動用のステッピングモータ5の各相励磁信号が生成される。   The main shaft pulse f and the direction signal k thus generated are output to the driver B, and the driver B generates each phase excitation signal of the stepping motor 5 for driving the slave shaft.

上記のように構成された電子カムコントローラAの動作を図3乃至図6を参照して説明する。   The operation of the electronic cam controller A configured as described above will be described with reference to FIGS.

主軸1がステッピングモータ3により回転し、これに応じてエンコーダ4から主軸パルスa,bが入力される。主軸パルスa,bの入力に従って図3に示すようにクロック信号c及び方向信号dが作成されクロック信号cが分周され、その結果、従軸パルスfが生成される。クロック信号cの分周比はメモリ部32上のカム曲線データKに含まれる主軸移動量MAIN(n)と従軸移動量SUB(n)との比率に比例し、これに応じて従軸パルスfのパルス幅が変化する。このような従軸パルスf等がドライバBに出力され、ドライバBにて各相励磁信号が作成され、これに伴ってステッピングモータ5が駆動する。その結果、従軸2が主軸1に同期して回転する。従軸パルスfの作成に不可欠な主軸移動量MAIN(n)と従軸移動量SUB(n)については以下のようにして作成される。   The main shaft 1 is rotated by the stepping motor 3, and main shaft pulses a and b are input from the encoder 4 in response thereto. As shown in FIG. 3, the clock signal c and the direction signal d are generated in accordance with the input of the main axis pulses a and b, and the clock signal c is divided. As a result, the slave axis pulse f is generated. The frequency division ratio of the clock signal c is proportional to the ratio of the spindle movement amount MAIN (n) and the slave axis movement amount SUB (n) included in the cam curve data K on the memory unit 32, and the slave axis pulse is accordingly generated. The pulse width of f changes. Such a slave shaft pulse f or the like is output to the driver B, and each phase excitation signal is generated by the driver B, and the stepping motor 5 is driven accordingly. As a result, the driven shaft 2 rotates in synchronization with the main shaft 1. The main axis movement amount MAIN (n) and the sub axis movement amount SUB (n), which are indispensable for the generation of the slave axis pulse f, are generated as follows.

まず、図4に示すように方向信号dがHレベルである状態において、アップダウンカウンタ311が時間t0からクロック信号cの入力の度にカウントアップする。このカウントアップされている間、メモリ部32上のカム曲線データKのうちマルチプレクサ342にて選択出力されているデータ対は、主軸移動量MAIN(α)及び従軸移動量SUB (α)である。その後、アップダウンカウンタ311のカウント値がマルチプレクサ342から出力されている主軸移動量MAIN(α)の値‘l’に一致すると、時間t1でデータ切替信号iがアクティブとなる。これに伴ってアップダウンカウンタ311がリセットされ、マルチプレクサ342にて選択出力されるデータ対が、主軸移動量MAIN(α)及び従軸移動量SUB (α)から主軸移動量MAIN(α+1 )及び従軸移動量SUB (α+1 )に変化する。   First, in the state where the direction signal d is at the H level as shown in FIG. 4, the up / down counter 311 counts up every time the clock signal c is input from the time t0. During the counting up, the data pair selected and output by the multiplexer 342 among the cam curve data K on the memory unit 32 is the spindle movement amount MAIN (α) and the slave axis movement amount SUB (α). . Thereafter, when the count value of the up / down counter 311 matches the value “l” of the spindle movement amount MAIN (α) output from the multiplexer 342, the data switching signal i becomes active at time t1. Along with this, the up / down counter 311 is reset, and the data pair selectively output by the multiplexer 342 is converted from the spindle movement amount MAIN (α) and the slave axis movement amount SUB (α) to the spindle movement amount MAIN (α + 1) and the slave axis. Changes to the axis travel SUB (α + 1).

アップダウンカウンタ311が時間t1からクロック信号cの入力の度にカウントアップされ、アップダウンカウンタ311のカウント値がマルチプレクサ342から出力されている主軸移動量MAIN(α+1)の値‘m’に一致すると、時間t2でデータ切替信号iがアクティブとなる。これに伴ってアップダウンカウンタ311がリセットされ、マルチプレクサ342から出力される選択出力されるデータ対が、主軸移動量MAIN(α+1)及び従軸移動量SUB (α+1)から主軸移動量MAIN(α+2)及び従軸移動量SUB (α+2)に変化する。   When the up / down counter 311 counts up every time the clock signal c is input from time t1, the count value of the up / down counter 311 coincides with the value 'm' of the spindle movement amount MAIN (α + 1) output from the multiplexer 342. At time t2, the data switching signal i becomes active. Along with this, the up / down counter 311 is reset, and the selectively output data pair output from the multiplexer 342 is converted from the spindle movement amount MAIN (α + 1) and the slave shaft movement amount SUB (α + 1) to the spindle movement amount MAIN (α + 2). And the driven shaft movement amount SUB (α + 2).

その後、図5に示すように時間t3にて方向信号dがHレベルからLレベルに変化すると、アップダウンカウンタ311がクロック信号cの入力の度にカウントダウンする。このときのマルチプレクサ342から選択出力されるデータ対が主軸移動量MAIN(β)及び従軸移動量SUB (β)であると仮定する。アップダウンカウンタ311が時間t4にてアンダーフローすると、データ切替方向信号jがHレベルからLレベルに変化し、マルチプレクサ342から選択出力されるデータ対が、主軸移動量MAIN(β)及び従軸移動量SUB (β)から主軸移動量MAIN(β−1)及び従軸移動量SUB (β−1)に変化する。と同時に、アップダウンカウンタ311が主軸移動量MAIN(β−1)の値‘l’にセットされる。   Thereafter, when the direction signal d changes from H level to L level at time t3 as shown in FIG. 5, the up / down counter 311 counts down every time the clock signal c is input. It is assumed that the data pair selectively output from the multiplexer 342 at this time is the main shaft movement amount MAIN (β) and the sub shaft movement amount SUB (β). When the up / down counter 311 underflows at time t4, the data switching direction signal j changes from the H level to the L level, and the data pair selected and output from the multiplexer 342 includes the spindle movement amount MAIN (β) and the slave axis movement. The amount changes from the amount SUB (β) to the main shaft movement amount MAIN (β-1) and the sub shaft movement amount SUB (β-1). At the same time, the up / down counter 311 is set to the value ‘l’ of the spindle movement amount MAIN (β−1).

アップダウンカウンタ311が時間t4からクロック信号cの入力の度にカウントダウンされ、時間t5で各々アンダーフローすると、データ切替信号iがアクティブとなり、マルチプレクサ342から選択出力されるデータ対が、主軸移動量MAIN(β−1)及び従軸移動量SUB (β−1)から主軸移動量MAIN(β−2)及び従軸移動量SUB (β−2)に変化する。図6に示す時間t6でも全く同様である。マルチプレクサ342から選択出力されるデータ対が、主軸移動量MAIN(β−2)及び従軸移動量SUB (β−2)から主軸移動量MAIN(β−3)及び従軸移動量SUB (β−3)に変化する。   When the up / down counter 311 counts down every time the clock signal c is input from time t4 and each underflows at time t5, the data switching signal i becomes active, and the data pair selected and output from the multiplexer 342 becomes the spindle movement amount MAIN. It changes from (β-1) and slave shaft movement amount SUB (β-1) to main shaft movement amount MAIN (β-2) and slave shaft movement amount SUB (β-2). The same is true at time t6 shown in FIG. The data pair selected and output from the multiplexer 342 is converted from the spindle movement amount MAIN (β-2) and the slave shaft movement amount SUB (β-2) to the spindle movement amount MAIN (β-3) and the slave shaft movement amount SUB (β− Change to 3).

その後、時間t7にて方向信号dがLレベルからHレベルに変化すると、アップダウンカウンタ311がクロック信号cの入力の度にカウントアップし、アップダウンカウンタ311がオーバーフローすると、データ切替方向信号jがLレベルからHレベルに変化する。マルチプレクサ342から選択出力されるデータ対が、主軸移動量MAIN(β−3)及び従軸移動量SUB (β−3)から主軸移動量MAIN(β−2)及び従軸移動量SUB (β−2)に変化する。これ以後の動作については上記と全く同様である。   Thereafter, when the direction signal d changes from L level to H level at time t7, the up / down counter 311 counts up every time the clock signal c is input, and when the up / down counter 311 overflows, the data switching direction signal j is It changes from L level to H level. The data pair selected and output from the multiplexer 342 is converted from the main shaft movement amount MAIN (β-3) and the sub shaft movement amount SUB (β-3) to the main shaft movement amount MAIN (β-2) and the sub shaft movement amount SUB (β−. Change to 2). The subsequent operation is exactly the same as described above.

このような電子カムコントローラAを用いた場合、主軸1の回転停止等の際に主軸1がハンチングしたとしても、主軸1の進み量に対して従軸2の進み量に誤差が発生せず、これに伴って従軸制御の位置決め精度が低くなることがなくなる。しかも非常にシンプルな構成となっているので、低コスト化及び高性能化を図ることが可能になる。   When such an electronic cam controller A is used, even if the main shaft 1 hunts when the rotation of the main shaft 1 is stopped, an error does not occur in the advance amount of the slave shaft 2 with respect to the advance amount of the main shaft 1. Along with this, the positioning accuracy of slave shaft control is not lowered. Moreover, since it has a very simple configuration, it is possible to reduce costs and improve performance.

次に、電子カムコントローラAの変形例を図7を参照して説明する。この変形例は、図1に示す分周比制御部30の構成に図7に示す入力部36、カム曲線データメモリ部37及びカム曲線データ管理部38が追加された内容になっている。   Next, a modification of the electronic cam controller A will be described with reference to FIG. In this modification, an input unit 36, a cam curve data memory unit 37, and a cam curve data management unit 38 shown in FIG. 7 are added to the configuration of the frequency division ratio control unit 30 shown in FIG.

ただ、分周比制御部30のデータ制御部341については上記と若干異なっている。即ち、データ制御部341は、上記したデータ切替信号i及びデータ切替方向信号jに基づいてデータ選択信号qを作成する機能に加えて、メモリ部32からカム曲線データKの最終データが選択されたことを示すカムデータ要求信号mを出力する機能を有している。ここで言うカム曲線データKの最終データとは、データ切替え方向信号jがHレベルであるときには主軸移動量MAIN(β)と従軸移動量SUB(β)のデータ対であり、データ切替方向信号jがLレベルであるときには主軸移動量MAIN(1)と従軸移動量SUB(1)のデータ対を指している。   However, the data control unit 341 of the frequency division ratio control unit 30 is slightly different from the above. That is, in addition to the function of creating the data selection signal q based on the data switching signal i and the data switching direction signal j, the data control unit 341 selects the final data of the cam curve data K from the memory unit 32. A cam data request signal m indicating the above. The final data of the cam curve data K referred to here is a data pair of the main shaft movement amount MAIN (β) and the sub shaft movement amount SUB (β) when the data switching direction signal j is at the H level. When j is at the L level, it indicates a data pair of the spindle movement amount MAIN (1) and the slave axis movement amount SUB (1).

カム曲線データメモリ部37については、n種類のカム曲線データK1,K2・・・Knが予め記憶されている。カム曲線データK1は、カム形状を示す主軸移動量MAIN(n)と従軸移動量SUB(n)のデータ対の他、当該カム形状の特定情報、当該データ対の個数、当該データ対のメモリアドレス等の情報を含んでいる。カム曲線データK2・・・Knについても全く同様である。   In the cam curve data memory unit 37, n types of cam curve data K1, K2,... Kn are stored in advance. The cam curve data K1 includes, in addition to the data pair of the main shaft movement amount MAIN (n) and the slave shaft movement amount SUB (n) indicating the cam shape, the specific information of the cam shape, the number of the data pairs, the memory of the data pair Contains information such as addresses. The same applies to the cam curve data K2... Kn.

入力部36については、カム動作を切り替えるための外部信号入力端子又はスイッチ等である。具体的には、当該カム動作に係るカム形状の特定情報(カム曲線データK1,K2・・・Knの一を特定する情報)、順番(特定されたカム曲線データK1等を読み出す順番)及び回数(実現される基本カム動作の繰り返し回数)等を示すシーケンスデータが入力可能であり、入力されたシーケンスデータをカム切替信号pとして出力するようになっている。   The input unit 36 is an external signal input terminal or a switch for switching the cam operation. Specifically, cam shape specification information (information specifying one of the cam curve data K1, K2,... Kn), order (order of reading the specified cam curve data K1, etc.), and the number of times Sequence data indicating (the number of repetitions of the basic cam operation to be realized) or the like can be input, and the input sequence data is output as the cam switching signal p.

カム曲線データ管理部38については、カム曲線データメモリ部37に対するデータ再生回路とメモリ部32に対するデータ記録回路とを併有した回路部である。即ち、カム曲線データ記憶部37上のカム曲線データK1,K2・・・Knを入力部36を通じて入力されたカム切替信号pに係るシーケンスデータが示す通りに読み出し、カム曲線データK1等をカムデータ要求信号mが示すタイミングでメモリ部32にデータバスnを通じて転送し、メモリ部32上の記録内容を更新させるようになっている。   The cam curve data management unit 38 is a circuit unit that has both a data reproduction circuit for the cam curve data memory unit 37 and a data recording circuit for the memory unit 32. That is, the cam curve data K1, K2,... Kn in the cam curve data storage unit 37 are read as indicated by the sequence data related to the cam switching signal p input through the input unit 36, and the cam curve data K1 and the like are read out as cam data. The data is transferred to the memory unit 32 through the data bus n at the timing indicated by the request signal m, and the recorded contents on the memory unit 32 are updated.

この変形例による場合、入力部36を通じてシーケンスデータが入力されると、メモリ部32の記録内容が上記シーケンスデータが示す通り随時更新されることから、実現されるカム動作を停止することなく連続して変更することができる。よって、作業効率が向上するだけでなく、利用範囲の拡大化を図ることが可能になる。   In the case of this modification, when sequence data is input through the input unit 36, the recorded contents of the memory unit 32 are updated at any time as indicated by the sequence data, so that the realized cam operation can be continued without stopping. Can be changed. Therefore, not only the work efficiency is improved, but the range of use can be expanded.

なお、本発明に係る電子カムコントローラは、主軸及び従軸の機構としての種類、従軸
の数、駆動モータの種類、主軸用エンコーダの種類等が上記実施形態に限定されない。主
軸用エンコーダの出力信号に方向信号が含まれているときは、この方向信号を利用すれば良い。また、分周比制御部等の機能をマイクロコンピュータを用いて実現してもかまわない。
Note that the electronic cam controller according to the present invention is not limited to the above embodiments in terms of the types of the main shaft and the sub shaft mechanism, the number of sub shafts, the type of drive motor, the type of main shaft encoder, and the like. When the direction signal is included in the output signal of the spindle encoder, this direction signal may be used. The functions of the frequency division ratio control unit and the like may be realized using a microcomputer.

特に、信号生成部については、従軸パルスの生成に必要な少なくともクロック信号を生成する機能を有する限り、出力形態や逓倍比等が限定されず、主軸用エンコーダから出力された主軸パルスをそのままクロック信号として活用する形態であっても良い。   In particular, as long as the signal generation unit has at least the function of generating a clock signal necessary for generating the slave axis pulse, the output form and the multiplication ratio are not limited, and the spindle pulse output from the spindle encoder is directly clocked. The form utilized as a signal may be sufficient.

メモリ部については、一般的なメモリを使用しても良く、切替部又はデータ制御部に応じてカム曲線データが読み出される形態でもかまわない。カム曲線データについては、主軸移動量と従軸移動量との関係が直接的又は間接的に示される形態であればどのような内容でも良く、例えば、主軸移動量と主軸速度に対する従軸速度の速度割合とのデータ対である場合、従軸移動量(主軸移動量×主軸速度に対する従軸速度の速度割合)の演算を行うようにすると、主軸移動量と従軸移動量とのデータ対に変換することが可能である。また、各区間(主軸/従軸の各移動量の区間)、当該区間で使用するカム曲線(正弦、サイクロイド、カム曲線等)の種類とのデータ対である場合、カム曲線を表す演算式を用いた演算により主軸移動量と従軸移動量とのデータ対に変換することも可能である。これは、カム曲線データメモリ部についても全く同様である。即ち、カム曲線データメモリ部に記録されたカム曲線データをカム曲線データ管理部にて読み出し、主軸移動量と従軸移動量とのデータ対に変換する形態であっても良い。   As the memory unit, a general memory may be used, and the cam curve data may be read according to the switching unit or the data control unit. The cam curve data may have any content as long as the relationship between the spindle movement amount and the slave shaft movement amount is directly or indirectly shown. For example, the cam curve data includes the spindle movement amount and the slave shaft speed relative to the spindle speed. In the case of a data pair with the speed ratio, if the calculation of the slave axis movement amount (master axis movement amount × speed ratio of the slave shaft speed to the spindle speed) is performed, the data pair of the master axis movement amount and the slave axis movement amount is obtained. It is possible to convert. In addition, in the case of a data pair with each section (section of each movement amount of the main shaft / slave shaft) and the type of cam curve (sine, cycloid, cam curve, etc.) used in the section, an arithmetic expression representing the cam curve is given. It is also possible to convert into a data pair of the main axis movement amount and the sub axis movement amount by the calculation used. The same applies to the cam curve data memory unit. That is, the cam curve data recorded in the cam curve data memory unit may be read by the cam curve data management unit and converted into a data pair of the main shaft movement amount and the slave shaft movement amount.

切替部については、メモリ部上のカム曲線データをデータ切替方向信号が示す方向を切り替えつつデータ切替信号が示すタイミングで順次選択して出力する機能を有する限り、メモリ部や切替部に応じて適宜設計変更すれば良い。   As for the switching unit, as long as it has a function of sequentially selecting and outputting the cam curve data on the memory unit at the timing indicated by the data switching signal while switching the direction indicated by the data switching direction signal, the switching unit is appropriately selected according to the memory unit and the switching unit. Change the design.

タイミング制御部については、データ切替信号がアクティブになると以後のクロック信号を方向信号が示す方向に計数するとともに、この計数値が切替部から出力された主軸移動量の分だけ変化したタイミングをデータ切替信号として出力する一方、方向信号が変化した直後にデータ切替信号が最初にアクティブになったタイミングで方向が反転するデータ切替方向信号を生成する機能を有する限り、適宜設計変更してもかまわない。   For the timing control unit, when the data switching signal becomes active, the subsequent clock signal is counted in the direction indicated by the direction signal, and the timing at which this count value is changed by the amount of spindle movement output from the switching unit is switched to data. As long as it has a function of generating a data switching direction signal whose direction is reversed at the timing when the data switching signal is first activated immediately after the direction signal is changed, the design may be changed as appropriate.

分周比調節部については、切替部から出力されたカム曲線データに含まれる主軸移動量と従軸移動量との比率に基づいて従軸パルス生成部の分周比を変化させる機能を有する限り、適宜設計変更してもかまわない。   As for the frequency division ratio adjustment unit, as long as it has a function of changing the frequency division ratio of the slave shaft pulse generation unit based on the ratio of the main shaft movement amount and the sub shaft movement amount included in the cam curve data output from the switching unit. The design may be changed as appropriate.

A 電子カムコントローラ
10 信号生成部
20 従軸パルス生成部
30 分周比制御部
31 タイミング制御部
311 アップダウンカウンタ
312 信号出力部
32 メモリ部
K カム曲線データ
34 切替部
35 分周比調節部
36 入力部
37 カム曲線データメモリ部
38 カム曲線データ管理部
B ドライバ
1 主軸
2 従軸
3 ステッピングモータ(主軸用のステッピングモータ)
4 エンコーダ(主軸用エンコーダ)
5 ステッピングモータ(従軸用のステッピングモータ)
A Electronic cam controller 10 Signal generation unit 20 Slave shaft pulse generation unit 30 Division ratio control unit 31 Timing control unit 311 Up / down counter
312 Signal output unit
32 Memory part
K cam curve data 34 switching unit 35 division ratio adjusting unit 36 input unit 37 cam curve data memory unit 38 cam curve data management unit B driver 1 main shaft 2 slave shaft 3 stepping motor (stepping motor for main shaft)
4 Encoder (Spindle encoder)
5 Stepping motor (Stepping motor for slave shaft)

Claims (2)

主軸用エンコーダの主軸パルスに基づいて少なくともクロック信号を生成する信号生成部と、当該クロック信号を方向信号が示す方向に計数して分周比可変制御可能に分周し少なくとも当該信号を当該主軸パルスに同期した従軸パルスとして出力する従軸パルス生成部と、前記クロック信号及び方向信号に基づいて従軸パルス生成部の分周比を制御する分周比制御部とを備え、分周比制御部は、前記クロック信号及び方向信号に基づいてデータ切替信号及びデータ切替方向信号を生成するタイミング制御部と、カム曲線を主軸移動量と従軸移動量との関係を用いて表したカム曲線データが予め記憶されたメモリ部と、前記メモリ部上のカム曲線データを前記データ切替方向信号が示す方向を切り替えつつ前記データ切替信号が示すタイミングで順次選択して出力する切替部と、前記切替部から出力されたカム曲線データに含まれる主軸移動量と従軸移動量との比率に基づいて前記従軸パルス生成部の分周比を変化させる分周比調節部とを有し、前記タイミング制御部は、前記データ切替信号がアクティブになると以後の前記クロック信号を前記方向信号が示す方向に計数するアップダウンカウンタと、当該計数値が前記切替部から出力された主軸移動量の分だけ変化したタイミングをデータ切替信号として出力する一方、前記方向信号が変化した直後に前記データ切替信号が最初にアクティブになったタイミングで方向が反転するデータ切替方向信号を出力する信号出力部とを有していることを特徴とする電子カムコントローラ。   A signal generator that generates at least a clock signal based on the spindle pulse of the spindle encoder, and counts the clock signal in the direction indicated by the direction signal to divide the frequency so that the variable division ratio can be controlled. A slave-axis pulse generator that outputs a slave-axis pulse that is synchronized with the signal, and a frequency-dividing ratio controller that controls the frequency-dividing ratio of the slave-axis pulse generator based on the clock signal and the direction signal. A timing control unit that generates a data switching signal and a data switching direction signal based on the clock signal and the direction signal, and cam curve data that represents a cam curve using a relationship between a main shaft movement amount and a slave shaft movement amount Is stored in advance, and the timing indicated by the data switching signal while switching the direction indicated by the data switching direction signal of the cam curve data on the memory unit. The frequency dividing ratio of the slave pulse generator is changed based on a switching unit that sequentially selects and outputs, and a ratio between the main shaft movement amount and the sub shaft movement amount included in the cam curve data output from the switching unit. A division ratio adjusting unit, and the timing control unit counts the subsequent clock signal in a direction indicated by the direction signal when the data switching signal becomes active, and the count value is the switching Data switching that outputs the timing changed by the amount of spindle movement output from the unit as a data switching signal, while the direction is reversed at the timing when the data switching signal is first activated immediately after the direction signal is changed An electronic cam controller, comprising: a signal output unit that outputs a direction signal. 前記切替部は、前記メモリ部からカム曲線データに含まれる最終データが選択して出力されたことを示すカムデータ要求信号を生成する機能を有した場合の請求項1記載の電子カムコントローラにおいて、複数種のカム曲線データが予め記憶されたカム曲線データ記憶部と、カム曲線の種類を切り替えるためのカム切替情報が入力される入力部と、カム曲線データ記憶部上のカム曲線データのうち前記入力部を通じて入力されたカム切替情報に対応したカム曲線データを読み出してカムデータ要求信号が示すタイミングで前記メモリ部に転送するとともに前記メモリ部の記憶内容を更新させるカムデータ管理部とを備えることを特徴とする電子カムコントローラ。   The electronic cam controller according to claim 1, wherein the switching unit has a function of generating a cam data request signal indicating that the final data included in the cam curve data is selected and output from the memory unit. Of the cam curve data on the cam curve data storage unit, a cam curve data storage unit in which a plurality of types of cam curve data are stored in advance, an input unit to which cam switching information for switching the type of cam curve is input, A cam data management unit that reads out cam curve data corresponding to the cam switching information input through the input unit, transfers the cam curve data to the memory unit at a timing indicated by a cam data request signal, and updates the storage content of the memory unit; An electronic cam controller characterized by
JP2010091415A 2010-04-12 2010-04-12 Electronic cam controller Pending JP2011221850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010091415A JP2011221850A (en) 2010-04-12 2010-04-12 Electronic cam controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010091415A JP2011221850A (en) 2010-04-12 2010-04-12 Electronic cam controller

Publications (1)

Publication Number Publication Date
JP2011221850A true JP2011221850A (en) 2011-11-04

Family

ID=45038749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010091415A Pending JP2011221850A (en) 2010-04-12 2010-04-12 Electronic cam controller

Country Status (1)

Country Link
JP (1) JP2011221850A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103692471A (en) * 2013-12-30 2014-04-02 广东联塑机器制造有限公司 Scrap-free planetary cutting machine for PE (polyethylene) tubes
CN103692468A (en) * 2013-12-30 2014-04-02 广东联塑机器制造有限公司 Planetary chip-less double-blade cutter for large-diameter thick-wall PE (polythene) pipes

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103692471A (en) * 2013-12-30 2014-04-02 广东联塑机器制造有限公司 Scrap-free planetary cutting machine for PE (polyethylene) tubes
CN103692468A (en) * 2013-12-30 2014-04-02 广东联塑机器制造有限公司 Planetary chip-less double-blade cutter for large-diameter thick-wall PE (polythene) pipes
CN103692468B (en) * 2013-12-30 2015-10-14 广东联塑机器制造有限公司 A kind of heavy caliber thick tube wall PE tubing planet chipless blade cutting machine
CN103692471B (en) * 2013-12-30 2015-10-14 广东联塑机器制造有限公司 A kind of PE tubing planet Chipless cutting machine

Similar Documents

Publication Publication Date Title
US8259536B2 (en) Analog electronic timepiece and stepping motor driving method
KR100732141B1 (en) Pulse width modulation circuit
CN105306050A (en) Clock generator
KR101561372B1 (en) Pwm signal generating circuit, printer and pwm signal generating method
JP2011221850A (en) Electronic cam controller
CN108139731B (en) Stepping motor control circuit and method for controlling stepping motor
JP2006303863A (en) Pulse signal generating device
TWI426695B (en) Motor driver control device
JP4901912B2 (en) Stepping motor drive device and controller
JP2009294199A (en) Speed measurement method and system
JP2019070603A (en) Abz phase frequency divider
KR100737557B1 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JPH1141989A (en) Drive gear for stepping motor and monitor camera system using it
TWI352498B (en)
US20070198101A1 (en) MCU based motor controller with pre-load register and DMA controller
JP2010172056A (en) Speed pattern generating apparatus
US20070273321A1 (en) Stepping-Motor Control Apparatus and Method of Controlling the Apparatus
JP3640909B2 (en) Multi-axis interpolation controller
JP5371714B2 (en) Positioning function generator and method, and electric motor using the same
KR100760204B1 (en) Pulse generating method and pulse generator in motor control system
JP2000139099A (en) Motor controller
JP3555726B2 (en) Pulse generator
JP3847734B2 (en) Timer circuit
JPH11248488A (en) Method and device for processing signal of encoder
JPH0736599U (en) Driving device for two-phase stepping motor