[go: up one dir, main page]

JP2014230081A - Monitoring controller - Google Patents

Monitoring controller Download PDF

Info

Publication number
JP2014230081A
JP2014230081A JP2013108088A JP2013108088A JP2014230081A JP 2014230081 A JP2014230081 A JP 2014230081A JP 2013108088 A JP2013108088 A JP 2013108088A JP 2013108088 A JP2013108088 A JP 2013108088A JP 2014230081 A JP2014230081 A JP 2014230081A
Authority
JP
Japan
Prior art keywords
transmission
slave
master device
master
timing
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
JP2013108088A
Other languages
Japanese (ja)
Inventor
尋則 田村
Hironori Tamura
尋則 田村
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2013108088A priority Critical patent/JP2014230081A/en
Publication of JP2014230081A publication Critical patent/JP2014230081A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a monitoring controller capable of mediating occupancy of a transmission path.SOLUTION: In a monitoring controller 1, a master device 4 and slave devices 7 are connected by a bus, each of the master device 4 and the slave devices 7 communicates on the basis of a preset transmission format, and the slave devices 7 operate in complete slave synchronization with the master device 4. Various transmission data is divided and transmitted per preset time slot on the basis of the transmission format. In the transmission format, a plurality of slots in a time slot correspond to one frame, and one frame corresponds to one slave device 7. The frame is transmitted from any of the plurality of slave devices 7 to the one master device 4 on the basis of frame transmission timing generated by a transmission clock oscillated at a constant interval and a transmission synchronization signal generated from the transmission clock.

Description

本発明は、監視制御装置に関し、特に、マスター装置と、スレーブ装置とがシリアルバスで接続された伝送路を占有調停することにより、低コストで伝送効率の高い時分割多重伝送を実現する監視制御装置に関する。   The present invention relates to a supervisory control device, and in particular, supervisory control that realizes low-cost and high-efficiency time-division multiplex transmission by occupying a transmission path in which a master device and a slave device are connected by a serial bus. Relates to the device.

従来、親装置であるマスター装置と、子装置であるスレーブ装置とがシリアルバスで接続された伝送路において、マスター装置1台に対し、スレーブ装置N台、すなわち、1対Nのシリアル伝送が行われている。マスター装置から各スレーブ装置に対しては、表示情報又はDO(デジタル出力)情報等の下り伝送が実行されている。一方、各スレーブ装置からマスター装置に対しては、操作情報又はDI(デジタル入力)情報等の上り伝送が実行されている。下り伝送及び上り伝送の何れであっても、時分割多重方式の伝送が実行されている。   Conventionally, in a transmission path in which a master device that is a parent device and a slave device that is a child device are connected by a serial bus, N slave devices, that is, one-to-N serial transmission is performed for one master device. It has been broken. Downlink transmission of display information or DO (digital output) information is executed from the master device to each slave device. On the other hand, uplink transmission such as operation information or DI (digital input) information is executed from each slave device to the master device. In either downlink transmission or uplink transmission, time division multiplexing transmission is performed.

システム動作としては、各スレーブ装置は、マスター装置から送信される各タイミング信号等に基づいて、マスター装置に完全従属同期して動作している。1フレームは複数のタイムスロットで構成される。各タイムスロットは伝送制御(共通)用、及びスレーブ装置毎の情報伝送用として割り付けられる。ここでタイムスロット情報を1バイトと仮定した場合、仮に、スレーブ装置毎の伝送情報が1バイト以上である場合、タイムスロットを拡張したマルチフレーム構成を用いることで、伝送情報が伝送される。マスター装置及び各スレーブ装置の何れであっても、各タイムスロットの割当は、接続伝送路にて物理的に識別される。   As a system operation, each slave device operates in complete slave synchronization with the master device based on each timing signal transmitted from the master device. One frame is composed of a plurality of time slots. Each time slot is allocated for transmission control (common) and information transmission for each slave device. Here, assuming that the time slot information is 1 byte, if the transmission information for each slave device is 1 byte or more, the transmission information is transmitted by using a multiframe configuration in which the time slot is extended. In any of the master device and each slave device, the allocation of each time slot is physically identified by the connection transmission path.

ここで、従来技術における監視制御装置2の構成とその問題点について説明する。例えば、図12は、従来技術における監視制御装置2の概略構成の一例を示す図である。図12に示す接続構成の一例では、1台のマスター装置5に接続されるスレーブ装置8の台数はN台となっている。よって、接続構成は、マスター装置5を中心とした1対Nのスター接続、つまり、ポイント・ツー・ポイント接続となっている。   Here, the configuration and problems of the monitoring control device 2 in the prior art will be described. For example, FIG. 12 is a diagram illustrating an example of a schematic configuration of the monitoring control device 2 in the related art. In the example of the connection configuration shown in FIG. 12, the number of slave devices 8 connected to one master device 5 is N. Therefore, the connection configuration is a 1-to-N star connection centered on the master device 5, that is, a point-to-point connection.

ここで、1つのタイムスロットには1バイト分を割り当て、スレーブ装置8の台数をN台であると想定すると、1フレーム当たりN+1個のタイムスロットが必要となる。つまり、1フレーム当たり、ts_0〜ts_Nのタイムスロットの帯域を割り当てることで構成される。そこで、マスター装置5と、各スレーブ装置8との間で伝送される伝送情報をMバイトであると想定すると、伝送帯域は、(N+1)×Mバイトとなる。   Here, assuming that 1 byte is allocated to one time slot and the number of slave devices 8 is N, N + 1 time slots are required per frame. That is, it is configured by assigning a time slot band of ts_0 to ts_N per frame. Therefore, assuming that the transmission information transmitted between the master device 5 and each slave device 8 is M bytes, the transmission band is (N + 1) × M bytes.

次に、従来技術における監視制御装置2の伝送フォーマット及び伝送タイミングについて説明する。図13は、従来技術における監視制御装置2の伝送フォーマットの一例を示す図である。図14は、従来技術における監視制御装置2の伝送タイミングの一例を示す図である。図13に示されるように、伝送フォーマットは、1つのフレームに対し、複数のスレーブ装置8の伝送情報が含まれている。また、伝送フォーマットは、同じ番号のタイムスロットには、同じスレーブ装置8に対応する伝送情報が含まれるようにしてある。よって、図14に示されるように、マルチフレームが全て受信されるまでは、各スレーブ装置8の伝送情報が確定されない。   Next, the transmission format and transmission timing of the monitoring control device 2 in the prior art will be described. FIG. 13 is a diagram illustrating an example of a transmission format of the monitoring control device 2 in the related art. FIG. 14 is a diagram illustrating an example of transmission timing of the monitoring control device 2 in the related art. As shown in FIG. 13, the transmission format includes transmission information of a plurality of slave devices 8 for one frame. The transmission format is such that transmission information corresponding to the same slave device 8 is included in time slots having the same number. Therefore, as shown in FIG. 14, the transmission information of each slave device 8 is not fixed until all the multiframes are received.

また、伝送方式は、下りTDM(Time Division Multiplexing)/上りTDM方式が使用されている。下りTDMは、マスター装置5が全スレーブ装置8の伝送情報を送信し、スレーブ装置8がマスター装置5から受信した伝送情報から自機に割り当てられたタイムスロット情報のみ取り込み、スレーブ装置8がそれ以外の受信した伝送情報を破棄する伝送方式である。また、上りTDMは、スレーブ装置8が自機に割り当てられたタイムスロットのみ使用して伝送情報を送信し、マスター装置5がスレーブ装置8から受信した伝送情報をタイムスロットの割当に基づいて、スレーブ装置8毎の伝送情報として分別して取り込む伝送方式である。   In addition, as a transmission method, a downlink TDM (Time Division Multiplexing) / uplink TDM method is used. In the downlink TDM, the master device 5 transmits the transmission information of all the slave devices 8, the slave device 8 takes in only the time slot information assigned to the own device from the transmission information received from the master device 5, and the slave device 8 other than that. This is a transmission method for discarding received transmission information. In addition, the uplink TDM transmits transmission information using only the time slot assigned to the slave device 8 and the master device 5 receives the transmission information received from the slave device 8 based on the time slot assignment. This is a transmission method that separates and captures transmission information for each device 8.

また、特許文献1に記載されているように、端末をタイムスロットに割り当てて通信が行われる技術も開示されている。   Also, as described in Patent Document 1, a technique is disclosed in which communication is performed by assigning terminals to time slots.

特開2011−139490号公報JP 2011-139490 A

しかし、伝送帯域の割当が、スレーブ装置8毎にタイムスロット単位で実行される場合、スレーブ装置8は、自機に対応する伝送情報を確定させるためには、図14を用いて上記で説明したように、該当するマルチフレームを全て受信するまで伝送情報を確定することができなかった。仮に、スレーブ装置8毎の伝送情報が1バイトであると想定すると、フレーム1つで伝送情報は確定される。これに対して、スレーブ装置毎の伝送情報が1バイト以上であると想定すると、タイムスロットが拡張されたマルチフレーム構成が用いられる。よって、上記で説明した伝送フォーマットでは、全てのマルチフレームを受信するまでは、伝送情報は確定されなかった。すなわち、伝送情報を確定するには多くの時間を要していた。   However, when transmission band allocation is performed for each slave device 8 in units of time slots, the slave device 8 has been described above with reference to FIG. 14 in order to determine transmission information corresponding to the own device. As described above, the transmission information cannot be determined until all the corresponding multiframes are received. Assuming that the transmission information for each slave device 8 is 1 byte, the transmission information is determined by one frame. On the other hand, assuming that the transmission information for each slave device is 1 byte or more, a multi-frame configuration with an extended time slot is used. Therefore, in the transmission format described above, transmission information is not determined until all multiframes are received. That is, it takes a lot of time to determine transmission information.

また、マスター装置5と、各スレーブ装置8との接続構成は、マスター装置5を中心とした1対Nのスター接続、つまり、ポイント・ツー・ポイント接続であるため、マスター装置5側では、スレーブ装置8の台数、すなわち、スレーブ装置8の伝送路数に比例した送信デバイス137及び受信デバイス135が必要となり、監視制御装置2内の実装密度及びコスト等の負担が増加した。   In addition, since the connection configuration between the master device 5 and each slave device 8 is a 1-to-N star connection centering on the master device 5, that is, a point-to-point connection, the master device 5 side has a slave connection. Transmission devices 137 and reception devices 135 proportional to the number of devices 8, that is, the number of transmission paths of slave devices 8 are necessary, and burdens such as mounting density and cost in the monitoring control device 2 have increased.

ここで、仮に、下りTDM/上りTDMA(Time Division Multiple Access)とした場合の伝送方式について、図15及び図16を用いて説明する。図15は、従来技術における監視制御装置3の概略構成の一例を示す図である。図16は、従来技術における監視制御装置3の伝送タイミングの一例を示す図である。伝送方式が、下りTDM/上りTDMAであれば、図15に示されるように、マスター装置6と、各スレーブ装置9との接続構成は、バス接続で構成させることができる。よって、マスター装置6の送受信デバイスは1対向のみで伝送することができるため、図15に示す接続構成は、伝送情報を確定するには多くの時間を要するものの、ハードウェア等の回路構成のコストを削減することができる。   Here, a transmission scheme in the case of downlink TDM / uplink TDMA (Time Division Multiple Access) will be described with reference to FIGS. 15 and 16. FIG. 15 is a diagram illustrating an example of a schematic configuration of the monitoring control device 3 in the related art. FIG. 16 is a diagram illustrating an example of the transmission timing of the monitoring control device 3 in the prior art. If the transmission method is downlink TDM / uplink TDMA, as shown in FIG. 15, the connection configuration between the master device 6 and each slave device 9 can be configured by bus connection. Therefore, since the transmission / reception device of the master device 6 can perform transmission with only one facing, the connection configuration shown in FIG. 15 requires much time to determine transmission information, but the cost of circuit configuration such as hardware Can be reduced.

しかし、上り側の伝送、すなわち、各スレーブ装置9からマスター装置6への伝送情報の伝送においては、図16に示されるように、タイムスロット単位での伝送路のアービトレーション、すなわち、タイムスロット単位で、伝送路の占有切替を実行する伝送路の占有調停が必要となる。よって、スレーブ装置9の台数をN、マルチフレームの総数をMと想定すると、伝送路の占有切替の回数は、マスター装置6と全スレーブ装置9との伝送1周期中に、N×M回となる。この結果、伝送路の占有切替の回数が多くなるため、頻繁に伝送路を切り替えることによる反射及びグランドバウンス等の影響を無視することができない不安定な伝送路状態となる。   However, in upstream transmission, that is, transmission of transmission information from each slave device 9 to the master device 6, as shown in FIG. 16, arbitration of the transmission path in units of time slots, that is, in units of time slots. Therefore, it is necessary to perform occupancy arbitration of the transmission line for executing the occupation line switching. Therefore, assuming that the number of slave devices 9 is N and the total number of multiframes is M, the number of transmission line occupation switching is N × M times during one transmission cycle between the master device 6 and all slave devices 9. Become. As a result, since the number of times of occupancy switching of the transmission path increases, an unstable transmission path state in which the influence of reflection and ground bounce due to frequent switching of the transmission path cannot be ignored.

したがって、マスター装置5と、各スレーブ装置8との接続構成であるスター接続を、マスター装置6と、各スレーブ装置9との接続構成であるバス接続に変更することで、ハードウェア等の回路構成のコストを削減することはできるものの、伝送情報を確定するには多くの時間を要したままであり、さらに、伝送路の占有切替の回数が増加することで、伝送路は不安定な状態となってしまう。   Therefore, by changing the star connection that is the connection configuration between the master device 5 and each slave device 8 to the bus connection that is the connection configuration between the master device 6 and each slave device 9, a circuit configuration such as hardware However, it takes a lot of time to determine the transmission information.In addition, the number of times of occupancy switching of the transmission path increases, so that the transmission path is in an unstable state. turn into.

この結果、伝送情報を確定するのに多くの時間を要すると共に、ハードウェア等の回路構成のコストを削減し、伝送路の占有切替の回数を削減することができないという問題点があった。   As a result, there is a problem that it takes much time to determine transmission information, the cost of circuit configuration such as hardware can be reduced, and the number of times of transmission line occupation switching cannot be reduced.

そのため、伝送情報を確定するのに多くの時間を要しないと共に、ハードウェア等の回路構成のコストを削減し、伝送路の占有切替の回数を削減することができる監視制御装置が望まれていた。   Therefore, there has been a demand for a monitoring and control apparatus that does not require much time to determine transmission information, can reduce the cost of circuit configuration such as hardware, and can reduce the number of transmission line occupation switching. .

本発明では、1台のマスター装置と、前記1台のマスター装置との間で、各種伝送データを送受信する複数のスレーブ装置と、を備え、前記1台のマスター装置と、前記複数のスレーブ装置と、がバス接続され、前記1台のマスター装置及び前記複数のスレーブ装置のそれぞれが、予め設定された伝送フォーマットに基づいて通信し、前記複数のスレーブ装置が前記1台のマスター装置に完全従属同期で動作する監視制御装置において、前記各種伝送データは、前記伝送フォーマットに基づいて、予め設定されたタイムスロット毎に分割されて送信されるものであって、前記伝送フォーマットは、前記タイムスロットの複数スロットと、1つのフレームとを対応させ、前記1つのフレームと、前記複数のスレーブ装置のうちの1台のスレーブ装置とを対応させるものであって、前記1つのフレームは、一定間隔で発振される伝送クロックと、前記伝送クロックから生成される伝送同期信号と、で生成されるフレーム送信タイミングに基づいて、前記複数のスレーブ装置の何れかから前記1台のマスター装置に送信されるものである。   The present invention comprises one master device and a plurality of slave devices that transmit and receive various transmission data between the one master device, and the one master device and the plurality of slave devices. Are connected by a bus, and each of the one master device and the plurality of slave devices communicates based on a preset transmission format, and the plurality of slave devices are completely subordinate to the one master device. In the monitoring and control apparatus that operates in synchronization, the various transmission data is divided and transmitted for each preset time slot based on the transmission format, and the transmission format includes the time slot A plurality of slots are associated with one frame, and the one frame and one slave among the plurality of slave devices The one frame is based on a frame transmission timing generated by a transmission clock oscillated at a constant interval and a transmission synchronization signal generated from the transmission clock. It is transmitted from any one of a plurality of slave devices to the one master device.

本発明の監視制御装置において、前記1台のマスター装置は、前記複数のスレーブ装置のそれぞれに前記各種伝送データを一斉に送信するマスター側送信装置と、前記複数のスレーブ装置のそれぞれから前記各種伝送データを受信するマスター側受信装置と、前記マスター側送信装置及び前記マスター側受信装置のそれぞれの動作タイミングを生成するタイミング生成部と、を備えるものである。   In the monitoring and control device of the present invention, the one master device transmits the various transmission data to the plurality of slave devices all at once, and the various transmissions from each of the plurality of slave devices. A master-side receiving device that receives data, and a timing generation unit that generates respective operation timings of the master-side transmitting device and the master-side receiving device.

本発明の監視制御装置において、前記複数のスレーブ装置のそれぞれは、前記1台のマスター装置から前記各種伝送データを受信するスレーブ側受信装置と、前記1台のマスター装置に前記各種伝送データを順次送信するスレーブ側送信装置と、前記スレーブ側受信装置及び前記スレーブ側送信装置のそれぞれの動作タイミングを生成するタイミング生成部と、を備えるものである。   In the monitoring and control device of the present invention, each of the plurality of slave devices sequentially receives the various transmission data from the one master device and the slave side reception device that receives the various transmission data from the one master device. A slave-side transmission device that transmits data, and a timing generation unit that generates operation timings of the slave-side reception device and the slave-side transmission device.

本発明の監視制御装置において、前記複数のスレーブ装置のそれぞれは、前記伝送同期信号及び前記伝送クロックに基づいて、前記バス接続で形成された伝送路の占有切替を行い、自機のスレーブ装置の伝送路を占有したタイミングに応じて、前記1台のマスター装置に前記各種伝送データを送信するものである。   In the monitoring and control device of the present invention, each of the plurality of slave devices performs occupation switching of the transmission path formed by the bus connection based on the transmission synchronization signal and the transmission clock, and the slave device of the own device The transmission data is transmitted to the one master device according to the timing when the transmission path is occupied.

本発明は、バス接続であって、伝送フォーマットを1フレーム毎に1台のスレーブ装置に対応させ、伝送路の占有調停を行うことにより、伝送情報を確定するのに多くの時間を要しないと共に、ハードウェア等の回路構成のコストを削減し、伝送路の占有切替の回数を削減することができるという効果を有する。   The present invention is a bus connection and does not require much time to determine transmission information by making the transmission format correspond to one slave device for each frame and performing transmission line occupation arbitration. The cost of the circuit configuration such as hardware can be reduced, and the number of transmission line occupation switching can be reduced.

本発明の実施の形態1における監視制御装置1の概略構成の一例を示す図である。It is a figure which shows an example of schematic structure of the monitoring control apparatus 1 in Embodiment 1 of this invention. 本発明の実施の形態1における監視制御装置1の伝送フォーマットの一例を示す図である。It is a figure which shows an example of the transmission format of the monitoring control apparatus 1 in Embodiment 1 of this invention. 本発明の実施の形態1における監視制御装置1の伝送タイミングの一例を示す図である。It is a figure which shows an example of the transmission timing of the monitoring control apparatus 1 in Embodiment 1 of this invention. 本発明の実施の形態1におけるマスター装置4の各種タイミング生成動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the various timing production | generation operations of the master apparatus 4 in Embodiment 1 of this invention. 本発明の実施の形態1におけるマスター装置4の送信動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the transmission operation of the master apparatus 4 in Embodiment 1 of this invention. 本発明の実施の形態1におけるマスター装置4の受信動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the reception operation | movement of the master apparatus 4 in Embodiment 1 of this invention. 本発明の実施の形態1におけるスレーブ装置7の各種タイミング生成動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the various timing production | generation operation | movement of the slave apparatus 7 in Embodiment 1 of this invention. 本発明の実施の形態1におけるスレーブ装置7の送信動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the transmission operation | movement of the slave apparatus 7 in Embodiment 1 of this invention. 本発明の実施の形態1におけるスレーブ装置7の受信動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the reception operation | movement of the slave apparatus 7 in Embodiment 1 of this invention. 本発明の実施の形態1における監視制御装置1の伝送タイミングの詳細例を示す図である。It is a figure which shows the detailed example of the transmission timing of the monitoring control apparatus 1 in Embodiment 1 of this invention. 本発明の実施の形態1における監視制御装置1の占有調停タイミングの一例を示す図である。It is a figure which shows an example of the exclusive arbitration timing of the monitoring control apparatus 1 in Embodiment 1 of this invention. 従来技術における監視制御装置2の概略構成の一例を示す図である。It is a figure which shows an example of schematic structure of the monitoring control apparatus 2 in a prior art. 従来技術における監視制御装置2の伝送フォーマットの一例を示す図である。It is a figure which shows an example of the transmission format of the monitoring control apparatus 2 in a prior art. 従来技術における監視制御装置2の伝送タイミングの一例を示す図である。It is a figure which shows an example of the transmission timing of the monitoring control apparatus 2 in a prior art. 従来技術における監視制御装置3の概略構成の一例を示す図である。It is a figure which shows an example of schematic structure of the monitoring control apparatus 3 in a prior art. 従来技術における監視制御装置3の伝送タイミングの一例を示す図である。It is a figure which shows an example of the transmission timing of the monitoring control apparatus 3 in a prior art.

以下、本発明の実施の形態1について、図面を用いて詳細に説明する。   Hereinafter, Embodiment 1 of the present invention will be described in detail with reference to the drawings.

実施の形態1.
<構成の説明>
図1は、本発明の実施の形態1における監視制御装置1の概略構成の一例を示す図である。図1に示されるように、監視制御装置1は、マスター装置4と、複数台のスレーブ装置7とを備え、マスター装置4と、複数台のスレーブ装置7とのそれぞれは、シリアルバスで接続されたバス接続の接続構成である。また、実装slot_1として、マスター装置4が割り当てられ、複数台、例えば、N台のスレーブ装置7のそれぞれに対しては、実装slot_2〜実装slot_N+1として、スレーブ装置7がそれぞれ割り当てられている。
Embodiment 1 FIG.
<Description of configuration>
FIG. 1 is a diagram illustrating an example of a schematic configuration of a monitoring control device 1 according to Embodiment 1 of the present invention. As shown in FIG. 1, the monitoring control device 1 includes a master device 4 and a plurality of slave devices 7, and the master device 4 and the plurality of slave devices 7 are connected by a serial bus. This is a connection configuration of a bus connection. Further, the master device 4 is assigned as the mounting slot_1, and the slave devices 7 are assigned as the mounting slot_2 to the mounting slot_N + 1, respectively, to a plurality of, for example, N slave devices 7.

マスター装置4は、タイミング生成部21と、送信部31と、受信部33と、受信デバイス35と、複数の送信デバイス37とを備えている。なお、送信部31は、本発明におけるマスター側送信装置に相当する。また、受信部33は、本発明におけるマスター側受信装置に相当する。   The master device 4 includes a timing generation unit 21, a transmission unit 31, a reception unit 33, a reception device 35, and a plurality of transmission devices 37. The transmission unit 31 corresponds to the master side transmission device in the present invention. The receiving unit 33 corresponds to the master side receiving device in the present invention.

タイミング生成部21は、伝送同期信号であるSYNCと、伝送クロックであるCLKとを用いることにより、内部の送受信処理で使用する各タイミング、例えば、送信部31及び受信部33の各種処理のタイミングを生成する。送信部31は、TS(Time Slot;タイムスロット)多重部41と、MF(Multi Frame;マルチフレーム)挿入部43を備え、後述する伝送フォーマットに従って、マルチフレームを識別し、スレーブ装置7毎の伝送情報として送信情報を生成し、生成した送信情報を伝送情報として送信する。受信部33は、TS分解部45と、MF抽出部47とを備え、受信した伝送情報である受信情報を後述する伝送フォーマットに従って、マルチフレームの識別を行い、スレーブ装置7毎の伝送情報として保持する。   The timing generation unit 21 uses the SYNC that is the transmission synchronization signal and the CLK that is the transmission clock, so that each timing used in the internal transmission / reception processing, for example, the timing of various processes of the transmission unit 31 and the reception unit 33 is determined. Generate. The transmission unit 31 includes a TS (Time Slot) multiplexing unit 41 and an MF (Multi Frame) insertion unit 43. The transmission unit 31 identifies a multiframe in accordance with a transmission format to be described later, and transmits each slave device 7. Transmission information is generated as information, and the generated transmission information is transmitted as transmission information. The receiving unit 33 includes a TS decomposing unit 45 and an MF extracting unit 47. The receiving unit 33 identifies the received transmission information as multi-frames according to a transmission format described later, and holds the received information as transmission information for each slave device 7. To do.

受信デバイス35は、シリアル/パラレル変換を行い、伝送路を介してスレーブ装置7から送信される伝送情報が重畳されたマルチフレームを受信する。送信デバイス37は、パラレル/シリアル変換を行い、伝送路を介してスレーブ装置7に伝送情報が重畳されたマルチフレーム、SYNC、及びCLKの何れかを送信する。例えば、タイミング生成部21に接続された2台の送信デバイス37は、一方がSYNCを送信し、他の一方がCLKを送信する。また、送信部31に接続された送信デバイス37は、伝送情報が重畳されたマルチフレームを送信する。送信デバイス37は、マルチドロップ接続をすることができるドライブ能力のあるデバイスで構成されている。なお、SYNC及びCLKに関する詳細事項については後述するが、SYNCは、伝送同期信号であり、CLKは、伝送クロックである。   The receiving device 35 performs serial / parallel conversion and receives a multiframe on which transmission information transmitted from the slave device 7 is superimposed via a transmission path. The transmission device 37 performs parallel / serial conversion, and transmits one of multiframe, SYNC, and CLK on which transmission information is superimposed to the slave device 7 via the transmission path. For example, one of the two transmission devices 37 connected to the timing generation unit 21 transmits SYNC, and the other transmits CLK. In addition, the transmission device 37 connected to the transmission unit 31 transmits a multiframe on which transmission information is superimposed. The transmission device 37 is composed of a device having a drive capability capable of multidrop connection. In addition, although the detailed matter regarding SYNC and CLK is mentioned later, SYNC is a transmission synchronous signal and CLK is a transmission clock.

スレーブ装置7は、タイミング生成部23と、受信部51と、送信部53と、受信デバイス55と、送信デバイス57とを備えている。なお、受信部51は、本発明におけるスレーブ側受信装置に相当する。また、送信部53は、本発明におけるスレーブ側送信装置に相当する。   The slave device 7 includes a timing generation unit 23, a reception unit 51, a transmission unit 53, a reception device 55, and a transmission device 57. The receiving unit 51 corresponds to the slave side receiving device in the present invention. Moreover, the transmission part 53 is corresponded to the slave side transmission apparatus in this invention.

タイミング生成部23は、マスター装置4から受信したSYNC及びCLKから内部の送受信処理で使用する各タイミング、例えば、受信部51及び送信部53の各種処理のタイミングを生成する。受信部51は、MF抽出部61と、TS分解部63とを備え、受信した伝送情報である受信情報を後述する伝送フォーマットに従って、マルチフレームの識別を行い、自機の伝送情報のみ保持し、他機に割り当てられているマルチフレームを破棄する。   The timing generation unit 23 generates each timing used in internal transmission / reception processing from the SYNC and CLK received from the master device 4, for example, timings of various processes of the reception unit 51 and the transmission unit 53. The receiving unit 51 includes an MF extracting unit 61 and a TS decomposing unit 63. The receiving unit 51 performs multi-frame identification according to a transmission format to be described later, and stores only the transmission information of the own device. Discard multiframes assigned to other devices.

送信部53は、MF挿入部65と、TS多重部67とを備え、後述する伝送フォーマットに従って、マルチフレームを識別し、自機の伝送情報として送信情報を生成し、自機に割り当てられているマルチフレームのタイミングにのみ送信する。送信部53は、他機に割り当てられているマルチフレームのタイミングの場合には、送信状態をハイ・インピーダンス状態に設定し、伝送路であるシリアルバスを開放する。   The transmission unit 53 includes an MF insertion unit 65 and a TS multiplexing unit 67, identifies a multiframe according to a transmission format described later, generates transmission information as transmission information of the own device, and is assigned to the own device. Transmit only at multiframe timing. In the case of multi-frame timing assigned to another device, the transmission unit 53 sets the transmission state to a high impedance state and opens the serial bus as a transmission path.

受信デバイス55は、シリアル/パラレル変換を行い、伝送路を介してマスター装置4から送信される伝送情報が重畳されたマルチフレームを受信する。送信デバイス57は、パラレル/シリアル変換を行い、伝送路を介してマスター装置4に伝送情報が重畳されたマルチフレームを送信する。送信デバイス57は、マルチポイント接続をすることができるトライステート型のデバイスで構成されている。つまり、送信デバイス57は、出力として、ハイ状態、ロー状態、及び何の出力もない状態であるハイ・インピーダンス状態の何れかの状態が設定できるデバイスで構成される。   The receiving device 55 performs serial / parallel conversion and receives a multiframe on which transmission information transmitted from the master device 4 is superimposed via a transmission path. The transmission device 57 performs parallel / serial conversion, and transmits a multiframe on which transmission information is superimposed to the master device 4 via a transmission path. The transmission device 57 is composed of a tristate type device capable of multipoint connection. That is, the transmission device 57 is configured by a device that can set any of a high state, a low state, and a high impedance state, which is a state in which there is no output, as an output.

なお、上記で説明した監視制御装置1の構成は一例を示すだけであって、特にこれらに限定されるものではない。要するに、上記で説明した機能が実行されれば、その実施形態については特に限定されるものではない。   In addition, the structure of the monitoring control apparatus 1 demonstrated above shows only an example, Comprising: It does not specifically limit to these. In short, as long as the function described above is executed, the embodiment is not particularly limited.

次に、上記で用いられた伝送フォーマットの詳細について説明する。図2は、本発明の実施の形態1における監視制御装置1の伝送フォーマットの一例を示す図である。図3は、本発明の実施の形態1における監視制御装置1の伝送タイミングの一例を示す図である。図2に示されるように、マスター装置4からN台のスレーブ装置7への下り伝送フォーマットと、N台のスレーブ装置7のうち、図1に示す実装slot_2に対応するスレーブ装置7からマスター装置4への上り伝送フォーマットとの一例がそれぞれ示されている。   Next, details of the transmission format used above will be described. FIG. 2 is a diagram illustrating an example of a transmission format of the monitoring control device 1 according to Embodiment 1 of the present invention. FIG. 3 is a diagram illustrating an example of transmission timing of the monitoring control device 1 according to Embodiment 1 of the present invention. As shown in FIG. 2, the downlink transmission format from the master device 4 to the N slave devices 7 and, out of the N slave devices 7, the slave device 7 to the master device 4 corresponding to the mounting slot_2 shown in FIG. An example of an upstream transmission format is shown.

下り伝送フォーマット及び上り伝送フォーマットの何れにおいても、1つのマルチフレームが複数のタイムスロット、例えば、M個のタイムスロットのそれぞれに対応して分割されることになっており、1つのマルチフレームで、1つのスレーブ装置7に対応する伝送情報が形成される構成となっている。また、複数のマルチフレームのそれぞれと、複数のスレーブ装置7のそれぞれとが、対応する構成となっている。例えば、スレーブ装置7の台数がN台であれば、マルチフレームの総数もN個となるように対応関係が形成されることになっている。なお、いずれのタイムスロットにおいても、タイムスロット1つ当たり、1バイト、すなわち、タイムスロット1つ当たり、b7〜b0の8ビットの伝送情報が割り当てられることになっている。   In both the downlink transmission format and the uplink transmission format, one multiframe is divided corresponding to each of a plurality of time slots, for example, M time slots. Transmission information corresponding to one slave device 7 is formed. In addition, each of the plurality of multi-frames and each of the plurality of slave devices 7 have a corresponding configuration. For example, if the number of slave devices 7 is N, the correspondence relationship is formed so that the total number of multiframes is also N. In any time slot, one byte per time slot, that is, 8-bit transmission information of b7 to b0 is assigned per time slot.

下り伝送フォーマットについて説明する。0番目のタイムスロット、すなわち、ts_0の場合には、b6にマルチフレームのタイミングを同期させるヘッダービットが割り当てられる。b3〜b0にIDが割り当てられる。ここでいうIDとは、装置種別のことであり、例えばCPUシート(中央処理装置)の場合は”0[hex]”等となる。1番目のタイムスロット〜M−1番目のタイムスロット、すなわち、ts_1〜ts_M−1の場合には、該当するスレーブ装置7の各種伝送情報が割り当てられる。M番目のタイムスロット、すなわち、ts_Mの場合には、CRCチェック用のデータが割り当てられる。   The downlink transmission format will be described. In the case of the 0th time slot, that is, ts_0, a header bit for synchronizing the timing of the multiframe is assigned to b6. IDs are assigned to b3 to b0. The ID referred to here is a device type. For example, in the case of a CPU sheet (central processing unit), it is “0 [hex]”. In the case of the first time slot to the M−1th time slot, that is, ts_1 to ts_M−1, various transmission information of the corresponding slave device 7 is assigned. In the case of the Mth time slot, that is, ts_M, data for CRC check is allocated.

上り伝送フォーマットについて説明する。0番目のタイムスロット、すなわち、ts_0の場合には、b3〜b0にIDが割り当てられる。ここでいうIDとは、装置種別のことであり、例えばDIシート(デジタル入力装置)の場合は”1[hex]”、DOシート(デジタル出力装置)の場合は”2[hex]等となる。マスター装置4はこのIDからスレーブ装置7の実装状況と、各スレーブ装置7の種別を認識することが可能となる。なお、ts_1〜ts_Mについては、下り伝送フォーマットと同様の構成であるため、その説明については省略する。   The uplink transmission format will be described. In the case of the 0th time slot, that is, ts_0, IDs are assigned to b3 to b0. The ID here is a device type, for example, “1 [hex]” for a DI sheet (digital input device), “2 [hex], etc. for a DO sheet (digital output device). The master device 4 can recognize the mounting status of the slave device 7 and the type of each slave device 7 from this ID, since ts_1 to ts_M have the same configuration as the downlink transmission format, The description is omitted.

上記の伝送フォーマットの説明から次のことが言える。伝送フォーマットは、1つのタイムスロットには1バイト分を割り当て、マスター装置4と、スレーブ装置7との間で伝送される伝送情報をMバイトであると想定すると、1フレーム当たりM+1個のタイムスロットが必要となる。つまり、1フレーム当たり、ts_0〜ts_Mのタイムスロットの帯域を割り当てることで構成される。そこで、スレーブ装置7の台数をN台であると想定すると、伝送帯域は、(M+1)×Nバイトとなる。   The following can be said from the above description of the transmission format. Assuming that one byte is allocated to one time slot and transmission information transmitted between the master device 4 and the slave device 7 is M bytes, the transmission format is M + 1 time slots per frame. Is required. That is, a time slot band of ts_0 to ts_M is allocated per frame. Therefore, assuming that the number of slave devices 7 is N, the transmission band is (M + 1) × N bytes.

また、各マルチフレームと、スレーブ装置7との対応関係は、スレーブ装置7がN台であれば、上記で説明したように、マルチフレーム1〜N、つまり、mf_1〜Nとして、それぞれ割り付けることができる。例えば、図3に示されるように、1台目のスレーブ装置7は、mf_1に割り当てられ、2台目のスレーブ装置7は、mf_2に割り当てられ、3台目のスレーブ装置7は、mf_3に割り当てられ、以後、続いて割り当てられる。よって、N台目のスレーブ装置7は、mf_Nに割り当てられる。ここで、mf_NのNはmfのサフィックスであって、複数あるマルチフレームのうちの1つを指定するMF番号、すなわち、マルチフレーム番号として用いられている。   The correspondence between each multi-frame and the slave device 7 can be assigned as multi-frames 1 to N, that is, mf_1 to N, as described above if there are N slave devices 7. it can. For example, as shown in FIG. 3, the first slave device 7 is assigned to mf_1, the second slave device 7 is assigned to mf_2, and the third slave device 7 is assigned to mf_3. And subsequently assigned. Therefore, the Nth slave device 7 is assigned to mf_N. Here, N of mf_N is a suffix of mf, and is used as an MF number that designates one of a plurality of multiframes, that is, a multiframe number.

なお、上記で説明した伝送フォーマットの構成は一例を示すだけであって、特にこの構成に限定されるものではない。要するに、伝送帯域の割当が、スレーブ装置7毎にマルチフレーム単位で行われれば、それ以外の構成については図2の場合と異なっていてもよい。つまり、1つのマルチフレームには1つのスレーブ装置7に対応する伝送情報が割り当てられ、1つのマルチフレームが伝送路上を伝送している間、その伝送路を占有できる通信であればよい。   The configuration of the transmission format described above is only an example, and is not particularly limited to this configuration. In short, as long as transmission band allocation is performed in units of multiframes for each slave device 7, the configuration other than that may be different from that in FIG. That is, transmission information corresponding to one slave device 7 is assigned to one multiframe, and communication that can occupy the transmission path while one multiframe is transmitted on the transmission path may be used.

<動作の説明>
図4は、本発明の実施の形態1におけるマスター装置4の各種タイミング生成動作の一例を説明するフローチャートである。
<Description of operation>
FIG. 4 is a flowchart for explaining an example of various timing generation operations of the master device 4 according to the first embodiment of the present invention.

(TSタイミング生成処理)
(ステップS11)
マスター装置4は、伝送クロック(CLK)を検知したか否かを判定する。マスター装置4は、伝送クロック(CLK)を検知した場合、ステップS12に進む。一方、マスター装置4は、伝送クロック(CLK)を検知しない場合、ステップS11に戻る。
(TS timing generation processing)
(Step S11)
The master device 4 determines whether or not the transmission clock (CLK) is detected. When the master device 4 detects the transmission clock (CLK), the master device 4 proceeds to step S12. On the other hand, when the master device 4 does not detect the transmission clock (CLK), the master device 4 returns to step S11.

(ステップS12)
マスター装置4は、伝送クロック(CLK)に基づいてTS(タイムスロット)タイミングを生成し、処理を終了する。具体的には、TSタイミングは、伝送クロック(CLK)の立ち下がりにて動作するカウンタ10にて得る。カウンタ10は、1マルチフレーム周期毎にクリアされ、カウントアップを継続する。つまり、1マルチフレームが、ts_0〜ts_Mで構成されるため、8ビット×(M+1)回カウントするとクリアし、カウントアップを継続することになる。これにより、例えばts_0はカウンタ10の値が”0〜7”の時でタイミング生成することが可能となる。
(Step S12)
The master device 4 generates TS (time slot) timing based on the transmission clock (CLK) and ends the process. Specifically, the TS timing is obtained by the counter 10 that operates at the falling edge of the transmission clock (CLK). The counter 10 is cleared every multiframe period and continues counting up. That is, since one multiframe is composed of ts_0 to ts_M, it is cleared when counting 8 bits × (M + 1) times, and the count-up is continued. Thereby, for example, ts_0 can be generated when the value of the counter 10 is “0 to 7”.

(伝送同期信号生成処理)
(ステップS21)
マスター装置4は、伝送クロック(CLK)を検知したか否かを判定する。マスター装置4は、伝送クロック(CLK)を検知した場合、ステップS22に進む。一方、マスター装置4は、伝送クロック(CLK)を検知しない場合、ステップS21に戻る。
(Transmission synchronization signal generation processing)
(Step S21)
The master device 4 determines whether or not the transmission clock (CLK) is detected. When the master device 4 detects the transmission clock (CLK), the master device 4 proceeds to step S22. On the other hand, when the master device 4 does not detect the transmission clock (CLK), the master device 4 returns to step S21.

(ステップS22)
マスター装置4は、伝送クロック(CLK)とTSタイミングとに基づいて伝送同期信号(SYNC)を生成し、処理を終了する。具体的には、伝送同期信号(SYNC)は、1マルチフレーム周期毎に最初の伝送クロック(CLK)の立ち上がりに同期した1パルスとして生成される。つまり、カウンタ10の値が”8×(M+1)−1”の時に伝送クロック(CLK)の立ち上がりに同期した1パルスとして生成される。また、マスター装置4からスレーブ装置7への伝送同期信号(SYNC)送出時には、フラグビットとして必ず”1”を送出する。
(Step S22)
The master device 4 generates a transmission synchronization signal (SYNC) based on the transmission clock (CLK) and the TS timing, and ends the process. Specifically, the transmission synchronization signal (SYNC) is generated as one pulse synchronized with the rising edge of the first transmission clock (CLK) every one multiframe period. In other words, when the value of the counter 10 is “8 × (M + 1) −1”, it is generated as one pulse synchronized with the rising edge of the transmission clock (CLK). Further, when a transmission synchronization signal (SYNC) is transmitted from the master device 4 to the slave device 7, "1" is always transmitted as a flag bit.

(MFタイミング生成処理)
(ステップS31)
マスター装置4は、伝送クロック(CLK)を検知したか否かを判定する。マスター装置4は、伝送クロック(CLK)を検知した場合、ステップS32に進む。一方、マスター装置4は、伝送クロック(CLK)を検知しない場合、ステップS31に戻る。
(MF timing generation processing)
(Step S31)
The master device 4 determines whether or not the transmission clock (CLK) is detected. When the master device 4 detects the transmission clock (CLK), the master device 4 proceeds to step S32. On the other hand, when the master device 4 does not detect the transmission clock (CLK), the master device 4 returns to step S31.

(ステップS32)
マスター装置4は、伝送クロック(CLK)と伝送同期信号(SYNC)とに基づいて送信MFタイミングを生成する。具体的には、送信MFタイミングは、伝送同期信号(SYNC)=”1”及び伝送クロック(CLK)の立ち下がりにて動作するカウンタ2にて得る。カウンタ2は、規定したマルチフレーム周期毎に初期値”1”をセットし、カウントアップを継続する。つまり、カウンタ2の値が”N”の場合に初期値”1”がセットされ、カウンタ2の値が”N”以外の場合にカウントアップが実行される。
(Step S32)
The master device 4 generates a transmission MF timing based on the transmission clock (CLK) and the transmission synchronization signal (SYNC). Specifically, the transmission MF timing is obtained by the counter 2 that operates at the falling edge of the transmission synchronization signal (SYNC) = “1” and the transmission clock (CLK). The counter 2 sets an initial value “1” for each defined multiframe period and continues counting up. That is, when the value of the counter 2 is “N”, the initial value “1” is set, and when the value of the counter 2 is other than “N”, the count-up is executed.

(ステップS33)
マスター装置4は、伝送クロック(CLK)と伝送同期信号(SYNC)とに基づいて送信MFタイミングを生成後に受信MFタイミングを生成し、処理を終了する。具体的には、受信MFタイミングは、伝送同期信号(SYNC)=”1”及び伝送クロック(CLK)の立ち下がりにて、カウンタ2の値をロードするカウンタ3にて得る。つまり、受信MFタイミングは、送信MFタイミングの1マルチフレーム後としてカウントされる。
(Step S33)
The master device 4 generates the reception MF timing after generating the transmission MF timing based on the transmission clock (CLK) and the transmission synchronization signal (SYNC), and ends the processing. Specifically, the reception MF timing is obtained by the counter 3 that loads the value of the counter 2 at the falling edge of the transmission synchronization signal (SYNC) = “1” and the transmission clock (CLK). That is, the reception MF timing is counted as one multiframe after the transmission MF timing.

図5は、本発明の実施の形態1におけるマスター装置4の送信動作の一例を説明するフローチャートである。   FIG. 5 is a flowchart for explaining an example of the transmission operation of the master device 4 according to Embodiment 1 of the present invention.

(ステップS41)
マスター装置4は、伝送フォーマットに従って、送信MFタイミングとTSタイミングとに基づいて送信データを生成する。具体的には、ts_0には、全てのスレーブ装置7共通の制御情報として、MFビット及びIDが挿入される。MFビットは、上記で説明したように、全てのスレーブ装置7において、マルチフレームのタイミングを同期させるためのヘッダービットであって、mf_1を送信する場合にのみMFビットに”0”が挿入され、mf_2〜mf_Nを送信する場合にはMFビットに”1”が挿入される。ts_1〜ts_M−1は、上記で説明したように、個別情報であり、例えば、ts_1〜ts_M−1には、表示情報又はDO(デジタル出力)情報等が挿入される。ts_Mは、上記で説明したように、伝送情報のエラーチェック用に設けられたものであって、ts_Mには、マルチフレーム毎にチェックコードが挿入される。チェックコードは、例えば、該当するマルチフレーム内の全タイムスロットに割り当てられた情報をCRC(Cyclic Redundancy Check;巡回冗長検査)演算することで生成される。なお、エラーチェック用のチェックコードは上記に限定されるものではない。
(Step S41)
The master device 4 generates transmission data based on the transmission MF timing and the TS timing according to the transmission format. Specifically, in ts_0, an MF bit and an ID are inserted as control information common to all slave devices 7. As described above, the MF bit is a header bit for synchronizing the timing of multiframes in all the slave devices 7, and “0” is inserted into the MF bit only when mf_1 is transmitted. When transmitting mf_2 to mf_N, “1” is inserted into the MF bit. As described above, ts_1 to ts_M-1 are individual information. For example, display information or DO (digital output) information or the like is inserted into ts_1 to ts_M-1. As described above, ts_M is provided for error check of transmission information, and a check code is inserted into ts_M for each multiframe. The check code is generated, for example, by performing CRC (Cyclic Redundancy Check) operation on information assigned to all time slots in the corresponding multiframe. Note that the error check check code is not limited to the above.

(ステップS42)
マスター装置4は、生成した送信データを順次パラレル/シリアル変換する。具体的には、マスター装置4は、伝送情報である送信情報を上記で説明した伝送フォーマットに従って、送信MFフレームタイミング及びTSタイミングにより、パラレル/シリアル変換、つまりP/S変換にセットされる。
(Step S42)
The master device 4 sequentially performs parallel / serial conversion on the generated transmission data. Specifically, the master device 4 sets transmission information, which is transmission information, to parallel / serial conversion, that is, P / S conversion, according to the transmission MF frame timing and TS timing in accordance with the transmission format described above.

(ステップS43)
マスター装置4は、パラレル/シリアル変換した送信データを伝送同期信号(SYNC)と伝送クロック(CLK)とに基づいて順次送信する。具体的には、マスター装置4は、伝送同期信号(SYNC)の出力と同時に、伝送クロック(CLK)の立ち上がりにてts_0からマルチフレームを順次送信する。
(Step S43)
The master device 4 sequentially transmits the transmission data subjected to parallel / serial conversion based on the transmission synchronization signal (SYNC) and the transmission clock (CLK). Specifically, the master device 4 sequentially transmits multiframes from ts_0 at the rising edge of the transmission clock (CLK) simultaneously with the output of the transmission synchronization signal (SYNC).

図6は、本発明の実施の形態1におけるマスター装置4の受信動作の一例を説明するフローチャートである。   FIG. 6 is a flowchart for explaining an example of the reception operation of the master device 4 in the first embodiment of the present invention.

(ステップS61)
マスター装置4は、伝送路上の受信データをシリアル/パラレル変換する。具体的には、伝送路上の伝送情報である受信情報は、伝送クロック(CLK)の立ち下がりにて動作するシリアル/パラレル変換、つまり、S/P変換にて取り込まれる。
(Step S61)
The master device 4 performs serial / parallel conversion on the received data on the transmission path. Specifically, reception information, which is transmission information on the transmission path, is captured by serial / parallel conversion that operates at the falling edge of the transmission clock (CLK), that is, S / P conversion.

(ステップS62)
マスター装置4は、TSタイミングが到来したか否かを判定する。マスター装置4は、TSタイミングが到来した場合、ステップS63に進む。一方、マスター装置4は、TSタイミングが到来しない場合、ステップS62に戻る。
(Step S62)
The master device 4 determines whether TS timing has arrived. When the TS timing has arrived, the master device 4 proceeds to step S63. On the other hand, when the TS timing does not arrive, the master device 4 returns to step S62.

(ステップS63)
マスター装置4は、ts_M受信タイミングであるか否かを判定する。マスター装置4は、ts_M受信タイミングである場合、ステップS65に進む。一方、マスター装置4は、ts_M受信タイミングでない場合、ステップS64に進む。
(Step S63)
The master device 4 determines whether it is ts_M reception timing. If it is the ts_M reception timing, the master device 4 proceeds to step S65. On the other hand, if it is not the ts_M reception timing, the master device 4 proceeds to step S64.

(ステップS64)
マスター装置4は、シリアル/パラレル変換した受信データを割り当てられたMF番号に基づいてスレーブ装置7単位毎に対応する各レジスタに保持する。
(Step S64)
The master device 4 holds the serial / parallel converted received data in each register corresponding to each unit of the slave device 7 based on the assigned MF number.

(ステップS65)
マスター装置4は、ts_MによるCRCチェックがOKであるか否かを判定する。マスター装置4は、ts_MによるCRCチェックがOKである場合、ステップS66に進む。一方、マスター装置4は、ts_MによるCRCチェックがOKでない場合、すなわち、NGの場合、処理を終了する。
(Step S65)
The master device 4 determines whether or not the CRC check based on ts_M is OK. If the CRC check by ts_M is OK, the master device 4 proceeds to step S66. On the other hand, if the CRC check by ts_M is not OK, that is, if it is NG, the master device 4 ends the process.

(ステップS66)
マスター装置4は、各レジスタに保持した受信データを確定情報とし、処理を終了する。
(Step S66)
The master device 4 uses the received data held in each register as final information, and ends the process.

つまり、マスター装置4は、該当するMFタイミング及び該当するTSタイミングで受信情報を保持する処理を実行する。また、マスター装置4は、伝送フォーマットにて規定されるスレーブ装置7毎に割り当てられたマルチフレームに対応するマルチフレーム番号であるMF番号に基づいて、受信情報を識別し、伝送クロック(CLK)の立ち上がりにてS/P変換から各レジスタへスレーブ装置7毎に識別した受信情報を保持する。そして、保持された受信情報は、スレーブ装置7毎のts_M受信タイミングの伝送クロック(CLK)の立ち上がりにて、ts_MによるCRCチェックがOKの場合にのみ、確定情報として取り扱われる。   That is, the master device 4 executes a process of holding reception information at the corresponding MF timing and the corresponding TS timing. The master device 4 identifies received information based on the MF number, which is a multiframe number corresponding to the multiframe assigned to each slave device 7 defined in the transmission format, and determines the transmission clock (CLK). The reception information identified for each slave device 7 is held from the S / P conversion to each register at the rising edge. The held reception information is handled as confirmed information only when the CRC check by ts_M is OK at the rising edge of the transmission clock (CLK) at the ts_M reception timing of each slave device 7.

図7は、本発明の実施の形態1におけるスレーブ装置7の各種タイミング生成動作の一例を説明するフローチャートである。   FIG. 7 is a flowchart for explaining an example of various timing generation operations of the slave device 7 according to the first embodiment of the present invention.

(TSタイミング生成処理)
(ステップS81)
スレーブ装置7は、伝送クロック(CLK)を検知したか否かを判定する。スレーブ装置7は、伝送クロック(CLK)を検知した場合、ステップS82に進む。一方、スレーブ装置7は、伝送クロック(CLK)を検知しない場合、ステップS81に戻る。
(TS timing generation processing)
(Step S81)
The slave device 7 determines whether or not the transmission clock (CLK) is detected. When the slave device 7 detects the transmission clock (CLK), the slave device 7 proceeds to step S82. On the other hand, when the slave device 7 does not detect the transmission clock (CLK), the slave device 7 returns to step S81.

(ステップS82)
スレーブ装置7は、伝送クロック(CLK)と伝送同期信号(SYNC)とに基づいてTS(タイムスロット)タイミングを生成し、処理を終了する。具体的には、TSタイミングは、受信した伝送クロック(CLK)の立ち下がりにて動作するカウンタ11にて得る。カウンタ11は、伝送同期信号(SYNC)受信毎にクリアされ、カウントアップを継続する。つまり、1つのマルチフレームがts_0〜ts_Mで割り当てられているため、通常は、8ビット×(M+1)回カウントすることになる。また、カウンタ11は、伝送同期信号(SYNC)等の受信周期の異常等のような異常が発生した場合には、強制的にカウンタ値”0”をセットし、正常に復旧するまで待機する。
(Step S82)
The slave device 7 generates TS (time slot) timing based on the transmission clock (CLK) and the transmission synchronization signal (SYNC), and ends the process. Specifically, the TS timing is obtained by the counter 11 that operates at the falling edge of the received transmission clock (CLK). The counter 11 is cleared every time a transmission synchronization signal (SYNC) is received, and continues counting up. That is, since one multi-frame is allocated at ts_0 to ts_M, the count is normally 8 bits × (M + 1) times. Further, the counter 11 forcibly sets the counter value “0” when an abnormality such as a reception cycle abnormality such as a transmission synchronization signal (SYNC) occurs, and waits for normal recovery.

(MFタイミング生成処理)
(ステップS101)
スレーブ装置7は、伝送クロック(CLK)を検知したか否かを判定する。スレーブ装置7は、伝送クロック(CLK)を検知した場合、ステップS102に進む。一方、スレーブ装置7は、伝送クロック(CLK)を検知しない場合、ステップS101に戻る。
(MF timing generation processing)
(Step S101)
The slave device 7 determines whether or not the transmission clock (CLK) is detected. When the slave device 7 detects the transmission clock (CLK), the slave device 7 proceeds to step S102. On the other hand, when the slave device 7 does not detect the transmission clock (CLK), the slave device 7 returns to step S101.

(ステップS102)
スレーブ装置7は、ts_0受信タイミングと伝送クロック(CLK)とに基づいて受信MFタイミングを生成する。具体的には、受信MFタイミングは、ts_0受信タイミング時の伝送クロック(CLK)の立ち上がりにて動作するカウンタ12にて得る。カウンタ12は、ts_0受信データのMFビット、すなわち、b6=”0”を検出した場合にのみ、初期値”1”をセットし、”1”を検出した場合はカウントアップを行う。よって、カウンタ12は、通常はN回カウントすることになる。また、カウンタ12は、カウンタ値が”0”又は”N”であって、かつ、MFビット”1”を検出した場合には、マルチフレーム周期異常として、強制的にカウント値”0”をセットし、正常に復旧するまで待機する。
(Step S102)
The slave device 7 generates a reception MF timing based on the ts_0 reception timing and the transmission clock (CLK). Specifically, the reception MF timing is obtained by the counter 12 that operates at the rising edge of the transmission clock (CLK) at the time of ts_0 reception. The counter 12 sets the initial value “1” only when it detects the MF bit of ts_0 received data, that is, b6 = “0”, and counts up when it detects “1”. Therefore, the counter 12 normally counts N times. In addition, when the counter value is “0” or “N” and the MF bit “1” is detected, the counter 12 forcibly sets the count value “0” as a multiframe period abnormality. And wait for normal recovery.

(ステップS103)
スレーブ装置7は、ts_M受信タイミングと伝送クロック(CLK)とに基づいて送信MFタイミングを生成し、処理を終了する。具体的には、送信MFタイミングは、ts_M受信タイミングの伝送クロック(CLK)の立ち上がりにて動作するカウンタ13にて得る。カウンタ13は、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがOKである場合に、カウンタ値”1”をセットし、フラグ1が”1”の間は、カウントアップを行う。また、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがOKでない、つまり、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがNGの場合には、マルチフレーム周期異常として、強制的にカウンタ値”0”をセットし、正常に復旧するまで待機する。
(Step S103)
The slave device 7 generates a transmission MF timing based on the ts_M reception timing and the transmission clock (CLK), and ends the process. Specifically, the transmission MF timing is obtained by the counter 13 that operates at the rising edge of the transmission clock (CLK) at the ts_M reception timing. The counter 13 sets the counter value “1” when the value of the counter 12 is “1” and the CRC check by ts_M is OK, and counts up while the flag 1 is “1”. I do. Further, when the value of the counter 12 is “1” and the CRC check by ts_M is not OK, that is, the value of the counter 12 is “1” and the CRC check by ts_M is NG. As a multiframe cycle error, the counter value “0” is forcibly set and waits until it is restored to normal.

なお、カウンタ値”0”、つまり、mf_0は、どのスレーブ装置7にも割り当てられていないダミー用のマルチフレームであるので、mf_0に対応するタイムスロットが発行される期間は、伝送路がハイ・インピーダンス状態に設定される。   The counter value “0”, that is, mf_0, is a dummy multiframe that is not assigned to any slave device 7, and therefore the transmission path is high during the period in which the time slot corresponding to mf_0 is issued. Set to impedance state.

また、マルチフレーム周期の判定結果を示すフラグ1は、ts_M受信タイミングの伝送クロック(CLK)の立ち上がりにて動作し、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがOKの場合、”1”が設定され、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがOKでない、つまり、カウンタ12の値が”1”であって、かつ、ts_MによるCRCチェックがNGの場合には、”0”が設定され、その他の条件の場合には、”状態保持”が設定される。   The flag 1 indicating the determination result of the multiframe period operates at the rising edge of the transmission clock (CLK) at the ts_M reception timing, the value of the counter 12 is “1”, and the CRC check by ts_M is OK. In this case, “1” is set, the value of the counter 12 is “1”, and the CRC check by ts_M is not OK, that is, the value of the counter 12 is “1” and by ts_M. When the CRC check is NG, “0” is set, and when other conditions are set, “status hold” is set.

次に、スレーブ装置7の送信動作及び受信動作並びにそれらの動作に伴う占有調停動作について図8〜図11を用いて説明する。図8は、本発明の実施の形態1におけるスレーブ装置7の送信動作の一例を説明するフローチャートである。図9は、本発明の実施の形態1におけるスレーブ装置7の受信動作の一例を説明するフローチャートである。図10は、本発明の実施の形態1における監視制御装置1の伝送タイミングの詳細例を示す図である。図11は、本発明の実施の形態1における監視制御装置1の占有調停タイミングの一例を示す図である。   Next, the transmission operation and the reception operation of the slave device 7 and the exclusive arbitration operation associated with these operations will be described with reference to FIGS. FIG. 8 is a flowchart for explaining an example of the transmission operation of the slave device 7 according to Embodiment 1 of the present invention. FIG. 9 is a flowchart for explaining an example of the reception operation of the slave device 7 according to Embodiment 1 of the present invention. FIG. 10 is a diagram illustrating a detailed example of transmission timing of the monitoring control device 1 according to the first embodiment of the present invention. FIG. 11 is a diagram illustrating an example of the occupation arbitration timing of the monitoring control device 1 according to Embodiment 1 of the present invention.

(送信処理)
(ステップS111)
スレーブ装置7は、伝送フォーマットに従って、送信MFタイミングとTSタイミングとに基づいて送信データを生成する。
(Transmission process)
(Step S111)
The slave device 7 generates transmission data based on the transmission MF timing and the TS timing according to the transmission format.

(ステップS112)
スレーブ装置7は、生成した送信データを順次パラレル/シリアル変換する。具体的には、ts_0には、制御情報として、IDが挿入される。ts_1〜ts_Mは個別情報であって、ts_1〜ts_Mには、操作情報又はDI情報等が挿入される。ts_Mは伝送情報のエラーチェック用であって、ts_Mにはチェックコードが挿入される。チェックコードは、該当するマルチフレーム内の全タイムスロットに割り当てられた情報をCRC演算することで生成される。送信情報は、伝送フォーマットに従って、該当するMFタイミング及びTSタイミングにより、P/S変換にセットされ、伝送同期信号(SYNC)が入力されると同時に伝送クロック(CLK)の立ち上がりにてts_0から順次送信されることになっているが、ここで、伝送路のアービトレーション、すなわち、伝送路の占有調停が必要となる。
(Step S112)
The slave device 7 sequentially performs parallel / serial conversion on the generated transmission data. Specifically, an ID is inserted as control information in ts_0. ts_1 to ts_M are individual information, and operation information or DI information or the like is inserted into ts_1 to ts_M. ts_M is for error check of transmission information, and a check code is inserted into ts_M. The check code is generated by performing CRC calculation on information assigned to all time slots in the corresponding multiframe. The transmission information is set to P / S conversion according to the transmission format according to the transmission format (TS) according to the transmission format, and is transmitted sequentially from ts_0 at the rising edge of the transmission clock (CLK) at the same time as the transmission synchronization signal (SYNC) is input. In this case, arbitration of the transmission path, that is, occupation arbitration of the transmission path is required.

(ステップS113)
スレーブ装置7は、伝送同期信号(SYNC)と伝送クロック(CLK)とに基づいて伝送路の占有切替を行う。具体的には、伝送路の占有調停は、送信デバイス57のイネーブルを制御することにより、実行される。マスター装置4の受信処理の動作説明で説明したが、伝送路からの伝送情報である受信情報は、伝送クロック(CLK)の立ち下がりで取り込まれるため、正常に受信させるためには、伝送同期信号(SYNC)=”1”及び伝送クロック(CLK)=”1”の間に、伝送路の占有切替を行う必要がある。
(Step S113)
The slave device 7 performs occupation switching of the transmission path based on the transmission synchronization signal (SYNC) and the transmission clock (CLK). Specifically, the transmission path occupation arbitration is executed by controlling the enable of the transmission device 57. As described in the explanation of the operation of the reception process of the master device 4, the reception information, which is transmission information from the transmission path, is taken in at the falling edge of the transmission clock (CLK). It is necessary to switch the occupation of the transmission path between (SYNC) = “1” and transmission clock (CLK) = “1”.

このような占有切替タイミングは、図11に示されるように、装置内部クロックである伝送クロック(CLK)の32逓倍のオーバーサンプリング、つまり、伝送クロック(CLK)に対して32オーバーサンプリングの立ち上がりにて動作するカウンタ101にて得る。カウンタ101は、伝送同期信号(SYNC)の立ち上がりを検出した場合のみ、初期値”1”をセットし、カウント値”15”になるまでカウントアップを行い、次に初期値がセットされるまで待機状態となる。ここで、待機状態を設けたのは、ノイズ等の影響があったとしても、その場合の誤作動によるカウントを防ぐためである。   As shown in FIG. 11, such occupancy switching timing is oversampling of the transmission clock (CLK), which is 32 times the device internal clock, that is, at the rise of 32 oversampling with respect to the transmission clock (CLK). Obtained by operating counter 101. Only when the rising edge of the transmission synchronization signal (SYNC) is detected, the counter 101 sets the initial value “1”, counts up to the count value “15”, and waits until the next initial value is set. It becomes a state. Here, the reason why the standby state is provided is to prevent counting due to malfunction in that case even if there is an influence of noise or the like.

また、伝送同期信号(SYNC)の立ち上がり検出動作は、装置内部クロックであって、オーバーサンプリングをカウントするCLK101による同期化後、すなわち、メタ・ステーブル処理後に実行する。メタ・ステーブル処理は、例えば、図示しないフリップフロップを、カウンタ101のデータ取り込み側に2段追加しておき、CLK101からの出力を2クロック分待つことで、カウンタ101の動作出力が安定状態に移行するのを待つ動作である。なお、上記で説明したメタ・ステーブル処理は、一例を示すだけであって、特にこれに限定されるものではない。   The rising detection operation of the transmission synchronization signal (SYNC) is an internal clock of the apparatus, and is performed after synchronization by CLK 101 that counts oversampling, that is, after meta stable processing. In the meta stable processing, for example, two stages of flip-flops (not shown) are added to the data fetching side of the counter 101, and the operation output of the counter 101 is stabilized by waiting for the output from the CLK 101 for two clocks. It is an operation to wait for the transition. Note that the meta / stable process described above is merely an example, and the present invention is not particularly limited thereto.

次に、図11に示されるように、マルチフレーム毎に、一定のディセーブル期間を設定するフラグ101を生成する。フラグ101は、CLK101の立ち上がりにて動作し、カウンタ101の値が”2”〜”6”の間は、”0”、それ以外は”1”とする。なお、この一定のディセーブル期間は、伝送路の伝送遅延等を考慮して決定する必要がある。よって、上記で説明したようなカウンタ101の値が”2”〜”6”という値は一例であって、任意の値が設定可能になっている。   Next, as shown in FIG. 11, a flag 101 for setting a certain disable period is generated for each multiframe. The flag 101 operates at the rising edge of the CLK 101, and is “0” when the value of the counter 101 is “2” to “6”, and “1” otherwise. Note that this fixed disable period must be determined in consideration of the transmission delay of the transmission line. Therefore, the value of the counter 101 as described above, which is “2” to “6”, is an example, and an arbitrary value can be set.

次に、図11に示されるように、スレーブ装置7は、自機に割り当てられたMFタイミング以外をマスクするフラグ102を生成する。フラグ102は、CLK101の立ち上がりにて動作し、カウンタ101の値が”4”及び該当するMFタイミングの場合に”1”、カウンタ101の値が”4”及び該当するMFタイミング以外の場合に”0”、その他の条件の場合に”状態保持”がそれぞれ設定される。なお、上記で説明したようなカウンタ101の値が”4”というのは、一例であって、一定のディセーブル期間の真ん中のタイミングを示しているだけであり、特にこれに限定するものではなく、任意の値が設定可能となっている。   Next, as shown in FIG. 11, the slave device 7 generates a flag 102 for masking other than the MF timing assigned to the own device. The flag 102 operates at the rising edge of the CLK 101 and is “1” when the value of the counter 101 is “4” and the corresponding MF timing, and “1” when the value of the counter 101 is “4” and other than the corresponding MF timing ”. “0” and “retain status” are set for other conditions. It should be noted that the value of the counter 101 as described above being “4” is merely an example, and merely indicates the middle timing of a certain disable period, and is not particularly limited thereto. Any value can be set.

次に、図11に示されるように、スレーブ装置7は、自機の伝送路占有タイミングとして、フラグ101とフラグ102との論理積、すなわちAND演算により、フラグ103を生成する。このように生成されたフラグ103により、送信デバイス57のイネーブルが制御され、伝送路の占有調停が実行されることで、上りTDMA伝送をすることができる。例えば、次に説明するステップS114以降の処理が実行される。   Next, as shown in FIG. 11, the slave device 7 generates the flag 103 by the logical product of the flag 101 and the flag 102, that is, an AND operation, as the transmission path occupation timing of the own device. The enable of the transmission device 57 is controlled by the flag 103 generated in this manner, and transmission channel occupation arbitration is executed, whereby uplink TDMA transmission can be performed. For example, the process after step S114 described below is executed.

(ステップS114)
スレーブ装置7は、自機の伝送路占有タイミングであるか否かを判定する。スレーブ装置7は、自機の伝送路占有タイミングである場合、ステップS115に進む。一方、スレーブ装置7は、自機の伝送路占有タイミングでない場合、ステップS114に戻る。
(Step S114)
The slave device 7 determines whether it is the transmission channel occupation timing of the own device. If it is the transmission path occupation timing of the slave apparatus 7, the slave apparatus 7 proceeds to step S115. On the other hand, the slave device 7 returns to step S114 when it is not the transmission channel occupation timing of the own device.

(ステップS115)
スレーブ装置7は、パラレル/シリアル変換した送信データを送信する。
(Step S115)
The slave device 7 transmits the transmission data subjected to parallel / serial conversion.

(ステップS116)
スレーブ装置7は、送信処理は完了したか否かを判定する。スレーブ装置7は、送信処理が完了した場合、処理を終了する。一方、スレーブ装置7は、送信処理が完了しない場合、ステップS115に戻る。
(Step S116)
The slave device 7 determines whether or not the transmission process has been completed. The slave device 7 ends the process when the transmission process is completed. On the other hand, if the transmission process is not completed, the slave device 7 returns to step S115.

(受信処理)
(ステップS131)
スレーブ装置7は、伝送路上の受信データをシリアル/パラレル変換する。
(Reception processing)
(Step S131)
The slave device 7 performs serial / parallel conversion on the received data on the transmission path.

(ステップS132)
スレーブ装置7は、割り当てられたMF番号が自機に対応するか否かを判定する。スレーブ装置7は、割り当てられたMF番号が自機に対応する場合、ステップS133に進む。一方、スレーブ装置7は、割り当てられたMF番号が自機に対応しない場合、ステップS131に戻る。
(Step S132)
The slave device 7 determines whether or not the assigned MF number corresponds to the own device. If the assigned MF number corresponds to the own device, the slave device 7 proceeds to step S133. On the other hand, if the assigned MF number does not correspond to the own device, the slave device 7 returns to step S131.

(ステップS133)
スレーブ装置7は、TSタイミングが到来したか否かを判定する。スレーブ装置7は、TSタイミングが到来した場合、ステップS134に進む。一方、スレーブ装置7は、TSタイミングが到来しない場合、ステップS133に戻る。
(Step S133)
The slave device 7 determines whether TS timing has arrived. When the TS timing has arrived, the slave device 7 proceeds to step S134. On the other hand, when the TS timing does not arrive, the slave device 7 returns to step S133.

(ステップS134)
スレーブ装置7は、ts_M受信タイミングであるか否かを判定する。スレーブ装置7は、ts_M受信タイミングである場合、ステップS136に進む。一方、スレーブ装置7は、ts_M受信タイミングでない場合、ステップS135に進む。
(Step S134)
The slave device 7 determines whether it is ts_M reception timing. If it is the ts_M reception timing, the slave device 7 proceeds to step S136. On the other hand, if it is not the ts_M reception timing, the slave device 7 proceeds to step S135.

(ステップS135)
スレーブ装置7は、シリアル/パラレル変換した受信データを各レジスタに保持し、ステップS133に戻る。
(Step S135)
The slave device 7 holds the received data subjected to serial / parallel conversion in each register, and returns to step S133.

(ステップS136)
スレーブ装置7は、ts_MによるCRCチェックがOKであるか否かを判定する。スレーブ装置7は、ts_MによるCRCチェックがOKである場合、ステップS137に進む。一方、スレーブ装置7は、ts_MによるCRCチェックがOKでない場合、つまり、NGの場合、処理を終了する。
(Step S136)
The slave device 7 determines whether or not the CRC check by ts_M is OK. If the CRC check by ts_M is OK, the slave device 7 proceeds to step S137. On the other hand, if the CRC check by ts_M is not OK, that is, if it is NG, the slave device 7 ends the process.

換言すれば、スレーブ装置7は、伝送路上の伝送情報である受信情報は、伝送クロック(CLK)の立ち下がりにて動作するS/P変換にて取り込まれ、自機への伝送情報である受信情報のみ識別し、伝送クロック(CLK)の立ち上がりにて、S/P変換から各レジスタへ保持する。スレーブ装置7は、自機宛か否かの識別を、伝送フォーマットにて規定され、自機へ割り当てられるMFタイミングにて行う。また、スレーブ装置7は、各レジスタに伝送情報を保持するタイミングを、該当するMFタイミング及び該当するTSタイミングにて行う。また、スレーブ装置7は、保持した伝送情報を、ts_M受信タイミングの伝送クロック(CLK)の立ち上がりにて、ts_MによるCRCチェックがOKの場合のみ、確定情報として取り扱う。   In other words, the slave device 7 receives the reception information, which is transmission information on the transmission path, by S / P conversion that operates at the falling edge of the transmission clock (CLK), and is reception information that is transmission information to the own device. Only the information is identified, and held from the S / P conversion to each register at the rising edge of the transmission clock (CLK). The slave device 7 identifies whether it is addressed to its own device at the MF timing specified by the transmission format and assigned to the own device. In addition, the slave device 7 performs the timing for holding the transmission information in each register at the corresponding MF timing and the corresponding TS timing. In addition, the slave device 7 handles the held transmission information as confirmed information only when the CRC check by ts_M is OK at the rising edge of the transmission clock (CLK) at the ts_M reception timing.

<効果の説明>
上記の説明から、マスター装置4とスレーブ装置7とがシリアルバス接続であって、マスター装置4とスレーブ装置7の伝送情報の伝送に用いる伝送フォーマットを1フレーム毎に1台のスレーブ装置7に対応させ、伝送路の占有調停を行うことにより、監視制御装置1は、伝送情報を確定するのに多くの時間を要しないと共に、ハードウェア等の回路構成のコストを削減し、伝送路の占有切替の回数を削減することができる。
<Description of effects>
From the above description, the master device 4 and the slave device 7 are connected by a serial bus, and the transmission format used for transmission of transmission information between the master device 4 and the slave device 7 corresponds to one slave device 7 for each frame. Thus, by performing transmission path occupation arbitration, the monitoring and control apparatus 1 does not require much time to determine transmission information, and the cost of circuit configuration such as hardware is reduced, and transmission path occupation switching is performed. The number of times can be reduced.

換言すれば、シリアルバス接続を前提とした通信であって、伝送帯域の割当を、スレーブ装置7毎にマルチフレーム単位で行うことにより、スレーブ装置7側で自機に受信した伝送情報を確定する時間を大幅に短縮することができると共に、伝送路の占有切替をマルチフレーム単位で行うことにより、伝送路の占有切替の回数を大幅に削減することができる。よって、監視制御装置1は、低コストで伝送効率の高い時分割多重伝送を実現することができる。   In other words, communication is based on serial bus connection, and transmission band allocation is performed in units of multiframes for each slave device 7, thereby determining transmission information received by the slave device 7 on its own device. The time can be significantly shortened, and the transmission channel occupation switching is performed in units of multiframes, whereby the transmission channel occupation switching frequency can be significantly reduced. Therefore, the supervisory control device 1 can realize time division multiplex transmission with low cost and high transmission efficiency.

また、伝送方式を下りTDM/上りTDMA方式とし、このうち、上りTDMA伝送については、スレーブ装置7側の送信デバイス57のイネーブルを制御することにより、シリアルバスのアービトレーション、すなわち、シリアルバスの占有調停が実行される。このことにより、接続構成は、マスター装置4を中心とした1対Nのシリアルバス接続、つまり、下り伝送はマルチドロップであって、上り伝送はマルチポイント接続で実現することができる。よって、マスター装置4の送信デバイス37及び受信デバイス35は、1対向分のみで伝送情報を伝送することができるため、監視制御装置1内の実装密度及びコスト等の負担を低減させることができる。   Also, the transmission method is a downlink TDM / uplink TDMA method, and for the uplink TDMA transmission, serial bus arbitration, that is, serial bus occupancy arbitration is performed by controlling the enable of the transmission device 57 on the slave device 7 side. Is executed. As a result, the connection configuration can be realized by a one-to-N serial bus connection centered on the master device 4, that is, downlink transmission is multidrop and uplink transmission is multipoint connection. Therefore, since the transmission device 37 and the reception device 35 of the master device 4 can transmit transmission information for only one facing, it is possible to reduce burdens such as mounting density and cost in the monitoring control device 1.

さらに、監視制御装置1は、タイムスロット毎に伝送路の占有切替を行う必要がなく、マルチフレーム単位で伝送路の占有切替を行えばよいため、スレーブ装置7の台数をN台と想定すると、伝送路の占有切替の回数を、全てのスレーブ装置7との伝送1周期中に、N回に低減させることができる。   Furthermore, since the monitoring and control apparatus 1 does not need to perform exclusive switching of the transmission path for each time slot, and only needs to perform exclusive switching of the transmission path in units of multiframes, assuming that the number of slave apparatuses 7 is N, The number of times of occupation switching of the transmission path can be reduced to N times during one transmission cycle with all the slave devices 7.

また、マルチフレーム単位で伝送路の占有切替を行えばよいということは、マルチフレームは、伝送同期信号(SYNC)を基準として伝送されるため、伝送路の占有切替を伝送同期信号(SYNC)に基づいて行うことができる。よって、監視制御装置1は、伝送路の占有切替のタイミング設計を容易にすることができる。   Also, since it is only necessary to switch the occupation of the transmission path in units of multi-frames, the multi-frame is transmitted with reference to the transmission synchronization signal (SYNC), so the occupation switching of the transmission path is changed to the transmission synchronization signal (SYNC). Can be done on the basis. Therefore, the supervisory control device 1 can facilitate the timing design of transmission line occupation switching.

以上のように、本実施の形態1では、1台のマスター装置4と、1台のマスター装置4との間で、各種伝送データを送受信する複数のスレーブ装置7と、を備え、1台のマスター装置4と、複数のスレーブ装置7と、がバス接続され、1台のマスター装置4及び複数のスレーブ装置7のそれぞれが、予め設定された伝送フォーマットに基づいて通信し、複数のスレーブ装置7が1台のマスター装置4に完全従属同期で動作する監視制御装置1において、各種伝送データは、伝送フォーマットに基づいて、予め設定されたタイムスロット毎に分割されて送信されるものであって、伝送フォーマットは、タイムスロットの複数スロットと、1つのフレームとを対応させ、1つのフレームと、複数のスレーブ装置7のうちの1台のスレーブ装置7とを対応させるものであって、1つのフレームは、一定間隔で発振される伝送クロックと、伝送クロックから生成される伝送同期信号と、で生成されるフレーム送信タイミングに基づいて、複数のスレーブ装置7の何れかから1台のマスター装置4に送信されることにより、伝送情報を確定するのに多くの時間を要しないと共に、ハードウェア等の回路構成のコストを削減し、伝送路の占有切替の回数を削減することができる。   As described above, the first embodiment includes one master device 4 and a plurality of slave devices 7 that transmit and receive various types of transmission data between one master device 4 and one master device 4. The master device 4 and a plurality of slave devices 7 are bus-connected, and each of the one master device 4 and the plurality of slave devices 7 communicates based on a preset transmission format, and the plurality of slave devices 7 In the supervisory control device 1 that operates in complete slave synchronization with one master device 4, various transmission data are divided and transmitted for each preset time slot based on the transmission format, The transmission format corresponds to a plurality of slots of time slots and one frame, and one frame and one slave device 7 among the plurality of slave devices 7 One frame is based on a frame transmission timing generated by a transmission clock oscillated at a constant interval and a transmission synchronization signal generated from the transmission clock. By transmitting from any one to the master device 4, it does not take much time to determine transmission information, and the cost of circuit configuration such as hardware is reduced, and the number of times of occupancy switching of the transmission path is reduced. Can be reduced.

よって、監視制御装置1は、低コストで伝送効率の高い時分割多重伝送を特に顕著に実現することができる。   Therefore, the supervisory control device 1 can realize the time division multiplex transmission with low cost and high transmission efficiency particularly remarkably.

また、本実施の形態1において、1台のマスター装置4は、複数のスレーブ装置7のそれぞれに各種伝送データを一斉に送信する送信部31と、複数のスレーブ装置7のそれぞれから各種伝送データを受信する受信部33と、送信部31及び受信部33のそれぞれの動作タイミングを生成するタイミング生成部21と、を備えることにより、下り伝送はマルチドロップであって、上り伝送はマルチポイント接続で実現することができる。   Further, in the first embodiment, one master device 4 transmits various transmission data from each of the plurality of slave devices 7 and a transmission unit 31 that simultaneously transmits various transmission data to each of the plurality of slave devices 7. By providing the receiving unit 33 for receiving and the timing generating unit 21 for generating the operation timing of each of the transmitting unit 31 and the receiving unit 33, downlink transmission is multidrop, and uplink transmission is realized by multipoint connection. can do.

よって、マスター装置4の送信デバイス37及び受信デバイス35は、1対向分のみで伝送情報を伝送することができるため、監視制御装置1内の実装密度及びコスト等の負担を特に顕著に低減させることができる。   Therefore, since the transmission device 37 and the reception device 35 of the master device 4 can transmit transmission information only for one opposing portion, the mounting density and cost in the monitoring control device 1 are particularly reduced significantly. Can do.

また、本実施の形態1において、複数のスレーブ装置7のそれぞれは、1台のマスター装置4から各種伝送データを受信する受信部51と、1台のマスター装置4に各種伝送データを順次送信する送信部53と、受信部51及び送信部53のそれぞれの動作タイミングを生成するタイミング生成部23と、を備えることにより、下り伝送はマルチドロップであって、上り伝送はマルチポイント接続で実現することができる。   In the first embodiment, each of the plurality of slave devices 7 sequentially transmits various transmission data to the receiving unit 51 that receives various transmission data from one master device 4 and one master device 4. By providing the transmission unit 53 and the timing generation unit 23 that generates the operation timings of the reception unit 51 and the transmission unit 53, the downlink transmission is multidrop and the uplink transmission is realized by multipoint connection. Can do.

よって、マスター装置4の送信デバイス37及び受信デバイス35は、1対向分のみで伝送情報を伝送することができるため、監視制御装置1内の実装密度及びコスト等の負担を特に顕著に低減させることができる。   Therefore, since the transmission device 37 and the reception device 35 of the master device 4 can transmit transmission information only for one opposing portion, the mounting density and cost in the monitoring control device 1 are particularly reduced significantly. Can do.

また、本実施の形態1において、複数のスレーブ装置7のそれぞれは、伝送同期信号及び伝送クロックに基づいて、バス接続で形成された伝送路の占有切替を行い、自機のスレーブ装置7の伝送路を占有したタイミングに応じて、1台のマスター装置4に各種伝送データを送信することにより、監視制御装置1は、タイムスロット毎に伝送路の占有切替を行う必要がなく、マルチフレーム単位で伝送路の占有切替を行えばよいため、スレーブ装置7の台数をN台と想定すると、伝送路の占有切替の回数を、全てのスレーブ装置7との伝送1周期中に、N回に低減させることができる。   In the first embodiment, each of the plurality of slave devices 7 performs occupation switching of the transmission path formed by the bus connection based on the transmission synchronization signal and the transmission clock, and transmits the slave device 7 of its own device. By transmitting various transmission data to one master device 4 according to the timing of occupying the path, the monitoring and control apparatus 1 does not need to switch the occupancy of the transmission path for each time slot, and in multiframe units. Since it is sufficient to perform transmission line occupation switching, assuming that the number of slave devices 7 is N, the number of transmission line occupation switching is reduced to N times during one transmission cycle with all slave devices 7. be able to.

つまり、マルチフレーム単位で伝送路の占有切替を行えばよいということは、マルチフレームは、SYNCを基準として伝送されるため、伝送路の占有切替をSYNCに基づいて行うことができる。よって、監視制御装置1は、伝送路の占有切替のタイミング設計を特に顕著に容易にすることができる。   In other words, the fact that the transmission path occupation switching may be performed in units of multi-frames means that the multi-frame is transmitted with reference to SYNC, so that the transmission path occupation switching can be performed based on SYNC. Therefore, the supervisory control device 1 can make the timing design of transmission line occupation switching particularly remarkably easy.

1、2、3 監視制御装置、4、5、6 マスター装置、7、8、9 スレーブ装置、10、11、12、13、101 カウンタ、21、23、121、123、221、223 タイミング生成部、31、53、131、153、231、253 送信部、33、51、133、151、233、251 受信部、35、55、135、155、235、255 受信デバイス、37、57、137、157、237、257 送信デバイス、41、67、141、167、241、267 MF多重部、43、65、143、165、243、265 TS挿入部、45、63、145、163、245、263 MF分解部、47、61、147、161、247、261 TS抽出部。   1, 2, 3 Monitoring and control device 4, 5, 6 Master device, 7, 8, 9 Slave device 10, 11, 12, 13, 101 Counter, 21, 23, 121, 123, 221, 223 Timing generator , 31, 53, 131, 153, 231, 253 Transmitter, 33, 51, 133, 151, 233, 251 Receiver, 35, 55, 135, 155, 235, 255 Receiving device, 37, 57, 137, 157 237, 257 Transmitting device, 41, 67, 141, 167, 241, 267 MF multiplexing unit, 43, 65, 143, 165, 243, 265 TS insertion unit, 45, 63, 145, 163, 245, 263 MF decomposition Part, 47, 61, 147, 161, 247, 261 TS extraction part.

Claims (4)

1台のマスター装置と、
前記1台のマスター装置との間で、各種伝送データを送受信する複数のスレーブ装置と、
を備え、
前記1台のマスター装置と、前記複数のスレーブ装置と、がバス接続され、
前記1台のマスター装置及び前記複数のスレーブ装置のそれぞれが、予め設定された伝送フォーマットに基づいて通信し、前記複数のスレーブ装置が前記1台のマスター装置に完全従属同期で動作する監視制御装置において、
前記各種伝送データは、
前記伝送フォーマットに基づいて、予め設定されたタイムスロット毎に分割されて送信されるものであって、
前記伝送フォーマットは、
前記タイムスロットの複数スロットと、1つのフレームとを対応させ、
前記1つのフレームと、前記複数のスレーブ装置のうちの1台のスレーブ装置とを対応させるものであって、
前記1つのフレームは、
一定間隔で発振される伝送クロックと、前記伝送クロックから生成される伝送同期信号と、で生成されるフレーム送信タイミングに基づいて、前記複数のスレーブ装置の何れかから前記1台のマスター装置に送信される
ことを特徴とする監視制御装置。
One master device,
A plurality of slave devices that transmit and receive various types of transmission data to and from the one master device;
With
The one master device and the plurality of slave devices are bus-connected,
Each of the one master device and the plurality of slave devices communicates based on a preset transmission format, and the plurality of slave devices operate in complete slave synchronization with the one master device. In
The various transmission data is
Based on the transmission format, it is divided and transmitted for each preset time slot,
The transmission format is
Associating a plurality of slots of the time slot with one frame,
The one frame is associated with one slave device among the plurality of slave devices,
The one frame is
Transmission from one of the plurality of slave devices to the one master device based on a frame transmission timing generated by a transmission clock oscillated at a constant interval and a transmission synchronization signal generated from the transmission clock. A monitoring and control device.
前記1台のマスター装置は、
前記複数のスレーブ装置のそれぞれに前記各種伝送データを一斉に送信するマスター側送信装置と、
前記複数のスレーブ装置のそれぞれから前記各種伝送データを受信するマスター側受信装置と、
前記マスター側送信装置及び前記マスター側受信装置のそれぞれの動作タイミングを生成するタイミング生成部と、
を備える
ことを特徴とする請求項1に記載の監視制御装置。
The one master device is
A master-side transmitting device that transmits the various transmission data to each of the plurality of slave devices at the same time;
A master-side receiving device that receives the various transmission data from each of the plurality of slave devices;
A timing generator for generating respective operation timings of the master-side transmitting device and the master-side receiving device;
The monitoring control apparatus according to claim 1, further comprising:
前記複数のスレーブ装置のそれぞれは、
前記1台のマスター装置から前記各種伝送データを受信するスレーブ側受信装置と、
前記1台のマスター装置に前記各種伝送データを順次送信するスレーブ側送信装置と、
前記スレーブ側受信装置及び前記スレーブ側送信装置のそれぞれの動作タイミングを生成するタイミング生成部と、
を備える
ことを特徴とする請求項1又は2に記載の監視制御装置。
Each of the plurality of slave devices is
A slave-side receiving device that receives the various transmission data from the one master device;
A slave-side transmitting device that sequentially transmits the various transmission data to the one master device;
A timing generator for generating respective operation timings of the slave-side receiving device and the slave-side transmitting device;
The monitoring control apparatus according to claim 1, further comprising:
前記複数のスレーブ装置のそれぞれは、
前記伝送同期信号及び前記伝送クロックに基づいて、前記バス接続で形成された伝送路の占有切替を行い、
自機のスレーブ装置の伝送路を占有したタイミングに応じて、前記1台のマスター装置に前記各種伝送データを送信する
ことを特徴とする請求項1〜3の何れか一項に記載の監視制御装置。
Each of the plurality of slave devices is
Based on the transmission synchronization signal and the transmission clock, switch occupation of the transmission path formed by the bus connection,
The monitoring control according to any one of claims 1 to 3, wherein the transmission data is transmitted to the one master device in accordance with a timing at which the transmission path of the slave device of the own device is occupied. apparatus.
JP2013108088A 2013-05-22 2013-05-22 Monitoring controller Pending JP2014230081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013108088A JP2014230081A (en) 2013-05-22 2013-05-22 Monitoring controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013108088A JP2014230081A (en) 2013-05-22 2013-05-22 Monitoring controller

Publications (1)

Publication Number Publication Date
JP2014230081A true JP2014230081A (en) 2014-12-08

Family

ID=52129561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013108088A Pending JP2014230081A (en) 2013-05-22 2013-05-22 Monitoring controller

Country Status (1)

Country Link
JP (1) JP2014230081A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019017056A (en) * 2017-07-05 2019-01-31 キーランド テクノロジー カンパニー リミテッド Synchronization method and apparatus based on industrial internet field layer broadband bus architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6152043A (en) * 1984-08-21 1986-03-14 Taiko Denki Seisakusho:Kk Synchronizing system of digital multiplex transmission system
JP2008035380A (en) * 2006-07-31 2008-02-14 Fujitsu Ltd Monitoring unit and monitored unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6152043A (en) * 1984-08-21 1986-03-14 Taiko Denki Seisakusho:Kk Synchronizing system of digital multiplex transmission system
JP2008035380A (en) * 2006-07-31 2008-02-14 Fujitsu Ltd Monitoring unit and monitored unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019017056A (en) * 2017-07-05 2019-01-31 キーランド テクノロジー カンパニー リミテッド Synchronization method and apparatus based on industrial internet field layer broadband bus architecture

Similar Documents

Publication Publication Date Title
US9742584B2 (en) Controller area network with flexible data-rate
US7460482B2 (en) Master-slave communications system and method for a network element
EP2634974B1 (en) Channel interleaved multiplexed databus
US10164785B2 (en) Method for implementing a real-time industrial internet field broadband bus
WO2016054245A1 (en) Confirming data accuracy in a distributed control system
JP2017098588A (en) Communication system, radio communication device, and radio communication method
US7843966B2 (en) Communication system for flexible use in different application scenarios in automation technology
EP4020889B1 (en) Frame processing method and device
US9319162B2 (en) Signal processor and communication device
US11947475B2 (en) Synchronized processing of process data and delayed transmission
JP2014230081A (en) Monitoring controller
US11258633B2 (en) Timestamp unit and communication control unit for a user station of a communication network
JP2018525753A5 (en)
CN112882979B (en) Communication system and method
CN115333895A (en) Method for determining data bus user equipment of local bus
EP4002770A1 (en) Serial time triggered data bus
JP2011055660A (en) Method for remotely monitoring digital protective relay system
EP3139545B1 (en) Communication interface apparatus
CN106998584B (en) Signal transmission method and device, and base station
JP7648957B2 (en) Control device, control method and program
JP2000115108A (en) Demultiplexer
EP3185485B1 (en) Communication system with train bus architecture
JP3508615B2 (en) No. Seven-signal level-2 multiplexer and level-2 multiplexer
EP1298867A1 (en) Master-slave communication system and method for a network element
JPS5880949A (en) Multiplex transmission system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170405

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170926