JPH04174008A - Sequence controller with operation confirming function - Google Patents

Sequence controller with operation confirming function

Info

Publication number
JPH04174008A
JPH04174008A JP2298185A JP29818590A JPH04174008A JP H04174008 A JPH04174008 A JP H04174008A JP 2298185 A JP2298185 A JP 2298185A JP 29818590 A JP29818590 A JP 29818590A JP H04174008 A JPH04174008 A JP H04174008A
Authority
JP
Japan
Prior art keywords
state
contact
address
data
change
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
JP2298185A
Other languages
Japanese (ja)
Inventor
Yoshihiko Okayama
喜彦 岡山
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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP2298185A priority Critical patent/JPH04174008A/en
Publication of JPH04174008A publication Critical patent/JPH04174008A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

PURPOSE:To confirm a contact which changes in state at a glance by providing a processor which compares current and last state data with each other and detects the address of the contact having a change in opening/closing state and a ring buffer stored with the address of the detected contact and the state after the state change together with the time that a timer indicates. CONSTITUTION:The processor 10 reads state data indicating the opening/closing state of the contact out of an input/output module 1 and ORs the current state data exclusively with the last state data stored in an I/O memory 11 for comparative arithmetic to detect the address of the contact which has the change in opening/closing state. The ring buffer 14 is stored with the address of the contact having the change in the opening/closing state and the state of the contact after the state change together with the time that the timer indicates. A CPU 6 sends the data stored in the ring buffer 14 to a personal computer 9 through an interface 8 and displays a timer chart. Consequently, an operation history can be confirmed without omitting data and the contact having the state change can be confirmed at a glance.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、各種センサ等の動作来歴を確認することの
できる動作確認機能付シーケンスコントローラに関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a sequence controller with an operation confirmation function that can confirm the operation history of various sensors, etc.

〔従来の技術〕[Conventional technology]

第3図は従来の動作確認機能付シーケンスコントローラ
を示す構成図であり、図において、1は各種センサ等に
おける接点の入力や各種センサ等へ接点の出力を行う入
出カモジュール、2は入出カモジュール1とCPU6間
及び入力出カモジュールlとプロセッサ3間におけるイ
ンターフェイス、3は入出カモジュール1に入力された
各種センサ等の接点における開閉状態を示す状態データ
を読み込むプロセッサ、4はプロセッサ3が動作時に使
用する作業用メモリであるRAM、5はプロセッサ3が
読み込んだ状態データを格納するI10テーブル、6は
接点の入出力等を管理するCPU、7はCPU6のプロ
グラムを格納するとともに、CPU6が動作時に使用す
る作業用メモリであるシステムメモリ、8はCPU6と
パソコン9間におけるインターフェイス、9はプロセッ
サ3が読み込んだ接点の開閉状態を示す状態データを表
示するパソコンである。
FIG. 3 is a configuration diagram showing a conventional sequence controller with an operation check function. In the figure, 1 is an input/output module that inputs contacts in various sensors, outputs contacts to various sensors, etc., and 2 is an input/output module. 1 and the CPU 6 and between the input/output module 1 and the processor 3; 3 is a processor that reads status data indicating the open/close states of contacts of various sensors input to the input/output module 1; 4 is an interface when the processor 3 is in operation; RAM is the working memory used; 5 is an I10 table that stores state data read by the processor 3; 6 is a CPU that manages input/output of contacts; 7 is a memory that stores programs for the CPU 6, and A system memory 8 is a working memory used, 8 is an interface between the CPU 6 and a personal computer 9, and 9 is a personal computer that displays status data read by the processor 3 and indicating the open/closed status of the contacts.

次に動作について説明する。Next, the operation will be explained.

従来の動作確認機能付シーケンスコントローラにおける
各種センサ等の接点の動作の確認は下記の如く行われる
Confirmation of the operation of contacts such as various sensors in a conventional sequence controller with an operation confirmation function is performed as follows.

一定時間毎に、プロセッサ3が入出カモジュール1から
接点の開閉状態を示す状態データを人力し、I10テー
ブル5へその状態データを書き込む。そして、I10テ
ーブル5に書き込まれた状態データをパソコン9からの
コマンドによりCPU6がインターフェイス8を介して
パソコン9へ送り、パソコン9で表示するものである。
At regular intervals, the processor 3 inputs state data indicating the open/closed states of the contacts from the input/output module 1 and writes the state data to the I10 table 5. Then, the CPU 6 sends the status data written in the I10 table 5 to the personal computer 9 via the interface 8 in response to a command from the personal computer 9, and displays it on the personal computer 9.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の動作確認機能付シーケンスコントローラは以上の
ように構成されているので、状態変化のない接点も含め
て動作確認することになるため情報量が多くなり、パソ
コンとCPU間のデータのやりとりに時間がかかり、ま
た、パソコンがI10テーブルに格納されている状態デ
ータを読み込むタイミングより早く状態変化する接点は
、取りこぼしてしまうなどの課題があった。
Conventional sequence controllers with an operation check function are configured as described above, so the amount of information increases as the operation is checked including contacts that do not change state, and it takes time to exchange data between the PC and CPU. In addition, there was a problem that contacts whose state changes earlier than the timing at which the personal computer reads the state data stored in the I10 table may be missed.

この発明は上記のような課題を解消するためになされた
もので、状態変化のあった接点のみ時刻とともに記憶す
ることにより、データを取りこぼすことなく動作来歴を
確認でき、−目で状態変化のあった接点を確認できる動
作確認機能付シーケンスコントローラを得ることを目的
とする。
This invention was made to solve the above-mentioned problems. By storing only the contacts that have changed state along with the time, it is possible to check the operation history without missing any data, and - visually detect the change in state. The purpose of the present invention is to obtain a sequence controller with an operation confirmation function that can confirm which contacts are present.

[課題を解決するための手段] この発明に係る動作確認機能付シーケンスコントローラ
は、プロセッサにて、接点の開閉状態を示す状態データ
を読み込み、今回のその状態データと、前回の状態デー
タとを比較演算して、その開閉状態の変化のあった接点
のアドレスを検出し、リングバッファにて、そのプロセ
ッサが検出した接点のアドレス及びその接点の状態変化
後の状態をタイマの示す時刻とともに格納するものであ
る。
[Means for Solving the Problems] A sequence controller with an operation check function according to the present invention uses a processor to read state data indicating the open/closed state of a contact, and compares the current state data with the previous state data. A device that calculates and detects the address of a contact whose open/closed state has changed, and stores in a ring buffer the address of the contact detected by the processor and the state after the state change of that contact, along with the time indicated by the timer. It is.

〔作用J この発明における動作確認機能付シーケンスコントロー
ラは、プロセッサにより、今回の状態データと、前回の
状態データとを比較演算されて、開閉状態の変化のあっ
た接点のアドレスを検出され、リングバッファにより、
その開閉状態の変化のあった接点のアドレス及びその接
点の状態変化後の状態をタイマの示す時刻とともに格納
される。
[Operation J] In the sequence controller with an operation confirmation function in this invention, the processor compares the current state data with the previous state data, detects the address of the contact whose open/closed state has changed, and stores it in the ring buffer. According to
The address of the contact whose open/closed state has changed and the state of the contact after the state change are stored together with the time indicated by the timer.

〔実施例〕〔Example〕

以下、この発明の一実施例について説明する。 An embodiment of the present invention will be described below.

第1図はこの発明の一実施例による動作確認機能付シー
ケンスコントローラを示す構成図であり、図中、従来の
ものと同一符号は同一、又は相当部分を示すので説明を
省略する。1oは入出カモジュール1に入力された各種
センサ等における開閉状態を示す状態データを読み込み
、今回のその状態データと、前回の状態データとを比較
演算し、その開閉状態に変化のあった接点のアドレスを
検出するプロセッサ、11はプロセッサ1oで比較演算
後に、今回の状態データを次回の演算用に格納するI1
0メモリ、12はプロセッサ1oが読み込む状態データ
の中で監視したい接点を指定する指定データを格納する
マスクテーブル、13はタイマ、14はプロセッサ1o
により検出された接点のアドレス及びその接点の状態変
化後の状態をタイマ13の示す時刻とともに格納するリ
ングバッファである。
FIG. 1 is a block diagram showing a sequence controller with an operation check function according to an embodiment of the present invention. In the figure, the same reference numerals as those in the conventional system indicate the same or corresponding parts, and the explanation thereof will be omitted. 1o reads the status data indicating the open/close status of various sensors inputted to the input/output module 1, compares the current status data with the previous status data, and calculates the status of the contact whose open/close status has changed. A processor 11 detects an address, and after a comparison operation, a processor 1o stores the current status data for the next operation.
0 memory, 12 a mask table that stores specification data that specifies contacts to be monitored in the status data read by the processor 1o, 13 a timer, and 14 a processor 1o.
This is a ring buffer that stores the address of the contact point detected by , and the state after the state change of the contact point, together with the time indicated by the timer 13 .

次に動作について説明する 各種センサ等の接点の動作の確認は下記の如く行われる
Next, the operations of the contacts of the various sensors, which will be explained next, are confirmed as follows.

一定時間前に、プロセッサ10にて、入出カモジュール
1から接点の開閉状態を示す状態データを読み込み、今
回の状態データと、I10メモリ11に格納されている
前回の状態データとを排他的論理和することにより比較
演算((今回の状態データ)■(前回の状態データ))
シ、その開閉状態に変化のあった接点のアドレスを検出
する。
A certain period of time ago, the processor 10 reads the state data indicating the open/closed state of the contact from the input/output module 1, and performs an exclusive OR of the current state data and the previous state data stored in the I10 memory 11. Comparison operation ((current state data)■(previous state data))
Detect the address of the contact whose open/closed state has changed.

そして、その状態データの中で監視したい接点のみを検
出する為(監視する必要のない接点を除去する為)、上
記比較演算後のデータと、マスクテーブル12に格納さ
れている指定データとを論理積((比較演算後のデータ
)△(指定データ))してデータを圧縮する。
Then, in order to detect only the contacts that you want to monitor in the status data (to remove contacts that do not need to be monitored), the data after the above comparison operation and the specified data stored in the mask table 12 are logically combined. Compress the data by multiplying ((data after comparison operation) △ (specified data)).

次に、プロセッサ10における上記演算の結果、監視し
たい接点に状態変化があった場合、第2図に示すように
、まずリングバッファ14ヘタイマ13の示す値を書き
込み、次いで、状態変化のあった接点のアドレスとその
接点の状態を書き込んでいく(例えば、“7xQ10”
のように書き込む・・・・・・Tは接点が立上がったこ
とを示す、xQloは接点のアドレスを示す)。ここで
、このリングバッファ14は、メモリの最後まで書き終
えると再び書き込みポインタがそのメモリの先頭に戻る
ようにしているためエンドレスに情報を残せるようにな
っている。
Next, as a result of the above calculation in the processor 10, if there is a change in the state of the contact to be monitored, as shown in FIG. Write the address and the state of its contacts (for example, "7xQ10"
Write as follows (T indicates that the contact has risen, xQlo indicates the address of the contact). Here, in the ring buffer 14, when writing to the end of the memory is completed, the write pointer returns to the beginning of the memory, so that information can be left endlessly.

そして、パソコン9からのコマンドによりCPU6がリ
ングバッファ14に格納されているデータをインターフ
ェイス8を介してパソコン9へ送り、パソコン9でタイ
ムチャート表示することにより抜けのない長時間の動作
来歴の確認を可能とするものである。
Then, in response to a command from the personal computer 9, the CPU 6 sends the data stored in the ring buffer 14 to the personal computer 9 via the interface 8, and displays a time chart on the personal computer 9 to confirm the long-term operation history with no omissions. It makes it possible.

なお、上記実施例では、タイマを独立して設けたものを
示したが、プロセッサ10若しくはCPU6に内蔵して
もよい。
In the above embodiment, the timer is provided independently, but the timer may be built in the processor 10 or the CPU 6.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば今回の状態データと、前
回の状態データとを比較演算し、開閉状態の変化のあっ
た接点のアドレスを検出するプロセッサと、そのプロセ
ッサにより検出された接点のアドレス及びその接点の状
態変化後の状態をタイマの示す時刻とともに格納するリ
ングバッファとを備えるように構成したので、リングバ
ッファに状態変化のあった接点のみが格納され、−目で
状態変化のあった接点の確認を可能とするとともに、抜
けのない長時間の動作来歴の確認を可能とする効果があ
る。
As described above, according to the present invention, there is a processor that compares and calculates current state data and previous state data and detects the address of a contact whose open/closed state has changed, and the address of the contact detected by the processor. and a ring buffer that stores the state after the state change of the contact along with the time indicated by the timer, so only the contacts whose state has changed are stored in the ring buffer, and the -th point indicates the state change. This has the effect of not only making it possible to check the contact points, but also making it possible to check the long-term operation history without omissions.

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

第1図はこの発明の一実施例による動作確認機能付シー
ケンスコントローラを示す構成図、第2図はこの発明の
一実施例による動作確認機能付シーケンスコントローラ
のリングバッファを示す構成図、第3図は従来の動作確
認機能付シーケンスコントローラを示す構成図である。 10はプロセッサ、13はタイマ、14はリングバッフ
ァ。 なお、図中、同一符号は同一、又は相当部分を示す。 第2図
FIG. 1 is a block diagram showing a sequence controller with an operation check function according to an embodiment of the present invention, FIG. 2 is a block diagram showing a ring buffer of a sequence controller with an operation check function according to an embodiment of the invention, and FIG. 1 is a configuration diagram showing a conventional sequence controller with an operation confirmation function. 10 is a processor, 13 is a timer, and 14 is a ring buffer. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Figure 2

Claims (1)

【特許請求の範囲】[Claims] 接点の開閉状態を示す状態データを読み込み、今回の該
状態データと、前回の状態データとを比較演算し、その
開閉状態に変化のあった接点のアドレスを検出するプロ
セッサと、上記プロセッサにより検出された接点のアド
レス及びその接点の状態変化後の状態をタイマの示す時
刻とともに格納するリングバッファとを備えた動作確認
機能付シーケンスコントローラ。
A processor that reads status data indicating the open/closed status of the contact, compares and calculates the current status data with the previous status data, and detects the address of the contact whose open/closed status has changed; A sequence controller with an operation check function, which is equipped with a ring buffer that stores the address of a contact that has been changed and the state after the state of that contact has changed, together with the time indicated by a timer.
JP2298185A 1990-11-02 1990-11-02 Sequence controller with operation confirming function Pending JPH04174008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2298185A JPH04174008A (en) 1990-11-02 1990-11-02 Sequence controller with operation confirming function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2298185A JPH04174008A (en) 1990-11-02 1990-11-02 Sequence controller with operation confirming function

Publications (1)

Publication Number Publication Date
JPH04174008A true JPH04174008A (en) 1992-06-22

Family

ID=17856319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2298185A Pending JPH04174008A (en) 1990-11-02 1990-11-02 Sequence controller with operation confirming function

Country Status (1)

Country Link
JP (1) JPH04174008A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016090491A (en) * 2014-11-10 2016-05-23 アズビル株式会社 Test method and test system of electromagnetic flowmeter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5327781A (en) * 1976-08-25 1978-03-15 Kyosan Electric Mfg Carrier memory system
JPS61133416A (en) * 1984-11-30 1986-06-20 Yaskawa Electric Mfg Co Ltd Sequence trace back device
JPH01295308A (en) * 1988-02-12 1989-11-29 Citizen Watch Co Ltd Programmable controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5327781A (en) * 1976-08-25 1978-03-15 Kyosan Electric Mfg Carrier memory system
JPS61133416A (en) * 1984-11-30 1986-06-20 Yaskawa Electric Mfg Co Ltd Sequence trace back device
JPH01295308A (en) * 1988-02-12 1989-11-29 Citizen Watch Co Ltd Programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016090491A (en) * 2014-11-10 2016-05-23 アズビル株式会社 Test method and test system of electromagnetic flowmeter

Similar Documents

Publication Publication Date Title
JPH04174008A (en) Sequence controller with operation confirming function
GB2288674A (en) Monitoring method and apparatus using a programmable logic controller
JP2000099355A (en) Network computer
JPS5860318A (en) Programmable controller
JPS62125452A (en) Data back-up system for storage device
JPH1185264A (en) State data gathering method and control unit
JPH0553809A (en) Knowledge data referencing method for inference device
JP2695930B2 (en) Intelligent I / O module
JPS62279438A (en) Tracking circuit
JPH03105503A (en) Programmable controller
JPS6246304A (en) Programmable controller
JPH05134889A (en) Redundant system for process controller
JPS62143108A (en) Data recorder
JPH01130245A (en) Trace control system for peripheral controller
JPH02226307A (en) Numerical controller
JPH01321540A (en) Interface circuit
JPH0720721Y2 (en) Programmable controller programmer
JPS61266036A (en) System stabilizer
JPH04640A (en) Fault information collecting system
JPH0210441A (en) Trace circuit
JPH01111239A (en) Error display system
JPH06348548A (en) Method and device for monitoring program-storage type control apparatus
JPS62251845A (en) Program debugging device
JPH0216646A (en) Programmable controller
JPS6349942A (en) Arithmetic processing unit