[go: up one dir, main page]

JPH11282512A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH11282512A
JPH11282512A JP8105898A JP8105898A JPH11282512A JP H11282512 A JPH11282512 A JP H11282512A JP 8105898 A JP8105898 A JP 8105898A JP 8105898 A JP8105898 A JP 8105898A JP H11282512 A JPH11282512 A JP H11282512A
Authority
JP
Japan
Prior art keywords
flip
flop
cpu
operation cpu
content
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
JP8105898A
Other languages
Japanese (ja)
Other versions
JP3900660B2 (en
Inventor
Fumihiko Mori
文彦 森
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP08105898A priority Critical patent/JP3900660B2/en
Publication of JPH11282512A publication Critical patent/JPH11282512A/en
Application granted granted Critical
Publication of JP3900660B2 publication Critical patent/JP3900660B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a sequence controller for surely and quickly performing a sequence arithmetic operation by asynchronously reading the state of a bit arithmetic CPU. SOLUTION: Relating to a sequence controller, an instruction read from a program memory 31 is stored in a flip flop 32, and temporarily preserved in a flip flop 33. A flip flop 36 maintains a content indicating the state of a bit arithmetic CPU. A multiplexer 34 selects the content of the flip flop 32 in a normal operation, and selects the content of the flip flop 33 at the time of the read end of a word arithmetic CPU. While the word arithmetic CPU is reading the content of the flip flop 36, the multiplexer 35 feedbacks and preserves the content of the flip flop 36 instead of a content from the multiplexer 34.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ビット演算用CP
Uとワード演算用CPUを使ってシーケンス演算を行う
シーケンスコントローラに関する。
The present invention relates to a bit operation CP.
The present invention relates to a sequence controller that performs a sequence operation using U and a word operation CPU.

【0002】[0002]

【従来の技術】シーケンスコントローラでは、コイル命
令や接点命令を処理するビット演算を実行することが多
いため、ビット演算専用CPUを採用し、高速化を図っ
ている。よって、このビット演算CPUと数値命令の実
行やシステム管理を行うワード演算CPUの2つのCP
Uとで構成する。
2. Description of the Related Art In many cases, a sequence controller executes a bit operation for processing a coil instruction or a contact instruction. Therefore, a CPU dedicated to a bit operation is employed to increase the speed. Therefore, the two CPs of the bit operation CPU and the word operation CPU for executing the numerical instructions and managing the system.
U.

【0003】シーケンス演算を行う回路は、図3に示す
ように、ビット演算CPU11、ワード演算CPU1
2、プログラムメモリ(PM)13とデータメモリ(D
M)14で構成される。
As shown in FIG. 3, a circuit for performing a sequence operation includes a bit operation CPU 11 and a word operation CPU 1.
2. Program memory (PM) 13 and data memory (D
M) 14.

【0004】シーケンスの実行は、それぞれのCPUが
プログラムメモリ13からシーケンス命令をリードし、
ビット命令はビット演算CPU11が実行し、数値命令
はワード演算CPU12が実行する。命令の種類によっ
て、それぞれのCPUが順番に処理する。
In order to execute a sequence, each CPU reads a sequence instruction from the program memory 13 and
The bit instruction is executed by the bit operation CPU 11, and the numerical instruction is executed by the word operation CPU 12. Depending on the type of instruction, each CPU processes in order.

【0005】ワード演算CPU12には、数値命令の実
行の他、システム管理を司る役割もあり、ビット演算C
PU11の状態を把握する必要がある。ビット演算CP
U11には、ビット演算命令を実行中か停止中かを表す
ステータスレジスタ11Aを持ち、ワード演算CPU1
2はこのレジスタ11Aをビット演算CPU11からの
要求時やワード演算CPU自身の演算空き時間にリード
することで、ビット演算CPU11の状態を把握する。
[0005] The word operation CPU 12 has a role of controlling the system management in addition to the execution of numerical instructions.
It is necessary to grasp the state of the PU 11. Bit operation CP
U11 has a status register 11A indicating whether a bit operation instruction is being executed or stopped, and a word operation CPU 1
2 reads the state of the bit operation CPU 11 by reading the register 11A at the time of a request from the bit operation CPU 11 or during the idle time of the word operation CPU itself.

【0006】[0006]

【発明が解決しようとする課題】図3に示すシーケンス
演算回路は、ワード演算CPU12がシステム管理を司
る役割があり、ビット演算CPU11の状態を把握する
必要がある。この状態把握をビット演算CPU11のス
テータスレジスタ11Aをワード演算CPU12がリー
ドすることで、ビット演算CPU11の状態を把握す
る。
In the sequence operation circuit shown in FIG. 3, the word operation CPU 12 has a role of managing the system, and it is necessary to grasp the state of the bit operation CPU 11. The status of the bit operation CPU 11 is determined by reading the status register 11A of the bit operation CPU 11 by the word operation CPU 12.

【0007】このステータスレジスタの内容は、図4の
ようにビット演算CPU11の命令実行によって変化す
るため、ワード演算CPU12がビット演算CPU11
の実行と非同期にリードすると、リード中にデータが変
化することがあり得る。
Since the contents of the status register are changed by the execution of the instruction by the bit operation CPU 11 as shown in FIG.
If the data is read asynchronously with the execution of the data, the data may change during the read.

【0008】従来のこの対策として、ビット演算CPU
11がワード演算CPU12に読み出し要求信号を出力
し、ビット演算CPU11はステータスレジスタ11A
の内容を固定し、ワード演算CPU12のリード中にデ
ータが変化することを防いでいる。
As a conventional countermeasure, a bit operation CPU is used.
11 outputs a read request signal to the word operation CPU 12, and the bit operation CPU 11 outputs the status register 11A.
Are fixed to prevent data from changing during reading of the word operation CPU 12.

【0009】この方法は、ビット演算CPU11が演算
を終了して要求信号を出力し、これを受けたワード演算
CPU12は処理中の動作を中断してステータスレジス
タ11Aをリードし、その後にシーケンス命令の実行を
することになる。
According to this method, the bit operation CPU 11 terminates the operation and outputs a request signal, and upon receiving the request signal, the word operation CPU 12 interrupts the operation being processed and reads the status register 11A, and then reads the sequence instruction. Will run.

【0010】このため、ワード演算CPU12のソフト
ウェア処理が複雑になり、ビット演算CPU11からワ
ード演算CPU12への処理の移動に時間がかかること
が問題となる。
For this reason, software processing of the word operation CPU 12 becomes complicated, and it takes a long time to move the processing from the bit operation CPU 11 to the word operation CPU 12.

【0011】本発明の目的は、ビット演算CPUの状態
を非同期でリードしながらシーケンス演算を確実、高速
にするシーケンスコントローラを提供することにある。
It is an object of the present invention to provide a sequence controller for reliably and quickly performing a sequence operation while asynchronously reading the state of a bit operation CPU.

【0012】[0012]

【課題を解決するための手段】本発明は、ビット演算C
PUが持つステータスレジスタの内容が、ワード演算C
PUのリード中にデータが変化することを防ぐことで、
ワード演算CPUから非同期にリード可能とし、ワード
演算CPUのソフトウェア処理を単純化すると共に、ビ
ット演算CPUからワード演算CPUへの処理の移動時
間を高速にするものであり、以下の構成を特徴とする。
SUMMARY OF THE INVENTION The present invention provides a bit operation C
The content of the status register of the PU is the word operation C
By preventing data from changing during PU reading,
It enables reading from the word operation CPU asynchronously, simplifies the software processing of the word operation CPU, and speeds up the transfer time of the process from the bit operation CPU to the word operation CPU. .

【0013】コイル命令や接点命令を処理するビット演
算CPUと、数値命令の処理やシステム管理を行うワー
ド演算CPUとの2つのCPUで構成し、前記ワード演
算CPUは前記ビット演算CPUの状態を示すステータ
スレジスタの内容をリードすることで該ビット演算CP
Uの状態を把握するシーケンスコントローラにおいて、
前記ビット演算CPUのステータスレジスタ回路は、プ
ログラムメモリから読み出した命令を格納する第1のフ
リップフロップと、前記第1のフリップフロップの内容
を一時保管する第2のフリップフロップと、ビット演算
CPUの状態を示す内容を保管しておき、この内容を前
記ワード演算CPUがリード動作で読み込むための第3
のフリップフロップと、通常時は前記第1のフリップフ
ロップの内容を選択して第3のフリップフロップに渡
し、前記ワード演算CPUのリードエンド時に前記第2
のフリップフロップの内容を選択して前記第3のフリッ
プフロップに渡す第1のマルチプレクサと、前記ワード
演算CPUが前記第3のフリップフロップの内容をリー
ド中には前記第1のマルチプレクサからの内容に代えて
前記第3のフリップフロップの内容をフィードバックす
る第2のマルチプレクサとを備えたことを特徴とする。
A bit operation CPU for processing coil instructions and contact instructions and a word operation CPU for processing numerical instructions and system management, the word operation CPU indicating the state of the bit operation CPU. By reading the contents of the status register, the bit operation CP
In the sequence controller that grasps the state of U,
The status register circuit of the bit operation CPU includes a first flip-flop for storing an instruction read from a program memory, a second flip-flop for temporarily storing the contents of the first flip-flop, and a state of the bit operation CPU. Is stored, and the third word is read by the word operation CPU in a read operation.
And the contents of the first flip-flop are normally selected and passed to the third flip-flop, and the second operation is performed at the read end of the word operation CPU.
A first multiplexer for selecting the contents of the flip-flop and passing the selected flip-flop to the third flip-flop; and Instead, a second multiplexer for feeding back the content of the third flip-flop is provided.

【0014】[0014]

【発明の実施の形態】図1は、本発明の実施形態を示す
ビット演算CPUのステータスレジスタ部の回路図であ
り、その動作タイミングを図2に示す。
FIG. 1 is a circuit diagram of a status register section of a bit operation CPU according to an embodiment of the present invention, and FIG. 2 shows the operation timing thereof.

【0015】プログラムメモリ31は、シーケンス命令
を格納するもので、ビット演算CPU11の外部のもの
になる。フリップフロップ32はプログラムメモリ31
から読み出した命令を格納する。フリップフロップ33
は後述するフリップフロップ36のためにフリップフロ
ップ32の内容を一時的に保管する。
The program memory 31 stores a sequence command and is external to the bit operation CPU 11. The flip-flop 32 stores the program memory 31
Stores the instruction read from. Flip-flop 33
Temporarily stores the contents of the flip-flop 32 for the flip-flop 36 described later.

【0016】マルチプレクサMUX34は、フリップフ
ロップFF36に渡すデータをフリップフロップ32に
格納している命令とフリップフロップ33に格納してい
る命令をリードエンド信号の状態に応じて切り替える。
The multiplexer MUX 34 switches between data stored in the flip-flop 32 and data stored in the flip-flop 33 according to the state of the read end signal.

【0017】ビット演算CPU11がプログラムメモリ
31から命令を読み出し中に、ワード演算CPU12が
ステータスレジスタ11Aをリードしたとき、フリップ
フロップ32と33はそれぞれ次の命令の内容に変化す
る。
When the word operation CPU 12 reads the status register 11A while the bit operation CPU 11 is reading an instruction from the program memory 31, the flip-flops 32 and 33 change to the contents of the next instruction.

【0018】フリップフロップ33の内容は、前回のF
F32の内容を格納しているため、ワード演算CPU1
2のリード終了時にフリップフロップ36にフリップフ
ロップ33の内容を送ることでフリップフロップ36の
内容が1つ抜けることを防ぐ。
The contents of the flip-flop 33 are
Since the content of F32 is stored, the word operation CPU 1
By sending the contents of the flip-flop 33 to the flip-flop 36 at the end of the read operation of No. 2, it is possible to prevent one of the contents of the flip-flop 36 from missing.

【0019】マルチプレクサ35は、ワード演算CPU
12がステータスレジスタ11Aをリード中にフリップ
フロップ36の内容が変化しないように、リード中はフ
リップフロップ36の内容を選択し、フィードバックす
る。
The multiplexer 35 is a word operation CPU.
During the reading, the contents of the flip-flop 36 are selected and fed back so that the contents of the flip-flop 36 do not change while the status register 11A is reading the status register 11A.

【0020】フリップフロップ36は、ステータスレジ
スタの内容そのものであり、ワード演算CPU12はフ
リップフロップ36をリードすることで、ビット演算C
PU11の状態を把握する。
The flip-flop 36 is the contents of the status register itself, and the word operation CPU 12 reads the flip-flop 36 to execute the bit operation C
The state of the PU 11 is grasped.

【0021】[0021]

【発明の効果】以上のとおり、本発明によれば、ビット
演算CPUが持つステータスレジスタの内容が、ワード
演算CPUのリード中にデータが変化することを防ぐこ
とでワード演算CPUから非同期にリード可能としたた
め、ワード演算CPUのソフトウェア処理を単純化する
と共に、ビット演算CPUからワード演算CPUへの処
理の移動時間を高速にすることができる。
As described above, according to the present invention, the contents of the status register of the bit operation CPU can be read asynchronously from the word operation CPU by preventing data from changing during reading of the word operation CPU. Therefore, the software processing of the word operation CPU can be simplified, and the moving time of the processing from the bit operation CPU to the word operation CPU can be increased.

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

【図1】本発明の実施形態を示す要部回路図。FIG. 1 is a main part circuit diagram showing an embodiment of the present invention.

【図2】実施形態における動作タイムチャート。FIG. 2 is an operation time chart in the embodiment.

【図3】シーケンス演算回路図。FIG. 3 is a sequence operation circuit diagram.

【図4】非同期リードの場合のタイムチャート。FIG. 4 is a time chart for an asynchronous read.

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

11…ビット演算CPU 12…ワード演算CPU 13、31…プログラムメモリ 14…データメモリ 32、33、36…フリップフロップ 34、35…マルチプレクサ 11 bit operation CPU 12 word operation CPU 13, 31 program memory 14 data memory 32, 33, 36 flip-flop 34, 35 multiplexer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 コイル命令や接点命令を処理するビット
演算CPUと、数値命令の処理やシステム管理を行うワ
ード演算CPUとの2つのCPUで構成し、前記ワード
演算CPUは前記ビット演算CPUの状態を示すステー
タスレジスタの内容をリードすることで該ビット演算C
PUの状態を把握するシーケンスコントローラにおい
て、 前記ビット演算CPUのステータスレジスタ回路は、 プログラムメモリから読み出した命令を格納する第1の
フリップフロップと、 前記第1のフリップフロップの内容を一時保管する第2
のフリップフロップと、 ビット演算CPUの状態を示す内容を保管しておき、こ
の内容を前記ワード演算CPUがリード動作で読み込む
ための第3のフリップフロップと、 通常時は前記第1のフリップフロップの内容を選択して
第3のフリップフロップに渡し、前記ワード演算CPU
のリードエンド時に前記第2のフリップフロップの内容
を選択して前記第3のフリップフロップに渡す第1のマ
ルチプレクサと、 前記ワード演算CPUが前記第3のフリップフロップの
内容をリード中には前記第1のマルチプレクサからの内
容に代えて前記第3のフリップフロップの内容をフィー
ドバックする第2のマルチプレクサとを備えたことを特
徴とするシーケンスコントローラ。
The present invention comprises two CPUs, a bit operation CPU for processing a coil instruction and a contact instruction, and a word operation CPU for processing a numerical instruction and system management, wherein the word operation CPU is in a state of the bit operation CPU. By reading the contents of the status register indicating
In the sequence controller for grasping the state of the PU, the status register circuit of the bit operation CPU comprises: a first flip-flop for storing an instruction read from a program memory; and a second flip-flop for temporarily storing the contents of the first flip-flop.
And a third flip-flop for reading the content by the read operation by the word operation CPU, and normally storing the content indicating the state of the bit operation CPU. The content is selected and passed to the third flip-flop, and the word operation CPU
A first multiplexer that selects the content of the second flip-flop at the read end of the third flip-flop and transfers the selected flip-flop to the third flip-flop; A sequence controller, comprising: a second multiplexer that feeds back the content of the third flip-flop instead of the content from one multiplexer.
JP08105898A 1998-03-27 1998-03-27 Sequence controller Expired - Fee Related JP3900660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08105898A JP3900660B2 (en) 1998-03-27 1998-03-27 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08105898A JP3900660B2 (en) 1998-03-27 1998-03-27 Sequence controller

Publications (2)

Publication Number Publication Date
JPH11282512A true JPH11282512A (en) 1999-10-15
JP3900660B2 JP3900660B2 (en) 2007-04-04

Family

ID=13735815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08105898A Expired - Fee Related JP3900660B2 (en) 1998-03-27 1998-03-27 Sequence controller

Country Status (1)

Country Link
JP (1) JP3900660B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7237579B2 (en) 2003-06-27 2007-07-03 Lg.Philips Lcd Co., Ltd. Liquid crystal dispensing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7237579B2 (en) 2003-06-27 2007-07-03 Lg.Philips Lcd Co., Ltd. Liquid crystal dispensing system

Also Published As

Publication number Publication date
JP3900660B2 (en) 2007-04-04

Similar Documents

Publication Publication Date Title
EP0679993B1 (en) A computer apparatus having special instructions to force ordered load and store operations
KR100766732B1 (en) Device and method for performing high-speed low overhead context switch
US5504869A (en) High speed processing system capable of executing strings of instructions in order without waiting completion of previous memory access instruction
JPH11282512A (en) Sequence controller
EP0385136B1 (en) Microprocessor cooperating with a coprocessor
JPH11184799A (en) Memory data transfer method and device
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki
JPH03201032A (en) Arithmetic processing unit
JP2954006B2 (en) Emulation device and emulation method
JPS63247861A (en) Coprocessor control method
JP2591211B2 (en) High-speed interrupt processing device
JPS6223342B2 (en)
JPS58205258A (en) data processing equipment
JP2761324B2 (en) High-speed processing method
JP2581327B2 (en) A method for handling I/O interrupts in a virtual machine
JPS6352240A (en) Data processor
JPS62145430A (en) Data processor
JPS61288232A (en) Output instruction control system
JPS6022383B2 (en) input/output control device
JPS6063662A (en) Multiprocessor system
JPH07117914B2 (en) Data processing device
JPH10320262A (en) Information processor
JPH0652482B2 (en) Sequence controller
JPH03218531A (en) High-speed interrupt processing device
JPH04264632A (en) Execution tracing system for parallel arithmetic processing unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040823

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061225

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140112

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees