JPH09288585A - Operation order control method for automatic machine - Google Patents

Operation order control method for automatic machine

Info

Publication number
JPH09288585A
JPH09288585A JP9848296A JP9848296A JPH09288585A JP H09288585 A JPH09288585 A JP H09288585A JP 9848296 A JP9848296 A JP 9848296A JP 9848296 A JP9848296 A JP 9848296A JP H09288585 A JPH09288585 A JP H09288585A
Authority
JP
Japan
Prior art keywords
priority
operation instruction
operating instruction
waiting time
execution
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.)
Withdrawn
Application number
JP9848296A
Other languages
Japanese (ja)
Inventor
Hiroshi Ishii
洋 石井
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.)
Kyocera Chemical Corp
Original Assignee
Toshiba Chemical 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 Toshiba Chemical Corp filed Critical Toshiba Chemical Corp
Priority to JP9848296A priority Critical patent/JPH09288585A/en
Publication of JPH09288585A publication Critical patent/JPH09288585A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an operation order control method for automatic machine with which even the execution of an operating instruction with low priority can be timewisely managed as well in the case of controlling the operation order of an automatic machine based on the priority set to the respective operating instructions. SOLUTION: Concerning the operating instruction with the low priority, the longest waiting time after the generation of this operating instruction is set and in place of the preferential execution of a certain operating instruction (1st operating instruction), the waiting time after the generation of an operating instruction (2nd operating instruction) turned to execution waiting state is measured. When this measured time exceeds the longest waiting time of the relevant operating instruction registered in a table 3 for operation order control, the priority of this 2nd operating instruction is temporarily ranked up to the priority of the 1st operating instruction and after the operating instruction with high priority under execution at present is completely executed, that 2nd operating instruction is executed. Thus, the execution of the operating instruction with low priority can be timewisely managed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、自動機械の動作順
序を制御する方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for controlling the operation sequence of an automatic machine.

【0002】[0002]

【従来の技術】コントローラが発生した動作指示を自動
機器に与えてこの自動機械に複数の動作を並列或いは時
系列的に実行させる場合、自動機械に動作指示を与える
順序を、各動作指示に対して予め設定された優先順位に
基づいて変更する制御方法が知られている。
2. Description of the Related Art When an operation instruction generated by a controller is given to an automatic machine to cause the automatic machine to execute a plurality of operations in parallel or in time series, the order of giving the operation instruction to the automatic machine is set for each operation instruction. There is known a control method of changing the priority based on a preset priority order.

【0003】図3にかかる動作順序制御の例を示す。同
図にて,,,,,は自動機械に与えられる
動作指示を示し、からの順に動作指示が発生したも
のとする。優先順位の関係は,,,,を上
位、を下位とする。横軸は時間軸であり、左から右へ
時間が経過する。また○は動作指示の発生、●は動作実
行開始、◎は動作完了のタイミングを各々示す。
An example of operation sequence control according to FIG. 3 is shown. In the same figure ,,,,, indicate the operation instructions given to the automatic machine, and it is assumed that the operation instructions are generated in the order from. The priority relationship is such that ,,,, are higher, and lower. The horizontal axis is the time axis, and time elapses from left to right. In addition, ○ indicates the generation of the operation instruction, ● indicates the start of the operation execution, and ◎ indicates the timing of the operation completion.

【0004】この例において、まずが発生し、の動
作が完了する前にとが続いて発生する。ここでは
より優先順位が低いため、の動作が完了後にが優
先して実行され、は実行待ち状態になる。その後、
の動作が完了する前にとが続いて発生する。この場
合もはより優先順位が低いため、の動作が完了後
にが優先して実行される。同様に、とがよりも
先に実行される。かくして、優先順位の低いの実行が
開始されるのは、優先順位の高い一連の動作が完了した
後(の動作が完了した後)となる。
In this example, first occurs, and then occurs before the operation of is completed. Here, since the priority is lower, after the operation is completed, is preferentially executed, and is in the execution waiting state. afterwards,
And occur before the operation of is completed. In this case as well, since the priority is lower, after the operation of is completed, is preferentially executed. Similarly, and are executed before. Thus, the execution of the low priority is started after the completion of the series of operations of the high priority (after the completion of the operation).

【0005】したがって、この動作順序制御方法によれ
ば、他よりも優先して処理されるべき重要な動作に関す
る動作指示に高い優先順位を設定することで、その重要
な動作を排他的に高速処理することができる。
Therefore, according to this operation sequence control method, by setting a high priority to an operation instruction regarding an important operation which should be processed with priority over other operations, the important operation is exclusively processed at high speed. can do.

【0006】[0006]

【発明が解決しようとする課題】その反面、かかる動作
順序制御方法においては、優先順位の高い動作指示の実
行中に発生した優先順位の低い動作指示による動作がい
つになれば開始され完了するのか予想ができないという
課題を有している。
On the other hand, in such an operation sequence control method, when is the operation by the operation instruction of the low priority generated during the execution of the operation instruction of the high priority started and completed? It has a problem that it cannot be predicted.

【0007】また、図3の例に示したように、優先順位
の高い動作指示がいくつも連続して発生した場合、優先
順位の低い動作指示の実行待ち状態が非常に長引き、優
先順位の低い動作指示とは言えどもその内容によっては
自動機械の制御上問題を来す場合もあった。
Further, as shown in the example of FIG. 3, when a number of high priority operation instructions occur in succession, the execution waiting state of the low priority operation instructions is very long and the priority is low. Although it is an operation instruction, depending on the content, it may cause a problem in control of the automatic machine.

【0008】本発明はこのような課題を解決するための
もので、各動作指示に対して設定された優先順位に基づ
いて自動機械の動作順序を制御する場合に、優先順位の
低い動作指示の実行をも時間的に管理し得るようにした
自動機械の動作順序制御方法の提供を目的としている。
The present invention is intended to solve such a problem, and when controlling the operation order of the automatic machine based on the priority order set for each operation instruction, the operation instruction with the lower priority order is given. It is an object of the present invention to provide an operation sequence control method for an automatic machine, which enables execution to be temporally managed.

【0009】[0009]

【課題を解決するための手段】上記した目的を達成する
ために、本発明の自動機械の動作順序制御方法は、予め
自動機器に与えるべき複数の動作指示に対して優先順位
を設定しておき、時系列的に発生した各動作指示を優先
順位の高いものから優先して実行するように前記自動機
械の動作順序を制御する方法において、予め最高優先順
位の設定された動作指示を除く少なくとも一部の動作指
示に対して該動作指示の発生後の最長待ち時間を設定し
ておき、ある第1の動作指示を優先して実行する代わり
に実行待ち状態になった第2の動作指示の発生後の待ち
時間が該第2の動作指示に対して予め設定された最長待
ち時間を越えた時、該第2の動作指示の優先順位を前記
第1の動作指示の優先順位に暫定的に繰り上げて該第2
の動作指示を実行するように制御することを特徴とする
ものであり、これにより優先順位の低い動作指示の実行
を時間的に管理することが可能となる。
In order to achieve the above object, the operation sequence control method for an automatic machine according to the present invention sets priorities for a plurality of operation instructions to be given to an automatic device in advance. In the method of controlling the operation sequence of the automatic machine so that the operation instructions generated in time series are executed in descending order of priority, at least one excluding operation instructions set in advance with the highest priority. The longest waiting time after the occurrence of the operation instruction is set for the operation instruction of the part, and the second operation instruction that is in the execution waiting state is generated instead of preferentially executing the certain first operation instruction. When the subsequent waiting time exceeds the preset maximum waiting time for the second operation instruction, the priority of the second operation instruction is tentatively advanced to the priority of the first operation instruction. The second
Is controlled so as to execute the operation instruction, and by this, it becomes possible to temporally manage the execution of the operation instruction having a low priority.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を説明
する。
Embodiments of the present invention will be described below.

【0011】図1は本発明の実施の形態である自動機械
の動作順序制御装置の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an operation sequence control device for an automatic machine according to an embodiment of the present invention.

【0012】同図において、1は自動機器10に与える
べき複数の動作指示に対して相対的な優先順位の設定を
行う優先順位設定部である。2は優先順位の低い少なく
とも一部の動作指示に対して該動作指示の発生後の最長
待ち時間を設定する最長待ち時間設定部である。3は優
先順位設定部1及び最長待ち時間設定部2の各設定内容
を動作指示の種類と各々対応付けて登録する動作順序制
御用テーブルである。4は自動機器10に与えるべき動
作指示を時系列的に発生する動作指示発生部であり、自
動機器10からその状態(動作結果)を示す応答を入手
し、発生する動作指示の選択及びタイミングを制御す
る。5は自動機器10に与える動作指示の順序を動作順
序制御用テーブル3に登録された各動作指示の優先順位
に基づいて制御する動作順序制御部である。さらに6は
動作順序制御部5の制御によってある動作指示(仮に、
第1の動作指示と呼ぶ。)を優先して実行する代わりに
実行待ち状態になった動作指示(仮に、第2の動作指示
と呼ぶ。)の発生後の待ち時間を計時し、この計時時間
が動作順序制御用テーブル3に登録された該当動作指示
の最長待ち時間を越えた時、この第2の動作指示の優先
順位を第1の動作指示の優先順位に暫定的に繰り上げる
優先順位繰上げ処理部である。
In FIG. 1, reference numeral 1 is a priority order setting section for setting a relative priority order for a plurality of operation instructions to be given to the automatic device 10. Reference numeral 2 denotes a longest waiting time setting unit that sets the longest waiting time after the operation instruction is generated for at least a part of the operation instructions having a low priority. Reference numeral 3 is an operation sequence control table for registering the setting contents of the priority setting unit 1 and the longest waiting time setting unit 2 in association with the types of operation instructions. Reference numeral 4 denotes an operation instruction generation unit that generates operation instructions to be given to the automatic device 10 in time series, obtains a response indicating the state (operation result) from the automatic device 10, and selects the operation instruction to be generated and the timing. Control. An operation order control unit 5 controls the order of operation instructions given to the automatic device 10 based on the priority order of the operation instructions registered in the operation order control table 3. Further, 6 is a certain operation instruction under the control of the operation sequence control unit 5 (provisionally,
This is called the first operation instruction. ) Is preferentially executed, the waiting time after the occurrence of the operation instruction in the execution waiting state (temporarily called the second operation instruction) is measured, and the measured time is stored in the operation sequence control table 3. When the maximum waiting time of the registered corresponding operation instruction is exceeded, the priority of the second operation instruction is provisionally advanced to the priority of the first operation instruction.

【0013】次に、この自動機械の動作順序制御装置の
動作を説明する。
Next, the operation of the operation sequence control device for the automatic machine will be described.

【0014】まず優先順位設定部1を用いて、自動機器
10に与える複数の動作指示に対して優先順位の設定を
行う。優先順位は2つ以上設定することができるが、こ
こでは発明の理解を容易にするために2ランクとする。
First, the priority setting unit 1 is used to set priorities for a plurality of operation instructions given to the automatic device 10. Two or more priorities can be set, but here two ranks are used to facilitate understanding of the invention.

【0015】次に、最長待ち時間設定部2を用いて、優
先順位の低い動作指示に対して該動作指示の発生後の最
長待ち時間を設定する。
Next, the longest waiting time setting unit 2 is used to set the longest waiting time after an operation instruction is generated for an operation instruction having a low priority.

【0016】以上の設定内容は動作順序制御用テーブル
3に各々、動作指示の種類と各々対応付けて記憶され
る。以上により、自動機械10を動作させる前の設定が
完了する。
The above setting contents are stored in the operation sequence control table 3 in association with the types of operation instructions. By the above, the setting before operating the automatic machine 10 is completed.

【0017】動作順序制御部5は、動作指示発生部4が
発生した動作指示の優先順位を動作順序制御用テーブル
3を参照して調べ、優先順位の高い動作指示を優先して
実行するように自動機械10にその動作指示を与える。
優先順位の低い動作指示は優先順位の高い動作指示の実
行期間中は待ち状態となる。
The operation order control unit 5 checks the priority order of the operation instructions generated by the operation instruction generation unit 4 with reference to the operation order control table 3, and preferentially executes the operation instruction with a higher priority order. The operation instruction is given to the automatic machine 10.
The operation instruction with the lower priority is in a waiting state during the execution period of the operation instruction with the higher priority.

【0018】優先順位繰上げ処理部6は時計機能を有し
ており、動作順序制御部5の制御によってある動作指示
(第1の動作指示)を優先して実行する代わりに実行待
ち状態となった優先順位の低い動作指示(第2の動作指
示)の発生からの待ち時間を計時する。さらに優先順位
繰上げ処理部6は、動作順序制御用テーブル3を参照し
て該当する動作指示の最長待ち時間を調べ、計時した待
ち時間と最長待ち時間とを比較する。そして優先順位繰
上げ処理部6は、計時した待ち時間が最長待ち時間を越
えたことを確認すると、当該第2の動作指示の優先順位
を第1の動作指示の優先順位に暫定的に繰り上げるよう
に動作順序制御部5に通知する。この通知を受けて動作
順序制御部5は、現在実行中の優先順位の高い動作指示
の実行が完了した後、優先順位を繰り上げた第2の動作
指示を実行するように、その動作指示を自動機械10に
与える。
The priority advance processing unit 6 has a clock function, and instead of preferentially executing a certain operation instruction (first operation instruction) under the control of the operation order control unit 5, it is in an execution waiting state. The waiting time from the generation of the operation instruction with the lower priority (second operation instruction) is measured. Furthermore, the priority advance processing unit 6 refers to the operation sequence control table 3 to check the longest waiting time of the corresponding operation instruction, and compares the measured waiting time with the longest waiting time. Then, when confirming that the counted waiting time exceeds the maximum waiting time, the priority advance processing unit 6 provisionally advances the priority of the second operation instruction to the priority of the first operation instruction. Notify the operation sequence control unit 5. In response to this notification, the operation order control unit 5 automatically executes the operation instruction so that the second operation instruction having the higher priority is executed after the execution of the operation instruction having the higher priority currently being executed is completed. Give to the machine 10.

【0019】図2にかかる動作順序制御の例を示す。図
2にて,,,,,は自動機械に与えられる
動作指示を示し、からの順に動作指示が発生したも
のとする。優先順位の関係は,,,,を上
位、を下位とする。横軸は時間軸であり、左から右へ
時間が経過する。また○は動作指示の発生、●は動作実
行開始、◎は動作完了のタイミングを各々示す。Tmax
は優先順位の低いに対して設定された最長待ち時間で
ある。
An example of operation sequence control according to FIG. 2 is shown. In FIG. 2, symbols ,,,, indicate operation instructions given to the automatic machine, and it is assumed that the operation instructions are generated in the order from. The priority relationship is such that ,,,, are higher, and lower. The horizontal axis is the time axis, and time elapses from left to right. In addition, ○ indicates the generation of the operation instruction, ● indicates the start of the operation execution, and ◎ indicates the timing of the operation completion. Tmax
Is the longest waiting time set for low priority.

【0020】本例において、まずが発生し、の動作
が完了する前にとが続いて発生する。ここでは
より優先順位が低いため、の動作が完了後にが優先
して実行され、は待ち状態になる。が待ち状態にな
ったところで優先順位繰上げ処理部6が待ち状態の経過
時間の計時を開始する。その後、の動作が完了する前
にとが続いて発生する。この場合もはとより
優先順位が低く、しかもの待ち状態の計時時間は最長
待ち時間Tmax を越えていないので、の動作が完了後
にとが優先して順次実行される。その後、の動作
が完了する前にが発生するが、その前にの待ち状態
の計時時間が最長待ち時間Tmax を越えたことが確認さ
れることで、の優先順位がここで上位に変更される。
そして、の動作はの動作完了後に開始される。
In this example, first occurs, and then occurs before the operation of is completed. Since the priority is lower here, after the operation of is completed, is preferentially executed, and becomes a waiting state. In the waiting state, the priority advance processing unit 6 starts counting the elapsed time in the waiting state. Then, and occur before the operation of is completed. In this case as well, the priority is lower than that, and since the time waiting time of the waiting state does not exceed the maximum waiting time Tmax, after the operation of is completed, and are preferentially executed sequentially. After that, before the operation of is completed, occurs, but by confirming that the time waiting time before that exceeds the maximum waiting time Tmax, the priority of here is changed to the higher order. .
Then, the operation of is started after the operation of is completed.

【0021】かくして本実施形態の自動機械の動作順序
制御装置によれば、優先順位の低い動作指示に設定して
最長待ち時間を設定するだけで、その優先順位の低い動
作指示の実行を時間的に管理することが可能となる。
Thus, according to the operation sequence control device for the automatic machine of the present embodiment, the execution of the operation instruction with the low priority order can be performed in time only by setting the operation instruction with the low priority order and setting the longest waiting time. It becomes possible to manage it.

【0022】[0022]

【発明の効果】以上説明したように本発明によれば、優
先順位の低い動作指示に設定して最長待ち時間を設定す
るだけで、その優先順位の低い動作指示の実行を時間的
に管理することが可能となる。
As described above, according to the present invention, the execution of a low-priority operation instruction is temporally managed only by setting the long-waiting time by setting the operation instruction with a low priority order. It becomes possible.

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

【図1】本発明に係る自動機械の動作順序制御装置の構
成を示す図
FIG. 1 is a diagram showing a configuration of an operation sequence control device for an automatic machine according to the present invention.

【図2】図1の自動機械の動作順序制御装置による動作
順序制御の例
2 is an example of operation sequence control by the operation sequence control device for the automatic machine shown in FIG. 1;

【図3】従来の動作順序制御方法による動作順序制御の
FIG. 3 is an example of operation sequence control by a conventional operation sequence control method.

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

1………優先順位設定部 2………最長待ち時間設定部 3………動作順序制御用テーブル 4………動作指示発生部 5………動作順序制御部 6………優先順位繰上げ処理部 10……自動機械 1 ... Priority setting section 2 ... Longest waiting time setting section 3 ...... Operation sequence control table 4 ...... Operation instruction generation section 5 ...... Operation sequence control section 6 ...... Priority raising process Part 10: Automatic machine

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 予め自動機器に与えるべき複数の動作指
示に対して優先順位を設定しておき、時系列的に発生し
た各動作指示を優先順位の高いものから優先して実行す
るように前記自動機械の動作順序を制御する方法におい
て、 予め最高優先順位の設定された動作指示を除く少なくと
も一部の動作指示に対して該動作指示の発生後の最長待
ち時間を設定しておき、ある第1の動作指示を優先して
実行する代わりに実行待ち状態になった第2の動作指示
の発生後の待ち時間が該第2の動作指示に対して予め設
定された最長待ち時間を越えた時、該第2の動作指示の
優先順位を前記第1の動作指示の優先順位に暫定的に繰
り上げて該第2の動作指示を実行するように制御するこ
とを特徴とする自動機械の動作順序制御方法。
1. A priority order is set for a plurality of operation instructions to be given to an automatic device in advance, and each operation instruction generated in a time series is preferentially executed in descending order of priority. In a method of controlling an operation sequence of an automatic machine, a longest waiting time after the occurrence of the operation instruction is set for at least a part of the operation instructions excluding the operation instruction having the highest priority set in advance. When the waiting time after the occurrence of the second operation instruction that is in the execution waiting state instead of being preferentially executed for the first operation instruction exceeds the longest waiting time preset for the second operation instruction An operation sequence control of an automatic machine, characterized in that the priority order of the second operation instruction is tentatively moved up to the priority order of the first operation instruction to execute the second operation instruction. Method.
JP9848296A 1996-04-19 1996-04-19 Operation order control method for automatic machine Withdrawn JPH09288585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9848296A JPH09288585A (en) 1996-04-19 1996-04-19 Operation order control method for automatic machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9848296A JPH09288585A (en) 1996-04-19 1996-04-19 Operation order control method for automatic machine

Publications (1)

Publication Number Publication Date
JPH09288585A true JPH09288585A (en) 1997-11-04

Family

ID=14220876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9848296A Withdrawn JPH09288585A (en) 1996-04-19 1996-04-19 Operation order control method for automatic machine

Country Status (1)

Country Link
JP (1) JPH09288585A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191002A (en) * 1997-10-07 1999-07-13 Robert Bosch Gmbh System control unit and operating method of control unit
US7822952B2 (en) 2005-10-06 2010-10-26 Panasonic Corporation Context switching device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191002A (en) * 1997-10-07 1999-07-13 Robert Bosch Gmbh System control unit and operating method of control unit
US7822952B2 (en) 2005-10-06 2010-10-26 Panasonic Corporation Context switching device

Similar Documents

Publication Publication Date Title
US7203823B2 (en) Partial and start-over threads in embedded real-time kernel
JPH04278612A (en) Method for controlling clock signal for processor and information processing system
JP2001202258A (en) Rear time processor
JPH09288585A (en) Operation order control method for automatic machine
JP3005562B1 (en) Task management device and task scheduling method
JP2001236236A (en) Task controller and its task scheduling method
JP2000322277A (en) Task management device
JPH06149592A (en) Interruption processing system for microcomputer
JP3898332B2 (en) Timer automatic control device and recording medium
JP3257932B2 (en) Engine control method
JP2566002B2 (en) Task dispatching method
JP2736060B2 (en) Automatic sequence controller
JP2814956B2 (en) Dispatcher control method
JP2000029719A (en) Interrupt controller
JP3214557B2 (en) I / O control device and DMA transfer control method
JP2665520B2 (en) Programmable controller
JPH03121541A (en) Task control system for operating system
JP2778037B2 (en) Sequence program switching device
JPH07287660A (en) Interruption processing method for programmable controller
JPH1124944A (en) Process synchronization method
JPH02211545A (en) Job execution control system
JPS5995651A (en) Altering method of memory data
JPH09106358A (en) Scheduling method of virtual computer system and device therefor
JP2000155696A (en) Task execution controller
JPH08147174A (en) Interruption controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030701