JPH0731528B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0731528B2
JPH0731528B2 JP61305916A JP30591686A JPH0731528B2 JP H0731528 B2 JPH0731528 B2 JP H0731528B2 JP 61305916 A JP61305916 A JP 61305916A JP 30591686 A JP30591686 A JP 30591686A JP H0731528 B2 JPH0731528 B2 JP H0731528B2
Authority
JP
Japan
Prior art keywords
instruction
application
memory
programmable controller
group
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
JP61305916A
Other languages
Japanese (ja)
Other versions
JPS63157204A (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.)
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 JP61305916A priority Critical patent/JPH0731528B2/en
Publication of JPS63157204A publication Critical patent/JPS63157204A/en
Publication of JPH0731528B2 publication Critical patent/JPH0731528B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 ≪発明の分野≫ この発明は、ビットプロセッサと汎用プロセッサとを併
有する高速処理型のプログラマブル・コントローラの改
良に関する。
Description: FIELD OF THE INVENTION The present invention relates to an improvement in a high-speed processing type programmable controller having both a bit processor and a general-purpose processor.

≪発明の概要≫ この発明では、実行条件に基づき各応用命令が属する命
令群のコードを各応用命令に対応して予め記憶したメモ
リを設け、前記ビットプロセッサは、各命令を読出し、
基本命令を読出した場合には、当該基本命令の演算を実
行する一方、応用命令を読出した場合には、前記メモリ
から当該応用命令に対応した命令群コードを読出して、
その命令群コードと前記基本命令の演算結果とに基づき
当該応用命令の実行条件が成立しているか否かを判別
し、当該応用命令の実行条件が成立しているときには当
該応用命令を汎用プロセッサ側で実行させ、当該応用命
令の実行条件が不成立のときには当該応用命令をビット
プロセッサ側でスキップ処理させるようにしたものであ
る。
<< Summary of the Invention >> In the present invention, a memory is pre-stored corresponding to each application instruction in accordance with the execution condition, the code of the instruction group to which the application instruction belongs, and the bit processor reads each instruction,
When the basic instruction is read, the operation of the basic instruction is executed, while when the application instruction is read, the instruction group code corresponding to the application instruction is read from the memory,
Based on the instruction group code and the operation result of the basic instruction, it is determined whether or not the execution condition of the application instruction is satisfied, and when the execution condition of the application instruction is satisfied, the application instruction is executed by the general-purpose processor side. When the execution condition of the application instruction is not satisfied, the application instruction is skipped on the bit processor side.

≪従来技術とその問題点≫ この種の高速処理型プログラマブル・コントローラにあ
っては、LD,ANDなどの基本命令を実行するビットプロセ
ッサと、MOV,ADDなどの応用命令を実行する汎用プロセ
ッサとを備え、常時はビットプロセッサ側が制御権を握
って、ユーザ命令の読出,解読を行ない、基本命令の解
読時には、自身の演算回路により当該命令を処理する一
方、応用命令の解読時には、制御権を汎用プロセッサ側
へ受渡して、当該命令を汎用プロセッサ側で処理させる
ように構成されていた。
<< Prior art and its problems >> In this type of high-speed programmable controller, there are a bit processor that executes basic instructions such as LD and AND, and a general-purpose processor that executes application instructions such as MOV and ADD. The bit processor always holds the control right to read and decode the user instruction. When the basic instruction is decoded, the instruction circuit processes the instruction, while the application instruction is decoded, the control right is used for general purpose. It is configured to be delivered to the processor side and to be processed by the general-purpose processor side.

しかしながら、このような従来の高速処理型プログラマ
ブル・コントローラにあっては、応用命令が解読された
場合は、制御権を汎用プロセッサ側へ無条件で受渡すよ
うにしていたため、実行条件が規定された応用命令の場
合その条件が成立していないと、ビットプロセッサ側か
ら汎用プロセッサ側への制御権移行が無駄になり、その
分だけ処理速度を低下させるという問題点があった。
However, in such a conventional high-speed programmable programmable controller, when the application instruction is decoded, the control right is unconditionally transferred to the general-purpose processor side, so the execution condition is defined. In the case of the application instruction, if the condition is not satisfied, the transfer of control right from the bit processor side to the general-purpose processor side is wasted, and there is a problem that the processing speed is reduced accordingly.

≪発明の目的≫ この発明の目的は、この種の高速処理型プログラマブル
・コントローラにおいて、ビットプロセッサ側から汎用
プロセッサ側への制御権の受渡しを必要最小限にとど
め、無駄時間を省くことにより一層の高速処理化を図る
ことにある。
«Object of the Invention» An object of the present invention is to further reduce the dead time by minimizing the transfer of the control right from the bit processor side to the general-purpose processor side in the high-speed programmable controller of this type. It is to achieve high-speed processing.

≪発明の構成と効果≫ この発明は前記の目的を達成するために、基本命令を実
行するビットプロセッサと、応用命令を実行する汎用プ
ロセッサとを併有するプログラマブル・コントローラに
おいて、 実行条件に基づき各応用命令が属する命令群のコードを
各応用命令に対応して予め記憶したメモリを設け、 前記ビットプロセッサは、 各命令を読出す命令読出手段と、 前記命令読出手段によって基本命令が読出された場合に
は、当該基本命令の演算を実行するビット演算手段と、 前記命令読出手段によって応用命令が読出された場合に
は、前記メモリから当該応用命令に対応した命令群コー
ドを読出して、その命令群コードと前記ビット演算手段
による演算結果に基づき当該応用命令の実行条件が成立
しているか否かを判定し、当該応用命令の実行条件が成
立しているときには当該応用命令を汎用プロセッサ側で
実行させ、当該応用命令の実行条件が不成立のときには
当該応用命令をビットプロセッサ側でスキップ処理させ
る判定手段と、 を具備することを特徴とするものである。
<< Configuration and Effect of the Invention >> In order to achieve the above-mentioned object, the present invention is a programmable controller having both a bit processor for executing a basic instruction and a general-purpose processor for executing an application instruction. A memory is provided in which the codes of the instruction group to which the instruction belongs is stored in advance corresponding to each application instruction, and the bit processor includes an instruction reading unit for reading each instruction and a basic instruction when the basic instruction is read by the instruction reading unit. Is a bit operation means for executing an operation of the basic instruction, and, when the application instruction is read by the instruction reading means, reads an instruction group code corresponding to the application instruction from the memory and outputs the instruction group code. And whether or not the execution condition of the application instruction is satisfied based on the operation result of the bit operation means and the application instruction. When the execution condition of is satisfied, the application instruction is executed by the general-purpose processor side, and when the execution condition of the application instruction is not satisfied, the application instruction is skipped by the bit processor side. It is a feature.

このような構成によれば、ビットプロセッサ側で応用命
令が解読されたとしても、判定回路によって命令実行条
件の成立が判定されない限り、ビットプロセッサ側から
汎用プロセッサ側への制御権受渡しは行なわれたいた
め、その分だけ処理速度の高速化を図ることができる。
With such a configuration, even if the application instruction is decoded on the bit processor side, it is desired to pass the control right from the bit processor side to the general-purpose processor side unless the determination circuit determines that the instruction execution condition is satisfied. Therefore, the processing speed can be increased accordingly.

また、本発明によれば、応用命令の実行条件を予め記録
したメモリとビット演算手段とは別の判定手段とにより
応用命令を実行する汎用プロセッサの動作制御が行わ
れ、ビット演算手段による基本命令の実行には何等影響
を与えないため、基本命令からなる演算プログラムが増
大しないと共に、ビット演算処理が高速になる。
Further, according to the present invention, the operation control of the general-purpose processor that executes the application instruction is performed by the memory in which the execution condition of the application instruction is recorded in advance and the determination means other than the bit operation means, and the basic instruction by the bit operation means is performed. Since it does not affect the execution of, there is no increase in the number of arithmetic programs consisting of basic instructions, and the bit arithmetic processing becomes faster.

≪実施例の説明≫ 第1図は本発明が適用された高速処理型プログラマブル
・コントローラの電気的なハードウエア構成を示すブロ
ック図である。
<< Description of Embodiments >> FIG. 1 is a block diagram showing the electrical hardware configuration of a high-speed processing programmable controller to which the present invention is applied.

同図に示されるように、このプログラマブル・コントロ
ーラは、ビットプロセッサ(以下、BPUという),汎用
プロセッサ(以下、MPUという)からなる2つのプロセ
ッサ1,2,I/Oメモリ3,ユーザメモリ4,フラグメモリ5,シ
ステムメモリ6,ワークメモリ7,周辺装置をサポートする
ペリフェラルインタフェース8,入出力装置を動作させる
I/Oインタフェース9などを備えている。
As shown in the figure, this programmable controller is composed of two processors 1, 2, an I / O memory 3, a user memory 4, and a bit processor (hereinafter referred to as BPU) and a general-purpose processor (hereinafter referred to as MPU). Operates flag memory 5, system memory 6, work memory 7, peripheral interface supporting peripheral devices 8, input / output devices
It is equipped with an I / O interface 9 and the like.

MPU2はプログラマブル・コントローラ全体の主導権を持
ち、システムメモリ6内に書かれたプログラムに従って
動作する。また、BPU2を通して、I/Oメモリ3やユーザ
メモリ4,フラグメモリ5をもアクセスできる構造となっ
ている。
The MPU 2 has the initiative of the entire programmable controller and operates according to the program written in the system memory 6. Further, the I / O memory 3, the user memory 4, and the flag memory 5 can be accessed through the BPU 2.

これによって、 1)周辺装置からユーザプログラムの書込,読出 2)フラグメモリの作成 3)I/Oリフレッシュ,高機能I/Oのコントロール 4)BPUの起動/停止 5)応用命令の実行 6)内部基準クロックの作成 7)割込処理 などを実行するようになされている。By this, 1) Writing and reading user program from peripheral device 2) Creation of flag memory 3) I / O refresh, control of high-performance I / O 4) BPU start / stop 5) Execution of application instruction 6) Creation of internal reference clock 7) It is designed to execute interrupt processing.

一方、BPU1はMPU2の起動により動作するもので、BPU1内
部の命令読出手段としてプログラムカウンタや、ビット
演算手段としてのビット演算部、および判定手段として
の判定回路等によって、 1)ユーザプログラムの読出 2)基本命令の実行 3)フラグメモリの読出 4)応用命令非実行時のスキップ処理 5)微分フラグの書込 などを実行する。
On the other hand, the BPU1 operates by starting up the MPU2, and by the program counter as the instruction reading means inside the BPU1, the bit operation unit as the bit operation means, the determination circuit as the determination means, etc., 1) reading of the user program 2 ) Execution of basic instruction 3) Reading of flag memory 4) Skip processing when application instruction is not executed 5) Execution of differential flag writing, etc.

フラグメモリ5は、第2図に示されるように、ユーザプ
ログラムの1ワード(16ビット)に対応して4ビットの
エリアを有する。このうち、1ビットFD3は微分フラグ
と呼ばれ、残りの3ビットFD0,FD1,FD2は命令グループ
の種別コードを示している。
As shown in FIG. 2, the flag memory 5 has a 4-bit area corresponding to 1 word (16 bits) of the user program. Of these, 1-bit FD 3 is called a differential flag, and the remaining 3-bits FD 0 , FD 1 and FD 2 indicate the instruction group type code.

微分フラグFD3はビット演算部の演算結果,すなわちパ
ワーフロー(以下、PFという)の立ち上がり(“0",→
“1"),立ち下がり(“1"→“0")の検出のためのフラ
グで、応用命令が読出されたとき、その時点のPFの値を
各スキャン毎に入力する。
The differential flag FD 3 is the operation result of the bit operation unit, that is, the rising edge of the power flow (hereinafter referred to as PF) (“0”, →
This is a flag for detecting "1") and falling ("1" → "0"). When the application instruction is read, the PF value at that time is input for each scan.

フラグメモリ5に記憶された命令グルーフの種別と動作
の内容を第3図に、またその判別のための判定回路を第
4図に示す。
FIG. 3 shows the type of instruction group stored in the flag memory 5 and the contents of the operation, and FIG. 4 shows a determination circuit for determining the type.

命令グループ0は基本命令群を示し、常にBPU1で実行す
る。命令グループ1は常にMPU2で処理する命令群で、EN
D命令などがこれに相当する。グループ1に属する命令
のときは、BPU1は無条件で停止し、主導権をMPU2に受渡
す。
Instruction group 0 indicates a basic instruction group and is always executed by BPU1. Instruction group 1 is a group of instructions that are always processed by MPU2.
D command etc. correspond to this. When the instruction belongs to group 1, BPU1 unconditionally stops and passes the initiative to MPU2.

命令グループ2は、PFの立ち上がり時に実行する命令群
である。これは、前回のスキャン時のPFの値(以下PPF
という)を微分フラグFD3より読出し、現在のPFの値と
比較することによって、PFの立ち上がりを検出する。そ
して、立ち上がり時はBPU1は停止し、主導権をMPU2に受
渡す。
Instruction group 2 is a group of instructions executed at the rise of PF. This is the PF value from the previous scan (hereinafter PPF
Is read from the differential flag FD 3 and is compared with the current value of PF to detect the rise of PF. Then, at the start-up, BPU1 is stopped and the initiative is handed over to MPU2.

立上がり時以外は、BPU1内の図示しないスキップ回路が
働き、次の命令語の先頭までスキップする。
When not rising, a skip circuit (not shown) in BPU1 operates to skip to the beginning of the next instruction word.

命令グループ3は、PFの立ち上がり時に実行する命令群
である。命令グループ2と同様に、前回のPFと現在のPF
とを比較して立ち下がりを検出し、立ち下がり時のみMP
U2へ制御権を受渡し、他はスキップする。
Instruction group 3 is a group of instructions executed at the rise of PF. As with instruction group 2, the previous PF and the current PF
The falling edge is detected by comparing with
Pass control to U2, skip others.

命令グループ4は、PF=“1"のときのみ実行する命令
群,命令グループ5はPF=“0"のときのみ実行する命令
群で、それぞれ実行条件成立時MPU2へ受渡し、不成立時
はスキップする。
Instruction group 4 is an instruction group that is executed only when PF = "1", and instruction group 5 is an instruction group that is executed only when PF = "0". Each is passed to MPU2 when the execution condition is satisfied, and skipped when it is not satisfied. .

命令グループ7は、命令語の2ワード目以降を示し、ス
キップするときに、次の命令語の先頭を検索するために
用いられる。
The instruction group 7 indicates the second and subsequent words of the instruction word, and is used for searching the beginning of the next instruction word when skipping.

以上の各命令グループコードは、第4図に示される3−
8デコーダで解読される。デコード出力1はBPU処理指
令信号S1となり、デコード出力2は無条件でMPU処理指
令信号S2となる。また、デコード出力7は無条件でスキ
ップ処理指令信号S3となる。デコード出力2〜5につい
ては、ANDゲート10a〜10dで論理条件成立時のみMPU処理
信号S2となり、不成立時にはANDゲート10eによりスキッ
プ処理指令信号S3となる。
The above instruction group codes are shown in FIG.
Decoded by 8 decoders. The decode output 1 becomes the BPU processing command signal S 1 , and the decode output 2 unconditionally becomes the MPU processing command signal S 2 . Further, the decode output 7 becomes the skip processing command signal S 3 unconditionally. Regarding the decode outputs 2 to 5, the AND gates 10a to 10d serve as the MPU processing signal S 2 only when the logical condition is satisfied, and the AND gate 10e serves as the skip processing command signal S 3 when the logical condition is not satisfied.

次に、第5図はMPUで実行される制御内容を概略的に示
すゼネラルフローチャートであり、以下このフローチャ
ートに従ってMPUの動作を系統的に説明する。
Next, FIG. 5 is a general flow chart schematically showing the control contents executed by the MPU, and the operation of the MPU will be systematically described below with reference to this flow chart.

電源投入によりプログラムがスタートすると、まずイニ
シャル処理が実行されて、各種フラグ,レジスタ類の初
期設定が行なわれるとともに、特に本発明では、第2図
に示されるユーザメモリをその先頭から検索することに
より、各命令語が何れの命名群に属するかを解析し、そ
の解析結果を順次フラグメモリへと登録する自動処理が
行なわれる(ステップ501)。
When the program is started by turning on the power, first, the initial process is executed to initialize various flags and registers. In particular, in the present invention, the user memory shown in FIG. 2 is searched from the beginning. An automatic process for analyzing which naming group each instruction word belongs to and sequentially registering the analysis result in the flag memory is performed (step 501).

続くシステムサービス処理では、公知のプログラミング
処理,モニタ処理などを行なって、プログラミングツー
ルからのキー操作を検出する(ステップ502)。
In the subsequent system service processing, known programming processing, monitor processing, etc. are performed to detect key operations from the programming tool (step 502).

続く入力更新処理では、I/Oインタフェース9を介して
入出力装置から入力データを取込み、これをI/Oメモリ
3の入力エリアに書込む(ステップ503)。
In the subsequent input update processing, input data is fetched from the input / output device via the I / O interface 9 and written in the input area of the I / O memory 3 (step 503).

以後、システムサービス処理でRUNキーの操作が確認さ
れるまでの間(ステップ504否定)、I/Oインタフェース
9を介して全出力を強制的にOFF状態に設定する(ステ
ップ505)。
After that, until the operation of the RUN key is confirmed in the system service processing (No at step 504), all outputs are forcibly set to the OFF state via the I / O interface 9 (step 505).

この状態において、プログラミング・ツール(図示省
略)でRUN操作が行なわれると(ステップ504肯定)、ユ
ーザプログラムの実行処理が開始される。
In this state, when a RUN operation is performed with a programming tool (not shown) (Yes in step 504), the execution process of the user program is started.

この命令実行処理では、後述する第6図及び第7図のフ
ローチャートに従って、BPU1及びMPU2を適宜使用してユ
ーザ命令の実行処理を行ない、最終的にEND命令が検出
されるのを待って(ステップ507肯定)、出力更新処理
へ移行する。
In this instruction execution processing, the BPU1 and MPU2 are appropriately used to execute the user instruction execution processing according to the flowcharts of FIGS. 6 and 7 described later, and finally wait until the END instruction is detected (step 507 affirmative), and shifts to output update processing.

この出力更新処理では、命令実行結果で書替が終了した
I/Oメモリの出力データを、I/Oインタフェース9を介し
て出力装置へ送出する。
In this output update process, the rewriting is completed with the result of command execution.
The output data of the I / O memory is sent to the output device via the I / O interface 9.

そして、以上ステップ501〜508の処理を、RUNモードが
継続する限り繰り返すわけである。
Then, the processes of steps 501 to 508 are repeated as long as the RUN mode continues.

次に、第6図及び第7図を参照しながら、本発明の要部
について説明する。
Next, the main part of the present invention will be described with reference to FIGS. 6 and 7.

前述したように、RUNモードに入る前に、フラグメモリ
5内にはユーザプログラムを予め用意されたテーブルに
従って解析することにより得られたグループ種別コード
が登録されている。
As described above, the group type code obtained by analyzing the user program according to the table prepared in advance is registered in the flag memory 5 before entering the RUN mode.

このとき、微粉フラグFD3にはグループ2は初期値“1"
を、グループ3は初期値“0"を記憶しておく。
At this time, the initial value of group 2 is “1” in the fine powder flag FD 3.
Group 3 stores the initial value “0”.

ここで、ユーザメモリ4に書込まれているユーザプログ
ラムは、従来機種との互換性,周辺装置の共用性から、
従来の命令コードと同一のものが使われている。
Here, the user program written in the user memory 4 is compatible with the conventional model and the commonality of the peripheral device.
The same instruction code as the conventional one is used.

ユーザプログラムの実行は、第6図のMPUの動作フロ
ー,第7図のBPUの動作フローによって示される手順で
行なわれる。
Execution of the user program is performed in the procedure shown by the operation flow of the MPU of FIG. 6 and the operation flow of the BPU of FIG.

すなわち、まずMPU2はBPU1のプログラムカウンタを、ユ
ーザプログラムの先頭にセットし、BPU1を起動する(ス
テップ601)。以後、MPU2はBPU1が停止するまで待機し
ている(ステップ602否定)。
That is, first, the MPU2 sets the program counter of the BPU1 at the head of the user program and activates the BPU1 (step 601). After that, MPU2 waits until BPU1 stops (No at step 602).

一方、BPU1はユーザ命令を読出し(ステップ701)、ま
ず基本命令かどうかを判断する(ステップ702)。基本
命令であれば(ステップ702肯定)、そのまま自身のビ
ット演算部で命令を実行し(ステップ703)、次のユー
ザ命令を読出す(ステップ701)。
On the other hand, the BPU 1 reads the user instruction (step 701) and first determines whether it is a basic instruction (step 702). If it is a basic instruction (Yes at Step 702), the instruction is executed as it is by its own bit operation unit (Step 703), and the next user instruction is read (Step 701).

もし、基本命令でない,すなわち応用命令であれば(ス
テップ702否定)、次にフラグメモリからグループ種別
コードを読出す(ステップ704)。
If it is not a basic instruction, that is, if it is an application instruction (No at step 702), then the group type code is read from the flag memory (step 704).

次いで、第4図に示される判定回路の出力により、応用
命令の実行条件が成立しているか否かを判別し(ステッ
プ705)、条件不成立の場合は(ステップ705否定)スキ
ップ回路(図示せず)を動作させ、次の命令の先頭まで
スキップする。
Next, it is judged from the output of the judgment circuit shown in FIG. 4 whether or not the execution condition of the application instruction is satisfied (step 705), and if the condition is not satisfied (step 705 negative), a skip circuit (not shown). ) To skip to the beginning of the next instruction.

応用命令実行条件が成立した場合は(ステップ705肯
定)、BPU1を停止し、MPU2に主導権を受渡す(ステップ
706)。
If the application instruction execution condition is satisfied (Yes at Step 705), the BPU1 is stopped and the initiative is transferred to MPU2 (Step S705).
706).

MPU2はBPU1が停止したことを検知し(ステップ602肯
定)、その停止した要因を判定する。もし応用命令以外
でBPU1が停止した場合は(ステップ603否定)、異常と
みなして異常処理を行なう。
The MPU2 detects that the BPU1 has stopped (Yes at Step 602), and determines the cause of the stop. If the BPU1 stops due to a command other than the application command (No at step 603), it is considered to be abnormal and abnormal processing is performed.

応用命令で停止した場合は(ステップ603肯定)、まずE
ND命令かどうかを判別し(ステップ604)、END命令なら
ば(ステップ604肯定)ユーザプログラムの1スキャン
の実行を終了する。
If stopped by an application command (Yes at step 603), firstly E
Whether it is the ND instruction or not is judged (step 604), and if it is the END instruction (step 604: Yes), the execution of one scan of the user program is ended.

END命令以外の応用命令であれば(ステップ604否定)、
その命令語を実行し(ステップ605)、次の命令語よりB
PUを起動し、ユーザプログラムの実行を続ける。
If it is an application command other than the END command (No at step 604),
The command word is executed (step 605), and B is read from the next command word.
Start the PU and continue executing the user program.

以上のようにして、ユーザプログラム実行中MPU2とBPU1
間の不要な受渡しを最小限にし、高速化を図ることが可
能となる。
As described above, MPU2 and BPU1 during user program execution
It is possible to minimize unnecessary delivery between the two and to speed up the process.

また、フラグメモリ4はRAMによって構成されているの
で、必要に応じてグループ種別を変化させることもでき
る。例えばPFの立ち上がり時と立ち下がり時両方実行し
たい命令の場合、始めグループ2に位置付けておいて、
立ち上がり時にグループ3にフラグメモリを書替える。
次の立ち下がり時にグループ2に戻しておけば、立ち上
がり,立ち下がりとも実行する命令となる。このように
グループをユーザ命令自体で変化させることにより、よ
り適切な実行条件を得ることもできる。
Further, since the flag memory 4 is composed of RAM, the group type can be changed as needed. For example, for an instruction that you want to execute at both rising and falling edges of PF, position it in group 2 at the beginning,
The flag memory is rewritten in group 3 at the time of rising.
If it is returned to group 2 at the next fall, the instruction will be executed at both the rise and fall. By changing the group by the user command itself in this way, more appropriate execution conditions can be obtained.

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

第1図は本発明が適用された高速処理型プログラマブル
・コントローラの電気的なハードウエア構成を示すブロ
ック図、第2図はフラグメモリ及びユーザメモリの内容
を示すメモリマップ、第3図は各命令群コードと命令実
行条件の関係を示すテーブルの内容を示すメモリマッ
プ、第4図はBPU内に設けられる条件成立判定回路を示
すブロック図、第5図はMPUの制御プログラムの構成を
示すゼネラルフローチャート、第6図は命令実行処理に
おけるMPUの動作を示すフローチャート、第7図は命令
実行処理におけるBPUの動作を示すフローチャートであ
る。 1……BPU 2……MPU 4……ユーザメモリ 5……フラグメモリ 13……判定回路
FIG. 1 is a block diagram showing an electrical hardware configuration of a high-speed processing type programmable controller to which the present invention is applied, FIG. 2 is a memory map showing contents of a flag memory and a user memory, and FIG. 3 is each instruction. A memory map showing the contents of a table showing the relationship between group codes and instruction execution conditions, FIG. 4 is a block diagram showing a condition satisfaction determination circuit provided in the BPU, and FIG. 5 is a general flowchart showing the configuration of the control program of the MPU. FIG. 6 is a flowchart showing the operation of the MPU in the instruction execution process, and FIG. 7 is a flowchart showing the operation of the BPU in the instruction execution process. 1 …… BPU 2 …… MPU 4 …… User memory 5 …… Flag memory 13 …… Judgment circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】基本命令を実行するビットプロセッサと、
応用命令を実行する汎用プロセッサとを併有するプログ
ラマブル・コントローラにおいて、 実行条件に基づき各応用命令が属する命令群のコードを
各応用命令に対応して予め記憶したメモリを設け、 前記ビットプロセッサは、 各命令を読出す命令読出手段と、 前記命令読出手段によって基本命令が読出された場合に
は、当該基本命令の演算を実行するビット演算手段と、 前記命令読出手段によって応用命令が読出された場合に
は、前記メモリから当該応用命令に対応した命令群コー
ドを読出して、その命令群コードと前記ビット演算手段
による演算結果に基づき当該応用命令の実行条件が成立
しているか否かを判定し、当該応用命令の実行条件が成
立しているときには当該応用命令を汎用プロセッサ側で
実行させ、当該応用命令の実行条件が不成立のときには
当該応用命令をビットプロセッサ側でスキップ処理させ
る判定手段と、 を具備することを特徴とするプログラマブル・コントロ
ーラ。
1. A bit processor for executing basic instructions,
In a programmable controller that also includes a general-purpose processor that executes application instructions, a memory that prestores codes of an instruction group to which each application instruction belongs based on execution conditions is provided corresponding to each application instruction. An instruction reading unit for reading an instruction; a bit operation unit for executing an operation of the basic instruction when the basic instruction is read by the instruction reading unit; and an application instruction for reading the application instruction by the instruction reading unit. Reads the instruction group code corresponding to the application instruction from the memory, determines whether the execution condition of the application instruction is satisfied based on the instruction group code and the operation result of the bit operation means, When the execution condition of the application instruction is satisfied, the application instruction is executed by the general-purpose processor side, and the execution condition of the application instruction is executed. There programmable controller characterized by comprising: a determination means for skipping the application instructions at the bit processor side when not satisfied.
【請求項2】前記メモリへの命令群コードの書込は、ユ
ーザプログラムの実行開始に先立ち、ユーザプログラム
中の各命令語が何れの命令群に属するかを解析し、その
解析結果を書込む自動処理により行なわれる特許請求の
範囲第1項に記載のプログラマブル・コントローラ。
2. The instruction group code is written to the memory by analyzing which instruction group each instruction word in the user program belongs to before starting execution of the user program, and writing the analysis result. The programmable controller according to claim 1, which is performed by automatic processing.
【請求項3】前記メモリへの命令群コードの書込は、ユ
ーザプログラムから特定の命令語が読出されたとき、指
定された命令群コードを指定されたアドレスに書込む自
動処理により行なわれる特許請求の範囲第1項に記載の
プログラマブル・コントローラ。
3. An instruction group code is written to the memory by an automatic process of writing a specified instruction group code to a specified address when a specific instruction word is read from a user program. The programmable controller according to claim 1.
JP61305916A 1986-12-22 1986-12-22 Programmable controller Expired - Lifetime JPH0731528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61305916A JPH0731528B2 (en) 1986-12-22 1986-12-22 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61305916A JPH0731528B2 (en) 1986-12-22 1986-12-22 Programmable controller

Publications (2)

Publication Number Publication Date
JPS63157204A JPS63157204A (en) 1988-06-30
JPH0731528B2 true JPH0731528B2 (en) 1995-04-10

Family

ID=17950842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61305916A Expired - Lifetime JPH0731528B2 (en) 1986-12-22 1986-12-22 Programmable controller

Country Status (1)

Country Link
JP (1) JPH0731528B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02204803A (en) * 1989-02-03 1990-08-14 Fuji Electric Co Ltd Programmable controller
JP2525492B2 (en) * 1989-12-29 1996-08-21 シャープ株式会社 Programmable controller
JPH03217903A (en) * 1990-01-24 1991-09-25 Fuji Electric Co Ltd Programmable controller
JPH10307607A (en) * 1997-05-08 1998-11-17 Hitachi Ltd Main processor and programmable controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5523510A (en) * 1978-08-02 1980-02-20 Hitachi Ltd Sequence control unit

Also Published As

Publication number Publication date
JPS63157204A (en) 1988-06-30

Similar Documents

Publication Publication Date Title
US4462086A (en) Loading system in numerical controller
JPH0731528B2 (en) Programmable controller
JPH10240522A (en) Arithmetic unit
JP2544533B2 (en) Programmable controller sequence instruction processor
JPS6117474Y2 (en)
JPS6325373B2 (en)
JP2721610B2 (en) Programmable controller
JP3441262B2 (en) Data processing device
JPS59144955A (en) Information processor
KR920004728B1 (en) High-speed execution system
JPH04332045A (en) Arithmetic processor
JPS625439A (en) Instruction code expansion system
JPS62243032A (en) Information processor
JPH08249022A (en) Multiprocessor arithmetic unit and programmable controller having the arithmetic unit
JPH08161222A (en) Processor and program preparation method therefor
JPS61255440A (en) Program interruption control system
JPH052472A (en) Arithmetic unit
JPS6126693B2 (en)
JPS5846442A (en) Programmable controller
JPS625466A (en) Auxiliary processor control system
JP2000039906A (en) Programmable controller
JPS63120340A (en) Data processor
JPH05189015A (en) Programmable controller
JPS5852261B2 (en) Program processing method
JPH02257349A (en) Network address setting system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term