JPH01161503A - Device for controlling positioning of machine tool - Google Patents

Device for controlling positioning of machine tool

Info

Publication number
JPH01161503A
JPH01161503A JP31905687A JP31905687A JPH01161503A JP H01161503 A JPH01161503 A JP H01161503A JP 31905687 A JP31905687 A JP 31905687A JP 31905687 A JP31905687 A JP 31905687A JP H01161503 A JPH01161503 A JP H01161503A
Authority
JP
Japan
Prior art keywords
movement
cpu
sub
circuit
completion
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
JP31905687A
Other languages
Japanese (ja)
Inventor
Takahiko Yamashita
孝彦 山下
Akira Busujima
明 毒島
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.)
Via Mechanics Ltd
Original Assignee
Hitachi Seiko Ltd
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 Hitachi Seiko Ltd filed Critical Hitachi Seiko Ltd
Priority to JP31905687A priority Critical patent/JPH01161503A/en
Publication of JPH01161503A publication Critical patent/JPH01161503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

PURPOSE:To synchronously control numerous controlled systems with a simple constitution by additionally providing a sub-CPU, synchronous circuit, and complete information outputting circuit. CONSTITUTION:When a move command is outputted from a main CPU 1 to a master CPU 2a, the master CPU 2a sends start information to the synchronous circuit 7 of each sub-CPU 2a-2c through a bus 6. Upon receiving the command, each synchronous circuit 7 issues a movement starting signal and caused each sub-CPU 2a-2c to start the movement of each controlled system 4 in accordance with the move command from the main CPU 1 in such a way that the start of the movement of each system 4 is synchronized. When each system 4 completes the movement in accordance with the move command of the main CPU 1, a movement complete signal is outputted from each synchronous circuit 7. The movement complete signals is sent to the complete information outputting circuit 8 of the master CPU 2a through the bus 6. The circuit 8 sends completion information to the main CPU 1 so as to synchronize the movement completion of the system 4 when the movement complete signals are received from the synchronous circuits 7.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、メインCPUにより制御される複数のサブC
PUを備え、各サブCPUで各々複数の制御対象を位置
決め一移動する工作機械の位置決め制御装置に関するも
のである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to a plurality of sub-CPUs controlled by a main CPU.
The present invention relates to a positioning control device for a machine tool that includes a PU and uses each sub-CPU to position and move a plurality of control objects.

[従来の技術] CPUを用いて工作機械(穴明機、放電加工機。[Conventional technology] Machine tools (drilling machine, electric discharge machine) using CPU.

マシニングセンタなど)の位置決め制御を行う場合、1
つのCPUで制御できる制御対象の数(軸数)には自ず
と限界がある。
When performing positioning control of a machining center, etc.), 1
There is naturally a limit to the number of control objects (number of axes) that can be controlled by one CPU.

[発明が解決しようとする問題点] このため従来は、制御対象を次々とふやすことは困難で
あり、仮にふやしたとすると、それらの同期制御のため
の構成が著しく複雑になるという問題点があった。
[Problems to be Solved by the Invention] For this reason, conventionally, it has been difficult to increase the number of controlled objects one after another, and if they were to be increased, there was a problem that the configuration for synchronous control of them would become extremely complicated. Ta.

本発明の目的は、極めて簡単な構成で多数の制御対象を
同期制御でき、しかも制御対象の増設も簡単になし得る
工作機械の位置決め制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a positioning control device for a machine tool that can synchronously control a large number of control objects with an extremely simple configuration, and can easily add more control objects.

[問題点を解決するための手段] メインCPUで制御されるもので、各々が複数の制御対
象を位置決め移動する複数のサブCPUのうちの1つの
サブCPUをマスタCPUとし、残余のサブCPUをス
レイブCPUとする。各サブCPUには同期回路を備え
ており、同期回路相互間は同期用バスで接がれている。
[Means for solving the problem] One sub-CPU among a plurality of sub-CPUs that are controlled by the main CPU and each positioning and moving a plurality of controlled objects is designated as a master CPU, and the remaining sub-CPUs are designated as a master CPU. Set as slave CPU. Each sub-CPU is equipped with a synchronization circuit, and the synchronization circuits are connected to each other by a synchronization bus.

マスタCPUは、メインCPUからの移動指令により、
各同期回路を介して各サブCPU (マスタCPU自身
も含む)の動作を開始させ、開始時の同期をとる。
The master CPU receives a movement command from the main CPU.
The operation of each sub-CPU (including the master CPU itself) is started via each synchronization circuit, and synchronization is established at the time of start.

各サブCPUの動作が完了すると、マスタCPUに備え
られた完了情報出力回路に動作完了信号が送られる。動
作完了信号が全てそろうと、完了情報出力回路がメイン
CPUにその旨を知らせ、完了時の同期をとる。
When the operation of each sub CPU is completed, an operation completion signal is sent to a completion information output circuit provided in the master CPU. When all the operation completion signals are received, the completion information output circuit notifies the main CPU of this fact and synchronizes upon completion.

[作用] メインCPUからマスタCPUに移動指令が出されると
、マスタCPUは開始情報を、バスを介して各サブCP
Uの同期回路に送る。これにより、各同期回路は移動開
始信号を発し、メインCPUからの移動指令に応じて各
サブCPUにより各制御対象の移動を開始させるもので
、移動開始の同期がとれる。また、各制御対象が、メイ
ンCPUからの移動指令に応じた移動を完了すると、同
期回路から移動完了信号が出力される。移動完了信号は
、バスを介してマスクCPUの完了情報出力回路に送ら
れる。この完了情報出力回路は、各同期回路からの移動
完了信号が全てそろったところで完了情報をメインCP
Uに送るもので、これにより移動完了の同期がとれる。
[Operation] When a movement command is issued from the main CPU to the master CPU, the master CPU sends start information to each sub CPU via the bus.
Send to U's synchronous circuit. As a result, each synchronization circuit issues a movement start signal, and each sub-CPU starts movement of each controlled object in response to a movement command from the main CPU, so that movement starts can be synchronized. Further, when each controlled object completes movement according to a movement command from the main CPU, a movement completion signal is output from the synchronization circuit. The movement completion signal is sent to the completion information output circuit of the mask CPU via the bus. This completion information output circuit outputs the completion information to the main CP when all the movement completion signals from each synchronous circuit are received.
This is sent to U, and this allows synchronization of movement completion.

[実施例] 以下、図面を参照して本発明の詳細な説明する8第1図
は本発明による工作機械の位置決め制御装置の一実施例
を示すブロック図、第2図は同じく要部を取り出して示
すブロック図で、これらの図において、1はメインCP
Uである。このメインCPUIは、NC指令などの移動
指令を受け。
[Embodiment] Hereinafter, the present invention will be explained in detail with reference to the drawings.8 Fig. 1 is a block diagram showing an embodiment of the positioning control device for a machine tool according to the present invention, and Fig. 2 similarly shows the main parts taken out. In these diagrams, 1 is the main CP.
It is U. This main CPU receives movement commands such as NC commands.

その指令を内容に応じてサブCP U 2a、 2b、
 2cに分配する。ここで、サブCPU2a〜2cは、
そのうちの1つ(ここでは2a)がマスタCPUとされ
、残りの2つ(ここでは2b、 2c)がスレイブCP
Uとされている。また、メインCPUIがらの移動指令
は、ここでは各CPUI、2a〜2cとの間で各々読み
書き自在の共有メモリ3を介して分配される。
The command is sent to the sub CPU 2a, 2b, depending on the content.
Distribute to 2c. Here, the sub CPUs 2a to 2c are
One of them (here 2a) is the master CPU, and the remaining two (here 2b and 2c) are slave CPUs.
It is said to be U. Further, movement commands from the main CPU are distributed among the CPUs 2a to 2c via the shared memory 3, which is readable and writable, respectively.

4は、サブCPU2a〜2cにより位置決め移動される
制御対象(例えばサーボモータで駆動されるテーブル、
ドリルチャックなど)で、ここでは1つのサブCPUに
ついて3つ設けられている。
4 is a control object (for example, a table driven by a servo motor,
drill chuck, etc.), and here three are provided for one sub-CPU.

5はデータバス、6は同期用バスで1位置決め移動開始
同期用バス6a及び位置決め移動完了同期用バス6bか
らなる。
Reference numeral 5 denotes a data bus, and reference numeral 6 denotes a synchronization bus consisting of a positioning movement start synchronization bus 6a and a positioning movement completion synchronization bus 6b.

7は各サブCPU2a、2b、2cに設けられた同期回
路で、ここではRSフリップ・フロップを用いてなり、
各々S入力端子が同期用バス6aに。
7 is a synchronization circuit provided in each sub CPU 2a, 2b, 2c, which uses an RS flip-flop;
Each S input terminal is connected to the synchronization bus 6a.

Q出力端子が同期用バス6bに接続されている。The Q output terminal is connected to the synchronization bus 6b.

8はマスタCPU2aに設けられた完了情報出方回路で
、ここでは3人カアンドゲートを用いてなり、前記同期
回路7からの移動完了信号が同期用バス6bを介して3
つの入力端子に各別に六方されるようになされている。
Reference numeral 8 denotes a completion information output circuit provided in the master CPU 2a, which uses a three-person gate and transfers the movement completion signal from the synchronization circuit 7 to the completion information output circuit 3 through the synchronization bus 6b.
The input terminals are connected to each input terminal in hexagonal directions.

次に、第3図及び第4図を併用して上述本発明装置の動
作について説明する。まず、NGテープ読取装置(図示
せず)などからメインCPUIに移動指令が送られると
、メインCPUIはその指令内容を共有メモリ3に格納
する。これを、マスタCPU2aがデータバス5を介し
て受は取ると。
Next, the operation of the above-mentioned apparatus of the present invention will be explained with reference to FIGS. 3 and 4. First, when a movement command is sent to the main CPUI from an NG tape reader (not shown) or the like, the main CPUI stores the contents of the command in the shared memory 3. This is received by the master CPU 2a via the data bus 5.

マスタC:PU2aは開始情報を発生し、位置決め移動
開始同期用バス6aを介して各サブCP U 2a。
Master C: PU 2a generates start information and sends it to each sub CPU 2a via positioning movement start synchronization bus 6a.

2b、2cの同期回路7(すなわち全同期回路7゜7.
7)に与える。各同期回f17のS人力端子に開始情報
が与えられると、そのQ出力端子がら移動開始信号が出
力され、サブCPU (マスタCPU2a及びスレイブ
CPU2b、2c)は、データバス5を介してメインC
PUIがら(ここでは、直接には共有メモリ3から)送
られてくる移動指令に対する処理を行い、それに応じて
各制御対象4を移動する。
2b, 2c synchronous circuit 7 (that is, all synchronous circuits 7゜7.
7). When start information is given to the S human power terminal of each synchronous cycle f17, a movement start signal is output from its Q output terminal, and the sub CPUs (master CPU 2a and slave CPUs 2b, 2c) are connected to the main CPU via the data bus 5.
It processes a movement command sent from the PUI (in this case, directly from the shared memory 3), and moves each controlled object 4 accordingly.

上記移動指令に対する処理、すなわち位置決め移動が完
了すると、各サブCPU2a、2b、2cは、自身の同
期回路7のR入力端子にその旨の信号を与える。これに
より、各同期回路7のQ出力端子から移動完了信号(こ
こでは、移動開始信号の反転信号)が出力される。各移
動完了信号は、位置決め移動完了同期用バス6bを介し
て、マスタCPU2aに設けられた完了情報出力回路8
に送られる。この出力回路8は、全ての同期回路7゜7
.7からの移動完了信号が入力されると、データバス5
を介してメインCPUIに(ここでは、共有メモリ3を
介してメインCPUIに)完了情報を送り、移動の完了
を報告する。
When the processing for the movement command, that is, the positioning movement is completed, each sub CPU 2a, 2b, 2c gives a signal to that effect to the R input terminal of its own synchronization circuit 7. As a result, a movement completion signal (in this case, an inverted signal of the movement start signal) is output from the Q output terminal of each synchronization circuit 7. Each movement completion signal is sent via a positioning movement completion synchronization bus 6b to a completion information output circuit 8 provided in the master CPU 2a.
sent to. This output circuit 8 is connected to all synchronous circuits 7゜7.
.. When the movement completion signal from 7 is input, data bus 5
The completion information is sent to the main CPUI via the shared memory 3 (in this case, to the main CPUUI via the shared memory 3), and the completion of the movement is reported.

以上のようにして、メインcpmtからの指令でサブC
P U 2 a e 2 b * 2 cが同時に位置
決め制御を開始し、また、全てのサブCPU2a、2b
As described above, the sub-C by the command from the main cpmt
P U 2 a e 2 b * 2 c starts positioning control at the same time, and all sub CPUs 2 a and 2 b
.

2cによる位置決め制御が完了したときに、メインCP
U1がその報告を受けることになり、多数の制御対象4
・・・の同期制御が達成される。
When the positioning control by 2c is completed, the main CP
U1 will receive the report, and a large number of controlled objects 4
. . . synchronous control is achieved.

〔発明の効果] 以上述べたように本発明によれば、サブCPUと、簡単
な回路1例えばRSフリップ・フロップ回路、アンドゲ
ートなどを付加するだけで多数の制御対象を同期制御で
きる。また、制御対象の増設も、スレイブCPUと、上
記簡単な回路を付加して容易に(第4図において、「移
動指令に対する処理」を除くステップは全て同内容であ
るので容易に)、対処できるなどの効果がある。
[Effects of the Invention] As described above, according to the present invention, a large number of control objects can be synchronously controlled by simply adding a sub-CPU and a simple circuit 1 such as an RS flip-flop circuit or an AND gate. Additionally, adding a slave CPU and the above-mentioned simple circuit can easily handle the addition of control targets (in Figure 4, all steps except "processing for movement commands" have the same content). There are effects such as

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

第1図は本発明装置の一実施例を示すブロック図、第2
図は同じく要部を取り出して示すブロック図、第3図は
第2図中のマスタCPUの動作を示すフローチャート、
第4図は同じくスレイブCPUの動作を示すフローチャ
ートである。 1 ・・・メインCPU、2a〜2cmサブCPU (
2a・・’マスタCPU、2b、2cmスレイブCPU
)、4・・・制御対象、5・・・データバス、6用量期
用バス、6a・・・位置決め移動開始同期用バス、6b
・11位置決め移動完了同期用バス、7・・・同期回路
(R871Jツブ・フロップ回路)、8・・・完了情報
出力回路(アンドゲート)。 特許出願人  日立精工株式会社 代理人 弁理士  秋 本 正 実(外1名)第  1
   瞑 6−間期m八゛ス 第 3 図
FIG. 1 is a block diagram showing one embodiment of the device of the present invention, and FIG.
The figure is a block diagram showing the main parts, and FIG. 3 is a flowchart showing the operation of the master CPU in FIG.
FIG. 4 is a flowchart showing the operation of the slave CPU. 1...Main CPU, 2a~2cm sub CPU (
2a...' Master CPU, 2b, 2cm slave CPU
), 4... Controlled object, 5... Data bus, 6th dose period bus, 6a... Positioning movement start synchronization bus, 6b
- 11 Positioning movement completion synchronization bus, 7... Synchronization circuit (R871J block flop circuit), 8... Completion information output circuit (AND gate). Patent applicant Hitachi Seiko Co., Ltd. Agent Patent attorney Masami Akimoto (1 other person) No. 1
Meditation 6-Interperiod m8 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 1、メインCPUにより制御される複数のサブCPUで
複数の制御対象を位置決め移動する工作機械の位置決め
制御装置において、前記サブCPUの各々に設けられ、
各々が、前記メインCPUから前記サブCPU中の1つ
のCPU(以下、マスタCPUという)に移動指令が出
されたときにそのマスタCPUで発する開始情報を受け
て移動開始信号を発し、前記メインCPUからの移動指
令に応じて各サブCPUにより各制御対象の移動を開始
させると共に、各制御対象が前記移動指令に応じた移動
を完了したときに移動完了信号を発する同期回路と、前
記開始情報を前記同期回路の各々に与える位置決め移動
開始同期用バスと、前記移動完了信号を前記マスタCP
Uに送る位置決め移動完了同期用バスと、この位置決め
移動完了同期用バスを介して前記マスタCPUに全ての
同期回路からの移動完了信号が送られたときに前記メイ
ンCPUに移動完了情報を与える完了情報出力回路とを
具備することを特徴とする工作機械の位置決め制御装置
1. In a positioning control device for a machine tool that positions and moves a plurality of control objects using a plurality of sub-CPUs controlled by a main CPU, each of the sub-CPUs is provided with:
Each receives start information issued by the master CPU when a movement command is issued from the main CPU to one CPU (hereinafter referred to as master CPU) among the sub CPUs, and issues a movement start signal, and a synchronization circuit that causes each sub-CPU to start moving each controlled object in response to a movement command from the CPU, and issues a movement completion signal when each controlled object completes movement in accordance with the movement command; A positioning movement start synchronization bus that is provided to each of the synchronization circuits, and a bus that sends the movement completion signal to the master CP.
A positioning movement completion synchronization bus sent to U, and a completion signal that provides movement completion information to the main CPU when movement completion signals from all the synchronization circuits are sent to the master CPU via this positioning movement completion synchronization bus. 1. A positioning control device for a machine tool, comprising: an information output circuit.
JP31905687A 1987-12-18 1987-12-18 Device for controlling positioning of machine tool Pending JPH01161503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31905687A JPH01161503A (en) 1987-12-18 1987-12-18 Device for controlling positioning of machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31905687A JPH01161503A (en) 1987-12-18 1987-12-18 Device for controlling positioning of machine tool

Publications (1)

Publication Number Publication Date
JPH01161503A true JPH01161503A (en) 1989-06-26

Family

ID=18106009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31905687A Pending JPH01161503A (en) 1987-12-18 1987-12-18 Device for controlling positioning of machine tool

Country Status (1)

Country Link
JP (1) JPH01161503A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991018336A1 (en) * 1990-05-23 1991-11-28 Hitachi Seiko, Ltd. Cnc apparatus for controlling a plurality of machines
JP2000047706A (en) * 1998-07-08 2000-02-18 Robert Bosch Gmbh System and method for controlling actuator
JP2006209646A (en) * 2005-01-31 2006-08-10 Toyota Motor Corp Distributed control system
JP2014133235A (en) * 2013-01-08 2014-07-24 Ihi Corp Control device and control method
CN105388850A (en) * 2014-08-29 2016-03-09 发那科株式会社 Numerical controller capable of performing axis control routine of a plurality of axes in distributed manner

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991018336A1 (en) * 1990-05-23 1991-11-28 Hitachi Seiko, Ltd. Cnc apparatus for controlling a plurality of machines
US5266878A (en) * 1990-05-23 1993-11-30 Hitachi Seiko Ltd. CNC apparatus for controlling a plurality of machines
JP2000047706A (en) * 1998-07-08 2000-02-18 Robert Bosch Gmbh System and method for controlling actuator
JP2006209646A (en) * 2005-01-31 2006-08-10 Toyota Motor Corp Distributed control system
JP2014133235A (en) * 2013-01-08 2014-07-24 Ihi Corp Control device and control method
CN105388850A (en) * 2014-08-29 2016-03-09 发那科株式会社 Numerical controller capable of performing axis control routine of a plurality of axes in distributed manner
JP2016051258A (en) * 2014-08-29 2016-04-11 ファナック株式会社 Numerical control device capable of decentralized execution of shaft control processing of multiple shafts
US9904278B2 (en) 2014-08-29 2018-02-27 Fanuc Corporation Numerical controller capable of performing axis control routine of a plurality of axes in distributed manner

Similar Documents

Publication Publication Date Title
JPH01161503A (en) Device for controlling positioning of machine tool
JP2534305B2 (en) Numerical control unit
US4907163A (en) System for controlling an NC machine from a PC type computer
JPS59223807A (en) Coupling system of numerical controller
JP3873685B2 (en) Multi-axis synchronous control device, multi-axis synchronous control method, and multi-axis synchronous control program
JP2840297B2 (en) Axis control method of numerical controller
JPS6054012A (en) Numerical controller
JPH04148303A (en) Synchronization operating system for cnc
JPS60160465A (en) Multiinterrupt device
WO1989005483A1 (en) Cnc control system
JPS603007A (en) Synchronization system of distributed numerical control system
JPH04241602A (en) Synchronous control system for uniaxial cnc
JPH07117938B2 (en) Synchronization method of processing between computers
JPS57196337A (en) Process input and output device
KR200178427Y1 (en) State machine bus controller
JPS6388614A (en) Program data input output system in automatic operation of nc device
JPS63136107A (en) Nc data input control device
KR100395216B1 (en) System synchronizing device of bus system and method thereof
JP2004103026A (en) Synchronous operation control integrated circuit
JPH0457108A (en) Circular arc interpolating system for uniaxial cnc
JPS62206700A (en) Alarm processing system
JPS58169609A (en) Control system of clock synchronization
JPH08272410A (en) Synchronous operation start/stop control system
JPS6352359A (en) High-speed serial communication method
JPS59194212A (en) Numerical controller