JPH0635528A - Cnc axis control distribution system - Google Patents

Cnc axis control distribution system

Info

Publication number
JPH0635528A
JPH0635528A JP4185575A JP18557592A JPH0635528A JP H0635528 A JPH0635528 A JP H0635528A JP 4185575 A JP4185575 A JP 4185575A JP 18557592 A JP18557592 A JP 18557592A JP H0635528 A JPH0635528 A JP H0635528A
Authority
JP
Japan
Prior art keywords
axis
cnc
command
control
virtual
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
JP4185575A
Other languages
Japanese (ja)
Inventor
Toshiaki Otsuki
俊明 大槻
Kunihiko Murakami
邦彦 村上
Keisuke Tsujikawa
敬介 辻川
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 JP4185575A priority Critical patent/JPH0635528A/en
Publication of JPH0635528A publication Critical patent/JPH0635528A/en
Pending 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)

Abstract

PURPOSE:To control the operations of motors, etc., in a CNC axis control distribution system by sorting plural axis control commands defined by a machining program into the commands of a control axis and a virtual axis respectively. CONSTITUTION:An analyzer 10a of a main CNC 10 analyzes the axis control commands of a machining program and sorts these commands into the commands of a control axis and a virtual axis respectively. Based on the command of the control axis, an axis controller 10c controls the operation of a servo motor 17a. Meanwhile a communication means 10b sends the data to another CNC with a command of the virtual axis. Meanwhile a communication means 20b of at least a single follower CNC 20 receives the data from the CNC 10 with a command of the virtual axis. Then an axis controller 20c controls the operation of a servo motor 27a based on a command of the virtual axis received by the means 20b.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は1軸CNC(数値制御装
置)でのCNCの軸制御分配方式に関し、特に複数の1
軸CNCを同期して動作させるためのCNCの軸制御分
配方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CNC axis control distribution system for a single axis CNC (numerical controller), and more particularly to a plurality of axis control distribution systems.
The present invention relates to a CNC axis control distribution system for operating the axis CNC in synchronization.

【0002】[0002]

【従来の技術】トランスファーラインの個々のステーシ
ョンを制御するために、1軸制御用の数値制御装置が広
く使用されつつある。各ステーションには1台の数値制
御装置が設置され、各ステーションの動作を制御してい
る。このような数値制御装置は「1軸CNC」と呼ば
れ、単独でステーションの動作を制御するとともに、1
軸CNC相互間の協調動作により動作制御も行なってい
る。このような1軸CNCの例として本出願人による特
願平1−4150号がある。
2. Description of the Related Art Numerical control devices for one-axis control are being widely used to control individual stations of a transfer line. One numerical control device is installed in each station to control the operation of each station. Such a numerical control device is called a "1-axis CNC", which controls the operation of the station by itself and
The operation control is also performed by cooperative operation between the axis CNCs. An example of such a uniaxial CNC is Japanese Patent Application No. 1-4150 filed by the present applicant.

【0003】ところで、1軸CNC相互間の協調動作に
より動作制御する場合には、1軸CNC内のPMC(プ
ログラマブル・マシン・コントローラ)を使用して、シ
ーケンス・プログラムにより互いの待ち合わせ制御を実
現している。
By the way, in the case of controlling operations by cooperative operation between the 1-axis CNCs, a PMC (programmable machine controller) in the 1-axis CNCs is used to realize mutual waiting control by a sequence program. ing.

【0004】例えば、第1のステーションで穴あけ加工
を行なった後、第2のステーションでタッピング加工を
行う場合がある。この場合は、シーケンス・プログラム
による待ち合わせ制御によって、第1のステーションで
穴あけ加工が終了してワークが第2のステーションへ転
送された後、第2のステーションでタッピング加工を行
う。
For example, there is a case in which after performing drilling at the first station, tapping is performed at the second station. In this case, tapping is performed in the second station after the drilling is completed in the first station and the work is transferred to the second station by the waiting control by the sequence program.

【0005】[0005]

【発明が解決しようとする課題】しかし、シーケンス・
プログラムによる待ち合わせ制御では、相当数のステッ
プのシーケンス・プログラムを作成しなければならず、
しかも複雑なためプログラム作成に多大な時間を要する
という問題点があった。
[Problems to be Solved by the Invention]
In the queuing control by the program, you have to create a sequence program with a considerable number of steps,
Moreover, there is a problem that it takes a lot of time to create a program because it is complicated.

【0006】また、個々の1軸CNCごとにシーケンス
・プログラムを作成する必要があるので、プログラム作
成の労力を要するという問題点があった。本発明はこの
ような点に鑑みてなされたものであり、シーケンス・プ
ログラムを作成することなく、加工プログラムで定義さ
れた2軸以上の軸制御指令を制御軸と仮想軸とに振り分
けて、動作制御を行うCNCの軸制御分配方式を、提供
することを目的とする。
Further, since it is necessary to create a sequence program for each individual one-axis CNC, there is a problem that labor for program creation is required. The present invention has been made in view of such a point, and distributes an axis control command of two or more axes defined in a machining program to a control axis and a virtual axis without creating a sequence program, and operates. It is an object of the present invention to provide a CNC axis control distribution system for controlling.

【0007】[0007]

【課題を解決するための手段】本発明では上記課題を解
決するために、複数の1軸CNC(数値制御装置)を同
期して動作させるためのCNCの軸制御分配方式におい
て、加工プログラムの軸制御指令を解析して制御軸の指
令と仮想軸の指令とに振り分けて指令する解析手段と、
前記制御軸の指令に基づいて第1のモータの動作を制御
する第1の軸制御手段と、他のCNCに前記仮想軸の指
令をデータ伝送する第1の通信手段とを備えた主CNC
と、前記主CNCからデータ伝送された前記仮想軸の指
令を受ける第2の通信手段と、前記第2の通信手段で受
けた前記仮想軸の指令に基づいて第2のモータの動作を
制御する第2の軸制御手段とを備えた少なくとも一つの
従CNCと、を有することを特徴とするCNCの軸制御
分配方式が提供される。
According to the present invention, in order to solve the above-mentioned problems, in a CNC axis control distribution system for operating a plurality of 1-axis CNCs (numerical control devices) in synchronization, the axes of a machining program are An analysis unit that analyzes the control command and distributes the command to the command of the control axis and the command of the virtual axis,
Main CNC comprising first axis control means for controlling the operation of the first motor based on the command of the control axis, and first communication means for transmitting the command of the virtual axis to another CNC.
And second communication means for receiving the virtual axis command transmitted from the main CNC, and controlling the operation of the second motor based on the virtual axis command received by the second communication means. An axis control distribution system for a CNC is provided, comprising: at least one slave CNC having a second axis control means.

【0008】[0008]

【作用】主CNCでは、解析手段が加工プログラムの軸
制御指令を解析して制御軸の指令と仮想軸の指令とに振
り分けて指令する。制御軸の指令に基づいて、第1の軸
制御手段は第1のモータの動作を制御する。また、第1
の通信手段は他のCNCに仮想軸の指令をデータ伝送す
る。
In the main CNC, the analyzing means analyzes the axis control command of the machining program and distributes the command to the command of the control axis and the command of the virtual axis. The first axis control means controls the operation of the first motor based on the control axis command. Also, the first
Communication means transmits the command of the virtual axis to another CNC.

【0009】一方、少なくとも一つの従CNCでは、第
2の通信手段が主CNCからデータ伝送された仮想軸の
指令を受ける。この第2の通信手段で受けた仮想軸の指
令に基づいて、第2の軸制御手段は第2のモータの動作
を制御する。
On the other hand, in at least one slave CNC, the second communication means receives a virtual axis command transmitted by data from the master CNC. The second axis control means controls the operation of the second motor based on the virtual axis command received by the second communication means.

【0010】[0010]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は、本発明の原理説明図である。本発明の
CNCの軸制御分配方式は、主CNC10及び少なくと
も一つの従CNC20等の1軸CNCから構成される。
また、主CNC10は、解析手段10a、通信手段10
b及び軸制御手段10cから構成される。さらに、少な
くとも一つの従CNC20等は、通信手段20b等及び
軸制御手段20c等から構成される。なお、主CNC1
0及び少なくとも一つの従CNC20等は、通信回線1
00によって互いに結合されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating the principle of the present invention. The axis control distribution system of the CNC of the present invention comprises a uniaxial CNC such as a master CNC 10 and at least one slave CNC 20.
Further, the main CNC 10 includes an analysis unit 10a and a communication unit 10
b and axis control means 10c. Further, at least one slave CNC 20 or the like includes a communication unit 20b or the like and an axis control unit 20c or the like. The main CNC1
0 and at least one slave CNC 20 are communication lines 1
Are bound together by 00.

【0011】解析手段10aは、加工プログラムの軸制
御指令を解析して制御軸の指令と仮想軸の指令とに振り
分けて指令する。通信手段10b,20b等は、他のC
NCと相互に通信するためのデータ伝送制御を行う。軸
制御手段10c,20c等は、軸制御指令に基づいてサ
ーボモータ17a,27aの動作を制御する。
The analysis means 10a analyzes the axis control command of the machining program and distributes the command to the command of the control axis and the command of the virtual axis. The communication means 10b, 20b, etc. are other C
Performs data transmission control for mutual communication with the NC. The axis control means 10c, 20c and the like control the operation of the servomotors 17a, 27a based on the axis control command.

【0012】次に、本発明のCNCの軸制御分配方式の
動作について説明する。以下、説明を簡単にするため
に、主CNC10が制御軸(以下、「X軸」と呼ぶ。)
のサーボモータ17aを制御し、従CNC20が仮想軸
(以下、「Y軸」と呼ぶ。)のサーボモータ27aを制
御するものとする。
Next, the operation of the CNC axis control distribution system of the present invention will be described. Hereinafter, in order to simplify the explanation, the main CNC 10 controls the control axis (hereinafter, referred to as “X axis”).
And the slave CNC 20 controls the servo motor 27a of the virtual axis (hereinafter referred to as "Y-axis").

【0013】まず、主CNC10では、解析手段10a
が加工プログラムの各ブロックごとに、G機能コード等
の軸制御指令を解析する。この解析によって、加工プロ
グラムはX軸の指令とY軸の指令とに振り分けられる。
こうして振り分けられたX軸の指令は軸制御手段10c
に指令され、Y軸の指令は通信手段10bに指令され
る。
First, in the main CNC 10, the analyzing means 10a
Analyzes the axis control command such as the G function code for each block of the machining program. By this analysis, the machining program is sorted into X-axis commands and Y-axis commands.
The X-axis command thus distributed is the axis control means 10c.
The Y-axis command is sent to the communication means 10b.

【0014】軸制御手段10cは、X軸の指令に基づい
てサーボモータ17aの動作を制御するための準備を行
う。また、通信手段10bは、従CNC20にY軸の指
令をデータ伝送する。具体的には、通信手段10bはY
軸の指令をPMC軸制御形式信号に変換した後、通信手
段20bにデータ伝送する。このPMC軸制御形式信号
はPMCが軸を制御する信号に相当する例えば4ビット
の所定の形式の信号であって、早送り指令信号、移動量
指令信号、待ち合わせ指令信号及び軸制御開始信号等が
含まれる。
The axis control means 10c prepares for controlling the operation of the servomotor 17a based on the X-axis command. The communication means 10b also transmits the Y-axis command to the slave CNC 20 as data. Specifically, the communication means 10b is Y
After converting the axis command into a PMC axis control format signal, data is transmitted to the communication means 20b. The PMC axis control format signal is, for example, a 4-bit predetermined format signal corresponding to a signal for controlling the axis by the PMC, and includes a fast-forward command signal, a movement amount command signal, a waiting command signal and an axis control start signal. Be done.

【0015】ここで、早送り指令信号はY軸の早送りを
指令するための信号である。また、移動量指令信号は加
工しながら所定量のY軸を移動させるための信号であ
る。待ち合わせ指令信号は、上記早送り指令信号及び移
動量指令信号等の実行を待ち合わせるための信号であ
る。軸制御開始信号は、上記早送り指令信号及び移動量
指令信号等の実行を開始するための信号である。
Here, the fast-forward command signal is a signal for instructing fast-forward on the Y-axis. The movement amount command signal is a signal for moving the Y axis by a predetermined amount while processing. The waiting command signal is a signal for waiting for execution of the fast-forwarding command signal, the movement command signal, and the like. The axis control start signal is a signal for starting execution of the fast-forward command signal, the movement command signal, and the like.

【0016】一方、従CNC20では、通信手段20b
が主CNC10からデータ伝送されたY軸の指令を受け
る。この通信手段20bで受けたY軸の指令に基づい
て、軸制御手段20cがサーボモータ27aの動作を制
御する準備を行う。具体的には、通信手段20bが上記
PMC軸制御形式信号を受けて、シーケンス・プログラ
ムによって実際の動作信号に変換し、この動作信号を受
けて軸制御手段20cがサーボモータ27aの動作を制
御する準備を行う。また、通信手段20bが待ち合わせ
指令信号を受けた場合には、軸制御開始信号を受けるま
でサーボモータ27aの動作を一時停止させる。そし
て、軸制御開始信号を受けた後、通信手段20bは待ち
合わせが完了したことを示す待ち合わせ完了信号を通信
手段10bにデータ伝送する。
On the other hand, in the slave CNC 20, the communication means 20b
Receives the Y-axis command transmitted from the main CNC 10. Based on the Y-axis command received by the communication unit 20b, the axis control unit 20c prepares to control the operation of the servo motor 27a. Specifically, the communication means 20b receives the PMC axis control format signal, converts it into an actual operation signal by a sequence program, and the axis control means 20c receives this operation signal and controls the operation of the servomotor 27a. Get ready. When the communication means 20b receives the waiting command signal, the operation of the servo motor 27a is temporarily stopped until it receives the axis control start signal. Then, after receiving the axis control start signal, the communication means 20b transmits a waiting completion signal indicating that the waiting is completed to the communication means 10b.

【0017】その後、主CNC10はX軸(サーボモー
タ17a)の動作を、従CNC20はY軸(サーボモー
タ27a)の動作をそれぞれ制御する。こうして、主C
NC10と従CNC20との協調動作を実現することが
できる。
After that, the main CNC 10 controls the operation of the X axis (servo motor 17a), and the slave CNC 20 controls the operation of the Y axis (servo motor 27a). Thus, the main C
A cooperative operation between the NC 10 and the slave CNC 20 can be realized.

【0018】次に、上記動作を実現するための1軸CN
Cの構成について説明する。なお、主CNC10及び従
CNC20等は同一構成であるので、主CNC10につ
いて説明する。
Next, a uniaxial CN for realizing the above operation
The configuration of C will be described. Since the main CNC 10 and the slave CNC 20 have the same configuration, the main CNC 10 will be described.

【0019】図2は、1軸CNCの全体構成を示すブロ
ック図である。図において、主CNC(数値制御装置)
10は、CPU(プロセッサ)11、ROM12、RA
M13、PMC(プログラマブル・マシン・コントロー
ラ)14、I/O(Input/Output)ユニット15、軸制
御回路16、サーボアンプ17、バッファ18a及びコ
ネクタ18bから構成される。
FIG. 2 is a block diagram showing the overall structure of the uniaxial CNC. In the figure, the main CNC (numerical controller)
10 is a CPU (processor) 11, a ROM 12, and an RA
An M13, a PMC (programmable machine controller) 14, an I / O (Input / Output) unit 15, an axis control circuit 16, a servo amplifier 17, a buffer 18a and a connector 18b.

【0020】CPU11はROM12に格納されたシス
テムプログラムに従って、主CNC10の全体を制御す
る。また、ROM12には上記システムプログラムの他
に、解析プログラム、通信プログラム及び軸制御プログ
ラム等のプログラムが格納されている。なお、図1に示
す解析手段10aは主CNC10のみに搭載され、上記
解析プログラムをCPU11が実行することによって実
現される機能である。同様に、通信手段10b及び軸制
御手段10cは全ての1軸CNCに搭載され、上記通信
プログラム及び軸制御プログラムをCPU11が実行す
ることによって実現される機能である。
The CPU 11 controls the entire main CNC 10 according to the system program stored in the ROM 12. In addition to the above system programs, the ROM 12 stores programs such as an analysis program, a communication program, and an axis control program. The analysis means 10a shown in FIG. 1 is a function that is installed only in the main CNC 10 and is realized by the CPU 11 executing the analysis program. Similarly, the communication unit 10b and the axis control unit 10c are functions that are mounted on all the 1-axis CNCs and are realized by the CPU 11 executing the communication program and the axis control program.

【0021】RAM13はSRAM等が使用され、図示
されていないバッテリによってバックアップされるの
で、主CNC10の電源が遮断されても、格納されたデ
ータはそのまま保持される。なお、RAM13には、加
工プログラムや他のCNCにデータ伝送するための信号
等の一時的なデータが格納される。
Since the RAM 13 is an SRAM or the like and is backed up by a battery (not shown), the stored data is retained as it is even if the power of the main CNC 10 is cut off. The RAM 13 stores temporary data such as machining programs and signals for data transmission to other CNCs.

【0022】PMC14は、ラダー形式で作成されたシ
ーケンス・プログラムで後述するI/Oユニット15を
介して工作機械を制御する。すなわち、加工プログラム
で指令されたM機能、S機能及びT機能等の各指令機能
に従ってシーケンス・プログラムで工作機械を動作させ
るために必要な信号に変換して出力する。この際出力さ
れる信号は、工作機械のマグネット等を駆動し、油圧バ
ルブ及び電気アクチュエータ等を作動させる。また、工
作機械のリミットスイッチ及び機械操作盤のスイッチ等
の信号を受けて所定の処理を行う。
The PMC 14 is a sequence program created in a ladder format and controls the machine tool via an I / O unit 15 described later. That is, according to each command function such as the M function, S function, and T function commanded by the machining program, the sequence program converts the signal into a signal necessary for operating the machine tool and outputs the signal. The signal output at this time drives a magnet or the like of the machine tool to operate a hydraulic valve, an electric actuator or the like. Further, it receives a signal from a limit switch of a machine tool, a switch of a machine operation panel, or the like to perform a predetermined process.

【0023】また、PMC14は、I/Oユニット15
を介して他の従CNC20等へ仮想軸の指令をデータ伝
送する。このデータ伝送では、PMC軸制御形式信号、
すなわち、PMC14が軸を制御する信号に相当する信
号であって、早送り指令信号、移動量指令信号、待ち合
わせ指令信号及び軸制御開始信号等がデータ伝送され
る。なお、I/Oユニット15と他の従CNC20のI
/Oユニットとの間の通信回線100は、パラレルライ
ンで互いに結合されている。
The PMC 14 also includes an I / O unit 15
The virtual axis command is data-transmitted to another slave CNC 20 or the like via. In this data transmission, PMC axis control format signal,
That is, the PMC 14 is a signal corresponding to a signal for controlling the axis, and the fast-forward command signal, the movement command signal, the waiting command signal, the axis control start signal, and the like are data-transmitted. The I / O unit 15 and the I / O units of other slave CNCs 20
The communication line 100 with the / O unit is coupled to each other by a parallel line.

【0024】軸制御回路16はCPU11からの制御軸
(X軸)の移動指令を受けて、サーボアンプ17を介し
てサーボモータ17aを駆動する。バッファ18aはコ
ネクタ18bに接続されており、コマンドを含むデータ
パケットはコネクタ18bからシリアル信号ラインに送
出される。なお、パケット通信を行うためには、各CN
C間のデータ伝送速度を合わせ、プロトコルの整合をと
る必要がある。
The axis control circuit 16 receives a movement command of the control axis (X axis) from the CPU 11 and drives the servo motor 17a via the servo amplifier 17. The buffer 18a is connected to the connector 18b, and the data packet including the command is sent from the connector 18b to the serial signal line. In order to perform packet communication, each CN
It is necessary to match the data transmission rate between Cs and to match the protocols.

【0025】次に、上記主CNC10の解析手段10a
で実行される軸制御指令の振り分けについて説明する。
図3は、主CNC10の解析手段10aによって実行さ
れる軸制御指令の振り分けを示す図である。なお、図1
と同様に、主CNC10が制御軸(以下、「X軸」と呼
ぶ。)のサーボモータ17aを制御し、従CNC20が
仮想軸(以下、「Y軸」と呼ぶ。)のサーボモータ27
aを制御するものとする。
Next, the analyzing means 10a of the main CNC 10 is described.
The distribution of the axis control command executed in step 1 will be described.
FIG. 3 is a diagram showing distribution of axis control commands executed by the analysis means 10a of the main CNC 10. Note that FIG.
Similarly, the main CNC 10 controls the servo motor 17a of the control axis (hereinafter referred to as "X axis"), and the slave CNC 20 controls the servo motor 27 of the virtual axis (hereinafter referred to as "Y axis").
a shall be controlled.

【0026】加工プログラム200はX軸の指令とY軸
の指令とを含むプログラムである。解析手段10aは加
工プログラム201に含まれるX軸の指令及びY軸の指
令を振り分けて、X軸の指令のみが含まれる制御軸プロ
グラム202と、Y軸の指令のみが含まれる仮想軸プロ
グラム203を作成する。
The machining program 200 is a program including an X-axis command and a Y-axis command. The analysis unit 10a distributes the X-axis command and the Y-axis command included in the machining program 201 to a control axis program 202 including only the X-axis command and a virtual axis program 203 including only the Y-axis command. create.

【0027】こうして作成された制御軸プログラム20
2は図1の軸制御手段10cによってサーボモータ17
aの動作が制御される。また、仮想軸プログラム203
は、PMC軸制御形式に信号化された後、図1の通信手
段10b及び通信手段20bを介して軸制御手段20c
にデータ伝送され、サーボモータ27aの動作が制御さ
れる。
The control axis program 20 created in this way
2 is a servomotor 17 by the axis control means 10c of FIG.
The operation of a is controlled. Also, the virtual axis program 203
Is converted into a PMC axis control format, and then the axis control means 20c is transmitted via the communication means 10b and the communication means 20b of FIG.
Data is transmitted to control the operation of the servo motor 27a.

【0028】図4は、主CNC10で実行される本発明
の処理手順を示すフローチャートであって、X軸とY軸
との2軸に振り分けるフローチャートである。図におい
て、Sの後に続く数字はステップ番号を示す。なお、図
1と同様に、主CNC10が制御軸(以下、「X軸」と
呼ぶ。)のサーボモータ17aを制御し、従CNC20
が仮想軸(以下、「Y軸」と呼ぶ。)のサーボモータ2
7aを制御するものとする。 〔S1〕加工プログラムにY軸の指令が含まれているか
否かを1ブロックごとに判別する。もし、Y軸の指令が
含まれている(YES)ならばステップS2に進み、Y
軸の指令が含まれていない(NO)ならばステップS5
に進む。 〔S2〕X軸の指令とY軸の指令とに振り分けるための
前処理を行う。例えば、図3で示したようなX軸の指令
とY軸の指令とが含まれる加工プログラム201を、X
軸の指令のみが含まれる制御軸プログラム202と、Y
軸の指令のみが含まれる仮想軸プログラム203とに、
1ブロックごとに振り分ける。 〔S3〕ステップS2で振り分けられた仮想軸プログラ
ム203をPMC軸制御形式信号へ変換する。具体的に
は、仮想軸プログラム203に基づいて、PMC軸制御
形式信号、すなわちPMC14が軸を制御する信号に相
当する信号であって、早送り指令信号、移動量指令信
号、待ち合わせ指令信号及び軸制御開始信号等に変換さ
れる。 〔S4〕ステップS3で変換されたPMC軸制御形式信
号を、図1の通信手段10bを介して従CNC20へ出
力する。このPMC軸制御形式信号出力後、X軸(サー
ボモータ17a)の動作を制御し、本処理を終了する。
なお、主CNC10と従CNC20との協調動作を行う
場合には、まず従CNC20に待ち合わせ指令信号を出
力し、従CNC20から待ち合わせ完了信号を受けた後
にX軸(サーボモータ17a)の動作を制御する。 〔S5〕X軸をパルス分配するための前処理を行なった
後、X軸(サーボモータ17a)の動作を制御する。
FIG. 4 is a flow chart showing the processing procedure of the present invention executed by the main CNC 10, and is a flow chart for allocating to the two axes of the X axis and the Y axis. In the figure, the number following S indicates a step number. Note that, as in FIG. 1, the master CNC 10 controls the servo motor 17a of the control axis (hereinafter, referred to as “X axis”), and the slave CNC 20.
Is a virtual axis (hereinafter, referred to as “Y axis”) servo motor 2
7a shall be controlled. [S1] It is determined for each block whether or not the machining program includes a Y-axis command. If the Y-axis command is included (YES), the process proceeds to step S2 and Y
If the axis command is not included (NO), step S5
Proceed to. [S2] Pre-processing for distributing the X-axis command and the Y-axis command is performed. For example, the machining program 201 including the X-axis command and the Y-axis command as shown in FIG.
A control axis program 202 including only axis commands, and Y
In the virtual axis program 203 that includes only axis commands,
Distribute every block. [S3] The virtual axis program 203 distributed in step S2 is converted into a PMC axis control format signal. Specifically, it is a PMC axis control format signal based on the virtual axis program 203, that is, a signal corresponding to a signal for controlling the axis by the PMC 14, and includes a fast-forward command signal, a movement amount command signal, a queuing command signal, and an axis control. It is converted into a start signal or the like. [S4] The PMC axis control format signal converted in step S3 is output to the slave CNC 20 via the communication means 10b in FIG. After this PMC axis control format signal is output, the operation of the X axis (servo motor 17a) is controlled, and this processing ends.
When performing a cooperative operation between the master CNC 10 and the slave CNC 20, first, a waiting command signal is output to the slave CNC 20, and after the waiting completion signal is received from the slave CNC 20, the operation of the X axis (servo motor 17a) is controlled. . [S5] After the preprocessing for pulse distribution on the X axis, the operation of the X axis (servo motor 17a) is controlled.

【0029】したがって、主CNC10の解析手段10
aが加工プログラムの軸制御指令を解析して制御軸の指
令と仮想軸の指令とに振り分けて、従CNC20の軸制
御手段20cがサーボモータ27aの動作を制御するよ
うにしたので、一つの加工プログラムで複数の軸の動作
を制御することができる。また、個別にシーケンス・プ
ログラムを作成する必要がないので、プログラム作成の
労力を大幅に軽減させることができる。さらに、主CN
C10及び少なくとも一つの従CNC20等は、パラレ
ルラインの通信回線100によって互いに結合したの
で、データ伝送の遅延がなく、ほぼ同時に各軸を動作さ
せることができる。
Therefore, the analyzing means 10 of the main CNC 10
a analyzes the axis control command of the machining program and distributes it to the command of the control axis and the command of the virtual axis, and the axis control means 20c of the slave CNC 20 controls the operation of the servo motor 27a. A program can control the movement of multiple axes. Further, since it is not necessary to individually create a sequence program, the labor of program creation can be greatly reduced. Furthermore, the main CN
Since the C10 and at least one slave CNC 20 and the like are coupled to each other by the parallel line communication line 100, there is no delay in data transmission, and each axis can be operated almost simultaneously.

【0030】以上の説明では、主CNC10が加工プロ
グラムの軸制御指令を解析して制御軸の指令と仮想軸の
指令とに振り分けて各サーボモータを制御したが、2台
以上の従CNCを通信回線100に接続することによ
り、2軸以上の仮想軸に振り分けて各サーボモータを制
御することもできる。
In the above description, the master CNC 10 analyzes the axis control command of the machining program and distributes the command to the control axis and the command to the virtual axis to control each servo motor. However, two or more slave CNCs communicate with each other. By connecting to the line 100, each servo motor can be controlled by being distributed to two or more virtual axes.

【0031】また、サーボモータ17a,27a等を制
御対象として適用したが、動作制御可能な他のモータを
制御対象として適用してもよい。さらに、通信手段10
b,20b等の間で相互にデータ伝送されるPMC軸制
御形式信号とは別に、主CNC10及び従CNC20等
の動作の同期をとるための同期信号を、例えば主CNC
10が待ち合わせ完了信号を受けた後に従CNC20等
へデータ伝送することにより、主CNC10及び従CN
C20等を同期運転と同等の動作を行うこともできる。
Although the servomotors 17a and 27a are applied as control targets, other motors whose operation can be controlled may be applied as control targets. Furthermore, the communication means 10
In addition to the PMC axis control format signal which is mutually data-transmitted between b, 20b, etc., a synchronization signal for synchronizing the operations of the main CNC 10 and the slave CNC 20, for example, the main CNC, is used.
10 receives the waiting completion signal and then transmits data to the subordinate CNC 20, etc., so that the main CNC 10 and the subordinate CN 10
It is also possible to perform an operation equivalent to the synchronous operation of C20 and the like.

【0032】[0032]

【発明の効果】以上説明したように本発明では、主CN
Cの解析手段が加工プログラムの軸制御指令を解析して
制御軸の指令と仮想軸の指令とに振り分けて、少なくと
も一つの従CNCの第2の軸制御手段が第2のモータの
動作を制御するように構成したので、一つの加工プログ
ラムで複数の軸制御を行うことができる。このため、主
CNC側の加工プログラムのみを作成すればよく、プロ
グラムの作成時間が大幅に短縮される。
As described above, in the present invention, the main CN
The C analysis means analyzes the axis control command of the machining program and distributes it to the control axis command and the virtual axis command, and the second axis control means of at least one slave CNC controls the operation of the second motor. Since it is configured to do so, a single machining program can control a plurality of axes. Therefore, only the machining program on the main CNC side needs to be created, and the program creation time is greatly shortened.

【0033】また、個別にシーケンス・プログラムを作
成する必要がないので、プログラム作成の労力を大幅に
軽減させることができる。
Further, since it is not necessary to individually create the sequence program, the labor for creating the program can be greatly reduced.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】1軸CNCの全体構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing an overall configuration of a uniaxial CNC.

【図3】解析手段による軸制御指令の振り分けを示す図
である。
FIG. 3 is a diagram showing distribution of axis control commands by analysis means.

【図4】1軸CNCの処理手順を示すフローチャートで
ある。
FIG. 4 is a flowchart showing a processing procedure of a 1-axis CNC.

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

10 主CNC 10a 解析手段 10b 通信手段 10c 軸制御手段 17a サーボモータ 20,30 従CNC 20b,30b 通信手段 20c,30c 軸制御手段 27a,37a サーボモータ 10 main CNC 10a analysis means 10b communication means 10c axis control means 17a servo motor 20,30 slave CNC 20b, 30b communication means 20c, 30c axis control means 27a, 37a servo motor

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の1軸CNC(数値制御装置)を同
期して動作させるためのCNCの軸制御分配方式におい
て、 加工プログラムの軸制御指令を解析して制御軸の指令と
仮想軸の指令とに振り分けて指令する解析手段と、前記
制御軸の指令に基づいて第1のモータの動作を制御する
第1の軸制御手段と、他のCNCに前記仮想軸の指令を
データ伝送する第1の通信手段とを備えた主CNCと、 前記主CNCからデータ伝送された前記仮想軸の指令を
受ける第2の通信手段と、前記第2の通信手段で受けた
前記仮想軸の指令に基づいて第2のモータの動作を制御
する第2の軸制御手段とを備えた少なくとも一つの従C
NCと、 を有することを特徴とするCNCの軸制御分配方式。
1. A CNC axis control distribution method for synchronously operating a plurality of 1-axis CNCs (numerical control devices), wherein an axis control command of a machining program is analyzed and a command of a control axis and a command of a virtual axis are analyzed. A first axis control means for controlling the operation of the first motor based on the command of the control axis, and a first axis for data transmission of the virtual axis command to another CNC. Based on a command of the virtual axis received by the second communication means, and a second communication means for receiving the command of the virtual axis transmitted from the main CNC. At least one slave C having a second axis control means for controlling the operation of the second motor
An axis control distribution system for a CNC, which comprises:
【請求項2】 前記第1の通信手段と前記第2の通信手
段との間の通信回線は、パラレルラインで構成したこと
を特徴とする請求項1記載のCNCの軸制御分配方式。
2. The axis control distribution system of CNC according to claim 1, wherein a communication line between the first communication means and the second communication means is a parallel line.
【請求項3】 前記主CNCから前記従CNCへデータ
伝送する前記仮想軸の指令には、少なくとも早送り指令
及び移動量指令を含むように構成したことを特徴とする
請求項1記載のCNCの軸制御分配方式。
3. The axis of the CNC according to claim 1, wherein the command of the virtual axis for data transmission from the master CNC to the slave CNC includes at least a fast-forward command and a movement amount command. Control distribution method.
【請求項4】 前記主CNCから前記従CNCへデータ
伝送する前記仮想軸の指令には待ち合わせ指令を含み、
前記待ち合わせ指令に対応して前記従CNCから前記主
CNCへ待ち合わせ完了指令をデータ伝送して、協調動
作を行うように構成したことを特徴とする請求項3記載
のCNCの軸制御分配方式。
4. The command of the virtual axis for transmitting data from the master CNC to the slave CNC includes a waiting command.
4. The axis control distribution system of a CNC according to claim 3, wherein the slave CNC is configured to transmit a queuing completion command to the main CNC in response to the queuing command to perform cooperative operation.
JP4185575A 1992-07-14 1992-07-14 Cnc axis control distribution system Pending JPH0635528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4185575A JPH0635528A (en) 1992-07-14 1992-07-14 Cnc axis control distribution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4185575A JPH0635528A (en) 1992-07-14 1992-07-14 Cnc axis control distribution system

Publications (1)

Publication Number Publication Date
JPH0635528A true JPH0635528A (en) 1994-02-10

Family

ID=16173213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4185575A Pending JPH0635528A (en) 1992-07-14 1992-07-14 Cnc axis control distribution system

Country Status (1)

Country Link
JP (1) JPH0635528A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136110A1 (en) * 2007-04-26 2008-11-13 Mitsubishi Electric Corporation Numerical control apparatus and numerical control system
JP2011062798A (en) * 2009-09-18 2011-03-31 Mitsubishi Electric Corp Robot control device and robot control method
CN104790404A (en) * 2015-05-05 2015-07-22 中国电建集团中南勘测设计研究院有限公司 Dam foundation high-pressure grouting structure and method
CN116009404A (en) * 2023-02-22 2023-04-25 广东科伺智能科技有限公司 Method, device, equipment and readable storage medium for debugging servo equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136110A1 (en) * 2007-04-26 2008-11-13 Mitsubishi Electric Corporation Numerical control apparatus and numerical control system
JP4840506B2 (en) * 2007-04-26 2011-12-21 三菱電機株式会社 Numerical control system
US8131396B2 (en) 2007-04-26 2012-03-06 Mitsubishi Electric Corporation Numerical control apparatus and numerical control system
JP2011062798A (en) * 2009-09-18 2011-03-31 Mitsubishi Electric Corp Robot control device and robot control method
CN104790404A (en) * 2015-05-05 2015-07-22 中国电建集团中南勘测设计研究院有限公司 Dam foundation high-pressure grouting structure and method
CN116009404A (en) * 2023-02-22 2023-04-25 广东科伺智能科技有限公司 Method, device, equipment and readable storage medium for debugging servo equipment
CN116009404B (en) * 2023-02-22 2023-05-23 广东科伺智能科技有限公司 Method, device, equipment and readable storage medium for debugging servo equipment

Similar Documents

Publication Publication Date Title
US5268898A (en) Information transmission system between machine master and servo mechanism
EP0373224B1 (en) Numerical controller
JPH0635528A (en) Cnc axis control distribution system
EP3764175B1 (en) Control device and control system
KR910009265B1 (en) Cnc system
CN110855537A (en) EtherCAT main station implementation method and system based on double MCUs
JPH0695729A (en) Machine tool control system
EP0507955B1 (en) Method for operating cnc synchronously
JPH0973310A (en) Unit and system for numerical control
EP0620512A1 (en) Numeric controller
JP2000293215A (en) Method for commanding work program of numerical controller
EP0328649A1 (en) System for processing mst functional instruction
JPH01152509A (en) Cnc control system
JP2646026B2 (en) Control method for multi-system machine tools
WO1988009532A1 (en) Serial data link for numerical control device
US20230128011A1 (en) Robot Control Method, Robot Control System, And Robot Control Program
KR100221491B1 (en) Method for controlling dual robot
JPS6368905A (en) Positioning control system
JPH11282509A (en) Robot controller and method for controlling the same
JPH04283B2 (en)
JPS6115439A (en) Factory automation system
KR20160022722A (en) Synchronization device and synchronization method of cooperation robot
JPH0324838A (en) Remote supervisory and controlling equipment
KR19980078264A (en) Multiple control method of OneCNC controller
JPH03277452A (en) Group control system for machine tool