JP2618703B2 - High-speed operation processing method of programmable sequence controller - Google Patents

High-speed operation processing method of programmable sequence controller

Info

Publication number
JP2618703B2
JP2618703B2 JP1013048A JP1304889A JP2618703B2 JP 2618703 B2 JP2618703 B2 JP 2618703B2 JP 1013048 A JP1013048 A JP 1013048A JP 1304889 A JP1304889 A JP 1304889A JP 2618703 B2 JP2618703 B2 JP 2618703B2
Authority
JP
Japan
Prior art keywords
memory
machine language
instruction
sequence
microprocessor
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 - Fee Related
Application number
JP1013048A
Other languages
Japanese (ja)
Other versions
JPH02194402A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1013048A priority Critical patent/JP2618703B2/en
Publication of JPH02194402A publication Critical patent/JPH02194402A/en
Application granted granted Critical
Publication of JP2618703B2 publication Critical patent/JP2618703B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、シーケンスコントローラの高速演算処理方
式に関する。
Description: TECHNICAL FIELD The present invention relates to a high-speed operation processing method for a sequence controller.

(従来の技術) 従来、シーケンスプログラムを高速で実行するハード
ウエアシーケンサは既に実用化されている。しかしなが
ら、回転体の回転方向を演算するような複雑な命令をハ
ードウエアシーケンサで行うものは実用化されていな
い。また、複雑な命令をマイクロコンピュータで実行す
るソフトウエアシーケンサは実用化されているが、その
演算速度は、ハードウエアシーケンサに比べて数倍〜数
十倍遅い。速度が速く高機能なものはない。
(Prior Art) Conventionally, a hardware sequencer that executes a sequence program at high speed has already been put to practical use. However, there has been no practical use of a hardware sequencer for executing a complicated instruction for calculating the rotation direction of a rotating body. Also, a software sequencer that executes a complicated instruction by a microcomputer has been put to practical use, but its operation speed is several times to several tens times slower than a hardware sequencer. Nothing is fast and sophisticated.

(発明が解決しようとする課題) 従来のプログラマブルシーケンスコントローラは複雑
な命令を処理できるが速度が遅い問題がある。
(Problems to be Solved by the Invention) The conventional programmable sequence controller can process complicated instructions, but has a problem that the speed is slow.

本発明は上記従来の問題を解決するものであり、プロ
グラマブルシーケンスコントローラの演算処理を高速化
し、且つ、複雑な命令をも実行できる高速演算処理方式
を提供することを目的とするものである。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned conventional problem, and an object of the present invention is to provide a high-speed arithmetic processing method capable of speeding up arithmetic processing of a programmable sequence controller and executing a complicated instruction.

(課題を解決するための手段) 本発明は上記目的を達成するため、プログラマブルシ
ーケンスコントローラの複雑な命令は、マイクロプロセ
ッサで解読・実行し、単純な命令は、列サイクリック演
算部(ハードウエア)で解読・実行する。複雑な命令と
単純な命令の区分をマイクロプロセッサで判別すると、
判別プログラムの実行時間分だけ命令の演算処理が遅く
なる。この点を解決するため、シーケンスソースプログ
ラムと1対1に対応するメモリまたはI/Oリードのマイ
クロプロセッサのマシン語を格納するメモリと、列サイ
クリック演算部が演算を行うシーケンスプログラムを格
納するメモリを設け、マイクロプロセッサは前記マシン
語を実行する。マシン語を実行すると、マイクロプロセ
ッサよりメモリまたはI/Oを読みとるたけのアドレスが
出力され、このアドレスを用いて列サイクリック演算部
が演算を行うシーケンスプログラムを読み出し、且つ、
列サイクリック演算部を起動し、列サイクリック演算完
了信号により次のマシン語を実行させる制御部の働きに
より、マイクロプロセッサは列サイクリック演算部への
シーケンスプログラムの転送および起動に対してプログ
ラムを要しないものである。複雑な命令はマシン語とし
てサブルーチンコール命令を入れることにより、マイク
ロプロセッサ内で処理できるようにしたものである。
(Means for Solving the Problems) In order to achieve the above object, the present invention achieves the above object by compiling and executing a complicated instruction of a programmable sequence controller by a microprocessor, and executing a simple instruction by a column cyclic operation unit (hardware). Decrypt and execute. When the microprocessor distinguishes between complex instructions and simple instructions,
The operation processing of the instruction is delayed by the execution time of the determination program. In order to solve this problem, a memory for storing a machine language of a microprocessor or an I / O read microprocessor corresponding to a sequence source program on a one-to-one basis, and a memory for storing a sequence program for performing an operation by a column cyclic operation unit And the microprocessor executes the machine language. When the machine language is executed, an address for reading the memory or I / O is output from the microprocessor, and a sequence program in which the column cyclic operation unit performs the operation using this address is read, and
By the operation of the control unit which starts the column cyclic operation unit and executes the next machine language by the column cyclic operation completion signal, the microprocessor executes a program for transferring and starting the sequence program to the column cyclic operation unit. It is unnecessary. Complex instructions can be processed in a microprocessor by inserting a subroutine call instruction as a machine language.

(作 用) したがって、本発明によれば、1つのシーケンスソー
スプログラムに対して、マイクロプロセッサが解読・実
行するメモリと、列サイクリック演算部が解読・実行す
るメモリを有し、且つ、マイクロプロセッサと列サイク
リック演算部の実行シーケンス制御部により、単純命令
は列サイクリック演算部で高速に処理し、複雑な命令は
マイクロプロセッサで処理することにより、高機能でか
つ高速処理可能なプログラマブルシーケンスコントロー
ラを実現することができる。
(Operation) Therefore, according to the present invention, for one sequence source program, a memory for decoding and executing by a microprocessor and a memory for decoding and executing by a column cyclic operation unit are provided. Programmable sequence controller capable of high-performance and high-speed processing by executing simple instructions at high speed in the column cyclic operation unit and processing complex instructions by the microprocessor by the execution sequence control unit of the column cyclic operation unit. Can be realized.

(実施例) 第1図は、本発明の一実施例の高速演算処理方式を実
行するプログラマブルシーケンスコントローラの主要ブ
ロックを示すものである。第1図において、1はマイク
ロプロセッサ(CPU)、2はデコーダ、3は▲
▼発生回路、4は読み取り専用メモリであり、シーケ
ンスソースブログラムと1対1に対応し、マイクロプロ
セッサが解読・実行するマシン語を格納する。5は読み
取り専用メモリであり、列サイクリック演算部が解読・
実行する命令語を格納する。6は列サイクリック演算
部、7はシーケンスプログラムで使用するリレー接点お
よびコイル情報等を記憶しておくデュアルポートメモリ
(RAM)、8は入出力部(I/O)である。
(Embodiment) FIG. 1 shows main blocks of a programmable sequence controller which executes a high-speed operation processing system according to an embodiment of the present invention. In FIG. 1, 1 is a microprocessor (CPU), 2 is a decoder, and 3 is ▲.
The generation circuit 4 is a read-only memory, and has a one-to-one correspondence with the sequence source program, and stores a machine language to be decoded and executed by the microprocessor. Reference numeral 5 denotes a read-only memory, which is decoded by the column cyclic operation unit.
Stores the instruction to be executed. Reference numeral 6 denotes a column cyclic operation unit, 7 denotes a dual port memory (RAM) for storing relay contact and coil information and the like used in the sequence program, and 8 denotes an input / output unit (I / O).

第2図は、本実施例のラダーダイアグラムとラダーダ
イアグラムに対応するシーケンスソースプログラムの関
係を示すものである。第3図は、本実施例におけるシー
ケンスソースプログラムと、マイクロプロセッサが解読
・実行する命令語(第3図ではアセンブラ記述)と、列
サイクリック演算部が解読・実行する命令語の対応を示
している。第3図において、9,10,11,12はビット演算命
令であり、マイクロプロセッサが解読・実行する言語は
全てメモリ転送命令にコンパイルされる。
FIG. 2 shows the relationship between the ladder diagram of this embodiment and a sequence source program corresponding to the ladder diagram. FIG. 3 shows the correspondence between the sequence source program in this embodiment, the instruction words decoded and executed by the microprocessor (in assembler description in FIG. 3), and the instruction words decoded and executed by the column cyclic operation unit. I have. In FIG. 3, reference numerals 9, 10, 11, and 12 are bit operation instructions, and all the languages decoded and executed by the microprocessor are compiled into memory transfer instructions.

第4図は本実施例におけるシーケンスソースプログラ
ムと列サイクリック演算部が解読・実行する命令語との
関係の詳細を示すものである。
FIG. 4 shows details of the relationship between the sequence source program and the command words decoded and executed by the column cyclic operation unit in this embodiment.

次に上記実施例の動作について説明する。第1図にお
いて、CPU1はROMA4内にシーケンスソースプログラムと
1対1に対応したマシン語を解読・実行することと、I/
O8へのサービスおよびアラーム処理等システム全体のコ
ントロールならびに列サイクリック演算部では処理でき
ない複雑な命令、例えば回転体の回転方向の演算等を実
行する。ビット単位の演算を行う単純な命令は列サイク
リック演算部6で解読・実行する。
Next, the operation of the above embodiment will be described. In FIG. 1, the CPU 1 decodes and executes a machine language corresponding to the sequence source program in the ROMA 4 on a one-to-one basis, and
It controls the entire system, such as service to O8 and alarm processing, and executes complicated instructions that cannot be processed by the column cyclic operation unit, for example, the calculation of the rotation direction of the rotating body. A simple instruction for performing a bit-wise operation is decoded and executed by the column cyclic operation unit 6.

本実施例ではマイクロプロセッサ(CPU)として68000
を使用した例を示している。CPU68000は、メモリまたは
I/Oのリード・ライト時アドレスデータと制御線(▲
▼)に出力し、外部より▲▼信号が入力さ
れると、制御線(▲▼)をOFFし次の命令の実行に
移る。この機能を利用し、デコーダ2,▲▼発
生回路3によりシーケンスプログラムの演算をマイクロ
プロセッサで行うか列サイクリック演算部で行うかを制
御している。
In this embodiment, 68000 is used as the microprocessor (CPU).
The example which used is shown. CPU 68000 can be memory or
Address data and control line (I / O read / write)
▼), and when the signal ▲ ▼ is input from the outside, the control line (▲ ▼) is turned off and the execution of the next command is started. Using this function, the decoder 2 and the ▼ generating circuit 3 control whether the operation of the sequence program is performed by the microprocessor or the column cyclic operation unit.

第3図において、最初にシーケンスソースプログラム
とマイクロプロセッサが実行する言語の対応を説明す
る。ビット演算命令9,10,11,12は全てメモリ転送命令に
コンパイルされる。本実施例では、A0レジスタの示すメ
モリの内容をD1レジスタに読み込んだ後、A0レジスタの
内容を2増加する命令にコンパイルしている。乗算命令
13はマイクロプロセッサで実行するため、サブルーチン
コール命令と定数定義命令にコンパイルしている。ま
た、シーケンスソースプログラム終了命令14は、サブル
ーチンから復帰命令にコンパイルしている。次に、列サ
イクリック演算部実行言語とシーケンスソースプログラ
ムの対応を示す。列サイクリック演算部実行言語へのコ
ンパイルはビット演算命令のみ行う。
In FIG. 3, the correspondence between the sequence source program and the language executed by the microprocessor will be described first. The bit operation instructions 9, 10, 11, 12 are all compiled into memory transfer instructions. In this embodiment, after reading the contents of the memory associated with the A 0 register D 1 register are compiling instructions that 2 increasing the content of A 0 register. Multiply instruction
13 is compiled into a subroutine call instruction and a constant definition instruction for execution by a microprocessor. The sequence source program end instruction 14 is compiled from a subroutine into a return instruction. Next, the correspondence between the column cyclic operation unit execution language and the sequence source program will be described. The compilation into the column cyclic operation unit execution language is performed only by the bit operation instruction.

第1図において、シーケンスプログラムはマイクロプ
ロセッサのサブルーチンとして実行する。従って、マイ
クロプロセッサはROM4に格納されたシーケンスソースプ
ログラムに1対1に対応した、マイクロプロセッサが解
読・実行する言語の先頭アドレスをサブルーチンコール
する。サブルーチンコールする前にA0レジスタにはROM5
の先頭アドレスを設定しておく。従って、マイクロプロ
セッサは先頭のメモリ転送命令を実行すると、A0レジス
タの内容をアドレスバスに出力する。そのアドレスデー
タをデコーダ2でデコードし、ROM5を選択し、列サイク
リック演算部6に命令を出力し、かつ演算を起動する。
列サイクリック演算部6は、受信した命令を実行した
後、列サイクリック演算完了信号を▲▼発生
回路3に出力する。▲▼発生回路3はマイク
ロプロセッサ(CPU)1に▲▼を出力する。C
PU1は▲▼を受信すると、次の命令をROM4よ
り読み出し、上記と同じサイクルを繰り返す。CPU1はサ
ブルーチンで復帰命令を実行すると、シーケンスプログ
ラムの一周期の実行を完了する。
In FIG. 1, a sequence program is executed as a subroutine of a microprocessor. Accordingly, the microprocessor makes a subroutine call for the head address of the language that the microprocessor decodes and executes, corresponding to the sequence source program stored in the ROM 4 on a one-to-one basis. The A 0 register before subroutine call ROM5
Set the start address of Therefore, when the microprocessor executes the first memory transfer instruction to output the contents of A 0 register to the address bus. The address data is decoded by the decoder 2, the ROM 5 is selected, an instruction is output to the column cyclic operation unit 6, and the operation is started.
After executing the received command, the column cyclic operation unit 6 outputs a column cyclic operation completion signal to the 発 生 generation circuit 3. The 発 生 generating circuit 3 outputs ▼ to the microprocessor (CPU) 1. C
When receiving PU, PU1 reads the next command from ROM4 and repeats the same cycle as above. When the CPU 1 executes the return instruction in the subroutine, it completes one cycle of the sequence program.

このように、上記実施例によれば、ビット演算命令は
マイクロプロセッサの1命令実行サイクルで演算を完了
し、且つ、複雑な命令をも実行できる高機能・高演算処
理のプログラマブルシーケンスコントローラを実現する
ことができる。
As described above, according to the above-described embodiment, a programmable sequence controller of a high-performance and high-arithmetic process capable of completing a bit operation instruction in one instruction execution cycle of a microprocessor and executing a complicated instruction is realized. be able to.

列サイクリック演算部が実行する命令を格納している
ROMのビット幅を16ビットから更に拡大すると、同一速
度で扱えるリレー接点,コイル数を増加させることが可
能となる。
Stores instructions to be executed by the column cyclic operation unit
If the bit width of the ROM is further increased from 16 bits, the number of relay contacts and coils that can be handled at the same speed can be increased.

上記実施例ではROM4とROM5を別のROMで表現している
が同一ROMでも良い。また、当然のことながらROM以外の
記憶手段、例えば、RAMを用いても良い。
In the above embodiment, the ROM4 and the ROM5 are represented by different ROMs, but may be the same ROM. Of course, storage means other than ROM, for example, RAM may be used.

(発明の効果) 本発明は上記実施例から明らかなように、マイクロプ
ロセッサと列サイクリック演算部により、単純命令は列
サイクリック演算部で高速に処理し、複雑な命令はマイ
クロプロセッサで処理することにより、高機能で高速な
シーケンスコントローラを実現できるという効果を有す
る。また、全ての処理がマイクロプロセッサ(CPU)の
命令サイクルに同期しているため、数値制御装置の内蔵
プログラマブルシーケンスコントローラのように、1つ
のCPUでシーケンスの処理以外に表示等他の多くの処理
を行う用途には特に有効である。
(Effects of the Invention) As is clear from the above embodiment, the present invention uses a microprocessor and a column cyclic operation unit to process simple instructions at a high speed in the column cyclic operation unit, and processes complicated instructions by the microprocessor. This has an effect that a high-performance and high-speed sequence controller can be realized. In addition, since all processes are synchronized with the instruction cycle of the microprocessor (CPU), many other processes such as display, other than sequence processing, can be performed by one CPU like the built-in programmable sequence controller of the numerical controller. It is particularly effective for performing applications.

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

第1図は本発明の一実施例におけるプログラマブルシー
ケンスコントローラの主要ブロック図、第2図は実施例
におけるラダーダイアグラムと対応するシーケンスソー
スプログラムの関係を示す図、第3図はシーケンスソー
スプログラムと、マイクロプロセッサが解読・実行する
命令語と、列サイクリック演算部が解読・実行する命令
語との対応を示す図、第4図はシーケンスソースプログ
ラムと列サイクリック演算部が解読・実行する命令語と
の詳細を示した図である。 1……CPU、2……デコーダ、3……▲▼発
生回路、4,5……読取専用メモリ(ROM)、6……列サイ
クリック演算部、7……デュアルポートメモリ(RA
M)、8……I/O、9,10,11,12……ビット演算命令、13…
…乗算命令、14……シーケンスソースプログラム終了命
令。
FIG. 1 is a main block diagram of a programmable sequence controller in one embodiment of the present invention, FIG. 2 is a diagram showing a relationship between a ladder diagram and a corresponding sequence source program in the embodiment, and FIG. FIG. 4 is a diagram showing a correspondence between a command word decoded and executed by a processor and a command word decoded and executed by a column cyclic operation unit. FIG. 4 shows a sequence source program and a command word decoded and executed by a column cyclic operation unit. FIG. 1 ... CPU, 2 ... Decoder, 3 ... ▲ ▼ Generation circuit, 4,5 ... Read-only memory (ROM), 6 ... Column cyclic operation unit, 7 ... Dual port memory (RA
M), 8 ... I / O, 9, 10, 11, 12 ... bit operation instruction, 13 ...
... multiplication instruction, 14 ... sequence source program end instruction.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】リレーラダー回路をスイッチマトリックス
に対応させて接点情報と分岐情報とに分解し、各列毎に
繰り返し演算を行って出力情報処理を行う列サイクリッ
ク演算部と、列サイクリック演算部が演算を行うシーケ
ンスプログラムを格納するメモリ部と、シーケンスソー
スプログラムと1対1に対応するメモリまたはI/Oリー
ドのマイクロプロセッサのマシン語を格納するメモリ部
と、該マシン語を実行するマイクロプロセッサとを備
え、前記マイクロプロセッサがマシン語実行時に出力す
るメモリまたはI/Oリードアドレスにより、シーケンス
プログラム格納メモリ部よりシーケンスプログラムをリ
ードし、列サイクリック演算部を起動し、列サイクリッ
ク演算完了信号により、次のマシン語を実行させること
により、マイクロプロセッサの1命令実行サイクル内で
シーケンスプログラムを実行することを特徴とするプロ
グラマブルシーケンスコントローラの高速演算処理方
式。
1. A column cyclic operation unit for decomposing a relay ladder circuit into contact information and branch information in correspondence with a switch matrix, performing repetitive operation for each column to perform output information processing, and a column cyclic operation A memory for storing a sequence program for performing an operation by the unit, a memory for storing a machine language of a memory or an I / O read microprocessor corresponding to the sequence source program on a one-to-one basis, and a micro-processor for executing the machine language. A sequence program is read from a sequence program storage memory unit by a memory or an I / O read address output when the microprocessor executes machine language, a column cyclic operation unit is started, and a column cyclic operation is completed. The microprocessor executes the next machine language according to the signal. Fast arithmetic processing method of the programmable sequence controller, characterized by executing a sequence program in one instruction within an execution cycle of the sub.
【請求項2】ビット演算の命令はメモリまたはI/Oリー
ドのマシン語として、複雑な命令はサブルーチンコール
のマシン語としてメモリに格納することを特徴とする請
求項(1)記載のプログラマブルシーケンスコントロー
ラの高速演算処理方式。
2. The programmable sequence controller according to claim 1, wherein a bit operation instruction is stored in a memory as a memory or I / O read machine language, and a complicated instruction is stored in a memory as a subroutine call machine language. High-speed processing method.
JP1013048A 1989-01-24 1989-01-24 High-speed operation processing method of programmable sequence controller Expired - Fee Related JP2618703B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1013048A JP2618703B2 (en) 1989-01-24 1989-01-24 High-speed operation processing method of programmable sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1013048A JP2618703B2 (en) 1989-01-24 1989-01-24 High-speed operation processing method of programmable sequence controller

Publications (2)

Publication Number Publication Date
JPH02194402A JPH02194402A (en) 1990-08-01
JP2618703B2 true JP2618703B2 (en) 1997-06-11

Family

ID=11822238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1013048A Expired - Fee Related JP2618703B2 (en) 1989-01-24 1989-01-24 High-speed operation processing method of programmable sequence controller

Country Status (1)

Country Link
JP (1) JP2618703B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5321385A (en) * 1976-08-10 1978-02-27 Toshiba Corp Sequence controller
JPS63148303A (en) * 1986-12-12 1988-06-21 Toshiba Mach Co Ltd Arithmetic processing system for programmable sequence controller
JPS63304302A (en) * 1987-06-05 1988-12-12 Fanuc Ltd Programmable controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5321385A (en) * 1976-08-10 1978-02-27 Toshiba Corp Sequence controller
JPS63148303A (en) * 1986-12-12 1988-06-21 Toshiba Mach Co Ltd Arithmetic processing system for programmable sequence controller
JPS63304302A (en) * 1987-06-05 1988-12-12 Fanuc Ltd Programmable controller

Also Published As

Publication number Publication date
JPH02194402A (en) 1990-08-01

Similar Documents

Publication Publication Date Title
EP0476722B1 (en) Data processing system
US4967339A (en) Operation control apparatus for a processor having a plurality of arithmetic devices
US5390306A (en) Pipeline processing system and microprocessor using the system
JP2618703B2 (en) High-speed operation processing method of programmable sequence controller
JP2826309B2 (en) Information processing device
JPH0560629B2 (en)
JPS594049B2 (en) computer equipment
JPS6310445B2 (en)
JPH056281A (en) Information processor
JP2619425B2 (en) Sequence controller
JPS6134188B2 (en)
JPH0241770B2 (en)
JPS578851A (en) Parallel processing system
JP2743947B2 (en) Micro program control method
JPS6049335B2 (en) Branch address determination method in microprogram controlled data processing equipment
JPH11119995A (en) Device and method for processing data
JPH02128223A (en) Operational processor
JPS61161509A (en) System and device for operating high speed sequence
JPS63228332A (en) Control system for executing instruction
JPS6028014B2 (en) microprocessor
JPH0128416B2 (en)
JPS6126693B2 (en)
JPH052472A (en) Arithmetic unit
JPH0340013A (en) Central arithmetic processing unit
JPH0651818A (en) Programmable controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees