JPH0715419A - Equipment control device - Google Patents
Equipment control deviceInfo
- Publication number
- JPH0715419A JPH0715419A JP5151923A JP15192393A JPH0715419A JP H0715419 A JPH0715419 A JP H0715419A JP 5151923 A JP5151923 A JP 5151923A JP 15192393 A JP15192393 A JP 15192393A JP H0715419 A JPH0715419 A JP H0715419A
- Authority
- JP
- Japan
- Prior art keywords
- receiving
- data transmission
- station
- signal
- transmitting
- 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
Links
Landscapes
- Dc Digital Transmission (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Selective Calling Equipment (AREA)
- Bidirectional Digital Transmission (AREA)
Abstract
(57)【要約】
【目的】 本発明は主局となる機器の送受信時の負担の
軽減と、従局となる機器の1秒以上の長い時間の精度を
保証し、基準時間の共有化を図った機器の制御装置を提
供することを目的としている
【構成】 主局となる機器15と従局となる機器16か
らなり、機器15は、同期信号発生手段19、送信手段
20、受信手段21、制御手段22および制御手段22
から基準となる信号を受けて主局となる機器内の時限を
カウントする計時手段23とを有する。また機器16
は、主局となる機器から送信されたデータ伝送電文を受
信する受信手段24と、送信手段25と、制御手段26
およびこの制御手段から基準となる信号を受けて従局と
なる機器内の時限をカウントする計時手段27とを有す
る。そして機器15は常時機器16がその基準となる信
号を作成できるようなデータ伝送電文を送信し続けるも
のである。
(57) [Abstract] [Purpose] The present invention aims to reduce the load at the time of transmission / reception of a device serving as a master station, guarantee the accuracy of a long time of 1 second or more of a device serving as a slave station, and share a reference time. The present invention is intended to provide a control device for a device, which comprises a device 15 as a master station and a device 16 as a slave station. The device 15 includes a synchronization signal generating means 19, a transmitting means 20, a receiving means 21, and a control. Means 22 and control means 22
And a time measuring means 23 for counting the time limit in the device serving as the main station by receiving a reference signal from the device. Equipment 16
Is a receiving means 24 for receiving a data transmission message transmitted from a device serving as a main station, a transmitting means 25, and a control means 26.
And a clocking means 27 which receives a reference signal from this control means and counts the time limit in the device which is the slave station. Then, the device 15 always keeps transmitting the data transmission message that allows the device 16 to create a signal serving as the reference.
Description
【0001】[0001]
【産業上の利用分野】本発明は複数の機器間でポーリン
グ/セレクティング方式の伝送制御を行う制御装置に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller for controlling polling / selecting transmission between a plurality of devices.
【0002】[0002]
【従来の技術】従来、二つの機器間を伝送通信路で接続
して大量のデータを互いに通信する場合、同期制御の方
法としては同期式を、また回線制御の方法としては、一
方の機器を主局、もう一方の機器を従局とするポーリン
グ/セレクティングによる方式を採用している場合が多
い。このポーリング/セレクティング方式の場合は、送
信中か受信中かを完全に区別するため、通信のアルゴリ
ズムが容易になるものである。つまり、まず主局が従局
に対して電文を送信し従局からの応答を要求する。この
ときは主局は送信中、従局は受信中となる。次に従局が
状態等の電文を主局に送信する。このときは従局は送信
中、主局は受信中となる。このように送受信が完全に区
別されているものである。2. Description of the Related Art Conventionally, when two devices are connected by a transmission communication path and a large amount of data are communicated with each other, a synchronous control method is used as a synchronous control method, and one device is used as a line control method. In many cases, a system using polling / selecting in which the master station and the other device are slave stations is used. In the case of this polling / selecting method, since the transmission is being performed or the reception is being performed, the communication algorithm is easy. That is, first, the master station sends a message to the slave station and requests a response from the slave station. At this time, the master station is transmitting and the slave station is receiving. Next, the slave station sends a message such as the status to the master station. At this time, the slave station is transmitting and the master station is receiving. In this way, transmission and reception are completely distinguished.
【0003】図3は、従来行われている同期式の通信方
式の例を示している。この従来例は、主局となる機器1
(以下単に機器と称する)と従局となる機器2(以下単
に機器と称する)との間で1対1の同期式データ伝送を
行っているものである。伝送通信路3は、4線式のもの
を使用している。機器1は、送信手段4と、受信手段5
と、クロック源6と、制御手段7と、計時手段8とを有
している。従局となる機器2は、受信手段9と、送信手
段10と、クロック入力手段11と、クロック源12
と、制御手段13と、計時手段14と有しており、各々
の計時手段は各々のクロック源からの信号をカウントし
ている。また機器2は、機器1から送られてくる送受信
の同期信号をクロック入力手段11で受けている。FIG. 3 shows an example of a conventional synchronous communication system. In this conventional example, the device 1 serving as the main station
One-to-one synchronous data transmission is performed between (hereinafter simply referred to as a device) and a slave device 2 (hereinafter simply referred to as a device). The transmission communication path 3 uses a 4-wire type. The device 1 includes a transmitting means 4 and a receiving means 5.
It has a clock source 6, a control means 7, and a clock means 8. The device 2 serving as a slave station includes a receiving unit 9, a transmitting unit 10, a clock input unit 11, and a clock source 12.
The control means 13 and the clock means 14 are provided, and each clock means counts the signal from each clock source. In the device 2, the clock input means 11 receives the transmission / reception synchronizing signal sent from the device 1.
【0004】さらに、各々の機器のクロック源が使用す
る時限の基準は、セラミック振動子等を用いた発振器を
用いている。Further, as a reference for the time limit used by the clock source of each device, an oscillator using a ceramic oscillator or the like is used.
【0005】[0005]
【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、同期のための共通なクロックを供給し、
それに合わせてビットの送り出しや受け取りを行う必要
がある。このために伝送通信線路3として、同期クロッ
ク用の線を1本余計に使用しなければならないものとな
っている。However, in the above configuration, a common clock for synchronization is supplied,
It is necessary to send and receive the bits accordingly. Therefore, as the transmission communication line 3, one extra line for the synchronous clock must be used.
【0006】また同期クロックを使わない方法としては
調歩同期式が考えられる。しかしこの場合は、1回のス
タートビットに対してあまり長い時間同期の安定を保つ
ことができないものである。このため多くのデータ(伝
送電文)を送信する場合は、1バイト単位にスタート/
ストップビットを付加しなければならず、受信側は絶え
ずスタートビットに注目しておく必要がある。A start-stop synchronization method can be considered as a method that does not use a synchronization clock. However, in this case, the stability of synchronization cannot be maintained for a long time with respect to one start bit. Therefore, when sending a large amount of data (transmission message), start / start in 1-byte units.
Stop bits must be added and the receiver must keep an eye on the start bit.
【0007】データとクロックとを合成して同じ伝送路
で伝送し、受信側でデータとクロックに分解する方法も
行われてはいるが(イーサネットのプリアンブル部、マ
ンチェスタ符号等)、この場合はクロック成分の抽出の
手順の分だけ受信側の機器の負担が増加してしまうこと
になるものである。Although a method of synthesizing data and a clock and transmitting them through the same transmission line and decomposing them into data and a clock on the receiving side is also used (Ethernet preamble part, Manchester code, etc.), in this case the clock is used. The load on the device on the receiving side is increased by the amount of the procedure for extracting the components.
【0008】また、セラミック振動子等を用いた発振器
を用いる場合、各機器全てについて1秒以上の長い時間
の精度を保証し、基準時間の共有化を図ることは技術的
に難しいものである。これを解決する手段として、商用
電源の零電圧に同期した信号を時限基準とする方法も良
く用いられているが、この同期信号を伝送するための信
号線が1本よけいに必要になる上に、伝送制御の処理と
平行して行おうとすると、送受信の信号と零電圧に同期
した信号が非同期のためにプログラムにかかる負担が大
きくなるという欠点を有するものである。When an oscillator using a ceramic oscillator or the like is used, it is technically difficult to guarantee the accuracy of a long time of 1 second or more for all the devices and share the reference time. As a means for solving this, a method in which a signal synchronized with the zero voltage of a commercial power source is used as a time reference is often used, but in addition to one signal line for transmitting this synchronizing signal, it is necessary. However, if it is attempted to be performed in parallel with the processing of transmission control, there is a drawback that the load on the program becomes large because the signal transmitted / received and the signal synchronized with zero voltage are asynchronous.
【0009】本発明はこのような従来の構成が有してい
る課題を解決しようとするもので、主局となる機器の送
受信時の負担を軽減すると共に、従局となる機器の1秒
以上の長い時間の精度を保証し、基準時間の共有化を図
ることができる主局と従局との関係が1対1である機器
の制御装置を提供することを第一の目的としているもの
である。また、前記第一の目的に関連して、主局と従局
との関係が1対Nである機器の制御装置を提供すること
を第二の目的としているものである。The present invention is intended to solve the problems of such a conventional configuration, and reduces the load of the master station device at the time of transmission / reception, and at least one second of the slave station device. It is a first object of the present invention to provide a control device for equipment in which a master station and a slave station have a one-to-one relationship in which the accuracy of a long time can be guaranteed and the reference time can be shared. Further, in relation to the first object, a second object is to provide a control device for a device in which the relationship between the master station and the slave station is 1: N.
【0010】[0010]
【課題を解決するための手段】第一の目的を達成するた
めの本発明の第一の手段は、1対1の非同期の調歩同期
式でデータ伝送をおこなう伝送通信路に主局となる機器
と従局となる機器を接続し、前記主局となる機器は、商
用電源の零電圧に同期した信号を発生する同期信号発生
手段と、データ伝送電文を送信する送信手段と、従局か
ら伝送されたデータ伝送電文を受信する受信手段と、送
信するデータ伝送電文を前記送信手段に与えるとともに
受信したデータ伝送電文を前記受信手段から受け取り前
記同期信号発生手段からの信号を受けて前記送信手段・
受信手段を制御する制御手段と、この制御手段から基準
となる信号を受けて主局となる機器内の時限をカウント
する計時手段とを有し、前記従局となる機器は、主局と
なる機器から送信されたデータ伝送電文を受信する受信
手段と、データ伝送電文を送信する送信手段と、データ
伝送電文を前記送信手段に与えるとともに受信したデー
タ伝送電文を前記受信手段から受け取り送信手段と受信
手段とを制御する制御手段と、この制御手段から基準と
なる信号を受けて従局となる機器内の時限をカウントす
る計時手段とを有し、主局となる機器は常時従局となる
機器がその基準となる信号を作成できるようなデータ伝
送電文を送信し続ける機器の制御装置とするものであ
る。The first means of the present invention for achieving the first object is an apparatus serving as a main station in a transmission communication path for performing data transmission in a one-to-one asynchronous start-stop synchronization method. And a device serving as a slave station are connected, and the device serving as the master station is transmitted from the slave station by a synchronization signal generating means for generating a signal synchronized with the zero voltage of the commercial power source, a transmitting means for transmitting a data transmission message, and a slave station. A receiving means for receiving a data transmission message, a data transmission message to be transmitted to the transmitting means, a received data transmission message from the receiving means, a signal from the synchronization signal generating means, and the transmitting means;
The control unit controls the receiving unit, and the clock unit that receives a reference signal from the control unit and counts the time limit in the device serving as the master station, and the device serving as the slave station is the device serving as the master station. Receiving means for receiving the data transmission telegram transmitted from the transmitting means, transmitting means for transmitting the data transmission telegram, and giving the data transmission telegram to the transmitting means and receiving the received data transmission telegram from the receiving means. And a clock means for receiving a reference signal from the control means and counting the time limit in the device which becomes the slave station, and the device which becomes the master station is always the device which becomes the slave station. The device is a control device of a device that continuously transmits a data transmission message that can generate a signal that becomes
【0011】第二の目的を達成するための本発明の第二
の手段は、1対Nの非同期の調歩同期式でデータ伝送を
おこなう伝送通信路に接続した主局となる機器と複数の
従局となる機器を接続した機器の制御装置とするもので
ある。A second means of the present invention for attaining the second object is a device as a master station and a plurality of slave stations connected to a transmission communication path for performing data transmission in a 1: N asynchronous start-stop synchronization method. The device is used as a control device for the connected device.
【0012】[0012]
【作用】本発明の第一の手段は以下のように作用する。
主局となる機器は、同期信号発生手段の発生する商用電
源の零電圧に同期した信号を機器内の各時限の基準とし
てカウントすると共に、この同期信号に準じて、同期信
号成分を含んだデータ伝送電文を常時送信し続けるもの
である。従局となる機器は、主局となる機器から送信さ
れたデータ伝送電文を受信し、受信したデータ伝送電文
から簡便に前記の同期信号に準じた信号を作成すると共
に、計時手段が従局となる機器内の各時限の基準として
この信号をカウントするように作用するものである。The first means of the present invention operates as follows.
The main station equipment counts the signal synchronized with the zero voltage of the commercial power source generated by the synchronization signal generation means as a reference for each time period in the equipment, and in accordance with this synchronization signal, the data including the synchronization signal component The transmission message is constantly transmitted. The slave station device receives the data transmission message transmitted from the master station device, and simply creates a signal in accordance with the above synchronization signal from the received data transmission message, and the device for which the timekeeping means is the slave station. It serves to count this signal as a reference for each time period within.
【0013】また本発明の第二の手段は、1対Nとした
伝送通信路に接続した主局となる機器が、複数の従局と
なる機器に対して前記同期信号を含んだデータ伝送電文
を送信し、従局となる機器が有しているそれぞれの計時
手段がそれぞれの機器内の各時限の基準としてこの信号
をカウントするように作用するものである。The second means of the present invention is that a device serving as a master station connected to a transmission communication path of 1: N sends a data transmission message containing the synchronization signal to a plurality of devices serving as slave stations. Each of the time-measuring means of the device that serves as a slave station operates so as to count this signal as a reference for each time period in each device.
【0014】[0014]
【実施例】以下、本発明の一実施例を図面を参照しなが
ら説明する。図において、15は主局となる機器(以下
単に主局と称する)、16・17はそれぞれ1台目の従
局となる機器、2台目の従局となる機器(以下単に第一
の機器・第二の機器と称する)で、それぞれ1対2の非
同期の調歩同期式でデータ伝送をおこなう3線式の伝送
通信路18に接続されている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. In the figure, 15 is a device serving as a master station (hereinafter simply referred to as a master station), 16 and 17 are devices serving as a first slave station and devices serving as a second slave station (hereinafter simply referred to as a first device and a first device, respectively). Second device), each of which is connected to a 3-wire type transmission communication line 18 for performing data transmission in a one-to-two asynchronous asynchronous manner.
【0015】主局15は以下の各手段を有している。1
9は商用電源の零電圧に同期した信号を発生する同期信
号発生手段である。20はデータ伝送電文を送信する送
信手段である。21は伝送通信路18から受けた信号を
受信する受信手段である。22はデータ伝送電文を前記
送信手段20に与えるとともに受信したデータ伝送電文
を前記受信手段21から受け取り送信手段20と受信手
段21とを制御する制御手段である。また23は前記同
期信号発生手段19の信号を受けた制御手段22が作成
した計時基準となる信号を受けて、主局15内の時限を
カウントする計時手段である。The main station 15 has the following means. 1
Reference numeral 9 is a synchronizing signal generating means for generating a signal synchronized with the zero voltage of the commercial power source. Reference numeral 20 is a transmission means for transmitting a data transmission message. Reference numeral 21 is a receiving means for receiving the signal received from the transmission communication path 18. Reference numeral 22 is a control means for giving a data transmission message to the transmitting means 20 and receiving the received data transmission message from the receiving means 21 to control the transmitting means 20 and the receiving means 21. Further, reference numeral 23 is a clocking means for receiving a signal of the synchronizing signal generating means 19 and receiving a signal as a clocking reference created by the control means 22 to count the time limit in the main station 15.
【0016】第一の機器16・第二の機器17は、それ
ぞれ以下の各手段を有している。24は前記主局15を
構成する送信手段20が送信した伝送通信路18上のデ
ータ伝送電文を受信する受信手段である。25はデータ
伝送電文を送信する送信手段である。26はデータ伝送
電文を前記送信手段25に与えるとともに受信したデー
タ伝送電文を前記受信手段24から受け取り送信手段2
5を制御する制御手段である。また27は前記制御手段
26が作成した計時基準信号を受けて第一の機器あるい
は第二の機器内の時限をカウントする計時手段である。The first device 16 and the second device 17 respectively have the following means. Reference numeral 24 is a receiving means for receiving the data transmission message on the transmission communication path 18 transmitted by the transmitting means 20 constituting the main station 15. Reference numeral 25 is a transmission means for transmitting a data transmission message. Reference numeral 26 gives a data transmission message to the transmission means 25 and receives the received data transmission message from the reception means 24 and the transmission means 2
5 is a control means for controlling 5. Further, 27 is a time counting means for receiving the time reference signal generated by the control means 26 and counting the time limit in the first device or the second device.
【0017】以下本実施例の動作について図2に基づい
て説明する。なお、第一の機器16と第二の機器17と
は同様に動作するので、ここでは第一の機器16のみに
ついて説明する。図2において、(1)は同期信号発生手
段19が発生する商用電源の零電圧に同期した同期信号
波形、(2)は主局送信波形で、データ伝送電文を示して
いる。(3)は主局4が受信する主局受信波形、(4)は第
一の機器16が受信する従局受信波形、また(5)は第一
の機器16が送信する従局送信波形、(6)は第一の機器
16の制御手段26が作成する基準となる信号、また
(7)は前記送受信データの拡大波形を示している。本実
施例では、データ伝送電文を4バイト、肯定応答電文
(以下ACKと称する)を1バイト、送受信信号波形の
ない空き時間を1バイト相当にしているものである。The operation of this embodiment will be described below with reference to FIG. Since the first device 16 and the second device 17 operate in the same manner, only the first device 16 will be described here. In FIG. 2, (1) is a sync signal waveform synchronized with the zero voltage of the commercial power source generated by the sync signal generating means 19, and (2) is a main station transmission waveform, which is a data transmission message. (3) is a master station reception waveform received by the master station 4, (4) is a slave station reception waveform received by the first device 16, and (5) is a slave station transmission waveform transmitted by the first device 16. ) Is a reference signal generated by the control means 26 of the first device 16,
(7) shows an enlarged waveform of the transmission / reception data. In this embodiment, the data transmission message is 4 bytes, the acknowledgment message (hereinafter referred to as ACK) is 1 byte, and the idle time with no transmission / reception signal waveform is 1 byte.
【0018】主局15から第一の機器16に対する送信
は以下のようにして行われる。主局15を構成する制御
手段22は、同期信号発生手段19から(1)に示した零
電圧に同期した信号の波形の立ち上がりを検出すると、
所定の遅延時間が経過した後、送信手段20に送信デー
タを構成する信号の第一バイト目の出力を指示する。送
信手段20はこの信号を受けて、(7)に示すようにス
タートビットとストップビットとを付加してこの送信デ
ータを構成する信号を出力する。送信手段20は同様の
手順で、制御手段22からの指示を受けて第四バイト目
までの信号を出力する。第五バイト目は、制御手段22
は同期信号波形(1)の立ち上がりを検出すると遅延時間
を設けずに送信手段20に固定値(X'00011111')の出
力を指示し、受信手段21にACK1バイトの受信を指
示する。受信手段21が従局から送られて来るACK信
号を受けると、制御手段22は正常にデータが受け取ら
れたことを認識する。第六バイト目は待機期間で、送受
信の空き時間を作るため出力の指示をせずに待機してい
るものである。こうして波形(2)に示すように送信を
完了する。(1)におけるt1以降は送信モード、t2以降は
受信モード、t3以降は送信モードを示している。The transmission from the main station 15 to the first device 16 is performed as follows. When the control means 22 constituting the main station 15 detects the rising edge of the waveform of the signal synchronized with the zero voltage shown in (1) from the synchronization signal generation means 19,
After the elapse of a predetermined delay time, the transmission means 20 is instructed to output the first byte of the signal forming the transmission data. Receiving this signal, the transmitting means 20 adds a start bit and a stop bit as shown in (7) and outputs a signal forming this transmission data. The transmitting means 20 outputs the signals up to the fourth byte in response to the instruction from the control means 22 in the same procedure. The fifth byte is the control means 22.
When it detects the rising edge of the synchronization signal waveform (1), it instructs the transmitting means 20 to output a fixed value (X'00011111 ') without providing a delay time, and instructs the receiving means 21 to receive an ACK 1 byte. When the receiving means 21 receives the ACK signal sent from the slave station, the control means 22 recognizes that the data is normally received. The sixth byte is a waiting period, which is waiting without giving an output instruction in order to make a vacant time for transmission and reception. Thus, the transmission is completed as shown by the waveform (2). In (1), the transmission mode is shown after t1, the reception mode is shown after t2, and the transmission mode is shown after t3.
【0019】従局である第一の機器16が有している受
信手段24は、前記送信手段20が送信したデータの受
信を開始する。つまり、波形(4)に示しているよう
に、スタートビットの立ち下がりを検出すると、調歩同
期式の受信手続きを開始して、1バイト分のデータを制
御手段26に伝達する。制御手段26はこのデータを受
けて、このデータ中に含まれるアドレス情報が自局のも
のであれば受信手段24に対して同様の手順で第四バイ
ト目までの信号の受信を指示する。受信手段24がこの
第四バイト目の信号を制御手段26に伝達すると、制御
手段26はチェックサムにより受信エラーの有無をチェ
ックする。こうして正常な受信データであることを確認
すると、第五バイト目のスタートビットの立ち下がりか
ら所定の遅延時間が経過した後、送信手段25に対して
ACKの送信を指示する。送信手段25はこの指示を受
けて、波形(5)に示すようにACKを送信する。制御
手段26は、送信手段25がこのACKを送信してから
1バイト相当の空き時間があることを確認して受信を完
了する。前記のアドレス情報が自局のものと異なる場合
は、第五バイト目までのスタートビットの立ち下がりの
検出と、1バイト相当の空き時間があることの確認のみ
を行うものである。The receiving means 24 of the first device 16 which is a slave station starts receiving the data transmitted by the transmitting means 20. That is, as shown in the waveform (4), when the falling edge of the start bit is detected, the start-stop synchronization receiving procedure is started and one byte of data is transmitted to the control means 26. The control means 26 receives this data and, if the address information contained in this data is that of its own station, instructs the reception means 24 to receive signals up to the fourth byte in the same procedure. When the receiving means 24 transmits the signal of the fourth byte to the control means 26, the control means 26 checks the presence or absence of the reception error by the checksum. When it is confirmed that the received data is normal, the transmission means 25 is instructed to transmit an ACK after a predetermined delay time has elapsed from the fall of the start bit in the fifth byte. Receiving this instruction, the transmitting means 25 transmits ACK as shown in the waveform (5). The control means 26 completes the reception after confirming that there is a vacant time equivalent to 1 byte after the transmission means 25 transmits this ACK. When the address information is different from that of the own station, the detection of the trailing edge of the start bit up to the fifth byte and the confirmation that there is a vacant time corresponding to 1 byte are only performed.
【0020】次に、第一の機器16から主局15に対し
ての送信動作を説明する。主局15の制御手段22は波
形(1)に示した同期信号発生手段19が発生する同期
信号波形の立ち上がりを検出すると、直ちに固定値(X'
00011111')の出力を送信手段20に指示すると共に、
受信手段21に第一バイト目の受信を指示する。受信手
段21は、送信手段25から送られてきた波形(3)に
示すスタートビットの立ち下がりを検出すると、調歩同
期式の受信手続きを開始し、1バイト分のデータを制御
手段22に伝達する。同様の手順で4バイト分の信号の
伝達を終了すると、制御手段22はチェックサムにより
受信エラーの有無をチェックする。正常な受信データで
あれば、波形(1)の立ち上がりから所定の遅延時間が
経過した後、送信手段20にACK1バイトの出力を指
示し、送信手段20がACKを送信する。このACKを
送信した後は、送受信の空き時間を作るため出力の指示
をせずに待機して、受信を完了する。Next, the transmission operation from the first device 16 to the main station 15 will be described. When the control means 22 of the main station 15 detects the rising edge of the sync signal waveform generated by the sync signal generating means 19 shown in the waveform (1), it immediately outputs the fixed value (X '
00011111 ') output to the transmission means 20, and
The receiving means 21 is instructed to receive the first byte. When the receiving means 21 detects the trailing edge of the start bit shown in the waveform (3) sent from the transmitting means 25, the receiving means 21 starts an asynchronous reception procedure and transmits 1-byte data to the control means 22. . When the transmission of the signal for 4 bytes is completed by the same procedure, the control means 22 checks the presence or absence of the reception error by the checksum. If the received data is normal, after a predetermined delay time has elapsed from the rise of the waveform (1), the transmitting means 20 is instructed to output 1 byte of ACK, and the transmitting means 20 transmits ACK. After this ACK is transmitted, it waits without giving an output instruction in order to make a free time for transmission and reception, and the reception is completed.
【0021】第一の機器16は、上記の受信状態で自局
のアドレス情報を受信した場合、制御手段26は波形
(4)のスタートビットの立ち下がりから所定の遅延時
間が経過した後、データの第一バイト目の出力を送信手
段25に指示する。送信手段25は、このデータにスタ
ートビット・ストップビットを付加して出力する。同様
の手順で第四バイト目までのデータを出力する。制御手
段26は、第五バイト目には受信手段24にACK1バ
イトの受信を指示する。受信手段24はこの指示に基づ
いて主局15から送られて来るACKを受信する。制御
手段26はACK受信後に1バイト相当の空き時間があ
ることを確認して、正常にデータを受信したことを認識
する。こうして送信を完了する。受信状態で自局のアド
レス情報を受信しなかった場合は、第五バイト目までス
タートビットの立ち下がりの検出と、1バイト相当の空
き時間があることの確認のみを行う。When the first device 16 receives the address information of its own station in the above reception state, the control means 26 controls the data after the lapse of a predetermined delay time from the fall of the start bit of the waveform (4). It instructs the transmitting means 25 to output the first byte. The transmitting means 25 adds start bits and stop bits to this data and outputs it. The data up to the 4th byte is output in the same procedure. At the fifth byte, the control means 26 instructs the receiving means 24 to receive the ACK1 byte. The receiving means 24 receives the ACK sent from the main station 15 based on this instruction. The control unit 26 confirms that there is a vacant time corresponding to 1 byte after receiving the ACK, and recognizes that the data is normally received. This completes the transmission. When the address information of the local station is not received in the receiving state, only the start bit falling is detected up to the 5th byte and it is confirmed that there is a vacant time equivalent to 1 byte.
【0022】以降、主局15は上記の送信状態と受信状
態を交互に繰り返し、常に、機器16に対してデータも
しくは、固定値(X'00011111')を送信し続ける。After that, the main station 15 alternately repeats the transmission state and the reception state described above, and always continuously transmits data or a fixed value (X'00011111 ') to the device 16.
【0023】次に計時動作について説明する。主局15
の計時手段23は、制御手段22から同期信号に準じた
信号A(図2の波形(1)と同等)を入力されている。
この信号Aによって、計時手段23は主局15内の時限
をカウントしている。一方、第一の機器16の計時手段
27は、制御手段26から受けた信号B(6)を入力さ
れている。この信号Bは、主局15の送信手段20が送
信したデータのスタートビットの立ち下がりに準じて制
御手段26で作成されるものである。計時手段27は、
この信号Bに基づいて第一の機器16内の時限をカウン
トしているものである。この場合、本実施例では1バイ
ト相当の空きの期間を設けており、この期間の信号Bの
パルス抜けによるカウント値の補正のため、送信及び受
信を完了する毎に1を加算するようにしているものであ
る。Next, the timing operation will be described. Main station 15
The time measuring means 23 receives the signal A (equivalent to the waveform (1) in FIG. 2) based on the synchronizing signal from the control means 22.
The signal A causes the time measuring means 23 to count the time limit in the main station 15. On the other hand, the clocking means 27 of the first device 16 receives the signal B (6) received from the control means 26. This signal B is created by the control means 26 in accordance with the fall of the start bit of the data transmitted by the transmission means 20 of the main station 15. The clock means 27 is
The time limit in the first device 16 is counted based on this signal B. In this case, in this embodiment, a vacant period corresponding to 1 byte is provided, and 1 is added every time transmission and reception are completed in order to correct the count value due to the missing pulse of the signal B in this period. There is something.
【0024】以上のように本実施例によれば、計時手段
27が第一の機器16内の各時限の基準として信号Bを
カウントすることにより、1秒以上の長い時間でも非常
に正確な計時を行うことが出来るものである。また、第
一の機器16・第二の機器17相互間の基準時間の共有
化を図ることも出来るものである。また主局15は、受
信時の第一の機器16からの送信開始を送信手段20が
送信するパルスによって、自局の処理上の都合の良いタ
イミングに設定することができるものである。つまりこ
れは、外部割り込み等の複雑でタイミング上の問題の生
じ易い手段を用いなくとも、受信におけるスタートビッ
ト検出の処理が非常に容易に行えることを意味するもの
である。As described above, according to the present embodiment, the time counting means 27 counts the signal B as a reference for each time period in the first device 16, so that a very accurate time measurement is possible even for a long time of 1 second or more. Is something that can be done. Further, the reference time can be shared between the first device 16 and the second device 17. Further, the main station 15 can set the transmission start from the first device 16 at the time of reception by a pulse transmitted by the transmission means 20 at a timing convenient for the processing of the own station. In other words, this means that the processing of start bit detection in reception can be performed very easily without using a complicated means such as an external interrupt that easily causes timing problems.
【0025】さらに、本実施例を機器内の電子制御回路
ユニット相互の接続に用いることも可能である。たとえ
ば、洗濯機の制御回路のように操作表示部とモータ等の
負荷が離れている場合は、負荷制御部ユニット(主局)
でトライアックのパルス点弧等の処理のため商用電源電
圧の零電圧近辺に外部端子からの割り込みをかけたくな
い場合や、操作表示部ユニット(従局)で時計/タイマ
ー機能を完結するために時間を正確に計時したい場合等
には特に有用である。また、上記のような処理を行うた
めに、商用電源電圧の零電圧に同期した信号に同期する
ように作成された既存のプログラムをそのまま使いなが
ら、伝送制御機能を付加することが簡便に行えるので、
そのような場合に容易に採用される通信方式となり得る
ものである。Furthermore, the present embodiment can be used to connect the electronic control circuit units in the equipment to each other. For example, when the operation display unit and the load of the motor are separated from each other like the control circuit of a washing machine, the load control unit (main station)
If you do not want to interrupt an external terminal near the zero voltage of the commercial power supply voltage due to processing such as TRIAC pulse ignition, etc., or you need time to complete the clock / timer function on the operation display unit (subordinate station). This is especially useful when it is desired to accurately measure time. Further, in order to perform the above processing, it is possible to easily add the transmission control function while using the existing program created to synchronize with the signal synchronized with the zero voltage of the commercial power supply voltage as it is. ,
In such a case, the communication system can be easily adopted.
【0026】なお、本実施例ではデータを4バイトとし
たが、これ以外の値でも良いものである。また固定値も
X'00011111'としたが、従局となる機器の受信手段が検
出できる巾のパルスであれば、この値以外でも良いこと
は明白である。また伝送通信路28は、同期式の4線式
より1本少ない3線式を採用しているが、上記のパルス
巾を第一の機器の送信手段25が送信するスタートビッ
トと重ならない値に選べば、送受信を同一の線で行え、
2線式の伝送通信路にすることもできる。またこの場
合、主局15の送受信の状態を伝える信号線を1本追加
すれば、より外来ノイズ等に対して安定した伝送を行え
るものである。In this embodiment, the data is 4 bytes, but other values may be used. Also fixed value
Although X'00011111 'is used, it is obvious that any value other than this value may be used as long as the pulse has a width that can be detected by the receiving unit of the slave station. Further, the transmission communication path 28 employs a 3-wire system, which is one less than the synchronous 4-wire system, but the pulse width is set to a value that does not overlap with the start bit transmitted by the transmission means 25 of the first device. If you choose, you can send and receive on the same line,
A two-wire type transmission communication path can also be used. Further, in this case, if one signal line for transmitting the transmission / reception state of the main station 15 is added, more stable transmission with respect to external noise and the like can be performed.
【0027】[0027]
【発明の効果】本発明の第一の手段は、1対1の非同期
の調歩同期式でデータ伝送をおこなう伝送通信路に主局
となる機器と従局となる機器を接続し、前記主局となる
機器は、商用電源の零電圧に同期した信号を発生する同
期信号発生手段と、データ伝送電文を送信する送信手段
と、従局から伝送されたデータ伝送電文を受信する受信
手段と、送信するデータ伝送電文を前記送信手段に与え
るとともに受信したデータ伝送電文を前記受信手段から
受け取り前記同期信号発生手段からの信号を受けて前記
送信手段・受信手段を制御する制御手段と、この制御手
段から基準となる信号を受けて主局となる機器内の時限
をカウントする計時手段とを有し、前記従局となる機器
は、主局となる機器から送信されたデータ伝送電文を受
信する受信手段と、データ伝送電文を送信する送信手段
と、データ伝送電文を前記送信手段に与えるとともに受
信したデータ伝送電文を前記受信手段から受け取り送信
手段を制御する制御手段と、この制御手段から基準とな
る信号を受けて従局となる機器内の時限をカウントする
計時手段とを有し、主局となる機器は常時従局となる機
器がその基準となる信号を作成できるようなデータ伝送
電文を送信し続ける構成として、主局となる機器の送受
信時の負担を軽減できると共に、従局となる機器の1秒
以上の長い時間の精度を保証し、基準時間の共有化を図
ることができる主局と従局との関係が1対1である機器
の制御装置を実現できるものである。According to the first means of the present invention, a master station device and a slave station device are connected to a transmission communication path for performing data transmission in a one-to-one asynchronous start-stop synchronization system, and the master station and the master station are connected to each other. The equipment consists of a synchronizing signal generating means for generating a signal synchronized with the zero voltage of the commercial power source, a transmitting means for transmitting a data transmission message, a receiving means for receiving a data transmission message transmitted from a slave station, and a data to be transmitted. Control means for giving a transmission message to the transmitting means and receiving the received data transmission message from the receiving means to control the transmitting means / receiving means by receiving a signal from the synchronizing signal generating means, and a reference from the control means. And a receiving unit that receives the data transmission message transmitted from the device serving as the master station. A transmitting means for transmitting a data transmission message, a control means for giving the data transmission message to the transmitting means, receiving the received data transmission message from the receiving means, and controlling the transmitting means, and receiving a reference signal from the control means. As a configuration that has a time counting means for counting the time period in the device that becomes the slave station, and the device that becomes the master station always sends a data transmission telegram such that the device that becomes the slave station can create the signal that becomes the reference, The relationship between the master station and the slave station can be reduced, which can reduce the load at the time of transmission / reception of the master station equipment, guarantee the accuracy of a long time of 1 second or more of the slave station equipment, and share the reference time. It is possible to realize a one-to-one device control device.
【0028】また本発明の第二の手段は、本発明の第一
の手段の構成に加え、1対Nの非同期の調歩同期式でデ
ータ伝送をおこなう伝送通信路に接続した主局となる機
器と従局となる複数の機器を接続した構成として、本発
明の第一の手段が有している効果に加え、主局と従局と
の関係が1対Nである機器の制御装置を実現できるもの
である。The second means of the present invention is, in addition to the configuration of the first means of the present invention, a device serving as a main station connected to a transmission communication path for performing data transmission in an asynchronous 1: N asynchronous method. In addition to the effect of the first means of the present invention, it is possible to realize a control device for a device in which the relationship between the master station and the slave station is 1: N, as a configuration in which a plurality of devices serving as a slave station and a slave station are connected. Is.
【図1】本発明の第一の実施例における機器の制御装置
を示すブロック図FIG. 1 is a block diagram showing a device control device according to a first embodiment of the present invention.
【図2】同伝送通信路上のデータを示す波形図FIG. 2 is a waveform diagram showing data on the same transmission channel.
【図3】従来の機器の制御装置を示すブロック図FIG. 3 is a block diagram showing a conventional device control device.
15 主局となる機器 16・17 従局となる機器 18 伝送通信路 19 同期信号発生手段 20・25 送信手段 21・24 受信手段 22・26 制御手段 23・27 計時手段 15 Equipment as master station 16/17 Equipment as slave station 18 Transmission communication path 19 Synchronous signal generation means 20/25 Transmission means 21/24 Reception means 22/26 Control means 23/27 Clocking means
Claims (2)
送をおこなう伝送通信路に主局となる機器と従局となる
機器を接続し、前記主局となる機器は、商用電源の零電
圧に同期した信号を発生する同期信号発生手段と、デー
タ伝送電文を送信する送信手段と、従局から伝送された
データ伝送電文を受信する受信手段と、送信するデータ
伝送電文を前記送信手段に与えるとともに受信したデー
タ伝送電文を前記受信手段から受け取り前記同期信号発
生手段からの信号を受けて前記送信手段・受信手段を制
御する制御手段と、この制御手段から基準となる信号を
受けて主局となる機器内の時限をカウントする計時手段
とを有し、前記従局となる機器は、主局となる機器から
送信されたデータ伝送電文を受信する受信手段と、デー
タ伝送電文を送信する送信手段と、データ伝送電文を前
記送信手段に与えるとともに受信したデータ伝送電文を
前記受信手段から受け取り送信手段を制御する制御手段
と、この制御手段から基準となる信号を受けて従局とな
る機器内の時限をカウントする計時手段とを有し、主局
となる機器は常時従局となる機器がその基準となる信号
を作成できるようなデータ伝送電文を送信し続ける機器
の制御装置。1. A device serving as a master station and a device serving as a slave station are connected to a transmission communication path for performing data transmission in a one-to-one asynchronous start-stop synchronization system, and the device serving as the master station is a zero voltage commercial power source. A synchronization signal generating means for generating a signal synchronized with, a transmitting means for transmitting a data transmission message, a receiving means for receiving a data transmission message transmitted from a slave station, and a data transmission message for transmission to the transmitting means. Control means for receiving the received data transmission message from the receiving means and receiving a signal from the synchronizing signal generating means to control the transmitting means / receiving means, and a reference signal from the control means to become a master station. The device serving as the slave station has a receiving unit for receiving a data transmission message transmitted from the device serving as the master station, and a time transmission unit for counting the time period in the device, and transmitting the data transmission message. Transmitting means, a control means for giving a data transmission message to the transmitting means and receiving the received data transmission message from the receiving means, and controlling the transmitting means, and a device which becomes a slave station by receiving a reference signal from the control means. A control device for a device, which has a time counting means for counting the time period in the device, and the device which is a master station always sends a data transmission message so that the device which is a slave station can generate a signal serving as its reference.
送をおこなう伝送通信路に接続した主局となる機器と複
数の従局となる機器を接続した請求項1記載の機器の制
御装置。2. A device control apparatus according to claim 1, wherein a device serving as a master station and a device serving as a plurality of slave stations are connected to a transmission communication path for performing data transmission in a 1: N asynchronous start-stop synchronization system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5151923A JPH0715419A (en) | 1993-06-23 | 1993-06-23 | Equipment control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5151923A JPH0715419A (en) | 1993-06-23 | 1993-06-23 | Equipment control device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0715419A true JPH0715419A (en) | 1995-01-17 |
Family
ID=15529159
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5151923A Pending JPH0715419A (en) | 1993-06-23 | 1993-06-23 | Equipment control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0715419A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100811578B1 (en) * | 2000-06-30 | 2008-03-10 | 하모링크 가부시키가이샤 | Control and supervisory signal transmission system |
| CN115523046A (en) * | 2022-10-21 | 2022-12-27 | 中船动力研究院有限公司 | Control method and system of multi-engine synchronous system |
-
1993
- 1993-06-23 JP JP5151923A patent/JPH0715419A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100811578B1 (en) * | 2000-06-30 | 2008-03-10 | 하모링크 가부시키가이샤 | Control and supervisory signal transmission system |
| CN115523046A (en) * | 2022-10-21 | 2022-12-27 | 中船动力研究院有限公司 | Control method and system of multi-engine synchronous system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4988990A (en) | Dual master implied token communication system | |
| US5166678A (en) | Dual master implied token communication system | |
| EP2169487B1 (en) | Industrial controller with coordination of network transmissions using global clock | |
| JPH1066165A (en) | Remote control system | |
| EP1746782B1 (en) | Method and system for communicating data on a serial bus | |
| US7116739B1 (en) | Auto baud system and method and single pin communication interface | |
| JPS605654A (en) | Transmitting and receiving device | |
| JPH0715419A (en) | Equipment control device | |
| CN116157786B (en) | Synchronous data processing method and equipment | |
| JP3085448B2 (en) | Communications system | |
| JP2668898B2 (en) | Bus control circuit | |
| JPS62171349A (en) | Communication control equipment | |
| JPH05161181A (en) | Time synchronization system | |
| JP2002055181A (en) | Time piece synchronous circuit | |
| KR100286536B1 (en) | Arbitration apparatus of transrmission for multidrop communication system | |
| JP3337907B2 (en) | Multiplex transmission system | |
| JP2002208929A (en) | Communication relay device | |
| JPH0644763B2 (en) | Data transfer method | |
| JPS63202149A (en) | Synchronizing transmission system | |
| JPS6359235A (en) | Serial signal transmission equipment | |
| JP2024130680A (en) | Communication Equipment | |
| JPH01260944A (en) | communication terminal equipment | |
| JPH03285429A (en) | Signal transmission system | |
| JPH11295454A (en) | Time synchronization control method and device | |
| JPS5885692A (en) | Multiplex transmission system |