JP3386777B2 - Numerical control system - Google Patents

Numerical control system

Info

Publication number
JP3386777B2
JP3386777B2 JP2000125722A JP2000125722A JP3386777B2 JP 3386777 B2 JP3386777 B2 JP 3386777B2 JP 2000125722 A JP2000125722 A JP 2000125722A JP 2000125722 A JP2000125722 A JP 2000125722A JP 3386777 B2 JP3386777 B2 JP 3386777B2
Authority
JP
Japan
Prior art keywords
clock information
axis
unit
slave
numerical control
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.)
Expired - Fee Related
Application number
JP2000125722A
Other languages
Japanese (ja)
Other versions
JP2001027904A (en
Inventor
三津雄 鞍掛
謙太郎 藤林
靖司 明石
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.)
FANUC Corp
Original Assignee
FANUC 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 FANUC Corp filed Critical FANUC Corp
Priority to JP2000125722A priority Critical patent/JP3386777B2/en
Publication of JP2001027904A publication Critical patent/JP2001027904A/en
Application granted granted Critical
Publication of JP3386777B2 publication Critical patent/JP3386777B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • General Factory Administration (AREA)
  • Numerical Control (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、輪転機、包装機、
塗装機等、多数の軸の同期が必要とされる機械で使用さ
れる数値制御装置(CNC装置)に関する。特に、複数
のCNC装置を連結させることで、制御する軸数を増大
させ、かつ、複数のCNC装置間の同期を取ることがで
きる数値制御システムに関する。
TECHNICAL FIELD The present invention relates to a rotary press, a packaging machine,
The present invention relates to a numerical control device (CNC device) used in a machine such as a coating machine that requires synchronization of many axes. In particular, the present invention relates to a numerical control system capable of increasing the number of axes to be controlled and synchronizing a plurality of CNC devices by connecting a plurality of CNC devices.

【0002】[0002]

【従来の技術】複数のCNC装置によって制御される軸
に対して、これらの軸の同期を取る方法として、マスタ
となる1台のCNC装置等から各軸への移動指令等のデ
ータをスレーブとなる各CNC装置に伝送し同期制御を
行う方法が公知である(特開平9−204215号公
報、特開平10−13394号公報、特開平9−146
623号公報等参照)。
2. Description of the Related Art As a method of synchronizing axes controlled by a plurality of CNC devices, data such as a movement command from one CNC device as a master to each axis is used as a slave. A method for performing synchronization control by transmitting to each of the following CNC devices is known (JP-A-9-204215, JP-A-10-13394, JP-A-9-146).
623, etc.).

【0003】又、電子カムといわれるような、基準とな
る軸の位置情報を各CNC装置に伝送し、この基準とな
る軸の位置に基づいて、各CNC装置がそれぞれ制御す
る軸の位置等を制御する方式も公知である(特開平7−
302103号公報等参照)。
Position information of a reference axis, which is called an electronic cam, is transmitted to each CNC device, and the position of the axis controlled by each CNC device is determined based on the position of the reference axis. A control method is also known (Japanese Patent Laid-Open No. 7-
No. 302103, etc.).

【0004】この基準となる軸の位置情報を各CNC装
置に伝送する方式には次の2つの方式がある。 外部パルス同期方式 この方式は、図18に示すように、外部に基準となるマ
スタ軸80(例えば、カムシャフト)を設け、このマス
タ軸80の位置を示すパルスをパルス発生器81から発
生させ、このパルスをスレーブとなる各CNC装置#1
〜#nに入力する。各スレーブユニットを構成する各C
NC装置#1〜#nは、この入力されたマスタ軸80の
位置から、それぞれのCNC装置#1〜#nが制御する
軸(スレーブ軸)のいるべき位置(モータで駆動される
軸位置)を割り出して位置決め制御を行うことによっ
て、マスタ軸80に同期して各スレーブ軸を制御する方
法である。
There are the following two methods for transmitting the position information of the reference axis to each CNC device. External pulse synchronization system In this system, as shown in FIG. 18, a master shaft 80 (for example, a cam shaft) serving as a reference is externally provided, and a pulse indicating the position of the master shaft 80 is generated from a pulse generator 81. Each CNC device # 1 that becomes this pulse as a slave
Enter in ~ # n. Each C that constitutes each slave unit
From the input position of the master shaft 80, the NC devices # 1 to #n should be the positions (axis positions driven by the motors) of the axes (slave shafts) controlled by the respective CNC devices # 1 to #n. Is performed and the positioning control is performed to control each slave axis in synchronization with the master axis 80.

【0005】このマスタ軸80の位置に対するスレーブ
軸がいるべき位置の制御としては、各スレーブ軸毎に係
数(N/M)をパラメータ設定し、マスタ軸80の位置
に対してスレーブ軸が(N/M)の位置となるように各
スレーブ軸を制御するCNC装置#1〜#nが位置決め
制御を行う。この方法はマスタ軸80にスレーブ軸が何
段かのギヤで連結されている場合に相当するものであ
る。
To control the position where the slave axis should be relative to the position of the master axis 80, a coefficient (N / M) is set as a parameter for each slave axis, and the slave axis is set to (N / M) position control is performed by the CNC devices # 1 to #n that control each slave axis so that the position becomes the position (M). This method corresponds to the case where the slave shaft is connected to the master shaft 80 by several gears.

【0006】又、マスタ軸80の位置Xを引数としてス
レーブ軸の位置Yを関数f(X)で求める方法も採用され
ている。スレーブユニットのCNC装置#1〜#nに入
力されたマスタ軸の位置Xに対し、各スレーブユニット
のCNC装置#1〜#nに設定された各スレーブ軸毎の
関数f(X)より、スレーブ軸の位置Y=f(X)を求めてこ
の位置に位置決め制御する方法である。
Further, a method of obtaining the position Y of the slave axis by a function f (X) using the position X of the master axis 80 as an argument is also adopted. With respect to the position X of the master axis input to the CNC devices # 1 to #n of the slave unit, the slaves are set from the function f (X) of each slave axis set in the CNC devices # 1 to #n of each slave unit. This is a method of obtaining the position Y = f (X) of the axis and performing positioning control at this position.

【0007】更には、上述した係数、関数によってスレ
ーブ軸の位置を求める方法以外に、これらの方法では得
ることができないスレーブ位置をパターン化して求める
方法として、図20に示すように、マスタ軸の位置に対
する各スレーブの位置を対応させて記憶するデータテー
ブルを作成し、マスタ軸の位置に対し各スレーブ軸の位
置をこのデータテーブルに設定記憶された位置に位置決
めするように各スレーブユニットのCNC装置#1〜#
nが制御する方法も公知である。
Further, other than the method of obtaining the position of the slave axis by the above-mentioned coefficient and function, as a method of obtaining the slave position which cannot be obtained by these methods by patterning, as shown in FIG. A CNC device of each slave unit is created so that a data table for storing the position of each slave with respect to the position is stored and the position of each slave axis is set to the position set and stored in this data table with respect to the position of the master axis. # 1 to #
A method in which n is controlled is also known.

【0008】内部パルス同期方式 この方式は、図19に示すように、外部にマスタ軸を設
けず、1台のCNC装置#1をマスタユニットとし、他
のCNC装置#2〜#nをスレーブユニットとする。マ
スタユニット#1によって仮想のマスタ軸を制御してこ
の仮想マスタ軸の位置を示すパルス発生手段82から、
基準となるパルスを発生させる。マスタユニットは、こ
の仮想マスタ軸の位置を示すパルスを各スレーブユニッ
トのCNC装置#2〜#nに出力する。各スレーブユニ
ット#2〜#nは入力された仮想マスタ軸の位置から、
自分が制御する軸(スレーブ軸)のいるべき位置を割り
出して位置決め制御を行う。なお、マスタユニットにお
いてもスレーブ軸を設け、仮想マスタ軸の位置情報に基
づいて軸制御手段83を介してこのスレーブ軸も制御し
ている。なお、内部パルス同期方式においても、マスタ
軸に対するスレーブ軸の位置を求める方法は、外部パル
ス同期方式で説明した係数(N/M)、関数Y=f
(X)、又は図20に示すようなデータテーブルによって
求めるようにする点は変わりはない。
Internal pulse synchronization system In this system, as shown in FIG. 19, one CNC device # 1 is used as a master unit and the other CNC devices # 2 to #n are slave units without providing an external master axis. And From the pulse generation means 82 which controls the virtual master axis by the master unit # 1 and indicates the position of this virtual master axis,
Generate a reference pulse. The master unit outputs a pulse indicating the position of this virtual master axis to the CNC devices # 2 to #n of each slave unit. From the position of the input virtual master axis, each slave unit # 2 to #n
Positioning control is performed by finding out the desired position of the axis (slave axis) that it controls. A slave axis is also provided in the master unit, and this slave axis is also controlled via the axis control means 83 based on the position information of the virtual master axis. Even in the internal pulse synchronization method, the method of obtaining the position of the slave axis with respect to the master axis is the coefficient (N / M) and the function Y = f described in the external pulse synchronization method.
There is no difference in that it is obtained by (X) or the data table as shown in FIG.

【0009】[0009]

【発明が解決しようとする課題】上述した従来技術にお
いて、外部パルス同期方式では、外部にカムシャフトの
ような実際に動作するものが必要である。実際に動作す
るカムシャフト等を設けることは、それだけコストや保
守の面で不利である。これに対して、内部パルス同期方
式では、外部にカムシャフト等を設ける必要がない分有
利である。しかし、マスタユニットで仮想マスタ軸の位
置を制御しなければならないので、複雑な制御を必要と
する等の理由から、マスタユニットの制御軸数を1つ減
らしてしまうという欠点がある。即ち、マスタ軸位置制
御において単純な移動、停止、オーバライドのみなら
ず、加減速制御、未来の位置情報よりなされる先行制御
等の複雑な制御を必要とすることから、マスタユニット
の制御軸としてマスタ軸を用いなければならず、実際の
制御軸が1軸減ってしまうことになる。
In the above-mentioned prior art, the external pulse synchronization system requires an externally operable one such as a camshaft. Providing a camshaft or the like that actually operates is disadvantageous in terms of cost and maintenance. On the other hand, the internal pulse synchronization method is advantageous because there is no need to provide a camshaft or the like outside. However, since the position of the virtual master axis must be controlled by the master unit, there is a drawback that the number of control axes of the master unit is reduced by 1 because of the necessity of complicated control. That is, in the master axis position control, not only simple movement, stop, and override, but also complicated control such as acceleration / deceleration control and advance control based on future position information are required. An axis must be used, and the actual control axis is reduced by one.

【0010】更に、各スレーブ軸の位置は、マスタユニ
ットから伝送されるマスタ軸の位置により求められるも
のであり、あくまでもマスタ軸との関係でしかない。ス
レーブ軸同士の同期を取ったり、取らなかったりといっ
た制御はできない。又、同期を取る区間と同期を取らな
い区間に分けて制御することが難しい。即ち、同期を取
らない区間でスレーブ軸の位置を決定できない。又スレ
ーブ軸を止めることはできても、マスタ軸と無関係に動
作させることもできない、というような問題がある。
Further, the position of each slave axis is obtained from the position of the master axis transmitted from the master unit, and is merely a relationship with the master axis. It is not possible to control whether slave axes are synchronized or not synchronized. In addition, it is difficult to control the sections that are synchronized and the sections that are not synchronized. That is, the position of the slave axis cannot be determined in a section where synchronization is not achieved. Further, there is a problem that the slave axis can be stopped but cannot be operated independently of the master axis.

【0011】又、オーバライド等で、マスタ軸の位置の
変化を早めたり、遅くしたりしてマスタ軸の速度を変え
ると、スレーブ軸の位置の変化は、マスタ軸の速度に関
連して変化することになる。そのため、スレーブ軸のあ
る軸はオーバライドがかかり、他の軸はオーバライドが
かからないようにするというような制御方法を採用する
ことができない。実際の機械においては、ある軸はオー
バライドをかけたいが、ある軸はオーバライドと無縁に
したいという要望がある。それは、オーバライドをかけ
る必要がない軸にオーバライドをかけることによって、
サイクルタイムが長くなるという欠点があるからであ
る。
When the speed of the master axis is changed by speeding up or slowing down the change of the position of the master axis due to overriding or the like, the change of the position of the slave axis changes in relation to the speed of the master axis. It will be. Therefore, it is impossible to adopt a control method in which one axis having a slave axis is overridden and the other axis is not overridden. In a real machine, there is a desire that some axes want to be overridden but some axes be immune to override. By overriding the axes that do not need to be overridden,
This is because there is a drawback that the cycle time becomes long.

【0012】そこで、本発明は、上述した問題点を改善
することを課題とするものであり、スレーブ軸をマスタ
軸に対し同期、非同期を自由にすることができる同期制
御ができる数値制御装置を得ることにある。
SUMMARY OF THE INVENTION Therefore, the present invention has an object to improve the above-mentioned problems, and provides a numerical control device capable of synchronous control in which the slave axis can be synchronously or asynchronously with respect to the master axis. To get.

【0013】[0013]

【課題を解決するための手段】マスタユニットとなる1
台の数値制御装置と、スレーブユニットとなる1台以上
の数値制御装置を備え、これら異なる数値制御装置によ
り制御される軸同士の同期制御を行う数値制御システム
において、請求項1に係わる発明は、マスタユニットと
なる数値制御装置に、該マスタユニットで制御される軸
の移動指令を含むプログラムを記憶する記憶手段と、所
定時間間隔でカウントアップまたはカウントダウンして
時計情報を生成する時計情報生成手段と、時計情報の伝
送に伴う遅れに対する時計情報の調整を行う手段と、調
整された時計情報に基づいてプログラムを起動させる手
段と、さらに、時計情報生成手段により生成された時計
情報を前記マスタユニットからスレーブユニットに伝送
する伝送手段とを設ける。また、スレーブユニットとな
る数値制御装置には、それぞれ、各スレーブユニットで
制御される軸の移動指令を含むプログラムを記憶する記
憶手段と、マスタユニットからの時計情報の伝送に伴う
遅れに対する時計情報の調整を行う手段と、調整された
時計情報に基づいて前記プログラムを起動させる手段と
を設けることにより、各軸の動作を同時に開始させ、各
軸の同期制御を行うようにした。
[Means for Solving the Problems] Becoming a master unit 1
Numerical control unit and one or more units to be slave units
Equipped with a numerical control device of
Numerical control system for synchronous control of axes to be controlled
In the invention according to claim 1, a master unit is provided.
To the numerical control device, the axis controlled by the master unit
Storage means for storing a program including the movement command of
Count up or down at regular time intervals
Clock information generation means for generating clock information and transmission of clock information
A means to adjust the clock information for the delay due to sending,
Hand that starts the program based on the adjusted clock information
And a clock generated by the clock information generating means.
Transfers information from the master unit to slave units
And a transmission means for doing so. Also, as a slave unit
Numerical control device
A note that stores the program that contains the movement commands for the controlled axes.
Memorization means and transmission of clock information from the master unit
A means to adjust the clock information for the delay, and
Means for activating the program based on clock information
By providing the above, the operation of each axis is started at the same time, and the synchronous control of each axis is performed.

【0014】請求項2に係わる発明は、マスタユニット
及び前記スレーブユニットに、さらに、プログラムを起
動させる起動時刻情報を記憶する起動時刻記憶手段と、
プログラムを該起動時刻記憶手段に記憶された起動時刻
に起動させる起動手段とを備えるようにした。また、請
求項3に係わる発明は、外部又は内部からの信号で前記
時計情報生成手段のカウント動作を制御する手段を更に
設けた。請求項に係わる発明は、このカウント動作を
制御する手段として、カウントのリセットとカウント開
始、カウントの一時停止と再開、カウントにオーバライ
ドをかける機能の少なくとも1つ以上の機能を備えるも
のとした。
The invention according to claim 2 is the master unit.
Also, a program is started in the slave unit.
Startup time storage means for storing startup time information to be activated,
Program start time stored in the start time storage means
It has a starting means for starting up. Also, the contract
The invention according to claim 3 further includes means for controlling the counting operation of the clock information generating means by a signal from the outside or the inside. In the invention according to claim 4 , as means for controlling the counting operation, at least one function of resetting and starting counting, temporarily stopping and restarting counting, and overriding counting is provided.

【0015】請求項5に係わる発明は、マスタユニット
から又は/及びスレーブユニットから前記外部又は内部
からの信号を発生させ、カウントのリセットとカウント
開始、カウントの一時停止と再開、更には、カウントに
オーバライドをかけることができるようにした。
The invention according to claim 5 is the master unit.
From or / and from a slave unit to the external or internal
Generate a signal from, reset the count and count
Start, pause and resume counting, and even counting
Added the ability to override.

【0016】請求項6に係わる発明は、スレーブユニッ
トに、時計情報の伝送に伴う動作の基準単位時間のずれ
に対する時計情報の調整を行う手段を設け、マスタユニ
ット及び各スレーブユニットにおける軸動作の基準時間
単位となるITP周期のずれと伝送遅れを調整し、より
正確な同期運転を可能にした。
[0016] invention relating to aspect 6, the slave unit, a means for adjusting the clock data for shift in the reference unit time accompanied Udo operation for the transmission of clock information, axis motion in the master unit and the slave unit By adjusting the deviation of the ITP cycle and the transmission delay, which are the reference time units of, the more accurate synchronous operation was made possible.

【0017】請求項7に係わる発明は、マスタユニット
及びスレーブユニットに、時計情報によらずに各軸の移
動指令を含むプログラムを起動させる手段を更に設け、
ある区間では、異なる数値制御装置での軸の動作を同期
させ、別の区間では、同期させずに動作させることを可
能にした。
The invention according to claim 7 is the master unit.
Further, the slave unit is further provided with means for starting a program including a movement command for each axis regardless of clock information,
In one section, it was possible to synchronize the operation of the axes in different numerical control devices, and in another section, it was possible to operate them without synchronization.

【0018】請求項8に係わる発明は、マスタユニット
に複数の時計情報を生成する手段を設け、複数の時計情
報を伝送し、スレーブユニットは、前記時計情報を複数
受信することができ、前記複数の時計情報のどちらを前
記プログラムの起動時刻情報とするかを前記スレーブユ
ニットの軸単位で選択できるようにし、複数の系統で各
軸動作を同期させて制御できるようにした。
According to an eighth aspect of the present invention, the master unit is provided with means for generating a plurality of clock information, the plurality of clock information is transmitted, and the slave unit can receive a plurality of the clock information. It is made possible to select which of the clock information of (1) is used as the start time information of the program for each axis of the slave unit, and to control each axis operation in synchronization with a plurality of systems.

【0019】請求項9に係わる発明は、1台のマスタユ
ニットの代わりに複数のマスタユニットを備えるように
した。これにより、各マスタユニットにより前記時計情
報を個別に生成し、その複数の時計情報を伝送し、スレ
ーブユニットは、前記時計情報を複数受信することがで
き、前記複数の時計情報のどちらを前記プログラムの起
動時刻情報とするかを前記スレーブユニットの軸単位で
選択できるようにし、複数の系統で各軸動作を同期させ
て制御できるようにした。
In the invention according to claim 9, a plurality of master units are provided instead of one master unit. Thereby, each master unit individually generates the clock information and transmits the plurality of clock information, and the slave unit can receive the plurality of clock information, and which of the plurality of clock information is the program information. It is made possible to select whether or not to use the start time information for each axis of the slave unit, and it is possible to control the operation of each axis in synchronization with a plurality of systems.

【0020】[0020]

【発明の実施の形態】図1は、本発明の一実施形態の要
部ブロック図である。多数の軸を複数のCNC装置によ
って分割して制御し、かつ、これらの軸を同期をとって
制御するものである。複数のCNC装置の内、1台をマ
スタユニット100とし、他のCNC装置をスレーブユ
ニット200,300,・・・・としている。なお、図
1では、マスタユニット100と、2台のスレーブユニ
ット200,300のみを示している。マスタユニット
100及び各スレーブユニット200、300には、サ
ーボアンプAを介して軸を駆動するモータMが複数接続
されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram of essential parts of an embodiment of the present invention. A large number of axes are divided and controlled by a plurality of CNC devices, and these axes are controlled in synchronization. Of the plurality of CNC devices, one is the master unit 100 and the other CNC devices are the slave units 200, 300, .... Note that FIG. 1 shows only the master unit 100 and the two slave units 200 and 300. A plurality of motors M that drive the shafts are connected to the master unit 100 and each of the slave units 200 and 300 via a servo amplifier A.

【0021】マスタユニット100は、従来のCNC装
置とほぼ同一の構成であるが、時計情報を生成するカウ
ンタ9、該時計情報をスレーブ200,300,・・に
伝送するドライバ10、時計情報を格納する時計情報格
納メモリ8が設けられている点で相違する。
The master unit 100 has almost the same structure as a conventional CNC device, but stores a counter 9 for generating clock information, a driver 10 for transmitting the clock information to the slaves 200, 300, ..., Clock information. The difference is that the clock information storage memory 8 is provided.

【0022】クロック(水晶発振器等)1からのクロッ
ク信号より、ITP生成手段2は動作の基本単位時間
(以下ITPという)のパルスを生成する。又クロック
1からのクロック信号をカウンタ9はカウントして時計
情報を作成し、ドライバ10によって、この時計情報は
各スレーブユニット200,300,・・にケーブル5
0を介して伝送される。更に、この時計情報はCNC用
プロセッサ3によって読み込まれ、時計情報格納用メモ
リ8に格納される。以上のようにこのカウンタ9とクロ
ック1によって、時計情報生成手段を構成している。プ
ログラム格納用メモリ4には、CNC用プロセッサ3が
実行するパートプログラムが格納記憶され、又、ラダー
プログラム格納用メモリ6には、PMC用プロセッサ7
が実行するラダープログラム、プログラマブルコントロ
ーラ用の軸制御プログラムが格納されている。これら各
メモリに格納されるプログラムは、図示しない表示装置
付き操作盤等から入力設定しても、又、通信インターフ
ェースを介してホストコンピュータから転送入力して
も、更には、紙テープ、フロッピー(登録商標)ディス
ク、ICカード等より読み込まれ前記メモリ4,6に格
納されるものである。
From the clock signal from the clock (crystal oscillator, etc.) 1, the ITP generating means 2 generates a pulse of a basic unit time of operation (hereinafter referred to as ITP). Further, the counter 9 counts the clock signal from the clock 1 to create clock information, and the driver 10 transmits this clock information to the slave units 200, 300 ,.
0 is transmitted. Further, this clock information is read by the CNC processor 3 and stored in the clock information storage memory 8. As described above, the counter 9 and the clock 1 constitute the clock information generating means. A part program executed by the CNC processor 3 is stored and stored in the program storage memory 4, and a PMC processor 7 is stored in the ladder program storage memory 6.
Stores the ladder program executed by the and the axis control program for the programmable controller. The program stored in each of these memories may be input and set from an operation panel with a display device (not shown) or transferred and input from a host computer through a communication interface, and may be further recorded on a paper tape or a floppy (registered trademark). ) It is read from a disk, an IC card or the like and stored in the memories 4 and 6.

【0023】PMC用プロセッサ7は、時計情報格納メ
モリ8に格納された時計情報とラダープログラム格納用
メモリ6に格納されたラダープログラムから、プログラ
ム格納用メモリ4に格納されたパートプログラム、又は
ラダープログラム格納用メモリ6に格納されたプログラ
マブルコントローラ用の軸制御プログラムを起動させ
る。CNC用プロセッサ3は、起動されたプログラムに
より、ITP生成手段2から出力されるパルスのITP
単位での各軸(マスタユニットが制御する軸)の動作量
を計算し求め、軸制御プロセッサ5に出力する。軸制御
プロセッサ5は、サーボアンプAを介して各軸のモータ
Mを駆動制御する。
The PMC processor 7 uses the clock information stored in the clock information storage memory 8 and the ladder program stored in the ladder program storage memory 6 to determine the part program or the ladder program stored in the program storage memory 4. The axis control program for the programmable controller stored in the storage memory 6 is started. The CNC processor 3 receives the ITP of the pulse output from the ITP generating means 2 according to the activated program.
The operation amount of each axis (axis controlled by the master unit) in units is calculated and obtained, and is output to the axis control processor 5. The axis control processor 5 drives and controls the motor M of each axis via the servo amplifier A.

【0024】スレーブユニット200,300、・・
は、マスタユニット100と同様に、クロック1、IT
P生成手段2、CNC用プロセッサ3,プログラム格納
用メモリ4,軸制御プロセッサ5,ラダープログラム格
納用メモリ6,PMC用プロセッサ7,時計情報格納用
メモリ8を備える点はマスタユニットと同一である。相
違する点は、マスタユニット100において備えていた
時計情報生成手段を構成するカウンタ9及びドライバ1
0が設けられておらず、その代わりにマスタユニット1
00のドライバ10及びケーブル50等の伝送手段によ
って伝送されて来る時計情報を受信するケーブル50に
接続されたレシーバ11が設けられている。
Slave units 200, 300, ...
Is the same as the master unit 100, clock 1, IT
It is the same as the master unit in that it includes a P generation means 2, a CNC processor 3, a program storage memory 4, an axis control processor 5, a ladder program storage memory 6, a PMC processor 7, and a clock information storage memory 8. The difference is that the counter 9 and the driver 1 which constitute the clock information generating means provided in the master unit 100.
0 is not provided, instead master unit 1
The receiver 11 connected to the cable 50 for receiving the clock information transmitted by the transmission means such as the 00 driver 10 and the cable 50 is provided.

【0025】ケーブル50を介してレシーバ11に受信
された時計情報はCNC用プロセッサ3で読み込まれ時
計情報格納用メモリ8に格納され、この格納された時計
情報とラダープログラム格納用メモリ6に格納されたラ
ダープログラムからプログラムが起動され、前述したマ
スタユニット100の動作と同様の動作処理によって各
スレーブユニット200、300、・・の各軸を駆動制
御する。なお、各スレーブユニット200,300,・
・のプログラム格納用メモリ4には、予め、各スレーブ
ユニットのCNC用プロセッサが実行するパートプログ
ラムが格納されている。又、各スレーブユニット20
0,300,・・のラダープログラム格納用メモリ6に
は、各スレーブユニット用のラダープログラム及びプロ
グラマブルコントローラ用の軸制御プログラムが格納さ
れている。
The clock information received by the receiver 11 via the cable 50 is read by the CNC processor 3 and stored in the clock information storage memory 8, and the stored clock information and the ladder program storage memory 6 are stored. The program is started from the ladder program, and each slave unit 200, 300, ... Is driven and controlled by the same operation processing as the operation of the master unit 100 described above. Each slave unit 200, 300, ...
The program storage memory 4 stores in advance a part program executed by the CNC processor of each slave unit. Also, each slave unit 20
The memory 6 for storing ladder programs 0, 300, ... Stores a ladder program for each slave unit and an axis control program for a programmable controller.

【0026】以上のように、マスタユニット100、各
スレーブユニット200,300,・・は、時計情報に
基づいて、各プログラムを起動し制御することができ
る。そのため、この時計情報に基づいてマスタユニット
100、各スレーブユニット200,300,・・で制
御される各軸を同期制御することもでき、かつ、非同期
制御も可能となる。例えば、ラダープログラムとして、
図8に示すような、別の軸が設定位置に達したとき等を
起動条件として設定しておき、この起動条件が成立する
と、開始信号ACTを「1」とし、この開始信号ACT
が「1」になると、プログラマブルコントローラによる
シーケンスによる軸動作又は、パートプログラムによる
モーションプログラムを起動させるような、ラダープロ
グラムを設定記憶させておくと、時計情報によらない動
作を実行させることができる。
As described above, the master unit 100 and each slave unit 200, 300, ... Can start and control each program based on the clock information. Therefore, each axis controlled by the master unit 100 and each slave unit 200, 300, ... Can be synchronously controlled based on this clock information, and asynchronous control is also possible. For example, as a ladder program,
As shown in FIG. 8, a start condition is set when another axis reaches a set position, and when the start condition is satisfied, the start signal ACT is set to “1” and the start signal ACT is set.
When "1" is set, the operation which does not depend on the clock information can be executed by setting and storing the ladder program such that the axis operation by the sequence by the programmable controller or the motion program by the part program is activated.

【0027】又、図9に示すようなラダープログラムを
設定しておけば、時計情報が設定値nに達したとき、開
始信号ACTを「1」とし、プログラマブルコントロー
ラによるシーケンスによる軸動作又は、モーションプロ
グラムを起動させることができ、時計情報に基づいて、
動作を開始させることができる。この時計情報に基づい
て、動作を開始するようなラダープログラムをマスタユ
ニット100及び/又は各スレーブユニット200,3
00,・・のラダープログラム格納用メモリ6に設定し
ておけば、マスタユニット100及び/又は各スレーブ
ユニット200,300,・・で駆動制御される各軸を
同期して駆動制御することができる。
Further, if a ladder program as shown in FIG. 9 is set, when the clock information reaches the set value n, the start signal ACT is set to "1", and the axis operation or motion by the sequence by the programmable controller is performed. The program can be started, and based on the clock information,
The operation can be started. On the basis of this clock information, a ladder program for starting the operation is set to the master unit 100 and / or each slave unit 200, 3
If the setting is made in the ladder program storing memory 6 of 00, ..., Each axis which is driven and controlled by the master unit 100 and / or each slave unit 200, 300 ,. .

【0028】図2は、本発明の第2の実施形態のマスタ
ユニット100を構成するCNC装置の要部ブロック図
である。図1で示すマスタユニット100の構成と相違
する点は、PMC用プロセッサ7からカウンタ9のリセ
ット信号SR、リセット解除信号SRR、ホールド信号S
H、ホールド解除信号SHR信号を出力し、時計情報生成
手段を構成するカウンタ9を、リセット、ホールド、及
びその解除ができるようにした点、及び、時計情報の出
力間隔を調整し時計情報にオーバライドをかけることが
できるようにした点である。なお、このマスタユニット
100も図示していないが、図1に示すマスタユニット
と同様に、ITP生成手段2、プログラム格納用メモリ
4,軸制御用プロセッサ5、時計情報格納用メモリ8、
ドライバ10が設けられているものであり、図1のマス
タユニット100で説明した動作と同一の動作も行うも
のである。この第2の実施形態が図1の第1の実施形態
が実行する動作以外の動作を行う点の構成と関係のある
要素のみを記載している。図1のマスタユニットに対し
てレジスタ12、入力回路13が付加されている。
FIG. 2 is a block diagram of a main part of a CNC device which constitutes a master unit 100 according to a second embodiment of the present invention. The difference from the configuration of the master unit 100 shown in FIG. 1 is that the reset signal SR, the reset release signal SRR, and the hold signal S from the PMC processor 7 to the counter 9 are different.
H, the hold release signal SHR signal is output, the counter 9 constituting the clock information generating means can be reset, held, and released, and the output interval of the clock information is adjusted to override the clock information. This is the point that can be applied. The master unit 100 is also not shown, but like the master unit shown in FIG. 1, the ITP generating means 2, the program storage memory 4, the axis control processor 5, the clock information storage memory 8,
The driver 10 is provided and also performs the same operation as the operation described for the master unit 100 in FIG. Only the elements related to the configuration in that the second embodiment performs an operation other than the operation executed by the first embodiment in FIG. 1 are described. A register 12 and an input circuit 13 are added to the master unit shown in FIG.

【0029】時計情報を生成するカウンタ9は、クロッ
ク1からのクロック信号を所定数カウントする毎に時計
情報としてのカウンタをカウントアップ、若しくはカウ
ントダウンして時計情報を出力するものである。このカ
ウンタ9をリセットすれば、時計情報を初期化(0クリ
ア)することができる。又、カウンタ9のカウントをホ
ールドすればカウントアップ若しくはカウントダウンを
停止できるので、時計を止めた状態を形成でき、かつ、
そのホールドを解けば、時計を進めることができる。さ
らに、このカウンタ9でカウントアップ若しくはカウン
トダウンし、時計情報を出力するカウント値を変更すれ
ば、時計情報の出力間隔が変更になり時計情報のオーバ
ライドを形成することができる。
The counter 9 for generating clock information counts up or down the counter as clock information and outputs the clock information every time a predetermined number of clock signals from the clock 1 are counted. If the counter 9 is reset, the clock information can be initialized (cleared to 0). Further, since counting up or counting down can be stopped by holding the count of the counter 9, it is possible to form a state in which the clock is stopped, and
If you release the hold, you can advance the clock. Further, if the counter 9 counts up or counts down and the count value for outputting the clock information is changed, the output interval of the clock information is changed and the clock information override can be formed.

【0030】そこで、この第2の実施形態では、図示し
ない操作盤等から入力回路Diを介して入力される信
号、又は、ラダープログラム格納用メモリ6に格納さ
れ、実行中のラダープログラムによって内部信号を発生
させ、これらの信号によって、PMC用プロセッサ7が
上述した、リセット信号SR、ホールド信号SH及びこ
れらの解除信号SRR、SHR、をカウンタ9に出力し、該
カウンタ9のリセット、ホールド及びそれらの解除を行
うようにする。さらに、レジスタ12を設け、このレジ
スタ12に設定されている値をカウントする毎に時計情
報としてカウンタ9がカウントアップ若しくはカウント
ダウンされ時計情報を出力するようにする。そして、外
部若しくは内部信号に基づいて、PMC用プロセッサ7
はCNC用プロセッサ3を介してこのレジスタ12に設
定する値を変更する。これにより、カウンタ9から出力
される時計情報の間隔が変更され、この時計情報に基づ
いて駆動される軸の速度は変化することになる。即ち、
時計情報に対してオーバライドをかけることによって、
各軸の動作速度をオーバライドさせることができるもの
となる。
Therefore, in the second embodiment, a signal input from an operation panel (not shown) or the like via the input circuit Di, or an internal signal stored in the ladder program storage memory 6 and executed by the ladder program being executed. The PMC processor 7 outputs the reset signal SR, the hold signal SH and the release signals SRR and SHR described above to the counter 9 by these signals, and resets and holds the counter 9 and outputs them. Try to cancel. Further, a register 12 is provided, and each time the value set in the register 12 is counted, the counter 9 counts up or counts down as clock information and outputs the clock information. Then, based on an external or internal signal, the PMC processor 7
Changes the value set in the register 12 via the CNC processor 3. As a result, the interval of the clock information output from the counter 9 is changed, and the speed of the shaft driven based on this clock information changes. That is,
By overriding the clock information,
The operating speed of each axis can be overridden.

【0031】図3は、この第2の実施形態のマスターユ
ニット100の変形で、カウンタがホールド機能やその
解除機能を備えていないカウンタ14である場合には、
カウンタ14に入力されるクロック1からの信号をゲー
ト15を介して入力するようにして、PMC用プロセッ
サ7からのホールド信号SHによってこのゲートを閉鎖
し、カウンタ14へのクロック信号の入力を停止させ、
カウンタ14にそのときの計数値を保持させ、ホールド
解除信号SHRによりゲート15を開き再びクロック信号
をカウンタ14に入力し、カウントを再開させるように
している。
FIG. 3 is a modification of the master unit 100 of the second embodiment, and in the case where the counter is the counter 14 which does not have a hold function or a release function thereof,
The signal from the clock 1 input to the counter 14 is input via the gate 15, and the gate is closed by the hold signal SH from the PMC processor 7 to stop the input of the clock signal to the counter 14. ,
The counter 14 is made to hold the count value at that time, the gate 15 is opened by the hold release signal SHR, the clock signal is input to the counter 14 again, and the counting is restarted.

【0032】図4は、この第2の実施形態の変形で、上
述したカウンタ9のリセット、ホールド、それらの解
除、及び時計情報のオーバライド等の機能をスレーブユ
ニット200,300,・・からでもできるようにした
ときのマスタユニット100の要部ブロック図である。
スレーブユニット200,300,・・をデイジーチェ
イン方式で接続し、各スレーブユニットから出力される
デジタル信号によるカウンタ9のリセット、ホールド、
それらの解除、時計情報のオーバライド値等の信号をレ
シーバ又は入力回路16で受信し、この受信信号に基づ
いてPMC用プロセッサ7が、リセット信号SR、ホー
ルド信号SH及びこれらの解除信号SRR、SHR、のいず
れかをカウンタ9に、更には時計情報に対するオーバラ
イドのための値をレジスタ12に設定できるようにした
ものである。なお、時計情報を伝達するケーブル50が
双方向であれば、このケーブル50に、上述したリセッ
ト信号SR、ホールド信号SH及びこれらの解除信号S
RR、SHR、オーバライドのための信号を乗せるようにし
てもよい。
FIG. 4 is a modification of the second embodiment, and the functions of resetting, holding, canceling the counter 9 and overriding the clock information can be performed from the slave units 200, 300, ... FIG. 3 is a block diagram of a main part of the master unit 100 when doing so.
The slave units 200, 300, ... Are connected in a daisy chain system, and the counter 9 is reset and held by a digital signal output from each slave unit.
The receiver or the input circuit 16 receives signals such as the cancellation of these signals and the override value of the clock information, and the PMC processor 7 receives the reset signal SR, the hold signal SH, and the cancellation signals SRR and SHR of these signals based on the received signals. Any of the above can be set in the counter 9, and a value for overriding the clock information can be set in the register 12. If the cable 50 for transmitting the clock information is bidirectional, the cable 50 is provided with the reset signal SR, the hold signal SH, and the release signal S thereof.
You may make it carry the signal for RR, SHR, and an override.

【0033】図5は、本発明の第3の実施形態のマスタ
ユニット100を構成するCNC装置の要部ブロック図
である。この第3実施形態によれば、マスタユニット1
00から各スレーブユニット200,300、・・・・への
時計情報の伝送遅れが補正されて、より精度の高い同期
制御が実現される。
FIG. 5 is a block diagram of a main part of a CNC device which constitutes a master unit 100 according to a third embodiment of the present invention. According to this third embodiment, the master unit 1
The transmission delay of the clock information from 00 to each slave unit 200, 300, ... Is corrected, and more accurate synchronization control is realized.

【0034】この図5に示す第3実施形態では、マスタ
ユニット100にパラメータ格納用メモリ17が設けら
れていること、及び各スレーブユニット(図5では、ス
レーブユニット200のみを示している)には、パラメ
ータ格納用メモリ17、カウンタ18が設けられている
ことで、図1に示す第1実施形態の構成と相違する。
In the third embodiment shown in FIG. 5, the master unit 100 is provided with the parameter storing memory 17, and each slave unit (in FIG. 5, only the slave unit 200 is shown). Since the parameter storage memory 17 and the counter 18 are provided, the configuration differs from that of the first embodiment shown in FIG.

【0035】伝送遅れ時間は、マスタユニットのドライ
バ10での遅延時間と、ケーブル50の長さにより決ま
るケーブルでの遅延時間と、スレーブユニットのレシー
バ11の遅延時間との合計である。
The transmission delay time is the sum of the delay time in the driver 10 of the master unit, the delay time in the cable determined by the length of the cable 50, and the delay time in the receiver 11 in the slave unit.

【0036】このうち、ドライバ10による遅延時間
は、各スレーブユニットに共通である。また、レシーバ
11による遅延時間は、機差があるとしてもその差は僅
かである。しかし、ケーブル50の長さは各スレーブユ
ニットによって異なる。したがって、スレーブユニット
毎の伝送遅れは、もっぱらケーブル50の長さによって
決まる。つまり、マスタユニット100に一番長いケー
ブル50で接続されているスレーブユニットに1番大き
い伝送遅れが生じることになる。
Of these, the delay time by the driver 10 is common to each slave unit. Further, the delay time due to the receiver 11 is small even if there is a machine difference. However, the length of the cable 50 differs depending on each slave unit. Therefore, the transmission delay for each slave unit is determined solely by the length of the cable 50. That is, the slave unit connected to the master unit 100 by the longest cable 50 has the largest transmission delay.

【0037】そこで、n台のスレーブユニットが1台の
マスタユニット100に接続されているとして、これら
n台のスレーブユニットに、マスタユニット100まで
の接続ケーブルの長さが最短のものから最長なものまで
順に、第1番から第n番までの番号を与えたとする(第
n番のスレーブユニットが一番長いケーブル50でもっ
てマスタユニット100に接続されている)。
Therefore, assuming that n slave units are connected to one master unit 100, the connection cables from the shortest to the longest master unit 100 are connected to these n slave units. It is assumed that the numbers from 1 to n are given in sequence (the nth slave unit is connected to the master unit 100 by the longest cable 50).

【0038】ここで、第i(1≦i≦n)番目のスレー
ブユニットのケーブル50の長さによる伝送遅れをDi
で表す。また、ドライバ10による遅延時間とレシーバ
11による遅延時間(いずれの遅延時間もスレーブユニ
ット間で差がないと考える)との合計をD0で表す。
Here, the transmission delay due to the length of the cable 50 of the i-th (1.ltoreq.i.ltoreq.n) slave unit is Di.
It is represented by. Further, the total of the delay time by the driver 10 and the delay time by the receiver 11 (it is considered that there is no difference between the slave units in any delay time) is represented by D0.

【0039】すると、マスタユニット100から第i番
目のスレーブユニットに情報が伝達されるときの伝送遅
れは、 D0+Di で表すことができる。伝送遅れは、第n番目(i=n)
のスレーブユニットへの伝送において最大となる。すな
わち、最大伝送遅れは、D0+Dnとなる。そこで、マ
スタユニット100及び第i番目のスレーブユニットの
それぞれのパラメータ格納用メモリ17に、第n番目で
の伝送遅れ(最大伝送遅れ)から自己の第i番目での伝
送遅れを差し引いた値を格納する。すなわち、 D0+Dn−(D0+Di) = Dn−Di を記憶する。もちろん、i=n(最後)のときはゼロと
なり、第n番目のスレーブユニットのパラメータ格納用
メモリ17には「0」が格納される。又、マスタユニッ
ト100のパラメータ格納用メモリ17は、自己の遅れ
がないから(D0+Dn)が格納される。
Then, the transmission delay when the information is transmitted from the master unit 100 to the i-th slave unit can be expressed by D0 + Di. The transmission delay is the nth (i = n)
Is the largest in the transmission to the slave unit. That is, the maximum transmission delay is D0 + Dn. Therefore, the master unit 100 and the i-th slave unit each store a parameter storage memory 17 with a value obtained by subtracting its own i-th transmission delay from the n-th transmission delay (maximum transmission delay). To do. That is, D0 + Dn− (D0 + Di) = Dn−Di is stored. Of course, when i = n (last), it becomes zero, and "0" is stored in the parameter storage memory 17 of the nth slave unit. Further, the parameter storage memory 17 of the master unit 100 stores (D0 + Dn) because there is no delay of its own.

【0040】ここで、マスタユニット100のカウンタ
9から時計情報「t」が出力されたとする。すると、マ
スタユニット100のCNC用プロセッサ3は、この時
計情報「t」にパラメータ格納用メモリ17に補正用パ
ラメータとして格納された(D0+Dn)を差し引いた
t−(D0+Dn)を、自己の時計情報格納メモリ8
に、補正された時計情報として、格納する。
Here, it is assumed that the counter 9 of the master unit 100 outputs the clock information "t". Then, the CNC processor 3 of the master unit 100 stores t- (D0 + Dn), which is obtained by subtracting (D0 + Dn) stored as the correction parameter in the parameter storage memory 17 from this clock information “t”, into its own clock information. Memory 8
The corrected clock information is stored in.

【0041】これは、マスタユニット100のカウンタ
9が時計情報「t」を出力した時点から(D0+Dn)
経過した後に、このマスタユニット100の時計情報は
「t」となることを意味する。
This is (D0 + Dn) from the time when the counter 9 of the master unit 100 outputs the clock information "t".
It means that the clock information of the master unit 100 becomes “t” after the elapse.

【0042】一方、第i番目のスレーブユニットのCN
C用プロセッサ3は、マスタユニットのカウンタ9が出
力した時計情報「t」を伝送遅れ時間(D0+Di)だ
け遅れて読む。そして、この第i番目のスレーブユニッ
トのCNC用プロセッサ3は、読み込んだ時計情報
「t」から、自己のパラメータ格納用メモリ17に記憶
してある(Dn−Di)を差し引いた t−(Dn−Di) を、第i番目のスレーブユニットの時計情報格納メモリ
8に補正された時計情報として格納する。
On the other hand, the CN of the i-th slave unit
The C processor 3 reads the clock information “t” output from the counter 9 of the master unit with a delay of the transmission delay time (D0 + Di). Then, the CNC processor 3 of the i-th slave unit subtracts (Dn-Di) stored in its own parameter storage memory 17 from the read clock information "t", t- (Dn- Di) is stored as the corrected clock information in the clock information storage memory 8 of the i-th slave unit.

【0043】これは、第i番目のスレーブユニットの時
計情報が「t」となるのは、この時計情報格納メモリ8
にt−(Dn−Di)を格納した時点から(Dn−D
i)経過した後である。言い替えれば、第i番目のスレ
ーブユニットの時計情報が「t」となるのは、マスタユ
ニット100のクロック1が時計情報「t」を出力した
時点から (D0+Di)+(Dn−Di)= D0+Dn ・・・・(1) 経過した後であることを意味している。ここで、(D0
+Di)は、前に説明したように、マスタユニット10
0のクロック1が時計情報「t」を出力してから第i番
目のスレーブユニットのCNC用プロセッサ3がそれを
受け取るに要する時間(伝送遅れ時間)である。
This means that the clock information of the i-th slave unit becomes "t" in the clock information storage memory 8
Since t- (Dn-Di) is stored in (Dn-D
i) After the elapse. In other words, the clock information of the i-th slave unit becomes “t” because (D0 + Di) + (Dn−Di) = D0 + Dn from the time when the clock 1 of the master unit 100 outputs the clock information “t”. (1) It means that it is after the elapse. Where (D0
+ Di) is, as described above, the master unit 10
The clock 1 of 0 is the time (transmission delay time) required for the CNC processor 3 of the i-th slave unit to receive the clock information “t” after it is output.

【0044】上記(1)式の右辺はスレーブユニットの
番号iに依存しない。このことは、マスタユニット10
0のクロック1が時計情報「t」を出力した時点から一
定時間(D0+Dn)経過すると、各スレーブユニット
の時計情報格納メモリ8には全て「t」が格納され、時
計情報は全て「t」となることを意味する。
The right side of the above equation (1) does not depend on the slave unit number i. This means that the master unit 10
When a certain time (D0 + Dn) elapses from the time when the clock 1 of 0 outputs the clock information “t”, all “t” are stored in the clock information storage memory 8 of each slave unit and all the clock information is “t”. Means to become.

【0045】さらに、前述したように、マスタユニット
100のクロック1が時計情報「t」を出力した時点か
ら(D0+Dn)経過するとマスタユニットの時計情報
格納メモリ8に「t」が格納される。したがって、マス
タユニット100とすべてのスレーブユニットの時計情
報格納メモリ8には、常に、同一時刻に同一の時計情報
が格納されるようになっている。
Further, as described above, when (D0 + Dn) has elapsed from the time when the clock 1 of the master unit 100 outputs the clock information "t", "t" is stored in the clock information storage memory 8 of the master unit. Therefore, the same clock information is always stored at the same time in the clock information storage memories 8 of the master unit 100 and all slave units.

【0046】以上説明したように、マスタユニット10
0及びすべてのスレーブユニットは、各自の時計情報格
納メモリ8に同一の時計情報を共有しているので、この
時計情報格納メモリ8に記憶された補正済み時計情報に
基づいて、あるスレーブユニットを他のスレーブユニッ
トに対して同期させて起動させるようなプログラムを実
行することができる。
As described above, the master unit 10
0 and all slave units share the same clock information in their own clock information storage memory 8, so that a slave unit can be replaced by another slave unit based on the corrected clock information stored in this clock information storage memory 8. It is possible to execute a program that is started in synchronization with the slave unit of.

【0047】なお、マスタユニット100のパラメータ
格納メモリ17に記憶されるデータD0(ドライバ10
による遅延時間とレシーバ11による遅延時間との合
計)は、CNC装置に使用するドライバ10及びレシー
バ11が決まれば自ずから決まった値となる。また、マ
スタユニット100及び各スレーブユニットのパラメー
タ格納メモリ17に記憶されるケーブル50の長さによ
る伝送遅れDi(Dnを含む)は、ケーブルの単位長さ
あたりの遅延時間(一定値)にケーブル長さをかけるこ
とによって得られる。したがって、システムが決まった
とき、ケーブル50の長さによる伝送遅れDiは、第i
番目のスレーブユニットまでのケーブルの長さをパラメ
ータ格納用メモリ17に図示しない手動入力手段を用い
て入力してやれば足りる。図10はマスタユニット10
0のCNC用プロセッサ3がITP周期毎実行する、時
計情報補正処理のフローチャートである。
The data D0 (driver 10) stored in the parameter storage memory 17 of the master unit 100 is used.
The sum of the delay time due to (1) and the delay time due to the receiver 11) becomes a value that is naturally determined if the driver 10 and the receiver 11 used for the CNC device are determined. Further, the transmission delay Di (including Dn) due to the length of the cable 50 stored in the parameter storage memory 17 of the master unit 100 and each slave unit is the cable length at a delay time (constant value) per unit length of the cable. Obtained by multiplying. Therefore, when the system is determined, the transmission delay Di due to the length of the cable 50 is i-th.
It suffices to input the length of the cable up to the th slave unit into the parameter storage memory 17 using a manual input means (not shown). FIG. 10 shows the master unit 10
7 is a flowchart of a clock information correction process executed by the 0-numbered CNC processor 3 in each ITP cycle.

【0048】上述したように、カウンタ9から時計情報
tを読み出し、その読み出した時計情報tからパラメー
タ格納用メモリに記憶されている補正データ(D0+D
n)を減算して、その値を補正された時計情報t′(=
t−(D0+Dn))として時計情報格納用メモリ8に
記憶する。図11は、第i番目のスレーブユニットのC
NC用プロセッサ3がITP周期毎実行する、時計情報
補正処理のフローチャートである。
As described above, the clock information t is read from the counter 9, and the correction data (D0 + D) stored in the parameter storage memory is read from the read clock information t.
n) is subtracted, and the clock information t '(=
It is stored in the clock information storage memory 8 as t- (D0 + Dn)). FIG. 11 shows C of the i-th slave unit.
7 is a flowchart of clock information correction processing executed by the NC processor 3 for each ITP cycle.

【0049】上述したように、レシーバ11から時計情
報tを読み出し、その読み出した時計情報tから伝送遅
れの合計値(Dn−Di)を減算して、その値を補正さ
れた時計情報t′(=t−(Dn−Di))として時計
情報格納用メモリ8に記憶する。ただし、前述したよう
に、スレーブユニットのレシーバ11から時計情報tが
読み出されるのは、マスタユニット100のカウンタ9
が時計情報tを生成してから(D0+Di)であること
に留意すべきである。
As described above, the clock information t is read from the receiver 11, the transmission delay total value (Dn-Di) is subtracted from the read clock information t, and the corrected clock information t '( = T- (Dn-Di)) is stored in the clock information storage memory 8. However, as described above, the clock information t is read from the receiver 11 of the slave unit only when the counter 9 of the master unit 100 is read.
It should be noted that is after (D0 + Di) has generated the clock information t.

【0050】上述した時計情報の補正方法は、図5にお
いて、スレーブユニットでは、レシーバ11の出力を直
接CNC用プロセッサ3が読みとる方法による補正方法
であった。この方法以外にこの実施形態では次のような
補正方法も採用可能としている。
In the slave unit shown in FIG. 5, the above-mentioned correction method of the clock information is a correction method in which the output of the receiver 11 is directly read by the CNC processor 3. In addition to this method, the following correction method can be adopted in this embodiment.

【0051】この補正方法は、各スレーブユニットが持
つ固有の時計(クロック)への合わせ込みの方法であ
る。マスタユニット100が持っているクロック1と各
スレーブユニットが持っているクロック1は物理的に異
なる。通常CNC装置は動作の基本単位時間としてのI
TP周期を持ち、このITP周期単位で動作を実行す
る。各ユニットのクロックが異なる故に、このITP周
期の始まる時間が各ユニットで異なる。又、ITP周期
の幅は、ごく僅かであるが各ユニットで同じとならな
い。クロック自体に誤差があるからである。たとえ、全
ユニットのクロックのスタート時刻を合わせることがで
きたとしても、長い時間経過するとこの僅かの幅の誤差
が集積して、時刻にずれが生じてしまう。このずれが、
複数のユニットで完全な同期を取るための最大の障害と
なる。
This correction method is a method of adjusting to a unique clock (clock) of each slave unit. The clock 1 held by the master unit 100 and the clock 1 held by each slave unit are physically different. Normally, a CNC device has I as a basic unit time of operation.
It has a TP cycle, and the operation is executed in units of this ITP cycle. Since the clock of each unit is different, the start time of this ITP cycle is different for each unit. Also, the width of the ITP cycle is very small but not the same in each unit. This is because there is an error in the clock itself. Even if the start times of the clocks of all the units can be adjusted, the error of this slight width is accumulated after a long time, and the time is deviated. This gap is
It is the biggest obstacle for perfect synchronization among multiple units.

【0052】そこで、マスタユニット100から全スレ
ーブユニットで共用する時計情報をごく短い一定間隔で
各スレーブユニットに出力する。この実施形態ではこの
一定間隔をITP周期としている。時計情報があるスレ
ーブユニットに到着したとき、そのスレーブユニットの
ITP(マスタユニットのITP周期とは異なる)中の
どこで到達したかを判別することによって、スレーブユ
ニットにおけるITP周期の開始時の時計情報の値を求
めることができる。そのために、この実施形態では、図
5に示すようにスレーブユニットにカウンタ18を設
け、このカウンタ18は、ITP生成手段から出力され
るITP信号によってリセットされ、クロック1のクロ
ック信号をカウントアップし、レシーバ11に時計情報
を受信するとこのカウントアップを停止し、ITP周期
中のどの位置で時計情報を受信したかを判別し、スレー
ブユニットとマスタユニットの時計情報の誤差を求め
る。
Therefore, the clock information shared by all slave units is output from the master unit 100 to each slave unit at very short constant intervals. In this embodiment, this fixed interval is the ITP cycle. When the clock information arrives at a certain slave unit, by determining where it arrives in the slave unit's ITP (different from the master unit's ITP cycle), the clock information at the start of the ITP cycle in the slave unit The value can be calculated. Therefore, in this embodiment, a counter 18 is provided in the slave unit as shown in FIG. 5, and the counter 18 is reset by the ITP signal output from the ITP generating means and counts up the clock signal of the clock 1. When the receiver 11 receives the clock information, the counting is stopped, the position in the ITP cycle where the clock information is received is determined, and the error between the clock information of the slave unit and the master unit is obtained.

【0053】例えば、ITP周期幅の100倍速いクロ
ックで時計情報の到達監視を行えば、ITP周期を10
0分割した中のいくつ目で時計情報が到達したかが分か
る。この量子化誤差分同期はずれるが、時計情報の到着
監視用クロックの速度を上げる(分解能をあげる)こと
で、同期の精度を上げることができる。
For example, if arrival of clock information is monitored with a clock that is 100 times faster than the ITP cycle width, the ITP cycle will be 10
You can see at which of the 0 divisions the clock information arrived. Although synchronization is lost due to this quantization error, the accuracy of synchronization can be improved by increasing the speed of the clock for arrival monitoring of clock information (increasing the resolution).

【0054】図13は、マスタユニット100のITP
周期毎にクロック信号を100ずつカウントアップして
いく時計情報の例を示している。マスタユニット100
からは、ITP周期T1、T2、T3、・・・毎に「1
00」、「200」、「300」・・・の時計情報tが
出力される。スレーブユニットでは、自己のITP信号
によってリセットされクロック信号をカウントアップす
るカウンタ18が設けられており、レシーバ11で時計
情報を受信するとこのカウンタ18のカウントは停止さ
れる。又、スレーブユニットのCNC用プロセッサ3
は、ITP周期毎にカウンタ18の値を読み取り、この
読みとった値、ITP周期、ドライバ、レシーバの遅延
時間、ケーブルによる伝送遅れによって受信した時計情
報tを補正して時計情報格納用メモリ8に格納する。図
13の例で、時計情報t=100をITP周期T11とT
12の間でカウンタ18の値が例えば「40」(ITPの
40/100)のとき受信したとする。又、マスタユニ
ット100のドライバ10の遅延時間、スレーブユニッ
トのレシーバの遅延時間の合計D0 とケーブル50の伝
送遅れDiの合計が例えば、「5」であったとする。そ
うすると、スレーブユニットが時計情報t=100を受
け取ったときにはマスタユニットのカウンタ9のカウン
ト値は「105」である。又、スレーブユニットでは、
カウンタ18のカウント値が「40」のときに時計情報
を受信したものであるから、ITP周期がクロック「1
00」の間隔であるので、時計情報tを受信し「60」
のクロックをカウントしたとき次のITP信号T12が発
生するはずである。よって、ITP信号T12では、10
0+5+60=165の補正された時計情報を時計情報
格納用メモリ8に格納する。
FIG. 13 shows the ITP of the master unit 100.
An example of clock information in which the clock signal is incremented by 100 in each cycle is shown. Master unit 100
From the ITP cycle T1, T2, T3, ...
Clock information t of "00", "200", "300" ... Is output. The slave unit is provided with a counter 18 that is reset by its own ITP signal and counts up the clock signal. When the receiver 11 receives the clock information, the counting of the counter 18 is stopped. Also, the CNC processor 3 of the slave unit
Reads the value of the counter 18 at each ITP cycle, corrects the read value, the ITP cycle, the delay time of the driver and the receiver, the clock information t received by the transmission delay due to the cable, and stores it in the clock information storage memory 8. To do. In the example of FIG. 13, the clock information t = 100 is set to the ITP cycle T11 and T
It is assumed that the signal is received when the value of the counter 18 is between 12 and 12 (for example, 40) (40/100 of ITP). It is also assumed that the total of the delay time of the driver 10 of the master unit 100 and the delay time of the receiver of the slave unit D0 and the transmission delay Di of the cable 50 is "5", for example. Then, when the slave unit receives the clock information t = 100, the count value of the counter 9 of the master unit is "105". In the slave unit,
Since the clock information is received when the count value of the counter 18 is "40", the ITP cycle is "1".
Since the interval is "00", the clock information t is received and "60" is received.
The next ITP signal T12 should be generated when the clocks of the above are counted. Therefore, the ITP signal T12 is 10
The corrected clock information of 0 + 5 + 60 = 165 is stored in the clock information storage memory 8.

【0055】即ち、スレーブユニットのレシーバの遅延
時間の合計を「D0」、マスタから当該スレーブまでの
ケーブルによる伝送遅れを「Di」、ITP周期幅間の
クロック数を「Q」 時計情報を「t」、スレーブユニットが時計情報を受信
したときのカウンタ18の値を「P」、とすると、スレ
ーブユニットのCNC用プロセッサ3は、次の2式の演
算を行って、補正された時計情報t’を求め、時計情報
格納用メモリ8に格納する。 この補正方法を実行する際にも、先の方法と同様に、予
めマスタユニットのドライバの遅延時間、レシーバ遅延
時間、ケーブルの単位長当たりの遅延時間をパラメータ
格納用メモリ17に格納しておき、システムが決まった
とき、各スレーブユニットには自己のケーブル長をパラ
メータとして設定するようにする。これにより、各スレ
ーブユニットは、設定された自己のケーブル長に単位長
当たりの遅延時間を乗じて自己のケーブルによる伝送遅
れ「Di」を求め、ITP周期間のクロック数Qにこの
遅れ「Di」及びドライバ、レシーバの遅延時間の合計
値「Di」を加算した値「Q+D0+Di」を時計時間
の補正データとして記憶する。
That is, the total delay time of the receiver of the slave unit is "D0", the transmission delay by the cable from the master to the slave is "Di", the number of clocks between ITP cycle widths is "Q", and the clock information is "t". If the value of the counter 18 when the slave unit receives the clock information is “P”, the CNC processor 3 of the slave unit performs the following two equations to obtain the corrected clock information t ′. Is stored in the memory 8 for storing clock information. Also when executing this correction method, similarly to the previous method, the driver delay time of the master unit, the receiver delay time, the delay time per unit length of the cable is stored in the parameter storage memory 17, When the system is decided, each slave unit should set its own cable length as a parameter. As a result, each slave unit multiplies its own cable length by the delay time per unit length to obtain a transmission delay "Di" by its own cable, and this delay "Di" is added to the number of clocks Q between ITP cycles. Also, the value "Q + D0 + Di" obtained by adding the total value "Di" of the delay times of the driver and the receiver is stored as the correction data of the clock time.

【0056】そして、動作実行時には、各スレーブユニ
ットのCNC用プロセッサは、ITP周期毎、図12に
フローチャートで示す処理を実行し、補正された時計情
報t’を時計情報格納用メモリ8に格納する。
When the operation is executed, the CNC processor of each slave unit executes the processing shown in the flowchart of FIG. 12 for each ITP cycle, and stores the corrected clock information t'in the clock information storage memory 8. .

【0057】まず、マスタユニットから送られて来た時
計情報tを読み取ると共に、カウンタ18のカウント値
Pを読みとる。次に上記1式の演算を行って補正された
時計情報t’を求め、この補正時計情報を時計情報格納
用メモリ8に格納しこの処理を終了する。
First, the clock information t sent from the master unit is read, and the count value P of the counter 18 is read. Next, the corrected clock information t'is obtained by performing the calculation of the above formula 1, the corrected clock information is stored in the clock information storage memory 8, and this processing is ended.

【0058】なお、マスタユニット100側では、カウ
ンタ9から出力される時計情報tをそのまま時計情報格
納用メモリ8に格納するものであるから、マスタユニッ
トでの処理は省略する。
On the master unit 100 side, the clock information t output from the counter 9 is stored in the clock information storage memory 8 as it is, and therefore the processing in the master unit is omitted.

【0059】マスタユニット100及びスレーブユニッ
ト200,300,・・・のPMC用プロセッサ7はこ
うして時計情報格納用メモリ8に格納された時計情報と
ラダープログラム格納用メモリ6に格納されたラダープ
ログラムから、プログラム格納用メモリ4に格納された
パートプログラム、又はラダープログラム格納用メモリ
6に格納されたプログラマブルコントローラ用の軸制御
プログラムを起動させることによって、各軸を同期させ
て駆動制御する。
The PMC processor 7 of each of the master unit 100 and the slave units 200, 300, ... From the clock information stored in the clock information storage memory 8 and the ladder program stored in the ladder program storage memory 6 in this way, By activating the part program stored in the program storage memory 4 or the axis control program for the programmable controller stored in the ladder program storage memory 6, each axis is synchronously controlled.

【0060】図6は、本発明の第4の実施形態の要部ブ
ロック図である。この第4の実施形態と図1に示す実施
形態との相違点は、マスタユニットを2台100,10
0’設け、2種類の時計情報t1,t2を発生させるよ
うにしたこと、各スレーブユニット(若しくは選択され
たスレーブユニット)に2つのレシーバ11、11’を
設け、時計情報t1,t2をそれぞれ受信できるように
したことである。
FIG. 6 is a block diagram of the essential parts of the fourth embodiment of the present invention. The difference between the fourth embodiment and the embodiment shown in FIG. 1 is that two master units 100 and 10 are used.
0'is provided so that two types of clock information t1 and t2 are generated, and two receivers 11 and 11 'are provided in each slave unit (or selected slave unit) to receive clock information t1 and t2, respectively. That's what I was able to do.

【0061】スレーブユニットでは、これら時計情報t
1,時計情報t2を受信して、ある軸は、時計情報t1
に基づいて動作を制御し、他のある軸は時計情報t2に
基づいて動作を制御する。更には、他のある軸はこれら
時計情報に基づかずに、他の軸の位置等の他の条件で駆
動する等の制御を行う。このように、時計情報を出力す
るマスタユニットを複数設けて時計情報を2以上の複数
種とし、かつスレーブユニットには、当該スレーブユニ
ットが必要とする時計情報の種類の数のレシーバを設け
れば、時計情報の種類毎に各軸を同期制御することがで
きる。即ち、ある複数の軸グループは時計情報t1に基
づいて同期運転し、他の複数の軸グループは時計情報t
2に基づいて同期運転を行い、他の複数の軸グループは
時計情報t3に基づいて同期運転を行う等、時計情報の
種類毎に同期する軸を選択して同期運転を行うことがで
きる。又、他の複数の軸は、時計情報によらず、他の条
件によって駆動する等の動作制御をも行う。
In the slave unit, these clock information t
1, the clock information t2 is received, and the certain axis shows the clock information t1.
Based on the clock information t2, the other axis controls the operation based on the clock information t2. Further, other axes are controlled based on other conditions such as the positions of the other axes without being based on the clock information. As described above, if a plurality of master units that output clock information are provided to provide two or more types of clock information, and slave units are provided with as many receivers as the types of clock information required by the slave units. , Each axis can be synchronously controlled for each type of clock information. That is, a certain plurality of axis groups operate synchronously based on the clock information t1, and another plurality of axis groups operate on the clock information t.
It is possible to perform synchronous operation by selecting the axis to be synchronized for each type of clock information, such as performing synchronous operation based on 2 and performing synchronous operation on the basis of the clock information t3 for other plural axis groups. Further, other plural axes also perform operation control such as driving under other conditions, not depending on the clock information.

【0062】図7は、第5の実施形態のマスタユニット
の要部ブロック図である。このマスタユニットは、2台
のカウンタ9,9’を設け、時計情報を2種類生成する
ようにしたものである。そして、各カウンタ9,9’で
生成する時計情報の間隔は、レジスタ12,12’によ
って設定し、それぞれ異なった時間間隔の時計情報を生
成し出力できるようにしたものである。又、各カウンタ
9,9’は共に、PMC用プロセッサ7から出力される
リセット信号SR1、SR2、ホールド信号SH1、SH2、及
びそれらの解除信号SRR1、SRR2、SHR1、SHR2によっ
て、それぞれリセット、ホールド、及びそれらの解除が
できるものである。更に、各レジスタ12,12’に設
定する値によって時計情報t1,t2の変化間隔を変え
ることによって、それぞれ時計情報t1,t2にオーバ
ライドをかけることができるものである。更にはカウン
タ及びレジスタの組を更に増加させることにより時計情
報の種類を増加させてもよい。
FIG. 7 is a block diagram of the main part of the master unit of the fifth embodiment. This master unit is provided with two counters 9 and 9'to generate two types of clock information. The intervals of the clock information generated by the counters 9 and 9'are set by the registers 12 and 12 'so that the clock information at different time intervals can be generated and output. Further, each of the counters 9 and 9'is reset and held by the reset signals SR1 and SR2 output from the PMC processor 7, the hold signals SH1 and SH2, and their release signals SRR1, SRR2, SHR1 and SHR2, respectively. And, they can be canceled. Further, by changing the change intervals of the clock information t1 and t2 according to the values set in the registers 12 and 12 ', the clock information t1 and t2 can be overridden. Furthermore, the types of clock information may be increased by further increasing the set of counters and registers.

【0063】図14は、時計情報にて全軸を同期運転し
たときの動作状態の一例である。時刻0で1軸と5軸が
同期運転を開始し、時刻2で2軸、3軸及び6軸が同期
運転を開始している。更に、時刻4で1軸と7軸を同期
運転開始させ、時刻6で4軸、6軸、8軸を同期運転を
開始している。
FIG. 14 shows an example of the operation state when all axes are synchronously operated by the clock information. At time 0, the 1st and 5th axes start synchronous operation, and at time 2, the 2nd axis, 3rd axis and 6th axis start synchronous operation. Further, at time 4, the 1-axis and 7-axis are started synchronously, and at time 6, the 4-axis, 6-axis, and 8-axis are synchronously started.

【0064】図15は、図14に示した運転例におい
て、2サイクル目にオーバライドをかけたときの動作状
態を示すもので、時計情報にオーバライドがかけられる
ことにより、全ての軸にオーバライドがかかり、2サイ
クル目のサイクルタイムは1サイクル目のサイクルタイ
ムと異なるものとなっている(図15に示す例では、2
サイクル目のサイクルタイムは長くなっている)。
FIG. 15 shows an operating state when an override is applied in the second cycle in the operation example shown in FIG. 14. When the clock information is overridden, all axes are overridden. The cycle time of the second cycle is different from the cycle time of the first cycle (2 in the example shown in FIG. 15).
The cycle time of the cycle is getting longer).

【0065】図16は、一部同期運転を行い一部は他の
条件で運転したときの例である。時刻0で1軸と5軸を
同期運転開始させ、時刻2で2軸、3軸、6軸の同期運
転を開始させている。しかし、7軸は時計情報によら
ず、6軸が動作終了したことで動作を開始させている。
又、1軸は時刻4でこの時刻情報に基づいて再度動作を
開始させている。8軸は時計情報によらず、7軸の動作
終了したことで動作を開始させている。そして、4軸と
6軸は、再度時刻6から同期運転を開始させている。
FIG. 16 shows an example in which a part of the operation is carried out in the synchronous operation and a part is operated under other conditions. At time 0, 1-axis and 5-axis are started synchronously, and at time 2, 2-axis, 3-axis, and 6-axis synchronous operation is started. However, the 7th axis does not depend on the clock information, and the 6th axis starts its operation when the operation is completed.
In addition, the 1st axis starts the operation again at time 4 based on this time information. The 8th axis starts operation when the 7th axis ends, regardless of the clock information. Then, the 4th axis and the 6th axis start synchronous operation again from time 6.

【0066】図17は、図16に示した動作運転例に対
して、2サイクル目時計情報にオーバライドをかけたと
きの動作運転状態を示す図である。この図17に示され
るように7軸、8軸は、時計情報によらずに起動される
ものであるから、時計情報にオーバライドをかけても、
その影響を受けない。そのため、7軸、8軸以外の軸は
オーバライドによって動作時間に変化を生じているが、
7軸、8軸は動作時間に変化がない。このことから、例
えば、7軸、8軸は機械の周辺部を動作させるもので、
8軸の動作完了からある程度の時間(絶対時間)がたた
ないと次のサイクルが開始できないような場合には、時
計情報にオーバライドをかけて、機械全体にオーバライ
ドをかけても、周辺部の7軸、8軸にはオーバライドが
かからず、その動作を速く終了させることができる。こ
れによって、サイクルタイムの短縮がはかれる。前述し
た7軸、8軸に対しても図15に示すように、オーバラ
イドがかかると、8軸の動作完了が遅れ、それから所定
時間経過するまで次のサイクルに進めない場合には、こ
の8軸の動作完了の遅れ分だけ、次のサイクルの開始時
間が遅れ、全体的な作動時間は長くなるものである。
FIG. 17 is a diagram showing a state of operation operation when the second cycle clock information is overridden with respect to the operation operation example shown in FIG. As shown in FIG. 17, since the 7th axis and the 8th axis are activated independently of the clock information, even if the clock information is overridden,
Not affected by that. Therefore, the axes other than the 7th and 8th axes change their operating time due to the override.
There is no change in the operating time for axes 7 and 8. From this, for example, 7-axis and 8-axis are for operating the peripheral part of the machine,
If the next cycle cannot be started until a certain time (absolute time) has elapsed after the completion of the operation of the 8th axis, the clock information is overridden, and even if the entire machine is overridden, the peripheral part No override is applied to the 7th and 8th axes, and the operation can be completed quickly. As a result, the cycle time can be shortened. As shown in FIG. 15 for the 7th axis and the 8th axis, the completion of the operation of the 8th axis is delayed when the operation is overridden and the next cycle cannot be advanced until a predetermined time elapses. The start time of the next cycle is delayed by the delay of the completion of the operation of, and the overall operation time is lengthened.

【0067】[0067]

【発明の効果】本発明においては、マスタユニットとし
てのCNC装置の制御軸数を減らさなくてすむものであ
る。又、同期する軸の組み合わせを変えることも、同期
する区間と同期しない区間を設けることも、容易であ
る。更に、時計情報にオーバライドをかけることによっ
て、同期する軸は全てオーバライドをかけることができ
る一方、同期させない軸は、オーバライドがかからず、
これにより、サイクルタイムを増大させずにすむことが
できるという利点を有する。
According to the present invention, it is not necessary to reduce the number of control axes of the CNC device as the master unit. Further, it is easy to change the combination of axes to be synchronized, and to provide a section that is synchronized and a section that is not synchronized. Furthermore, by overriding the clock information, all synchronized axes can be overridden, while unsynchronized axes are not overridden.
This has the advantage that the cycle time can be saved without increasing.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施形態の要部ブロック図であ
る。
FIG. 1 is a block diagram of an essential part of a first embodiment of the present invention.

【図2】本発明の第2の実施形態のマスタユニットの要
部ブロック図である。
FIG. 2 is a block diagram of a main part of a master unit according to a second embodiment of the present invention.

【図3】同第2の実施形態の変形を示すマスタユニット
の要部ブロック図である。
FIG. 3 is a principal block diagram of a master unit showing a modification of the second embodiment.

【図4】同第2の実施形態の別の変形を示すマスタユニ
ットの要部ブロック図である。
FIG. 4 is a principal block diagram of a master unit showing another modification of the second embodiment.

【図5】本発明の第3の実施形態の要部ブロック図であ
る。
FIG. 5 is a block diagram of essential parts of a third embodiment of the present invention.

【図6】本発明の第4の実施形態の要部ブロック図であ
る。
FIG. 6 is a block diagram of essential parts of a fourth embodiment of the present invention.

【図7】本発明の第5の実施形態の要部ブロック図であ
る。
FIG. 7 is a block diagram of main parts of a fifth embodiment of the present invention.

【図8】時計情報によらず他の起動条件で動作開始させ
るときのラダープログラムの例である。
FIG. 8 is an example of a ladder program when the operation is started under another start condition regardless of the clock information.

【図9】時計情報により動作開始させるときのラダープ
ログラムの例である。
FIG. 9 is an example of a ladder program when starting operation based on clock information.

【図10】伝送遅れを補正するときのマスタユニットの
処理フローチャートである。
FIG. 10 is a processing flowchart of a master unit when correcting a transmission delay.

【図11】伝送遅れを補正するときのスレーブユニット
の処理フローチャートである。
FIG. 11 is a processing flowchart of a slave unit when correcting a transmission delay.

【図12】別の伝送遅れを補正方法によるスレーブユニ
ットの処理フローチャートである。
FIG. 12 is a processing flowchart of a slave unit according to another transmission delay correction method.

【図13】図12に示した別の伝送遅れ方法の原理説明
図である。
13 is an explanatory diagram of the principle of another transmission delay method shown in FIG.

【図14】本発明の実施形態による同期運転例のタイミ
ングチャートである。
FIG. 14 is a timing chart of an example of synchronous operation according to the embodiment of the present invention.

【図15】図14の運転例において2サイクル目にオー
バライドをかけたときのタイミングチャートである。
15 is a timing chart when an override is applied in the second cycle in the operation example of FIG.

【図16】本発明の実施形態による他の運転例のタイミ
ングチャートである。
FIG. 16 is a timing chart of another operation example according to the embodiment of the present invention.

【図17】図16の運転例において2サイクル目にオー
バライドをかけたときのタイミングチャートである。
17 is a timing chart when an override is applied in the second cycle in the operation example of FIG.

【図18】マスタ軸を外部に設けた外部パルス同期方式
の従来例の要部ブロック図である。
FIG. 18 is a block diagram of a main part of a conventional example of an external pulse synchronization system in which a master axis is provided outside.

【図19】マスタユニット内部に仮想マスタ軸を設けた
内部パルス同期方式の従来例の要部ブロック図である。
FIG. 19 is a block diagram of a main part of a conventional example of an internal pulse synchronization system in which a virtual master axis is provided inside a master unit.

【図20】従来採用されているマスタ軸の位置にスレー
ブ軸の位置を同期させるためのデータテーブルの例であ
る。
FIG. 20 is an example of a data table for synchronizing the position of a slave axis with the position of a slave axis that has been conventionally adopted.

【符号の説明】[Explanation of symbols]

100 マスタユニット 200,300 スレーブユニット 1 クロック 2 ITP生成手段 3 CNC用プロセッサ 4 プログラム格納用メモリ 5 軸制御用プロセッサ 6 ラダープログラム格納用メモリ 7 PMC用プロセッサ 8 時計情報格納用メモリ 9 カウンタ 10 ドライバ 11 レシーバ 50 ケーブル 100 master unit 200,300 slave units 1 clock 2 ITP generation means 3 CNC processor 4 Program storage memory 5-axis control processor 6 Ladder program storage memory 7 PMC processor 8 Clock information storage memory 9 counter 10 drivers 11 receiver 50 cables

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平8−123520(JP,A) 特開 平3−273303(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/18 - 19/46 ─────────────────────────────────────────────────── ─── Continuation of front page (56) Reference JP-A-8-123520 (JP, A) JP-A-3-273303 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G05B 19/18-19/46

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マスタユニットとなる1台の数値制御装
置と、スレーブユニットとなる1台以上の数値制御装置
を備え、これら異なる数値制御装置により制御される軸
同士の同期制御を行う数値制御システムにおいて、 前記マスタユニットとなる数値制御装置は、 該マスタユニットで制御される軸の移動指令を含むプロ
グラムを記憶する記憶手段と、所定時間間隔でカウントアップまたはカウントダウンし
て時計情報を生成する時計情報生成手段と、 前記時計情報の伝送に伴う遅れに対する時計情報の調整
を行う手段と、 調整された時計情報に基づいて前記プログラムを起動さ
せる手段と、 さらに、 前記時計情報生成手段により生成された時計情報を前記
マスタユニットから前記スレーブユニットに伝送する伝
送手段とを備え、また、 前記スレーブユニットとなる数値制御装置は、それぞ
れ、 各スレーブユニットで制御される軸の移動指令を含むプ
ログラムを記憶する記憶手段と、前記マスタユニットからの前記時計情報の伝送に伴う遅
れに対する時計情報の調整を行う手段と調整された 時計情報に基づいて前記プログラムを起動さ
せる手段とを備えた、数値制御システム。
1. A numerical control system comprising one numerical control device serving as a master unit and one or more numerical control devices serving as slave units, and performing synchronous control of axes controlled by these different numerical control devices. In the numerical control device serving as the master unit, the numerical control device counts up or down at a predetermined time interval with a storage unit that stores a program including a movement command of an axis controlled by the master unit.
Information generating means for generating clock information by means of a clock, and adjustment of the clock information with respect to a delay accompanying the transmission of the clock information
And the program is started based on the adjusted clock information.
Means for transmitting the clock information generated by the clock information generating means from the master unit to the slave unit, and the numerical control device serving as the slave unit includes each slave. Storage means for storing a program including a movement command of an axis controlled by the unit, and a delay associated with transmission of the clock information from the master unit.
A numerical control system comprising: means for adjusting clock information for this; and means for activating the program based on the adjusted clock information.
【請求項2】 前記マスタユニット及び前記スレーブユ
ニットは、さらに、前記プログラムを起動させる起動時
刻情報を記憶する起動時刻記憶手段と、前記プログラム
を該起動時刻記憶手段に記憶された起動時刻に起動させ
る起動手段とを備える、請求項1記載の数値制御システ
ム。
2. The master unit and the slave unit, further, start time storage means for storing start time information for starting the program, and start the program at the start time stored in the start time storage means. The numerical control system according to claim 1, further comprising a starting unit.
【請求項3】 外部又は内部からの信号で前記時計情報
生成手段のカウント動作を制御する手段を備える請求項
1又は請求項2記載の数値制御システム。
3. The numerical control system according to claim 1, further comprising means for controlling the counting operation of the clock information generating means by a signal from the outside or the inside.
【請求項4】 前記カウント動作を制御する手段は、カ
ウントのリセットとカウント開始、カウントの一時停止
と再開、カウントにオーバライドをかける機能の少なく
とも1つ以上の機能を備える請求項3記載の数値制御シ
ステム。
4. The numerical control according to claim 3, wherein the means for controlling the count operation has at least one of a function of resetting and starting the count, a pause and restart of the count, and a function of overriding the count. system.
【請求項5】 外部又は内部からの信号は、マスタユニ
ットから又は/及びスレーブユニットから発生するもの
である請求項3又は請求項4記載の数値制御システム。
5. The numerical control system according to claim 3, wherein the external or internal signal is generated from the master unit and / or the slave unit.
【請求項6】 前記スレーブユニットは、時計情報の伝
送に伴う動作の基準単位時間のずれに対する時計情報の
調整を行う手段を備える請求項1乃至5の内1項記載の
数値制御システム。
Wherein said slave unit, numerical control system of one of claims 1 to 5 comprising means for adjusting the clock data for shift in the reference unit time accompanied Udo operation for the transmission of clock information.
【請求項7】 マスタユニット及びスレーブユニット
は、前記時計情報によらずに各軸の移動指令を含むプロ
グラムを起動させる手段を有し、ある区間では、異なる
数値制御装置での軸の動作を同期させ、別の区間では、
同期させずに動作させる請求項1乃至の内1項記載の
数値制御システム。
7. A master unit and a slave unit
Includes means for activating the program including motion commands of each axis without relying on said clock data, in a certain section, it synchronizes operation of axes in different numerical controller, in a different section,
Numerical control system of one of claims 1 to 6 to operate without synchronization.
【請求項8】 前記マスタユニットは、時計情報を生成
する手段を複数設け、前記複数の時計情報を伝送し、前
記スレーブユニットは、前記時計情報を複数受信するこ
とができ、前記複数の時計情報のどちらかに基づき前記
プログラムを起動するかを前記スレーブユニットの軸単
位で選択できることで、複数の系統で各軸動作を同期さ
せて制御できる請求項1乃至の内1項記載の数値制御
システム。
8. The master unit is provided with a plurality of means for generating clock information, transmits the plurality of clock information, and the slave unit is capable of receiving a plurality of the clock information, and the plurality of clock information. either whether to start the program on the basis of the ability to select each axis of the slave unit, the numerical control system of one of claims 1 to 7 can be controlled by synchronizing the respective axes operate in a plurality of systems of .
【請求項9】 1台のマスタユニットの代わりに複数の
マスタユニットを備え、各マスタユニットにより前記時
計情報を個別に生成し、前記複数の時計情報を伝送し、
前記スレーブユニットは、前記時計情報を複数受信する
ことができ、前記複数の時計情報のどちらかに基づき前
記プログラムを起動するかを前記スレーブユニットの軸
単位で選択できることで、複数の系統で各軸動作を同期
させて制御できる請求項1乃至の内1項記載の数値制
御システム。
9. A plurality of master units are provided instead of one master unit, each master unit individually generates the clock information, and transmits the plurality of clock information.
The slave unit can receive a plurality of pieces of the clock information, and can select which of the plurality of pieces of clock information to start the program for each axis of the slave unit. numerical control system of one of claims 1 to 7 can be controlled to synchronize the operation.
JP2000125722A 1999-05-11 2000-04-26 Numerical control system Expired - Fee Related JP3386777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000125722A JP3386777B2 (en) 1999-05-11 2000-04-26 Numerical control system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP11-129923 1999-05-11
JP12992399 1999-05-11
JP2000125722A JP3386777B2 (en) 1999-05-11 2000-04-26 Numerical control system

Publications (2)

Publication Number Publication Date
JP2001027904A JP2001027904A (en) 2001-01-30
JP3386777B2 true JP3386777B2 (en) 2003-03-17

Family

ID=26465181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000125722A Expired - Fee Related JP3386777B2 (en) 1999-05-11 2000-04-26 Numerical control system

Country Status (1)

Country Link
JP (1) JP3386777B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017068353A (en) * 2015-09-28 2017-04-06 ファナック株式会社 Numerical control system having synchronous control function between unit

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3671020B2 (en) 2002-04-09 2005-07-13 ファナック株式会社 Numerical controller
JP3720825B2 (en) * 2003-07-28 2005-11-30 ファナック株式会社 Numerical controller
DE10357824A1 (en) * 2003-12-09 2005-07-14 Kuka Roboter Gmbh Method and device for operating cooperating different devices
WO2007148416A1 (en) * 2006-06-22 2007-12-27 Sanritz Automation Co., Ltd. I/o device, network system with i/o device and communication method in network system with i/o device
JP2009230679A (en) * 2008-03-25 2009-10-08 Fanuc Ltd Numerical control system for controlling machine acquiring time information
JP5136847B2 (en) * 2008-05-12 2013-02-06 株式会社Ihi Servo press equipment and control method
JP4905808B2 (en) * 2008-08-07 2012-03-28 株式会社デンソー Serial communication network system
JP5794449B2 (en) * 2010-03-15 2015-10-14 オムロン株式会社 Programmable controller
JP5616262B2 (en) * 2011-03-16 2014-10-29 オークマ株式会社 Numerically controlled machine tool
JP5897648B2 (en) * 2014-06-17 2016-03-30 ファナック株式会社 Numerical control device having function of switching gain of position control during synchronous control
CN105938324B (en) * 2015-03-04 2019-07-16 欧姆龙株式会社 Control device and synchronisation control means
US10268183B2 (en) 2015-03-04 2019-04-23 Omron Corporation Control device and method of synchronizing control
JP6441257B2 (en) * 2016-04-28 2018-12-19 ファナック株式会社 Numerical control apparatus and synchronous tracking control method
JP7009751B2 (en) * 2017-03-15 2022-01-26 オムロン株式会社 Measurement system, control device, measurement method
JP6410332B1 (en) * 2017-08-09 2018-10-24 オークラ輸送機株式会社 Control device, controller and conveyor
JP2019061467A (en) 2017-09-26 2019-04-18 オムロン株式会社 Support system and support program
JP6806019B2 (en) * 2017-09-26 2020-12-23 オムロン株式会社 Control device
JP6946909B2 (en) 2017-09-29 2021-10-13 オムロン株式会社 Control system and control device
DE112021007250T5 (en) * 2021-05-21 2024-01-04 Fanuc Corporation System and control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017068353A (en) * 2015-09-28 2017-04-06 ファナック株式会社 Numerical control system having synchronous control function between unit
US10222786B2 (en) 2015-09-28 2019-03-05 Fanuc Corporation Numerical control system having synchronous control function between units

Also Published As

Publication number Publication date
JP2001027904A (en) 2001-01-30

Similar Documents

Publication Publication Date Title
JP3386777B2 (en) Numerical control system
EP1052560B1 (en) Numerical control system
EP3691192B1 (en) Control system and control device
EP0846993B1 (en) Synchronizing method for communication
US7525263B2 (en) Control system
JP6465620B2 (en) Control system and control method
US7721030B2 (en) Method and device for connecting sensors or actuators to a bus system
JP2010198600A (en) Industrial controller
WO2019107022A1 (en) Control device and control method
JP2022028059A (en) Control system
JP4078065B2 (en) Apparatus and method for synchronizing processes running in multiple units
JP2010244505A (en) Motion control system
JP3372430B2 (en) Synchronous control device
JP4961589B2 (en) Network system and slave synchronization method
JP3987819B2 (en) Numerical control system
EP3764175B1 (en) Control device and control system
CN113867228B (en) Data real-time synchronization method for CANOPEN master station and CPU
WO2022185589A1 (en) Information processing device, method, and program
JP2007025759A (en) Electric motor driving device, position instruction device and positioning device
CN113765611B (en) Time stamp determination method and related equipment
JP2003202907A (en) Method for synchronizing plc module with option module
JPH0619660B2 (en) Distributed numerical controller
JPH03147110A (en) Synchronizing system for numerical controller
EP3992735B1 (en) Control device
JPH11259105A (en) Externally synchronizable programmable controller device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20021203

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080110

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090110

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100110

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees