JP2962431B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2962431B2
JP2962431B2 JP3088149A JP8814991A JP2962431B2 JP 2962431 B2 JP2962431 B2 JP 2962431B2 JP 3088149 A JP3088149 A JP 3088149A JP 8814991 A JP8814991 A JP 8814991A JP 2962431 B2 JP2962431 B2 JP 2962431B2
Authority
JP
Japan
Prior art keywords
output
input
module
bus
cpu
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.)
Expired - Lifetime
Application number
JP3088149A
Other languages
Japanese (ja)
Other versions
JPH04319703A (en
Inventor
和英 芦田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3088149A priority Critical patent/JP2962431B2/en
Publication of JPH04319703A publication Critical patent/JPH04319703A/en
Application granted granted Critical
Publication of JP2962431B2 publication Critical patent/JP2962431B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 [発明の目的]DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention]

【0001】[0001]

【産業上の利用分野】本発明は鉄鋼、製紙プラントや上
下水道などの公共システム、自動車産業など、産業用シ
ステムの制御に広く使用されているプログラマブルコン
トローラに係り、特にそのスキャン実行時間を短縮する
ために、I/Oの一括入出力用モジュールを設けたプロ
グラマブルコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller widely used for control of industrial systems such as steel, papermaking plants, public water systems such as water and sewage systems, and the automobile industry, and more particularly, to shorten the scan execution time. Therefore, the present invention relates to a programmable controller provided with an I / O batch input / output module.

【0002】[0002]

【従来の技術】プログラマブルコントローラ(以下、P
Cと略す)は多数のI/Oを使用する。特に大型のPC
になればなるほど制御する入出力点数は多くなり、I/
Oの台数も増える。これらのI/Oは1台のI/Oユニ
ットには入りきれず、複数のユニットに分散して実装さ
れる。各ユニットにはCPUモジュールからのI/Oバ
スが接続され、バッファモジュール等を介して、各ユニ
ット内のローカルI/Oバスに接続され、このバスにI
/Oが接続される。各I/Oには固有のI/Oアドレス
が与えられており、CPUモジュールはこのI/Oアド
レスを用いて各I/Oをアクセスする。さて、PCは制
御プログラムをスキャン実行する際に、スキャン毎に全
入力モジュールからデータを読み込み、全出力モジュー
ルには制御プログラムの演算結果を出力しなければなら
ない。これを一括入出力と呼んでいる。この一括入出に
かかる時間はI/Oが多くなるほど長くなり、PCのス
キャン時間を長くする、という欠点がある。
2. Description of the Related Art Programmable controllers (hereinafter referred to as P
C) uses a number of I / Os. Especially large PC
, The number of input / output points to be controlled increases,
The number of O also increases. These I / Os cannot be accommodated in one I / O unit and are distributed and implemented in a plurality of units. Each unit is connected to an I / O bus from a CPU module, and connected to a local I / O bus in each unit via a buffer module or the like.
/ O is connected. Each I / O is given a unique I / O address, and the CPU module accesses each I / O using this I / O address. Now, when scanning the control program, the PC must read data from all input modules for each scan and output the operation results of the control program to all output modules. This is called batch input / output. The time required for batch input / output becomes longer as the number of I / Os increases, and there is a disadvantage that the scan time of the PC becomes longer.

【0003】従来のPCのハードウェア構成を図2に示
す。図2において7はI/Oバスバッファモジュールで
ある。従来は一括入出力時にCPU2がバスバッファ7
を介してI/O5を一枚ずつその入出力種別に従って読
みだし、または書き込みを行っていた。従って、I/O
の台数が増えるに従って、入出力の時間も長くなってい
た。
FIG. 2 shows a hardware configuration of a conventional PC. In FIG. 2, reference numeral 7 denotes an I / O bus buffer module. Conventionally, the CPU 2 uses the bus buffer 7
, I / Os 5 are read or written one by one according to the input / output type. Therefore, I / O
As the number of devices increased, the input / output time also increased.

【0004】[0004]

【発明が解決しようとする課題】本発明は上記の事情に
鑑みてなされたもので、PCのI/Oユニットに一括入
出力用のモジュールを設け、この一括入出力用モジュー
ルにユニット内のI/Oの一括入出力を分担させること
により、複数のユニットにおけるI/Oの一括入出力を
並列に実行させることにより、PCの全体の一括入出力
時間を短縮させ、ひいてはスキャン実行時間を短縮させ
ることを目的としている。[発明の構成]
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and a module for collective input / output is provided in an I / O unit of a PC. The batch input / output of I / O in a plurality of units is performed in parallel by sharing the batch input / output of / O, so that the batch input / output time of the entire PC is reduced, and the scan execution time is reduced. It is intended to be. [Configuration of the Invention]

【0005】[0005]

【課題を解決するための手段】本発明は、複数の入出力
モジュ−ルをI/Oバスで接続した複数の入出力ユニッ
トと、入出力ユニットとCPUバスを介して接続され、
入出力ユニットの入出力モジュ−ルに対してデ−タの入
出力を行うCPUモジュ−ルを備えたプログラマブルコ
ントロ−ラにおいて、入出力ユニットは、入出力モジュ
−ルに対しデ−タの入出力を実行するマイクロプロセッ
サと、CPUモジュ−ルとマイクロプロセッサの双方か
らアクセス可能なデュアルポ−トメモリと、マイクロプ
ロセッサのアドレス、デ−タバスをI/Oバスに接続す
る第1のバッファ回路と、CPUモジュ−ルのアドレ
ス、デ−タバスをI/Oバスに接続する第2のバッファ
回路と、マイクロプロセッサ又はCPUモジュ−ルに対
してI/Oバスのバス権を調停し、第2のバッファ回路
を介してCPUモジュ−ルを入出力モジュ−ルに直接ア
クセスさせるバス権制御回路からなる一括入出力用モジ
ュ−ルを備え、CPUモジュ−ルが入出力ユニットの入
出力モジュ−ルに対しデ−タの入出力を行う際に、デュ
アルポ−トメモリにデ−タを一括入出力せしめマイクロ
プロセッサにデュアルポ−トメモリと入出力モジュ−ル
間でデ−タの入出力を実行させることを要旨とする。
のような構成において、複数の入出力ユニットの各々の
一括入出力用モジュ−ルにI/Oの一括入出力を実行さ
せることにより、各I/Oユニットでの一括入出力を並
列に実行することができる。 また、CPUモジュ−ルが
I/Oを直接アクセスしたいとき、バス権制御回路は、
マイクロプロセッサとの間でI/Oバスのバス権の調停
を行ってCPUモジュ−ルにバス権を与え、第2のバッ
ファ回路を介して直接アクセスさせる。
According to the present invention, there are provided a plurality of input / output units having a plurality of input / output modules connected by an I / O bus, and the input / output units connected to the input / output units via a CPU bus.
In a programmable controller having a CPU module for inputting / outputting data to / from an input / output module of an input / output unit, the input / output unit is configured to input / output data to / from the input / output module. A microprocessor for performing the output, a dual port memory accessible from both the CPU module and the microprocessor, and a microprocessor.
Connect the address and data bus of the processor to the I / O bus.
A first buffer circuit and an address of the CPU module.
And a second buffer for connecting the data bus to the I / O bus.
Circuit and microprocessor or CPU module.
To arbitrate the bus right of the I / O bus,
CPU module directly to input / output module via
A module for batch input / output consisting of a bus right control circuit for accessing the module is provided. When the CPU module inputs / outputs data to / from the input / output module of the input / output unit, the data is stored in the dual port memory. - micro allowed to bulk input and output data
Dual port memory and I / O module for processor
The gist is to execute data input / output between them. This
In such a configuration, each of a plurality of input / output units
I / O batch input / output is executed to the batch input / output module.
By doing so, batch input / output at each I / O unit is
Can be performed on columns. Also, the CPU module
When it is desired to directly access the I / O, the bus right control circuit
Arbitration of I / O bus right with microprocessor
To give a bus right to the CPU module, and
Direct access through the web circuit.

【0006】又、CPUモジュ−ルからの一括入出力開
始指令をCPUモジュ−ルからのバスにつながる複数の
一括入出力用モジュ−ルが同時に受け取ることにより、
各I/Oユニットでの一括入出力のタイミングを同期化
させ、CPUモジュ−ルがI/O一台ずつに入出力を行
っていく方式に比較して全I/Oでの入出力の時間差を
少なくさせる。
[0006] Also, CPU module - by receiving Le simultaneously, - CPU module bulk output start command from Le - a plurality of collective input-output modules connected to bus Le
The timing of batch input / output in each I / O unit is synchronized, and the CPU module performs input / output for each I / O unit.
Time difference between input and output in all I / O compared to
Let it be less.

【0007】[0007]

【実施例】本発明の要部構成の一実施例を図1に示す。
図1において1は一括入出力用モジュール、1−1はマ
イクロプロセッサ、1−2はバス権制御回路、1−3は
μP用バスバッファ、1−4はPCのCPU用バスバッ
ファ、1−5はデュアルポートメモリである。2はPC
のCPU、3はCPUのバス、4はI/Oバス、5は入
出力モジュール、6はI/Oユニットである。
FIG. 1 shows an embodiment of a main part of the present invention.
In FIG. 1, 1 is a batch input / output module, 1-1 is a microprocessor, 1-2 is a bus right control circuit, 1-3 is a bus buffer for μP, 1-4 is a bus buffer for CPU of PC, and 1-5. Is a dual port memory. 2 is PC
CPU, 3 is a CPU bus, 4 is an I / O bus, 5 is an input / output module, and 6 is an I / O unit.

【0008】本実施例では、CPU2はまず出力すべき
データを各一括入出力用モジュール1のデュアルポート
メモリ1−5に書き込む。この書き込みはメモリアドレ
スを使用して行われるので、高速に実行できる。又、バ
ス権制御回路1−2にはアドレスデコーダが含まれてお
り、CPU2が出力したアドレスに従って、対応するI
/Oユニットに分散して書き込みが行われる。
In this embodiment, the CPU 2 first writes data to be output to the dual port memory 1-5 of each module 1 for batch input / output. Since this writing is performed using the memory address, it can be executed at high speed. Further, the bus right control circuit 1-2 includes an address decoder, and according to the address output from the CPU 2,
Writing is performed in a distributed manner to / O units.

【0009】次にCPU2は全一括入出力用モジュール
1に対して起動指令を出力する。この起動出力は全一括
入出力用モジュール1に対して、共通のアドレスを使用
しており、バス権制御回路1−2がこの指令をデコード
すると、μP1−1に対して割り込み信号を出力する。
この割り込み信号を入力するとμP1−1は一括入出力
を開始する。μP1−1はローカルI/Oバス4を介し
てI/O5をアクセスしていく。このとき、バス権制御
回路1−2はI/Oバス4のバス権調停を行い、μP1
−1にバス権を与えている。そして出力モジュールには
デュアルポートメモリ1−5に書き込まれたデータを出
力し、入力モジュールから読みだしたデータはデュアル
ポートメモリ1−5に書き込む。そして全モジュールの
アクセスが終了するとバス権制御回路内のステータスレ
ジスタに完了フラグをセットして、CPU2からの読み
とりを待つ。CPU2は各一括入出力モジュール1のス
テータスを監視しており、完了フラグがセットされると
デュアルポートメモリ1−5から入力データを読み出
す。このようにして一回の一括入出力を完了する。一般
にI/Oのアクセスはメモリのアクセスよりも、時間が
かかるので、いったんメモリを介した一括入出力を行っ
たとしても、複数個のI/Oユニットにおいて並列にI
/Oの入出力を行えば、全体の一括入出力時間を十分に
早くすることができる。
Next, the CPU 2 outputs a start command to the all batch input / output module 1. This start-up output uses a common address for all the batch input / output modules 1. When the bus right control circuit 1-2 decodes this command, it outputs an interrupt signal to the μP 1-1.
When this interrupt signal is input, the μP 1-1 starts batch input / output. The μP 1-1 accesses the I / O 5 via the local I / O bus 4. At this time, the bus right control circuit 1-2 arbitrates the bus right of the I / O bus 4 and
-1 is given a bus right. Then, the data written to the dual port memory 1-5 is output to the output module, and the data read from the input module is written to the dual port memory 1-5. When the access of all the modules is completed, the completion flag is set in the status register in the bus right control circuit, and the reading from the CPU 2 is waited. The CPU 2 monitors the status of each batch input / output module 1 and reads input data from the dual port memory 1-5 when the completion flag is set. In this way, one batch input / output is completed. In general, I / O access takes more time than memory access. Therefore, even if batch input / output is performed via memory, I / O access is performed in parallel by a plurality of I / O units.
By performing input / output of / O, the entire batch input / output time can be sufficiently shortened.

【0010】CPU2がI/O5を直接アクセスしたい
ときにはI/Oアドレスを使用して、アクセスする。I
/Oアドレスを入力するとバス権制御回路1−2がμP
1−1との間でI/Oバス4のバス権の調停を行い、C
PU2にバス権を与える。このときバスバッファ1−4
がイネーブルになり、CPUはI/O5を直接アクセス
することが可能になる。
When the CPU 2 wants to directly access the I / O 5, it accesses using the I / O address. I
When the / O address is input, the bus right control circuit 1-2 sets the μP
1-1 arbitrates the bus right of the I / O bus 4 and
The bus right is given to PU2. At this time, the bus buffer 1-4
Is enabled, and the CPU can directly access the I / O5.

【0011】なお、上記の説明では一括入出力用モジュ
ールがモジュールとして独立しているような構成をとっ
ていたが、このモジュールの回路をI/Oユニットのマ
ザーボードに含める構成をとることも可能であることは
言うまでもない。
In the above description, the configuration is such that the collective input / output module is independent as a module. However, it is also possible to adopt a configuration in which the circuit of this module is included in the motherboard of the I / O unit. Needless to say, there is.

【0012】[0012]

【発明の効果】以上に説明したように、本発明のプログ
ラマブルコントロ−ラによれば、複数の入出力ユニット
のI/Oの一括入出力を並列に実行することが可能であ
り、一括入出力時間を短縮することができる。また、
PUモジュ−ルにI/Oを直接アクセスさせたい場合、
バス権制御回路によりI/OをCPUモジュ−ルにI/
Oバスのバス権を与え、第2のバッファ回路を介して直
接アクセスさせることが可能であり、CPUモジュ−ル
からI/Oに直接入出力させることができる。
As described above, according to the programmable controller of the present invention, batch input / output of I / O of a plurality of input / output units can be executed in parallel. Time can be reduced. Also, C
If you want to access the I / O directly to the PU module,
The bus right control circuit transfers the I / O to the CPU module.
The bus right of the O bus is given, and the
CPU module
Can directly input / output to I / O.

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

【図1】本発明によるプログラマブルコントローラの要
部構成を示す実施例図。
FIG. 1 is an embodiment diagram showing a main part configuration of a programmable controller according to the present invention.

【図2】従来のPCの要部構成を示すブロック図。FIG. 2 is a block diagram showing a main part configuration of a conventional PC.

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

1…一括入出力用モジュール 1−1…マイクロプロセッサ 1−2…バス権制御回路 1−3…マイクロプロセッサ用バスバッファ 1−4…PC−CPU用バスバッファ 1−5…デュアルボールメモリ 2…PC−CPU 3…CPUバス 4…I/Oバス 5…I/O 6…I/Oユニット 7…バスバッファモジュール DESCRIPTION OF SYMBOLS 1 ... Batch input / output module 1-1 ... Microprocessor 1-2 ... Bus right control circuit 1-3 ... Microprocessor bus buffer 1-4 ... PC-CPU bus buffer 1-5 ... Dual ball memory 2. PC -CPU 3 CPU bus 4 I / O bus 5 I / O 6 I / O unit 7 Bus buffer module

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の入出力モジュ−ルをI/Oバスで
接続した複数の入出力ユニットと、該入出力ユニットと
CPUバスを介して接続され、該入出力ユニットの入出
力モジュ−ルに対してデ−タの入出力を行うCPUモジ
ュ−ルを備えたプログラマブルコントロ−ラにおいて、前記入出力ユニットは、 該入出力モジュ−ルに対しデ−
タの入出力を実行するマイクロプロセッサと、該CPU
モジュ−ルと該マイクロプロセッサの双方からアクセス
可能なデュアルポ−トメモリと、該マイクロプロセッサ
のアドレス、デ−タバスを該I/Oバスに接続する第1
のバッファ回路と、該CPUモジュ−ルのアドレス、デ
−タバスを該I/Oバスに接続する第2のバッファ回路
と、該マイクロプロセッサ又は該CPUモジュ−ルに対
して該I/Oバスのバス権を調停し、該第2のバッファ
回路を介して該CPUモジュ−ルを該入出力モジュ−ル
に直接アクセスさせるバス権制御回路からなる一括入出
力用モジュ−ルを備え、 該CPUモジュ−ルが入出力ユニットの入出力モジュ−
ルに対しデ−タの入出力を行う際に、該デュアルポ−ト
メモリにデ−タを一括入出力せしめ該マイクロプロセッ
サにデュアルポ−トメモリと入出力モジュ−ル間でデ−
タの入出力を実行させることを特徴とするプログラマブ
ルコントロ−ラ。
A plurality of input / output modules connected to each other via an I / O bus ;
In a programmable controller having a CPU module connected via a CPU bus for inputting / outputting data to / from the input / output module of the input / output unit, the input / output unit includes Data for output module
Microprocessor for executing input / output of data, and CPU
A dual port memory accessible from both the module and the microprocessor ; and the microprocessor.
Address and data bus connected to the I / O bus.
Buffer circuit and the address and data of the CPU module.
A second buffer circuit for connecting a bus to the I / O bus
And the microprocessor or the CPU module.
And arbitrates for the bus right of the I / O bus.
The CPU module is connected to the input / output module via a circuit.
A batch I / O module comprising a bus right control circuit for directly accessing the I / O module, wherein the CPU module is an I / O module of the I / O unit.
When inputting / outputting data from / to the microprocessor, the data is collectively input / output to / from the dual port memory and the microprocessor is used.
Data between the dual port memory and the I / O module.
A programmable controller characterized by executing input / output of data .
【請求項2】 該CPUモジュ−ルからの起動指令によ
り該複数の入出力ユニットの各々の一括入出力用モジュ
−ルに同時にデ−タの入出力を開始させるようにした
とを特徴とする請求項1記載のプログラマブルコントロ
−ラ。
Wherein said CPU module - each batch input-output module of said plurality of input and output units by the activation command from Le - simultaneously de Le - this you so that initiates the input and output of data <br / The programmable controller according to claim 1, wherein
JP3088149A 1991-04-19 1991-04-19 Programmable controller Expired - Lifetime JP2962431B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3088149A JP2962431B2 (en) 1991-04-19 1991-04-19 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3088149A JP2962431B2 (en) 1991-04-19 1991-04-19 Programmable controller

Publications (2)

Publication Number Publication Date
JPH04319703A JPH04319703A (en) 1992-11-10
JP2962431B2 true JP2962431B2 (en) 1999-10-12

Family

ID=13934880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3088149A Expired - Lifetime JP2962431B2 (en) 1991-04-19 1991-04-19 Programmable controller

Country Status (1)

Country Link
JP (1) JP2962431B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4985979B2 (en) * 2008-02-05 2012-07-25 横河電機株式会社 Programmable logic controller

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6025742Y2 (en) * 1979-02-15 1985-08-02 松下電器産業株式会社 magnetic recording and reproducing device
JPS6231339U (en) * 1985-08-08 1987-02-25
JPS62158396U (en) * 1986-03-31 1987-10-07
JPS63176228U (en) * 1987-05-07 1988-11-15
JPS6451232U (en) * 1987-09-24 1989-03-29
JPS6451231U (en) * 1987-09-24 1989-03-29
TW500127U (en) * 1999-11-25 2002-08-21 Four Pillars Entpr Co Ltd Dreamy tape

Also Published As

Publication number Publication date
JPH04319703A (en) 1992-11-10

Similar Documents

Publication Publication Date Title
JPH0574862B2 (en)
US7185133B2 (en) Data processor
JP2962431B2 (en) Programmable controller
JPS6111876A (en) Data transfer system
JP2004192051A (en) Shared terminal controller
JPS59229662A (en) Common memory control circuit
JPH09311812A (en) Microcomputer
JP3943302B2 (en) Programmable controller
JP3266610B2 (en) DMA transfer method
JPH10254767A (en) Memory controller and memory system by the controller
JPH0683765A (en) Microcomputer
JP2884620B2 (en) Digital image processing device
JPH05334234A (en) High speed dma transferring device
JPS62224855A (en) Data processor
JPH06214957A (en) Interruption generating method for multiprocessor system
JPS61120396A (en) Microprocessor
JPH01266651A (en) Semiconductor memory device
JPH0612313A (en) Memory device
JPH10116247A (en) Microcomputer
KR19990048059A (en) I / O interface device
JPS63307529A (en) Inter-arithmetic processing unit communication control system
JPS61169923A (en) Data processing system
JPH07121483A (en) Shared memory access control circuit
JPH05225115A (en) Microcomputer controller
JPH03220683A (en) Microcomputer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070806

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080806

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100806

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100806

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110806

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110806

Year of fee payment: 12