JPH0728509A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0728509A
JPH0728509A JP5312094A JP31209493A JPH0728509A JP H0728509 A JPH0728509 A JP H0728509A JP 5312094 A JP5312094 A JP 5312094A JP 31209493 A JP31209493 A JP 31209493A JP H0728509 A JPH0728509 A JP H0728509A
Authority
JP
Japan
Prior art keywords
input
output
monitor
display
time
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
JP5312094A
Other languages
Japanese (ja)
Other versions
JP2653346B2 (en
Inventor
Kiyoto Hirase
清人 平瀬
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP5312094A priority Critical patent/JP2653346B2/en
Publication of JPH0728509A publication Critical patent/JPH0728509A/en
Application granted granted Critical
Publication of JP2653346B2 publication Critical patent/JP2653346B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To simultaneously monitor plural input/output data or the like in arbitrary positions of a ladder diagram on the same picture. CONSTITUTION:A microprocessor 1 registers input/output designating information in a working memory 3 based on the input from a keyboard 7 and cyclically samples the states of inputs/outputs designated by this input/output designating information from an I/O memory 6. The states of inputs/outputs sampled by the microprocessor 1 for a certain number of past samplings are stored in a display device 8. The microprocessor 1 switches the display on the display device from the ladder diagram monitor state to the time-series display monitor state to display the input/output state of each sampling on the display device 8 in time series along the time base.

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 programmable controller for displaying input / output data on a monitor.

【0002】[0002]

【従来の技術】従来、この種のプログラマブル・コント
ローラは、システムサービス処理においてCRT画面に
ラダー図を表示し、このラダー図に示されたデバイス
(入出力接点,外部リレー接点等)のON,OFF状態
を輝度変化により表示してモニタするのが一般的であっ
た。
2. Description of the Related Art Conventionally, this type of programmable controller displays a ladder diagram on a CRT screen in system service processing, and turns on / off devices (input / output contacts, external relay contacts, etc.) shown in the ladder diagram. It is common to display and monitor the state by changing the brightness.

【0003】このようにすれば、少なくとも1画面に表
示されたラダー図とそれに係る入出力データの状態とを
合わせて把握することができる。
In this way, it is possible to comprehend the ladder diagram displayed on at least one screen and the state of input / output data related thereto.

【0004】[0004]

【発明が解決しようとする課題】ところが、この種のプ
ログラマブル・コントローラのユーザプログラムは相当
大規模になるのが普通であり、それに対し、CRT画面
は表示面積に限界があるため、ラダー図全体の中で特定
の狭い範囲の入出力データの状態のみしかCRT画面に
同時表示することができない。
However, the user program of this type of programmable controller is usually quite large, whereas the CRT screen has a limited display area, so that the entire ladder diagram is displayed. Only the state of input / output data within a specific narrow range can be simultaneously displayed on the CRT screen.

【0005】つまり、この種のラダー図によるモニタ方
式では、ラダー図中で大きく掛け離れた入出力データを
モニタするためには、その都度該当するラダー図領域へ
と表示画面を切替えねばならないという不便がある。
In other words, this type of ladder diagram monitoring system has the inconvenience of switching the display screen to the corresponding ladder diagram area each time in order to monitor input / output data that are widely separated in the ladder diagram. is there.

【0006】この発明は係る問題点に鑑みなされたもの
であり、その目的は、ラダー図中の任意の位置にある複
数の入出力データ等を同一画面上において同時にモニタ
する機能を備えたプログラマブル・コントローラを提供
することにある。
The present invention has been made in view of the above problems, and an object thereof is a programmable program having a function of simultaneously monitoring a plurality of input / output data and the like at arbitrary positions in a ladder diagram on the same screen. To provide a controller.

【0007】[0007]

【課題を解決するための手段】この発明は、上記の目的
を達成するために、入出力指定のためのキー入力操作に
応答して、当該入出力指定情報を第1の記憶手段に登録
する登録制御手段と、前記第1の記憶手段に登録された
入出力指定情報で指定された入出力の状態をサイクリッ
クにサンプルするサンプル制御手段と、前記サンプル制
御手段でサンプルされた入出力の状態を過去一定回数分
だけ記憶する第2の記憶手段と、前記第2の記憶手段に
記憶された各サンプル回の入出力状態を時間軸に沿って
時系列的に表示する画像表示手段と、からなる時系列モ
ニタ手段と;ラダー図モニタ手段と;前記ラダー図モニ
タ手段によるモニタ状態から前記時系列モニタ手段によ
るモニタ状態に移行するモニタ移行手段と;を具備する
ことを特徴とする。
In order to achieve the above object, the present invention registers the input / output designation information in the first storage means in response to a key input operation for input / output designation. Registration control means, sample control means for cyclically sampling the input / output state designated by the input / output designation information registered in the first storage means, and input / output state sampled by the sample control means From a second storage means for storing a predetermined number of times in the past, and an image display means for displaying the input / output state of each sample time stored in the second storage means in time series along a time axis. And time-series monitor means; ladder diagram monitor means; and monitor transition means for transitioning from the monitor state by the ladder diagram monitor means to the monitor state by the time-series monitor means.

【0008】[0008]

【作用】時系列モニタ手段では、登録制御手段が入出力
指定のためのキー入力操作に応答して、当該入出力指定
情報を第1の記憶手段に登録して、サンプル制御手段が
その第1の記憶手段に登録された入出力指定情報で指定
された入出力の状態をサイクリックにサンプルする。そ
して、そのサンプル制御手段でサンプルされた入出力の
状態を第2の記憶手段が過去一定回数分だけ記憶して、
画像表示手段がその第2の記憶手段に記憶された各サン
プル回の入出力状態を時間軸に沿って時系列的に表示す
る。
In the time series monitoring means, the registration control means registers the input / output designation information in the first storage means in response to the key input operation for designating the input / output, and the sample control means makes the first control. The input / output state designated by the input / output designation information registered in the storage means is cyclically sampled. Then, the second storage means stores the input / output states sampled by the sample control means for a predetermined number of times in the past,
The image display means displays the input / output states of each sample stored in the second storage means in time series along the time axis.

【0009】一方、ラダー図モニタ手段がラダー図を表
示するようにする。そして、モニタ移行手段が、ラダー
図モニタ手段によるモニタ状態から時系列モニタ手段に
よるモニタ状態に移行する。
On the other hand, the ladder diagram monitor means displays the ladder diagram. Then, the monitor shifting means shifts from the monitoring state by the ladder diagram monitoring means to the monitoring state by the time series monitoring means.

【0010】[0010]

【実施例】以下、本発明に係るプログラマブル・コント
ローラの実施例を図面に基づいて説明する。
Embodiments of a programmable controller according to the present invention will be described below with reference to the drawings.

【0011】図2は、この発明を適用したプログラマブ
ル・コントローラの全体の概略構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing an overall schematic configuration of a programmable controller to which the present invention is applied.

【0012】このプログラマブル・コントローラにおい
て、マイクロプロセッサ1は全体の制御の中枢となる。
In this programmable controller, the microprocessor 1 is the center of overall control.

【0013】システムプログラムメモリ2にはマイクロ
プロセッサ1によって実行されるシステムプログラムが
格納されている。
The system program memory 2 stores a system program executed by the microprocessor 1.

【0014】ワーキングメモリ3はマイクロプロセッサ
1によって各種可変データの一時格納エリアとして使わ
れる。
The working memory 3 is used by the microprocessor 1 as a temporary storage area for various variable data.

【0015】ユーザプログラムメモリ4には使用者が任
意に設定したシーケンス制御プログラムが格納される。
The user program memory 4 stores a sequence control program arbitrarily set by the user.

【0016】外部入力信号が与えられる入力インターフ
ェイスおよび外部出力信号を送出する出力インターフェ
イスを含んだ入出力装置(入力回路と出力回路との総
称)5と、入出力装置に対応した入出力データのバッフ
ァメモリとなるI/Oメモリ6とを備える。
An input / output device (collective term for input circuit and output circuit) 5 including an input interface to which an external input signal is applied and an output interface for transmitting an external output signal, and an input / output data buffer corresponding to the input / output device The I / O memory 6 serving as a memory is provided.

【0017】さらに、マイクロプロセッサ1に各種の動
作指令を与えるとともに、ユーザプログラムの作成入力
等に使用されるキーボード7と、モニタ表示等がなされ
る表示装置8とを備える。
Further, the microprocessor 1 is provided with a keyboard 7 used for inputting various operation commands and for inputting a user program, and a display device 8 for displaying a monitor.

【0018】周知のように、この種のプログラマブル・
コントローラにおけるユーザプログラムの実行動作は、
ユーザプログラムメモリ4からユーザ命令(例えば、ラ
ダー図に対応する)を順次読出し、各ユーザ命令に従っ
てI/Oメモリ6に格納されている入出力データを参照
して演算処理をし、かつその処理結果によってI/Oメ
モリ6の指定の出力データを更新することである。
As is well known, this type of programmable
The execution operation of the user program in the controller is
User instructions (for example, corresponding to a ladder diagram) are sequentially read from the user program memory 4, the input / output data stored in the I / O memory 6 is referred to in accordance with each user instruction, and arithmetic processing is performed, and the processing result is obtained. Is to update designated output data of the I / O memory 6.

【0019】また、一連のユーザプログラムの実行とは
別の時間帯においては入力回路に与えられる入力データ
を一括してI/Oメモリ6の所定エリアに書込むととも
に(入力更新)、I/Oメモリ6の所定エリアの出力デ
ータを一括して出力回路に転送する動作(出力更新)が
行なわれる。
Further, in a time zone different from the execution of a series of user programs, the input data supplied to the input circuit are collectively written in a predetermined area of the I / O memory 6 (input update), and the I / O is also performed. An operation (output update) of collectively transferring output data in a predetermined area of memory 6 to the output circuit is performed.

【0020】また、さらに別の時間帯においては、シス
テムプログラムメモリ2に格納したシステムサービスプ
ログラムを適宜必要に応じて読み出して入出力モニタ,
ユーザプログラムの修正等の各種の動作(システムサー
ビス)が行なわれる。
In still another time zone, the system service program stored in the system program memory 2 is read as needed to monitor the input / output,
Various operations (system service) such as modification of user programs are performed.

【0021】このようにシステムプログラムメモリ2に
格納されたシステムプログラムをマイクロプロセッサ1
で実行することにより、入力更新処理,ユーザプログラ
ム実行処理,出力更新処理,システムサービス処理等を
サイクリックに行なうものである。
The system program thus stored in the system program memory 2 is loaded into the microprocessor 1
The input update processing, the user program execution processing, the output update processing, the system service processing, and the like are cyclically performed by executing.

【0022】また、この発明を実現するためには、上述
したプログラマブル・コントローラの基本構成のほか
に、システムサービス処理の中で機能させる以下の各手
段を設けることを必要とする。
In order to realize the present invention, in addition to the basic configuration of the programmable controller described above, it is necessary to provide the following means for functioning in the system service processing.

【0023】すなわち、マイクロプロセッサ1には、入
出力指定情報を第1の記憶手段に登録する登録制御手段
と、第1の記憶手段に登録された入出力指定情報で指定
された入出力の状態をサイクリックにサンプルするサン
プル制御手段との各手段の機能を持たせている。
That is, the microprocessor 1 has a registration control means for registering input / output designation information in the first storage means, and an input / output state designated by the input / output designation information registered in the first storage means. The sample control means for cyclically sampling and the function of each means are provided.

【0024】また、ワーキングメモリ3には入出力指定
情報登録用の第1の記憶手段としての機能を持たせてい
る。
Further, the working memory 3 is provided with a function as a first storage means for registering input / output designation information.

【0025】また、表示装置8には、サンプル制御手段
でサンプルされた入出力の状態を過去一定サンプル回数
分だけ記憶する第2の記憶手段(ビデオRAM)として
の機能を設けるとともに、第2の記憶手段に記憶された
各サンプル回の入出力状態を時間軸に沿って時系列的に
表示する画像表示手段としての機能を持たせている。
Further, the display device 8 is provided with a function as a second storage means (video RAM) for storing the input / output states sampled by the sample control means for a predetermined number of times in the past, and also has a second function. The storage means is provided with a function as an image display means for displaying the input / output state of each sample times in time series along the time axis.

【0026】また、キーボード7によって入出力指定を
行なうが、この場合、図3に示す如くの順序でキー操作
するものである。
Input / output is designated by the keyboard 7. In this case, the keys are operated in the order shown in FIG.

【0027】すなわち、キーボード7には、時系列モニ
タキー71、入出力データの種類例えばタイマおよびカ
ウンタの入出力信号T/C,制御系の入出力信号i /o
等を選ぶ選択キー72、入出力ナンバーをキーインする
ナンバーキー73、表示装置8の画面に表示させること
を決定するエントリーキー74,終了キー75が備えら
れている。
That is, the keyboard 7 includes a time-series monitor key 71, types of input / output data, for example, input / output signals T / C of timer and counter, input / output signals i / o of control system.
A selection key 72 for selecting, etc., a number key 73 for keying in an input / output number, an entry key 74 for deciding to display on the screen of the display device 8, and an end key 75 are provided.

【0028】そして、時系列モニタキー71をキーイン
した後、選択キー72,ナンバーキー73,エントリー
キー74の順番でこれらキー72〜74を繰り返しキー
インする。
After the time series monitor key 71 is keyed in, the selection key 72, the number key 73 and the entry key 74 are repeatedly keyed in in this order.

【0029】この繰り返しキーインは時系列モニタした
い入出力点数分だけ行なうものであり、画面の制約上、
通常は6回が好適とされる。これらキーイン後に終了キ
ー75をキーインするものである。
This repetitive key-in is performed for the number of input / output points to be time-series monitored.
Usually, 6 times is suitable. After these key-ins, the end key 75 is keyed-in.

【0030】以下、フローチャートに従って動作説明を
する。
The operation will be described below with reference to the flowchart.

【0031】図4のシステム全体のフローチャートに示
す如く、ステップ(401)のイニシャル処理に続くス
テップ(402)では、キーボード7からのキー入力信
号がマイクロプロセッサ1によって順次読込まれる。
As shown in the flowchart of the entire system of FIG. 4, in the step (402) following the initial process of the step (401), the key input signal from the keyboard 7 is sequentially read by the microprocessor 1.

【0032】ステップ(403)では、システムプログ
ラムメモリ2に格納されたシステムサービスプログラム
を適宜必要に応じて読み出してユーザプログラムの修正
等のシステムサービス処理が行なわれる。
In step (403), the system service program stored in the system program memory 2 is read out as needed to perform system service processing such as modification of the user program.

【0033】ステップ(404)では、入出力装置5に
与えられている入力データをI/Oメモリ6の入力エリ
アに転送するという入力更新が行なわれる。
In step (404), input update is performed in which the input data provided to the input / output device 5 is transferred to the input area of the I / O memory 6.

【0034】ステップ(405)では、実行モードフラ
グF0 がユーザプログラムの実行モードでなければ、続
くステップ(406)にて入出力装置5の出力をクリア
してステップ(402)のキー入力読取に戻り、実行モ
ードとなるまでステップ(402)〜(406)が繰り
返される。
In step (405), if the execution mode flag F 0 is not the execution mode of the user program, the output of the input / output device 5 is cleared in the following step (406) to read the key input in step (402). Steps (402) to (406) are repeated until returning to the execution mode.

【0035】ここで実行モードの場合には、ステップ
(407)以降のルーチンに進む。まず、ステップ(4
07)にてプログラムカウンタPCをクリアし、続くス
テップ(408)にてプログラムカウンタPCで示され
る命令をユーザプログラムメモリ4から読出し、続くス
テップ(409)にて読取った命令がEND命令か否か
を判定する。
In the case of the execution mode, the routine proceeds to step (407) and thereafter. First, step (4
In 07), the program counter PC is cleared, in the subsequent step (408), the instruction indicated by the program counter PC is read from the user program memory 4, and in the subsequent step (409), it is determined whether or not the instruction read is the END instruction. judge.

【0036】ここで、END命令以外の命令であれば、
ステップ(410)にてその命令を公知のインタプリタ
処理により実行し、次にステップ(411)にてプログ
ラムカウンタPCを歩進し、ステップ(408)の命令
読取にもどる。
If the instruction is other than the END instruction,
At step (410), the instruction is executed by a known interpreter process, then at step (411), the program counter PC is incremented, and the process returns to the instruction reading at step (408).

【0037】また、END命令であれば、ステップ(4
12)に進み、I/Oメモリ6の出力データを入出力装
置5に転送し、外部出力信号とする出力更新が行なわれ
る。
If it is an END instruction, step (4
Proceeding to 12), the output data of the I / O memory 6 is transferred to the input / output device 5, and the output is updated as an external output signal.

【0038】そして、この出力更新が行われると、ステ
ップ(402)のキー入力読取に戻る。
When the output is updated, the process returns to the key input reading in step (402).

【0039】このような一巡実行動作において、モニタ
表示は、ステップ(403)のシステムプログラム処理
の中で行なわれる。
In such a loop execution operation, the monitor display is performed in the system program processing of step (403).

【0040】システムプログラム処理は図5のフローチ
ャートに示すルーチンで実行され、この実行はマイクロ
プロセッサ1によって読込んだキー入力信号をすべてワ
ーキングメモリ3に一時格納してから行なわれる。
The system program processing is executed by the routine shown in the flowchart of FIG. 5, and this execution is carried out after temporarily storing all the key input signals read by the microprocessor 1 in the working memory 3.

【0041】図5において最初のステップ(501)で
は、ワーキングメモリ3から読出したキー入力信号が時
系列モニタキー71であると、時系列モニタフラグF1
がセットされる。
In the first step (501) in FIG. 5, if the key input signal read from the working memory 3 is the time series monitor key 71, the time series monitor flag F 1
Is set.

【0042】時系列モニタフラグF1 がセットされる
と、ステップ(502)に進み、表示装置8の画面の例
えば下部に位置するステータスエリアに、その登録キー
がキーインされた旨表示されて入出力指定を行ない得る
状態となる。
When the time-series monitor flag F 1 is set, the process proceeds to step (502), and the status area located, for example, at the bottom of the screen of the display device 8 displays that the registration key is keyed in, and the input / output It is ready to be specified.

【0043】この状態で、選択キー72,ナンバーキー
73,エントリーキー74の順番でキーインがなされる
と、時系列モニタしたい入出力ナンバーはワーキングメ
モリ3内の入出力指定情報エリア(図6参照)に登録さ
れる。なお、この入出力指定情報エリアが第1の記憶手
段に相当する。
In this state, when the selection key 72, the number key 73, and the entry key 74 are keyed in this order, the input / output number to be monitored in time series is the input / output designation information area in the working memory 3 (see FIG. 6). Be registered with. The input / output designation information area corresponds to the first storage means.

【0044】そして、これを例えば6回繰り返した後、
終了キー75がキーインされた場合に時系列モニタ登録
処理が終了となり、図4のステップ(404)の入力更
新へ進む。
After repeating this six times, for example,
When the end key 75 is keyed in, the time-series monitor registration process ends, and the process proceeds to the input update of step (404) in FIG.

【0045】また、ステップ(501)において、入出
力指定以外のキーインであれば、ステップ(503)以
降のルーチンに進む。
If the key-in other than the input / output designation is made at step (501), the routine proceeds to step (503) and subsequent steps.

【0046】まず、ステップ(503)ではキー入力信
号が所定の時系列モニタモードでキーインされたもので
あるか否かを判定する。
First, in step (503), it is determined whether or not the key input signal has been keyed in in a predetermined time series monitor mode.

【0047】ここで、時系列モニタモードでなければ、
ステップ(504)〜(507)をスキップしてステッ
プ(508)の他のキー入力処理に進む。
If the time series monitor mode is not set,
Steps (504) to (507) are skipped and the process proceeds to another key input process of step (508).

【0048】また、時系列モニタモードであると判定さ
れると、続くステップ(504)にて時系列モニタモー
ドフラグF2 がセットされているか否かを判定する。
If it is determined that the time-series monitor mode is set, it is determined in the following step (504) whether the time-series monitor mode flag F 2 is set.

【0049】ここで、時系列モニタモードフラグF2
セットされていない場合、続くステップ(505)にて
入出力指定情報エリアB1 〜B6 (図6参照)に登録さ
れた入出力データに変化があるか否かを、I/Oメモリ
6に記憶された該当する入出力データの内容に基づいて
チェックする。
Here, if the time-series monitor mode flag F 2 is not set, the input / output data registered in the input / output designation information areas B 1 to B 6 (see FIG. 6) in the following step (505) is set. Whether or not there is a change is checked based on the content of the corresponding input / output data stored in the I / O memory 6.

【0050】なお、入出力データの変化を調べるために
は過去の状態を記憶していなければならない。そのた
め、ワーキングメモリ3には各登録された入出力毎に2
ビットのFIFO(First In First Out)スタ
ックを持たせ、各サンプル前後のデータ一致,不一致を
判定している。
In order to check the change of the input / output data, the past state must be stored. Therefore, the working memory 3 has 2 for each registered input / output.
A bit (FIFO IN FIRST OUT) stack of bits is provided to determine whether or not data matches before and after each sample.

【0051】この条件下で過去と現在との入出力データ
の状態を比較し、変化があったら、続くステップ(50
6)にて時系列モニタフラグF3 をセットする。
Under this condition, the states of the input and output data of the past and the present are compared, and if there is a change, the following step (50
At 6), the time series monitor flag F 3 is set.

【0052】また、ステップ(505)にて入出力デー
タに変化なしとした場合、ステップ(508)の他のキ
ー入力処理に進む。
When the input / output data is not changed in step (505), the process proceeds to another key input process in step (508).

【0053】なお、ステップ(508)の他のキー入力
処理では、表示装置8の画面に図1(A)に示す如く、
ラダー図を表示する。このラダー図表示によるモニタ処
理については種々の文献により周知であるからここでは
触れない。
In the other key input processing of step (508), as shown in FIG.
Display the ladder diagram. The monitor processing by the ladder diagram display is well known from various documents and will not be described here.

【0054】このようにしてステップ(508)にてラ
ダーモニタ終了となると、図4のステップ(404)の
入力更新に進む。
When the ladder monitor is completed at step (508) in this way, the process proceeds to input update at step (404) in FIG.

【0055】一方、ステップ(506)にて時系列モニ
タフラグF3 がセットされたならば、次の一巡実行サイ
クルに入ると、ステップ(504)にて時系列モニタフ
ラグF3 がセットされていると判定され、ステップ(5
07)の時系列モニタ表示処理に進む。
On the other hand, if the time-series monitor flag F 3 is set at step (506), it enters the next round execution cycle, the time-series monitor flag F 3 is set at step (504) It is determined that the step (5
The process proceeds to 07) time series monitor display processing.

【0056】ステップ(507)の時系列モニタ表示処
理は図7のフローチャートに示す通りに実行される。
The time-series monitor display processing of step (507) is executed as shown in the flowchart of FIG.

【0057】まず、ステップ(701)において、サン
プリング周期T秒が経過したか否かを外部タイマにより
判定する。
First, in step (701), an external timer determines whether or not the sampling period T seconds has elapsed.

【0058】ここで経過しない場合は終了となり、図5
のステップ(508)の他の入力処理に進む。一方、経
過した場合には外部タイマからのカウントアップ出力が
割込信号としてマイクロプロセッサに加わる。すると、
マイクロプロセッサ1ではタイマフラグが例えば“1”
にセットされる。
If the time does not elapse at this point, the process ends, and FIG.
The process proceeds to another input process of step (508). On the other hand, when the time has elapsed, the count-up output from the external timer is added to the microprocessor as an interrupt signal. Then,
In the microprocessor 1, the timer flag is "1", for example.
Is set to.

【0059】タイマフラグがセットされているとき、続
くステップ(702)にて、入出力指定情報エリア(図
6)の先頭アドレスB1 に登録されたナンバーで指定さ
れるI/Oメモリ6の入出力データを読み出す。
When the timer flag is set, in the following step (702), the I / O memory 6 designated by the number registered in the head address B 1 of the input / output designation information area (FIG. 6) is loaded. Read output data.

【0060】次にステップ(703)に進み、ステップ
(702)にて記憶した入出力データを、キャラクタゼ
ネレータをアクセスするための表示コードに変換する。
Next, in step (703), the input / output data stored in step (702) is converted into a display code for accessing the character generator.

【0061】ステップ(704)では、表示装置8のビ
デオRAMにコード変換された表示コードを送り込む。
In step (704), the code-converted display code is sent to the video RAM of the display device 8.

【0062】表示装置8のビデオRAMには図8に示す
如く、50個の表示データエリアA1 〜A50(第2の記
憶手段に相当する)が設けられており、各エリアはワー
キングメモリ内のポインタN(1〜50)の値で指定可
能となっている。また、各表示データエリアA1 〜A50
には6個の入出力データが格納可能となっている。
As shown in FIG. 8, the video RAM of the display device 8 is provided with 50 display data areas A 1 to A 50 (corresponding to the second storage means), and each area is in the working memory. Can be designated by the value of the pointer N (1 to 50). In addition, each display data area A 1 to A 50
6 pieces of input / output data can be stored in.

【0063】各表示データエリアA1 〜A50は、図9に
示す如く、表示装置8のCRT画面の略下半分を水平方
向50列,垂直方向6段に区画した場合の各列に対応し
ており、従って、各エリアA1 〜A50に6個の表示デー
タが書込まれると、CRT表示画面においては垂直方向
1列分のタイムチャートが図9に表示エリアで示す如く
描かれる。
Each display data area A 1 to A 50 corresponds to each row when the lower half of the CRT screen of the display device 8 is divided into 50 rows in the horizontal direction and 6 rows in the vertical direction as shown in FIG. Therefore, when six pieces of display data are written in the areas A 1 to A 50 , a time chart for one column in the vertical direction is drawn on the CRT display screen as shown in the display area in FIG.

【0064】なお、コード化された表示データに基づい
て、表示装置8のCRT画面上に“H”表示用の「 ̄」
または“L”用の「_」を表示させる処理については、
周知の如くビデオRAM,キャラクタゼネレータ,CR
Tコントローラ等で行なう。
Based on the coded display data, "H" for displaying "H" on the CRT screen of the display device 8 is displayed.
Or for the process of displaying "_" for "L",
As is well known, video RAM, character generator, CR
Use a T controller or the like.

【0065】続くステップ(705)では、登録I/O
ナンバーで示される入出力データについてすべて完了し
たか否かを判定し、完了していない場合には、ステップ
(702)に戻り、入出力指定情報エリアの次のアドレ
スB2 で指定される入出力について、同様な処理(ステ
ップ(702)〜(704))を実行し、以下アドレス
3 〜B6 についての処理が終了するとともに、表示エ
リアポインタNの値を「1」から「2」へと更新する。
In the following step (705), the registration I / O is performed.
It is determined whether or not all the input / output data indicated by the number has been completed, and if not completed, the process returns to step (702), and the input / output designated by the next address B 2 in the input / output designation information area is determined. for, performs the same processing (step (702) - (704)), the following together with the processing of the address B 3 .about.B 6 is completed, and the value of the display area pointer N from "1" to "2" Update.

【0066】次いで、さらにT秒が経過するまでステッ
プ(702)〜(706)の処理はスキップされ、T秒
が経過するとともに表示エリアポインタNの値「2」に
対応する同様な処理が行なわれる。
Next, the processing of steps (702) to (706) is skipped until a further T seconds elapse, and the same processing corresponding to the value "2" of the display area pointer N is performed as the T seconds elapse. .

【0067】すなわち、ステップ(702)〜(70
4)の処理が6回繰り返されると、上下方向1列分の表
示コードが表示装置8へと順次転送される。すると、表
示装置8側のビデオRAM(図示せず)では新たな垂直
1列分の表示データを表示画面上において、水平方向右
方へ1列分だけシフトし、これを次のエリアに表示す
る。
That is, steps (702) to (70)
When the process of 4) is repeated 6 times, the display codes for one column in the vertical direction are sequentially transferred to the display device 8. Then, in the video RAM (not shown) on the display device 8 side, a new vertical column of display data is horizontally shifted to the right by one column on the display screen and displayed in the next area. .

【0068】以後、ステップ(701)〜(706)を
繰り返し実行した結果、表示エリアポインタNの値が
「50」に達したならば、再び画面の左端より各サンプ
リング回の6個の表示データを表示させる制御が行なわ
れる。
After that, if the value of the display area pointer N reaches "50" as a result of repeatedly executing the steps (701) to (706), the six display data of each sampling time are again displayed from the left end of the screen. The display is controlled.

【0069】一方、この実施例では、CRT画面全体に
ラダー図を表示している状態において、前述した時系列
モニタ処理へと移行すると、それまで表示されていたラ
ダー図を上下方向へ縮少してCRT画面の略上半分に表
示させ、CRT画面の略下半分に本発明に係るタイムチ
ャートを表示するようにしている。
On the other hand, in this embodiment, when the ladder chart is displayed on the entire CRT screen and the process shifts to the time-series monitor processing described above, the ladder chart that has been displayed up to that point is contracted vertically. The time chart according to the present invention is displayed on the upper half of the CRT screen and the lower half of the CRT screen.

【0070】このようなラダー図縮少処理については既
に公知であるため詳述しないが、例えばCRT画面1画
面分に対応するラダー図データの中で、各入出力デバイ
スに付されたデバイスNO.だけを図1(B)に示す如
く除去し、その隙間を詰めることにより、ラダー図を上
下方向半分に縮少させることができる。
Although such ladder diagram reduction processing is already known, it will not be described in detail. For example, in the ladder diagram data corresponding to one CRT screen, the device No. assigned to each input / output device is selected. The ladder diagram can be reduced to half in the vertical direction by removing only the gap as shown in FIG. 1B and filling the gap.

【0071】以上のように、この実施例では、ラダーモ
ニタ中にI/Oメモリ6に既に登録した入出力データの
うち、指定した入出力データに変化が生じた際、表示装
置8の画面が図1(A)の状態から同図(B)の状態に
変わり、その指定した入出力データをラダー図とともに
時系列的に表示させることができる。
As described above, in this embodiment, when the designated input / output data among the input / output data already registered in the I / O memory 6 is changed during the ladder monitor, the screen of the display device 8 is changed. The state of FIG. 1A is changed to the state of FIG. 1B, and the designated input / output data can be displayed in time series together with the ladder diagram.

【0072】従って予めモニタしたい入出力番号等を登
録させておきさえすれば、仮にその入出力がラダー図と
して1画面に同時表示させることができないものであっ
ても、これを1画面上において同時にしかも時系列的に
モニタすることができ、この種のプログラマブル・コン
トローラにおけるモニタ機能をより一層使い勝手の良好
なものとすることができる。
Therefore, even if the input / output numbers to be monitored are registered in advance, even if the input / output cannot be displayed on one screen as a ladder diagram at the same time, they can be displayed simultaneously on one screen. Moreover, it is possible to monitor in time series, and the monitor function in this type of programmable controller can be made even more convenient.

【0073】また、特にこの実施例では登録された入出
力の何れかに変化が生じたことに応答して、ラダー図式
モニタから時系列モニタ処理へと自動的に移行するよう
にしているため、特定の入出力の状態が変化したタイミ
ングを簡単に検出することができる。
Further, particularly in this embodiment, since the ladder diagram monitor automatically shifts to the time-series monitor process in response to a change in any of the registered inputs and outputs, It is possible to easily detect the timing when a specific input / output state changes.

【0074】さらに、この実施例では、ラダー図モニタ
中に何れかの入出力に変化が生じた場合に、画面上下各
半分にラダー図とタイムチャートを同時表示させるよう
にしたため、ラダー図によりモニタを行ないつつ、指定
された入出力の状態を時系列的にモニタすることがで
き、回路的な把握とタイミング的な把握とを同時に行な
うことができる。
Further, in this embodiment, when any input / output changes during the ladder diagram monitor, the ladder diagram and the time chart are simultaneously displayed on the upper and lower halves of the screen. It is possible to monitor the designated input / output states in time series while performing the above-mentioned operation, and to simultaneously grasp the circuit and the timing.

【0075】なお、前記実施例では、同時表示可能なサ
ンプル数を50サンプルとするとともに、サンプル周期
をT秒に固定したが、サンプル数および周期をもプログ
ラム可能とすれば、より一層の使い勝手を向上できるこ
とは勿論である。
In the above embodiment, the number of samples that can be displayed simultaneously is 50 and the sample period is fixed at T seconds. However, if the number of samples and the period can be programmed, the usability will be further improved. Of course, it can be improved.

【0076】[0076]

【発明の効果】以上説明したように、本発明の構成によ
れば、作成されたラダープログラムがモニタ画面に収ま
る程度の長さの場合はラダー図モニタ状態にしておき、
プログラムが長くなった場合は時系列モニタに変更する
等、ユーザに使い勝手の良いプログラマブル・コントロ
ーラを提供できる。
As described above, according to the configuration of the present invention, if the created ladder program is long enough to fit on the monitor screen, the ladder diagram monitor state is set,
When the program becomes long, it is possible to provide a user-friendly programmable controller, such as changing to a time-series monitor.

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

【図1】(A),(B)はこの発明を適用したプログラ
マブル・コントローラにおけるモニタ表示の状態説明
図。
1A and 1B are explanatory views of a monitor display state in a programmable controller to which the present invention is applied.

【図2】この発明を適用したプログラマブル・コントロ
ーラの概略構成を示すブロック図。
FIG. 2 is a block diagram showing a schematic configuration of a programmable controller to which the present invention is applied.

【図3】キー操作説明図。FIG. 3 is an explanatory diagram of key operations.

【図4】この発明のシステム全体のフローチャート。FIG. 4 is a flowchart of the entire system of the present invention.

【図5】この発明におけるシステムプログラム処理のフ
ローチャート。
FIG. 5 is a flowchart of system program processing according to the present invention.

【図6】入出力指定情報エリアの説明図。FIG. 6 is an explanatory diagram of an input / output designation information area.

【図7】この発明における時系列モニタ表示処理のフロ
ーチャート。
FIG. 7 is a flowchart of time series monitor display processing according to the present invention.

【図8】ビデオRAMの表示データエリアの説明図。FIG. 8 is an explanatory diagram of a display data area of a video RAM.

【図9】表示データエリアへの書込と画面状況との対応
を示す説明図。
FIG. 9 is an explanatory diagram showing correspondence between writing in a display data area and screen status.

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

1 マイクロプロセッサ 2 システムプログラムメモリ 3 ワーキングメモリ 4 ユーザプログラムメモリ 5 入出力装置 6 I/Oメモリ 7 キーボード 8 表示装置 1 Microprocessor 2 System Program Memory 3 Working Memory 4 User Program Memory 5 Input / Output Device 6 I / O Memory 7 Keyboard 8 Display Device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入出力指定のためのキー入力操作に応答
して、当該入出力指定情報を第1の記憶手段に登録する
登録制御手段と、前記第1の記憶手段に登録された入出
力指定情報で指定された入出力の状態をサイクリックに
サンプルするサンプル制御手段と、前記サンプル制御手
段でサンプルされた入出力の状態を過去一定回数分だけ
記憶する第2の記憶手段と、前記第2の記憶手段に記憶
された各サンプル回の入出力状態を時間軸に沿って時系
列的に表示する画像表示手段と、からなる時系列モニタ
手段と;ラダー図モニタ手段と;前記ラダー図モニタ手
段によるモニタ状態から前記時系列モニタ手段によるモ
ニタ状態に移行するモニタ移行手段と;を具備すること
を特徴とするプログラマブル・コントローラ。
1. A registration control means for registering the input / output designation information in a first storage means in response to a key input operation for input / output designation, and an input / output registered in the first storage means. Sample control means for cyclically sampling the input / output state designated by the designation information; second storage means for storing the input / output state sampled by the sample control means a certain number of times in the past; Image display means for displaying the input / output states of each sample times stored in the second storage means in time series along a time axis; time series monitor means; ladder diagram monitor means; and ladder diagram monitor A programmable controller, comprising: monitor transition means for transitioning from the monitor state by the means to the monitor state by the time-series monitor means.
JP5312094A 1993-12-13 1993-12-13 Programmable controller Expired - Lifetime JP2653346B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5312094A JP2653346B2 (en) 1993-12-13 1993-12-13 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5312094A JP2653346B2 (en) 1993-12-13 1993-12-13 Programmable controller

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP59099522A Division JPS60243517A (en) 1984-05-17 1984-05-17 Programmable controller

Publications (2)

Publication Number Publication Date
JPH0728509A true JPH0728509A (en) 1995-01-31
JP2653346B2 JP2653346B2 (en) 1997-09-17

Family

ID=18025169

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5312094A Expired - Lifetime JP2653346B2 (en) 1993-12-13 1993-12-13 Programmable controller

Country Status (1)

Country Link
JP (1) JP2653346B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113443A (en) * 2008-11-05 2010-05-20 Denso Wave Inc Robot controller
JP2013054784A (en) * 2012-12-18 2013-03-21 Denso Wave Inc Robot controller
JP2013054636A (en) * 2011-09-06 2013-03-21 Jtekt Corp Monitoring device for programmable controllers
US10702267B2 (en) 2007-03-15 2020-07-07 Ethicon Llc Surgical stapling instrument having a releasable buttress material
US10888330B2 (en) 2008-02-14 2021-01-12 Ethicon Llc Surgical system
US11234698B2 (en) 2019-12-19 2022-02-01 Cilag Gmbh International Stapling system comprising a clamp lockout and a firing lockout

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3501966B2 (en) 1998-12-14 2004-03-02 シャープマニファクチャリングシステム株式会社 Monitor device for programmable controller
DE112013006837T5 (en) 2013-04-12 2015-12-03 Mitsubishi Electric Corporation Peripheral device for programmable controller and debugging support program
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54102476A (en) * 1978-01-27 1979-08-11 Toyoda Mach Works Ltd Sequence controller monitor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54102476A (en) * 1978-01-27 1979-08-11 Toyoda Mach Works Ltd Sequence controller monitor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10702267B2 (en) 2007-03-15 2020-07-07 Ethicon Llc Surgical stapling instrument having a releasable buttress material
US10888330B2 (en) 2008-02-14 2021-01-12 Ethicon Llc Surgical system
JP2010113443A (en) * 2008-11-05 2010-05-20 Denso Wave Inc Robot controller
JP2013054636A (en) * 2011-09-06 2013-03-21 Jtekt Corp Monitoring device for programmable controllers
JP2013054784A (en) * 2012-12-18 2013-03-21 Denso Wave Inc Robot controller
US11234698B2 (en) 2019-12-19 2022-02-01 Cilag Gmbh International Stapling system comprising a clamp lockout and a firing lockout

Also Published As

Publication number Publication date
JP2653346B2 (en) 1997-09-17

Similar Documents

Publication Publication Date Title
JPH0728509A (en) Programmable controller
US4385367A (en) Sequence block display system
JPS6217244B2 (en)
JPS6211367B2 (en)
JPH051888B2 (en)
JPH1185446A (en) Method for displaying trend graph
JPH06342360A (en) Display control method
JPS63208921A (en) Switch pattern display device
JP3167245B2 (en) Programmable controller operating state monitoring device
JPH0615318Y2 (en) Electronic scheduler
JPH05150810A (en) Operating panel
JPS6112281B2 (en)
JP2596945B2 (en) Character processor
JP3162095B2 (en) Image display control device
JPH01199212A (en) Control system for operating procedure of interactive display device
GB2175112A (en) Sequence control method and apparatus
JPH0444767B2 (en)
JPH0346021A (en) Guidance display device
JPH0193812A (en) System for displaying help screen
KR920001415B1 (en) Maintenance system for switching center
JPH1011260A (en) Intra-window data registration method, recording medium, and computer system
JPH0425553B2 (en)
JPH04215115A (en) Information processor
JPS5968019A (en) Programming device of sequence controller
JPS60201406A (en) Data input device of numerical control device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19961029

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970422

EXPY Cancellation because of completion of term