JP4584045B2 - Motion controller, communication control module, control device, and control method - Google Patents
Motion controller, communication control module, control device, and control method Download PDFInfo
- Publication number
- JP4584045B2 JP4584045B2 JP2005179479A JP2005179479A JP4584045B2 JP 4584045 B2 JP4584045 B2 JP 4584045B2 JP 2005179479 A JP2005179479 A JP 2005179479A JP 2005179479 A JP2005179479 A JP 2005179479A JP 4584045 B2 JP4584045 B2 JP 4584045B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- control
- controller
- man
- communication
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Numerical Control (AREA)
Description
本発明は、モーションコントローラ、通信制御モジュール、制御装置、及び制御方法に関し、特に制御の負荷を軽減するためのモーションコントローラ、通信制御モジュール、制御装置、及び制御方法に関する。 The present invention relates to a motion controller, a communication control module, a control device, and a control method, and more particularly, to a motion controller, a communication control module, a control device, and a control method for reducing a control load.
従来から、産業用多軸コントローラや加工機コントローラ等において、複数のモータの制御、監視を容易に行うために、ユーザが指令値を入力したり、状態値をモニタリングするためのマンマシンコントローラと、実際のモータ等の動きを制御するためのモーションコントローラとを備えた制御装置を用いる技術がある(例えば、特許文献1参照。)。 Conventionally, in an industrial multi-axis controller, a processing machine controller, etc., in order to easily control and monitor a plurality of motors, a man-machine controller for a user to input a command value or monitor a state value; There is a technique using a control device including a motion controller for controlling the actual movement of a motor or the like (see, for example, Patent Document 1).
なお、これらのコントローラに要求される機能、性能の違いから、通常、上述したコントローラは、加工機本体とは別体で構成されているものが多い。そのため、コントローラ間には指令値や現在値、状態情報等を通信するための手段が必要となる。従来では、一般的なRS232C等のシリアル通信や、データ幅を限定したパラレル通信が用いられている。 Note that due to differences in functions and performance required for these controllers, the above-described controllers are usually configured separately from the processing machine main body. Therefore, a means for communicating the command value, current value, state information, etc. between the controllers is required. Conventionally, general serial communication such as RS232C or parallel communication with a limited data width is used.
ここで、上述したコントローラを有する制御装置の構成と動作について図を用いて説明する。図1は、コントローラを有する制御装置全体の概略構成の一例を示す図である。
図1に示す制御装置10は、マンマシンコントローラ11と、モーションコントローラ12と、サーボコントローラ13−1〜13−nと、モータ14−1〜14−nを有するよう構成されている。
Here, the configuration and operation of the control device having the above-described controller will be described with reference to the drawings. FIG. 1 is a diagram illustrating an example of a schematic configuration of an entire control apparatus having a controller.
The
図1に示すマンマシンコントローラ11は、ユーザからの指令値等の入力や各構成部の状態のモニタリング等のユーザとのインターフェースの制御を行う。また、モーションコントローラ12は、マンマシンコントローラ11から送られる指令値等の入力情報に基づいてモータ14−1〜14−nの軌道生成や、各軸のモータ全体の制御演算を行う。また、モーションコントローラ12は、各サーボコントローラ13−1〜13−nから状態(正常、異常等)を示す信号を受信し、マンマシンコントローラ11に出力する。
A man-machine controller 11 shown in FIG. 1 controls an interface with the user such as input of a command value from the user and monitoring of the state of each component. In addition, the
また、サーボコントローラ13は、モーションコントローラからの制御データに基づいて、実際に制御される機器(制御対象物)を動作させるための電流制御やトルク制御等の制御演算を行う。なお、図1では、各サーボコントローラ13−1〜13−nのそれぞれに対応した各軸のモータ14−1〜14−nの制御演算を行う。また、サーボコントローラ13は、演算された制御データをモータ14に出力する。モータ14は、対応するサーボコントローラ13−1〜13−nからの制御データに基づいて各軸の駆動等を行う。また、モータ14は、状態情報を所定の時間周期毎又は所定の動作をトリガーとしてサーボコントローラ13に出力する。
In addition, the
次に、マンマシンコントローラ11及びモーションコントローラ12における通信インターフェースについて図を用いて説明する。図2は、従来のマンマシンコントローラ及びモーションコントローラにおける通信インターフェースを説明するための一例を示す図である。図2において、マンマシンコントローラ11は、アプリケーション21と、I/F(インターフェース)コントローラ22とを有するよう構成されている。また、モーションコントローラ12は、I/Fコントローラ23と、CPU24、記憶手段としてのRAM(Random Access Memory)25とを有するよう構成されている。
Next, communication interfaces in the man-machine controller 11 and the
図2において、アプリケーション21は、ユーザが機器を制御するための制御等を行うためのインターフェース機能を持ち、ユーザから入力された指令値等を制御信号(制御データ)としてI/Fコントローラ22に送信する。また、I/Fコントローラ22は、モーションコントローラ12にあるI/Fコントローラ23との通信制御を行う。また、I/Fコントローラ22は、アプリケーション21からデータや通信命令等を受けると、RS−232C等のシリアル通信26を介してデータをモーションコントローラ12に出力する。また、I/Fコントローラ22は、シリアル通信26を介してモーションコントローラ12から受信したデータをアプリケーション21に出力する。
In FIG. 2, an
また、モーションコントローラ12にあるI/Fコントローラ23は、マンマシンコントローラ11からの制御信号を受信する。CPU24は、マンマシンコントローラ11からの制御信号に基づいて、各サーボコントローラ13−1〜13−nに対する電流制御やトルク制御等の制御データを生成する。また、RAM25は、I/Fコントローラ23により送受信され、またCPU24において信号処理される制御データを保存する。なお、RAM25は、モーションコントローラの状態や処理結果、それらの履歴等を保存することもできる。
The I /
ここで、図3は、マンマシンコントローラの詳細な機能構成の一例を示す図である。図3に示すマンマシンコントローラ11は、アプリケーション21として、メイン処理部31と、通信制御部32とを有するよう構成されている。また、I/Fコントローラ22は、汎用I/F33と、入出力装置ドライバ34と、LAN(Local Area Network)ドライバ35と、シリアル通信ドライバ36と、入出力装置37と、LANコントローラ38と、USB(Universal Serial Bus)コントローラ39と、シリアル通信コントローラ40とを有するよう構成されている。
Here, FIG. 3 is a diagram illustrating an example of a detailed functional configuration of the man-machine controller. The man-machine controller 11 illustrated in FIG. 3 includes a
ここで、汎用I/F33、入出力装置ドライバ34、LANドライバ35、及びシリアル通信ドライバ36は、ソフトウェアとして、例えばWindows(登録商標)等のOS(Operating System)により提供されるものである。また、入出力装置37、LANコントローラ38、USBコントローラ39、及びシリアル通信コントローラ40は、ハードウェアとして構成される。
Here, the general-purpose I /
メイン処理部31は、ユーザ等により入力されるデータに対して各種データ演算やコマンドの生成、ユーザに対する状態の表示等の処理を行う。また、通信制御部32は、各通信ドライバ等とのデータの授受、コマンド送信、通信状態管理等を行う。また、通信制御部32は、データやコマンド等を汎用I/F33に出力し、また汎用I/F33から送られるデータの受信を行う。
The
汎用I/F33は、アプリケーション21からの信号をLANドライバ35、USBコントローラ39、シリアル通信ドライバ36に出力する。なお、汎用I/F33は、予め設定されている標準的な通信を用いているため、通信手段を変更してもマンマシンコントローラ内のアプリケーション21側は変更することなく対応することができる。
The general-purpose I /
また、LANドライバ35は、LANコントローラ38を介してモーションコントローラ12に制御信号を出力する。また、シリアル通信ドライバ36は、シリアル通信コントローラ40を介してシリアル通信によりモーションコントローラに制御信号を出力する。また、USBコントローラ39は、汎用I/F33からの制御信号をモーションコントローラ12に出力する。
The
また、入出力ドライバ34は、ハードウェアとしてマンマシンコントローラ11に設けられているディスプレイやキーボード、マウス等からなる入出力装置37からの入力されたデータ等を入出力装置ドライバ34を介してアプリケーション21に出力する。
Further, the input /
次に、図4は、従来におけるモーションコントローラの詳細な機能構成の一例を示す図である。図4に示すモーションコントローラ13において、I/Fコントローラ23は、通信データ変換部51と、記録手段としてのバッファ52とを有するよう構成されている。また、I/Fコントローラ23と、CPU24と、RAM25とは、データバス53を介してデータの送受信が可能な状態で接続されている。
Next, FIG. 4 is a diagram illustrating an example of a detailed functional configuration of a conventional motion controller. In the
通信データ変換部51は、マンマシンコントローラ11からシリアル通信26を介して送信されてきたデータを受信し、バッファ(メモリ)52等に格納するためのデータ形式に変換する。また、通信データ変換部51は、変換されたデータをバッファ52に出力する。
The
バッファ52は、通信データ変換部51からのデータを一時的に保存しておく。また、バッファ52は、データバス53を介してCPU24からの制御信号を受けて保存されたデータをCPU24に出力する。CPU24は、処理速度や負荷等の処理状態に応じてバッファ52にデータの要求を行う。ここで、バッファ52は、通常のRAM等よりも高速なものが要求されるが、物理的にその容量は制限されるため、あまり多量のデータを蓄えることはできない。
The
CPU24は、バッファ53から制御データを取得し、下位のサーボコントローラ13とのI/F処理、通信処理、及び割込み処理等を行う。このとき、CPU24は、取得した制御データや各処理の状態等をRAM25に保存する。
The
また、CPU24は、通信割込みや、内部タイマによる割込み、その他、通信データ変換部51からサーボコントローラ13を強制終了させる等の外部割込み等よる緊急データを受信した場合には、それぞれの割込み処理に対応した通信処理を実行する。ここで、通信処理としては、例えばI/Fコントローラ23からバッファ52に保存されたデータを読み込み、更に読み込まれたデータをRAM25に保存する等の処理を行う。
In addition, when the
なお、I/Fコントローラ23と、CPU24と、RAM25とにおけるデータバス53における制御は、バス制御線55を介してCPU24からの制御信号により制御される。
Note that control of the
ここで、従来のモーションコントローラにおけるデータ受信時、及び送信時の制御処理についてフローチャートを用いて説明する。図5は、従来におけるデータ受信時の制御処理手順の一例を示すフローチャートである。また、図6は、従来におけるデータ送信時の制御処理手順の一例を示すフローチャートである。 Here, control processing at the time of data reception and transmission at the conventional motion controller will be described with reference to flowcharts. FIG. 5 is a flowchart showing an example of a conventional control processing procedure at the time of data reception. FIG. 6 is a flowchart showing an example of a conventional control processing procedure during data transmission.
図5における受信時の制御処理は、まずマンマシンコントローラ11からの制御信号(データ)を受信し(S01)、次に、バッファ52がデータフルであるか否かを判断する(S02)。なお、データフルである状態とは、バッファに保存されているデータ量が、バッファに予め設定されている総記録データ量と同一である場合に限定されず、S01において受信したデータ量をバッファに保存することができない程度の空き容量しかない場合も含んでいる。
The control process at the time of reception in FIG. 5 first receives a control signal (data) from the man-machine controller 11 (S01), and then determines whether or not the
ここで、バッファ52がデータフルである場合(S02において、YES)、受信失敗として(S03)、処理を終了する。また、バッファ52がデータフルでない場合(S02において、NO)、通信データ変換部51がCPU24に割込み信号を出力し(S04)、通信データ変換部51でデータ変換を行い(S05)、バッファ52にデータを書込み、保存を行う(S06)。更に、CPU24がバッファ52に保存されているデータをRAM25に移動(保存)させて(S07)、受信処理を終了する。なお、S07の処理によりバッファ52のデータがRAM25に正常に保存された場合、バッファ52の対応するデータは消去されることになる。
If the
一方、図6に示すように送信時の制御処理は、CPU24がバッファ52をチェックし(S11)、バッファ52がデータフルであるか否かを判断する(S12)。ここで、バッファ52がデータフルである場合(S12において、YES)、S11に戻り、バッファ52がフルでなくなるまで確認を続ける。なお、この場合にはCPU24が割込み信号等によりバッファ52からデータの読み込み処理をすることで、バッファ52に空き容量ができる。
On the other hand, as shown in FIG. 6, in the control process at the time of transmission, the
また、バッファ52がデータフルでない(データフルでなくなった)場合(S12において、NO)、CPU24は、RAM25からデータを読み込み、バッファ52にデータを書き込む(S13)。また、バッファ52にデータが書き込まれると即座に通信データ変換部51がデータを通信用のデータ形式に変換し(S14)、変換したデータを送信し(S15)、送信処理を終了する。
ところで、上述したように従来のモーションコントローラの構成においては、データの読み書きや通信の管理、サーボコントローラ等への制御をCPUが直接行っている。そのため、通信上の頻度が高い場合、それに伴い頻繁に割込みが発生してしまう。これにより、モーションコントローラのCPUの負荷は高くなり、制御サイクル内でモーション制御のパフォーマンスを圧迫して、高速で安定したモーション制御が行えなくなるという問題があった。 As described above, in the configuration of the conventional motion controller, the CPU directly performs data read / write, communication management, and control to the servo controller and the like. For this reason, when the frequency of communication is high, interrupts frequently occur accordingly. As a result, the load on the CPU of the motion controller is increased, and there is a problem in that the motion control performance is squeezed within the control cycle and stable motion control cannot be performed at high speed.
同様に、大量データの通信が発生した際にも、そのデータの通信がモーションコントローラのCPUを独占することになり、モーション制御に影響がでてしまうという問題があった。なお、従来では高速化を図ることを目的として多ビットのパラレル通信が用いられていたが、その場合、特別なハードウェアやそのためのドライバ(ソフトウェア)が必要となり、通信エラー等の解析にも時間がかかってしまっていた。 Similarly, when a large amount of data communication occurs, there is a problem that the data communication monopolizes the CPU of the motion controller and affects the motion control. Conventionally, multi-bit parallel communication has been used for the purpose of speeding up, but in that case, special hardware and a driver (software) for that are required, and it also takes time to analyze communication errors and the like. It was over.
また、従来ではモーションコントローラのCPUが直接通信を管理しているため、通信を管理するソフトウェアがモーションコントローラ内のソフトウェアに埋め込まれる場合があり、この場合には、通信媒体を変更する際にモーションコントローラ内のソフトウェアに大きな変更が必要になるという問題があった。 Conventionally, since the CPU of the motion controller directly manages communication, software for managing communication may be embedded in the software in the motion controller. In this case, the motion controller is changed when the communication medium is changed. There was a problem that major changes were required in the software.
本発明は、上記の問題点に鑑みてなされたものであって、制御の負荷を軽減し、高速に大容量データを授受するためのモーションコントローラ、通信制御モジュール、制御装置、及び制御方法を提供することを目的とする。 The present invention has been made in view of the above-described problems, and provides a motion controller, a communication control module, a control device, and a control method for reducing a control load and transferring large-capacity data at high speed. The purpose is to do.
上述の目的を達成するために、本発明は、データの入出力を制御するマンマシンコントローラ及び制御対象物の動作を制御するサーボコントローラとデータの送受信を行うモーションコントローラにおいて、前記マンマシンコントローラからの制御データを入力するI/F制御部と、前記I/F制御部からの制御データに基づいて、前記サーボコントローラを制御するための信号処理を行う信号処理部と、前記I/F制御部及び前記信号処理部からデータの読み書きを行うためのデュアルポートメモリとを有し、前記I/F制御部から前記デュアルポートメモリを介さずに、前記信号処理部に直接所定の制御データを出力するための割込み線を有し、前記I/F制御部は、前記マンマシンコントローラからの制御データを所定のデータ形式に変換するための通信データ変換部と、前記通信データ変換部からのデータを保存するためのバッファと、前記バッファに保存されているデータを前記デュアルポートメモリに出力するための通信制御部とを有し、前記通信制御部は、前記通信データ変換部に入力された前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが前記緊急データである場合、前記割込み線を介して前記信号処理部に割込みデータを出力し、前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とする。これにより、デュアルポートメモリを有することでモーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。また、通信制御部がデータ移動に対する処理を行うため、時間的に高速となり、バッファフルである時間は殆どなくなるため、受信失敗の可能性は飛躍的に低いものとなる。したがって、モーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。更に、信号処理部に割込みデータを迅速に送信することができる。 In order to achieve the above-described object, the present invention provides a man-machine controller that controls data input / output and a servo controller that controls the operation of a controlled object, and a motion controller that transmits / receives data to / from the man-machine controller. An I / F control unit for inputting control data; a signal processing unit for performing signal processing for controlling the servo controller based on control data from the I / F control unit; the I / F control unit; have a dual port memory for reading and writing data from the signal processing unit, wherein the I / F control unit without passing through the dual port memory, for outputting a predetermined control data directly to the signal processing unit The I / F control unit converts the control data from the man-machine controller into a predetermined data format. A communication data conversion unit for converting, a buffer for storing data from the communication data conversion unit, and a communication control unit for outputting the data stored in the buffer to the dual port memory. The communication control unit determines whether the data from the man-machine controller input to the communication data conversion unit is emergency data, and the data from the man-machine controller is the emergency data. , Outputting interrupt data to the signal processing unit via the interrupt line, and outputting the interrupt data, or when the data from the man-machine controller is not the emergency data, the man-machine controller is stored in the dual-port memory. The data from is written and saved . Thus, by having the dual port memory, large-capacity data can be exchanged at high speed without imposing an extra load on the control for the motion controller. In addition, since the communication control unit performs processing for data movement, the time is high in speed and the time when the buffer is full is almost eliminated, so the possibility of reception failure is drastically reduced. Therefore, large-capacity data can be exchanged at high speed without imposing extra load on the control for the motion controller. Furthermore, interrupt data can be quickly transmitted to the signal processing unit.
また、本発明は、データの入出力を制御するマンマシンコントローラ及び制御対象物の動作を制御するサーボコントローラとデータの送受信を行うモーションコントローラ用の通信制御モジュールにおいて、前記マンマシンコントローラからの制御データを入力する第1コネクタ部と、前記第1コネクタ部からの制御データに基づいてインターフェースの制御を行うI/F制御部と、前記I/F制御部からの制御データに基づいて、前記サーボコントローラを制御するための信号処理を行う信号処理部と接続するための第2コネクタ部と、前記I/F制御部及び前記第2コネクタ部から前記制御データの読み書きを行うためのデュアルポートメモリとを有し、前記I/F制御部から前記デュアルポートメモリを介さずに、前記第2コネクタ部に直接所定の制御データを出力するための割込み線を有し、前記I/F制御部は、前記マンマシンコントローラからの制御データを所定のデータ形式に変換するための通信データ変換部と、前記通信データ変換部からのデータを保存するためのバッファと、前記バッファに保存されているデータを前記デュアルポートメモリに出力するための通信制御部とを有し、前記通信制御部は、前記通信データ変換部に入力された前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが緊急データである場合、前記割込み線を介して前記第2コネクタ部に割込みデータを出力し、前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とする。これにより、コネクタを用いて従来の機器に容易に取り付けることができる。したがって、マンマシンコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。また、信号処理部に緊急データを迅速に送信することができる。更に、通信制御部がデータ移動に対する処理を行うため、時間的に高速となり、バッファフルである時間は殆どなくなるため、受信失敗の可能性は飛躍的に低いものとなる。したがって、モーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。 The present invention also provides a communication control module for a man-machine controller that controls data input / output and a servo controller that controls the operation of a controlled object, and a motion controller that transmits / receives data to / from the man-machine controller. A first connector unit that inputs the I / F, an I / F control unit that controls the interface based on the control data from the first connector unit, and the servo controller based on the control data from the I / F control unit A second connector for connecting to a signal processor for performing signal processing for controlling the I / F, and a dual port memory for reading and writing the control data from the I / F controller and the second connector Yes, and not via the dual-port memory from the I / F control unit, said second connector portion An interrupt line for directly outputting predetermined control data, and the I / F control unit includes a communication data conversion unit for converting control data from the man-machine controller into a predetermined data format, and the communication A buffer for storing data from the data conversion unit; and a communication control unit for outputting the data stored in the buffer to the dual port memory, wherein the communication control unit converts the communication data conversion It is determined whether the data from the man-machine controller input to the unit is emergency data. If the data from the man-machine controller is emergency data, the second connector unit is connected to the second connector unit via the interrupt line. After outputting interrupt data, after outputting the interrupt data, or when the data from the man-machine controller is not the emergency data , Characterized in that the data writing save from the man-machine controller to the dual port memory. Thereby, it can attach easily to the conventional apparatus using a connector. Therefore, large-capacity data can be exchanged at high speed without imposing an extra load on the control of the man-machine controller. Moreover, emergency data can be quickly transmitted to the signal processing unit. Furthermore, since the communication control unit performs processing for data movement, the time is high in speed and the time when the buffer is full is almost eliminated, so the possibility of reception failure is drastically reduced. Therefore, large-capacity data can be exchanged at high speed without imposing extra load on the control for the motion controller.
また、本発明は、請求項1又は請求項2に記載のモーションコントローラもしくは通信制御モジュールと同様の作用効果を奏する制御装置を提供することができる。 In addition, the present invention can provide a control device having the same effects as the motion controller or the communication control module according to claim 1 or claim 2 .
更に、前記マンマシンコントローラと、前記モーションコントローラもしくは通信制御モジュールとは、高速シリアル通信によりデータの送受信を行うことが好ましい。これにより、高速で大容量なデータの送受信を行うことができる。また、一般的な高速シリアル通信を用いることで、通常用意されているドライバを使用することができる。 Furthermore, it is preferable that the man-machine controller and the motion controller or the communication control module transmit and receive data by high-speed serial communication. Thereby, high-speed and large-capacity data can be transmitted and received. In addition, by using general high-speed serial communication, a driver that is normally prepared can be used.
また、本発明は、データの入出力を制御するマンマシンコントローラ及び制御対象物の動作を制御するサーボコントローラとデータの送受信を行うモーションコントローラの制御方法において、I/F制御部により前記マンマシンコントローラからの制御データを入力するI/F制御ステップと、前記I/F制御ステップにより得られる制御データに基づいて、信号処理部により前記サーボコントローラを制御するための信号処理を行う信号処理ステップと、前記I/F制御ステップ及び前記信号処理ステップにより得られるデータをデュアルポートメモリに読み書きするための読み書きステップとを有し、前記I/F制御ステップは、前記マンマシンコントローラからの制御データを所定のデータ形式に変換する通信データ変換ステップと、前記通信データ変換ステップにより得られるデータを保存する保存ステップと、前記保存ステップにより保存されているデータを前記デュアルポートメモリに出力する通信制御ステップとを有し、前記通信制御ステップは、前記通信データ変換ステップで入力した前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが緊急データである場合、前記I/F制御部から前記デュアルポートメモリを介さずに、前記信号処理部に直接所定の制御データを出力するための割込み線を介して割込みデータを出力し、前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とする。これにより、モーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。また、通信制御ステップがデータ移動に対する処理を行うため、時間的に高速となり、バッファフルである時間は殆どなくなるため、受信失敗の可能性は飛躍的に低いものとなる。したがって、モーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。更に、信号処理ステップに割込みデータを迅速に送信することができる。 Further, the present invention is a control method for a motion controller for transmitting and receiving the servo controllers and data for controlling the operation of the man-machine controller and the target object for controlling input and output of data, the man-machine controller by I / F control unit An I / F control step for inputting control data from a signal processing step; a signal processing step for performing signal processing for controlling the servo controller by a signal processing unit based on the control data obtained by the I / F control step; have a reading and writing step for reading and writing data obtained by the I / F control step and the signal processing step in the dual port memory, the I / F control step, the man-machine controller from the control data given in Communication data conversion step to convert to data format A storage step of storing the data obtained by the communication data conversion step, and a communication control step of outputting the data stored by the storage step to the dual port memory, wherein the communication control step includes the communication It is determined whether or not the data from the man-machine controller input in the data conversion step is emergency data. If the data from the man-machine controller is emergency data, the I / F control unit sends the dual-port memory. Without interrupting, outputting interrupt data via an interrupt line for outputting predetermined control data directly to the signal processing unit, and after outputting the interrupt data, or the data from the man-machine controller is the emergency If it is not data, the man-machine controller is stored in the dual port memory. Characterized by data write store from. As a result, large-capacity data can be exchanged at high speed without imposing an extra load on the control of the motion controller. In addition, since the communication control step performs processing for data movement, the time is high in speed and the time when the buffer is full is almost eliminated, so the possibility of reception failure is drastically reduced. Therefore, large-capacity data can be exchanged at high speed without imposing extra load on the control for the motion controller. Furthermore, interrupt data can be quickly transmitted to the signal processing step.
更に、前記マンマシンコントローラと、前記モーションコントローラとは、高速シリアル通信によりデータの送受信を行うことが好ましい。これにより、高速で大容量なデータの送受信を行うことができる。また、一般的な高速シリアル通信を用いることで、通常用意されているドライバを使用することができる。 Furthermore, it is preferable that the man-machine controller and the motion controller perform data transmission / reception by high-speed serial communication. Thereby, high-speed and large-capacity data can be transmitted and received. In addition, by using general high-speed serial communication, a driver that is normally prepared can be used.
本発明によれば、制御の負荷を軽減することができる。 According to the present invention, the control load can be reduced.
次に、本発明におけるモーションコントローラ、通信制御モジュール、制御装置、及び制御方法を好適に実施した形態について、図面を用いて説明する。なお、本発明における制御装置全体の概略構成は、上述した図1と同様なものを用いることができるため、ここでの説明は省略する。 Next, embodiments in which a motion controller, a communication control module, a control device, and a control method according to the present invention are suitably implemented will be described with reference to the drawings. In addition, since the thing similar to FIG. 1 mentioned above can be used for the schematic structure of the whole control apparatus in this invention, description here is abbreviate | omitted.
図7は、本発明のマンマシンコントローラ及びモーションコントローラにおける通信インターフェースを説明するための一例を示す図である。なお、図7に示す、マンマシンコントローラ61及び、モーションコントローラ62は、上述した図2に対応するものであり、図7において、マンマシンコントローラ61及びモーションコントローラ62は、図1におけるマンマシンコントローラ11及びモーションコントローラ12に対応するものである。
FIG. 7 is a diagram showing an example for explaining a communication interface in the man-machine controller and the motion controller of the present invention. The
図7に示すモーションコントローラ61は、アプリケーション71と、I/Fコントローラ72とを有するよう構成されている。また、モーションコントローラ62は、I/Fコントローラ(I/F制御部)73と、デュアルポートメモリ74と、CPU(信号処理部)75とを有するよう構成されている。なお、本発明では、モーションコントローラ62内に、上述したRAM25の変わりに通信I/F専用のデュアルポートメモリ74を設けてもよい。
The
ここで、デュアルポートメモリ74は、I/Fコントローラ73及びCPU75のどちらからの信号によってもデータの制御を行うことができる。そのため、モーションコントローラ62のCPU75の負担を軽減し、通信媒体変更の容易性を可能にするものである。
Here, the
なお、図7においては、マンマシンコントローラ61と、モーションコントローラ62とは、高速シリアル通信76を介してデータの送受信が可能な状態で接続されている。ここで、高速シリアル通信76とは、USB(Universal Serial Bus)2.0やIEEE1394等で規格化されている高速向けのデータ転送を指す。USB2.0であれば、最大480Mbpsの転送速度が可能であり、IEEE1394であれば、400Mbit/secのデータ転送モードを選択することで、高速データ通信を実現することができる。更に、高速シリアル通信76として光通信やギガビットイーサネット(登録商標)等を用いてデータ伝送を行ってもよい。また、高速シリアル通信76による通信形態は、有線でも無線でもよい。
In FIG. 7, the man-
マンマシンコントローラ61において、アプリケーション71は、上述したように、ユーザが機器を制御するための制御等を行うためのインターフェース機能を持ち、ユーザから入力された指令値等を制御信号(制御データ)としてI/Fコントローラ72に送信する。また、I/Fコントローラ72は、モーションコントローラ62にあるI/Fコントローラ73との通信制御を行う。また、I/Fコントローラ72は、アプリケーション71からデータや通信命令等を受けると、USB2.0等の高速シリアル通信76を介してデータをモーションコントローラ62に出力する。また、I/Fコントローラ72は、高速シリアル通信76を介してモーションコントローラ62から受信したデータをアプリケーション71に出力する。
In the man-
また、モーションコントローラ62にあるI/Fコントローラ73は、高速シリアル通信76の通信制御を行い、高速シリアル通信76経由で受信したデータ、コマンド等の指令をデュアルポートメモリ74に高速に保存する。また、I/Fコントローラ73は、デュアルポートメモリ74内のデータを高速シリアル通信76を介して送信することができる。ここで、I/Fコントローラ73は、緊急データ等のリアルタイム性が要求される信号を受信した場合には、割込み信号を生成し、生成した割込み信号を割込み線77を介して直接CPU75に出力する。これにより、CPU75に割込み信号を迅速に送信することができる。また、CPU75は、迅速に対応する処理を行うことができる。
Further, the I /
また、CPU75は、搭載されたアプリケーションにしたがって、各モータの軌道生成を行い、位置や速度、加速度指令等に変換し,バス等を経由して,上述した下位のそれぞれのサーボコントローラ13−1〜13−nにデータ列の形で出力する。なお、モーションコントローラ62は、構成、用途によっては、エンコーダやレーザ干渉計等の位置、速度、加速度センサの信号を受信することにより、位置や、速度、加速度フィードバックループを構成することもできる。
In addition, the
ここで、上述したマンマシンコントローラ61の詳細な機能構成は、上述した図3に示すマンマシンコントローラ11と同様なものを用いることができるため、ここでの説明は省略する。なお、図3におけるアプリケーション21及びI/Fコントローラ22が、それぞれ図7におけるアプリケーション71及びI/Fコントローラ72となる。
Here, since the detailed functional configuration of the man-
次に、本発明におけるモーションコントローラ62の詳細な機能構成例について図を用いて説明する。図8は、本発明におけるモーションコントローラの詳細な機能構成の一例を示す図である。図8におけるモーションコントローラは、I/Fコントローラ73として通信データ変換部81と、バッファ82と、通信制御部83とを有するよう構成されている。
Next, a detailed functional configuration example of the
また、I/Fコントローラ73及びデュアルポートメモリ74は、I/Fコントローラデータバス84を介してデータの送受信が可能な状態で接続されている。また、デュアルポートメモリ74及びCPU75は、CPUデータバス85を介してデータの送受信が可能な状態で接続されている。更に、I/Fコントローラデータバス84及びCPUデータバス85は、バス制御線86−1,86−2によりバス間の通信が制御されている。
The I /
図8に示すI/Fコントローラ73において、通信データ変換部81は、高速シリアル通信76を介して送信されたデータを受信し、バッファ82に保存するためのデータ形式に変換する。また、通信制御部83は、例えば通信データ変換部81がバッファ82に保存したデータの内容が緊急データであった場合、割込み信号を生成し、生成した割込み信号を割込み線77を介して直接CPU75に送信する。また、バッファ82に蓄積されたデータは、通信制御部83によってデュアルポートメモリ74に書き込まれる。
In the I /
デュアルポートメモリ74は、図8に示すように2方向にデータバス、アドレスバスを有するメモリであり、例えば、一方がデータを書き込んでいる際にも、他方から別の領域のデータを読み出したり別の領域に書き込んだりすることができる。これにより、高速な双方向のデータ授受を実現することができる。
As shown in FIG. 8, the
次に、本発明におけるモーションコントローラ62における受信処理手順及び送信処理手順について、図を用いて説明する。図9は、本発明におけるデータ受信時の制御処理手順の一例を示すフローチャートである。また、図10は、本発明におけるデータ送信時の制御処理手順の一例を示すフローチャートである。
Next, a reception processing procedure and a transmission processing procedure in the
図9における受信時の制御処理は、まずマンマシンコントローラ61からの制御信号(データ)を受信し(S21)、バッファ82がデータフルであるか否かを判断する(S22)。ここで、バッファ82がデータフルである場合(S22において、YES)、受信失敗として(S23)、処理を終了する。また、バッファ82がデータフルでない場合(S22において、NO)、通信データ変換部81によりデータ変換を行い(S24)、データをバッファ82に格納する(S25)。
In the control process at the time of reception in FIG. 9, first, a control signal (data) from the man-
また、データの内容が緊急データであるか否かを判断する(S26)。緊急データである場合(S26において、YES)、通信制御部83がCPU75に割込み信号を出力する(S27)。S27の処理が終了後、又は緊急データでない場合(S26において、NO)、通信制御部83がデータをデュアルポートメモリ74に書込み保存を行い(S28)、受信処理を終了する。なお、S28の処理によりバッファ82のデータがデュアルポートメモリ74に正常に保存された場合、バッファ82の対応するデータは消去されることになる。
Further, it is determined whether or not the content of the data is emergency data (S26). If the data is emergency data (YES in S26), the
一方、図10に示すように送信時の制御処理は、まず、CPU75が送信するデータをデュアルポートメモリ74に書込み、保存を行う(S31)。次に、通信制御部83がバッファ82の容量チェックを行い(S32)、バッファ82がデータフルになっているか否かを判断する(S33)。
On the other hand, as shown in FIG. 10, in the control process at the time of transmission, first, the data transmitted by the
ここで、バッファ82がデータフルである場合(S33において、YES)、S32に戻り、データがフルでなくなるまで確認を続けて行う。なお、この場合には通信制御部83がバッファ82に保存されているデータをデュアルポートメモリ74に書込み、保存するか、CPU75が割込みデータ等によりバッファ82からデータの読み込み処理を行うことで、バッファ82に空き容量ができる。
Here, if the
また、バッファ82がデータフルでない(データフルでなくなった)場合(S33において、NO)、通信制御部83がデュアルポートメモリ74のデータをバッファ82に書き込み(S34)、通信データ変換部81でデータを変換し(S35)、データを送信して(S36)、送信処理を終了する。
If the
このように、上述した実施形態によれば、デュアルポートメモリ74を有することでモーションコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。具体的には、上述したように、デュアルポートメモリ74をI/Fコントローラ73と、CPU75との間に介在させることにより、不定期な通信による割込みを減らすことができ、アプリケーションでデータを授受するタイミングを制御することができる。これにより、CPU75の負荷が低減し、パフォーマンスを向上させることができる。
As described above, according to the above-described embodiment, by having the
また、通信制御部83がデータ移動に対する処理を行うため、時間的に高速となり、バッファ82に保存されるデータがフルとなる時間は殆どなくなる。つまり、従来ではモーションコントローラのCPUが割込みによりデータを移動させていたのに対し、本発明では通信制御部83がデータ移動に対する処理を行う。したがって、従来の構成では通信回数、データ量が増加すると割込み発生頻度が増え、CPUの負荷が増大していたが、上述した実施形態の構成により、緊急時を除いて通信での割込みは発生しないため、通信回数、データ量が増加してもCPUの負荷は変わらない。そのため、時間的に高速となり、バッファフルである時間は殆どなくなるため、受信失敗の可能性は飛躍的に低いものとなる。これにより、モーションコントローラ62は、マンマシンコントローラ61に対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。
Further, since the
また、一般的な高速シリアルインターフェースを用いることにより、マンマシンコントローラ61に通常のPC等を使用することができ、これにより特別なハードウェアは不要となる。また、通常用意されているドライバが使用可能となり、本発明における新たなドライバ開発は不要となる。
In addition, by using a general high-speed serial interface, a normal PC or the like can be used for the man-
また、本実施形態におけるCPU75は、データ送信時にもデュアルポートメモリ74にデータを書込みさえすればよく、バッファ82内のデータが空になるまで待つ必要もなくなる。このように、本発明の構成及び手法を用いることにより、CPUの負荷を減少させることができ,また通信の高速化が実現できる。
Further, the
<モーションコントローラの他の実施形態>
なお、上述した本発明における実施形態は、モーションコントローラとして、I/Fコントローラと、デュアルメモリと、CPUとを有するよう構成されていたが、本発明においてはこの限りではなく、例えばI/Fコントローラ及びデュアルポートメモリのみを備えたモーションコントローラ用の通信制御モジュールとしてもよい。
<Other Embodiments of Motion Controller>
The embodiment in the present invention described above is configured to include an I / F controller, a dual memory, and a CPU as a motion controller. However, the present invention is not limited to this. For example, the I / F controller And a communication control module for a motion controller having only a dual port memory.
ここで、上述のモーションコントローラ用の通信制御モジュールの構成例について図を用いて説明する。図11は、本発明における通信制御モジュールの一例を示す図である。図11における通信制御モジュール90は、コネクタ(第1コネクタ部,第2コネクタ部)91−1,91−2と、I/Fコントローラ(I/F制御部)92と、デュアルポートメモリ93とを有するよう構成されている。コネクタ(第1コネクタ部)91−1は、マンマシンコントローラからのデータを高速シリアル通信を介して受信するためのコネクタである。また、コネクタ91−1は、受信したデータをI/Fコントローラ92に出力する。
Here, a configuration example of the above-described communication control module for the motion controller will be described with reference to the drawings. FIG. 11 is a diagram illustrating an example of a communication control module according to the present invention. The
I/Fコントローラ92は、上述した図8に示すように、通信データ変換部と、バッファと、通信制御部とを有するよう構成されている。ここで、通信制御部は、受信したデータが緊急データである場合には、割込み信号を生成し、生成した割込み信号を割込み線94を介してCPU(信号処理部)と接続されるコネクタ(第2コネクタ部)91−2に出力する。これにより、デュアルポートメモリ93を介すことなく、コネクタ91−2と接続されるCPUにデータを送信することができる。
As shown in FIG. 8 described above, the I /
また、デュアルポートメモリ93は、I/Fコントローラ92とコネクタ91−2の2方向にデータバス95−1,95−2、及びアドレスバス96−1,96−2を有するメモリであり、例えば一方が書き込んでいる際にも、他方が別の領域のデータを読み出したり別の領域に書き込んだりすることができる。これにより、高速な双方向のデータ授受を実現することができる。
The
このように、図11に示す構成を有する通信制御モジュール90を、データバス側コネクタ配列に対応したコネクタと接続することにより、簡単に高速な通信が可能となる。
In this way, by connecting the
<制御装置の他の実施形態>
ここで、本発明におけるモーションコントローラもしくは通信制御モジュールは、図1に示す制御装置に適用することもできるが、その他の制御装置の構成として、例えば、マンマシンコントローラと、モーションコントローラもしくは通信制御モジュールとの間にハブやルータ等の通信分岐装置を設けることによって、特別なソフトウェアを追加することなく、マンマシンコントローラと、モーションコントローラもしくは通信制御モジュールとの関係を「N対M(N,M≧1)」とすることができる。
<Other Embodiments of Control Device>
Here, the motion controller or the communication control module in the present invention can be applied to the control device shown in FIG. 1, but as other control device configurations, for example, a man-machine controller, a motion controller or a communication control module, By providing a communication branching device such as a hub or a router between them, the relationship between the man-machine controller and the motion controller or the communication control module can be expressed as “N vs. M (N, M ≧ 1) without adding special software. ) ”.
ここで、上述の構成例について図を用いて説明する。図12は、制御装置の他の実施形態の一例を示す図である。なお、図12に示す例では、マンマシンコントローラとモーションコントローラとの関係を「1対多」とする。図12において、制御装置100は、マンマシンインターフェースとしての中央制御装置101と、ハブ102と、モーションコントローラ103−1〜103−mと、それぞれのモーションコントローラに対応したサーボコントローラ104―11〜104mnと、サーボコントローラ104−mnに対応するモータ105−11〜105−mnとを有するよう構成されている。
Here, the above-described configuration example will be described with reference to the drawings. FIG. 12 is a diagram illustrating an example of another embodiment of the control device. In the example shown in FIG. 12, the relationship between the man-machine controller and the motion controller is “one-to-many”. In FIG. 12, the
図12に示すような構成において、モーションコントローラ103−1〜103−mに上述した本発明におけるモーションコントローラを適用することにより、上述したように、中央制御装置101に対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。これにより、1台の中央制御装置から複数の射出成形機や加工機を同時に迅速に制御することができる。 In the configuration shown in FIG. 12, by applying the above-described motion controller according to the present invention to the motion controllers 103-1 to 103-m, as described above, an extra load is applied to the control on the central controller 101. It is possible to exchange large volumes of data at high speed. As a result, a plurality of injection molding machines and processing machines can be quickly and simultaneously controlled from one central controller.
上述したように本発明によれば、マンマシンコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。具体的には、デュアルポートメモリを有することで不定期な通信による割込みを減らすことができ、アプリケーションでデータを授受するタイミングを制御することができる。これにより、モーションコントローラのCPUの負荷が低減し、パフォーマンスを向上させることができる。 As described above, according to the present invention, large-capacity data can be exchanged at high speed without imposing an extra load on the control of the man-machine controller. Specifically, by having a dual port memory, interrupts due to irregular communication can be reduced, and the timing of sending and receiving data by an application can be controlled. As a result, the load on the CPU of the motion controller can be reduced and the performance can be improved.
また、通信制御部が割込みに対する処理を行うため、時間的に高速となり、バッファに保存されるデータがフルとなる時間は殆どなくなる。つまり、従来ではモーションコントローラのCPUが割込みによりデータを移動させていたのに対し、本発明では通信制御部が割込みに対する処理を行う。したがって、従来の構成では通信回数、データ量が増加すると割込み発生頻度が増え、CPUの負荷が増大していたが、上述した実施形態の構成により、緊急時を除いて通信での割込みは発生しないため、通信回数、データ量が増加してもCPUの負荷は変わらない。そのため、時間的に高速となり、バッファフルである時間は殆どなくなるため、受信失敗の可能性は飛躍的に低いものとなる。これにより、モーションコントローラは、マンマシンコントローラに対する制御に余計な負荷をかけることなく、高速に大容量データを授受することができる。 In addition, since the communication control unit performs processing for interruption, the time is increased in speed, and there is almost no time for the data stored in the buffer to be full. That is, while the CPU of the motion controller conventionally moves data by interruption, in the present invention, the communication control unit performs processing for interruption. Therefore, in the conventional configuration, when the number of communications and the amount of data increase, the frequency of interrupts increases and the load on the CPU increases. However, according to the configuration of the above-described embodiment, no interrupts occur in communications except in an emergency. Therefore, the CPU load does not change even if the number of communications and the amount of data increase. For this reason, the time is high, and the time when the buffer is full is almost eliminated. Therefore, the possibility of reception failure is drastically reduced. As a result, the motion controller can exchange high-capacity data at high speed without imposing an extra load on the control of the man-machine controller.
また、一般的な高速シリアルインターフェースを用いることにより、マンマシンコントローラに通常のPC等を使用することができ、これにより特別なハードウェアは不要となる。また、通常用意されているドライバが使用可能となり、本発明における新たなドライバ開発は不要となる。 In addition, by using a general high-speed serial interface, a normal PC or the like can be used for the man-machine controller, thereby eliminating the need for special hardware. In addition, a normally prepared driver can be used, and new driver development in the present invention is not required.
なお、上述したモーションコントローラは、多軸モータコントローラや位置決めステージコントローラ、射出成形機用コントローラ、レーザ加工機用コントローラ、その他の産業機械コントローラ全般に適用することができる。 The motion controller described above can be applied to multi-axis motor controllers, positioning stage controllers, injection molding machine controllers, laser processing machine controllers, and other industrial machine controllers in general.
以上本発明の好ましい実施例について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形、変更が可能である。 The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to such specific embodiments, and various modifications, within the scope of the gist of the present invention described in the claims, It can be changed.
10,100 制御装置
11,61 マンマシンコントローラ
12,62,103 モーションコントローラ
13,104 サーボコントローラ
14,105 モータ
21,71 アプリケーション
22,23,72,92 I/Fコントローラ
24,75 CPU
25 RAM
26 シリアル通信
31 メイン処理部
32,83 通信制御部
33 汎用I/F
34 入出力装置ドライバ
35 LANドライバ
36 シリアル通信ドライバ
37 入出力装置
38 LANコントローラ
39 USBコントローラ
40 シリアル通信コントローラ
51,81 通信データ変換部
52,82 バッファ
53,95 データバス
54,77,94 割込み線
55,86 バス制御線
74,93 デュアルポートメモリ
76 高速シリアル通信
84 I/Fコントローラデータバス
85 CPUデータバス
90 通信制御モジュール
91 コネクタ
96 アドレスバス
101 中央制御装置
102 ハブ
10,100
25 RAM
26
34 I /
Claims (6)
前記マンマシンコントローラからの制御データを入力するI/F制御部と、
前記I/F制御部からの制御データに基づいて、前記サーボコントローラを制御するための信号処理を行う信号処理部と、
前記I/F制御部及び前記信号処理部からデータの読み書きを行うためのデュアルポートメモリとを有し、
前記I/F制御部から前記デュアルポートメモリを介さずに、前記信号処理部に直接所定の制御データを出力するための割込み線を有し、
前記I/F制御部は、
前記マンマシンコントローラからの制御データを所定のデータ形式に変換するための通信データ変換部と、
前記通信データ変換部からのデータを保存するためのバッファと、
前記バッファに保存されているデータを前記デュアルポートメモリに出力するための通信制御部とを有し、
前記通信制御部は、
前記通信データ変換部に入力された前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが前記緊急データである場合、前記割込み線を介して前記信号処理部に割込みデータを出力し、
前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とするモーションコントローラ。 In the man-machine controller that controls the input and output of data and the servo controller that controls the operation of the controlled object and the motion controller that sends and receives data,
An I / F control unit for inputting control data from the man-machine controller;
A signal processing unit that performs signal processing for controlling the servo controller based on control data from the I / F control unit;
Have a dual port memory for reading and writing data from the I / F control section and the signal processing unit,
An interrupt line for outputting predetermined control data directly from the I / F control unit to the signal processing unit without going through the dual port memory;
The I / F control unit
A communication data converter for converting control data from the man-machine controller into a predetermined data format;
A buffer for storing data from the communication data converter;
A communication control unit for outputting the data stored in the buffer to the dual port memory;
The communication control unit
It is determined whether or not the data from the man-machine controller input to the communication data conversion unit is emergency data, and when the data from the man-machine controller is the emergency data, the data is transmitted via the interrupt line. Output interrupt data to the signal processor,
A motion controller , wherein after outputting the interrupt data or when the data from the man-machine controller is not the emergency data, the data from the man-machine controller is written and stored in the dual port memory .
前記マンマシンコントローラからの制御データを入力する第1コネクタ部と、
前記第1コネクタ部からの制御データに基づいてインターフェースの制御を行うI/F制御部と、
前記I/F制御部からの制御データに基づいて、前記サーボコントローラを制御するための信号処理を行う信号処理部と接続するための第2コネクタ部と、
前記I/F制御部及び前記第2コネクタ部から前記制御データの読み書きを行うためのデュアルポートメモリとを有し、
前記I/F制御部から前記デュアルポートメモリを介さずに、前記第2コネクタ部に直接所定の制御データを出力するための割込み線を有し、
前記I/F制御部は、
前記マンマシンコントローラからの制御データを所定のデータ形式に変換するための通信データ変換部と、
前記通信データ変換部からのデータを保存するためのバッファと、
前記バッファに保存されているデータを前記デュアルポートメモリに出力するための通信制御部とを有し、
前記通信制御部は、
前記通信データ変換部に入力された前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが緊急データである場合、前記割込み線を介して前記第2コネクタ部に割込みデータを出力し、
前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とする通信制御モジュール。 In a communication control module for a motion controller that transmits and receives data to and from a man-machine controller that controls the input and output of data and a servo controller that controls the operation of the controlled object.
A first connector for inputting control data from the man-machine controller;
An I / F control unit for controlling an interface based on control data from the first connector unit;
A second connector for connecting to a signal processor for performing signal processing for controlling the servo controller based on control data from the I / F controller;
Have a dual port memory for reading and writing the control data from the I / F control portion and the second connector portion,
An interrupt line for outputting predetermined control data directly from the I / F control unit to the second connector unit without going through the dual port memory;
The I / F control unit
A communication data converter for converting control data from the man-machine controller into a predetermined data format;
A buffer for storing data from the communication data converter;
A communication control unit for outputting the data stored in the buffer to the dual port memory;
The communication control unit
It is determined whether the data from the man-machine controller input to the communication data conversion unit is emergency data. If the data from the man-machine controller is emergency data, the first data is transmitted via the interrupt line. 2 Output interrupt data to the connector
A communication control module which writes and stores data from the man-machine controller in the dual port memory after outputting the interrupt data or when the data from the man-machine controller is not the emergency data .
I/F制御部により前記マンマシンコントローラからの制御データを入力するI/F制御ステップと、
前記I/F制御ステップにより得られる制御データに基づいて、信号処理部により前記サーボコントローラを制御するための信号処理を行う信号処理ステップと、
前記I/F制御ステップ及び前記信号処理ステップにより得られるデータをデュアルポートメモリに読み書きするための読み書きステップとを有し、
前記I/F制御ステップは、
前記マンマシンコントローラからの制御データを所定のデータ形式に変換する通信データ変換ステップと、
前記通信データ変換ステップにより得られるデータを保存する保存ステップと、
前記保存ステップにより保存されているデータを前記デュアルポートメモリに出力する通信制御ステップとを有し、
前記通信制御ステップは、
前記通信データ変換ステップで入力した前記マンマシンコントローラからのデータが緊急データであるか否かを判断し、前記マンマシンコントローラからのデータが緊急データである場合、前記I/F制御部から前記デュアルポートメモリを介さずに、前記信号処理部に直接所定の制御データを出力するための割込み線を介して割込みデータを出力し、
前記割込みデータを出力後、又は、前記マンマシンコントローラからのデータが前記緊急データでない場合、前記デュアルポートメモリに前記マンマシンコントローラからのデータを書込み保存することを特徴とする制御方法。 In the control method of the motion controller that transmits and receives data with the man-machine controller that controls the input and output of data and the servo controller that controls the operation of the controlled object,
An I / F control step of inputting control data from the man-machine controller by an I / F control unit ;
A signal processing step for performing signal processing for controlling the servo controller by a signal processing unit based on the control data obtained by the I / F control step;
Have a reading and writing step for reading and writing data obtained by the I / F control step and the signal processing step in the dual port memory,
The I / F control step includes:
A communication data conversion step for converting control data from the man-machine controller into a predetermined data format;
A storage step of storing data obtained by the communication data conversion step;
A communication control step of outputting the data stored in the storage step to the dual port memory,
The communication control step includes
It is determined whether or not the data from the man-machine controller input in the communication data conversion step is emergency data. If the data from the man-machine controller is emergency data, the I / F control unit sends the dual data. Output interrupt data via an interrupt line for outputting predetermined control data directly to the signal processing unit without using a port memory,
A control method comprising: writing and storing data from the man-machine controller in the dual port memory after outputting the interrupt data or when the data from the man-machine controller is not the emergency data .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005179479A JP4584045B2 (en) | 2005-06-20 | 2005-06-20 | Motion controller, communication control module, control device, and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005179479A JP4584045B2 (en) | 2005-06-20 | 2005-06-20 | Motion controller, communication control module, control device, and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006350929A JP2006350929A (en) | 2006-12-28 |
JP4584045B2 true JP4584045B2 (en) | 2010-11-17 |
Family
ID=37646653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005179479A Expired - Fee Related JP4584045B2 (en) | 2005-06-20 | 2005-06-20 | Motion controller, communication control module, control device, and control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4584045B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013013523A1 (en) * | 2011-07-22 | 2013-01-31 | Jiang Junfeng | Movement control port and port controller |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015138525A (en) * | 2014-01-24 | 2015-07-30 | 株式会社東芝 | virtual plant monitoring control device |
CN106020126A (en) * | 2016-06-30 | 2016-10-12 | 山东鲁南机床有限公司 | Large-span dual-drive synchronizing device for glass engraving machine |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3486774B2 (en) * | 2000-03-13 | 2004-01-13 | 住友重機械工業株式会社 | Multi-axis control system |
JP2004078895A (en) * | 2002-06-17 | 2004-03-11 | Sanyo Electric Co Ltd | Distributed control system, and distributed control method |
JP2004147243A (en) * | 2002-10-28 | 2004-05-20 | Nec Engineering Ltd | Packet communication system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08339220A (en) * | 1995-06-14 | 1996-12-24 | Sekisui Chem Co Ltd | Nc controller for machine tool |
JPH10326107A (en) * | 1997-03-25 | 1998-12-08 | Mitsubishi Electric Corp | Method and system for servocontrol |
-
2005
- 2005-06-20 JP JP2005179479A patent/JP4584045B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3486774B2 (en) * | 2000-03-13 | 2004-01-13 | 住友重機械工業株式会社 | Multi-axis control system |
JP2004078895A (en) * | 2002-06-17 | 2004-03-11 | Sanyo Electric Co Ltd | Distributed control system, and distributed control method |
JP2004147243A (en) * | 2002-10-28 | 2004-05-20 | Nec Engineering Ltd | Packet communication system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013013523A1 (en) * | 2011-07-22 | 2013-01-31 | Jiang Junfeng | Movement control port and port controller |
Also Published As
Publication number | Publication date |
---|---|
JP2006350929A (en) | 2006-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101989085B (en) | Controller | |
KR20010012476A (en) | Robot control device | |
JP5146656B2 (en) | FA equipment and file access system | |
WO2002015480A2 (en) | Method and system for automatically gathering information from different types of devices connected in a network when a device fails | |
JP2002016613A (en) | Electronic equipment, electronic equipment system and communication control method | |
JP4584045B2 (en) | Motion controller, communication control module, control device, and control method | |
CN116132383B (en) | Information transmission device, system and method | |
CN102426560B (en) | Controlled plant and controlled method | |
CN110989927B (en) | Data storage device with self-access file data capability | |
JP2006343815A (en) | Communication device, communication method, and communication system | |
US20080140931A1 (en) | Disk array system, disk array method, and computer product | |
US20220283622A1 (en) | Method for information configuration in power mode change for an interconnection protocol, controller and storage device | |
US7336657B2 (en) | Inter-nodal data transfer system and data transfer apparatus | |
JP4335108B2 (en) | Transceiver module | |
JP5305754B2 (en) | Information processing apparatus, client, information processing method, and program | |
CN103324113B (en) | Interface device and method for consistently exchanging data | |
JP2012049812A (en) | Communication apparatus | |
JP2004152156A (en) | Interface conversion device | |
CN115473761B (en) | Communication method, system, equipment and medium of CAN bus based on DCS system | |
JP2605491B2 (en) | Equipment management controller | |
CN114443545B (en) | Interface expansion method, device, management system and related equipment | |
WO2023281805A1 (en) | Communication system, control system, and communication method | |
JP4240262B2 (en) | Process control device | |
JP2006106999A (en) | Programmable controller | |
JP2009010759A (en) | Serial signal conversion apparatus and serial signal conversion method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070717 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100608 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100809 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100831 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100901 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130910 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |