JPS6295603A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS6295603A
JPS6295603A JP60234884A JP23488485A JPS6295603A JP S6295603 A JPS6295603 A JP S6295603A JP 60234884 A JP60234884 A JP 60234884A JP 23488485 A JP23488485 A JP 23488485A JP S6295603 A JPS6295603 A JP S6295603A
Authority
JP
Japan
Prior art keywords
display
instruction
count value
displayed
counter
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
JP60234884A
Other languages
Japanese (ja)
Inventor
Tadashi Inoue
忠 井上
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 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 Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60234884A priority Critical patent/JPS6295603A/en
Publication of JPS6295603A publication Critical patent/JPS6295603A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To automatically display the count value with no monitor operation by adding the executing conditions for display of the count value to an instruction for counting. CONSTITUTION:A controller reads successively the user programs out of a user program memory 5 and executes them. Here it is decided whether the display conditions are satisfied or not if the read instruction is equal to a counter instruction DCNT with which the display conditions can be set. When the display conditions are satisfied, the count value is read out of a working memory 7 and displayed on a console 6 for execution of counting. While only the counting operation is carried out if said conditions are not satisfied. The same procedure is carried out also in case the read instruction is equal to a tier instruction DTiM with which the display conditions can be set.

Description

【発明の詳細な説明】 (発明の分野) この発明は、タイマヤカウンタなどの計数機能命令を使
用可能なプログラマブル・コントローラに関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention This invention relates to programmable controllers capable of using counting function instructions such as timer counters.

(発明の概要) この発明では、予め指定された条件が成立するとともに
、該当するタイマヤカウンタなどの計数値が、自動的に
プログラムコンソールの表示器に表示されるようにした
ものでおる。
(Summary of the Invention) In the present invention, when a pre-specified condition is met, the corresponding count value of a timer counter or the like is automatically displayed on the display of the program console.

(従来技術とその問題点) 従来、タイマヤカウンタなどの計数機能命令を備えたプ
ログラマブル・コン1〜ローラにおいて、現在の計数値
を確認するためには、プログラマブル・コン]・ローラ
本体に接続されたプログラムコンソールにおいて、運転
モードからモニタモードへのモード切替操作を行なった
後、所定のキー操作で所望するタイマヤカウンタなどの
計数値を読出し、これをプログラムコンソールの表示器
に表示させるようにしている。
(Prior art and its problems) Conventionally, in programmable controllers 1 to 1 rollers equipped with counting function instructions such as timer counters, in order to check the current count value, it is necessary to connect the programmable controller to the roller body. After performing a mode switching operation from the operation mode to the monitor mode on the program console, the desired count value of a timer counter, etc. is read out by operating a predetermined key, and this is displayed on the display of the program console. There is.

しかし、このような方法によると、所望のタイマヤカウ
ンタの計数値を表示器に表示させるためには、複雑なキ
ー操作を行なわねばならず、このためキー操作に不馴れ
な現場作業dなどにとっては使い勝手か悪く、必要な時
期に所望のタイマヤカウンタの計数値を容易に確認でき
ないという問題点かおった。
However, according to this method, complicated key operations must be performed in order to display the desired count value of the timer counter on the display, which makes it difficult for field workers who are not familiar with key operations. It was not easy to use, and there were problems in that it was not easy to check the desired count value of the timer counter at the required time.

(発明の目的) この発明の目的は、この種のプログラマブル・コントロ
ーラにおいて、タイマやカウンタの現在計数値を、1)
別なキー操作などを行なうことなく、必要な時期が到来
するとともにコントローラ本体に接続されたプログラム
コンソールの表示器に表示可能とすることにおる。
(Objective of the Invention) The object of the invention is to use a programmable controller of this type to calculate the current count value of a timer or counter by 1)
The purpose is to be able to display the required time on the display of the program console connected to the controller body when the required time arrives, without having to perform any other key operations.

(発明の構成と効果) この発明は上記の目的を達成するために、プログラムカ
ウンタで指定された命令語をユーザプログラムから読み
出づ一命令読出手段と、読み出された命令か、タイマヤ
カウンタなとの計故別1jヒ命令であって、かつ計数値
表示条件が設定可能な命令で必ることを解読する命令解
読手段と、 計数値表示条(Tか設定可能な訂故機能命令の解読に応
答して、指定された表示条件の成立を判定する条件成立
判定手段と、 条件成立の場合には、該当計数値をプログラムコンソー
ルの表示器に表示させる表示制御手段とを特徴とするも
のである。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention includes an instruction reading means for reading an instruction word specified by a program counter from a user program, and a timer counter for reading out an instruction word specified by a program counter. A command deciphering means for deciphering that it is a command that requires a count value display condition to be settable, and a count value display condition (T or a settable error correction function command). It is characterized by a condition fulfillment determining means for determining whether a specified display condition is satisfied in response to the decoding, and a display control means for displaying the corresponding count value on a display of the program console when the condition is satisfied. It is.

このような構成によれば、予めプログラム作成時におい
て、表示条件を設定しておきさえすれば、運転中特別な
キー操作等を行なうことなく、該当条件の成立とともに
、タイマやカウンタの計数値をコントローラ本体に接続
されたプログラムコンソールの表示器に自動的に表示さ
せることができる。
According to such a configuration, as long as the display conditions are set in advance when creating a program, the count values of the timer and counter can be displayed as soon as the relevant conditions are met, without any special key operations during operation. It can be automatically displayed on the display of the program console connected to the controller main body.

(実施例の説明) 第1図はこの発明が適用されるプログラマブル・コント
ローラ全体のハードウェア構成を示すブロック図である
(Description of Embodiments) FIG. 1 is a block diagram showing the overall hardware configuration of a programmable controller to which the present invention is applied.

同図においてCPU1はマイクロプロセッサを主体とし
て構成されており、システムプログラムメモリ2に記′
nされた各種のシステムプログラムを実行することによ
って、プログラマブル・コントローラとしての基本的な
機能のはかに、各種のシステムサービス機能を実現可能
になされている。
In the figure, the CPU 1 is mainly composed of a microprocessor, and is stored in the system program memory 2.
By executing various system programs, it is possible to perform various system service functions in addition to the basic functions of a programmable controller.

ここで、プログラマブル・コントローラとしての基本的
な機能とは、入出力回路3から取込んだ入力データを、
入出カメモリ4の入カニリアに書込む入力更新機能、入
出カメモリ4の入出力データなどを参照して、ユーザプ
ログラムメモリ5からプログラムカウンタに応じて読み
出された命令を逐次実行し、その実行結果て入出カメモ
リ4の該当出力データを出替える命令実行機能、命令実
行の結果書替か終了した入出カメモリ4の出力データを
、入出力回路3から外部へと送出する出力更新機能など
である。
Here, the basic function as a programmable controller is to input data taken in from the input/output circuit 3,
With reference to the input update function that writes to the input canister of the input/output memory 4, the input/output data of the input/output memory 4, etc., instructions read out from the user program memory 5 according to the program counter are executed sequentially, and the execution results are These functions include an instruction execution function that replaces the corresponding output data of the input/output memory 4, and an output update function that sends the output data of the input/output memory 4 that has been rewritten or completed as a result of instruction execution from the input/output circuit 3 to the outside.

また、システムサービス機能の代表的なものとしては、
プログラムコンソール6のキー操作で形成されたユーザ
プログラムを、ユーザプログラムメモリ5に書込むプロ
グラム機能1人出力メモリ4の入出力データやタイマ、
カウンタなどの計数1直データを5売出し、これをユー
ザプログラムメモリ5に記憶されたユーザプログラムと
関連付(ブて、プログラムコンソール6の表示器に表示
させるモニタ機能とを挙げることができる。
In addition, typical system service functions include:
A program function that writes a user program formed by key operations on the program console 6 to the user program memory 5.Input/output data of the output memory 4, timer,
An example of this function is a monitoring function in which one-time count data of a counter or the like is displayed in association with a user program stored in the user program memory 5 (and displayed on the display of the program console 6).

そして、従来のプログラマブル・コントローラにおいて
、カウンタやタイマの現在値を確認するには、このモニ
タ機能を利用して、プログラムコンソール6のキーボー
ドから所定のキー操作を行ない、このキー操作で指定さ
れたタイマヤカウンタの計数値を、プログラムコンソー
ル6の表示器に表示させていたのであるが、これに対し
て本発明にあっては、以上のキー操作を行なうことなく
、運転中一定の表示条件が成立するとともに、自動的に
指定されたタイマやカウンタの計数値が、プログラムコ
ンソール6の表示器に表示されるようにしている。
In conventional programmable controllers, to check the current values of counters and timers, use this monitor function and perform a specified key operation on the keyboard of the program console 6. The counted value of the Maya counter was displayed on the display of the program console 6, but in the present invention, certain display conditions are established during driving without performing the above key operations. At the same time, the automatically designated count values of the timers and counters are displayed on the display of the program console 6.

入出カメモリ4内には、周知の如く入カニリア。As is well known, the input/output memory 4 includes an input/output memory.

出カニリア及び補助リレーエリアなどのほかに、第2図
に示されるように、タイマ番号、カウンタ番号別に、計
数現在値エリアがそれぞれ設けられている。
In addition to the output canister and auxiliary relay areas, as shown in FIG. 2, current count areas are provided for each timer number and counter number.

この例では、各計数値は16ビツトデータで溝成され、
メモリ内には上位、下位8ピッ1−ずつに分けて記憶さ
れている。
In this example, each count value is made up of 16-bit data,
In the memory, the upper and lower 8 pins are stored separately.

第3図に、プログラムコンソール6の外観を示す。同図
に示す如く、プログラムコンソール6のフロントパネル
には、液晶で構成された表示器6a、スライドスイッチ
で構成されたモード切替スイッチ6b、数値キー、命令
キー、ファンクションキーなどを備えたキーボード6C
が設けられており、特にこの発明に関連してキーボード
6Gには新たに表示条件キー61が設けられている。
FIG. 3 shows the appearance of the program console 6. As shown in the figure, the front panel of the program console 6 includes a display 6a composed of a liquid crystal, a mode changeover switch 6b composed of a slide switch, and a keyboard 6C equipped with numerical keys, command keys, function keys, etc.
In particular, in connection with the present invention, a display condition key 61 is newly provided on the keyboard 6G.

そして、この表示条件キー61を利用して、表示条件に
相当する入力接点などを書込むことによって、後述する
タイマやカウンタの自動表示が可能となるのである。
By using the display condition key 61 and writing input contacts corresponding to the display condition, it becomes possible to automatically display a timer or a counter, which will be described later.

例えば、カウンタの計数値をプログラムコンソール6の
表示器6aに、入力接点Cを条件として表示させたい場
合、第4図に示す如く、カウンタDCNHに対して通常
のカウント条件接点A、リセット条件接点Bを設定した
後、その後表示条件キー61を操作して、表示条件とな
る接点Cを書込むわけである。
For example, if you want to display the count value of a counter on the display 6a of the program console 6 using input contact C as a condition, as shown in FIG. After setting, the display condition key 61 is operated to write the contact point C which becomes the display condition.

また、タイマの計数値を、入力接点Eを条件としてプロ
グラムコンソール6の表示器6aに表示させたい場合に
は、第5図に示す如く、タイマDTiMに対して、通常
のタイマ起動条件として接点りを書込んだ後、前述と同
様に表示条件キー61を操作して、表示条件である接点
Eを書込めばよいのでおる。
In addition, if you want to display the count value of the timer on the display 6a of the program console 6 with input contact E as a condition, as shown in FIG. After writing, the display condition key 61 can be operated in the same manner as described above to write the contact point E, which is the display condition.

次に、この実施例に係るプログラマブル・コントローラ
の動作を、第6図、第7図のフローチV−ト及び第8図
〜第11図の表示態様例を参照しながら説明する。
Next, the operation of the programmable controller according to this embodiment will be explained with reference to the flowcharts shown in FIGS. 6 and 7 and display examples shown in FIGS. 8 to 11.

電源投入などによってプログラムがスタートすると、ま
ずイニシャル処理によって各種フラグやレジスタの初期
設定を行なった後(ステップ601)、入力リフレッシ
ュ処理によって、入出力回路3から取込んだ入力データ
を、入出カメモリ4の入カニリアに書込み(ステップ6
02)、次いで周辺装置のサービス処理に移る(ステッ
プ603)。
When a program starts by turning on the power, etc., it first initializes various flags and registers through initial processing (step 601), and then input data taken in from the input/output circuit 3 is transferred to the input/output memory 4 through input refresh processing. Write in the input canister (step 6)
02), then the process moves to peripheral device service processing (step 603).

ここで、プログラムコンソール6のキー掃作によって、
タイマやカウンタの表示クリア指令が与えられていれば
(ステップ6031汚定)、モニタ用表示バッフ1を全
てクリアし、併せてワーキングメモリ7内に設けられた
4個のレジスタR1〜R4を零リセットする(ステップ
6032)。
Here, by sweeping the keys on the program console 6,
If a timer or counter display clear command is given (step 6031 pollution), the monitor display buffer 1 is all cleared and four registers R1 to R4 provided in the working memory 7 are reset to zero. (Step 6032).

そqて、この表示クリア指令が与えられていなければ、
他のサービス処理についてそれぞれ必要な処理を行なう
(ステップ6033)。
Therefore, if this display clear command is not given,
Necessary processing is performed for each of the other service processing (step 6033).

周辺装置のサービス処理が終了すると、続いてプログラ
ムカウンタPCの値を初期値から+1歩進させつつ、ユ
ーザプログラムのフェッチを行ない(ステップ604)
、各フェッチされたユーザ命令について、これが表示条
件が設定可能なカウンタか(DCNT)、あるいは表示
条件が設定可能なタイマか(DT i M>を解読する
(ステップ605.606>。
When the peripheral device service processing is completed, the value of the program counter PC is incremented by one step from the initial value, and the user program is fetched (step 604).
, for each fetched user instruction, decipher whether it is a display conditionable counter (DCNT) or a display conditionable timer (DT i M>) (steps 605, 606>).

ここで、上記何れのカウンタやタイマでもないと解読さ
れると(ステップ605否定、606否定)、読み出さ
れた命令MAに対応した命令実行処理(例えば、LD、
AND、OR等)を行ない、その実行結果によって入出
カメモリ4の出力データを書替え(ステップ607)、
以上の処理をユーザプログラムからフェッチされた命令
語がEND命令となるまで(ステップ608否定)、繰
り返す。
Here, if it is decoded as not being any of the above counters or timers (step 605 negative, 606 negative), the instruction execution process corresponding to the read instruction MA (for example, LD,
AND, OR, etc.) and rewrites the output data of the input/output memory 4 according to the execution result (step 607).
The above process is repeated until the command word fetched from the user program becomes the END command (No in step 608).

そして、ユーザプログラムからフェッチされた命令語が
END命令となれば(ステップ608肯定)、出力リフ
レッシュ処理によって、命令実行の結果書替が終了した
入出カメモリ4内の出力データを、入出力回路3から外
部へと送出する(ステップ609)。
If the instruction word fetched from the user program is an END instruction (Yes at step 608), the output data in the input/output memory 4 that has been rewritten as a result of instruction execution is transferred from the input/output circuit 3 by the output refresh process. It is sent to the outside (step 609).

ここまでの処理は、従来からこの種のプログラマブル・
コントローラにおいてよく知られた処理である。
The processing up to this point has traditionally been done using this type of programmable
This is a well-known process in controllers.

これに対して、ユーザプログラムメモリ5がらユーザプ
ログラムをフェッチした結果(ステップ604)、これ
が表示条件設定可能なカウンタ命令(DCNT)と判定
されるとくステップ605肯定)、続いて当該命令に付
された表示条件が0Nであることの判定が行なわれる(
ステップ61Q)。
On the other hand, as a result of fetching the user program from the user program memory 5 (step 604), it is determined that this is a counter instruction (DCNT) for which display conditions can be set (step 605 is affirmative). It is determined that the display condition is 0N (
Step 61Q).

第4図の例で説明すれば、この表示条件は接点Cでおる
から、接点Cの状態を読出し、これがONであるか否か
を判定するわけでおる。
To explain using the example of FIG. 4, since this display condition is at contact C, the state of contact C is read and it is determined whether it is ON or not.

ここで、表示条件がOFFと判定されれば(ステップ6
10.OFF> 、通常のカウント処理を実行する(ス
テップ611)。
Here, if it is determined that the display condition is OFF (step 6
10. OFF>, normal counting processing is executed (step 611).

このカウント処理では、周知の如く、カウント条件であ
る接点Aの状態を読出し、これがONするたびに、該当
する番号OOOの計数値データに+1を加え次の命令読
出しへと復帰する(ステップ611)。
In this counting process, as is well known, the state of contact A, which is the counting condition, is read out, and each time it is turned ON, +1 is added to the count value data of the corresponding number OOO, and the process returns to the next command reading (step 611). .

これに対して、表示条件がオンと判定されると(ステッ
プ610.ON> 、本発明に係るタイマ。
On the other hand, if it is determined that the display condition is on (step 610.ON>), the timer according to the present invention.

カウンタの表示処理に移る(ステップ70)。The process moves to counter display processing (step 70).

この表示処理では、第7図に示されるようにワーギング
メモリ7に設けられた表示データ個数確認用のレジスタ
R1の内容を参照し、これがR1〉Oでおるか否かを判
定する(ステップ701)。
In this display process, as shown in FIG. 7, the content of the register R1 for confirming the number of display data provided in the warging memory 7 is referred to, and it is determined whether or not R1>O (step 701). ).

ここで、R1=Oと判定されると(ステップ701否定
)、指定されたカウンタ番号に係るT/C計数値データ
(第2図参照)を、プログラムコンソール6の表示器6
aの左端へ表示させる(ステップ702)。
Here, if it is determined that R1=O (No in step 701), the T/C count value data (see FIG. 2) related to the designated counter number is displayed on the display 6 of the program console 6.
It is displayed on the left end of a (step 702).

今仮に、カウンタの計数値を表示させる前の表示器6a
の表示状態が、第8図に示される状態でおると仮定する
。この状態は、曲型的なトレース状態の表示でおる。
For example, the display 6a before displaying the count value of the counter
Assume that the display state of is as shown in FIG. This state is a curved trace state display.

このとき、指定されたカウンタの計数値データを表示器
6aに表示させるべき指令か与えられるとくステップ7
02> 、表示器6aの画面は第8図の状態から第9図
の状態に強制的に切替わり、図示の如く表示器6aの一
番左端に、上段1列にはカウンタ番号(COOO)が、
また下段1列にはその計数値(1234>がそれぞれ表
示されるわけでおる。
At this time, a command to display the count value data of the designated counter on the display 6a is given.Step 7
02>, the screen of the display 6a is forcibly switched from the state shown in FIG. 8 to the state shown in FIG. ,
In addition, the count value (1234>) is displayed in the lower row.

以上の表示処理が終了するとくステップ702)、レジ
スタR1は+1歩進され(ステップ703)、表示器6
aに表示されているデータの個数を記i、αした後(ス
テップ703)、Iだに追加表示された計数データに係
るタイマ、カウンタ番号がレジスタR2〜R4の空いて
いるものへ順に記憶される。
When the above display processing is completed (step 702), the register R1 is incremented by +1 (step 703), and the display 6
After recording the number of data items displayed in a (step 703), the timer and counter numbers related to the additionally displayed count data are stored in the vacant registers R2 to R4 in order. Ru.

このように、プログラムコンソール6でモニタ処理を行
ない、回路をトレースしているような状態でおっても、
T iM/CNT表示処理が開始されると、自動的に表
示画面の切替が行なわれ、最初の素子番号及び計数デー
タが、表示器の左端に表示されるわけでおる。
In this way, even if you are performing monitor processing on the program console 6 and tracing the circuit,
When the TiM/CNT display process is started, the display screen is automatically switched, and the first element number and counting data are displayed on the left end of the display.

一方、ユーザプログラムをフェッチした結果、表示条件
設定可能なタイマ命令か解読されると(ステップ606
向定)、同様に表示条件がONで必るか否かが判定され
る(ステップ612)。
On the other hand, as a result of fetching the user program, if a timer instruction for which display conditions can be set is decoded (step 606
Similarly, it is determined whether the display condition must be ON (step 612).

第5図の例でいえば、表示条件である接点EのON、O
FF状態が判定されるわけである。
In the example of Fig. 5, the display conditions are ON and OFF of contact E.
The FF state is determined.

ここで、表示条件がOFFと判定されれば(ステップ6
12.OFF> 、通常のTiM処理が行なわれる(ス
テップ612)。
Here, if it is determined that the display condition is OFF (step 6
12. OFF>, normal TiM processing is performed (step 612).

このタイマ処理では、周知の如く、所定の基準クロック
が到来することを条件として、第2図に示されるタイマ
の計数値データに+1を加算するわけである(ステップ
612)。
In this timer processing, as is well known, +1 is added to the count value data of the timer shown in FIG. 2 on the condition that a predetermined reference clock arrives (step 612).

一方、表示条件がONと判定されるとくステップ612
.ON> 、前述したTiM/CNT表示処理が再び行
なわれる(ステップ70)。
On the other hand, if it is determined that the display condition is ON, step 612
.. ON>, the TiM/CNT display process described above is performed again (step 70).

この場合、第9図の状態を前提とすれば、表示器6aに
は既に1個計数値データが表示されており(ステップ7
05否定)、シかも既に表示されているカウンタ番号r
ooOJと新たに表示されるタイマ番号rooIJとは
異なるため(ステップ706否定)、それまで表示され
たデータは1つ右へスクロールされ、新たに表示される
タイマの計数値データが表示器6aの一番左端に表示さ
れることとなる(ステップ707)。
In this case, assuming the state shown in FIG. 9, one count value data is already displayed on the display 6a (step 7).
05 negative), the counter number r that is already displayed
Since ooOJ is different from the newly displayed timer number rooIJ (No at step 706), the previously displayed data is scrolled to the right by one position, and the newly displayed timer count value data is displayed on one side of the display 6a. It will be displayed on the far left (step 707).

また、第10図に示される表示状態において、既に表示
されている素子(TOOIまたはC00O)に関して、
新たに表示条件のONが確認されると(ステップ706
肯定)、該当する表示番号に係る計数値データだけの更
新か行なわれ(ステツブ708)、表示データのスクロ
ールは行なわれない。
Furthermore, in the display state shown in FIG. 10, regarding the already displayed elements (TOOI or C00O),
When it is confirmed that the display condition is newly ON (step 706
(Yes), only the count value data related to the corresponding display number is updated (step 708), and the display data is not scrolled.

このように、ユーザプログラムをフェッチした結果、D
CNT命令またはDTiM命令が解読され、かつその表
示条件がONするたびに、新たな計数値データの表示が
行なわれ、このとき既に表示されている素子番号と異な
る素子番号の場合には、データを順次右へスクロールし
ながら、新たな素子番号を表示させ、他方既に表示され
ているものと同一の素子番号の場合には、表示中の計数
値データのみの更新が行なわれるわけである。
In this way, as a result of fetching the user program, D
Every time a CNT command or a DTiM command is decoded and the display condition is turned ON, new count value data is displayed, and if the element number is different from the element number already displayed, the data is A new element number is displayed while sequentially scrolling to the right.On the other hand, if the element number is the same as one already displayed, only the count value data being displayed is updated.

これに対して、第11図に示す如く、3個の素子番号及
び計数値データが既に表示されている状態において、更
に別の素子番号に係る表示条件のONがなされた場合に
は(ステップ705肖定)、表示器の一番右端上部にオ
ーバーフロー表示がなされ(ステップ709)、これに
よりオペレータに対して表示が満杯になったことを知ら
せることができる。
On the other hand, as shown in FIG. 11, when the display condition for another element number is turned ON in a state where three element numbers and count value data are already displayed (step 705 (portrait), an overflow display is displayed at the top right end of the display (step 709), thereby informing the operator that the display is full.

この場合には、プログラムコンソール6において簡単な
表示クリア操作を行なわせる。すると、第6図のフロー
チャートにおいて、DT i M/DCNT表示クリア
と判定され(ステップ6031肯定)、レジスタR1〜
R4は全てクリアされる。
In this case, a simple display clearing operation is performed on the program console 6. Then, in the flowchart of FIG. 6, it is determined that the DT i M/DCNT display is cleared (step 6031 is affirmative), and the registers R1 to
All R4 is cleared.

すると、第11図に示されるオーバーフロー表示は解消
されるとともに、新たに表示条件がオンされた素子番号
に係る計数値データが、第9図と同様にして表示器6a
の一番左端に表示されることとなるのである。
Then, the overflow display shown in FIG. 11 is eliminated, and the count value data related to the element number for which the display condition has been newly turned on is displayed on the display 6a in the same manner as in FIG.
It will be displayed at the far left of the page.

このように、以上の実施例では、表示条件が設定可能な
カウンタ命令(DCNT命令)または表示条件が設定可
能なタイマ命令(DTiM命令)が解読されるたびに、
該当する素子番号に係る計数値データが、自動的にプロ
グラムコンソール6の表示器6a上に表示され、また素
子番号が変わるたびに、既に表示されているデータは順
次右へスクロールされ、これにより表示条件がオンした
順番を確認させることもできる。
In this way, in the above embodiment, each time a counter instruction (DCNT instruction) for which a display condition can be set or a timer instruction (DTiM instruction) for which a display condition can be set is decoded,
The count value data related to the corresponding element number is automatically displayed on the display 6a of the program console 6, and each time the element number changes, the data already displayed is sequentially scrolled to the right. You can also check the order in which conditions are turned on.

更に、同一の素子番号に係る表示条件ONが確認された
場合には、既に表示されている該当素子番号の計数値デ
ータだけの更新が行なわれ、表示器を無駄に使用するこ
とも防止されるはか、表示器が満杯になった場合には、
オーバーフロー表示がなされるため、これに基づき簡単
なりリア操作を行なうだけで、新たな計数値データを表
示させることも可能となるのである。
Furthermore, when it is confirmed that the display condition related to the same element number is ON, only the count value data of the corresponding element number that is already displayed is updated, and unnecessary use of the display device is also prevented. If the display is full,
Since an overflow display is performed, new count value data can be displayed simply by performing a rear operation based on this display.

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

第1図は本発明が適用されるプログラマブル・コントロ
ーラのハードウェア構成を示すブロック図、第2図は入
出カメモリ4内の計数値データエリアの内容を示すメモ
リマツプ、第3図はプログラムコンソールの外観を示す
正面図、第4図は表示条件設定可能なカウンタ命令に対
応した命令シンボルの一例を示す説明図、第5図は表示
条件が設定可能なタイマ命令に関する命令シンボルの一
例を示す説明図、第6図はプログラマブル・コントロー
ラのシステムプログラムの全体を示すゼネラルフローチ
ャート、第7図は本発明に係るliM/CNT表示処理
の詳細を示すフローチャート、第8図はモニタモードに
おける1〜レ一ス動作中の表示例を示す説明図、第9図
はカウンタの計数値データを1個表示させた場合の表示
態様を示す説明図、第10図は同計数値データを2個表
示させた状態における表示態様を示す説明図、第11図
は表示器が満杯になった場合における表示態様を示す説
明図である。 1・・・・・・CPU 2・・・・・・システムプログラムメモリ3・・・・・
・入出力回路 4・・・・・・入出カメモリ 5・・・・・・ユーザプログラムメモリ6・・・・・・
プログラムコンソール 7・・・・・・ワーキングメモリ 6a・・・表示器 第1図 ()ち)゛うムコノ゛ノ1V) 第2図 第3図 第4図       第5図 第6図
Fig. 1 is a block diagram showing the hardware configuration of a programmable controller to which the present invention is applied, Fig. 2 is a memory map showing the contents of the count data area in the input/output memory 4, and Fig. 3 shows the appearance of the program console. 4 is an explanatory diagram showing an example of an instruction symbol corresponding to a counter instruction for which display conditions can be set. FIG. 5 is an explanatory diagram showing an example of an instruction symbol for a timer instruction for which display conditions can be set. Fig. 6 is a general flowchart showing the entire system program of the programmable controller, Fig. 7 is a flowchart showing details of the liM/CNT display processing according to the present invention, and Fig. 8 is a flowchart showing the details of the liM/CNT display processing according to the present invention. An explanatory diagram showing a display example, Fig. 9 is an explanatory diagram showing a display mode when one count value data of the counter is displayed, and Fig. 10 is an explanatory diagram showing a display mode when two count value data of the counter are displayed. FIG. 11 is an explanatory diagram showing a display mode when the display device is full. 1... CPU 2... System program memory 3...
- Input/output circuit 4... Input/output memory 5... User program memory 6...
Program console 7...Working memory 6a...Display (Figure 1) Figure 2 (Figure 3) Figure 4 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] (1)プログラムカウンタで指定された命令語をユーザ
プログラムから読み出す命令読出手段と、読み出された
命令が、タイマやカウンタなどの計数機能命令であって
、かつ計数値表示条件が設定可能な命令であることを解
読する命令解読手段と、 計数値表示条件が設定可能な計数機能命令の解読に応答
して、指定された表示条件の成立を判定する条件成立判
定手段と、 条件成立の場合には、該当計数値をプログラムコンソー
ルの表示器に表示させる表示制御手段と、を具備するこ
とを特徴とするプログラマブル・コントローラ。
(1) An instruction reading means for reading the instruction word specified by the program counter from the user program, and an instruction in which the read instruction is a counting function instruction such as a timer or counter, and the count value display condition can be set. a command decoding means for decoding a counting function command in which a count value display condition can be set, a condition establishment determination means for determining whether a specified display condition is met; A programmable controller comprising: display control means for displaying a corresponding count value on a display of a program console.
JP60234884A 1985-10-21 1985-10-21 Programmable controller Pending JPS6295603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60234884A JPS6295603A (en) 1985-10-21 1985-10-21 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60234884A JPS6295603A (en) 1985-10-21 1985-10-21 Programmable controller

Publications (1)

Publication Number Publication Date
JPS6295603A true JPS6295603A (en) 1987-05-02

Family

ID=16977828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60234884A Pending JPS6295603A (en) 1985-10-21 1985-10-21 Programmable controller

Country Status (1)

Country Link
JP (1) JPS6295603A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277710U (en) * 1988-12-01 1990-06-14
JPH0390904A (en) * 1989-09-01 1991-04-16 Fuji Mach Mfg Co Ltd Sequence controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277710U (en) * 1988-12-01 1990-06-14
JPH0390904A (en) * 1989-09-01 1991-04-16 Fuji Mach Mfg Co Ltd Sequence controller

Similar Documents

Publication Publication Date Title
JPS60262204A (en) Programmable controller
JPS6295603A (en) Programmable controller
JP2954227B2 (en) Information processing method
JPH1185446A (en) Method for displaying trend graph
JP3356662B2 (en) Process data collection method and programmable display device
JP2696590B2 (en) Input / output method of industrial robot controller
JPS6236563B2 (en)
JPH0615318Y2 (en) Electronic scheduler
JPH01244502A (en) Pc program display system
JPS62162105A (en) Flow chart type programmable controller
JPH03105503A (en) Programmable controller
JPS58132809A (en) Programmable controller
JPS6180306A (en) Data input unit of numerical control device
JPH051888B2 (en)
JPH0337024Y2 (en)
JPH0750460B2 (en) Graph display device
JPS62256101A (en) Programmable controller
JPH0578055B2 (en)
JPS6236569B2 (en)
JP2507999B2 (en) Program setting input device for control equipment
JPH0465424B2 (en)
JPS63206802A (en) Programmable controller
JPS63120331A (en) Control system for set-up of window
JPS5894011A (en) Programmable controller
JPS58105302A (en) Illustrating programming device of programmable controller