JPH0321924B2 - - Google Patents

Info

Publication number
JPH0321924B2
JPH0321924B2 JP56189776A JP18977681A JPH0321924B2 JP H0321924 B2 JPH0321924 B2 JP H0321924B2 JP 56189776 A JP56189776 A JP 56189776A JP 18977681 A JP18977681 A JP 18977681A JP H0321924 B2 JPH0321924 B2 JP H0321924B2
Authority
JP
Japan
Prior art keywords
card
input
output
internal memory
data
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
JP56189776A
Other languages
Japanese (ja)
Other versions
JPS5892005A (en
Inventor
Minoru Ogawa
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
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 filed Critical Omron Corp
Priority to JP18977681A priority Critical patent/JPS5892005A/en
Publication of JPS5892005A publication Critical patent/JPS5892005A/en
Publication of JPH0321924B2 publication Critical patent/JPH0321924B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/04Program control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1188Detection of inserted boards, inserting extra memory, availability of boards

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 この発明は、逐次実行方式のプログラマブル・
コントローラ(以下、これをPCという)に係わ
り、特に処理速度の高速化を達成したものであ
る。
[Detailed Description of the Invention] This invention provides a sequential execution programmable
This is a controller (hereinafter referred to as a PC) that has achieved particularly high processing speed.

周知の如く、PCには入力の制御方式によつて
I/Oリフレツシユ方式と逐次実行方式とが知ら
れている。
As is well known, there are two known input control methods for PCs: the I/O refresh method and the sequential execution method.

I/Oリフレツシユ方式は、定期的に入力→メ
モリ、メモリ→出力というデータの転送を繰り返
し行なうもので、プログラムの実行は全てメモリ
上のデータに基づいて行なわれる。このため、使
用されていない入出力、メモリをも含めてリフレ
ツシユされるため、それが無駄な時間になる他、
プログラムを逐次実行する時点において、入出
力、メモリとも処理が済んでしまうような方式が
存在すると、このリフレツシユのための時間その
ものが完全な無駄時間となる。
In the I/O refresh method, data is periodically transferred repeatedly from input to memory and from memory to output, and all program execution is performed based on data on memory. For this reason, unused input/output and memory are also refreshed, which results in wasted time and
If there is a system in which input/output and memory processing are completed when a program is executed sequentially, the time for this refresh itself becomes a complete waste of time.

このような理由で逐次実行方式の方が原理的に
リフレツシユ方式より処理速度を速めることが可
能である。
For these reasons, the sequential execution method can theoretically achieve faster processing speed than the refresh method.

しかしながら、従来の逐次実行方式の場合、バ
スラインが入出力装置とメモリとで別々であつた
り、たとえバスラインが同じであつてもアドレス
の割付けが異なる等のため、実行時点でまず内部
メモリにデータを書き込み、その後そのデータを
出力装置に転送したり、入力カードがあるかない
かを予めスキヤンした後、入出力何れかのデータ
を選択的に取込む必要があり、その処理が速度を
遅らす一つの要因となつていた。
However, in the case of the conventional sequential execution method, the bus line is separate for the input/output device and the memory, or even if the bus line is the same, the address assignments are different. It is necessary to write data and then transfer the data to the output device, or to scan the input card in advance and then selectively import data from either input or output, which slows down the process. This was one factor.

この結果、リフレツシユ方式と処理速度が殆ど
変らず、結局プログラム構成が簡単なリフレツシ
ユ方式が採用されているのが現状である。
As a result, the current situation is that the refresh method, which has almost no difference in processing speed from the refresh method and has a simpler program structure, is currently being adopted.

この発明は、上記の問題を解決するためになさ
れたもので、その目的とするところは入出力装置
(入出力ラツク)と内部メモリとが同じ方式(リ
ード・入力/ライト・出力)で制御されることに
着目し、両者を同一バスラインに接続し、前記各
ラツクにおいて入力又は出力カード用に割り振つ
たアドレスと同一のアドレスを前記内部メモリに
持たせ、前記入力カードに入力カードであること
を示す識別符号を付し、前記各ラツクは、前記識
別符号により入力カードを検出するとアドレス指
定動作に応答して、前記内部メモリを非能動化す
る信号を前記内部メモリに与え、前記バスライン
上のリード信号を検出してアドレス指定されてい
る前記入力カードからのデータを前記バスライン
上に送出する一方、前記識別符号により出力カー
ドまたはカードなしを検出するとアドレス指定動
作に応答して、前記内部メモリを能動化する信号
を前記内部メモリに与え、前記バスライン上のラ
イト信号を検出して前記出力カードにデータを書
き込み、前記内部メモリは前記ラツクにより能動
化されているとき、前記ライト信号を検出して前
記データを読み込む一方、前記バスライン上のリ
ード信号を検出して前記バスライン上にデータを
送出するように構成したものである。
This invention was made to solve the above problem, and its purpose is to control the input/output device (input/output rack) and internal memory in the same way (read/input/write/output). Focusing on this, connect both to the same bus line, make the internal memory have the same address as the address assigned for the input or output card in each rack, and make sure that the input card is an input card. each rack is provided with an identification code indicating an input card according to the identification code, and in response to an addressing operation, provides a signal to the internal memory to deactivate the internal memory; detects a read signal of the input card and sends data from the addressed input card onto the bus line, while detecting an output card or no card according to the identification code responds to the addressing operation and sends data from the addressed input card onto the bus line. A signal to enable the memory is provided to the internal memory, a write signal on the bus line is detected and data is written to the output card, and the internal memory receives the write signal when activated by the rack. The device is configured to detect and read the data, and also to detect a read signal on the bus line and send the data onto the bus line.

このため、本願発明によれば、データ出力時に
は、内部メモリと出力カードに同時にデータを書
き込むことができ、データ入力時には、アドレス
指定したカードに応じてカードからあるいは内部
メモリから自動的にデータがバスライン上に送出
されるため、処理速度を高速化することが可能と
なるとともに、入力カード又は内部メモリからの
データの読み込み制御あるいは内部メモリおよび
出力カードへのデータの書き込み制御を簡単に行
うことができ、しかも、バスライン上に異なる2
種類のデータが存在することがないという作用効
果が得られる。
Therefore, according to the present invention, when outputting data, data can be written to the internal memory and the output card at the same time, and when inputting data, data is automatically written to the bus from the card or from the internal memory depending on the addressed card. Since it is sent out on the line, it is possible to speed up the processing speed, and it is also possible to easily control reading data from the input card or internal memory, or controlling data writing to the internal memory and output card. However, there are two different
This provides the advantage that different types of data never exist.

以下に、この発明の好適な一実施例を添付図面
に従つて詳細に説明する。
Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、この実施例に係わるPCの電気的な
全体構成を示すブロツク図、第2図は内部メモリ
の構成を示すメモリマツプ、第3図は入力カー
ド、出力カードにそれぞれ設けられた識別用パタ
ーンの構成を示す図、第4図はこのPCで使用さ
れるラダーダイヤグラムの一例を示す図、第5図
はシステムプログラムの構成を示すフローチヤー
トである。
Figure 1 is a block diagram showing the overall electrical configuration of the PC according to this embodiment, Figure 2 is a memory map showing the internal memory configuration, and Figure 3 is an identification card provided on each input card and output card. FIG. 4 is a diagram showing the configuration of the pattern, FIG. 4 is a diagram showing an example of a ladder diagram used in this PC, and FIG. 5 is a flowchart showing the configuration of the system program.

第1図に示す如く、この実施例のPCは、マイ
クロプロセツサで構成されたCPU1と、ROMで
構成されたシステムプログラムメモリ2と、
RAMで構成されたユーザプログラムメモリ3
と、キーボード等で構成される操作部4と、
RAMで構成される内部メモリ5及び複数台(図
示例では2台)の入出力ラツク6―1,6―2と
により構成されている。そして、内部メモリ5と
入出力ラツク6―1,6―2とはそれぞれCPU
1へ通ずる共通のバスライン7に接続されてい
る。
As shown in FIG. 1, the PC of this embodiment includes a CPU 1 consisting of a microprocessor, a system program memory 2 consisting of a ROM,
User program memory 3 consisting of RAM
and an operation unit 4 consisting of a keyboard etc.
It is composed of an internal memory 5 composed of RAM and a plurality of input/output racks 6-1 and 6-2 (two in the illustrated example). The internal memory 5 and input/output racks 6-1 and 6-2 are each connected to a CPU.
1 to a common bus line 7.

各入出力ラツク6―1,6―2内には、それぞ
れ全部で8枚の入力又は出力カードが接続可能に
構成されるとともに、バスライン7上に当該ラツ
クの何れのカードに対応するアドレスデータが送
出されたかを検出するアドレス選択回路8―1,
8―2が設けられている。
Each of the input/output racks 6-1 and 6-2 is configured so that a total of eight input or output cards can be connected thereto, and address data corresponding to any card in the rack is stored on the bus line 7. an address selection circuit 8-1 for detecting whether the
8-2 is provided.

そして、バスライン7上に何れかのアドレスデ
ータが送出されると、該当するアドレス選択回路
8―1又は8―2が動作し、これによりアドレス
指定された入力又は出力カードは、バスライン7
を構成するデータバスに接続されることとなる。
When any address data is sent onto the bus line 7, the corresponding address selection circuit 8-1 or 8-2 operates, and the input or output card designated by this operates on the bus line 7.
It will be connected to the data bus that makes up the

入力カード9、出力カード10はそれぞれ8回
路分の入力回路又は出力回路を内蔵している。入
力カードとしては、例えば入力端子に供給された
電流信号を電圧信号に変換するI/V変換回路
と、このI/V変換回路の出力電圧をデータバス
に載せるためのゲート回路等によつて構成されて
おり、この入力ゲート回路はCPU1からバスラ
イン7上に送出されるリード信号によつて開閉制
御される。また、出力回路は例えば、CPU1か
らバスライン7上に送出されるライト信号に応じ
て、データバス上に送出された出力データをラツ
チするラツチ回路と、このラツチ回路の出力で駆
動されるドライバ回路等によつて構成されてお
り、これらの入力又は出力回路は前記アドレス選
択回路8―1,8―2の作用によつてカード単位
で能動化されることとなる。
The input card 9 and the output card 10 each contain eight input circuits or eight output circuits. The input card is composed of, for example, an I/V conversion circuit that converts a current signal supplied to an input terminal into a voltage signal, and a gate circuit that puts the output voltage of this I/V conversion circuit on a data bus. The opening/closing of this input gate circuit is controlled by a read signal sent from the CPU 1 onto the bus line 7. The output circuit includes, for example, a latch circuit that latches output data sent out on the data bus in response to a write signal sent out from the CPU 1 onto the bus line 7, and a driver circuit that is driven by the output of this latch circuit. These input or output circuits are activated for each card by the action of the address selection circuits 8-1 and 8-2.

そして、各出力カードあるいは入力カードが接
続されるべきラツクのコネクタには、第1図に示
す如く000〜177のアドレスが付されている。
Addresses 000 to 177 are assigned to the rack connectors to which each output card or input card is connected, as shown in FIG.

更に、各入出力ラツク6―1,6―2内には8
本のカード識別ラインL0〜L7と、1本のアー
スラインLEとが配設されており、これらのライ
ンはそれぞれ各カードに設けられたカード識別パ
ターンに接続可能に構成されている。
Furthermore, each input/output rack 6-1, 6-2 has 8
Book card identification lines L0 to L7 and one ground line LE are provided, and these lines are configured to be connectable to card identification patterns provided on each card.

第3図A,Bに示す如く、各識別パターンは、
アースラインLEに通ずるアースパターン11と、
各カード識別ラインL0〜L7に通ずるカードパ
ターン12とにより構成されており、入力カード
9に設けられたアースパターン11とカードパタ
ーン12とは電気的に導通しているのに対し、出
力カード10に設けられたアースパターン11と
カードパターン12とは非導通状態となつてい
る。
As shown in FIG. 3A and B, each identification pattern is
Earth pattern 11 leading to earth line LE,
The ground pattern 11 provided on the input card 9 and the card pattern 12 are electrically connected to each other, while the ground pattern 11 provided on the input card 9 and the card pattern 12 are electrically connected to each other. The provided ground pattern 11 and card pattern 12 are in a non-conducting state.

このため、入力カード9をラツクに接続した場
合、該当するカード識別ラインL0〜L7とアー
スパターンLEとの間は導通するのに対し、出力
カードを接続した場合これらのラインは非導通状
態となる。
Therefore, when the input card 9 is easily connected, there is continuity between the corresponding card identification lines L0 to L7 and the ground pattern LE, whereas when the output card is connected, these lines are non-conductive. .

そして、これら各カード識別ラインL0〜L7
の出力信号は、アドレス選択回路8―1,8―2
によつてそれぞれ切替制御されるマルチプレクサ
13―1,13―2を介して取出され、後述する
内部メモリ5のチツプセレクト端子CSに供給さ
れる。
And each of these card identification lines L0 to L7
The output signals of address selection circuits 8-1, 8-2
The signal is taken out via multiplexers 13-1 and 13-2, which are respectively switched and controlled by , and supplied to a chip select terminal CS of the internal memory 5, which will be described later.

内部メモリ5内には、ラツク6―1,6―2に
割付けられたアドレス000〜177と同一のア
ドレスが第2図に示す如く割付けられており、従
つてチツプセレクト端子CSに“L”が供給され
ている状態において、バスライン7を構成するデ
ータバス上に所定のアドレスデータが送出される
と、内部メモリ5内の当該アドレスの内容は、リ
ード又はライト可能な状態となる。
In the internal memory 5, the same addresses as the addresses 000 to 177 assigned to the racks 6-1 and 6-2 are assigned as shown in FIG. In the supplied state, when predetermined address data is sent onto the data bus constituting the bus line 7, the contents of the address in the internal memory 5 become readable or writable.

次に、以上の構成よりなるPCの動作を、第5
図のフローチヤートに従つて説明する。
Next, the operation of the PC with the above configuration will be explained in the fifth section.
This will be explained according to the flowchart shown in the figure.

第4図に示す如く、今仮に入力040がオンし
た場合、外部出力000をオンし、次いで入力0
41と外部出力000とのアンド条件に基づい
て、内部出力140をオンすべきラダーダイヤグ
ラムを構成したものとする。
As shown in FIG. 4, if input 040 is turned on, external output 000 is turned on, and then input 0 is turned on.
Assume that a ladder diagram in which the internal output 140 is to be turned on is constructed based on an AND condition between the internal output 140 and the external output 000.

このユーザプログラムがユーザプログラムメモ
リ3に格納されている状態において、第5図に示
すプログラムが実行されると、まずイニシヤル処
理(1)が実行され、内部メモリ5及び出力カード1
0は所定のリセツト動作が行なわれ、その内容は
クリアされる。
When the program shown in FIG. 5 is executed while this user program is stored in the user program memory 3, initial processing (1) is executed, and the internal memory 5 and output card 1 are
0, a predetermined reset operation is performed and its contents are cleared.

次いで、ステツプ(2)が実行されると、ユーザプ
ログラムメモリ3内からはユーザ命令の一つが読
出される。
Next, when step (2) is executed, one of the user instructions is read from the user program memory 3.

今仮に、第4図のラダーダイヤグラムの一列目
の命令が読出されたとすると、これは入力データ
040を読込み、その内容を判定するものである
から、続いてステツプ(3)の実行結果はNOとなる
とともに、ステツプ(8)の実行結果もNOとなり、
以下同様にして該当命令語の判定が行われた後、
LORD命令が実行され、バスライン7上にはアド
レスデータ040が送出される。
Now, if the command in the first column of the ladder diagram in Figure 4 is read out, this is to read input data 040 and judge its contents, so the execution result of step (3) will be NO. At the same time, the execution result of step (8) also becomes NO.
After the corresponding command word is determined in the same manner,
The LORD instruction is executed and address data 040 is sent onto the bus line 7.

ここで、第1図に示す如くラツク6―1のアド
レス040に対応する接続箇所には、入力カード
が実際に接続されている。このため、バスライン
7上に送出されたアドレスデータ040に対応し
て、該当する入力カードがアドレス指定される
と、マルチプレクサ13―1からは、カード識別
信号“H”が出力され、このカード識別信号
“H”によつて内部メモリ5はデイスイネーブル
される。この結果、CPU1には入力カード9か
らのデータが取込まれ、内部メモリ5からは何の
データも取込まれないこととなる。そして、この
取込まれたデータは図示しないパワーフローレジ
スタに格納される。
Here, as shown in FIG. 1, an input card is actually connected to the connection point corresponding to address 040 of rack 6-1. Therefore, when the corresponding input card is addressed in accordance with the address data 040 sent out on the bus line 7, the multiplexer 13-1 outputs a card identification signal "H" to identify this card. The internal memory 5 is disabled by the signal "H". As a result, the CPU 1 receives data from the input card 9, but no data from the internal memory 5. This captured data is then stored in a power flow register (not shown).

次いで、ステツプ(2)に戻り、次の命令語である
OUT 000が読出される。この結果、ステツ
プ(3)NO→ステツプ(8)YESとなり、続いてステツ
プ(9),(10),(11)が順次実行される。
Next, return to step (2) and write the next command word.
OUT 000 is read. As a result, step (3) NO becomes step (8) YES, and steps (9), (10), and (11) are sequentially executed.

ここで、第1図に示す如くラツク6―1のアド
レス000に対応する接続箇所には、出力カード
が実際に接続されている。
Here, as shown in FIG. 1, an output card is actually connected to the connection point corresponding to address 000 of rack 6-1.

このため、バスライン7上に送出されたアドレ
スデータ000に対応して、該当する出力カード
がアドレス指定されると、マルチプレクサ13―
1からは、カード識別信号“L”が出力され、こ
のカード識別信号“L”によつて内部メモリ5は
イネーブルされる。この結果、バスライン7上に
送出された出力データは、内部メモリ5のアドレ
ス000に対応するエリアと、出力カード10の
アドレス000に対応するアドレスとの双方に対
して同時に書込まれることとなる。
Therefore, when the corresponding output card is addressed in response to the address data 000 sent out on the bus line 7, the multiplexer 13-
1 outputs a card identification signal "L", and the internal memory 5 is enabled by this card identification signal "L". As a result, the output data sent onto the bus line 7 is simultaneously written to both the area corresponding to address 000 of the internal memory 5 and the address corresponding to address 000 of the output card 10. .

次いで、再びステツプ(2)に戻り、次の命令語が
読出されると、これは入力041を参照すべき命
令であるから、前述と同様にしてステツプ(3),(8)
の実行結果はNOとなり、続いてLORD 041
が実行されて入力041の状態が該当する入力カ
ードから取り込まれ、この状態は図示しないパワ
ーフローレジスタに記憶される。
Next, the process returns to step (2) again, and when the next instruction word is read, this is an instruction that should refer to input 041, so steps (3) and (8) are executed in the same manner as above.
The execution result is NO, followed by LORD 041
is executed, the state of input 041 is fetched from the corresponding input card, and this state is stored in a power flow register (not shown).

次いで、再びステツプ(2)に戻り、次の命令が読
出されると、この命令はAND 000であつて、
これは出力データを参照すべき命令であるから、
ステツプ(3)の実行結果はYESとなり、続いてス
テツプ(4),(5),(6),(7)が順次実行される。
Then, the process returns to step (2) again, and when the next instruction is read, this instruction is AND 000,
This is an instruction that should refer to output data, so
The execution result of step (3) is YES, and then steps (4), (5), (6), and (7) are executed in sequence.

まず、ステツプ(4)が実行されると、バスライン
7を構成するアドレスバス上にはアドレス000
が送出される。ここで、前述した如くラツク6―
1のアドレス000に対応した接続箇所には、出
力カード10が実際に接続されている。このた
め、ステツプ(4)が実行されてアドレスバス上にア
ドレス000送出されると、マルチプレクサ13
―1の出力は“L”となり、この“L”出力によ
つて内部メモリ5はイネーブルされる。
First, when step (4) is executed, the address 000 is placed on the address bus constituting the bus line 7.
is sent. Here, as mentioned above, easy 6-
The output card 10 is actually connected to the connection point corresponding to address 000 of No. 1. Therefore, when step (4) is executed and address 000 is sent onto the address bus, the multiplexer 13
The output of -1 becomes "L", and the internal memory 5 is enabled by this "L" output.

この状態において、ステツプ(5)が実行されてバ
スライン7上にリード信号が送出されると、本来
出力カード10はリード信号に対して応答しない
から出力カードらは何のデータも取込まれないの
に対して、内部メモリ5からはアドレス000の
記憶内容が読出され、バスライン7上に送出され
る。
In this state, when step (5) is executed and a read signal is sent onto the bus line 7, the output cards 10 do not respond to the read signal, so no data is captured by the output cards. On the other hand, the contents stored at address 000 are read from internal memory 5 and sent onto bus line 7.

この状態においてステツプ(6)が実行されると、
バスライン7上に送出された内部メモリ5のアド
レス000の内容はCPU1に取込まれ、続いて
ステツプ(7)の実行とともにAND演算が実行され
る訳である。
When step (6) is executed in this state,
The contents of address 000 of the internal memory 5 sent onto the bus line 7 are taken in by the CPU 1, and then an AND operation is executed along with the execution of step (7).

次いで、ステツプ(2)に戻り、次の命令語が読出
されると、この命令はそれまでのパワーフローレ
ジスタの内容を、内部出力140に出力する命令
であるから、ステツプ(3)NO→ステツプ(8)YESと
なり、続いてステツプ(9),(10),(11)が順次実行され
る。
Next, the process returns to step (2), and when the next instruction word is read, this instruction outputs the contents of the power flow register up to that point to the internal output 140, so step (3) NO → Step (8) YES, and then steps (9), (10), and (11) are executed in sequence.

まず、ステツプ(9)が実行されると、それまでの
パワーフローレジスタの演算結果はバスライン7
を構成するデータバス上に送出される。次いで、
ステツプ(10)が実行されると、アドレス140に相
当するアドレスデータがアドレスバス上に送出さ
れる。
First, when step (9) is executed, the calculation results of the power flow register up to that point are transferred to the bus line 7.
is sent out on the data bus that constitutes the Then,
When step (10) is executed, address data corresponding to address 140 is sent onto the address bus.

ここで、第1図に示す如くラツク6―2のアド
レス140に対応する接続箇所には、入力又は出
力の何れのカードも接続されておらず、空きの状
態にある。
Here, as shown in FIG. 1, neither the input nor the output card is connected to the connection point corresponding to address 140 of the rack 6-2, and it is in an empty state.

このため、アドレスバス上にアドレス140が
送出されるとマルチプレクサ13―2の出力は
“L”となり、この“L”信号によつて内部メモ
リ5はイネーブルされる。
Therefore, when the address 140 is sent onto the address bus, the output of the multiplexer 13-2 becomes "L", and the internal memory 5 is enabled by this "L" signal.

この結果、続いステツプ(11)によつてバスライン
7上にライト信号を送出すると、バスライン7上
に送出された演算データは、内部メモリ5内のア
ドレス140に対応する記憶エリアに自動的に記
憶されることとなる。
As a result, when a write signal is sent onto the bus line 7 in subsequent step (11), the calculation data sent onto the bus line 7 is automatically stored in the storage area corresponding to address 140 in the internal memory 5. It will be remembered.

かくして、この実施例に係わるPCによれば、
各ラツク6―1,6―2と内部メモリ5とを共通
のバスライン7に接続するとともに、両者に同一
の共通アドレスを割付け、更に各ラツク内には各
カード専用の識別ラインL0〜L7及びアースラ
インLEを設けるとともに、各入力又は出力カー
ド9,10には、カード固有の識別パターン12
とアースパターン11とを導通又は非導通に区別
して形成し、これら識別ラインL0〜L7の出力
をマルチプレクサ13―1〜13―2を介して該
当するアドレツシング動作に連動して取り出し、
これを内部メモリ5のチツプセレクト端子CSに
供給するようにしているため、CPU1としては
バスライン7上にアドレスデータ、出力データ、
リード信号及びライト信号を通常どおり出力する
だけで、自動的に入力カード又は内部メモリ5か
らのデータの読込みあるいは内部メモリ5および
出力カードへのデータの同時書き込みが行われる
こととなり、在来のCPU1側において各カード
の種別を識別する方式等に比べ、そのデータ転送
処理に要する時間を著しく短縮化し、この種の
PCの高速化に資するものである。
Thus, according to the PC related to this example,
Each rack 6-1, 6-2 and internal memory 5 are connected to a common bus line 7, and the same common address is assigned to both, and each rack has identification lines L0 to L7 dedicated to each card. In addition to providing a ground line LE, each input or output card 9, 10 is provided with a card-specific identification pattern 12.
and the ground pattern 11 are formed to be conductive or non-conductive, and the outputs of these identification lines L0 to L7 are taken out via multiplexers 13-1 to 13-2 in conjunction with the corresponding addressing operation,
Since this is supplied to the chip select terminal CS of the internal memory 5, the CPU 1 sends address data, output data,
By simply outputting read signals and write signals as usual, data is automatically read from the input card or internal memory 5, or data is simultaneously written to the internal memory 5 and output card. Compared to methods such as identifying the type of each card on the side, the time required for data transfer processing is significantly shortened, and this type of
This contributes to speeding up PCs.

以上の実施例の説明でも明らかなように、この
発明によるPCによれば、この種の逐次実行方式
を採用したPCにおける処理速度を著しく高速化
し、殊にユーザプログラムが大容量化したような
場合に著しい効果を発揮するものである。
As is clear from the above description of the embodiments, the PC according to the present invention significantly increases the processing speed of a PC that adopts this type of sequential execution method, especially when the user program has a large capacity. It has a remarkable effect on

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、この実施例に係わるPCの電気的な
全体構成を示すブロツク図、第2図は内部メモリ
の構成を示すメモリマツプ、第3図は入力カー
ド、出力カードにそれぞれ設けられた識別用パタ
ーンの構成を示す図、第4図はこのPCで使用さ
れるラダーダイヤグラムの一例を示す図、第5図
はシステムプログラムの構成を示すフローチヤー
トである。 1…CPU、2…システムプログラムメモリ、
3…ユーザプログラムメモリ、4…操作部、5…
内部メモリ、6―1,6―2…入出力ラツク、7
…バスライン、8―1,8―2…アドレス選択回
路、9…入力カード、10…出力カード、11…
アースパターン、12…カードパターン。
Figure 1 is a block diagram showing the overall electrical configuration of the PC according to this embodiment, Figure 2 is a memory map showing the internal memory configuration, and Figure 3 is an identification card provided on each input card and output card. FIG. 4 is a diagram showing the configuration of the pattern, FIG. 4 is a diagram showing an example of a ladder diagram used in this PC, and FIG. 5 is a flowchart showing the configuration of the system program. 1...CPU, 2...System program memory,
3...User program memory, 4...Operation unit, 5...
Internal memory, 6-1, 6-2...I/O rack, 7
...Bus line, 8-1, 8-2...Address selection circuit, 9...Input card, 10...Output card, 11...
Earth pattern, 12...Card pattern.

Claims (1)

【特許請求の範囲】 1 1または2以上の入出力ラツクを有するとと
もに、各ラツクには1又は2以上の入力又は出力
カードが接続可能に構成され、かつ入力又は出力
カード単位で入出力データの転送を行なうプログ
ラマブル・コントローラにおいて; 前記各ラツクおよび内部メモリを同一バスライ
ンに接続し、前記各ラツクにおいて入力又は出力
カード用に割り振つたアドレスと同一のアドレス
を前記内部メモリに持たせ、前記入力カードに入
力カードであることを示す識別符号を付し、 前記各ラツクは、前記識別符号により入力カー
ドを検出するとアドレス指定動作に応答して、前
記内部メモリを非能動化する信号を前記内部メモ
リに与え、前記バスライン上のリード信号を検出
してアドレス指定されている前記入力カードから
のデータを前記バスライン上に送出する一方、前
記識別符号により出力カードまたはカードなしを
検出するとアドレス指定動作に応答して、前記内
部メモリを能動化する信号を前記内部メモリに与
え、前記バスライン上のライト信号を検出して前
記出力カードにデータを書き込み、 前記内部メモリは前記ラツクにより能動化され
ているとき、前記ライト信号を検出して前記デー
タを読み込む一方、前記バスライン上のリード信
号を検出して前記バスライン上にデータを送出す
るように構成したことを特徴とするプログラマブ
ル・コントローラ。
[Scope of Claims] 1. It has one or more input/output racks, and each rack is configured to be connectable with one or more input or output cards, and input/output data can be transmitted in units of input or output cards. In the programmable controller that performs the transfer; each rack and internal memory are connected to the same bus line, the internal memory has the same address as the address allocated for the input or output card in each rack, and the input An identification code is attached to the card to indicate that it is an input card, and each rack, upon detecting the input card by the identification code, sends a signal to the internal memory in response to an addressing operation to deactivate the internal memory. and detecting a read signal on the bus line to send data from the addressed input card onto the bus line, while detecting an output card or no card according to the identification code addressing operation. in response to providing a signal to the internal memory to enable the internal memory, detecting a write signal on the bus line and writing data to the output card, the internal memory being activated by the rack; 1. A programmable controller characterized in that the programmable controller is configured to detect the write signal and read the data, and to detect the read signal on the bus line and send the data onto the bus line.
JP18977681A 1981-11-26 1981-11-26 Programmable controller Granted JPS5892005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18977681A JPS5892005A (en) 1981-11-26 1981-11-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18977681A JPS5892005A (en) 1981-11-26 1981-11-26 Programmable controller

Publications (2)

Publication Number Publication Date
JPS5892005A JPS5892005A (en) 1983-06-01
JPH0321924B2 true JPH0321924B2 (en) 1991-03-25

Family

ID=16247002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18977681A Granted JPS5892005A (en) 1981-11-26 1981-11-26 Programmable controller

Country Status (1)

Country Link
JP (1) JPS5892005A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4697125A (en) * 1986-03-24 1987-09-29 Performance Controls, Inc. Method and apparatus for determining shaft position and for providing commutation signals
JPH0749594Y2 (en) * 1986-10-27 1995-11-13 松下電工株式会社 Interlock control circuit of smoke control panel

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603205B2 (en) * 1977-11-24 1985-01-26 豊田工機株式会社 sequence controller

Also Published As

Publication number Publication date
JPS5892005A (en) 1983-06-01

Similar Documents

Publication Publication Date Title
EP0076629B1 (en) Reconfigureable memory system
JP3030342B2 (en) card
US4688172A (en) Initialization apparatus for a data processing system with a plurality of input/output and storage controller connected to a common bus
JP2501874B2 (en) IC card
EP0182126A2 (en) Directing storage requests during master mode operation
KR880014761A (en) Data transfer controller for direct memory access
JPH0321924B2 (en)
JP3635996B2 (en) Information processing system
JPH0774994B2 (en) OSC detection method for buffer storage controller
JP3450070B2 (en) IC card
JPS6316779B2 (en)
KR0141079B1 (en) Automatic recognition device of memory map type I / O area
KR900008069B1 (en) Data memory circuit using bit addressing method in programmable logic controller
EP0217348A2 (en) Memory connected state detecting circuit
JPH0756847A (en) Portable computer
JP2687679B2 (en) Program development equipment
JP2001222899A (en) Semiconductor integrated circuit
JPS6244352B2 (en)
RU2179332C1 (en) Computer system
JP2718846B2 (en) Memory circuit
JPS5839343A (en) Initial starting device for plural systems
JPH06119200A (en) Memory device and its test method
JPH0516615B2 (en)
JPS5856123B2 (en) Sequence control device
JPH0426312B2 (en)