JPH02178804A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH02178804A
JPH02178804A JP63333211A JP33321188A JPH02178804A JP H02178804 A JPH02178804 A JP H02178804A JP 63333211 A JP63333211 A JP 63333211A JP 33321188 A JP33321188 A JP 33321188A JP H02178804 A JPH02178804 A JP H02178804A
Authority
JP
Japan
Prior art keywords
monitor data
transmission buffer
transmission
latest
stored
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
JP63333211A
Other languages
Japanese (ja)
Inventor
Kenji Sugihara
杉原 賢治
Toshihiro Ide
井手 利宏
Hiroto Miyazaki
浩人 宮崎
Akio Hirahata
平畑 秋穂
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63333211A priority Critical patent/JPH02178804A/en
Publication of JPH02178804A publication Critical patent/JPH02178804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To refer to the latest monitor data at the time of temporarily stopping a sequence controller by switching a transmission buffer where monitor data transmitted at present is stored and another transmission buffer where the latest monitor data is stored to always preserve the latest monitor data. CONSTITUTION:This sequence controller consists of a sequence program executing means 1, a monitor data processing means 2, a transmission buffer switching means 3, a first transmission buffer 4, a second transmission buffer 5, and a transmission control means 6. Monitor data transmitted at present is stored in one transmission buffer, and the latest monitor data is stored in the other transmission buffer while being always updated. Thus, the latest monitor data is referred when the sequence controller is temporarily stopped.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、シーケンス制御装置と通信で結ばれた操作端
末に対して、入出力リレーの状態をモニタデータとして
送信する機能を有するシーケンス制御装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a sequence control device having a function of transmitting the status of input/output relays as monitor data to an operation terminal connected to the sequence control device through communication. It is.

従来の技術 以下図面を参照しながら、上述した従来のシケンス制御
装置の一例について説明する。
2. Description of the Related Art An example of the above-mentioned conventional sequence control device will be described below with reference to the drawings.

第3図は、従来のシーケンス制御装置の構成を示すもの
である。第3図において、1はユーザプログラムをメモ
リから読みだし実行するシーケンスプログラム実行手段
である。2は入出力リレーの状態を検出しモニタデータ
として送信バッファに格納するモニタデータ加工手段で
ある。6は送信バッファからモニタデータを取り出し送
信する送信制御手段である。7は現在モニタデータを送
信中かどうかを判断する判断手段である。8はモニタデ
ータを格納しておく送信バッファである。
FIG. 3 shows the configuration of a conventional sequence control device. In FIG. 3, reference numeral 1 denotes a sequence program execution means for reading a user program from memory and executing it. Reference numeral 2 denotes a monitor data processing means that detects the state of the input/output relay and stores it in a transmission buffer as monitor data. Reference numeral 6 denotes a transmission control means for extracting monitor data from the transmission buffer and transmitting it. Reference numeral 7 denotes a determining means for determining whether monitor data is currently being transmitted. 8 is a transmission buffer that stores monitor data.

以上のように構成されたシーケンス制御装置について、
以下その動作について説明する。
Regarding the sequence control device configured as above,
The operation will be explained below.

まず、シーケンスプログラム実行手段1がメモリからユ
ーザプログラムを読みだし実行する。次にモニタデータ
加工手段2により入出力リレーの状態を検出する。
First, the sequence program execution means 1 reads a user program from memory and executes it. Next, the monitor data processing means 2 detects the status of the input/output relay.

この時判断手段7によりモニタデータを送信中かどうか
を判断し、もしモニタデータを送信中てあればなにもせ
ずにシーケンスプログラム実行手段1にもどるが、もし
モニタデータを送信中でなければ送信バッファ8にモニ
タデータを格納したのちにシーケンスプログラム実行手
段1にもどる。
At this time, the judgment means 7 judges whether or not monitor data is being sent. If the monitor data is being sent, the process returns to the sequence program execution means 1 without doing anything, but if the monitor data is not being sent, the process returns to the sequence program execution means 1. After storing the monitor data in the buffer 8, the process returns to the sequence program execution means 1.

送信制御手段6は、上記動作と独立して送信バッファ8
からモニタデータを読みだし操作端末(図示せず)にモ
ニタデータを送信する。
The transmission control means 6 controls the transmission buffer 8 independently of the above operation.
The monitor data is read out from the controller and sent to an operating terminal (not shown).

上記のようにしてシーケンスプログラム実行手段1とモ
ニタデータ加工手段2が交互に動作することにより、ユ
ーザプログラムを実行しながらモニタデータを送信する
As described above, the sequence program execution means 1 and the monitor data processing means 2 operate alternately, thereby transmitting monitor data while executing the user program.

発明が解決しようとする課題 しかしながら上記のような構成では、モニタデータ加工
手段2が最新のモニタデータを送信しようとしても、古
いモニタデータを送信中であれば最新のモニタデータは
捨てられてしまうために、シーケンス制御装置を一時停
止させたときに最新のモニタデータを参照することが出
来ないという問題点を有していた。
Problems to be Solved by the Invention However, in the above configuration, even if the monitor data processing means 2 tries to send the latest monitor data, if the old monitor data is being sent, the latest monitor data will be discarded. Another problem is that it is not possible to refer to the latest monitor data when the sequence control device is temporarily stopped.

本発明は上記問題点に鑑み、シーケンス制御装置を一時
停止させたときに最新のモニタデータを参照することの
できるシーケンス制御装置を提供するものである。
In view of the above problems, the present invention provides a sequence control device that can refer to the latest monitor data when the sequence control device is temporarily stopped.

課題を解決するための手段 上記問題点を解決するために本発明のシーケンス制御装
置は、入出力リレーの状態を検出しモニタデータとして
送信バッファに格納するモニタデータ加工手段と、モニ
タデータを格納しておく2つの送信バッファと、2つの
送信バッファを切り替える送信バッファ切り替え手段と
を備えたことを特徴とするものである。
Means for Solving the Problems In order to solve the above problems, the sequence control device of the present invention includes a monitor data processing means for detecting the state of an input/output relay and storing it in a transmission buffer as monitor data, and a monitor data processing means for storing the monitor data. The present invention is characterized in that it includes two transmission buffers for storing data, and a transmission buffer switching means for switching between the two transmission buffers.

作   用 本発明は上記した構成によって、一方の送信バッファに
現在送信中のモニタデータを格納しておき、もう一方の
送信バッファに最新のモニタデータを常に更新しながら
格納してお(ことにより、シーケンス制御装置を一時停
止したときに最新のモニタデータを参照できることとな
る。
According to the above-described configuration, the present invention stores the monitor data currently being transmitted in one transmission buffer, and stores the latest monitor data in the other transmission buffer while being constantly updated. The latest monitor data can be referenced when the sequence control device is temporarily stopped.

実施例 以下本発明の一実施例のシーケンス制御装置について図
面を参照しながら説明する。
Embodiment Hereinafter, a sequence control device according to an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例におけるシーケンス制御装置
の構成を示すものである。第1図において、1はユーザ
プログラムをメモリから読みだし実行するシーケンスプ
ログラム実行手段である。
FIG. 1 shows the configuration of a sequence control device in an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a sequence program execution means that reads a user program from memory and executes it.

2は入出力リレーの状態を検出しモニタデータとして送
信バッファに格納するモニタデータ加工手段である。3
は2つの送信バッファを切り替える送信バッファ切り替
え手段である。4と5は第1と第2の送信バッファであ
る。6は送信バッファからモニタデータを取り出し送信
する送信制御手段である。
Reference numeral 2 denotes a monitor data processing means that detects the state of the input/output relay and stores it in a transmission buffer as monitor data. 3
is a transmission buffer switching means for switching between two transmission buffers. 4 and 5 are first and second transmission buffers. Reference numeral 6 denotes a transmission control means for extracting monitor data from the transmission buffer and transmitting it.

以上のように構成されたシーケンス制御装置について、
以下第1図および第2図を用いてその動作について説明
する。
Regarding the sequence control device configured as above,
The operation will be explained below using FIGS. 1 and 2.

まず、シーケンスプログラム実行手甲1がメモリからユ
ーザプログラムを読みだし実行する。次にモニタデータ
加工手段2により入出力リレーの状態を検出し第1の送
信バッファ4にモニタデータを格納した後シーケンスプ
ログラム実行手段1にもどる。
First, the sequence program execution gauntlet 1 reads a user program from memory and executes it. Next, the monitor data processing means 2 detects the state of the input/output relay, stores the monitor data in the first transmission buffer 4, and then returns to the sequence program execution means 1.

上記のようにしてシーケンスプログラム実行手段1とモ
ニタデータ加工手段2が交互に動作することにより、ユ
ーザプログラムを実行しながら最新のモニタデータを第
1の送信バッファ4に格納していく。
As described above, the sequence program execution means 1 and the monitor data processing means 2 operate alternately, thereby storing the latest monitor data in the first transmission buffer 4 while executing the user program.

送信制御手段6は、上記動作と独立して第2の送信バッ
ファ5からすでに格納されているモニタデータを読みだ
し操作端末(図示せず)にモニタデータを送信する。
The transmission control means 6 reads out the monitor data already stored from the second transmission buffer 5 and transmits the monitor data to an operating terminal (not shown) independently of the above operation.

送信バッファ切り替え手段3は、第2の送信バッファ5
のモニタデータがすべて送信されてしまうと、モニタデ
ータ加工手段2が最新のモニタデータを格納する送信バ
ッファを第1の送信バッファ4から第2の送信バッファ
5に切り替え、送信制御手段6が読みだす送信バッファ
を第2の送信バッファ5から第1の送信バッファ4へ切
り替える。次に第1の送信バッファ4のモニタデータが
すべて送信されてしまうと、モニタデータ加工手段2が
最新のモニタデータを格納する送信バッファを第2の送
信バッファ5から第1の送信バッファ4に切り替え、送
信制御手段6が読みだす送信バッファを第1の送信バッ
ファ4から第2の送信バッファ5へ切り替える。
The transmission buffer switching means 3 switches the second transmission buffer 5
When all of the monitor data has been transmitted, the monitor data processing means 2 switches the transmission buffer storing the latest monitor data from the first transmission buffer 4 to the second transmission buffer 5, and the transmission control means 6 reads out the data. The transmission buffer is switched from the second transmission buffer 5 to the first transmission buffer 4. Next, when all the monitor data in the first transmission buffer 4 has been transmitted, the monitor data processing means 2 switches the transmission buffer storing the latest monitor data from the second transmission buffer 5 to the first transmission buffer 4. , the transmission buffer to be read by the transmission control means 6 is switched from the first transmission buffer 4 to the second transmission buffer 5.

上記のように現在送信中のモニタデータの格納されてい
る送信バッファと最新のモニタデータの格納されている
送信バッファを交互に入れ換えることにより常に最新の
モニタデータが保存される。
As described above, by alternately replacing the transmission buffer in which the monitor data currently being transmitted is stored with the transmission buffer in which the latest monitor data is stored, the latest monitor data is always saved.

第2図は送信バッファにモニタデータが格納されるタイ
ミングを従来例と本発明の例について示すものである。
FIG. 2 shows the timing at which monitor data is stored in the transmission buffer for a conventional example and an example of the present invention.

第2図において9は従来例のタイミングである。In FIG. 2, 9 is the timing of the conventional example.

10はシーケンスプログラム実行手段1とモニタデータ
加工手段2が交互に実行されることを示す。
10 indicates that the sequence program execution means 1 and the monitor data processing means 2 are executed alternately.

11は送信バッファ8にモニタデータが格納されるタイ
ミングを示し、12は最後にモニタデータが格納された
タイミングである。13は上記実施例のタイミングであ
る。14はシーケンスプログラム実行手段1とモニタデ
ータ加工手段2が交互に実行されることを示す。15は
第1の送信バッファ4にモニタデータが格納されるタイ
ミングを示し、16は第2の送信バッファ5にモニタデ
ータが格納されるタイミングを示す。17は最後にモニ
タデータが格納されたタイミングである。
11 indicates the timing at which the monitor data is stored in the transmission buffer 8, and 12 indicates the timing at which the monitor data is finally stored. 13 is the timing of the above embodiment. 14 indicates that the sequence program execution means 1 and the monitor data processing means 2 are executed alternately. 15 indicates the timing at which the monitor data is stored in the first transmission buffer 4, and 16 indicates the timing at which the monitor data is stored in the second transmission buffer 5. 17 is the timing when the monitor data was finally stored.

18はシーケンス制御装置を一時停止させるタイミング
である。
18 is a timing for temporarily stopping the sequence control device.

第2図において、タイミング18でシーケンス制御装置
を一時停止させると、従来例ではタイミング12で送信
バッファ8に格納されたモニタデータが最後に送信され
たが、本実施例ではタイミング17で送信バッファに格
納されたモニタデータが最後に送信されるので、最新の
モニタデータが送信されることとなる。
In FIG. 2, when the sequence control device is temporarily stopped at timing 18, in the conventional example, the monitor data stored in the transmission buffer 8 is finally transmitted at timing 12, but in this embodiment, the monitor data stored in the transmission buffer 8 is finally transmitted at timing 17. Since the stored monitor data is transmitted last, the latest monitor data will be transmitted.

発明の効果 以上のように本発明は入出力リレーの状態を検出しモニ
タデータとして送信バッファに格納するモニタデータ加
工手段と、モニタデータを格納しておく2つの送信バッ
ファと、2つの送信バッファを切り替える送信バッファ
切り替え手段と、送信バッファからモニタデータを取り
出し送信する送信制御手段を設けることにより、シーケ
ンス制御装置を一時停止したときに最新のモニタデータ
を参照できることができる。
Effects of the Invention As described above, the present invention includes a monitor data processing means for detecting the state of an input/output relay and storing it as monitor data in a transmitting buffer, two transmitting buffers for storing monitor data, and two transmitting buffers. By providing a transmission buffer switching means for switching and a transmission control means for extracting monitor data from the transmission buffer and transmitting it, it is possible to refer to the latest monitor data when the sequence control device is temporarily stopped.

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

第1図は本発明の一実施例におけるシーケンス制御装置
の構成図、第2図は送信バッファにモニタデータが格納
されるタイミングヂャート、第3図は従来例のシーケン
ス制御装置の構成図である。 1・・・・・・シーケンスプログラム実行手段、2・・
・・・・モニタデータ加工手段、3・・・・・・送信バ
ッファ切り替え手段、4・・・・・・第1の送信バッフ
ァ、5・・・・・・第2の送信バッファ、6・・・・・
・送信制御手段。
FIG. 1 is a block diagram of a sequence control device according to an embodiment of the present invention, FIG. 2 is a timing chart when monitor data is stored in a transmission buffer, and FIG. 3 is a block diagram of a conventional sequence control device. . 1... Sequence program execution means, 2...
... Monitor data processing means, 3 ... Transmission buffer switching means, 4 ... First transmission buffer, 5 ... Second transmission buffer, 6 ... ...
- Transmission control means.

Claims (1)

【特許請求の範囲】[Claims] ユーザプログラムをメモリから読みだし実行するシーケ
ンスプログラム実行手段と、入出力リレーの状態を検出
しモニタデータとして送信バッファに格納するモニタデ
ータ加工手段と、モニタデータを格納しておく2つの送
信バッファと、2つの送信バッファを切り替える送信バ
ッファ切り替え手段と、送信バッファからモニタデータ
を取り出し送信する送信制御手段とを備えたことを特徴
とするシーケンス制御装置。
A sequence program execution means that reads a user program from a memory and executes it; a monitor data processing means that detects the state of the input/output relay and stores it in a transmission buffer as monitor data; and two transmission buffers that store the monitor data. A sequence control device comprising a transmission buffer switching means for switching between two transmission buffers, and a transmission control means for extracting monitor data from the transmission buffer and transmitting it.
JP63333211A 1988-12-29 1988-12-29 Sequence controller Pending JPH02178804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63333211A JPH02178804A (en) 1988-12-29 1988-12-29 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63333211A JPH02178804A (en) 1988-12-29 1988-12-29 Sequence controller

Publications (1)

Publication Number Publication Date
JPH02178804A true JPH02178804A (en) 1990-07-11

Family

ID=18263560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63333211A Pending JPH02178804A (en) 1988-12-29 1988-12-29 Sequence controller

Country Status (1)

Country Link
JP (1) JPH02178804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016522593A (en) * 2013-03-14 2016-07-28 ローズマウント インコーポレイテッド Industrial process network communication system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63298503A (en) * 1987-05-29 1988-12-06 Yaskawa Electric Mfg Co Ltd Programmable controller having data trace/trace data display function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63298503A (en) * 1987-05-29 1988-12-06 Yaskawa Electric Mfg Co Ltd Programmable controller having data trace/trace data display function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016522593A (en) * 2013-03-14 2016-07-28 ローズマウント インコーポレイテッド Industrial process network communication system

Similar Documents

Publication Publication Date Title
KR100938767B1 (en) Method and apparatus for switching between active and standby switch fabrics with no loss of data
JPS6364144A (en) Inter-memory data transfer system
JPH02178804A (en) Sequence controller
JPH10222324A (en) Network system
JPS62121505A (en) Link system for programmable controller
JP3298018B2 (en) Programmable controller
JPH06224932A (en) Packet converter
JP2724323B2 (en) Signal switching device and signal switching method
JP3611166B2 (en) Data processing method and apparatus
JPS6198050A (en) Transfer system for received data
JPS63284604A (en) Programmable controller
JP2635136B2 (en) Transmission / reception load test method for online system
JPH08171495A (en) Duplex operation system
JPS60135905U (en) programmable controller system
JP2007329863A (en) Packet relay apparatus
JPH01140301A (en) Sequence control method
JPH01144134A (en) Space switching system
JPS63227149A (en) Communication control method in loop communication system
JPH027240B2 (en)
JPH07295839A (en) Inter-task communication system
JPS6277666A (en) Buffer circuit
JPH11261594A (en) Packet preferential reception processing method
JPS6375840A (en) Queue control system
JPS61240353A (en) Trace system for data communication and switching equipment
JPH0541722A (en) Programmable controller