JP2003181900A - Controller and motion control unit - Google Patents

Controller and motion control unit

Info

Publication number
JP2003181900A
JP2003181900A JP2001388565A JP2001388565A JP2003181900A JP 2003181900 A JP2003181900 A JP 2003181900A JP 2001388565 A JP2001388565 A JP 2001388565A JP 2001388565 A JP2001388565 A JP 2001388565A JP 2003181900 A JP2003181900 A JP 2003181900A
Authority
JP
Japan
Prior art keywords
control
abnormality
motion
sequence
control means
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
JP2001388565A
Other languages
Japanese (ja)
Inventor
Mamoru Egi
守 恵木
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2001388565A priority Critical patent/JP2003181900A/en
Publication of JP2003181900A publication Critical patent/JP2003181900A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Injection Moulding Of Plastics Or The Like (AREA)
  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To rapidly perform abnormality dealing-with processing in a controller equipped with a sequence control part and a motion control part. <P>SOLUTION: The controller is equipped with the sequence control part 11 and the motion control part (motion program) 12 and the sequence control part preliminarily indicates an abnormal time control mode performed with respect to the motion control part at the time of generation of abnormality. The motion control part is equipped with a control part 12b performing a control mode at a normal time and an abnormal time control part 12h performing the indicated abnormal time control mode. When an abnormality detection part 12f detects abnormality on the basis of the state of control target machinery obtained through an input part 12a, a control system changeover part 12g performs the changeover to the abnormal time control part 12h. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、コントローラ並
びにモーション制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller and a motion control device.

【0002】[0002]

【発明の背景】従来のコントローラとして、プログラマ
ブルコントローラ(PLC)やソフトウェアPLCがあ
る。ソフトウェアPLCはラダープログラムなどのシー
ケンス処理をパソコン上のソフトで実行するもので、イ
ンタプリタ,コンパイラ双方とも存在する。そのような
ソフトウェアPLCにおいては、例えばサーボ制御(モ
ーション制御)などを行う場合には、専用のNCボード
(数値制御numerical controlをする
装置、ここではパソコン用の増設ボードで説明する。)
を用意し、それをソフトウェアPLCがインストールさ
れたパソコンに装着する。そして、ソフトウェアPLC
の稼働時には、そのNCボードにファームウェアとして
実装されているサーボループを適宜実行することによ
り、制御するようになっている。
BACKGROUND OF THE INVENTION Conventional controllers include programmable controllers (PLCs) and software PLCs. The software PLC executes sequence processing such as a ladder program by software on a personal computer, and exists in both an interpreter and a compiler. In such software PLC, for example, when performing servo control (motion control) or the like, a dedicated NC board (a device for performing numerical control numerical control, here, an extension board for a personal computer will be described).
And install it on a personal computer on which the software PLC is installed. And software PLC
When operating, the servo board implemented as firmware on the NC board is appropriately executed for control.

【0003】そして、モーション制御するためのCPU
は、通常NCボード上に実装されていて、PLC本体の
シーケンス処理を司るCPUとは別に構成されており、
それぞれのCPUが独立したスキャン処理を行い、必要
に応じて相互に通信を行い協調動作する。
A CPU for motion control
Is normally mounted on the NC board and is configured separately from the CPU that controls the sequence processing of the PLC main body.
The respective CPUs perform independent scan processing, communicate with each other as necessary, and cooperate with each other.

【0004】つまり、センサ信号などの外部トリガの取
り込みは、シーケンス処理を司るCPUが一旦取得し、
それをモーション制御用のCPUに伝達する。これによ
り、外部トリガに基づく所定の処理をモーション制御側
で実行する。また、実行結果は、NCボード上のCPU
からPLC本体のシーケンス処理をするCPUに伝達さ
れる。
That is, the acquisition of an external trigger such as a sensor signal is temporarily acquired by the CPU that controls the sequence processing,
It is transmitted to the CPU for motion control. Thereby, the predetermined process based on the external trigger is executed on the motion control side. Also, the execution result is the CPU on the NC board.
Is transmitted from the CPU to the CPU which performs the sequence processing of the PLC main body.

【0005】このように、シーケンス処理とモーション
制御(サーボループ)とは、別々に動作しているため、
外部トリガの取り込みはPLC機能でのサイクリック処
理としてのINリフレッシュで行うので、シーケンス処
理のスキャンタイムごとに更新している。そして更新さ
れた外部トリガ(INデータ)に基づいてモーション制
御が行われる。そのとき、シーケンス処理の外部トリガ
取込みタイミングがモーション制御のスキャンタイミン
グに対して遅れることもあり、遅れた場合は次の外部ト
リガ取込みタイミングでモーション制御することにな
り、「シーケンス処理用のスキャンタイム×2+モーシ
ョン制御のスキャンタイム分」の遅れが発生することが
あり、結局外部トリガの発生からモーション制御ユニッ
トで制御モードを切り替えるまでの時間を短くできな
い。
Thus, since the sequence processing and the motion control (servo loop) operate separately,
Since the external trigger is taken in by IN refresh as cyclic processing in the PLC function, it is updated every scan time of the sequence processing. Then, motion control is performed based on the updated external trigger (IN data). At that time, the external trigger acquisition timing of the sequence processing may be delayed from the scan timing of the motion control, and if it is delayed, the motion control will be performed at the next external trigger acquisition timing. 2 + motion control scan time ”may occur, and the time from the occurrence of an external trigger to the switching of the control mode in the motion control unit cannot be shortened.

【0006】そのため、例えば、異常発生時には、通常
のモーション制御を停止し、サーボロックやサーボオフ
などの異常対処処理を実行して、作業者や装置をより安
全な状態にする必要があるが、異常発生をセンサ出力に
基づきシーケンス処理側で検知し、モーションユニット
側へ伝達する方式では、上記のように時間がかかり指令
遅れの為にかえって装置を危険な状態にしてしまう。
For this reason, for example, when an abnormality occurs, it is necessary to stop normal motion control and execute abnormality countermeasure processing such as servo lock and servo off to put a worker or a device in a safer state. In the system in which the occurrence is detected on the sequence processing side based on the sensor output and is transmitted to the motion unit side, the device is in a dangerous state due to the time consuming and command delay as described above.

【0007】また、異常対処処理は、シーケンス処理の
進みにより変える必要がある。一例をあげると、例え
ば、射出成形機の金型を閉じる際に、圧力センサで異物
の挟み込みを検知した場合には、金型を制御する軸の異
常処理としては、異常な圧力を開放するためにサーボオ
フを使用するが、一旦金型を閉じ、樹脂注入工程で樹脂
注入圧力オーバーの異常を検知した場合には、金型を制
御する軸の異常処理としては、樹脂漏れを防止するため
にサーボロックにする必要がある。従って、係る判断を
シーケンス制御側で行って実行する異常対処処理を決定
後、その決定した内容をモーション制御を実行するた
め、迅速な処理ができない。
Further, the abnormality handling processing needs to be changed depending on the progress of the sequence processing. As an example, for example, when closing a mold of an injection molding machine, if a pressure sensor detects entrapment of foreign matter, abnormal processing of a shaft controlling the mold is to release an abnormal pressure. Servo-off is used for this, but once the mold is closed and an abnormality of resin injection pressure over is detected in the resin injection process, as the abnormal processing of the axis controlling the mold, the servo is used to prevent resin leakage. Need to lock. Therefore, after performing the determination on the sequence control side and determining the abnormality handling processing to be executed, the motion control is executed based on the determined content, so that rapid processing cannot be performed.

【0008】この発明は、シーケンス制御とモーション
制御(サーボ制御)を備えたコントローラにおける異常
対処処理を迅速に行うことができるコントローラ並びに
モーション制御装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a controller and a motion control device capable of rapidly performing abnormality handling processing in a controller having sequence control and motion control (servo control).

【0009】[0009]

【課題を解決するための手段】この発明によるコントロ
ーラは、シーケンス制御手段とモーション制御手段を備
えたコントローラであって、前記シーケンス制御手段
は、前記モーション制御手段に対して異常発生時に実行
する異常時制御モードを予め指定する機能を有し、前記
モーション制御手段は、正常時の制御モードを実行する
制御手段と、前記指定された異常時制御モードを実行す
る異常時制御手段と、前記シーケンス制御手段を介すこ
となく取得した異常情報に基づき前記異常時制御手段に
よる制御に切り替える切替手段とを備えるようにした。
A controller according to the present invention is a controller provided with a sequence control means and a motion control means, wherein the sequence control means executes an abnormal time when the abnormality occurs with respect to the motion control means. The motion control means has a function of designating a control mode in advance, the motion control means executes a normal control mode, an abnormal control means executes the designated abnormal control mode, and the sequence control means. Switching means for switching to the control by the abnormal time control means based on the abnormal information acquired without intervention.

【0010】また、前記シーケンス制御手段を介すこと
なく取得した情報に基づき異常を検知する異常検知手段
を備え、前記切替手段は、前記異常検知手段が異常を検
知した際に前記異常時制御手段による制御に切り替える
ようにすることもできる。
Further, the switching means is provided with an abnormality detecting means for detecting an abnormality on the basis of the information acquired without passing through the sequence controlling means, and the switching means has the abnormality controlling means when the abnormality detecting means detects the abnormality. It is also possible to switch to control by.

【0011】切替手段は、実施の形態では制御方式切替
部12g,32gに対応する。異常時制御モードとは、
サーボオフやサーボロックなどの制御の内容を特定する
ものである。
The switching means corresponds to the control method switching units 12g and 32g in the embodiment. What is the abnormal control mode?
It specifies the contents of control such as servo-off and servo-lock.

【0012】この発明によれば、異常発生時は、シーケ
ンス制御手段を介することなくモーション制御手段側で
その異常を検知することができ、しかも、異常を検知し
た場合には異常時制御手段に切り替えて予め設定された
異常時制御モードを実行する。よって、異常発生に伴う
異常制御モードへの切り替えが、シーケンス処理を介す
ることなくできるので、迅速に行える。しかも、予め異
常時制御モードを設定しておくことにより、現在の正常
時の制御モードに適した異常時制御を実行することがで
きる。
According to the present invention, when an abnormality occurs, the abnormality can be detected by the motion control means without passing through the sequence control means, and when the abnormality is detected, the abnormality control means is switched to. And executes a preset abnormal time control mode. Therefore, it is possible to switch to the abnormality control mode due to the occurrence of an abnormality without going through the sequence processing, so that it can be performed quickly. Moreover, by setting the abnormal time control mode in advance, it is possible to execute the abnormal time control suitable for the current normal control mode.

【0013】さらに、前記シーケンス制御手段と前記モ
ーション制御手段が独立したアプリケーションプログラ
ムにより構成され、前記シーケンス制御手段は、前記モ
ーション制御手段に対して直接または間接的に制御条件
とともに制御命令を与える指示手段と、前記モーション
制御手段の保持する情報を取得し、前記与えた制御命令
に基づく制御の完了の有無を判定する判定手段を備えて
構成することもできる。
Further, the sequence control means and the motion control means are constituted by independent application programs, and the sequence control means directly or indirectly gives a control command together with a control condition to the motion control means. Also, it may be configured by including a determination unit that acquires information held by the motion control unit and determines whether or not the control based on the given control command is completed.

【0014】ここで、指示手段は、実施の形態では、
「軸制御委譲部11a」に対応し、判定手段は実施の形
態では「軸制御完了判定部11b」に対応する。また、
シーケンス制御手段は、「シーケンス用プログラム1
1」により実現され、サーボ制御手段は、「モーション
用プログラム12」により実現されている。
Here, the instructing means is, in the embodiment,
The determination means corresponds to the "axis control transfer unit 11a", and the determination unit corresponds to the "axis control completion determination unit 11b" in the embodiment. Also,
The sequence control means uses the “sequence program 1
1 "and the servo control means is realized by the" motion program 12 ".

【0015】このようにすると、モーション制御(サー
ボ制御)とシーケンス制御をそれぞれ別のプログラムで
構成し、サーボ制御手段は、モーション制御(サーボ制
御)に専念し、終了判定などはシーケンス制御手段側
(判定手段等)で行うようになる。終了判定とは、次の
シーケンスへの移行条件の完了判定のことで、例えば位
置決め完了とか目標圧力に達したかの判定である。この
ように判定をシーケンス制御手段側で行うようにしたた
め、複雑な判定処理も確実に行うことができる。なお、
判定を行うに必要な現在位置などの制御量や状態変数等
は、サーボ制御手段側から取得する。そして、いずれの
手段もアプリケーションプログラムで構築したため、よ
り高精度な制御が行える。
In this way, the motion control (servo control) and the sequence control are respectively configured by different programs, the servo control means is dedicated to the motion control (servo control), and the end determination etc. is performed by the sequence control means side ( Judgment means, etc.). The termination determination is completion determination of the transition condition to the next sequence, and is, for example, determination of positioning completion or whether the target pressure is reached. Since the determination is made on the side of the sequence control means in this way, complicated determination processing can be surely performed. In addition,
The control amount such as the current position and the state variables necessary for making the determination are acquired from the servo control means side. Since all the means are constructed by application programs, more precise control can be performed.

【0016】一方、本発明に係るモーション制御装置
は、コントローラ用のモーション制御装置であって、制
御対象に対し正常なモーション制御を行う制御手段と、
異常時に制御を行う異常時制御手段と、前記コントロー
ラのシーケンス制御手段を介すことなく取得した異常情
報に基づき前記異常時制御手段による制御に切り替える
切替手段とを備えて構成することである。
On the other hand, the motion control device according to the present invention is a motion control device for a controller, and a control means for performing normal motion control on a controlled object,
It is configured to include an abnormality control means for performing control at the time of abnormality, and a switching means for switching to the control by the abnormality control means based on the abnormality information acquired without passing through the sequence control means of the controller.

【0017】また、制御対象に対し正常なモーション制
御を行う制御手段と、異常時に制御を行う異常時制御手
段と、制御対象の状態を直接取得する入力手段と、その
入力手段から取得した前記制御対象の状態に基づき、異
常の有無を判定する異常判定手段と、その異常判定手段
が異常を判定した際に前記異常時制御手段による制御に
切り替える切替手段とを備えて構成することもできる。
Further, control means for performing normal motion control on the controlled object, abnormal time control means for performing control at the time of abnormality, input means for directly acquiring the state of the controlled object, and the control acquired from the input means. It is also possible to include an abnormality determination unit that determines whether or not there is an abnormality based on the state of the target, and a switching unit that switches to control by the abnormality control unit when the abnormality determination unit determines an abnormality.

【0018】そして、上記各発明において、前記異常時
制御手段で実行される異常時制御モードは、前記コント
ローラのシーケンス処理手段から指定されるものとする
ことができる。
In each of the above inventions, the abnormal time control mode executed by the abnormal time control means may be designated by the sequence processing means of the controller.

【0019】ここで、制御対象の状態を直接取得すると
は、シーケンス制御を介することなく取得することを意
味する。モーション制御装置は、図1以降に示すIEC
61131−3で記述されたプログラムからなるソフト
ウェアサーボのように、パソコンにインストールされた
プログラムで実現しても良いし、図15以降に示すNC
ボードなどで実現しても良い。
Here, to directly obtain the state of the controlled object means to obtain without the sequence control. The motion control device is based on the IEC shown in FIG.
It may be realized by a program installed in a personal computer like a software servo consisting of the program described in 61131-3, or NC shown in FIG.
You may implement it on a board.

【0020】[0020]

【発明の実施の形態】図1は、本発明の好適な一実施の
形態を示している。本実施の形態では、装置性能並びに
コストに直接影響するモーション制御(サーボ制御)
を、IEC61131−3で記述されたプログラムから
なるソフトウェアサーボで実現するようにした。すなわ
ち、図1に示すように、リアルタイムOS(RTOS)
1で動作するFAコンピュータ2に組み込まれるソフト
ウェアPLCエンジン(IEC6113−3ランタイ
ム)3上に、ユーザプログラム5が実装される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 shows a preferred embodiment of the present invention. In the present embodiment, motion control (servo control) that directly affects device performance and cost
Is realized by a software servo composed of a program described in IEC61131-3. That is, as shown in FIG. 1, a real-time OS (RTOS)
The user program 5 is installed on the software PLC engine (IEC6113-3 runtime) 3 incorporated in the FA computer 2 that operates on 1.

【0021】このユーザプログラム(ソフトウェアサー
ボプラットフォーム)5は、IEC61131−3で実
装されたファンクションブロック(FB)及びテンプレ
ートとなるプログラムを備えて構成される。
The user program (software servo platform) 5 comprises a function block (FB) implemented by IEC61131-3 and a program serving as a template.

【0022】なお、FAコンピュータ2には、I/Oボ
ード6a,マルチファンクションボード6b,画像ボー
ド6cなどの外部インタフェース等を備え、本発明との
関係では、I/Oボード6aにセンサ7′が接続され、
マルチファンクションボード6bに制御対象機器7が接
続されている。このマルチファンクションボード6b
は、ADボード,DAボード,パルスカウンタ,DIO
ボード等により構成される(図2参照)。このように、
入出力機能を集約したマルチファンクションボード6b
を使用することにより、1枚のボードで各種の制御対象
機器7と結合することが可能になる。
The FA computer 2 is provided with external interfaces such as an I / O board 6a, a multi-function board 6b, an image board 6c, etc., and in relation to the present invention, a sensor 7'is provided on the I / O board 6a. Connected,
The controlled device 7 is connected to the multifunction board 6b. This multifunction board 6b
Is an AD board, DA board, pulse counter, DIO
It is composed of a board (see Fig. 2). in this way,
Multi-function board 6b with integrated input / output functions
By using, it becomes possible to connect with various controlled devices 7 with one board.

【0023】図2に示すように、ユーザプログラム5と
して、シーケンス用プログラム(シーケンス制御部)1
1と、サーボループ制御をするためのモーション用プロ
グラム12をそれぞれ別々のプログラムとして作成し、
格納するようにした。さらに、IEC61131−3で
は、プログラムやファンクションブロックの組を実行す
るタスクを作成することができるとともにマルチタスク
実行も可能であり、しかも、各タスクには実行間隔並び
に優先順位を指定することができる。従って、シーケン
ス用プログラム11は、優先度も低く実行間隔も長い
(例えば10msec間隔)低速タスクに設定し、ま
た、モーション用プログラム12は、優先度も高く実行
間隔も短い(例えば1msec間隔)高速タスクに設定
した。
As shown in FIG. 2, as the user program 5, a sequence program (sequence control unit) 1
1 and the motion program 12 for controlling the servo loop are created as separate programs,
I tried to store it. Furthermore, in IEC61131-3, a task that executes a set of programs and function blocks can be created and multitask execution is possible, and an execution interval and priority can be specified for each task. Therefore, the sequence program 11 is set as a low-speed task having a low priority and a long execution interval (for example, 10 msec interval), and the motion program 12 is set as a high-speed task having a high priority and a short execution interval (for example, 1 msec interval). Set to.

【0024】そして、それらシーケンス用プログラム1
1並びにモーション用プログラム12は、軸情報記憶部
(論理化デバイス)13にアクセスし、所定アドレスに
対してデータの読み書きを行うことにより、互いに連係
して動作するようにしている。
Then, the sequence program 1
1 and the motion program 12 access the axis information storage unit (logicalized device) 13 and read / write data from / to a predetermined address so as to operate in cooperation with each other.

【0025】このように、シーケンス用プログラム11
とモーション用プログラム12を分離し、モーション用
プログラム12では、モーション制御だけに専念し、位
置決め完了判定などのシーケンス的な要素はシーケンス
用プログラム11側に記述するようにした。さらに、終
了判定のための現在位置などの情報は、シーケンス制御
(シーケンス用プログラム11)側が直接モーション制
御(モーション用プログラム12)側から取得するよう
にした。
In this way, the sequence program 11
The motion program 12 is separated from the motion program 12, and the motion program 12 is devoted only to motion control, and sequence-like elements such as positioning completion determination are described on the sequence program 11 side. Further, the sequence control (sequence program 11) side directly acquires the information such as the current position for the end determination from the motion control (motion program 12) side.

【0026】すなわち、終了判定のために必要になる現
在位置などの制御値や状態変数をグローバル変数として
定義し、上記した軸情報記憶部13に格納する。この軸
情報記憶部13に対しては、シーケンス用プログラム1
1とモーション用プログラム12の双方から高速に参照
できるため、モーション用プログラム12が取得した制
御対象機器7の状態等を軸情報記憶部13に格納し、シ
ーケンス用プログラム11は軸情報記憶部13にアクセ
スして係る状態等を参照することにより、終了判定を高
速に行うことができる。
That is, the control values such as the current position and the state variables required for the end determination are defined as global variables and stored in the axis information storage unit 13 described above. For the axis information storage unit 13, the sequence program 1
1 can be referred to at high speed from both the motion program 12 and the motion program 12, the state of the control target device 7 acquired by the motion program 12 is stored in the axis information storage unit 13, and the sequence program 11 is stored in the axis information storage unit 13. The end determination can be performed at high speed by referring to the related state by accessing.

【0027】このように、終了判定をソフトウェア(シ
ーケンス用プログラム11)で実装したため、複雑な終
了判定基準であっても適切に終了判定をすることができ
る。しかも、係る終了判定基準をユーザ側で任意に設定
することができるので使い勝手が良くなる。
As described above, since the end determination is implemented by software (the sequence program 11), the end determination can be appropriately performed even with a complicated end determination criterion. Moreover, since the end determination reference can be arbitrarily set by the user, the usability is improved.

【0028】さらに、サーボループをソフトウェア(モ
ーション用プログラム12)で実装したため、ユーザが
独自の補償器を実装することが可能になる。また、IE
C61131−3を採用したため、オンラインエディッ
トが可能な実装となり、プログラムを修正するたびに最
初から制御対象機器の運転を開始する必要がなくなり、
サーボアルゴリズムの現場調整期間を短縮できる。更
に、シーケンス制御とモーション制御の言語やツール
が、IEC61131−3に統一されるため、同一の人
がシーケンスとモーションの双方を実装することが可能
になり、開発効率が高まる。そして、IEC61131
−3は、インタプリタ系の言語であるので、コンパイル
時間を削減或いは短縮できる。
Further, since the servo loop is implemented by software (motion program 12), the user can implement a unique compensator. In addition, IE
Since C61131-3 is adopted, it is possible to implement online editing, and it is not necessary to start the operation of the controlled device from the beginning each time the program is modified.
The field adjustment period of the servo algorithm can be shortened. Furthermore, since the languages and tools for sequence control and motion control are unified to IEC61131-3, the same person can implement both sequences and motions, which improves development efficiency. And IEC61131
Since -3 is an interpreter language, the compile time can be reduced or shortened.

【0029】ところで、サーボ演算(数値演算)の実装
は、グラフィカル言語では記述性が悪く、かえってプロ
グラムの理解を妨げてしまう。そこで、サーボ演算はテ
キスト言語のStructured Text(ST)
で記述し、Function(FN)またはFunct
ion Block(FB)として再利用可能なプログ
ラム部品にしておく。そして制御系の枠組みは前記FN
やFBを用いてFunction Block Dia
gram(FBD)で記述するようにした。FBDを利
用することにより、ブロック線図からストレートにマッ
ピングできるので、プログラムの構造理解が飛躍的に向
上する。
By the way, the implementation of the servo operation (numerical operation) is poor in descriptiveness in a graphical language and rather hinders the understanding of the program. Therefore, the servo operation is structured text (ST) in the text language.
Described in, Function (FN) or Function
It is a program component that can be reused as an ion block (FB). And the framework of the control system is the FN
Block Block Dia using FB
It was made to describe by gram (FBD). By using the FBD, it is possible to perform straight mapping from the block diagram, which dramatically improves the understanding of the structure of the program.

【0030】次に、上記した構成(各プログラム11,
12,軸情報記憶部13)のより具体的な構成を説明す
る。良く知られているように、NCボードは、機種によ
って制御できる軸数が2軸,4軸,8軸と言うように様
々となっている。そして、通常は、各ボードに対して直
接指令を出すプログラムを組んでいる。しかし、係る構
成をとると、ボードを変更した時にソフトウェアの再利
用が困難になる。そこで、本実施の形態では、各プログ
ラム11,12は、各制御対象機器7を軸番号で規定
し、各軸番号が実際にどのボードのどこに接続されてい
るかなどの物理的な接続関係は、軸情報記憶部13で吸
収するようにしている。
Next, the above-mentioned structure (each program 11,
12, a more specific configuration of the axis information storage unit 13) will be described. As is well known, the number of axes that can be controlled by the NC board is various, such as 2 axes, 4 axes, and 8 axes. Then, normally, a program for directly issuing a command to each board is constructed. However, such a configuration makes it difficult to reuse the software when the board is changed. Therefore, in the present embodiment, each of the programs 11 and 12 defines each control target device 7 by an axis number, and the physical connection relation such as where on which board each axis number is actually connected is The axis information storage unit 13 is designed to absorb it.

【0031】つまり、軸番号と物理的なアドレスとの対
応情報をテーブルとして軸情報記憶部13に格納してお
く。そして、ソフトウェアPLCエンジン3は、デバイ
スドライバ(ボードドライバ)8を介して軸番号に対応
する制御対象機器7と通信を行い、入出力処理を行う。
つまり、制御対象機器7から入力情報を取得すると、対
応する軸情報記憶部13の軸番号の所定の値にデータを
書き込む処理を行ったり、軸情報記憶部13に格納され
た情報に従って、制御命令を出力するなどの通常のIN
/OUTリフレッシュ処理を行うようになる。このよう
に、物理的な接続関係を気にしなくて済むので、制御軸
の論理化が容易に行え、ボードの変更に対してソフトウ
ェアの受ける影響を抑制できる。
That is, the correspondence information between the axis number and the physical address is stored in the axis information storage unit 13 as a table. Then, the software PLC engine 3 communicates with the control target device 7 corresponding to the axis number via the device driver (board driver) 8 to perform input / output processing.
That is, when the input information is acquired from the control target device 7, a process of writing data to a predetermined value of the axis number of the corresponding axis information storage unit 13 is performed, or a control command is issued according to the information stored in the axis information storage unit 13. Normal IN such as outputting
/ OUT refresh processing is performed. In this way, since it is not necessary to care about the physical connection relationship, the control axes can be easily logicalized and the influence of the software on the board change can be suppressed.

【0032】軸情報記憶部13の具体的なデータ構造の
一例としては、図3に示すように、軸番号と、項目並び
にその項目の値を関連付けたテーブル構造となってい
る。そして、値の欄に対して読み書きが行われる。
As an example of a concrete data structure of the axis information storage unit 13, as shown in FIG. 3, it has a table structure in which an axis number is associated with an item and a value of the item. Then, reading and writing are performed on the value column.

【0033】図4,図5に示すように、シーケンス用プ
ログラム11(シーケンス制御部)は、モーション用プ
ログラム12に対して処理を委譲する軸制御委譲部11
aと、軸制御の完了を判定する軸制御完了判定部11b
と、軸制御委譲部11aに制御方式を指示する正常時制
御方式指示部11c並びに異常時制御方式指示部11d
を有している。いずれも、ファンクションブロック(F
B)で形成している。軸制御委譲部11aは、図6に示
すような構成をとり、シーケンスプログラムから、係る
ファンクションブロックが読み出され、起動する軸の論
理名(軸名称),制御系の種類やモータドライバの動作
状態を指定する制御方式,目標軌道の生成パターン,サ
ーボループ内で異常が発生した場合に遷移すべき制御モ
ード(異常時制御方式)及びサーボ演算に必要な目標値
などのパラメータが与えられる。軸制御委譲部11a
は、入力されたパラメータを、軸情報記憶部13の所定
領域(対応する軸番号&項目の値の欄)に格納する。
As shown in FIGS. 4 and 5, the sequence program 11 (sequence control unit) transfers the processing to the motion program 12 by the axis control transfer unit 11.
a and the axis control completion determination unit 11b that determines the completion of the axis control
And a normal control method instructing section 11c and an abnormal control method instructing section 11d for instructing the axis control transfer section 11a on the control method.
have. Both are function blocks (F
It is formed in B). The axis control transfer unit 11a has a configuration as shown in FIG. 6, and the function block is read from the sequence program, and the logical name (axis name) of the axis to be activated, the type of control system, and the operating state of the motor driver. Parameters such as a control method for specifying the target trajectory generation pattern, a control mode to be changed when an abnormality occurs in the servo loop (control method at abnormal time), and a target value required for servo calculation are given. Axis control transfer unit 11a
Stores the input parameters in a predetermined area (corresponding axis number & item value column) of the axis information storage unit 13.

【0034】一方、軸制御完了判定部11bは、軸制御
記憶部13の所定の項目の値を監視し、設定された条件
になったか否かを判断し、条件を具備した場合に、完了
通知をシーケンスプログラムに渡す。これにより、シー
ケンスプログラムは、必要に応じて次の制御に移行する
(軸制御委譲部11aの起動等)。
On the other hand, the axis control completion determining unit 11b monitors the values of predetermined items in the axis control storage unit 13 to determine whether or not the set conditions are met. When the conditions are met, the completion notification is given. To the sequence program. As a result, the sequence program shifts to the next control as necessary (startup of the axis control transfer unit 11a, etc.).

【0035】正常時制御方式指示部11cは、通常の動
作を行う際の制御方式(パターン)に関する情報を設定
する。また、異常時制御方式指示部11dは、異常時の
制御動作(サーボロック,サーボオフなど)を設定す
る。各設定は、軸制御委譲部11aを介して軸情報記憶
部13に格納される。
The normal-time control method instructing section 11c sets information on a control method (pattern) for performing a normal operation. Further, the abnormal-time control system instruction unit 11d sets the control operation (servo lock, servo-off, etc.) at the time of an abnormal condition. Each setting is stored in the axis information storage unit 13 via the axis control transfer unit 11a.

【0036】モーション用プログラム12は、センサ情
報などを取得し、軸情報記憶部13に格納する入力部1
2aと、軸情報記憶部13に格納された情報に従ってサ
ーボループの制御を実行する制御部12bと、外部の制
御対象機器7に向けて指令値を出力する出力部12cと
を備えている。
The motion program 12 acquires the sensor information and the like and stores it in the axis information storage unit 13 as an input unit 1.
2a, a control unit 12b that executes control of the servo loop according to the information stored in the axis information storage unit 13, and an output unit 12c that outputs a command value to the external controlled device 7.

【0037】さらに、本実施の形態では、例えば、「速
度制御」→「圧力制御」→「速度制御」のように正常時
のシステムの動作が複数種の制御方式を適宜切り替える
ようにしているため、各制御毎に制御部12bが形成さ
れている。そして、それら複数の制御部12bのうち実
際の制御に使用する制御部12bの選択は、軸制御委譲
部11aが軸情報記憶部13に書き込んだ「制御方式」
により決定される。
Further, in the present embodiment, the system operation in the normal state is appropriately switched among a plurality of types of control methods, for example, “speed control” → “pressure control” → “speed control”. A control unit 12b is formed for each control. The control unit 12b used for actual control is selected from the plurality of control units 12b by the "control method" written in the axis information storage unit 13 by the axis control transfer unit 11a.
Determined by

【0038】つまり、各制御部12bの出力は、切り替
えスイッチ12eに接続されており、この切り替えスイ
ッチ12eを介して軸情報記憶部13に与えるようにし
ている。そして、この切り替えスイッチ12eは、制御
方式切替部12gの制御信号に基づいて切り替え制御さ
れる。具体的には、この制御方式切替部12gには、軸
情報記憶部13に格納された現在の制御方式の種類が与
えられるので、それに対応する1つの制御部12bを択
一的に選択するように制御命令を発する。
That is, the output of each control unit 12b is connected to the changeover switch 12e, and is supplied to the axis information storage unit 13 via this changeover switch 12e. Then, the changeover switch 12e is switching-controlled based on the control signal of the control method switching unit 12g. Specifically, since the type of the current control method stored in the axis information storage unit 13 is given to the control method switching unit 12g, one control unit 12b corresponding to it is selectively selected. Issue a control command to.

【0039】さらに本発明では、異常時のモーション制
御のための異常時制御部12hを複数種を備えている。
図示の例では、サーボオフ用途サーボロック用の2種類
を用意しているが、これに限るものではない。さらに、
入力部12aからの情報を受けて異常の有無を判断する
異常検知部12fを設け、その異常検知部12fから出
力される異常検知信号を制御方式切替部12gに与える
ようにしている。
Further, according to the present invention, plural kinds of abnormal time control units 12h for motion control at the time of abnormal condition are provided.
In the illustrated example, two types are prepared for the servo-off purpose servo lock, but the present invention is not limited to this. further,
An abnormality detection unit 12f that receives information from the input unit 12a and determines whether or not there is an abnormality is provided, and an abnormality detection signal output from the abnormality detection unit 12f is provided to the control method switching unit 12g.

【0040】そして、制御方式切替部12gは、この異
常検知信号を受け取ると、所望の異常時制御部12hを
選択するための制御信号を切り替えスイッチ12eに与
える。これにより、正常動作時は、軸情報記憶部13に
設定された現在の制御方式に従い、対応する制御部12
bを選択し、制御を実行し、異常発生時には、異常検知
部12fがそれを検知し、制御方式切替部12gを介し
て切り替えスイッチ12eを切り替え、所望の異常時制
御部12hによる制御に切り替える。そして、係る異常
の検知並びにそれに伴う制御方式の切り替えは、モーシ
ョン用プログラム12側で実行されるので、迅速に対応
することができる。
Upon receipt of this abnormality detection signal, the control method switching unit 12g gives the changeover switch 12e a control signal for selecting the desired abnormal time control unit 12h. As a result, during normal operation, according to the current control method set in the axis information storage unit 13, the corresponding control unit 12
b is selected, control is executed, and when an abnormality occurs, the abnormality detection unit 12f detects it and switches the changeover switch 12e via the control method switching unit 12g to switch to the desired control by the abnormal time control unit 12h. Since the detection of such an abnormality and the switching of the control method associated therewith are executed by the motion program 12 side, it is possible to quickly respond.

【0041】次に、モーション用プログラム12のう
ち、正常動作を行う処理部についてさらに詳述すると、
制御部12bは、図4,図5に示すように、速度制御
用,圧力制御用など複数種用意されている。そして、こ
の制御部12bにて、従来NCボード側で処理していた
軸間の補間処理などをソフトウェアで実行するようにし
ている。さらに、サーボループをソフトウェアで実装す
るに際し、補償器21,目標軌道生成器22,フィルタ
23などのシーケンス要素を分離し階層化している。こ
れにより、ソフトウェアの資産化が可能になる。つま
り、サーボループをソフトウェアで実装し、NCボード
が用意している軸間の補間機能を使用しない構成として
いる。
Next, the processing section of the motion program 12 that performs a normal operation will be described in more detail.
As shown in FIGS. 4 and 5, a plurality of types of control units 12b are prepared for speed control, pressure control, and the like. Then, in the control unit 12b, software such as interpolation processing between axes which is conventionally processed on the NC board side is executed. Further, when the servo loop is implemented by software, the sequence elements such as the compensator 21, the target trajectory generator 22 and the filter 23 are separated and hierarchized. This allows software to be capitalized. That is, the servo loop is implemented by software, and the inter-axis interpolation function prepared by the NC board is not used.

【0042】図5には、速度制御用の制御部12bの内
部構造の一例を示しているが、圧力制御用の制御部12
bの内部構造の一例を示すと、図7のようになる。圧力
制御用の制御部12bでは、補償器21としてはPID
補償器としているが、他の構造のものでももちろん良
い。
FIG. 5 shows an example of the internal structure of the control unit 12b for speed control, but the control unit 12 for pressure control is shown.
An example of the internal structure of b is shown in FIG. In the control unit 12b for pressure control, the PID is used as the compensator 21.
Although it is used as a compensator, other structures may be used.

【0043】目標軌道生成器22は、軸情報記憶部13
で規定されるパターン(例えばS字カーブなど)と、経
過時間を受け取り、経過時間に従ってパターン上の現在
位置を求めることにより軌道を生成する。具体的には、
例えば図8に示すような構成をとることができる。この
図示した例は、5次関数で目標軌道生成をするファンク
ション(FN)の例で、STで記述している。
The target trajectory generator 22 includes an axis information storage unit 13
The pattern (for example, S-shaped curve) and the elapsed time are received, and the trajectory is generated by obtaining the current position on the pattern according to the elapsed time. In particular,
For example, a configuration as shown in FIG. 8 can be adopted. The illustrated example is an example of a function (FN) for generating a target trajectory by a quintic function, which is described by ST.

【0044】また、制御対象機器の制御対象の測定値で
ある制御量がフィルタ23に与えられる。この制御量
は、速度制御の場合は速度であり、圧力制御の場合は圧
力測定値となる。具体的な値は、入力部12aを介して
取得した測定値が軸情報記憶部13に格納されているの
で、係る値を読み出してフィルタ23に与えることにな
る。なお、本実施の形態では、入力部12aからはエン
コーダ情報が与えられるので、速度変換部12dを設
け、軸情報記憶部13に格納されたエンコーダ情報は速
度変換部12dに与えられ、そこにおいて単位時間あた
りのエンコーダ情報の増加量から速度を算出し、求めた
速度値を制御量としてフィルタ(デジタルフィルタ)2
3に与えるようにしている。もちろん、直接速度情報が
取得できる場合には、圧力の場合と同様に係る速度(測
定値)をフィルタ23に与えるようにしても良い。
The control amount, which is the measured value of the control target of the control target device, is given to the filter 23. This controlled variable is a speed in the case of speed control, and a pressure measurement value in the case of pressure control. As a specific value, since the measurement value acquired via the input unit 12a is stored in the axis information storage unit 13, the value is read and given to the filter 23. In this embodiment, since encoder information is given from the input unit 12a, the speed conversion unit 12d is provided, and the encoder information stored in the axis information storage unit 13 is given to the speed conversion unit 12d, where the unit is set. The speed is calculated from the increase amount of encoder information per time, and the obtained speed value is used as a control amount to filter (digital filter) 2
I am trying to give it to 3. Of course, when the velocity information can be directly obtained, the velocity (measured value) may be given to the filter 23 as in the case of pressure.

【0045】また、補償器21は、軸情報記憶部13に
格納さたれパラメータと、目標軌道生成器22の出力並
びにフィルタ23の出力が与えられる。そこで、現在の
制御量と目標軌道生成器22から与えられる軌道(目標
値)を比較し、目標に達するための操作量(指令値)を
算出し、軸情報記憶部13の所定領域に格納する。
Further, the compensator 21 is supplied with the parameters stored in the axis information storage unit 13, the output of the target trajectory generator 22 and the output of the filter 23. Therefore, the current control amount and the trajectory (target value) given from the target trajectory generator 22 are compared, the operation amount (command value) for reaching the target is calculated, and stored in a predetermined area of the axis information storage unit 13. .

【0046】なお、図7に示す圧力制御を行う制御部1
2bにおける補償器21はPID制御を行うようになっ
ているため、補償器21に与えられるパラメータは、比
例定数,積分定数,微分定数となる。そして、この補償
器21の具体的な構成は、例えば図9に示すようにな
る。
The control unit 1 for controlling the pressure shown in FIG.
Since the compensator 21 in 2b performs PID control, the parameters given to the compensator 21 are a proportional constant, an integral constant, and a differential constant. The specific configuration of the compensator 21 is as shown in FIG. 9, for example.

【0047】上記のようにして、補償器21は、求めた
指令値を軸情報記憶部13に書き込むので、出力部12
cは、例えば、係る指令値が格納される軸情報記憶部1
3を所定間隔毎にアクセスし、そこに格納されている指
令値を制御対象機器7に与え、これにより、モーション
制御を実行する。
As described above, since the compensator 21 writes the obtained command value in the axis information storage unit 13, the output unit 12
c is, for example, the axis information storage unit 1 in which the command value is stored.
3 is accessed at predetermined intervals, and the command value stored therein is given to the control target device 7, whereby the motion control is executed.

【0048】さらに、図7に示すように、圧力制御をす
る制御部12bでは、EQ26を設けている。このEQ
26には、シーケンス制御部11(軸制御委譲部11
a)が軸情報記憶部13に書き込んだ現在実行すべき制
御方式が与えられるとともに、予め整数定数(図示の例
では、iPressure)が与えられる。図4にも示
すように、本実施の形態では制御部12bは複数並列的
に配置されており、制御方式は各制御部のEQ26にそ
れぞれ入力される。
Further, as shown in FIG. 7, an EQ 26 is provided in the control section 12b for controlling pressure. This EQ
26 includes a sequence control unit 11 (axis control transfer unit 11
The control method to be executed at present which is written in a) in the axis information storage unit 13 is given, and an integer constant (iPressure in the illustrated example) is given in advance. As shown in FIG. 4, in the present embodiment, a plurality of control units 12b are arranged in parallel, and the control method is input to the EQ 26 of each control unit.

【0049】そして、各EQ26は、与えられた制御方
式が自分に対する指令かどうかをチェックし、自分に対
する指令であれば目標起動生成器22を活性化させ、目
標起動生成の計算を実行させる。つまり、EQ26に与
えられる整数定数と一致する入力があった場合に、自分
に対する指令と判断し、EQ26は真となって目標機起
動生成器22が活性化される。一例を示すと、制御方式
が「iPressure」の場合には、圧力制御をする
制御部12bのEQ26が真となる。なお、図4では省
略しているが、速度制御用の制御部12bにもEQ26
は存在し、例えば、整数定数としては「iVeloci
ty」が与えられる。すると、制御方式として、「iV
elocity」が入力されると、真となる。
Then, each EQ 26 checks whether or not the given control method is a command for itself, and if it is a command for itself, activates the target activation generator 22 and executes calculation of target activation generation. That is, if there is an input that matches the integer constant given to the EQ 26, it is determined to be a command for itself, the EQ 26 becomes true, and the target machine activation generator 22 is activated. As an example, when the control method is “iPressure”, the EQ 26 of the control unit 12b that performs pressure control becomes true. Although not shown in FIG. 4, the EQ 26 is also provided in the control unit 12b for speed control.
Exists, for example, as an integer constant, "iVeloci
ty ”is given. Then, as the control method, "iV
When “elocity” is input, it becomes true.

【0050】もちろん、与えられた制御方式が自己宛て
でない場合には、目標起動生成器22は活性化されな
い。よって、制御方式により特定される1つの制御部1
2bが動作し、複数の制御方式や異常処理が同時に起動
されないようにインターロックがかけられる。
Of course, the target activation generator 22 is not activated if the given control scheme is not self-addressed. Therefore, one control unit 1 specified by the control method
2b operates and is interlocked so that a plurality of control methods and abnormal processing are not activated at the same time.

【0051】このように、サーボ演算(モーション制
御)をソフトウェアで実装し、目標軌道生成器22もユ
ーザ自身で記述することができるので、例えば、目標軌
道生成器22に関数を記述することにより、滑らかな目
標軌道を制御周期毎に生成することができる。
As described above, since the servo calculation (motion control) is implemented by software and the target trajectory generator 22 can be described by the user himself, for example, by describing a function in the target trajectory generator 22, It is possible to generate a smooth target trajectory for each control cycle.

【0052】なお、上記したように、入力部12aが取
得した制御量情報は、軸情報記憶部13に格納されるた
め、軸制御完了判定部11bは、係る制御量情報と、目
標値などから目標に達したか否かを判断し、完了した場
合には、シーケンス制御部11に通知する。これを受け
て、シーケンス制御部11は、今回の制御を終了した
り、制御方式を切り替えたりする。制御方式の切り替え
は、軸制御委譲部11aが軸情報記憶部13の制御方式
の欄に登録することにより行われる。
Since the control amount information acquired by the input unit 12a is stored in the axis information storage unit 13 as described above, the axis control completion determining unit 11b uses the control amount information and the target value and the like. It is determined whether or not the target has been reached, and if completed, the sequence control unit 11 is notified. In response to this, the sequence control unit 11 terminates the current control or switches the control method. The switching of the control method is performed by the axis control transfer unit 11a registering in the control method column of the axis information storage unit 13.

【0053】上記した実施の形態を用いて、例えば、樹
脂の成型装置における制御を行う場合は、以下のように
なる。すなわち、良く知られているように、樹脂を型内
に注入するためのピストン(シリンダ)を前進移動させ
る場合に、図10に示すようにまず速度制御を行い一定
の位置まで移動させる。そして、所定位置まで移動する
と、前方へ付勢してもそれ以上は前進せず停止するもの
の、圧力は高くなる。従って、このときは圧力制御に移
行し、型内に充填された圧力(ピストンが受ける反力)
を徐々に上昇させ、目的の圧力に導くように制御する。
Using the above-described embodiment, for example, when performing control in a resin molding device, the following is performed. That is, as is well known, when the piston (cylinder) for injecting the resin into the mold is moved forward, speed control is first performed to move it to a certain position as shown in FIG. Then, when it moves to a predetermined position, even if it is urged forward, it stops without further advance, but the pressure increases. Therefore, at this time, the control shifts to pressure control, and the pressure filled in the mold (reaction force received by the piston)
Is gradually increased and controlled so as to lead to the target pressure.

【0054】そして、所望の圧力を一定時間かけること
により、所望の形状の樹脂製品が完成するので、ピスト
ンを逆方向に後退移動させ、型内の樹脂製品を取り出す
とともに、次の製造工程の準備を行う。この後退移動時
は、速度制御を行う。
Then, by applying a desired pressure for a certain period of time, a resin product having a desired shape is completed. Therefore, the piston is moved backward in the opposite direction to take out the resin product in the mold and prepare for the next manufacturing process. I do. During this backward movement, speed control is performed.

【0055】このように、樹脂成形における制御は、速
度制御→圧力制御→速度制御というように異なる種類の
制御が混在している。そして、最初の速度制御の完了
は、例えば、位置情報(エンコーダ情報)から、所定の
位置に達したことを条件としたり、係る位置とともに圧
力が所定の切替圧力に達したことを条件に判断すること
ができる。また、圧力制御の完了は、例えば、圧力が目
標圧力に達してから所定時間経過したこと等を条件に判
断することができる。係る完了の判断は、軸制御完了判
定部11bが行う。
As described above, the control in resin molding includes different types of control such as speed control → pressure control → speed control. Then, the completion of the first speed control is judged, for example, based on the position information (encoder information) on the condition that the predetermined position has been reached, or on the condition that the pressure has reached the predetermined switching pressure together with the position. be able to. Further, the completion of the pressure control can be judged, for example, on the condition that a predetermined time has elapsed after the pressure reached the target pressure. The axis control completion determination unit 11b makes such determination of completion.

【0056】制御系の切替圧力以上になり速度制御から
圧力制御に切り替えた際に、いきなり目標圧力へステッ
プ応答させると、オーバーシュートなどを生じてしまう
が、本実施の形態では、目標軌道生成器22をソフトウ
ェアで生成するようにしたため、例えば現在の圧力から
目標圧力まで2次関数で滑らかな圧力目標軌道を生成す
ることができる(図10参照)。このように、目標軌道
が滑らかなので、圧力波形のリンギングが発生せずにバ
リやボイドの発生を抑制できる。
When the pressure exceeds the control system switching pressure and the speed control is switched to the pressure control, and a step response is suddenly made to the target pressure, an overshoot or the like occurs, but in the present embodiment, the target trajectory generator is used. Since 22 is generated by software, it is possible to generate a smooth pressure target trajectory with a quadratic function from the current pressure to the target pressure (see FIG. 10). In this way, since the target trajectory is smooth, it is possible to suppress the occurrence of burrs and voids without causing ringing of the pressure waveform.

【0057】さらに、ステップ応答させるとオーバーシ
ュートや圧力が収束するまでの収束時間がばらつくた
め、製品の品質もばらついてしまうが、本実施の形態の
ように、制御量を滑らかな目標軌道に追従させることで
圧力波形の再現性が高まり、バリやボイドが発生せず品
質が安定する。また、本実施の形態では、シーケンス制
御とモーション制御(サーボ制御)を独立して動作する
プログラムで構築したため、制御が高精度に行えるよう
になる。
Furthermore, if step response is made, the convergence time until convergence of the overshoot and pressure will vary, so the quality of the product will also vary, but as in the present embodiment, the control amount follows a smooth target trajectory. By doing so, the reproducibility of the pressure waveform is enhanced, and burrs and voids do not occur, and the quality is stable. Further, in the present embodiment, since the sequence control and the motion control (servo control) are constructed by a program that operates independently, the control can be performed with high accuracy.

【0058】次に、本発明の要部となる異常発生時に稼
働する処理部の機能を具体的な動作に従って説明する。
まず、上記した射出成型における従来方式における動作
を説明すると、従来は、センサ入力などに基づきシーケ
ンス処理のコントローラ側で異常を検出し、それに伴い
異常時の動作指令をその都度モーション制御ユニットに
出力していた。そのため、例えば図11に示すように、
射出成型の金型を閉じる際の時間t1の時に異物を挟み
込んだとすると、加圧棒(ピストン)はそれ以上前進で
きないので位置は変化しないが、さらに前進させようと
する力が加わり、圧力が急上昇するというような異常が
発生したとする。
Next, the function of the processing unit, which is an essential part of the present invention and operates when an abnormality occurs, will be described according to a specific operation.
First, the operation of the conventional method in the above-mentioned injection molding will be described. Conventionally, the controller side of the sequence processing detects an abnormality based on sensor input, etc., and accordingly outputs an operation command at the time of abnormality to the motion control unit. Was there. Therefore, for example, as shown in FIG.
If a foreign object is sandwiched at the time t1 when the injection molding die is closed, the position of the pressure rod (piston) cannot be further advanced, but the position does not change. It is assumed that such an abnormality has occurred.

【0059】係る場合、実際に圧力センサによる測定圧
力が目標圧力を超えた時(t2)から、それをシーケン
ス側のCPUで検知し、モーション制御用のMCユニッ
トに対しサーボオフの指令を出す(t3)ことになる
が、シーケンス側のスキャンタイムが20msecと遅
いので、実際に指令が発せられるまでに40msec程
度の遅れが生じている。その結果、金型の締め付け圧力
が急激に上昇し、金型を損傷するおそれがある。
In this case, when the pressure measured by the pressure sensor actually exceeds the target pressure (t2), the CPU on the sequence side detects it and issues a servo-off command to the MC unit for motion control (t3). However, since the scan time on the sequence side is as slow as 20 msec, there is a delay of about 40 msec before the actual command is issued. As a result, the clamping pressure of the mold rises sharply, which may damage the mold.

【0060】これに対し、本実施の形態では、異常検知
部12fを設けたため、入力部12aからのセンサ入力
に従い異常を検知すると、すぐに制御方式切替部12g
により切り替えスイッチ12eを切替えてサーボオフ用
の異常時制御部12hを動作させる。従って、図12に
示すように、射出成型の金型を閉じる際の時間t1の時
に異物を挟み込んで、圧力が急激に上昇するといった異
常が発生した場合でも、目標圧力を超えた(t2)こと
をモーション用プログラム12側で検知し、サーボオフ
用の異常時制御部12hに切り替える。これに伴い、予
め指定された異常処理用の制御モード(サーボオフ)の
制御が実行され、加圧棒は後退移動し、圧力が開放され
る。よって、過度の金型の圧力上昇を抑制でき、金型の
損傷を抑制できる。そして、本実施の形態では、サーボ
タスクが1msecであるので、上記した異常時制御部
12hへの切替も、異常検知から1msecのタイムラ
グで迅速に対応することができる。
On the other hand, in this embodiment, since the abnormality detecting unit 12f is provided, when the abnormality is detected according to the sensor input from the input unit 12a, the control system switching unit 12g is immediately activated.
Thus, the changeover switch 12e is changed over to operate the servo-off abnormality control unit 12h. Therefore, as shown in FIG. 12, the target pressure is exceeded (t2) even when an abnormality occurs such that the foreign matter is caught at the time t1 when the injection molding die is closed and the pressure sharply rises. Is detected by the motion program 12 side, and the control is switched to the servo-off abnormality control unit 12h. Along with this, the control of the control mode (servo off) for the abnormality processing designated in advance is executed, the pressure rod moves backward, and the pressure is released. Therefore, it is possible to suppress an excessive increase in the pressure of the mold and suppress damage to the mold. Further, in the present embodiment, the servo task is 1 msec. Therefore, the switching to the abnormal time control unit 12h can be promptly dealt with with a time lag of 1 msec from the abnormality detection.

【0061】なお、上記した例では、金型を閉じる際の
異常発生に伴い、異常時制御はサーボオフにする例を示
したが、例えば圧力制御時の異常発生時には金型を閉じ
た状態にしておくのが好ましいことがあるので、サーボ
ロック用の異常時制御部12hを選択することになる。
そして、通常(正常)の制御実行時に異常が発生した場
合に、どの異常時制御部を動作させるかは、予め軸制御
委譲部11aを介して軸情報記憶部13に格納されてい
るため、制御方式切替部12gは、係る情報を取得して
おき、異常検知信号を受信した場合に迅速に所望の異常
時制御部12hに切り替えることができる。
In the above example, the servo is turned off in the abnormal condition control due to the abnormal condition when closing the mold. However, for example, when the abnormal condition occurs during the pressure control, the mold is closed. Since it may be preferable to set it, the abnormal time control unit 12h for servo lock is selected.
Then, when an abnormality occurs during normal (normal) control execution, which abnormality time control unit is to be operated is stored in advance in the axis information storage unit 13 via the axis control transfer unit 11a. The method switching unit 12g can acquire such information and can quickly switch to the desired abnormal time control unit 12h when the abnormality detection signal is received.

【0062】なお、異常時制御部12hの内部構造は、
基本的には、正常動作用の制御部12bと同様に、補償
器21や目標軌道生成器22などから構成され、制御対
象物が、目標軌道生成器22により生成される目標軌道
に沿うように動作するような指令値が補償器21から出
力される。そして、この異常時制御部12hもプログラ
ムにより構成できるので、目標軌道も各種の関数などを
用いて適宜,生成することができ、滑らかで迅速な異常
時制御が行える。
The internal structure of the abnormal time control unit 12h is as follows.
Basically, like the control unit 12b for normal operation, it is composed of a compensator 21, a target trajectory generator 22, etc., so that the controlled object follows the target trajectory generated by the target trajectory generator 22. A command value for operation is output from the compensator 21. Since the abnormal time control unit 12h can also be configured by a program, the target trajectory can be appropriately generated using various functions and the like, and smooth and quick abnormal time control can be performed.

【0063】そして、上記した正常時並びに異常時処理
を実行することに着目した低速タスクで実行されるシー
ケンス用プログラム(シーケンス制御部)11と、高速
タスクで実行されるモーション用プログラム12の機能
の一例を示すと図13,図14のようになる。まず、低
速タスク側では、図13に示すように、次の処理シーケ
ンス(始動時は1番目の処理シーケンス)に進み(ST
1)、その処理シーケンスを実行するための情報を軸情
報記憶部13に格納する(ST2)。すなわち、今回実
行する正常時の制御方式(制御モード)と、その動作条
件並びに異常時の制御モードを設定する。この処理は、
軸制御委譲部11aが、正常時制御方式指示部11c並
びに異常時制御方式指示部11dから与えられた情報を
軸情報記憶部13に格納することにより行う。
Then, the functions of the sequence program (sequence control unit) 11 executed by the low-speed task and the motion program 12 executed by the high-speed task focusing on the execution of the above-described normal time and abnormal time processing are described. An example is shown in FIGS. 13 and 14. First, on the low-speed task side, as shown in FIG. 13, the process proceeds to the next processing sequence (the first processing sequence at the start) (ST
1), information for executing the processing sequence is stored in the axis information storage unit 13 (ST2). That is, the normal control method (control mode) to be executed this time, its operating condition, and the abnormal control mode are set. This process
The axis control transfer unit 11a stores the information given from the normal time control system instruction unit 11c and the abnormal time control system instruction unit 11d in the axis information storage unit 13.

【0064】シーケンス制御部11は、今回の正常時の
制御を実行中、異常発生の有無並びに正常時の制御完了
の有無を監視する(ST3,ST4)。具体的には、異
常発生の有無は、例えば、所定のセンサからの入力を監
視することにより行うことができ、これは従来のPLC
における異常検知アルゴリズムと同様である。また、正
常時の制御完了の有無の判定は、軸制御完了判定部11
bが行う。
The sequence control section 11 monitors whether or not an abnormality has occurred and whether or not the control has been completed in a normal state during execution of the normal control this time (ST3, ST4). Specifically, the presence / absence of an abnormality can be detected by, for example, monitoring an input from a predetermined sensor.
It is similar to the abnormality detection algorithm in. In addition, the axis control completion determining unit 11 determines whether or not the control is normally completed.
b does.

【0065】そして、正常時の制御が完了したならば、
ステップ1に戻り、次の処理シーケンスに移行する。ま
た、異常発生を検知したならば、ステップ5に飛び、異
常処理シーケンスを実行する。すなわち、例えば、異常
ランプを点灯させたり、警報ブザーを鳴らす等の従来の
シーケンス処理(PLC)側で行っていた異常処理(M
Cユニット側への指令発生を除く)を実行する。
Then, if the normal control is completed,
The process returns to step 1 to shift to the next processing sequence. If an abnormality is detected, the process jumps to step 5 to execute the abnormality processing sequence. That is, for example, the abnormality processing (M) performed on the conventional sequence processing (PLC) side such as turning on an abnormality lamp or sounding an alarm buzzer is performed.
(Except the command generation to the C unit side).

【0066】一方、モーション用プログラム12側で
は、図14に示すように、軸の情報を入力部(入力変
数)12aから取得し、論理化して軸情報記憶部13の
所定記憶エリアに代入(格納)する(ST11)。そし
て、軸情報記憶部13から、今回行う制御のための正常
時の制御方式と異常時の制御方式を取得し、正常時の制
御を実行する(ST12からST14)。
On the other hand, on the motion program 12 side, as shown in FIG. 14, the axis information is acquired from the input section (input variable) 12a, logicalized and substituted (stored) in a predetermined storage area of the axis information storage section 13. (ST11). Then, the normal control method and the abnormal control method for the control performed this time are acquired from the axis information storage unit 13, and the normal control is executed (ST12 to ST14).

【0067】次いで、異常の有無を判断し(ST1
5)、異常がない場合には、軸情報記憶部13に格納さ
れた操作量(指令値)を、対応する軸の出力部(出力変
数)12cに与える(ST17)。その後、ステップ1
1に戻り、上記した処理を繰り返す。
Then, it is judged whether or not there is an abnormality (ST1
5) If there is no abnormality, the operation amount (command value) stored in the axis information storage unit 13 is given to the output unit (output variable) 12c of the corresponding axis (ST17). Then step 1
Returning to 1, the above processing is repeated.

【0068】一方、異常が検知した場合には、ステップ
15でYesとなるのでステップ16に飛び、ステップ
13で取得した異常時の制御を実行する。このように、
モーション制御側で正常時の制御から異常時の制御に切
り替えることができる。
On the other hand, if an abnormality is detected, the result in step 15 is Yes, so the process jumps to step 16 to execute the control at the time of abnormality acquired in step 13. in this way,
Motion control can switch from normal control to abnormal control.

【0069】上記した実施の形態は、シーケンス制御と
モーション制御とを分離し、それぞれをIEC6113
1−3で実装したソフトウェアサーボプラットフォーム
のソフトウェアで実現したタイプのコントローラへ適用
した例を示したが、本発明はこれに限ることはなく、従
来からあるモーションコントローラへ適用することがで
きる。すなわち、図15に示すように、シーケンス制御
はPC/AT上で動作するソフトウェアPLC31で記
述し、モーションの制御は上記ソフトウェアPLC31
がインストールされたパソコンに実装されるモーション
ボード33で実行する。なお、上記した実施の形態と同
様に、シーケンス用プログラムは、10msecの周期
タスクとして実行され、モーションボード32は1ms
ecの制御周期で実行されている。
In the above-described embodiment, the sequence control and the motion control are separated, and each is controlled by IEC6113.
Although an example of application to a controller realized by software of the software servo platform implemented in 1-3 has been shown, the present invention is not limited to this, and can be applied to a conventional motion controller. That is, as shown in FIG. 15, the sequence control is described by the software PLC 31 operating on the PC / AT, and the motion control is performed by the software PLC 31.
It is executed by the motion board 33 mounted on the personal computer in which is installed. As in the above-described embodiment, the sequence program is executed as a periodic task of 10 msec, and the motion board 32 is 1 ms.
It is executed in the control cycle of ec.

【0070】シーケンス用プログラムは、正常時の制御
方式を指示する正常時制御方式指示部31cと、異常時
の制御方式を指示する異常時制御方式指示部31dと、
それら各指示部31c,31dからの指示を受け、モー
ションボード32に対してI/Oポート33経由で正常
時の制御モード及び異常時の制御モード及び目標値を指
定する軸制御委譲部31aと、現在実行中の制御方式の
完了の有無を判断する軸制御完了判定部31bなどを備
えている。各処理部の機能は、図4に示した実施の形態
と基本的に同様である。
The sequence program includes a normal-time control method instructing section 31c for instructing a normal control method, an abnormal-time control method instructing section 31d for instructing an abnormal control method,
An axis control transfer unit 31a that receives an instruction from each of the instruction units 31c and 31d, and specifies a normal control mode, an abnormal control mode, and a target value to the motion board 32 via the I / O port 33, An axis control completion determination unit 31b that determines whether or not the control method currently being executed is completed is provided. The function of each processing unit is basically the same as that of the embodiment shown in FIG.

【0071】そして、このシーケンス用プログラムの具
体的な処理機能は、図16に示すフローチャートのよう
になっている。つまり、次の処理シーケンス(始動時は
1番目の処理シーケンス)に進み(ST21)、その処
理シーケンスを実行するための情報をI/Oポート33
を介してモーションボード32に設定する(ST2
2)。すなわち、今回実行する正常時の制御方式(制御
モード)と、その動作条件並びに異常時の制御モードを
設定する。この処理は、軸制御委譲部31aが、正常時
制御方式指示部31c並びに異常時制御方式指示部31
dから与えられた情報に従って実行される。
The specific processing function of this sequence program is as shown in the flowchart of FIG. That is, the process proceeds to the next processing sequence (the first processing sequence at the time of starting) (ST21), and the information for executing the processing sequence is transferred to the I / O port 33.
To the motion board 32 via (ST2
2). That is, the normal control method (control mode) to be executed this time, its operating condition, and the abnormal control mode are set. In this processing, the axis control transfer unit 31a uses the normal time control system instruction unit 31c and the abnormal time control system instruction unit 31.
It is executed according to the information given from d.

【0072】次いでソフトウェアPLC(シーケンス制
御部)31は、今回の正常時の制御を実行中、異常発生
の有無並びに正常時の制御完了の有無を監視する(ST
23,ST24)。具体的には、異常発生の有無は、例
えば、所定のセンサからの入力を監視することにより行
うことができ、これは従来のPLCにおける異常検知ア
ルゴリズムと同様である。また、正常時の制御完了の有
無の判定は、軸制御完了判定部11bが行う。
Next, the software PLC (sequence control unit) 31 monitors whether or not an abnormality has occurred and whether or not control has been completed in a normal state during execution of the normal control this time (ST).
23, ST24). Specifically, the presence / absence of an abnormality can be determined by, for example, monitoring an input from a predetermined sensor, which is similar to the abnormality detection algorithm in the conventional PLC. In addition, the axis control completion determination unit 11b determines whether or not the control is normally completed.

【0073】そして、正常時の制御が完了したならば、
ステップ21に戻り、次の処理シーケンスに移行する。
また、異常発生を検知したならば、ステップ25に飛
び、異常処理シーケンスを実行する。すなわち、例え
ば、異常ランプを点灯させたり、警報ブザーを鳴らす等
の従来のシーケンス処理(PLC)側で行っていた異常
処理(MCユニット側への指令発生を除く)を実行す
る。
Then, if the normal control is completed,
The process returns to step 21 and shifts to the next processing sequence.
If an abnormality is detected, the process jumps to step 25 to execute the abnormality processing sequence. That is, for example, the abnormality processing (excluding the command generation to the MC unit side) which is performed on the conventional sequence processing (PLC) side such as turning on an abnormality lamp or sounding an alarm buzzer is executed.

【0074】一方、モーションボード32では、正常時
の制御を実行する複数の制御部32bと、異常時の制御
を実行する異常時制御部32hを備えている。そして、
それら各制御部32b,32hの出力が切り替えスイッ
チ32eに接続され、その切り替えスイッチ32eによ
って択一的に選択された出力(指令値)が出力部32c
に与えられ、所望の制御対象機器に対して制御部32b
或いは異常時制御部32hが決定した指令値が出力され
る。
On the other hand, the motion board 32 is provided with a plurality of control sections 32b for executing normal control and an abnormal control section 32h for executing abnormal control. And
The outputs of the respective control units 32b and 32h are connected to the changeover switch 32e, and the output (command value) that is alternatively selected by the changeover switch 32e is output to the output unit 32c.
And a control unit 32b for a desired control target device.
Alternatively, the command value determined by the abnormal time control unit 32h is output.

【0075】この切り替えスイッチ32eの切替えは、
制御方式切替部32gの制御命令に従って実行される。
そして、制御方式切替部32gは、I/Oポート33を
介してソフトウェアPLC31から現在の正常時制御方
式と異常時制御方式を受け取っているので、通常は、受
け取った正常時制御方式に対応する制御部32bを選択
するように切り替えスイッチ32eを動作させる。ま
た、入力部32aからの入力に従い異常検知部32fが
異常検知信号を出力した場合には、設定された異常時制
御方式を実行するための異常時制御部32hを選択すべ
く切り替えスイッチ32eを動作させる。
The changeover of the changeover switch 32e is performed by
It is executed according to the control command of the control method switching unit 32g.
Since the control method switching unit 32g receives the current normal time control method and abnormal current time control method from the software PLC 31 via the I / O port 33, normally, the control corresponding to the received normal time control method is performed. The changeover switch 32e is operated so as to select the portion 32b. Further, when the abnormality detection unit 32f outputs an abnormality detection signal according to the input from the input unit 32a, the changeover switch 32e is operated to select the abnormal time control unit 32h for executing the set abnormal time control method. Let

【0076】なお、実際の制御を行うための軸の情報
(測定値)は、入力部32aを介して取得するようにし
ても良いし、ソフトウェアPLC31側からI/Oポー
ト33経由で取得するようにしても良い。
The axis information (measurement value) for actual control may be acquired via the input unit 32a, or may be acquired from the software PLC 31 side via the I / O port 33. You can

【0077】そして、このモーションボード32側の処
理は、図17に示すフローチャートのようになる。すな
わち、I/Oポート33を介してソフトウェアPLC3
1(シーケンス制御部)から、今回行う制御のための正
常時の制御方式と異常時の制御方式を取得する(ST3
1,ST32)。
The processing on the motion board 32 side is as shown in the flowchart of FIG. That is, the software PLC 3 via the I / O port 33
From 1 (sequence control unit), a normal control method and an abnormal control method for the control performed this time are acquired (ST3).
1, ST32).

【0078】次いで、入力部32aから軸の情報を取得
し(ST33)、異常の有無を判断する(ST34)。
そして、異常がない場合には、取得した正常時の制御方
式により規定される制御部32bを動作させ、正常時の
制御を実行する(ST35)。また、異常があった場合
には、取得した異常時の制御方式により規定される異常
時制御部32hを動作させ、異常時の制御を実行する
(ST36)。そして、今回の軌道制御が終了されるま
で、ステップ33からの処理を繰り返し実行し、軌道制
御が終了(ステップ37でYes)したならば、ステッ
プ31に戻り次の制御方式の実行に移行する。
Next, the axis information is obtained from the input section 32a (ST33), and it is determined whether or not there is an abnormality (ST34).
When there is no abnormality, the control unit 32b defined by the acquired normal control method is operated to execute normal control (ST35). If there is an abnormality, the abnormality control unit 32h defined by the acquired abnormality control method is operated to execute the abnormality control (ST36). Then, the processing from step 33 is repeatedly executed until the trajectory control of this time is terminated, and when the trajectory control is terminated (Yes in step 37), the process returns to step 31 to proceed to the execution of the next control method.

【0079】係る構成にしたことにより、入力部32a
を介して取得した外部入力から異常信号を検出するかま
たは内部異常を検出すると、予め指定されている異常時
の制御モードに直ちに切り替わる。従って、シーケンス
用プログラムのスキャンタイム(例えば10msec)
に比べて高速なモーションボードのスキャンタイム(例
えば1msec)で異常への対処が行えるので、装置や
オペレータをより安全な状態に導ける。
With the above configuration, the input unit 32a
When an abnormal signal is detected from an external input acquired via the device or an internal abnormality is detected, the control mode is immediately switched to a control mode at the time of abnormality designated in advance. Therefore, the scan time of the sequence program (for example, 10 msec)
Since it is possible to deal with an abnormality with a faster scan time (for example, 1 msec) of the motion board, it is possible to guide the apparatus and the operator to a safer state.

【0080】[0080]

【発明の効果】以上のように、この発明では、モーショ
ン制御装置(手段)側で異常を検知し、異常時制御手段
に切り替えて予め指定されている異常時制御モードを実
行するようにしたため、係る切り替えが迅速に行える。
つまり、異常対処処理を迅速に行うことができる。
As described above, according to the present invention, the motion control device (means) detects an abnormality and switches to the abnormal time control means to execute the abnormal time control mode designated in advance. Such switching can be performed quickly.
That is, the abnormality handling process can be performed quickly.

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

【図1】本発明に係るコントローラの好適な一実施の形
態を示す図である。
FIG. 1 is a diagram showing a preferred embodiment of a controller according to the present invention.

【図2】本発明に係るコントローラの好適な一実施の形
態を示す図である。
FIG. 2 is a diagram showing a preferred embodiment of a controller according to the present invention.

【図3】軸情報記憶部のデータ構造の一例を示す図であ
る。
FIG. 3 is a diagram showing an example of a data structure of an axis information storage unit.

【図4】本発明に係るコントローラの好適な一実施の形
態を示すソフトウェア構成図である。
FIG. 4 is a software configuration diagram showing a preferred embodiment of a controller according to the present invention.

【図5】正常時の制御モードを実行するための処理ブロ
ックの詳細を示すソフトウェア構成図である。
FIG. 5 is a software configuration diagram showing details of processing blocks for executing a control mode in a normal state.

【図6】軸制御委譲部の構造の一例を示す図である。FIG. 6 is a diagram showing an example of a structure of an axis control transfer unit.

【図7】制御部の構造の一例を示す図である。FIG. 7 is a diagram showing an example of a structure of a control unit.

【図8】軌道生成部の具体例の一例を示す図である。FIG. 8 is a diagram showing an example of a specific example of a trajectory generation unit.

【図9】補償部の具体例の一例を示す図である。FIG. 9 is a diagram illustrating an example of a specific example of a compensation unit.

【図10】本実施の形態のコントローラを用いて行う速
度/圧力制御切替の一例を示す図である。
FIG. 10 is a diagram showing an example of speed / pressure control switching performed using the controller of the present embodiment.

【図11】従来の問題点を説明する図である。FIG. 11 is a diagram illustrating a conventional problem.

【図12】本発明の効果を説明する図である。FIG. 12 is a diagram illustrating an effect of the present invention.

【図13】シーケンス用プログラム(シーケンス制御
部)の機能を示すフローチャートである。
FIG. 13 is a flowchart showing the function of a sequence program (sequence control unit).

【図14】モーション制御プログラムの機能を示すフロ
ーチャートである。
FIG. 14 is a flowchart showing functions of a motion control program.

【図15】本発明の他の実施の形態を示すソフトウェア
構成図である。
FIG. 15 is a software configuration diagram showing another embodiment of the present invention.

【図16】ソフトウェアPLC(シーケンス制御部)の
機能を示すフローチャートである。
FIG. 16 is a flowchart showing functions of a software PLC (sequence control unit).

【図17】モーションボードの機能を示すフローチャー
トである。
FIG. 17 is a flowchart showing functions of the motion board.

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

1 リアルタイムOS 2 FAコンピュータ 3 ソフトウェアPLCエンジン 5 ユーザプログラム 6a I/Oボード 6b マルチファンクションボード 6c 画像ボード 7 制御対象機器 7′ センサ 8 デバイスドライバ 11 シーケンス用プログラム(シーケンス制御部) 11a 軸制御委譲部 11b 軸制御完了判定部 11c 正常時制御方式指示部 11d 異常時制御方式指示部 12 モーション用プログラム 12a 入力部 12b 制御部 12c 出力部 12d 速度変換部 12e 切り替えスイッチ 12f 異常検知部 12g 制御方式切替部 12h 異常時制御部 13 軸情報記憶部(論理化デバイス) 21 補償器 22 目標軌道生成器 23 フィルタ 31 ソフトウェアPLC(シーケンス制御部) 31a 軸制御委譲部 31b 軸制御完了判定部 31c 正常時制御方式指示部 31d 異常時制御方式指示部 32 モーションボード 32a 入力部 32b 制御部 32c 出力部 32e 切り替えスイッチ 32f 異常検知部 32g 制御方式切替部 32h 異常時制御部 33 I/Oポート 1 Real-time OS 2 FA computer 3 Software PLC engine 5 User program 6a I / O board 6b multifunction board 6c image board 7 controlled devices 7'sensor 8 Device driver 11 Sequence program (sequence controller) 11a Axis control transfer unit 11b Axis control completion determination unit 11c Normal-time control system instruction section 11d Abnormal control method indicator 12 Motion programs 12a input section 12b control unit 12c output section 12d speed converter 12e Changeover switch 12f Abnormality detection part 12g Control system switching unit 12h Abnormal control section 13 Axis information storage unit (logical device) 21 Compensator 22 Target trajectory generator 23 Filter 31 Software PLC (Sequence controller) 31a Axis control transfer section 31b Axis control completion determination unit 31c Normal-time control system instruction section 31d Abnormal control system instruction section 32 motion board 32a input section 32b control unit 32c output section 32e changeover switch 32f Abnormality detector 32g Control system switching unit 32h Abnormal control section 33 I / O ports

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 シーケンス制御手段とモーション制御手
段を備えたコントローラであって、 前記シーケンス制御手段は、前記モーション制御手段に
対して異常発生時に実行する異常時制御モードを予め指
定する機能を有し、 前記モーション制御手段は、正常時の制御モードを実行
する制御手段と、前記指定された異常時制御モードを実
行する異常時制御手段と、前記シーケンス制御手段を介
すことなく取得した異常情報に基づき前記異常時制御手
段による制御に切り替える切替手段とを備えたことを特
徴とするコントローラ。
1. A controller comprising a sequence control means and a motion control means, wherein the sequence control means has a function of previously designating an abnormal time control mode to be executed when an abnormality occurs to the motion control means. The motion control means includes a control means for executing a normal-time control mode, an abnormal-time control means for executing the designated abnormal-time control mode, and abnormality information acquired without going through the sequence control means. A controller provided with switching means for switching to control by the abnormal time control means based on the above.
【請求項2】 前記シーケンス制御手段を介すことなく
取得した情報に基づき異常を検知する異常検知手段を備
え、 前記切替手段は、前記異常検知手段が異常を検知した際
に前記異常時制御手段による制御に切り替えるものであ
ることを特徴とする請求項1に記載のコントローラ。
2. An abnormality detection means for detecting an abnormality based on information acquired without passing through the sequence control means, wherein the switching means has the abnormality control means when the abnormality detection means detects an abnormality. 2. The controller according to claim 1, wherein the controller is switched to the control by.
【請求項3】 前記シーケンス制御手段と前記モーショ
ン制御手段が独立したアプリケーションプログラムによ
り構成され、前記シーケンス制御手段は、前記モーショ
ン制御手段に対して直接または間接的に制御条件ととも
に制御命令を与える指示手段と、前記モーション制御手
段の保持する情報を取得し、前記与えた制御命令に基づ
く制御の完了の有無を判定する判定手段を備えたことを
特徴とする請求項1または2に記載のコントローラ。
3. The sequence control means and the motion control means are constituted by independent application programs, and the sequence control means directly or indirectly gives a control command together with a control condition to the motion control means. 3. The controller according to claim 1, further comprising: a determination unit that acquires information held by the motion control unit and determines whether or not the control based on the given control command is completed.
【請求項4】 コントローラ用のモーション制御装置で
あって、 制御対象に対し正常なモーション制御を行う制御手段
と、 異常時に制御を行う異常時制御手段と、 前記コントローラのシーケンス制御手段を介すことなく
取得した異常情報に基づき前記異常時制御手段による制
御に切り替える切替手段とを備えたことを特徴とするモ
ーション制御装置。
4. A motion control device for a controller, comprising: a control means for performing normal motion control on an object to be controlled; an abnormal time control means for controlling an abnormal condition; and a sequence control means of the controller. A motion control device comprising: switching means for switching to control by the abnormal time control means based on the abnormal information acquired without any means.
【請求項5】 コントローラ用のモーション制御装置で
あって、 制御対象に対し正常なモーション制御を行う制御手段
と、 異常時に制御を行う異常時制御手段と、 制御対象の状態を直接取得する入力手段と、 その入力手段から取得した前記制御対象の状態に基づ
き、異常の有無を判定する異常判定手段と、 その異常判定手段が異常を判定した際に前記異常時制御
手段による制御に切り替える切替手段とを備えたことを
特徴とするモーション制御装置。
5. A motion control device for a controller, which comprises a control means for performing normal motion control on a control target, an abnormal time control means for controlling an abnormal condition, and an input means for directly acquiring the state of the control target. And an abnormality determining means for determining the presence or absence of an abnormality based on the state of the control target acquired from the input means, and a switching means for switching to the control by the abnormality control means when the abnormality determining means determines an abnormality. A motion control device comprising:
【請求項6】 前記異常時制御手段で実行される異常時
制御モードは、前記コントローラのシーケンス処理手段
から指定されるものであることを特徴とする請求項4ま
たは5に記載のモーション制御装置。
6. The motion control apparatus according to claim 4, wherein the abnormal time control mode executed by the abnormal time control means is designated by the sequence processing means of the controller.
JP2001388565A 2001-12-20 2001-12-20 Controller and motion control unit Withdrawn JP2003181900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001388565A JP2003181900A (en) 2001-12-20 2001-12-20 Controller and motion control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001388565A JP2003181900A (en) 2001-12-20 2001-12-20 Controller and motion control unit

Publications (1)

Publication Number Publication Date
JP2003181900A true JP2003181900A (en) 2003-07-02

Family

ID=27597025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001388565A Withdrawn JP2003181900A (en) 2001-12-20 2001-12-20 Controller and motion control unit

Country Status (1)

Country Link
JP (1) JP2003181900A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007533045A (en) * 2004-04-19 2007-11-15 ベックホフ オートメーション ゲーエムベーハー Safety-oriented control system
JP2009223591A (en) * 2008-03-15 2009-10-01 Omron Corp Program development support device for plc
CN101807059A (en) * 2009-02-13 2010-08-18 株式会社日立国际电气 Method of displaying abnormal state in substrate board treatment and the substrate board treatment
JP2010271759A (en) * 2009-05-19 2010-12-02 Toyota Motor Corp Safety control device and safety control method
CN102279578A (en) * 2010-06-09 2011-12-14 张明亮 Control mode with early warning function
JP2014040052A (en) * 2012-08-22 2014-03-06 Fanuc Ltd Abnormality detection apparatus of injection molding machine
WO2015136960A1 (en) * 2014-03-13 2015-09-17 オムロン株式会社 Controller
WO2021066164A1 (en) * 2019-10-04 2021-04-08 住友重機械工業株式会社 Injection molding machine and controller
JPWO2020145247A1 (en) * 2019-01-07 2021-11-25 住友重機械工業株式会社 Motion controller
JP7470018B2 (en) 2020-11-25 2024-04-17 株式会社日立製作所 Control system and protection control execution method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8335573B2 (en) 2004-04-19 2012-12-18 Beckhoff Automation Gmbh Safety-oriented control system
JP2007533045A (en) * 2004-04-19 2007-11-15 ベックホフ オートメーション ゲーエムベーハー Safety-oriented control system
JP2009223591A (en) * 2008-03-15 2009-10-01 Omron Corp Program development support device for plc
CN101807059A (en) * 2009-02-13 2010-08-18 株式会社日立国际电气 Method of displaying abnormal state in substrate board treatment and the substrate board treatment
CN101807059B (en) * 2009-02-13 2013-11-27 株式会社日立国际电气 Substrate processing apparatus and method of displaying abnormal state of substrate processing apparatus
JP2010271759A (en) * 2009-05-19 2010-12-02 Toyota Motor Corp Safety control device and safety control method
CN102279578A (en) * 2010-06-09 2011-12-14 张明亮 Control mode with early warning function
JP2014040052A (en) * 2012-08-22 2014-03-06 Fanuc Ltd Abnormality detection apparatus of injection molding machine
WO2015136960A1 (en) * 2014-03-13 2015-09-17 オムロン株式会社 Controller
JP2015176191A (en) * 2014-03-13 2015-10-05 オムロン株式会社 controller
US10139799B2 (en) 2014-03-13 2018-11-27 Omron Corporation Controller to modify an execution condition during program execution
JPWO2020145247A1 (en) * 2019-01-07 2021-11-25 住友重機械工業株式会社 Motion controller
JP7399108B2 (en) 2019-01-07 2023-12-15 住友重機械工業株式会社 motion controller
WO2021066164A1 (en) * 2019-10-04 2021-04-08 住友重機械工業株式会社 Injection molding machine and controller
JP7470018B2 (en) 2020-11-25 2024-04-17 株式会社日立製作所 Control system and protection control execution method

Similar Documents

Publication Publication Date Title
JP2935706B2 (en) Machining program correction method
US4096770A (en) Method and apparatus for modifying the position of a machine slide to compensate for different following errors
JP2003181900A (en) Controller and motion control unit
JP5172990B2 (en) Numerical control device with operation function based on table format data
JP5813058B2 (en) Numerical controller with a function for shortening the starting point path of a complex fixed cycle
WO2004083975A1 (en) Numerical control system
JP2004326618A (en) Numerical control device of machine tool
US20130081054A1 (en) Method for Enabling Sequential, Non-Blocking Processing of Statements in Concurrent Tasks in a Control Device
JP3301494B2 (en) Method of operating numerically controlled machine tool and machine tool for implementing the method
JP5456208B1 (en) Numerical controller
US8155781B2 (en) Automation system and method for movement control of at least one moveable machine element
JPH09179621A (en) Storage means access controlling method for numerical controller and numerical controller
JPH09128255A (en) Programable logic controller
KR930016844A (en) Sequence controller and sequence control method
JPH044527B2 (en)
JP4112433B2 (en) Numerical control device for machine tool and numerical control method for machine tool
JP2003150213A (en) Controller
KR940000444B1 (en) External extension type programmable controller
JP2619520B2 (en) Numerical controller for transfer machine
US20180364681A1 (en) Numerical controller
WO2022244072A1 (en) Numerical control device and computer-readable storage medium
WO2024127673A1 (en) Numerical control device and computer-readable storage medium
JPH02151909A (en) Control device for industrial machine
JP3198256B2 (en) Numerical control unit
JP2702555B2 (en) Numerical control unit reordering method

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: 20050301