Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0782377B2 - Numerical control device - Google Patents
[go: Go Back, main page]

JPH0782377B2 - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH0782377B2
JPH0782377B2 JP62015171A JP1517187A JPH0782377B2 JP H0782377 B2 JPH0782377 B2 JP H0782377B2 JP 62015171 A JP62015171 A JP 62015171A JP 1517187 A JP1517187 A JP 1517187A JP H0782377 B2 JPH0782377 B2 JP H0782377B2
Authority
JP
Japan
Prior art keywords
program
sequence
control unit
level language
language
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.)
Expired - Lifetime
Application number
JP62015171A
Other languages
Japanese (ja)
Other versions
JPS63184106A (en
Inventor
正 坪井
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 JP62015171A priority Critical patent/JPH0782377B2/en
Publication of JPS63184106A publication Critical patent/JPS63184106A/en
Publication of JPH0782377B2 publication Critical patent/JPH0782377B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は高位言語プログラムによりシステム制御部が使
用するソフトリミット値等のパラメータを書き換えられ
る数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to a numerical controller capable of rewriting parameters such as soft limit values used by a system control unit by a high-level language program.

[従来の技術] 従来の数値制御装置(以下、NC装置という)としては、
第2図に示すものがあった。第2図において、(1)は
NC装置全体を制御するシステム制御部、(2)は数値制
御言語(以下、NC言語という)で記述されており、ディ
スク(3)に記憶されている数値制御プログラム(以
下、NCプログラムという)の起動、停止及び解読等を行
なう数値制御言語制御部(以下、NC言語制御部とい
う)、(4)はシーケンス言語で記述されており、ディ
スク(5)に記憶されているシーケンスプログラムの起
動、停止及び解読等を行なうシーケンス制御部、(6)
は例えばBASIC言語、FORTRAN言語又はC言語等の高位言
語で記述されており、ディスク(7)に記憶されている
高位言語プログラムの起動、停止及び解読等を行なう高
位言語制御部、(8)はシステム制御部(1)とNC言語
制御部(2)とのインターフェイス、(9)はシステム
制御部(1)とシーケンス制御部(4)とのインターフ
ェイス、(20)はシステム制御部(1)と高位言語制御
部(6)とのインターフェイス、(10)はNC言語制御部
(2)とシーケンス制御部(4)とのインターフェイ
ス、(11)はNC言語制御部(2)と高位言語制御部
(6)とのインターフェイス、(12)はシーケンス制御
部(4)と高位言語制御部(6)とのインターフェイ
ス、(13)は駆動増幅器(14)を介して工作機械(15)
のモータ(16)を駆動する駆動制御部、(17)はシーケ
ンス制御部(4)と工作機械制御盤(18)及び工作機械
(15)とのインターフェイス(21)はシステム制御部
(1)が使用するソフトリミット値等のパラメータを記
憶しているデータメモリ、(22)はプログラムを入力し
たり、NC装置の動きを表示したりする設定表示パネルで
ある。
[Prior Art] As a conventional numerical control device (hereinafter referred to as NC device),
There was one shown in FIG. In Figure 2, (1) is
The system control unit (2) for controlling the entire NC device is described in a numerical control language (hereinafter referred to as NC language), and the numerical control program (hereinafter referred to as NC program) stored in the disk (3) Numerical control language control unit (hereinafter referred to as NC language control unit) for starting, stopping, decoding, etc., (4) is written in a sequence language, and starts and stops the sequence program stored in the disk (5). And a sequence control unit for decoding, (6)
Is written in a high-level language such as BASIC language, FORTRAN language or C language, and a high-level language control unit (8) for starting, stopping and decoding the high-level language program stored in the disk (7) is The interface between the system control unit (1) and the NC language control unit (2), (9) the interface between the system control unit (1) and the sequence control unit (4), and (20) the system control unit (1). Interface with high-level language control unit (6), (10) interface with NC language control unit (2) and sequence control unit (4), (11) with NC language control unit (2) and high-level language control unit ( 6) interface, (12) interface between sequence control section (4) and high-level language control section (6), (13) machine tool (15) via drive amplifier (14)
Is a drive control unit for driving the motor (16), (17) is a sequence control unit (4), a machine tool control panel (18), and an interface (21) between the machine tool (15) is a system control unit (1). A data memory for storing parameters such as soft limit values to be used, and (22) is a setting display panel for inputting programs and displaying movements of the NC device.

なお、NCプログラム及び高位言語プログラムは独立に編
集され、NC装置のプログラムとして、それぞれディスク
(3)及び(7)に記憶されている。
The NC program and the high-level language program are independently edited and stored in the disks (3) and (7) as programs of the NC device, respectively.

又、データメモリ(21)は予め設定表示パネル(22)に
よってパラメータが書き込まれている。
Further, the data memory (21) has parameters written in advance by the setting display panel (22).

さらに、高位言語プログラムは複雑な論理演算を高速に
行なうことができるが、同じことをNCプログラム又はシ
ーケンスプログラムで実行しようとすると、プログラム
が複雑になり、実行に時間がかかってしまうので、実質
的に工作機械を制御できなくなる。そこで、高位言語プ
ログラムにより複雑な論理演算を行なうようにしたので
ある。
Furthermore, a high-level language program can perform complex logical operations at high speed, but if the same program is tried to be executed by an NC program or a sequence program, the program becomes complicated and it takes a long time to execute. It becomes impossible to control the machine tool. Therefore, a high-level language program was used to perform complicated logical operations.

次に従来の数値制御装置の動作について説明する。自動
運転時にはディスク(3)に記憶されているNCプログラ
ムが逐次実行される。NCプログラムはシステム制御部
(1)、駆動制御部(13)及び駆動増幅器(14)を介し
てモータ(16)を駆動制御し工作機械(15)を動かす。
Next, the operation of the conventional numerical control device will be described. During automatic operation, NC programs stored in the disk (3) are sequentially executed. The NC program drives and controls the motor (16) via the system controller (1), the drive controller (13) and the drive amplifier (14) to move the machine tool (15).

次いで、シーケンス制御部(4)は工作機械(15)及び
工作機械制御盤(18)からインターフェイス(17)を介
して工作機械(15)の動作に応じた信号、例えば工作機
械(15)から工作機械(15)の位置を示す信号が機械入
出力インターフェイス(17)を通してシーケンス制御部
(4)に入力されると(例えば、リミットスイッチによ
る信号)、入力された信号に応じてシーケンスプログラ
ムを実行する。このシーケンスプログラムにはNCプログ
ラム又は高位言語プログラムを起動する命令が入ってい
る場合がある。
Next, the sequence control unit (4) sends a signal from the machine tool (15) and the machine tool control panel (18) via the interface (17) according to the operation of the machine tool (15), for example, from the machine tool (15). When a signal indicating the position of the machine (15) is input to the sequence control unit (4) through the machine input / output interface (17) (for example, a signal from a limit switch), the sequence program is executed according to the input signal. . This sequence program may contain an instruction to start an NC program or a high-level language program.

その場合、シーケンスプログラムにより起動されたNCプ
ログラムは、NC言語制御部(2)及びインターフェイス
(8)を介してシステム制御部(1)に信号を送る。シ
ステム制御部(1)はこの信号により、駆動制御部(1
3)及び駆動増幅機(14)を介してモータ(16)に制御
信号を送り、工作機械(15)を駆動制御する。
In that case, the NC program started by the sequence program sends a signal to the system control unit (1) via the NC language control unit (2) and the interface (8). Based on this signal, the system control unit (1) drives the drive control unit (1
A control signal is sent to the motor (16) via 3) and the drive amplifier (14) to drive and control the machine tool (15).

又、シーケンスプログラムにより起動された高位言語プ
ログラムは論理演算を行ない、その結果を高位言語制御
部(6)及びインターフェイス(20)を介してシステム
制御部(1)に送る。システム制御部(1)は工作機械
(15)から出力される信号(例えば、工作機械(15)の
位置を示す座標値等のパラメータ)とデータメモリ(2
1)に記憶されているパラメータ(例えば、ソフトリミ
ット値)とを比較して、工作機械(15)がソフトリミッ
ト値を越えたときは、設定表示パネル(22)にアラーム
表示をする。なお、ソフトリミット値とはプログラム的
に工作機械(15)が動き得る範囲を示す値である。
The high-level language program activated by the sequence program performs logical operation and sends the result to the system control unit (1) via the high-level language control unit (6) and the interface (20). The system control unit (1) outputs a signal (for example, a parameter such as a coordinate value indicating the position of the machine tool (15)) output from the machine tool (15) and a data memory (2).
The parameter (for example, soft limit value) stored in 1) is compared, and when the machine tool (15) exceeds the soft limit value, an alarm is displayed on the setting display panel (22). The soft limit value is a value indicating a range in which the machine tool (15) can be moved programmatically.

[発明が解決しようとする問題点] ところで、上記構成の従来のNC装置は、自動運転中に工
作機械(15)に取り付けた工具を変えることにより、工
作機械(15)が動き得る範囲を制御するソフトリミット
スイッチ値の変更が必要になるなど、工作機械(15)の
状態によりパラメータを変更する必要が生じても、デー
タメモリ(21)に記憶されているパラメータを変更でき
ないという問題があった。
[Problems to be Solved by the Invention] By the way, the conventional NC device having the above configuration controls the range in which the machine tool (15) can move by changing the tool attached to the machine tool (15) during automatic operation. There is a problem that the parameters stored in the data memory (21) cannot be changed even if it is necessary to change the parameters depending on the state of the machine tool (15), such as when changing the soft limit switch value. .

本発明は上記問題点を解決するためになされたもので、
自動運転中であってもソフトリミット値等データメモリ
(21)に記憶されているパラメータを変更できる数値制
御装置を提供することを目的とする。
The present invention has been made to solve the above problems,
An object of the present invention is to provide a numerical control device capable of changing parameters stored in a data memory (21) such as a soft limit value even during automatic operation.

[問題点を解決するための手段] 本発明に係る数値制御装置は、数値制御装置全体を制御
するシステム制御部と、数値制御言語で記述された数値
制御プログラムを記憶する第1の記憶手段と、数値制御
言語で記述された数値制御プログラムにより工作機械の
自動制御を行なう数値制御言語制御部と、シーケンス言
語で記述されたシーケンスプログラムを記憶する第2の
記憶手段と、シーケンスプログラムにより工作機械のシ
ーケンス制御を行なうシーケンス制御部と、高位言語で
記述された高位言語プログラムを記憶する第3の記憶手
段と、高位言語で記述された高位言語プログラムにより
論理演算及び工作機械の自動制御を行なう高位言語制御
部と、シーケンス制御部が使用するパラメータを記憶す
るデータメモリとを備えた数値制御装置において、シー
ケンス制御部に前記シーケンスプログラムの命令により
高位言語プログラムを起動させる高位言語プログラム制
御手段と、高位言語制御部とシステム制御部のデータメ
モリとの間に配置されたインターフェイスとを備え、シ
ーケンスプログラムの命令により、自動運転中に高位言
語制御部からデータメモリの記憶内容を書き換えるよう
にしたものである。
[Means for Solving Problems] A numerical control device according to the present invention includes a system control unit that controls the entire numerical control device, and a first storage unit that stores a numerical control program written in a numerical control language. , A numerical control language control unit for automatically controlling a machine tool by a numerical control program written in a numerical control language, a second storage means for storing a sequence program written in a sequence language, and a machine tool using the sequence program. A sequence control unit for performing sequence control, a third storage means for storing a high-level language program written in a high-level language, and a high-level language for performing logical operation and automatic control of a machine tool by the high-level language program written in a high-level language. Numerical control device provided with control section and data memory for storing parameters used by sequence control section In the sequence program, a sequence program is provided with high-level language program control means for activating a high-level language program in response to a command of the sequence program, and an interface arranged between the high-level language control unit and the data memory of the system control unit. Command, the contents stored in the data memory are rewritten from the high-level language control section during automatic operation.

[作用] 上記構成の数値制御装置は、システム制御部が第1の記
憶手段に記憶されている数値制御プログラム、第2の記
憶手段に記憶されているシーケンスプログラム及び第3
の記憶手段に記憶されている高位言語プログラムを制御
し、数値制御言語制御部、シーケンス制御部及び高位言
語制御部がそれぞれ数値制御プログラム、シーケンスプ
ログラム及び高位言語プログラムを実行する。又、高位
言語プログラム制御手段がシーケンス制御部に高位言語
プログラムを起動させる。更に、必要に応じてシーケン
スプログラムの命令により自動運転中に高位言語制御部
からデータメモリに記憶されているパラメータを書き換
える。
[Operation] In the numerical controller having the above configuration, the system control unit has the numerical control program stored in the first storage means, the sequence program stored in the second storage means, and the third control program.
The high-level language program stored in the storage means is controlled, and the numerical control language control section, the sequence control section, and the high-level language control section execute the numerical control program, the sequence program, and the high-level language program, respectively. Further, the high level language program control means causes the sequence control unit to activate the high level language program. Furthermore, the parameters stored in the data memory are rewritten from the high-level language control unit during the automatic operation by the instruction of the sequence program, if necessary.

[実施例] 以下、本発明の一実施例を添付図面を参照して、詳細に
説明する。
[Embodiment] An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

第1図は本発明に係る数値制御装置のブロック図であ
る。なお、第1図において第2図と同様の機能を果たす
部分については同一の符号を付し、その説明は省略す
る。第1図において、(23)は高位言語制御部(6)と
データメモリ(21)とのインターフェイスである。高位
言語制御部(6)はこのインターフェイス(23)を介し
てデータメモリ(21)の記憶内容を書き換えるのであ
る。
FIG. 1 is a block diagram of a numerical controller according to the present invention. It should be noted that in FIG. 1, parts having the same functions as those in FIG. 2 are designated by the same reference numerals, and the description thereof will be omitted. In FIG. 1, (23) is an interface between the high-level language control section (6) and the data memory (21). The high-level language control section (6) rewrites the stored contents of the data memory (21) via this interface (23).

次に、本発明に係る数値制御装置の動作について説明す
る。自動運転時には、ディスク(3)に憶されているNC
プログラムが逐次実行される。NCプログラムはシステム
制御部(1)、駆動制御部(13)及び駆動増幅器(14)
を介してモータ(16)を駆動制御し工作機械(15)を動
かす。
Next, the operation of the numerical controller according to the present invention will be described. The NC stored in the disk (3) during automatic operation
The programs are executed sequentially. The NC program consists of the system controller (1), drive controller (13) and drive amplifier (14).
The motor (16) is driven and controlled via the to move the machine tool (15).

次いで、シーケンス制御部(4)は工作機械(15)及び
工作機械制御盤(18)からインターフェイス(17)を介
して工作機械(15)の動作に応じた信号、例えば工作機
械(15)から工作機械(15)の位置を示す信号が機械入
出力インターフェイス(17)を通してシーケンス制御部
(4)に入力されると(例えば、リミットスイッチによ
る信号)、入力された信号に応じてシーケンスプログラ
ムを実行する。このとき、工作機械(15)の工具が取り
換えられ、データメモリ(21)に記憶されているソフト
リミット値の変更が必要になると、シーケンスプログラ
ムはインターフェイス(12)を介して高位言語プログラ
ムを起動する。
Next, the sequence control unit (4) sends a signal from the machine tool (15) and the machine tool control panel (18) via the interface (17) according to the operation of the machine tool (15), for example, from the machine tool (15). When a signal indicating the position of the machine (15) is input to the sequence control unit (4) through the machine input / output interface (17) (for example, a signal from a limit switch), the sequence program is executed according to the input signal. . At this time, if the tool of the machine tool (15) is replaced and the soft limit value stored in the data memory (21) needs to be changed, the sequence program starts the high-level language program via the interface (12). .

シーケンスプログラムによって起動された高位言語プロ
グラムはインターフェイス(23)を介してデータメモリ
(21)に記憶されているソフトリミット値を書き換え
る。
The high-level language program started by the sequence program rewrites the soft limit value stored in the data memory (21) via the interface (23).

なお、本実施例では高位言語プログラムによって、デー
タメモリ(21)に記憶されているソフトリミット値を書
き換える場合について説明したが、その他のパラメータ
の書き換えも同様に行なえる。
In this embodiment, the case where the soft limit value stored in the data memory (21) is rewritten by the high-level language program has been described, but other parameters can be rewritten in the same manner.

[発明の効果] 以上説明したように本発明によれば、高位言語制御部と
システム制御部のデータメモリとの間にインターフェイ
スを設け、自動運転中であっても、工作機械の状態に応
じて、シーケンスプログラムの命令により高位言語制御
部からデータメモリに記憶されているソフトリミット値
等のパラメータを書き換えるようにしたので、数値制御
装置によって制御される工作機械の安全性が高くなると
ともに、高精度に工作機械を制御できる数値制御装置が
得られる。
[Effects of the Invention] As described above, according to the present invention, an interface is provided between the high-level language control unit and the data memory of the system control unit so that the machine tool can be operated according to the state of the machine tool even during automatic operation. Since the parameters such as the soft limit value stored in the data memory are rewritten from the high-level language control unit by the command of the sequence program, the machine tool controlled by the numerical control device is highly safe and highly accurate. A numerical control device capable of controlling a machine tool can be obtained.

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

第1図は本発明に係る数値制御装置のブロック図、第2
図は従来の数値制御装置のブロック図である。 各図中、1はシステム制御部、2はNC言語制御部、3、
5、7はディスク、4はシーケンス制御部、6は高位言
語制御部、8、9、10、11、12、20、23はインターフェ
イス、13は駆動制御部、14は駆動増幅器、15は工作機
械、16はモータ、18は工作機械操作盤、21はデータメモ
リ、22は設定表示パネルである。 なお、各図中同一符号は同一又は相当部分を示すもので
ある。
FIG. 1 is a block diagram of a numerical controller according to the present invention, and FIG.
The figure is a block diagram of a conventional numerical control apparatus. In each figure, 1 is a system control unit, 2 is an NC language control unit, 3,
5, 7 are disks, 4 is a sequence controller, 6 is a high-level language controller, 8, 9, 10, 11, 12, 20, 23 are interfaces, 13 is a drive controller, 14 is a drive amplifier, 15 is a machine tool. , 16 is a motor, 18 is a machine tool operation panel, 21 is a data memory, and 22 is a setting display panel. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】数値制御装置全体を制御するシステム制御
部と、数値制御言語で記述された数値制御プログラムを
記憶する第1の記憶手段と、前記数値制御言語で記述さ
れた数値制御プログラムにより工作機械の自動制御を行
なう数値制御言語制御部と、シーケンス言語で記述され
たシーケンスプログラムを記憶する第2の記憶手段と、
前記シーケンスプログラムにより前記工作機械のシーケ
ンス制御を行なうシーケンス制御部と、高位言語で記述
された高位言語プログラムを記憶する第3の記憶手段
と、前記高位言語で記述された高位言語プログラムによ
り論理演算及び前記工作機械の自動制御を行なう高位言
語制御部と、前記シーケンス制御部が使用するパラメー
タを記憶するデータメモリとを備えた数値制御装置にお
いて、 前記シーケンス制御部に前記シーケンスプログラムの命
令により前記高位言語プログラムを起動させる高位言語
プログラム制御手段と、 前記高位言語制御部と前記システム制御部のデータメモ
リとの間に配置されたインターフェイスとを備え、 前記シーケンスプログラムの命令により、自動運転中に
前記高位言語制御部から該データメモリの記憶内容を書
き換えるようにしたことを特徴とする数値制御装置。
1. A system control unit for controlling the entire numerical control device, a first storage means for storing a numerical control program written in a numerical control language, and a numerical control program written in the numerical control language. A numerical control language control unit for automatically controlling the machine, and a second storage means for storing a sequence program described in a sequence language,
A sequence control unit that controls the sequence of the machine tool by the sequence program, a third storage unit that stores a high-level language program written in a high-level language, and a logical operation and a logical operation by the high-level language program written in the high-level language. In a numerical control device comprising a high-level language control section for automatically controlling the machine tool and a data memory for storing parameters used by the sequence control section, the high-level language is instructed to the sequence control section by an instruction of the sequence program. A high-level language program control means for activating a program, and an interface arranged between the high-level language control unit and a data memory of the system control unit are provided, and the high-level language during automatic operation is instructed by a command of the sequence program. Storage of the data memory from the control unit Numerical control device being characterized in that so as to rewrite the contents.
JP62015171A 1987-01-27 1987-01-27 Numerical control device Expired - Lifetime JPH0782377B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62015171A JPH0782377B2 (en) 1987-01-27 1987-01-27 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62015171A JPH0782377B2 (en) 1987-01-27 1987-01-27 Numerical control device

Publications (2)

Publication Number Publication Date
JPS63184106A JPS63184106A (en) 1988-07-29
JPH0782377B2 true JPH0782377B2 (en) 1995-09-06

Family

ID=11881362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62015171A Expired - Lifetime JPH0782377B2 (en) 1987-01-27 1987-01-27 Numerical control device

Country Status (1)

Country Link
JP (1) JPH0782377B2 (en)

Family Cites Families (6)

* 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
JPS59191614A (en) * 1983-04-14 1984-10-30 Mitsubishi Electric Corp Controller of robot
JPS5999205A (en) * 1983-06-16 1984-06-07 Sumitomo Electric Ind Ltd Apparatus for measuring deviation of composite metallic tape
JPS60168206A (en) * 1984-02-10 1985-08-31 Mitsubishi Electric Corp Numerical control device
JPS6111811A (en) * 1984-06-28 1986-01-20 Mitsubishi Electric Corp Robot control device
JPS61208103A (en) * 1985-03-12 1986-09-16 Fujitsu Ltd Controller for robot system

Also Published As

Publication number Publication date
JPS63184106A (en) 1988-07-29

Similar Documents

Publication Publication Date Title
WO1988008559A1 (en) Numerical control device
JPH0782377B2 (en) Numerical control device
JPH04217009A (en) Method for teaching work program
JPS59142616A (en) Numerical controller of machine tool
JP2649801B2 (en) Display switching method in numerical controller
JP3041959B2 (en) Programmable controller
JPS63184109A (en) Numerical controller
JP3460747B2 (en) Numerical control unit
JP2850567B2 (en) Positioning control method
JPH07234714A (en) Numerical controller
JPH08272405A (en) Sequence controller
JPS62204310A (en) Editing system for working program
JP2850273B2 (en) Numerical control unit
JPS63184107A (en) Numerical controller
JPS63184108A (en) Numerical controller
JPH03224005A (en) Numerically controlled machine tool
JPS6226508A (en) Positioning unit
JPS6232802B2 (en)
JPH01145704A (en) Positioning unit for programmable controller
JPWO1997023812A1 (en) Programmable Controller
JP2708983B2 (en) Program display device
JP3493525B2 (en) Programmable controller
JP2000099117A (en) Control device
JPH01181104A (en) Numerical controller
JPH01311304A (en) Numerical controller