JPH05150821A - Robot controller - Google Patents

Robot controller

Info

Publication number
JPH05150821A
JPH05150821A JP33761991A JP33761991A JPH05150821A JP H05150821 A JPH05150821 A JP H05150821A JP 33761991 A JP33761991 A JP 33761991A JP 33761991 A JP33761991 A JP 33761991A JP H05150821 A JPH05150821 A JP H05150821A
Authority
JP
Japan
Prior art keywords
robot
language
command
unit
metacommand
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
JP33761991A
Other languages
Japanese (ja)
Inventor
Ikuo Nagamatsu
郁男 長松
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP33761991A priority Critical patent/JPH05150821A/en
Publication of JPH05150821A publication Critical patent/JPH05150821A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

PURPOSE:To decode and execute other instruction and data than robot language defined in advance. CONSTITUTION:From robot language defined in advance, and command data (herein-after called a metacommand) outside a defined range of its robot language, a robot operating instruction is generated arbitrarily. At the time of executing the robot operating instruction generated arbitrarily, a language discriminating means 201 selects the robot language and the metacommand. The robot language is decoded by a robot language decoding part 26 and transferred to an operation control part 27. The matacommand is decoded by a metacommand decoding part 204 and transferred to the operation control part 27.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は産業用ロボットの制御方
式に関し、特にロボット言語とロボット言語の定義範囲
を越えるロボット命令の実行ができるロボット制御装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control system for an industrial robot, and more particularly to a robot language and a robot controller capable of executing a robot command exceeding a definition range of the robot language.

【0002】[0002]

【従来の技術】図3に従来のロボット制御装置の構成を
示す。この図において、1はロボット本体、2はロボッ
ト制御装置、3は操作パネルである。また、ロボット制
御装置2において、21はキー入力部、22はキー入力
解釈部、23は画面制御部、24はファイル管理部、2
5はロボット動作プログラム(以下、プログラムと称
す)を格納するファイル、26はロボット言語解読部、
27は動作制御部である。その動作を簡単に説明する。
操作パネル3より入力された、例えば「動作開始」とい
うキー情報は、ロボット制御装置2のキー入力部21及
びキー入力解釈部22で受信・解釈され、ファイル管理
部24及びロボット言語解読部26に伝えられる。ファ
イル管理部24はファイル25より該当するプログラム
を取り出し、ロボット言語解釈部26へ送る。ロボット
言語解読部26はプログラム中のロボット言語を解読
し、動作制御部部27へ伝え、ロボット本体1を駆動す
る。一方、画面制御部23はキー入力解釈部22の情報
及びロボット言語解読部26の表示情報を操作パネル3
へ伝える。
2. Description of the Related Art FIG. 3 shows the configuration of a conventional robot controller. In this figure, 1 is a robot body, 2 is a robot controller, and 3 is an operation panel. Further, in the robot control device 2, 21 is a key input unit, 22 is a key input interpretation unit, 23 is a screen control unit, 24 is a file management unit, 2
5 is a file for storing a robot operation program (hereinafter referred to as a program), 26 is a robot language decoding unit,
27 is an operation control unit. The operation will be briefly described.
The key information such as “start operation”, which is input from the operation panel 3, is received and interpreted by the key input unit 21 and the key input interpretation unit 22 of the robot control device 2, and is input to the file management unit 24 and the robot language decoding unit 26. Reportedly. The file management unit 24 takes out the corresponding program from the file 25 and sends it to the robot language interpretation unit 26. The robot language decoding unit 26 decodes the robot language in the program, conveys it to the operation control unit 27, and drives the robot body 1. On the other hand, the screen control unit 23 displays the information of the key input interpretation unit 22 and the display information of the robot language decoding unit 26 on the operation panel 3
Tell to.

【0003】[0003]

【発明が解決しようとする課題】従来のロボット制御装
置は、予め準備されたロボット言語の解読はできるが、
ロボット言語で定義されている範囲に含まれない、新た
なロボット命令を追加することができなかった。そのた
め、適用用途に固有な機能やユーザのノウハウに依存し
たユーザ独自の機能を実現できないという問題があっ
た。一方、特開昭59−172008号公報にユーザが
NC言語と高級言語を同時に使ってプログラミングを行
うことができる技術が開示されているが、高級言語、N
C言語の言語弁別部以後の処理が完全に分離されてお
り、NC言語解釈部及びBASIC言語解釈部間に相互
関係が存在しないもので、異なる言語を自由に組み合わ
せられるものではない。本発明は、このような従来の実
情に鑑みてなされたものであり、ロボット言語の定義範
囲を越えるロボット命令の解読・実行を可能とすること
を目的とする。
The conventional robot controller can decode the robot language prepared in advance,
It was not possible to add a new robot command that is not included in the range defined in the robot language. Therefore, there is a problem that it is not possible to realize a function unique to the application or a user-specific function that depends on the user's know-how. On the other hand, Japanese Patent Application Laid-Open No. 59-172008 discloses a technique in which a user can perform programming by using NC language and high-level language at the same time.
The processing after the language discrimination section of the C language is completely separated, there is no mutual relation between the NC language interpretation section and the BASIC language interpretation section, and different languages cannot be freely combined. The present invention has been made in view of such a conventional situation, and an object of the present invention is to enable decoding and execution of a robot command that exceeds the definition range of the robot language.

【0004】[0004]

【課題を解決するための手段】この目的を達成するた
め、本発明は、解読されたロボット動作命令に基づいて
ロボットの動作を実行制御する動作制御部を有するロボ
ット制御装置において、予め定義されたロボット言語
と、そのロボット言語の定義範囲外の指令データ(以下
メタコマンドという)からロボット動作命令を任意に作
成する手段と、前記手段で任意に作成されたロボット動
作命令を実行する際に、前記ロボット言語と前記メタコ
マンドを選別する言語弁別手段と、前記言語弁別手段に
より選別されたロボット言語を解読して前記動作制御部
に転送するロボット言語解読部と、前記言語弁別手段に
より選別されたメタコマンドを解読して前記動作制御部
に転送するメタコマンド解読部とを備えることを特徴と
するものである。
To achieve this object, the present invention is pre-defined in a robot controller having a motion control section for executing and controlling the motion of a robot based on a decoded robot motion command. A robot language and means for arbitrarily creating a robot operation instruction from command data (hereinafter referred to as a meta command) outside the definition range of the robot language, and when executing the robot operation instruction arbitrarily created by the means, A language discriminating means for discriminating between the robot language and the meta command, a robot language deciphering section for deciphering the robot language discriminated by the language discriminating means and transferring the robot language to the operation control section, and a meta discriminated by the language discriminating means. And a meta-command decoding unit that decodes a command and transfers it to the operation control unit.

【0005】[0005]

【作用】これにより、ロボット言語の定義範囲を越える
ロボット命令の解読・実行を可能となるので、適用用途
に固有な機能やユーザのノウハウに依存したユーザ独自
の機能をユーザーで実現できる。
As a result, it becomes possible to decipher / execute a robot command that exceeds the definition range of the robot language, so that the user can realize a function peculiar to the application and a user-specific function depending on the user's know-how.

【0006】[0006]

【実施例】以下、この発明について説明する。図1はこ
の発明の一実施例の構成を示す。図中1、2、3及び2
1〜27は図2のそれと同じである。図中201はロボ
ット言語とそれ以外の命令(メタコマンド)を弁別する
言語弁別部、202はメタコマンドをロボット言語とそ
れ以外のプログラム言語び内部コマンドに弁別するメタ
コマンド弁別部である。ここではプログラム言語の一例
としてC言語について説明する。もちろんそれがBAS
ICであろうがFORTRANであろうが新たに定義し
た言語や他機種のロボット言語(本制御装置で定義され
ていない言語)であっても全くかまわない。さらに、C
言語とBASIC等のように複数の異なる言語が混在す
る場合も許される。このようなメタコマンドを含む命令
は、図示しない外部データ処理装置を使用しても、付属
のティーチングボックスのキー操作により作成してもよ
い。次に、203はC言語解読部、204はメタコマン
ド解読部、205はロボットの内部情報、例えばパラメ
ータ値、位置情報、キー操作情報などを操作する内部コ
マンド解読部、206は前述情報とコマンドを対比させ
るための機能変換テーブルである。
The present invention will be described below. FIG. 1 shows the configuration of an embodiment of the present invention. 1, 2, 3 and 2 in the figure
1-27 is the same as that of FIG. In the figure, 201 is a language discriminating section for discriminating between a robot language and other commands (metacommands), and 202 is a metacommand discriminating section for discriminating a metacommand into a robot language and other programming languages or internal commands. Here, the C language will be described as an example of the programming language. Of course that is BAS
Whether it is IC or FORTRAN, a newly defined language or a robot language of another model (a language not defined by this control device) may be used. Furthermore, C
A case where a plurality of different languages such as a language and BASIC are mixed is also allowed. The instruction including such a meta command may be created by using an external data processing device (not shown) or by operating a key of an attached teaching box. Next, 203 is a C language decoding unit, 204 is a metacommand decoding unit, 205 is an internal command decoding unit that operates internal information of the robot, for example, parameter value, position information, key operation information, and the like, and 206 is the above information and command. It is a function conversion table for comparison.

【0007】具体的コマンド例を図2に示す。ロボット
言語で記述されたプログラムをロボットコントローラの
パラメータで設定された回数だけ繰り返し実行するプロ
グラムである。4はロボットコントローラ内部のパラメ
ータ100の内容をC言語の変数「kaisu」への代
入を意味する。PARAM()はロボットコントローラ
内部のパラメータを読み取る命令である。5はC言語に
よるループ命令で、kaisu(回数)分だけ{ }内
の命令を実行する。6はロボット内部の位置パラメータ
で指定された位置へロボットを動作させる命令である。
CPOS()はロボットコントローラ内部の位置パラメ
ータを読み取る命令で、MOVEは指定した位置へロボ
ットを動作させるロボット言語である。7はロボット言
語で、TESTという名前のプログラムの呼び出し・実
行を意味する。
FIG. 2 shows a specific command example. It is a program that repeatedly executes a program written in a robot language the number of times set by the parameters of the robot controller. 4 means substitution of the contents of the parameter 100 inside the robot controller into the C language variable “kaisu”. PARAM () is an instruction for reading parameters inside the robot controller. Reference numeral 5 is a loop instruction in C language, which executes instructions in {} by kaisu (number of times). Reference numeral 6 is an instruction to move the robot to a position designated by a position parameter inside the robot.
CPOS () is an instruction to read a position parameter inside the robot controller, and MOVE is a robot language for operating the robot to a designated position. Reference numeral 7 is a robot language, which means to call and execute a program named TEST.

【0008】図1において、ファイル25に格納された
図2のプログラムは、既述の手段により「動作開始」キ
ー情報を受けると、ファイル管理部24を通じて言語弁
別部201へ送られ、順にロボット言語もしくはメタコ
マンドに弁別される。図2の4の場合は、ロボット言語
ではなくC言語及び内部コマンドで構成されているので
メタコマンド弁別部202にて処理される。右辺は内部
コマンド解読部205に送られ、機能変換テーブル20
6と照合されロボット・パラメータ100の値が読み取
られる。一方、左辺はC言語解読部203で代入文と解
読され、メタコマンド解読部204にて一つの命令とし
て解読される。図2の5はC言語で構成されているルー
プ文でC言語解読部203にて解読され、メタコマンド
解読部204に登録される。図2の6はロボット言語と
は異なり、ロボット言語「MOVE」と内部コマンド
「CPOS()」で構成されているのでメタコマンド弁
別部202にて処理される。ロボット言語であるMOV
Eは、ロボット言語解読部26で解読され、内部コマン
ドCPOS()は図2の4の右辺と同様に処理され、メ
タコマンド解読部204にて一つの命令として解読され
る。図2の7はロボット言語であるので、言語弁別部2
01にてロボット言語解読部26に通知され処理され、
メタコマンド解読部204の情報と合わせて解読され
る。この場合、図2の5におけるループ文の条件が解除
されるまで、図2の6、7は繰り返し実行される。メタ
コマンド解読部204にて解読された命令は動作制御部
27へと伝えられ、ロボット1が動作することになる。
つまり、図2のプログラムでは、ロボット言語で記述さ
れたロボットを指定位置まで動かすというプログラム
(ただし、指定位置はロボット言語以外で指定される)
を、ロボット言語以外で記述されたパラメータの値だ
け、繰り返すという動作が実行されることになる。この
ように、ロボット言語だけでは実現が難しかった複雑な
動作を、比較的簡単な命令で実行できる。
When the program shown in FIG. 2 stored in the file 25 in FIG. 1 receives the "operation start" key information by the above-mentioned means, it is sent to the language discrimination section 201 through the file management section 24, and in turn the robot language. Or they are discriminated into metacommands. In the case of 4 in FIG. 2, since it is composed of the C language and the internal command instead of the robot language, it is processed by the metacommand discrimination unit 202. The right side is sent to the internal command decoding unit 205, and the function conversion table 20
6 and the value of the robot parameter 100 is read. On the other hand, the C language decoding unit 203 decodes the left side as an assignment statement, and the metacommand decoding unit 204 decodes it as one instruction. Reference numeral 5 in FIG. 2 is a loop sentence composed of C language, which is decoded by the C language decoding unit 203 and registered in the metacommand decoding unit 204. Unlike 6 in the robot language, 6 in FIG. 2 is composed of the robot language “MOVE” and the internal command “CPOS ()”, and therefore is processed by the metacommand discrimination unit 202. MOV, a robot language
E is decoded by the robot language decoding unit 26, the internal command CPOS () is processed in the same manner as the right side of 4 in FIG. Since 7 in FIG. 2 is a robot language, the language discrimination unit 2
At 01, the robot language decoding unit 26 is notified and processed,
It is decoded together with the information of the metacommand decoding unit 204. In this case, 6 and 7 of FIG. 2 are repeatedly executed until the condition of the loop statement in 5 of FIG. 2 is released. The command decoded by the metacommand decoding unit 204 is transmitted to the motion control unit 27, and the robot 1 operates.
That is, in the program of FIG. 2, a program for moving a robot described in a robot language to a designated position (however, the designated position is designated by a language other than the robot language).
The operation of repeating is repeated by the value of the parameter described in a language other than the robot language. In this way, it is possible to execute complicated operations, which were difficult to be realized only by the robot language, with relatively simple instructions.

【0009】[0009]

【発明の効果】以上述べたように、本発明によれば、予
め定義されたロボット言語の定義範囲を越えるロボット
命令の解読・実行が可能となるので、従来ロボット言語
だけでは実現できなかった各種用途に固有な機能や、ユ
ーザーのノウハウに依存した独自の機能を簡単に実現で
きる。したがって、各種用途へのロボットの導入が容易
化され、産業界の省力化に大きく貢献する。
As described above, according to the present invention, it is possible to decode and execute a robot command that exceeds the definition range of a predefined robot language. It is possible to easily realize the function specific to the application or the unique function depending on the user's know-how. Therefore, the introduction of the robot to various uses is facilitated, which greatly contributes to labor saving in the industrial world.

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

【図1】 本発明の実施例FIG. 1 Example of the present invention

【図2】 本発明の動作説明図FIG. 2 is an operation explanatory diagram of the present invention.

【図3】 従来例FIG. 3 Conventional example

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

2 ロボット制御装置 201 言語弁別部 202 メタコマンド弁別部 203 C言語解読部 204 メタコマンド解読部 205 内部コマンド解読部 206 機能変換テーブル 2 Robot control device 201 Language discrimination unit 202 Meta command discrimination unit 203 C language decoding unit 204 Meta command decoding unit 205 Internal command decoding unit 206 Function conversion table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 解読されたロボット動作命令に基づいて
ロボットの動作を実行制御する動作制御部を有するロボ
ット制御装置において、 予め定義されたロボット言語と、そのロボット言語の定
義範囲外の指令データ(以下メタコマンドという)か
ら、ロボット動作命令を任意に作成する手段と、 前記手段で任意に作成されたロボット動作命令を実行す
る際に、前記ロボット言語と前記メタコマンドを選別す
る言語弁別手段と、 前記言語弁別手段により選別されたロボット言語を解読
して前記動作制御部に転送するロボット言語解読部と、 前記言語弁別手段により選別されたメタコマンドを解読
して前記動作制御部に転送するメタコマンド解読部と、
を備えることを特徴とするロボット制御装置。
1. A robot controller having a motion control unit for controlling execution of a robot motion based on a decoded robot motion command, wherein a robot language defined in advance and command data outside a defined range of the robot language ( (Hereinafter, referred to as meta command), means for arbitrarily creating a robot operation command, and language discrimination means for selecting the robot language and the meta command when executing the robot operation command arbitrarily created by the means, A robot language decoding unit that decodes the robot language selected by the language discrimination unit and transfers it to the motion control unit, and a meta command that decodes the meta command selected by the language discrimination unit and transfers it to the motion control unit Decoding section,
A robot controller, comprising:
JP33761991A 1991-11-26 1991-11-26 Robot controller Pending JPH05150821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33761991A JPH05150821A (en) 1991-11-26 1991-11-26 Robot controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33761991A JPH05150821A (en) 1991-11-26 1991-11-26 Robot controller

Publications (1)

Publication Number Publication Date
JPH05150821A true JPH05150821A (en) 1993-06-18

Family

ID=18310358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33761991A Pending JPH05150821A (en) 1991-11-26 1991-11-26 Robot controller

Country Status (1)

Country Link
JP (1) JPH05150821A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61110204A (en) * 1984-11-02 1986-05-28 Hitachi Ltd Controlling method of automated device
JPS6356707A (en) * 1986-08-28 1988-03-11 Matsushita Electric Ind Co Ltd Generating device for robot operation indication program
JPH03158908A (en) * 1989-11-17 1991-07-08 Fanuc Ltd Automatic programming system in compound working machine
JPH04233605A (en) * 1990-12-28 1992-08-21 Fujitsu Ltd Robot language editor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61110204A (en) * 1984-11-02 1986-05-28 Hitachi Ltd Controlling method of automated device
JPS6356707A (en) * 1986-08-28 1988-03-11 Matsushita Electric Ind Co Ltd Generating device for robot operation indication program
JPH03158908A (en) * 1989-11-17 1991-07-08 Fanuc Ltd Automatic programming system in compound working machine
JPH04233605A (en) * 1990-12-28 1992-08-21 Fujitsu Ltd Robot language editor

Similar Documents

Publication Publication Date Title
JPH05150821A (en) Robot controller
JPH01169605A (en) Program generating device
JP3210309B2 (en) Numerical control unit
JP4964036B2 (en) Editor device and editor program
JP3764436B2 (en) Machine control device
JPH09258808A (en) Motion controller programming system
JPS6149209A (en) Program execution system of numerical controller
JP7409852B2 (en) robot control device
JPS6352253A (en) Output method for computer peripheral device
JP2971251B2 (en) SFC programming device
JPH05224713A (en) Display method for programmable controller
JP2002132307A (en) Motion controller and program editor
JP3424215B2 (en) Robot controller
JP2653409B2 (en) Programmable controller program development equipment
JP3630170B2 (en) Robot controller
JP2700013B2 (en) Compiler for user program for programmable controller
JP2010055351A (en) Editor device, editor program, recording medium with the same program recorded thereon, and programmable display unit
Thai et al. Embedded C Options
JPH01102665A (en) Command generating device for artificial satellite
JP2006099587A (en) Nc apparatus
JPS63311401A (en) Pmc control system
JPH0636161B2 (en) Information processing equipment
JPH09274511A (en) Sequence controller
JPH11167409A (en) Program controller operating by parallel language
JPH04107637A (en) Execution system for conversational processing instruction