JP3024719B2 - Arithmetic processing method of programmable controller - Google Patents

Arithmetic processing method of programmable controller

Info

Publication number
JP3024719B2
JP3024719B2 JP4145741A JP14574192A JP3024719B2 JP 3024719 B2 JP3024719 B2 JP 3024719B2 JP 4145741 A JP4145741 A JP 4145741A JP 14574192 A JP14574192 A JP 14574192A JP 3024719 B2 JP3024719 B2 JP 3024719B2
Authority
JP
Japan
Prior art keywords
instruction
processor
sequence
cpu
processing
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
JP4145741A
Other languages
Japanese (ja)
Other versions
JPH05341820A (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.)
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

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、中央演算処理装置(C
PU)とビット演算プロセッサ(BP)の2つのプロセ
ッサでシーケンス命令の実行を行うプログラマブルコン
トローラの演算処理方法に関する。
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 operation processor (BP).

【0002】[0002]

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

【0003】ユーザーメモリから読出されたシーケンス
命令はBPにおいて自己のBPで実行可能か否かの判別
が行われ、シーケンス命令がBPにおいて実行の不可の
場合には、そのシーケンス命令の実行権がCPUに引き
渡される。CPUは、シーケンス命令の実行権を受け取
ると、シーケンス命令の種類内容に対応した実際の演算
処理を実行する。より具体的には、シーケンス命令の種
類毎に、その命令に対応した演算処理を規定した詳細の
プログラム情報が予めシステムプログラムメモリに格納
されているので、CPUはシーケンス命令の命令コード
からシステムプログラムメモリの読出し先頭アドレスを
識別又は算出する。次に算出された先頭アドレスを用い
てプログラム情報を読出して演算実行する。
[0003] 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. Handed over to When receiving the execution right of the sequence instruction, the CPU executes an actual operation process corresponding to the type content of the sequence instruction. More specifically, for each type of sequence instruction, detailed program information that prescribes arithmetic processing corresponding to the instruction is stored in the system program memory in advance. To identify or calculate the read start address. Next, the program information is read out using the calculated head address, and the operation is executed.

【0004】この演算実行に関連して、シーケンス命令
の中のオペランド部(演算に用いるパラメータ値の格納
アドレス)の示す情報を各種メモリから読出す。CPU
側で応用命令を実行すると、CPUはBPにシーケンス
命令の実行権を引き渡す。実行権を引き渡されたBPは
次のシーケンス命令について、上述の同様の処理を行
う。このようにしてBPとCPUとはシーケンス命令の
種類に対応して、シーケンスプログラム中のシーケンス
命令を実行していく。
In connection with the execution of the operation, information indicated by an operand portion (storage address of a parameter value used in the operation) in the sequence instruction is read from various memories. CPU
When the CPU executes the application instruction, the CPU transfers the execution right of the sequence instruction to the BP. The BP to which the execution right has been transferred 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 according to the type of the sequence command.

【0005】[0005]

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

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

【0007】[0007]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、シーケンスプログラム中
に記載されたシーケンス命令の中のビット演算命令を第
1のプロセッサが実行し、該ビット演算命令以外の応用
命令を第2のプロセッサが実行し、シーケンス命令の種
類を前記第1のプロセッサが識別して、シーケンス命令
を実行するプロセッサを決定するプログラマブルコント
ローラの演算処理方法において、前記第2のプロセッサ
が実行するシーケンス命令の種類毎に該シーケンス命令
の示す処理内容を示すプログラム情報をメモリに予め記
憶しておき、前記第1のプロセッサは前記シーケンス命
令の識別を行う際に、前記応用命令についての種類識別
をも実行し、当該識別結果に対応させて前記メモリに記
憶のプログラム情報の格納アドレスを前記第2のプロセ
ッサに引き渡すとともに、前記第1のプロセッサは前記
応用命令についての種類識別を行った場合には、識別の
対象となったシーケンス命令から、前記第2のプロセッ
サの実行に用いるオペランド情報を取り出し、当該第2
のプロセッサに引き渡すことを特徴とする。
In order to achieve the above object, according to the first aspect of the present invention, a first processor executes a bit operation instruction in a sequence instruction described in a sequence program, The second processor executes an application instruction other than the bit operation instruction, the first processor identifies a type of a sequence instruction, and determines a processor to execute the sequence instruction. For each type of sequence instruction executed by the second processor, program information indicating the processing content indicated by the sequence instruction is stored in a memory in advance, and when the first processor identifies the sequence instruction, The type identification of the application instruction is also executed, and the program information stored in the memory corresponding to the identification result is also executed. With hand over of the storage address to the second processor, the first processor is the
When the type of application instruction is identified,
From the target sequence instruction, the second processor
Fetch the operand information used to execute the
Is delivered to the processor .

【0008】[0008]

【0009】[0009]

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

【0010】[0010]

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

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

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

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

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

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

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

【0017】図1に戻り、システムROM30には、C
PU10の実行するシステム処理を規定したシステムプ
ログラムが格納されている。従来のシステムROMと異
なる点は、本実施例のシステムROM30には、シーケ
ンス命令(応用命令)の詳細プログラムが記載されてお
らず、システムRAM40上に記載される点である。
Referring back to FIG. 1, the system ROM 30 stores C
A system program that defines system processing executed by the PU 10 is stored. The difference from the conventional system ROM is that the system ROM 30 of the present embodiment does not describe a detailed program of a sequence instruction (application instruction), but describes it on 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. The storage area according to the present invention includes:
For each type of sequence instruction executed on the CPU side, an area (hereinafter referred to as a jump table) 40A for storing a detailed program, that is, a program executed by the CPU 10 is provided. 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 the jump table is also provided.

【0019】ジャンプテーブル40Aの内容は電源投入
時等の初期化処理において、CPU10に書き込まれ、
ジャンプ先指定レジスタ40Bの内容はシステム運転時
BP20により書き込まれる。
The contents of the jump table 40A are written into the CPU 10 during initialization processing such as when 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 an electronic device input from a programming device (not shown).

【0021】このような回路におけるシーケンス命令の
実行処理を図3および図4を参照しながら説明する。な
お、図3はBP20の実行するハード処理手順を示すフ
ローチャートであり、図4はCPU10の実行するソフ
ト処理手順を図示したフローチャートである。
The execution processing of a sequence instruction in such a circuit will be described with reference to FIGS. FIG. 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 content to be described in the jump table is stored in the CPU 10 from a predetermined memory such as an external storage device such as a memory cassette or an internal memory.
And written into the jump table 40A (step T10 in FIG. 4). CP according to system startup
U10 sets the start 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 that has received the activation 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 the read sequence instruction can be executed by the BP 20. (Step S1 in FIG. 3)
2). If a determination of execution is obtained, B
The bit operation indicated by the sequence instruction is executed in P20 (steps S20 → S21 in FIG. 3).

【0024】この後、BP20はCPU10内のプログ
ラムカウンタ10Aの値を、次に読出すべきアドレス値
に更新する(図3のステップS22)。
Thereafter, the BP 20 updates the value of the program counter 10A in the CPU 10 to an 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
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 BP 20 is, for example, an application instruction relating to an addition process, if it is determined in step S12 of FIG. 3 that the BP 20 cannot be processed, the sequence instruction-address conversion circuit 20A in BP 20 Creates the jump destination address of the CPU 10, and writes the jump destination address to 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 this operand information is transferred to the CPU 10 (step S4 of FIG. 3).
2). In this way, the BP 20 sends the operand information to the CPU 10 at the same time as writing the jump destination address of the CPU 10 to the register 40B. After this, BP2
If the value is 0, the program counter in the CPU 10 is advanced and stopped (step S44).

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

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

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

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

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

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

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

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

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

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

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

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

【0040】b)その他、シーケンス命令中にオペラン
ド情報、たとえば、演算対象のデータの格納アドレス等
が含まれている場合は、本実施例のようにデコーダの識
別結果に基づきオペランド情報の取り出し、引き渡しを
BPが行う(請求項2の発明に対応)。
B) In addition, if the sequence instruction contains operand information, for example, the storage address of the data to be operated, etc., the operand information is fetched and delivered based on the identification result of the decoder as in this embodiment. (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 required for the application instruction on the second processor (CPU) side, and the like. Prepare operand information. As a result, a part of the processing conventionally performed in time series by the second processor is performed in parallel on the BP side, so that the processing time of the sequence instruction is shortened as compared with the related art.

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

【図1】本発明実施例のシステム構成を示すブロック図
である。
FIG. 1 is a block diagram illustrating a system configuration according to 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 illustrating a processing procedure executed by a BP 20 of FIG. 1;

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

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

10 CPU 10A プログラムカウンタ(PC) 20 ビット演算プロセッサ(BP) 20A シーケンス命令−アドレス変換回路 20B オペランド情報作成回路 30 システムROM 40 システムRAM 40A ジャンプテーブル 40B ジャンプ先指定レジスタ 50 ユーザー用RAM 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 designation register 50 User RAM

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シーケンスプログラム中に記載されたシ
ーケンス命令の中のビット演算命令を第1のプロセッサ
が実行し、該ビット演算命令以外の応用命令を第2のプ
ロセッサが実行し、シーケンス命令の種類を前記第1の
プロセッサが識別して、シーケンス命令を実行するプロ
セッサを決定するプログラマブルコントローラの演算処
理方法において、 前記第2のプロセッサが実行するシーケンス命令の種類
毎に該シーケンス命令の示す処理内容を示すプログラム
情報をメモリに予め記憶しておき、 前記第1のプロセッサは前記シーケンス命令の識別を行
う際に、前記応用命令についての種類識別をも実行し、 当該識別結果に対応させて前記メモリに記憶のプログラ
ム情報の格納アドレスを前記第2のプロセッサに引き渡
とともに、 前記第1のプロセッサは前記応用命令についての種類識
別を行った場合には、識別の対象となったシーケンス命
令から、前記第2のプロセッサの実行に用いるオペラン
ド情報を取り出し、当該第2のプロセッサに引き渡す
とを特徴とすることを特徴とするプログラマブルコント
ローラの演算処理方法。
1. A first processor executes a bit operation instruction among sequence instructions described in a sequence program, and a second processor executes application instructions other than the bit operation instruction. Is determined by the first processor, and a processing method of the programmable controller that determines a processor to execute the sequence instruction. The processing content indicated by the sequence instruction is determined for each type of the sequence instruction executed by the second processor. Program information to be stored in a memory in advance, and when the first processor identifies the sequence instruction, the first processor also executes type identification of the application instruction, and stores the program information in the memory in accordance with the identification result. the storage address of the program information stored with delivery to the second processor, the first The first processor has a kind knowledge about the application instruction.
If another is performed, the sequence
From the instruction, the operand used to execute the second processor
Computer program information which is extracted and passed 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 JPH05341820A (en) 1993-12-24
JP3024719B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6294142B2 (en) * 2014-04-25 2018-03-14 ファナック株式会社 Programmable controller that does not generate external memory access for data read

Also Published As

Publication number Publication date
JPH05341820A (en) 1993-12-24

Similar Documents

Publication Publication Date Title
JP2883784B2 (en) Microcomputer
JP2982875B2 (en) Slave controller
JPS6055849B2 (en) Command control method
JP3024719B2 (en) Arithmetic processing method of programmable controller
JP2001256044A (en) Data processor
JPH06324861A (en) System and method for controlling cpu
JP3441262B2 (en) Data processing device
JPS5835648A (en) Program execution controlling system
JP2000076095A (en) Device and method for tracing program and storage medium storing program therefor
JPS5856051A (en) Address comparison system by access interruption
JP2982129B2 (en) Micro program controller
JPS6341092B2 (en)
JPH0535499A (en) Data processing device and method
JPH05241853A (en) Programmable controller
JPH04275603A (en) Programmable controller
JPH1139159A (en) Computer system
JPH08249024A (en) Programmable controller
JPS595931B2 (en) Address stop method for arithmetic processing system
JP2002169690A (en) Information processing apparatus and electronic device
JPH07334215A (en) Sequence control method of programmable controller
JPH04332003A (en) Programmable controller
JPH0773049A (en) Program simulator device
JPH0357003A (en) Instruction processing system for programmable controller
JPS63228332A (en) Control system for executing instruction
JPH0883188A (en) Multitask processing computer

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 (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 12

FPAY Renewal fee payment (event 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 (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130121

Year of fee payment: 13