JP2008084276A - Programmable logic controller device - Google Patents

Programmable logic controller device Download PDF

Info

Publication number
JP2008084276A
JP2008084276A JP2006266706A JP2006266706A JP2008084276A JP 2008084276 A JP2008084276 A JP 2008084276A JP 2006266706 A JP2006266706 A JP 2006266706A JP 2006266706 A JP2006266706 A JP 2006266706A JP 2008084276 A JP2008084276 A JP 2008084276A
Authority
JP
Japan
Prior art keywords
block
extension
cable
external connector
test pattern
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
JP2006266706A
Other languages
Japanese (ja)
Inventor
Hideo Oketa
英男 桶田
Eiji Nakanishi
英治 中西
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2006266706A priority Critical patent/JP2008084276A/en
Publication of JP2008084276A publication Critical patent/JP2008084276A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an extendable programmable logic controller device transmitting and receiving data between a base block and respective extension blocks at high speed, and further early detecting the occurrence of a communication trouble due to a contact failure of an external connector. <P>SOLUTION: A cable checking means sends a plurality of bit data having a predetermined test pattern to an extension unit located on the downstream side via a group of signal lines obtained by bisecting a bus line in an extension cable in response to an arrival of a predetermined check start command, and also determines whether the bit data having the predetermined test pattern are normally returned from the extension unit located on the downstream side via the remaining group of signal lines to store the determination result in an internal register. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、基本ブロックと1又は2以上の増設ブロックとを増設ケーブルを介して連設してなるプログラマブル・コントローラ装置(以下、PLC装置と言う)に関する。   The present invention relates to a programmable controller device (hereinafter referred to as a PLC device) in which a basic block and one or more extension blocks are connected in series via an extension cable.

基本ブロックと1又は2以上の増設ブロックとを増設ケーブルを介して連設してなるPLC装置は、従来より知られている。   2. Description of the Related Art Conventionally, a PLC device in which a basic block and one or more extension blocks are connected via an extension cable has been known.

このようなPLC装置の一例が図16に示されている。同図に示されるように、このPLC装置200は、1台の基本ブロック6と2台の増設ブロック7,8とを増設ケーブル91,92を介して連設して構成されている。   An example of such a PLC device is shown in FIG. As shown in the figure, the PLC device 200 is configured by connecting one basic block 6 and two extension blocks 7 and 8 through extension cables 91 and 92.

図示の基本ブロック6は、電源ユニット61と、CPUユニット62と、3台のI/Oユニット63と、ブロック間接続ユニット64とを含んでいる。なお、基本ブロック6には、それら以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   The illustrated basic block 6 includes a power supply unit 61, a CPU unit 62, three I / O units 63, and an inter-block connection unit 64. In addition to the above, the basic block 6 can also include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

それらのユニット62,63は、バックプレーン60上に敷設された内部バス(図示せず)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   These units 62 and 63 are electrically and mechanically connected to an internal bus (not shown) laid on the backplane 60 via a connector (not shown).

ブロック間接続ユニット64は、その前面に下流側外部コネクタ64bを有する。この下流側外部コネクタ64bは、ブロック間接続ユニット64の内部において、内部バスと導通している。   The inter-block connection unit 64 has a downstream external connector 64b on the front surface thereof. The downstream side external connector 64 b is electrically connected to the internal bus inside the inter-block connection unit 64.

増設ブロック7には、電源ユニット71と、5台のI/Oユニット72と、ブロック間接続ユニット73とが含まれている。増設ブロック7には、勿論それ以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   The expansion block 7 includes a power supply unit 71, five I / O units 72, and an inter-block connection unit 73. Of course, the extension block 7 can also include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

それらのI/Oユニット72は、バックプレーン70上に敷設された内部バス(図示せず)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   These I / O units 72 are electrically and mechanically connected to an internal bus (not shown) laid on the backplane 70 via a connector (not shown).

ブロック間接続ユニット73は、その前面に上流側外部コネクタ73a及び下流側外部コネクタ73bを有する。これらの外部コネクタ73a,73bは、ブロック間接続ユニット73の内部において、内部バスと導通している。   The inter-block connection unit 73 has an upstream external connector 73a and a downstream external connector 73b on the front surface thereof. These external connectors 73 a and 73 b are electrically connected to the internal bus inside the inter-block connection unit 73.

同様にして、増設ブロック8には、電源ユニット81と、5台のI/Oユニット82と、ブロック間接続ユニット83とが含まれている。増設ブロック8には、勿論それ以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   Similarly, the extension block 8 includes a power supply unit 81, five I / O units 82, and an inter-block connection unit 83. Of course, the expansion block 8 can also include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

それらのI/Oユニット82は、バックプレーン80上に敷設された内部バス(図示せず)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   These I / O units 82 are electrically and mechanically connected to an internal bus (not shown) laid on the backplane 80 via a connector (not shown).

ブロック間接続ユニット83は、その前面に上流側外部コネクタ83a及び下流側外部コネクタ83bを有する。これらの外部コネクタ83a,83bは、ブロック間接続ユニット83の内部において、内部バスと導通している。   The inter-block connection unit 83 has an upstream external connector 83a and a downstream external connector 83b on the front surface thereof. These external connectors 83a and 83b are electrically connected to the internal bus inside the inter-block connection unit 83.

そして、基本ブロック6と増設ブロック7との間は、外部コネクタ64b,73a同士を結ぶ増設ケーブル91で接続され、また増設ブロック7と増設ブロック8との間は、外部コネクタ73b,83a同士を結ぶ増設ケーブル92で接続されている。   The basic block 6 and the extension block 7 are connected by an extension cable 91 that connects the external connectors 64b and 73a. The extension block 7 and the extension block 8 are connected by the external connectors 73b and 83a. They are connected by an extension cable 92.

このような構成よりなるPLC装置によれば、基本ブロック6及び増設ブロック7,8に含まれる内部バスは、外部コネクタ64b,73a,73b,83a,83bへとそのまま導出されているので、それらの外部コネクタ同士を増設ケーブルで繋ぐだけで、基本ブロック6と各増設ブロック7,8との間における高速な信号のやり取りを低コストに実現することができる利点がある。   According to the PLC device having such a configuration, the internal buses included in the basic block 6 and the extension blocks 7 and 8 are directly led to the external connectors 64b, 73a, 73b, 83a, and 83b. There is an advantage that high-speed signal exchange between the basic block 6 and each of the expansion blocks 7 and 8 can be realized at low cost by simply connecting the external connectors with an expansion cable.

すなわち、基本ブロック6と各増設ブロック7,8との間をシリアル通信で結ぶとすれば、シリアル・パラレル変換処理を含む通信処理のために遅れ時間が発生することに加えて、通信のためのマイコンを各ブロックに搭載する必要からコストアップを招来する。   That is, if the basic block 6 and each of the additional blocks 7 and 8 are connected by serial communication, in addition to the occurrence of a delay time for communication processing including serial / parallel conversion processing, Cost increases due to the need to install a microcomputer in each block.

なお、現用系と待機系とを結ぶケーブルの一端にパイロット信号折り返し部を設け、パイロット信号の送受信が正常に行われている場合に限り、現用系からの診断信号の判定を行う二重化構成装置については、従来より知られている(特許文献1参照)。   Regarding the duplex configuration device that provides a pilot signal loopback at one end of the cable connecting the active system and the standby system, and determines the diagnostic signal from the active system only when pilot signals are transmitted and received normally Is conventionally known (see Patent Document 1).

また、運転中の第1装置の異常状態信号を2回以上連続して検出した場合に、第2の装置の起動信号を出力する検出回路を有する二重化装置の監視回路についても、従来より知られている(特許文献2参照)。
特開平11−96088号公報 特開昭63−305623号公報
Also, a monitoring circuit of a duplex device having a detection circuit that outputs a start signal of the second device when an abnormal state signal of the first device in operation is continuously detected twice or more is also conventionally known. (See Patent Document 2).
Japanese Patent Laid-Open No. 11-96088 JP-A 63-305623

しかしながら、このような増設ケーブルを介して内部バス同士を直結するタイプの増設可能なPLC装置にあっては、基本ブロックと各増設ブロックとの間におけるデータのやり取りを高速に行える利点を有する反面、各外部コネクタには内部バスを構成する信号ラインが全て導出されているため、外部コネクタの接続ピンの本数が多数となり、外部コネクタにおける接触不良を原因とする通信障害が発生しやすいと言う問題点がある。   However, in the type of PLC device that can be connected directly to each other via such an extension cable, there is an advantage that data can be exchanged between the basic block and each extension block at a high speed. Since all the signal lines that make up the internal bus are derived from each external connector, the number of connection pins of the external connector is large, and communication problems due to poor contact at the external connector are likely to occur. There is.

この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、基本ブロックと各増設ブロックとの間におけるデータのやり取りを高速に行なうことができ、しかも、外部コネクタにおける接触不良等を原因とする通信障害の発生を早期に検出することができる増設可能なPLC装置を提供することにある。   The present invention has been made paying attention to the above-mentioned problems, and the object of the present invention is to enable high-speed exchange of data between the basic block and each additional block, and an external connector. It is an object of the present invention to provide an expandable PLC device that can early detect the occurrence of a communication failure due to poor contact or the like.

上記の課題は、次のようなPLC装置により解決することができる。すなわち、このPLC装置は、基本ブロックと1又は2以上の増設ブロックとを増設ケーブルを介して連設して構成される。   The above problem can be solved by the following PLC device. That is, the PLC device is configured by connecting a basic block and one or more extension blocks via an extension cable.

基本ブロックは、CPUユニット及びI/Oユニットを含む複数の制御ユニットと、それらの制御ユニット同士を結ぶ内部バスと、内部バスを外部へ導出する下流側外部コネクタとを含んでいる。   The basic block includes a plurality of control units including a CPU unit and an I / O unit, an internal bus that connects the control units, and a downstream external connector that leads the internal bus to the outside.

増設ブロックは、I/Oユニットを含む複数の制御ユニットと、それらの制御ユニット同士を結ぶ内部バスと、内部バスを外部へ導出する上流側外部コネクタ、又は、内部バスを外部へ導出する上流側外部コネクタ及び下流側外部コネクタとを含んでいる。   The expansion block is a plurality of control units including I / O units, an internal bus connecting these control units, an upstream external connector that leads the internal bus to the outside, or an upstream side that leads the internal bus to the outside An external connector and a downstream external connector are included.

基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間は、外部コネクタ同士を繋ぐ増設ケーブルを介して接続されている。   The basic block and the extension block, and the extension block and the extension block are connected via an extension cable that connects the external connectors.

前記基本ブロックには、ケーブルチェック手段が含まれている。このケーブルチェック手段は、所定のチェック開始指令が到来するのに応答して、所定のテストパターンを有する複数ビットデータを、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して下流側に位置する増設ユニットへと送出する一方、残りの一群の信号ラインを介して下流側に位置する増設ユニットから所定のテストパターンを有する複数ビットデータが正常に返送されたか否かを判定して、その判定結果を内部レジスタに記憶させるように仕組まれている。   The basic block includes cable check means. In response to the arrival of a predetermined check start command, this cable check means transmits a plurality of bits of data having a predetermined test pattern downstream via a group of signal lines obtained by dividing the extension cable bus line into two. To determine whether or not a plurality of bit data having a predetermined test pattern has been normally returned from the extension unit located downstream via the remaining group of signal lines. The determination result is stored in an internal register.

前記増設ブロックのそれぞれには、ケーブルチェック手段とケーブルチェック折り返し手段とが含まれている。ケーブルチェック手段は、所定のチェック開始指令が到来するのに応答して、所定のテストパターンを有する複数ビットデータを、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して下流側に位置する増設ユニットへと送出する一方、残りの一群の信号ラインを介して下流側に位置する増設ユニットから所定のテストパターンを有する複数ビットデータが正常に返送されたか否かを判定して、その判定結果を内部レジスタに記憶させるように仕組まれている。   Each of the extension blocks includes a cable check unit and a cable check return unit. In response to the arrival of a predetermined check start command, the cable check means transmits a plurality of bits of data having a predetermined test pattern to the downstream side through a group of signal lines obtained by dividing the extension cable bus line into two. While determining whether or not the multi-bit data having a predetermined test pattern has been normally returned from the extension unit located downstream through the remaining group of signal lines, The determination result is stored in an internal register.

ケーブルチェック折り返し手段は、所定のチェック開始指令が到来するのに応答して、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して、上流側に位置する基本ブロック又は増設ブロックから所定のテストパターンを有する複数ビットデータが正常に受領されたか否かを判定すると共に、正常に受領されたときには、残りの一群の信号ラインを介して上流側に位置する基本ブロック又は増設ブロックへと所定のテストパターンを有する複数ビットデータを返送するように仕組まれたケーブルチェック折り返し手段とが含まれている。   In response to the arrival of a predetermined check start command, the cable check loop-back means transmits a predetermined signal from a basic block or expansion block located upstream via a group of signal lines that bisect the bus line in the expansion cable. It is determined whether or not the multi-bit data having the test pattern is normally received. When the multi-bit data is normally received, it is predetermined to the basic block or the additional block located on the upstream side through the remaining group of signal lines. And a cable check loop-back means configured to return multi-bit data having the following test pattern.

このような構成によれば、基本ブロックにはケーブルチェック手段が、また各増設ブロックにはケーブルチェック手段とケーブルチェック折り返し手段とが含まれているため、それらの手段を例えばタイマにより定期的に、或いは、CPUユニットからの指令で随時に作動させれば、各手段が自発的にケーブルチェックを行うと共に、各ブロック内の内部レジスタにはチェック結果が記憶保存されるため、これをCPUユニット側で適宜に参照することにより、ブロック間で高速な信号のやり取りを行いつつも、各増設ケーブルの接続状態を監視して、外部コネクタにおける接触不良等を原因とする通信障害の発生を早期に検出することができる。   According to such a configuration, the basic block includes the cable check means, and each extension block includes the cable check means and the cable check folding means. Alternatively, if it is operated at any time in response to a command from the CPU unit, each means performs a cable check spontaneously, and the check result is stored and stored in an internal register in each block. By appropriately referencing, high-speed signal exchange between blocks, while monitoring the connection status of each extension cable, early detection of the occurrence of communication failures due to poor contact in external connectors, etc. be able to.

このPLC装置は、より具体的には、次のように構成することもできる。すなわち、このPLC装置においては、基本ブロックは、内部バスと下流側外部コネクタとの間に介在されるインタフェース回路を含み、増設ブロックは、内部バスと上流側外部コネクタとの間、又は、内部バスと上流側外部コネクタ及び下流側外部コネクタとの間に介在されるインタフェース回路を含んでいる。   More specifically, this PLC device can also be configured as follows. That is, in this PLC device, the basic block includes an interface circuit interposed between the internal bus and the downstream external connector, and the extension block is between the internal bus and the upstream external connector, or the internal bus. And an upstream side external connector and a downstream side external connector.

外部コネクタのそれぞれは、互いに並列的な関係にある第1系統の外部コネクタと第2系統の外部コネクタとを含み、基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間は、第1系統の外部コネクタ同士を接続する第1系統の増設ケーブルと、第2系統の外部コネクタ同士を接続する第2系統の増設ケーブルとを介して並列接続されている。   Each of the external connectors includes an external connector of the first system and an external connector of the second system that are in parallel with each other. Between the basic block and the expansion block, and between the expansion block and the expansion block, The first system extension cable connecting the first system external connectors and the second system extension cable connecting the second system external connectors are connected in parallel.

インタフェース回路のそれぞれは、内部バスを構成する各信号ラインのそれぞれを第1系統の外部コネクタと第2系統の外部コネクタとに分岐接続する複数の分岐回路を含み、かつそれらの分岐回路のそれぞれは、流出する信号については第1系統及び第2系統への分流を許容する一方、流入する信号については第1系統と第2系統からの論理和による合流を許容するように仕組まれている。   Each of the interface circuits includes a plurality of branch circuits that branch-connect each signal line constituting the internal bus to the first system external connector and the second system external connector, and each of the branch circuits is The outflow signal is allowed to be diverted to the first system and the second system, while the inflow signal is configured to allow the merge by logical sum from the first system and the second system.

このような構成によれば、基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間における内部バス同士の接続を、常時、互いに並列な第1系統及び第2系統の増設ケーブルを通じて行なわれるため、いずれかの系統において外部コネクタにおける接触不良等を原因とする通信障害が発生しても残りの系統にて信号の送受信を継続することができる。   According to such a configuration, the connection between the internal buses between the basic block and the extension block and between the extension block and the extension block is always made through the extension cables of the first system and the second system parallel to each other. Therefore, even if a communication failure occurs due to contact failure or the like in the external connector in any of the systems, signal transmission / reception can be continued in the remaining systems.

なお、以上の基本ブロック及び増設ブロックにおける複数の制御ユニットとしては、CPUユニット、I/Oユニット以外にも、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の特殊機能ユニットを含むようにしてもよい。   The plurality of control units in the basic block and the extension block may include special function units such as a motion control unit, a PID arithmetic unit, and a communication unit in addition to the CPU unit and the I / O unit.

また、それらの制御ユニット同士を結ぶ内部バスとしては、バックプレーン上に敷設された構造のものに限るものではなく、各制御ユニット内にバスの一部を含ませておき、それらを複数コネクタを介して隣接接続することにより、一連のバスが出現する構造のもの(所謂、バックプレーンレスタイプのもの)であってもよい。   In addition, the internal bus connecting these control units is not limited to a structure laid on the backplane, and a part of the bus is included in each control unit, and a plurality of connectors are connected. It may have a structure in which a series of buses appear by being connected adjacently (so-called backplane-less type).

さらに、本発明は、ユニット単位での増減が不能なオールインワンタイプの基本ブロック、増設ブロックを有するPLC装置にも適用することができる。   Furthermore, the present invention can also be applied to a PLC device having an all-in-one basic block and an additional block that cannot be increased or decreased in units.

本発明によれば、基本ブロックと各増設ブロックとの間におけるデータのやり取りを高速に行なうことができ、しかも、外部コネクタにおける接触不良等を原因とする通信障害の発生を早期に検出することができる増設可能なPLC装置を提供することができる。   According to the present invention, data can be exchanged between the basic block and each additional block at high speed, and the occurrence of a communication failure due to a contact failure in the external connector can be detected at an early stage. An expandable PLC device can be provided.

以下に、この発明が適用されたPLC装置の好適な実施の一形態を添付図面を参照しながら詳細に説明する。   Hereinafter, a preferred embodiment of a PLC apparatus to which the present invention is applied will be described in detail with reference to the accompanying drawings.

本発明が適用されたPLC装置の外観図が図1に示されている。同図に示されるように、このPLC装置100は、1台の基本ブロック1と1台又は2台以上(この例では2台)の増設ブロック2,3とを含んで構成される。   An external view of a PLC device to which the present invention is applied is shown in FIG. As shown in the figure, the PLC device 100 includes one basic block 1 and one or more (two in this example) additional blocks 2 and 3.

図示の基本ブロック1は、1台の電源ユニット11と、1台のCPUユニット12と、2台のI/Oユニット13と、第1系統のブロック間接続ユニット14と、第2系統のブロック間接続ユニット15とを含んでいる。なお、基本ブロック1には、それら以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   The illustrated basic block 1 includes one power supply unit 11, one CPU unit 12, two I / O units 13, a first inter-block connection unit 14, and a second system block. The connection unit 15 is included. In addition to the above, the basic block 1 may include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

それらのユニット12,13は、バックプレーン10上に敷設された内部バス10B(図3、図4参照)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   These units 12 and 13 are electrically and mechanically connected to an internal bus 10B (see FIGS. 3 and 4) laid on the backplane 10 via a connector (not shown).

第1系統のブロック間接続ユニット14は、その前面に下流側外部コネクタ14bを有する。この下流側外部コネクタ14bは、後に詳細に説明するように、ブロック間接続ユニット14の内部において、内部コネクタCNを介して、内部バス10Bと導通している(図3、図4参照)。同様にして、第2系統のブロック間接続ユニット15も、その前面に下流側外部コネクタ15bを有する。この下流側外部コネクタ15bも、ブロック間接続ユニット15の内部において、内部コネクタCNを介して、内部バス10Bと導通している(図3、図4参照)。   The first block inter-block connection unit 14 has a downstream external connector 14b on the front surface thereof. As will be described later in detail, the downstream side external connector 14b is electrically connected to the internal bus 10B via the internal connector CN in the inter-block connection unit 14 (see FIGS. 3 and 4). Similarly, the inter-block connection unit 15 of the second system also has a downstream external connector 15b on the front surface thereof. This downstream external connector 15b is also electrically connected to the internal bus 10B via the internal connector CN inside the inter-block connection unit 15 (see FIGS. 3 and 4).

増設ブロック2には、電源ユニット21と、4台のI/Oユニット22と、第1系統のブロック間接続ユニット23と、第2系統のブロック間接続ユニット24とが含まれている。増設ブロック2には、勿論それ以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   The expansion block 2 includes a power supply unit 21, four I / O units 22, a first system inter-block connection unit 23, and a second system inter-block connection unit 24. Of course, the extension block 2 can also include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

4台のI/Oユニット22は、バックプレーン20上に敷設された内部バス20B(図3、図4参照)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   The four I / O units 22 are electrically and mechanically connected to an internal bus 20B (see FIGS. 3 and 4) laid on the backplane 20 via connectors (not shown).

第1系統のブロック間接続ユニット23は、その前面に上流側外部コネクタ23a及び下流側外部コネクタ23bを有する。これらの外部コネクタ23a,23bは、ブロック間接続ユニット23の内部において、内部コネクタCNを介して内部バス20Bと導通している(図3、図4参照)。同様にして、第2系統のブロック間接続ユニット24にも、その前面に上流側外部コネクタ24a及び下流側コネクタ24bを有する。これらの外部コネクタ24a,24bも、ブロック間接続ユニット24の内部において、内部コネクタCNを介して内部バス20Bと導通している(図3、図4参照)。   The first block inter-block connection unit 23 includes an upstream external connector 23a and a downstream external connector 23b on the front surface thereof. These external connectors 23a and 23b are electrically connected to the internal bus 20B via the internal connector CN in the inter-block connection unit 23 (see FIGS. 3 and 4). Similarly, the inter-block connection unit 24 of the second system also has an upstream external connector 24a and a downstream connector 24b on the front surface thereof. These external connectors 24a and 24b are also electrically connected to the internal bus 20B via the internal connector CN within the inter-block connection unit 24 (see FIGS. 3 and 4).

増設ブロック3には、電源ユニット31と、4台のI/Oユニット32と、第1系統のブロック間接続ユニット33と、第2系統のブロック間接続ユニット34とが含まれている。増設ブロック3には、勿論それ以外にも、例えば、モーションコントロールユニット、PID演算ユニット、通信ユニット等々の各種の特殊機能ユニットを含むこともできる。   The expansion block 3 includes a power supply unit 31, four I / O units 32, a first system inter-block connection unit 33, and a second system inter-block connection unit 34. Of course, the extension block 3 can also include various special function units such as a motion control unit, a PID arithmetic unit, a communication unit, and the like.

それらのI/Oユニット32は、バックプレーン30上に敷設された内部バス30B(図7参照)に対して、図示しないコネクタを介して電気的及び機械的に接続されている。   These I / O units 32 are electrically and mechanically connected to an internal bus 30B (see FIG. 7) laid on the backplane 30 via a connector (not shown).

第1系統のブロック間接続ユニット33は、その前面に上流側外部コネクタ33a及び下流側外部コネクタ33bを有する。これらの外部コネクタ33a,33bは、ブロック間接続ユニット33の内部において、内部コネクタCNを介して内部バス30Bと導通している。同様にして、第2系統のブロック間接続ユニット34も、その前面に上流側外部コネクタ34a及び下流側コネクタ34bを有する。これらの外部コネクタ34a,34bも、ブロック間接続ユニット34の内部において、内部コネクタCNを介して内部バス30Bと導通している。   The inter-block connection unit 33 of the first system has an upstream external connector 33a and a downstream external connector 33b on the front surface. These external connectors 33a and 33b are electrically connected to the internal bus 30B via the internal connector CN inside the inter-block connection unit 33. Similarly, the inter-block connection unit 34 of the second system also has an upstream external connector 34a and a downstream connector 34b on the front surface thereof. These external connectors 34a and 34b are also electrically connected to the internal bus 30B via the internal connector CN inside the inter-block connection unit 34.

そして、基本ブロック1と2台の増設ブロック2,3とは、第1系統の2本の増設ケーブル41,51と第2系統の2本の増設ケーブル42,52とで順に連接されている。   The basic block 1 and the two extension blocks 2 and 3 are sequentially connected by two extension cables 41 and 51 of the first system and two extension cables 42 and 52 of the second system.

具体的には、第1系統について観察すると、基本ブロック1の第1系統のブロック間接続ユニット14の下流側外部コネクタ14bと増設ブロック2の第1系統のブロック間接続ユニット23の上流側外部コネクタ23aとの間は、第1系統の増設ケーブル41を介して接続される。同様にして、増設ブロック2の第1系統のブロック間接続ユニット23の下流側外部コネクタ23bと増設ブロック3の第1系統のブロック間接続ユニット33の上流側外部コネクタ33aとの間は、第1系統の増設ケーブル51を介して接続される。   Specifically, when the first system is observed, the downstream external connector 14b of the first block inter-block connection unit 14 of the basic block 1 and the upstream external connector of the first block inter-block connection unit 23 of the expansion block 2 are observed. 23a is connected via an extension cable 41 of the first system. Similarly, between the downstream external connector 23b of the first block inter-block connection unit 23 of the extension block 2 and the upstream external connector 33a of the first block inter-block connection unit 33 of the extension block 3, the first It is connected via an extension cable 51 of the system.

第2系統について観察すると、基本ブロック1の第2系統のブロック間接続ユニット15の下流側外部コネクタ15bと増設ブロック2の第2系統のブロック間接続ユニット24の上流側外部コネクタ24aとの間は、第2系統の増設ケーブル42を介して接続される。同様にして、増設ブロック2の第2系統のブロック間接続ユニット24の下流側外部コネクタ24bと増設ブロック3の第2系統のブロック間接続ユニット34の上流側外部コネクタ34aとの間は、第2系統の増設ケーブル52を介して接続される。   When observing the second system, the space between the downstream external connector 15b of the second block inter-block connection unit 15 of the basic block 1 and the upstream external connector 24a of the second block inter-block connection unit 24 of the expansion block 2 is The second extension cable 42 is connected. Similarly, between the downstream external connector 24 b of the second block inter-block connection unit 24 of the expansion block 2 and the upstream external connector 34 a of the second block inter-block connection unit 34 of the expansion block 3, the second They are connected via an extension cable 52 of the system.

基本ブロック1及び増設ブロック2の概略内部構成図が図2に示されている。同図に示されるように、基本ブロック1に着目すると、外部コネクタ14bと外部コネクタ15bとは互いに並列的な関係にあり、それらのコネクタ14b,15bと内部バス10Bとの間には、インタフェース回路10Aが介在される。   A schematic internal configuration diagram of the basic block 1 and the extension block 2 is shown in FIG. As shown in the figure, focusing on the basic block 1, the external connector 14b and the external connector 15b are in parallel with each other, and an interface circuit is provided between the connectors 14b and 15b and the internal bus 10B. 10A is interposed.

また、増設ブロック2に着目すると、外部コネクタ23aと外部コネクタ24aとは互いに並列的な関係にあり、外部コネクタ23bと外部コネクタ24bとも互いに並列的な関係にある。そして、それら対をなす二組の外部コネクタと内部バス20Bとの間には、インタフェース回路20Aが介在されている。   Focusing on the extension block 2, the external connector 23a and the external connector 24a are in parallel with each other, and the external connector 23b and external connector 24b are also in parallel with each other. An interface circuit 20A is interposed between the two pairs of external connectors and the internal bus 20B.

基本ブロック及び増設ブロックの詳細構成図(一方向信号線部分)が図3に、同詳細構成図(双方向信号線部分)が図4に示されている。   A detailed configuration diagram (one-way signal line portion) of the basic block and the extension block is shown in FIG. 3, and a detailed configuration diagram (bidirectional signal line portion) is shown in FIG.

それらの図から明らかなように、インタフェース回路10Aは、内部バス10Bを構成する各信号ラインのそれぞれを第1系統の外部コネクタ14bと第2系統の外部コネクタ15bとに分岐接続する複数の分岐回路を含み、かつそれらの分岐回路のそれぞれは、流出する信号については第1系統及び第2系統への分流を許容する一方、流入する信号については第1系統と第2系統からの論理和による合流を許容するように仕組まれている。同様にして、インタフェース回路20Aは、内部バス20Bを構成する各信号ラインのそれぞれを第1系統の外部コネクタ23a,23bと第2系統の外部コネクタ24a,24bとに分岐接続する複数の分岐回路を含んでいる。   As is apparent from these drawings, the interface circuit 10A includes a plurality of branch circuits that branch-connect each signal line constituting the internal bus 10B to the first system external connector 14b and the second system external connector 15b. And each of the branch circuits allows branching of the outflow signal to the first system and the second system, while the inflowing signal is joined by the logical sum from the first system and the second system. It is structured to allow. Similarly, the interface circuit 20A includes a plurality of branch circuits that branch-connect each signal line constituting the internal bus 20B to the first system external connectors 23a and 23b and the second system external connectors 24a and 24b. Contains.

より具体的には、この例にあっては、内部バス10B,20Bは、それぞれ、16本のデータ信号ライン(双方向)と、5本のアドレス信号ライン(上流から下流への一方向)と、10本の制御信号ライン(上流から下流への一方向)と、4本の制御信号ライン(下流から上流への一方向)とを有している。なお、16本のデータ信号ラインは、アドレス信号ラインも兼ねている。   More specifically, in this example, the internal buses 10B and 20B each have 16 data signal lines (bidirectional) and 5 address signal lines (one direction from upstream to downstream). There are 10 control signal lines (one direction from upstream to downstream) and four control signal lines (one direction from downstream to upstream). The 16 data signal lines also serve as address signal lines.

図3には、内部バスを構成する信号ラインの中で、上流から下流へと向かう一方向の第1の制御信号ラインと、下流から上流へと向かう一方向の第2の制御信号ラインとが取り出して示されている。   In FIG. 3, among the signal lines constituting the internal bus, there are a first control signal line in one direction from upstream to downstream and a second control signal line in one direction from downstream to upstream. Taken out and shown.

第1の信号ラインに着目すると、基本ブロック1のインタフェース回路10Aにおいては、バックプレーン上の幹線ライン101と、バックプレーン上の2本の支線ライン101a,101bとで分岐回路が構成される。支線ライン101a,101bは、ブロック間接続ユニット14,15内の支線ライン141,151を経由して、第1系統の外部コネクタ14b,第2系統の外部コネクタ15bへと導出される。増設ブロック2のインタフェース回路20Aにおいては、バックプレーン上の幹線ライン201と、バックプレーン上の2本の支線ライン201a,201bとで分岐回路が構成される。この場合、それら3本のラインの分岐点には、2本の支線ライン201a,201bから1本の幹線ライン201への合流方向に向けて、OR回路203が介在される。支線ライン201a,201bは、ブロック間接続ユニット23,24内の支線ライン231,241を経由して、第1系統の外部コネクタ23a,23b,第2系統の外部コネクタ24a,24bへと導出される。   Focusing on the first signal line, in the interface circuit 10A of the basic block 1, a branch circuit is configured by the main line 101 on the backplane and the two branch lines 101a and 101b on the backplane. The branch lines 101a and 101b are led to the first external connector 14b and the second external connector 15b via the branch lines 141 and 151 in the inter-block connection units 14 and 15, respectively. In the interface circuit 20A of the extension block 2, a branch circuit is configured by the main line 201 on the backplane and the two branch lines 201a and 201b on the backplane. In this case, an OR circuit 203 is interposed at the branch point of these three lines in the direction of merging from the two branch lines 201a and 201b to the one main line 201. The branch lines 201a and 201b are led out to the first system external connectors 23a and 23b and the second system external connectors 24a and 24b via the branch lines 231 and 241 in the inter-block connection units 23 and 24, respectively. .

第2の信号ラインに着目すると、基本ブロック1のインタフェース回路10Aにおいては、バックプレーン上の幹線ライン102と、バックプレーン上の2本の支線ライン102a,102bとで分岐回路が構成される。この場合、それら3本のラインの分岐点には、2本の支線ライン102a,102bから1本の幹線ライン102への合流方向の流れに向けて、OR回路103が介在される。支線ライン102a,102bは、ブロック間接続ユニット14,15内の支線ライン142,152を経由して、第1系統の外部コネクタ14b,第2系統の外部コネクタ15bへと導出される。増設ブロック2のインタフェース回路20Aにおいては、バックプレーン上の幹線ライン202と、バックプレーン上の2本の支線ライン202a,202bとで分岐回路が構成される。支線ライン202a,202bは、ブロック間接続ユニット23,24内の支線ライン232,242を経由して、第1系統の外部コネクタ23a,23b、及び第2系統の外部コネクタ24a,24bへと導出される。   Focusing on the second signal line, in the interface circuit 10A of the basic block 1, a branch circuit is constituted by the main line 102 on the backplane and the two branch lines 102a and 102b on the backplane. In this case, the OR circuit 103 is interposed at the branch point of these three lines toward the flow in the joining direction from the two branch lines 102a and 102b to the one main line 102. The branch lines 102a and 102b are led to the external connector 14b of the first system and the external connector 15b of the second system via the branch lines 142 and 152 in the inter-block connection units 14 and 15. In the interface circuit 20A of the extension block 2, a branch circuit is configured by the main line 202 on the backplane and the two branch lines 202a and 202b on the backplane. The branch lines 202a and 202b are led to the first system external connectors 23a and 23b and the second system external connectors 24a and 24b via the branch lines 232 and 242 in the inter-block connection units 23 and 24, respectively. The

図4には、内部バスを構成する信号ラインの中で、データ信号の方向を切り替えるための方向切替用の信号ラインと、双方向への流れを許容するデータ信号ラインとが取り出して示されている。   FIG. 4 shows a signal line for switching the direction for switching the direction of the data signal and a data signal line for allowing a bidirectional flow out of the signal lines constituting the internal bus. Yes.

方向切替用の制御信号ラインに着目すると、基本ブロック1のインタフェース回路10Aにおいては、バックプレーン上の幹線ライン104と、バックプレーン上の2本の支線ライン104a,104bとで分岐回路が構成される。支線ライン104a,104bは、ブロック間接続ユニット14,15内の支線ライン143,153を経由して、第1系統の外部コネクタ14b,第2系統の外部コネクタ15bへと導出される。増設ブロック2のインタフェース回路20Aにおいては、バックプレーン上の幹線ライン204と、バックプレーン上の2本の支線ライン204a,204bとで分岐回路が構成される。この場合、それら3本のラインの分岐点には、2本の支線ライン204a,204bから1本の幹線ライン204への合流方向に向けてOR回路206が介在される。支線ライン204a,204bは、ブロック間接続ユニット23,24内の支線ライン233,243を経由して、第1系統の外部コネクタ23a,23b、及び第2系統の外部コネクタ24a,24bへと導出される。   Focusing on the control signal line for switching the direction, in the interface circuit 10A of the basic block 1, a branch circuit is constituted by the main line 104 on the backplane and the two branch lines 104a and 104b on the backplane. . The branch lines 104a and 104b are led to the external connector 14b of the first system and the external connector 15b of the second system via the branch lines 143 and 153 in the inter-block connection units 14 and 15. In the interface circuit 20A of the extension block 2, a branch circuit is configured by the main line 204 on the backplane and the two branch lines 204a and 204b on the backplane. In this case, an OR circuit 206 is interposed at the branch point of these three lines in the direction of merging from the two branch lines 204a and 204b to the one main line 204. The branch lines 204a and 204b are led to the first system external connectors 23a and 23b and the second system external connectors 24a and 24b via the branch lines 233 and 243 in the inter-block connection units 23 and 24, respectively. The

データ信号ラインに着目すると、基本ブロック1のインタフェース回路10Aにおいては、バックプレーン上の幹線ライン105と、バックプレーン上の2本の支線ライン105a,105bとで分岐回路が構成される。   Focusing on the data signal line, in the interface circuit 10A of the basic block 1, a branch circuit is configured by the main line 105 on the backplane and the two branch lines 105a and 105b on the backplane.

この分岐回路は、より具体的には、互いに並列な関係を有する2つの分岐経路105−1,105−2を含んでいる。第1の分岐経路105−1には、OR回路106とスリーステートバッファ107aとが外部から信号を受領する方向に向けて介在されており、第2の分岐経路105−2にはスリーステートバッファ107bが外部へと信号を送出する方向へ向けて介在されている。スリーステートバッファ107aの切替入力端には、切替用の制御信号ライン104がインバータ素子107cを介して接続されるのに対して、スリーステートバッファ107bの切替入力端には、切替用の制御用の信号ライン104が直接に接続されている。そのため、それら二つのスリーステートバッファ107a,107bは、方向切替用の信号ライン104の論理状態に応じて択一的にイネーブルされる。   More specifically, this branch circuit includes two branch paths 105-1 and 105-2 having a parallel relationship with each other. The OR circuit 106 and the three-state buffer 107a are interposed in the first branch path 105-1 in the direction of receiving a signal from the outside, and the three-state buffer 107b is provided in the second branch path 105-2. Is interposed in the direction of sending a signal to the outside. The switching control signal line 104 is connected to the switching input terminal of the three-state buffer 107a via the inverter element 107c, whereas the switching input terminal of the three-state buffer 107b is connected to the switching control terminal. The signal line 104 is directly connected. Therefore, the two three-state buffers 107 a and 107 b are alternatively enabled according to the logic state of the direction switching signal line 104.

支線ライン105a,105bは、ブロック間接続ユニット14,15内の支線ライン144,154を経由して、第1系統の外部コネクタ14b,第2系統の外部コネクタ15bへと導出される。増設ブロック2のインタフェース回路20Aにおいては、バックプレーン上の幹線ライン205と、バックプレーン上の2本の支線ライン205a,205bとで分岐回路が構成される。   The branch lines 105a and 105b are led to the external connector 14b of the first system and the external connector 15b of the second system via the branch lines 144 and 154 in the inter-block connection units 14 and 15, respectively. In the interface circuit 20A of the extension block 2, a branch circuit is configured by the main line 205 on the backplane and the two branch lines 205a and 205b on the backplane.

この分岐回路は、より具体的には、互いに並列な関係を有する2つの分岐経路205−1,205−2を含んでいる。第1の分岐経路205−1には、OR回路206とスリーステートバッファ207aが外部から信号を受領する方向へと向けて介在されており、第2の分岐経路105−2にはスリーステートバッファ107bが外部へと信号を送出する方向へ向けて介在されている。スリーステートバッファ207aの切替入力端には、切替用の制御信号ライン204がそのまま接続されるのに対して、スリーステートバッファ207bの切替入力端には、切替用の制御用の信号ライン204がインバータ素子207cを介して接続されている。そのため、それら二つのスリーステートバッファ207a,207bは、方向切替用の信号ライン204の論理状態に応じて択一的にイネーブルされる。   More specifically, this branch circuit includes two branch paths 205-1 and 205-2 having a parallel relationship with each other. In the first branch path 205-1, an OR circuit 206 and a three-state buffer 207a are interposed in the direction of receiving a signal from the outside, and in the second branch path 105-2, the three-state buffer 107b. Is interposed in the direction of sending a signal to the outside. The switching control signal line 204 is directly connected to the switching input terminal of the three-state buffer 207a, whereas the switching control signal line 204 is connected to the inverter at the switching input terminal of the three-state buffer 207b. It is connected via the element 207c. Therefore, these two three-state buffers 207a and 207b are alternatively enabled according to the logic state of the signal line 204 for direction switching.

支線ライン204a,204bは、ブロック間接続ユニット23,24内の支線ライン233,243を経由して、第1系統の外部コネクタ23a,23b、及び第2系統の外部コネクタ24a,24bへと導出される。   The branch lines 204a and 204b are led to the first system external connectors 23a and 23b and the second system external connectors 24a and 24b via the branch lines 233 and 243 in the inter-block connection units 23 and 24, respectively. The

以上のPLC装置100のI/Oリフレッシュ動作を説明する。周知のように、PLC装置のCPUユニット12は、電源投入により起動されると、共通処理、I/Oリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理を繰り返し実行することにより、ユーザが適宜に作成したプログラム(ユーザプログラムと呼ぶ)を実行しつつ、所望の制御を実現する。   The I / O refresh operation of the PLC device 100 will be described. As is well known, when the CPU unit 12 of the PLC device is activated when the power is turned on, it is created appropriately by the user by repeatedly executing common processing, I / O refresh processing, user program execution processing, and peripheral service processing. The desired control is realized while executing the program (referred to as a user program).

このとき、I/Oリフレッシュ処理においては、基本ブロック1に搭載されたI/Oユニット13のみならず、増設ユニット2,3に搭載されたI/Oユニット22,32に対しても、IN処理並びにOUT処理を実行する。ここで、OUT処理においては、CPUユニット12に内蔵されたI/Oメモリ(図示せず)のOUT領域からOUTデータを読み出して、これを指定のI/Oユニットの出力領域に書き込む。一方、IN処理においては、指定のI/Oユニットの入力領域からINデータを読み出すと共に、これをCPUユニット12に内蔵されるI/OメモリのIN領域に書き込む。   At this time, in the I / O refresh process, the IN process is performed not only on the I / O unit 13 mounted on the basic block 1 but also on the I / O units 22 and 32 mounted on the extension units 2 and 3. In addition, OUT processing is executed. Here, in the OUT process, the OUT data is read from the OUT area of the I / O memory (not shown) built in the CPU unit 12 and written in the output area of the designated I / O unit. On the other hand, in the IN process, the IN data is read from the input area of the designated I / O unit and is written in the IN area of the I / O memory built in the CPU unit 12.

OUT処理を実行する場合、CPUユニット12のマイクロプロセッサ(図示せず)は、方向切替用の信号ライン104の論理レベルを“H”とすることにより、基本ブロック1のインタフェース回路10Aにおいては、バッファ107aをディスイネーブル、バッファ107bをイネーブルとし、同時に、増設ブロック2のインタフェース回路20Aにおいては、バッファ207aをイネーブル、バッファ207bをディスイネーブルに設定する。   When executing the OUT process, the microprocessor (not shown) of the CPU unit 12 sets the logic level of the direction switching signal line 104 to “H” so that the interface circuit 10A of the basic block 1 has a buffer. 107a is disabled and the buffer 107b is enabled. At the same time, in the interface circuit 20A of the additional block 2, the buffer 207a is enabled and the buffer 207b is disabled.

すると、図5に示されるように、基本ブロック1内においては、CPUユニット12からデータ信号ライン105上に出力されたデータ信号は、図中太線に示されるように、イネーブル状態にあるバッファ107bを通過したのち、2系統に分岐され、2系統の増設ケーブル41,42のそれぞれへと並列に送出される。一方、増設ブロック2内においては、2系統の増設ケーブル41,42から受領されたデータ信号は、OR回路206を経由して論理和処理されたのち、イネーブル状態にあるバッファ207aを経由してI/Oユニット22へと書き込まれる。   Then, as shown in FIG. 5, in the basic block 1, the data signal output from the CPU unit 12 onto the data signal line 105 is transferred to the enabled buffer 107b as shown by a thick line in the figure. After passing, it is branched into two systems and sent out in parallel to each of the two additional cables 41 and 42. On the other hand, in the extension block 2, the data signals received from the two extension cables 41 and 42 are logically ORed through the OR circuit 206 and then passed through the buffer 207a in the enabled state. / O unit 22 is written.

このとき、基本ブロック1から増設ブロック2へのデータ信号の送出は、互いに並列な2系統の増設ケーブル41,42を介して行われることに加えて、それら2系統のデータ信号はOR回路206を介して論理和処理されるため、2系統のケーブル41,42のうちで、いずれか一方の側にコネクタピンの接触不良等に起因する信号欠落があったとしても、他方の側が正常であるかぎり、通信に支障を来すことはなくなる。   At this time, the transmission of the data signal from the basic block 1 to the extension block 2 is performed through the two extension cables 41 and 42 in parallel with each other. Therefore, even if there is a signal loss due to a contact failure of the connector pin on one of the two systems of cables 41 and 42, the other side is normal. , Communication will not be hindered.

IN処理を実行する場合、CPUユニット12のマイクロプロセッサ(図示せず)は、方向切替用の信号ライン104の論理レベルを“L”とすることにより、基本ブロック1のインタフェース回路10Aにおいては、バッファ107aをイネーブル、バッファ107bをディスイネーブルとし、同時に、増設ブロック2のインタフェース回路20Aにおいては、バッファ207aをディスイネーブル、バッファ207bをイネーブルに設定する。   When executing the IN process, the microprocessor (not shown) of the CPU unit 12 sets the logic level of the direction switching signal line 104 to “L” so that the interface circuit 10A of the basic block 1 has a buffer. 107a is enabled and the buffer 107b is disabled. At the same time, in the interface circuit 20A of the additional block 2, the buffer 207a is disabled and the buffer 207b is enabled.

すると、図6に示されるように、増設ブロック2内においては、I/Oユニット22からデータ信号ライン205上に出力されたデータ信号は、図中太線に示されるように、イネーブル状態にあるバッファ207bを通過したのち、2系統に分岐され、2系統の増設ケーブル41,42のそれぞれへと並列に送出される。一方、基本ブロック1内においては、2系統の増設ケーブル41,42から受領されたデータ信号は、OR回路106を経由して論理和処理されたのち、イネーブル状態にあるバッファ107aを経由してCPUユニット12へと書き込まれる。   Then, as shown in FIG. 6, in the extension block 2, the data signal output from the I / O unit 22 onto the data signal line 205 is the buffer in the enabled state as shown by the bold line in the figure. After passing through 207b, it is branched into two systems and sent out in parallel to each of the two additional cables 41 and 42. On the other hand, in the basic block 1, the data signals received from the two additional cables 41 and 42 are logically ORed via the OR circuit 106 and then passed through the buffer 107a in the enabled state to the CPU. Written to unit 12.

このとき、増設ブロック2から基本ブロック1へのデータ信号の送出は、互いに並列な2系統の増設ケーブル41,42を介して行われることに加えて、それら2系統のデータ信号はOR回路106を介して論理和処理されるため、2系統のケーブル41,42のうちで、いずれか一方の側にコネクタの接触不良等に起因する信号欠落があったとしても、他方の側が正常であるかぎり、通信に支障を来すことはなくなる。   At this time, the transmission of the data signal from the extension block 2 to the basic block 1 is performed through the two extension cables 41 and 42 in parallel with each other, and the two data signals are sent to the OR circuit 106. Therefore, even if there is a signal loss due to a contact failure of the connector on one of the two systems of cables 41 and 42, as long as the other side is normal, It will not interfere with communication.

次に、以上の構成(図1〜図6参照)よりなるPLC装置100を前提として、運転中に各増設ケーブル41,42,51,52(図9参照)が正常か異常かのチェックを行うための処理について説明する。   Next, on the premise of the PLC device 100 having the above configuration (see FIGS. 1 to 6), it is checked whether each extension cable 41, 42, 51, 52 (see FIG. 9) is normal or abnormal during operation. The process for this is demonstrated.

先に説明したように、上述のPLC装置100は、基本ブロックと増設ブロックとの間、並びに、増設ブロック同士の間を、互いに並列な2本の増設ケーブルで結ぶと共に、信号を受け取る側ではそれら2本の増設ケーブル内信号線の論理和(OR)をとるものであるから、それら2本の増設ケーブルのいずれか一方においてコネクタピンの接触不良等が生じたとしても、他方が正常であれば、支障なく運転を継続できる利点を有するものであるが、とはいえ、そのような一方のケーブルにおいて導通不良が存在する状態を放置すれば、他方のケーブルにおいて同様な導通不良が生ずれば、最早、運転を停止せざるを得ない事態となるであろう。   As described above, the PLC device 100 described above connects the basic block and the extension block and between the extension blocks with two extension cables parallel to each other, and on the signal receiving side, Since the logical sum (OR) of the two extension cable signal lines is taken, even if a connector pin contact failure occurs in one of the two extension cables, the other is normal. However, it has the advantage that operation can be continued without hindrance. However, if the state where the continuity failure exists in such one cable is left as it is, if the same continuity failure occurs in the other cable, It will no longer be necessary to stop driving.

そこで、このPLC装置100においては、運転中に各増設ケーブル41,42,51,52(図9参照)が正常か異常かのチェックを行なうように仕組まれている。   Therefore, the PLC device 100 is configured to check whether each extension cable 41, 42, 51, 52 (see FIG. 9) is normal or abnormal during operation.

ケーブルチェックのための要部の概略構成図が図7に示されている。なお、図では、説明の便宜上、増設ケーブルは1系統分しか示されていないが、実際には、図9に示されるように、基本ブロック1と増設ブロック2との間、並びに、増設ブロック2,3同士の間は、互いに並列な2系統の増設ケーブル(41と42、51と52)で結ばれている。   FIG. 7 shows a schematic configuration diagram of a main part for the cable check. In the figure, for convenience of explanation, only one extension cable is shown, but actually, as shown in FIG. 9, between the basic block 1 and the extension block 2, as well as the extension block 2 , 3 are connected by two parallel extension cables (41 and 42, 51 and 52).

同図に示されるように、基本ブロック1のバックプレーン10上には、内部レジスタ108とケーブルチェック手段109とがそれぞれ内部バス10Bと接続された状態で搭載されている。ケーブルチェック手段109は、この例にあっては、所定の機能を有するASICで構成されている。ケーブルチェック手段109を構成するASICの機能については、後に、図14のフローチャートを参照しつつ詳細に説明する。   As shown in the figure, on the backplane 10 of the basic block 1, an internal register 108 and a cable check means 109 are mounted in a state of being connected to the internal bus 10B. In this example, the cable check means 109 is composed of an ASIC having a predetermined function. The function of the ASIC constituting the cable check means 109 will be described in detail later with reference to the flowchart of FIG.

各増設ブロック2,3のバックプレーン20,30には、内部レジスタ208,308と、ASICで構成されたケーブルチェック手段209,309と、ASICで構成されたケーブルチェック折返し手段210,310とが、それぞれ内部バス20B,30Bと接続された状態で搭載されている。ケーブルチェック折返し手段210,310を構成するASICの機能については、後に、図15のフローチャートを参照しつつ詳細に説明する。   On the backplanes 20 and 30 of the respective extension blocks 2 and 3, internal registers 208 and 308, cable check means 209 and 309 made of ASIC, and cable check turn-back means 210 and 310 made of ASIC, Each is mounted in a state of being connected to the internal buses 20B and 30B. The function of the ASIC constituting the cable check folding means 210 and 310 will be described in detail later with reference to the flowchart of FIG.

ケーブルチェック処理の概念図が図10に、ケーブルチェック処理におけるデータ(テストパターン)の流れを示す説明図が図11に、チェック用テストパターンの説明図が図12にそれぞれ示されている。   FIG. 10 is a conceptual diagram of the cable check process, FIG. 11 is an explanatory diagram showing the flow of data (test pattern) in the cable check process, and FIG. 12 is an explanatory diagram of the check test pattern.

それらの図から明らかなように、ここで採用されているケーブルチェックの手法は、ケーブルの1本1本について、その上流側ブロックから下流側ブロックへと所定のテストパターンデータを流す第1のステップと、下流側ブロックにおいて、受領したテストパターンデータの正誤を判定する第2のステップと、受領したテストパターンデータが正しいことを条件として、下流側ブロックから上流側ブロックへと所定のテストパターンデータを流す第3のステップと、上流側ブロックにおいて、受領したテストパターンデータの正誤を判定する第4のステップとを含んでいる(図10参照)。   As is apparent from these drawings, the cable check method employed here is a first step in which predetermined test pattern data is sent from the upstream block to the downstream block for each cable. And a second step for determining whether the received test pattern data is correct in the downstream block, and if the received test pattern data is correct, the predetermined test pattern data is transferred from the downstream block to the upstream block. This includes a third step of flowing and a fourth step of determining whether the received test pattern data is correct or not in the upstream block (see FIG. 10).

このとき、ケーブル内にテストパターンデータを流すについては、ケーブルに含まれる全ての信号ラインを一括使用して流すのではなく、それらの信号ラインを二つの群に分けると共に、上流側から下流側へとテストパターンデータを流すについては、それら二群の信号ラインのうちで一方の群の信号ラインを使用し、下流側から上流側へとテストパターンデータを流すについては、それら二群の信号ラインのうちで他方の群の信号ラインを使用するようにしている。(図11参照)。   At this time, for the test pattern data to flow in the cable, instead of using all the signal lines included in the cable in a batch, the signal lines are divided into two groups and from the upstream side to the downstream side. For the test pattern data flow, one of the signal lines of the two groups is used, and for the test pattern data to flow from the downstream side to the upstream side, the signal lines of the two groups are used. The other group of signal lines is used. (See FIG. 11).

この例にあっては、図12に示されるように、各ケーブル内には31本の信号ラインが含まれている。その内訳は、5本のアドレス信号ラインと、10本の制御信号ラインと、16本のデータ信号ラインとから構成される。そして、上流側ブロックから下流側ブロックへとテストパターンデータを流すについては、5本のアドレス信号ライン(アドレス信号1〜5)と10本の制御信号ライン(制御信号1〜10)の合わせて15本の信号ラインを使用する。一方、下流側ブロックから上流側ブロックへとテストパターンデータを流すについては、16本のデータ信号ライン(データ信号1〜16)を使用する。   In this example, as shown in FIG. 12, each signal includes 31 signal lines. The breakdown is composed of 5 address signal lines, 10 control signal lines, and 16 data signal lines. Then, for the test pattern data to flow from the upstream block to the downstream block, a total of 15 address signal lines (address signals 1 to 5) and 10 control signal lines (control signals 1 to 10) are combined. Use one signal line. On the other hand, for the flow of test pattern data from the downstream block to the upstream block, 16 data signal lines (data signals 1 to 16) are used.

このように、ケーブルに含まれる全信号ラインを二群に分けて、一群毎にテストパターンデータを流す理由は、信号ラインによってデータを流す方向に制限があることや、一度に流せるテストパターンデータのデータ幅に制限があるからである。データを流す方向に制限がなく、全信号ラインに一度にテストパターンデータを流せる場合は二群に分けなくても良い。   In this way, all signal lines included in the cable are divided into two groups, and the reason for flowing test pattern data for each group is that there is a limitation in the direction of data flow by the signal lines, and the test pattern data that can be flowed at once. This is because the data width is limited. When there is no restriction on the direction of data flow and test pattern data can be flowed to all signal lines at once, it is not necessary to divide into two groups.

実際のケーブルチェック処理は、基本ブロック1に搭載されるCPUユニット12、内部レジスタ108、及びケーブルチェック手段109と、各増設ブロック2,3に搭載される内部レジスタ208,308、ケーブルチェック手段209,309、及びケーブル折返し手段201,310とが協働することにより実現される。   The actual cable check processing includes the CPU unit 12 mounted in the basic block 1, the internal register 108, the cable check means 109, the internal registers 208 and 308 mounted in the respective expansion blocks 2 and 3, the cable check means 209, 309 and the cable folding means 201 and 310 cooperate to realize this.

以下に、図13〜図15のフローチャート、並びに、図8のケーブルチェックのための要部の詳細構成図を参照しながら、ケーブルチェック処理について説明する。なお、図13〜図15のフローチャート上で使用された符号(a)〜(g)と図8内で使用される符号(a)〜(g)とは対応する。   The cable check process will be described below with reference to the flowcharts of FIGS. 13 to 15 and the detailed configuration diagram of the main part for cable check in FIG. In addition, the code | symbol (a)-(g) used on the flowchart of FIGS. 13-15 corresponds with the code | symbol (a)-(g) used in FIG.

CPUユニット側のケーブルチェック関連処理を示すフローチャートが図13に示されている。このフローチャートに示される処理は、例えば、CPUユニットの共通処理又は周辺サービス処理、或いは、定時割込処理等で実行することができる。すなわち、当業者にはよく知られているように、PLC装置のCPUユニットは、電源投入により起動されたのちにあっては、共通処理、I/Oリフレッシュ処理、ユーザプログラム実行処理、及び周辺サービス処理を繰り返し実行するものである。   FIG. 13 is a flowchart showing a cable check related process on the CPU unit side. The processing shown in this flowchart can be executed by, for example, CPU unit common processing, peripheral service processing, or scheduled interruption processing. That is, as is well known to those skilled in the art, the CPU unit of the PLC device, after being activated upon power-on, is used for common processing, I / O refresh processing, user program execution processing, and peripheral services. The process is repeatedly executed.

図13のフローチャートにおいて処理が開始されると、先ず、図8に示されるように、基本ブロック1上の内部レジスタ108に含まれるケーブルチェック開始レジスタ108aをセット(“1”)することにより(a)、ケーブルチェック手段109に対して、ケーブルチェック開始通知を行う(ステップ1301)。しかるのち、CPUユニット12の側では、一定時間の経過を待機する状態となる(ステップ1302NO)。一方、ケーブルチェック手段109の側では、常時、ケーブルチェック開始レジスタ108aの状態を監視しており、その内容がセット(“1”)されると共に、ケーブルチェックモードの動作が開始される(b)。   When the processing is started in the flowchart of FIG. 13, first, as shown in FIG. 8, the cable check start register 108a included in the internal register 108 on the basic block 1 is set (“1”) (a ), A cable check start notification is sent to the cable check means 109 (step 1301). After that, the CPU unit 12 waits for a certain period of time (NO in step 1302). On the other hand, on the side of the cable check means 109, the state of the cable check start register 108a is constantly monitored, the contents thereof are set ("1"), and the operation of the cable check mode is started (b). .

ケーブルチェック手段109の機能を示すフローチャートが図14に示されている。同図において、ケーブルチェックモードが開始されると、先ず、下流側に位置する増設ブロック2のケーブルチェック折返し手段210及びケーブルチェック手段209へとケーブルチェックモードの開始を通知する処理(c)が実行される(ステップ1401)。このとき、通知を受けた下流側のケーブルチェック手段209は、さらに、自分より下流側に位置する増設ブロックのケーブルチェック折返し手段及びケーブルチェック手段へとケーブルチェックモードの開始を通知する(c)。これにより、一連の増設ブロック2,3,4上のケーブルチェック折返し手段210,310及びケーブルチェック手段209,309がほぼ同時に起動されることとなる。   A flowchart showing the function of the cable check means 109 is shown in FIG. In the figure, when the cable check mode is started, first, a process (c) for notifying the start of the cable check mode to the cable check return means 210 and the cable check means 209 of the extension block 2 located on the downstream side is executed. (Step 1401). At this time, the downstream cable check unit 209 that has received the notification further notifies the start of the cable check mode to the cable check return unit and the cable check unit of the additional block located downstream from itself (c). As a result, the cable check folding means 210 and 310 and the cable check means 209 and 309 on the series of extension blocks 2, 3 and 4 are activated almost simultaneously.

続いて、各ケーブルチェック手段209,309では、所定のテストパターンを有するデータを下流側に位置するブロックへと、5本のアドレス信号ライン(アドレス信号1〜5)と10本の制御信号ライン(制御信号1〜10)の合わせて15本の信号ラインを使用して送出する(d)(ステップ1402)。このとき使用されるテストパターンとしては、図12(a)に示されるように、隣接する2本の信号ライン間では常に信号の論理値が異なるようにしたテストパターンを使用することができる。このようなテストパターンによれば、隣接する信号ライン間における短絡の判定が容易となる。しかるのち、規定のケーブルチェック終了条件が成立するまでに(ステップ1404)、下流側ブロックから正常応答(所定のテストパターン)が受信されるのを待機する(ステップ1403NO)。ここでステップ1404の規定のケーブルチェック終了条件とは、例えば、CPUユニット12によりケーブルチェック開始レジスタ108aがリセット(“0”)されることである。ここで、正常応答受信と判定されれば(ステップ1403YES)、ケーブルチェック結果OKをケーブルチェックレジスタに書き込み(f)(ステップ1405)、ケーブルチェックモードを終了する。これに対して、正常応答受信と判定されることなく(ステップ1403NO)、所定時間が経過してケーブルチェック終了と判定されると(ステップ1404YES)、ケーブルチェック結果NGをケーブルチェック結果レジスタに書き込み(f)(ステップ1406)、ケーブルチェックモードを終了する。   Subsequently, in each of the cable check means 209 and 309, five address signal lines (address signals 1 to 5) and ten control signal lines (address signals 1 to 5) are transferred to a block located downstream with data having a predetermined test pattern. The control signals 1 to 10) are sent together using 15 signal lines (d) (step 1402). As a test pattern used at this time, as shown in FIG. 12A, a test pattern in which the logical value of a signal is always different between two adjacent signal lines can be used. According to such a test pattern, it is easy to determine a short circuit between adjacent signal lines. After that, until a prescribed cable check end condition is satisfied (step 1404), it waits for a normal response (predetermined test pattern) to be received from the downstream block (step 1403 NO). Here, the prescribed cable check end condition in step 1404 is, for example, that the cable check start register 108 a is reset (“0”) by the CPU unit 12. If it is determined that a normal response is received (step 1403 YES), the cable check result OK is written in the cable check register (f) (step 1405), and the cable check mode is terminated. On the other hand, if it is determined that the cable check has been completed after a predetermined time has elapsed (NO in step 1403) without being determined as normal response reception (YES in step 1404), the cable check result NG is written to the cable check result register ( f) (Step 1406), the cable check mode is terminated.

ケーブルチェック折返し手段210,310の機能を示すフローチャートが図15に示されている。同図に示されるように、ケーブルチェック折返し手段210,310のそれぞれは、ケーブルチェック開始信号の受信(c)により、ケーブルチェックモードが開始されると、規定のケーブルチェック終了条件が成立するまでに(ステップ1502)、上流側に位置するブロックから正常応答(所定のテストパターン)が受信されるのを待機する(ステップ1501NO)。   A flowchart showing the functions of the cable check folding means 210, 310 is shown in FIG. As shown in the figure, when the cable check mode is started by receiving the cable check start signal (c), each of the cable check return means 210 and 310 until the prescribed cable check end condition is satisfied. (Step 1502), it waits for a normal response (predetermined test pattern) to be received from the block located upstream (NO in Step 1501).

規定のケーブルチェック終了条件が成立するまでに(ステップ1502)、上流側に位置するブロックから正常応答(所定のテストパターン)が受信されると(ステップ1501YES)、ケーブルチェック折返し手段210,310のそれぞれは、所定のテストパターンを有するデータを上流側に位置するブロックへと、16本のデータ信号ライン(データ信号1〜16)を使用して送出する(e)(ステップ1503)。このとき使用れさるテストパターンとしても、図12(b)に示されるように、隣接する2本の信号ライン間では常に信号の論理値が異なるようにしたテストパターンを使用することができる。このようなテストパターンによれば、隣接する信号ライン間における短絡の判定が容易となる。しかるのち、ケーブルチェック終了条件が成立するのを待って(ステップ1504YES)、ケーブルチェックモードを終了する。一方、正常応答が受信されないまま、規定のケーブルチェック終了条件が成立すれば(ステップ1502YES)、ただちにケーブルチェックモードは終了する。ここでステップ1502、1504の規定のケーブルチェック終了条件とは、例えば、CPUユニット12によりケーブルチェック開始レジスタ108aがリセット(“0”)されることである。   If a normal response (predetermined test pattern) is received from the upstream block (step 1501 YES) until the prescribed cable check end condition is satisfied (step 1502), each of the cable check loopback means 210 and 310 is received. Sends data having a predetermined test pattern to the block located upstream (e) using the 16 data signal lines (data signals 1 to 16) (step 1503). As the test pattern used at this time, as shown in FIG. 12B, a test pattern in which the logical value of the signal is always different between two adjacent signal lines can be used. According to such a test pattern, it is easy to determine a short circuit between adjacent signal lines. Thereafter, the cable check mode is terminated after waiting for the cable check end condition to be satisfied (step 1504 YES). On the other hand, if a normal cable check end condition is satisfied without receiving a normal response (step 1502 YES), the cable check mode is immediately ended. Here, the prescribed cable check end condition in steps 1502 and 1504 is, for example, that the cable check start register 108 a is reset (“0”) by the CPU unit 12.

図14のフローチャートに戻って、規定のケーブルチェック終了条件が成立するまでに(ステップ1404NO)、下位側に位置するブロックから正常応答(所定のテストパターン)が受信されれば(ステップ1403YES)、ケーブルチェック結果レジスタ108b、208b,308bに「ケーブルチェック結果OK」に相当するデータを書き込んだのち(f)、ケーブルチェックモードを終了する。これに対して、正常応答が受信されないまま、規定のケーブルチェック終了条件が成立すれば(ステップ1404YES)、ケーブルチェック結果レジスタ108b、208b,308bに「ケーブルチェック結果NG」に相当するデータを書き込んだのち(f)、ケーブルチェックモードを終了する。   Returning to the flowchart of FIG. 14, if a normal response (predetermined test pattern) is received from the block located on the lower side (step 1403 YES) until the prescribed cable check end condition is satisfied (step 1404 NO), the cable After data corresponding to “cable check result OK” is written in the check result registers 108b, 208b, and 308b (f), the cable check mode is terminated. On the other hand, if a normal cable check end condition is satisfied without receiving a normal response (YES in step 1404), data corresponding to “cable check result NG” is written in the cable check result registers 108b, 208b, and 308b. Thereafter (f), the cable check mode is terminated.

図13のフローチャートに戻って、CPUユニット12の側では、一定の時間が経過するのを待って(ステップ1302YES)、ケーブルチェック開始レジスタ108aをリセット(“0”)することで、ケーブルチェック手段109に対してケーブルチェックの終了を通知(a)したのち(ステップ1303)、各ブロック1,2,3の内部レジスタ内のケーブルチェック結果レジスタ108b,208b,308bの内容をリード(g)することにより、ケーブルチェック結果の確認を行う(ステップ1304)。   Returning to the flowchart of FIG. 13, the CPU unit 12 waits for a certain period of time to elapse (YES in step 1302), and resets the cable check start register 108 a (“0”), whereby the cable check unit 109. After notifying the end of the cable check (a) (step 1303), the contents of the cable check result registers 108b, 208b, 308b in the internal registers of the blocks 1, 2, 3 are read (g). Then, the cable check result is confirmed (step 1304).

しかるのち、CPUユニット12の側では、確認されたケーブルチェック結果をCPUユニット内のユーザプログラムを構成する命令で参照可能な内部フラグに反映する(ステップ1305)。   Thereafter, on the CPU unit 12 side, the confirmed cable check result is reflected in an internal flag that can be referred to by an instruction constituting the user program in the CPU unit (step 1305).

以上の一連の処理(図13、図14、図15)が、図9に示されるように、全ての増設ケーブルのそれぞれについて実行されることにより、各増設ケーブルの正常、異常を示すデータが、内部フラグの内容として生成されるから、PLC装置のユーザは、それらのフラグを種々の異常対策処理の実行条件として、ユーザプログラムを組み込むことにより、ケーブル異常時における適切な対応が可能となる。   As shown in FIG. 9, the above series of processing (FIGS. 13, 14, and 15) is executed for each of all the extension cables, so that data indicating normality and abnormality of each extension cable is obtained. Since it is generated as the contents of the internal flag, the user of the PLC device can appropriately cope with the abnormality of the cable by incorporating the user program with these flags as execution conditions for various abnormality countermeasure processing.

すなわち、このPLC装置100は、基本ブロックと増設ブロックとの間、並びに、増設ブロック同士の間を、互いに並列な2本の増設ケーブルで結ぶと共に、信号を受け取る側ではそれら2本の増設ケーブル内信号線の論理和(OR)をとるものであるから、それら2本の増設ケーブルのいずれか一方においてコネクタピンの接触不良等が生じたとしても、他方が正常であれば、支障なく運転を継続できる利点を有するものであるが、とはいえ、そのような一方のケーブルにおいて導通不良が存在する状態を放置すれば、他方のケーブルにおいて同様な導通不良が生ずれば、最早、運転を停止せざるを得ない事態となるであろう。   In other words, the PLC device 100 connects the basic block and the extension block and between the extension blocks with two extension cables parallel to each other, and on the signal receiving side, the two extension cables are connected. Since the logical sum (OR) of the signal lines is taken, even if a connector pin contact failure occurs in one of these two extension cables, if the other is normal, operation continues without any problems. However, if such a continuity failure exists in one of the cables, and if a similar continuity failure occurs in the other cable, the operation is stopped immediately. It will be an unavoidable situation.

そこで、このようなケーブルチェック機能を組み込むことにより、片方のケーブルだけで運転しているような異常状況が発生した場合には、ただちに、これをユーザに警告等することにより、適切なメンテナンスを行って、2本のケーブルを使用する正常な状態に復帰させることが可能となり、より一層の信頼性を向上することができる。   Therefore, by incorporating such a cable check function, if an abnormal situation occurs in which only one cable is operating, an appropriate maintenance is performed immediately by warning the user. Thus, it is possible to return to a normal state in which two cables are used, and further reliability can be improved.

以上説明したPLC装置100によれば、基本ブロック1にはケーブルチェック手段109が、また各増設ブロック2,3にはケーブルチェック手段209,309とケーブルチェック折り返し手段210,310とが含まれているため、それらの手段を例えばタイマにより定期的に、或いは、CPUユニットからの指令で随時に作動させれば、各手段が自発的にケーブルチェックを行うと共に、各ブロック内の内部レジスタ108,208,308にはチェック結果が記憶保存されるため、これをCPUユニット12側で適宜に参照することにより、ブロック間で高速な信号のやり取りを行いつつも、各増設ケーブルの接続状態を監視して、外部コネクタにおける接触不良等を原因とする通信障害の発生を早期に検出することができる。   According to the PLC apparatus 100 described above, the basic block 1 includes the cable check means 109, and each of the additional blocks 2 and 3 includes the cable check means 209 and 309 and the cable check return means 210 and 310. Therefore, if these means are operated periodically, for example, by a timer, or at any time according to a command from the CPU unit, each means performs a cable check spontaneously, and the internal registers 108, 208, Since the check result is stored and saved in 308, the connection status of each extension cable is monitored while high-speed signal exchange is performed between the blocks by appropriately referring to this on the CPU unit 12 side. It is possible to detect the occurrence of a communication failure due to poor contact in the external connector at an early stage.

本発明によれば、基本ブロックと各増設ブロックとの間におけるデータのやり取りを高速に行なうことができ、しかも、外部コネクタにおける接触不良等を原因とする通信障害の発生を早期に検出することができるケーブルを介して増設可能なPLC装置を提供することができる。   According to the present invention, data can be exchanged between the basic block and each additional block at high speed, and the occurrence of a communication failure due to a contact failure in the external connector can be detected at an early stage. It is possible to provide a PLC device that can be added via a cable that can be used.

本発明が適用されたPLC装置の外観図である。1 is an external view of a PLC device to which the present invention is applied. 基本ブロック及び増設ブロックの概略内部構成図である。It is a schematic internal block diagram of a basic block and an extension block. 基本ブロック及び増設ブロックの詳細内部構成図(一方向信号線部分)である。It is a detailed internal block diagram (one-way signal line part) of a basic block and an extension block. 基本ブロック及び増設ブロックの詳細内部構成図(双方向信号線部分)である。It is a detailed internal block diagram (bidirectional signal line part) of a basic block and an extension block. 上流ブロックから下流ブロックへのデータの流れを示す説明図である。It is explanatory drawing which shows the flow of the data from an upstream block to a downstream block. 下流ブロックから上流ブロックへのデータの流れを示す説明図である。It is explanatory drawing which shows the flow of the data from a downstream block to an upstream block. ケーブルチェックのための要部の概略構成図である。It is a schematic block diagram of the principal part for a cable check. ケーブルチェックのための要部の詳細構成図である。It is a detailed block diagram of the principal part for a cable check. ケーブルチェック処理の手順を示す説明図である。It is explanatory drawing which shows the procedure of a cable check process. ケーブルチェック処理の概念図である。It is a conceptual diagram of a cable check process. ケーブルチェック処理におけるデータの流れを示す説明図である。It is explanatory drawing which shows the flow of the data in a cable check process. チェック用テストパターンの説明図である。It is explanatory drawing of the test pattern for a check. CPUユニット側のケーブルチェック関連処理を示すフローチャートである。It is a flowchart which shows the cable check related process by the side of CPU unit. ケーブルチェック手段の機能を示すフローチャートである。It is a flowchart which shows the function of a cable check means. ケーブルチェック折り返し手段の機能を示すフローチャートである。It is a flowchart which shows the function of a cable check return means. 従来のPLC装置の外観図である。It is an external view of the conventional PLC apparatus.

符号の説明Explanation of symbols

1 基本ブロック
2,3 増設ブロック
10,20,30 バックプレーン
10A,20A インタフェース回路
10B,20B 内部バス
11,21,31 電源ユニット
12 CPUユニット
13,22,32 I/Oユニット
14,23,33 第1系統のブロック間接続ユニット
15,24,34 第2系統のブロック間接続ユニット
41,51 第1系統の増設ケーブル
42,52 第2系統の増設ケーブル
23a,33a 第1系統の上流側外部コネクタ
14b,23b,33b 第1系統の下流側外部コネクタ
24a,34a 第2系統の上流側外部コネクタ
15b,24b,34b 第2系統の下流側外部コネクタ
101 一方向幹線ライン(バックプレーン上)
101a,101b 一方向支線ライン(バックプレーン上)
102 一方向幹線ライン(バックプレーン上)
102a,102b 一方向支線ライン(バックプレーン上)
103 OR回路
104 一方向支線ライン(バックプレーン上)
104a,104b 一方向支線ライン(バックプレーン上)
105 双方向幹線ライン(バックプレーン上)
105−1,105−2 一方向支線ライン(バックプレーン上)
105a,105b 双方向支線ライン(バックプレーン上)
106 OR回路
107a,107b スリーステートバッファ
107c インバータ素子
141,142 一方向支線ライン(ブロック間接続ユニット内)
143,144 一方向支線ライン(ブロック間接続ユニット内)
151,152 一方向支線ライン(ブロック間接続ユニット内)
153,154 一方向支線ライン(ブロック間接続ユニット内)
201 一方向幹線ライン(バックプレーン上)
201a,201b 一方向支線ライン(バックプレーン上)
202 一方向幹線ライン(バックプレーン上)
202a,202b 一方向支線ライン(バックプレーン上)
203 OR回路
204 一方向支線ライン(バックプレーン上)
205 双方向幹線ライン(バックプレーン上)
205−1,205−2 一方向支線ライン(バックプレーン上)
205a,205b 双方向支線ライン(バックプレーン上)
206 OR回路
207a,207b スリーステートバッファ
207c インバータ素子
231,232 一方向支線ライン(ブロック間接続ユニット内)
233,234 一方向支線ライン(ブロック間接続ユニット内)
241,242 一方向支線ライン(ブロック間接続ユニット内)
243,244 一方向支線ライン(ブロック間接続ユニット内)
108 内部レジスタ
108a ケーブルチェック開始レジスタ
108b ケーブルチェック結果レジスタ
109 ケーブルチェック手段
208 内部レジスタ
208b ケーブルチェック結果レジスタ
209 ケーブルチェック手段
210 ケーブルチェック折り返し手段
308 内部レジスタ
308b ケーブルチェック結果レジスタ
309 ケーブルチェック手段
310 ケーブルチェック折り返し手段
CN 内部コネクタ
1 Basic block 2, 3 Expansion block 10, 20, 30 Backplane 10A, 20A Interface circuit 10B, 20B Internal bus 11, 21, 31 Power supply unit 12 CPU unit 13, 22, 32 I / O unit 14, 23, 33 One-system block connection unit 15, 24, 34 Second-system block connection unit 41, 51 First-system extension cable 42, 52 Second-system extension cable 23a, 33a First-system upstream external connector 14b , 23b, 33b Downstream external connectors of the first system 24a, 34a Upstream external connectors of the second system 15b, 24b, 34b Downstream external connectors of the second system 101 One-way trunk line (on the backplane)
101a, 101b One-way branch line (on backplane)
102 One-way trunk line (on backplane)
102a, 102b One-way branch line (on backplane)
103 OR circuit 104 One-way branch line (on backplane)
104a, 104b One-way branch line (on backplane)
105 Bidirectional trunk line (on backplane)
105-1, 105-2 One-way branch line (on backplane)
105a, 105b Bidirectional branch line (on backplane)
106 OR circuit 107a, 107b Three-state buffer 107c Inverter element 141, 142 One-way branch line (in block connecting unit)
143,144 One-way branch line (inside block connection unit)
151,152 One-way branch line (in block connection unit)
153,154 One-way branch line (in block connection unit)
201 One-way trunk line (on backplane)
201a, 201b One-way branch line (on backplane)
202 One-way main line (on backplane)
202a, 202b One-way branch line (on backplane)
203 OR circuit 204 One-way branch line (on backplane)
205 Bidirectional trunk line (on backplane)
205-1, 205-2 One-way branch line (on backplane)
205a, 205b Bidirectional branch line (on backplane)
206 OR circuit 207a, 207b Three-state buffer 207c Inverter element 231, 232 One-way branch line (in inter-block connection unit)
233, 234 One-way branch line (in block connection unit)
241,242 One-way branch line (in block connection unit)
243, 244 One-way branch line (in block connection unit)
108 Internal register 108a Cable check start register 108b Cable check result register 109 Cable check means 208 Internal register 208b Cable check result register 209 Cable check means 210 Cable check return means 308 Internal register 308b Cable check result register 309 Cable check means 310 Cable check return Means CN Internal connector

Claims (2)

基本ブロックと1又は2以上の増設ブロックとを増設ケーブルを介して連設してなるPLC装置であって、
基本ブロックは、
CPUユニット及びI/Oユニットを含む複数の制御ユニットと、
それらの制御ユニット同士を結ぶ内部バスと、
内部バスを外部へ導出する下流側外部コネクタとを含み、
増設ブロックは、
I/Oユニットを含む複数の制御ユニットと、
それらの制御ユニット同士を結ぶ内部バスと、
内部バスを外部へ導出する上流側外部コネクタ、又は、内部バスを外部へ導出する上流側外部コネクタ及び下流側外部コネクタとを含み、
基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間は、外部コネクタ同士を繋ぐ増設ケーブルを介して接続されており、
前記基本ブロックには、
所定のチェック開始指令が到来するのに応答して、所定のテストパターンを有する複数ビットデータを、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して下流側に位置する増設ユニットへと送出する一方、残りの一群の信号ラインを介して下流側に位置する増設ユニットから所定のテストパターンを有する複数ビットデータが正常に返送されたか否かを判定して、その判定結果を内部レジスタに記憶させるように仕組まれたケーブルチェック手段が含まれており、
前記増設ブロックのそれぞれには、
所定のチェック開始指令が到来するのに応答して、所定のテストパターンを有する複数ビットデータを、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して下流側に位置する増設ユニットへと送出する一方、残りの一群の信号ラインを介して下流側に位置する増設ユニットから所定のテストパターンを有する複数ビットデータが正常に返送されたか否かを判定して、その判定結果を内部レジスタに記憶させるように仕組まれたケーブルチェック手段と、
所定のチェック開始指令が到来するのに応答して、増設ケーブル内バスラインを二分してなる一群の信号ラインを介して、上流側に位置する基本ブロック又は増設ブロックから所定のテストパターンを有する複数ビットデータが正常に受領されたか否かを判定すると共に、正常に受領されたときには、残りの一群の信号ラインを介して上流側に位置する基本ブロック又は増設ブロックへと所定のテストパターンを有する複数ビットデータを返送するように仕組まれたケーブルチェック折り返し手段とが含まれている、ことを特徴とするPLC装置。
A PLC device in which a basic block and one or more extension blocks are connected via an extension cable,
The basic block is
A plurality of control units including a CPU unit and an I / O unit;
An internal bus connecting those control units,
Including a downstream external connector for leading the internal bus to the outside,
Expansion block is
A plurality of control units including I / O units;
An internal bus connecting those control units,
Including an upstream external connector for leading the internal bus to the outside, or an upstream external connector and a downstream external connector for leading the internal bus to the outside,
The basic block and the expansion block, and the expansion block and the expansion block are connected via an expansion cable that connects the external connectors.
In the basic block,
In response to the arrival of a predetermined check start command, a plurality of bit data having a predetermined test pattern is transferred to an extension unit located downstream via a group of signal lines that bisect the bus line in the extension cable. On the other hand, it is determined whether or not the multi-bit data having a predetermined test pattern has been normally returned from the extension unit located on the downstream side through the remaining group of signal lines, and the determination result is stored in the internal register. Cable check means designed to be stored in
In each of the expansion blocks,
In response to the arrival of a predetermined check start command, a plurality of bit data having a predetermined test pattern is transferred to an extension unit located downstream via a group of signal lines that bisect the bus line in the extension cable. On the other hand, it is determined whether or not the multi-bit data having a predetermined test pattern has been normally returned from the extension unit located on the downstream side through the remaining group of signal lines, and the determination result is stored in the internal register. Cable checking means designed to memorize,
In response to the arrival of a predetermined check start command, a plurality of test patterns having a predetermined test pattern from a basic block or an additional block located on the upstream side through a group of signal lines that bisect the bus line in the additional cable It is determined whether or not the bit data has been normally received. When the bit data has been normally received, a plurality of test patterns having a predetermined test pattern are transferred to the basic block or the additional block located upstream via the remaining group of signal lines. A PLC device, comprising: a cable check return means configured to return bit data.
基本ブロックは、内部バスと下流側外部コネクタとの間に介在されるインタフェース回路を含み、
増設ブロックは、内部バスと上流側外部コネクタとの間、又は、内部バスと上流側外部コネクタ及び下流側外部コネクタとの間に介在されるインタフェース回路を含み、
外部コネクタのそれぞれは、互いに並列的な関係にある第1系統の外部コネクタと第2系統の外部コネクタとを含み、
基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間は、第1系統の外部コネクタ同士を接続する第1系統の増設ケーブルと、第2系統の外部コネクタ同士を接続する第2系統の増設ケーブルとを介して並列接続されており、
インタフェース回路のそれぞれは、内部バスを構成する各信号ラインのそれぞれを第1系統の外部コネクタと第2系統の外部コネクタとに分岐接続する複数の分岐回路を含み、かつそれらの分岐回路のそれぞれは、流出する信号については第1系統及び第2系統への分流を許容する一方、流入する信号については第1系統と第2系統からの論理和による合流を許容するように仕組まれており、
それにより、基本ブロックと増設ブロックとの間、及び増設ブロックと増設ブロックとの間における内部バス同士の接続を、常時、互いに並列な第1系統及び第2系統の増設ケーブルを通じて行う、ことを特徴とする請求項1に記載のPLC装置。
The basic block includes an interface circuit interposed between the internal bus and the downstream external connector,
The expansion block includes an interface circuit interposed between the internal bus and the upstream external connector, or between the internal bus and the upstream external connector and the downstream external connector,
Each of the external connectors includes a first system external connector and a second system external connector that are in parallel with each other,
Between the basic block and the extension block and between the extension block and the extension block, the second extension cable for connecting the first system extension cable and the second system external connector for connecting the first system external connectors to each other. It is connected in parallel via the system extension cable,
Each of the interface circuits includes a plurality of branch circuits that branch-connect each signal line constituting the internal bus to the first system external connector and the second system external connector, and each of the branch circuits is The signal that flows out is allowed to branch to the first system and the second system, while the signal that flows in is designed to allow merging by the logical sum from the first system and the second system,
As a result, the internal buses between the basic block and the extension block and between the extension block and the extension block are always connected through the extension cables of the first system and the second system that are parallel to each other. The PLC device according to claim 1.
JP2006266706A 2006-09-29 2006-09-29 Programmable logic controller device Pending JP2008084276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006266706A JP2008084276A (en) 2006-09-29 2006-09-29 Programmable logic controller device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006266706A JP2008084276A (en) 2006-09-29 2006-09-29 Programmable logic controller device

Publications (1)

Publication Number Publication Date
JP2008084276A true JP2008084276A (en) 2008-04-10

Family

ID=39355029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006266706A Pending JP2008084276A (en) 2006-09-29 2006-09-29 Programmable logic controller device

Country Status (1)

Country Link
JP (1) JP2008084276A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011118732A (en) * 2009-12-04 2011-06-16 Yokogawa Electric Corp I/o node
JP2011221935A (en) * 2010-04-14 2011-11-04 Yokogawa Electric Corp Dual unit
JP4926299B1 (en) * 2011-03-22 2012-05-09 三菱電機株式会社 Programmable logic controller
CN110890902A (en) * 2019-12-17 2020-03-17 深圳市显控科技股份有限公司 PLC equipment testing system and method
JP2021518610A (en) * 2018-04-06 2021-08-02 ベントリー・ネバダ・エルエルシー Surveillance system with bridges for interconnecting system elements

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5544684A (en) * 1978-09-27 1980-03-29 Fujitsu Ltd Duplicated bus circuit
JPS5635233A (en) * 1979-08-30 1981-04-07 Toshiba Corp Fault detecting system for bus line
JPS6318837A (en) * 1986-07-11 1988-01-26 Toshiba Corp Transmission data confirming device
JPH04333147A (en) * 1991-05-09 1992-11-20 Fujitsu Ltd Intra-device signal monitoring control system
JPH10333720A (en) * 1997-06-04 1998-12-18 Yokogawa Electric Corp Programmable logic controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5544684A (en) * 1978-09-27 1980-03-29 Fujitsu Ltd Duplicated bus circuit
JPS5635233A (en) * 1979-08-30 1981-04-07 Toshiba Corp Fault detecting system for bus line
JPS6318837A (en) * 1986-07-11 1988-01-26 Toshiba Corp Transmission data confirming device
JPH04333147A (en) * 1991-05-09 1992-11-20 Fujitsu Ltd Intra-device signal monitoring control system
JPH10333720A (en) * 1997-06-04 1998-12-18 Yokogawa Electric Corp Programmable logic controller

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011118732A (en) * 2009-12-04 2011-06-16 Yokogawa Electric Corp I/o node
JP2011221935A (en) * 2010-04-14 2011-11-04 Yokogawa Electric Corp Dual unit
JP4926299B1 (en) * 2011-03-22 2012-05-09 三菱電機株式会社 Programmable logic controller
WO2012127612A1 (en) * 2011-03-22 2012-09-27 三菱電機株式会社 Programmable logic controller
CN103430110A (en) * 2011-03-22 2013-12-04 三菱电机株式会社 Programmable logic controller
KR101512921B1 (en) 2011-03-22 2015-04-16 미쓰비시덴키 가부시키가이샤 Programmable logic controller
US9058294B2 (en) 2011-03-22 2015-06-16 Mitsubishi Electric Corporation Programmable logic controller
JP2021518610A (en) * 2018-04-06 2021-08-02 ベントリー・ネバダ・エルエルシー Surveillance system with bridges for interconnecting system elements
JP7082680B2 (en) 2018-04-06 2022-06-08 ベントリー・ネバダ・エルエルシー A monitoring system with a bridge for interconnecting system elements
CN110890902A (en) * 2019-12-17 2020-03-17 深圳市显控科技股份有限公司 PLC equipment testing system and method
CN110890902B (en) * 2019-12-17 2022-05-24 深圳市显控科技股份有限公司 PLC equipment testing system and method

Similar Documents

Publication Publication Date Title
JP5739308B2 (en) Method, apparatus, and computer program for failover operation
JP2008084276A (en) Programmable logic controller device
JP2001060160A (en) Cpu duplex system for controller
JPH10232727A (en) Power supply system
JP2008046702A (en) Plc device
JPH06259343A (en) Multiple bus control method and system using the same
JP2007293678A (en) Apparatus for diagnosing common bus connection
JP2007266708A (en) Erroneous connection detector and detection method of cable
JPH07134601A (en) Double bus control method
JP3291729B2 (en) Redundant computer system
JPH0286340A (en) Optical fiber transmission system
KR0176085B1 (en) Error detecting method of processor node and node network of parallel computer system
JP2009003729A (en) Data processing system
JP4564412B2 (en) Network device, network system, and toughness confirmation method
JP2006279328A (en) Crossbar switch
JP2706027B2 (en) Programmable controller
JPH09223444A (en) Auxiliary relay driving circuit
JP4788469B2 (en) Redundant CPU system
KR970002883B1 (en) Method for requiring the right of possession of common bus in a multi-processor
JPH07105038A (en) Connection switching device for duplex system
JP3528825B2 (en) Redundant line switching device and redundant line switching system
JPS61267810A (en) Deciding circuit for detection of service interruption
KR100220228B1 (en) Apparatus for controlling state transfer in the duplication architecture
JP3223773B2 (en) Line communication system and line communication method
JPH0454747A (en) Data transfer system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090115

A977 Report on retrieval

Effective date: 20101209

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20101215

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110427