JPS6441902A - Control device for automatic assembling device - Google Patents
Control device for automatic assembling deviceInfo
- Publication number
- JPS6441902A JPS6441902A JP19649087A JP19649087A JPS6441902A JP S6441902 A JPS6441902 A JP S6441902A JP 19649087 A JP19649087 A JP 19649087A JP 19649087 A JP19649087 A JP 19649087A JP S6441902 A JPS6441902 A JP S6441902A
- Authority
- JP
- Japan
- Prior art keywords
- task
- input
- control
- robot
- output device
- 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.)
- Granted
Links
Landscapes
- Automatic Assembly (AREA)
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、例えば自動組立ロボット等の自動組立装置を
制御する制御装置に関し、特に、この自動組立装置の動
作を例えば教示する入出力装置を含んたところの制御装
置に関する。[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a control device for controlling an automated assembly device, such as an automated assembly robot, and more particularly to a control device that includes an input/output device for teaching the operation of the automated assembly device.
[従来の技術]
従来の所謂「ライン方式」の自動組立装置においては、
組立ロボットは単能的であり、従って、組立てに必要な
部品補給も単純なものであるから、組立装置とその制御
装置は一対一に対応していた。即ち、組立装置が1台で
あれば、その制御装置も1台必要になるわけである。[Conventional Technology] In conventional so-called "line-type" automated assembly equipment,
Assembly robots are single-function robots, and therefore the supply of parts required for assembly is simple; thus, there was a one-to-one correspondence between the assembly device and its control unit. In other words, if there was one assembly device, only one control unit was needed.
ところが、組立工程が複雑化し、特に「非ライン」方式
の自動組立装置においては、組み付は部品点数が多くな
り、従って、ロボット側への部品補給も複雑化する。即
ち、組立のみならず、その部品補給においても、精緻な
制御、特に、ロボット側の動作と同期がとれた制御が必
要となるわけである。このような場合、従来では、車に
複数の所謂ロボットコントローラを複数台接続すること
により対処していた。なぜなら、従来の制御装置におい
ては1つの制御装置で制御可能な軸数や入出力等の数に
制限が有ったために、その軸数や入出力点数を制限を越
えた場合、コントローラを複数必要とするからである。However, as assembly processes become more complex, especially in "non-line" automated assembly systems, the number of parts to be assembled increases, and consequently, supplying parts to the robot also becomes more complex. In other words, precise control, particularly synchronized control with the robot's movements, is required not only for assembly but also for parts supply. In conventional cases, this was dealt with by connecting multiple so-called robot controllers to the vehicle. This is because conventional control devices had limitations on the number of axes and inputs/outputs that could be controlled by a single control device, and if the number of axes or inputs/outputs exceeded these limits, multiple controllers were required.
[発明が解決しようとしている問題点コところが、上述
したように、制御規模が拡大しようとする場合、即ち、
自動組立に要する例えば組立、組立てに必要な部品の供
給、更にこの部品供給部に対する部品の補給等の機能が
増えようとする場合、単一のコントローラで制御できる
量は限界があるから、複数のコントローラが必要になる
。しかし、車に複数のコントローラを増加したのでは、
そのコスト、消費電力、占有面積等の面で不利である。[Problems that the invention aims to solve: However, as mentioned above, when the control scale is to be expanded, that is,
If the functions required for automated assembly, such as assembly, supplying the necessary parts for assembly, and further supplying parts to the parts supply unit, increase, there is a limit to what can be controlled by a single controller, so multiple controllers become necessary. However, if you add multiple controllers to a car,
It is disadvantageous in terms of cost, power consumption, and occupied space.
そして、更に、上記の各機能は、夫々独立した動作を行
なうから、この機能単位毎にティーチングが必要である
。そのために、夫々の操作部と表示部が必要となり、無
駄が多い、即ち、従来の例えば、ティーチングペンダン
ト(=ティーチング情報の入力車)を使って、夫々のコ
ントローラ毎に75勤して、人力する手間がかかつてし
まう。Furthermore, since each of the above functions operates independently, teaching is required for each function unit. This necessitates separate operation and display units, resulting in a lot of wasted effort. In other words, it requires manual work, such as using a conventional teaching pendant (a device for inputting teaching information) for each controller.
そこで本発明は上記従来技術の問題点に鑑みてなされた
ものでその目的は、例えばティーチングを行なうための
情報を入力する等の入出力装置が例え1つであっても、
制御対象である動作単位を容易に増設できるような自動
組立装置の制御装置を提案するところにある。Therefore, the present invention has been made in view of the problems of the above-mentioned prior art, and its purpose is to enable input/output devices, such as those used to input information for teaching, even if there is only one such device.
The aim is to propose a control device for an automated assembly machine that allows for easy addition of controllable operating units.
[問題点を解決するための手段及び作用]上記課題を達
成するためのの本発明の構成は、夫々が複数の被駆動素
子を有し、互いに独立した異なる組立動作を行なう複数
の組立動作部からなる自動組立装置であって、上記互い
に独立した異なる組立動作を、1つの論理演算素子を用
いたマルチタスク方式のプログラム制御により表現した
上位制御部と、この上位制御部に統括される下位制御部
であって、前記複数の被駆動素子の制御プログラムを有
する複数の下位制御部と、前記上位制御部に接続され、
前記複数の組立動作部における動作を教示するための指
示を人出力する1つまたi±複数の入出力部と、この入
出力部と前記複数の下位制御部の夫々との間に設けられ
たのデータ転送手段と、前記入出力部かいずれのタスク
に占有されているかを保持する保持手段とを備えたこと
を特徴とする。[Means and Operation for Solving the Problems] The present invention provides an automatic assembly device comprising a plurality of assembly operation units, each having a plurality of driven elements and performing independent and different assembly operations, wherein the plurality of independent and different assembly operations are represented by a multitasking program control using a single logic operation element, and the plurality of lower control units integrated by the upper control unit, each having a control program for the plurality of driven elements, and connected to the upper control unit,
The system is characterized by comprising one or more input/output units that output instructions for teaching the operation of the plurality of assembly operation units, data transfer means provided between the input/output unit and each of the plurality of lower control units, and holding means that maintains which task the input/output unit is occupied by.
[実施例]
以下に、この発明に係わる制御装置を、所謂ロボット、
ストッカ、エレベータ、バッファからなる自動組立/部
品供給装置に適用した実施例の構成を添付図面を参照し
て、詳細に説明する。[Examples] The control device according to this invention will be described below in relation to a so-called robot.
The configuration of an embodiment applied to an automated assembly/parts supply system consisting of a stocker, elevator, and buffer will be described in detail with reference to the attached drawings.
〈実施例の構成〉
この自動組立/部品供給装置10は、
■:複数の部品から所定の製品を自動的に組立るための
XY型の自動組立装置(以下、単にロボットと呼ぶ。)
12と、
■・このロボット12に部品を供給するストッカ24で
あって、複数個の部品を平面上に収容したパレットpの
複数個を棚状に積層収納し、その複数個のパレットpの
なかから組立工程に合致した部品を収容するパレットp
を前記ロボット12の指示により選択し、この選択され
たパレットpをパレットpの引き出し位置154に引ぎ
出すためのストッカ24と、
■:このストッカ24に収納されているパレットpの部
品がなくなる場合に備えて、部品を満載したパレットp
を台52上に複数個積層して貯蔵するバッファ22であ
って、ロボット12から要求されたパレットpを、分離
部材66.68により積層されたパレットpから1つだ
け分離するバッファ22と、
■:バツファ22で分離されたパレットpを受けて、空
になったパレットp′のストッカ24内の棚位置まで上
下動をすることにより8!IIIシ、そこで、空パレッ
トp′と新たなパレットpとを入れ替えるエレベータ2
6と、
■;入れ替えられた空パレットp′を積載して搬出する
搬出機構76と、
■:バツファ22に外部から新たなパレットpを補充す
る無人車20と、
■二上記ロボット12.ストッカ24等の動作プログラ
ムを入力したり、ティーチングポイントを教示するため
の入出力装置18等からなる。<Configuration of the Example> This automatic assembly/parts supply device 10 is an XY-type automatic assembly device (hereinafter simply referred to as a robot) for automatically assembling a predetermined product from multiple parts.
12 and ■ A stocker 24 that supplies parts to this robot 12, which stacks multiple pallets p, each containing multiple parts on a flat surface, in a shelf-like manner, and stores pallets p that contain parts that match the assembly process from among the multiple pallets p.
A stocker 24 for selecting the selected pallet p by instruction of the robot 12 and pulling out the selected pallet p to the drawer position 154 of the pallet p, and ■: In case the parts of the pallet p stored in this stocker 24 run out, a pallet p full of parts
A buffer 22 for storing multiple pallets stacked on a base 52, the buffer 22 separates one pallet p at a time from the stacked pallets p by a separating member 66.68 when requested by the robot 12, and an elevator 2 that receives the pallet p separated by the buffer 22 and moves up and down to the shelf position in the stocker 24 of the empty pallet p', and then swaps the empty pallet p' with the new pallet p.
6 consists of: ■; an unloading mechanism 76 that loads and unloads the replaced empty pallet p';■; an unmanned vehicle 20 that replenishes the buffer 22 with a new pallet p from the outside; and ■ an input/output device 18 for inputting operation programs for the robot 12, stocker 24, etc., and for teaching points.
なお、ロボット12のフィンガー220は、引き出し部
154上に引き出されたパレットpから部品を1つずつ
取り出して、組立台224上で、部品を1つずつ組上げ
て、製品に仕上げる。The fingers 220 of the robot 12 take out parts one by one from the pallet p pulled out onto the drawer section 154, and assemble the parts one by one on the assembly table 224 to complete the product.
〈制御ユニットの構成〉
上記制御対象となる各機能要素を制御する制御装置は1
6は、第2図に示すように、6枚のマイクロプロセサボ
ードから構成される。ボート702は、ロボット用のサ
ーボ関係の制御を行なうサーボブロックのボートであり
、ボード703はストッカ用のそれ、ボート704はエ
レベータ用のそれ、ボード705はバッファ用のそれで
ある。<Configuration of the control unit> The control device that controls each of the functional elements to be controlled above is 1
As shown in Figure 2, unit 6 consists of six microprocessor boards. Boat 702 is a servo block boat that controls the servo-related functions for the robot, board 703 is for the stocker, boat 704 is for the elevator, and board 705 is for the buffer.
I10ブロックホード706は、ロボット、ストッカ、
エレベータ、バッファ内で使用される種々のセンサ及び
ソレノイドに対して入出力を行なうためののボードであ
り、この−枚で、上記4つの機能単位のI10制御をま
とめて行なう。もちろん、ロボットの追加を予定してお
り、その場合でも、4つ以上の機能単位に対処できるよ
うに、I10ブロックホード内はモジュール化されてい
る。I10 Blockhord 706 is a robot, stocker,
This board provides input and output to various sensors and solenoids used in the elevator and buffer, and it controls the I10 for all four functional units mentioned above. Of course, we plan to add more robots, and even in that case, the I10 block horde is modularized to accommodate more than four functional units.
メインブロックボード70 t :t、マルチタスクオ
ペレーティングシステム(以下、O8と略す)下でロボ
ット言語の解釈及び入出力装習18とのインターフェー
スを行なうマイクロプロセサホードである。これら6枚
のマイクロプロセサボードは、周知のシステムバス70
0により結合される。このシステムバス700には、例
えばマルチパス(米国インテル社)、Zバス(米国ザイ
ログ社)等が適用可能である。The main block board 70 t:t is a microprocessor board that interprets robot language and interfaces with the input/output device 18 under a multitasking operating system (hereinafter abbreviated as O8). These six microprocessor boards are connected to the well-known system bus 70
It is coupled by 0. This system bus 700 can be used with, for example, multipath (Intel Corporation), Z-bus (Zilog Corporation), etc.
第3図は、メインブロックボードを中心にした接続関係
を示した図である。先ず、メインブロック701は、あ
る通信規約に従って入出力装置18と通信を行なうR5
232Cインターフエース802と、メインブロックボ
ード701の主記憶であるローカルメモリー803と、
メインブロックの制御を行なうCPU805等によって
構成される。Figure 3 shows the connection relationships centered on the main block board. First, the main block 701 communicates with the input/output device 18 according to a certain communication protocol.
The 232C interface 802 and the local memory 803, which is the main memory of the main block board 701,
It consists of a CPU 805 and other components that control the main block.
各サーボブロック702〜705は、メインブロック7
01からの動作指令によって、例えばモーター808a
、808b及びエンコーダ809a、809bの動作制
御を行なっている。I10ブロック706は、やはりメ
インブロック701の動作指令によりソレノイドバルブ
5V811及びセンサ5812等の制御を行なっている
。各ブロックを制御しているメインブロック701は、
共有バス700上の共有メモリ806を介してサーボブ
ロック702等またはI10ブロック706に動作指令
を行なう。上記のサーボブロックやI10ブロックは、
サーボモータ等の被駆動素子の単純化した動作を制御の
に特化したことが、後述するように、本実施例の大きな
特徴となる。Each servo block 702-705 is connected to the main block 7
According to the operation command from 01, for example, motor 808a
, 808b and encoders 809a and 809b are controlled. Block I10 706 also controls the solenoid valve 5V811 and sensor 5812, etc., according to the operation commands of the main block 701. The main block 701 that controls each block,
Operation commands are sent to the servo block 702, etc., or the I10 block 706 via the shared memory 806 on the shared bus 700. The above servo block and I10 block are,
A key feature of this embodiment, as will be described later, is its specialization in controlling the simplified operation of driven elements such as servo motors.
入出力装置18からキー人力された各機能ブロックのプ
ログラムは、R3232Cインターフエース802を介
して、ローカルメモリ803の所定領域に格納される。The programs for each functional block, which are manually accessed from the input/output device 18, are stored in a predetermined area of the local memory 803 via the R3232C interface 802.
第3図等に示すように、入出力装置18は各機能ブロッ
ク間で共有される点に本実施例の他の大きな特徴がある
。As shown in Figure 3 and other figures, another major feature of this embodiment is that the input/output device 18 is shared among the various functional blocks.
くメインブロックのメモリマツプ〉
第4図は、メインブロック701のCPU705の論理
アドレス空間を示すメモリマツプである。820はマル
チタスクO5,821は入出力装置18とのデータのハ
ンドリングを行なうハンドラプログラムである。また、
822は入出力装置18がどのタスクに割り付けられて
いるかを記憶する割付レジスタである。また、823〜
826は夫々、ロボット等のモードを処理するモード’
AI’lプログラムであり、827は各タスク用のワー
クエリア、828はタスク間で共通に使われる変数を格
納するタスク共通変数エリアである。また、829〜8
32は各アプリケーションプログラムを格納するエリア
であり、833〜836はロボット等のための各ティー
チングポイントを格納するエリアである。<Memory Map of the Main Block> Figure 4 is a memory map showing the logical address space of the CPU 705 in the main block 701. 820 is a multitasking O5, and 821 is a handler program that handles data with the input/output device 18. Also,
822 is an allocation register that stores which task the input/output device 18 is assigned to. Also, 823-
826 is a mode that processes the modes of robots, etc.
This is an AI program, where 827 is the work area for each task, and 828 is the task common variable area for storing variables used commonly between tasks. Also, 829-8
32 is an area for storing each application program, and 833 to 836 are areas for storing each teaching point for robots, etc.
更に、837はメインブロック701が各サーボブロッ
ク及びI10ブロック706との間で通信を行なうのに
使われるコマンド通信用共有メモリであり、前述したよ
うに、このコマンド通信用のデータは第3図の共有メモ
リ806に格納される。即ち、前述の820〜836は
、ローカルメモリ803に格納され、コマンド通信用デ
ータは共有メモリ806に格納される。Furthermore, 837 is a shared memory for command communication used by the main block 701 to communicate with each servo block and the I10 block 706. As mentioned above, the data for this command communication is stored in the shared memory 806 shown in Figure 3. In other words, items 820 to 836 are stored in the local memory 803, and the command communication data is stored in the shared memory 806.
くマルチタスクOS)
第5図は、第4図に示した各プログラム間を階層的に示
したものである。即ち、ハンドラタスク821、ロボッ
トタスク823〜バツフアクスク826は、マルチタス
ク03820の下で管理を受ける。このO3は事象(イ
ベント)駆動方式のマルチタスクであり、タスク登録時
にタスクコントロールボックスを作成し、そのとき、当
該タスクのコードのスタートアドレス、タスク固有のデ
ータ領域(タスク用ワークエリア827)、そして、各
タスク間で共通に使われるデータ領域(共通変数エリア
828)を指定する。(Multitasking OS) Figure 5 shows the hierarchy between the programs shown in Figure 4. That is, the handler task 821 and robot tasks 823 to 826 are managed under the multitasking system 03820. This O3 is an event-driven multitasking system, and when a task is registered, a task control box is created, at which time the start address of the task's code, the task-specific data area (task work area 827), and the data area used in common among all tasks (common variable area 828) are specified.
また、このマルチタスクO3は、フラグセット/リセッ
ト用、メール(タスク間通信)用、R3232インター
フエースの入出力用、サーボブロック用等のためのシス
テムコール(システム用制御コマンド)を用意している
。そして、タスクの実行/停止は、後述の「中断フラグ
」というフラグのセット状態によって左右される。例え
ば、WAIT−FLAGというシステムコールが発せら
れたときに既に、他のタスクから5ET−FLAGとい
うシステムコールが他のタスクから発行されていれば、
そのまま、中断フラグはセットされず、従って、WAI
Tはされないでタスクの実行は継続する。しかし、他の
タスクから5ET−FLAGというシステムコールが発
行されていなければ、そのタスクの中断フラグはセット
され、そのタスクはCPU805の使用権は放棄したこ
とになり、待ち状態となる。即ち、他のタスクのうち中
断フラグがセットされていないもののみが、CPU80
5を占有する。一方、中断フラグがセットしている状態
で、他のタスクから5ET−FLAGのシステムコール
があると、中断フラグはリセットされその待ち状態のフ
ラグは実行可能状態になる。Furthermore, this multitasking O3 provides system calls (system control commands) for flag setting/resetting, email (inter-task communication), R3232 interface input/output, servo block, etc. The execution/stopping of a task depends on the set state of a flag called the "interruption flag," which will be described later. For example, if a system call called WAIT-FLAG is issued and another task has already issued a system call called 5ET-FLAG,
As a result, the interruption flag is not set, and therefore, WAI
If T is not issued, the task execution continues. However, unless another task issues the system call 5ET-FLAG, the task's interruption flag is set, and the task relinquishes its right to use CPU 805 and enters a waiting state. In other words, only the other tasks that do not have the interruption flag set can use CPU 805.
It occupies task 5. On the other hand, if the suspend flag is set and another task makes a system call 5ET-FLAG, the suspend flag is reset and its waiting flag becomes ready to run.
ロボット、ストッカ、・・・等のアプリケーションプロ
グラムとして書かれる所謂ロボット言語は、マルチタス
ク0S820内のインタプリタによって構造チエツク、
解釈、実行と行なわれる。その実行ルーチンのなかで、
上記システムコールを使用することで、各タスク間のメ
ールによるデータ授受、そして前記フラグによる各タス
ク間の実行の調停を行なわせることが可能となり、かく
して、マルチタスク対応のロボット言語を提供できるこ
とになる。The so-called robot language, written as an application program for robots, stockers, etc., undergoes structure checks by an interpreter within the multitasking 0S820.
Interpretation and execution take place. Within that execution routine,
By using the above system calls, it becomes possible to exchange data between tasks via email and to mediate the execution of tasks using the aforementioned flags, thereby providing a robot language that supports multitasking.
タスク共通変数としては、例えば、工程を示す変数G、
工程Gで使われる部品を収容するパレットが収納されて
いるストッカ24内の棚位置を示す変数S[Gコ、工程
Gに使われる部品のパレット内の残個数を示す変数Z
[G] 、そして、ストッカー24内で残個数Z [G
]が“0”になり、その残“0”のパレットをエレベー
タ26を介してバッファ22から、補給して入れ替える
べきことを示すフラグI [G]等がある。Common task variables include, for example, a variable G that indicates the process.
Variable S[Gco] indicates the shelf position within the stocker 24 where the pallets containing the parts used in process G are stored, and variable Z indicates the number of remaining parts in the pallets used in process G.
[G], and the remaining number Z in the stocker 24 [G
There is a flag I [G], etc., that indicates when ] becomes "0", and the remaining "0" pallets should be replenished and replaced from buffer 22 via elevator 26.
一般に、タスク内で使用するワーク領域は、各タスク間
で固有で閉鎖的であるが、各タスク共通に使用可能な共
通変数領域828を設けることにより、どのタスクから
でも、これらの変数にアクセスすることが可能になる。Generally, the work areas used within a task are unique and closed to each task. However, by providing a common variable area 828 that can be used by all tasks, it becomes possible to access these variables from any task.
このように、このタスク間で共通の領域にアプリケーシ
ョンプログラム記述言語であるロボット言語としてのタ
スク共通変数を構築することによって、どのタスクから
でも、数値または文字の操作を可能としている。In this way, by constructing task-common variables in a common area across these tasks, which function as a robot language—an application program description language—it becomes possible to manipulate numerical or character values from any task.
そして、タスク間の同期は、実行ルーチンの中で、O3
用のシステムコールを発行することを特徴とするマルチ
タスク対応のロボット言語とタスク共通変数により実現
されている。Then, synchronization between tasks is performed within the execution routine using O3.
This is implemented using a multitasking robot language and task-common variables, characterized by issuing system calls for specific tasks.
このように、マルチタスクによる各機能ブロックのアプ
リケーションプログラムレベルの並列的実行は、各タス
ク間でのデータのやり取りがメモリを介して行なわれる
ために、複雑な配線等が不要になり、また煩雑な通信用
のプログラムも不要となり、その結果高速になる。しか
も、後述するように、ロボット、ストッカー等がもつそ
の動作の独自性は、このマルチタスク下におけるタスク
の相違どうものに全て吸収されてしまうことも留意して
おくべきである。Thus, parallel execution at the application program level of each functional block through multitasking eliminates the need for complex wiring and cumbersome communication programs, as data exchange between tasks is conducted via memory, resulting in higher speed. Moreover, as will be discussed later, it should be noted that the unique characteristics of the robots, stockers, etc., are all absorbed into the differences between tasks under this multitasking system.
第6図に入出カバンドラ821と各タスクの間に設けら
れた論理的データバスを示す、即ち、入出カバンドラ8
21には、入出力ポートが3つ(PT、〜PTs)用意
されている。一方、前述したように、823〜826の
各タスクには、入出力装置18とのデータやり取り専用
のメイルボックス(MHI −MB4 )が用意されて
いる。入出カバンドラ821の入出力ポートが3つであ
り、メイルボックスが4つであるために、各入出力ポー
トが現在どのタスク(どのメイルボックス)に割り付け
られているか保持するデータが必要であり、そのデータ
が割り付はレジスタ822のデータである。この割り付
はデータは前述したように、ローカルメモリ803の領
域822に確保され、各ポートに対して1ワード用意さ
れている。Figure 6 shows the logical data bus provided between the input/output cobandra 821 and each task, i.e., input/output cobandra 8
Unit 21 is provided with three input/output ports (PT, ~PTs). On the other hand, as mentioned above, each task from 823 to 826 is provided with a mailbox (MHI-MB4) dedicated to data exchange with the input/output device 18. Since the input/output cobundler 821 has three input/output ports and there are four mailboxes, data is needed to maintain which task (which mailbox) each input/output port is currently assigned to, and this data is the data in the assignment register 822. As mentioned above, this assignment data is allocated in area 822 of local memory 803, with one word allocated for each port.
く割付レジスタ〉
第7図に割付レジスタの構成を示す。上述したように、
この割付レジスタは各ポート/チャネルに対して、1つ
用意されており、その値が”0”であることは、当該ポ
ート/チャネルが開放状態であることを意味する。また
、その値が“1”であるときは、ロボットタスクに占有
されていることを、′2″であるときはストッカータス
クに占有されていることを、“3″であるときは、・・
・・・・。この割付ビットをリセット(開放)するのは
、入出力装置18からDo”のコマンドが入力されたと
き、ロボットタスクに割り付けられるときは入出力装置
18から“D1″のコマンドが入力されたとき、・・・
・である。<Assignment Registers> Figure 7 shows the configuration of the assignment registers. As described above,
Each port/channel has its own allocation register. A value of "0" indicates that the port/channel is free. A value of "1" means it is occupied by the robot task, a value of "2" means it is occupied by the stocker task, and a value of "3" means...
...This assignment bit is reset (opened) when the "Do" command is input from the input/output device 18, or when the robot task is assigned, when the "D1" command is input from the input/output device 18, ...
・ is.
くタスクコントロールボックス〉
第8図はタスクコントロールボックスの構成を示す。こ
のタスクコントロールボックスはマルチタスク0382
0により、その初期化時に作成されるものである。この
タスクコントロールボックスに登録され得るタスクは、
本実施例に特に関連するもののみを上げると、第8図に
示すように、入出力装置ハンドラタスク821(以下、
RSハンドラ、タスクと略す)、ロボットタスク823
、ストッカータスク824エレベータタスク825、バ
ッファタスク826、そして、0S820によって起動
されユーザには使用できないスタートアップタスクがあ
る。このスタートアップタスクは、その性質数、第4図
には示していない。<Task Control Box> Figure 8 shows the configuration of the task control box. This task control box is for multitasking 0382
0 indicates that it is created during initialization. The tasks that can be registered in this Task Control box are:
To list only those particularly relevant to this embodiment, as shown in Figure 8, the input/output device handler task 821 (hereinafter,
RS handler (abbreviated as task), robot task 823
There are also the stocker task 824, the elevator task 825, the buffer task 826, and the startup task which is started by 0S820 and is not available to the user. The number of properties of this startup task is not shown in Figure 4.
タスクコントロールボックスに格納されているデータを
説明すると、そのタスクの開始命令アドレスを示す「ス
タートアドレス」、システムに登録されたか否かを示す
「登録フラグ」、そのタスクが起動されたかを示す「起
動フラグ」、起動されはしたが現在中断中であるかを示
す「中断フラグ」、そして、RSハンドラに割り付けさ
れたか否かを示す「割り付はフラグ」、そして、対応す
るメイルボックス内にデータ入力があることを示すフラ
グ「メイルボックスフラグ」等である。上記中断フラグ
は、当該タスクのためのデータがメイルボックスに入力
されることの待状態にあることを示す「メイルボックス
入力待フラグ」、サーボボードからのI10完了割込み
待であることを示すr110完了待フラグJ、RSハン
ドラによって当該タスクがいずれかのチャネルに割り付
けられることの待であることを示す「割り付は待フラグ
」の、いずれかのビットがセットされれば、中断状態に
なる。さて、タスク間のスケジューリング、切替えは、
所謂ラウントロピン方式に従って、登録され、起動され
たタスクについて、順番に「中断フラグ」をサーチして
、「中断フラグ」が0”であるタスクはそのアプリケー
ションプログラムの実行を行ない、“1“であるタスク
は実行を中断して次のタスクの「中断フラグ」をサーチ
するものである。The data stored in the task control box includes the "start address" indicating the start command address of the task, the "registration flag" indicating whether or not it has been registered with the system, the "start flag" indicating whether or not the task has been started, the "suspend flag" indicating whether or not it has been started but is currently suspended, the "assigned flag" indicating whether or not it has been assigned to an RS handler, and the "mailbox flag" indicating whether or not there is data input in the corresponding mailbox. The suspension flag enters a suspended state if any of the following bits are set: the "mailbox input waiting flag" indicating that it is waiting for data for the task to be input into the mailbox, the r110 completion waiting flag J indicating that it is waiting for an I10 completion interrupt from the servo board, or the "assigned waiting flag" indicating that it is waiting for the task to be assigned to one of the channels by the RS handler. Now, scheduling and switching between tasks are as follows:
Following the so-called roundtropin scheme, the system sequentially searches for the "suspend flag" of each registered and launched task. Tasks with a "suspend flag" of "0" continue executing their application program, while tasks with a "suspend flag" of "1" suspend execution and search for the "suspend flag" of the next task.
上記「メイルボックスフラグ」は、システム820によ
りセットされる。The above "mailbox flag" is set by system 820.
また、RSハンドラタスクのタスクコントロールボック
スは、本実施例では3チヤネル分用意されている。全タ
スク分のチャネルを用意しても良いが、全タスクが同時
にRSハンドラと通信状態に入ることは、この自動組立
/補給装置では少ないから、プログラム規模、システム
の複雑化を防ぐ意味からでも、チャネル数をすくなくし
ている。従って、この実施例装置の動作が複雑化すれば
、当然チャネル数を増やす必要はあるのであり、その場
合にも、システムのアルゴリズムを変更することなく、
増設可能であることは以下の説明から容易に了解される
。Furthermore, in this embodiment, the task control box for the RS handler task has three channels. While it would be possible to provide channels for all tasks, it is rare for all tasks to be in communication with the RS handler simultaneously in this automated assembly/supplying device. Therefore, to prevent program size and system complexity, the number of channels is kept low. Consequently, if the operation of this embodiment becomes more complex, it will naturally be necessary to increase the number of channels, and even in that case, without changing the system algorithm,
It is easy to see from the following explanation that it is possible to expand the system.
尚、以下説明する制御プログラムでは、説明の便宜上、
ポート/チャネルを1チヤネルとして説明する。Furthermore, in the control program described below, for the sake of explanation,
Ports/channels are described as one channel.
く入出力装置18のタスクへの割り付け〉本実施例の自
動組立/補給装置における制御モードには、7つのモー
ドが設定されている。それらのモードとは、ロボットプ
ロプラムを解釈し、各ブロックに動作を指令するモード
(自動モード)、ロボットプログラムを作成記憶するモ
ード(プログラムモード)、入出力装置18または各セ
ンサからの入力を監視するモード(入力モード)、出力
を開閉するモード(出力モード)、ロボットに動作位置
を教示するモード(ティーチングモード)、ロボットの
動作位置を入力し記憶するモード(データモード)、各
ブロックの動作に対する定数を変更するモード(パラメ
ータモート)の7つである。Assignment of Input/Output Device 18 to Tasks: In this embodiment, seven control modes are set for the automatic assembly/supply device. These modes are: an automatic mode for interpreting the robot program and commanding each block to perform an action; a program mode for creating and storing the robot program; an input mode for monitoring inputs from the input/output device 18 or each sensor; an output mode for opening and closing outputs; a teaching mode for instructing the robot on its operating position; a data mode for inputting and storing the robot's operating position; and a parameter mode for changing constants for the operation of each block.
これらのモードに出入りするための指令は、外部の入出
力装置18から行なう。即ち、タスクがプログラムに従
って動作するのは、入出力装置18からの起動があるか
らであり、そのためには、タスクは入出力装置18にい
ずれかのボート/チャネルを介して割り付けられる必要
がある。第9A図、第9B図は、この割り付けのための
制御プログラムである。第9A図はマルチタスクos8
20による各タスクの起動までを、第9B図にRSハン
ドラ821と各タスクが割り付けられるまでを示す。尚
、第9B図においては、紙面の都合上、RSハンドラ8
21とロボットタスク823との関係のみを示す。Commands to enter and exit these modes are issued from an external input/output device 18. That is, tasks operate according to their programs only when initiated from the input/output device 18; for this to happen, tasks must be assigned to the input/output device 18 via one of the boats/channels. Figures 9A and 9B show the control programs for this assignment. Figure 9A shows the multitasking OS 8.
Figure 9B shows the process up to the start of each task by 20, including the assignment of RS handler 821 and each task. Note that in Figure 9B, due to space limitations, RS handler 821 is shown.
Only the relationship between 21 and robot task 823 is shown.
先ず、制御ユニット16に電源が投入されると、ステッ
プSIOでマルチタスク03820のワークエリア等が
初期化される。そして、03820により、スタートア
ップタスクの起動がなされる。即ち、夕°スクコントロ
ールボックス(第8図)の「登録フラグ」と「起動フラ
グ」とが°°ビ°とマークされ、スタートアップタスク
が起動される。First, when power is supplied to the control unit 16, the work area of the multitasking 03820 is initialized in step SIO. Then, the startup task is started by 03820. That is, the "registration flag" and "startup flag" on the task control box (Figure 8) are marked, and the startup task is started.
スタートアップタスクのステップS20.ステップ32
2で、チャネル1〜3の各チャネルに対応したRSハン
ドラタスク、ロボットタスク〜バッファタスク等の「登
録フラグ」、「起動フラグ」を“1″とマークする。そ
して、ステップS24で、スタートアップタスクの「起
動フラグ」・を“0”に、「中断フラグ」を“1”にマ
ークして、このタスクを休止させる。Startup Task Step S20. Step 32
In step 2, the "registration flag" and "start flag" for the RS handler task, robot task, buffer task, etc., corresponding to each of channels 1 to 3 are marked as "1". Then, in step S24, the "start flag" of the startup task is marked as "0" and the "suspend flag" is marked as "1", and this task is suspended.
以後は前述したように、ラウントロピン方式に従って、
RSハンドラタスクからバッファタスクまでの間でタス
クのスケジューリング、切り替えが行なわれる。From this point onward, as mentioned above, we will follow the launttropin protocol.
Task scheduling and switching occur between the RS handler task and the buffer task.
第9B図に従って説明する。Rsハンドラ側は、スター
トアップタスクにより「起動フラグ」を“1”とされる
と、ステップS30で、システムコールによりR323
2Cインターフエース402を介した入出力装置18か
らの入力を調べる。入力がなければ、ステップS32で
、「中断フラグ」と「入力待フラグ」を“1”とマーク
して、自らはCPU405の使用権を放棄する。The explanation will follow Figure 9B. When the startup task sets the "startup flag" to "1", the Rs handler makes a system call in step S30 to R323.
The input from the input/output device 18 via the 2C interface 402 is checked. If there is no input, in step S32, the "interruption flag" and the "input waiting flag" are marked as "1", and the CPU 405 itself is relinquished.
もし入出力装置18からの人力がなく、RSハンドラタ
スクが中断したら、タスクスケジューリングによって、
ロボットタスクに切り替えられる。ロボットタスクは既
にスタートアップタスクによって登録及び起動済みとマ
ークされているから、ステップS70から実行され、前
述の各モードで使用される変数等を初期化する。そして
、ステップS72で、タスクコントロールボックスのス
タートアドレスを変更する。これは、再度RSハンドラ
タスクからロボットタスクへ切り替えられたときに、再
度ステップS70の初期化を行なわないようにするため
である。従って、変更されるべきスタートアドレスはス
テップS74を指す、ステップS74では、ロボット用
のメイルボックスにパンドラ821から入力がないかを
調べる。この入力がなければ、このロボットタスクの「
中断フラグ」、「入力待フラグ」を“1”とマークして
、他のタスク(第9B図の場合は、RSパンドラタスク
)の実行に切り替わる。入力があればステップ378に
進むが、今の場合は、末だRSハンドラから入力してい
ないので、「メイルボックスフラグ」はリセットされて
いるままであるから、RSハンドラタスクの実行に切り
替わる。If there is no human intervention from the input/output device 18 and the RS handler task is interrupted, the task scheduling will determine the following:
The robot task is switched to. Since the robot task has already been registered and marked as started by the startup task, it is executed from step S70, initializing the variables used in each of the modes described above. Then, in step S72, the start address of the task control box is changed. This is to prevent the initialization in step S70 from being performed again when switching back from the RS handler task to the robot task. Therefore, the start address to be changed points to step S74. In step S74, it checks if there is any input from Pandora 821 to the robot's mailbox. If there is no input, this robot task's "
The "Interruption Flag" and "Waiting for Input Flag" are marked as "1," and the process switches to executing another task (in the case of Figure 9B, the RS Pandora task). If there is input, the process proceeds to step 378, but in this case, since there has been no input from the RS handler, the "Mailbox Flag" remains reset, and the process switches to executing the RS handler task.
RSハンドラタスク側では、ステップS32での入力待
で中断している。もし、これ以前にインターフェース4
02を介して入出力装置18からの入力があれば、マル
チタスク03820により、「中断フラグ」と「入力待
フラグ」はリセットされているから、ステップS34に
進む。そして、ステップS34で、ボートから1バイト
の人力を行ない、ステップS36で、このコマンドの解
釈を行ない、そのコマンドによって、ステップS40、
ステップ348、ステップ360のいずれかに進む。On the RS handler task side, the process is interrupted at step S32 while waiting for input. If, before this, interface 4
If there is input from the input/output device 18 via 02, the "interrupt flag" and "input waiting flag" are reset by the multitasking 03820, so the process proceeds to step S34. Then, in step S34, one byte is manually entered from the boat, and in step S36, this command is interpreted, and based on that command, step S40,
Proceed to either step 348 or step 360.
ステップS40は、入力されたコマンドが割付コマンド
である場合である。この割付コマンドは、このコマンド
が入力されたボート/チャネルを、コマンドが示すタス
クに割り付けようとする。その指定されたタスクを入出
力装置18に対して割り付ける。以後、入出力装置18
は割り付けられたチャネルを通してそのタスクと通信を
行なう。もし、コマンドが、ロボットタスクに割付けよ
うとしているならば、そのコマンドは前述したように、
例えば“Dl“である。そこで、ステップS40で、こ
のコマンドが入力されたボート/チャネル以外のボート
/チャネルの割付レジスタを調べる。即ち、他のポート
/チャネルと当該タスクが既に結合されているかも知れ
ないからである。既に結合されている場合は、RSハン
ドラタスクに対して、エラーメツセージを返す。これは
、1つのタスクに2つ以上の論理バスを設けることは、
制御を複雑にするから禁止しているからに他ならないが
、もしRSハンドラタスクからの入力とRSハンドラタ
スクへの出力を1つのタスクについて、別々に行なうこ
とを認めれるのであれば、ステップS42.ステップS
’44は不要である。Step S40 occurs when the input command is an assignment command. This assignment command attempts to assign the boat/channel on which the command was input to the task indicated by the command. The specified task is then assigned to the input/output device 18. Thereafter, the input/output device 18
It communicates with the task through the assigned channel. If the command is attempting to assign a robot task, the command will be as described above.
For example, “Dl”. Therefore, in step S40, the allocation registers of boats/channels other than the boat/channel from which this command was entered are checked. That is, the task may already be coupled with other ports/channels. If it is already coupled, an error message is returned to the RS handler task. This is because providing more than one logical bus for a single task is,
This is prohibited simply because it complicates the control, but if it were permissible to perform the input from the RS handler task and the output to the RS handler task separately for a single task, then step S42.
'44 is unnecessary.'
ステップS42での判断がOKであれば、ステップ34
6で、割り付けようとするタスクのメイルボックス番号
を、割付レジスタに格納する。かくして、RSハンドラ
タスクとポート/チャネルと特定のタスクとの間がメイ
ルボックスを介して連結されたことになる。If the judgment in step S42 is OK, then step 34
In step 6, the mailbox number of the task to be assigned is stored in the assignment register. Thus, the RS handler task, the port/channel, and the specific task are connected via the mailbox.
RSハンドラタスクは、上述の論理パス設定後、ステッ
プS30に戻って、再度ボート/チャネルから入力があ
るのを待つ。ステップS30で、入出力装置18からの
入力がなくて、ロボットタスクに制御が切り替わっても
、ロボットタスクは現在、ステップ376で、メイルボ
ックスデータ待であるから、再度、RSハンドラタスク
側に制御が切り替わる。ステップS30で入出力装置1
8からの入力があると検出されたら、ステップ534=
>ステップ536=>ステップ338と進む。この入力
が、割り付はコマンドでも、割り付は開放コマンドでも
ない場合は、ステップS60に進む。ステップS60で
は、このポート/チャネルとこのコマンドによって指定
されたタスクとが既に連結されていることを念のために
調べるために、割付レジスタを調べる0割り付けされて
いなければ、ステップS64でエラーメツセージを当該
ボート/チャネルを介してRSパンドラタスクに返す。After setting the logical path as described above, the RS handler task returns to step S30 and waits again for input from the boat/channel. In step S30, even if there is no input from the input/output device 18 and control is switched to the robot task, the robot task is currently waiting for mailbox data in step 376, so control is switched back to the RS handler task. In step S30, input/output device 1
If input from 8 is detected, then step 534 =
>Step 536 =>Proceed to step 338. If this input is neither an allocation command nor an allocation release command, proceed to step S60. In step S60, check the allocation register to confirm that this port/channel and the task specified by this command are already linked. If it is not allocated, return an error message to the RS Pandora task via the port/channel in step S64.
割り付けOKであれば、割付レジスタに示された番号の
メイルボックスに格納して、ステップS30に戻る。こ
のとき、マルチタスクO3は、タスクコントロールボッ
クスの「メイルボックスフラグ」を1″とマークすると
ともに、「中断フラグ」をリセットする。If the assignment is OK, it is stored in the mailbox with the number indicated in the assignment register, and the process returns to step S30. At this time, the multitasking O3 marks the "mailbox flag" in the task control box as 1" and resets the "suspend flag".
ステップ330で入力がなくて、ロボットタスクに制御
が移っても、「メイルボックスフラグ」はセットされて
いるから、ロボットタスクは実行可能であるから、ステ
ップ578で、当該メイル−γ
ボックス内のデータを取り出す。そして、この取り出さ
れたコマンドに従って、前述した7つのモードのいずれ
かに、このタスクは移行する。Even if there is no input in step 330 and control is transferred to the robot task, the "mailbox flag" is set, so the robot task is executable, and in step 578, the data in the mail-γ box is retrieved. Then, according to the retrieved command, the task transitions to one of the seven modes described above.
このようにして、入出力装置18からの人力データは、
1つのポート/チャネルと、タスクとが論理的に連結さ
れた状態でコマンドの授受が行なわれる。In this way, the manual data from the input/output device 18 is
Commands are exchanged in a logically linked state between a single port/channel and a task.
尚、ロボットタスクは、各モードからモード脱出コマン
ドの入力により脱出して、ステップS70に戻る。Furthermore, the robot task exits each mode by inputting a mode exit command and returns to step S70.
ここで、割り付は開放コマンドを入出力装置18から入
力した場合について説明する。このときは、ステップ3
30gステップ534e>ステップ536=>ステップ
338=>ステップ548へと進む。このステップS4
8で、割付レジスタの当該チャネルを、“0″とマーク
し、タスクコントロ一
−ルボツクスの割り付は状態ビットを“0”にする。こ
の割り付は開放コマンドは、ボート/チャネルが3つに
対して、このボート/チャネルを使うタスクが4つある
ので、どうしても開放コマンドが必要になるからである
。割り付けの開放は、入出力装置18内のプログラムに
より、ラウントロピン方式でスケジューリングすればよ
い。Here, we will explain the case where the allocation is released by input/output device 18. In this case, step 3
30g Step 534e > Step 536 => Step 338 => Step 548. This is Step S4
In step 8, the corresponding channel in the allocation register is marked as "0", and the allocation status bit of the task control box is set to "0". This allocation release command is necessary because there are three boats/channels and four tasks using these boats/channels. The release of the allocation can be scheduled using the roundtropin method by the program in the input/output device 18.
第10図を用いて、各タスクからRSハンドラタスクを
介して入出力装置18へ出力する場合の制御を説明する
。この場合も紙面の都合上、タスクはロボットタスクの
みで説明する。ロボットタスクのアプリケーションプロ
グラム実行中に、ステップ5120で、入出力装置18
への出力データが発生したとする。このとき、システム
コールにより、ステップ5122でタスクコントロール
ボックス内の自分のタスクの割り付はフラグのセット状
態を調べる。そして、割り付けされていないならば、入
出力装置18からの割り付はコマンドによる割り付けを
待つ。即ち、タスクコントロールボックスの「割り付は
待フラグ」と「中断フラグ」を1″とマークする。Using Figure 10, we will explain the control when outputting from each task to the input/output device 18 via the RS handler task. In this case as well, due to space limitations, we will only explain the robot task. During the execution of the robot task's application program, in step 5120, the input/output device 18
Assume that output data is generated. At this time, a system call is made, and in step 5122, the assignment status of the task in the task control box is checked. If it is not assigned, the assignment from the input/output device 18 waits for an assignment command. That is, the "Waiting for Assignment Flag" and "Suspended Flag" in the task control box are marked as 1.
一方、RSハンドラタスク側では、前述したアルゴリズ
ムにより、ステップ3100〜ステツプ5106で、ボ
ート/チャネルの当該タスクへの割り付けを行なうから
、ステップ5106で、マルチタスクO8が、このタス
クの「割り付は待フラグ」と「中断フラグ」を“0”に
すると共に、メイルボックス番号をそのチャネルの割付
レジスタに格納する。やがて、RSハンドラタスクは待
ち状態に入って、制御は石ポットタスク側に切り替わる
から、その時点で、ロボットタスクの制御はステップ5
126から再開する。ステップ5126で、割付レジス
タの内容を順に調べ、自分のタスクが使用しているメイ
ルボックスの番号に一致するチャネルを探す。そして、
このボート/チャネルからステップ5130で、直接出
力する。Meanwhile, on the RS handler task side, the algorithm described above assigns the boat/channel to the task in steps 3100 to 5106. In step 5106, the multitask O8 sets the "waiting for assignment flag" and "suspended flag" for this task to "0" and stores the mailbox number in the channel's assignment register. Eventually, the RS handler task enters a waiting state and control switches to the stone pod task side, so at that point, control of the robot task is transferred to step 5.
Restart from 126. In step 5126, examine the contents of the allocation registers sequentially and find the channel that matches the number of the mailbox used by your task. Then,
Output directly from this boat/channel in step 5130.
このように、いついかなるときに、タスク側で、RSハ
ンドラタスク向けの出力データが発生しても、論理パス
を確定してから出力され、出力データがうしなわれるこ
とはない。In this way, no matter when or how output data for the RS handler task is generated on the task side, it is output only after the logical path is determined, and no output data is lost.
上述したように、1つのボート/チャネルが1つのタス
クと、割り付はコマンドで接続され、割り付は開放コマ
ンドで開放されるということは、複数のタスク間で、1
つの入出力装置18の共有化が達成できることを意味す
る。即ち、従来技術の項で述べたように、プログラム制
御による自動組立/供給装置では、ティーチング、シス
テムの初期設定等の種々の制御が必要であり、この実施
例のように、ロボット、ストッカー、・・・・等が独立
して動作するような場合は、各ブロック毎にティーチン
グ等が必要であり、そのために、ティーチング等のため
の入出力装置が複数台必要であったが、この実施例では
、少なくとも1台の入出力装置18で間に合うことにな
る。こうして、1つの入出力装置18が、特にロボット
、ストッカ等の自動組立装置における各機能ブーツク要
素との間で共有化が図られる。しかも、更に、例えばロ
ボット等を増設するときでも、それに必要な制御ブロッ
クボード(第2図参照)等は新たに必要になるとは言え
、従来のように、ティーチングのための教示装置を追加
する必要はない。また、それぞれの負荷に対するデータ
入力の際に、その負荷に対応する入出力装置18の所へ
8勅するわずられしさが省けるわけである。As mentioned above, one boat/channel is associated with one task, and allocation is connected via a command, while allocation is released via a release command. This means that between multiple tasks, one
This means that the sharing of one input/output device 18 can be achieved. In other words, as described in the section on the prior art, in program-controlled automatic assembly/supplying devices, various controls such as teaching and initial system setup are required. In cases where robots, stockers, etc., operate independently, as in this embodiment, teaching etc. is required for each block, and therefore multiple input/output devices for teaching etc. were required. However, in this embodiment, at least one input/output device 18 is sufficient. Thus, one input/output device 18 is shared among various functional boot elements in the automatic assembly device, particularly robots and stockers. Moreover, even when adding robots, etc., although a new control block board (see Figure 2) etc. is required, it is not necessary to add a teaching device as in the conventional method. Furthermore, the hassle of having to go to the input/output device 18 corresponding to each load when inputting data for each load is eliminated.
くメインブロックとサーボブロック〉
各タスク間は上述したように、マルチタスクO3化で、
システムコールによるフラグ管理及び共通変数による管
理により、各制御モジュールが同期して力作される。こ
れらのタスクは、マルチタスクO3の物理層レベルの制
御を通して、システムバス700により、各サーボブロ
ックボード(702〜705)と、I10ブロックボー
ド706とに接続されている。ここで、これらのサーボ
ブロック等と上記各タスクを含むメインブロックとのイ
ンターフェースを説明する前に、前述の自動モードにお
ける制御について第11図を用いて説明する。<Main block and servo block> As mentioned above, the interaction between each task is handled by multitasking O3.
Each control module operates synchronously through flag management via system calls and management using common variables. These tasks are connected to each servo block board (702-705) and the I10 block board 706 via the system bus 700 through physical layer-level control of the multitasking O3. Before describing the interface between these servo blocks and the main block containing the above tasks, the control in the aforementioned automatic mode will be explained using Figure 11.
ステップ5150で、この自動モードをコールしたタス
クのメイルボックスにデータが入力されているかを調べ
る。データが入力されていなければ、他のタスクへの切
り替えを行なって、データ入力を待つ。メイルボックス
にデータ入力があると、ステップ5152で、そのデー
タを取り出し、ステップ5154で、その分析を行なっ
て、どのような動作指示かを判断する。本実施例では、
6通りの動作指示の例を示す。第1はステップ5156
のプログラムの解釈/実行である。このときは、プログ
ラムの最終まで実行して、終了した時点(ステップ51
60)で、入出力装置18に終了したポインタ行を中心
にして、5行分を出力する。第2の例は、ステップ31
62における、プログラム1行の解釈/実行である。こ
のときは、その1行毎の解釈/実行で、ステップ316
4で、入出力装置18に対して、1行進んだポインタ行
より3行後のプログラムを1行分出力する。第3の例は
、ステップ5166において、プログラム番号を変更す
るものである。このときは、ステップ3168で、入出
力装置18に対して、変更後のプログラム番号のプログ
ラムの先頭5行分を送出する。第4の例はステップ51
70におけるポインタ行の変更である。このときは、ス
テップ5172で、変更後のポインタ行を中心に5行分
を送出する。第5の例は、ステップ5174の、ポイン
タ行を1つ進めることである。このときは、ステップ8
176で変更後のポインタ行の3行後の1行を送出する
。第6の例はステップ3178におけるポインタ行を1
つ戻すことである。この場合は、ステップ3180で、
変更後のポインタ行の3行前の1行を送出する。尚、こ
れらのデータ送出は前述の第10図に示した制御を用い
る。In step 5150, it is checked whether data has been entered into the mailbox of the task that called this automatic mode. If no data has been entered, it switches to another task and waits for data to be entered. If data has been entered into the mailbox, in step 5152 the data is retrieved, and in step 5154 it is analyzed to determine what kind of operation instruction it is. In this embodiment,
Six examples of operation instructions are shown. The first is step 5156.
This is the interpretation/execution of the program. At this time, the program is executed to the end, and when it finishes (step 51)
60) Then, five lines are output to the input/output device 18, centered on the pointer line that has finished. The second example is in step 31.
In step 62, this is the interpretation/execution of one line of the program. In this case, the interpretation/execution of each line is performed in step 316.
In step 4, the program three lines after the pointer line one line ahead is output to the input/output device 18. The third example is to change the program number in step 5166. In this case, in step 3168, the first five lines of the program with the changed program number are sent to the input/output device 18. The fourth example is in step 51
This is a change to the pointer line in step 70. In this case, step 5172 sends out five lines centered on the changed pointer line. The fifth example is advancing the pointer line by one in step 5174. In this case, step 8
In step 176, send the line three lines after the modified pointer line. The sixth example is that in step 3178 the pointer line is 1
It is to go back one step. In this case, in step 3180,
Send the line three lines prior to the modified pointer line. Note that the control shown in Figure 10 above is used for sending this data.
次に、第12図、第13図を用いて、メインブ0ツク7
01と各下位の制御ブロック702〜706とのインタ
ーフェースを説明する。第12図は、各下位ボードとの
通信につかわれるデータのフォーマットである。この通
信データは共有メモリ806の領域837(第4図)に
格納される。Next, using Figures 12 and 13, Main Block 7
The interface between 01 and each lower control block 702-706 will be described. Figure 12 shows the data format used for communication with each lower board. This communication data is stored in area 837 of the shared memory 806 (Figure 4).
動作指示コードとは、例えば、サーボモータの回転によ
り例えばロボットアームを移動させるときの1バイトの
コードである。このときのパラメータは、′8勤位置が
セットされる。転送バイト数は上記指示コードとパラメ
ータの併せたバイト数である。転送バイト数が必要なの
も、パラメータが可変長であるからである。第12図に
も示しであるように、ロボットのサーボボードには、1
デバイス/ワードであるならば、256個分のサーボモ
ータ等のデバイスを”ADするに足りる通信エリアが確
保されている。An operation instruction code is a one-byte code used, for example, to move a robot arm by rotating a servo motor. The parameter at this time is set to the operation position. The number of bytes to transfer is the sum of the instruction code and the parameter. The reason why the number of transfer bytes is necessary is because the parameter is of variable length. As shown in Figure 12, the robot's servo board has 1
If it's a device/word, then a communication area sufficient to "AD" 256 devices such as servo motors is secured.
〇−
第13図により制御を説明する。アプリケーションプロ
グラムが例えば、“MOVE”等の命令を実行すると、
インタプリタが解釈してO3に対してシステムコールを
発生し、マルチタスクO3が動作指示コードとパラメー
タを準備して、割込みを各サーボボードに対して送出す
る。そこで、タスク側では、ステップ5200で、それ
らのコードとパラメータとを、共有メモリ806内の所
定の位置に格納する。そして、ステップ5202で、そ
の下位ボードに対して、システムバス700を介して割
込みをかける。ステップ5204で、システムコールを
行ない、タスクコントロールボックスの「I10完了待
フラグ」、「中断フラグ」を“1”にマークして、待状
態に入る。ステップ5212で、割込みを受けた下位ブ
ロック側は、ステップ5214で、共有メモリ806か
ら動作指示コード、パラメータを取り出して、ステップ
5216で、その動作を実行する。そして、ステップ5
220で、メインブロック701に対して、動作完了の
割込みをかける。この割込みを受けたメインブロック側
では、マルチタスクoSが、このI10完了割込みの原
因になったタスクのタスクコントロールボックスの「完
了フラグ」及び「中断フラグ」を“O”にする。こうし
て、当該タスクは再び実行可能状態におかれる。○- The control will be explained with reference to Figure 13. When an application program executes a command such as "MOVE",
The interpreter interprets the data and issues a system call to O3. The multitasking O3 prepares the operation instruction code and parameters and sends interrupts to each servo board. In step 5200, the task stores these codes and parameters in a designated location in the shared memory 806. Then, in step 5202, it sends an interrupt to its lower board via the system bus 700. In step 5204, it makes a system call, marks the "I10 completion wait flag" and "suspend flag" in the task control box to "1", and enters a waiting state. In step 5212, the lower block that received the interrupt retrieves the operation instruction code and parameters from the shared memory 806 in step 5214, and executes the operation in step 5216. Then, step 5
At step 220, an interrupt is triggered on the main block 701 to indicate completion of the operation. Upon receiving this interrupt, the multitasking OS on the main block sets the "Complete Flag" and "Suspended Flag" in the task control box of the task that caused the I10 completion interrupt to "O". In this way, the task is made executable again.
また、I10ブロックに対しても、第12図に示された
のと同じ領域が共有メモリ806内に確保されており、
例えばロボットタスクで、あるソレノイドを付勢するよ
うな命令が実行されると、その被駆動素子がソレノイド
であり、その制御はI10ブロック内にて行なわれるべ
きことをインタプリタが解釈して、第12図に示した動
作支持コード等を共有メモリ806内に準備して、03
820に対してシステムコールを発し、すると、038
20はこのI10ブロックに対して割込みをかける。そ
の他の動作はサーボブロックの場合と同じである。スト
ッカ、エレベータ、バッファ等のソレノイド等に対して
も、同じI10ブロックボードが使われる。Furthermore, the same area as shown in Figure 12 is also reserved in the shared memory 806 for block I10.
For example, in a robot task, when a command is executed to energize a solenoid, the interpreter interprets that the driven element is a solenoid and that its control should be performed within the I10 block, and prepares the operation support code shown in Figure 12 in the shared memory 806, 03
A system call was made to 820, and then 038
20 triggers an interrupt on this I10 block. Other operations are the same as for the servo block. The same I10 block board is also used for solenoids such as stockers, elevators, and buffers.
以上説明したように、このメインブロックとその下位の
制御ブロックとの間は、1つは第12図に示した毎き単
純化されたコマンドセットによりインターフェースされ
る。しかも、各下位ブロックにおけるサーボモータ等の
デバイスはその動作をコマンドとして極めて単純化でき
る。このことは次の重要な特徴を引き出す。即ち、ロボ
ット。As explained above, the main block and its subordinate control blocks are interfaced by a simplified command set, as shown in Figure 12. Moreover, the operation of devices such as servo motors in each subordinate block can be greatly simplified as commands. This leads to the following important feature: the robot.
ストッカー等は、夫々が独自の機能を有し、その動作は
異なっている。これを従来のように、異なる機能毎に異
なる制御装置がその機能に対応した制御プログラムをも
って制御していたのでは、機能が増える毎に、異なる制
御装置が必要となる。Each storage unit has its own unique function, and their operation differs. If, as in the past, a different control unit with a control program corresponding to each function were to be used to control these units, then as the number of functions increases, a different control unit would be required.
ところが、上記実施例では、先ず、ロボットとストッカ
ーとでは、機能が異なっていても、それは制御のアルゴ
リズムが異なっているだけであり、そのアルゴリズムの
違いをタスクの違いに吸収させる。タスクの相違はプロ
グラムの相違に過ぎない。そして、例えばロボットとス
トッカーでは、アルゴリズムの相違を捨象すれば、サー
ボモータ、ソレノイド等といったデバイスの集合に過ぎ
ないのであり、これらのデバイスは上述したように単純
な命令セットでその動作を表現できるから、下位制御ボ
ードは、例えロボットとストツーカー間でもほとんど差
異がないことになる。またメインブロックは、サーボモ
ータ等の被駆動素子の独自性には影響を受けないから、
プログラムが違うのみでよく、これは単にメモリ容量の
差に過ぎなくなる。即ち、メインブロックでは、機能の
増設をメモリ容量を増やすのみで対応でき1、下位の制
御ブロックでは、機能が増えても同じ制御ボードを使用
できるのであるから、大変なコストダウンになるのであ
る。However, in the above embodiment, firstly, even though the robot and the stocker have different functions, this is only due to differences in their control algorithms, and these differences in algorithms are absorbed into differences in tasks. Differences in tasks are merely differences in programs. Furthermore, if we disregard the differences in algorithms between the robot and the stocker, they are nothing more than a collection of devices such as servo motors and solenoids, and since these devices can express their operation with a simple set of instructions as described above, the lower-level control boards will be almost identical even between the robot and the stocker. Also, the main block is not affected by the uniqueness of the driven elements such as servo motors,
Only the program needs to be different, which is simply a difference in memory capacity. In other words, in the main block, the addition of functions can be handled simply by increasing the memory capacity, and in the lower-level control block, the same control board can be used even if the functions are increased, resulting in significant cost reductions.
〈変形例〉
尚、上記実施例において、入出力装置18のポートは3
つを設定したが、1つでも、また4つ以上でも同じであ
る。また、入出力装置18の数も1つには限られず、例
えば制御対象が10台ある場合は、効率を考えれば、2
台以上の入出力装置18を設置可能である。<Modification> In the above embodiment, the ports of the input/output device 18 are 3
Although one is set, the result is the same whether there is one or four or more. Also, the number of input/output devices 18 is not limited to one; for example, if there are 10 devices to be controlled, considering efficiency, two can be used.
It is possible to install more than one input/output device 18.
また、上記実施例においては、制御対象が、1つのブロ
ックとなり、それが1つのタスク、1つのボードに対応
しているが、1つのボード上にスペース的余裕があれば
、複数の制御ブロックを搭載することも可能である。Furthermore, in the above embodiment, the controlled object is a single block, which corresponds to a single task and a single board. However, if there is sufficient space on a single board, it is possible to mount multiple control blocks.
更にまた、第13図の制御では、割込みを用いていたが
、割込みによらず、共有メモリの一部を使ったポーリン
グ方式によっても可能である。逆に、第13図の制御で
、共有メモリを使わずに、割込み発生と同時に、システ
ムバス700上に、動作指示コードとパラメータをメイ
ンブロックのCPU805が載せてやり、それを下位の
制御ブロックのマイクロプロセサが拾うという形式でも
可能である。Furthermore, while the control shown in Figure 13 uses interrupts, it is also possible to implement this control using a polling method that utilizes a portion of the shared memory, without relying on interrupts. Conversely, in the control shown in Figure 13, it is also possible to implement this control without using shared memory, where the CPU 805 of the main block places the operation instruction code and parameters onto the system bus 700 simultaneously with the occurrence of an interrupt, and the microprocessor of the lower-level control block picks them up.
[発明の効果]
以上説明したように本発明によれば、複数の制御対象か
らなる自動組立装置の制御装置において、例えばティー
チングを行なうための情報を入力する等の入出力装置と
他の制御対象部分の制御要素間とで、この入出力装置が
いずれの下位制御部に占有されているかという情報を共
有することによって、この人出内装ばか例え1つであっ
ても共有され得る。従って、規模増大、コストアップ等
を招かずに、制御対象である動作単位を容易に増設でき
る。[Effects of the Invention] As described above, according to the present invention, in a control device for an automated assembly apparatus consisting of multiple control objects, information on which lower-level control unit occupies the input/output device, such as an input device for inputting information for teaching, can be shared between the input/output device and the control elements of other control object parts. This allows even a single piece of manual input/output device to be shared. Therefore, the number of control objects, which are operating units, can be easily increased without increasing the scale or cost.
第1図は、本発明を実施した自動組立/供給装置の構成
図、
第2図は、第1図実施例装置における制御部内のボード
構成を示す図、
第3図は、入出力装置、メインブロック、下位制御ブロ
ック間の接続を示す図、
第4図は、メインブロックのCPU805のメモリ空間
を示すメモリマツプ図、
第5図は、マルチタスクにおけるプログラム階層図、
第6図は、各ブロック間における情報の論理パスの接続
を示す図、
第7図は割り付はレジスタの構成を示す図、第8図はタ
スクコントロールボックスの構成を示す図、
第9A図、第9B図は入出力装置18を各タスク間で共
有するための動作制御プログラムのフローチャート、
第10図は、タスクからRSハンドラタスクへのデータ
出力制御のフローチャート、
第11図、第13図は実施例の制御に係るプログラムの
フローチャート、
第12図はメインブロックと下位制御ブロックとのイン
ターフェースデータのフォーマットを示す図である。
図中、12・・・ロボット、18・・・入出力装置、1
6・・・制御ユニット、22・・・バッファ、24・・
・ストッカ、26・・・エレベータ、20・・・無人車
、220・・・フィンガー、66.68・・・分離部材
、76・・・搬出機構、154・・・引き出し部、22
4・・・組立台、700・・・システムバス、701・
・・メインブロックボード、702〜705・・・サー
ボブロックボード、706・・・I10ブロック・ボー
ド、802・・・インターフェース、803・・・ロー
カルメモリ、805・CPU、806・・・共有メモリ
、808a、808b・・・サーボモータ、809 a
、 ’809 b ・・・エンコーダ、811・・・
ソレノイドバルブ、812・・・センサ、823・・・
ロボット用タスク、824・・・ストッカ用タスク、8
25・・・エレベータ用タスク、826・・・バッファ
用タスク、821・・・人出力装者用ハンドラタスク、
820・・・マルチタスクO3である。
Figure 1 is a diagram of the configuration of an automated assembly/supplying device implementing the present invention, Figure 2 is a diagram showing the board configuration within the control unit in the embodiment of Figure 1, Figure 3 is a diagram showing the connections between the input/output device, the main block, and the lower control block, Figure 4 is a memory map diagram showing the memory space of the CPU 805 of the main block, Figure 5 is a program hierarchy diagram in multitasking, Figure 6 is a diagram showing the connection of the logical path of information between each block, Figure 7 is a diagram showing the configuration of the allocation register, Figure 8 is a diagram showing the configuration of the task control box, Figures 9A and 9B are flowcharts of the operation control program for sharing the input/output device 18 among each task, Figure 10 is a flowchart of data output control from a task to an RS handler task, Figures 11 and 13 are flowcharts of the control program in the embodiment, and Figure 12 is a diagram showing the format of interface data between the main block and the lower control block.In the figures, 12...robot, 18...input/output device, 1
6... Control unit, 22... Buffer, 24...
・Storage unit, 26...Elevator, 20...Automated vehicle, 220...Finger, 66, 68...Separation member, 76...Discharge mechanism, 154...Drawer section, 22
4... Assembly table, 700... System bath, 701...
...Main block board, 702-705...Servo block board, 706...I10 block board, 802...Interface, 803...Local memory, 805...CPU, 806...Shared memory, 808a, 808b...Servo motor, 809a
, '809 b ... encoder, 811...
Solenoid valve, 812... Sensor, 823...
Tasks for robots, 824... Tasks for storage, 8
25... Elevator task, 826... Buffer task, 821... Handler task for human output device,
820... This is multitasking O3.
Claims (1)
異なる組立動作を行なう複数の組立動作部からなる自動
組立装置であつて、 上記互いに独立した異なる組立動作を、1つの論理演算
素子を用いたマルチタスク方式のプログラム制御により
表現した上位制御部と、 この上位制御部に統括される下位制御部であつて、前記
複数の被駆動素子の制御プログラムを有する複数の下位
制御部と、 前記上位制御部に接続され、前記複数の組立動作部にお
ける動作を教示するための指示を入出力する1つまたは
複数の入出力部と、 この入出力部と前記複数の下位制御部の夫々との間に設
けられたのデータ転送手段と、 前記入出力部がいずれのタスクに占有されているかを保
持する保持手段とを備えたことを特徴とする自動組立装
置の制御装置。(1) A control device for an automatic assembly apparatus comprising a plurality of assembly operation units, each having a plurality of driven elements and performing independent and different assembly operations, wherein the control device comprises: a higher-level control unit that expresses the independent and different assembly operations by a multitasking program control using a single logic operation element; a plurality of lower-level control units that are overseen by the higher-level control unit and have control programs for the plurality of driven elements; one or more input/output units connected to the higher-level control unit that input and output instructions for teaching the operations of the plurality of assembly operation units; data transfer means provided between the input/output unit and each of the plurality of lower-level control units; and a holding means that maintains which task the input/output unit is occupied by.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62196490A JP2829928B2 (en) | 1987-08-07 | 1987-08-07 | Automatic machine control device |
| US07/227,551 US5032975A (en) | 1987-08-07 | 1988-08-03 | Controller for automatic assembling apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62196490A JP2829928B2 (en) | 1987-08-07 | 1987-08-07 | Automatic machine control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6441902A true JPS6441902A (en) | 1989-02-14 |
| JP2829928B2 JP2829928B2 (en) | 1998-12-02 |
Family
ID=16358644
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62196490A Expired - Lifetime JP2829928B2 (en) | 1987-08-07 | 1987-08-07 | Automatic machine control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2829928B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0519812A (en) * | 1991-07-16 | 1993-01-29 | Toshiba Corp | Parallel control system |
| US8295949B2 (en) | 2007-11-16 | 2012-10-23 | Fujitsu Limited | Control system, control method, master device, and control device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50150166A (en) * | 1974-05-28 | 1975-12-02 | ||
| JPS5713003A (en) * | 1980-06-23 | 1982-01-23 | Shin Meiwa Ind Co Ltd | Shifter for container |
| JPS5831411A (en) * | 1981-08-19 | 1983-02-24 | Nissan Motor Co Ltd | Controlling system for industrial robot and its accessory device |
| JPS59214910A (en) * | 1983-05-20 | 1984-12-04 | Hitachi Ltd | Method for controlling operation of flexible composite working cell |
| JPS61256406A (en) * | 1985-05-10 | 1986-11-14 | Hitachi Ltd | Control device |
-
1987
- 1987-08-07 JP JP62196490A patent/JP2829928B2/en not_active Expired - Lifetime
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50150166A (en) * | 1974-05-28 | 1975-12-02 | ||
| JPS5713003A (en) * | 1980-06-23 | 1982-01-23 | Shin Meiwa Ind Co Ltd | Shifter for container |
| JPS5831411A (en) * | 1981-08-19 | 1983-02-24 | Nissan Motor Co Ltd | Controlling system for industrial robot and its accessory device |
| JPS59214910A (en) * | 1983-05-20 | 1984-12-04 | Hitachi Ltd | Method for controlling operation of flexible composite working cell |
| JPS61256406A (en) * | 1985-05-10 | 1986-11-14 | Hitachi Ltd | Control device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0519812A (en) * | 1991-07-16 | 1993-01-29 | Toshiba Corp | Parallel control system |
| US8295949B2 (en) | 2007-11-16 | 2012-10-23 | Fujitsu Limited | Control system, control method, master device, and control device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2829928B2 (en) | 1998-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5032975A (en) | Controller for automatic assembling apparatus | |
| US6301634B1 (en) | Real time control method for a robot controller | |
| US5984499A (en) | Method and apparatus for a numerical control system for processing multiple job streams | |
| US7561929B2 (en) | Industrial controller based on distributed technology objects | |
| EP3462255B1 (en) | Synchronization of control programs | |
| CN109388107B (en) | Control device | |
| US5204942A (en) | Robot control system for controlling a set of industrial robots for cooperative operation | |
| US6820187B2 (en) | Multiprocessor system and control method thereof | |
| JP2528813B2 (en) | Control device | |
| JPH03125202A (en) | automatic equipment control device | |
| WO2009089914A1 (en) | A control system for controlling an industrial robot | |
| US6779048B2 (en) | Programmable controller including intelligent module | |
| EP0766156A1 (en) | Programmable logic controller | |
| US12045038B2 (en) | Runtime server for simultaneous execution of a plurality of runtime systems of an automation system | |
| WO1988010453A1 (en) | Apparatus for controlling industrial robot | |
| EP0377939A1 (en) | Robot control system for controlling a set of industrial robots | |
| JPS6441901A (en) | Control device for automatic assembling device | |
| JP2829928B2 (en) | Automatic machine control device | |
| EP3933523A1 (en) | Engineering device, engineering method, and program | |
| JP2902746B2 (en) | Virtual computer control method | |
| US10921783B2 (en) | Numerical control device | |
| KR100812986B1 (en) | Multi Channel Robot Control System | |
| JPS61180310A (en) | Loading system of system control program to numerical controller | |
| KR100269483B1 (en) | Apparatus for controlling system to make up wafer | |
| JP2573251B2 (en) | How to specify the transmission of the programmable controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |