JPS63116212A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS63116212A
JPS63116212A JP26333786A JP26333786A JPS63116212A JP S63116212 A JPS63116212 A JP S63116212A JP 26333786 A JP26333786 A JP 26333786A JP 26333786 A JP26333786 A JP 26333786A JP S63116212 A JPS63116212 A JP S63116212A
Authority
JP
Japan
Prior art keywords
level language
program
sequence
data
high level
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
JP26333786A
Other languages
Japanese (ja)
Inventor
Makoto Nishimura
眞 西村
Tadashi Tsuboi
坪井 正
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 JP26333786A priority Critical patent/JPS63116212A/en
Publication of JPS63116212A publication Critical patent/JPS63116212A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To allow a sequence program to execute also difficult operation or the like by connecting an interface between a sequence program control part and a high level language control part so as to transmit/receive data. CONSTITUTION:A sequence program 3 is formed so that a start code or the like for high level language or data or the like required for operation is outputted to a position required for operation based upon the high level language. At the time of outputting the code or the like, a sequence control part 2 transfers the data to the high level language control part 6 through the interface 17 and decodes the data to transfer the decoded data to an objective program and start the program. The control part 2 decodes the sequence program 3, and when the decoded result is not a high level language starting command instruction, executes normal sequence processing. In case of the high level language starting command, a starting program number and the transferred data are read out and transferred to the control part 6 through the interface 17.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、シーケンス制御部から高位言語プログラム
の制御を可能とした数値制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device that enables control of a high-level language program from a sequence control unit.

〔従来の技術〕[Conventional technology]

従来の数値制御装置(以下NC装置と略称する)として
第6図に示すものがあった。図において、(1)はNC
装置全体の制御を行なうシステム制御部、(2)はシー
ケンスプログラム【8)の起動・停止や解読等を行なう
シーケンス制御部、(4)はNO言語で記述された加ニ
ブログラム(5)の起動・停止や解読を行なうNC言語
制御部、(6)は高位言語で記述された加ニブログラム
(γ)の起動・停止や解読等を行なう高位言語別(資)
部、(8)はNC言語制御部(4)ど高位言語別(m 
W <6)のインターフェース、(9)はNC言語制御
部(4)め−ケンス制御部(2)のインターフェースで
ある。
As a conventional numerical control device (hereinafter abbreviated as NC device), there is one shown in FIG. In the figure, (1) is NC
The system control section (2) controls the entire device, the sequence control section (2) starts, stops, and decodes the sequence program [8], and (4) starts/stops the program (5) written in the NO language. NC language control unit that performs stopping and decoding, (6) is a high-level language-specific (capital) unit that performs starting, stopping, decoding, etc. of the Canadian program (γ) written in a high-level language.
part, (8) is the NC language control part (4) and other high-level languages (m
(9) is the interface of the NC language control section (4) and the message control section (2).

また、00はプログラムの久方やN’C装置の動きを表
示したりする設定表示パネルであり、(6)は駆動増幅
器(抑に指令を出す駆動制御部、口3)は工f′Il:
機械(′1優の駆動用モータ、酷)は工作機械操作盤α
6)とシーケンス制御部(2)とのインターフェースで
ある。
Also, 00 is a setting display panel that displays the progress of the program and the movement of the N'C device, and (6) is the drive amplifier (drive control section that issues commands to the control, port 3) is the engineering f'Il :
The machine ('1 excellent drive motor, terrible) is a machine tool operation panel α
6) and the sequence control unit (2).

次に動作について説明する。まず加工用プログラムであ
るNC言語プログラム(5)と高位言語プログラム(7
)は独立して、偏集されN O装置の加工プロダラムと
して記憶される。自動運転時には%NONC言語プログ
ラム)が逐次実行される。また高位言語プログラム(7
)は次のようにして実行される。高位言語プログラム(
7)を起動するコードをあらかじめ設定しておき、NC
言語プログラム(5)の中で高位言語プログラム(7)
の起動が必要なところにそのコードを書き込み、NC言
語制御部(4)でNC言語プログラム(ア)を解読する
中で、そのコードが出力された時点で、インターフェー
ス(8)を通して高位言語制御部(6)に起動の指令を
出力し高位言語プログラム(7)の起動を行なう。すな
わち、従来のNC装置はNC言語プログラム(6)の中
から高位言語プログラム(7)の起動を行なうといった
構成になっている。
Next, the operation will be explained. First, the NC language program (5), which is a processing program, and the high-level language program (7)
) are independently concentrated and stored as a machining program in the NO device. %NONC language program) is executed sequentially during automatic operation. Also, high-level language programs (7
) is executed as follows. High-level language program (
7) Set the code to start up in advance, and
High-level language program (7) among language programs (5)
Write the code where it is necessary to start the program, and when the code is output while the NC language control unit (4) decodes the NC language program (a), it is sent to the higher level language control unit through the interface (8). A start command is output to (6) to start the high-level language program (7). That is, the conventional NC device is configured such that a high-level language program (7) is activated from among the NC language programs (6).

〔発明が解決しようとする問題点〕 従来のNC装置は以上のように構成されているので、高
位言語プログラムの起動はNC言語プログラムからのみ
可能であり、シーケンス制御部からの起動はできない構
成になっていた。シーケンスプログラムではプログラム
が複雑になり高位言語でプログラムを組み実行させたい
ような場合、従来の構成ではできないという問題点があ
った。
[Problems to be solved by the invention] Since the conventional NC device is configured as described above, the high-level language program can only be started from the NC language program, and cannot be started from the sequence control unit. It had become. The problem with sequence programs is that if the program becomes complex and you want to program and execute it in a high-level language, you cannot do so with the conventional configuration.

この発明は上記のような問題点を解消するためになされ
たもので、シーケンス制御部から高位言語の制御ができ
るNC装置を得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to obtain an NC device that can control a high-level language from a sequence control section.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

この発明に係るNC装置は、シーケンス制御部と高位言
語制御部の間にインターフェースを設けてシーケンス制
御部からの指令により高位言語の起動や停止制御等がで
きるようにしたものである。
In the NC device according to the present invention, an interface is provided between the sequence control section and the high-level language control section, so that the high-level language can be controlled to start and stop based on commands from the sequence control section.

〔作用〕[Effect]

この発明におけるNC装置において、高位言語の制御は
シーケンス制御部からの指令によりインターフェースを
通して高位言語制御部に信号が送られ制御が行なわれる
In the NC device according to the present invention, control of the high-level language is performed by sending signals to the high-level language control unit through the interface in response to commands from the sequence control unit.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。図中
、第3図と同一の部分は同一の符号を付して図示した。
An embodiment of the present invention will be described below with reference to the drawings. In the figure, the same parts as in FIG. 3 are designated by the same reference numerals.

第1図において、αηはシーケンス制御部(21と高位
言語制御部(6)とのインターフェースであり、シーケ
ンス制御部(2)から高位言語プログラム(γ)の起動
および停止制御等を可能にしている。
In FIG. 1, αη is an interface between the sequence control unit (21) and the high-level language control unit (6), which enables the sequence control unit (2) to control the start and stop of the high-level language program (γ), etc. .

次に動作について説明する。まず、シーケンスプログラ
ム(8)の中で高位言語による演算が必要なところに、
高位言語の起動コード及び起動するプログラムのナンバ
ー、さらには演算に必要なデータ等を出力するようにシ
ーケンスプログラム(8)を組んでおき、シーケンス制
御部(2)ではそれらのコードが出力されると、インタ
ーフェース(17)を通して高位言語制御部(6)へそ
れらのデータを渡し、高位言語制御部(6)ではそれら
のデータを解読して目的のプログラムにデータを渡し、
起動をかける。
Next, the operation will be explained. First, in the sequence program (8), where calculations using a high-level language are required,
A sequence program (8) is configured to output the startup code of the high-level language, the number of the program to be started, and data necessary for calculation, etc., and when those codes are output in the sequence control unit (2), , pass those data to the high-level language control unit (6) through the interface (17), and the high-level language control unit (6) decodes the data and passes the data to the target program,
Start it up.

すなわち、第2図はシーケンス制御部(2)のフローチ
ャートを示し、まず、シーケンスプログラム(8)の解
読(ステップ810)を行ない、高位言語起動指令命令
でないとき(ステップ511)は、通常のシーケンス処
理(ステップ512)へ行く、高位言語起動指令の場合
(ステップ811)は、起動プログラムナンバー及び引
き渡しデータの読み取り(ステップ813 )を行ない
、次にインターフェースα乃を通して高位言語制御部(
6)へそれらのデータが渡される(ステップ514)。
That is, FIG. 2 shows a flowchart of the sequence control unit (2). First, the sequence program (8) is decoded (step 810), and if it is not a high-level language activation command (step 511), normal sequence processing is performed. In the case of a high-level language activation command (step 811) that goes to (step 512), the activation program number and delivery data are read (step 813), and then the high-level language control unit (
6) (step 514).

以上、上記実施例は高位言語プログラム(7)の起動に
ついて説明したが、高位言語プログラム(7)の強制的
な停止も同様の処理で可能である。又、逆に高位言語プ
ログラム(7)からシーケンス側に指令を渡す場合にも
、高位言語制御部(6)をシーケンス制御部(2)のフ
ローチャートと同様の構成にすることにより実現できる
Although the above embodiment has described the activation of the high-level language program (7), it is also possible to forcibly stop the high-level language program (7) using similar processing. Conversely, when a command is passed from the high-level language program (7) to the sequence side, this can be realized by configuring the high-level language control section (6) in the same manner as the flowchart of the sequence control section (2).

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、シーケンスプログラム
制御部と高位言語制御部との間にインターフェースを設
けて、データの受は渡しができるように構成したので、
シーケンスプログラムカラ高位言語プログラムの起動や
停止などの制御を可能トし、シーケンスプログラムでは
難かしい演算なども簡単に記述して、実行可能となる効
果がある。
As described above, according to the present invention, an interface is provided between the sequence program control section and the high-level language control section so that data can be received and passed.
Sequence programs allow high-level language programs to be controlled such as starting and stopping, and operations that are difficult to use in sequence programs can be easily described and executed.

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

第1図はこの発明の一実施例によるNO装置のブロック
図、第2図はシーケンス制御部のフローチャート、第6
図は従来のNO装置のブロック図である。 (1)はシステム制御部、(2)はシーケンス制御部、
(4)はNC言語制御部、(6)は高位言語制御部、(
8)。 (9)、 a7)は各部のインターフェースである。 なお、各図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram of an NO device according to an embodiment of the present invention, FIG. 2 is a flowchart of a sequence control section, and FIG.
The figure is a block diagram of a conventional NO device. (1) is a system control unit, (2) is a sequence control unit,
(4) is the NC language control unit, (6) is the high-level language control unit, (
8). (9), a7) are interfaces of each part. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 数値制御装置全体の制御を行なうシステム制御部とシー
ケンス制御を行なうシーケンス制御部とNC言語制御部
及び高位言語制御部を有し、NC言語プログラムおよび
高位言語プログラムのソフトウェア制御によつて工作機
械等の自動制御を行なう数値制御装置において、上記シ
ーケンス制御部と高位言語制御部との間にインターフェ
ースを設け、シーケンス制御部からも高位言語プログラ
ムの起動および停止制御等を可能にしたことを特徴とす
る数値制御装置。
It has a system control section that controls the entire numerical control device, a sequence control section that performs sequence control, an NC language control section, and a high-level language control section. A numerical control device that performs automatic control, characterized in that an interface is provided between the sequence control section and the high-level language control section, so that the sequence control section can also start and stop the high-level language program. Control device.
JP26333786A 1986-11-05 1986-11-05 Numerical controller Pending JPS63116212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26333786A JPS63116212A (en) 1986-11-05 1986-11-05 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26333786A JPS63116212A (en) 1986-11-05 1986-11-05 Numerical controller

Publications (1)

Publication Number Publication Date
JPS63116212A true JPS63116212A (en) 1988-05-20

Family

ID=17388072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26333786A Pending JPS63116212A (en) 1986-11-05 1986-11-05 Numerical controller

Country Status (1)

Country Link
JP (1) JPS63116212A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59172009A (en) * 1983-03-22 1984-09-28 Mitsubishi Electric Corp Numerical controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59172009A (en) * 1983-03-22 1984-09-28 Mitsubishi Electric Corp Numerical controller

Similar Documents

Publication Publication Date Title
WO1990006544A1 (en) Method of correcting machining program
JPH02156334A (en) Information processor
JPS62184544A (en) Virtual computer system
JPS63116212A (en) Numerical controller
JPH0457003B2 (en)
JPH0760669A (en) Operation system for industrial machine
JPH0713779A (en) Multi-task controller
JPS6091404A (en) Industrial robbot
JPH01181104A (en) Numerical controller
JPS61107401A (en) Program format converting system between numerical controller and programmable controller for machine tool
JPS6240538A (en) Data processor
JPS63184109A (en) Numerical controller
JPS59194209A (en) Controller of robot
JPH0229848A (en) System control device
JPS62174832A (en) Information processor
WO1991001519A1 (en) System for resuming program for automatic operation
JPS63250712A (en) Control device for numerical control working machine
JPH02300801A (en) Numerical controller
JPH09325808A (en) Control method for driving equipment
JPS63184107A (en) Numerical controller
JPS6293734A (en) Information processor
JPH0317717A (en) Data processing system
JPH0115902B2 (en)
JPS6339942B2 (en)
JPH0727466B2 (en) Service processor Command processing method