JPH0836413A - Time management system for cnc - Google Patents

Time management system for cnc

Info

Publication number
JPH0836413A
JPH0836413A JP17394294A JP17394294A JPH0836413A JP H0836413 A JPH0836413 A JP H0836413A JP 17394294 A JP17394294 A JP 17394294A JP 17394294 A JP17394294 A JP 17394294A JP H0836413 A JPH0836413 A JP H0836413A
Authority
JP
Japan
Prior art keywords
program
time
execution start
cnc
block
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
JP17394294A
Other languages
Japanese (ja)
Inventor
Shuji Ogawa
修二 小川
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 JP17394294A priority Critical patent/JPH0836413A/en
Publication of JPH0836413A publication Critical patent/JPH0836413A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To manage the execution start times of blocks of a working program on the numerical controller (CNC) side by making a required block of the working program include the command of the execution start time and executing the program of this block at the execution start time. CONSTITUTION:The CNC is constituted with a processor as the center, and the processor controls the whole of the CNC in accordance with the system program stored in a ROM. A working program 1 includes the command of the execution start time for each block, and a program read means 2 reads in the working program 1 with a block as the unit. An execution start command means 4 executes the execution start command when the counted value of a timer 3 which counts the time reaches the commanded execution start time, and a program execution means 5 executes the program of the block, whose execution start is commanded, to control the movement of each shaft. The time counted by the timer 3 is, for example, the time elapsed after the operation start of the CNC.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はCNCで実行する加工プ
ログラムの実行開始時間を管理するCNCの時間管理方
式に関し、特に各ブロックの実行開始時間を管理するC
NCの時間管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time management system of a CNC for managing the execution start time of a machining program executed by the CNC, and particularly to a C for managing the execution start time of each block.
It relates to a time management system of NC.

【0002】[0002]

【従来の技術】従来、CNCで実行する加工プログラム
は、ブロック毎にCNC側で読み込んで実行するように
している。この加工プログラムは、CNCが内蔵してい
るインタフェース信号をPC(プログラマブル・コント
ローラ)が制御することにより、その実行開始や停止が
行われている。
2. Description of the Related Art Conventionally, a machining program executed by a CNC is read and executed by the CNC for each block. This machining program is started and stopped by a PC (programmable controller) controlling an interface signal incorporated in the CNC.

【0003】図4は従来の加工プログラムの実行手順の
一例を示す図である。加工プログラムは、CNC51側
のメモリに書き込まれている。この加工プログラムは、
例えば時刻t11にプログラムPRO11を、時刻t1
2にプログラムPRO12を実行するように構成されて
いる。PC52側は、まず、時刻t11になったらCN
C51に起動指令を送る。これを受けたCNC51は、
プログラムPRO11を実行開始する。プログラムPR
O11が実行終了すると、CNC51は、次のブロック
のMコード(ここではM02)をPC52に送る。
FIG. 4 is a diagram showing an example of an execution procedure of a conventional machining program. The machining program is written in the memory on the CNC 51 side. This machining program is
For example, at the time t11, the program PRO11 is set to the time t1.
2 is configured to execute the program PRO12. On the PC52 side, first, at time t11, CN
Send a start command to C51. CNC51 which received this,
Start executing the program PRO11. Program PR
When the execution of O11 ends, the CNC 51 sends the M code of the next block (here, M02) to the PC 52.

【0004】このMコードを受けたPC52は、時刻t
12になるまで待機し、時刻t12になるとMコードの
完了信号をCNC51に送る。この完了信号を受けたC
NC51は、プログラムPRO12を実行する。このよ
うに、CNC51は、PC52の管理に従ってプログラ
ムを実行する。
Upon receipt of this M code, the PC 52 receives the time t.
It waits until 12 and at time t12, sends an M code completion signal to the CNC 51. C receiving this completion signal
The NC 51 executes the program PRO12. In this way, the CNC 51 executes the program according to the management of the PC 52.

【0005】[0005]

【発明が解決しようとする課題】しかし、このような従
来の方式では、PC52側のシーケンス・プログラムで
インタフェース信号の制御や時刻の監視を行う必要があ
った。また、加工プログラムのブロックを実行する度
に、CNC51とPC52との間でインタフェース信号
のやり取りを行うため、そのやり取りの時間分だけ実行
タイミングの精度が悪くなるという問題があった。
However, in such a conventional method, the sequence program on the PC 52 side needs to control the interface signal and monitor the time. In addition, since the interface signal is exchanged between the CNC 51 and the PC 52 every time the block of the machining program is executed, there is a problem that the accuracy of the execution timing is deteriorated by the exchange time.

【0006】本発明はこのような点に鑑みてなされたも
のであり、加工プログラムのブロックの実行開始時間を
CNC側のみで管理することのできるCNCの時間管理
方式を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a CNC time management system in which the execution start time of a block of a machining program can be managed only on the CNC side. .

【0007】[0007]

【課題を解決するための手段】本発明では上記課題を解
決するために、CNCで実行する加工プログラムの実行
開始時間を管理するCNCの時間管理方式において、必
要なブロックに実行開始時刻の指令が含まれる加工プロ
グラムと、前記加工プログラムをブロック単位で読み込
むプログラム読み込み手段と、時刻をカウントするタイ
マと、前記タイマのカウント値が前記指令された実行開
始時刻になると、実行開始指令を行う実行開始指令手段
と、前記実行開始指令がなされたブロックのプログラム
を実行するプログラム実行手段と、を有することを特徴
とするCNCの時間管理方式が提供される。
In order to solve the above problems, in the present invention, in a CNC time management system for managing the execution start time of a machining program executed by the CNC, a command of the execution start time is sent to a necessary block. A machining program included therein, a program reading means for reading the machining program in block units, a timer for counting time, and an execution start command for issuing an execution start command when the count value of the timer reaches the commanded execution start time. There is provided a time management system of CNC, characterized by comprising: means and a program execution means for executing the program of the block for which the execution start command is issued.

【0008】[0008]

【作用】加工プログラムには、必要なブロックに実行開
始時刻の指令が含まれている。プログラム読み込み手段
は、この加工プログラムをブロック単位で読み込む。実
行開始指令手段は、時刻をカウントするタイマのカウン
ト値が指令された実行開始時刻になると実行開始指令を
行う。プログラム実行手段は、実行開始指令がなされた
ブロックのプログラムを実行する。
In the machining program, necessary blocks include instructions for the execution start time. The program reading means reads this machining program in block units. The execution start command means issues an execution start command when the count value of the timer for counting time reaches the commanded execution start time. The program execution means executes the program of the block for which the execution start instruction has been issued.

【0009】[0009]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明のCNCの時間管理方式の機能の
概念を示す図である。加工プログラム1には、ブロック
毎に実行開始時刻の指令が含まれている。プログラム読
み込み手段2は、この加工プログラムをブロック単位で
読み込む。そして、実行開始指令手段4は、時刻をカウ
ントするタイマ3のカウント値が指令された実行開始時
刻になると実行開始指令を行う。プログラム実行手段5
は、実行開始指令がなされたブロックのプログラムを実
行し、各軸の移動を制御する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing the concept of the function of the time management system of the CNC of the present invention. The machining program 1 includes a command for the execution start time for each block. The program reading means 2 reads this machining program in block units. Then, the execution start instruction means 4 issues an execution start instruction when the count value of the timer 3 for counting time reaches the instructed execution start time. Program execution means 5
Executes the program of the block for which the execution start command is issued and controls the movement of each axis.

【0010】図2は本発明のCNCの時間管理方式を実
施する数値制御装置のハードウェアの概略構成を示すブ
ロック図である。数値制御装置(CNC)はプロセッサ
11を中心に構成されている。プロセッサ11はROM
12に格納されたシステム・プログラムに従って数値制
御装置全体を制御する。このROM12にはEPROM
あるいはEEPROMが使用される。
FIG. 2 is a block diagram showing a schematic configuration of hardware of a numerical controller for implementing the CNC time management system of the present invention. The numerical controller (CNC) is mainly composed of the processor 11. Processor 11 is ROM
The entire numerical controller is controlled according to the system program stored in 12. This ROM12 is EPROM
Alternatively, an EEPROM is used.

【0011】RAM13にはSRAM等が使用され、一
時的な計算データ、表示データ、入出力信号等が格納さ
れる。不揮発性メモリ14には図示されていないバッテ
リによってバックアップされたCMOSが使用され、電
源切断後も保持すべきパラメータ、加工プログラム、工
具補正データ、ピッチ誤差補正データ等が記憶される。
An SRAM or the like is used for the RAM 13, and temporary calculation data, display data, input / output signals, etc. are stored therein. The non-volatile memory 14 uses a CMOS backed up by a battery (not shown), and stores parameters, machining programs, tool correction data, pitch error correction data and the like that should be retained even after the power is turned off.

【0012】CRT/MDIユニット20は、数値制御
装置の前面あるいは機械操作盤と同じ位置に配置され、
データ及び図形の表示、データ入力、数値制御装置の運
転に使用される。グラフィック制御回路21は数値デー
タ及び図形データ等のディジタル信号を表示用のラスタ
信号に変換し、表示装置22に送り、表示装置22はこ
れらの数値及び図形を表示する。表示装置22にはCR
Tあるいは液晶表示装置が使用される。
The CRT / MDI unit 20 is arranged on the front surface of the numerical controller or at the same position as the machine operation panel.
Used to display data and graphics, input data, and operate numerical control equipment. The graphic control circuit 21 converts a digital signal such as numerical data and graphic data into a raster signal for display and sends the raster signal to the display device 22, and the display device 22 displays these numerical values and graphics. CR on the display device 22
A T or liquid crystal display device is used.

【0013】キーボード23は数値キー、シンボリック
キー、文字キー及び機能キーから構成され、加工プログ
ラムの作成、編集及び数値制御装置の運転に使用され
る。ソフトウェアキー24は表示装置22の下部に設け
られ、その機能は表示装置22に表示される。表示装置
22の画面が変化すれば、表示される機能に対応して、
ソフトウェアキー24の機能も変化する。
The keyboard 23 is composed of numerical keys, symbolic keys, character keys and function keys, and is used for creating and editing a machining program and operating the numerical control device. The software key 24 is provided below the display device 22, and its function is displayed on the display device 22. If the screen of the display device 22 changes, corresponding to the displayed function,
The function of the software key 24 also changes.

【0014】軸制御回路15はプロセッサ11からの軸
の移動指令を受けて、軸の移動指令をサーボアンプ16
に出力する。サーボアンプ16はこの移動指令を増幅
し、工作機械30に結合されたサーボモータを駆動し、
工作機械30の工具とワークの相対運動を制御する。な
お、軸制御回路15及びサーボアンプ16は、サーボモ
ータの軸数に対応した数だけ設けられる。
The axis control circuit 15 receives the axis movement command from the processor 11, and outputs the axis movement command to the servo amplifier 16
Output to. The servo amplifier 16 amplifies this movement command and drives a servo motor coupled to the machine tool 30,
It controls the relative motion of the tool and the work of the machine tool 30. The axis control circuits 15 and the servo amplifiers 16 are provided by the number corresponding to the number of axes of the servo motor.

【0015】タイマ17は、図示されていないクロック
を分周して時刻をカウントする。この時刻は、例えばC
NCの運転開始からの経過時間である。プロセッサ11
は、このタイマ17のカウント値をバス19を介して定
期的に読みにいく。
The timer 17 divides a clock (not shown) to count the time. This time is, for example, C
This is the elapsed time from the start of operation of the NC. Processor 11
Periodically reads the count value of the timer 17 via the bus 19.

【0016】PCの一種であるPMC(プログラマブル
・マシン・コントローラ)18は、プロセッサ11から
バス19経由でM(補助)機能信号、S(スピンドル速
度制御)機能信号、T(工具選択)機能信号等を受け取
る。そして、これらの信号をシーケンス・プログラムで
処理して、出力信号を出力し、工作機械30内の空圧機
器、油圧機器、電磁アクチュエイタ等を制御する。ま
た、工作機械30内の機械操作盤のボタン信号、スイッ
チ信号及びリミットスイッチ等の信号を受けて、シーケ
ンス処理を行い、バス19を経由してプロセッサ11に
必要な入力信号を転送する。
A PMC (programmable machine controller) 18, which is a type of PC, receives M (auxiliary) function signals, S (spindle speed control) function signals, T (tool selection) function signals, etc. from the processor 11 via the bus 19. To receive. Then, these signals are processed by a sequence program and output signals are output to control pneumatic equipment, hydraulic equipment, electromagnetic actuators and the like in the machine tool 30. Further, it receives a signal of a button, a switch signal, a limit switch, etc. of the machine operation panel in the machine tool 30, performs a sequence process, and transfers a necessary input signal to the processor 11 via the bus 19.

【0017】なお、図2ではスピンドルモータ制御回路
及びスピンドルモータ用アンプ等は省略してある。ま
た、上記の例ではプロセッサ11は1個で説明したが、
複数のプロセッサを使用してマルチプロセッサ構成にす
ることもできる。
In FIG. 2, the spindle motor control circuit, the spindle motor amplifier, etc. are omitted. In the above example, the number of processors 11 is one, but
It is also possible to use multiple processors in a multiprocessor configuration.

【0018】次に、このような構成の数値制御装置にお
ける時間管理方式の具体的な手順を説明する。図3は加
工プログラムの一例を示す図である。加工プログラム4
0の各ブロックのプログラムには、そのプログラムの実
行開始時刻を指定する命令文TIMEが付加されてい
る。例えば、プログラム番号N0001では、TIME
t1、すなわち時刻t1にプログラムPRO1を実行開
始する指令がなされている。同様に、プログラム番号N
0002では、TIMEt2、すなわち時刻t2にプロ
グラムPRO2を実行開始する指令がなされている。な
お、ここでは、各プログラムの内容をPRO1、PRO
2と表したが、実際のプログラムは、Gコード、座標指
令、速度指令等によって構成されている。
Next, a specific procedure of the time management system in the numerical controller having such a configuration will be described. FIG. 3 is a diagram showing an example of the machining program. Processing program 4
An instruction statement TIME designating the execution start time of the program is added to the program of each block of 0. For example, in program number N0001, TIME
A command to start execution of the program PRO1 is issued at t1, that is, at time t1. Similarly, program number N
In 0002, a command to start executing the program PRO2 at TIME t2, that is, time t2 is issued. In addition, the contents of each program are shown here as PRO1, PRO.
Although shown as 2, the actual program is composed of G codes, coordinate commands, speed commands, and the like.

【0019】このような加工プログラム40を実行する
場合には、最初のブロックであるプログラム番号N00
01の実行開始に関しては、PMC18から起動指令信
号が送られるとプロセッサ11は、時刻の指令TIME
t1およびプログラムPRO1を読み込む。そして、タ
イマ17のカウント値が時刻t1になると、そのタイミ
ングでプロセッサ11がプログラム番号N0001のプ
ログラムPRO1を実行開始する。
When executing such a machining program 40, the program number N00 which is the first block
Regarding the start of execution of 01, when the start command signal is sent from the PMC 18, the processor 11 causes the time command TIME.
Read t1 and program PRO1. Then, when the count value of the timer 17 reaches the time t1, the processor 11 starts executing the program PRO1 having the program number N0001 at that timing.

【0020】プログラムPRO1の実行が終了すると、
プロセッサ11は、プログラム番号N0002の時刻の
指令TIMEt2およびプログラムPRO2を読み込
む。そして、タイマ17のカウント値が時刻t2になる
と、プログラムPRO2を実行開始する。以後は、同様
の手順で各ブロックのプログラムを実行していく。
When the execution of the program PRO1 is completed,
The processor 11 reads the command TIMEt2 and the program PRO2 at the time of the program number N0002. Then, when the count value of the timer 17 reaches the time t2, the execution of the program PRO2 is started. After that, the program of each block is executed in the same procedure.

【0021】このように、本実施例では、加工プログラ
ムの実行開始時刻をそのブロックのプログラムに付加
し、その開始時刻を数値制御装置側で監視するようにし
たので、PMC18側に負担をかけることなく、加工時
間の管理を正確に行うことができる。
As described above, in this embodiment, the execution start time of the machining program is added to the program of the block, and the start time is monitored on the side of the numerical controller, so that the PMC 18 side is burdened. Therefore, the processing time can be accurately controlled.

【0022】[0022]

【発明の効果】以上説明したように本発明では、加工プ
ログラムの必要なブロックに実行開始時刻の指令を含
み、指令された実行開始時刻になるとそのブロックのプ
ログラムを実行するようにしたので、PC側に負担をか
けることなく、加工時間の管理を正確に行うことができ
る。
As described above, according to the present invention, the necessary block of the machining program includes the instruction of the execution start time, and when the instructed execution start time is reached, the program of the block is executed. The processing time can be accurately managed without imposing a burden on the side.

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

【図1】本発明のCNCの時間管理方式の機能の概念を
示す図である。
FIG. 1 is a diagram showing a concept of a function of a CNC time management system of the present invention.

【図2】本発明のCNCの時間管理方式を実施する数値
制御装置のハードウェアの概略構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a schematic configuration of hardware of a numerical control device that implements a CNC time management system of the present invention.

【図3】加工プログラムの一例を示す図である。FIG. 3 is a diagram showing an example of a machining program.

【図4】従来の加工プログラムの実行手順の一例を示す
図である。
FIG. 4 is a diagram showing an example of an execution procedure of a conventional machining program.

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

1 加工プログラム 2 プログラム読み込み手段 3 タイマ 4 実行開始指令手段 5 プログラム実行手段 11 プロセッサ 12 ROM 13 RAM 17 タイマ 18 PMC 40 加工プログラム 1 Machining Program 2 Program Reading Means 3 Timer 4 Execution Start Command Means 5 Program Executing Means 11 Processor 12 ROM 13 RAM 17 Timer 18 PMC 40 Machining Program

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CNCで実行する加工プログラムの実行
開始時間を管理するCNCの時間管理方式において、 必要なブロックに実行開始時刻の指令が含まれる加工プ
ログラムと、 前記加工プログラムをブロック単位で読み込むプログラ
ム読み込み手段と、 時刻をカウントするタイマと、 前記タイマのカウント値が前記指令された実行開始時刻
になると、実行開始指令を行う実行開始指令手段と、 前記実行開始指令がなされたブロックのプログラムを実
行するプログラム実行手段と、 を有することを特徴とするCNCの時間管理方式。
1. A CNC time management method for managing the execution start time of a machining program executed by a CNC, a machining program in which a necessary block includes an instruction of an execution start time, and a program for reading the machining program in block units. A reading unit, a timer for counting time, an execution start command unit for issuing an execution start command when the count value of the timer reaches the commanded execution start time, and a program for the block for which the execution start command is issued. A time management system for a CNC, comprising:
【請求項2】 前記タイマは、前記CNCの運転開始か
らの経過時間をカウントするように構成されていること
を特徴とする請求項1記載のCNCの時間管理方式。
2. The time management system for a CNC according to claim 1, wherein the timer is configured to count an elapsed time from the start of operation of the CNC.
JP17394294A 1994-07-26 1994-07-26 Time management system for cnc Pending JPH0836413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17394294A JPH0836413A (en) 1994-07-26 1994-07-26 Time management system for cnc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17394294A JPH0836413A (en) 1994-07-26 1994-07-26 Time management system for cnc

Publications (1)

Publication Number Publication Date
JPH0836413A true JPH0836413A (en) 1996-02-06

Family

ID=15969930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17394294A Pending JPH0836413A (en) 1994-07-26 1994-07-26 Time management system for cnc

Country Status (1)

Country Link
JP (1) JPH0836413A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026660A (en) * 2008-07-16 2010-02-04 Mitsubishi Electric Corp Numerical control device
CN102540970A (en) * 2010-12-28 2012-07-04 兄弟工业株式会社 Machine tool and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026660A (en) * 2008-07-16 2010-02-04 Mitsubishi Electric Corp Numerical control device
CN102540970A (en) * 2010-12-28 2012-07-04 兄弟工业株式会社 Machine tool and control method thereof

Similar Documents

Publication Publication Date Title
JP2641797B2 (en) Interactive numerical controller
JP2003303005A (en) Numerical control device
EP0397887B1 (en) Method of correcting machining program
US5815399A (en) Multi-path synchronization system for CNC controller
JPH08123515A (en) Display system for sequence program
JPH04237306A (en) Method for restarting punch press machine and neumerical control device
JPH0836413A (en) Time management system for cnc
JP6787951B2 (en) Numerical control device
JPH08278804A (en) Diagnostic system for sequence program
JPH0822313A (en) Numerical controller
KR890001355B1 (en) Numerical control device
JPH07230312A (en) Cnc system
EP0530364A1 (en) Interactive numerical controller
JP2702555B2 (en) Numerical control unit reordering method
JPH0895623A (en) Tool shift control system in cnc
JPH07334225A (en) Program executing system for cnc
JPS61260304A (en) Numerical controller
JPH08234821A (en) Tool move control system for cnc
JPH08263120A (en) Current position display system for cnc
JPH04235603A (en) Pc signal trace control system
JPH06175708A (en) Sequence program execution system
JPH07271418A (en) Editing system for nc program
JPH08278806A (en) Cnc macro variable debugging system
JPH0277904A (en) Nc data origination method
JPH03172901A (en) Comment display system for cnc

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030819