JPH0876822A - Drive control command device and synchronization control system and method for plural drive control command devices - Google Patents

Drive control command device and synchronization control system and method for plural drive control command devices

Info

Publication number
JPH0876822A
JPH0876822A JP21124294A JP21124294A JPH0876822A JP H0876822 A JPH0876822 A JP H0876822A JP 21124294 A JP21124294 A JP 21124294A JP 21124294 A JP21124294 A JP 21124294A JP H0876822 A JPH0876822 A JP H0876822A
Authority
JP
Japan
Prior art keywords
drive control
control command
command device
signal
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP21124294A
Other languages
Japanese (ja)
Inventor
Hideaki Takaku
秀昭 高久
Nobuyasu Takagi
伸泰 高木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP21124294A priority Critical patent/JPH0876822A/en
Publication of JPH0876822A publication Critical patent/JPH0876822A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To obtain a drive control command device which can construct a synchronization system that is capable of a synchronizing operation with no step-out, in a system constructed by plural drive control command devices. CONSTITUTION: The drive control command device consists of an operation clock generation part 9, an interruption generation part 11 which outputs interruption signal for each operation clock, an office number setting part 13 which sets office number to show whether the drive control command device is to be operated as a master or a slave, a synchronizing timing signal transmission part 15 which operates only when the drive control command device is used as a master and outputs a synchronizing timing signal based on the operation clock, a synchronization control part 18 which operates only when the drive control command device is used as a slave and outputs a synchronizing operation start signal based on the error state signal showing a preparatory state or a synchronous state of the synchronizing operation and also on the synchronizing tiling signal received from the drive control command device serving as a master, a synchronization checking part 22 which decides whether the operation of the drive control command device serving as a slave is in synchronism with that of the command device serving as a master or not, and an error signal generation part 24 which outputs error signal based on the error state signal.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、一般産業機械などの
分野において、例えば、コンベアの動きに同期して、数
台の各種のロボットが一斉に異なった作業をする組立ラ
インのようにある機械の動きに同期して、複数台の駆動
制御指令装置を同期制御する方法、複数台の駆動制御指
令装置の同期制御システム及び同期制御システムに使用
する駆動制御指令装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a general industrial machine and the like, for example, an assembly line in which several various robots simultaneously perform different operations in synchronization with the movement of a conveyor. The present invention relates to a method of synchronously controlling a plurality of drive control command devices in synchronization with the movement of the drive control system, a synchronous control system of the plurality of drive control command devices, and a drive control command device used in the synchronous control system.

【0002】[0002]

【従来の技術】図12は従来例の駆動制御指令装置によ
る同期システムの構成図である。図において、144は
駆動制御指令装置、8は駆動制御指令装置144の動作
の制御を行うマイクロコンピュータ、9は動作クロック
5を発生する動作クロック発生部、11は動作クロック
5に基づいてマイクロコンピュータ8に割り込みをかけ
るための割り込み信号12を出力する割り込み発生部、
4は駆動制御指令装置によりモーション制御される駆動
制御装置、145は回転角度の応じたパルス146を出
力する位置検出部、147はパルス146をカウントす
るパルスカウンタである。
2. Description of the Related Art FIG. 12 is a block diagram of a synchronization system using a conventional drive control command device. In the figure, 144 is a drive control command device, 8 is a microcomputer that controls the operation of the drive control command device 144, 9 is an operation clock generation unit that generates an operation clock 5, and 11 is a microcomputer 8 based on the operation clock 5. An interrupt generator that outputs an interrupt signal 12 for interrupting the
Reference numeral 4 is a drive control device that is motion-controlled by a drive control command device, 145 is a position detector that outputs a pulse 146 according to the rotation angle, and 147 is a pulse counter that counts the pulse 146.

【0003】従来の駆動制御指令装置は上記のように構
成されているので、それぞれの駆動制御指令装置144
の電源が投入されると、動作クロック発生部9が動作を
開始して、動作クロック5を発生する。割り込み発生部
11は動作クロック5の立ち下がりに同期して割り込み
信号12をマイクロコンピュータ8に出力する。マイク
ロコンピュータ8は、割り込みレベルに基づいて、割り
込み信号12による割り込みを許可できるかを判断し
て、割り込みを許可できる場合には割り込み信号12に
よる割り込み処理を実行する。この割り込み処理はそれ
ぞれの駆動制御指令装置により異なっている。
Since the conventional drive control command device is constructed as described above, each drive control command device 144 is
When the power is turned on, the operation clock generator 9 starts operating and generates the operation clock 5. The interrupt generator 11 outputs an interrupt signal 12 to the microcomputer 8 in synchronization with the fall of the operation clock 5. The microcomputer 8 determines whether the interrupt by the interrupt signal 12 can be permitted based on the interrupt level, and when the interrupt can be permitted, executes the interrupt processing by the interrupt signal 12. This interrupt processing differs depending on each drive control command device.

【0004】また、1台の位置検出部145に同期して
複数の駆動制御指令装置144を動作させる場合につい
て説明すると、まず、位置検出部145はその回転角度
に応じたパルス146を同時に複数の駆動制御指令装置
144に与える。それぞれの駆動制御指令装置144は
パルスカウンタ147でパルス146のカウントを行
う。次に、マイクロコンピュータ8がパルスカウンタ1
47からデータを読み出し、そのデータに応じて駆動制
御装置4に指令を与えて制御を行う。したがって、1台
の位置検出部145の回転に同期して複数の駆動制御指
令装置144を動作させることができる。
Further, a case where a plurality of drive control command devices 144 are operated in synchronization with one position detecting section 145 will be described. First, the position detecting section 145 simultaneously generates a plurality of pulses 146 according to the rotation angle thereof. It is given to the drive control command device 144. Each drive control command device 144 counts pulses 146 with a pulse counter 147. Next, the microcomputer 8 sets the pulse counter 1
The data is read from 47, and a command is given to the drive control device 4 according to the data to perform control. Therefore, the plurality of drive control command devices 144 can be operated in synchronization with the rotation of the single position detection unit 145.

【0005】図13は特開平5−73147号公報で開
示された位置決め装置で実施されている装置間の同期の
従来例である。148aはマスターの位置決め装置、1
48bはスレーブの位置決め装置、149は位置決めコ
ントローラの内部処理を制御するCPU、150はマス
ターとスレーブ間でデータ交信を行う通信インターフェ
ースであり、マスターとスレーブはデータ通信線151
と同期クロック線152で接続されている。
FIG. 13 shows a conventional example of synchronization between devices implemented by the positioning device disclosed in Japanese Patent Laid-Open No. 5-73147. 148a is a master positioning device, 1
48b is a slave positioning device, 149 is a CPU that controls the internal processing of the positioning controller, 150 is a communication interface that performs data communication between the master and slave, and the master and slave are data communication lines 151.
And a synchronous clock line 152.

【0006】図13の従来例は上記のように構成されて
いるので、マスターの位置決め装置148aとスレーブ
の位置決め装置148bとの間でデータ通信線151を
介して位置情報の授受を行い、位置情報をマスターの位
置決め装置148aとスレーブの位置決め装置148b
で共有することによってマスターとスレーブの同期を取
っている。また、位置情報の授受の処理や駆動装置に対
する処理を時分割し、かつ、マスターの位置決め装置1
48aとスレーブの位置決め装置148bのそれぞれの
処理を開始するタイミングを合わせるために、マスター
の位置決め装置148aからスレーブの位置決め装置1
48bに対して同期クロック線152を介してクロック
を供給している。
Since the conventional example of FIG. 13 is configured as described above, position information is exchanged between the master positioning device 148a and the slave positioning device 148b via the data communication line 151. A master positioning device 148a and a slave positioning device 148b
The master and slave are synchronized by sharing in. Further, the position information transfer process and the drive device process are time-divided, and the master positioning device 1
In order to match the timing of starting the processing of each of the positioning device 48a and the slave positioning device 148b, the master positioning device 148a to the slave positioning device 1
A clock is supplied to 48b through a synchronous clock line 152.

【0007】図14は特開平3−154450号公報で
開示されたディジタル装置の同期方式の従来例である。
153は外部装置からの受信信号154を受信する受信
回路、155は受信信号154を受信した瞬間の受信タ
イミング156を抽出するタイミング抽出回路、157
は受信信号154の信号レベルが変化しなくなり、受信
タイミング156のタイミングを抽出できなくなったこ
とを検出するタイミング断検出回路、158は外部装置
から供給される外部クロック、159は外部クロック1
58の信号レベルが変化しなくなったことを検出する外
部クロック断検出回路、160は基準クロック163の
出力されるタイミングを受信タイミング156か、外部
クロック158か、内部のクロックのどれかのタイミン
グに合わせるモードを切り換えるモード制御回路、16
1はモード切り換えスイッチ、162は基準クロック1
63を作り出すクロック発生部である。
FIG. 14 shows a conventional example of a synchronization system of a digital device disclosed in Japanese Patent Laid-Open No. 3-154450.
Reference numeral 153 is a reception circuit for receiving a reception signal 154 from an external device, 155 is a timing extraction circuit for extracting a reception timing 156 at the moment when the reception signal 154 is received, 157.
Is a timing disconnection detection circuit for detecting that the signal level of the reception signal 154 has not changed and the timing of the reception timing 156 cannot be extracted. 158 is an external clock supplied from an external device. 159 is an external clock 1.
An external clock loss detection circuit for detecting that the signal level of 58 does not change, 160 adjusts the output timing of the reference clock 163 to any timing of the reception timing 156, the external clock 158, and the internal clock. Mode control circuit for switching modes, 16
1 is a mode switch, 162 is a reference clock 1
It is a clock generator that produces 63.

【0008】図14の従来例は上記のように構成されて
いるので、受信回路153で受信した受信信号154を
タイミング抽出回路155に出力し、タイミング抽出回
路155で受信したタイミングに同期して受信タイミン
グ156を抽出する。また、モード制御回路160は、
タイミング断検出回路157と外部クロック断検出回路
159でタイミングの抽出ができたかどうかの検出結果
に基づいて、タイミング抽出回路155から出力された
タイミング信号か、外部から供給された外部クロック1
58か、あるいは内部動作の3つのモードを選択する。
モード制御回路160で選択された出力がクロック発生
部162に入力され、基準クロック163を生成する。
Since the conventional example of FIG. 14 is configured as described above, the reception signal 154 received by the reception circuit 153 is output to the timing extraction circuit 155, and is received in synchronization with the timing received by the timing extraction circuit 155. The timing 156 is extracted. In addition, the mode control circuit 160
The timing signal output from the timing extraction circuit 155 or the external clock 1 supplied from the outside based on the detection result of whether the timing can be extracted by the timing disconnection detection circuit 157 and the external clock disconnection detection circuit 159.
58, or three modes of internal operation.
The output selected by the mode control circuit 160 is input to the clock generator 162, and the reference clock 163 is generated.

【0009】[0009]

【発明が解決しようとする課題】図12及び図13の従
来例の駆動制御指令装置を複数台用いて同期システムを
構成する場合、それぞれの駆動制御指令装置の動作クロ
ックは全く非同期に動作する。例えば、図15(a)の
ように駆動制御指令装置の電源の個々の特性の差によ
り、同時に電源スイッチを投入したにもかかわらず、駆
動制御指令装置の内部の電源電圧の立ち上がりのタイミ
ングに差が生じた場合、マスターとスレーブの駆動制御
指令装置の動作クロックはずれを生じる。また、図15
(b)のように電源電圧の立ち上がりのタイミングが同
時であっても、クロック発生部を構成する水晶発振器や
カウンタの個々の特性の差により、それぞれの駆動制御
指令装置の動作クロックの同期に差が生じた場合、それ
ぞれの動作クロック間のずれは累積する。そのため、そ
れぞれの駆動制御指令装置は独自のタイミングで出され
た動作クロックに基づいて独立して動作することになる
ため、外部から供給された同期クロックで単に同期を取
っても動作クロックの周期により、それぞれの駆動制御
指令装置の動作において最大で動作クロックの1周期分
のタイミング誤差が生じる。そのため、駆動制御装置の
動作速度が速い場合には同期のずれによる各駆動制御装
置の位置のずれが顕著になり、複数台の機械の協調をと
ることができなくなる。
When a synchronous system is constructed by using a plurality of conventional drive control command devices of FIGS. 12 and 13, the operation clocks of the respective drive control command devices operate completely asynchronously. For example, as shown in FIG. 15A, due to the difference in individual characteristics of the power supplies of the drive control command device, even if the power switches are turned on at the same time, there is a difference in the timing of the rise of the power supply voltage inside the drive control command device. Occurs, the operation clocks of the master and slave drive control command devices are displaced. In addition, FIG.
Even if the rising timings of the power supply voltages are the same as in (b), there is a difference in the synchronization of the operation clocks of the respective drive control command devices due to the differences in the individual characteristics of the crystal oscillators and counters that make up the clock generator. When the error occurs, the deviation between the respective operation clocks is accumulated. Therefore, since each drive control command device operates independently based on the operation clock issued at its own timing, even if synchronization is simply achieved with a synchronization clock supplied from the outside, In each operation of the drive control command device, a maximum timing error of one cycle of the operation clock occurs. Therefore, when the operation speed of the drive control device is high, the position shift of each drive control device due to the shift of synchronization becomes remarkable, and it becomes impossible to coordinate a plurality of machines.

【0010】また、従来の駆動制御指令装置を複数台と
位置検出手段を1台で同期システムを構成する場合、そ
れぞれの駆動制御指令装置が位置検出手段からの位置デ
ータを独自の処理のタイミングで読み出し、その位置デ
ータに基づき独立して駆動制御装置の制御を行うため、
動作クロック1周期分のタイミング誤差に加え、さら
に、読み出し周期1周期分のタイミング誤差が生じる。
また、1台の駆動制御指令装置が受け取った位置データ
に異常が生じると、その駆動制御指令装置だけが同期か
ら外れてしまったままで同期運転を継続してしまう。
Further, when a plurality of conventional drive control command devices and one position detecting means constitute a synchronizing system, each drive control command device receives the position data from the position detecting means at its own processing timing. To read out and control the drive controller independently based on the position data,
In addition to the timing error of one operation clock cycle, a timing error of one read cycle is generated.
Further, if an abnormality occurs in the position data received by one drive control command device, only the drive control command device is kept out of synchronization and the synchronous operation is continued.

【0011】また、図14の同期方式の従来例は、外部
クロックや受信信号が外部装置から入力されなくなった
場合にしかタイミング断エラーを検出できない。そのた
め、受信信号の受信タイミングや外部クロックがずれて
マスターとスレーブの間の同期タイミングがずれても検
出できず、マスターとスレーブが異なったタイミングで
動作し、同期運転ができなくなってしまう。
Further, in the conventional example of the synchronous system shown in FIG. 14, the timing disconnection error can be detected only when the external clock or the received signal is not input from the external device. Therefore, even if the reception timing of the reception signal or the external clock is deviated and the synchronization timing between the master and the slave is deviated, it cannot be detected, the master and the slave operate at different timings, and the synchronous operation cannot be performed.

【0012】この発明はこのような問題点を解消するた
めになされたもので、複数台の駆動制御指令装置で構成
されたシステムにおいて、同期ずれのない同期運転が可
能な同期システムを構成できる駆動制御指令装置、およ
び1台の位置検出手段と複数台の駆動制御指令装置で構
成されたシステムにおいて、位置検出手段からの位置デ
ータを全ての駆動制御指令装置が正常に受信している場
合にだけ同期ずれのない同期運転が可能な同期システム
を構成できる駆動制御指令装置を得ることを目的として
いる。
The present invention has been made in order to solve such a problem, and in a system including a plurality of drive control command devices, a drive system capable of forming a synchronous system capable of synchronous operation without synchronization deviation. In a system including a control command device and one position detection means and a plurality of drive control command devices, only when all the drive control command devices normally receive the position data from the position detection means. An object of the present invention is to obtain a drive control command device capable of configuring a synchronous system capable of synchronous operation without synchronization deviation.

【0013】[0013]

【課題を解決するための手段】この発明に係る駆動制御
指令装置は、動作クロック発生手段の発生する動作クロ
ックの周期ごとに割り込み信号を出力する割り込み発生
手段と、前記第一の駆動制御指令装置として使用する場
合にだけ動作して前記動作クロックに基づいて同期タイ
ミング信号を出力する同期タイミング信号送信手段と、
前記第二の駆動制御指令装置として使用する場合にだけ
動作して同期動作の準備状態や同期状態を示すエラー状
態信号と前記第一の駆動制御指令装置から受信した同期
タイミング信号に基づいて同期動作開始信号を出力する
同期制御手段と、前記第二の駆動制御指令装置の動作が
前記第一の駆動制御指令装置の動作に同期しているかを
判定する同期チェック手段と、エラー状態信号に基づい
てエラー信号を出力するエラー信号生成手段と、前記第
一の駆動制御指令装置として使用する場合に移動開始信
号を出力するとともに同期制御を行い、前記第二の駆動
制御指令装置として使用する場合に移動開始信号の入力
により同期制御を行うマイクロコンピュータと、を備え
たものである。
A drive control command device according to the present invention comprises an interrupt generating means for outputting an interrupt signal for each cycle of an operation clock generated by the operation clock generating means, and the first drive control command device. A synchronous timing signal transmitting unit that operates only when used as the above and outputs a synchronous timing signal based on the operating clock;
Synchronous operation based on an error status signal that operates only when used as the second drive control command device and indicates a preparation state or synchronous state of a synchronous operation and a synchronization timing signal received from the first drive control command device A synchronization control unit that outputs a start signal, a synchronization check unit that determines whether the operation of the second drive control command device is in synchronization with the operation of the first drive control command device, and based on an error state signal An error signal generating unit that outputs an error signal, and outputs a movement start signal when used as the first drive control command device and performs synchronous control, and moves when used as the second drive control command device. And a microcomputer that performs synchronous control by inputting a start signal.

【0014】また、この発明に係る駆動制御指令装置
は、水晶発振器から出力されたクロックをN分の1に分
周して動作クロックを生成するためのカウント手段の値
を、同期タイミング信号のレベルが変化した瞬間にラッ
チするためのラッチ手段、このラッチ手段のラッチ内容
を予め設定しておいた値と比較して同期が正常であるか
をチェックする同期チェック手段を設けたものである。
Further, in the drive control command device according to the present invention, the value of the counting means for generating the operation clock by dividing the clock output from the crystal oscillator by 1 / N is the level of the synchronization timing signal. The latch means is provided for latching at the moment when is changed, and the synchronization check means for comparing the latch contents of the latch means with a preset value to check whether the synchronization is normal is provided.

【0015】また、この発明に係る駆動制御指令装置の
同期制御システムは、第二の駆動制御指令装置に対して
同期タイミング信号および移動開始信号を出力する第一
の駆動制御指令装置と、第一の駆動制御指令装置から受
信した前記同期タイミング信号に基づいて第一の駆動制
御指令装置との動作クロックの同期をとるとともに、受
信した前記移動開始信号に基づいて同期運転を実行する
第二の駆動制御指令装置と、を備えたものである。
A synchronous control system for a drive control command device according to the present invention includes a first drive control command device for outputting a synchronization timing signal and a movement start signal to the second drive control command device; The second drive for synchronizing the operation clock with the first drive control command device based on the synchronization timing signal received from the drive control command device and executing the synchronous operation based on the received movement start signal. And a control command device.

【0016】また、この発明に係る駆動制御指令装置
は、第一の駆動制御指令装置として使用する場合に移動
開始信号を出力するとともに同期制御を行い、第二の駆
動制御指令装置として使用する場合に移動開始信号の入
力により同期制御を行うマイクロコンピュータと、動作
クロック発生手段の発生する動作クロックの周期ごとに
マイクロコンピュータへの割り込み信号を出力する割り
込み発生手段と、第一の駆動制御指令装置となる場合に
動作して前記マイクロコンピュータからのパラレルデー
タをシリアルデータに変換するパラレル/シリアルデー
タ変換手段と、第二の駆動制御指令装置となる場合に動
作して第一の駆動制御指令装置から受信したシリアルデ
ータをマイクロコンピュータで扱える様にパラレルデー
タに変換するシリアル/パラレルデータ変換手段と、パ
ラレル/シリアルデータ変換手段あるいはシリアルパラ
レルデータ変換手段でシリアルデータを送信あるいは受
信するためのタイミングを取るシフトクロックを出力す
るシフトクロック生成手段と、第二の駆動制御指令装置
となる場合に動作して2重に受信したシリアルデータを
比較して異常がないかをチェックすると同時に運転状態
を非同期運転から同期運転へ、あるいは同期運転から非
同期運転へ切り換えるための運転モードを認識するコー
ド比較手段と、を備えたものである。
When the drive control command device according to the present invention is used as the second drive control command device, it outputs a movement start signal and performs synchronous control when used as the first drive control command device. A microcomputer for performing synchronous control by inputting a movement start signal, interrupt generating means for outputting an interrupt signal to the microcomputer in each cycle of the operation clock generated by the operation clock generating means, and a first drive control command device, And parallel / serial data conversion means for operating parallel data from the microcomputer to serial data, and operating for the second drive control command device and receiving from the first drive control command device. Serial that converts the serial data into parallel data so that it can be handled by a microcomputer / Parallel data conversion means, parallel / serial data conversion means or serial / parallel data conversion means, shift clock generation means for outputting a shift clock that takes timing for transmitting or receiving serial data, and second drive control command device If it is, the serial data received twice is compared to check if there is any abnormality, and at the same time the operation mode for switching the operation state from asynchronous operation to synchronous operation or from synchronous operation to asynchronous operation is recognized. And a code comparison means for doing so.

【0017】さらに、この発明に係る駆動制御指令装置
は、動作クロック発生手段の発生する動作クロックの周
期ごとに前記マイクロコンピュータへの割り込み信号を
出力する割り込み発生手段と、第一の駆動制御指令装置
として使用する場合にだけ動作して前記動作クロックに
基づいて同期タイミング信号を出力する同期タイミング
信号送信手段と、第二の駆動制御指令装置として使用す
る場合にだけ動作して同期動作の準備状態や同期状態を
示すエラー状態信号と第一の駆動制御指令装置から受信
した同期タイミング信号に基づいて同期動作開始信号を
出力する同期制御手段と、第二の駆動制御指令装置の動
作が第一の駆動制御指令装置の前記駆動制御指令装置の
動作に同期しているかを判定する同期チェック手段と、
エラー状態信号に基づいてエラー信号を出力するエラー
信号生成手段と、第一の駆動制御指令装置からのリクエ
ストデータに応じて位置検出手段に位置データの送信を
要求するリクエスト信号を出力するパラレル/シリアル
データ変換手段、前記位置検出手段から受信したシリア
ル形式の位置データをパラレルデータに変換するシリア
ル/パラレルデータ変換手段、前記位置データが正常に
入力されたことをチェックする通信チェック手段を備え
たものである。
Further, the drive control command device according to the present invention includes an interrupt generating means for outputting an interrupt signal to the microcomputer at each cycle of the operation clock generated by the operation clock generating means, and a first drive control command device. And a synchronization timing signal transmitting means for operating only when used as a second drive control command device and a synchronization timing signal transmitting means for outputting a synchronization timing signal based on the operation clock. Synchronous control means for outputting a synchronous operation start signal based on an error status signal indicating a synchronous state and a synchronous timing signal received from the first drive control command device, and the operation of the second drive control command device is the first drive A synchronization check means for determining whether or not the operation of the drive control command device of the control command device is synchronized;
Error signal generating means for outputting an error signal based on an error state signal, and parallel / serial for outputting a request signal requesting the position detecting means to transmit position data in response to request data from the first drive control command device. Data conversion means, serial / parallel data conversion means for converting the serial position data received from the position detection means into parallel data, and communication check means for checking that the position data has been normally input. is there.

【0018】また、この発明に係る駆動制御指令装置
は、第二の駆動制御指令装置で通信エラーが発生した場
合に、通信エラーの発生を第一の駆動制御指令装置に知
らせるために、同期チェックに使用するエラー信号生成
手段とエラー信号を共用するものである。
Further, the drive control command device according to the present invention, when the communication error occurs in the second drive control command device, in order to notify the first drive control command device of the occurrence of the communication error, a synchronization check is performed. The error signal is shared with the error signal generating means used for.

【0019】また、この発明に係る駆動制御指令装置の
同期制御システムは、第二の駆動制御指令装置に対して
同期タイミング信号および移動開始信号を出力するとと
もに、位置検出手段にリクエスト信号を出力し、この位
置検出手段からの位置データに同期して同期運転を実行
する第一の駆動制御指令装置と、第一の駆動制御指令装
置から受信した前記同期タイミング信号に基づいて第一
の駆動制御指令装置との動作クロックの同期をとるとと
もに、受信した前記移動開始信号および前記位置検出手
段からの位置データに同期して同期運転を実行する第二
の駆動制御指令装置と、を備えたものである。
Further, the synchronous control system of the drive control command device according to the present invention outputs the synchronization timing signal and the movement start signal to the second drive control command device and also outputs the request signal to the position detecting means. A first drive control command device that executes a synchronous operation in synchronization with the position data from the position detection means, and a first drive control command based on the synchronization timing signal received from the first drive control command device. A second drive control command device that synchronizes an operation clock with the device and executes a synchronous operation in synchronization with the received movement start signal and the position data from the position detection means. .

【0020】[0020]

【作用】この発明においては、同期タイミング信号送信
手段は第一の駆動制御指令装置として使用する場合にだ
け動作クロックに基づいて同期タイミング信号を出力
し、同期制御手段は第二の駆動制御指令装置として使用
する場合にだけ同期動作の準備状態や同期状態を示すエ
ラー状態信号と前記第一の駆動制御指令装置から受信し
た同期タイミング信号に基づいて同期動作開始信号を出
力することにより、第二の駆動制御指令装置の動作クロ
ックを第一の駆動制御指令装置の動作クロックと同じタ
イミングで発生させることが出来る。
In the present invention, the synchronization timing signal transmitting means outputs the synchronization timing signal based on the operation clock only when it is used as the first drive control command device, and the synchronization control means is the second drive control command device. By outputting the synchronous operation start signal based on the synchronization status signal received from the first drive control command device and the error status signal indicating the synchronous operation preparation state or the synchronous status only when used as the second The operation clock of the drive control command device can be generated at the same timing as the operation clock of the first drive control command device.

【0021】また、水晶発振器から出力されたクロック
をN分の1に分周して動作クロックを生成するためのカ
ウント手段の値を、同期タイミング信号のレベルが変化
した瞬間にラッチするためのラッチ手段、このラッチ手
段のラッチ内容を予め設定しておいた値と比較して同期
が正常であるかをチェックする同期チェック手段を設け
たので、第二の駆動制御指令装置の動作クロックが第一
の駆動制御指令装置の動作クロックから同期ずれを起こ
したことが判定できる。
A latch for latching the value of the counting means for dividing the clock output from the crystal oscillator by 1 / N to generate the operation clock at the moment when the level of the synchronization timing signal changes. Means, and a synchronization check means for comparing the latch content of the latch means with a preset value to check whether the synchronization is normal, the operation clock of the second drive control command device is It is possible to determine that the synchronization deviation has occurred from the operation clock of the drive control command device.

【0022】また、第一の駆動制御指令装置として使用
する場合に移動開始信号を出力するとともに同期制御を
行い、第二の駆動制御指令装置として使用する場合に移
動開始信号の入力により同期制御を行うマイクロコンピ
ュータと、動作クロック発生手段の発生する動作クロッ
クの周期ごとにマイクロコンピュータへの割り込み信号
を出力する割り込み発生手段と、第一の駆動制御指令装
置となる場合に動作して前記マイクロコンピュータから
のパラレルデータをシリアルデータに変換するパラレル
/シリアルデータ変換手段と、第二の駆動制御指令装置
となる場合に動作して第一の駆動制御指令装置から受信
したシリアルデータをマイクロコンピュータで扱える様
にパラレルデータに変換するシリアル/パラレルデータ
変換手段と、パラレル/シリアルデータ変換手段あるい
はシリアルパラレルデータ変換手段でシリアルデータを
送信あるいは受信するためのタイミングを取るシフトク
ロックを出力するシフトクロック生成手段と、第二の駆
動制御指令装置となる場合に動作して2重に受信したシ
リアルデータを比較して異常がないかをチェックすると
同時に運転状態を非同期運転から同期運転へ、あるいは
同期運転から非同期運転へ切り換えるための運転モード
を認識するコード比較手段と、を備えたもので、運転中
の駆動制御指令装置の運転状態を非同期運転から同期運
転に、あるいは同期運転から非同期運転に変更すること
を可能にする。
When used as the first drive control command device, a movement start signal is output and synchronous control is performed, and when used as the second drive control command device, synchronous control is performed by inputting the movement start signal. A microcomputer for performing, an interrupt generating means for outputting an interrupt signal to the microcomputer in each cycle of the operation clock generated by the operation clock generating means, and a microcomputer for operating when it becomes the first drive control command device. Parallel / serial data conversion means for converting the parallel data of the above into serial data, and so that the microcomputer can handle the serial data received from the first drive control command device when operating as the second drive control command device. Serial / parallel data conversion means for converting to parallel data Shift / serial data conversion means or serial / parallel data conversion means outputs a shift clock that takes a timing for transmitting or receiving serial data, and a second drive control command device. Code comparison means for recognizing an operation mode for switching the operating state from asynchronous operation to synchronous operation or from synchronous operation to asynchronous operation by checking the abnormalities by comparing the serial data received doubly. It is possible to change the operation state of the drive control command device during operation from asynchronous operation to synchronous operation, or from synchronous operation to asynchronous operation.

【0023】また、第二の駆動制御指令装置に対して同
期タイミング信号および移動開始信号を出力するととも
に、位置検出手段にリクエスト信号を出力し、この位置
検出手段からの位置データに同期して同期運転を実行す
る第一の駆動制御指令装置と、第一の駆動制御指令装置
から受信した前記同期タイミング信号に基づいて第一の
駆動制御指令装置との動作クロックの同期をとるととも
に、受信した前記移動開始信号および前記位置検出手段
からの位置データに同期して同期運転を実行する第二の
駆動制御指令装置と、を備えたことにより位置データを
出力する一台の位置検出手段の回転に同期して複数の駆
動制御指令装置を同期運転することを可能にする。
Further, the synchronous timing signal and the movement start signal are outputted to the second drive control command device, and the request signal is outputted to the position detecting means to synchronize with the position data from the position detecting means. The first drive control command device for executing the operation, and the operation clock of the first drive control command device is synchronized with the first drive control command device based on the synchronization timing signal received from the first drive control command device A second drive control command device that executes a synchronous operation in synchronization with the movement start signal and the position data from the position detection means, and is synchronized with the rotation of one position detection means that outputs the position data. Thus, it becomes possible to operate a plurality of drive control command devices in synchronization.

【0024】また、この発明に係る駆動制御指令装置
は、第二の駆動制御指令装置で通信エラーが発生した場
合に、通信エラーの発生を第一の駆動制御指令装置に知
らせるために、同期チェックに使用するエラー信号生成
手段とエラー信号を共用するものであり、回路構成の簡
略化および省配線化を可能にする。
Further, the drive control command device according to the present invention, when the communication error occurs in the second drive control command device, in order to notify the first drive control command device of the occurrence of the communication error, a synchronization check is performed. The error signal is shared by the error signal generating means used for the above, and simplification of the circuit configuration and reduction of wiring can be realized.

【0025】また、位置検出手段1台と駆動制御指令装
置複数台からなるシステムにおいて、第一の駆動制御指
令装置あるいは第二の駆動制御指令装置で通信エラーが
発生した場合に、第一の駆動制御指令装置から位置検出
手段に再度リクエスト信号を送信することにより位置検
出手段から通信エラーが発生した駆動制御指令装置だけ
が新たに位置データを受信する同期制御方法は、通信エ
ラーが発生した駆動制御指令装置が正常な位置データを
即座に受信できることにより、通信エラーの際の同期の
ずれを最小限に抑え、同期ずれのない正常な同期運転の
早急な回復を可能にする。
Further, in a system consisting of one position detecting means and a plurality of drive control command devices, when a communication error occurs in the first drive control command device or the second drive control command device, the first drive A synchronous control method in which only a drive control command device in which a communication error has occurred from the position detection means by newly transmitting a request signal from the control command device to the position detection means receives new position data is a drive control in which a communication error has occurred. Since the command device can immediately receive normal position data, the synchronization deviation at the time of a communication error can be minimized, and the normal synchronous operation without synchronization deviation can be promptly recovered.

【0026】[0026]

【実施例】【Example】

実施例1.図1は複数の駆動制御指令装置間の同期制御
システムの一実施例を示す構成図である。この実施例で
は同一の駆動制御指令装置を第一の駆動制御指令装置
(以後、マスターと記す)及び第二の駆動制御指令装置
(以後、スレーブと記す)のどちらにも使用できる構成
としている。図において、1aはマスターとなる駆動制
御指令装置、1bはスレーブとなる駆動制御指令装置で
ある。2はオペレータが駆動制御指令装置1a、1bを
マスターとして動作させるか、あるいはスレーブの何局
目として動作させるかを示す局番を設定するための外部
設定器であり、駆動制御指令装置1a、1bに対して、
外部設定信号3を出力する。4は駆動制御指令装置1
a、1bから与えられる動作クロック5と指令値6に従
って駆動部7のモーション制御を行う駆動制御装置であ
る。
Example 1. FIG. 1 is a block diagram showing an embodiment of a synchronous control system between a plurality of drive control command devices. In this embodiment, the same drive control command device can be used for both the first drive control command device (hereinafter referred to as the master) and the second drive control command device (hereinafter referred to as the slave). In the figure, 1a is a master drive control command device, and 1b is a slave drive control command device. Reference numeral 2 denotes an external setting device for the operator to set a station number indicating whether the drive control command devices 1a and 1b operate as a master or which station of the slave operates. for,
The external setting signal 3 is output. 4 is a drive control command device 1
It is a drive control device that performs motion control of the drive unit 7 according to the operation clock 5 and the command value 6 given from a and 1b.

【0027】8は駆動制御指令装置1a、1bの動作の
制御を行うマイクロコンピュータである。9はモーショ
ン制御を行うための動作クロック5を生成する動作クロ
ック発生部である。11は動作クロック5を受け、マイ
クロコンピュータ8に割り込み信号12を出力する割り
込み発生部である。13は外部設定信号3を受けて、駆
動制御指令装置1a、1bをマスターとして動作させる
か(以下、マスターモードと記す)、あるいはスレーブ
として動作させるか(以下、スレーブモードと記す)を
示す局番設定信号14を出力する局番設定部である。
Reference numeral 8 is a microcomputer for controlling the operation of the drive control command devices 1a, 1b. An operation clock generator 9 generates an operation clock 5 for performing motion control. An interrupt generation unit 11 receives the operation clock 5 and outputs an interrupt signal 12 to the microcomputer 8. 13 is a station number setting indicating whether the drive control command devices 1a and 1b are operated as a master (hereinafter referred to as a master mode) or a slave (hereinafter referred to as a slave mode) in response to an external setting signal 3. A station number setting unit that outputs a signal 14.

【0028】15はマスターモードの場合にだけ動作し
て、動作クロック5と、マイクロコンピュータ8から与
えられた同期タイミング出力許可信号16に基づいて同
期タイミング信号17を出力する同期タイミング信号送
信部である。18はスレーブモードの場合にだけ動作し
て、局番設定信号14と、マスターの駆動制御指令装置
1aから受信した同期タイミング信号17、マイクロコ
ンピュータ8から出力されたエラー状態信号19に基づ
いて、同期動作開始信号20と同期チェックトリガ信号
21を出力する同期制御部である。22は動作クロック
5と同期チェックトリガ信号21に基づいて同期状態を
チェックして同期状態信号23を出力する同期チェック
部である。
Reference numeral 15 denotes a sync timing signal transmitter which operates only in the master mode and outputs a sync timing signal 17 based on the operation clock 5 and the sync timing output permission signal 16 provided from the microcomputer 8. .. 18 operates only in the slave mode, and operates synchronously based on the station number setting signal 14, the synchronization timing signal 17 received from the master drive control command device 1a, and the error status signal 19 output from the microcomputer 8. The synchronization control unit outputs a start signal 20 and a synchronization check trigger signal 21. Reference numeral 22 is a synchronization check unit for checking the synchronization state based on the operation clock 5 and the synchronization check trigger signal 21 and outputting the synchronization state signal 23.

【0029】24はマスターモードの場合にはスレーブ
の駆動制御指令装置1bからのエラー信号25を入力し
てマイクロコンピュータ8にスレーブエラー信号26に
よりスレーブでのエラーの発生を知らせ、また、スレー
ブモードの場合には局番設定信号14とエラー状態信号
19に基づいてエラー信号25を出力するエラー信号生
成部である。27は同期運転を同時に開始するための移
動開始信号である。
In the master mode 24, the error signal 25 from the slave drive control command device 1b is inputted to inform the microcomputer 8 of the occurrence of an error in the slave by the slave error signal 26, and in the slave mode. In this case, it is an error signal generator that outputs an error signal 25 based on the station number setting signal 14 and the error status signal 19. Reference numeral 27 is a movement start signal for starting synchronous operation at the same time.

【0030】図2は図1の同期制御システムを構成する
駆動制御指令装置1(1a、1b)の構成ブロックを実
現する回路の一例である。動作クロック発生部9は水晶
発振器28とカウンタ29、30から構成されており、
水晶発振器28の出力するクロックをカウンタ29で1
/2に分周して内部クロック10を生成し、さらに、カ
ウンタ30のリセット端子に入力された同期動作開始信
号20がHIGHレベルの場合にはカウンタ30でその
内部クロック10を1/210に分周して動作クロック5
を生成する。
FIG. 2 shows an example of a circuit that realizes the constituent blocks of the drive control command device 1 (1a, 1b) that constitutes the synchronous control system of FIG. The operation clock generator 9 is composed of a crystal oscillator 28 and counters 29 and 30,
The counter 29 outputs the clock output from the crystal oscillator 28.
When the synchronous operation start signal 20 input to the reset terminal of the counter 30 is at the HIGH level, the counter 30 reduces the internal clock 10 to 1/2 10 . Divide and operate clock 5
Generate

【0031】割り込み発生部11はフリップフロップ3
1、32とNAND回路33によって構成され、動作ク
ロック5の立ち上がりに同期して割り込み信号12を内
部クロック10の1クロック間LOWレベルにし、マイ
クロコンピュータ8に割り込み要求をする。同期タイミ
ング信号送信部15はNAND回路34と3ステートゲ
ート35から構成され、マスターモードの場合に同期タ
イミング信号17aを出力する。
The interrupt generation unit 11 includes a flip-flop 3
1 and 32 and the NAND circuit 33, the interrupt signal 12 is set to the LOW level for one clock of the internal clock 10 in synchronization with the rising edge of the operation clock 5 to issue an interrupt request to the microcomputer 8. The synchronization timing signal transmitter 15 is composed of a NAND circuit 34 and a three-state gate 35, and outputs the synchronization timing signal 17a in the master mode.

【0032】同期制御部18は3ステートゲート36、
フリップフロップ37、38、OR回路39とAND回
路40で構成され、スレーブモードの場合に同期タイミ
ング信号17bの立ち下がりに同期して同期動作開始信
号20を内部クロック10の1クロック間LOWレベル
にする。同期チェック部22はNOT回路41とラッチ
回路42で構成され、同期タイミング信号17bが立ち
下がった瞬間にカウンタ30の値をラッチする。エラー
信号生成部24はAND回路43、44、NOT回路4
5、OR回路46、NOR回路47と3ステートゲート
48、49で構成され、同期タイミング許可信号16と
エラー状態信号19、後段のスレーブの駆動制御装置1
bから入力されたエラー信号25bに基づいて前段の駆
動制御指令装置に対してエラー信号25aを出力する。
The synchronization controller 18 has a 3-state gate 36,
It is composed of flip-flops 37, 38, an OR circuit 39 and an AND circuit 40. In the slave mode, the synchronous operation start signal 20 is set to the LOW level for one clock of the internal clock 10 in synchronization with the fall of the synchronous timing signal 17b. . The synchronization check unit 22 is composed of a NOT circuit 41 and a latch circuit 42, and latches the value of the counter 30 at the moment when the synchronization timing signal 17b falls. The error signal generator 24 includes AND circuits 43 and 44 and a NOT circuit 4
5, an OR circuit 46, a NOR circuit 47, and three-state gates 48 and 49, the synchronization timing permission signal 16 and the error state signal 19, and the slave drive control device 1 in the subsequent stage.
Based on the error signal 25b input from b, the error signal 25a is output to the drive control command device of the previous stage.

【0033】移動開始信号27aはマスターモードの場
合にマイクロコンピュータ8から出力されて3ステート
ゲート50を経て、全ての駆動制御指令装置1aと1b
に同時に入力される。51はマイクロコンピュータ8か
らの動作クロック出力許可信号52により駆動制御装置
4に対する動作クロックの出力を制御する3ステートバ
ッファである。53は駆動制御指令装置の電源をオンす
るか、あるいは外部リセットスイッチをオンすることに
より、リセット信号55をLOWレベルにし、各構成要
素をリセットするリセットスイッチである。
The movement start signal 27a is output from the microcomputer 8 in the master mode and passes through the three-state gate 50 to drive all the drive control command devices 1a and 1b.
Are entered at the same time. Reference numeral 51 is a three-state buffer that controls the output of the operation clock to the drive control device 4 by the operation clock output permission signal 52 from the microcomputer 8. Reference numeral 53 is a reset switch that resets each component by setting the reset signal 55 to the LOW level by turning on the power of the drive control command device or turning on the external reset switch.

【0034】次に、図2の駆動制御指令装置を図1の実
施例1に適用した場合の動作について図1〜図4を参照
しながら説明する。図3はこの発明による駆動制御指令
装置の動作説明用波形図であり、(a)は同期運転の場
合のマスターの動作、(b)は同期運転の場合のスレー
ブの動作、(c)は非同期運転の場合の動作を示したも
のである。図4はこの発明による駆動制御指令装置の同
期の動作を制御するプログラムのフローチャートであ
る。
Next, the operation when the drive control command device of FIG. 2 is applied to the first embodiment of FIG. 1 will be described with reference to FIGS. 3A and 3B are waveform diagrams for explaining the operation of the drive control command device according to the present invention. FIG. 3A is a master operation in synchronous operation, FIG. 3B is a slave operation in synchronous operation, and FIG. It shows the operation in the case of driving. FIG. 4 is a flow chart of a program for controlling the synchronous operation of the drive control command device according to the present invention.

【0035】まず、同期運転を行う場合について説明す
る。スレーブを制御して同期運転を行うためのマスター
として動作させる駆動制御指令装置1aの電源54aが
投入されて、リセット信号55aがHIGHレベルにな
ることによりマイクロコンピュータ8が同期の動作を制
御するプログラムの実行を開始する。オペレータが外部
設定器2にマスターの駆動制御指令装置あるいは何番目
のスレーブの駆動制御指令装置として使用するかを設定
すると、外部設定器2は局番を示す外部局番設定信号3
を出力する。局番設定部13はその外部設定信号3の内
容を判断する。ここでマスターとして設定されている
と、局番設定部13はマスターモードの局番設定信号1
4aをHIGHレベル、スレーブモードの局番設定信号
14bをLOWレベル、最終端用の局番設定信号14c
をLOWレベルにする。
First, the case of performing the synchronous operation will be described. When the power supply 54a of the drive control command device 1a for controlling the slave to operate as a master for performing the synchronous operation is turned on and the reset signal 55a becomes HIGH level, the microcomputer 8 controls the synchronous operation. Start execution. When the operator sets the external setter 2 to use as the master drive control command device or the slave drive control command device, the external setter 2 sets the external station number setting signal 3 indicating the station number.
Is output. The station number setting unit 13 determines the content of the external setting signal 3. When the master number is set as the master here, the station number setting section 13 outputs the station number setting signal 1 in the master mode.
4a is HIGH level, slave mode station number setting signal 14b is LOW level, terminal number setting signal 14c for the last end
To LOW level.

【0036】マイクロコンピュータ8はステップ100
1でこれらの局番設定信号14a〜14cを読み取り、
ステップ1002で局番設定信号14a〜14bのどち
らかがHIGHレベルになっているならば同期運転であ
ると判断し、また、局番設定信号14a〜14bが共に
LOWレベルならば非同期運転であると判断する。マイ
クロコンピュータ8は非同期運転ならばステップ102
4〜1027を実行し、同期運転ならばステップ100
3〜1023を実行する。ステップ1003でマイクロ
コンピュータ8は局番設定信号14aと14bのどちら
かがHIGHレベルであるかを判定し、マスターの局番
設定信号14aがHIGHレベルならばマスターである
と判定し、スレーブの局番設定信号14bがHIGHレ
ベルならばスレーブであると判定する。マスターとして
使用する場合にはステップ1004を実行し、スレーブ
として使用する場合にはステップ1014を実行する。
The microcomputer 8 executes step 100.
1 reads these station number setting signals 14a to 14c,
In step 1002, if either of the station number setting signals 14a-14b is at the HIGH level, it is determined that the operation is synchronous, and if both of the station number setting signals 14a-14b are at the LOW level, it is determined that the operation is asynchronous. . If the microcomputer 8 is in asynchronous operation, step 102
4 to 1027 are executed, and if it is a synchronous operation, step 100
Perform steps 3 to 1023. In step 1003, the microcomputer 8 determines which of the station number setting signals 14a and 14b is at the high level. If the master station number setting signal 14a is at the high level, the microcomputer 8 determines that it is the master, and the slave station number setting signal 14b. Is high, it is determined to be a slave. When it is used as a master, step 1004 is executed, and when it is used as a slave, step 1014 is executed.

【0037】まず、マスターとして使用する場合の処理
について説明する。スレーブの駆動制御指令装置1bの
電源が投入されて局番の設定等の同期運転の準備が完了
すると、スレーブのエラー信号生成部24bからマスタ
ーのエラー信号生成部24aに入力されたエラー信号2
5aがHIGHレベルになる。ステップ1004でマイ
クロコンピュータ8はエラー信号25aのレベルを判定
し、エラー信号25aがLOWレベルになっており、準
備が完了していない間はステップ1005でマイクロコ
ンピュータ8の内部で準備未完アラームを出力してステ
ップ1004に戻り、準備が完了するのを待つ。
First, the processing when used as a master will be described. When the slave drive control command device 1b is turned on and preparations for synchronous operation such as station number setting are completed, the error signal 2 input from the slave error signal generation unit 24b to the master error signal generation unit 24a.
5a becomes HIGH level. In step 1004, the microcomputer 8 determines the level of the error signal 25a, and while the error signal 25a is at the LOW level and the preparation is not completed, the preparation incomplete alarm is output inside the microcomputer 8 in step 1005. Then, the process returns to step 1004 and waits until the preparation is completed.

【0038】エラー信号25aがHIGHレベルになっ
たならば、ステップ1006でマイクロコンピュータ8
は同期タイミング出力許可信号16をHIGHレベルに
して同期タイミング信号17aの出力を許可する。これ
により3ステートゲート35が出力可能となるため、同
期タイミング信号17aが3ステートゲート35からス
レーブの駆動制御指令装置1bへ出力される。ステップ
1007で動作クロック出力許可信号52をLOWレベ
ルにすることにより、3ステートゲート51が出力可能
になるため、駆動制御装置4に対して動作クロック5a
が出力される。このとき、割り込み発生部11に入力さ
れた動作クロック5aの立ち上がりに同期して割り込み
信号12aが生成される。この割り込み信号12aがマ
イクロコンピュータ8に入力され、マイクロコンピュー
タ8が駆動制御装置4の位置や速度を制御するための処
理を実行する。
If the error signal 25a becomes HIGH level, in step 1006 the microcomputer 8
Sets the synchronization timing output permission signal 16 to the HIGH level to permit the output of the synchronization timing signal 17a. This enables the 3-state gate 35 to be output, so that the synchronization timing signal 17a is output from the 3-state gate 35 to the drive control command device 1b of the slave. In step 1007, by setting the operation clock output enable signal 52 to the LOW level, the 3-state gate 51 can be output.
Is output. At this time, the interrupt signal 12a is generated in synchronization with the rising edge of the operation clock 5a input to the interrupt generator 11. The interrupt signal 12a is input to the microcomputer 8, and the microcomputer 8 executes processing for controlling the position and speed of the drive control device 4.

【0039】ステップ1008でエラー信号25aがH
IGHレベルのままであるかを調べることによりスレー
ブの駆動制御指令装置1bの同期状態が良好であるかを
判定する。同期状態が不十分であり、エラー信号25a
がLOWレベルとなったならば、マイクロコンピュータ
8はステップ1009で同期運転を停止した上で、ステ
ップ1010でスレーブで同期ずれが発生したことを示
す同期ずれアラームをマイクロコンピュータ8の内部で
出力して処理を終了する。
In step 1008, the error signal 25a becomes H
By checking whether the IGH level remains, it is determined whether the slave drive control command device 1b is in a good synchronization state. The synchronization status is insufficient and the error signal 25a
Becomes a LOW level, the microcomputer 8 stops the synchronous operation in step 1009, and then outputs a synchronization deviation alarm indicating that the synchronization deviation has occurred in the slave in step 1010 inside the microcomputer 8. The process ends.

【0040】エラー信号25aがHIGHレベルであり
同期状態が良好であると判定したならば、マイクロコン
ピュータ8はステップ1011の同期運転の制御プログ
ラムを実行する。同期運転の制御プログラムが終了して
同期運転を終了する場合には、ステップ1012でマイ
クロコンピュータ8は同期運転終了の判定を行い、ステ
ップ1013で同期タイミング信号出力許可信号16を
LOWレベルにして、スレーブの駆動制御指令装置1b
への同期タイミング信号17aの出力を停止して同期運
転を停止した上で処理を終了する。
When the error signal 25a is at the HIGH level and it is determined that the synchronization state is good, the microcomputer 8 executes the synchronous operation control program at step 1011. When the control program for the synchronous operation ends and the synchronous operation ends, the microcomputer 8 determines in step 1012 that the synchronous operation has ended. Drive control command device 1b
To stop the synchronous operation by stopping the output of the synchronization timing signal 17a to the synchronous operation signal.

【0041】次に、スレーブとして使用する場合の処理
について説明する。スレーブの駆動制御指令装置1bの
電源54bが投入されて、リセット信号55bがHIG
Hレベルになることによりマイクロコンピュータ8が同
期の動作を制御するプログラムの実行を開始する。局番
設定部13は外部設定信号3の内容を判断し、ここでス
レーブとして設定されていると、マスターモードの局番
設定信号14aをLOWレベル、スレーブモードの局番
設定信号14bをHIGHレベルにする。さらに、最終
端のスレーブならば、後段のスレーブがないためエラー
信号の入力がないので、このエラー信号の入力を無効に
する必要がある。そのため、最終端用の局番設定信号1
4cをHIGHレベルにすることにより、エラー信号2
5bの入力に無関係にエラー信号生成部24内のOR回
路47の出力をHIGHレベルにする。これにより、3
ステートゲート50への入力を無効にすることができ
る。ステップ1002、ステップ1003はマスターと
して使用する場合と同様であり、説明を省略する。
Next, the processing when used as a slave will be described. The power 54b of the slave drive control command device 1b is turned on, and the reset signal 55b is set to HIG.
When the H level is reached, the microcomputer 8 starts executing the program for controlling the synchronous operation. The station number setting unit 13 determines the content of the external setting signal 3, and if it is set as a slave here, it sets the master mode station number setting signal 14a to LOW level and the slave mode station number setting signal 14b to HIGH level. Furthermore, if there is no slave at the final stage, there is no slave at the subsequent stage, so no error signal is input, so it is necessary to invalidate the input of this error signal. Therefore, the station number setting signal 1 for the last end
By setting 4c to HIGH level, the error signal 2
The output of the OR circuit 47 in the error signal generator 24 is set to HIGH level regardless of the input of 5b. This makes 3
The input to the state gate 50 can be disabled. Steps 1002 and 1003 are the same as the case of using as a master, and the description is omitted.

【0042】ステップ1014でスレーブの駆動制御指
令装置1bの電源が投入されて局番等の同期運転の準備
が完了するまでマイクロコンピュータ8は同期タイミン
グ出力許可信号16をLOWレベルにすることによりエ
ラー信号生成部24bから出力されるエラー信号25b
をLOWレベルにして、同期運転の準備が完了していな
いことをマスターの駆動制御指令装置1aに知らせる。
同期運転の準備が完了した場合には、同期タイミング出
力許可信号16をHIGHレベルにすることにより、エ
ラー信号25bをHIGHレベルにして同期運転の準備
が完了したことをマスターの駆動制御指令装置1aに知
らせる。
In step 1014, the microcomputer 8 sets the synchronization timing output enable signal 16 to the LOW level until the slave drive control command device 1b is powered on and the preparation for the synchronous operation such as the station number is completed. Error signal 25b output from the section 24b
Is set to the LOW level to notify the master drive control command device 1a that the preparation for the synchronous operation is not completed.
When the preparation for the synchronous operation is completed, by setting the synchronization timing output permission signal 16 to the HIGH level, the error signal 25b is set to the HIGH level and the master drive control command device 1a is notified that the preparation for the synchronous operation is completed. Inform.

【0043】次に、ステップ1015でマスターの駆動
制御指令装置1aからの同期タイミング信号17bが入
力されるのを待つ。同期タイミング信号17bを同期制
御部18で受信すると、同期制御部18の内部で同期タ
イミング信号17bの立ち下がりに同期して同期動作開
始信号20を内部クロック10の1クロック間LOWレ
ベルにする。この同期動作開始信号20で動作クロック
発生部9のカウンタ30のカウントをリセットすること
によって、マスターの同期タイミング信号17bの立ち
下がりに対して内部クロック10の1クロック分以内の
遅れ時間で動作クロック5bの生成を開始する。
Next, in step 1015, the input of the synchronization timing signal 17b from the master drive control command device 1a is waited for. When the synchronization control unit 18 receives the synchronization timing signal 17b, the synchronization operation start signal 20 is set to the LOW level for one clock of the internal clock 10 in synchronization with the fall of the synchronization timing signal 17b inside the synchronization control unit 18. By resetting the count of the counter 30 of the operation clock generation unit 9 with this synchronization operation start signal 20, the operation clock 5b is delayed with respect to the falling edge of the master synchronization timing signal 17b within one clock of the internal clock 10. Start to generate.

【0044】動作クロック出力許可信号52をLOWレ
ベルにすることにより、3ステートゲート51が出力可
能になるため、駆動制御装置4に対して動作クロック5
bが出力される。このとき、割り込み発生部11に入力
された動作クロック5bの立ち上がりに同期して割り込
み信号12bが生成される。この割り込み信号12bが
マイクロコンピュータ8に入力され、ステップ1016
でマイクロコンピュータ8が駆動制御装置4の位置や速
度を制御するための処理を開始する。
By setting the operation clock output enable signal 52 to the LOW level, the 3-state gate 51 can be output.
b is output. At this time, the interrupt signal 12b is generated in synchronization with the rising edge of the operation clock 5b input to the interrupt generator 11. This interrupt signal 12b is input to the microcomputer 8 and step 1016 is executed.
Then, the microcomputer 8 starts the processing for controlling the position and speed of the drive control device 4.

【0045】ステップ1017でマイクロコンピュータ
8が、カウンタ30がリセットされる直前に同期チェッ
ク部22のラッチ回路42でラッチされたカウント値
を、マイクロコンピュータ8の内部で予め設定された同
期のズレの許容誤差の最小値及び最大値と比較すること
によって同期のズレが許容誤差内にあり、同期状態が良
好であるかを判定する。同期状態が良好であれば、エラ
ー状態信号19をLOWレベルのままで保持することに
より、マスターの駆動制御指令装置1aにエラーの発生
を知らせるためのエラー信号25bをHIGHレベルに
して、ステップ1018を実行して同期運転を行う。ス
テップ1019で同期運転を継続するか、あるいは終了
するかを判断し、終了するならば、ステップ1020で
同期運転を停止する処理を実行して処理を終了する。
In step 1017, the microcomputer 8 allows the count value latched by the latch circuit 42 of the synchronization check unit 22 immediately before the counter 30 is reset, to allow a preset synchronization deviation inside the microcomputer 8. By comparing with the minimum value and the maximum value of the error, it is determined whether the deviation of the synchronization is within the allowable error and the synchronization state is good. If the synchronization state is good, the error state signal 19 is held at the LOW level to set the error signal 25b for notifying the master drive control command device 1a of the occurrence of the error to the HIGH level, and step 1018 is executed. Execute to perform synchronous operation. In step 1019, it is determined whether to continue the synchronous operation or to end the synchronous operation. If the operation is to be ended, a process of stopping the synchronous operation is executed in step 1020 and the process ends.

【0046】通常の動作では、同期タイミング信号17
bに基づいて各スレーブの駆動制御指令装置1bの同期
は十分とれるが、ケーブルが接触不良を起こしたり、仕
様範囲外の周囲温度の変化によって水晶発振器28やカ
ウンタ29、30で生成されるクロックの周期が許容範
囲を越えたり、ケーブル内における波形が鈍ったり、外
来ノイズの影響でクロック波形が乱れたりすることによ
って許容範囲外の同期のズレが発生することもありう
る。同期状態が不十分になったならば、ステップ102
1でマイクロコンピュータ8がエラー状態信号19をH
IGHレベルにすることにより、エラー信号25bをL
OWレベルにしてマスターの駆動制御指令装置1aにエ
ラーの発生を知らせる。このときエラー状態信号19が
HIGHレベルになったことにより、同期制御部18に
おいて同期動作開始信号20をHIGHレベルにして、
カウンタ30のリセットを解除したままにすることによ
り、同期タイミング信号17bによるタイミングの検出
を中止し、同期タイミング信号17bに無関係に内部ク
ロック10に基づいて動作クロック5を出力する。これ
により、スレーブの駆動制御指令装置1bはマスターの
駆動制御指令装置1aの動作とは非同期な動作を開始す
る。さらに、ステップ1022でマイクロコンピュータ
8は同期運転を停止した上で、ステップ1023で同期
ずれが発生したことを示す同期ずれアラームをマイクロ
コンピュータ8の内部で出力して処理を終了する。
In normal operation, the sync timing signal 17
Although the drive control command devices 1b of the respective slaves can be sufficiently synchronized based on b, the clock generated by the crystal oscillator 28 or the counters 29, 30 due to the contact failure of the cable or the change of the ambient temperature outside the specification range. The period may exceed the allowable range, the waveform in the cable may become dull, or the clock waveform may be disturbed by the influence of external noise, which may cause synchronization deviation outside the allowable range. If the synchronization status becomes insufficient, step 102
At 1, the microcomputer 8 sets the error status signal 19 to H.
By setting to IGH level, the error signal 25b becomes L
The OW level is set and the master drive control command device 1a is notified of the occurrence of an error. At this time, since the error state signal 19 becomes HIGH level, the synchronization control unit 18 sets the synchronous operation start signal 20 to HIGH level,
By keeping the reset of the counter 30 released, the detection of the timing by the synchronization timing signal 17b is stopped, and the operation clock 5 is output based on the internal clock 10 regardless of the synchronization timing signal 17b. As a result, the slave drive control command device 1b starts an operation asynchronous with the operation of the master drive control command device 1a. Further, in step 1022, the microcomputer 8 stops the synchronous operation, and in step 1023, outputs a synchronization deviation alarm indicating that the synchronization deviation has occurred inside the microcomputer 8, and ends the processing.

【0047】同期ずれが発生した場合に、ソフトウエア
の処理により現在の速度と位置から同期ずれの量を推定
して補正することは出来るが、これでは完全に同期を取
り直すことは出来ず、微妙なずれを残したまま運転して
しまうことになるため、この実施例では同期ずれが発生
した場合に、同期運転を停止することにしている。同期
ずれが発生した場合には、同期を取り直すために一旦原
点に戻して再び同期の処理を実行し直すことになる。
When the synchronization deviation occurs, the amount of the synchronization deviation can be estimated and corrected from the current speed and position by the processing of software, but this cannot completely resynchronize, and it is subtle. Since the vehicle will be operated while leaving a gap, in this embodiment, the synchronous operation is stopped when a synchronization deviation occurs. When the synchronization shift occurs, the synchronization processing is performed again by returning to the origin once to resynchronize.

【0048】次に、非同期運転を行う場合について説明
する。駆動制御指令装置1(1a、1b)の電源54が
投入されて、リセット信号55がHIGHレベルになる
ことによりマイクロコンピュータ8が同期の動作を制御
するプログラムの実行を開始する。オペレータが外部設
定器2に非同期運転で使用することを設定すると、外部
設定器2は局番を示す外部局番設定信号3を出力する。
局番設定部13はその外部設定信号3の内容を判断す
る。ここで非同期運転で設定されていると、局番設定部
13はマスターモードの局番設定信号14aをLOWレ
ベル、スレーブモードの局番設定信号14bをLOWレ
ベル、最終端用の局番設定信号14cをLOWレベルに
する。ステップ1001でマイクロコンピュータ8はこ
れらの局番設定信号14a〜14bを読みとり、ステッ
プ1002で局番設定信号14aと14bが共にLOW
レベルになっているならば非同期運転であると判断す
る。
Next, the case of performing asynchronous operation will be described. When the power supply 54 of the drive control command device 1 (1a, 1b) is turned on and the reset signal 55 becomes HIGH level, the microcomputer 8 starts executing the program for controlling the synchronous operation. When the operator sets the external setting device 2 to be used in asynchronous operation, the external setting device 2 outputs the external station number setting signal 3 indicating the station number.
The station number setting unit 13 determines the content of the external setting signal 3. If the asynchronous mode is set, the station number setting unit 13 sets the master mode station number setting signal 14a to LOW level, the slave mode station number setting signal 14b to LOW level, and the final end station number setting signal 14c to LOW level. To do. At step 1001, the microcomputer 8 reads these station number setting signals 14a and 14b, and at step 1002, both station number setting signals 14a and 14b are LOW.
If the level is reached, it is determined that the operation is asynchronous.

【0049】非同期運転ならば、ステップ1024でマ
イクロコンピュータ8がエラー状態信号19をHIGH
レベルにすることにより、同期制御部18の中でOR回
路39の出力がHIGHレベルになる。これにより、A
ND回路40の出力である同期動作開始信号20がHI
GHレベルになり、同期タイミング信号17bの入力が
無効になる。同期動作開始信号20をHIGHレベルに
なったことにより動作クロック発生部9が内部クロック
10に基づいて動作クロック5を出力する。このとき、
割り込み発生部11に入力された動作クロック5の立ち
上がりに同期して割り込み信号12が生成される。この
割り込み信号12がマイクロコンピュータ8に入力さ
れ、ステップ1025でマイクロコンピュータ8が駆動
制御装置4の位置や速度を制御するための処理を開始す
る。ステップ1026で非同期運転を実行し、ステップ
1027で非同期運転を継続するか、あるいは終了する
かを判断し、終了するならば、処理を終了する。
If it is the asynchronous operation, the microcomputer 8 sets the error status signal 19 to HIGH at step 1024.
By setting the level, the output of the OR circuit 39 in the synchronization control unit 18 becomes the HIGH level. This gives A
The synchronous operation start signal 20 output from the ND circuit 40 is HI.
It becomes the GH level, and the input of the synchronization timing signal 17b becomes invalid. The operation clock generator 9 outputs the operation clock 5 based on the internal clock 10 by setting the synchronous operation start signal 20 to the HIGH level. At this time,
The interrupt signal 12 is generated in synchronization with the rising edge of the operation clock 5 input to the interrupt generator 11. The interrupt signal 12 is input to the microcomputer 8, and in step 1025, the microcomputer 8 starts processing for controlling the position and speed of the drive control device 4. In step 1026, the asynchronous operation is executed, and in step 1027, it is determined whether the asynchronous operation is to be continued or to be ended. If it is ended, the processing is ended.

【0050】実施例2.図5は、この発明の一実施例に
よる運転モードを切り換える手段を有した駆動制御指令
装置の構成図である。また、図6はこの発明の一実施例
による駆動制御指令装置の同期制御方法を示すフローチ
ャートであり、図7はこの発明の一実施例による駆動制
御指令装置の同期タイミング図である。
Example 2. FIG. 5 is a configuration diagram of a drive control command device having means for switching the operation mode according to an embodiment of the present invention. 6 is a flow chart showing a synchronous control method of the drive control command device according to one embodiment of the present invention, and FIG. 7 is a synchronous timing diagram of the drive control command device according to one embodiment of the present invention.

【0051】上記実施例1では同期運転を実行している
場合に同期のずれが生じたときにだけマイクロコンピュ
ータ8が出力したエラー信号19を同期制御手段18に
入力し、エラー信号19をLOWレベルからHIGHレ
ベルにすることによって同期運転から非同期運転へ切り
換えている。また、同期を取るためにクロック波形とな
る同期タイミング信号を使用しているが、図5に示され
る駆動制御指令装置の実施例では、同期タイミング信号
で同期を取る代わりに、諸々の情報をマスターからスレ
ーブへ送信するためのシリアルデータの受信タイミング
で同期のタイミングを取っている。このようにシリアル
データの受信タイミングで同期を取るために、実施例1
に示す駆動制御指令装置に、マスター動作を行う際に動
作するためのシフトクロック発生部83aとパラレル/
シリアルデータ変換部84a、84bを追加し、また、
スレーブ動作を行う際に動作するシリアル/パラレルデ
ータ変換部85a、85bとシフトクロック発生部83
b、コード比較部87を追加して設けている。これによ
り、マスターの駆動制御指令装置82aからスレーブの
駆動制御指令装置82bに入力されたシリアルデータ8
8をシリアル/パラレルデータ変換部85a、85bで
パラレルデータに変換し、コード比較部87でそのパラ
レルデータの内容がどのような運転状態を示すのかを判
別すると同時にパラレルデータの受信タイミングに合わ
せて同期タイミング信号17を生成し、コード比較手段
87から出力された運転モード信号89に基づいて同期
制御手段18で動作クロックの供給するタイミングを切
り換えることによって、スレーブの駆動制御指令装置8
2bの運転状態をマスターの駆動制御指令装置82aか
ら非同期運転から同期運転に、あるいは同期運転から非
同期運転に切り換えることができる。
In the first embodiment, the error signal 19 output from the microcomputer 8 is input to the synchronization control means 18 only when the synchronization is deviated when the synchronous operation is executed, and the error signal 19 is set to the LOW level. To HIGH level, the synchronous operation is switched to the asynchronous operation. Further, although a synchronization timing signal having a clock waveform is used for synchronization, in the embodiment of the drive control command device shown in FIG. 5, instead of synchronizing with the synchronization timing signal, various information is mastered. Is synchronized with the reception timing of serial data to be transmitted from the slave to the slave. In order to synchronize the serial data reception timing in this manner, the first embodiment
The drive control command device shown in FIG.
Serial data converters 84a and 84b are added, and
Serial / parallel data conversion units 85a and 85b and shift clock generation unit 83 that operate when performing a slave operation
b, a code comparison unit 87 is additionally provided. As a result, the serial data 8 input from the master drive control command device 82a to the slave drive control command device 82b
8 is converted into parallel data by the serial / parallel data conversion units 85a and 85b, and the code comparison unit 87 determines what kind of operating state the contents of the parallel data indicate and at the same time synchronizes with the reception timing of the parallel data. The slave drive control command device 8 is generated by generating the timing signal 17 and switching the timing at which the operation clock is supplied by the synchronization control means 18 based on the operation mode signal 89 output from the code comparison means 87.
The operation state of 2b can be switched from the asynchronous drive to the synchronous drive or from the synchronous drive to the asynchronous drive from the master drive control command device 82a.

【0052】次に、図6と図7を参照しながら動作の詳
細について説明する。まず、図6では図4のステップ1
001〜1002の処理が既に実行され、マスターの駆
動制御指令装置あるいは何番目のスレーブの駆動制御指
令装置として使用するかの設定が終了し、各駆動制御指
令装置が同期運転あるいは非同期運転をしているとす
る。ステップ1101でマスターであるか、スレーブで
あるかを判定し、マスターとして使用する場合にはステ
ップ1102〜1108を実行し、スレーブとして使用
する場合にはステップ1110〜1117を実行する。
Next, the details of the operation will be described with reference to FIGS. 6 and 7. First, in FIG. 6, step 1 of FIG.
The processing of 001 to 1002 has already been executed, the setting of the master drive control command device or the slave drive control command device to be used is completed, and each drive control command device performs synchronous operation or asynchronous operation. Suppose In step 1101, it is determined whether it is a master or a slave, and when it is used as a master, steps 1102 to 1108 are executed, and when it is used as a slave, steps 1110 to 1117 are executed.

【0053】まず、マスターとして使用する場合の処理
について説明する。ステップ1102でマイクロコンピ
ュータ8は、カスケード接続されたパラレル/シリアル
データ変換部84a、84bに、チェックサム用のビッ
トを持ったパラレルデータを出力する。これにより、パ
ラレル/シリアルデータ変換部84a、84bには同じ
パラレルデータが設定される。パラレルデータの設定が
済むと、マイクロコンピュータ8は、シリアルデータ8
8を送信したいタイミングに合わせてシフトクロック出
力許可信号90を出力する。シフトクロック出力許可信
号90と局番設定部13から出力された局番設定信号1
4がシフトクロック発生部83aに入力される。シフト
クロック発生部83aで、局番設定信号14がマスター
動作、あるいはスレーブ動作を選択する設定状態になっ
ているか、また、シフトクロック出力信号90が許可状
態になっているかを判断する。ここで、局番設定信号1
4がマスター動作を選択する設定状態になっており、か
つ、シフトクロック出力信号90が許可状態になってい
る場合に、内部クロック10に同期し、かつ、内部クロ
ック10の周期の整数倍の周期を持つ整数倍クロックを
生成する。
First, the processing when used as a master will be described. In step 1102, the microcomputer 8 outputs the parallel data having the checksum bit to the parallel / serial data conversion units 84a and 84b connected in cascade. As a result, the same parallel data is set in the parallel / serial data converters 84a and 84b. After setting the parallel data, the microcomputer 8 sets the serial data 8
The shift clock output permission signal 90 is output at the timing when 8 is desired to be transmitted. Shift clock output enable signal 90 and station number setting signal 1 output from station number setting unit 13
4 is input to the shift clock generator 83a. The shift clock generator 83a determines whether the station number setting signal 14 is in a setting state for selecting a master operation or a slave operation, and whether the shift clock output signal 90 is in a permitting state. Here, station number setting signal 1
4 is in a setting state for selecting the master operation, and the shift clock output signal 90 is in a permitting state, the period is synchronized with the internal clock 10 and is a cycle that is an integral multiple of the cycle of the internal clock 10. Generate an integer multiple clock with.

【0054】通常の動作において、マスターとスレーブ
の間で諸々のデータを送受信する場合には、カスケード
接続されたパラレル/シリアルデータ変換部84a、8
4bに設定されたデータをシリアルデータ88として出
力するために、送信するデータ長の2倍のクロック数分
だけ整数倍クロックをシフトクロック86aとして出力
する。そのシフトクロック86aをパラレル/シリアル
データ変換部84a、84bに供給することにより、パ
ラレル/シリアルデータ変換部84a、84b内のデー
タをシステムクロックの1クロック毎に順次、出力側へ
シフトしてシリアルデータ88としてマスターの駆動制
御指令装置82aからスレーブの駆動制御指令装置82
bに送信する。
In normal operation, when various data is transmitted and received between the master and slave, the parallel / serial data converters 84a, 8a connected in cascade are used.
In order to output the data set to 4b as the serial data 88, an integer multiple clock is output as the shift clock 86a by the number of clocks that is twice the data length to be transmitted. By supplying the shift clock 86a to the parallel / serial data conversion units 84a and 84b, the data in the parallel / serial data conversion units 84a and 84b are sequentially shifted to the output side for each clock of the system clock, and serial data is output. Reference numeral 88 designates the master drive control command device 82a to the slave drive control command device 82
Send to b.

【0055】一方、シリアルデータ88で同期タイミン
グを取る場合には、図7に示すように動作クロック5a
が立ち下がる瞬間よりも送信するデータ長の2倍のクロ
ック数分だけ以前の時間から動作クロック5aが立ち下
がる瞬間までの間、その整数倍クロックをシフトクロッ
ク86aとして出力する。これにより動作クロック5a
の立ち下がりのタイミングとシフトクロック86aの供
給が停止するタイミングを同期させることができる。こ
のシフトクロック86aをパラレル/シリアルデータ変
換部84a、84bに供給することにより、パラレル/
シリアルデータ変換部84a、84b内のデータをシリ
アルデータ88としてマスターの駆動制御指令装置82
aから送信する。その際、シリアルデータ88aの内容
は先に送られたデータAがパラレル/シリアルデータ変
換部84bのデータであり、後で送られたデータBがパ
ラレル/シリアルデータ変換部84aのデータである。
また、送信するシリアルデータ88は、運転状態を非同
期運転から同期運転に、あるいは同期運転から非同期運
転に切り換えるための情報を載せたシリアルデータであ
る。
On the other hand, when the synchronization timing is set by the serial data 88, the operation clock 5a is set as shown in FIG.
Is output as the shift clock 86a from the time before the time when the operation clock 5a falls by the number of clocks twice the data length to be transmitted from the time when the operation clock 5a falls. As a result, the operation clock 5a
Can be synchronized with the timing of the fall of the shift clock 86a. By supplying this shift clock 86a to the parallel / serial data conversion units 84a and 84b,
The data in the serial data conversion units 84a and 84b is converted into serial data 88, and the master drive control command device 82 is used.
Send from a. At this time, the contents of the serial data 88a are that the data A sent first is the data of the parallel / serial data conversion unit 84b, and the data B sent later is the data of the parallel / serial data conversion unit 84a.
The serial data 88 to be transmitted is serial data carrying information for switching the operating state from asynchronous operation to synchronous operation or from synchronous operation to asynchronous operation.

【0056】次に、ステップ1103で局番設定信号1
4の内容に応じて、運転状態を同期運転から非同期運転
に切り換えるか、あるいは非同期運転から同期運転に切
り換えるかを判定し、前者を選択すればステップ110
4〜1106を実行し、後者を選択すればステップ11
07〜1109を実行する。同期運転から非同期運転に
切り換える場合には、ステップ1104で同期運転中で
あるかを判定し、同期運転中以外であればステップ11
06を実行した上で運転モード切り換えのための処理を
終了し、同期運転中であればステップ1105で同期運
転を停止してからステップ1106を実行した上で運転
モード切り換えのための処理を終了する。このステップ
1106では図4のステップ1024〜1027と同様
の処理を実行する。
Next, in step 1103, the station number setting signal 1
According to the contents of 4, it is judged whether the operation state is switched from synchronous operation to asynchronous operation or from asynchronous operation to synchronous operation, and if the former is selected, step 110
If steps 4 to 1106 are executed and the latter is selected, step 11
07 to 1109 are executed. When switching from the synchronous operation to the asynchronous operation, it is determined in step 1104 whether the synchronous operation is being performed, and if it is not the synchronous operation, the step 11 is performed.
After executing 06, the processing for switching the operation mode is terminated. If the synchronous operation is in progress, the synchronous operation is stopped in step 1105, then step 1106 is executed, and then the processing for the operation mode switching is terminated. . In this step 1106, the same processing as steps 1024 to 1027 of FIG. 4 is executed.

【0057】非同期運転から同期運転に切り換える場合
には、ステップ1107で非同期運転中であるかを判定
し、非同期運転中であればステップ1108で非同期運
転を停止してからステップ1109を実行した上で運転
モード切り換えのための処理を終了し、非同期運転中以
外であればステップ1109を実行した上で運転モード
切り換えのための処理を終了する。ステップ1109で
は図4のステップ1004〜1013と同様の処理を実
行する。
When switching from asynchronous operation to synchronous operation, it is determined in step 1107 whether asynchronous operation is in progress. If asynchronous operation is in progress, the asynchronous operation is stopped in step 1108 and then step 1109 is executed. The process for switching the operation mode is ended, and if the operation is not in asynchronous operation, step 1109 is executed and then the process for switching the operation mode is ended. In step 1109, the same processing as steps 1004 to 1013 in FIG. 4 is executed.

【0058】次に、スレーブとして使用する場合の処理
について説明する。スレーブの場合には、スレーブとし
ての動作準備が完了すると、シフトクロック86bをカ
スケード接続されたシリアル/パラレルデータ変換部8
5a、85bに供給して、シリアルデータ88の受信の
準備を行う。ステップ1110でスレーブの駆動制御指
令装置82bがマスターの駆動制御指令装置82aから
のシリアルデータ88を受信するのを待つ。スレーブの
駆動制御指令装置82bがシリアルデータ88を受信す
ると、シリアルデータ88はシフトクロックの1クロッ
ク毎にシリアル/パラレルデータ変換部85a、85b
に順次シフトしながら入力された後、パラレルデータに
変換されてからコード比較部87に入力される。シリア
ルデータ88が受信される際、先に受信されたデータC
がシリアル/パラレルデータ変換部85bに入力され、
後で受信されたデータDがシリアル/パラレルデータ変
換部85aに入力される。
Next, the processing when used as a slave will be described. In the case of a slave, when the preparation for operation as a slave is completed, the serial / parallel data conversion unit 8 in which the shift clock 86b is cascade-connected
5a and 85b to prepare for receiving the serial data 88. In step 1110, the slave drive control command device 82b waits for reception of the serial data 88 from the master drive control command device 82a. When the slave drive control command device 82b receives the serial data 88, the serial data 88 is converted into serial / parallel data conversion units 85a and 85b at every shift clock.
Are input while being sequentially shifted to, then converted to parallel data and then input to the code comparison unit 87. When the serial data 88 is received, the previously received data C
Is input to the serial / parallel data conversion unit 85b,
The data D received later is input to the serial / parallel data conversion unit 85a.

【0059】このコード比較部87で2つのシリアル/
パラレルデータ変換部85a、85bの内容が一致して
いて通信エラーが無いことを確認する。エラーがない場
合にパラレルデータをコード比較部87からマイクロコ
ンピュータ8に入力し、マイクロコンピュータ8がその
パラレルデータの内容を判定して色々な処理に使用す
る。同時にコード比較部87はパラレルデータの内容が
運転状態を非同期運転から同期運転に切り換えるための
データであるか、あるいは同期運転から非同期運転に切
り換えるためのデータであるかを判定し、判定状況に応
じて同期タイミング信号17および運転モード信号89
を出力する。パラレルデータの内容が同期タイミングを
取るためのデータであった場合には、データ判定直後の
シフトクロックの1クロック分の時間だけ同期タイミン
グ信号17をLOWレベルにする。さらに、コード比較
部87は、パラレルデータの内容が非同期運転から同期
運転に切り換えるデータならば運転モード信号89をL
OWレベルにし、同期運転から非同期運転に切り換える
データならば運転モード信号89をHIGHレベルにす
る。
This code comparison unit 87 uses two serial /
It is confirmed that the contents of the parallel data conversion units 85a and 85b match and that there is no communication error. When there is no error, the parallel data is input from the code comparison unit 87 to the microcomputer 8, and the microcomputer 8 determines the content of the parallel data and uses it for various processes. At the same time, the code comparison unit 87 determines whether the content of the parallel data is data for switching the operation state from asynchronous operation to synchronous operation or data for switching from synchronous operation to asynchronous operation, and depending on the determination status. Synchronization timing signal 17 and operation mode signal 89
Is output. When the content of the parallel data is data for synchronizing timing, the synchronizing timing signal 17 is set to LOW level for the time of one clock of the shift clock immediately after the data determination. Furthermore, the code comparison unit 87 sets the operation mode signal 89 to L if the content of the parallel data is data for switching from asynchronous operation to synchronous operation.
If the data is set to the OW level and the synchronous operation is switched to the asynchronous operation, the operation mode signal 89 is set to the HIGH level.

【0060】この運転モード信号89は同期制御部18
に入力され、同期動作開始信号20を制御する。運転モ
ード信号89がLOWレベルになり、非同期運転から同
期運転に切り換える場合には、コード比較部87から出
力されるた同期タイミング信号17の立ち下がりを検知
して、同期動作開始信号20を同期制御部18から出力
する。この同期動作開始信号20が動作クロック発生部
9に入力され、動作クロック発生部9のカウンタをリセ
ットすることによって、マスターから受信したシリアル
データ88の受信終了のタイミングに同期して、動作ク
ロック5の生成を開始するタイミングを制御する。
This operation mode signal 89 is sent to the synchronization controller 18
And controls the synchronous operation start signal 20. When the operation mode signal 89 becomes LOW level and the asynchronous operation is switched to the synchronous operation, the fall of the synchronization timing signal 17 output from the code comparison unit 87 is detected and the synchronous operation start signal 20 is synchronously controlled. Output from the unit 18. This synchronous operation start signal 20 is input to the operation clock generator 9, and the counter of the operation clock generator 9 is reset to synchronize the operation clock 5 with the timing of the end of reception of the serial data 88 received from the master. Controls the timing to start generation.

【0061】同期運転から非同期運転に切り換えるなら
ば、同期動作開始信号20をシリアルデータ88の受信
終了のタイミングに無関係にHIGHレベルにする。同
期動作開始信号20がHIGHレベルであるので、動作
クロック発生部9のカウンタがリセットされないため、
現状のタイミングのままで動作クロック5の出力が継続
される。
When the synchronous operation is switched to the asynchronous operation, the synchronous operation start signal 20 is set to the HIGH level regardless of the timing of ending the reception of the serial data 88. Since the synchronous operation start signal 20 is at the HIGH level, the counter of the operation clock generator 9 is not reset,
The output of the operation clock 5 is continued at the current timing.

【0062】また、マイクロコンピュータ8は、ステッ
プ1111で運転モード信号89を監視することによ
り、運転状態を同期運転から非同期運転に切り換える
か、あるいは非同期運転から同期運転に切り換えるかを
判定する。前者を選択すればステップ1112〜111
4を実行し、後者を選択すればステップ1115〜11
17を実行する。同期運転から非同期運転に切り換える
場合には、ステップ1112で同期運転中であるかを判
定し、同期運転中以外であればステップ1114を実行
した上で運転モード切り換えの処理を終了し、同期運転
中であればステップ1113で同期運転を停止してから
ステップ1114を実行した上で運転モード切り換えの
処理を終了する。
Further, the microcomputer 8 monitors the operation mode signal 89 in step 1111 to determine whether the operation state is switched from synchronous operation to asynchronous operation or from asynchronous operation to synchronous operation. If the former is selected, steps 1112 to 111
4 is executed and the latter is selected, steps 1115 to 11
Execute 17. When switching from the synchronous operation to the asynchronous operation, it is determined in step 1112 whether the synchronous operation is being performed. If the synchronous operation is not being performed, step 1114 is executed, the operation mode switching process is terminated, and the synchronous operation is being performed. In this case, the synchronous operation is stopped in step 1113, step 1114 is executed, and then the operation mode switching process ends.

【0063】非同期運転から同期運転に切り換える場合
には、ステップ1115で非同期運転中であるかを判定
し、非同期運転中であればステップ1116で非同期運
転を停止してからステップ1117を実行した上で運転
モード切り換えの処理を終了し、非同期運転中以外であ
ればステップ1117を実行した上で運転モード切り換
えの処理を終了する。ステップ1117では図4のステ
ップ1014〜1023と同様の処理を実行する。上記
のような処理を行うことによって、マスターの駆動制御
指令装置からスレーブの駆動制御指令装置の運転状態を
同期運転から非同期運転、あるい同期運転から非同期運
転に切り換えることができる。
When switching from asynchronous operation to synchronous operation, it is determined in step 1115 whether asynchronous operation is in progress. If asynchronous operation is in progress, the asynchronous operation is stopped in step 1116 and then step 1117 is executed. The operation mode switching process is terminated, and if it is not during asynchronous operation, step 1117 is executed and then the operation mode switching process is terminated. In step 1117, the same processing as in steps 1014 to 1023 of FIG. 4 is executed. By performing the above-described processing, the operating state of the master drive control command device can be switched from the synchronous drive to the asynchronous drive, or from the synchronous drive to the asynchronous drive.

【0064】実施例3.図8はこの発明の一実施例であ
る1台の位置検出部に対する複数の駆動制御指令装置の
同期システムの構成図であり、図9はこの発明の一実施
例である1台の位置検出部に対する同期システムを構成
する駆動制御指令装置の回路図である。図10はこの発
明の一実施例である位置検出部との通信におけるマスタ
ーの駆動制御指令装置の通信制御方法を示すフローチャ
ートである。図11はこの発明の一実施例である位置検
出部との通信におけるスレーブの駆動制御指令装置の通
信制御方法を示すフローチャートである。
Example 3. FIG. 8 is a block diagram of a synchronization system of a plurality of drive control command devices for one position detection unit according to one embodiment of the present invention, and FIG. 9 is one position detection unit according to one embodiment of the present invention. FIG. 3 is a circuit diagram of a drive control command device that constitutes a synchronization system for. FIG. 10 is a flow chart showing a communication control method of the master drive control commanding device in communication with the position detecting unit which is an embodiment of the present invention. FIG. 11 is a flowchart showing a communication control method of the drive control command device of the slave in the communication with the position detecting unit according to the embodiment of the present invention.

【0065】図8、図9において、108はマスターと
して使用する場合にだけ動作し、マイクロコンピュータ
8が出力したパラレル形式のリクエストデータをシリア
ル形式のリクエスト信号に変換して位置検出部へ送信す
るパラレル/シリアルデータ変換部である。109は位
置検出部114から送信されたシリアル形式の位置デー
タを受信し、パラレルデータに変換するシリアル/パラ
レルデータ変換部である。110は位置検出部114か
ら受信した位置データを正常に受信できたかどうかをパ
リティチェック(parity check)、フレミ
ングエラー(framing error)チェック、
オーバーランエラー(overrunerror)チェ
ック等によりチェックする通信エラーチェック部であ
る。111、112はシリアルデータの入力及び出力の
可否を制御する3ステートゲートである。
In FIG. 8 and FIG. 9, 108 is a parallel which operates only when it is used as a master and converts parallel request data output from the microcomputer 8 into a serial request signal and sends it to the position detecting section. / A serial data conversion unit. A serial / parallel data conversion unit 109 receives the position data in the serial format transmitted from the position detection unit 114 and converts it into parallel data. Reference numeral 110 indicates whether or not the position data received from the position detection unit 114 can be normally received, a parity check, a framing error check,
It is a communication error check unit that checks by overrun error check or the like. Reference numerals 111 and 112 denote three-state gates that control the input / output of serial data.

【0066】113aおよび113bは図1で示した駆
動制御指令装置1(1a、1b)にパラレル/シリアル
データ変換部108と、シリアル/パラレルデータ変換
部109、通信エラーチェック部110、3ステートゲ
ート111、112を追加した駆動制御指令装置であ
り、113aがマスターであり、113bがスレーブで
ある。位置検出部114は、コンベア等の外部機器の位
置を検出する位置検出器115と、位置検出器115か
らのデータとマスターの駆動制御指令装置113aから
のリクエスト信号117を受けて、そのリクエスト信号
117の内容に応じて位置のデータやアラーム情報、動
作状態の情報などを単独あるいは組み合わせて位置デー
タ118として送信するデータ送信部116と、全ての
駆動制御指令装置113a〜113bに対して位置デー
タ118を送信するとき以外は出力をハイインピーダン
ス状態としておくための3ステートゲート119から構
成される。図8において、マスターとして動作する駆動
制御指令装置113aと複数台のスレーブとして動作す
る駆動制御指令装置113bと、1台の位置検出部11
4によって同期システムを構成する。
Reference numerals 113a and 113b are parallel / serial data conversion unit 108, serial / parallel data conversion unit 109, communication error check unit 110, and three-state gate 111 in drive control command device 1 (1a, 1b) shown in FIG. , 112 are added, 113a is a master, and 113b is a slave. The position detector 114 receives a position detector 115 for detecting the position of an external device such as a conveyor, data from the position detector 115, and a request signal 117 from the master drive control command device 113a, and receives the request signal 117. The position data 118 is sent to all the drive control command devices 113a to 113b and the data sending unit 116 which sends position data, alarm information, operating state information, etc. individually or in combination as position data 118 according to the contents of the above. It is composed of a 3-state gate 119 for keeping the output in a high impedance state except when transmitting. In FIG. 8, a drive control command device 113a that operates as a master, a drive control command device 113b that operates as a plurality of slaves, and one position detection unit 11
4 constitutes a synchronization system.

【0067】次に、図8〜図11を参照しながら動作を
説明する。図1で示したように、マスターの駆動制御指
令装置と複数台のスレーブの駆動制御指令装置による同
期運転を行うことが可能なシステムにおいて、まず、オ
ペレータが外部設定器2にマスターの駆動制御指令装置
あるいは何番目のスレーブの駆動制御指令装置として使
用するかを設定すると、外部設定器2は局番を示す外部
局番設定信号3を出力する。局番設定部13はその外部
設定信号3の内容を判断する。ここでマスターとして設
定されていると、局番設定部13はマスターモードの局
番設定信号14aをHIGHレベル、スレーブモードの
局番設定信号14bをLOWレベルにする。マスターと
して使用するように設定されて、マスタモードの局番設
定信号14aがHIGHレベルになっているならば、送
信用の3ステートゲート111を開けてリクエスト信号
117を送信できるようにする。
Next, the operation will be described with reference to FIGS. As shown in FIG. 1, in a system in which a master drive control command device and a plurality of slave drive control command devices can perform synchronous operation, first, an operator instructs the external setting device 2 to drive the master drive control command. The external setter 2 outputs an external station number setting signal 3 indicating a station number when setting the device or the number of slaves to be used as the drive control command device. The station number setting unit 13 determines the content of the external setting signal 3. When the station number setting unit 13 is set as the master here, the station number setting signal 14a in the master mode is set to the HIGH level and the station number setting signal 14b in the slave mode is set to the LOW level. When the station number setting signal 14a in the master mode is set to the HIGH level after being set to be used as the master, the three-state gate 111 for transmission is opened so that the request signal 117 can be transmitted.

【0068】ステップ1201でマスターの駆動制御指
令装置113aのマイクロコンピュータ8が、同期運転
に必要な位置データやアラーム情報を位置検出部114
に対して要求するためのリクエストデータ120をパラ
レル/シリアルデータ変換部108にセットする。次
に、ステップ1202でマイクロコンピュータ8は位置
検出部114に対してリクエスト信号117を送信する
タイミングを制御するための送信要求信号121を出力
する。パラレル/シリアルデータ変換部108で送信要
求信号121がアクティブになったタイミングに合わせ
てリクエスト信号117が生成され、3ステートゲート
111を経て位置検出部114へ送信される。ステップ
1203でマスターの駆動制御指令装置113aのマイ
クロコンピュータ8は、受信用の3ステートゲート11
2を開けて、位置データ118を受信できるようにす
る。位置検出部114はリクエスト信号117を受信す
ると、検出した位置データ118をデータ送信部116
に接続された全ての駆動制御指令装置113a〜113
bに対して送信する。マイクロコンピュータ8はステッ
プ1204で位置データ118を受信するまで待つ。受
信用の3ステートゲート112を経て受信した位置デー
タ118がシリアル/パラレル変換部109に入力され
ると、シリアル/パラレルデータ変換部109が位置デ
ータ118をマイクロコンピュータ8で扱える様にパラ
レルデータに変換する。変換された位置データがマイク
ロコンピュータ8に入力されて駆動制御装置の位置の制
御に使用される。
At step 1201, the microcomputer 8 of the master drive control command device 113a obtains the position data and alarm information necessary for the synchronous operation from the position detecting section 114.
Request data 120 for making a request to the parallel / serial data conversion unit 108. Next, in step 1202, the microcomputer 8 outputs the transmission request signal 121 for controlling the timing of transmitting the request signal 117 to the position detection unit 114. The parallel / serial data conversion unit 108 generates a request signal 117 at the timing when the transmission request signal 121 becomes active, and the request signal 117 is transmitted to the position detection unit 114 via the three-state gate 111. In step 1203, the microcomputer 8 of the master drive control command device 113a determines that the three-state gate 11 for reception is used.
2 is opened so that the position data 118 can be received. When the position detection unit 114 receives the request signal 117, the position detection unit 114 outputs the detected position data 118 to the data transmission unit 116.
Drive control command devices 113a to 113 connected to the
Send to b. The microcomputer 8 waits until it receives the position data 118 in step 1204. When the position data 118 received through the receiving three-state gate 112 is input to the serial / parallel conversion unit 109, the serial / parallel data conversion unit 109 converts the position data 118 into parallel data so that the microcomputer 8 can handle it. To do. The converted position data is input to the microcomputer 8 and used for controlling the position of the drive control device.

【0069】一方、スレーブの駆動制御指令装置113
bのマイクロコンピュータ8は、位置検出部114から
の位置データ118を受信するまでそのままの状態で待
つ。位置検出部114から位置データ118が送信され
ると、マスターの駆動制御指令装置113aに受信され
るのと同時に、受信用の3ステートゲート112を経て
受信した位置データ118がシリアル/パラレル変換部
109に入力される。シリアル/パラレルデータ変換部
109が位置データ118をマイクロコンピュータ8で
扱える様にパラレルデータに変換する。変換された位置
データがマイクロコンピュータ8に入力されて駆動制御
装置4の位置の制御に使用される。
On the other hand, the slave drive control command device 113
The microcomputer 8 of b waits in that state until it receives the position data 118 from the position detector 114. When the position data 118 is transmitted from the position detector 114, it is received by the master drive control command device 113a, and at the same time, the position data 118 received via the receiving three-state gate 112 is transferred to the serial / parallel converter 109. Entered in. The serial / parallel data conversion unit 109 converts the position data 118 into parallel data so that the microcomputer 8 can handle it. The converted position data is input to the microcomputer 8 and used to control the position of the drive control device 4.

【0070】これにより、複数の駆動制御指令装置11
3a〜113bは、一台の位置検出部114から、同一
周期の同一タイミングで、同一のデータを受信すること
ができる。更に、複数台の駆動制御指令装置113a〜
113bは、実施例1に示したように同期して動作して
いるため、一台の位置検出部114の位置に同期して、
複数の駆動制御指令装置を同期運転することが可能とな
る。
As a result, a plurality of drive control command devices 11
3a to 113b can receive the same data from one position detection unit 114 at the same timing in the same cycle. Further, a plurality of drive control command devices 113a-
Since the 113b operates in synchronization with each other as shown in the first embodiment, in synchronization with the position of the single position detection unit 114,
It is possible to operate a plurality of drive control command devices synchronously.

【0071】マスターの駆動制御指令装置113aは、
図10のステップ1204で位置データ118を受信す
ると、通信エラーチェック部110が位置データ118
を正常に受信できたかどうかをチェックし、その結果を
チェック信号122によってマイクロコンピュータ8に
知らせる。また、正常に受信できたならば受信データ1
23をマイクロコンピュータ8に出力する。ステップ1
205でマイクロコンピュータ8はそのチェック結果よ
り通信が正常に行われたかを判断する。通信が正常であ
れば、マイクロコンピュータ8はステップ1206で受
信ゲート制御信号124をHIGHレベルにして受信用
の3ステートゲート112を閉じて位置データ118を
受信できないようにする。マイクロコンピュータ8はス
テップ1207で処理周期となる一定時間が経過するま
で待ってから、ステップ1201に戻り、次の位置デー
タを読み出すための処理を行う。
The drive control command device 113a of the master is
When the position data 118 is received in step 1204 of FIG. 10, the communication error check unit 110 causes the position data 118.
Is normally received, and the result is notified to the microcomputer 8 by a check signal 122. If it can be received normally, the received data 1
23 is output to the microcomputer 8. Step 1
At 205, the microcomputer 8 determines from the check result whether the communication is normally performed. If the communication is normal, the microcomputer 8 sets the reception gate control signal 124 to the HIGH level in step 1206 to close the reception three-state gate 112 so that the position data 118 cannot be received. The microcomputer 8 waits for a certain period of time, which is the processing cycle, in step 1207, and then returns to step 1201 to perform processing for reading the next position data.

【0072】また、外来ノイズ等の影響で通信信号の波
形が乱れたりすることによってマスターの駆動制御指令
装置113a自身あるいはスレーブの駆動制御指令装置
113bで通信エラーが発生した場合には、マスターで
は通信エラーチェック部110が通信エラーの発生をマ
イクロコンピュータ8に知らせる。一方、スレーブでは
通信エラーチェック部110が通信エラーの発生をマイ
クロコンピュータ8に知らせると、マイクロコンピュー
タ8はエラー状態信号19をHIGHレベルにする。エ
ラー状態信号19がHIGHレベルになったことにより
エラー信号生成部24の中のAND回路44の出力がL
OWレベルになり、エラー信号25bをLOWレベルに
する。このようにスレーブでは、エラー信号25bをL
OWレベルにすることにより、マスターに通信エラーの
発生を知らせる。
When a communication error occurs in the master drive control command device 113a itself or the slave drive control command device 113b due to disturbance of the waveform of the communication signal due to the influence of external noise or the like, the master performs communication. The error check unit 110 notifies the microcomputer 8 that a communication error has occurred. On the other hand, in the slave, when the communication error check unit 110 notifies the microcomputer 8 of the occurrence of the communication error, the microcomputer 8 sets the error state signal 19 to the HIGH level. The output of the AND circuit 44 in the error signal generator 24 is set to L because the error state signal 19 has become HIGH level.
It goes to the OW level, and the error signal 25b goes to the LOW level. In this way, the slave sends the error signal 25b to L
By setting to the OW level, the master is notified of the occurrence of a communication error.

【0073】マスターあるいはスレーブで通信エラーが
発生した場合には、マイクロコンピュータ8は、ステッ
プ1208でリトライ回数をチェックし、リトライ回数
が設定回数に満たなければ、ステップ1201に戻り、
次の位置データを読み出すための処理を行う。設定回数
以上のリトライが行われたならば、マイクロコンピュー
タ8はステップ1209〜1211の運転終了動作を実
行する。マイクロコンピュータ8は、ステップ1209
で受信ゲート制御信号124をHIGHレベルにして受
信用の3ステートゲート112を閉じて位置データを受
信できないようにし、ステップ1210でマイクロコン
ピュータ8の内部で通信異常が発生したことを示すアラ
ームの出力を行った上で、ステップ1211で同期運転
を停止して処理を終了する。
When a communication error occurs in the master or the slave, the microcomputer 8 checks the number of retries in step 1208. If the number of retries is less than the set number, the microcomputer 8 returns to step 1201.
A process for reading the next position data is performed. When the retries have been performed the set number of times or more, the microcomputer 8 executes the operation ending operation in steps 1209 to 1211. The microcomputer 8 executes step 1209
Then, the reception gate control signal 124 is set to the HIGH level to close the reception three-state gate 112 so that the position data cannot be received. At step 1210, an alarm indicating that a communication error has occurred inside the microcomputer 8 is output. After that, the synchronous operation is stopped in step 1211, and the process ends.

【0074】一方、スレーブの駆動制御指令装置113
bは、図11のステップ1221で受信用の3ステート
ゲート112を開けて位置データ118を受信できるよ
うにし、ステップ1222で位置データ118を受信す
るまでそのままの状態で待つ。位置データ118を受信
すると、通信エラーチェック部110が位置データ11
8を正常に受信できたかどうかをチェックし、その結果
をマイクロコンピュータ8に知らせる。ステップ122
3でマイクロコンピュータ8はそのチェック結果より通
信が正常に行われたかを判断する。
On the other hand, the slave drive control command device 113
In step 1221 of FIG. 11, the b opens the receiving three-state gate 112 so that the position data 118 can be received, and waits in that state until the position data 118 is received in step 1222. Upon receiving the position data 118, the communication error check unit 110 causes the position data 11
It is checked whether 8 is normally received, and the result is notified to the microcomputer 8. Step 122
At 3, the microcomputer 8 determines from the check result whether communication has been normally performed.

【0075】通信が正常であれば、マイクロコンピュー
タ8はステップ1224で受信ゲート制御信号124を
HIGHレベルにして受信用の3ステートゲート112
を閉じて位置データ118を受信できないようにする。
また、マイクロコンピュータ8が出力するエラー状態信
号19をLOWレベルにすることにより、エラー信号生
成手段24でエラー信号25bをHIGHレベルにして
マスターの駆動制御指令装置113aにエラーの発生が
なく、正常に動作していることを知らせる。マイクロコ
ンピュータ8は、ステップ1225で処理周期となる一
定時間が経過するまで待ってから、ステップ1221に
戻り、次の受信待ち状態になる。また、外来ノイズの影
響で通信信号の波形が乱れたりすることによって通信エ
ラーが発生した場合には、マイクロコンピュータ8がエ
ラー状態信号19をHIGHレベルにすることにより、
エラー信号生成部24でエラー信号25bをLOWレベ
ルにしてマスターの駆動制御指令装置113aに通信エ
ラーの発生を知らせる。
If the communication is normal, the microcomputer 8 sets the receiving gate control signal 124 to the HIGH level in step 1224, and the receiving three-state gate 112.
Is closed so that the position data 118 cannot be received.
Further, by setting the error state signal 19 output from the microcomputer 8 to the LOW level, the error signal generating means 24 sets the error signal 25b to the HIGH level, and the master drive control command device 113a does not have an error, and the error is normally generated. Notify that it is working. The microcomputer 8 waits until a certain period of time, which is the processing cycle, has passed in step 1225, then returns to step 1221 to enter the next reception waiting state. Further, when a communication error occurs due to the disturbance of the waveform of the communication signal due to the influence of external noise, the microcomputer 8 sets the error state signal 19 to the HIGH level,
The error signal generator 24 sets the error signal 25b to the LOW level to notify the master drive control command device 113a of the occurrence of the communication error.

【0076】また、マイクロコンピュータ8は、ステッ
プ1226でリトライ回数をチェックし、リトライ回数
が設定回数に満たなければ、ステップ1221に戻り、
次の受信待ち状態となる。設定回数以上のリトライが行
われたならば、ステップ1227以降の運転終了動作を
実行する。マイクロコンピュータ8はステップ1227
で受信ゲート制御信号124をHIGHレベルにして受
信用ゲート112を閉じて位置データ118を受信でき
ないようにし、ステップ1228でマイクロコンピュー
タ8の内部で通信異常が発生したことを示すアラームの
出力を行った上で、ステップ1229で同期運転を停止
して処理を終了する。
Further, the microcomputer 8 checks the number of retries in step 1226, and if the number of retries is less than the set number, returns to step 1221 and
The next waiting state is reached. If the retries have been performed the set number of times or more, the operation end operation after step 1227 is executed. The microcomputer 8 executes step 1227.
Then, the reception gate control signal 124 is set to the HIGH level to close the reception gate 112 so that the position data 118 cannot be received, and in step 1228, an alarm indicating that a communication abnormality has occurred inside the microcomputer 8 is output. Above, in step 1229, the synchronous operation is stopped and the processing is ended.

【0077】この実施例3では、全ての駆動制御指令装
置113a〜113bは駆動制御装置のモーション制御
を行う処理周期に合わせて一定のタイミングで位置検出
部114に対してリクエスト信号117を送信し、上記
のデータを読み出す処理を繰り返して実行する。
In the third embodiment, all the drive control command devices 113a to 113b transmit the request signal 117 to the position detecting section 114 at a constant timing in accordance with the processing cycle for performing motion control of the drive control device, The process of reading the above data is repeatedly executed.

【0078】上記実施例1では、例えば、マスターの駆
動制御指令装置の同期チェック回路から出力された同期
タイミング信号を複数のスレーブの駆動制御指令装置の
同期チェック回路に入力するというように、マスターの
駆動制御指令装置のある一つの回路と複数のスレーブの
駆動制御指令装置の対応する一つの回路をある信号で接
続しているが、各信号をシリアル通信が可能なデータに
コード化する手段とそれを解読する手段を設けることに
より、1組の送受信用のケーブルによるシリアル通信で
各信号の送受信を行っても同様の動作を行うことができ
る。
In the first embodiment, for example, the synchronization timing signal output from the synchronization check circuit of the master drive control command device is input to the synchronization check circuits of the plurality of slave drive control command devices. One circuit of the drive control command device and one corresponding circuit of the drive control command devices of a plurality of slaves are connected by a certain signal, and means for coding each signal into data capable of serial communication and its means By providing a means for decoding, the same operation can be performed even if each signal is transmitted / received by serial communication using a pair of transmission / reception cables.

【0079】上記実施例1では、水晶発振器から出力さ
れたクロックを1/211に分周して動作クロックとして
いるので、1MHzの水晶発振器を使用した場合、動作
クロックは488Hzとなり、内部クロックの差による
同期誤差は1μsecとなる。必要となる同期精度の程
度に応じて、水晶発振器の周波数を下げたり、内部クロ
ックの分周比を変更するなどにより、低価格に対応する
ことが出来る。
In the first embodiment, the clock output from the crystal oscillator is divided into 1/2 11 to be the operation clock. Therefore, when the 1 MHz crystal oscillator is used, the operation clock becomes 488 Hz, which is the internal clock. The synchronization error due to the difference is 1 μsec. Depending on the required degree of synchronization accuracy, the cost can be reduced by lowering the frequency of the crystal oscillator or changing the division ratio of the internal clock.

【0080】上記実施例1では、同期のずれをチェック
するためにカウンタとラッチ回路を使用しているが、ソ
フトウェアでカウンタを構成し、そのカウンタのカウン
トアップを停止することでも同様の動作を行うことが出
来る。
In the first embodiment, the counter and the latch circuit are used to check the deviation of the synchronization. However, the same operation is performed by configuring the counter with software and stopping the count up of the counter. You can

【0081】上記実施例3では、通信エラーが発生した
場合に、マスターとなる駆動制御指令装置から位置検出
部に再度リクエスト信号を送信することにより位置検出
部から通信エラーが発生した駆動制御指令装置だけが新
たに位置データを受信できるようにしているが、正常に
位置データを受信した駆動制御指令装置から通信エラー
が発生した駆動制御指令装置に位置データを送信するこ
とができるように構成しても同様の動作が期待できる。
In the third embodiment described above, when a communication error occurs, the master drive control command device transmits a request signal again to the position detection unit to cause a communication error from the position detection unit. Only the position data can be newly received, but it is configured so that the position data can be transmitted from the drive control command device that normally received the position data to the drive control command device in which the communication error occurred. Can be expected to operate in the same way.

【0082】[0082]

【発明の効果】この発明は、以上に説明したように構成
されているので、以下に記載されるような効果を奏す
る。
Since the present invention is constructed as described above, it has the following effects.

【0083】複数のスレーブの駆動制御指令装置の同期
状態をチェックするための同期チェック手段と、マスタ
ーから受信した同期タイミング信号に基づいて同期動作
開始信号を出力する同期制御回路と、同期動作の準備状
態や同期状態を示すエラー状態信号に基づいてエラー信
号を出力するエラー信号生成手段を設けることにより、
複数のスレーブの駆動制御指令装置の動作クロックをマ
スターの駆動制御指令装置の動作クロックと同じタイミ
ングで発生させることができるように構成したので、複
数の駆動制御指令装置間で同期運転を行うことが出来
る。
Synchronization check means for checking the synchronization state of a plurality of slave drive control command devices, a synchronization control circuit for outputting a synchronization operation start signal based on a synchronization timing signal received from the master, and preparation for synchronization operation By providing an error signal generating means for outputting an error signal based on an error status signal indicating a status or a synchronization status,
Since the operation clocks of the plurality of slave drive control command devices can be generated at the same timing as the operation clocks of the master drive control command device, it is possible to perform synchronous operation between the plurality of drive control command devices. I can.

【0084】また、水晶発振器から出力されたクロック
をN分の1に分周して動作クロックを生成するためのカ
ウンタと、同期タイミング信号が立ち下がった瞬間に前
記カウンタの値をラッチするためのラッチ回路、予め設
定しておいた値とラッチ回路のラッチ内容を比較して同
期が正常であるかをチェックするマイクロコンピュータ
を設けることにより、スレーブの駆動制御指令装置の動
作クロックがマスターの駆動制御指令装置の動作クロッ
クから同期ずれを起こしたことをマスターの駆動制御指
令装置に通報できるように構成したので、どれか一つの
のスレーブの駆動制御指令装置の同期状態に異常が発生
した場合に運転を阻止することが出来る。
A counter for dividing the clock output from the crystal oscillator into 1 / N to generate an operation clock, and a counter for latching the value of the counter at the moment when the synchronization timing signal falls. The operation clock of the slave drive control command device is set to the master drive control by providing a latch circuit and a microcomputer that checks whether synchronization is normal by comparing the preset value with the latch content of the latch circuit. Since it is configured to notify the master drive control command device that a synchronization deviation has occurred from the operation clock of the command device, operation is performed when an abnormality occurs in the synchronization state of any one slave drive control command device. Can be prevented.

【0085】また、運転状態を切り換えるための情報を
載せたパラレルデータをシリアルデータに変換するパラ
レル/シリアルデータ変換手段と、マスターの駆動制御
指令装置から入力されたシリアルデータをパラレルデー
タに変換するシリアル/パラレルデータ変換手段と、パ
ラレル/シリアルデータ変換手段あるいはシリアル/パ
ラレルデータ変換手段でシリアルデータを送信あるいは
受信するためのタイミングを取るシフトクロックを出力
するシフトクロック生成手段、2重に受信したシリアル
データを比較してチェックすると同時に運転モードを認
識するコード比較手段と、動作クロックを供給するタイ
ミングを切り換えるモード切り換え手段を設けることに
より、外部からスレーブの駆動制御指令装置の運転状態
を切り換えられるように構成したので、マスターの駆動
制御指令装置からのシリアルデータによって運転中の複
数のスレーブの駆動制御指令装置の運転状態を非同期運
転から同期運転に、あるいは同期運転から非同期運転に
切り換えることができる。
In addition, parallel / serial data conversion means for converting parallel data carrying information for switching the operating state into serial data, and serial for converting serial data input from the master drive control command device into parallel data. / Parallel data conversion means, shift clock generation means for outputting a shift clock for timing transmission or reception of serial data by the parallel / serial data conversion means or the serial / parallel data conversion means, the serial data received twice By providing code comparison means for comparing and checking the operation mode and recognizing the operation mode and mode switching means for switching the timing of supplying the operation clock, the operation state of the drive control command device of the slave can be externally switched. Having urchin configuration, it is possible to switch the operating state of the plurality of slave drive control commanding unit during operation by a serial data from the master drive control commanding unit in the synchronous operation of the asynchronous operation, or from the synchronous operation to the asynchronous operation.

【0086】さらに、マイクロコンピュータから出力さ
れるリクエストデータに基づいて位置検出手段に対して
位置データの送信を要求するためのリクエスト信号を出
力するパラレル/シリアルデータ変換手段と、位置検出
手段から受信した位置データをマイクロコンピュータで
扱えるパラレルデータに変換するシリアル/パラレルデ
ータ変換回路と、位置データが正常に受信されたことを
確認する通信チェック回路を設けることにより、マスタ
ーの駆動制御指令装置だけからのリクエスト信号によっ
て位置検出手段に位置データを要求して位置データを受
け取るように構成したので、一台の位置検出手段の回転
に同期して複数の駆動制御指令装置を同期運転すること
ができる。
Further, the parallel / serial data converting means for outputting a request signal for requesting the position detecting means to transmit the position data based on the request data output from the microcomputer and the position detecting means are received. By providing a serial / parallel data conversion circuit that converts the position data into parallel data that can be handled by a microcomputer, and a communication check circuit that confirms that the position data was received correctly, requests from only the master drive control command device can be made. Since the position data is requested to the position detection means by the signal and the position data is received, it is possible to operate the plurality of drive control command devices synchronously in synchronization with the rotation of one position detection means.

【0087】また、通信エラーが発生した場合に、マス
ターとなる駆動制御指令装置から位置検出手段に再度リ
クエスト信号を送信することにより位置検出手段から通
信エラーが発生した駆動制御指令装置だけが新たに位置
データを受信できるようにしたので、通信エラーが発生
した駆動制御指令装置の同期のずれを最小限に抑え、通
信エラーが発生してもすぐに同期ずれのない正常な同期
運転を回復することができる。
Further, when a communication error occurs, the master drive control command device transmits a request signal to the position detecting means again, so that only the drive control command device having the communication error from the position detecting means is newly added. Since the position data can be received, the synchronization deviation of the drive control command device in which a communication error occurs can be minimized, and normal synchronous operation without synchronization deviation can be recovered immediately even if a communication error occurs. You can

【0088】また、スレーブで通信エラーが発生した場
合に、通信エラーの発生をマスターに知らせるために、
同期チェックに使用するエラー信号生成手段とエラー信
号を共用できるように構成したので、回路構成の簡略化
および省配線化を計ることができる。
Further, in order to notify the master of the occurrence of the communication error when the communication error occurs in the slave,
Since the error signal generating means used for the synchronization check can be shared with the error signal, the circuit configuration can be simplified and the wiring can be saved.

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

【図1】 この発明による駆動制御指令装置の同期シス
テムの構成図である。
FIG. 1 is a configuration diagram of a synchronization system of a drive control command device according to the present invention.

【図2】 この発明による駆動制御指令装置の回路図で
ある。
FIG. 2 is a circuit diagram of a drive control command device according to the present invention.

【図3】 この発明による駆動制御指令装置の動作説明
用波形図である。
FIG. 3 is a waveform diagram for explaining the operation of the drive control command device according to the present invention.

【図4】 この発明による同期動作の制御方法を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a method for controlling a synchronous operation according to the present invention.

【図5】 この発明による運転モードを切り換える手段
を有した駆動制御指令装置の構成図である。
FIG. 5 is a configuration diagram of a drive control command device having means for switching operation modes according to the present invention.

【図6】 この発明による駆動制御指令装置の同期制御
方法を示すフローチャートである。
FIG. 6 is a flowchart showing a synchronous control method of the drive control command device according to the present invention.

【図7】 この発明による駆動制御指令装置の同期タイ
ミング図である。
FIG. 7 is a synchronization timing chart of the drive control command device according to the present invention.

【図8】 この発明による駆動制御指令装置の一台の位
置検出手段に対する同期システムの構成図である。
FIG. 8 is a configuration diagram of a synchronization system for one position detection means of the drive control command device according to the present invention.

【図9】 この発明による一台の位置検出手段に対する
同期システムを構成する駆動制御指令装置の回路図であ
る。
FIG. 9 is a circuit diagram of a drive control command device that constitutes a synchronization system for one position detecting means according to the present invention.

【図10】 この発明による位置検出手段との通信にお
けるマスター駆動制御指令装置の通信制御方法を示すフ
ローチャートである。
FIG. 10 is a flowchart showing a communication control method of the master drive control command device in communication with the position detecting means according to the present invention.

【図11】 この発明による位置検出手段との通信にお
けるスレーブ駆動制御指令装置の通信制御方法を示すフ
ローチャートである。
FIG. 11 is a flowchart showing a communication control method of the slave drive control command device in communication with the position detecting means according to the present invention.

【図12】 従来の駆動制御指令装置による同期システ
ムの構成図である。
FIG. 12 is a configuration diagram of a synchronization system using a conventional drive control command device.

【図13】 従来の位置決め装置の同期システムの構成
図である。
FIG. 13 is a configuration diagram of a synchronization system of a conventional positioning device.

【図14】 従来のディジタル装置の同期方式の構成図
である。
FIG. 14 is a block diagram of a synchronization system of a conventional digital device.

【図15】 従来の駆動制御指令装置の動作クロックの
動作説明波形図である。
FIG. 15 is an operation explanation waveform diagram of an operation clock of a conventional drive control command device.

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

1、1a、1b 駆動制御指令装置、 5 動作クロッ
ク、 8 マイクロコンピュータ、 9 動作クロック
発生部、 11 割り込み発生部、 12 割り込み信
号、 13 局番設定部、 15 同期タイミング信号
送信部、 17同期タイミング信号、 18 同期制御
部、 19 エラー状態信号、 20同期動作開始信
号、 22 同期チェック部、 25 エラー信号、
27移動開始信号、 28 水晶発振器、 30 カウ
ンタ、 42 ラッチ回路、82、82a、82b 駆
動制御指令装置、 83、83a、83b シフトクロ
ック発生部、 84、84a、84b パラレル/シリ
アルデータ変換部、85、85a、85b シリアル/
パラレルデータ変換部、 86a、86bシフトクロッ
ク、 87 コード比較部、 88 シリアルデータ、
108パラレル/シリアルデータ変換部、 109
シリアル/パラレルデータ変換部、 110 通信エラ
ーチェック部、 113、113a、113b 駆動制
御指令装置、 114 位置検出部、 117 リクエ
スト信号、 118 位置データ、 120 リクエス
トデータ
1, 1a, 1b drive control command device, 5 operation clock, 8 microcomputer, 9 operation clock generation unit, 11 interrupt generation unit, 12 interrupt signal, 13 station number setting unit, 15 synchronization timing signal transmission unit, 17 synchronization timing signal, 18 synchronization control unit, 19 error status signal, 20 synchronization operation start signal, 22 synchronization check unit, 25 error signal,
27 movement start signal, 28 crystal oscillator, 30 counter, 42 latch circuit, 82, 82a, 82b drive control command device, 83, 83a, 83b shift clock generator, 84, 84a, 84b parallel / serial data converter, 85, 85a, 85b serial /
Parallel data conversion unit, 86a, 86b shift clock, 87 code comparison unit, 88 serial data,
108 parallel / serial data converter, 109
Serial / parallel data conversion unit, 110 communication error check unit, 113, 113a, 113b drive control command device, 114 position detection unit, 117 request signal, 118 position data, 120 request data

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 19/02 W 19/05 19/414 G05D 3/00 R Q 3/12 Q G05B 19/05 J 19/18 N W ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G05B 19/02 W 19/05 19/414 G05D 3/00 R Q 3/12 Q G05B 19/05 J 19/18 N W

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 動作クロックを発生する動作クロック発
生手段と、この動作クロックの周期ごとに割り込み信号
を出力する割り込み発生手段と、第一の駆動制御指令装
置として動作させるかあるいは第二の駆動制御指令装置
として動作させるかを示す局番を設定する局番設定手段
と、前記第一の駆動制御指令装置として使用する場合に
だけ動作して前記動作クロックに基づいて同期タイミン
グ信号を出力する同期タイミング信号送信手段と、前記
第二の駆動制御指令装置として使用する場合にだけ動作
して同期動作の準備状態や同期状態を示すエラー状態信
号と前記第一の駆動制御指令装置から受信した同期タイ
ミング信号に基づいて同期動作開始信号を出力する同期
制御手段と、前記第二の駆動制御指令装置の動作が前記
第一の駆動制御指令装置の動作に同期しているかを判定
する同期チェック手段と、エラー状態信号に基づいてエ
ラー信号を出力するエラー信号生成手段と、前記第一の
駆動制御指令装置として使用する場合に移動開始信号を
出力するとともに同期制御を行い、前記第二の駆動制御
指令装置として使用する場合に移動開始信号の入力によ
り同期制御を行うマイクロコンピュータと、を備えた駆
動制御指令装置。
1. An operation clock generating means for generating an operation clock, an interrupt generating means for outputting an interrupt signal at each cycle of the operation clock, and an operation as a first drive control command device or a second drive control. Station number setting means for setting a station number indicating whether to operate as a command device, and synchronization timing signal transmission that operates only when used as the first drive control command device and outputs a synchronization timing signal based on the operation clock Means and an error status signal that operates only when used as the second drive control command device and indicates a preparation state or a synchronous condition for a synchronous operation, and a synchronization timing signal received from the first drive control command device. And a synchronization control means for outputting a synchronous operation start signal, and the operation of the second drive control command device is the first drive control command. A synchronization check means for determining whether or not it is synchronized with the operation of the device, an error signal generating means for outputting an error signal based on an error state signal, and a movement start signal when used as the first drive control command device. A drive control command device, comprising: a microcomputer that outputs and performs synchronous control, and performs synchronous control by inputting a movement start signal when used as the second drive control command device.
【請求項2】 水晶発振器から出力されたクロックをN
分の1に分周して動作クロックを生成するためのカウン
ト手段と、同期タイミング信号のレベルが変化した瞬間
に前記カウント手段の値をラッチするためのラッチ手段
と、予め設定しておいた値と前記ラッチ手段のラッチ内
容を比較して同期が正常であるかをチェックする同期チ
ェック手段と、を備えたことを特徴とする請求項1記載
の駆動制御指令装置。
2. The clock output from the crystal oscillator is N
Counting means for dividing the frequency by 1 to generate an operation clock, latching means for latching the value of the counting means at the moment when the level of the synchronization timing signal changes, and a preset value 2. The drive control command device according to claim 1, further comprising: a synchronization check unit that compares the latch contents of the latch unit with each other to check whether synchronization is normal.
【請求項3】 複数台の駆動制御指令装置からなるシス
テムにおいて、第一の駆動制御指令装置は第二の駆動制
御指令装置に対して同期タイミング信号および移動開始
信号を出力し、第二の駆動制御指令装置は第一の駆動制
御指令装置から受信した前記同期タイミング信号に基づ
いて第一の駆動制御指令装置との動作クロックの同期を
とるとともに、受信した前記移動開始信号に基づいて同
期運転を実行することを特徴とする駆動制御指令装置の
同期制御システム。
3. A system comprising a plurality of drive control command devices, wherein the first drive control command device outputs a synchronization timing signal and a movement start signal to the second drive control command device to drive the second drive control command device. The control command device synchronizes an operation clock with the first drive control command device based on the synchronization timing signal received from the first drive control command device, and performs synchronous operation based on the received movement start signal. A synchronous control system for a drive control command device, characterized by being executed.
【請求項4】 駆動制御指令装置が第一の駆動制御指令
装置として設定されているか第二の駆動制御指令装置と
して設定されているか判定する段階と、第一の駆動制御
指令装置として設定されている場合に、第二の駆動制御
指令装置の準備完了を判定する段階と、準備完了の場合
に第二の駆動制御指令装置に対して第一の駆動制御指令
装置との動作クロックの同期をとるために同期タイミン
グ信号を出力する段階と、駆動部を制御する駆動制御装
置に対して位置や速度を制御するための処理を実行する
段階と、同期状態が良好か否かを判定する段階と、同期
状態が良好な場合に同期運転を実行する段階と、同期状
態が不十分な場合に同期運転を停止し、同期ずれアラー
ムを出力する段階と、同期運転実行中において同期運転
終了か否かを判定する段階と、同期運転終了の場合には
第二の駆動制御指令装置に対して同期タイミング信号の
出力を停止して同期運転を停止させ同期運転終了する段
階と、第二の駆動制御指令装置として設定されている場
合に、運転準備を実行し完了とともに第一の駆動制御指
令装置に運転準備完了を出力する段階と、第一の駆動制
御指令装置からの同期タイミング信号の受信を待つ段階
と、同期タイミング信号の受信により駆動部を制御する
駆動制御装置に対して位置や速度を制御するための処理
を実行する段階と、同期状態が良好か否かを判定する段
階と、同期状態が良好な場合に同期運転を実行する段階
と、同期状態が不十分な場合に第一の駆動制御指令装置
にエラー信号を出力するとともに同期運転を停止し、同
期ずれアラームを出力する段階と、同期運転実行中にお
いて同期運転終了か否かを判定する段階と、同期運転終
了の場合には同期運転を停止させ同期運転終了する段階
と、を有することを特徴とする駆動制御指令装置の同期
制御方法。
4. A step of determining whether the drive control command device is set as the first drive control command device or the second drive control command device, and the step of determining whether the drive control command device is set as the first drive control command device. When the preparation is completed, the operation clock of the second drive control command device is synchronized with that of the first drive control command device. In order to output a synchronization timing signal, a step of performing a process for controlling the position and speed to the drive control device that controls the drive unit, a step of determining whether the synchronization state is good, Whether the synchronous operation is executed when the synchronous condition is good, the synchronous operation is stopped when the synchronous condition is insufficient, and a sync deviation alarm is output, and whether or not the synchronous operation ends during execution of the synchronous operation Judge And a step of terminating the synchronous operation by stopping the output of the synchronization timing signal to the second drive control command device to stop the synchronous operation when the synchronous operation ends, and as a second drive control command device. When set, the step of executing the operation preparation and outputting the completion of the operation preparation to the first drive control command device together with the completion, and the step of waiting for the reception of the synchronization timing signal from the first drive control command device, The step of performing processing for controlling the position and speed of the drive control device that controls the drive unit by receiving the synchronization timing signal, the step of determining whether the synchronization state is good, and the state of good synchronization In the case of executing the synchronous operation, and the step of outputting an error signal to the first drive control command device when the synchronous state is insufficient, stopping the synchronous operation, and outputting a synchronization deviation alarm. A synchronous control method for a drive control command device, comprising: a step of determining whether or not the synchronous operation ends during operation execution; and a step of stopping the synchronous operation and ending the synchronous operation when the synchronous operation ends. .
【請求項5】 マイクロコンピュータと、動作クロック
を発生する動作クロック発生手段と、この動作クロック
の周期ごとに前記マイクロコンピュータへの割り込み信
号を出力する割り込み発生手段と、第一の駆動制御指令
装置として動作させるかあるいは第二の駆動制御指令装
置として動作させるかを示す局番を設定する局番設定手
段と、第一の駆動制御指令装置となる場合に動作して前
記マイクロコンピュータからのパラレルデータをシリア
ルデータに変換するパラレル/シリアルデータ変換手段
と、第二の駆動制御指令装置となる場合に動作して第一
の駆動制御指令装置から受信したシリアルデータをマイ
クロコンピュータで扱える様にパラレルデータに変換す
るシリアル/パラレルデータ変換手段と、パラレル/シ
リアルデータ変換手段あるいはシリアルパラレルデータ
変換手段でシリアルデータを送信あるいは受信するため
のタイミングを取るシフトクロックを出力するシフトク
ロック生成手段と、第二の駆動制御指令装置となる場合
に動作して2重に受信したシリアルデータを比較して異
常がないかをチェックすると同時に運転状態を非同期運
転から同期運転へ、あるいは同期運転から非同期運転へ
切り換えるための運転モードを認識するコード比較手段
と、を備え、前記マイクロコンピュータは前記第一の駆
動制御指令装置の場合には移動開始信号を出力するとと
もに同期制御を行い、前記第二の駆動制御指令装置の場
合には移動開始信号の入力により同期制御を行うことを
特徴とした駆動制御指令装置。
5. A microcomputer, an operating clock generating means for generating an operating clock, an interrupt generating means for outputting an interrupt signal to the microcomputer in each cycle of the operating clock, and a first drive control command device. Station number setting means for setting a station number indicating whether to operate or as a second drive control command device, and parallel data from the microcomputer that operates when it becomes the first drive control command device to serial data Parallel / serial data converting means for converting into serial data, and serial for converting the serial data received from the first drive control command device into parallel data so as to be operated by the microcomputer when operating as the second drive control command device. / Parallel data converter and parallel / serial data converter Shift clock generating means for outputting a shift clock that takes timing for transmitting or receiving serial data by the stage or the serial / parallel data converting means, and the second drive control commanding device which operates to receive dually. A microcomputer for comparing the serial data to check whether there is any abnormality, and at the same time, for recognizing an operation mode for switching the operation state from asynchronous operation to synchronous operation or from synchronous operation to asynchronous operation. In the case of the first drive control command device, synchronous control is performed while outputting a movement start signal, and in the case of the second drive control command device, synchronous control is performed by input of the movement start signal. Drive control command device.
【請求項6】 駆動制御指令装置が第一の駆動制御指令
装置として設定されているか第二の駆動制御指令装置と
して設定されているか判定する段階と、第一の駆動制御
指令装置として設定されている場合に、シリアルデータ
を第二の駆動制御指令装置に出力する段階と、第二の駆
動制御指令装置の準備完了を判定する段階と、駆動部を
制御する駆動制御装置に対して位置や速度を制御するた
めの処理を実行する段階と、同期状態が良好か否かを判
定する段階と、同期状態が良好な場合に同期運転を実行
する段階と、同期状態が不十分な場合に同期運転を停止
し、同期ずれアラームを出力する段階と、同期運転実行
中において同期運転終了か否かを判定する段階と、同期
運転終了の場合には第二の駆動制御指令装置に対してシ
リアルデータの出力を停止して同期運転を停止させ同期
運転終了する段階と、第二の駆動制御指令装置として設
定されている場合に、第一の駆動制御指令装置からのシ
リアルデータの受信を待つ段階と、運転準備を実行し完
了とともに第一の駆動制御指令装置に運転準備完了を出
力する段階と、シリアルデータの受信により駆動部を制
御する駆動制御装置に対して位置や速度を制御するため
の処理を実行する段階と、同期状態が良好か否かを判定
する段階と、同期状態が良好な場合に同期運転を実行す
る段階と、同期状態が不十分な場合に第一の駆動制御指
令装置にエラー信号を出力するとともに同期運転を停止
し、同期ずれアラームを出力する段階と、同期運転実行
中において同期運転終了か否かを判定する段階と、同期
運転終了の場合には同期運転を停止させ同期運転終了す
る段階と、を有する駆動制御指令装置の同期制御方法。
6. A step of determining whether the drive control command device is set as the first drive control command device or the second drive control command device, and the step of setting the drive control command device as the first drive control command device. Output of serial data to the second drive control command device, the step of determining the preparation completion of the second drive control command device, and the position and speed of the drive control device controlling the drive unit. To execute the process for controlling, the step of determining whether or not the synchronization state is good, the step of performing the synchronous operation when the synchronization state is good, and the synchronous operation when the synchronization state is insufficient. To output a synchronization error alarm, a step of determining whether or not the synchronous operation ends during execution of the synchronous operation, and in the case of ending the synchronous operation, the serial data is sent to the second drive control command device. output To stop the synchronous operation and end the synchronous operation, and when set as the second drive control command device, wait for the reception of serial data from the first drive control command device, and the operation Execute the preparation and output the operation preparation completion to the first drive control command device upon completion, and execute the process for controlling the position and speed to the drive control device that controls the drive unit by receiving the serial data , A step of determining whether or not the synchronization state is good, a step of executing the synchronous operation when the synchronization state is good, and an error signal to the first drive control command device when the synchronization state is insufficient. Is output and the synchronous operation is stopped and a synchronization deviation alarm is output, a step of determining whether or not the synchronous operation is completed during execution of the synchronous operation, and a synchronous operation is stopped when the synchronous operation is completed. Synchronous control method for the drive control commanding unit having the steps of synchronizing the operation end.
【請求項7】 マイクロコンピュータと、動作クロック
を発生する動作クロック発生手段と、この動作クロック
の周期ごとに前記マイクロコンピュータへの割り込み信
号を出力する割り込み発生手段と、第一の駆動制御指令
装置として動作させるかあるいは第二の駆動制御指令装
置として動作させるかを示す局番を設定する局番設定手
段と、第一の駆動制御指令装置として使用する場合にだ
け動作して前記動作クロックに基づいて同期タイミング
信号を出力する同期タイミング信号送信手段と、第二の
駆動制御指令装置として使用する場合にだけ動作して同
期動作の準備状態や同期状態を示すエラー状態信号と第
一の駆動制御指令装置から受信した同期タイミング信号
に基づいて同期動作開始信号を出力する同期制御手段
と、第二の駆動制御指令装置の動作が第一の駆動制御指
令装置の前記駆動制御指令装置の動作に同期しているか
を判定する同期チェック手段と、エラー状態信号に基づ
いてエラー信号を出力するエラー信号生成手段と、第一
の駆動制御指令装置となる場合に前記マイクロコンピュ
ータからのリクエストデータに応じて位置検出手段に位
置データの送信を要求するリクエスト信号を出力するパ
ラレル/シリアルデータ変換手段、前記位置検出手段か
ら受信したシリアル形式の位置データをパラレルデータ
に変換するシリアル/パラレルデータ変換手段、前位置
データが正常に入力されたことをチェックする通信チェ
ック手段を備えた駆動制御指令装置。
7. A microcomputer, an operating clock generating means for generating an operating clock, an interrupt generating means for outputting an interrupt signal to the microcomputer in each cycle of the operating clock, and as a first drive control command device. Station number setting means for setting a station number indicating whether to operate or as the second drive control command device, and a synchronization timing based on the operation clock that operates only when used as the first drive control command device. Synchronous timing signal transmitting means for outputting a signal, and an error status signal which operates only when used as a second drive control command device and indicates a preparation state or a synchronous state of a synchronous operation and receives from the first drive control command device Synchronization control means for outputting a synchronization operation start signal based on the synchronized timing signal, and a second drive control finger. Synchronization check means for determining whether the operation of the command device is synchronized with the operation of the drive control command device of the first drive control command device, and an error signal generation means for outputting an error signal based on an error status signal, Parallel / serial data conversion means for outputting a request signal requesting position data transmission to the position detection means in response to request data from the microcomputer when the first drive control command device is received, received from the position detection means A drive control command device comprising serial / parallel data conversion means for converting the serial position data into parallel data and communication check means for checking that the previous position data has been normally input.
【請求項8】 第二の駆動制御指令装置で通信エラーが
発生した場合に、通信エラーの発生を第一の駆動制御指
令装置に知らせるために、同期チェックに使用するエラ
ー信号生成手段とエラー信号を共用することを特徴とす
る請求項7記載の駆動制御指令装置。
8. An error signal generating means and an error signal used for synchronization check in order to notify the first drive control command device of the occurrence of a communication error when a communication error occurs in the second drive control command device. 8. The drive control command device according to claim 7, wherein the drive control command device is shared.
【請求項9】 1台の位置検出手段と複数台の駆動制御
指令装置からなるシステムにおいて、第一の駆動制御指
令装置は第二の駆動制御指令装置に対して同期タイミン
グ信号および移動開始信号を出力するとともに、位置検
出手段にリクエスト信号を出力し、この位置検出手段か
らの位置データに同期して同期運転を実行し、前記第二
の駆動制御指令装置は前記第一の駆動制御指令装置から
受信した前記同期タイミング信号に基づいて前記第一の
駆動制御指令装置との動作クロックの同期をとるととも
に、受信した前記移動開始信号および前記位置検出手段
からの位置データに同期して同期運転を実行することを
特徴とする駆動制御指令装置の同期制御システム。
9. In a system comprising one position detecting means and a plurality of drive control command devices, the first drive control command device sends a synchronization timing signal and a movement start signal to the second drive control command device. Along with outputting, a request signal is output to the position detecting means, synchronous operation is executed in synchronization with the position data from the position detecting means, and the second drive control command device is from the first drive control command device. The operation clock is synchronized with the first drive control command device based on the received synchronization timing signal, and synchronous operation is executed in synchronization with the received movement start signal and position data from the position detection means. A synchronous control system for a drive control command device, comprising:
【請求項10】 第一の駆動制御指令装置として設定さ
れている場合に、位置検出手段に同期運転に必要な位置
データやアラーム情報を要求するリクエスト信号を位置
検出手段に送信する段階と、この位置検出手段から前記
リクエスト信号に対する位置データの受信を待つ段階
と、第二の駆動制御指令装置を含めて前記位置データの
受信が正常に行われたか否かを判定する段階と、前記位
置データの受信が正常に行われた場合に位置データの受
信を不可とし、次の位置データを読み出すまで一定時間
待つ段階と、前記位置データの受信が異常の場合には更
にリトライ回数を判定し、前記リトライ回数が設定回数
以内であれば上記のリクエスト信号を位置検出手段に送
信する段階に戻し、前記リトライ回数が設定回数以上で
あればアラーム出力し、同期運転を停止し、処理を終了
する段階と、第二の駆動制御指令装置として設定されて
いる場合に、前記位置検出手段から前記リクエスト信号
に対する位置データの受信を待つ段階と、前記位置デー
タの受信が正常に行われたか否かを判定する段階と、前
記位置データの受信が正常に行われた場合に位置データ
の受信を不可とし、次の位置データを読み出すまで一定
時間待つ段階と、前記位置データの受信が異常の場合に
は更にリトライ回数を判定し、前記リトライ回数が設定
回数以内であれば上記の前記位置検出手段から前記リク
エスト信号に対する位置データの受信を待つ段階に戻
し、前記リトライ回数が設定回数以上であればアラーム
出力し、同期運転を停止し、処理を終了する段階と、を
有し、前記位置データの受信が異常の駆動制御指令装置
だけが新たに位置データを受信することを特徴とする駆
動制御指令装置の同期制御方法。
10. A step of transmitting, to the position detecting means, a request signal requesting position data and alarm information required for synchronous operation to the position detecting means when set as the first drive control command device, A step of waiting for reception of position data in response to the request signal from the position detection means, a step of determining whether or not the reception of the position data including the second drive control command device is normally performed, When the reception is successful, the position data cannot be received, and a certain period of time is waited until the next position data is read. If the position data reception is abnormal, the retry count is further determined and the retry is performed. If the number of times is within the set number of times, return to the stage of transmitting the above request signal to the position detecting means, and if the number of retries is greater than or equal to the set number of times, output an alarm. A step of stopping the synchronous operation and ending the processing; a step of waiting for reception of position data in response to the request signal from the position detection means, when the second drive control command device is set; A step of determining whether or not the reception of the position data has been normally performed, a position data reception is disabled when the reception of the position data is normally performed, and a step of waiting for a certain period of time until the next position data is read, If the reception of the position data is abnormal, the number of retries is further determined, and if the number of retries is within a set number of times, return to the stage of waiting for the reception of the position data for the request signal from the position detection means, If the number of retries is greater than or equal to the set number, an alarm is output, synchronous operation is stopped, and processing is terminated. Synchronous control method for the drive control commanding unit only control command device is characterized in that to receive the new position data.
JP21124294A 1994-09-05 1994-09-05 Drive control command device and synchronization control system and method for plural drive control command devices Pending JPH0876822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21124294A JPH0876822A (en) 1994-09-05 1994-09-05 Drive control command device and synchronization control system and method for plural drive control command devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21124294A JPH0876822A (en) 1994-09-05 1994-09-05 Drive control command device and synchronization control system and method for plural drive control command devices

Publications (1)

Publication Number Publication Date
JPH0876822A true JPH0876822A (en) 1996-03-22

Family

ID=16602650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21124294A Pending JPH0876822A (en) 1994-09-05 1994-09-05 Drive control command device and synchronization control system and method for plural drive control command devices

Country Status (1)

Country Link
JP (1) JPH0876822A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017019A1 (en) * 2001-08-02 2003-02-27 Mitsubishi Denki Kabushiki Kaisha Servo control system and its control method
US7024257B2 (en) 2001-02-09 2006-04-04 Motion Engineering, Inc. System for motion control, method of using the system for motion control, and computer-readable instructions for use with the system for motion control
WO2013146743A1 (en) * 2012-03-30 2013-10-03 株式会社デンソーウェーブ Control device for controlling rotation of robotic joint
CN103995471A (en) * 2014-05-23 2014-08-20 华中科技大学 Clock synchronization method of distributed control system
US9883474B2 (en) 2013-07-19 2018-01-30 Mitsubishi Electric Corporation Ring-shaped synchronous network system and time slave station

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7460471B2 (en) 2001-02-09 2008-12-02 Motion Engineering, Inc. System for motion control, method of using the system for motion control, and computer readable instructions for use with the system for motion control
US7024257B2 (en) 2001-02-09 2006-04-04 Motion Engineering, Inc. System for motion control, method of using the system for motion control, and computer-readable instructions for use with the system for motion control
US7143301B2 (en) 2001-02-09 2006-11-28 Motion Engineering, Inc. System for motion control, method of using the system for motion control, and computer readable instructions for use with the system for motion control
US7406354B2 (en) 2001-02-09 2008-07-29 Motion Engineering, Inc. System for motion control, method of using the system for motion control, and computer readable instructions for use with the system for motion control
JPWO2003017019A1 (en) * 2001-08-02 2004-12-09 三菱電機株式会社 Servo control system and control method thereof
US7009357B2 (en) 2001-08-02 2006-03-07 Mitsubishi Denki Kabushiki Kaisha Servo control system and its control method
WO2003017019A1 (en) * 2001-08-02 2003-02-27 Mitsubishi Denki Kabushiki Kaisha Servo control system and its control method
JP4678120B2 (en) * 2001-08-02 2011-04-27 三菱電機株式会社 Servo control system and control method thereof
WO2013146743A1 (en) * 2012-03-30 2013-10-03 株式会社デンソーウェーブ Control device for controlling rotation of robotic joint
JP2013208664A (en) * 2012-03-30 2013-10-10 Denso Wave Inc Control system of robot
US9306434B2 (en) 2012-03-30 2016-04-05 Denso Wave Incorporated Control apparatus for controlling rotation of joints of robot
US9883474B2 (en) 2013-07-19 2018-01-30 Mitsubishi Electric Corporation Ring-shaped synchronous network system and time slave station
CN103995471A (en) * 2014-05-23 2014-08-20 华中科技大学 Clock synchronization method of distributed control system

Similar Documents

Publication Publication Date Title
JPH08123520A (en) Driving control commanding device, system and method for controlling synchronism between plural driving control commanders
JP2636534B2 (en) Communications system
KR100193947B1 (en) Numerical control device using personal computer and its control method
US6539489B1 (en) Apparatus, method and system for synchronizing slave system operations to master system clocking signals in a master-slave asynchronous communication system
JP3566304B2 (en) Bus control device and bus control system
CN111052006B (en) Control device and control method
JP3108393B2 (en) Control system using PLC
JPH0876822A (en) Drive control command device and synchronization control system and method for plural drive control command devices
CN100479295C (en) Synchronized switching controller and its control for parallel uninterrupted power supply
CN107272400B (en) Synchronous redundant sequence control device and method
EP0507955A1 (en) Method for operating cnc synchronously
JPH04287458A (en) Transmission rate control system for serial interface
JPH07200010A (en) Programmable controller and communication method of exclusive control therefor
JPH09219714A (en) Transmission control system
JPS62187901A (en) Method for controlling duplex controller
WO1988009532A1 (en) Serial data link for numerical control device
JP2715547B2 (en) Transmission equipment parent / child station replacement system
JPH08191319A (en) Data communication system
JPH1188385A (en) Data communication system among plural systems
JPS62200840A (en) Link unit for programmable controller
JPH0715419A (en) Controller for device
JPH02216998A (en) Remote control method for plural slave sets
JPH03230651A (en) Pointer processing system
JPH01170142A (en) Data transmission system
JPH01114230A (en) Serial date transmission system