[go: up one dir, main page]

JPS60160466A - Device for controlling hierarchical sequence - Google Patents

Device for controlling hierarchical sequence

Info

Publication number
JPS60160466A
JPS60160466A JP1569284A JP1569284A JPS60160466A JP S60160466 A JPS60160466 A JP S60160466A JP 1569284 A JP1569284 A JP 1569284A JP 1569284 A JP1569284 A JP 1569284A JP S60160466 A JPS60160466 A JP S60160466A
Authority
JP
Japan
Prior art keywords
data
buffer
write
processing device
pointer
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
JP1569284A
Other languages
Japanese (ja)
Other versions
JPH0113142B2 (en
Inventor
Toshiyuki Kano
加納 俊之
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Hokushin Electric 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 Yokogawa Hokushin Electric Corp filed Critical Yokogawa Hokushin Electric Corp
Priority to JP1569284A priority Critical patent/JPS60160466A/en
Publication of JPS60160466A publication Critical patent/JPS60160466A/en
Publication of JPH0113142B2 publication Critical patent/JPH0113142B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To lessen speed slowdown in sequence control action by buffer operation by transferring data according to a write pointer value and by performing buffer read/write according to the values of read and write pointers. CONSTITUTION:A data processor MOPC judges the presence of a data write request by data write processing MWT, and if there is a request, the MOPC writes the data in a window WD. The sequence controller SQ side performs data transfer processing CPY by firmware of the sequence controller to judge whether there is such data in the window WD. When there is any data, they are written in a data buffer BUF according to the values of a write pointer WPT. When there is a request, buffer readout processing SRD reads out data from the data buffer BUF according to the read pointer RPT.

Description

【発明の詳細な説明】 く技術分野〉 本発明は、複数のデータ処理装置の階層接続からなるシ
ーケンス制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a sequence control device comprising a hierarchical connection of a plurality of data processing devices.

高速度のシーケンス制御と、汎用性の高いデータ処理が
要求される場合、シーケンス制御専用の高速度のデータ
処理装置を下位とし、汎用のデータ処理装置を上位とす
る階層構成のデータ処理装置が利用される。
When high-speed sequence control and highly versatile data processing are required, a hierarchical data processing device is used, with a high-speed data processing device dedicated to sequence control at the bottom and a general-purpose data processing device at the top. be done.

シーケンス制御専用の下位のデータ処理装置はマイクロ
命令によって記述されたプログラムに従って高速度で動
作し、上位のデータ処理装置は、BASrC等の汎用言
8aで記述されたプログラムに従って比較的遅い速度で
動作する。このようなデータ処理装置間でデータの授−
受を行なう場合、上位のデータ処理装置は、下位のシー
ケンス制御専用のデータ処理装置に於いて高速度で発生
するデータを漏れなく読み取る必要がある。そこで、上
位のデータ処理装置と下位のシーケンスIIJ m装置
の間にバッファを設けて、両者の動作速度の相違を吸収
することが行われる。
The lower data processing device dedicated to sequence control operates at high speed according to a program written using microinstructions, and the upper data processing device operates at a relatively slow speed according to a program written using general-purpose language 8a such as BASrC. . Transferring data between such data processing devices
When receiving data, the higher-level data processing device must read all the data generated at high speed in the lower-level sequence control-dedicated data processing device. Therefore, a buffer is provided between the upper data processing device and the lower sequence IIJm device to absorb the difference in operating speed between the two.

〈従来例〉 従来の一般的なバッファは、その操作に比較的複雑な手
順を必要とするので、シーケンス制御装置が、高速度の
シーケンスlli制御をするものである場合には、バッ
ファ操作の影響によるシーケンス制御動作の速度の低下
が無視できない。
<Conventional Example> Conventional general buffers require relatively complicated procedures for their operation, so if the sequence control device performs high-speed sequence lli control, the influence of the buffer operation may be reduced. The decrease in the speed of sequence control operation cannot be ignored.

く目的〉 本発明の目的は、高速度で動作するシーケンス制御専用
の下位のデータ処NI装置と、それよりも遅い速度で動
作する上位のデータ処理装置の間でデータの授受を行う
ためのバッファであって、下位のデータ処理装置の高速
度性をできるだけ損わないようにしたバッファを有する
階層形シーケンス制御装置を提供することにある。
An object of the present invention is to provide a buffer for exchanging data between a lower data processing NI device dedicated to sequence control that operates at high speed and an upper data processing device that operates at a slower speed. The object of the present invention is to provide a hierarchical sequence control device having a buffer that does not impair the high speed performance of lower-order data processing devices as much as possible.

〈要点〉 本発明は、 汎用言語で記述されるプログラムで動作するデータ処理
装置を上位のデータ処理装置とし、マイクロ命令で記述
されるプログラムで動作するシーケンス制御専用のデー
タ処理装置を下位のデータ処理装置とする階層形シーケ
ンス制御装置であって、 上位のデータ処理装置は、 後述する下位のデータ処理装置のウィンドウにデータを
書込むデータ書込み処理と、 後述する下位のデータ処ff装置のデータバッファから
リードポインタの値に従ってデータを続出しかつリード
ポインタの値を更新するデータ読出し処理とを有し、 下位のデータ処理装置は、 データの一時記憶としてのウィンドウと、データバッフ
ァと、 データバッファのリードポインタと、 データバッファのライトポインタと、 前記ウィンドウに書込まれたデータを前記ライトポイン
タの値に従って前記データバッファに書込むデータ転写
処理と、 前記リードポインタの値に従って前記データバッフ1の
データを読み出しかつリードポインタの値を更新するバ
ッファ続出し処理と、 前記ライトポインタの値に従ってデータを前記データバ
ッフ?に書込みかつライトポインタの値を更新するバッ
ファ自送み処理とを有する階層形シーケンス制御装置 によって上記の目的を達成したものである。
<Main points> The present invention uses a data processing device that operates with a program written in a general-purpose language as the upper data processing device, and a data processing device dedicated to sequence control that operates with a program written in microinstructions as the lower data processing device. A hierarchical sequence control device is used as a device, and the upper data processing device performs a data write process of writing data into the window of the lower data processing device, which will be described later, and a data buffer of the lower data processing device, which will be described later. The lower data processing device includes a window for temporary data storage, a data buffer, and a read pointer of the data buffer. a write pointer of a data buffer; a data transfer process for writing the data written in the window into the data buffer according to the value of the write pointer; reading the data of the data buffer 1 according to the value of the read pointer; Buffer successive processing to update the value of the read pointer, and data to the data buffer according to the value of the write pointer? The above object has been achieved by a hierarchical sequence control device having a buffer self-transfer process that writes to the write pointer and updates the value of the write pointer.

〈実施例〉 以下、実施例に基づいて本発明の詳細な説明する。<Example> Hereinafter, the present invention will be described in detail based on Examples.

〈栴成〉 第1図に、本発明実施例のハードウェア構成図を示す。<Senari> FIG. 1 shows a hardware configuration diagram of an embodiment of the present invention.

第1図に於いて、MOPCは上位のデータ処理装置であ
って、これには、表示器CRTと操作器KEYからなる
オペレータ操作1[DISPが接続される。SQはシー
ケンス制御専用の下位のデータ処j!!装置装置であっ
て、インターフェイスIFを通じて上位のデータ処理@
1M0PCに接続される。上位のデータ処N装置MOP
C及び下位のシーケンス制御装置1tsQは、いずれも
プロセッサとメモリを持っており、メモリに内蔵された
プログラム及びデータに従って所定の動作をするもので
ある。
In FIG. 1, MOPC is a higher-level data processing device, and an operator operation 1 [DISP] consisting of a display CRT and an operation device KEY is connected to this. SQ is a lower data processing unit dedicated to sequence control. ! A device that performs upper-level data processing through the interface IF.
Connected to 1M0PC. Upper data processing device MOP
C and the lower sequence control device 1tsQ each have a processor and a memory, and perform predetermined operations according to programs and data stored in the memory.

下位のシーケンス制t[I装@SQは、上位のデータ処
理1!MOPCから、シーケンス制御のパラメータとな
るデータが設定され、この設定されたパラメータによっ
て定まるシーケンス制御を実行する。上位のデータ処理
装置MOPCは、必要に応じて、シーケンスMIIl装
置1ffsQを通じて、ブロセスデータやシーケンス制
御のパラメータ等を読取る。
The lower sequence system t[I @SQ is the upper data processing 1! Data serving as parameters for sequence control are set from the MOPC, and sequence control determined by the set parameters is executed. The higher-level data processing device MOPC reads process data, sequence control parameters, etc. through the sequence MIIl device 1ffsQ as necessary.

第2図は、上位のデータ処理装置MOPCと下位のシー
ケンス制御装置SQの間のデータ授受にに着目して表現
した本発明実施例のソフトウェア構成図である。第2図
に於いて、MWTはデータ書込み処理プログラム、MR
Dはデータ読出し処理プログラムであり、これらは、上
位のデータ処理装置MOPCに設けられるものである。
FIG. 2 is a software configuration diagram of the embodiment of the present invention, focusing on data exchange between the upper data processing device MOPC and the lower sequence control device SQ. In Figure 2, MWT is a data write processing program, MR
D is a data read processing program, which is provided in the upper data processing device MOPC.

CPYはデータ転写処理プログラム、SWTはバッファ
書込み処理プロクラム、SRDはバッファ読出し処理プ
ログラム、WDはデータ書込み用のウィンドウ、BLI
Fはデータバッファ、RPTはデータバッファのリード
ポインタ、WPTはデータバッファのライトポインタで
あり、これらは下位のシーケンス制御装@SQに設けら
れる。以下、上記の各処理プログラムを単に処理という
CPY is a data transcription processing program, SWT is a buffer writing processing program, SRD is a buffer reading processing program, WD is a data writing window, BLI
F is a data buffer, RPT is a data buffer read pointer, and WPT is a data buffer write pointer, which are provided in the lower sequence control unit @SQ. Hereinafter, each of the above processing programs will be simply referred to as processing.

データ書込み処理MWTは、シーケンス制御装置SQに
与えるデータをウィンドウWDに書込むものである。な
お、ウィンドウWDとは、上位のデータ処理装置MOP
Cのデータをシーケンス制tII装置SQに与えるとき
に使用する一時記憶である。データ読出し処理MRDは
、データバッファBUFのデータを、リードポインタR
P Tが示すアドレスに従って読み出すものである。リ
ードポインタRPTの値は、データを1つ読み出すたび
に1つ進められる。これらのデータ書込み、読出し処理
は、オペレータ操作装置DISPを通じてオペレータか
ら与えられる要求、または、プログラムの実行過程で生
じた要求に基づいて行なわれる。
The data write process MWT is for writing data to be given to the sequence control device SQ into the window WD. Note that the window WD is the upper data processing device MOP.
This is temporary storage used when providing data of C to the sequence system tII device SQ. Data read processing MRD transfers data from data buffer BUF to read pointer R.
It is read according to the address indicated by PT. The value of the read pointer RPT is advanced by one each time one piece of data is read. These data writing and reading processes are performed based on requests given by the operator through the operator operating device DISP or requests generated during program execution.

データ転写処1ICPYは、ウィンドウWDのデータを
データバッファBUFに磨き移すものである。データバ
ッファBUFへの書込みは、ライトポインタW P T
の値に従って行われる。データを1つ書込むたびにポイ
ンタは1つ進められる。バッファ続出処理SRDは、デ
ータバッファBUFのデータを読み出すものである。読
出しは、リードポインタRPTの値に従って行われ、読
出しの度にポインタが1つ進められる。バッファ書込み
処理SWTは、シーケンス制御装置から上位のデータ処
理装置MOPCに与えるデータをデータバッファBUF
に書込むものである。書込みは、ライトポインタWPT
の値に従って行われ、書込みの度にポインタが1つ進め
られる。これらの処理は、マイクロプログラムによって
構成され、シーケンス制御用のプログラムの7環として
高速度で実行される。
The data transfer process 1ICPY transfers the data of the window WD to the data buffer BUF. Writing to the data buffer BUF is performed using the write pointer W P T
This is done according to the value of Each time one piece of data is written, the pointer is advanced by one. The buffer successive processing SRD is for reading data from the data buffer BUF. Reading is performed according to the value of read pointer RPT, and the pointer is advanced by one each time reading is performed. The buffer write processing SWT transfers data from the sequence control device to the upper data processing device MOPC into the data buffer BUF.
This is what you write in. Write using write pointer WPT
The pointer is advanced by one each time it is written. These processes are configured by microprograms and are executed at high speed as seven cycles of a sequence control program.

第3図は、このようなソフトウェア構成を、更に詳細に
示したものである。
FIG. 3 shows such a software configuration in more detail.

く動作〉 以下第3図によって本発明実施例の装置の動作を説明す
る。
Operation> The operation of the apparatus according to the embodiment of the present invention will be explained below with reference to FIG.

第3図(a)は、データ処理袋WMOPCからシーケン
ス制m装置SQにデータを供給する場合りのソフトウェ
ア構成図で、同図(b)は、シーケンス制御’4A@S
Qからデータ処理装置MOPCにデータを供給する場合
のソフトウェア構成図である。
FIG. 3(a) is a software configuration diagram when data is supplied from the data processing bag WMOPC to the sequence control m device SQ, and FIG.
FIG. 2 is a software configuration diagram when data is supplied from Q to a data processing device MOPC.

まず、第3図(a )によって、データ処理装置MOP
Cからシーケンス制御装置SQにデータを供給する場合
について説明すれば、データ処理装置MOPCは、デー
タ書込み処MIMWTによって、その判断部で、データ
書込み要求の有無を判断し要求があるときは、そのデー
タをウィンドウWDに書込む。
First, as shown in FIG. 3(a), the data processing device MOP
To explain the case where data is supplied from C to the sequence control device SQ, the data processing device MOPC uses the data write processing MIMWT to determine whether or not there is a data write request in its determination section, and if there is a request, the data is written to window WD.

シーケンス制御I装置SQ側では、データ転写処理CP
Yがシーケンス制御装置のファームウェアの1つとして
高速度で実行されており、その判断部でウィンドウWO
にデータがあるかどうかが判断され、データがあるとき
は、そのデータがライトポインタWPTの値に従ってデ
ータバッフ?BUFに書込まれるとともに、ポインタが
1つ進められる。この処理は、シーケンス制御プログラ
ムの実行に先だって行われる。
On the sequence control I device SQ side, data transfer processing CP
Y is being executed at high speed as one of the firmware of the sequence control device, and its judgment section displays the window WO.
It is determined whether there is data in the data buffer or not, and if there is data, the data is stored in the data buffer according to the value of the write pointer WPT. It is written to BUF and the pointer is advanced by one. This process is performed prior to execution of the sequence control program.

バッファ読出し処理SR[)は、その判断部でデータの
読出し要求の有無を判断し、要求があるとぎは、リード
ポインタRPTの値に従って、データバッファBLIF
からデータの読出しを行い、かつポインタを1つ進める
。この処理は、シーケンス制御の実行後に行われる。
Buffer read processing SR[) determines whether or not there is a data read request in its determining unit, and when there is a request, data buffer BLIF is processed according to the value of read pointer RPT.
Data is read from , and the pointer is advanced by one. This process is performed after sequence control is executed.

これらのシーケンス制ilj装置SQ側の処理は、シー
ケンス制御動作の一環として、高速度で繰り返し実行さ
れる。これらの処理は、ポインタに従って、データバッ
ファにデータの書込み及び読出しをそれぞれ行い、かつ
ポインタを更新するという単純な手順で構成されるのp
lこの処理によるシーケンス制御の動作速度の低下は問
題にならない。
These processes on the sequence control ilj device SQ side are repeatedly executed at high speed as part of the sequence control operation. These processes consist of a simple procedure of writing and reading data into the data buffer according to the pointer, and updating the pointer.
l A decrease in the operating speed of sequence control due to this processing is not a problem.

次に第3図(b)によって、シーケンス制御装ff1s
Qから上位のデータ処理装置MOPCにデータを与える
場合について説明すれば、シーケンス制御装置SQは、
バッファ書込み処理SWTによって、データバッファB
UFにデータの書込みを行う。すなわら、判断部で書込
み要求の有無を判断し、要求があるときは、ライトポイ
ンタWPTの値に従ってデータバッファBUFの書込み
を行い、かつポインタを1つ進める。この処理も前記の
データ転写処理と同様な簡単な処理である。
Next, according to FIG. 3(b), the sequence control device ff1s
To explain the case where data is given from Q to the upper data processing device MOPC, the sequence control device SQ will:
Data buffer B is written by buffer write processing SWT.
Write data to UF. That is, the determination unit determines whether there is a write request, and if there is a request, the data buffer BUF is written in accordance with the value of the write pointer WPT, and the pointer is advanced by one. This process is also a simple process similar to the data transfer process described above.

データバッファBLJFに書込まれたデータは、上位の
データ処理装置のデータ読取処理MRDによって読出し
が行われる。すなわち、判断部でデータの読出し要求の
有無が判断され、要求があるときは、リードポインタの
値に従ってデータバッファBUFの読出しが行われ、か
つポインタの更新が行われる く効果〉 このように、本発明によれば、高速度で動作するシーケ
ンス制御専用の下位のデータ処理装置と、それよりも遅
い速度で動作する上位のデータ処理装置の間でデータの
授受を行うためのバッフ1であって、下位のデータ処理
装置の高速度性をできるだけ損わないようにしたバッフ
ァを有するlim形シーケンス制m装置が実現できる。
The data written in the data buffer BLJF is read by data reading processing MRD of the upper data processing device. In other words, the determination unit determines whether there is a request to read data, and if there is a request, the data buffer BUF is read out according to the value of the read pointer, and the pointer is updated. According to the invention, there is provided a buffer 1 for transmitting and receiving data between a low-order data processing device dedicated to sequence control that operates at high speed and a high-order data processing device that operates at a slower speed, It is possible to realize a lim-type sequence control device having a buffer that does not impair the high speed performance of the lower data processing device as much as possible.

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

第1図は、本発明実施例のハードウェア構成図、第2図
は、本発明実施例のソフトウェア構成図、第3図は、第
2図の詳細図である。 MOPC・・・上位のデータ処理装置 SQ・・・下位のシーケンスtilJiIll専用のデ
ータ処理装置F・・・インターフェイス DISP・・・オペレータ操作装置 代理人 弁理士 小沢信助 第1図
FIG. 1 is a hardware configuration diagram of an embodiment of the present invention, FIG. 2 is a software configuration diagram of an embodiment of the invention, and FIG. 3 is a detailed diagram of FIG. 2. MOPC...Upper data processing device SQ...Lower sequence tilJiIll dedicated data processing device F...Interface DISP...Operator operation device Agent Patent attorney Shinsuke Ozawa Figure 1

Claims (1)

【特許請求の範囲】 汎用言語で記述されるプログラムで動作するデータ処理
装置を上位のデータ処理装置とし、マイクロ命令で記述
されるプログラムで動作するシーケンス制御専用のデー
タ処理装置を下位のデータ処理装置とする階層形シーケ
ンス開部装置であって、 上位のデータ処理装置は、 後述する下位のデータ処理装置のウィンドウにデータを
書込むデータ書込み処理と、 後述する下位のデータ処理装置のデータバッファからリ
ードポインタの値に従ってデータを読出しかつリードポ
インタの値を更新するデータ読出し処理とを有し、 下位のデータ処理装置は、 データの一時記憶としてのウィンドウと、データバッフ
ァと、 データバッファのリードポインタと、 データバッファのライトポインタと、 前記ウィンドウに書込まれたデータを前記ライトポイン
タの値に従って前記データバッファに書込むデータ転写
処理と、 前記リードポインタの値に従って前記データバッファの
データを読み出しかつリードポインタの値を更新するバ
ッファ続出し処理と、 前記ライトポインタの値に従ってデータを前記データバ
ッファに書込みかつライトポインタの値を更新するバッ
ファ書込み処理とを有する階層形シーケンス制御装置。
[Scope of Claims] A data processing device that operates with a program written in a general-purpose language is defined as an upper data processing device, and a data processing device dedicated to sequence control that operates with a program written in microinstructions is defined as a lower data processing device. A hierarchical sequence opening device, in which the upper data processing device performs a data write process of writing data to the window of the lower data processing device, which will be described later, and a data read process from the data buffer of the lower data processing device, which will be described later. a data read process for reading data according to the value of the pointer and updating the value of the read pointer; a write pointer of a data buffer; a data transfer process for writing the data written in the window into the data buffer according to the value of the write pointer; and a data transfer process for reading the data of the data buffer according to the value of the read pointer and setting the read pointer. A hierarchical sequence control device comprising: a buffer successive process for updating a value; and a buffer write process for writing data into the data buffer according to the value of the write pointer and updating the value of the write pointer.
JP1569284A 1984-01-31 1984-01-31 Device for controlling hierarchical sequence Granted JPS60160466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1569284A JPS60160466A (en) 1984-01-31 1984-01-31 Device for controlling hierarchical sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1569284A JPS60160466A (en) 1984-01-31 1984-01-31 Device for controlling hierarchical sequence

Publications (2)

Publication Number Publication Date
JPS60160466A true JPS60160466A (en) 1985-08-22
JPH0113142B2 JPH0113142B2 (en) 1989-03-03

Family

ID=11895812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1569284A Granted JPS60160466A (en) 1984-01-31 1984-01-31 Device for controlling hierarchical sequence

Country Status (1)

Country Link
JP (1) JPS60160466A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002019229A (en) * 2000-07-11 2002-01-23 Sato Corp Portable printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002019229A (en) * 2000-07-11 2002-01-23 Sato Corp Portable printer

Also Published As

Publication number Publication date
JPH0113142B2 (en) 1989-03-03

Similar Documents

Publication Publication Date Title
JPS60160466A (en) Device for controlling hierarchical sequence
JP3130798B2 (en) Bus transfer device
JPH0667982A (en) Address conversion system
JPS59177660A (en) Logging method for diagnostic results on computer
JPS6148741B2 (en)
JPH04342011A (en) Asynchronous input/output controlling system
JPS5842487B2 (en) Program loading method
JPS6365553A (en) Reliability securing system for input/output device constitution control data
JPH0157374B2 (en)
JPS6349942A (en) Arithmetic processing unit
JPS61157948A (en) Interrupt source analyzing device
JPH06266630A (en) Input/output controller with trace function
JPS592028B2 (en) display terminal device
JPH01251375A (en) Magnetic disk controller
JPS617965A (en) Input/output control device
JPH01112452A (en) System for controlling disk cash
JPS59176848A (en) Advance control method
JPH01205799A (en) Memory circuit testing machine
JPH0481939A (en) Control system for microcomputer
JPH01321529A (en) Initial diagnostic system for device
JPS5920030A (en) Controlling system of input and output instruction
JPH01243122A (en) Information processing unit
JPS596413B2 (en) channel control device
JPS60134943A (en) Scan-out system
JPS61110246A (en) Rewriting system of memory