[go: up one dir, main page]

JP2002062912A - Control unit and control method - Google Patents

Control unit and control method

Info

Publication number
JP2002062912A
JP2002062912A JP2001046851A JP2001046851A JP2002062912A JP 2002062912 A JP2002062912 A JP 2002062912A JP 2001046851 A JP2001046851 A JP 2001046851A JP 2001046851 A JP2001046851 A JP 2001046851A JP 2002062912 A JP2002062912 A JP 2002062912A
Authority
JP
Japan
Prior art keywords
mode
command
control
control module
state
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
JP2001046851A
Other languages
Japanese (ja)
Inventor
Takuo Takano
卓雄 高野
Masaru Takata
勝 高夛
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.)
DENNOO KK
Original Assignee
DENNOO KK
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 DENNOO KK filed Critical DENNOO KK
Priority to JP2001046851A priority Critical patent/JP2002062912A/en
Publication of JP2002062912A publication Critical patent/JP2002062912A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To readily handle a plurality of different situation and to simplify the control. SOLUTION: The function of each control module is generated by a job command, and the state of each control module is caused to make transition to each control module having the function generated, whereby a desired sequence is executed. Further, when a situation urgently requiring the transition of the control module state arises during the execution of the sequence, it is performed by an event command.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、制御用のコンピュ
ータプログラムを規格化するための技術に関する。本発
明は、制御用のコンピュータプログラムの設計、修正、
改造その他の規格化して単純に実行するための技術に関
する。本発明は、一つの被制御系に含まれる複数の被制
御要素をそれぞれ個別に制御する複数の制御モジュール
が階層構造に構成された制御装置とその制御プログラム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for standardizing a computer program for control. The present invention relates to the design, modification and control of a computer program for control.
The present invention relates to a technique for simply performing remodeling or other standardization. The present invention relates to a control device in which a plurality of control modules for individually controlling a plurality of controlled elements included in one controlled system are configured in a hierarchical structure, and a control program therefor.

【0002】[0002]

【従来の技術】一つの「制御系」の中に複数の被制御要
素が設けられ、その複数の被制御要素をそれぞれ個別に
制御するために複数の制御モジュールが設けられ、この
複数の制御モジュールを階層的に制御する構造が提案さ
れている。
2. Description of the Related Art A plurality of controlled elements are provided in one "control system", and a plurality of control modules are provided for individually controlling the plurality of controlled elements. Has been proposed for hierarchically controlling.

【0003】本願出願人は、この制御装置について、各
制御モジュールのモードおよびモードの遷移をすべての
制御モジュールについて統一化し、部品が階層構造とな
って制御系が構築される技術を提案した(特開平11−
305806号公報および特開平11−338517号
公報参照、以下、先願という)。ここでは、各制御モジ
ュールは部品として把握される。
[0003] The applicant of the present application has proposed a technique of unifying the mode and mode transition of each control module for all control modules, and constructing a control system with parts in a hierarchical structure. Kaihei 11-
305806 and JP-A-11-338517, hereinafter referred to as prior application). Here, each control module is grasped as a component.

【0004】この先願を図10および図11を参照して
説明する。図10は先願の制御装置の構成図である。図
11は先願の制御モジュールのブロック構成図である。
図10に示すように、複数の被制御要素E(1)〜E
(n)が設けられ、その複数の被制御要素E(1)〜E
(n)をそれぞれ個別に制御するために複数の制御モジ
ュールM(1)〜M(k+3)が設けられ、この複数の
制御モジュールM(1)〜M(k+3)を階層的に制御
する構造が提案されている。各制御モジュールM(1)
〜M(k+3)間の通信は、通信線C(1)〜C(k+
3)および通信用メモリCOMを介して行われる。
The prior application will be described with reference to FIGS. 10 and 11. FIG. 10 is a block diagram of the control device of the prior application. FIG. 11 is a block diagram of the control module of the prior application.
As shown in FIG. 10, a plurality of controlled elements E (1) to E (1) to E
(N) are provided, and the plurality of controlled elements E (1) to E (1) to E
A plurality of control modules M (1) to M (k + 3) are provided to individually control (n), and a structure for hierarchically controlling the plurality of control modules M (1) to M (k + 3) is provided. Proposed. Each control module M (1)
-M (k + 3) are communicated via communication lines C (1) -C (k + 3).
3) and via the communication memory COM.

【0005】ここでは、ある制御モジュールで基本モジ
ュールのうち使わないモードがあったとしても、そのモ
ードを基本モジュールにしたがって設けたままとし、ま
たモードおよびモードの遷移を基本モジュールに備えら
れたものを越えて拡大しないものとする。拡大する必要
があるときには、別の制御モジュールを当てて設計を行
う。制御モジュールのモードおよびモードの遷移は、す
べて、少なくとも一つの閉じた制御系の中で統一化す
る。制御条件や被制御要素により与えられる条件にした
がって、そのモードおよびモードの遷移に対してパラメ
タを設定することによりあらゆる制御態様について設計
を行う。
Here, even if a certain control module has a mode which is not used among the basic modules, the mode is kept provided according to the basic module, and the mode and the mode transition provided in the basic module are provided. It shall not expand beyond. When it is necessary to expand, another control module is used for the design. All modes and mode transitions of the control module are unified in at least one closed control system. According to the control conditions and the conditions given by the controlled elements, design is performed for all control modes by setting parameters for the mode and the mode transition.

【0006】つまり、同一のモードおよびその遷移をも
つ制御モジュールで、制御装置を構築し、各制御モジュ
ールはその制御モジュールが担当する部分のみが活性化
されて機能するようにさせる。
That is, a control device is constructed with control modules having the same mode and its transition, and each control module is activated so that only the part in charge of the control module is activated and functions.

【0007】ここで、制御モジュールのモードおよびモ
ードの遷移は、図11に示すように、対応する被制御要
素の起動を制御する起動モードST1と、この起動モー
ドST1からから直接移行できその被制御要素の正常動
作を制御する正常動作モードST2と、この正常動作モ
ードST2と相互にかつ直接移行できその被制御要素の
停止を制御する停止モードST3と、この停止モードS
T3と相互にかつ直接に移行でき起動モードST1へ直
接に移行できかつ被制御要素を保留状態に制御する保留
モードST4と、この保留モードST4から直接に移行
できるとともに停止モードST3と相互に移行でき被制
御要素を逆転状態に制御する逆転モードST6と、保留
モードST4から直接に移行できるとともに停止モード
ST3と相互に移行でき正常動作モードST2または起
動モードST1に移行可能であり被制御要素を手動制御
する手動制御モードST5と、前記各モードから移行で
き警報を発生させる警報モードST7と、各モードから
移行でき各モードの少なくとも一部について一時的に同
期からはずれた動作を行わせる例外動作モードST9
と、保留モードST4から直接移行でき被制御要素の制
御を終了させる終了モードST8とを含む。
Here, as shown in FIG. 11, the modes of the control module and the transition of the modes are a start mode ST1 for controlling the start of the corresponding controlled element, and the control mode which can directly shift from the start mode ST1. A normal operation mode ST2 for controlling the normal operation of the element, a stop mode ST3 for mutually and directly transitioning to the normal operation mode ST2 and controlling the stop of the controlled element, and a stop mode S
A transition can be made directly and directly with T3, a transition can be made directly to the start mode ST1, and a suspension mode ST4 for controlling the controlled element in the suspension state, and a transition can be made directly from the suspension mode ST4 and a transition can be made to the stop mode ST3. A reverse rotation mode ST6 for controlling the controlled element in the reverse rotation state, and a direct transition from the hold mode ST4 and a transition to the stop mode ST3, and a transition to the normal operation mode ST2 or the start mode ST1 and manual control of the controlled element A manual control mode ST5, an alarm mode ST7 that can shift from each of the above modes to generate an alarm, and an exceptional operation mode ST9 that can shift from each of the modes and temporarily perform an operation that is out of synchronization for at least a part of each mode.
And an end mode ST8 that can directly shift from the hold mode ST4 and ends the control of the controlled element.

【0008】このように、モードとモードの遷移を制御
モジュールが共通にもって統一化することにより、制御
モジュールを制御システムの中で部品という概念で扱う
ことができるようになり、制御システムの構築が部品の
組み立てにより行う、制御システムの更新を部品の取り
替えといった概念で行うことができるようになった。
As described above, by unifying the mode and the mode transition with the control module being common, the control module can be handled in the control system using the concept of parts, and the control system can be constructed. The control system can be updated by the concept of replacing parts, which is performed by assembling parts.

【0009】[0009]

【発明が解決しようとする課題】先願では、制御モジュ
ールのモードとモードの遷移を統一化することで、階層
構造となった制御装置の構築、更新、変更等を容易に行
う技術を提案した。先願では、モードを遷移させるため
にコマンドを用いるが、その種類は一つであり、コマン
ドについては、特に詳細な検討はなされていない。
The prior application proposed a technique for easily constructing, updating, and changing a control device having a hierarchical structure by unifying the mode of the control module and the transition of the mode. . In the prior application, a command is used to change the mode, but the type is one, and the command is not specifically examined in detail.

【0010】ここで本願出願人は、異なる特性を有する
複数種類のコマンドを先願の制御装置に適用することに
より、当該制御装置を一層使い易いものにすることがで
きることに着目した。
Here, the applicant of the present application has noticed that by applying a plurality of types of commands having different characteristics to the control device of the prior application, the control device can be made easier to use.

【0011】例えば、制御装置の初期設定時または障害
発生時のように、通常運転とは異なる状況下では、これ
に対処するために都合の良いコマンドを設けることによ
り、先願の制御装置を一層使い易くすることができる。
あるいは、コマンドの有効範囲を可変に設定することよ
り、被制御要素の限定または制御の順序を容易に設定す
ることができる。
For example, in a situation different from the normal operation, for example, at the time of initial setting of the control device or at the time of occurrence of a fault, a convenient command is provided to cope with the situation, thereby further improving the control device of the prior application. It can be easy to use.
Alternatively, by setting the effective range of the command variably, the limitation of the controlled elements or the order of the control can be easily set.

【0012】本発明は、このような背景に行われたもの
であって、特性の異なる複数種類のコマンドを用いるこ
とにより、複数の異なる状況に容易に対応するとともに
制御を簡単化することができる制御装置および制御方法
を提供することを目的とする。
The present invention has been made in such a background, and by using a plurality of types of commands having different characteristics, it is possible to easily cope with a plurality of different situations and to simplify the control. It is an object to provide a control device and a control method.

【0013】[0013]

【課題を解決するための手段】本発明の第一の観点は、
複数の被制御要素をそれぞれ制御する複数の制御モジュ
ールから構成され、この複数の制御モジュールはツリー
状の階層構造に構成され、前記各制御モジュールのモー
ドおよびモードの遷移は、すべての制御モジュールが共
通に備えた制御装置である。
SUMMARY OF THE INVENTION A first aspect of the present invention is as follows.
The control module includes a plurality of control modules for controlling a plurality of controlled elements. The plurality of control modules are configured in a tree-like hierarchical structure, and the modes and mode transitions of the control modules are common to all control modules. It is a control device provided for.

【0014】ここで、本発明の特徴とするところは、前
記各制御モジュールに与えられるコマンドは、コマンド
の発行元がそのコマンドの宛先となる制御モジュールに
対してコマンドを発行する権利を事前に取得する占有処
理により有効に受け付けられ当該制御モジュールにのみ
有効な第一のコマンドと、前記占有処理により有効に受
け付けられ当該制御モジュールの下位の制御モジュール
の当該コマンドの発行元以外のコマンドの発行元により
前記占有処理されていない制御モジュールにも有効な第
二のコマンドと、前記占有処理を必要とせずに受け付け
られ当該制御モジュールの下位の制御モジュールにも有
効な第三のコマンドとを含むところにある。
Here, the feature of the present invention is that, in the command given to each of the control modules, the command issuing source acquires in advance the right to issue the command to the control module which is the destination of the command. The first command validly received by the occupation process and valid only for the control module, and the first command validly received by the occupation process and issued by a command other than the command issuer of the lower control module of the control module. It includes a second command that is valid even for the control module that has not been occupied, and a third command that is accepted without requiring the occupation processing and is also valid for a control module below the control module. .

【0015】前記第一のコマンドは、当該制御モジュー
ルの機能を実行するジョブを指令するジョブコマンドで
あり、前記第二のコマンドは、当該制御モジュールの状
態遷移を指令するステートコマンドであり、前記第三の
コマンドは、当該制御モジュールおよびその配下にある
すべての制御モジュールのモードを遷移させるイベント
コマンドであることが望ましい。
The first command is a job command for instructing a job for executing the function of the control module. The second command is a state command for instructing a state transition of the control module. It is desirable that the third command is an event command for changing the mode of the control module and all control modules under the control module.

【0016】ただし、前記第二のコマンドを受け付けた
制御モジュールは、配下の制御モジュールが当該コマン
ドの発行元以外のコマンドの発行元により前記占有処理
されているときは、当該占有処理されている制御モジュ
ールの状態遷移がその占有処理が解除されるまで抑止さ
れることが望ましい。
However, when the control module that has received the second command performs the occupancy processing on the subordinate control module by a command issuer other than the command issuer, the control module that is subject to the occupancy control It is desirable that the state transition of the module be suppressed until the occupation process is released.

【0017】すなわち、ジョブコマンドにより各制御モ
ジュールの機能を発現させ、機能を発現した各制御モジ
ュールに対し、ステートコマンドにより各制御モジュー
ルの状態を遷移させることにより、所望のシーケンスを
実行させることができる。さらに、シーケンス実行中に
緊急に制御モジュールの状態を遷移させたい事態が発生
した場合には、イベントコマンドによりそれを行うこと
ができる。
That is, a desired sequence can be executed by causing a function of each control module to be developed by a job command and causing the control module that has developed the function to transit the state of each control module by a state command. . Further, when a situation in which the state of the control module needs to be urgently changed during the execution of the sequence occurs, it can be performed by an event command.

【0018】したがって、ジョブコマンドおよびステー
トコマンドは、あらかじめ、コマンドの宛先となる制御
モジュールに対する前記占有処理が必要であり、前記占
有処理された制御モジュールに対して有効となるコマン
ドである。これに対し、イベントコマンドは、前記占有
処理をあらかじめ行う必要はなく、任意に所定の制御モ
ジュールに対してコマンドを発行することができる。
Therefore, the job command and the state command are commands that require the occupation processing for the control module to which the command is to be sent in advance, and are effective for the control module that has been occupied. On the other hand, the event command does not need to perform the occupation processing in advance, and can arbitrarily issue a command to a predetermined control module.

【0019】前記モードおよびモードの遷移は、対応す
る被制御要素の起動を制御する起動モードと、この起動
モードから直接に移行できその被制御要素の正常動作を
制御する正常動作モードと、この正常動作モードと相互
にかつ直接に移行できその被制御要素の停止を制御する
停止モードと、この停止モードと相互にかつ直接に移行
でき前記起動モードへ直接に移行できかつ前記被制御要
素を保留状態に制御する保留モードと、この保留モード
から直接に移行できるとともに前記停止モードと相互に
移行でき前記被制御要素を逆転状態に制御する逆転モー
ドと、前記保留モードから直接に移行できるとともに前
記停止モードと相互に移行でき前記正常動作モードまた
は前記起動モードに移行可能であり前記被制御要素を手
動制御する手動制御モードと、前記各モードから移行で
き警報を発生させる警報モードと、前記各モードから移
行でき前記各モードの少なくとも一部について一時的に
同期から外れた動作を行わせる例外動作モードと、前記
保留モードから直接に移行でき前記被制御要素の制御を
終了させる終了モードとを含むことが望ましい。
The modes and mode transitions include a start mode for controlling the start of the corresponding controlled element, a normal operation mode for directly shifting from the start mode and controlling the normal operation of the controlled element, A stop mode in which the operation mode can be shifted directly and directly to control the stop of the controlled element; and a stop mode in which the stop mode can be shifted directly and directly to the start mode and the controlled element is in a suspended state. Hold mode, which can directly shift from the hold mode, and can also shift to the stop mode and control the controlled element in the reverse state, and the stop mode, which can shift directly from the hold mode. And a manual control for manually controlling the controlled element which can be shifted to the normal operation mode or the start mode. A mode, an alarm mode in which a transition can be made from each of the modes and an alarm is generated, an exceptional operation mode in which a transition can be made from each of the modes and at least a part of each mode is temporarily out of synchronization, and the hold mode And a termination mode in which the control of the controlled element can be terminated directly.

【0020】前記起動モードは、制御ファイルを作成す
るコールドスタートモードと、このコールドスタートモ
ードから移行されファイルデータをRAMに書込むホッ
トスタートモードとを含むことが望ましい。
It is preferable that the start mode includes a cold start mode for creating a control file and a hot start mode for shifting from the cold start mode and writing file data to the RAM.

【0021】前記正常動作モードは、前記被制御要素が
原点にあることを確認する原点モードと、自動運転され
る前記被制御要素のシーケンスをシーケンス中断直前の
状態に戻す復元モードと、前記被制御要素を自動運転す
るための準備を行う準備モードと、前記被制御要素の自
動運転を行うための運転モードとを含むことが望まし
い。
The normal operation mode includes an origin mode for confirming that the controlled element is at the origin, a restoring mode for returning the sequence of the automatically controlled controlled elements to a state immediately before the interruption of the sequence, It is desirable to include a preparation mode for preparing for automatic operation of the element and an operation mode for performing automatic operation of the controlled element.

【0022】前記停止モードは、前記被制御要素の運転
を緊急に停止する緊急停止モードと、前記被制御要素の
運転を徐々に停止する減速停止モードと、前記被制御要
素の運転をそのシーケンスの区切りで停止するステップ
停止モードとを含むことが望ましい。
The stop mode includes an emergency stop mode for urgently stopping the operation of the controlled element, a deceleration stop mode for gradually stopping the operation of the controlled element, It is desirable to include a step stop mode for stopping at breaks.

【0023】前記保留モードは、CPUを停止すること
ができるCPU停止モードと、前記被制御要素を制御か
ら解放する制御解放モードと、制御から解放された前記
被制御要素を制御下に戻す制御回復モードと、前記被制
御要素の運転状況を情報化するとともに制御仕様を変更
することができる診断モードとを含むことが望ましい。
The hold mode includes a CPU halt mode capable of stopping a CPU, a control release mode for releasing the controlled element from control, and a control recovery for returning the controlled element released from control to control. It is desirable to include a mode and a diagnostic mode in which the operation status of the controlled element is converted into information and a control specification can be changed.

【0024】前記警報モードは、前記被制御要素の運転
に異常が検出されたときに運転を停止する異常停止モー
ドと、運転状況にかかわらず外部の指示にしたがって非
常停止を行う非常停止モードとを含むことが望ましい。
The alarm mode includes an abnormal stop mode in which the operation is stopped when an abnormality is detected in the operation of the controlled element, and an emergency stop mode in which an emergency stop is performed according to an external instruction regardless of the operating condition. It is desirable to include.

【0025】本発明の第二の観点は、複数の被制御要素
をそれぞれ制御する複数の制御モジュールから構成さ
れ、この複数の制御モジュールは階層構造に構成され、
前記各制御モジュールのモードおよびモードの遷移は、
すべての制御モジュールが共通に備えた制御装置の制御
方法である。
A second aspect of the present invention comprises a plurality of control modules for controlling a plurality of controlled elements, respectively, and the plurality of control modules are arranged in a hierarchical structure.
The mode and mode transition of each control module are as follows:
This is a control method of a control device commonly provided to all control modules.

【0026】ここで、本発明の特徴とするところは、制
御モジュールの機能を発揮させるジョブコマンドは、ジ
ョブコマンドの発行元がそのジョブコマンドの宛先とな
る制御モジュールに対してジョブコマンドを発行する権
利を事前に取得する占有処理を行った後に発行し、制御
モジュールの状態を遷移させるステートコマンドは、ス
テートコマンドの発行元がそのステートコマンドの宛先
となる制御モジュールに対してステートコマンドを発行
する権利を事前に取得する占有処理を行った後に発行し
て当該制御モジュールおよび当該制御モジュールの配下
にある制御モジュールであって当該ステートコマンドの
発行元以外のステートコマンドの発行元により前記占有
処理がされていない制御モジュールの状態を遷移させ、
緊急にツリー状の制御モジュールを一斉に遷移させる必
要があるときは前記占有処理を行うことなく、すべての
制御モジュールに有効なイベントコマンドを発行すると
ころにある。
Here, a feature of the present invention is that a job command that exerts a function of a control module is a job command issuing source that has a right to issue a job command to a control module that is a destination of the job command. The state command that is issued after performing the occupation process to obtain the state command in advance and changes the state of the control module has the right to issue the state command to the control module that is the destination of the state command. The control module and the control module under the control module are issued after performing the occupation processing acquired in advance, and the occupancy processing is not performed by the source of the state command other than the source of the state command. Transition the state of the control module,
When the tree-shaped control modules need to be changed at once in an emergency, valid event commands are issued to all control modules without performing the occupation processing.

【0027】なお、イベントコマンドの発行に際して
は、占有処理を必要としないが、イベントコマンドの宛
先となった制御モジュールについては、イベントコマン
ドの受領と同時あるいは受領後に、占有処理と同等の処
理を施し、この処理が解除されると、この制御モジュー
ルは、上位の制御モジュールの状態にしたがって然るべ
き状態遷移を行うことができる。
The issuance of an event command does not require occupation processing, but the control module that is the destination of the event command performs the same processing as the occupation processing simultaneously with or after the reception of the event command. When this processing is canceled, this control module can perform an appropriate state transition according to the state of the higher-level control module.

【0028】また、イベントコマンドの宛先となった制
御モジュールの下位に接続されている制御モジュールに
ついては、イベントコマンドを受領した時点で、それま
での占有状態は解除されることがよい。
It is preferable that the control module connected below the control module to which the event command is sent be released from the occupation state when the event command is received.

【0029】前記占有処理と同等の処理としては、例え
ば、イベントコマンドの宛先となった制御モジュールで
は、そのイベントコマンドの発行元の情報を記録してお
き、この処理の解除とともにその記録を消去する。これ
により、イベントコマンドの発行元による前記占有と同
等の処理の有効または無効を認識することができる。
As a process equivalent to the occupation process, for example, in the control module that is the destination of the event command, information on the issue source of the event command is recorded, and the record is deleted when this process is canceled. . As a result, it is possible to recognize the validity or invalidity of the processing equivalent to the occupation by the issuer of the event command.

【0030】[0030]

【発明の実施の形態】本発明実施例の制御装置の構成を
図10および図11を参照して説明する。図10は先願
の制御装置の構成図であり、図11は先願の制御モジュ
ールのブロック構成図であるが、これらは本発明実施例
と共通である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of a control device according to an embodiment of the present invention will be described with reference to FIGS. FIG. 10 is a block diagram of a control device of the prior application, and FIG. 11 is a block diagram of a control module of the prior application. These are common to the embodiment of the present invention.

【0031】本発明は、複数の被制御要素E(1)〜E
(n)をそれぞれ制御する複数の制御モジュールM
(1)〜M(k+3)から構成され、この複数の制御モ
ジュールM(1)〜M(k+3)はツリー状の階層構造
に構成され、各制御モジュールM(1)〜M(k+3)
のモードおよびモードの遷移は、すべての制御モジュー
ルM(1)〜M(k+3)が共通に備えた制御装置であ
る。
According to the present invention, a plurality of controlled elements E (1) to E (1) to E
A plurality of control modules M each controlling (n)
(1) to M (k + 3). The plurality of control modules M (1) to M (k + 3) are configured in a tree-like hierarchical structure, and the control modules M (1) to M (k + 3).
Is a control device commonly provided to all control modules M (1) to M (k + 3).

【0032】ここで、本発明の特徴とするところは、各
制御モジュールM(1)〜M(k+3)に与えられるコ
マンドは、コマンドの発行元がそのコマンドの宛先とな
る制御モジュールM(i)(iは1〜k+3のいずれ
か)に対してコマンドを発行する権利を事前に取得する
占有処理(以下、単に“占有”という)により有効に受
け付けられ当該制御モジュールM(i)にのみ有効なジ
ョブコマンドと、占有により有効に受け付けられ当該制
御モジュールM(i)の下位の制御モジュールの当該コ
マンドの発行元以外のコマンドの発行元により占有され
ていない制御モジュールM(j)(jは1〜k+3のい
ずれかでi≠j)にも有効なステートコマンドと、コマ
ンドの宛先となる制御モジュールM(i)に対する占有
を必要とせずに受け付けられ当該制御モジュールM
(i)の下位の制御モジュールM(j)にも有効なイベ
ントコマンドとを含むところにある。
Here, a feature of the present invention is that a command given to each of the control modules M (1) to M (k + 3) includes a control module M (i) in which the source of the command is the destination of the command. (I is any one of 1 to k + 3), which is effectively accepted by exclusive processing (hereinafter simply referred to as “occupied”) for acquiring a right to issue a command in advance and valid only for the control module M (i). A job command and a control module M (j) (j is 1 to 1) that is effectively occupied by the occupation and is not occupied by a command issuer other than the command issuer of the lower control module of the control module M (i). k + 3, a state command that is also valid for i 、 j) and is received without requiring occupation of the control module M (i) that is the destination of the command. Vignetting The control module M
A valid event command is also included in the control module M (j) below (i).

【0033】ジョブコマンドは、当該制御モジュールM
(i)の機能を実行するジョブを指令するコマンドであ
り、ステートコマンドは、当該制御モジュールM(i)
の状態遷移を指令するコマンドであり、イベントコマン
ドは、当該制御モジュールM(i)およびその配下にあ
るすべての制御モジュールM(j)のモードを遷移させ
るコマンドである。
The job command corresponds to the control module M
The state command is a command for instructing a job to execute the function of (i), and the state command is the control module M (i).
The event command is a command for changing the mode of the control module M (i) and all control modules M (j) under the control module M (i).

【0034】ただし、ステートコマンドを受け付けた制
御モジュールM(i)は、配下の制御モジュールM
(j)が他のステートコマンドの発行元により占有され
ているときは、当該占有されている制御モジュールM
(j)の状態遷移がその占有が解除されるまで抑止され
る。
However, the control module M (i) that has accepted the state command is the subordinate control module M
If (j) is occupied by another state command issuer, the occupied control module M
The state transition of (j) is suppressed until the occupation is released.

【0035】前記モードおよびモードの遷移は、対応す
る被制御要素の起動を制御する起動モードST1と、こ
の起動モードST1から直接に移行できその被制御要素
の正常動作を制御する正常動作モードST2と、この正
常動作モードST2と相互にかつ直接に移行できその被
制御要素の停止を制御する停止モードST3と、この停
止モードST3と相互にかつ直接に移行でき起動モード
ST1へ直接に移行できかつ前記被制御要素を保留状態
に制御する保留モードST4と、この保留モードST4
から直接に移行できるとともに停止モードST3と相互
に移行でき前記被制御要素を逆転状態に制御する逆転モ
ードST6と、保留モードST4から直接に移行できる
とともに停止モードST3と相互に移行でき正常動作モ
ードST2または起動モードST1に移行可能であり前
記被制御要素を手動制御する手動制御モードST5と、
前記各モードから移行でき警報を発生させる警報モード
ST7と、前記各モードから移行でき前記各モードの少
なくとも一部について一時的に同期から外れた動作を行
わせる例外動作モードST9と、保留モードST4から
直接に移行でき前記被制御要素の制御を終了させる終了
モードST8とを含む。
The modes and mode transitions include a start mode ST1 for controlling the activation of the corresponding controlled element and a normal operation mode ST2 for directly shifting from the start mode ST1 and controlling the normal operation of the controlled element. A stop mode ST3 which can shift directly and directly to the normal operation mode ST2 and controls the stop of the controlled element; and a shift mode which can shift directly and directly to the stop mode ST3 and can shift directly to the start mode ST1. A hold mode ST4 for controlling the controlled element in a hold state;
And the reverse operation mode ST6, in which the controllable element can be switched to the reverse rotation state, and the controlled element can be switched to the reverse rotation state. Or a manual control mode ST5 capable of shifting to the start mode ST1 and manually controlling the controlled element;
From an alarm mode ST7 that can shift from each of the modes and generate an alarm, an exceptional operation mode ST9 that can shift from each of the modes and temporarily perform an operation that is out of synchronization for at least a part of each mode, and a hold mode ST4. An end mode ST8 in which control can be directly performed and the control of the controlled element is ended.

【0036】起動モードST1は、制御ファイルを作成
するコールドスタートモードst10と、このコールド
スタートモードst10から移行されファイルデータを
RAMに書込むホットスタートモードst11とを含
む。
The start mode ST1 includes a cold start mode st10 for creating a control file, and a hot start mode st11 for shifting from the cold start mode st10 and writing file data to the RAM.

【0037】正常動作モードST2は、前記被制御要素
が原点にあることを確認する原点モードst12と、自
動運転される前記被制御要素のシーケンスをシーケンス
中断直前の状態に戻す復元モードst13と、前記被制
御要素を自動運転するための準備を行う準備モードst
14と、前記被制御要素の自動運転を行うための運転モ
ードst15とを含む。
The normal operation mode ST2 includes an origin mode st12 for confirming that the controlled element is at the origin, a restoration mode st13 for returning the sequence of the controlled elements to be automatically operated to a state immediately before the interruption of the sequence, Preparation mode st for preparing for automatic operation of the controlled element
14 and an operation mode st15 for performing the automatic operation of the controlled element.

【0038】停止モードST3は、前記被制御要素の運
転を緊急に停止する緊急停止モードst16と、前記被
制御要素の運転を徐々に停止する減速停止モードst1
7と、前記被制御要素の運転をそのシーケンスの区切り
で停止するステップ停止モードst18とを含む。
The stop mode ST3 includes an emergency stop mode st16 for urgently stopping the operation of the controlled element and a deceleration stop mode st1 for gradually stopping the operation of the controlled element.
7 and a step stop mode st18 for stopping the operation of the controlled element at the break of the sequence.

【0039】保留モードST4は、CPUを停止するこ
とができるCPU停止モードst19と、前記被制御要
素を制御から解放する制御解放モードst20と、制御
から解放された前記被制御要素を制御下に戻す制御回復
モードst21と、前記被制御要素の運転状況を情報化
するとともに制御仕様を変更することができる診断モー
ドst22とを含む。
The hold mode ST4 includes a CPU stop mode st19 for stopping the CPU, a control release mode st20 for releasing the controlled element from control, and a return of the controlled element released from control to control. The control mode includes a control recovery mode st21 and a diagnostic mode st22 in which the operation status of the controlled element is converted into information and the control specification can be changed.

【0040】警報モードST7は、前記被制御要素の運
転に異常が検出されたときに運転を停止する異常停止モ
ードst23と、運転状況にかかわらず外部の指示にし
たがって非常停止を行う非常停止モードst24とを含
む。
The alarm mode ST7 includes an abnormal stop mode st23 in which the operation is stopped when an abnormality is detected in the operation of the controlled element, and an emergency stop mode st24 in which an emergency stop is performed according to an external instruction irrespective of the operating condition. And

【0041】次に、本発明実施例の制御装置に用いる各
コマンドの動作を図1ないし図7を参照して説明する。
まず、ジョブコマンドについて説明する。ジョブコマン
ドは、制御モジュールの機能を発現させるために用い
る。ジョブコマンドを発行する側としては、発行した制
御モジュールに対してジョブコマンドに該当する機能を
発現させることができる。
Next, the operation of each command used in the control device according to the embodiment of the present invention will be described with reference to FIGS.
First, the job command will be described. The job command is used to express the function of the control module. On the side that issues the job command, the function corresponding to the job command can be expressed in the issued control module.

【0042】制御モジュール側からは、ジョブコマンド
を受領したときに、ジョブコマンドに該当する発現機能
が自己に組み込まれている場合に、その機能を発現する
ことができる。
From the control module, when a job command is received, if the expression function corresponding to the job command is incorporated in itself, the function can be exhibited.

【0043】ジョブコマンドの発行を行う場合には、発
行先の制御モジュールに対してあらかじめ権利の取得を
必要とし、本実施例では、この権利の取得処理を“占
有”ということは既に述べたとおりである。なお、後述
するステートコマンドの発行を行う場合にも占有が必要
である。これにより、ジョブコマンドおよびステートコ
マンドの発行および受領の有効範囲は、占有を行った制
御モジュールに限られる。
When a job command is issued, it is necessary to acquire the right in advance for the control module to which the job command is issued. In the present embodiment, as described above, the right acquisition process is "occupied". It is. Note that occupation is also required when issuing a state command to be described later. Thus, the effective range of issuing and receiving the job command and the state command is limited to the control module that has occupied.

【0044】具体的には、制御モジュール内に、自己が
占有されている場合に有効となるフラグを設け、このフ
ラグに対応して占有元の制御モジュールまたは外部シス
テムを記録したテーブルを設ける。さらに、このテーブ
ルには、当該占有がジョブコマンドについてのものかス
テートコマンドについてのものかも併せて表示される。
Specifically, a flag that is effective when the control module is occupied is provided in the control module, and a table that records the control module or the external system of the occupation source is provided corresponding to the flag. Further, this table also displays whether the occupancy is for a job command or a state command.

【0045】次に、ジョブコマンドの動作を図1を参照
して説明する。図1では、外部システムEXSが制御モ
ジュールAを占有している。また、制御モジュールAB
が制御モジュールACを占有している。このとき、制御
モジュールACに対するジョブコマンドは制御モジュー
ルABだけが発行できる。また、制御モジュールABが
発行したジョブコマンドは制御モジュールACだけに有
効である。さらに、制御モジュールAに対するジョブコ
マンドは外部システムEXSだけが発行できる。また、
外部システムEXSが発行したジョブコマンドは制御モ
ジュールAだけに有効である。
Next, the operation of the job command will be described with reference to FIG. In FIG. 1, the external system EXS occupies the control module A. Also, the control module AB
Occupy the control module AC. At this time, only the control module AB can issue a job command for the control module AC. The job command issued by the control module AB is valid only for the control module AC. Further, a job command for the control module A can be issued only by the external system EXS. Also,
The job command issued by the external system EXS is valid only for the control module A.

【0046】次に、ステートコマンドについて説明す
る。ステートコマンドは、制御モジュールの状態を遷移
させることに用いる。ステートコマンドを発行する側と
しては、発行した制御モジュールに対してその状態をス
テートコマンドに該当する状態に遷移させることができ
る。これに対して制御モジュール側としては、ステート
コマンドを受領した場合に、ステートコマンドに該当す
る状態に遷移することができる。ジョブコマンドとは異
なり、ステートコマンドにより状態が遷移した制御モジ
ュールのツリー構造上配下にある制御モジュールに対し
てもステートコマンドは影響を及ぼす。ステートコマン
ドの発行を行う場合には、ジョブコマンドと同様に、発
行先に対して占有を行う必要がある。
Next, the state command will be described. The state command is used to change the state of the control module. On the side that issues a state command, the state of the issued control module can be changed to a state corresponding to the state command. On the other hand, when the control module receives the state command, it can transition to the state corresponding to the state command. Unlike the job command, the state command has an effect on the control modules under the tree structure of the control module whose state has been changed by the state command. When issuing a state command, it is necessary to occupy the issuing destination similarly to the job command.

【0047】ステートコマンドの動作を図2を参照して
説明する。図2では、外部システムEXSが制御モジュ
ールAを占有している。また、制御モジュールABが制
御モジュールACを占有している。制御モジュールAC
に対するステートコマンドは占有している制御モジュー
ルABだけが発行できる。制御モジュールABが発行し
たステートコマンドは、制御モジュールACだけでな
く、制御モジュールAC配下の制御モジュールACA、
ACB、ACAA、ACAB、ACBA、ACBBにも
及ぶ。
The operation of the state command will be described with reference to FIG. In FIG. 2, the external system EXS occupies the control module A. Further, the control module AB occupies the control module AC. Control module AC
Can be issued only by the occupying control module AB. The state command issued by the control module AB includes not only the control module AC but also the control modules ACA and
It extends to ACB, ACAA, ACAB, ACBA, ACBB.

【0048】制御モジュールAに対するステートコマン
ドは占有している外部システムEXSだけが発行でき
る。外部システムEXSが発行したステートコマンド
は、制御モジュールAA、AB、AAA、AAB、AB
Aにも及ぶ。ただし、制御モジュールACとその配下の
制御ジュールは、制御モジュールACが占有されている
ため影響を及ぼさない。
The state command for the control module A can be issued only by the occupying external system EXS. The state commands issued by the external system EXS include the control modules AA, AB, AAA, AAB, AB
A. However, the control module AC and the control modules under the control module AC have no influence because the control module AC is occupied.

【0049】占有を解除された制御モジュールは、その
とき、ツリー構造上の自己の上位にある制御モジュール
のステートコマンドにしたがい状態を遷移させる。さら
に、自己の制御モジュール配下の制御モジュールもそれ
にしたがう。例えば、制御モジュールACの占有が解除
された場合には、制御モジュールACはツリー構造上の
自己の上位である制御モジュールAのX状態を引き継
ぎ、制御モジュールACA、ACB、ACAA、ACA
B、ACBA、ACBBがすべてX状態に遷移する。
At this time, the control module whose occupancy has been released changes its state in accordance with the state command of the control module located above the control module in the tree structure. Furthermore, the control modules under its own control module also follow it. For example, when the occupation of the control module AC is released, the control module AC takes over the X state of the control module A, which is a higher order of itself on the tree structure, and controls the control modules ACA, ACB, ACAA, and ACA.
B, ACBA, and ACBB all transition to the X state.

【0050】次に、イベントコマンドについて説明す
る。イベントコマンドは、緊急性の高い制御モジュール
間の情報伝達に用いる。イベントコマンドを発行する側
としては、発行した制御モジュールに対してその状態を
瞬時に伝達しイベントコマンドに対応した処理を実現さ
せることができる。制御モジュール側としては、イベン
トコマンドを受領したときに、イベントコマンドに該当
する処理状態に遷移することができる。イベントコマン
ドは、それを受領した制御モジュールとその配下の制御
モジュールに対して有効である。イベントコマンドは、
緊急性が高いので、占有は必要としない。
Next, the event command will be described. The event command is used for transmitting information between control modules having high urgency. On the side that issues the event command, the state can be instantaneously transmitted to the issuing control module, and processing corresponding to the event command can be realized. When the control module receives the event command, it can transition to the processing state corresponding to the event command. The event command is valid for the control module that received it and the control modules under it. The event command is
Occupancy is not required because of the urgency.

【0051】イベントコマンドの動作を図3を参照して
説明する。図3では、外部システムEXSが制御モジュ
ールAを占有している。また、制御モジュールABが制
御モジュールACを占有している。イベントコマンド
は、前述したように、すべての制御モジュールに対して
占有の有無にかかわらず全ての制御モジュールあるいは
外部システムEXSが発行可能である。
The operation of the event command will be described with reference to FIG. In FIG. 3, the external system EXS occupies the control module A. Further, the control module AB occupies the control module AC. As described above, the event command can be issued from all control modules or the external system EXS regardless of whether or not all control modules are occupied.

【0052】例えば、図3では、外部システムEXSよ
りEイベントコマンドを発行した場合には、制御モジュ
ールAを含む全ての制御モジュールAA、AB、AC、
AAA、AAB、ABA、ACA、ACB、ACAA、
ACAB、ACBA、ACBBにEイベントコマンドが
伝達される。
For example, in FIG. 3, when an E event command is issued from the external system EXS, all the control modules AA, AB, AC,
AAA, AAB, ABA, ACA, ACB, ACAA,
An E event command is transmitted to ACAB, ACBA, and ACBB.

【0053】次に、占有について図4ないし図7を参照
して詳細に説明する。占有の目的は、操作を試みようと
する制御モジュールに対してジョブコマンドおよびステ
ートコマンドの発行の権利を取得し、非権利取得制御モ
ジュールおよび外部システムEXSからのジョブコマン
ドおよびステートコマンドの排他処理を占有を解除する
まで保持するところにある。
Next, the occupancy will be described in detail with reference to FIGS. The purpose of the occupation is to acquire the right to issue the job command and the state command to the control module attempting to operate, and to occupy the exclusive processing of the job command and the state command from the non-right acquisition control module and the external system EXS. Is held until canceled.

【0054】これにより、複数の制御モジュールからの
コマンド発行があるときに、送受信の衝突を回避するこ
とができる。また、異なる制御モジュール間で共有使用
される制御モジュールの使用時間を確保することができ
る。さらに、ツリー構造上でコマンドの影響を受ける位
置にある制御モジュールが占有解除までコマンドの影響
を受けることなく特定状態を確保することができる。
Thus, when a command is issued from a plurality of control modules, a collision between transmission and reception can be avoided. Further, it is possible to secure the use time of the control module that is shared between different control modules. Further, the control module at the position affected by the command on the tree structure can secure the specific state without being affected by the command until the occupation is released.

【0055】占有処理可能な宛先は、システム内部の制
御モジュール、外部システムEXS、制御モジュール自
身から発行を行うことができる。占有を行う場合は、時
間的条件、状態、ツリー構造による制約はない。ただ
し、既に占有されている場合には、重複して占有するこ
とができず拒否される。占有を解除する場合も時間的条
件、状態、ツリー構造による制約はなく、常に解除する
ことができる。ただし、占有元のみが解除できる。占有
は、解除されるまで一つの制御モジュールが保有し、他
から共有することはできない。受信についても、時間的
条件、状態、ツリー構造による制約はない。
The destination that can be occupied can be issued from the control module in the system, the external system EXS, or the control module itself. When occupation is performed, there is no restriction based on the time condition, state, and tree structure. However, if they are already occupied, they cannot be occupied again and will be rejected. When the occupancy is released, there is no restriction by the time condition, the state, and the tree structure, and the occupation can always be released. However, only the occupant can be released. Occupancy is held by one control module until released, and cannot be shared by others. There is no restriction on the reception due to the time condition, state, or tree structure.

【0056】次に、図4を参照して占有の動作を説明す
る。図4では、初期状態として、全ての制御モジュール
A、AA、AB、AC、AAA、AAB、ABA、AC
A、ACBがある特定の状態であり、すべての制御モジ
ュールが占有されていない状態からの制御モジュール
AB、AC間の占有処理により制御モジュールABが制
御モジュールACに対して占有を行い、制御モジュール
ACが制御モジュールABの占有状態になり、制御モジ
ュールACは、制御モジュールABから制御モジュール
ACへのステートコマンド発行により特定の状態(図は
Y状態)に遷移している。
Next, the occupancy operation will be described with reference to FIG. In FIG. 4, all control modules A, AA, AB, AC, AAA, AAB, ABA, AC
A and ACB are in a certain state, and the control module AB occupies the control module AC by occupancy processing between the control modules AB and AC from a state where all control modules are not occupied. Is in the occupied state of the control module AB, and the control module AC has transited to a specific state (the Y state in the figure) by issuing a state command from the control module AB to the control module AC.

【0057】ステートコマンドのツリー下位への状態の
伝播の性質上、制御モジュールACとその下位ACA、
ACBは、制御モジュールACの状態の伝播を完了して
いる。このとき、制御モジュールACの占有は解除され
ていない。その後、の外部システムEXS、制御モジ
ュールA間の占有処理により外部システムEXSが制御
モジュールAに対して占有を行い、制御モジュールAが
外部システムEXSの占有状態になり、制御モジュール
Aは、外部システムEXSから制御モジュールAへのス
テートコマンド発行により特定の状態(図ではX状態)
に遷移している。
Due to the nature of state propagation of state commands down the tree, the control module AC and its lower ACA,
The ACB has completed the propagation of the state of the control module AC. At this time, the occupation of the control module AC has not been released. Thereafter, the occupation process between the external system EXS and the control module A causes the external system EXS to occupy the control module A, and the control module A enters the occupation state of the external system EXS. A specific state (X state in the figure) by issuing a state command from control to control module A
Has transitioned to

【0058】ステートコマンドのツリー下位への状態伝
播の性質上、制御モジュールAとその下位の制御モジュ
ールAA、AAA、AAB、AB、ABAは、制御モジ
ュールAの状態の伝播を完了している。制御モジュール
ACを含むノードは、既に制御モジュールABによる占
有状態であるため、制御モジュールAの状態は伝播され
ない。
Due to the nature of state propagation of state commands to the lower level of the tree, the control module A and its lower-level control modules AA, AAA, AAB, AB, and ABA have completed propagation of the state of the control module A. Since the node including the control module AC is already occupied by the control module AB, the state of the control module A is not propagated.

【0059】図5は、図4に示す状態を初期状態として
制御モジュールACの占有を制御モジュールABにより
解除が行われた直後に、ステートコマンドのツリー下位
への状態伝播の性質上、制御モジュールAの下位である
ところの制御モジュールACと制御モジュールAC下位
の制御モジュールACA、ACBは、制御モジュールA
の状態の伝播が自動で行われて完了している。
FIG. 5 shows the state shown in FIG. 4 as an initial state, and immediately after the control module AB releases the occupation of the control module AC, the state of the control module A due to the nature of state propagation of the state command to the lower level of the tree. The control module AC and the control modules ACA and ACB under the control module AC are lower than the control module A.
State propagation is automatically performed and completed.

【0060】また、図6は、ツリー構造の制御モジュー
ルAの下位に、制御モジュールAA、AB、ACがあ
り、制御構成上、制御モジュールABが制御モジュール
AAとACの共用部品であった場合に、制御モジュール
ABの使用権を確保するために、制御モジュールAAと
ACは、占有操作を使って権利の取得を競うことにな
る。このような場合には、制御モジュールAA、ACが
同時に占有を行うことはできないため、占有操作の早い
順となる。
FIG. 6 shows a case where the control modules AA, AB, and AC are below the control module A having a tree structure, and the control module AB is a common component of the control modules AA and AC in terms of control configuration. In order to secure the right to use the control module AB, the control modules AA and AC will compete for the right using the exclusive operation. In such a case, the control modules AA and AC cannot occupy at the same time.

【0061】仮に制御モジュールAAが制御モジュール
ABの占有を取得している場合は、制御モジュールAC
は、制御モジュールABを占有することができず、制御
モジュールABの占有が解除されるまで受け付けられな
い。しかし、これは制御モジュールACの占有を保証す
るものではなく、再度、制御モジュールAAまたは他の
系による占有が行われる可能性もある。
If the control module AA has acquired the occupation of the control module AB, the control module AC
Cannot be occupied by the control module AB and is not accepted until the occupation of the control module AB is released. However, this does not guarantee the occupation of the control module AC, and the occupation of the control module AA or another system may occur again.

【0062】また、図7に示すように、制御モジュール
ABは、自己の状態と処理を保存するために、制御モジ
ュールAB自身で占有を行うこともできる。
As shown in FIG. 7, the control module AB can be occupied by the control module AB itself in order to save its own state and processing.

【0063】なお、イベントコマンドの発行に際して
は、占有処理を必要としないが、イベントコマンドの宛
先となった制御モジュールについては、イベントコマン
ドの受領と同時あるいは受領後に、占有処理と同等の処
理が施され、この処理が解除されると、この制御モジュ
ールは、上位の制御モジュールの状態にしたがって然る
べき状態遷移を行うことができる。
It should be noted that, when issuing an event command, occupancy processing is not required. However, for the control module that is the destination of the event command, processing equivalent to occupation processing is performed simultaneously with or after receiving the event command. Then, when this processing is canceled, this control module can make an appropriate state transition according to the state of the higher-level control module.

【0064】また、イベントコマンドの宛先となった制
御モジュールの下位に接続されている制御モジュールに
ついては、イベントコマンドを受領した時点で、それま
での占有状態は解除される。
The control module connected below the control module that is the destination of the event command is released from the occupied state when the event command is received.

【0065】前記占有処理と同等の処理の具体例として
は、イベントコマンドの宛先となった制御モジュールで
は、そのイベントコマンドの発行元の情報を記録してお
き、そのイベントコマンドの前記占有と同等の処理の解
除とともに、その記録を消去することにより、イベント
コマンドの発行元による前記占有と同等の処理の有効ま
たは無効を認識することができる。
As a specific example of the processing equivalent to the occupation processing, the control module that is the destination of the event command records information on the issue source of the event command, and performs the same processing as the occupation of the event command. By deleting the record at the same time as the cancellation of the processing, it is possible to recognize the validity or invalidity of the processing equivalent to the occupation by the source of the event command.

【0066】次に、図8および図9を参照して本発明実
施例の制御装置の具体的動作を説明する。図8は旋盤の
要部構成図である。図9は旋盤の制御系統図である。図
8に示す旋盤は、サーボモータSM−1、SM−2、S
M−3、油圧シリンダOS−1、OS−2、OS−3、
オイルバルブOV−1により構成される。サーボモータ
SM−1は主軸回転用であり、被加工物(以降、ワーク
という)を回転させる。このサーボモータSM−1は、
正転のみであり逆転はしない。また、このサーボモータ
SM−1は、ワークを回転させるためのものであるか
ら、複雑な制御は必要とせず、ワーク保持が完了した時
点で回転を始める。サーボモータSM−2は刃物台のX
軸送り用であり、正転および逆転を行う。サーボモータ
SM−3は刃物台Y軸送り用であり、正転および逆転を
行う。油圧シリンダOS−1はチャック用であり、ワー
クを掴むチャックを駆動させる。油圧シリンダOS−2
は芯押し用である。油圧シリンダOS−3は刃物クラン
プ用であり、刃物を掴むために用いられる。オイルバル
ブOV−1は、ワークに切削油を供給するために用いら
れる。なお、センサAはチャックの定位置および原点を
確認するために用いられる。センサBはワークの有無を
確認するために用いられる。センサCは芯押し台の定位
置および原点を確認するために用いられる。
Next, a specific operation of the control device according to the embodiment of the present invention will be described with reference to FIGS. FIG. 8 is a configuration diagram of a main part of the lathe. FIG. 9 is a control system diagram of the lathe. The lathe shown in FIG. 8 has servo motors SM-1, SM-2, S
M-3, hydraulic cylinders OS-1, OS-2, OS-3,
It is constituted by an oil valve OV-1. The servo motor SM-1 is for rotating the spindle, and rotates a workpiece (hereinafter, referred to as a work). This servo motor SM-1 is
Only forward rotation, not reverse rotation. Further, since the servo motor SM-1 is for rotating the work, complicated control is not required, and the servo motor SM-1 starts rotating when the work holding is completed. The servo motor SM-2 is a tool post X
It is for axis feed and performs forward and reverse rotation. The servo motor SM-3 is for feeding the tool rest Y-axis and performs forward rotation and reverse rotation. The hydraulic cylinder OS-1 is for a chuck, and drives a chuck for gripping a work. Hydraulic cylinder OS-2
Is for tailing. The hydraulic cylinder OS-3 is for a blade clamp and is used for gripping the blade. The oil valve OV-1 is used for supplying cutting oil to the work. The sensor A is used for confirming the fixed position and the origin of the chuck. The sensor B is used to confirm the presence or absence of a work. The sensor C is used to confirm the home position and the origin of the tailstock.

【0067】図9は、図8に示した旋盤の制御系統図で
あり、被制御要素E(1)として油圧シリンダOS−
1、被制御要素E(2)として油圧シリンダOS−2、
被制御要素E(3)としてサーボモータSM−2、被制
御要素E(4)としてサーボモータSM−3、被制御要
素E(5)として油圧シリンダOS−3、被制御要素E
(6)としてオイルバルブOV−1が割当てられ、制御
モジュールM(1)は油圧シリンダOS−1を制御し、
制御モジュールM(2)は油圧シリンダOS−2を制御
し、制御モジュールM(3)はサーボモータSM−2お
よびSM−3を制御し、制御モジュールM(4)は油圧
シリンダOS−3を制御し、制御モジュールM(5)は
オイルバルブOV−1を制御する。
FIG. 9 is a control system diagram of the lathe shown in FIG. 8, and shows a hydraulic cylinder OS- as a controlled element E (1).
1. Hydraulic cylinder OS-2 as controlled element E (2)
Servo motor SM-2 as controlled element E (3), servo motor SM-3 as controlled element E (4), hydraulic cylinder OS-3 as controlled element E (5), controlled element E
The oil valve OV-1 is assigned as (6), and the control module M (1) controls the hydraulic cylinder OS-1.
The control module M (2) controls the hydraulic cylinder OS-2, the control module M (3) controls the servomotors SM-2 and SM-3, and the control module M (4) controls the hydraulic cylinder OS-3. Then, the control module M (5) controls the oil valve OV-1.

【0068】さらに、制御モジュールM(6)は制御モ
ジュールM(1)およびM(2)およびサーボモータS
M−1を制御し、制御モジュールM(7)は制御モジュ
ールM(3)、M(4)、M(5)を制御する。さら
に、制御モジュールM(8)は制御モジュールM(6)
およびM(7)を制御する。また、これらの制御モジュ
ールM(1)〜M(8)が共通にアクセスできる通信用
メモリCOMを備える。
Further, the control module M (6) includes the control modules M (1) and M (2) and the servo motor S
M-1 is controlled, and the control module M (7) controls the control modules M (3), M (4), and M (5). Further, the control module M (8) is controlled by the control module M (6).
And M (7). Further, a communication memory COM that can be commonly accessed by these control modules M (1) to M (8) is provided.

【0069】図9に示す制御モジュールM(1)〜M
(8)は、それぞれ所定の位置に配置されているが、初
期状態では、図1に示したように、未だ、それぞれの機
能を発現していない。ここで、ジョブコマンドにより、
各制御モジュールM(1)〜M(8)にそれぞれの機能
を発現させる。
The control modules M (1) to M shown in FIG.
(8) are arranged at predetermined positions, but in the initial state, as shown in FIG. 1, the respective functions have not yet been expressed. Here, by the job command,
The control modules M (1) to M (8) express their functions.

【0070】ジョブコマンドの伝達方法としては、外
部システムEXSが各制御モジュールM(1)〜M
(8)を次々に占有してゆき、一つずつジョブコマンド
を伝達する方法と、外部システムEXSは、制御メイ
ンである制御モジュールM(8)だけを占有し、これに
ジョブコマンドを伝達し、その後は、制御モジュールM
(8)が次々に下位の制御モジュールM(1)〜M
(7)を占有してゆき、一つずつジョブコマンドを伝達
する方法と、外部システムEXSは、制御メインであ
る制御モジュールM(8)だけを占有し、これにジョブ
コマンドを伝達し、その後は、制御モジュールM(8)
が制御モジュールM(6)またはM(7)を占有してジ
ョブコマンドを伝達し、ジョブコマンドを伝達された制
御モジュールM(6)またはM(7)は同位または下位
の制御モジュールを占有してジョブコマンドを伝達し、
ジョブコマンドを伝達された制御モジュールは、その同
位または下位の制御モジュールを占有してジョブコマン
ドを伝達する方法とが考えられる。
As a method of transmitting a job command, the external system EXS uses each of the control modules M (1) to M (M).
(8) one after another and transmitting the job commands one by one, and the external system EXS occupies only the control module M (8) which is the control main and transmits the job command to this. After that, the control module M
(8) is one of the lower control modules M (1) to M
The method of occupying (7) and transmitting job commands one by one, and the external system EXS occupies only the control module M (8) which is the control main, transmits the job command to this, and thereafter , Control module M (8)
Occupies the control module M (6) or M (7) and transmits the job command, and the control module M (6) or M (7) to which the job command is transmitted occupies the same or lower control module. Convey job commands,
It is conceivable that the control module to which the job command has been transmitted occupies the same or lower order control module and transmits the job command.

【0071】これらの方法の選択はユーザの都合によっ
て選択すればよいが、ジョブコマンド伝達のための外部
システムEXSの処理負荷を軽減させるためには、ま
たはの方法を選択することがよい。また、各制御モジ
ュールM(1)〜M(8)にジョブコマンド伝達のため
の処理負荷を分散させるためにはの方法を選択するこ
とがよい。
These methods may be selected according to the user's convenience. However, in order to reduce the processing load of the external system EXS for transmitting the job command, it is preferable to select the method or the method. Further, it is preferable to select a method for distributing the processing load for transmitting the job command to each of the control modules M (1) to M (8).

【0072】このようにして、ジョブコマンドにより、
制御モジュールM(8)は制御メインを、制御モジュー
ルM(7)は刃物台を、制御モジュールM(6)はワー
ク保持を、制御モジュールM(5)はバルブ切削油を、
制御モジュールM(4)は刃物クランプを、制御モジュ
ールM(3)は2軸制御XY軸を、制御モジュールM
(2)は芯押し台を、制御モジュールM(1)はチャッ
クをそれぞれ制御する機能を発現する。
In this way, the job command
The control module M (8) controls the main control, the control module M (7) controls the tool post, the control module M (6) controls the work holding, the control module M (5) controls the valve cutting oil,
The control module M (4) controls the blade clamp, the control module M (3) controls the two-axis control XY axes, and the control module M
(2) controls the tailstock, and the control module M (1) controls the chuck.

【0073】次に、図8に示す旋盤が、ワークをチャッ
クして切削を行う工程を例にとり、ジョブコマンドおよ
びステートコマンドおよびイベントコマンドの動作を説
明する。まず、外部システムEXSから制御メインであ
る制御モジュールM(8)にステートコマンドが発行さ
れ、制御モジュールM(8)は、起動モードから正常動
作モードに状態遷移する。また、図8の例では、各制御
モジュールM(1)〜M(7)は、他のコマンド発行元
により占有されていないので、制御モジュールM(8)
の下位に接続された各制御モジュールM(1)〜M
(7)にもこのステートコマンドは波及し、各制御モジ
ュールM(1)〜M(7)は、起動モードから正常動作
モードに状態遷移する。
Next, the operation of a job command, a state command, and an event command will be described by taking, as an example, a process in which the lathe shown in FIG. 8 chucks a workpiece to perform cutting. First, a state command is issued from the external system EXS to the control module M (8), which is the control main, and the control module M (8) makes a state transition from the startup mode to the normal operation mode. In the example of FIG. 8, since each of the control modules M (1) to M (7) is not occupied by another command issuing source, the control module M (8)
Control modules M (1) to M connected to
This state command propagates to (7), and each of the control modules M (1) to M (7) makes a state transition from the startup mode to the normal operation mode.

【0074】この時点で、外部システムEXSから制御
モジュールM(8)に、「開始」のジョブコマンドが発
行されると、制御モジュールM(8)は、この「開始」
のジョブコマンドを受信し、制御モジュールM(6)に
対して「固定」のジョブコマンドを発行する。制御モジ
ュールM(6)は、この「固定」のジョブコマンドを受
信すると、制御モジュールM(1)に対して「チャック
閉」のジョブコマンドを発行し、制御モジュールM
(2)に対して「芯押し開始」のジョブコマンドを発行
する。
At this point, when the external system EXS issues a “start” job command to the control module M (8), the control module M (8) issues the “start” job command.
And issues a “fixed” job command to the control module M (6). When receiving the “fixed” job command, the control module M (6) issues a “chuck closed” job command to the control module M (1), and
In response to (2), a job command of “start centering” is issued.

【0075】「チャック閉」のジョブコマンドに対し、
制御モジュールM(1)は、センサBの出力にしたがっ
てワークが定位置にセットされたことを検出すると油圧
シリンダOS−1を駆動して実際にチャックを閉じる。
また、「芯押し開始」のジョブコマンドに対し、制御モ
ジュールM(2)は、センサCの出力を監視しながら油
圧シリンダOS−2を駆動して芯押しを開始する。これ
らのジョブの終了は、制御モジュールM(6)に通知さ
れる。
In response to the job command “Chuck closed”,
When the control module M (1) detects that the work is set at the fixed position according to the output of the sensor B, it drives the hydraulic cylinder OS-1 to actually close the chuck.
Further, in response to the job command of “start centering”, the control module M (2) starts the centering by driving the hydraulic cylinder OS-2 while monitoring the output of the sensor C. The end of these jobs is notified to the control module M (6).

【0076】制御モジュールM(6)では、「固定」の
ジョブコマンドに対するジョブが終了したことをそのジ
ョブコマンドの発行元である制御モジュールM(8)に
通知する。制御モジュールM(8)では、「固定」のジ
ョブコマンドに対するジョブの終了を認識すると、制御
モジュールM(7)に対して「削る」のジョブコマンド
を発行する。制御モジュールM(7)では、「削る」の
ジョブコマンドを受信すると、制御モジュールM(3)
に対して「刃物台移動」のジョブコマンドを発行し、制
御モジュールM(4)に対して「刃物クランプ」のジョ
ブコマンドを発行し、制御モジュールM(5)に対して
「注油」のジョブコマンドを発行する。
The control module M (6) notifies the control module M (8) that has issued the job command that the job for the “fixed” job command has been completed. When recognizing the end of the job for the “fixed” job command, the control module M (8) issues a “cut” job command to the control module M (7). When the control module M (7) receives the job command of “cut”, the control module M (3)
, A job command of “clamp” is issued to the control module M (4), and a job command of “lubrication” is issued to the control module M (5). Issue

【0077】「刃物台移動」のジョブコマンドに対し、
制御モジュールM(3)は、XY軸をサーボモータSM
−3によりNC制御して刃物台を所定の位置に移動させ
る。また、「刃物クランプ」のジョブコマンドに対し、
制御モジュールM(4)は、油圧シリンダOS−3を駆
動して所定の刃物をクランプする。また、「注油」のジ
ョブコマンドに対し、制御モジュールM(5)は、オイ
ルバルブOV−1を駆動して注油を行う。これらのジョ
ブによってワークは所定の形状に切削される。これらの
ジョブの終了は、制御モジュールM(7)に通知され
る。制御モジュールM(7)では、「削る」のジョブコ
マンドに対するジョブが終了したことをそのジョブコマ
ンドの発行元である制御モジュールM(8)に通知す
る。これにより、制御モジュールM(8)では、ジョブ
の終了を認識する。
In response to the job command “Move tool post”,
The control module M (3) controls the XY axes by the servo motor SM
-3 is controlled by NC to move the tool post to a predetermined position. Also, in response to the job command of "Cutting tool clamp",
The control module M (4) drives the hydraulic cylinder OS-3 to clamp a predetermined blade. The control module M (5) drives the oil valve OV-1 to perform lubrication in response to the "lubrication" job command. The work is cut into a predetermined shape by these jobs. The end of these jobs is notified to the control module M (7). The control module M (7) notifies the control module M (8), which is the source of the job command, that the job corresponding to the job command “cut” has been completed. Thus, the control module M (8) recognizes the end of the job.

【0078】再度、外部システムEXSから「開始」の
ジョブコマンドが制御モジュールM(8)に発行される
と、以上の手順を繰り返し実行する。なお、各制御モジ
ュールM(1)〜M(7)は、すでに起動モードから正
常動作モードに状態遷移しているで、2回目以降では、
外部システムEXSは、制御モジュールM(8)に対し
てステートコマンドを発行しない。
When the "start" job command is issued from the external system EXS to the control module M (8) again, the above procedure is repeatedly executed. Each of the control modules M (1) to M (7) has already transitioned from the start mode to the normal operation mode.
The external system EXS does not issue a state command to the control module M (8).

【0079】この間に、制御モジュールM(1)〜M
(8)を警報モード、停止モード、保留モード、手動モ
ード、逆転モード、例外処理モード等に緊急に状態遷移
させたい事態が発生した場合には、外部システムEXS
は、制御モジュールM(8)に対してイベントコマンド
を発行する。イベントコマンドは制御モジュールM
(8)から制御モジュールM(1)〜M(7)に波及
し、制御モジュールM(1)〜M(8)は、上記の各モ
ードに速やかに状態遷移する。
During this time, the control modules M (1) to M
(8) If an emergency state transition to the alarm mode, the stop mode, the hold mode, the manual mode, the reverse mode, the exception processing mode, or the like occurs, the external system EXS
Issues an event command to the control module M (8). The event command is the control module M
(8) is transmitted to the control modules M (1) to M (7), and the control modules M (1) to M (8) make a state transition to each of the above modes quickly.

【0080】また、一日の生産目標数の加工が終了し、
その日の操業を終了する場合には、外部システムEXS
は、制御モジュールM(8)に対してステートコマンド
を発行し、制御モジュールM(8)は、正常動作モード
から停止モードに状態遷移する。このステートコマンド
は、制御モジュールM(1)〜M(7)にも波及し、各
制御モジュールM(1)〜M(7)も正常動作モードか
ら停止モードに状態遷移し、その日の操業を終了する。
Further, the processing of the daily production target number is completed,
To end the operation on that day, use the external system EXS
Issues a state command to the control module M (8), and the control module M (8) makes a state transition from the normal operation mode to the stop mode. This state command also spreads to the control modules M (1) to M (7), and the respective control modules M (1) to M (7) also make a state transition from the normal operation mode to the stop mode, and end the operation on that day. I do.

【0081】[0081]

【発明の効果】以上説明したように、本発明によれば、
特性の異なる複数種類のコマンドを用いることにより、
複数の異なる状況に容易に対応するとともに制御を簡単
化することができる。
As described above, according to the present invention,
By using multiple types of commands with different characteristics,
It is possible to easily cope with a plurality of different situations and to simplify the control.

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

【図1】ジョブコマンドの動作を説明するための図。FIG. 1 is a diagram for explaining the operation of a job command.

【図2】ステートコマンドの動作を説明するための図。FIG. 2 is a diagram for explaining an operation of a state command.

【図3】イベントコマンドの動作を説明するための図。FIG. 3 is a diagram for explaining the operation of an event command.

【図4】占有の動作を説明するための図。FIG. 4 is a diagram for explaining an occupation operation.

【図5】占有解除の動作を説明するための図。FIG. 5 is a diagram for explaining an operation of releasing occupancy.

【図6】占有の競合を説明するための図。FIG. 6 is a view for explaining contention competition.

【図7】自己占有を説明するための図。FIG. 7 is a view for explaining self-occupation.

【図8】旋盤の構成図。FIG. 8 is a configuration diagram of a lathe.

【図9】旋盤の制御系統図。FIG. 9 is a control system diagram of a lathe.

【図10】先願の制御装置の構成図。FIG. 10 is a configuration diagram of a control device of the prior application.

【図11】先願の制御モジュールのブロック構成図。FIG. 11 is a block diagram of a control module of the prior application.

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

A、AA、AB、AC、AAA、AAB、ABA、AC
A、ACB、ACAA、ACAB、ACBA、ACB
B、M(1)〜M(k+3) 制御モジュール C(1)〜C(k+3) 通信線 COM 通信用メモリ E(1)〜E(n) 被制御要素 EXS 外部システム SM−1〜3 サーボモータ OS−1〜3 油圧シリンダ OV−1 オイルバルブ ST1 起動モード ST2 正常動作モード ST3 停止モード ST4 保留モード ST5 手動制御モード ST6 逆転モード ST7 警報モード ST8 終了モード ST9 例外動作モード st10 コールドスタートモード st11 ホットスタートモード st12 原点モード st13 復元モード st14 準備モード st15 運転モード st16 緊急停止モード st17 減速停止モード st18 ステップ停止モード st19 CPU停止モード st20 制御解放モード st21 制御回復モード st22 診断モード st23 異常停止モード st24 非常停止モード
A, AA, AB, AC, AAA, AAB, ABA, AC
A, ACB, ACAA, ACAB, ACBA, ACB
B, M (1) to M (k + 3) Control module C (1) to C (k + 3) Communication line COM Communication memory E (1) to E (n) Controlled element EXS External system SM-1 to 3 Servo motor OS-1 to 3 Hydraulic cylinder OV-1 Oil valve ST1 Start mode ST2 Normal operation mode ST3 Stop mode ST4 Hold mode ST5 Manual control mode ST6 Reverse mode ST7 Alarm mode ST8 End mode ST9 Exceptional operation mode st10 Cold start mode st11 Hot start mode st12 Origin mode st13 Restoration mode st14 Preparation mode st15 Operation mode st16 Emergency stop mode st17 Deceleration stop mode st18 Step stop mode st19 CPU stop mode st20 Control release mode st21 Control recovery mode st 22 Diagnosis mode st23 Abnormal stop mode st24 Emergency stop mode

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B076 DA04 DD01 DF09 5H209 AA06 CC03 CC07 DD06 GG06 HH04 5H220 AA05 BB05 BB12 BB13 CC05 CX01 EE06 JJ12 JJ51  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B076 DA04 DD01 DF09 5H209 AA06 CC03 CC07 DD06 GG06 HH04 5H220 AA05 BB05 BB12 BB13 CC05 CX01 EE06 JJ12 JJ51

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 複数の被制御要素をそれぞれ制御する複
数の制御モジュールから構成され、この複数の制御モジ
ュールはツリー状の階層構造に構成され、前記各制御モ
ジュールのモードおよびモードの遷移は、すべての制御
モジュールが共通に備えた制御装置において、 前記各制御モジュールに与えられるコマンドは、コマン
ドの発行元がそのコマンドの宛先となる制御モジュール
に対してコマンドを発行する権利を事前に取得する占有
処理により有効に受け付けられ当該制御モジュールにの
み有効な第一のコマンドと、前記占有処理により有効に
受け付けられ当該制御モジュールの下位の制御モジュー
ルの当該コマンドの発行元以外のコマンド発行元により
前記占有処理されていない制御モジュールにも有効な第
二のコマンドと、前記占有処理を必要とせずに受け付け
られ当該制御モジュールの下位の制御モジュールにも有
効な第三のコマンドとを含むことを特徴とする制御装
置。
1. A control system comprising: a plurality of control modules for controlling a plurality of controlled elements, wherein the plurality of control modules are configured in a tree-like hierarchical structure; In a control device commonly provided to the control modules, the command given to each of the control modules may be an occupation process in which the command issuer acquires in advance the right to issue the command to the control module that is the destination of the command. The first command validly accepted by the control module and valid only by the control module, and the occupation process is effectively received by the occupation process and executed by a command issuing source other than the command issuing source of a lower-level control module of the control module. A second command that is also valid for the control module that is not Control apparatus characterized by comprising a lower third command effective to control modules of the control module is accepted without requiring physical.
【請求項2】 前記第一のコマンドは、当該制御モジュ
ールの機能を実行するジョブを指令するジョブコマンド
であり、前記第二のコマンドは、当該制御モジュールの
状態遷移を指令するステートコマンドであり、前記第三
のコマンドは、当該制御モジュールおよびその配下にあ
るすべての制御モジュールのモードを遷移させるイベン
トコマンドである請求項1記載の制御装置。
2. The method according to claim 1, wherein the first command is a job command for instructing a job for executing a function of the control module, the second command is a state command for instructing a state transition of the control module, The control device according to claim 1, wherein the third command is an event command for changing a mode of the control module and all control modules under the control module.
【請求項3】 前記第二のコマンドを受け付けた制御モ
ジュールは、配下の制御モジュールが当該コマンドの発
行元以外のコマンドの発行元により前記占有処理されて
いるときは、当該占有処理されている制御モジュールの
状態遷移がその占有処理が解除されるまで抑止される請
求項2記載の制御装置。
3. The control module, which has received the second command, executes the occupied control when the subordinate control module is occupied by a command issuer other than the command issuer. 3. The control device according to claim 2, wherein the state transition of the module is suppressed until the occupation process is released.
【請求項4】 前記モードおよびモードの遷移は、 対応する被制御要素の起動を制御する起動モードと、 この起動モードから直接に移行できその被制御要素の正
常動作を制御する正常動作モードと、 この正常動作モードと相互にかつ直接に移行できその被
制御要素の停止を制御する停止モードと、 この停止モードと相互にかつ直接に移行でき前記起動モ
ードへ直接に移行できかつ前記被制御要素を保留状態に
制御する保留モードと、 この保留モードから直接に移行できるとともに前記停止
モードと相互に移行でき前記被制御要素を逆転状態に制
御する逆転モードと、 前記保留モードから直接に移行できるとともに前記停止
モードと相互に移行でき前記正常動作モードまたは前記
起動モードに移行可能であり前記被制御要素を手動制御
する手動制御モードと、 前記各モードから移行でき警報を発生させる警報モード
と、 前記各モードから移行でき前記各モードの少なくとも一
部について一時的に同期から外れた動作を行わせる例外
動作モードと、 前記保留モードから直接に移行でき前記被制御要素の制
御を終了させる終了モードとを含む請求項1記載の制御
装置。
4. The method according to claim 1, wherein the mode and the mode transition include: a start mode for controlling activation of a corresponding controlled element; a normal operation mode capable of directly shifting from the start mode and controlling a normal operation of the controlled element; A stop mode that can shift directly and directly to the normal operation mode and controls the stop of the controlled element; and a stop mode that can shift directly and directly to the stop mode and that can shift directly to the start mode and the controlled element. A holding mode for controlling to a holding state, a reversing mode for directly shifting from the holding mode and a mutual switching with the stop mode for controlling the controlled element to a reversing state, A method for manually controlling the controlled element, which can be shifted to a stop mode and can be shifted to the normal operation mode or the start mode. A control mode, an alarm mode in which the mode can be shifted from each of the modes and an alarm is generated, an exception operation mode in which the mode can be shifted from each of the modes and at least a part of each mode is temporarily out of synchronization, and The control device according to claim 1, further comprising: an end mode in which control can be directly shifted from the suspension mode to end the control of the controlled element.
【請求項5】 前記起動モードは、制御ファイルを作成
するコールドスタートモードと、このコールドスタート
モードから移行されファイルデータをRAMに書込むホ
ットスタートモードとを含む請求項4記載の制御装置。
5. The control device according to claim 4, wherein the start mode includes a cold start mode for creating a control file and a hot start mode for shifting from the cold start mode and writing file data to a RAM.
【請求項6】 前記正常動作モードは、前記被制御要素
が原点にあることを確認する原点モードと、自動運転さ
れる前記被制御要素のシーケンスをシーケンス中断直前
の状態に戻す復元モードと、前記被制御要素を自動運転
するための準備を行う準備モードと、前記被制御要素の
自動運転を行うための運転モードとを含む請求項4記載
の制御装置。
6. The normal operation mode includes an origin mode for confirming that the controlled element is at the origin, a restoration mode for returning a sequence of the controlled elements to be automatically operated to a state immediately before the interruption of the sequence, The control device according to claim 4, further comprising: a preparation mode for preparing for automatically driving the controlled element; and an operation mode for performing automatic driving of the controlled element.
【請求項7】 前記停止モードは、前記被制御要素の運
転を緊急に停止する緊急停止モードと、前記被制御要素
の運転を徐々に停止する減速停止モードと、前記被制御
要素の運転をそのシーケンスの区切りで停止するステッ
プ停止モードとを含む請求項4記載の制御装置。
7. The stop mode includes an emergency stop mode for urgently stopping the operation of the controlled element, a deceleration stop mode for gradually stopping the operation of the controlled element, and an operation of the controlled element. The control device according to claim 4, further comprising: a step stop mode for stopping at a break of a sequence.
【請求項8】 前記保留モードは、CPUを停止するこ
とができるCPU停止モードと、前記被制御要素を制御
から解放する制御解放モードと、制御から解放された前
記被制御要素を制御下に戻す制御回復モードと、前記被
制御要素の運転状況を情報化するとともに制御仕様を変
更することができる診断モードとを含む請求項4記載の
制御装置。
8. The suspension mode includes a CPU halt mode capable of stopping a CPU, a control release mode for releasing the controlled element from control, and returning the controlled element released from control to control. The control device according to claim 4, further comprising: a control recovery mode; and a diagnostic mode capable of changing an operation state of the controlled element into information and changing a control specification.
【請求項9】 前記警報モードは、前記被制御要素の運
転に異常が検出されたときに運転を停止する異常停止モ
ードと、運転状況にかかわらず外部の指示にしたがって
非常停止を行う非常停止モードとを含む請求項4記載の
制御装置。
9. The alarm mode includes an abnormal stop mode in which operation is stopped when an abnormality is detected in the operation of the controlled element, and an emergency stop mode in which emergency stop is performed according to an external instruction irrespective of an operation state. The control device according to claim 4, comprising:
【請求項10】 複数の被制御要素をそれぞれ制御する
複数の制御モジュールから構成され、この複数の制御モ
ジュールは階層構造に構成され、前記各制御モジュール
のモードおよびモードの遷移は、すべての制御モジュー
ルが共通に備えた制御装置の制御方法において、 制御モジュールの機能を発揮させるジョブコマンドは、
ジョブコマンドの発行元がそのジョブコマンドの宛先と
なる制御モジュールに対してジョブコマンドを発行する
権利を事前に取得する占有処理を行った後に発行し、 制御モジュールの状態を遷移させるステートコマンド
は、ステートコマンドの発行元がそのステートコマンド
の宛先となる制御モジュールに対してステートコマンド
を発行する権利を事前に取得する占有処理を行った後に
発行して当該制御モジュールおよび当該制御モジュール
の配下にある制御モジュールであって当該ステートコマ
ンドの発行元以外のステートコマンドの発行元により前
記占有処理がされていない制御モジュールの状態を遷移
させ、 緊急にツリー状の制御モジュールを一斉に遷移させる必
要があるときは前記占有処理を行うことなく、すべての
制御モジュールに有効なイベントコマンドを発行するこ
とを特徴とする制御方法。
10. A control system comprising: a plurality of control modules for controlling a plurality of controlled elements, wherein the plurality of control modules are arranged in a hierarchical structure; In the control method of the control device that is commonly provided, the job command for exerting the function of the control module is:
A state command that is issued after the job command issuer has performed an exclusive process of acquiring in advance the right to issue a job command to the control module that is the destination of the job command, and that causes the state of the control module to transition, is a state command. A command issuer issues a control module that is a subordinate of the control module by issuing the command after performing an occupation process of acquiring in advance the right to issue the state command to the control module that is the destination of the state command. When the state of the control module that has not been subjected to the occupation process is changed by an issuer of a state command other than the issuer of the state command, and it is necessary to urgently change the tree-shaped control modules all at once, All control modules without occupancy processing Control method characterized by issuing a valid event command.
JP2001046851A 2000-03-10 2001-02-22 Control unit and control method Pending JP2002062912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001046851A JP2002062912A (en) 2000-03-10 2001-02-22 Control unit and control method

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2000066852 2000-03-10
JP2000-172461 2000-06-08
JP2000-66852 2000-06-08
JP2000172461 2000-06-08
JP2001046851A JP2002062912A (en) 2000-03-10 2001-02-22 Control unit and control method

Publications (1)

Publication Number Publication Date
JP2002062912A true JP2002062912A (en) 2002-02-28

Family

ID=27342631

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001046851A Pending JP2002062912A (en) 2000-03-10 2001-02-22 Control unit and control method

Country Status (1)

Country Link
JP (1) JP2002062912A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023228678A1 (en) * 2022-05-25 2023-11-30 三菱重工業株式会社 Facility abnormality determination device, abnormality determination system, abnormality determination method, control method for abnormality determination system, and abnormality determination program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023228678A1 (en) * 2022-05-25 2023-11-30 三菱重工業株式会社 Facility abnormality determination device, abnormality determination system, abnormality determination method, control method for abnormality determination system, and abnormality determination program

Similar Documents

Publication Publication Date Title
US8224477B2 (en) Work machining apparatus control program and work machining apparatus control device for executing the control program
JPH05216515A (en) Configurable machine tool controller
JP6477555B2 (en) RELAY DEVICE, RELAY DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
JP3236563B2 (en) Control device
JP2002062912A (en) Control unit and control method
JPH09128255A (en) Programable logic controller
US8095619B2 (en) Automation system and method for operating such an automation system
EP1747839B1 (en) Robot laser processing system
JP2004216504A (en) Loader control device
US6591152B1 (en) Control system
JP3084012B2 (en) Control device and method of creating control program therefor
JP3423536B2 (en) Multi-system numerical controller with inter-system axis exchange control function
JP3148099B2 (en) Input / output control method and input / output control method
JPH06314110A (en) Coupling system for computer system part executing numerical control function and another computer system
US6988191B1 (en) Method for the synchronized start-up of a numerical control
JP3020776B2 (en) Process instrumentation system
WO1989008875A1 (en) Numerical controller
JP3389498B2 (en) Control device and program creation method thereof
CN101008843A (en) Setting mode of machine tool keyboard in full digitized ring bus NC system
JPH09222911A (en) NC machine tool failure diagnosis method and apparatus
JP3520364B2 (en) Data communication method between multiple systems
JP2520825B2 (en) Operating status display
JPH06314109A (en) Numerical control device
JPH08339220A (en) NC control device for machine tools
JP2001318710A (en) System controller and data transmission/reception method in production system