WO1992009940A1 - Method for executing program for cnc equipment - Google Patents

Method for executing program for cnc equipment Download PDF

Info

Publication number
WO1992009940A1
WO1992009940A1 PCT/JP1991/001569 JP9101569W WO9209940A1 WO 1992009940 A1 WO1992009940 A1 WO 1992009940A1 JP 9101569 W JP9101569 W JP 9101569W WO 9209940 A1 WO9209940 A1 WO 9209940A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
cnc
timer
execution
time
Prior art date
Application number
PCT/JP1991/001569
Other languages
English (en)
French (fr)
Inventor
Yoshiaki Ikeda
Hideyuki Hirohama
Original Assignee
Fanuc 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 Fanuc Ltd filed Critical Fanuc Ltd
Publication of WO1992009940A1 publication Critical patent/WO1992009940A1/ja

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34244Multiplex for control only
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34268Cnc and pic controlled alternately by same processor, using timer

Definitions

  • the present invention relates to a program execution method for a CNC device that executes a sequence program and a CNC program with one CPU, and more particularly to a program execution method for a CNC device that increases the processing speed of a sequence program.
  • the execution time of the CNC program is determined based on the assumption that the additional functions of the CNC device are at its maximum. If the actual additional functions are shorter, the processing time of the CNC program is unnecessarily long. It has been long. Therefore, the amount of execution of the sequence program per fixed time is reduced, so that the processing speed of the sequence program cannot be increased.
  • the present invention has been made in view of such a point, and It is an object of the present invention to provide a program execution method for a CNC device in which the execution amount of a sequence program per fixed time is increased and the speed of the sequence program processing is increased.
  • a CNC device program execution method in which a sequence program and a CNC program are executed by one CPU, the execution time of the CNG program is calculated according to the additional function information of the CNC device, and the timer period to determine the timer period.
  • Operation determining means a timer that outputs a timer signal in accordance with the timer cycle, and a program that divides the sequence program into fixed time periods, and alternately executes the CNC program and the divided sequence program at the timer cycle.
  • timer cycle automatic determination means calculates the execution time of the CNC program according to the additional function of the CNC device, the CNC program is executed efficiently without wasted time. Also, since the CNC program and the divided sequence program are executed alternately, the amount of execution of the sequence program per fixed time increases.
  • Fig. 1 is a block diagram of the CNC system's program method.
  • Fig. 2 (a) is a time chart when the additional functions are at maximum.
  • FIG. 3 is a schematic configuration diagram of a hardware of a numerical controller for implementing the present invention.
  • FIG. 3 is a schematic configuration diagram of a hardware of a numerical control device for implementing the present invention.
  • Processor 11 controls the entire numerical controller according to the system program stored in R ⁇ M12. Further, the processor 11 controls the sequence of the machine tool 21 according to the sequence program stored in the R ⁇ M 12.
  • EPROM or EEPR ⁇ M is used for ROM12.
  • RAM I3 uses SRAM or the like, and stores various data or input / output signals. '
  • the non-volatile memory 14 uses GM ⁇ S backed up by battery and stores parameters to be retained even after the power is turned off, pitch error correction amount, tool correction amount, and the like.
  • the graphic control circuit 15 converts the digital signal into a signal for display, and gives it to the display screen 16.
  • the display screen 16 uses a CRT or a liquid crystal display, and displays the position of each axis, the state of input / output signals, and the like. Switching between these displays is performed by a soft key 17 at the bottom of the display screen 16.
  • the keyboard 18 consists of symbolic keys, numerical keys, etc., and necessary figures and data are input using these keys.
  • Input / output circuit 19 is sequenced by processor 11 Received via the bus 20 and outputs a corresponding output signal to control the machine tool 21. Also, it receives an input signal from the machine side and transfers a corresponding signal to the processor 11 via the bus 20.
  • the axis control circuit 22 receives an axis movement command from the processor 11 and outputs a command for the axis to the servo amplifier 23.
  • the servo amplifier 23 receives the movement command and drives the servo motor of the machine tool 21.
  • information 1 of the actual additional function and information 2 of the maximum additional function are input.
  • the parameter as the additional function information that is input is the minimum time required for the execution of the CNC program.
  • T is the parameter of the actual additional time 1 and the parameter of the additional function 2 at the maximum. Is input as Ta.
  • the timer cycle automatic determination means 3 calculates a timer cycle for measuring the execution timing of the sequence program from the values of the additional function parameters Ta and Tb. More specifically, as shown in the timing chart when the additional function is maximum in Fig. 2 (a), first, the period of the timer when the additional function is maximum is divided into the divided time t of the sequence program and the maximum T [, which is the sum of the execution time of the CNC program and Ta, is stored. Next, the division time t of the sequence sp ⁇ -gram and the C Calculate the sum (t + Tb) of the execution time Tb of the NC program and calculate the timer for the actual additional function from the ratio of this (t + Tb) to the timer cycle T at the maximum of the additional function. Is calculated.
  • Fig. 2 (b) shows the timing chart when the timer cycle during the actual additional function is ⁇ and Z2.
  • the timer 4 when the cycle of the timer is determined, the timer 4 outputs a signal at each cycle, and each time this signal is output, the CPU 5 executes the sequence program. Therefore, the amount of execution of the sequence program within a certain time is clearly larger than before.
  • the period of the timer is assumed to be 1 Z 2 at the time of the maximum additional function. However, these periods change according to the amount of the additional function.
  • the execution time of the CNC program is calculated according to the additional function information of the CNC device, so that the CNC program is executed efficiently without wasting time. Since the CNC program and the divided sequence program are alternately executed at a timer cycle, the amount of execution of the sequence program per fixed time increases, and the processing speed is increased.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)
  • Programmable Controllers (AREA)
  • Executing Machine-Instructions (AREA)

Description

明 細 書 C N C装置のプログラム実行方式 技 術 分 野
本発明は一つの C P Uでシーケ ンスプロ グラ ムおよび C N Cプログラムを実行する C N C装置のプログラム実行方式に 関し、 特にシーケ ンスプログラムの処理速度の高速化を図つ た C N C装置のプログラム実行方式に関する。 背 景 技 術
従来、 C N C装置において、 一つの C P Uでシーケ ンスプ σグラムおよび C N Cプログラ厶を実行する場合には、 シー ケンスプログラムを複数に分割し、 その分割したシーケンス プログラムと C N Cプログラ厶とを交互に実行していた。
しかし、 C N Cプログラムの実行時間は、 C N C装置の付 加機能が最大の場合を想定して決められているので、 実際の 付加機能がそれよりも少ない場合には、 C N Cプログラムの 処理時間がいたずらに長く なつていた。 したがって、 シーケ ンスプログラムの一定時間当たりの実行量が減るため、 シー ケンスプログラムの処理速度の高速化を図ることができなか つた 発 明 の 開 示
本発明はこのような点に鑑みてなされたものであり、 シー ケンスプログラムの一定時間当たりの実行量を増やし、 シ一 ケ ンスプログラ厶処理の高速度化を図つた C N C装置のプロ グラム実行方式を提供することを目的とする。
本発明では上記課題を解決するために、
—つの C P Uでシーケンスプログラムおよび C N Cプログ ラムを実行する C N C装置のプログラム実行方式において、 前記 C N Gプログラムの実行時間を前記 C N C装置の付加機 能情報に応じて算出し、 タイマ周期を決定するタイマ周期自 動決定手段と、 前記タイマ周期に従ってタイマ信号を出力す るタイマと、 前記シーケンスプログラムを一定時間に分割し、 前記 C N Cプログラムと前記分割したシーケ ンスプログラム とを、 前記タイマ周期で交互に実行するプログラム実行手段 と、 を有することを特徴とする C N C装置のプログラム実行 方式が、 提供される。
タイマ周期自動決定手段は、 C N Cプログラムの実行時間 を C N C装置の付加機能に応じて算出するので、 無駄な時間 がなく、 効率良く C N Cプログラムが実行される。 また、 そ の C N Cプログラムと分割したシーケンスプログラ厶を交互 に実行するので、 シーケ ンスプログラムの一定時間当たりの 実行量が増える。 図 面 の 簡 単 な 説 明
第 1図は C N C装置のプ口グラム方式のブロ ック図、 第 2図 ( a ) は付加機能最大時のタイ ムチャー ト、
第 2図 ( b ) は実際の付加機能時のタ イ ムチャー ト、 第 3図は本発明を実施するための数値制御装置のハ ー ドゥ ァの概略構成図である。 発明を実施するための最良の形態
以下、 図面に基づいて本発明の一実施例を説明する。
第 3図は本発明を実施するための数値制御装置のハ ー ドゥ ヱァの概略構成図である。 プロセ ッ サ 1 1 は R〇 M 1 2 に格 納されたシステムプログラムに従って数値制御装置全体を制 御する。 また、 プロセッサ 1 1 は R〇M 1 2 に格納されたシ 一ケ ンスプロ グラ ムに従って工作機械 2 1をシーケンス制御 する。
R O M 1 2には E P R O Mあるいは E E P R〇 Mが使用さ れる。 R A M I 3は S R A M等が使用され、 各種のデータあ るいは入出力信号が格納される。 '
不揮発性メ モ リ 1 4 にはバッテ リバッ クアップされた G M 〇 Sが使用され、 電源切断後も保持すべきパラ メ ータ、 ピッ チ誤差補正量及び工具補正量等が格納されている。
グラフィ ッ ク制御回路 1 5はディ ジタル信号を表示用の信 号に変換し、 表示画面 1 6に与える。 表示画面 1 6 は C R T あるいは液晶表示装置が使用され、 各軸の位置、 入出力信号 の状態等を表示する。 これら表示の切り換えは、 表示画面 1 6の下部のソ フ トキ一 1 7によって行われる。
キーボー ド 1 8はシンボリ ッ クキー、 数値キ一等からなり, 必要な図形、 データをこれらのキーを使用して入力する。
入出力回路 1 9は、 プロセ ッ サ 1 1でシーケ ンス処理され た信号をバス 2 0経由で受け、 対応する出力信号を出力して 工作機械 2 1を制御する。 また、 機械側からの入力信号を受 けて、 対応する信号をバス 2 0を経由してプロセッサ 1 1 に 転送する。
軸制御回路 2 2は、 プロセッサ 1 1からの軸の移動指令を 受けて、 軸の措令をサーボアンプ 2 3に出力する。 サ一ボア ンプ 2 3は、 この移動指令を受けて、 工作機械 2 1のサ一ボ モータを駆動する。 これらの構成要素はバス 2 0によって互 いに結合されている。
次に第 1図のブロ ック図に基づいて、 上記構成からなる C N C装置のプログラム実行手順を説明する。
不揮発性メ モ リ 1 4には、 実際の付加機能の情報 1及び付 加機能最大時の情報 2が入力されている。 ここで、 入力され る付加機能情報としてのパラメータは、 C N Cプログラムの 実行に最低限必要な時間であり、 例えば、 実際の付加準 時 1のパラメータとして T が、 最大時の付加機能 2のパラ メータとしては T aが入力される。
タイマ周期自動決定手段 3は、 これら付加機能パラ メ ータ T a、 T bの値から、 シーケ ンスプログラ 厶の実行タィ ミ ン グを計るためのタイマの周期を算出する。 より具体的には、 第 2図 ( a ) の付加機能最大時のタ イ ムチャー トに示すよう に、 まず付加機能最大時のタイマの周期として、 シーケンス プログラムの分割時間 t と付加機能最大時の C N Cプログラ ムの実行時間 T aとの和である T【 が記憶される。 次いで、 シーケ ンスプ πグラムの分割時間 t と実際の付加機能時の C N Cプログラムの実行時間 T bとの和 ( t +T b) を算出し、 この ( t +T b) と付加機能最大時のタイマの周期 T , との 比から、 実際の付加機能時のタイマの周期を算出する。 第 2 図 ( b) には実際の付加機能時のタイマの周期が Τ , Z2と なる場合のタイ ムチャー トを示す。
このように、 タイマの周期が決定されると、 タ イ マ 4はこ の周期毎に信号を出力し、 この信号が出力される度に C P U 5はシーケンスプログラムを実行する。 したがって、 一定時 間内におけるシーケンスプログラ厶の実行量は、 従来より も 明らかに多くなる。
なお、 ¾の説明ではタィマの周期が最大の付加機能時の 1 Z 2になるとしたが、 これ等の周期は付加機能の量に応じ て変化する。
以上説明したように本発明では、 C N Cプログラムの実行 時間を C N C装置の付加機能情報に応じて算出するので、 無 駄な時間がなく、 効率良く CNCプログラムが実行される。 そして、 その C N Cプログラムと分割したシーケ ンスプログ ラムをタイマ周期で交互に実行するので、 シーケンスプログ ラムの一定時間当たりの実行量が増え、 処理速度が速くなる。

Claims

請 求 の 範 囲 · 1 . —つの C P Uでシーケ ンスプログラムおよび C N Cプ 口グラムを実行する C N C装置のプログラム実行方式におい て、
前記 C N (:プ πグラムの実行時間を前記 C N C装置の付加 機能情報に応じて算出し、 タィマ周期を決定するタイマ周期 自動決定手段と、
前記タイマ周期に従ってタイマ信号を出力するタイマと、 前記シーケンスプログラムを一定時間に分割し、 前記 C N Cプログラムと前記分割したシーケ ンスプログラムとを、 前 記タイマ周期で交互に実行するプログラム実行手段と、 を有することを特徵とする C N C装置のプログラム実行方 式 o
2 . 前記タイマ周'期は前記 C N Cプログラムの実行時間と 前記分割したシーケンスプログラムの実行時間との和で求め られることを特徵とする請求項 1記載の C N C装置のプログ ラ厶実 ίτ方式。
PCT/JP1991/001569 1990-11-22 1991-11-15 Method for executing program for cnc equipment WO1992009940A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2/319765 1990-11-22
JP2319765A JP2752514B2 (ja) 1990-11-22 1990-11-22 Cnc装置のプロブラム実行方式

Publications (1)

Publication Number Publication Date
WO1992009940A1 true WO1992009940A1 (en) 1992-06-11

Family

ID=18113934

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1991/001569 WO1992009940A1 (en) 1990-11-22 1991-11-15 Method for executing program for cnc equipment

Country Status (3)

Country Link
EP (1) EP0512116A4 (ja)
JP (1) JP2752514B2 (ja)
WO (1) WO1992009940A1 (ja)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10152765B4 (de) 2001-07-13 2015-11-12 Siemens Aktiengesellschaft Verfahren zur elektronischen Bereitstellung von Diensten für Maschinen über eine Datenkommunikationsverbindung
US7395122B2 (en) 2001-07-13 2008-07-01 Siemens Aktiengesellschaft Data capture for electronically delivered automation services
US6975913B2 (en) 2001-07-13 2005-12-13 Siemens Aktiengesellschaft Database system and method for industrial automation services
US20060085091A9 (en) 2001-07-13 2006-04-20 Martin Kiesel Electronic fingerprints for machine control and production machines
US7292900B2 (en) 2001-07-13 2007-11-06 Siemens Aktiengesellschaft Power distribution expert system
US7603289B2 (en) 2001-07-13 2009-10-13 Siemens Aktiengesellschaft System and method for electronic delivery of content for industrial automation systems
US7016759B2 (en) 2002-08-23 2006-03-21 Siemens Aktiengesellschaft Active resource control system method & apparatus
JP2011096114A (ja) * 2009-10-30 2011-05-12 Brother Industries Ltd 数値制御装置、工作機械の制御方法、及び工作機械の制御プログラム

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6186806A (ja) * 1984-10-04 1986-05-02 Shimadzu Corp デジタル制御演算方式
JPS61220001A (ja) * 1985-03-25 1986-09-30 Mitsubishi Electric Corp シ−ケンス制御・直接デイジタル制御混在型プロセスコントロ−ル方法
JPH0224703A (ja) * 1988-07-14 1990-01-26 Mitsubishi Electric Corp 数値制御装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4120583A (en) * 1970-12-28 1978-10-17 Hyatt Gilbert P High registration photomask method and apparatus
JPS5486887A (en) * 1977-12-22 1979-07-10 Toyoda Mach Works Ltd Numerical controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6186806A (ja) * 1984-10-04 1986-05-02 Shimadzu Corp デジタル制御演算方式
JPS61220001A (ja) * 1985-03-25 1986-09-30 Mitsubishi Electric Corp シ−ケンス制御・直接デイジタル制御混在型プロセスコントロ−ル方法
JPH0224703A (ja) * 1988-07-14 1990-01-26 Mitsubishi Electric Corp 数値制御装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP0512116A4 *

Also Published As

Publication number Publication date
JPH04195205A (ja) 1992-07-15
JP2752514B2 (ja) 1998-05-18
EP0512116A4 (en) 1993-11-03
EP0512116A1 (en) 1992-11-11

Similar Documents

Publication Publication Date Title
JP2935706B2 (ja) 加工プログラム修正方法
JP4044105B2 (ja) 系統毎に運転手段を切り替える機能を有する数値制御装置
WO1992009940A1 (en) Method for executing program for cnc equipment
JPH06276773A (ja) 駆動制御方法及び駆動制御装置
JP2660636B2 (ja) 射出成形機の射出制御方法
JP3041351B2 (ja) クロノグラフ機能付アナログ電子時計
JPS6029807A (ja) 機器異常監視システム
CN110968036A (zh) 数值控制装置
JPH03154104A (ja) 位置決め制御装置
KR0175846B1 (ko) 모터의 위치제어장치 및 그 위치제어방법
JP2963676B2 (ja) プログラマブルコントローラ
JPH04355682A (ja) 位置決め装置
JPH08263118A (ja) 位置誤差補正方式
JP3199132B2 (ja) 絶対位置管理装置
JPS6132105A (ja) プログラム設定装置
JPH07120175B2 (ja) 複合制御装置およびその制御方法
JPH0328912B2 (ja)
JPH0836413A (ja) Cncの時間管理方式
JPH11102223A (ja) サーボモータ制御システム
JPH06214609A (ja) プロセス制御方法および装置
JPH0828989B2 (ja) 電動機の制御装置
JPH081564A (ja) ロボット制御装置
JPS62154115A (ja) 数値制御装置
JPS62245402A (ja) デイジイタルサ−ボ系のゲイン変更方法
JPH10174495A (ja) モータの加減速駆動制御方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IT LU NL SE

WWE Wipo information: entry into national phase

Ref document number: 1991919810

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1991919810

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 1991919810

Country of ref document: EP