JP2653346B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2653346B2
JP2653346B2 JP5312094A JP31209493A JP2653346B2 JP 2653346 B2 JP2653346 B2 JP 2653346B2 JP 5312094 A JP5312094 A JP 5312094A JP 31209493 A JP31209493 A JP 31209493A JP 2653346 B2 JP2653346 B2 JP 2653346B2
Authority
JP
Japan
Prior art keywords
input
output
time
ladder diagram
monitor
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.)
Expired - Lifetime
Application number
JP5312094A
Other languages
Japanese (ja)
Other versions
JPH0728509A (en
Inventor
清人 平瀬
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
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 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)

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 monitoring input / output data.

【0002】[0002]

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

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

【0004】[0004]

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

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

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

【0007】[0007]

【課題を解決するための手段】この発明は、上記の目的
を達成するために、ラダー図に示された入出力を選択的
に指定するためのキー入力操作に応答して、当該入出力
指定情報を第1の記憶手段に登録する登録制御手段と、
前記第1の記憶手段に登録された入出力指定情報で指定
された入出力の状態をサイクリックにサンプルするサン
プル制御手段と、前記サンプル制御手段でサンプルされ
た入出力の状態を過去一定回数分だけ記憶する第2の記
憶手段と、前記第2の記憶手段に記憶された各サンプル
回の入出力状態を時間軸に沿って時系列的に表示する時
系列モニタ手段と、 入出力データに関連するプログラム
を表示するラダー図モニタ手段と、前記ラダー図モニタ
手段によるモニタ状態から前記時系列モニタ手段による
モニタ状態に移行するモニタ移行手段と、を具備するこ
とを特徴とする。
According to the present invention, in order to achieve the above object, the input / output shown in a ladder diagram is selectively used.
Registration control means for registering the input / output specification information in the first storage means in response to a key input operation for specifying
Sample control means for cyclically sampling the input / output state specified by the input / output specification information registered in the first storage means; and input / output state sampled by the sample control means for a certain number of times in the past. Second storage means for storing only the respective samples, and each sample stored in the second storage means.
When displaying the input / output status of each time in chronological order along the time axis
Sequence monitoring means and programs related to input / output data
And ladder diagram monitoring means for displaying the following , and monitor transition means for transitioning from the monitoring state by the ladder diagram monitoring means to the monitoring state by the time series monitoring means.

【0008】[0008]

【作用】登録制御手段がラダー図に示された入出力を選
択的に指定するためのキー入力操作に応答して、当該入
出力指定情報を第1の記憶手段に登録して、サンプル制
御手段がその第1の記憶手段に登録された入出力指定情
報で指定された入出力の状態をサイクリックにサンプル
する。そして、そのサンプル制御手段でサンプルされた
入出力の状態を第2の記憶手段が過去一定回数分だけ記
憶して、時系列モニタ手段がその第2の記憶手段に記憶
された各サンプル回の入出力状態を時間軸に沿って時系
列的に表示する。
The registration control means selects the input / output shown in the ladder diagram.
In response to a key input operation for selectively specifying, the input / output specification information is registered in the first storage means, and the sample control means uses the input / output specification information registered in the first storage means. The specified input / output state is sampled cyclically. Then, the second storage means stores the input / output states sampled by the sample control means for a fixed number of times in the past, and the time-series monitoring means stores the input / output states in the second storage means.
The input / output state of each sampled time along the time axis
Display in columns.

【0009】一方、ラダー図モニタ手段が入出力データ
に関連するプログラムを表示するようにする。そして、
モニタ移行手段が、ラダー図モニタ手段によるモニタ状
態から時系列モニタ手段によるモニタ状態に移行する。
On the other hand, ladder diagram monitoring means input and output data
Display programs related to . And
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]

【実施例】以下、本発明に係るプログラマブル・コント
ローラの実施例を図面に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment 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 (general term for an input circuit and an output circuit) 5 including an input interface to which an external input signal is applied and an output interface for sending an external output signal, and a buffer of input / output data corresponding to the input / output device An I / O memory 6 serving as a memory.

【0017】さらに、マイクロプロセッサ1に各種の動
作指令を与えるとともに、ユーザプログラムの作成入力
等に使用されるキーボード7と、モニタ表示等がなされ
る表示装置8とを備える。
Further, the system includes a keyboard 7 used for giving various operation commands to the microprocessor 1 and for creating and 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
User instructions (for example, corresponding to a ladder diagram) are sequentially read from the user program memory 4, arithmetic processing is performed with reference to input / output data stored in the I / O memory 6 according to each user instruction, and the processing result is obtained. Is to update the specified output data of the I / O memory 6.

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

【0021】このようにシステムプログラムメモリ2に
格納されたシステムプログラムをマイクロプロセッサ1
で実行することにより、入力更新処理,ユーザプログラ
ム実行処理,出力更新処理,システムサービス処理等を
サイクリックに行なうものである。
The system program stored in the system program memory 2 is stored in 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.

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

【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. And a sample control means for cyclically sampling the data.

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

【0025】また、表示装置8には、サンプル制御手段
でサンプルされた入出力の状態を過去一定サンプル回数
分だけ記憶する第2の記憶手段(ビデオRAM)として
の機能を設けるとともに、第2の記憶手段に記憶された
各サンプル回の入出力状態を時間軸に沿って時系列的に
表示する画像表示手段としての機能を持たせている。
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 fixed number of times in the past. It has a function as an image display means for displaying the input / output state of each sample stored in the storage means in a time-series manner along the time axis.

【0026】また、キーボード7によって入出力指定を
行なうが、この場合、図3に示す如くの順序でキー操作
するものである。
The 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 has a time-series monitor key 71, types of input / output data, for example, input / output signals T / C of a timer and a counter, input / output signals i / o of a control system.
A selection key 72 for selecting an input / output number, a number key 73 for keying in an input / output number, an entry key 74 for determining 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, these keys 72 to 74 are repeatedly keyed in the order of the selection key 72, the number key 73, and the entry key 74.

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

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

【0031】図4のシステム全体のフローチャートに示
す如く、ステップ(401)のイニシャル処理に続くス
テップ(402)では、キーボード7からのキー入力信
号がマイクロプロセッサ1によって順次読込まれる。
As shown in the flowchart of the whole system in FIG. 4, in a step (402) following the initial processing in the step (401), a 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, and system service processing such as correction of a user program is performed.

【0033】ステップ(404)では、入出力装置5に
与えられている入力データをI/Oメモリ6の入力エリ
アに転送するという入力更新が行なわれる。
In step (404), the input is updated by transferring the input data supplied to the input / output device 5 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) and the key input reading in step (402) is performed. Returning, steps (402) to (406) are repeated until the execution mode is set.

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

【0036】ここで、END命令以外の命令であれば、
ステップ(410)にてその命令を公知のインタプリタ
処理により実行し、次にステップ(411)にてプログ
ラムカウンタPCを歩進し、ステップ(408)の命令
読取にもどる。
Here, if it is an instruction 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 the instruction 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 step (402) for key input reading.

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

【0040】システムサービス処理は図5のフローチャ
ートに示すルーチンで実行され、この実行はマイクロプ
ロセッサ1によって読込んだキー入力信号をすべてワー
キングメモリ3に一時格納してから行われる。
The system service processing is executed by the routine shown in the flowchart of FIG. 5, and this execution is performed after all the key input signals read by the microprocessor 1 are temporarily stored 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の画面の例
えば下部に位置するステータスエリアに、その登録キー
がキーインされた旨表示されて入出力指定を行ない得る
状態となる。
[0042] When the time-series monitor flag F 1 is set, the flow advances to step (502), the status area located below example of the screen of the display device 8, is displayed indicating that the registered key is keyed input and output It is ready to be specified.

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

【0044】そして、これを例えば6回繰り返した後、
終了キー75がキーインされた場合に時系列モニタ登録
処理が終了となり、図4のステップ(404)の入力更
新へ進む。
After repeating this, for example, six times,
When the end key 75 is pressed 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 it is determined in step (501) that the key-in is other than the input / output designation, the flow advances to the routine after step (503).

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

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

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

【0049】ここで、時系列モニタモードフラグF2
セットされていない場合、続くステップ(505)にて
入出力指定情報エリアB1 〜B6 (図6参照)に登録さ
れた入出力データに変化があるか否かを、I/Oメモリ
6に記憶された該当する入出力データの内容に基づいて
チェックする。
[0049] Here, the time-series monitor mode if the flag F 2 is not set, the next step (505) at the input and output data registered in the output specifying information area B 1 .about.B 6 (see FIG. 6) Whether or not there is a change is checked based on the contents 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 two entries for each registered input / output.
A bit FIFO (First In First Out) stack is provided to determine whether data matches before and after each sample.

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

【0052】また、ステップ(505)にて入出力デー
タに変化なしとした場合、ステップ(508)の他のキ
ー入力処理に進む。
If it is determined in step (505) that there is no change in the input / output data, the flow advances to another key input processing in step (508).

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

【0054】このようにしてステップ(508)にてラ
ダーモニタ終了となると、図4のステップ(404)の
入力更新に進む。
When the ladder monitor ends in step (508) in this manner, the flow proceeds to the input update in 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) Is determined, and step (5)
The process proceeds to the time series monitor display process of 07).

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

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

【0058】ここで経過しない場合は終了となり、図5
のステップ(508)の他の入力処理に進む。一方、経
過した場合には外部タイマからのカウントアップ出力が
割込信号としてマイクロプロセッサに加わる。すると、
マイクロプロセッサ1ではタイマフラグが例えば“1”
にセットされる。
If the time does not elapse, the process ends.
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 applied to the microprocessor as an interrupt signal. Then
In the microprocessor 1, the timer flag is, for example, "1".
Is set to

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

【0060】次にステップ(703)に進み、ステップ
(702)にて記憶した入出力データを、キャラクタゼ
ネレータをアクセスするための表示コードに変換する。
Next, proceeding to 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にコード変換された表示コードを送り込む。
At step (704), the 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). Can be specified by the value of the pointer N (1 to 50). Each of the display data areas A 1 to A 50
Can store six input / output data.

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

【0064】なお、コード化された表示データに基づい
て、表示装置8のCRT画面上に“H”表示用の「 ̄」
または“L”用の「_」を表示させる処理については、
周知の如くビデオRAM,キャラクタゼネレータ,CR
Tコントローラ等で行なう。
It should be noted that, based on the coded display data, “ ̄” for displaying “H” is displayed on the CRT screen of the display device 8.
Or for the process of displaying “_” for “L”,
As is well known, video RAM, character generator, CR
This is performed by 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
Determines whether or not completed the input and output data indicated by number input, if not completed, the process returns to step (702), which is specified by the following address B 2 O specifiable information area , The same processing (steps (702) to (704)) is executed, and thereafter the processing for the addresses B 3 to B 6 is completed, and the value of the display area pointer N is changed from “1” to “2”. Update.

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

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

【0068】以後、ステップ(701)〜(706)を
繰り返し実行した結果、表示エリアポインタNの値が
「50」に達したならば、再び画面の左端より各サンプ
リング回の6個の表示データを表示させる制御が行なわ
れる。
Thereafter, 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 transmitted from the left end of the screen. Control for displaying is performed.

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

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

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

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

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

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

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

【0076】[0076]

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

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

【図1】(A),(B)はこの発明を適用したプログラ
マブル・コントローラにおけるモニタ表示の状態説明
図。
FIGS. 1A and 1B are explanatory diagrams 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 operation.

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

【図5】この発明におけるシステムプログラム処理のフ
ローチャート。
FIG. 5 is a flowchart of a system program process 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 a time-series monitor display process 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 to a display data area and a screen state.

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

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

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ラダー図に示された入出力を選択的に指
定するためのキー入力操作に応答して、当該入出力指定
情報を第1の記憶手段に登録する登録制御手段と、 前記第1の記憶手段に登録された入出力指定情報で指定
された入出力の状態をサイクリックにサンプルするサン
プル制御手段と、 前記サンプル制御手段でサンプルされた入出力の状態を
過去一定回数分だけ記憶する第2の記憶手段と、前記第2の記憶手段に記憶された各サンプル回の入出力
状態を時間軸に沿って時系列的に表示する時系列モニタ
手段と、 入出力データに関連するプログラムを表示する ラダー図
モニタ手段と、 前記ラダー図モニタ手段によるモニタ状態から前記時系
列モニタ手段によるモニタ状態に移行するモニタ移行手
段と、 を具備することを特徴とするプログラマブル・コントロ
ーラ。
An input / output shown in a ladder diagram is selectively designated by a finger.
A registration control unit for registering the input / output designation information in the first storage unit in response to a key input operation for specifying the input / output designation information registered in the input / output designation information registered in the first storage unit. a sample control means for sampling the state of the output cyclically, a second storage means for storing the state of the sampled output by said sample control means only past fixed number of times, stored in the second storage means Input and output for each sample
Time-series monitor that displays the status in chronological order along the time axis
Means, ladder diagram monitoring means for displaying a program related to input / output data, and monitor transition means for transitioning from a monitoring state by the ladder diagram monitoring means to a monitoring state by the time-series monitoring means. And a programmable controller.
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 JPH0728509A (en) 1995-01-31
JP2653346B2 true 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 (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
US9740185B2 (en) 2013-04-12 2017-08-22 Mitsubishi Electric Corporation Peripheral device for programmable controller and debug support program
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7669747B2 (en) 2007-03-15 2010-03-02 Ethicon Endo-Surgery, Inc. Washer for use with a surgical stapling instrument
US8573465B2 (en) 2008-02-14 2013-11-05 Ethicon Endo-Surgery, Inc. Robotically-controlled surgical end effector system with rotary actuated closure systems
JP5163428B2 (en) * 2008-11-05 2013-03-13 株式会社デンソーウェーブ Robot controller
JP2013054636A (en) * 2011-09-06 2013-03-21 Jtekt Corp Monitoring device for programmable controllers
JP5445666B2 (en) * 2012-12-18 2014-03-19 株式会社デンソーウェーブ Robot controller
US11234698B2 (en) 2019-12-19 2022-02-01 Cilag Gmbh International Stapling system comprising a clamp lockout and a firing lockout

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
JP3501966B2 (en) 1998-12-14 2004-03-02 シャープマニファクチャリングシステム株式会社 Monitor device for programmable controller
US9740185B2 (en) 2013-04-12 2017-08-22 Mitsubishi Electric Corporation Peripheral device for programmable controller and debug support program
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller
JPWO2017203583A1 (en) * 2016-05-23 2018-07-12 三菱電機株式会社 Programmable logic controller
CN109154803A (en) * 2016-05-23 2019-01-04 三菱电机株式会社 Programmable logic controller (PLC)
CN109154803B (en) * 2016-05-23 2022-04-08 三菱电机株式会社 Programmable logic controller

Also Published As

Publication number Publication date
JPH0728509A (en) 1995-01-31

Similar Documents

Publication Publication Date Title
JP2653346B2 (en) Programmable controller
JPH0337202B2 (en)
JPH051888B2 (en)
JPH1185446A (en) Method for displaying trend graph
JP2758617B2 (en) Keyboard for character string input
JP2635656B2 (en) Display control method
JPH0615318Y2 (en) Electronic scheduler
JPH01199212A (en) Control system for operating procedure of interactive display device
JP3162095B2 (en) Image display control device
JPH1185258A (en) Process data gathering method
JPH0346021A (en) Guidance display device
JP2744528B2 (en) Keyboard input device
JPH0444767B2 (en)
JPH046005B2 (en)
JPH0425553B2 (en)
JPH0193812A (en) System for displaying help screen
JPH1011260A (en) Intra-window data registration method, recording medium, and computer system
JPH05289796A (en) Key input processor
JPH0256604A (en) Programming device for programmable controller
JPS61148542A (en) Maintenance system of data processor
JPH02204792A (en) Crt display device
JPH06175772A (en) Soft key function display device for numerical controller
KR880008668A (en) Multi-User Industrial Surveillance Camera Control System and Method Using Video Matrix
JPH02294870A (en) Communication suppression screen type text editor
KR940027411A (en) Key input device and method of telephone terminal system

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