JPH05341820A - Arithmetic processing method for programmable controller - Google Patents

Arithmetic processing method for programmable controller

Info

Publication number
JPH05341820A
JPH05341820A JP14574192A JP14574192A JPH05341820A JP H05341820 A JPH05341820 A JP H05341820A JP 14574192 A JP14574192 A JP 14574192A JP 14574192 A JP14574192 A JP 14574192A JP H05341820 A JPH05341820 A JP H05341820A
Authority
JP
Japan
Prior art keywords
processor
instruction
sequence
cpu
program
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.)
Granted
Application number
JP14574192A
Other languages
Japanese (ja)
Other versions
JP3024719B2 (en
Inventor
Tomio Ikejima
冨美夫 池嶋
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP4145741A priority Critical patent/JP3024719B2/en
Publication of JPH05341820A publication Critical patent/JPH05341820A/en
Application granted granted Critical
Publication of JP3024719B2 publication Critical patent/JP3024719B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Programmable Controllers (AREA)
  • Advance Control (AREA)

Abstract

PURPOSE:To shorten the processing time of a sequence instruction by preparing the operand information as well as the storing address of the program information necessary for the applied instruction of a 2nd processor through the identification processing of a 1st processor. CONSTITUTION:The bit arithmetic instruction described in a sequence program is carried out by a bit processor 20, and other applied instructions are carried out by a CPU 10. The type of the sequence program is identified by the processor 20 and an executing processor is decided. The processor 20 also identifies the types of the applied instructions together with identification of the type of the sequence instruction. Then the processor 20 produces a jumping destination address of the CPU 10 through a sequence instruction/address converter 20A with an instruction that cannot be executed by the processor 20. This jumping destination address is written in a jumping destination designating register 40B. At the same time, the operand information is sent to the CPU 10. The CPU 10 reads a detailed program out of a jump table 40A based on those information and carries it out.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央演算処理装置(C
PU)とビット演算プロセッサ(BP)の2つのプロセ
ッサでシーケンス命令の実行を行うプログラマブルコン
トローラの演算処理方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to a central processing unit (C
The present invention relates to an arithmetic processing method of a programmable controller in which a sequence instruction is executed by two processors, a PU) and a bit arithmetic processor (BP).

【0002】[0002]

【従来の技術】従来、シーケンスプログラムを実行する
ことにより電子機器の自動制御を行うプログラマブルコ
ントローラでは、高速演算処理を実現するために、シー
ケンス命令の中のビット演算を行うビット演算プロセッ
サ(以下、BPと称す)とビット演算以外のシーケンス
命令(以下、この命令を応用命令と称す)を実行する中
央演算処理装置(CPU)とを設けている。ビット演算
としては主にアンド,オア等のビット情報の論理演算や
ビット情報の読み/書きを行い、プログラマブルコント
ローラでは接点情報の論理演算や入出力処理にBPが用
いられる。また、応用命令は、ビット値以外の数値演算
や各種情報処理の実行を指示する命令である。
2. Description of the Related Art Conventionally, in a programmable controller for automatically controlling electronic equipment by executing a sequence program, in order to realize high-speed arithmetic processing, a bit arithmetic processor (hereinafter, BP) for performing bit arithmetic in sequence instructions. And a central processing unit (CPU) for executing sequence instructions other than bit operations (hereinafter, these instructions are referred to as application instructions). The bit operation mainly performs logical operation of bit information such as AND and OR and read / write of bit information, and the programmable controller uses BP for logical operation of contact information and input / output processing. In addition, the application instruction is an instruction for instructing execution of numerical operations other than bit values and various information processing.

【0003】ユーザーメモリから読出されたシーケンス
命令はBPにおいて自己のBPで実行可能か否かの判別
が行われ、シーケンス命令がBPにおいて実行の不可の
場合には、そのシーケンス命令の実行権がCPUに引き
渡される。CPUは、シーケンス命令の実行権を受け取
ると、シーケンス命令の種類内容に対応した実際の演算
処理を実行する。より具体的には、シーケンス命令の種
類毎に、その命令に対応した演算処理を規定した詳細の
プログラム情報が予めシステムプログラムメモリに格納
されているので、CPUはシーケンス命令の命令コード
からシステムプログラムメモリの読出し先頭アドレスを
識別又は算出する。次に算出された先頭アドレスを用い
てプログラム情報を読出して演算実行する。
The BP determines whether or not the sequence instruction read from the user memory can be executed by its own BP. If the sequence instruction cannot be executed by the BP, the execution right of the sequence instruction is determined by the CPU. Be delivered to. When the CPU receives the right to execute the sequence instruction, the CPU executes the actual arithmetic processing corresponding to the type content of the sequence instruction. More specifically, for each type of sequence instruction, detailed program information that defines the arithmetic processing corresponding to the instruction is stored in advance in the system program memory, so that the CPU determines from the instruction code of the sequence instruction to the system program memory. The read start address of is identified or calculated. Next, the program information is read out by using the calculated start address and calculation is executed.

【0004】この演算実行に関連して、シーケンス命令
の中のオペランド部(演算に用いるパラメータ値の格納
アドレス)の示す情報を各種メモリから読出す。CPU
側で応用命令を実行すると、CPUはBPにシーケンス
命令の実行権を引き渡す。実行権を引き渡されたBPは
次のシーケンス命令について、上述の同様の処理を行
う。このようにしてBPとCPUとはシーケンス命令の
種類に対応して、シーケンスプログラム中のシーケンス
命令を実行していく。
In connection with the execution of this operation, the information indicated by the operand portion (storage address of the parameter value used in the operation) in the sequence instruction is read from various memories. CPU
When the application instruction is executed on the side, the CPU hands over the execution right of the sequence instruction to the BP. The BP to which the execution right has been handed over performs the same processing as described above for the next sequence instruction. In this way, the BP and the CPU execute the sequence command in the sequence program in accordance with the type of the sequence command.

【0005】[0005]

【発明が解決しようとする課題】このようにして、プロ
グラマブルコントローラの処理速度の向上が図られてき
たが、より一層の高速処理が望まれている。
In this way, the processing speed of the programmable controller has been improved, but much higher speed processing is desired.

【0006】そこで、本発明の目的は、上述の点に鑑み
て、プログラマブルコントローラのシーケンスプログラ
ム実行速度をより高めることの可能なプログラマブルコ
ントローラの演算処理方法を提供することにある。
Therefore, in view of the above points, an object of the present invention is to provide an arithmetic processing method of a programmable controller capable of further increasing the sequence program execution speed of the programmable controller.

【0007】[0007]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、シーケンスプログラム中
に記載されたシーケンス命令の中のビット演算命令を第
1のプロセッサが実行し、該ビット演算命令以外の応用
命令を第2のプロセッサが実行し、シーケンス命令の種
類を前記第1のプロセッサが識別して、シーケンス命令
を実行するプロセッサを決定するプログラマブルコント
ローラの演算処理方法において、前記第2のプロセッサ
が実行するシーケンス命令の種類毎に該シーケンス命令
の処理内容を示すプログラム情報をメモリに予め記憶し
ておき、前記第1のプロセッサは前記シーケンス命令の
識別を行う際に、前記応用命令についての種類識別をも
実行し、当該識別結果に対応させて前記メモリに記憶の
プログラム情報の格納アドレスを前記第2のプロセッサ
に引き渡すことを特徴とする。
In order to achieve such an object, the invention of claim 1 is such that a first processor executes a bit operation instruction in a sequence instruction described in a sequence program, In the arithmetic processing method of a programmable controller, the second processor executes an application instruction other than the bit operation instruction, the type of the sequence instruction is identified by the first processor, and the processor that executes the sequence instruction is determined. The program information indicating the processing content of the sequence instruction for each type of the sequence instruction executed by the second processor is stored in advance in the memory, and the application is performed when the first processor identifies the sequence instruction. The type identification of the instruction is also executed, and the program information stored in the memory is associated with the identification result. Wherein the hand over paid address to the second processor.

【0008】請求項2の発明は、前記第1のプロセッサ
は前記応用命令についての種類識別を行った場合には、
識別の対象となったシーケンス命令から、前記第2のプ
ロセッサの実行に用いるオペランド情報を取り出し、当
該第2のプロセッサに引き渡すことを特徴とする。
According to a second aspect of the present invention, when the first processor identifies the type of the application instruction,
It is characterized in that the operand information used for the execution of the second processor is extracted from the sequence instruction which is the object of identification and is passed to the second processor.

【0009】[0009]

【作用】本発明は、従来、BP(第1のプロセッサ)が
シーケンス命令を実行するプロセッサの選択のためにシ
ーケンス命令の識別を行い、CPU(第2のプロセッ
サ)がシーケンス命令に対応のプログラム情報の格納ア
ドレスを決定するためのシーケンス命令の識別(又は算
出)を行う点に着目し、本発明では第1プロセッサの識
別処理を利用して、第2プロセッサが必要とするプログ
ラム格納アドレスやオペランド情報を第1プロセッサか
ら第2プロセッサに引き渡す。
According to the present invention, conventionally, the BP (first processor) identifies the sequence instruction for the selection of the processor that executes the sequence instruction, and the CPU (second processor) program information corresponding to the sequence instruction. Paying attention to the point of identifying (or calculating) the sequence instruction for determining the storage address of the program, the present invention utilizes the identification process of the first processor to utilize the program storage address and operand information required by the second processor. Is transferred from the first processor to the second processor.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0011】図1は、本発明を適用したプログラマブル
コントローラの回路構成を図1に示す。
FIG. 1 shows the circuit configuration of a programmable controller to which the present invention is applied.

【0012】図1において、CPU10はシステムRO
M(リードオンリメモリ)30に格納されたシステムプ
ログラムに従って装置全体の動作制御を司る他、システ
ム運転時にはユーザー用RAM(ランダムアクセスメモ
リ)50のシーケンスプログラムの中の応用命令を演算
実行する。
In FIG. 1, the CPU 10 is a system RO.
In addition to controlling the operation of the entire apparatus in accordance with a system program stored in M (read only memory) 30, application instructions in the sequence program of user RAM (random access memory) 50 are arithmetically executed during system operation.

【0013】CPU10内にはユーザー用RAM50の
読取りアドレスを指定するプログラムカウンタ10Aが
設けられており、このプログラムカウンタ10Aの指示
するアドレスからシーケンス命令がCPU10又はBP
20により読出され、バス上に送出される。CPU10
とBP20とはバス以外にも信号線接続され、この信号
線を介して動作タイミング信号や本発明に関わる情報信
号の授受が行われる。
A program counter 10A for designating a read address of the user RAM 50 is provided in the CPU 10, and a sequence command is issued from the address designated by the program counter 10A to the CPU 10 or BP.
It is read by 20 and sent out on the bus. CPU10
And BP20 are connected to signal lines other than the bus, and operation timing signals and information signals relating to the present invention are exchanged via these signal lines.

【0014】BP20はメモリに対して読み/書き可能
で、ビット単位の演算を行うプロセッサを用いる。BP
20内には本発明に関わるシーケンス命令−アドレス変
換回路20Aおよびオペランド情報作成回路20Bが設
けられている。
The BP 20 is readable / writable with respect to the memory and uses a processor which performs bit-by-bit arithmetic. BP
Within 20 is provided a sequence instruction-address conversion circuit 20A and an operand information creation circuit 20B according to the present invention.

【0015】シーケンス命令−アドレス変換回路20A
は、従来、CPUがソフト処理で行っていた、シーケン
ス命令についての詳細プログラムの先頭格納アドレスの
算出処理をハードで行う回路である。回路の一例として
はシフトレジスタ等を用いて、以下の処理を実行する。
すなわち、シーケンス命令の中の命令コードを表わす複
数ビットをシフト処理によりマスクし、マスク後のビッ
ト情報の中の特定ビットを抽出することにより読出しア
ドレスを作成する。
Sequence instruction-address conversion circuit 20A
Is a circuit for performing, by hardware, calculation processing of a head storage address of a detailed program for a sequence instruction, which is conventionally performed by software by the CPU. As an example of the circuit, a shift register or the like is used to execute the following processing.
That is, a read address is created by masking a plurality of bits representing an instruction code in a sequence instruction by shift processing and extracting a specific bit from the masked bit information.

【0016】オペランド情報作成回路20Bの回路構成
を図2に示す。図2において、デコーダ101は従来の
ように読出しのシーケンス命令がBPが実行すべきであ
るか否かの判別を信号識別する。デコーダ101は、そ
の他、本発明に関わる処理として、BP非実行のシーケ
ンス命令(応用命令)を検出したとき、そのシーケンス
命令の中のオペランド部分をレジスタ102に格納する
ための制御信号を発生する。レジスタ102に格納され
たオペランドが、CPU10の応用命令の実行に必要な
情報として、CPU10に引き渡される。
The circuit configuration of the operand information creating circuit 20B is shown in FIG. In FIG. 2, the decoder 101 performs signal identification for determining whether or not the read sequence instruction should be executed by the BP as in the conventional case. In addition, when the BP non-execution sequence instruction (application instruction) is detected, the decoder 101 also generates a control signal for storing the operand portion of the sequence instruction in the register 102, as a process related to the present invention. The operand stored in the register 102 is delivered to the CPU 10 as information necessary for executing the application instruction of the CPU 10.

【0017】図1に戻り、システムROM30には、C
PU10の実行するシステム処理を規定したシステムプ
ログラムが格納されている。従来のシステムROMと異
なる点は、本実施例のシステムROM30には、シーケ
ンス命令(応用命令)の詳細プログラムが記載されてお
らず、システムRAM40上に記載される点である。
Returning to FIG. 1, the system ROM 30 stores C
A system program that defines the system processing executed by the PU 10 is stored. The point different from the conventional system ROM is that the detailed program of the sequence instruction (application instruction) is not written in the system ROM 30 of this embodiment, but is written in the system RAM 40.

【0018】システムRAM40は読み/書き自在であ
り、ワークメモリとしてCPU10の演算処理に用いる
データを記憶する。本発明に関わる記憶領域としては、
CPU側で実行するシーケンス命令の種類毎に、その詳
細なプログラム、すなわち、CPU10が演算実行する
プログラムを記憶する領域(以下、ジャンプテーブルと
称す)40Aが設けられている。また、このジャンプテ
ーブルの中のCPUが実際にアクセス(読出し)すべき
アドレス(ジャンプ先指定情報)を記憶する領域(ジャ
ンプ先指定レジスタと称す)40Bも設けられている。
The system RAM 40 is readable / writable and stores data used for arithmetic processing of the CPU 10 as a work memory. As the storage area related to the present invention,
An area (hereinafter, referred to as a jump table) 40A for storing a detailed program, that is, a program executed and executed by the CPU 10, is provided for each type of sequence instruction executed on the CPU side. Further, an area (referred to as a jump destination designation register) 40B for storing an address (jump destination designation information) to be actually accessed (read) by the CPU in this jump table is also provided.

【0019】ジャンプテーブル40Aの内容は電源投入
時等の初期化処理において、CPU10に書き込まれ、
ジャンプ先指定レジスタ40Bの内容はシステム運転時
BP20により書き込まれる。
The contents of the jump table 40A are written in the CPU 10 in the initialization processing such as when the power is turned on,
The contents of the jump destination designation register 40B are written by the BP 20 during system operation.

【0020】ユーザー用RAM50は不図示のプログラ
ミング装置から入力された電子機器制御用のシーケンス
プログラムを格納する。
The user RAM 50 stores a sequence program for controlling electronic equipment, which is input from a programming device (not shown).

【0021】このような回路におけるシーケンス命令の
実行処理を図3および図4を参照しながら説明する。な
お、図3はBP20の実行するハード処理手順を示すフ
ローチャートであり、図4はCPU10の実行するソフ
ト処理手順を図示したフローチャートである。
The sequence instruction execution process in such a circuit will be described with reference to FIGS. 3 is a flowchart showing a hardware processing procedure executed by the BP 20, and FIG. 4 is a flowchart showing a software processing procedure executed by the CPU 10.

【0022】電源投入時、メモリカセットなどの外部記
憶装置又は、内部メモリのいずれか予め定められたメモ
リからジャンプテーブルに記載すべき内容がCPU10
により読出され、ジャンプテーブル40Aに書き込まれ
る(図4のステップT10)。システム起動に応じCP
U10はプログラムカウンタ10Aにシーケンスプログ
ラムの先頭読出しアドレスを設定し、BP20を起動さ
せる(図4のステップT11)。
When the power is turned on, the contents to be written in the jump table are stored in the CPU 10 from an external storage device such as a memory cassette or an internal memory, which is a predetermined memory.
Is read out and written in the jump table 40A (step T10 in FIG. 4). CP depending on system startup
U10 sets the top read address of the sequence program in the program counter 10A and activates the BP 20 (step T11 in FIG. 4).

【0023】この起動指示を受けたBP20は(図3の
ステップS10)、プログラムカウンタ10Aの示すユ
ーザー用RAM50アドレスからシーケンス命令を読出
し、読出しのシーケンス命令がBP20において実行可
能であるか否かの判定を行う(図3のステップS1
2)。実行可の判定が得られた場合は、従来と同様、B
P20内においてシーケンス命令の指示するビット演算
を実行する(図3のステップS20→S21)。
The BP 20 which has received this start-up instruction (step S10 in FIG. 3) reads a sequence instruction from the user RAM 50 address indicated by the program counter 10A, and determines whether or not the read sequence instruction can be executed by the BP 20. (Step S1 of FIG. 3)
2). If it is determined that execution is possible, B
The bit operation designated by the sequence instruction is executed in P20 (steps S20 → S21 in FIG. 3).

【0024】この後、BP20はCPU10内のプログ
ラムカウンタ10Aの値を、次に読出すべきアドレス値
に更新する(図3のステップS22)。
After that, the BP 20 updates the value of the program counter 10A in the CPU 10 to the address value to be read next (step S22 in FIG. 3).

【0025】BP20がビット演算処理を実行している
間は、CPU10はジャンプ先指定レジスタに対するB
P20の書き込みを監視し、システム処理等の内部処理
を行う(図4のステップT13→T14→T21→T1
3のループ処理)。
While the BP 20 is executing the bit operation processing, the CPU 10 sends B to the jump destination designation register.
The writing of P20 is monitored and internal processing such as system processing is performed (steps T13 → T14 → T21 → T1 in FIG. 4).
3 loop processing).

【0026】一方、BP20が読出したシーケンス命令
がたとえば加算処理に関する応用命令の場合、図3のス
テップS12の処理でBP20の処理不可の判定が得ら
れると、BP20内のシーケンス命令−アドレス変換回
路20AによりCPU10のジャンプ先アドレスが作成
され、BP20の読み/書き機能によりジャンプ先アド
レスがシステムRAM40内のジャンプ先指定レジスタ
40Bに書き込まれる(図3のステップS31→S4
1)。
On the other hand, if the sequence instruction read by the BP 20 is an application instruction relating to addition processing, for example, if it is determined in step S12 in FIG. 3 that the BP 20 cannot be processed, the sequence instruction-address conversion circuit 20A in the BP 20 is obtained. The jump destination address of the CPU 10 is created by this, and the jump destination address is written in the jump destination designation register 40B in the system RAM 40 by the read / write function of the BP 20 (steps S31 → S4 in FIG. 3).
1).

【0027】また、図2のレジスタ102にはシーケン
ス命令中のオペランドが設定され、このオペランド情報
がCPU10に引き渡される(図3のステップS4
2)。このようにして、BP20は、CPU10のジャ
ンプ先アドレスをレジスタ40Bに書き込みと同時にオ
ペランド情報をCPU10に送出する。この後、BP2
0はCPU10内のプログラムカウンタを進め、停止す
る(ステップS44)。
The operand in the sequence instruction is set in the register 102 of FIG. 2 and the operand information is delivered to the CPU 10 (step S4 of FIG. 3).
2). In this way, the BP 20 writes the jump destination address of the CPU 10 to the register 40B and sends the operand information to the CPU 10 at the same time. After this, BP2
0 advances the program counter in the CPU 10 and stops it (step S44).

【0028】ジャンプ先指定レジスタ40Bへの書き込
みをCPU10側で、検知すると、CPU10はジャン
プ先指定レジスタ40Bの内容を読出し(図4のステッ
プT13)、読出した内容、すなわち、ジャンプテーブ
ル40A内のジャンプ先アドレス、この例では加算処理
に関する詳細プログラムを格納するアドレスへジャンプ
する。以下、CPU10はこの詳細プログラムをジャン
プテーブル40Aから読出し、BP20から送られてき
たオペランド情報に基づき、加数をメモリから読出して
加算処理を行う(図4のステップT31〜T32)。応
用命令の中の加算処理の終了後、CPU10はBP20
に再起動をかける。BP20は再起動の指示に応じ、次
の新しいシーケンス命令についての上述の判別処理なら
びにシーケンスビット演算処理又は応用命令関連処理を
実行する。
When the CPU 10 detects writing to the jump destination designation register 40B, the CPU 10 reads the contents of the jump destination designation register 40B (step T13 in FIG. 4), and the read contents, that is, the jump in the jump table 40A. It jumps to the destination address, in this example, the address that stores the detailed program related to the addition process. Thereafter, the CPU 10 reads this detailed program from the jump table 40A, reads the addend from the memory based on the operand information sent from the BP 20, and performs addition processing (steps T31 to T32 in FIG. 4). After the addition processing in the application instruction is completed, the CPU 10 causes the BP 20
To reboot. In response to the restart instruction, the BP 20 executes the above-mentioned discrimination processing for the next new sequence instruction and the sequence bit operation processing or application instruction related processing.

【0029】以上、述べたように、本実施例ではBP2
0側で実行プロセッサの判別を行う際に、応用命令につ
いてはCPU10のジャンプ先アドレスおよび演算に必
要なオペランド情報をハードにより作成してしまう。
As described above, in this embodiment, BP2
When determining the execution processor on the 0 side, the jump destination address of the CPU 10 and the operand information necessary for the operation are created by hardware for the application instruction.

【0030】このため、従来のようにCPU側で複数ス
テップをかけてジャンプ先アドレスおよびオペランド情
報をソフトで演算作成する場合に比べてBP側でCPU
の処理と並行してハードで作成する本実施例の方が処理
時間が短縮される。
Therefore, the CPU on the BP side is different from the conventional case in which the jump destination address and operand information are calculated by software by taking a plurality of steps on the CPU side.
The processing time is shortened in the present embodiment in which the processing is performed by hardware in parallel with the above processing.

【0031】加えて、シーケンス応用命令が多い程、シ
ーケンスプログラム全体の処理時間が大幅に短縮され
る。
In addition, as the number of sequence application instructions increases, the processing time of the entire sequence program is greatly shortened.

【0032】本実施例の他に次の例を実現できる。In addition to this embodiment, the following example can be realized.

【0033】1)本実施例ではBP20のジャンプ先指
定レジスタ40Bへの書き込みをCPU10側で監視す
るようにしているが、BP20の停止指示をCPU10
側が受けたときに、CPU10がジャンプ先指定レジス
タ40Bへの読出しを行うようにしてもよい。またこの
停止指示をCPU10に対する割込指示を行う場合、C
PU10側の割込処理でジャンプ先指定レジスタの変更
有無の監視を行うこともできる。ただし、この場合は、
従来のようにCPU10内のレジスタのプッシュ,ポッ
プ処理が必要となる。
1) In this embodiment, the CPU 10 monitors the writing to the jump destination designation register 40B of the BP 20, but the CPU 10 issues the stop instruction of the BP 20.
The CPU 10 may read out to the jump destination designation register 40B when the side receives. In addition, when issuing this stop instruction to the CPU 10 as an interrupt instruction, C
It is also possible to monitor whether or not the jump destination designation register has been changed in the interrupt processing on the PU 10 side. However, in this case,
As in the conventional case, the push and pop processing of the register in the CPU 10 is required.

【0034】2)本実施例では1シーケンス命令あたり
4バイトのジャンプテーブルを想定しているが、これに
限定することなく、ジャンプテーブルを所望のバイト数
とすることができる。
2) In this embodiment, a jump table of 4 bytes per sequence instruction is assumed, but the jump table is not limited to this, and the jump table can have a desired number of bytes.

【0035】3)本実施例のようにジャンプテーブルを
書き換え自在メモリ(RAM)に格納することにより次
のような利点がある。
3) By storing the jump table in the rewritable memory (RAM) as in this embodiment, there are the following advantages.

【0036】a)ユーザーに提供するシーケンス命令に
ついてユーザーの欲求するシーケンス命令を選択でき、
システム用ROMの容量を小さくし、製造コストの低減
に寄与することができる。
A) Regarding the sequence command provided to the user, the user can select the sequence command desired by the user,
It is possible to reduce the capacity of the system ROM and contribute to a reduction in manufacturing cost.

【0037】b)シーケンスプログラム保存用メモリカ
セット等に詳細プログラムを保存し、システム立ち上げ
時にシステムRAMに転送すると、ユーザー側でもプロ
グラミング装置を用いて所望のシーケンス命令を作成す
ることができる。
B) By storing the detailed program in a memory cassette for storing a sequence program and transferring it to the system RAM when the system is started up, the user can also create a desired sequence command using the programming device.

【0038】4)ジャンプテーブルに記載しておくプロ
グラム情報は次の種類がある。
4) The program information described in the jump table has the following types.

【0039】a)ファンクション命令のようにシーケン
ス命令中にはオペランド情報がなく命令コードだけでシ
ーケンス命令が構成される場合は、ビット演算プロセッ
サはデコーダの識別結果に対応させてジャンプ先テーブ
ルのアドレスのみを引き渡す(請求項1の発明に対
応)。
A) When there is no operand information in the sequence instruction and the sequence instruction is composed of only the instruction code like the function instruction, the bit arithmetic processor only makes the address of the jump destination table correspond to the identification result of the decoder. (Corresponding to the invention of claim 1).

【0040】b)その他、シーケンス命令中にオペラン
ド情報、たとえば、演算対象のデータの格納アドレス等
が含まれている場合は、本実施例のようにデコーダの識
別結果に基づきオペランド情報の取り出し、引き渡しを
BPが行う(請求項2の発明に対応)。
B) In addition, when the sequence instruction includes operand information, for example, the storage address of the data to be operated, the operand information is taken out and passed based on the identification result of the decoder as in the present embodiment. Is performed by the BP (corresponding to the invention of claim 2).

【0041】[0041]

【発明の効果】以上、説明したように、本発明では、第
1プロセッサ(BP)側の識別処理を用いて、第2プロ
セッサ(CPU)側の応用命令に必要な、プログラム情
報の格納アドレスやオペランド情報を用意する。この結
果、従来第2のプロセッサが時系列的に行っていた処理
の一部をBP側で並行処理するので、従来よりもシーケ
ンス命令の処理時間が短縮される。
As described above, according to the present invention, by using the identification processing on the first processor (BP) side, the storage address of the program information necessary for the application instruction on the second processor (CPU) side and Prepare operand information. As a result, a part of the processing conventionally performed by the second processor in time series is processed in parallel on the BP side, so that the processing time of the sequence instruction is shortened as compared with the conventional technology.

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

【図1】本発明実施例のシステム構成を示すブロック図
である。
FIG. 1 is a block diagram showing a system configuration of an embodiment of the present invention.

【図2】図1のオペランド情報作成回路20Bの回路構
成を示すブロック図である。
FIG. 2 is a block diagram showing a circuit configuration of an operand information creation circuit 20B of FIG.

【図3】図1のBP20が実行する処理手順を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing a processing procedure executed by the BP 20 of FIG.

【図4】図1のCPU10が実行する処理手順を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a processing procedure executed by a CPU 10 of FIG.

【符号の説明】 10 CPU 10A プログラムカウンタ(PC) 20 ビット演算プロセッサ(BP) 20A シーケンス命令−アドレス変換回路 20B オペランド情報作成回路 30 システムROM 40 システムRAM 40A ジャンプテーブル 40B ジャンプ先指定レジスタ 50 ユーザー用RAM[Explanation of Codes] 10 CPU 10A Program Counter (PC) 20-bit Arithmetic Processor (BP) 20A Sequence Instruction-Address Conversion Circuit 20B Operand Information Creation Circuit 30 System ROM 40 System RAM 40A Jump Table 40B Jump Destination Specification Register 50 User RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シーケンスプログラム中に記載されたシ
ーケンス命令の中のビット演算命令を第1のプロセッサ
が実行し、該ビット演算命令以外の応用命令を第2のプ
ロセッサが実行し、シーケンス命令の種類を前記第1の
プロセッサが識別して、シーケンス命令を実行するプロ
セッサを決定するプログラマブルコントローラの演算処
理方法において、 前記第2のプロセッサが実行するシーケンス命令の種類
毎に該シーケンス命令の示す処理内容を示すプログラム
情報をメモリに予め記憶しておき、 前記第1のプロセッサは前記シーケンス命令の識別を行
う際に、前記応用命令についての種類識別をも実行し、 当該識別結果に対応させて前記メモリに記憶のプログラ
ム情報の格納アドレスを前記第2のプロセッサに引き渡
すことを特徴とするプログラマブルコントローラの演算
処理方法。
1. A type of sequence instruction in which a first processor executes a bit operation instruction among sequence instructions described in a sequence program and an application instruction other than the bit operation instruction is executed by a second processor. In the arithmetic processing method of the programmable controller for determining the processor that executes the sequence instruction by identifying the processing content indicated by the sequence instruction for each type of the sequence instruction executed by the second processor. The program information shown in the memory is stored in advance in the memory, and when the first processor identifies the sequence instruction, the first processor also performs type identification for the application instruction, and stores in the memory in association with the identification result. The storage address of the program information in the storage is transferred to the second processor. Programmable controller processing method.
【請求項2】 前記第1のプロセッサは前記応用命令に
ついての種類識別を行った場合には、識別の対象となっ
たシーケンス命令から、前記第2のプロセッサの実行に
用いるオペランド情報を取り出し、当該第2のプロセッ
サに引き渡すことを特徴とする請求項1に記載のプログ
ラマブルコントローラの演算処理方法。
2. When the first processor identifies the type of the application instruction, it extracts the operand information used for the execution of the second processor from the sequence instruction that is the subject of identification, and The arithmetic processing method of the programmable controller according to claim 1, wherein the arithmetic processing is delivered to the second processor.
JP4145741A 1992-06-05 1992-06-05 Arithmetic processing method of programmable controller Expired - Lifetime JP3024719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4145741A JP3024719B2 (en) 1992-06-05 1992-06-05 Arithmetic processing method of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4145741A JP3024719B2 (en) 1992-06-05 1992-06-05 Arithmetic processing method of programmable controller

Publications (2)

Publication Number Publication Date
JPH05341820A true JPH05341820A (en) 1993-12-24
JP3024719B2 JP3024719B2 (en) 2000-03-21

Family

ID=15392078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4145741A Expired - Lifetime JP3024719B2 (en) 1992-06-05 1992-06-05 Arithmetic processing method of programmable controller

Country Status (1)

Country Link
JP (1) JP3024719B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015210628A (en) * 2014-04-25 2015-11-24 ファナック株式会社 Programmable controller in which no external memory access for calculated data reading occur

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015210628A (en) * 2014-04-25 2015-11-24 ファナック株式会社 Programmable controller in which no external memory access for calculated data reading occur

Also Published As

Publication number Publication date
JP3024719B2 (en) 2000-03-21

Similar Documents

Publication Publication Date Title
JPS6055849B2 (en) Command control method
JP3024719B2 (en) Arithmetic processing method of programmable controller
JP3441262B2 (en) Data processing device
JPS59114602A (en) Programmable controller
JPH06324861A (en) System and method for controlling cpu
JP3207333B2 (en) Programmable controller
JP2802109B2 (en) Memory access control method
JPH02214938A (en) Data processor
JP3341061B2 (en) Programmable controller
JPS5835648A (en) Program execution controlling system
JPH05241853A (en) Programmable controller
JPH04332003A (en) Programmable controller
JPS6348698A (en) Memory storage control device
JP2743947B2 (en) Micro program control method
JPH1139159A (en) Computer system
JPH11288306A (en) Operating system for programmable controller
JPS5817585A (en) Virtual storage processor
JPH0535499A (en) Data processing device and method
JPS595931B2 (en) Address stop method for arithmetic processing system
JPS63310003A (en) Sequence control system
JPH08249024A (en) Programmable controller
JP2002169690A (en) Information processing apparatus and electronic device
JPH0357003A (en) Instruction processing system for programmable controller
JPH07334215A (en) Sequence control method of programmable controller
JPS63228332A (en) Control system for executing instruction

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20110121

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 12

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20120121

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

Free format text: PAYMENT UNTIL: 20130121

Year of fee payment: 13

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

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20130121