JP2002268709A - Sequence arithmetic executing device for programmable controller - Google Patents

Sequence arithmetic executing device for programmable controller

Info

Publication number
JP2002268709A
JP2002268709A JP2001069872A JP2001069872A JP2002268709A JP 2002268709 A JP2002268709 A JP 2002268709A JP 2001069872 A JP2001069872 A JP 2001069872A JP 2001069872 A JP2001069872 A JP 2001069872A JP 2002268709 A JP2002268709 A JP 2002268709A
Authority
JP
Japan
Prior art keywords
memory
instruction
command
selecting
data
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
JP2001069872A
Other languages
Japanese (ja)
Inventor
Yuichi Onizuka
勇一 鬼塚
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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP2001069872A priority Critical patent/JP2002268709A/en
Publication of JP2002268709A publication Critical patent/JP2002268709A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the sequence arithmetic execution device of a programmable controller whose arithmetic speed is high. SOLUTION: A programmable controller to which a memory for performing reading and writing by every bit is connected is constituted so that a memory writing instruction can be executed by executing each arithmetic operation simultaneously with one time memory reading.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はプログラマブルコン
トローラに係わり、特にシーケンスの演算を実行するプ
ログラマブルコントローラのシーケンス演算実行装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller and, more particularly, to a sequence operation execution device of a programmable controller for executing a sequence operation.

【0002】[0002]

【従来の技術】従来、プログラマブルコントローラのシ
ーケンスを実行するにあたっては、マイコンからの指令
をCPUに与え、この指令に基づいてCPUで演算が行
なわれ、この演算結果によりプログラムメモリの演算が
行なわれている。
2. Description of the Related Art Conventionally, in order to execute a sequence of a programmable controller, a command from a microcomputer is given to a CPU, and a calculation is performed by the CPU based on the command, and a calculation in a program memory is performed based on a result of the calculation. I have.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな構成では、電気的にもまた機械的にも演算速度が要
求される分野においては好ましいものではなかった。本
発明は、上述した点に鑑みて創案されたもので、その目
的とするところは、演算速度が速いプログラマブルコン
トローラのシーケンス演算実行装置を提供することにあ
る。
However, such a configuration is not preferable in a field where a calculation speed is required both electrically and mechanically. The present invention has been made in view of the above points, and an object of the present invention is to provide a sequence operation execution device of a programmable controller having a high operation speed.

【0004】[0004]

【課題を解決するための手段】つまり、その目的を達成
するための手段は、1ビットごとに読み書きするメモリ
を接続したプログラマブルコントローラにおいて、CP
Uからのプログラムメモリ指令としてLOAD,AN
D,OR,STOREを有する入力手段と、該入力手段
からどの命令を用いるかを判別する判別手段と、該判別
手段で判別したメモリ指令を演算するために選択する選
択手段と、該選択手段の演算結果を保持する保持手段と、
該保持手段のデータをRAMとして保存すると共に該R
AMのアドレスを入力する汎用メモリと、前記保持手段
を呼び出す指令に基づいて演算を行なう論理演算手段
と、該論理演算手段からの出力データを否定するNOT
命令を出力するNOT命令手段と、前記汎用メモリで指
定されているアドレスにデータをストアーするストアー
手段と、該ストアー手段のデータか又は前記選択手段の
データかを演算選択する演算選択手段と、前記NOT命
令手段の入力により前記選択手段の出力データを反転さ
せる反転手段と、内部レジスタアドレスつまり何処のレ
ジスタを実行するかの実行指令と該実行指令のインデッ
クス値のいずれを有効とするかを指定するインデックス
レジスタ指定指令のそれぞれを入力して前記汎用メモリ
のアドレスに対して予めアドレスオフセットを指定でき
るアドレスオフセット手段から構成され、メモリ1回の
読み出しと同時に、前記それぞれの演算を行なってメモ
リ書込み命令を実行するようにしたことを特徴とするプ
ログラマブルコントローラのシーケンス演算実行装置で
ある。以下、本発明の一実施例を図面に基づいて詳述す
る。
In other words, a means for achieving the object is a programmable controller connected to a memory for reading and writing one bit at a time.
LOAD, AN as program memory command from U
Input means having D, OR, and STORE; determining means for determining which instruction is to be used from the input means; selecting means for selecting a memory command determined by the determining means; Holding means for holding an operation result;
The data of the holding means is stored as RAM and
A general-purpose memory for inputting an address of the AM, a logical operation means for performing an operation based on a command for calling the holding means, and a NOT for negating output data from the logical operation means
NOT instruction means for outputting an instruction, storage means for storing data at an address designated in the general-purpose memory, operation selection means for arithmetically selecting whether the data of the storage means or the data of the selection means, Inverting means for inverting the output data of the selecting means in response to the input of the NOT instruction means, an internal register address, that is, an execution instruction for executing which register and an index value of the execution instruction are specified. An address offset means capable of inputting each of the index register designation commands and designating an address offset with respect to the address of the general-purpose memory in advance is provided. Programmable computer characterized by being executed It is a sequence operation execution device of the roller. Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

【0005】[0005]

【発明の実施の形態】図1は本発明の一実施例を示す構
成図であり、1はCPUからのプログラムメモリ指令と
してLOAD,AND,OR,STOREを有する入力
手段、2は入力手段1からどの命令を用いるかを判別す
る判別手段、3は判別手段2で判別したメモリ指令を演
算するために選択する選択手段、4は選択手段3の演算
結果を保持する保持手段、5は保持手段4のデータをR
AMとして保存すると共にこのRAMのアドレスを入力
する汎用メモリである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of the present invention. Reference numeral 1 denotes input means having LOAD, AND, OR, and STORE as program memory commands from a CPU; Determining means for determining which instruction is to be used; 3 means selecting means for calculating the memory command determined by the determining means 2; 4 holding means for holding the calculation result of the selecting means 3; Data of R
This is a general-purpose memory that stores as an AM and inputs the address of the RAM.

【0006】更に、6は保持手段4を呼び出す指令に基
づいて演算を行なう論理演算手段、7は論理演算手段6
からの出力データを否定するNOT命令を出力するNO
T命令手段、8は汎用メモリ5で指定されているアドレ
スにデータをストアーするストアー手段、9はストアー
手段8のデータか又は選択手段3のデータかを演算選択
する演算選択手段、10はNOT命令手段7の入力によ
り選択手段3の出力データを反転させる反転手段と、1
1は内部レジスタアドレスつまり何処のレジスタを実行
するかの実行指令11aとこの実行指令のインデックス値
のいずれを有効とするかを指定するインデックスレジス
タ指定指令11bのそれぞれを入力して汎用メモリ5のア
ドレスに対して予めアドレスオフセットを指定できるア
ドレスオフセット手段である。
Further, reference numeral 6 denotes a logical operation means for performing an operation based on a command for calling the holding means 4, and 7 denotes a logical operation means 6.
NO to output NOT instruction to negate output data from
T instruction means, 8 is storage means for storing data at an address designated by the general-purpose memory 5, 9 is operation selection means for performing operation selection of data of the storage means 8 or data of the selection means 3, and 10 is a NOT instruction. Inverting means for inverting the output data of the selecting means 3 by the input of the means 7;
Reference numeral 1 denotes an address of the general-purpose memory 5 by inputting an internal register address, that is, an execution command 11a for executing which register and an index register specification command 11b for specifying which of the index values of the execution command are valid. Is an address offset means that can specify an address offset in advance for.

【0007】すなわち、かようなごとく構成された1ビ
ットごとに読み書きするメモリを接続したプログラマブ
ルコントローラにおいて、メモリ1回の読み出しと同時
に、前記それぞれの演算を行なってメモリ書込み命令を
実行するようにしたものである。なお、アドレスオフセ
ット手段11については、公知技術であるため、ここで
はその説明を割愛する。
That is, in a programmable controller connected to a memory configured to read and write for each bit configured as described above, the above-described operations are performed and a memory write instruction is executed at the same time as reading the memory once. Things. Since the address offset means 11 is a known technique, its description is omitted here.

【0008】次にその作用について説明する。図1にお
いて、メモリ書込みを行なう場合は、CPU(図示せ
ず)から、1ビット毎のLOAD又はAND又はOR又
はSTOREの演算命令が判別手段2に伝達される。
(D20,D21) そして、ここで判別されたいずれかの指令は、選択手段
3に伝達される。その後、保持手段4においてセレクト
されたデータの演算結果を保持する。更に保持されたセ
レクトデータをRAMとして汎用メモリ5に入力される
と共に、RAMのアドレスとしてメモリされる。
Next, the operation will be described. In FIG. 1, when performing memory writing, a CPU (not shown) transmits a LOAD, AND, OR, or STORE operation instruction for each bit to the determination means 2.
(D20, D21) Then, one of the commands determined here is transmitted to the selection means 3. Thereafter, the holding unit 4 holds the result of the operation on the selected data. Further, the held select data is input to the general-purpose memory 5 as a RAM, and is stored as an address of the RAM.

【0009】次に読み出しの場合は、汎用メモリ5で指
定されているアドレスにデータをストアーするストアー
手段8のデータか又は選択手段3のデータかを演算選択
するかを演算器12(RD)を介して演算選択手段9に
てセレクトされる。(D0〜D18) 論理演算手段6からの出力データは、NOT命令(NO
TLOAD,NOTAND,NOTOR)を出力するN
OT命令手段7(図示しないB接点D19の1又は0)
によって規制される。
Next, in the case of reading, the arithmetic unit 12 (RD) determines whether to select the data of the storage means 8 for storing data at the address designated by the general-purpose memory 5 or the data of the selection means 3. Is selected by the operation selecting means 9 via the CPU. (D0 to D18) The output data from the logical operation means 6 is a NOT instruction (NO
N that outputs TLOAD, NOTAND, NOTOR)
OT command means 7 (1 or 0 of B contact D19 not shown)
Regulated by

【0010】[0010]

【発明の効果】以上説明したように本発明によれば、メ
モリ1回の読み出しと同時に、前記それぞれの演算を行
なってメモリ書込み命令を実行するようにしたことによ
って、従来マイコン演算命令によって行なわれていたこ
とがなくなり、短時間で演算実行が行なえ、またこのた
めにマイコンを必要とすることがなくなり、実用上、極
めて有用性の高いものである。
As described above, according to the present invention, the above-mentioned operations are performed and the memory write instruction is executed at the same time when the memory is read once. This makes it possible to execute the operation in a short time and eliminate the need for a microcomputer, which is extremely useful in practice.

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

【図1】本発明の一実施例を示す制御回路構成図であ
る。
FIG. 1 is a configuration diagram of a control circuit showing one embodiment of the present invention.

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

1 入力手段 2 判別手段 3 選択手段 4 保持手段 5 汎用メモリ 6 論理演算手段 7 NOT命令手段 8 ストアー手段 9 演算選択手段 10 反転手段 11 アドレスオフセット手段 11a 実行指令 11b インデックスレジスタ指定指令 12 演算器 DESCRIPTION OF SYMBOLS 1 Input means 2 Discrimination means 3 Selection means 4 Holding means 5 General-purpose memory 6 Logical operation means 7 NOT instruction means 8 Store means 9 Operation selection means 10 Inversion means 11 Address offset means 11a Execution command 11b Index register designation command 12 Computing unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1ビットごとに読み書きするメモリを接
続したプログラマブルコントローラにおいて、CPUか
らのプログラムメモリ指令としてLOAD,AND,O
R,STOREを有する入力手段と、該入力手段からど
の命令を用いるかを判別する判別手段と、該判別手段で
判別したメモリ指令を演算するために選択する選択手段
と、該選択手段の演算結果を保持する保持手段と、該保持
手段のデータをRAMとして保存すると共に該RAMの
アドレスを入力する汎用メモリと、前記保持手段を呼び
出す指令に基づいて演算を行なう論理演算手段と、該論
理演算手段からの出力データを否定するNOT命令を出
力するNOT命令手段と、前記汎用メモリで指定されて
いるアドレスにデータをストアーするストアー手段と、
該ストアー手段のデータか又は前記選択手段のデータか
を演算選択する演算選択手段と、前記NOT命令手段の
入力により前記選択手段の出力データを反転させる反転
手段と、内部レジスタアドレスつまり何処のレジスタを
実行するかの実行指令と該実行指令のインデックス値の
いずれを有効とするかを指定するインデックスレジスタ
指定指令のそれぞれを入力して前記汎用メモリのアドレ
スに対して予めアドレスオフセットを指定できるアドレ
スオフセット手段から構成され、メモリ1回の読み出し
と同時に、前記それぞれの演算を行なってメモリ書込み
命令を実行するようにしたことを特徴とするプログラマ
ブルコントローラのシーケンス演算実行装置。
In a programmable controller to which a memory for reading and writing data for each bit is connected, LOAD, AND, and O are supplied as program memory commands from a CPU.
Input means having R and STORE, determining means for determining which instruction is to be used from the input means, selecting means for selecting a memory command determined by the determining means, and a calculation result of the selecting means Holding means, a general-purpose memory for storing data of the holding means as a RAM and inputting an address of the RAM, a logical operation means for performing an operation based on a command for calling the holding means, and a logical operation means NOT instruction means for outputting a NOT instruction for negating output data from the memory, storage means for storing data at an address designated by the general-purpose memory,
Operation selecting means for calculating and selecting whether the data of the storing means or the data of the selecting means, inverting means for inverting the output data of the selecting means by the input of the NOT instruction means, and an internal register address, that is, a register Address offset means for inputting an execution command for executing the command and an index register specifying command for specifying which of the index values of the execution command are to be valid, and specifying an address offset in advance for the address of the general-purpose memory A sequence operation execution device for a programmable controller, wherein each of the operations is performed to execute a memory write instruction at the same time as one read operation of the memory.
JP2001069872A 2001-03-13 2001-03-13 Sequence arithmetic executing device for programmable controller Pending JP2002268709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001069872A JP2002268709A (en) 2001-03-13 2001-03-13 Sequence arithmetic executing device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001069872A JP2002268709A (en) 2001-03-13 2001-03-13 Sequence arithmetic executing device for programmable controller

Publications (1)

Publication Number Publication Date
JP2002268709A true JP2002268709A (en) 2002-09-20

Family

ID=18927838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001069872A Pending JP2002268709A (en) 2001-03-13 2001-03-13 Sequence arithmetic executing device for programmable controller

Country Status (1)

Country Link
JP (1) JP2002268709A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608495A (en) * 2021-08-08 2021-11-05 上海领霄科技有限公司 Programmable logic control implementation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608495A (en) * 2021-08-08 2021-11-05 上海领霄科技有限公司 Programmable logic control implementation method

Similar Documents

Publication Publication Date Title
JP6407919B2 (en) Numerical control device and variable determination method
KR900006854A (en) Programmable Controller
JP2002268709A (en) Sequence arithmetic executing device for programmable controller
JP2006330778A (en) Data trace device and program debugging device
US5893928A (en) Data movement apparatus and method
JP5245617B2 (en) Register control circuit and register control method
JP2731047B2 (en) Program operand check method
CN109491870A (en) A kind of detection method and device of the access state of sensor
JPH08249018A (en) Multiprocessor arithmetic unit and programmable controller having the arithmetic unit
JP3695078B2 (en) Programmable controller with pulse output instructions
JP2006107004A (en) Trace control circuit, microprocessor and method of controlling trace
KR20070052471A (en) Apparatus and method of controlling nand flash memory
JPH0644389A (en) Data driving information processor
JP2002278774A (en) Method and device for generating instruction word in controlling function unit in processor
JP2005032020A (en) Storage device
JPH09134209A (en) Input/output processing value tracing method in programmable controller and programmable controller
JP3755653B2 (en) Contact input / output program controller
JP2021077084A (en) Model analysis device
JPH06332749A (en) Register analysis processor
JP2000057012A (en) Trace device
JPH0241522A (en) Function arithmetic processor
JPS6155731A (en) Processor provided with condition code discriminating function
JPH01251233A (en) Processor
JPH0296257A (en) Diagnostic system for main storage
JPH0319570B2 (en)