JPS6249502A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS6249502A
JPS6249502A JP18865185A JP18865185A JPS6249502A JP S6249502 A JPS6249502 A JP S6249502A JP 18865185 A JP18865185 A JP 18865185A JP 18865185 A JP18865185 A JP 18865185A JP S6249502 A JPS6249502 A JP S6249502A
Authority
JP
Japan
Prior art keywords
instruction
execution
sequence
processor
operand
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.)
Pending
Application number
JP18865185A
Other languages
Japanese (ja)
Inventor
Michio Murai
村井 三千男
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP18865185A priority Critical patent/JPS6249502A/en
Publication of JPS6249502A publication Critical patent/JPS6249502A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the arithmetic processing speed and to simplify the hardware by adding the information to a sequence instruction and an operand to designate execution or non-execution of these sequence and operand. CONSTITUTION:The execution information 3C is added to an instruction code 3A of a sequence control instruction to designate execution or non-execution of this code 3A. A sequence control processor 3D fetches an instruction from a program memory and at the same time decides execution or non-execution of the instruction 3A according to the result of execution of the preceding instruction and the information 3C. Then the processor 3D fetches the next operand. When the processor 3D is unable to process the fetched instruction, an arithmetic processor 3F is started for execution of the fetched instruction. In such a way, it is possible to increase the arithmetic processing speed and to simplify the hardware.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明はプログラマブルコントローラにがかり、特にシ
ーケンスプログラム制御方法の改良に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a programmable controller, and particularly to an improvement in a sequence program control method.

[発明の技術的背景とその問題点〕 一般にシーケンスプログラムの実行は、第3図に示すよ
うに、前の命令の実行結果によって次の命令を実行する
かどうかを決定して行なわれる。
[Technical Background of the Invention and Problems thereof] Generally, a sequence program is executed by determining whether to execute the next instruction based on the execution result of the previous instruction, as shown in FIG.

従って各シーケンス命令実行ごとに、上記の判断を行う
必要があるが、従来は、命令をフェッチした後この命令
を解釈し、実行しない場合は各命令ごとに異なっている
次の命令までのアドレスを求めてジャンプ処理を行って
いる。
Therefore, it is necessary to make the above judgment each time a sequence instruction is executed, but conventionally, after fetching an instruction, this instruction is interpreted, and if it is not executed, the address up to the next instruction, which is different for each instruction, is Jump processing is performed to find it.

これらの処理を行うとハードウェアが複雑になると同時
に各命令に必要なオペランドの構成状態を示す情報が必
要となって命令コードが複雑となる。
Performing these processes complicates the hardware, and at the same time requires information indicating the configuration state of the operands required for each instruction, making the instruction code complex.

第4図は従来のシーケンス命令の実行過程の一例を示す
タイムチャートであり、先ず過程1Aで命令コードのフ
ェッチを行い、次に過程1Bで入力条件によりこの命令
を実行するかどうかを判断し、実行する場合は過程1C
へ移る。
FIG. 4 is a time chart showing an example of a conventional sequence instruction execution process. First, in process 1A, an instruction code is fetched, and then in process 1B, it is determined whether or not to execute this instruction based on input conditions. When executing, process 1C
Move to.

実行しない場合は過程1Dでフェッチした命令の内容お
よびオペランドの構成状態を解釈し、解釈終了後過程1
Eで次の命令ヘジャンブする。
If not executed, interpret the contents of the instruction fetched in step 1D and the configuration state of the operands, and then execute step 1 after the interpretation is completed.
Jump to the next command with E.

過程1Cで実行を行う場合は、命令の内容を判別し、そ
れぞれのオペランドデータをフェッチした後実行処理を
行う。
When executing in step 1C, the contents of the instruction are determined, each operand data is fetched, and then execution processing is performed.

従うて上記第4図に示す従来の方法でシーケンス命令の
制御を行うと、シーケンス命令を実行しない場合の判断
および処理が複雑となり、処理時間が長くなるという問
題がある。
Therefore, if sequence commands are controlled by the conventional method shown in FIG. 4, the judgment and processing when the sequence command is not executed becomes complicated, and the processing time becomes longer.

[発明の目的] 本発明はシーケンス命令およびオペランドにそれらの実
行の有無を指定する情報を付加し、これによって演算処
理の高速化とハードウェアの簡易化をはかったプログラ
マブルコントローラを提供することを目的としている。
[Object of the Invention] An object of the present invention is to provide a programmable controller that adds information specifying whether or not to execute sequence instructions and operands, thereby speeding up arithmetic processing and simplifying hardware. It is said that

[発明の概要] 本発明は、各シーケンス命令およ、びオペランドにそれ
らの実行の有無を指定する情報を付加した命令コードと
、命令コードおよび入力条件によって命令の実行、不実
行を制御するシーケンス制御プロセッサと、命令実行を
上記シーケンス制御プロセッサより指定された場合に演
算実行する演算プロセッサを備え、これによって不実行
時の命令およびオペランドの読み飛ばし処理を効率的に
行い、演算処理の高速化とハードウェアの簡易化をはか
ったプログラマブルコントローラである。
[Summary of the Invention] The present invention provides an instruction code in which information specifying whether or not to execute each sequence instruction and operand is added, and a sequence that controls execution or non-execution of the instruction based on the instruction code and input conditions. It is equipped with a control processor and an arithmetic processor that executes arithmetic operations when instruction execution is specified by the sequence control processor, thereby efficiently skipping instructions and operands when they are not executed, and speeding up arithmetic processing. This is a programmable controller with simplified hardware.

[発明の実施例] 本発明の一実施例を第1図に示す。[Embodiments of the invention] An embodiment of the present invention is shown in FIG.

本発明では第1図に示すようにシーケンス制御命令の命
令コード3Aにそれらの実行の有無を指定する実行情報
3Cを設け、シーケンス制御プロセッサ3Dはプログラ
ムメモリより命令をフェッチすると同時に前命令の実行
結果と、上記実行情報3Cから命令3Aを実行するかど
うかを判定し、実行しない場合は次のオペランドをフェ
ッチする。
In the present invention, as shown in FIG. 1, the instruction code 3A of the sequence control instruction is provided with execution information 3C that specifies whether or not to execute the sequence control instruction, and the sequence control processor 3D fetches the instruction from the program memory and at the same time executes the execution result of the previous instruction. Then, it is determined whether the instruction 3A is to be executed based on the execution information 3C, and if the instruction 3A is not to be executed, the next operand is fetched.

この時オペランドには実行の有無を指定する情報として
必ず無となるような実行情報3Eを付加しであるので、
フェッチと同時に無視される。
At this time, execution information 3E, which is always null, is added to the operand as information specifying whether or not to execute.
Ignored when fetching.

このように命令を実行しない場合は命令後は不実行命令
として扱われ、オペランドは常に不実行命令として処理
されるので自動的に次の命令までメモリの7エツチのみ
が行われる。
In this way, when an instruction is not executed, the instruction after the instruction is treated as an unexecuted instruction, and since the operand is always processed as an unexecuted instruction, only 7 etches of the memory are automatically performed until the next instruction.

一方フエッチした命令を実行する場合は、シーケンス制
御プロセッサ3Dは、自身で処理できなくなると演算プ
ロセッサ3Fを起動し、演算プロセッサ3Fがフェッチ
命令の演算を行う。
On the other hand, when executing the fetched instruction, the sequence control processor 3D starts the arithmetic processor 3F when it becomes unable to process it by itself, and the arithmetic processor 3F performs the arithmetic operation of the fetch instruction.

これと並行してシーケンス制御プロセッサ3Dはオペラ
ンド3Bをフェッチし、実行を無視しながら次の命令コ
ードをフェッチして待機する。
In parallel with this, the sequence control processor 3D fetches the operand 3B, ignores execution, fetches the next instruction code, and waits.

演算プロセッサ3Fは演算終了とともにシーケンス制御
プロセッサ3Dへ制御権をもどす。
The arithmetic processor 3F returns control to the sequence control processor 3D upon completion of the arithmetic operation.

以上のような構成を用いてシーケンスプログラムの実行
制御を行うと、シーケンス命令を実行しない場合の処理
が短縮されると共にオペランドと命令コードの区別によ
ってオペランドを実行せずに読み飛ばす処理を容易に行
うことが可能となる。
By controlling the execution of a sequence program using the above configuration, the processing when sequence instructions are not executed is shortened, and the distinction between operands and instruction codes makes it easy to skip operands without executing them. becomes possible.

[発明の効果] 以上説明したように本発明によれば、シーケンス制御命
令コード内に、オペランドも含めてその命令入力条件に
より実行するか、またはオペランドを実行しない命令と
して判断する情報を付加し、シーケンス制御プロセッサ
により命令の実行/不実行の制御を行っているので、シ
ーケンス制御プロセッサのハードウェアの簡易化とシー
ケンス制御命令の不実行時の処理時間の短縮が可能とな
り、これによってシーケンスプログラムの実行制御を効
率よく行う合理的なプログラマブルコントローラが実現
できる。
[Effects of the Invention] As explained above, according to the present invention, information is added to the sequence control instruction code to determine whether the instruction, including the operand, will be executed according to the input conditions of the instruction, or whether the instruction will not execute the operand. Since the sequence control processor controls the execution/non-execution of instructions, it is possible to simplify the hardware of the sequence control processor and shorten the processing time when sequence control instructions are not executed. A rational programmable controller that performs control efficiently can be realized.

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

第1図は本発明の一実施例を示すシーケンス命令のハー
ドウェア構成図、第2図は本発明における命令実行手順
を示すタイムチャート、第3図はシーケンス制御命令の
一般的な構成を示す図、第4図は従来のシーケンス命令
の実行制御の方法を示すタイムチャートである。 1A〜1E・・・演算過程 3A・・・演算命令コード 3B・・・オペランドコード 3C,3E・・・実行情報 3D・・・シーケンス制御プロセッサ 3F・・・演算プロセッサ
FIG. 1 is a hardware configuration diagram of a sequence instruction showing an embodiment of the present invention, FIG. 2 is a time chart showing an instruction execution procedure in the present invention, and FIG. 3 is a diagram showing a general configuration of a sequence control instruction. , FIG. 4 is a time chart showing a conventional method of controlling execution of sequence instructions. 1A to 1E... Arithmetic process 3A... Arithmetic instruction code 3B... Operand code 3C, 3E... Execution information 3D... Sequence control processor 3F... Arithmetic processor

Claims (1)

【特許請求の範囲】[Claims] 記憶装置内のシーケンス命令を順次解釈して処理するプ
ログラマブルコントローラにおいて、各シーケンス命令
およびオペランドに実行の有無を指定する実行情報を付
加すると共に、入力条件と上記実行情報からシーケンス
命令の実行を制御するシーケンス制御プロセッサと、上
記シーケンス制御プロセッサの指示によって演算を実行
する演算プロセッサを備えたことを特徴とするプログラ
マブルコントローラ。
In a programmable controller that sequentially interprets and processes sequence instructions in a storage device, execution information that specifies whether or not to execute them is added to each sequence instruction and operand, and execution of the sequence instructions is controlled based on input conditions and the above execution information. A programmable controller comprising: a sequence control processor; and an arithmetic processor that executes calculations according to instructions from the sequence control processor.
JP18865185A 1985-08-29 1985-08-29 Programmable controller Pending JPS6249502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18865185A JPS6249502A (en) 1985-08-29 1985-08-29 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18865185A JPS6249502A (en) 1985-08-29 1985-08-29 Programmable controller

Publications (1)

Publication Number Publication Date
JPS6249502A true JPS6249502A (en) 1987-03-04

Family

ID=16227450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18865185A Pending JPS6249502A (en) 1985-08-29 1985-08-29 Programmable controller

Country Status (1)

Country Link
JP (1) JPS6249502A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0257743A (en) * 1988-05-03 1990-02-27 Borg Warner Automot Inc Large-stroke vibration damper assembly
US5257675A (en) * 1989-12-11 1993-11-02 Honda Giken Kogyo Kabushiki Kaisha Juxtaposed motor vehicle engine and transmission power transmitting apparatus with reduced axial and tranverse dimensions

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0257743A (en) * 1988-05-03 1990-02-27 Borg Warner Automot Inc Large-stroke vibration damper assembly
US5257675A (en) * 1989-12-11 1993-11-02 Honda Giken Kogyo Kabushiki Kaisha Juxtaposed motor vehicle engine and transmission power transmitting apparatus with reduced axial and tranverse dimensions

Similar Documents

Publication Publication Date Title
JPS6249502A (en) Programmable controller
JP3143330B2 (en) Programmable controller
JPH0410081B2 (en)
JP3260788B2 (en) Robot control device and method
JPS58200349A (en) Microprogram controller
JPH05224711A (en) Control method for programmable controller
JPS5842891B2 (en) Meirei Seigiyohoushiki
JPH05119810A (en) Sequence controller
JPS63211037A (en) Program debugging method
JPH07210403A (en) Task switching system
JPS60120437A (en) Executing device of robot language
JPH0259829A (en) Microcomputer
JPH07334215A (en) Sequence control method of programmable controller
JPS63223982A (en) Graphic processor
JPH05334127A (en) I/o simulation system
JPS63282525A (en) Correction system for execution type program file
JPH06348538A (en) Debugger
JPS6346542A (en) Information processor
JPH05181669A (en) Microprocessor
JPH07168609A (en) Method for debugging sequence program
JPH07230306A (en) Program branch control system for programmable controller
JPS62235641A (en) Control system for executing program
JPH01243124A (en) Simulation system
JPS6334607A (en) Robot controller
JPH09204206A (en) Programmable controller