JPH01181104A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH01181104A
JPH01181104A JP541488A JP541488A JPH01181104A JP H01181104 A JPH01181104 A JP H01181104A JP 541488 A JP541488 A JP 541488A JP 541488 A JP541488 A JP 541488A JP H01181104 A JPH01181104 A JP H01181104A
Authority
JP
Japan
Prior art keywords
language program
level language
control unit
memory
program
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
JP541488A
Other languages
Japanese (ja)
Inventor
Makoto Nishimura
眞 西村
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP541488A priority Critical patent/JPH01181104A/en
Publication of JPH01181104A publication Critical patent/JPH01181104A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To easily restore a numerical controller by storing the stop state of a device to be controlled based on the signals received from a sequence control part, a numerical control language program control part, etc., and then reading out the stop state by a high-level language program control part. CONSTITUTION:When the operation of a machine tool 12 is stopped, a system control part 1 stores the stop state of the tool 12 into a stop state memory 18 and then stops the tool 12. A high-level language program control part 6 receives input of a start signal from a sequence control part 2 or an NC language program control part 6 via interfaces 10 and 8. Then the part 6 can read the stop state of the tool 12 out of the memory 18 via an interface 19 in case the reoperation is needed for the tool 12. Then the read-out data is added into a high-level language program and also can be outputted to the part 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、NG(数値制御)工作m械等の自動制御を
行う数値制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device that automatically controls NG (numerical control) machining tools and the like.

〔従来の技術〕[Conventional technology]

工作機械等を自動制御する数値制御装置としては、例え
ば第2図に示すようなものがある。図において、(1)
は後述する被制御装置を含む全体の制御を行うシステム
制御部、(2)はメモリ(3)に格納されているシーケ
ンスプログラムを解読して上記被制御装置のシーケンス
制御を行うシーケンス制御部、(4)はメモリ(5)に
格納されているNC言語プログラム(加ニブログラム)
を解読するNC言語プログラム制御部で、解読された制
御指令は上記シーケンス制御部(2)の制御指令と共に
システム制御部(1)に入力される。(6)はメモリ(
7)に予め格納された高位言語による制御プログラムを
解読してシステム制御部(1)に制御指令を出力する高
位言語プログラム制御部、(8)は上記NC言語プログ
ラム制御部(4)と高位言語プログラム制御部(δ)の
間に接続されたインターフェース(1/F)、(9)は
NC言語プログラム制御部(4)とシーケンス制御部(
2)の間に接続されたインターフェース、(10)はシ
ーケンス制御部(2)と高位言語プログラム制御部(6
)の間に接続されたインターフェースで、シーケンス制
御部(2)からも高位言語プログラムか格納されたメモ
リ(7)の起動、停止、制御等を行えるようになってい
る。
An example of a numerical control device that automatically controls machine tools and the like is shown in FIG. In the figure, (1)
(2) is a sequence control unit that performs sequence control of the controlled device by decoding a sequence program stored in the memory (3); 4) is the NC language program (Canada program) stored in the memory (5)
The decoded control command is input to the system control part (1) together with the control command of the sequence control part (2). (6) is memory (
7) is a high-level language program control unit that decodes a control program written in a high-level language stored in advance and outputs a control command to the system control unit (1); The interface (1/F) (9) connected between the program control unit (δ) is the NC language program control unit (4) and the sequence control unit (
The interface (10) connected between the sequence control unit (2) and the high-level language program control unit (6)
), the sequence control unit (2) can also start, stop, and control the memory (7) in which a high-level language program is stored.

(11)は上記各制御指令の出力状態あるいは被制御装
置の動作状況などを表示する表示部、(12)は前述し
た被制御装置である工作機械で、内部に駆動用モータ(
13)を有している。(14)は工作機械(12)の操
作盤、(15)は上記モータ(13)の駆動を制御する
駆動制御部で、その駆動信号は駆動増幅器(16)を介
してモータ(13)に供給される。(17)は操作盤(
14)とシーケンス制御部(2)の間に接続された入出
力用のインターフェースである。
(11) is a display unit that displays the output status of each of the control commands or the operating status of the controlled device, and (12) is the machine tool that is the controlled device described above, and has a drive motor (
13). (14) is the operation panel of the machine tool (12), (15) is a drive control unit that controls the drive of the motor (13), and the drive signal is supplied to the motor (13) via the drive amplifier (16). be done. (17) is the operation panel (
14) and the sequence control unit (2).

次に動作について説明する。上述したシーケンスプログ
ラム、NC言語プログラム及び高位言語プログラムは、
それぞれ独立して編集されており、NG装置の制御プロ
グラムとして各メモリ(3)、(5)、(7)に記憶さ
れている。そして自動運転時には、工作機械(12)や
その操作盤(14)からの信号がインターフェース(1
7)を通してシーケンス制御部(2)に人力され、それ
らの人力信号の条件、つまりモータ(13)等の駆動状
態に応じて上記シーケンスプログラムが実行される。ま
た、メモリ(5)に格納されているNC言語プログラム
の動作は、シーケンス制御部(2)からインターフェー
ス(9)を介してNC言語プログラム制御部(4)に起
動信号が人力された時に実行され、同様にメモリ(7)
に格納されている高位言語プログラムの動作も、シーケ
ンス制御部(2)からインターフェース(lO)を介し
て高位言語プログラム制御部(6)に起動信号か人力さ
れた時に実行される。なお、この高位言語プログラムの
動作は、NC言語プログラム制御部(4)からインター
フェース(8)を介して起動信号が与えられた時にも実
行される。その際、各プログラムは各々のプログラム制
御部(4)、(6)で解読され、前述したようにその制
御指令はシステム制御部(1)に伝達される。そして、
このシステム制御部(1)から設定表示部(11)及び
駆動制御部(15)に制御信号が送出され、その結果工
作機械(12)の動作制御が行われると共に、表示パネ
ルに上記制御指令の内容などが表示される。
Next, the operation will be explained. The above-mentioned sequence program, NC language program, and high-level language program are
Each program is edited independently and stored in each memory (3), (5), and (7) as a control program for the NG device. During automatic operation, signals from the machine tool (12) and its operation panel (14) are transmitted to the interface (1).
7) to the sequence control unit (2), and the sequence program is executed according to the conditions of those human power signals, that is, the driving state of the motor (13), etc. The operation of the NC language program stored in the memory (5) is executed when a start signal is manually input from the sequence control unit (2) to the NC language program control unit (4) via the interface (9). , as well as memory (7)
The operations of the high-level language program stored in the high-level language program are also executed when a start signal is manually input from the sequence control section (2) to the high-level language program control section (6) via the interface (IO). The operation of this high-level language program is also executed when a start signal is given from the NC language program control section (4) via the interface (8). At this time, each program is decoded by each program control section (4), (6), and the control command is transmitted to the system control section (1) as described above. and,
Control signals are sent from the system control section (1) to the setting display section (11) and the drive control section (15), and as a result, the operation of the machine tool (12) is controlled, and the control commands are displayed on the display panel. Contents etc. are displayed.

(発明が解決しようとする課題〕 従来の数値制御装置は上記のように構成されており、高
位言語プログラム制御部(6)によって実行中のプログ
ラム番号、工作機械(12)の駆動部の座標値等は知る
ことができるが、被制御装置である工作機械(12)が
停止した時、その時実行中であったプログラム番号、シ
ーケンス番号、その他補助機能コード、Gコードなど停
止時の状態を後で知ることができず、停止状態からの復
旧、再運転が容易でなく、プログラムの作成が容易でな
いという課題があった。
(Problems to be Solved by the Invention) The conventional numerical control device is configured as described above, and the high-level language program control unit (6) controls the program number being executed and the coordinate values of the drive unit of the machine tool (12). However, when the machine tool (12), which is a controlled device, stops, the state at the time of the stop, such as the program number, sequence number, other auxiliary function codes, and G codes that were being executed at that time, can be known later. There were problems in that it was not easy to recover from a stopped state or restart operation, and it was not easy to create a program.

この発明は、このような課題を解消するためになさ、れ
たもので、被制御装置が停止した場合、その停止時の状
態を後で知ることができ、復旧、再運転が容易で、プロ
グラムの作成も容易な数値制御装置を得ることを目的と
している。
This invention was made to solve these problems. When a controlled device stops, the state at the time of the stop can be known later, recovery and restart are easy, and the program The purpose is to obtain a numerical control device that is easy to create.

(課題を解決するための手段) この発明に係る数値制御装置は、被制御装置を含む全体
の制御を行うシステム制御部と、被制御装置のシーケン
ス制御を行うシーケンス制御部と、数値制御言語による
プログラムに従って被制御装置の動作制御を行う数値制
御言語プログラム制御部と、高位言語によるプログラム
に従って被制御装置の制御を行う高位言語プログラム制
御部と、被制御装置の停止時の状態を上記高位言語プロ
グラム制御部で読み取り可能に記憶するメモリとが備え
られ、高位言語プログラム制御部で読み取ったメモリの
記憶データが必要に応じて出力されるように構成されて
いる。
(Means for Solving the Problems) A numerical control device according to the present invention includes a system control section that controls the entire system including a controlled device, a sequence control section that performs sequence control of the controlled device, and a numerical control device that uses a numerical control language. A numerical control language program control unit that controls the operation of a controlled device according to a program, a high-level language program control unit that controls the controlled device according to a program written in a high-level language, and a high-level language program that controls the state of the controlled device when it is stopped. The computer is also provided with a memory for storing data readable by the control section, and is configured such that data stored in the memory read by the high-level language program control section is output as necessary.

〔作用] 被制御装置は、システム制御部、シーケンス制御部、数
値制御言語プログラム制御部及び高位言語プログラム制
御部によって制御されており、この被制御装置が停止す
ると、その停止時の状態がシーケンス制御部、数値制御
言語プログラム制御部等からの信号に基づいてメモリに
記憶される。
[Operation] The controlled device is controlled by the system control section, the sequence control section, the numerical control language program control section, and the high-level language program control section, and when the controlled device stops, the state at the time of the stop is controlled by the sequence control section. The information is stored in the memory based on signals from the controller, numerical control language program controller, etc.

そして、高位言語プログラム制御部は、そのメモリに記
憶された停止時の状態を読み取り、必要に応じてシステ
ム制御部等に出力する。これによリ、停止状態からの復
旧、再運転が容易になる。
Then, the high-level language program control section reads the state at the time of stop stored in the memory, and outputs it to the system control section etc. as necessary. This makes it easier to recover from a stopped state and restart operation.

〔実施例〕〔Example〕

以下、この発明の一実施例を第1図に基づいて説明する
。第1図はこの発明に係る数値制御装置の回路構成を示
すブロック図であり、前述の第2図と同一符号は同一部
分を示している。この実施例に係る数値制御装置は、従
来装置のシステム制御部(1)、シーケンス制御部(2
)、数値制御言語プログラム制御部(4)及び高位言語
プログラム制御部(6)に加え、被制御装置である工作
機械(12)−が停止した時、その停止時の状態(例え
ば駆動部の座標値、実行中のプログラム番号、シーケン
ス番号、その他の抽助機能コード、使用タップなど)を
シーケンス制御部(2)あるいは数値制御言語プログラ
ム制御部(4)などからの信号に基づいて記憶する停止
状態格納用のメモリ(18)がシステム制御部(1) 
 に接続して設けられている。また、このメモリ(18
)はインターフェース(19)を介して高位言語プログ
ラム制御部(6)と接続されており、上記メモリ(18
)の記憶データを高位言語プログラム制御部(6)で読
み取り、システム制御部(1)に出力できるように構成
されている。
An embodiment of the present invention will be described below with reference to FIG. FIG. 1 is a block diagram showing the circuit configuration of a numerical control device according to the present invention, and the same reference numerals as in FIG. 2 above indicate the same parts. The numerical control device according to this embodiment has a system control section (1) and a sequence control section (2) of the conventional device.
), numerical control language program control section (4) and high-level language program control section (6), when the machine tool (12) - which is the controlled device, stops, the state at the time of stop (for example, the coordinates of the drive section) A stop state in which values, running program number, sequence number, other extraction function codes, used taps, etc.) are stored based on signals from the sequence control unit (2) or numerical control language program control unit (4), etc. The storage memory (18) is the system control unit (1)
It is connected to. Also, this memory (18
) is connected to the high-level language program control unit (6) via the interface (19), and the memory (18)
) can be read by a high-level language program control unit (6) and output to a system control unit (1).

次に動作について説明する。基本的な動作については前
述した従来例と同様であるので重複する説明は省略する
が、システム制御部(1)は工作機械(12)を運転状
態から停止状態にする時、先ずその停止時の工作機械(
12)の状態をメモリ(18)に格納し、その後工作機
t4 (12)を停止させる。このメモ!J (18)
の内容は、次に工作機械(12)が運転状態から停止状
態になるまで更新されない。
Next, the operation will be explained. The basic operation is the same as that of the conventional example described above, so a redundant explanation will be omitted. Machine Tools(
12) is stored in the memory (18), and then the machine tool t4 (12) is stopped. This memo! J (18)
The contents of are not updated until the next time the machine tool (12) changes from the operating state to the stopped state.

そして、シーケンス制御部(2)あるいはNG言語プロ
グラム制御部(4)からインターフェース(lO)、(
8)を介して起動信号が人力された高位言語プログラム
制御部(6)は、工作機械(12)の再運転時など必要
な時に上記メモリ(18)からインターフェース(19
)を通して停止時の状態を読み取ることができ、そのデ
ータを高位言語プログラム中に取り込み、またシステム
制御部(1)に出力することができる。従って、停止状
態からの復旧、再運転をその停止時の状態を判断しなが
ら実施でき、復旧、再運転が容易になると共に、プログ
ラムの作成も容易になる。
Then, from the sequence control unit (2) or the NG language program control unit (4) to the interface (lO), (
The high-level language program control unit (6) to which the start signal is input manually via the memory (18) receives the data from the interface (19) from the memory (18) when necessary, such as when restarting the machine tool (12).
), the state at the time of stop can be read, and the data can be incorporated into the high-level language program and output to the system control unit (1). Therefore, recovery from a stopped state and re-operation can be carried out while determining the state at the time of stop, which facilitates recovery and restart, and also facilitates the creation of programs.

なお、上記実施例で工作機械(12)の停止時の状態を
メモリ(18)に格納するタイミングがメモリ(3)に
格納され、このメモリ(3)に格納されたシーケンスプ
ログラムからの信号をストローブ信号としてシーケンス
制御部(2)からシステム制御部(1)へ伝達した時と
しても良い。
In addition, in the above embodiment, the timing at which the state of the machine tool (12) at the time of stopping is stored in the memory (18) is stored in the memory (3), and the signal from the sequence program stored in this memory (3) is strobed. It may be transmitted as a signal from the sequence control section (2) to the system control section (1).

[発明の効果] 以上のようにこの発明によれば、被制御装置の停止時の
状態を後でプログラム制御部で読み取れるようにしたの
で、被制御装置の停止状態からの復旧、再運転が容易に
なり、プログラムの作成も容易になるという効果がある
[Effects of the Invention] As described above, according to the present invention, the state of the controlled device when it is stopped can be read later by the program control unit, so it is easy to recover the controlled device from the stopped state and restart the operation. This has the effect of making it easier to create programs.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は従来の数値制御装置の回路構成を示すブロック図であ
る。 (1)・・・システム制御部、 (2)・・・シーケンス制御部、 (3)・・・メモリ、 (4)・・・NG言語プログラム制御部、(5)・・・
メモリ、 (6)・・・高位言語プログラム制御部、(7)・・・
メモリ、 (12)・・・工作機械(被制御装置)、(18)・・
・停止状態格納用のメモリ。 なお、図中同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing the circuit configuration of a conventional numerical control device. (1)...System control unit, (2)...Sequence control unit, (3)...Memory, (4)...NG language program control unit, (5)...
Memory, (6)...High-level language program control unit, (7)...
Memory, (12)...Machine tool (controlled device), (18)...
-Memory for storing stop status. Note that the same reference numerals in the figures indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 被制御装置を含む全体の制御を行うシステム制御部と、
上記被制御装置のシーケンス制御を行うシーケンス制御
部と、数値制御言語によるプログラムに従って被制御装
置の動作制御を行う数値制御言語プログラム制御部と、
高位言語によるプログラムに従って被制御装置の制御を
行う高位言語プログラム制御部と、被制御装置の停止時
の状態を上記高位言語プログラム制御部で読み取り可能
に記憶するメモリとを備え、高位言語プログラム制御部
で読み取った上記メモリの記憶データを必要に応じて出
力することを特徴とする数値制御装置。
a system control unit that controls the entire system including the controlled device;
a sequence control unit that performs sequence control of the controlled device; a numerical control language program control unit that controls the operation of the controlled device according to a program written in a numerical control language;
The high-level language program control section includes a high-level language program control section that controls a controlled device according to a program written in a high-level language, and a memory that stores the state of the controlled device when the controlled device is stopped so that it can be read by the high-level language program control section. A numerical control device characterized in that the data stored in the memory read by the controller is output as necessary.
JP541488A 1988-01-13 1988-01-13 Numerical controller Pending JPH01181104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP541488A JPH01181104A (en) 1988-01-13 1988-01-13 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP541488A JPH01181104A (en) 1988-01-13 1988-01-13 Numerical controller

Publications (1)

Publication Number Publication Date
JPH01181104A true JPH01181104A (en) 1989-07-19

Family

ID=11610485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP541488A Pending JPH01181104A (en) 1988-01-13 1988-01-13 Numerical controller

Country Status (1)

Country Link
JP (1) JPH01181104A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05100728A (en) * 1991-10-08 1993-04-23 Mitsubishi Electric Corp System and device for drive control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05100728A (en) * 1991-10-08 1993-04-23 Mitsubishi Electric Corp System and device for drive control

Similar Documents

Publication Publication Date Title
EP0121187B1 (en) Tool support synchronizing system for numerical control apparatus
US4714999A (en) Numerical control method
JP3211422B2 (en) Robot controller
JPH01181104A (en) Numerical controller
JPH0457003B2 (en)
JPS6154508A (en) Numerical controller
JPS59172009A (en) Numerical controller
JP2649801B2 (en) Display switching method in numerical controller
JPS63184109A (en) Numerical controller
JPH07152416A (en) Numerical controller having program restarting function
JPS6149206A (en) Process operation method
JPS61260304A (en) Numerical controller
JPS61107401A (en) Program format converting system between numerical controller and programmable controller for machine tool
JPS63116212A (en) Numerical controller
JPS63184108A (en) Numerical controller
JPH1078812A (en) Method for transferring data and device for controlling data transfer
KR840001219B1 (en) Programmable sequence controller
JPS63311446A (en) Power supply on/off function test system for logical device
JPS6170610A (en) Numerical controller
JPS626245B2 (en)
JPS62298810A (en) Subprogram start system in numerical controller
JPS6237720A (en) Power supply cut-off control system
JPH0782377B2 (en) Numerical control device
JPH03224005A (en) Numerically controlled machine tool
JPS6349805A (en) Automatic selection system for operation program of numerical controller