JPH0568043A - Check device for series controller - Google Patents

Check device for series controller

Info

Publication number
JPH0568043A
JPH0568043A JP22740991A JP22740991A JPH0568043A JP H0568043 A JPH0568043 A JP H0568043A JP 22740991 A JP22740991 A JP 22740991A JP 22740991 A JP22740991 A JP 22740991A JP H0568043 A JPH0568043 A JP H0568043A
Authority
JP
Japan
Prior art keywords
data
transmission
memory
signal
reception
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
JP22740991A
Other languages
Japanese (ja)
Inventor
Shin Takebe
慎 武部
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.)
Komatsu Ltd
Original Assignee
Komatsu 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 Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP22740991A priority Critical patent/JPH0568043A/en
Publication of JPH0568043A publication Critical patent/JPH0568043A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To simply and surely check an input data collation function or the like while an input data transmission priority function of a main controller (MC) is kept. CONSTITUTION:The check device 20 having a similar function to that of plural nodes connecting in a loop and implementing various checks for an MC 100 is provided with a personal computer 30 and an extension board EB having a reception function receiving transmission data from the MC 100 for implementing various checks and a transmission function to the MC 100 and mounted to the personal computer 30. In the input data collation function check of the MC 100, the check device 20 consecutively sends plural data frame signals whose data contents differ generated by the personal computer, receives the result of collation of the MC 100 to check the function by varying the number N of times of collation of the collation function. In the case of read of data in the check device, when the transmission of plural data frame signals is finished and the reception for setting the number of times is not finished, data for non-transmission blocks are kept being sent till the reception for the setting number of times is finished to avoid interruption.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はプレス、工作機械、建
設機械、船舶、航空機等の各種機械の集中管理システム
および無人搬送装置、無人倉庫等の集中管理システムに
採用して好適な直列制御装置に関し、特にメインコント
ローラおよび複数のノードを閉ループ状に直列接続し各
ノードにはそれぞれデータを出力する1乃至複数のセン
サ類とデータが入力される1乃至複数のアクチュエータ
類を接続するようにした直列制御装置において、前記メ
インコントローラの各種機能を検査するための直列制御
装置の検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for a centralized control system for various machines such as a press, a machine tool, a construction machine, a ship, and an aircraft, and an unmanned transfer apparatus, an unmanned warehouse, etc. With regard to the above, in particular, a main controller and a plurality of nodes are connected in series in a closed loop, and each node is connected to one or a plurality of sensors that output data and one or a plurality of actuators that input data. In a control device, the present invention relates to an inspection device of a serial control device for inspecting various functions of the main controller.

【0002】[0002]

【従来の技術】プレス、工作機械、建設機械、船舶、航
空機、無人搬送装置、無人倉庫等を集中管理する場合、
装置各部の状態を検出する多数のセンサおよび装置各部
の状態を制御する多数のアクチュエータが必要となる。
このセンサおよびアクチュエータの数は例えばプレスを
考えた場合3000以上にも及び、他の装置においては更に
多数となるものもある。
2. Description of the Related Art When centrally managing presses, machine tools, construction machines, ships, aircraft, unmanned conveyors, unmanned warehouses, etc.,
A large number of sensors for detecting the state of each part of the device and a large number of actuators for controlling the state of each part of the device are required.
The number of sensors and actuators is, for example, 3000 or more in the case of considering a press, and may be larger in other devices.

【0003】この種の装置を集中管理する集中管理シス
テムとして、図19に示すような直列制御装置が本出願
人により既に出願されている。この直列制御装置の主な
特徴は、ノードを直列に接続する構成をとりながらも各
ノードにアドレスを割当てるという発想を捨て、各ノー
ドをその接続の順番によって識別するようにし、これに
よってアドレス処理を不要にするとともにアドレス処理
に伴う時間遅れを解消し、更にはノードの構成を大幅に
簡略化できるようにした点である。
As a centralized management system for centrally managing this type of device, a serial control device as shown in FIG. 19 has already been filed by the present applicant. The main feature of this serial control device is that the concept of assigning an address to each node is abandoned even though the nodes are connected in series, and each node is identified by the order of its connection. This is because it is unnecessary and eliminates the time delay associated with address processing, and the node configuration can be greatly simplified.

【0004】図19の直列制御装置において、センサ群
1−1,1−2,…1−Nは機械の各部に配設され、機
械の各部の状態を検出するものである。アクチュエータ
群2−1,2−2,…2−Nは機械の各部に配設され、
機械の各部を駆動するものである。これらセンサ群1−
Nおよびアクチュエータ群2−Nはそれぞれノード10
−N(N=1〜N)に接続されており、これらノード1
0−1〜10−Nはメインコントローラ100を含んで
ループ状に直列接続されている。メインコントローラ1
00は接続された複数のノード10−1〜10−Nとの
データ授受制御を主に行うものである。ホストコントロ
ーラ200はこのシステムが搭載される機械(プレスな
ど)を統括的に制御するものであり、メインコントロー
ラ100の上位コントローラとなっている。また、ホス
トコントローラ200は各ノードへ送信するデータをメ
インコントローラ100へ送出すると共に、各ノードか
らの受信データをメインコントローラ100を介して受
信する動作を行なう。
In the serial controller of FIG. 19, sensor groups 1-1, 1-2, ... 1-N are arranged in each part of the machine and detect the state of each part of the machine. The actuator groups 2-1, 2-2, ... 2-N are arranged in various parts of the machine,
It drives various parts of the machine. These sensor groups 1-
N and the actuator group 2-N are node 10 respectively.
-N (N = 1 to N), and these node 1
0-1 to 10-N are connected in series in a loop including the main controller 100. Main controller 1
00 mainly controls data exchange with a plurality of connected nodes 10-1 to 10-N. The host controller 200 centrally controls a machine (press or the like) on which this system is mounted, and is a higher-level controller of the main controller 100. Also, the host controller 200 sends data to be sent to each node to the main controller 100, and also receives data received from each node via the main controller 100.

【0005】図20は、ノードの数Nを5とした場合の
当該システムで用いられるデータ信号のフレーム構成を
示すもので、このデータフレーム信号はメインコントロ
ーラ100から送出され、ノード10−1、10−2、
……10−Nを経由した後、メインコントローラ100
に戻される。なお、同図(a)はメインコントローラ1
00から出力された直後のデータフレーム信号を、同図
(b)、(c)、(d)、(e)はノード10−1、1
0−2、10−3、10−4から出力されるデータフレ
ーム信号を、同図(f)はノード10−5から出力され
る信号(N=5の場合はメインコントローラ100へ帰
還入力される信号)をそれぞれ示している。
FIG. 20 shows a frame structure of a data signal used in the system when the number N of nodes is 5, and this data frame signal is sent from the main controller 100 to the nodes 10-1 and 10. -2,
...... Main controller 100 after passing through 10-N
Returned to. Note that FIG. 1A shows the main controller 1
The data frame signal immediately after being output from 00 is shown in nodes (b), (c), (d) and (e) of FIG.
The data frame signals output from 0-2, 10-3, and 10-4 are input to the main controller 100 by feedback (in the case of N = 5, the signal output from the node 10-5 in FIG. Signals) respectively.

【0006】図20のフレーム構成における各信号の内
容は以下のとおりである。
The contents of each signal in the frame structure of FIG. 20 are as follows.

【0007】STI;入力データ(センサデータ)DI
の先頭位置を示す第1のスタートコード DI ;入力データ(センサデータ) DIq ;第q番目のノードに接続されたセンサからの入
力データ STO;出力データ(アクチュエータ駆動データ)の先
頭位置を示す第2のスタートコード DO ;出力データ(アクチュエータ駆動データ) DOq ;第q番目のノードに接続されたアクチュエータ
への出力データ SP ;データ列の終端位置を示すストップコード CRC;CRCチェックのためのCRCコード ERR;エラーの有無、エラー内容およびエラー位置を
示すコード、 図19に示した各ノード10−1〜10−Nでは、図2
0(b)〜(f)に示すように、スタートコードSTI
とスタートコードSTOの間に当該ノードに接続された
センサ1の検出データDIq を付加するとともに、スタ
ートコードSTOの後から当該ノードに接続されたアク
チュエータ2への出力データDOq を抜き取るよう動作
する。
STI: Input data (sensor data) DI
Start code DI indicating the start position of the input data (sensor data) DIq; input data from the sensor connected to the q-th node STO; second position indicating the start position of the output data (actuator drive data) Start code DO; Output data (actuator drive data) DOq; Output data SP to the actuator connected to the qth node SP; Stop code CRC indicating the end position of the data string CRC; CRC code for CRC check ERR; The presence / absence of an error, a code indicating an error content, and an error position, each node 10-1 to 10-N shown in FIG.
As shown in 0 (b) to (f), the start code STI
Between the start code STO and the start code STO, the detection data DIq of the sensor 1 connected to the node is added, and after the start code STO, the output data DOq to the actuator 2 connected to the node is extracted.

【0008】したがって、このシステムでは、メインコ
ントローラ100からノード10−1に対して図20
(a)に示すようなアクチュエータ制御データDOを含
むデータフレ−ム信号を送出すれば、このデータフレー
ム信号がノード10−1→ノード10−2→ノード10
−3→ノード10−4→10−5へと順次伝播されるこ
とにより上記データフレ−ム信号中のアクチュエータ制
御データDOが該当するノードへ割り振られるととも
に、各ノードで得たセンサ群の検出データが同データフ
レ−ム信号中へ取り込まれる。この結果、上記データフ
レ−ム信号がメインコントローラ100へ帰還されたと
きには、図20(f)に示すように、アクチュエータ制
御データDOは全てなくなり、センサ群の検出データが
同フレーム信号中に含まれることになる。
Therefore, in this system, the main controller 100 sends to the node 10-1 as shown in FIG.
If a data frame signal including the actuator control data DO as shown in (a) is transmitted, this data frame signal becomes node 10-1 → node 10-2 → node 10
-3 → node 10-4 → 10-5 is sequentially propagated to allocate the actuator control data DO in the data frame signal to the corresponding node, and the detection data of the sensor group obtained at each node. Are taken into the same data frame signal. As a result, when the data frame signal is fed back to the main controller 100, as shown in FIG. 20 (f), all the actuator control data DO disappears and the detection data of the sensor group is included in the same frame signal. It will be.

【0009】かかる構成において、メインコントローラ
100は前記送受信動作を自動的に実行するために主に
以下に列記する機能を有している。
In such a configuration, the main controller 100 mainly has the functions listed below in order to automatically execute the transmission / reception operation.

【0010】(1)データ長自動決定機能…電源立ち上
げ時に図21に示すようにデータフレーム信号中のアク
チュエータ制御データDOを全てオフ状態にした(DO
の長さは考えられる全アクチュエータ数より長い)初期
フレーム信号をノードへ送出し、送信した初期フレーム
信号中のアクチュエータデータの長さmと受信した初期
フレーム信号中のアクチュエータデータの長さL1(図
22参照)との差(m−L1)から出力点数(全アクチ
ュエータ数)を自動的に検出し、この検出値によって実
際に送るデータフレーム信号中のデータ長Ld(図20
参照)を決定する。また、受信した初期フレーム信号中
のセンサデータの長さlから入力点数(全センサ数)を
自動的に検出する。
(1) Automatic data length determination function: When the power is turned on, all the actuator control data DO in the data frame signal is turned off as shown in FIG. 21 (DO
Is longer than the total number of possible actuators) The initial frame signal is sent to the node, the length m of the actuator data in the transmitted initial frame signal and the length L1 of the actuator data in the received initial frame signal (Fig. 22), the number of output points (the total number of actuators) is automatically detected from the difference (m-L1), and the data length Ld (FIG.
Refer)). Further, the number of input points (the total number of sensors) is automatically detected from the length l of the sensor data in the received initial frame signal.

【0011】(2)サンプリングタイム自動決定機能…
前記受信した初期フレーム信号中のセンサデータの長さ
lから入力点数(全センサ数)を自動的に検出し、この
入力点数の検出値と前記検出した出力点数に応じてデー
タフレーム信号の送出周期T(サンプリングタイム)を
決定する(図22参照)。 (3)入出力点数の複数回照合機能…上記初期フレーム
を所定周期で何回も送出し検出した入出力点数が連続し
て所定回数同じで始めて真の入出力点数として採用す
る。ただし、受信初期フレーム信号中に伝送エラーが発
生している場合は無視し、前記照合のときの回数に入れ
ない。
(2) Automatic sampling time determination function ...
The number of input points (the total number of sensors) is automatically detected from the length 1 of the sensor data in the received initial frame signal, and the transmission cycle of the data frame signal is determined according to the detected value of the input points and the detected number of output points. T (sampling time) is determined (see FIG. 22). (3) Multiple input / output point matching function: The initial frame is sent many times in a predetermined cycle, and the detected input / output points are consecutively the same for a predetermined number of times to be adopted as the true input / output points. However, if a transmission error occurs in the received initial frame signal, it is ignored and it is not included in the number of times at the time of the collation.

【0012】(4)送信データフレーム信号作成機能…
前記初期フレーム信号の送出後、前記により(1)〜
(3)の機能を使ってデータ長Ldおよびサンプリング
タイムTが決定されると、ホストコントローラ200か
ら送られてきたアクチュエータ制御データに基ずき前記
図20に示したデータフレーム信号を自動的に形成し、
これをノードへ所定のサンプリング周期Tで送出する。
(4) Transmission data frame signal generation function ...
After the transmission of the initial frame signal, (1) to
When the data length Ld and the sampling time T are determined using the function (3), the data frame signal shown in FIG. 20 is automatically formed based on the actuator control data sent from the host controller 200. Then
This is sent to the node at a predetermined sampling period T.

【0013】(5)センサデータの複数回照合機能…前
記データフレーム信号を送出すると、ノードからセンサ
データを挿入したデータフレーム信号が送られてくるの
であるが、この受信したデータフレーム信号中のセンサ
データが連続して所定回数同じで始めて真のセンサデー
タとして採用する。ただし、受信データフレーム信号中
に伝送エラーが発生している場合は無視し、前記照合の
ときの回数に入れない。
(5) Multiple collation function of sensor data: When the data frame signal is transmitted, the data frame signal in which the sensor data is inserted is transmitted from the node. The sensor in the received data frame signal is transmitted. The data is continuously adopted the same number of times a predetermined number of times before being adopted as true sensor data. However, if a transmission error has occurred in the received data frame signal, it is ignored, and it is not included in the number of times of the above collation.

【0014】かかる機能を有するメインコントローラ1
00は図24に示すように構成されている。
Main controller 1 having such a function
00 is configured as shown in FIG.

【0015】すなわち、この場合メインコントローラ1
00は送信データフレーム信号を記憶するメモリと受信
データフレーム信号を記憶するメモリを送受信データメ
モリ1で共有している。すなわち、送受信データメモリ
11はデュアルポートメモリ(DPM)であり、一方の
ポートをホストコントローラ200のバスに接続し、他
方のポートをメインコントローラ100の送信装置12
及び受信装置13で共用するようにしており、この送受
信データメモリ11にノードへの送信データとノードか
らの受信データが記憶される。これら送信データおよび
受信データはアドレスバスの最上位1ビットの指定を区
別することで送受信データメモリ11の異なる記憶領域
に記憶されるようになっている。
That is, in this case, the main controller 1
The transmission / reception data memory 1 shares a memory for storing the transmission data frame signal and a memory for storing the reception data frame signal. That is, the transmission / reception data memory 11 is a dual port memory (DPM), one port is connected to the bus of the host controller 200, and the other port is connected to the transmission device 12 of the main controller 100.
It is also shared by the receiver 13 and the transmission / reception data memory 11 stores the transmission data to the node and the reception data from the node. The transmission data and the reception data are stored in different storage areas of the transmission / reception data memory 11 by distinguishing designation of the most significant 1 bit of the address bus.

【0016】送信を行う場合、ホストコントローラ20
0は所要のアクチュエータ駆動データを送受信データメ
モリ11に記憶する。送信装置12は、送受信データメ
モリ11に記憶された送信データに基づきスタートコー
ドなどを付加することにより図20に示したデータフレ
ーム信号を形成し、これをノードへ所定のサンプリング
周期Tで送信する。
When transmitting, the host controller 20
0 stores the required actuator drive data in the transmission / reception data memory 11. The transmitter 12 forms a data frame signal shown in FIG. 20 by adding a start code or the like based on the transmission data stored in the transmission / reception data memory 11, and transmits this to the node at a predetermined sampling period T.

【0017】受信の場合は、ノードからの受信データフ
レーム信号を一旦受信装置13内の受信メモリ14に記
憶し、この記憶データに対し受信装置処理回路15で前
述のセンサデータの複数回照合処理やエラーチェック処
理を加えた後、S/P変換器でシリアルパラレル変換を
行った後、送受信データメモリ11に記憶する。
In the case of reception, the reception data frame signal from the node is temporarily stored in the reception memory 14 in the reception device 13, and the stored data is collated by the reception device processing circuit 15 a plurality of times as described above. After the error check processing is added, serial / parallel conversion is performed by the S / P converter and then stored in the transmission / reception data memory 11.

【0018】なお、受信メモリ14はデータ幅が1ビッ
トのメモリ、送受信データメモリ11はデータ幅が8ビ
ットのメモリであり、受信メモリ14の出力データをS
/P変換して送受信データメモリ11に記憶するため、
受信メモリ14のアドレスバスABRの下位3ビット分
のデータが1バイトに相当し、このため受信メモリ14
の最下位から4ビット目が送受信データメモリ11の最
下位ビットに相当する。
The reception memory 14 is a memory having a data width of 1 bit, and the transmission / reception data memory 11 is a memory having a data width of 8 bits. The output data of the reception memory 14 is S
Since / P conversion is performed and stored in the transmission / reception data memory 11,
The data of the lower 3 bits of the address bus ABR of the receiving memory 14 corresponds to 1 byte.
The 4th bit from the least significant bit of is equivalent to the least significant bit of the transmission / reception data memory 11.

【0019】かかる構成においては、送受信データメモ
リ11の一方のポートをメインコントローラの送信側と
受信側とで共有しているために、データ送信タイミング
とデータ受信タイミングが重ならないように各ノードで
のデータ伝搬遅延時間を考慮してデータ送出間隔(サン
プリングタイム)を決定しているが、アクセスの衝突が
発生する場合に供えて、送信側(送受信データメモリ1
1からのデータ読み出し)のアクセスを受信側(送受信
データメモリ11へのデータ書き込み)に対して優先す
るようにしている。
In such a configuration, one port of the transmission / reception data memory 11 is shared by the transmission side and the reception side of the main controller, so that the data transmission timing and the data reception timing do not overlap in each node. The data transmission interval (sampling time) is determined in consideration of the data propagation delay time. However, in case an access collision occurs, the transmission side (transmission / reception data memory 1
The access of reading data from 1) is prioritized to the receiving side (writing of data to the transmission / reception data memory 11).

【0020】すなわち、メモリ制御回路17において
は、以下のような優先論理で回路が構成されている。
That is, in the memory control circuit 17, the circuit is configured with the following priority logic.

【0021】・送受信データメモリ11へのアクセスは
送信処理を優先とする。
For the access to the transmission / reception data memory 11, the transmission process is prioritized.

【0022】・受信処理の場合は送受信データメモリ1
1のデータバスの空きを確認した後送受信データメモリ
11にアクセスする。
Send / receive data memory 1 for reception processing
The transmission / reception data memory 11 is accessed after confirming that the data bus 1 is empty.

【0023】・受信処理(送受信データメモリ11への
書き込み)を行っているときに送信装置12から割り込
み信号INT(送信のサンプリング周期Tに同期して送
受信データメモリ11からデータを読み出す毎に割り込
み信号INTが出力される)が入力されると、上記受信
処理を中止し、割り込み終了後最初からやり直す。
An interrupt signal INT from the transmission device 12 (each time data is read from the transmission / reception data memory 11 in synchronization with the sampling cycle T of transmission) during reception processing (writing to the transmission / reception data memory 11). (INT is output) is input, the reception process is stopped, and the process is restarted from the beginning after the interruption is completed.

【0024】ところで、かかるメインコントローラ10
0の各種機能を故障発生時や出荷検査時等に検査するた
めの装置として、本発明者は平成2年12月28日付け
で「直列制御装置の検査装置」を出願した(特願平2ー
408756号)。
By the way, the main controller 10
As a device for inspecting various functions of No. 0 when a failure occurs or at the time of shipment inspection, the present inventor applied for “inspection device for serial controller” as of December 28, 1990 (Japanese Patent Application No. -408756).

【0025】この出願の発明によれば、図25に示すよ
うに、検査装置20をメインコントローラ100に接続
し、この検査装置20にメインコントローラ100から
の送信データを受信する機能と、メインコントローラ1
00に対して任意のメインコントローラ100の受信デ
ータを送信する機能などを搭載し、この部分で先の図1
9に示した直列制御装置の複数のノード10−1〜10
−Nで構成された部分を代用している。
According to the invention of this application, as shown in FIG. 25, the inspection device 20 is connected to the main controller 100, and the inspection device 20 has a function of receiving transmission data from the main controller 100 and the main controller 1.
00 is equipped with a function of transmitting the received data of any main controller 100, etc.
A plurality of nodes 10-1 to 10 of the serial controller shown in FIG.
The part composed of -N is substituted.

【0026】上記検査装置20を用いた検査では、例え
ば検査装置20からメインコントローラ100の前述し
た各種機能をチェックする為のデータをメインコントロ
ーラ100へ送出し、該データの受信によるメインコン
トローラ100の出力を例えばホストコントローラ20
0で調べることでメインコントローラ100の各種受信
機能が正常に動作しているか否かを確認すると共に、ホ
ストコントローラ200で適当なアクチュエータの制御
データを指定しこの指定によりメインコントローラ10
0で形成したデータフレーム信号を検査装置20で受信
しこの受信データがホストコントローラ200での指定
データと一致しているか否かを確認することでメインコ
ントローラ100の送信機能が正常に動作しているか否
かを検査する。
In the inspection using the inspection device 20, for example, the inspection device 20 sends data for checking the various functions of the main controller 100 to the main controller 100, and the output of the main controller 100 upon receiving the data. For example, the host controller 20
By checking with 0, it is confirmed whether the various receiving functions of the main controller 100 are operating normally, and the host controller 200 designates appropriate control data of the actuator, and the main controller 10 is designated by this designation.
Whether the transmission function of the main controller 100 is operating normally by receiving the data frame signal formed by 0 in the inspection device 20 and confirming whether this received data matches the designated data in the host controller 200. Inspect whether or not.

【0027】例えば、上記メインコントローラ100の
受信装置13の受信処理回路15で実行されるセンサデ
ータの複数回照合機能を検査するに当たっては、例えば
図26に示すように、異なるセンサデータ内容を有する
複数のデータフレーム信号が連続して送出され、かつこ
れら複数のデータフレーム信号から成る1グループのデ
ータフレーム信号が繰り返し送出されるようパソコン3
0によって検査装置20からの送信データを適宜設定す
る。ただし、上記複数のデータフレーム信号は入出力点
数が同じになるように設定する。また、上記複数のデー
タフレーム信号中には上記エラー発生の場合の機能を検
査するために、エラーが発生されるようなデータを適宜
混入しておく。
For example, in checking the multiple collation function of the sensor data executed by the reception processing circuit 15 of the receiving device 13 of the main controller 100, a plurality of sensors having different sensor data contents as shown in FIG. PC 3 so that the data frame signals of are continuously transmitted, and a group of data frame signals composed of the plurality of data frame signals are repeatedly transmitted.
The transmission data from the inspection device 20 is appropriately set by 0. However, the plurality of data frame signals are set so that the number of input / output points is the same. In addition, in order to inspect the function in the case where the error occurs, data that causes an error is appropriately mixed in the plurality of data frame signals.

【0028】メインコントローラ100では、受信され
たデータフレーム信号中のセンサデータをホストコント
ローラ200に伝送するようにしており、データフレー
ム信号中のセンサデータはホストコントローラ200で
観測することができる。
In the main controller 100, the sensor data in the received data frame signal is transmitted to the host controller 200, and the sensor data in the data frame signal can be observed by the host controller 200.

【0029】したがって、検査装置20の送信側から送
出された前記データフレーム信号をメインコントローラ
100で受信させ、ホストコントローラ200でセンサ
データを見ながら上記複数回照合機能の照合回数の設定
値Nを適宜変更する(メインコントローラに付設された
スイッチを操作することでNが変更される)ことにより
センサデータの複数回照合機能が正常に動作しているか
否かを確認する。
Therefore, the main controller 100 receives the data frame signal sent from the transmitting side of the inspection device 20, and the host controller 200 checks the sensor data and appropriately sets the setting value N of the number of times of verification of the multiple-time verification function. By changing (N is changed by operating the switch attached to the main controller), it is confirmed whether the multiple collation function of the sensor data is operating normally.

【0030】例えば、図26に示すような異なるデータ
内容を持つセンサデータを含む複数のデータフレーム信
号が連続して入力された場合、N=0と設定すると(照
合しない)、下位3ビットE0〜E2は0あるいは1に
固定されず不定状態にありそれ以外のビットが0に固定
されているとき上記センサデータの複数回照合機能が正
常に動作していると判断する。同様にN=1と設定する
と最下位ビットE0が1に固定され、E1、E2ビット
が不定状態にあり、それ以外のビットが0に固定されて
いるとき上記センサデータの複数回照合機能が正常に動
作していると判断する。また、N=3と設定すると、E
2ビットが1に固定され、E0、E1ビットがメインコ
ントローラ100内の受信メモリ(受信データを記憶す
るメモリ)の初期値に固定され、それ以外のビットが0
に固定されているとき上記センサデータの複数回照合機
能が正常に動作していると判断する。
For example, when a plurality of data frame signals including sensor data having different data contents as shown in FIG. 26 are continuously input, if N = 0 is set (no collation), the lower 3 bits E0 to E0 are set. When E2 is not fixed to 0 or 1 and is in an indefinite state and the other bits are fixed to 0, it is determined that the above-mentioned multiple collation function of sensor data is operating normally. Similarly, when N = 1 is set, the least significant bit E0 is fixed to 1, the E1 and E2 bits are in an undefined state, and the other bits are fixed to 0, the above-mentioned multiple collation function of sensor data is normal. It is determined to be working. If N = 3 is set, E
The 2 bits are fixed to 1, the E0 and E1 bits are fixed to the initial value of the reception memory (memory for storing reception data) in the main controller 100, and the other bits are 0.
When it is fixed to, it is judged that the above-mentioned multiple collation function of the sensor data is operating normally.

【0031】このようにしてセンサデータの複数回照合
機能を検査する。
In this way, the verification function of the sensor data is checked a plurality of times.

【0032】[0032]

【発明が解決しようとする課題】ところで、上記検査装
置20からデータをメインコントローラ100に送信し
て該送信データに基ずくメインコントローラ100の受
信処理内容をホストコントローラ200で確認しようと
した場合、このときメインコントローラ100の送信装
置12も当然動作しているので送信装置12はサンプリ
ングタイムTに対応して定期的に送信動作を行おうとす
るため、検査装置20から送信するデータの送信間隔を
適当に設定していたのでは、メインコントローラ100
の送受信データメモリ11のアクセスに衝突が発生する
可能性がある。そしてこの送受信データメモリ11の片
側ポートは前述したようにメインコントローラ100の
送信装置12及び受信装置13で共有しているために、
前述の送信側優先論理が組まれている。
By the way, when data is transmitted from the inspection device 20 to the main controller 100 and the reception processing contents of the main controller 100 based on the transmission data are to be confirmed by the host controller 200, At this time, since the transmitter 12 of the main controller 100 is also operating naturally, the transmitter 12 tries to perform the transmission operation periodically corresponding to the sampling time T. Therefore, the transmission interval of the data transmitted from the inspection device 20 is appropriately set. The main controller 100
There is a possibility that a collision will occur in the access to the transmission / reception data memory 11 of the above. Since one port of the transmission / reception data memory 11 is shared by the transmission device 12 and the reception device 13 of the main controller 100 as described above,
The transmission side priority logic described above is incorporated.

【0033】このため、前記検査装置20を用いた検査
の際、受信処理(送受信データメモリ11への書き込
み)の最中に送信側からの割り込みINTが発生して受
信処理が途中で途切れ、メインコントローラの検査が不
可能になることがあった。
Therefore, during the inspection using the inspection device 20, an interrupt INT is generated from the transmission side during the reception process (writing to the transmission / reception data memory 11), and the reception process is interrupted midway. Sometimes it was impossible to inspect the controller.

【0034】特に、前述のセンサデータの複数回照合機
能検査の際には、図25に示すように、異なるセンサデ
ータ内容を有する複数のデータフレーム信号を連続して
送出しなくてはいけないために、途中でデータが途切れ
ると誤検査をしてしまうという問題があった。
In particular, in the above-mentioned multiple verification function inspection of the sensor data, as shown in FIG. 25, a plurality of data frame signals having different sensor data contents must be continuously transmitted, so that However, there was a problem that if the data was interrupted on the way, erroneous inspection would be performed.

【0035】このため、従来においては、受信処理にか
かるメインコントローラ100の検査を行う際には、メ
インコントローラ100の送信側優先論理を変更し、送
受信データメモリ11を受信装置13のみが占有するメ
モリにして受信検査を行うようにしていた。
For this reason, in the conventional case, when the main controller 100 concerning the receiving process is inspected, the transmitting side priority logic of the main controller 100 is changed and the transmission / reception data memory 11 is occupied by the receiving device 13 only. I was trying to do a reception inspection.

【0036】しかしこのようなことでは、検査自体にも
問題があると共に、回路変更の手間がかかるという問題
があった。
However, in such a case, there are problems in the inspection itself and in that it takes time and effort to change the circuit.

【0037】また、上記メインコントローラ100の検
査の中に、図24に示した受信メモリ14のアドレスバ
スABR、送受信データメモリ11の送信装置12及び
受信装置13側のアドレスバスABM、及び送受信デー
タメモリ11のホストコントローラ200側のアドレス
バスABPの検査があるが、この検査を簡単に行うため
に従来は検査装置20から1バイト単位に全て同一のデ
ータを送り、送受信データメモリ11の全記憶エリアに
バイト単位に全て同一のデータが書き込まれるよう各メ
モリのアドレスを更新し、その後この送受信データメモ
リ11の全アドレスに同一データが書き込まれているか
否かをホストコントローラ200で確認することにより
各メモリのアドレスバスABR,ABM及びABPが正
常であるか否かを検査するようにしていた。
During the inspection of the main controller 100, the address bus ABR of the reception memory 14, the address bus ABM of the transmission device 12 and the reception device 13 of the transmission / reception data memory 11 and the transmission / reception data memory shown in FIG. There is a test of the address bus ABP on the side of the host controller 200 of No. 11, but in order to perform this test easily, conventionally, the same data is sent from the test device 20 in 1-byte units, and all the storage areas of the transmission / reception data memory 11 are sent. The address of each memory is updated so that all the same data is written in byte units, and then the host controller 200 confirms whether or not the same data is written in all the addresses of the transmission / reception data memory 11 to check the memory Whether the address buses ABR, ABM and ABP are normal It had to be 査.

【0038】しかし、このような検査では、送受信メモ
リ14のアドレスバスABRの一部にショートやオープ
ンなどの不良が発生しても、ホストコントローラ200
で確認すると正常と判定されることがあり、不良品を検
出できないことがあった。
However, in such inspection, even if a defect such as a short circuit or an open occurs in a part of the address bus ABR of the transmission / reception memory 14, the host controller 200
In some cases, the product was determined to be normal when checked with and the defective product could not be detected.

【0039】この発明はこのような事情に鑑みてなされ
たもので、メインコントローラの入力データ照合機能及
びアドレスバス異常検出を簡単、正確かつ高速になし得
る直列制御装置の検査装置を提供することを目的とす
る。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide an inspection device for a serial controller capable of performing the input data collating function of the main controller and the address bus abnormality detection easily, accurately and at high speed. To aim.

【0040】[0040]

【課題を解決するための手段及び作用】この発明では、
1乃至複数のセンサ及びアクチュエータを接続した複数
のノードをメインコントローラを含んでループ状に接続
し、前記メインコントローラは第1および第2の特殊コ
ードおよび前記アクチュエータへの出力データを含むデ
ータフレーム信号を所定周期で送出し、前記各ノードは
当該ノードに接続されたセンサからの入力データを前記
第1の特殊コードの後に付加し当該ノードに接続された
アクチュエータへの出力データを前記第2の特殊コード
の後から抜き取るようにするとともに、前記メインコン
トローラは前記複数のノードを介して受信したデータフ
レーム信号中の前記センサの入力データが連続してN回
一致したときに真の入力データとして採用する入力デー
タ照合機能を有し、さらに前記メインコントローラはデ
ータ受信中にデータ送信周期になるとデータ受信処理を
強制終了して処理をデータ送信処理に切り換えるデータ
送信優先機能を有する直列制御装置において、無送信区
間データを含む前記データフレーム信号の1周期分のデ
ータを複数種類記憶するメモリ手段と、このメモリ手段
の読出し開始アドレスをラッチする開始アドレスレジス
タと、前記メモリ手段の読出し終了アドレスをラッチす
る終了アドレスレジスタと、前記開始アドレスレジスタ
の出力が初期ロードされ、所定のクロック信号をカウン
トすることで前記初期ロードからのカウント動作を行な
い、このカウント出力を前記メモリ手段の読み出しアド
レスとして前記メモリ手段に出力する第1のカウンタ手
段と、この第1のカウンタ手段の出力と前記終了アドレ
スレジスタの出力を比較し、比較結果が一致する度に第
1の一致信号を出力する第1の比較手段と、前記メイン
コントローラからの受信フレームの個数をカウントする
第2のカウンタ手段と、同期処理用の受信フレームの個
数を設定する受信個数設定手段と、前記第2のカウンタ
手段の出力と前記受信個数設定手段の設定個数を比較
し、比較結果が一致する度に第2の一致信号を出力する
第2の比較手段と、前記メモリ手段の読み出しの際、複
数の異なる入力データ内容を持つデータフレーム信号が
連続して送信されるよう前記読み出し開始アドレスおよ
び読み出し終了アドレスを前記開始アドレスレジスタお
よび終了アドレスレジスタに設定する制御手段と、前記
メモリ手段の出力を前記メインコントローラに送信する
送信手段と、前記メモリ手段からの読みだしの際、前記
第1の比較手段から第1の一致信号が出力されたとき前
記第2の比較手段から第2の一致信号が出力されていな
い場合は前記第2の一致信号が出力されるまで所定の同
一アドレスのデータを前記メモリ手段から読みだすとと
もに、前記第2の一致信号が出力されると前記開始アド
レスからのデータ読みだしを再開させる第1の同期制御
手段と、前記前記第1の一致信号が出力されていない状
態のときに前記第2の一致信号が出力された場合、デー
タ読みだしを中断するとともに前記開始アドレスからの
データ読みだしを再開させる第2の同期制御手段とを有
する送信装置を具え、前記メインコントローラでの入力
データ照合結果を受信するとととともに、メインコント
ローラでの前記入力データ照合機能の照合回数Nを可変
しながら前記入力データ照合機能を検査するようにした
ことを特徴とする。
According to the present invention,
A plurality of nodes to which one or a plurality of sensors and actuators are connected are connected in a loop including a main controller, and the main controller outputs a data frame signal including first and second special codes and output data to the actuator. The data is sent at a predetermined cycle, and each node adds the input data from the sensor connected to the node after the first special code and outputs the output data to the actuator connected to the node with the second special code. The input that the main controller adopts as true input data when the input data of the sensor in the data frame signals received via the plurality of nodes match N times consecutively. It has a data collating function, and the main controller can also In a serial control device having a data transmission priority function of forcibly ending the data reception process and switching the process to the data transmission process at the transmission cycle, a plurality of types of data for one cycle of the data frame signal including non-transmission interval data are stored. Memory means, a start address register for latching the read start address of the memory means, an end address register for latching the read end address of the memory means, and the output of the start address register are initially loaded and a predetermined clock signal Counting operation to perform the counting operation from the initial load, and output the count output to the memory means as a read address of the memory means, and the output of the first counter means and the end. Compare the output of the address register and compare , A first comparing means for outputting a first coincidence signal each time, a second counter means for counting the number of received frames from the main controller, and a number of received frames for synchronization processing are set. The reception number setting means, second comparison means for comparing the output of the second counter means with the set number of the reception number setting means, and outputting a second coincidence signal each time the comparison result coincides, Control means for setting the read start address and the read end address in the start address register and the end address register so that data frame signals having a plurality of different input data contents are continuously transmitted when the memory means is read; Transmitting means for transmitting the output of the memory means to the main controller; and the first means for reading from the memory means. When the first comparing signal is output from the first comparing unit, if the second comparing signal is not output from the second comparing unit, the same predetermined address is output until the second matching signal is output. Data is read from the memory means, and when the second match signal is output, first synchronization control means for restarting data read from the start address and the first match signal are output. And a second synchronization control means for interrupting the data reading and restarting the data reading from the start address when the second coincidence signal is output in the non-operating state, While receiving the input data collation result in the main controller, the input data collation function in the main controller is varied while changing the input data collation count N. Characterized in that so as to check the data matching function.

【0041】かかる本発明によれば、メインコントロー
ラの入力データ照合機能の検査の際、検査装置からデー
タ内容の異なるデータフレーム信号を複数個連続してメ
インコントローラへ送出する。そして、前記メインコン
トローラでの入力データ照合結果を受信するとともに、
メインコントローラでの前記入力データ照合機能の照合
回数Nを可変しながら前記入力データ照合機能の検査を
行うのであるが、前記メモリ手段からのデータ読みだし
の際、複数個のデータフレーム信号の送出が1通り終了
した際、前記設定した回数個のデータフレーム信号の受
信が検査装置で終了していないときは、前記設定した回
数の受信が終了するまで例えば終了アドレスのデータを
送出することにより無送信区間のデータを送出し続け、
前記設定した回数の受信が終了した時点で前記送信動作
を最初のデータフレーム信号から再開する。従って検査
装置から送信されるデータが途中で途切れるといったこ
とがなくなり、前記入力データ照合機能の検査を誤検査
なく効率よくなし得る。
According to the present invention, when the input data collating function of the main controller is inspected, a plurality of data frame signals having different data contents are continuously transmitted from the inspection device to the main controller. Then, while receiving the input data comparison result in the main controller,
The input data collating function is inspected while changing the collation number N of the input data collating function in the main controller. However, when reading the data from the memory means, a plurality of data frame signals are transmitted. When the inspection device has not completed the reception of the set number of data frame signals at the end of one way, no data is transmitted by, for example, transmitting the data of the end address until the reception of the set number of times is completed. Continue sending the data of the section,
When the set number of receptions is completed, the transmission operation is restarted from the first data frame signal. Therefore, the data transmitted from the inspection device is not interrupted on the way, and the input data collating function can be efficiently inspected without erroneous inspection.

【0042】なお、前記複数個のデータフレーム信号の
送信が終了する前に前記メインコントローラからの設定
個数の受信が終了した場合は、前記複数個のデータフレ
ーム信号の送信を最初から再開するようにして、万一の
データ中断に供えるようにしている。
When the reception of the set number from the main controller is completed before the transmission of the plurality of data frame signals is completed, the transmission of the plurality of data frame signals is restarted from the beginning. In this way, we are prepared for data interruption.

【0043】またこの発明では、受信したシリアルデー
タを記憶する受信メモリを有する受信手段と、この受信
メモリのシリアルデータをシリアル/パラレル変換する
シリアル/パラレル変換手段と、前記シリアル/パラレ
ル変換された受信データが書き込まれると共に記憶され
たパラレルデータの送信データが読み出される送受信メ
モリと、送受信メモリから読み出されたデータをシリア
ルデータに変換して送出する送信手段とを有するメイン
コントローラと、前記送受信メモリに記憶する送信デー
タを前記メインコントローラへ出力するとともに前記送
受信メモリに書き込まれた受信データが入力されるホス
トコントローラとを具え、前記受信メモリのアドレスバ
ス、前記送受信メモリのホストコントローラ側のアドレ
スバスおよび前記送受信メモリの前記送信手段及び受信
手段側のアドレスバスの異常を検査する直列制御装置の
検査装置において、前記メインコントローラの送信手段
の送信データを受信すると共に前記メインコントローラ
の受信メモリへデータを送信する検査手段をメインコン
トローラへ接続すると共に、前記ホストコントローラか
らメインコントローラの送受信メモリの全てのアドレス
に同一データを書き込み、そのデータをメインコントロ
ーラの送信手段を介して検査装置に送信し、前記検査手
段で送受信メモリの全アドレスに同一データが書き込ま
れたか否かを検査する第1の検査と、検査手段からメイ
ンコントローラの受信メモリを介して送受信メモリへ同
一データを送信する事により送受信メモリの全アドレス
に同一データを書き込み、正常な書き込みが行われてい
るか否かをホストコントローラで検査する第2の検査
と、送受信メモリのアドレスバス中の1ビットだけが他
のビットとは異なる出力状態となるようなアドレスに対
して全て異なるデータが記憶されるよう検査手段からメ
インコントローラへデータを送信し、それらの記憶が正
常に行われているか否かをホストコントローラで検査す
る第3の検査とを実行し、前記第1、第2及び第3の検
査の検査結果に基ずき前記受信メモリのアドレスバス、
前記送受信メモリのホストコントローラ側のアドレスバ
スおよび前記送受信メモリの前記送信手段及び受信手段
側のアドレスバスのいずれで異常が発生ているかを検査
する様にしている。
Further, according to the present invention, the receiving means having the receiving memory for storing the received serial data, the serial / parallel converting means for converting the serial data in the receiving memory into serial / parallel, and the serial / parallel converted receiving. In the transmission / reception memory, there is provided a main controller having a transmission / reception memory in which transmission data of the stored parallel data is read while data is written, and transmission means for converting the data read out from the transmission / reception memory into serial data and transmitting the serial data. A host controller for outputting the stored transmission data to the main controller and receiving the reception data written in the transmission / reception memory, the address bus of the reception memory, the address bus on the host controller side of the transmission / reception memory, and the In an inspection device of a serial control device for inspecting an abnormality of the transmission means of the reception memory and the address bus on the reception means side, the transmission data of the transmission means of the main controller is received and the data is transmitted to the reception memory of the main controller. The inspection means is connected to the main controller, the same data is written from the host controller to all addresses of the transmission / reception memory of the main controller, the data is transmitted to the inspection device via the transmission means of the main controller, and the inspection means is used. A first check is performed to check whether the same data has been written to all addresses of the transmission / reception memory, and the same data is transmitted from the inspection means to the transmission / reception memory via the reception memory of the main controller so that all the addresses of the transmission / reception memory are Write the same data and write normally The second check, which is performed by the host controller to check whether or not the data is congested, and all different data for the address in which only one bit in the address bus of the transmission / reception memory has an output state different from other bits. Data is transmitted from the inspection means to the main controller so as to be stored, and a third inspection in which the host controller inspects whether or not the storage is normally performed is executed. The address bus of the receiving memory based on the inspection result of the third inspection,
It is arranged to check which of the address bus on the host controller side of the transmission / reception memory and the address bus on the transmission means / reception means side of the transmission / reception memory has an abnormality.

【0044】かかる本発明の構成によれば、前記第1〜
段3の検査を行い、その正常・異常の関係から前記3つ
のアドレスバスのどこがショートまたはオープンしてい
るかを判定する。
According to the configuration of the present invention as described above,
The inspection of the stage 3 is performed, and it is determined which of the three address buses is short-circuited or open based on the normal / abnormal relationship.

【0045】[0045]

【実施例】以下、この発明の実施例を添付図面にしたが
って詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

【0046】図2はこの発明の実施例の全体構成を示す
ものであり、メインコントローラ100の各種検査をす
る検査装置20は、パーソナルコンピュータ(パソコ
ン)30及びこのパソコン20に装填される拡張ボード
EBで構成されている。そして、この拡張ボードEBで
構成される部分にメインコントローラ100からの送信
データを受信して各種検査を行う受信機能と、メインコ
ントローラ100に対してメインコントローラ100の
受信データを送信する送信機能とを搭載するようにして
いる。メインコントローラ100の内部構成は先の図2
4に示した構成と同じである。
FIG. 2 shows the overall configuration of the embodiment of the present invention. An inspection apparatus 20 for performing various inspections of the main controller 100 is a personal computer (personal computer) 30 and an expansion board EB mounted on the personal computer 20. It is composed of. Then, a portion having the extension board EB has a reception function of receiving transmission data from the main controller 100 and performing various inspections, and a transmission function of transmitting the reception data of the main controller 100 to the main controller 100. I am trying to install it. The internal configuration of the main controller 100 is shown in FIG.
The configuration is the same as that shown in FIG.

【0047】図3は、検査装置20におけるデータ受信
側の構成(メインコントローラ100から送信するデー
タを受信する側)を示すものである。
FIG. 3 shows the configuration of the data receiving side of the inspection device 20 (the side that receives the data transmitted from the main controller 100).

【0048】図3において、メインコントローラ100
からの受信フレームは受信部61で受信される。受信部
61は、受信フレームを特殊コード検出部62、シフト
レジスタ67及びエラー検出部77に入力するととも
に、受信フレーム信号からクロック信号CKを形成し出
力する。
In FIG. 3, the main controller 100
The reception frame from is received by the receiving unit 61. The receiving unit 61 inputs the received frame to the special code detecting unit 62, the shift register 67, and the error detecting unit 77, and also forms and outputs a clock signal CK from the received frame signal.

【0049】特殊コード検出部62は、図20に示した
データフレーム信号中の第1スタートコードSTI、第
2スタートコードSTO、ストップコードSPなどを検
出し、第1スタートコード検出信号STI、第2スター
トコード検出信号STOおよびストップコード検出信号
SPを各回路に出力すると共に、データフレーム信号の
終端を検出し終端検出信号FEを出力する。
The special code detector 62 detects the first start code STI, the second start code STO, the stop code SP, etc. in the data frame signal shown in FIG. 20, and outputs the first start code detection signal STI and the second start code STI. The start code detection signal STO and the stop code detection signal SP are output to each circuit, the end of the data frame signal is detected, and the end detection signal FE is output.

【0050】出力点数カウンタ63は、第2スタートコ
ード検出信号STOが入力されてからストップコード検
出信号SPが入力されるまでのクロック信号CKの個数
を計数することで図20に示したデータフレーム信号中
のアクチュエータへの出力データDOのビット数を計数
して全アクチュエータ数(出力点数)を計数する。
The output point counter 63 counts the number of clock signals CK from the input of the second start code detection signal STO to the input of the stop code detection signal SP to thereby obtain the data frame signal shown in FIG. The total number of actuators (the number of output points) is counted by counting the number of bits of output data DO to the inside actuators.

【0051】無送信区間検出カウンタ64は、終端検出
信号FEが入力されてから第1スタートコード検出信号
STIが入力されるまでのクロック信号CKの個数を計
数することでデータフレーム信号とデータフレーム信号
との間の無送信区間t(図23参照)を計測する。
The non-transmission section detection counter 64 counts the number of clock signals CK from the input of the end detection signal FE to the input of the first start code detection signal STI, and thereby the data frame signal and the data frame signal. A non-transmission section t (see FIG. 23) between the and is measured.

【0052】なお、これら出力点数カウンタ63及び無
送信区間検出カウンタ64の測定値は、パソコン30の
指令によってデコーダ60から出力されるアウトプット
イネーブル信号OE1及びOE2を有効とすることによ
り、データバスDBを介してパソコン30に入力される
ようになっている。
The measured values of the output point counter 63 and the non-transmission section detection counter 64 are set to the data bus DB by activating the output enable signals OE1 and OE2 output from the decoder 60 in response to a command from the personal computer 30. It is designed to be input to the personal computer 30 via.

【0053】シフトレジスタ67はこの場合、8ビット
のシフトレジスタであり、受信部61で受信されたシリ
アルデータとしてのフレーム信号を入力とし、このフレ
ーム信号をクロック信号CKに同期してシフトする。比
較設定値レジスタ65も8ビットで構成され、この比較
設定値レジスタ65はパソコン30の指令によるデコー
ダ60の出力WPが入力されたとき、データバスDB上
のデータを書き込むよう動作する。
In this case, the shift register 67 is an 8-bit shift register, receives the frame signal as serial data received by the receiving unit 61, and shifts this frame signal in synchronization with the clock signal CK. The comparison setting value register 65 is also composed of 8 bits, and the comparison setting value register 65 operates so as to write the data on the data bus DB when the output WP of the decoder 60 according to the instruction of the personal computer 30 is input.

【0054】比較回路66は、シフトレジスタ67の並
列出力(8ビット)と比較設定値レジスタ65の設定デ
ータ(8ビット)とを比較し、8ビット中に1ビットで
も不一致のときに不一致信号EXSUMをHにする。
The comparison circuit 66 compares the parallel output (8 bits) of the shift register 67 with the setting data (8 bits) of the comparison setting value register 65, and when even one bit among the 8 bits does not match, the mismatch signal EXSUM. To H.

【0055】クロックイネーブル生成回路74には、第
2スタートコード検出信号STO、ストップ信号検出信
号SP及びクロック信号CKが入力され、STO信号か
らSP信号までの期間の間に8ビットごとにクロックイ
ネーブル信号CKE1を出力する。すなわち、図20の
データフレーム信号中のアクチュエータ出力データDO
の期間にのみ8ビットごとにクロックイネーブル信号C
KE1を出力する。
The second start code detection signal STO, the stop signal detection signal SP and the clock signal CK are input to the clock enable generation circuit 74, and the clock enable signal is output every 8 bits during the period from the STO signal to the SP signal. Outputs CKE1. That is, the actuator output data DO in the data frame signal of FIG.
Clock enable signal C every 8 bits only during
Output KE1.

【0056】フリップフロップ75は、第2スタートコ
ードSTOをクロック信号CKでラッチし、そのラッチ
出力をゲート76に出力する。すなわち、ゲート76に
は、フリップフロップ75によるSTO信号の検出出力
がフレーム信号が受信される度に出力される。また、ゲ
ート76には、デコーダ60からのライトパルス信号W
Pが入力される。したがって、ゲート76からは、フレ
ーム信号が受信される度にまたは比較設定値レジスタ6
5の設定データが書き替えられる度に信号が出力され
る。
The flip-flop 75 latches the second start code STO with the clock signal CK and outputs the latch output to the gate 76. That is, the detection output of the STO signal by the flip-flop 75 is output to the gate 76 each time the frame signal is received. Further, the gate 76 receives the write pulse signal W from the decoder 60.
P is input. Therefore, each time the frame signal is received from the gate 76 or the comparison set value register 6
A signal is output every time the setting data of 5 is rewritten.

【0057】ゲート68〜72及びフリップフロップ7
3による構成は1つのデータフレーム信号中に前記不一
致信号EXSUMが1回でも出力されると、この不一致
信号EXSUMを保持しておくための構成であり、1つ
のデータフレーム信号中に1ビットでも不一致がある場
合はCHKEND信号が出力される。このCHKEND
信号は前述したように、ゲート76によってフレーム信
号が受信される度にまたは比較設定値レジスタ65の設
定データが書き替えられる度にリセットされるため、1
つのフレーム信号の受信周期に同期して変化する信号で
ある。
Gates 68 to 72 and flip-flop 7
The configuration according to 3 is a configuration for holding the non-coincidence signal EXSUM even if the non-coincidence signal EXSUM is output even once in one data frame signal, and even one bit does not coincide in one data frame signal. If there is, the CHKEND signal is output. This CHKEND
As described above, the signal is reset each time the frame signal is received by the gate 76 or each time the setting data of the comparison setting value register 65 is rewritten.
It is a signal that changes in synchronization with the reception cycle of one frame signal.

【0058】エラー検出部77は、CRCチェック等に
より受信部61で受信したデータフレーム信号の伝送エ
ラーを検出し、エラーを検出した場合はエラー検出信号
DTERRをHにする。ゲート78はエラー検出信号D
TERRの反転信号とフレームエンド信号FEのアンド
をとり、アンド結果を出力する。したがって、ゲート7
8の出力は、エラーが検出されずにかつフレームエンド
信号FEが入力されたときにHになる。
The error detector 77 detects a transmission error of the data frame signal received by the receiver 61 by CRC check or the like, and when it detects an error, sets the error detection signal DTERR to H. The gate 78 has an error detection signal D
The AND signal of the inverted signal of TERR and the frame end signal FE is taken and the AND result is output. Therefore, gate 7
The output of 8 becomes H when no error is detected and the frame end signal FE is input.

【0059】したがって、前記CHKEND信号は1デ
ータフレーム中に伝送エラーが検出されないときに、ゲ
ート79〜82、フリップフロップ83及びオアゲート
85による構成に取り込まれる。また、フリップフロッ
プ83の出力CHGDTは前記ライトパルス信号WPに
よってリセットされるため、フリップフロップ83の出
力CHGDTは、比較設定値レジスタ65の設定データ
が書き替えられるまでのフレーム信号の複数周期に対応
する期間において、伝送エラーが発生していないときの
フレーム信号中に1ビットでも前記比較設定値レジスタ
65の設定データとの不一致が発生したときにHにな
る。この不一致信号CHGDTはデコーダ60の出力B
ENをイネーブルとすることで3状態バッファ84を介
してパソコン30に入力され、パソコン30で観測する
ことができる。
Therefore, the CHKEND signal is taken into the configuration of the gates 79 to 82, the flip-flop 83 and the OR gate 85 when no transmission error is detected in one data frame. Further, since the output CHGDT of the flip-flop 83 is reset by the write pulse signal WP, the output CHGDT of the flip-flop 83 corresponds to a plurality of cycles of the frame signal until the setting data of the comparison setting value register 65 is rewritten. During the period, even if even 1 bit in the frame signal when the transmission error does not occur, it becomes H when the mismatch with the setting data of the comparison setting value register 65 occurs. This mismatch signal CHGDT is the output B of the decoder 60.
When EN is enabled, the data is input to the personal computer 30 via the three-state buffer 84 and can be observed by the personal computer 30.

【0060】図4及び図5は、検査装置20におけるデ
ータ送信側の構成(メインコントローラ100で受信す
るデータを送信する側)を示すものである。この図4及
び図5に示す構成は、パソコン30によって送信メモリ
44(バックアップ電源によりバックアップされてい
る)に送信するデータフレーム信号を形成するためのデ
ータを書き込むとともに、送信メモリ44に書き込まれ
たデータを読み出して任意のフレーム信号を任意の周期
でメインコントローラ100に送信するものである。
4 and 5 show the configuration of the data transmission side in the inspection device 20 (the side that transmits the data received by the main controller 100). The configuration shown in FIGS. 4 and 5 is such that the data for forming the data frame signal to be transmitted to the transmission memory 44 (backed up by the backup power supply) by the personal computer 30 is written and the data written in the transmission memory 44 is written. Is read out and an arbitrary frame signal is transmitted to the main controller 100 at an arbitrary cycle.

【0061】ここで、この送信側の構成においては、パ
ソコン30により以下の2つの送信モードを選択できる
ようになっている。
Here, in the configuration on the transmission side, the following two transmission modes can be selected by the personal computer 30.

【0062】・同期モード…第1のモードは同期モード
であり、この同期モードにおいては検査装置20からメ
インコントローラ100へデータフレーム信号を送信す
る際に、メインコントローラ100からのデータフレー
ム信号が予め設定した所定個数(n)だけ検査装置20
に受信される度に、送信データフレーム信号の同期をと
るようにしている。すなわち、この同期モードにおいて
は送信データフレーム信号を送信している途中に、メイ
ンコントローラ100からのデータフレーム信号がn個
受信されたことが検出されると、送信データフレーム信
号の送信を最初からやり直すようにしている。また、デ
ータフレーム信号の送信が終了した後には、メインコン
トローラ100からのデータフレーム信号がn個受信さ
れたことが検出された後に、次のデータフレーム信号の
送信を開始する様にしている。
Synchronous mode ... The first mode is a synchronous mode. In this synchronous mode, when the data frame signal is transmitted from the inspection device 20 to the main controller 100, the data frame signal from the main controller 100 is preset. The inspection device 20 by the predetermined number (n)
Each time it is received, the transmission data frame signal is synchronized. That is, when it is detected that n data frame signals from the main controller 100 have been received while transmitting the transmission data frame signal in this synchronous mode, the transmission of the transmission data frame signal is restarted from the beginning. I am trying. In addition, after the transmission of the data frame signal is completed, the transmission of the next data frame signal is started after it is detected that n data frame signals have been received from the main controller 100.

【0063】・非同期モード…上記の同期処理を行わな
いモードであり、検査装置20における送信動作は受信
動作に全く関係なく実行される。
Asynchronous mode: a mode in which the above-mentioned synchronous processing is not performed, and the transmission operation in the inspection device 20 is executed regardless of the reception operation.

【0064】パソコン30は上記の同期モードを実行す
るときは、図6に示すように、パソコン30のデータバ
スDBの下位8ビットDB0〜DB7中のDB7ビットを
“1”にすると共に(非同期モードのときはDB7ビッ
トは“0”)、DB0〜DB6に上記同期処理を行う受信
データフレーム信号の個数nを設定する。また、上記デ
ータバスDBの下8ビットDB0〜DB7に上記設定を行
って同期モードを実行させるときには、パソコン30は
所定の制御データを出力する事によりデコーダ31から
同期モード開始信号STSYNを出力させる。
When the personal computer 30 executes the above synchronous mode, as shown in FIG. 6, the DB7 bit in the lower 8 bits DB0 to DB7 of the data bus DB of the personal computer 30 is set to "1" (asynchronous mode). In this case, the DB7 bit is "0"), and the number n of received data frame signals to be subjected to the above synchronization processing is set in DB0 to DB6. When the lower 8 bits DB0 to DB7 of the data bus DB are set to perform the synchronous mode, the personal computer 30 outputs predetermined control data to cause the decoder 31 to output the synchronous mode start signal STSYN.

【0065】すなわち、この同期モード開始信号STS
YNがデコーダ31から出力されると、この信号STS
YNにより設定回数nがデータバスDB0〜DB6を介し
て図5の第1段目の設定回数レジスタ101に取り込ま
れると共に、同期モード識別ビットDB7がフリップフ
ロップ104にラッチされる。
That is, this synchronous mode start signal STS
When YN is output from the decoder 31, this signal STS
The set number n by YN is taken into the set number register 101 of the first stage of FIG. 5 via the data buses DB0 to DB6, and the synchronous mode identification bit DB7 is latched by the flip-flop 104.

【0066】次に、図4の送信メモリ44に記憶される
データフレーム信号形成用のデータを図7に示す。すな
わち、図7において、最初の記憶領域には或るデータパ
ターンを有するデータフレーム信号Aとこのデータフレ
ーム信号Aの無送信区間を決定する無送信区間データ
(全てのビットを1にしている、図23のt)Aが記憶
され、第2番目の記憶領域には前記データフレーム信号
AとはデータDO(図20参照)などの内容またはデー
タ長を異ならせたデータフレーム信号Bとこのデータフ
レーム信号Bの無送信区間を決定する無送信区間データ
(全てのビットを1にしている)Bが記憶され、以下同
様にこれらデータフレーム信号A、Bとは異なるデータ
パターンのデータフレーム信号C、D、E、…とこれら
データフレーム信号C、D、E、の無送信区間を決定す
る無送信区間データC、D、E、…がペアで各記憶領域
に順次記憶されている。
Next, FIG. 7 shows data for forming a data frame signal stored in the transmission memory 44 of FIG. That is, in FIG. 7, a data frame signal A having a certain data pattern in the first storage area and non-transmission section data for determining a non-transmission section of the data frame signal A (all bits are set to 1 23 t) A is stored, and the data frame signal B and the data frame signal B in which the contents or data length of the data DO (see FIG. 20) and the like are different from the data frame signal A in the second storage area. Non-transmission period data (all bits are set to 1) B for determining the non-transmission period of B are stored, and similarly, data frame signals C, D, and B having different data patterns from those of the data frame signals A and B are stored. , And non-transmission interval data C, D, E, ... Which determine the non-transmission interval of these data frame signals C, D, E are sequentially stored in pairs in each storage area. There.

【0067】この様に、送信メモリ44には、複数の異
なるデータパターンおよび無送信区間データがそれぞれ
1周期分のみ記憶されている。
As described above, the transmission memory 44 stores a plurality of different data patterns and non-transmission section data for only one cycle each.

【0068】したがって、この送信メモリ44の記憶デ
ータを読み出す際、例えば読み出しの際のスタートアド
レスを図7のSTAに指定するとともにエンドアドレス
を図7のEDAに指定するとアドレスSTAからアドレ
スEDAまでのアドレス区間が何回も繰り返し指定され
るので、記憶データが1周期分であるにもかかわらず先
の図23に示したような複数周期分のデータフレーム信
号Aを送出することができる。
Therefore, when the stored data in the transmission memory 44 is read, for example, when the start address at the time of reading is designated in the STA of FIG. 7 and the end address is designated in the EDA of FIG. 7, the address from the address STA to the address EDA Since the section is repeatedly specified, the data frame signal A for a plurality of cycles as shown in FIG. 23 can be transmitted even though the stored data is for one cycle.

【0069】また、同様にしてスタートアドレスを図7
のSTAに指定しエンドアドレスを図7のEDBに指定
するようにすれば、図8に示すように、データフレーム
信号Aおよびデータフレーム信号Bを交互に送信するこ
とができる。
Similarly, the start address is set as shown in FIG.
7 and the end address is specified in the EDB of FIG. 7, the data frame signal A and the data frame signal B can be transmitted alternately as shown in FIG.

【0070】次に図4において、レジスタ45および3
状態バッファ46はパソコン30から送信データを送信
メモリ44に書き込むための構成であり、書き込みを行
なう際はまずパソコン30によりコントロールバスCB
に所定の制御データを出力してデコーダ31から書き込
みイネーブル(ライト)信号Wを出力させるとともに、
データバスDBに送信メモリ44のアドレスを送出す
る。これにより、レジスタ45に送信メモリ44のアド
レスが書き込まれる。次に、パソコン30からコントロ
ールバスCBを介して所定の制御データを出力してデコ
ーダ31からOE1信号、OE2信号および送信メモリ
44へのライトパルス信号(図示せず)を出力させるこ
とで3状態バッファ46および47を出力可能状態とす
ると共に、データバスDBに対し先にレジスタ45へ出
力したアドレスに書き込むべき送信データを送出する。
この結果、レジスタ45にラッチされたアドレスが3状
態バッファ46を介して送信メモリ44のアドレス端子
に印加されるとともに、送信データが3状態バッファ4
7を介して送信メモリ44のデータ端子に加えられ、送
信メモリ44に対するデータ書き込みが行われる。
Next, referring to FIG. 4, registers 45 and 3
The status buffer 46 is configured to write the transmission data from the personal computer 30 to the transmission memory 44. When writing, the personal computer 30 first controls the control bus CB.
To output a write enable (write) signal W from the decoder 31 and output predetermined control data to
The address of the transmission memory 44 is sent to the data bus DB. As a result, the address of the transmission memory 44 is written in the register 45. Next, by outputting predetermined control data from the personal computer 30 via the control bus CB and causing the decoder 31 to output the OE1 signal, the OE2 signal and the write pulse signal (not shown) to the transmission memory 44, the three-state buffer. 46 and 47 are set to the output enable state, and the transmission data to be written to the address previously output to the register 45 is sent to the data bus DB.
As a result, the address latched in the register 45 is applied to the address terminal of the transmission memory 44 through the 3-state buffer 46, and the transmission data is transmitted in the 3-state buffer 4.
7 to the data terminal of the transmission memory 44, and data writing to the transmission memory 44 is performed.

【0071】この様な動作を、送信メモリのアドレスを
1つずつ更新しながら繰り返し実行することで図7に示
したようなデータを送信メモリ44に予め書き込んでお
く。送信メモリ44に書き込まれたデータを読み出す際
は、パソコン30により送信すべきデータフレーム信号
に対応する送信メモリ44のスタートアドレスSAおよ
びエンドアドレスEAをそれぞれ第1段目のスタートア
ドレスレジスタ40およびエンドアドレスレジスタ36
に書き込む。すなわち、パソコン30によりまずデコー
ダ31からスタートアドレスレジスタ40のライト信号
WSを出力させデータバスDBにスタートアドレスSA
を送出させることで、スタートアドレスSAをスタート
アドレスレジスタ40に書き込む。次に、パソコン30
によりデコーダ31からエンドアドレスレジスタ36の
ライト信号WEを出力させデータバスDBにエンドアド
レスEAを送出させることで、エンドアドレスEAをエ
ンドアドレスレジスタ36に書き込む。また、この際、
パソコン30によって送信メモリ44をリード状態にす
る。
By repeating the above operation while updating the addresses of the transmission memory one by one, the data shown in FIG. 7 is written in the transmission memory 44 in advance. When reading the data written in the transmission memory 44, the start address SA and the end address EA of the transmission memory 44 corresponding to the data frame signal to be transmitted by the personal computer 30 are set to the start address register 40 and the end address of the first stage, respectively. Register 36
Write in. That is, the personal computer 30 first outputs the write signal WS of the start address register 40 from the decoder 31 to cause the start address SA on the data bus DB.
Is transmitted, the start address SA is written in the start address register 40. Next, personal computer 30
Thus, the write signal WE of the end address register 36 is output from the decoder 31 and the end address EA is sent to the data bus DB, so that the end address EA is written in the end address register 36. Also, at this time,
The transmission memory 44 is set to the read state by the personal computer 30.

【0072】また、上記ライト信号WEは図5の第2段
目の設定回数レジスタ102及びフリップフロップ10
5に入力され、これによりエンドアドレスEAがエンド
アドレスレジスタ36に入力されたときに設定回数n及
び同期モード識別ビットDB7が第1段目の設定回数レ
ジスタ101及びフリップフロップ104から第2段目
の設定回数レジスタ102及びフリップフロップ105
に転送される。
The write signal WE is the set count register 102 and the flip-flop 10 in the second stage of FIG.
5, when the end address EA is input to the end address register 36, the set number n and the synchronization mode identification bit DB7 are input from the first stage set number register 101 and the flip-flop 104 to the second stage. Set count register 102 and flip-flop 105
Transferred to.

【0073】図4の2段目のスタートアドレスレジスタ
41及びエンドアドレスレジスタ37は、第1段目のス
タートアドレスレジスタ40およびエンドアドレスレジ
スタ36に書き込まれたデータが転送されるものである
が、このデータ転送は3つのフリップフロップ32〜3
4およびアンドゲート35で構成されるデータ転送制御
部50から出力される転送イネーブル信号CKEによっ
て制御される。
The data written in the start address register 40 and the end address register 36 of the first stage are transferred to the start address register 41 and the end address register 37 of the second stage of FIG. Data transfer is performed by three flip-flops 32 to 3
4 and an AND gate 35 to control the transfer enable signal CKE output from the data transfer control unit 50.

【0074】データ転送制御部50は、D端子がハイク
ランプされクロック端子にWE信号が入力されているフ
リップフロップ32、フリップフロップ33、34及び
アンドゲート35で構成されている。STALOAD信
号とフリップフロップ33の出力の論理積で構成される
転送イネーブル信号CKEは、WE信号が出力された後
最初の1発目のSTALOAD信号が出力されたときに
のみHになり(フリップフロップ34によりフリップフ
ロップ32の出力がリセットされるため)、このときに
第1段目のスタートアドレスレジスタ40およびエンド
アドレスレジスタ36に書き込まれたデータを2段目の
スタートアドレスレジスタ41及びエンドアドレスレジ
スタ37に転送する。このように、パソコン30側から
出力されるライト信号WEにSTALOAD信号をかま
せることで転送イネーブル信号CKEを構成することに
より2段目のスタートアドレスレジスタ41及びエンド
アドレスレジスタ37への転送タイミングを検査装置2
0内の回路に同期させるようにしている。
The data transfer control section 50 is composed of flip-flops 32, flip-flops 33 and 34, and an AND gate 35 whose D terminal is high clamped and a WE signal is input to the clock terminal. The transfer enable signal CKE formed by the logical product of the STALOAD signal and the output of the flip-flop 33 becomes H only when the first STALOAD signal is output after the WE signal is output (the flip-flop 34 Because the output of the flip-flop 32 is reset by this), the data written in the start address register 40 and the end address register 36 of the first stage at this time are stored in the start address register 41 and the end address register 37 of the second stage. Forward. In this way, the transfer timing to the start address register 41 and the end address register 37 of the second stage is inspected by forming the transfer enable signal CKE by biting the STALOAD signal to the write signal WE output from the personal computer 30 side. Device 2
It is synchronized with the circuit within 0.

【0075】ローダブルカウンタ42はスタートアドレ
スレジスタ41に書き込まれたスタートアドレスSAを
初期ロード信号SAME1のタイミングで初期ロードす
るとともに、この初期設定されたスタートアドレスから
クロック信号CKに同期したカウント動作を行い、その
カウント値を3状態バッファ43を介して送信メモリ4
4のアドレス端子に印加することにより送信メモリ44
からのデータ読み出しを実行する。ただし、クロック信
号CKはクロックイネーブル信号COUNTEN1がH
になっているときにのみ有効となる。
The loadable counter 42 initially loads the start address SA written in the start address register 41 at the timing of the initial load signal SAME1 and performs a counting operation in synchronization with the clock signal CK from the initially set start address. , The count value is sent to the transmission memory 4 via the 3-state buffer 43.
4 is applied to the address terminal of the transmission memory 44.
Read data from. However, as for the clock signal CK, the clock enable signal COUNTEN1 is at H level.
Is valid only when is set.

【0076】送信メモリから読み出されたデータは、P
/S変換器48でパラレル/シリアル変換が行われた
後、送信部49を介してメインコントローラ100に送
信される。
The data read from the transmission memory is P
After the parallel / serial conversion is performed by the / S converter 48, the data is transmitted to the main controller 100 via the transmitter 49.

【0077】一方、ローダブルカウンタ42の出力は比
較回路38にも入力されている。比較回路38は、エン
ドアドレスレジスタ37の出力とローダブルカウンタ4
2の出力を比較し、両者が一致すると一致信号SAME
を図5のオアゲート120及びアンドゲート118に出
力する。
On the other hand, the output of the loadable counter 42 is also input to the comparison circuit 38. The comparison circuit 38 outputs the output of the end address register 37 and the loadable counter 4
When the two outputs are compared and they match, a match signal SAME
Is output to the OR gate 120 and the AND gate 118 in FIG.

【0078】次に、図5において、受信部61は先の図
3に示したものと同じであり、メインコントローラ10
0からのデータフレーム信号を受信する。STI検出回
路62´は、先の図3に示した特殊コード検出部62の
STI検出部分のみを抽出して示したものであり、図2
0に示したデータフレーム信号中の第1のスタートコー
ドSTIを検出し、その検出信号FRSTDTECTを
受信フレームカウンタ109のクロック端子に印加す
る。
Next, in FIG. 5, the receiving section 61 is the same as that shown in FIG.
Receive a data frame signal from 0. The STI detection circuit 62 'is shown by extracting only the STI detection portion of the special code detection unit 62 shown in FIG.
The first start code STI in the data frame signal indicated by 0 is detected, and the detection signal FRSTDTECT is applied to the clock terminal of the reception frame counter 109.

【0079】受信フレームカウンタ109はSTI検出
回路の検出信号FRSTDTECTをカウントし、その
カウント値を比較回路108に入力する。
The reception frame counter 109 counts the detection signal FRSTDTECT of the STI detection circuit and inputs the count value to the comparison circuit 108.

【0080】比較回路108は3段目の設定回数レジス
タ103に設定された前記受信データフレーム信号の設
定個数nと受信フレームカウンタ109のカウント値を
比較し、両者が一致したときに一致信号FRSTOKを
出力する。
The comparison circuit 108 compares the set number n of the received data frame signals set in the third stage set count register 103 with the count value of the received frame counter 109, and when both match, a match signal FRSTOK is given. Output.

【0081】なお、第3段目の設定回数レジスタ103
及びフリップフロップ106には、フリップフロップ1
24から出力されるSAME1信号のタイミングで2段
目の設定回数レジスタ102およびフリップフロップ1
05から各データが転送される。
The third stage setting count register 103
And the flip-flop 106 includes the flip-flop 1
At the timing of the SAME1 signal output from 24, the second stage setting count register 102 and the flip-flop 1
Each data is transferred from 05.

【0082】セレクタ131は、アンドゲート117、
118及びオアゲート119からなる構成により比較回
路108から出力される一致信号FRSTOK及び比較
回路38から出力される一致信号SAMEをフリップフ
ロップ106の出力STMODにより選択するものであ
り、基本的にはSTMOD信号がHのとき(同期モード
のとき)にはFRSTOK信号を選択し、STMOD信
号がLのとき(非同期モードのとき)にはSAME信号
を選択する。すなわち、セレクタ131の出力STAL
OAD信号は、基本的には、非同期モードのときにはロ
ーダブルカウンタ42の出力がエンドアドレスEAに一
致する度にHになり、また同期モードのときはメインコ
ントローラ100からのデータフレーム信号の受信個数
が設定値nに一致する度にHになる。
The selector 131 includes an AND gate 117,
The match signal FRSTOK output from the comparison circuit 108 and the match signal SAME output from the comparison circuit 38 are selected by the output STMOD of the flip-flop 106 by the configuration including the 118 and the OR gate 119. Basically, the STMOD signal is When it is H (in the synchronous mode), the FRSTOK signal is selected, and when the STMOD signal is L (in the asynchronous mode), the SAME signal is selected. That is, the output STAL of the selector 131
Basically, the OAD signal becomes H each time the output of the loadable counter 42 matches the end address EA in the asynchronous mode, and the number of data frame signals received from the main controller 100 in the synchronous mode. It becomes H each time it matches the set value n.

【0083】このSTALOAD信号がフリップフロッ
プ124でディレイされてSAME1信号となる。この
SAME1信号は設定回数レジスタ103及びフリップ
フロップ106に入力され、このSAME1信号のタイ
ミングで2段目の設定回数レジスタ102およびフリッ
プフロップ105からの各データが3段目の設定回数レ
ジスタ103及びフリップフロップ106に転送され
る。またこのSAME1信号はローダブルカウンタ42
に入力され、このSAME1信号のタイミングでスター
トアドレスレジスタ41に設定されたスタートアドレス
SAをローダブルカウンタ42にロードする。
This STALOAD signal is delayed by the flip-flop 124 to become the SAME1 signal. This SAME1 signal is input to the set count register 103 and the flip-flop 106, and at the timing of this SAME1 signal, the respective data from the second-stage set count register 102 and the flip-flop 105 are transferred to the third-stage set count register 103 and the flip-flop. 106. Further, this SAME1 signal is applied to the loadable counter 42.
Is input to the loadable counter 42 at the timing of the SAME1 signal.

【0084】次に、オアゲート120、ゲート121、
アンドゲート122及びフリップフロップ123で構成
される論理ブロック132で、ローダブルカウンタ42
のカウント動作のイネーブル信号となるCOUNTEN
1信号の基になるCOUNTEN_信号を形成するよう
にしている。なお、この明細書では、信号COUNTE
N_のように信号名の後に付した_は論理反転(バー)
を示し、_が付された信号はLで有効であるとする。
Next, the OR gate 120, the gate 121,
The loadable counter 42 includes a logic block 132 including an AND gate 122 and a flip-flop 123.
COUNTEN, which is the enable signal for the count operation of
A COUNTEN_ signal, which is the basis of one signal, is formed. In this specification, the signal COUNTE
_ Added after the signal name such as N_ is logical inversion (bar)
, And signals with _ are valid at L.

【0085】また、リングカウンタ126は図4のP/
S変換器48のP/S変換の変換クロック信号CK_を
カウントするものであり、この場合は3ビットのカウン
タで構成されている。すなわち、この場合送信メモリ4
4の読み出しデータは8ビット単位になっており、この
8ビットのデータをP/S変換器48でシリアルデータ
に変換するために、P/S変換器48が8ビットのP/
S変換を行う度に送信メモリ44からデータが読み出さ
れるように同期をとる必要がある。そこで、P/S変換
のクロックCK_を3ビットのリングカウンタ126で
カウントし、そのキャリー信号をゲート127に入力す
るようにしている。ゲート127は、上記キャリー信号
にCOUNTEN_信号をかませることでCOUNTE
N_信号がLのときにのみキャリー信号を通過させ、こ
れをCOUNTEN1信号としてローダブルカウンタ4
2に入力する様にしている。なお、カウンタ26はSA
ME1信号でリセットされる。
Further, the ring counter 126 is set to P / in FIG.
The S / converter 48 counts the conversion clock signal CK_ for P / S conversion, and in this case, it is composed of a 3-bit counter. That is, in this case, the transmission memory 4
The read data of No. 4 is in units of 8 bits, and the P / S converter 48 converts the 8-bit data into serial data by the P / S converter 48.
It is necessary to synchronize the data so that the data is read from the transmission memory 44 each time the S conversion is performed. Therefore, the P / S conversion clock CK_ is counted by the 3-bit ring counter 126 and the carry signal is input to the gate 127. The gate 127 causes the carry signal to be bitten by the COUNTEN_ signal.
The carry signal is passed only when the N_ signal is L, and the carry signal is used as the COUNTEN1 signal.
I am trying to input in 2. The counter 26 is SA
It is reset by the ME1 signal.

【0086】かかる構成において、先ず非同期モードの
ときの動作について説明する。
In such a configuration, the operation in the asynchronous mode will be described first.

【0087】電源立ち上げの際は、フリップフロップ3
2、スタートアドレスレジスタ40,41、エンドアド
レスレジスタ37およびローダブルカウンタ42は、レ
セット信号RSTによりリセットされるので、この電源
立ち上げ時には比較回路38は一致を検出し、一致信号
SAMEを出力する。これによりセレクタ131からS
TALOAD信号が出力され、データ転送制御部50の
アンドゲート35に入力される。また、この電源立ち上
げ後、前述のようにしてスタートアドレスレジスタ40
およびエンドアドレスレジスタ36に対するスタートア
ドレスSAおよびエンドアドレスEAの書き込みが終了
したとすると、エンドアドレスレジスタのライト信号W
E(WE信号はWS信号より後に出力される)がフリッ
プフロップ32で検出され、この検出信号がフリップフ
ロップ33でタイミング調整が行われた後、アンドゲー
ト35に出力される。
When the power is turned on, the flip-flop 3
2. Since the start address registers 40 and 41, the end address register 37 and the loadable counter 42 are reset by the reset signal RST, the comparison circuit 38 detects a match and outputs a match signal SAME when the power is turned on. This allows the selector 131 to S
The TALOAD signal is output and input to the AND gate 35 of the data transfer control unit 50. Further, after the power is turned on, the start address register 40 is set as described above.
If the writing of the start address SA and the end address EA to the end address register 36 is completed, the write signal W of the end address register is written.
E (the WE signal is output after the WS signal) is detected by the flip-flop 32, and the detection signal is output to the AND gate 35 after timing adjustment is performed by the flip-flop 33.

【0088】したがって、アンドゲート35から出力さ
れる転送イネーブル信号CKE信号は、電源立ち上げ後
エンドアドレスレジスタのライト信号WEが出力された
後Hになり、これにより第1段目のスタートアドレスレ
ジスタ40およびエンドアドレスレジスタ36に書き込
まれたデータが第2段目のスタートアドレスレジスタ4
1及びエンドアドレスレジスタ37に転送される。
Therefore, the transfer enable signal CKE signal output from the AND gate 35 becomes H after the power signal is turned on and the write signal WE of the end address register is output, whereby the start address register 40 of the first stage is set. And the data written in the end address register 36 is the start address register 4 in the second stage.
1 and the end address register 37.

【0089】また、SAME1信号を出力するフリップ
フロップ124は比較回路38の出力SAMEをクロッ
ク信号CKの立ち下がりでラッチするよう構成されてお
り、このため電源立ち上げ後、スタートアドレスレジス
タ40のデータがスタートアドレスレジスタ41に転送
されるまでは、ローダブルカウンタ42にはクロック信
号CKの立ち下がり毎にリセットされたスタートアドレ
スレジスタ41のデータが初期ロードされている。
Further, the flip-flop 124 which outputs the SAME1 signal is configured to latch the output SAME of the comparison circuit 38 at the falling edge of the clock signal CK. Therefore, after the power is turned on, the data in the start address register 40 is Until the data is transferred to the start address register 41, the loadable counter 42 is initially loaded with the data of the start address register 41 that is reset at each falling edge of the clock signal CK.

【0090】しかし、スタートアドレスレジスタ41に
スタートアドレスレジスタ40のデータが転送された時
には、エンドアドレスレジスタ37にもエンドアドレス
レジスタ36のデータが転送されるので、上記データ転
送時点で比較回路38の出力SAMEはLに立ち下が
る。しかし、前述したように前記フリップフロップ12
4は比較回路38の出力SAME(この場合には非同期
モードであるのでセレクタ131はSAME信号を選択
する)をクロック信号CKの立ち下がりでラッチするよ
うにしているので、上記データ転送時点においてはフリ
ップフロップ124から出力される初期ロード信号SA
ME1は依然Hは維持しており、この結果上記データ転
送時点にスタートアドレスレジスタ41のデータがロー
ダブルカウンタ42に初期ロードされることになる。
However, when the data of the start address register 40 is transferred to the start address register 41, the data of the end address register 36 is also transferred to the end address register 37, so that the output of the comparison circuit 38 is output at the time of the data transfer. SAME falls to L. However, as described above, the flip-flop 12
Reference numeral 4 is for latching the output SAME of the comparison circuit 38 (in this case, the selector 131 selects the SAME signal because it is in the asynchronous mode) at the falling edge of the clock signal CK. Initial load signal SA output from
ME1 still maintains H, and as a result, the data in the start address register 41 is initially loaded into the loadable counter 42 at the time of the data transfer.

【0091】この初期ロードが終了後、パソコン30に
よってデコーダ31から出力されるOE3信号がイネー
ブルとされる。これにより、ローダブルカウンタ42の
カウント値が3状態バッファ43を介して送信メモリ4
4のアドレス端子に加えられることになり、送信メモリ
44はスタートアドレスレジスタ41に設定されたスタ
ートアドレスSAから順次データの読み出しを開始す
る。読み出されたデータはP/S変換器48でパラレル
データがシリアルデータに変換された後送信部49を介
してメインコントローラ100に送信される。これ以
降、ローダブルカウンタ42のクロック信号CKに同期
したカウント動作によって送信メモリ44のアドレスが
順次+1カウントアップされ、該カウント値に対応され
るアドレスからのデータ読み出しが実行される。なお、
非同期モードのときには、STMOD信号はLであるの
で、フリップフロップ123の出力COUTEN_も常
にLであり、このためローダブルカウンタ42に入力さ
れるのクロックイネーブル信号COUNTEN1信号は
カウンタ126がキャリーを出力する度にHになり、ロ
ーダブルカウンタ42のカウント動作が中止されること
はない。
After the initial loading is completed, the personal computer 30 enables the OE3 signal output from the decoder 31. As a result, the count value of the loadable counter 42 is transmitted to the transmission memory 4 via the 3-state buffer 43.
4 is added to the address terminals, and the transmission memory 44 sequentially starts reading data from the start address SA set in the start address register 41. The read data is converted from parallel data to serial data by the P / S converter 48, and then transmitted to the main controller 100 via the transmission unit 49. After that, the count operation in synchronization with the clock signal CK of the loadable counter 42 sequentially increments the address of the transmission memory 44 by +1 and the data is read from the address corresponding to the count value. In addition,
In the asynchronous mode, since the STMOD signal is L, the output COUTEN_ of the flip-flop 123 is also always L. Therefore, the clock enable signal COUNTEN1 signal input to the loadable counter 42 is output every time the counter 126 outputs carry. Therefore, the count operation of the loadable counter 42 is not stopped.

【0092】この様なカウント動作が進んでいくと、い
ずれローダブルカウンタの出力がエンドアドレスレジス
タ37に設定されたエンドアドレスEAと一致すること
になる。比較回路38はこの一致を検出し、一致検出時
点で出力SAMEをHに立ち上げる。
As the counting operation proceeds, the output of the loadable counter eventually coincides with the end address EA set in the end address register 37. The comparison circuit 38 detects this coincidence and raises the output SAME to H at the time of coincidence detection.

【0093】したがって、フリップフロップ124から
は初期ロード信号SAME1が再度出力されることにな
り、これによりローダブルカウンタ42にスタートアド
レスレジスタ41の設定スタートアドレスSAが再び初
期ロードされることになる。したがって、この後ローダ
ブルカウンタ42はこのスタートアドレスSAからのカ
ウント動作をエンドアドレスレジスタ37に設定された
エンドアドレスEAまで再び実行し、これにより前回読
み出された例えば1周期分のデータフレーム信号と同じ
データ内容および同じサンプリング周期のデータフレー
ム信号が送信メモリ44から出力されることになる。こ
の様な動作が繰り返されることにより、送信メモリ44
には1周期分のデータしか記憶されていないのにもかか
わらず、例えば図23に示したような複数周期分のデー
タフレーム信号をメインコントローラ100に送信する
ことができる。
Therefore, the initial load signal SAME1 is output again from the flip-flop 124, whereby the loadable counter 42 is again initially loaded with the set start address SA of the start address register 41. Therefore, after this, the loadable counter 42 again executes the counting operation from the start address SA up to the end address EA set in the end address register 37, and as a result, the previously read data frame signal for one cycle, for example, is obtained. A data frame signal having the same data content and the same sampling period will be output from the transmission memory 44. By repeating such operations, the transmission memory 44
Although only one cycle of data is stored in, the data frame signals of a plurality of cycles as shown in FIG. 23, for example, can be transmitted to the main controller 100.

【0094】送信データの内容を変更するときには、前
述と同様の手順を踏んでスタートアドレスレジスタ40
およびエンドアドレスレジスタ36の設定内容を変更す
ればよい。
When changing the contents of the transmission data, the start address register 40 is followed by the same procedure as described above.
The setting contents of the end address register 36 may be changed.

【0095】次に、同期モードの動作を説明する。Next, the operation in the synchronous mode will be described.

【0096】上記非同期モードによる送信動作の後、同
期モードを選択したとする。先ず、オペレータはデータ
バスDBの下位8ビットDB0〜DB7中のDB7ビット
を“1”にすると共に(非同期モードのときはDB7ビ
ットは“0”)、DB0〜DB6に上記同期処理を行う受
信データフレーム信号の個数nを設定する。また、パソ
コン30から所定の制御データを出力する事によりデコ
ーダ31から同期モード開始信号STSYNを出力させ
る。この信号STSYNにより設定回数nがデータバス
DB0〜DB6を介して図5の第1段目の設定回数レジス
タ101に取り込まれると共に、同期モード識別ビット
DB7がフリップフロップ104にラッチされる。
It is assumed that the synchronous mode is selected after the transmission operation in the asynchronous mode. First, the operator sets the DB7 bit in the lower 8 bits DB0 to DB7 of the data bus DB to "1" (DB7 bit is "0" in the asynchronous mode), and the received data for performing the above synchronization processing on DB0 to DB6. The number n of frame signals is set. Further, by outputting predetermined control data from the personal computer 30, the synchronous mode start signal STSYN is output from the decoder 31. The signal STSYN causes the set number n to be taken into the set number register 101 in the first stage of FIG. 5 via the data buses DB0 to DB6, and the synchronous mode identification bit DB7 to be latched in the flip-flop 104.

【0097】次に、前記非同期モードの場合と同様にし
て所要のスタートアドレスSAおよびエンドアドレスE
Aをスタートアドレスレジスタ40およびエンドアドレ
スレジスタ36に書き込む。またこの際、エンドアドレ
スレジスタ36へのエンドアドレスEAの書き込みのと
きはライト信号WEが出力されるが、このライト信号W
Eにより設定回数n及び同期モード識別ビットDB7が
第1段目の設定回数レジスタ101及びフリップフロッ
プ104から第2段目の設定回数レジスタ102及びフ
リップフロップ105に転送される。
Then, the required start address SA and end address E are obtained in the same manner as in the asynchronous mode.
A is written in the start address register 40 and the end address register 36. At this time, the write signal WE is output when the end address EA is written to the end address register 36.
By E, the set count n and the synchronization mode identification bit DB7 are transferred from the set count register 101 and flip-flop 104 in the first stage to the set count register 102 and flip-flop 105 in the second stage.

【0098】この転送時点においては、エンドアドレス
レジスタ37及びスタートアドレスレジスタ41には、
先の非同期モード時のエンドアドレスEAおよびスター
トアドレスSAがまだ記憶されている。また、ローダブ
ルカウンタ42もカウント動作を継続している。このた
めいずれローダブルカウンタ42から出力されるカウン
ト値がエンドアドレスレジスタ37に設定されている前
回非同期モード時のエンドアドレスEAに一致し、この
ときに比較回路38から一致信号SAMEが出力され
る。
At the time of this transfer, the end address register 37 and the start address register 41 have
The end address EA and the start address SA in the previous asynchronous mode are still stored. The loadable counter 42 also continues the counting operation. Therefore, the count value output from the loadable counter 42 eventually coincides with the end address EA in the previous asynchronous mode set in the end address register 37, and at this time, the comparison circuit 38 outputs the coincidence signal SAME.

【0099】この一致信号SAMEが出力されたときに
は、まだ3段目の設定回数レジスタ103及びフリップ
フロップ106には2段目の各レジスタ102、105
のデータが転送されてはおらず、このためSTMOD信
号はLのままである。従ってこの時点ではセレクタ13
1はSAME信号を選択する。よって、上記ローダブル
カウンタ42から出力されるカウント値がエンドアドレ
スレジスタ37に設定されている前回非同期モード時の
エンドアドレスEAに一致したときに比較回路38から
出力される一致信号SAMEが、STALOAD信号と
してデータ転送制御部50のアンドゲート35に入力さ
れ、これにより転送イネーブル信号CKEが出力され、
1段目のエンドアドレスレジスタ36及びスタートアド
レスレジスタ40に設定された同期モード時のエンドア
ドレスEA及びスタートアドレスSAが2段目のエンド
アドレスレジスタ37及びスタートアドレスレジスタ4
1に転送される。
When the coincidence signal SAME is output, the third stage set count register 103 and the flip-flop 106 still have the second stage registers 102 and 105.
Data has not been transferred, so the STMOD signal remains L. Therefore, at this point, the selector 13
1 selects the SAME signal. Therefore, when the count value output from the loadable counter 42 matches the end address EA in the previous asynchronous mode set in the end address register 37, the match signal SAME output from the comparison circuit 38 is the STALOAD signal. Is input to the AND gate 35 of the data transfer control unit 50, which outputs the transfer enable signal CKE,
The end address EA and the start address SA in the synchronous mode set in the end address register 36 and the start address register 40 of the first stage are the end address register 37 and the start address register 4 of the second stage.
Forwarded to 1.

【0100】また、上記STALOAD信号はフリップ
フロップ124で少し遅延され、初期ロード信号SAM
E1としてローダブルカウンタ42に入力される。従っ
て、2段目のスタートアドレスレジスタ41に転送され
た同期モード用のスタートアドレスSAが上記転送直後
ローダブルカウンタ42に初期ロードされる。そして、
この初期ロードにより比較回路38の出力SAMEはL
に立ち下がる。
The STALOAD signal is slightly delayed by the flip-flop 124, and the initial load signal SAM
It is input to the loadable counter 42 as E1. Therefore, the start address SA for the synchronous mode transferred to the start address register 41 of the second stage is initially loaded in the loadable counter 42 immediately after the transfer. And
Due to this initial load, the output SAME of the comparison circuit 38 becomes L.
Fall to.

【0101】一方、上記SAME1信号は、3段目の設
定回数レジスタ103及びフリップフロップ106に転
送タイミング信号として入力されており、このため上記
SAME1信号の出力タイミングで2段目の設定回数レ
ジスタ102及びフリップフロップ105の設定データ
が3段目の設定回数レジスタ103及びフリップフロッ
プ106に転送される。さらに、上記SAME1信号に
よりリングカウンタ126がリセットされる。
On the other hand, the SAME1 signal is input to the third-stage setting count register 103 and the flip-flop 106 as a transfer timing signal. Therefore, at the output timing of the SAME1 signal, the second-stage setting count register 102 and The setting data of the flip-flop 105 is transferred to the third-stage setting count register 103 and the flip-flop 106. Further, the ring counter 126 is reset by the SAME1 signal.

【0102】これによりSTMOD信号がHになり、こ
れ以降セレクタ131は比較回路108から出力される
FRSTOK信号を選択する同期モードに移行される。
As a result, the STMOD signal becomes H, and thereafter the selector 131 shifts to the synchronous mode for selecting the FRSTOK signal output from the comparison circuit 108.

【0103】また、STMOD信号がHになることによ
りアンドゲート122の入力の一方がHになるが、もう
一方の入力はSAMEがLになるためLのままであり、
このため、フリップフロップ23の出力COUNTEN
_はLを維持する。したがって、ゲート127の出力C
OUNTEN1は3ビットリングカウンタ126がキャ
リー信号を出力する度にHになり、このCOUNTEN
1信号がクロックイネーブル信号としてローダブルカウ
ンタ42に入力される。
When the STMOD signal becomes H, one of the inputs of the AND gate 122 becomes H, but the other input remains L because SAME becomes L.
Therefore, the output COUNTEN of the flip-flop 23
_ Maintains L. Therefore, the output C of the gate 127
COUNTEN1 becomes H each time the 3-bit ring counter 126 outputs a carry signal.
One signal is input to the loadable counter 42 as a clock enable signal.

【0104】従って、ローダブルカウンタ42は上記S
AME1信号が出力されたときから初期ロード値からの
カウント動作を実行する。
Therefore, the loadable counter 42 is set to the above S.
The counting operation from the initial load value is executed from when the AME1 signal is output.

【0105】上記SAME1信号が出力されるときに
は、パソコン30によってデコーダ31から出力される
OE3信号がイネーブルとされており、これによりロー
ダブルカウンタ42のカウント値が3状態バッファ43
を介して送信メモリ44のアドレス端子に加えられるこ
とになり、送信メモリ44はスタートアドレスレジスタ
41に設定されたスタートアドレスSAから順次データ
の読み出しを開始する。読み出されたデータはP/S変
換器48でパラレルデータがシリアルデータに変換され
た後送信部49を介してメインコントローラ100に送
信される。
When the SAME1 signal is output, the OE3 signal output from the decoder 31 is enabled by the personal computer 30, whereby the count value of the loadable counter 42 is set to the 3-state buffer 43.
The data is added to the address terminal of the transmission memory 44 via, and the transmission memory 44 sequentially starts reading data from the start address SA set in the start address register 41. The read data is converted from parallel data to serial data by the P / S converter 48, and then transmitted to the main controller 100 via the transmission unit 49.

【0106】これ以降、カウンタ126のキャリー信号
に同期したカウント動作によって送信メモリ44のアド
レスが順次+1カウントアップされ、該カウント値に対
応されるアドレスからのデータ読み出しがエンドアドレ
スレジスタ27に設定されたエンドアドレスEAまで実
行される。
After that, the address of the transmission memory 44 is sequentially incremented by +1 by the count operation in synchronization with the carry signal of the counter 126, and the data read from the address corresponding to the count value is set in the end address register 27. The end address EA is executed.

【0107】この同期モードの際、図1(a)に示すよ
うに、検査装置20から送信データフレーム信号を送信
している途中に、メインコントローラ100からのデー
タフレーム信号がn個受信されたことが検出されたとす
る。すなわち、ローダブルカウンタ42のカウント値が
エンドアドレスEAに一致する前に比較回路108から
FRSTOK信号が出力されたとする。
In this synchronous mode, as shown in FIG. 1A, n data frame signals from the main controller 100 have been received while the transmission data frame signal was being transmitted from the inspection device 20. Is detected. That is, it is assumed that the FRSTOK signal is output from the comparison circuit 108 before the count value of the loadable counter 42 matches the end address EA.

【0108】このときには、このFRSTOK信号がセ
レクタ131で選択され、これによりSAME1信号が
Hになる。従って上記FRSTOK信号が出力された時
点でローダブルカウンタ42にスタートアドレスレジス
タ41の設定スタートアドレスSAが初期値としてロー
ドされる。
At this time, the FRSTOK signal is selected by the selector 131, and the SAME1 signal becomes H. Therefore, when the FRSTOK signal is output, the loadable counter 42 is loaded with the set start address SA of the start address register 41 as an initial value.

【0109】また、論理ブロック132のゲート121
にはHのFRSTOK信号が入力されるので、ゲート1
21の出力はLのままである。したがって、ローダブル
カウンタ42には、カウンタ126がキャリーを出力す
る度にHのCOUNTEN1信号が入力され、ローダブ
ルカウンタ42のカウント動作が停止されることはな
い。
In addition, the gate 121 of the logic block 132
Since the FRSTOK signal of H is input to the
The output of 21 remains L. Therefore, the H COUNTEN1 signal is input to the loadable counter 42 every time the counter 126 outputs a carry, and the count operation of the loadable counter 42 is not stopped.

【0110】従って、図1(a)のように、ローダブル
カウンタ42のカウント値がエンドアドレスEAに一致
する前に比較回路108からFRSTOK_信号が出力
された場合には、送信メモリ44からはスタートアドレ
スSAからの読み出し動作が再実行される。
Therefore, as shown in FIG. 1A, when the FRSTOK_ signal is output from the comparison circuit 108 before the count value of the loadable counter 42 matches the end address EA, the transmission memory 44 starts. The read operation from the address SA is re-executed.

【0111】また、図1(b)に示すように、データフ
レーム信号の送信が終了したときに(ローダブルカウン
タ42のカウント値がエンドアドレスEAまで到達した
ときに)まだ比較回路108からFRSTOK信号が出
力されていない場合には、FRSTOK信号の出力後に
スタートアドレスSAからの読みだしを実行するように
している。
Further, as shown in FIG. 1B, when the transmission of the data frame signal is finished (when the count value of the loadable counter 42 reaches the end address EA), the FRSTOK signal is still output from the comparison circuit 108. Is not output, the reading from the start address SA is executed after the output of the FRSTOK signal.

【0112】すなわち、ローダブルカウンタ42の出力
がエンドアドレスレジスタ37に設定されたエンドアド
レスEAに一致すると、比較回路38からの一致信号S
AMEがHになり、このときFRSTOK信号はLであ
るので、論理ブロック132のゲート121はHにな
る。したがって、フリップフロップ123の出力COU
NTEN_信号がHになり、この結果ローダブルカウン
タ42のクロックイネーブル信号COUNTEN1信号
がカウンタ126のキャリーに関係なくLになる。
That is, when the output of the loadable counter 42 coincides with the end address EA set in the end address register 37, the coincidence signal S from the comparison circuit 38.
Since AME goes high and the FRSTOK signal is low at this time, the gate 121 of logic block 132 goes high. Therefore, the output COU of the flip-flop 123
The NTEN_ signal becomes H, and as a result, the clock enable signal COUNTEN1 signal of the loadable counter 42 becomes L regardless of the carry of the counter 126.

【0113】これにより、ローダブルカウンタ42の出
力は更新されず、エンドアドレスEAで固定されること
になり、この結果送信メモリ44からはエンドアドレス
EAのデータ、すなわち無送信区間のデータが出力され
続けることになる。
As a result, the output of the loadable counter 42 is not updated and is fixed at the end address EA. As a result, the data of the end address EA, that is, the data of the non-transmission section is output from the transmission memory 44. Will continue.

【0114】この後、メインコントローラ100から受
信フレーム信号の個数が設定回数レジスタ103の設定
個数nに一致すると、比較回路108から一致信号FR
STOKがHになる。 このFRSTOK信号はセレク
タ131で選択され、これによりSAME1信号がHに
なる。従って上記FRSTOK信号が出力された時点で
ローダブルカウンタ42にスタートアドレスレジスタ4
1の設定スタートアドレスSAが初期値としてロードさ
れる。
After that, when the number of received frame signals from the main controller 100 matches the number n set in the set number register 103, the comparison circuit 108 outputs a match signal FR.
STOK becomes H. This FRSTOK signal is selected by the selector 131, which causes the SAME1 signal to go high. Therefore, when the FRSTOK signal is output, the startable address register 4 is added to the loadable counter 42.
The set start address SA of 1 is loaded as the initial value.

【0115】また、論理ブロック132のゲート121
にはHのFRSTOK信号が入力されるので、ゲート1
21の出力はHからLになり、論理ブロック132の出
力COUNTEN_もLになる。したがって、ローダブ
ルカウンタ42には、カウンタ126のキャリー毎にH
のCOUNTEN1信号が入力され、ローダブルカウン
タ42はカウント動作を再開する。
In addition, the gate 121 of the logic block 132
Since the FRSTOK signal of H is input to the
The output of 21 goes from H to L, and the output of the logic block 132, COUNTEN_, goes to L. Therefore, the loadable counter 42 has an H level for each carry of the counter 126.
COUNTEN1 signal is input, and the loadable counter 42 restarts the counting operation.

【0116】従って、図1(b)のように、ローダブル
カウンタ42のカウント値がエンドアドレスEAまで到
達したときに、まだ比較回路108からFRSTOK信
号が出力されていない場合には、FRSTOK信号が出
力されるまでエンドアドレスEAのデータすなわち無送
信区間のデータを送出し続け、FRSTOK信号の出力
後にスタートアドレスSAからの読みだしを再開するよ
うにしている。このようにしてメインコントローラ10
0からの受信フレーム信号に同期して検査装置20から
メインコントローラ100へデータフレーム信号を繰り
返し送信することができる。なお、上記実施例ではエン
ドアドレスのデータを送信続けるようにしたが、スター
トアドレスのデータを送信続けるようにしてもよい。
Therefore, as shown in FIG. 1B, when the count value of the loadable counter 42 reaches the end address EA, if the FRSTOK signal is not yet output from the comparison circuit 108, the FRSTOK signal is output. The data of the end address EA, that is, the data of the non-transmission section is continuously transmitted until it is output, and the reading from the start address SA is restarted after the output of the FRSTOK signal. In this way, the main controller 10
The data frame signal can be repeatedly transmitted from the inspection device 20 to the main controller 100 in synchronization with the received frame signal from 0. Although the end address data is continuously transmitted in the above embodiment, the start address data may be continuously transmitted.

【0117】なお、図9に図1(a)の同期モードのと
きの各種信号のタイムチャートを示し、図10に図1
(b)の同期モードのときの各種信号のタイムチャート
を示した。
FIG. 9 shows a time chart of various signals in the synchronous mode of FIG. 1A, and FIG.
The time chart of various signals in the synchronous mode of (b) is shown.

【0118】次に、上記の検査装置20を用いてメイン
コントローラ100のセンサデータの複数回照合機能の
検査を行う場合の処理手順について説明する。
Next, a processing procedure in the case of inspecting the sensor data of the main controller 100 for a plurality of collating functions by using the inspection device 20 will be described.

【0119】前述したように、メインコントローラ10
0は電源立ち上げ後、図21に示した初期フレーム信号
をノードに送信し、その受信フレーム信号中のアクチュ
エータデータの長さと送信した初期フレーム信号中のア
クチュエータデータの長さの差から出力点数(全アクチ
ュエータ数)を自動的に検出し、この検出値によって実
際に送るデータフレーム信号中のデータ長Ld(図20
参照)を決定するとともに(データ長自動決定機能)、
受信した初期フレーム信号中のセンサデータの長さlか
ら入力点数(全センサ数)を自動的に検出し、この入力
点数の検出値と前記検出した出力点数に応じてデータフ
レーム信号の送出周期T(サンプリングタイム)を決定
するようにしており(サンプリングタイム自動決定機
能)、これらデータ長とサンプリングタイムが確定した
後に(入出力点数の複数回照合機能により)、ホストコ
ントローラ200から送られてきたアクチュエータ制御
データに基ずき前記図20に示した通常のデータフレー
ム信号を自動的に形成し、これをノードへ所定のサンプ
リング周期Tで送出するようにしている。
As described above, the main controller 10
After the power is turned on, 0 is the number of output points (from the difference between the length of the actuator data in the received frame signal and the length of the actuator data in the transmitted initial frame signal shown in FIG. The total number of actuators is automatically detected, and the data length Ld (Fig.
(Refer to) (Data length automatic determination function)
The number of input points (the total number of sensors) is automatically detected from the length l of the sensor data in the received initial frame signal, and the transmission cycle T of the data frame signal is detected according to the detected value of this input point and the detected number of output points. The (sampling time) is determined (sampling time automatic determination function), and the actuator sent from the host controller 200 after the data length and sampling time are determined (by the multiple input / output point verification function). The normal data frame signal shown in FIG. 20 is automatically formed on the basis of the control data and is sent to the node at a predetermined sampling period T.

【0120】そして、データフレーム信号を受信した場
合、メインコントローラ100は受信したデータフレー
ム信号中のセンサデータが連続して所定回数同じで始め
て真のセンサデータとして採用するようにしている(セ
ンサデータの複数回照合機能)。ただし、受信データフ
レーム信号中に伝送エラーが発生している場合は無視
し、前記照合のときの回数に入れない。
Then, when the data frame signal is received, the main controller 100 adopts the sensor data in the received data frame signal as the true sensor data, starting from the same number of times in succession. Multiple times matching function). However, if a transmission error has occurred in the received data frame signal, it is ignored, and it is not included in the number of times of the above collation.

【0121】この機能を検査するに当たっては、まずメ
インコントローラが受信すべき初期フレーム信号を、例
えば送信メモリ44のエリアA(図7参照)に書き込む
と共に、またエリアB(図7参照)に図11に示すよう
な複数の異なるセンサデータ部分を有する第1データフ
レーム信号〜第9データフレーム信号を書き込む。上記
複数のデータフレーム信号中には上記エラー発生の場合
の機能を検査するために、エラーが発生されるようなデ
ータを適宜混入しておく。
In testing this function, first, an initial frame signal to be received by the main controller is written, for example, in the area A (see FIG. 7) of the transmission memory 44, and in the area B (see FIG. 7). Write the first to ninth data frame signals having a plurality of different sensor data portions as shown in FIG. In order to inspect the function in the case where the error occurs, data that causes an error is appropriately mixed in the plurality of data frame signals.

【0122】次に、検査装置20のモードを非同期モー
ドにしてかつ上記エリアAに書き込んだ初期フレーム信
号が送信メモリ44から読み出されるようスタートアド
レスSA及びエンドアドレスEAを指定する。そして、
メインコントローラ100及びホストコントローラ20
0の電源をオンにして、上記初期フレーム信号を繰り返
しメインコントローラ100に送信する。
Next, the mode of the inspection apparatus 20 is set to the asynchronous mode, and the start address SA and the end address EA are designated so that the initial frame signal written in the area A can be read from the transmission memory 44. And
Main controller 100 and host controller 20
The power of 0 is turned on, and the initial frame signal is repeatedly transmitted to the main controller 100.

【0123】この初期フレーム信号の受信によりメイン
コントローラ100は上記データ長決定機能及びサンプ
リンタイム決定機能を用いてデータ長及びサンプリング
タイムを確定し、確定後ホストコントローラ200から
送られてきたアクチュエータ制御データに基ずき通常デ
ータフレーム信号を自動的に形成し、これをノードへ所
定のサンプリング周期Tで送出する。
Upon receipt of this initial frame signal, the main controller 100 determines the data length and sampling time by using the data length determining function and the sampling time determining function, and after determining the actuator control data sent from the host controller 200. A normal data frame signal is automatically formed on the basis of the data and sent to the node at a predetermined sampling period T.

【0124】この通常データフレーム信号は検査装置2
0の図3に示した受信側構成で受信される。したがっ
て、出力点数カウンタ63からは、前述した動作によっ
て受信したデータフレーム信号中の全アクチュエータへ
の出力データ数を計数し、これをパソコンに報告する。
また、無送信区間検出カウンタ64は、受信されたデー
タフレーム信号の間隔(図23のt)を計時し、この計
時出力をパソコン30に報告する。パソコン30はこれ
らの出力を判定することで、メインコントローラ100
から通常データフレーム信号が送られてきたことを検出
する。
This normal data frame signal is sent to the inspection device 2
0 is received by the receiving side configuration shown in FIG. Therefore, the output point counter 63 counts the number of output data to all actuators in the data frame signal received by the above-described operation, and reports this to the personal computer.
Further, the non-transmission section detection counter 64 measures the interval (t in FIG. 23) of the received data frame signal and reports the measured output to the personal computer 30. The personal computer 30 determines the outputs of the main controller 100.
From the normal data frame signal is detected.

【0125】この検出が行われると、パソコン30は検
査装置20のモードを同期モードにすると共に、受信デ
ータフレーム信号の設定回数n(この場合n=9)を指
定し、さらに上記エリアBに書き込んだ複数のデータフ
レーム信号が連続して送信メモリ44から読み出される
ようスタートアドレスSA及びエンドアドレスEAを指
定する。
When this detection is performed, the personal computer 30 sets the mode of the inspection device 20 to the synchronous mode, specifies the set number n (n = 9 in this case) of the received data frame signal, and writes it in the area B. The start address SA and the end address EA are designated so that the plurality of data frame signals are continuously read from the transmission memory 44.

【0126】この結果、送信メモリ44からは図11に
示したような異なるセンサデータ内容を有する9つのデ
ータフレーム信号が連続して送信される。
As a result, nine data frame signals having different sensor data contents as shown in FIG. 11 are continuously transmitted from the transmission memory 44.

【0127】メインコントローラ100では、前述した
ように、受信されたデータフレーム信号中のセンサデー
タをホストコントローラ200に伝送するようにしてお
り、データフレーム信号中のセンサデータはホストコン
トローラ200で観測することができる。
As described above, the main controller 100 transmits the sensor data in the received data frame signal to the host controller 200, and the host controller 200 should observe the sensor data in the data frame signal. You can

【0128】したがって、検査装置20の送信側から送
出された前記データフレーム信号をメインコントローラ
100で受信させ、ホストコントローラ200でセンサ
データを見ながら上記複数回照合機能の照合回数の設定
値Nを適宜変更する(メインコントローラに付設された
スイッチを操作することでNが変更される)ことにより
センサデータの複数回照合機能が正常に動作しているか
否かを確認する。
Therefore, the main controller 100 receives the data frame signal sent from the transmission side of the inspection device 20, and the host controller 200 checks the sensor data and appropriately sets the set value N of the number of times of verification of the multiple times verification function. By changing (N is changed by operating the switch attached to the main controller), it is confirmed whether the multiple collation function of the sensor data is operating normally.

【0129】例えば、図11に示すような異なるデータ
内容を持つセンサデータを含む複数のデータフレーム信
号が連続して入力された場合、通信エラーがあるデータ
フレーム信号が正常に除去されたとすると、n=0と設
定すると(照合しない)、下位3ビットは0あるいは1
に固定されず不定状態にありそれ以外のビットが0に固
定されているとき上記センサデータの複数回照合機能が
正常に動作していると判断する。同様にn=1と設定す
ると最下位ビットが1に固定され、下位2ビット目及び
3ビット目が不定状態にあり、それ以外のビットが0に
固定されているとき上記センサデータの複数回照合機能
が正常に動作していると判断する。また、n=3と設定
すると、下位3ビット目が1に固定され、下位2ビット
目及び1ビット目がメインコントローラ100内の受信
メモリ(受信データを記憶するメモリ)の初期値に固定
され、それ以外のビットが0に固定されているとき上記
センサデータの複数回照合機能が正常に動作していると
判断する。
For example, when a plurality of data frame signals including sensor data having different data contents as shown in FIG. 11 are continuously input, assuming that a data frame signal having a communication error is normally removed, n If = 0 is set (no collation), the lower 3 bits are 0 or 1.
When it is not fixed to and is in an undefined state and the other bits are fixed to 0, it is judged that the above-mentioned multiple collation function of the sensor data is operating normally. Similarly, when n = 1 is set, the least significant bit is fixed to 1, the lower 2nd bit and the 3rd bit are in an undefined state, and the other bits are fixed to 0. Judge that the function is operating normally. Further, when n = 3 is set, the lower 3rd bit is fixed to 1, the lower 2nd bit and the 1st bit are fixed to the initial value of the reception memory (memory for storing reception data) in the main controller 100, When the other bits are fixed to 0, it is determined that the above-mentioned multiple collation function of the sensor data is operating normally.

【0130】また、メインコントローラ100で通信エ
ラーを含むデータフレーム信号の除去が不可能な異常が
発生した場合は、図11に示すように、設定回数Nが同
じでもホストコントローラ200への入力データが正常
時とは異なるので、メインコントローラ100ないのエ
ラー検出機能に異常が発生していることを検出すること
ができる。
When an error occurs in which it is impossible to remove the data frame signal including the communication error in the main controller 100, as shown in FIG. 11, even if the set number N is the same, the input data to the host controller 200 remains unchanged. Since this is different from the normal state, it is possible to detect that an error has occurred in the error detection function of the main controller 100.

【0131】このようにしてセンサデータの複数回照合
機能を検査する。
In this way, the collation function of the sensor data is tested a plurality of times.

【0132】ところで、このセンサデータの複数回照合
機能を検査する際には、検査装置20のモードを同期モ
ードにしている。このため、検査装置20から送信する
例えば図11に示した複数の異なるデータ内容を持つデ
ータフレーム信号の送信間隔をある程度ラフに設定して
も(図1(a)に示すような状態が発生しないように送
信間隔をラフに設定する。また図1(a)に示すような
状態の発生の可能性が考えられる場合はFRSTOK信
号が入力されたときには最後のデータフレーム信号の無
送信区間のデータが送信されている状態に記憶データを
設定する。)、図1(b)に示した状態の送信状態が継
続され、これにより送信側優先論理が組まれているメイ
ンコントローラ100においては検査装置20からのデ
ータが途中で途切れることなくデータを送受信データメ
モリ11へ転送することができ、上記センサデータの複
数回照合機能を誤検査なく能率よくなし得る。
When inspecting the collation function of the sensor data a plurality of times, the inspection device 20 is set to the synchronous mode. Therefore, for example, even if the transmission intervals of the data frame signals having a plurality of different data contents shown in FIG. 11 which are transmitted from the inspection device 20 are set to be somewhat rough (the state shown in FIG. 1A does not occur). When the FRSTOK signal is input, when the FRSTOK signal is input, the data in the non-transmission section of the last data frame signal is set to be rough as shown in Fig. 1 (a). The stored data is set to the state of being transmitted.), And the transmission state of the state shown in FIG. 1B is continued, whereby the main controller 100 in which the transmission side priority logic is built is transmitted from the inspection device 20. Data can be transferred to the transmission / reception data memory 11 without interruption in the middle, and the above-mentioned collation function of the sensor data can be efficiently performed without erroneous inspection. It can be.

【0133】次に、図2に示したメインコントローラ1
00内の受信メモリ14のアドレスバスABR、送受信
データメモリ11の送信装置12及び受信装置13側の
アドレスバスABM、及び送受信データメモリ11のホ
ストコントローラ200側のアドレスバスABPの検査
について説明する。
Next, the main controller 1 shown in FIG.
The inspection of the address bus ABR of the receiving memory 14 in 00, the address bus ABM of the transmitting / receiving data memory 11 on the transmitting device 12 and receiving device 13 side, and the address bus ABP of the transmitting / receiving data memory 11 on the host controller 200 side will be described.

【0134】ただし、前述したように、受信メモリ14
はデータ幅が1ビットのメモリ、送受信データメモリ1
1はデータ幅が8ビットのメモリであり、受信メモリ1
4の出力データをS/P変換して送受信データメモリ1
1に記憶するため、受信メモリ14のアドレスバスAB
Rの下位3ビット分のデータが1バイトに相当する。す
なわち受信メモリ14の最下位から4ビット目が送受信
データメモリ11の最下位ビットに相当する。なお、前
述したように送信データメモリ11に記憶される送信デ
ータおよび受信データはアドレスバスABMの最上位1
ビットの指定を区別することで送受信データメモリ11
の異なる記憶領域に記憶されるようになっている。した
がって、以下では送信データが記憶される領域を送信デ
ータエリアといい、受信データが記憶される領域を受信
データエリアという。
However, as described above, the reception memory 14
Is a memory with a data width of 1 bit, a send / receive data memory 1
1 is a memory having a data width of 8 bits, and the receiving memory 1
S / P conversion of output data of 4 and transmission / reception data memory 1
1, so that the address bus AB of the reception memory 14 is stored.
The lower 3 bits of data of R corresponds to 1 byte. That is, the fourth least significant bit of the reception memory 14 corresponds to the least significant bit of the transmission / reception data memory 11. As described above, the transmission data and the reception data stored in the transmission data memory 11 are the highest 1 of the address bus ABM.
The transmission / reception data memory 11 by distinguishing the bit designation
Are stored in different storage areas. Therefore, hereinafter, the area where transmission data is stored is referred to as a transmission data area, and the area where reception data is stored is referred to as a reception data area.

【0135】この検査に当たっては、以下の3つの検査
を組み合わせることにより各アドレスバスの良否を検査
する。
In this inspection, the quality of each address bus is inspected by combining the following three inspections.

【0136】・検査X…ホストコントローラ200から
メインコントローラ100の送受信データメモリ11の
送信データエリア全てのアドレス(1つのアドレスに1
バイトのデータが記憶される)に同一データを書き込
み、そのデータをメインコントローラ100の送信装置
を介して検査装置20に送信する。この送信データを検
査装置20の図3に示した受信側構成の比較回路66で
調べることにより、送受信データメモリ11の全アドレ
スに同一データが書き込まれたか否かを検査する。
Inspection X: All addresses of the transmission data area of the transmission / reception data memory 11 of the main controller 100 from the host controller 200 (1 for each address)
The same data is written in (the byte data is stored), and the data is transmitted to the inspection device 20 via the transmission device of the main controller 100. By checking the transmission data by the comparison circuit 66 of the receiving side configuration shown in FIG. 3 of the inspection device 20, it is inspected whether or not the same data is written in all the addresses of the transmission / reception data memory 11.

【0137】・検査Y…検査装置20からメインコント
ローラ100の受信メモリ14を介して送受信データメ
モリ11へ1バイト単位に同一データを送信する事によ
り送受信データメモリ11の受信データエリアの全アド
レスに同一データを書き込み、正常な書き込みが行われ
ているか否かをホストコントローラ200側で確認す
る。
Inspection Y: By transmitting the same data in 1-byte units from the inspection device 20 to the transmission / reception data memory 11 via the reception memory 14 of the main controller 100, all the addresses in the reception data area of the transmission / reception data memory 11 are the same. Data is written, and it is confirmed on the host controller 200 side whether or not normal writing is performed.

【0138】・検査Z…図12に示すように、送受信デ
ータメモリ11のアドレスバスABM中の1ビットだけ
がHでそれ以外はLとなる(または1ビットだけがLで
それ以外がHとなる)ようなアドレス(例えば1(0000
0001)番地、2(00000010)番地、4(00000100)番
地、…など)に対して全て異なるデータが記憶されるよ
う検査装置20からメインコントローラ100へデータ
を送信し、それらの記憶が正常に行われているか否かを
ホストコントローラ200で確認する。
Inspection Z: As shown in FIG. 12, only 1 bit in the address bus ABM of the transmission / reception data memory 11 is H and the others are L (or only 1 bit is L and the others are H). ) Address (for example, 1 (0000
(0001) address, 2 (00000010) address, 4 (00000100) address, etc.) are transmitted from the inspection device 20 to the main controller 100 so that all different data are stored, and those data are stored normally. It is confirmed by the host controller 200 whether or not it has been deleted.

【0139】次に、各アドレスバスABP、ABM、A
BRでの各種異常を検査する方法についてそれぞれ説明
する。
Next, each address bus ABP, ABM, A
A method for inspecting various abnormalities in BR will be described respectively.

【0140】(1)送受信データメモリ11のアドレス
バスABPでのショート 先ずホストコントローラ200とメインコントローラ1
00との間のアドレスバスABPでショートによる異常
が発生した場合について図3を用いて説明する。この場
合の異常はアドレスバスABPの最下位ビットの次のビ
ットABP1とその次のビットABP2にショートが発生
したとする。なお、ショートの場合は片方のラインがL
のとき両ラインがLになる。
(1) Short circuit at the address bus ABP of the transmission / reception data memory 11 First, the host controller 200 and the main controller 1
A case where an abnormality due to a short-circuit occurs in the address bus ABP between 00 and 00 will be described using FIG. The abnormality in this case is that a short circuit has occurred in the bit ABP1 next to the least significant bit of the address bus ABP and the bit ABP2 next to it. In case of short circuit, one line is L
Both lines become L at.

【0141】検査Xでは、アドレス「2」〜「5」には
データを書き込めないので、アドレス「2」〜「5」の
データは他のアドレスのデータと異なるようになる。従
って検査装置20では全アドレス領域から同一データを
受信できないのでこの検査においては「異常」と検出さ
れる。
In the inspection X, since data cannot be written in the addresses "2" to "5", the data in the addresses "2" to "5" will be different from the data in other addresses. Therefore, since the inspection device 20 cannot receive the same data from all the address areas, it is detected as "abnormal" in this inspection.

【0142】検査Yでは、アドレス「2」〜「5」のデ
ータを読みだそうとした場合、実際にはアドレス「0」
または「1」のデータを読みだしてしまう。ところが、
この場合には、全てのアドレスに同一データが書き込ま
れているので、ホストコントローラ200では「正常」
と判断する。
In the inspection Y, when the data of the addresses "2" to "5" is read, the address "0" is actually read.
Or the data of "1" is read out. However,
In this case, since the same data is written in all the addresses, the host controller 200 indicates “normal”.
To judge.

【0143】検査Zでは、アドレス「2」、「4」のデ
ータを読みだそうとした場合、実際にはアドレス「0」
のデータを読みだしてしまう。また、アドレス「3」、
「5」のデータを読みだそうとした場合は、アドレス
「1」のデータを読みだしてしまう。検査Zでは、全て
のアドレスから全て異なるデータが読み出されるべきな
ので「異常」と判断される。
In the inspection Z, when the data of the addresses "2" and "4" is read, the address "0" is actually read.
Will read the data of. Also, the address "3",
When trying to read the data of "5", the data of the address "1" is read. In the inspection Z, all different data should be read from all addresses, so that it is determined as "abnormal".

【0144】(2)送受信データメモリ11のアドレス
バスABMでのショート 前記同様、アドレスバスABMの最下位ビットの次のビ
ットABM1とその次のビットABM2にショートが発生
したとする。
(2) Short-circuit at the address bus ABM of the transmission / reception data memory 11 It is assumed that, similarly to the above, a short circuit occurs between the bit ABM1 next to the least significant bit and the next bit ABM2 of the address bus ABM.

【0145】検査Xでは、アドレス「2」〜「5」のデ
ータを読みだそうとした場合、実際にはアドレス「0」
または「1」のデータを読みだしてしまう。ところが、
この場合には、全てのアドレスに同一データが書き込ま
れているので、検査装置20は「正常」と判断する。
In the inspection X, when the data of the addresses "2" to "5" is read, the address "0" is actually read.
Or the data of "1" is read out. However,
In this case, since the same data is written in all the addresses, the inspection device 20 determines that it is “normal”.

【0146】検査Yでは、アドレス「2」〜「5」には
データを書き込めないので、アドレス「2」〜「5」の
データは他のアドレスのデータと異なるようになる。従
ってホストコントローラ200では全アドレス領域から
同一データを受信できないのでこの検査においては「異
常」と検出される。
In the inspection Y, since data cannot be written in the addresses "2" to "5", the data in the addresses "2" to "5" are different from the data in other addresses. Therefore, since the host controller 200 cannot receive the same data from all the address areas, it is detected as "abnormal" in this inspection.

【0147】検査Zでは、アドレス「2」、「4」のデ
ータを読みだそうとした場合、実際にはアドレス「0」
のデータを読みだしてしまう。また、アドレス「3」、
「5」のデータを読みだそうとした場合は、アドレス
「1」のデータを読みだしてしまう。検査Zでは、全て
のアドレスから全て異なるデータが読み出されるべきな
ので「異常」と判断される。
In the inspection Z, when the data of the addresses "2" and "4" is read, the address "0" is actually read.
Will read the data of. Also, the address "3",
When trying to read the data of "5", the data of the address "1" is read. In the inspection Z, all different data should be read from all addresses, so that it is determined as "abnormal".

【0148】(3)受信メモリ14のアドレスバスAB
Rでのショート 前述したように、受信メモリ14のアドレスバスABR
の下位3ビットは、送受信データメモリ11のアドレス
ABMの1バイトに相当するため、受信メモリ14の下
位4ビット目が送受信データメモリ11のアドレスバス
ABMの最下位ビットに相当する。従って、このアドレ
スバスABRのショートについては、下位3ビットでシ
ョートが発生した場合とそれより上位のビットでショー
トが発生した場合に分けて説明する。
(3) Address bus AB of the receiving memory 14
Short at R As described above, the address bus ABR of the reception memory 14
Since the lower 3 bits of 1 correspond to 1 byte of the address ABM of the transmission / reception data memory 11, the lower 4 bits of the reception memory 14 correspond to the least significant bit of the address bus ABM of the transmission / reception data memory 11. Therefore, the short circuit of the address bus ABR will be described separately when the short circuit occurs in the lower 3 bits and when the short circuit occurs in the higher bits.

【0149】・アドレスバスABRの下位3ビットより
上位のビットでショートが発生した場合 この場合も、図13を例にとり、ABRの下位5ビット
目と6ビット目にショートが発生したとする。すなわ
ち、図13のアドレスはアドレスバスABM換算のアド
レスである。
When a short circuit occurs in the bits higher than the lower 3 bits of the address bus ABR In this case as well, it is assumed that a short circuit occurs in the lower 5th bit and the 6th bit of the ABR, taking FIG. 13 as an example. That is, the addresses in FIG. 13 are addresses converted into the address bus ABM.

【0150】検査Xでは、受信メモリ14を使用しない
から受信メモリ14で異常が発生しても関係なく、「正
常」と判断される。
In the inspection X, since the receiving memory 14 is not used, it is determined as "normal" regardless of the occurrence of an abnormality in the receiving memory 14.

【0151】検査Yでは、受信メモリ14のアドレス
「2」〜「5」(ABM換算のアドレス)に書き込むべ
きデータを実際にはアドレス「0」または「1」(AB
M換算のアドレス)に書き込んでしまう。従って、これ
らアドレス「2」〜「5」のデータを送受信データメモ
リ11に転送するとき、これらのデータはアドレス
「0」または「1」のデータを転送することになる。と
ころが、この場合には、全てのアドレスに同一データが
書き込まれているので、ホストコントローラ200は
「正常」と判断する。
In the inspection Y, the data to be written to the addresses "2" to "5" (ABM conversion address) of the reception memory 14 is actually the address "0" or "1" (AB).
It writes to the address of M conversion). Therefore, when the data at the addresses "2" to "5" are transferred to the transmission / reception data memory 11, the data at the address "0" or "1" are transferred. However, in this case, since the same data is written in all the addresses, the host controller 200 determines that it is “normal”.

【0152】検査Zでは、受信メモリ14のアドレス
「2」、「4」(ABM換算のアドレス)に書き込むべ
きデータをアドレス「0」(ABM換算のアドレス)に
書き込んでしまう。また、アドレス「3」、「5」のデ
ータをアドレス「1」に書き込んでしまう。これらのデ
ータの送受信データメモリ11への転送のときは、図1
4に示すように、送受信データメモリ11のアドレス
「0」、「2」、「4」には全て受信データメモリ14
のアドレス「0」からの同じデータが書き込まれてしま
う。この場合検査Zでは、送信データメモリ11のアド
レス「0」、「2」、「4」から全て異なるデータが読
み出されるべきなので「異常」と判断される。
In the inspection Z, the data to be written to the addresses “2” and “4” (ABM conversion address) of the reception memory 14 are written to the address “0” (ABM conversion address). Further, the data at the addresses "3" and "5" are written to the address "1". When transferring these data to the transmission / reception data memory 11, FIG.
As shown in FIG. 4, all of the received data memory 14 is assigned to the addresses “0”, “2”, and “4” of the transmission / reception data memory 11.
The same data from the address "0" of is written. In this case, in the inspection Z, different data should all be read from the addresses “0”, “2”, and “4” of the transmission data memory 11, so it is determined as “abnormal”.

【0153】・アドレスバスABRの下位3ビット内で
ショートが発生した場合 検査Xでは、受信メモリ14を使用しないから受信メモ
リ14で異常が発生しても関係なく、「正常」と判断さ
れる。
When a short circuit occurs in the lower 3 bits of the address bus ABR: In the inspection X, since the receiving memory 14 is not used, even if an abnormality occurs in the receiving memory 14, it is determined to be "normal".

【0154】検査Yでは、以下の理由により「異常」と
判定される。
The inspection Y is judged to be "abnormal" for the following reasons.

【0155】検査装置20から送信する同一データを1
6進でC6(11000110)とし、ABRの下位2ビット目
と下位3ビット目がシュートしているとする。また、受
信メモリ14に対しては、上位ビットから下位ビットに
向かってデータが1ビットずつ書き込まれていくとす
る。先の図13からも判るように、本来アドレスを
「5」と指定しているときには実際にはアドレス「1」
を指定し、以下同様にアドレス「4」のときはアドレス
「0」を、アドレス「3」のときはアドレス「1」を、
アドレス「2」のときはアドレス「0」を指定してい
る。従って、図15に示すようにアドレス「1」にはア
ドレス「5」「3」「1」が指定されたときの計3回デ
ータが書き込まれ結果的にアドレス「1」には最後に書
き込まれるアドレス「1」が指定されたときのデータ
“1”が書き込まれる。また、同様にしてアドレス
「0」には、最後に書き込まれるアドレス「0」が指定
されたときのデータ“0”が書き込まれる。
The same data transmitted from the inspection device 20 is set to 1
It is assumed that C6 (11000110) is set in hexadecimal, and the lower 2nd bit and lower 3rd bit of ABR are shooting. Further, it is assumed that data is written in the receiving memory 14 bit by bit from the upper bit to the lower bit. As can be seen from FIG. 13 above, when the address is originally designated as "5", the address is actually "1".
In the same manner, specify address "0" when address "4", address "1" when address "3",
When the address is "2", the address "0" is designated. Therefore, as shown in FIG. 15, data is written to the address "1" three times when the addresses "5", "3" and "1" are designated, and as a result, the data is finally written to the address "1". The data "1" when the address "1" is designated is written. Similarly, the data "0" when the last written address "0" is designated is written in the address "0".

【0156】その後、受信メモリ14からデータが読み
出されるときは、同様にしてアドレス「5」〜「2」か
らはデータが読み出されず、図15に示すようにアドレ
ス「0」及び「1」からそれぞれ3回ずつデータが読み
出されることになり、最初書き込んだデータC6とは異
なるようになり、「異常「と判定される。
Thereafter, when the data is read from the reception memory 14, the data is not read from the addresses "5" to "2" in the same manner, and the data is read from the addresses "0" and "1" as shown in FIG. The data is read out three times, and the data C6 is different from the first written data C6, which is determined as "abnormal".

【0157】検査Zでは、以下の理由により「異常」と
判定される。各アドレスに対する異なるデータとして図
12に示したようなデータを採用したとすると、先の図
15に示したものと同じビット転送が行われ、結果的に
図16に示すようなデータが各アドレスに記憶されるこ
とになる。この場合は、各アドレスに全て異なるデータ
が記憶されなくてはいけないので異常と判定される。な
お、図16においては、ビット転送は全てのアドレスに
ついて図15と全く同様に行われているが、図16中に
示した矢印は結果的にデータが“0”から“1”へ、ま
たは“1”から“0”へ変化している部分のみを示し
た。
In the inspection Z, it is judged as "abnormal" for the following reasons. If the data shown in FIG. 12 is adopted as the different data for each address, the same bit transfer as that shown in FIG. 15 is performed, and as a result, the data shown in FIG. It will be remembered. In this case, it is determined to be abnormal because different data must be stored in each address. Note that in FIG. 16, bit transfer is performed for all addresses in exactly the same manner as in FIG. 15, but the arrow shown in FIG. 16 results in data from “0” to “1” or “1”. Only the portion changing from "1" to "0" is shown.

【0158】以上、(1)〜(3)の結果をまとめる
と、図17の表のようになる。すなわち、検査X,Y,
Zの検査を1通り行えば、そのどれかの検査で異常が発
生しても、その正常及び異常の組み合せを図17の表に
照らしあわせることで、メインコントローラ100内の
どこのアドレスバスで異常が発生しているかを特定する
ことができる。
The above results (1) to (3) are summarized in the table of FIG. That is, inspections X, Y,
If the inspection of Z is performed once, even if an abnormality occurs in any of the inspections, by comparing the combination of the normality and the abnormality in the table of FIG. 17, the abnormality occurs in any address bus in the main controller 100. Can be identified.

【0159】次に、アドレスバスのオープン異常の検査
について説明する。
Next, the inspection of the address bus open abnormality will be described.

【0160】オープンのときは、その信号線は不定であ
り、検査時間内ではHまたはLに固定とみなせる。いま
下位2ビット目がオープンでL固定されたとすると、指
定されるアドレスは図18のように変化する。
When open, the signal line is indefinite and can be regarded as fixed at H or L within the inspection time. Assuming that the lower 2nd bit is open and fixed at L, the designated address changes as shown in FIG.

【0161】すなわち、アドレスバスのオープンのとき
も結果的には本来指定されるべきアドレスが別のアドレ
スに置きかわることはアドレスバスのショートのときと
全く同様であり、このため各アドレスバスABP、AB
M、ABRでオープン異常が発生したときの前記検査
X、Y、Zについての検査結果は先のショートのとき、
すなわち図17の表に示したものと全く同じである。
That is, when the address bus is opened, the result is that the address that should originally be specified is replaced by another address, just as when the address bus is shorted. Therefore, each address bus ABP, AB
The inspection results for the inspections X, Y, and Z when an open abnormality occurs in M and ABR are as follows:
That is, it is exactly the same as that shown in the table of FIG.

【0162】[0162]

【発明の効果】以上説明したようにこの発明によれば、
検査装置からデータ内容の異なるデータフレーム信号を
複数個連続してメインコントローラへ送出するメインコ
ントローラの入力データ照合機能の検査の際、データ読
みだしの際、複数個のデータフレーム信号の送出が1通
り終了した際、メインコントローラから設定した回数個
のデータフレーム信号の受信が終了していないときは、
前記設定した回数の受信が終了するまで所定の同一デー
タを送出し続け、前記設定した回数の受信が終了した時
点で前記データフレーム信号の送信を再開するようにし
たので、メインコントローラから送信されるフレーム信
号と検査装置から送信するフレーム信号とを同期をとる
ことができ、メインコントローラ内の処理においてデー
タが途中で途切れるといったことがなくなり、前記入力
データ照合機能の検査を回路変更することなく誤検査な
く効率よくなし得る。
As described above, according to the present invention,
Multiple data frame signals with different data contents are continuously sent from the inspection device to the main controller. When the input data matching function of the main controller is inspected and data is read, one data frame signal is sent. When it is finished, if the reception of the number of data frame signals set from the main controller is not finished,
Since the predetermined same data is continuously transmitted until the reception of the set number of times is completed, and the transmission of the data frame signal is restarted at the time when the reception of the set number of times is completed, it is transmitted from the main controller. The frame signal and the frame signal transmitted from the inspection device can be synchronized, the data in the main controller is not interrupted in the middle, and the inspection of the input data collating function is erroneously inspected without changing the circuit. Can be done efficiently.

【0163】またこの発明によれば、3つの異なる検査
を行い、その正常・異常の関係からアドレスバスのどこ
がショートまたはオープンしているかを判定することが
できるので、検査時間を大幅に短縮することができる。
Further, according to the present invention, it is possible to perform three different tests and determine which of the address buses is short-circuited or open based on the normal / abnormal relationship, so that the test time can be greatly reduced. You can

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

【図1】この発明の要点を概念的に示した図。FIG. 1 is a diagram conceptually showing the main points of the present invention.

【図2】この発明の実施例を全体的に示したブロック
図。
FIG. 2 is a block diagram generally showing an embodiment of the present invention.

【図3】検査装置の受信側の構成を示したブロック回路
図。
FIG. 3 is a block circuit diagram showing a configuration of a receiving side of the inspection device.

【図4】検査装置の受信側の構成例を示すブロック回路
図。
FIG. 4 is a block circuit diagram showing a configuration example of a receiving side of the inspection device.

【図5】検査装置の受信側の構成例を示すブロック回路
図。
FIG. 5 is a block circuit diagram showing a configuration example of a receiving side of the inspection device.

【図6】同期モード及び受信設定回数の設定レジスタを
示す図。
FIG. 6 is a diagram showing a setting register of a synchronization mode and a reception setting frequency.

【図7】送信メモリの記憶内容の一例を示す図。FIG. 7 is a diagram showing an example of stored contents of a transmission memory.

【図8】送信されるデータフレーム信号の一例を示す
図。
FIG. 8 is a diagram showing an example of a data frame signal transmitted.

【図9】この発明の実施例を説明するタイムチャート。FIG. 9 is a time chart illustrating an embodiment of the invention.

【図10】この発明の実施例を説明するタイムチャー
ト。
FIG. 10 is a time chart explaining an embodiment of the present invention.

【図11】入力データ照合機能を検査するためのデータ
例を示す図。
FIG. 11 is a diagram showing an example of data for checking an input data collating function.

【図12】アドレスバスの検査に用いるデータ例を示す
図。
FIG. 12 is a diagram showing an example of data used for inspection of an address bus.

【図13】アドレスバスのショート異常の一例を示す
図。
FIG. 13 is a diagram showing an example of an address bus short circuit abnormality.

【図14】アドレスバスのショート異常の際の転送異常
を示す図。
FIG. 14 is a diagram showing a transfer abnormality when an address bus short circuit abnormality occurs.

【図15】アドレスバスのショートの際のビット転送異
常を示す図。
FIG. 15 is a diagram showing a bit transfer abnormality when the address bus is short-circuited.

【図16】アドレスバスのショートの際のビット転送異
常を示す図。
FIG. 16 is a diagram showing a bit transfer abnormality when the address bus is short-circuited.

【図17】3つの検査とアドレスバス異常位置との対応
を示す図。
FIG. 17 is a diagram showing a correspondence between three inspections and an address bus abnormal position.

【図18】アドレスバスのオープンのときの異常の一例
を示す図。
FIG. 18 is a diagram showing an example of an abnormality when the address bus is opened.

【図19】直列制御装置の全体的構成を示す図。FIG. 19 is a diagram showing an overall configuration of a serial control device.

【図20】データフレーム信号の伝播態様を示す図。FIG. 20 is a diagram showing a manner of propagation of a data frame signal.

【図21】メインコントローラから送信される初期フレ
ーム信号を示す図。
FIG. 21 is a diagram showing an initial frame signal transmitted from the main controller.

【図22】メインコントローラで受信される初期フレー
ム信号を示す図。
FIG. 22 is a diagram showing an initial frame signal received by the main controller.

【図23】サンプリング周期などを示す図。FIG. 23 is a diagram showing a sampling period and the like.

【図24】メインコントローラのメモリ回りの内部構成
を示す図。
FIG. 24 is a diagram showing an internal configuration around a memory of a main controller.

【図25】メインコントローラと検査装置との接続を示
す図。
FIG. 25 is a view showing the connection between the main controller and the inspection device.

【図26】センサデータの複数回照合機能検査のときに
用いるデータの一例を示す図。
FIG. 26 is a diagram showing an example of data used in multiple-time collation function inspection of sensor data.

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

1…センサ群 2…アクチュエータ群 10…ノード 20…検査装置 30…パーソナルコンピュータ 44…送信メモリ 100…メインコントローラ 200…ホストコントローラ DESCRIPTION OF SYMBOLS 1 ... Sensor group 2 ... Actuator group 10 ... Node 20 ... Inspection device 30 ... Personal computer 44 ... Transmission memory 100 ... Main controller 200 ... Host controller

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】1乃至複数のセンサ及びアクチュエータを
接続した複数のノードをメインコントローラを含んでル
ープ状に接続し、前記メインコントローラは第1および
第2の特殊コードおよび前記アクチュエータへの出力デ
ータを含むデータフレーム信号を所定周期で送出し、前
記各ノードは当該ノードに接続されたセンサからの入力
データを前記第1の特殊コードの後に付加し当該ノード
に接続されたアクチュエータへの出力データを前記第2
の特殊コードの後から抜き取るようにするとともに、前
記メインコントローラは前記複数のノードを介して受信
したデータフレーム信号中の前記センサの入力データが
連続してN回一致したときに真の入力データとして採用
する入力データ照合機能を有し、さらに前記メインコン
トローラはデータ受信中にデータ送信周期になるとデー
タ受信処理を強制終了して処理をデータ送信処理に切り
換えるデータ送信優先機能を有する直列制御装置におい
て、 無送信区間データを含む前記データフレーム信号の1周
期分のデータを複数種類記憶するメモリ手段と、 このメモリ手段の読出し開始アドレスをラッチする開始
アドレスレジスタと、 前記メモリ手段の読出し終了アドレスをラッチする終了
アドレスレジスタと、 前記開始アドレスレジスタの出力が初期ロードされ、所
定のクロック信号をカウントすることで前記初期ロード
からのカウント動作を行ない、このカウント出力を前記
メモリ手段の読み出しアドレスとして前記メモリ手段に
出力する第1のカウンタ手段と、 この第1のカウンタ手段の出力と前記終了アドレスレジ
スタの出力を比較し、比較結果が一致する度に第1の一
致信号を出力する第1の比較手段と、 前記メインコントローラからの受信フレームの個数をカ
ウントする第2のカウンタ手段と、 同期処理用の受信フレームの個数を設定する受信個数設
定手段と、 前記第2のカウンタ手段の出力と前記受信個数設定手段
の設定個数を比較し、比較結果が一致する度に第2の一
致信号を出力する第2の比較手段と、 前記メモリ手段の読み出しの際、複数の異なる入力デー
タ内容を持つデータフレーム信号が連続して送信される
よう前記読み出し開始アドレスおよび読み出し終了アド
レスを前記開始アドレスレジスタおよび終了アドレスレ
ジスタに設定する制御手段と、 前記メモリ手段の出力を前記メインコントローラに送信
する送信手段と、 前記メモリ手段からの読みだしの際、前記第1の比較手
段から第1の一致信号が出力されたとき前記第2の比較
手段から第2の一致信号が出力されていない場合は前記
第2の一致信号が出力されるまで所定の同一アドレスの
データを前記メモリ手段から読みだすとともに、前記第
2の一致信号が出力されると前記開始アドレスからのデ
ータ読みだしを再開させる第1の同期制御手段と、 前記前記第1の一致信号が出力されていない状態のとき
に前記第2の一致信号が出力された場合、データ読みだ
しを中断するとともに前記開始アドレスからのデータ読
みだしを再開させる第2の同期制御手段と、 を有する送信装置を具え、 前記メインコントローラでの入力データ照合結果を受信
するとととともに、メインコントローラでの前記入力デ
ータ照合機能の照合回数Nを可変しながら前記入力デー
タ照合機能を検査するようにしたことを特徴とする直列
制御装置の検査装置。
1. A plurality of nodes to which one or a plurality of sensors and actuators are connected are connected in a loop including a main controller, and the main controller outputs first and second special codes and output data to the actuator. A data frame signal including the data frame signal is transmitted at a predetermined cycle, each node adds input data from the sensor connected to the node after the first special code, and outputs data to the actuator connected to the node. Second
In addition to extracting from the special code of the above, the main controller determines as true input data when the input data of the sensor in the data frame signals received via the plurality of nodes match N times consecutively. In the serial controller having an input data collating function to be adopted, further, the main controller has a data transmission priority function of forcibly terminating the data reception process and switching the process to the data transmission process when the data transmission cycle comes during data reception, Memory means for storing a plurality of types of data for one cycle of the data frame signal including non-transmission section data, a start address register for latching a read start address of the memory means, and a read end address of the memory means The end address register and the start address register An output is initially loaded, and a counting operation from the initial load is performed by counting a predetermined clock signal, and a first counter means for outputting the count output to the memory means as a read address of the memory means, The output of the first counter means is compared with the output of the end address register, and a first comparing means for outputting a first coincidence signal each time the comparison result is coincident with the number of frames received from the main controller is calculated. The second counter means for counting, the reception number setting means for setting the number of reception frames for synchronization processing, the output of the second counter means and the set number of the reception number setting means are compared, and the comparison result is A second comparing unit that outputs a second matching signal each time a match occurs, and a plurality of different input data when reading the memory unit. Control means for setting the read start address and the read end address in the start address register and the end address register so that data frame signals having data contents are continuously transmitted, and an output of the memory means is transmitted to the main controller. And a second matching signal is not output from the second comparing means when the first matching signal is output from the first comparing means during reading from the memory means. Reads the data at the same predetermined address from the memory means until the second match signal is output, and restarts the data read from the start address when the second match signal is output. 1 and the second coincidence signal is output when the first coincidence signal is not being output. When the input data collation result is received by the main controller, the transmitting device includes: a second synchronization control unit that suspends the data reading and resumes the data reading from the start address when the input data matching result is received. In addition, the inspection device of the serial controller is characterized in that the input data collating function is inspected while changing the collation number N of the input data collating function in the main controller.
【請求項2】前記所定の同一アドレスは前記終了アドレ
スレジスタの設定値である請求項1記載の直列制御装置
の検査装置。
2. The serial controller inspection device according to claim 1, wherein the predetermined same address is a set value of the end address register.
【請求項3】受信したシリアルデータを記憶する受信メ
モリを有する受信手段と、この受信メモリのシリアルデ
ータをシリアル/パラレル変換するシリアル/パラレル
変換手段と、前記シリアル/パラレル変換された受信デ
ータが書き込まれると共に記憶されたパラレルデータの
送信データが読み出される送受信メモリと、送受信メモ
リから読み出されたデータをシリアルデータに変換して
送出する送信手段とを有するメインコントローラと、 前記送受信メモリに記憶する送信データを前記メインコ
ントローラへ出力するとともに前記送受信メモリに書き
込まれた受信データが入力されるホストコントローラと
を具え、前記受信メモリのアドレスバス、前記送受信メ
モリのホストコントローラ側のアドレスバスおよび前記
送受信メモリの前記送信手段及び受信手段側のアドレス
バスの異常を検査する直列制御装置の検査装置におい
て、 前記メインコントローラの送信手段の送信データを受信
すると共に前記メインコントローラの受信メモリへデー
タを送信する検査手段をメインコントローラへ接続する
と共に、 前記ホストコントローラからメインコントローラの送受
信メモリの全てのアドレスに同一データを書き込み、そ
のデータをメインコントローラの送信手段を介して検査
装置に送信し、前記検査手段で送受信メモリの全アドレ
スに同一データが書き込まれたか否かを検査する第1の
検査と、 検査手段からメインコントローラの受信メモリを介して
送受信メモリへ同一データを送信する事により送受信メ
モリの全アドレスに同一データを書き込み、正常な書き
込みが行われているか否かをホストコントローラで検査
する第2の検査と、 送受信メモリのアドレスバス中の1ビットだけが他のビ
ットとは異なる出力状態となるようなアドレスに対して
全て異なるデータが記憶されるよう検査手段からメイン
コントローラへデータを送信し、それらの記憶が正常に
行われているか否かをホストコントローラで検査する第
3の検査とを実行し、前記第1、第2及び第3の検査の
検査結果に基ずき前記受信メモリのアドレスバス、前記
送受信メモリのホストコントローラ側のアドレスバスお
よび前記送受信メモリの前記送信手段及び受信手段側の
アドレスバスのいずれで異常が発生ているかを検査する
様にしたことを特徴とする直列制御装置の検査装置。
3. Receiving means having a receiving memory for storing received serial data, serial / parallel converting means for converting serial data in the receiving memory into serial / parallel, and writing the serial / parallel converted received data. Stored in the transmission / reception memory, the main controller having a transmission / reception memory for reading out the stored transmission data of the parallel data, a transmission unit for converting the data read out from the transmission / reception memory into serial data, and transmitting the serial data; A host controller that outputs data to the main controller and receives received data written in the transmission / reception memory, the address bus of the reception memory, the address bus on the host controller side of the transmission / reception memory, and the transmission / reception memory The above In an inspection device of a serial control device for inspecting an abnormality of an address bus on the side of a transmission means and a reception means, a main inspection means for receiving the transmission data of the transmission means of the main controller and transmitting the data to a reception memory of the main controller is provided. In addition to connecting to the controller, the host controller writes the same data to all addresses of the transmission / reception memory of the main controller, sends the data to the inspection device via the transmission means of the main controller, and the inspection means transmits all of the transmission / reception memory. The first test to check whether the same data is written to the address and the same data is written to all addresses of the transmission / reception memory by transmitting the same data from the inspection means to the transmission / reception memory via the reception memory of the main controller , Normal writing is done The second check that checks with the host controller whether or not there is data, and all different data is stored for addresses where only one bit in the address bus of the transmission / reception memory has an output state different from other bits. And a third inspection in which the host controller inspects whether or not the storage is normally performed by transmitting data from the inspection means to the main controller, and the first, second and third inspections are performed. On the basis of the inspection result of (1), it is inspected which one of the address bus of the receiving memory, the address bus of the transmitting / receiving memory on the host controller side and the address bus of the transmitting / receiving memory of the transmitting / receiving memory has an abnormality. An inspection device for a serial control device characterized by the above.
JP22740991A 1991-09-06 1991-09-06 Check device for series controller Pending JPH0568043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22740991A JPH0568043A (en) 1991-09-06 1991-09-06 Check device for series controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22740991A JPH0568043A (en) 1991-09-06 1991-09-06 Check device for series controller

Publications (1)

Publication Number Publication Date
JPH0568043A true JPH0568043A (en) 1993-03-19

Family

ID=16860386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22740991A Pending JPH0568043A (en) 1991-09-06 1991-09-06 Check device for series controller

Country Status (1)

Country Link
JP (1) JPH0568043A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401014A (en) * 2022-01-04 2022-04-26 电子科技大学 Low-power-consumption parallel-serial conversion circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401014A (en) * 2022-01-04 2022-04-26 电子科技大学 Low-power-consumption parallel-serial conversion circuit

Similar Documents

Publication Publication Date Title
JP4211010B2 (en) Integrated circuit
US5461617A (en) Serial controller
JPH0568043A (en) Check device for series controller
JP2562703B2 (en) Data input controller for serial controller
JPS5836365B2 (en) interface couch
US5509029A (en) Serial data transmissions device and terminal unit for the same
US6289470B1 (en) Data monitor circuit
JPH07321795A (en) Buffer address management method
JP3109573B2 (en) Fault LSI detection method
JPH04233351A (en) Inspection device for series controller
JPH1164450A (en) Semiconductor-testing device
JPH0359703A (en) Failure diagnostic device for sequence controller
JP2722281B2 (en) Data transmission equipment
JP2512832B2 (en) Series controller
JPH11143790A (en) Control signal inputting and outputting device
JPH0334708B2 (en)
JPS6051136B2 (en) Data error detection method
JP2871966B2 (en) Fault detection circuit inspection system
JP2603159B2 (en) Node check device for serial control device and method therefor
JPH01143538A (en) Loop shaped data transmission equipment
JPH0714233B2 (en) Autopilot
JPH086870A (en) Data transfer device
JPH0211040A (en) Trouble diagnostic method for loop-shaped data transmission system
JPH03274848A (en) Bus line checking method
JPH03201845A (en) Abnormality generating position detector for serial controller