JPS622325B2 - - Google Patents
Info
- Publication number
- JPS622325B2 JPS622325B2 JP54005469A JP546979A JPS622325B2 JP S622325 B2 JPS622325 B2 JP S622325B2 JP 54005469 A JP54005469 A JP 54005469A JP 546979 A JP546979 A JP 546979A JP S622325 B2 JPS622325 B2 JP S622325B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- data
- sequence
- sequence program
- memory
- 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
Links
Landscapes
- Digital Computer Display Output (AREA)
- Position Input By Displaying (AREA)
Description
本発明は、シーケンスコントローラのメモリ等
に記憶されているシーケンスプログラムを所定の
シンボルパターンに変換してラダーダイアグラム
形式で外部表示するようにしたシーケンス表示装
置に関するもので、その目的とするところは、シ
ーケンスプログラム中に簡単な表示用のデータを
プログラムするだけで、入出力要素の種類に応じ
てシンボルを変更したり、入出力要素の用途を表
示できるようにして、実際のリレー回路図面に近
い表示が行えるようにすることにある。
近年、シーケンスコントローラのメモリに記憶
されているシーケンスプログラムをラダーダイヤ
グラムに変換して外部表示することが行われるよ
うになり、シーケンスプログラムのモニタが多少
容易に行えるようになつた。
しかしながら、従来のシーケンス表示装置にお
いては読出したシーケンスプログラムがテスト命
令であれば接点を表わすパターンを表示し、出力
命令であればリレーを表わすパターンを表示する
ようにしているだけであるため、従来のシーケン
ス表示装置によつて表示されるラダーダイアグラ
ムでは、入力要素が補助リレー接点であるのか押
ボタンスイツチであるのかリミツトスイツチであ
るのか等を全く判別することができず、押ボタン
スイツチやリミツトスイツチ等がそれぞれ固有シ
ンボルで書かれている一般のリレー回路図面に比
べると非常に読みにくい。
また、一般のリレー回路図中には、回路の用
途、入出力要素の名称等が書込まれているが、従
来のシーケンス表示装置ではこれらの付加データ
も表示することができず、表示された回路を理解
するのをより困難にしていた。
本発明はのような従来の問題点に鑑みてなされ
たもので、シーケンスプログラムデータに表示用
のデータが付加されている場合には表示用のデー
タで指定されたシンボルのパターンを表示した
り、表示用データで指定された用途コードを表示
したりすることができるようにしたことを特徴と
するものである。
以下本発明の実施例を図面に基づいて説明す
る。第1図において1はストアードプログラム方
式のシーケンスコントローラを示し、シーケンス
プログラムを記憶するシーケンスメモリ10と、
シーケンスプログラムを実行する演算処理部11
と、押ボタンスイツチPS10、リミツトスイツ
チLS1等の入力要素が接続された入力回路12
と、リレーCR10、ソレノイドSOL13等の出
力要素が接続された出力回路13とによつて構成
されている。
本実施例のシーケンスコントローラにおいては
リレー回路図からシーケンスプログラムを作るよ
うになつており、第1表のような命令語が使用さ
れる。
The present invention relates to a sequence display device that converts a sequence program stored in the memory of a sequence controller into a predetermined symbol pattern and displays it externally in a ladder diagram format. By simply programming simple display data during programming, you can change the symbol depending on the type of input/output element and display the purpose of the input/output element, creating a display that closely resembles the actual relay circuit diagram. The goal is to make it possible. In recent years, sequence programs stored in the memory of sequence controllers have been converted into ladder diagrams and displayed externally, making it easier to monitor sequence programs. However, in conventional sequence display devices, if the read sequence program is a test command, a pattern representing a contact point is displayed, and if the read sequence program is an output command, a pattern representing a relay is displayed. In the ladder diagram displayed by the sequence display device, it is not possible to determine at all whether the input element is an auxiliary relay contact, a pushbutton switch, a limit switch, etc. It is very difficult to read compared to general relay circuit drawings, which are written with unique symbols. In addition, in general relay circuit diagrams, the purpose of the circuit, the names of input/output elements, etc. are written, but conventional sequence display devices cannot display these additional data, and the displayed It made the circuit more difficult to understand. The present invention has been made in view of the conventional problems, and when display data is added to sequence program data, a pattern of symbols specified by the display data is displayed, The present invention is characterized in that it is possible to display a usage code specified in the display data. Embodiments of the present invention will be described below based on the drawings. In FIG. 1, 1 indicates a stored program type sequence controller, which includes a sequence memory 10 for storing sequence programs;
Arithmetic processing unit 11 that executes a sequence program
and an input circuit 12 to which input elements such as a push button switch PS10 and a limit switch LS1 are connected.
and an output circuit 13 to which output elements such as a relay CR10 and a solenoid SOL13 are connected. In the sequence controller of this embodiment, a sequence program is created from a relay circuit diagram, and command words as shown in Table 1 are used.
【表】
命令語にはテスト命令(TNA、TFA、TNO、
TFO、TNE、TFE)と出力命令(YON)と無効
命令(NOP)とがあり、テスト命令と出力命令
においては、第2図aに示すように1ワードを構
成する16ビツトの内、上位5ビツトに命令コード
をプログラムし、下位11ビツトには入出力要素の
選択を行う入出力アドレスのデータをプログラム
するようになつている。また、無効命令NOPは
表示用のデータをプログラムするのに用いられ、
第2図bに示すように、下位11ビツトのオペラン
ド部の内、上位4ビツトにシンボルパターン変更
用のコードをプログラムし、下位7ビツトに用途
データ表示用のコードをプログラムするようにな
つている。本実施例においては、シンボル変更用
のコードとして第2表に示すような5種類のもの
が、また、用途データ表示用のコードとして第3
表に示すような32種類のものが用意されており、
これらのコードを無効命令のオペランド部にプロ
グラムしておけば、プログラムされたコードに応
じてパターンの変更や用途データの表示が行われ
る。[Table] Command words include test commands (TNA, TFA, TNO,
TFO, TNE, TFE), output instructions (YON), and invalid instructions (NOP).For test instructions and output instructions, the upper 5 of the 16 bits that make up one word are used as shown in Figure 2a. An instruction code is programmed into the bits, and input/output address data for selecting input/output elements is programmed into the lower 11 bits. In addition, the invalid command NOP is used to program data for display,
As shown in Figure 2b, of the lower 11 bits of the operand section, the upper 4 bits are programmed with a code for changing the symbol pattern, and the lower 7 bits are programmed with a code for displaying usage data. . In this embodiment, there are five types of codes for symbol change as shown in Table 2, and a third code for displaying usage data.
There are 32 types available as shown in the table.
If these codes are programmed into the operand portion of an invalid instruction, patterns can be changed and usage data can be displayed in accordance with the programmed codes.
【表】【table】
【表】
このような命令語でプログラムされたシーケン
スプログラムのデータが図略のプログラム書込装
置によつてシーケンスメモリ10内に書込まれた
後、シーケンスコントローラ1の運転が開始され
ると、演算処理部11はシーケンスメモリ10の
異つたメモリアドレスを順番に指定してシーケン
スプログラムを読出し、読出されたシーケンスプ
ログラムの命令語に応じた処理を行う。
すなわち、シーケンスメモリ10から読出され
たシーケンスプログラムがテスト命令であれば、
シーケンスプログラムの下位11ビツトの入出アド
レスデータを入出力回路12,13に送出して入
出力要素の選択を行い、この後、信号線IOBを介
して演算処理部11に送出される選択された入出
力要素からのオンオフ信号を内部に読込んでテス
トを行い、テスト結果を記憶する。また、シーケ
ンスプログラムが出力命令である場合には、入出
力アドレスデータによつて出力要素の選択を行
い、選択した出力要素をオンオフする指令信号を
出力回路に送出する。一方、読出されたシーケン
スプログラムが無効命令NOPである場合には何
らの処理を行わずに次のシーケンスプログラムの
読出しを行う。このため、無効命令NOPのオペ
ランド部に表示用のデータがプログラムされてい
てもシーケンス制御には影響を及ぼさない。
次に本発明にかかるシーケンス表示装置2につ
いて説明する。このシーケンス表示装置2は、指
定された出力要素に関連するシーケンスプログラ
ムを選択して読込み、読込んだシーケンスプログ
ラムをラダーダイアグラムに変換してCRT(陰
極線表示管)に表示するもので、入力要素のオン
オフ状態を表示する機能と表示用のデータによつ
てシンボルパターンを変更したり用途表示を行う
機能を有している。
プログラム読込回路20はデジタルスイツチ
DS1に設定された入出力アドレスに接続された
出力要素に関連したシーケンスプログラムをサー
チするもので、シーケンスメモリ10から読出さ
れるシーケンスプログラムがテスト命令か無効命
令である間は、読出されたシーケンスプログラム
とテスト時に選択された入出力要素のオンオフ状
態とをバツフアメモリ21に順番に書込んで行
き、出力命令が読出されると、読出された出力命
令のオペランド部がデジタルスイツチDS1に設
定された入出力アドレスデータと一致しているか
どうかを判別し、両者が一致している場合には出
力命令とこれに続く無効命令をバツフアメモリ2
1に書込んだ後でシーケンスプログラムの読込み
を停止し、両者が一致していない場合にはバツフ
アメモリ21の記憶内容をクリアして、出力命令
に続くテスト命令と入出力要素のオンオフ信号を
バツフアメモリ21に再び書込んで行く。
今、第3図に示す治具前進の起動回路をモニタ
するものとすると、リレーCR10の入出力アド
レス130をデジタルスイツチDS1に設定して
シーケンス表示装置の運転を開始する。これによ
り、シーケンスメモリ10に記憶されているシー
ケンスプログラムの内、示すリレーCR10に関
連したシーケンスプログラムが読込まれ、これが
入出力要素のオンオフを示す信号とともにバツフ
アメモリ21に記憶される。例えば第4図に示す
ようにリレーCR10に関連するプログラムがシ
ーケンスメモリ10の1000番地から1007番地に記
憶されているものとすれば、この1000番地から
1007番地までのシーケンスプログラムが入出力要
素のオンオフ状態を表わす信号とともにバツフア
メモリ21に書込まれる。第5図はバツフアメモ
リ10内の記憶状態を示し、シーケンスプログラ
ムデータの後に入出力要素のオンオフ状態を示す
1と0が記憶されている。また、リレーCR10
に関連するシーケンスプログラムには、表示用の
データがプログラムされた無効命令NOPもプロ
グラムされており、この無効命令NOPもバツフ
アメモリ21に記憶される。
リフレツシユメモリ22とキヤラクタジエネレ
ータ23とタイミング信号発生回路24とによつ
て構成される回路は、リフレツシユメモリ22に
書込まれたデータに応じたパターンデータを映像
信号発生回路25に送出し、リフレツシユメモリ
22に書込まれたデータに応じたパターンを
CRT画面上に表示するもので、数字や大文字の
アルフアベツトを表示する場合には表示したい数
字やアルフアベツトをアスキーコード(ASCll
CODE)に変換したデータをリフレツシユメモリ
22に書込み、リレー接点やリミツトスイツチ等
のパターンを表示したい場合には後述するような
特別なコードをリフレツシユメモリ22に書込む
ようになつている。
本実施例では、第6図に示すようにCRTの表
示画面を8行7列の56の表示エリアに分割し、1
つの表示エリアに、シンボルパターンと入出力ア
ドレスと用途データとを表示するようになつてお
り、表示エリアのそれぞれは、第7図に示すよう
に6行4列の24の小ブロツクに分割され、それぞ
れのブロツク毎に表示する数字やパターンを指定
できるようになつている。このため、リフレツシ
ユメモリ22には48×28個の記憶エリアが設けら
れており、C00〜C75までのコラムアドレス
とR00〜R63までのローアドレスによつてア
ドレス指定が行われるようになつている。
接点のシンボル等入出力要素を表示するシンボ
ルは第7図に示されているように複数のパターン
の組合せによつて表示するようにしているため、
本実施例においては、リフレツシユメモリ22に
小文字のアルフアベツトa〜tに対応するアスキ
ーコードが書込まれると第8図に示すようなパタ
ーンが表示されるように、キヤラクタジエネレー
タ23が設計されており、これらのコードを組合
せてリフレツシユメモリ22に書込むことによつ
て所定のシンボルが表示できる。例えば、表示画
面のコラムC1、ローR2の表示エリアに第7図
のような表示を行う場合には、リフレツシユメモ
リ22のC10,R21〜C15,R22の記憶
エリアに第9図に示すようなデータを書込めばよ
い。
表示制御回路26は、バツフアメモリ21に書
込まれたシーケンスプログラムのデータと表示用
のデータとを読出し、バツフアメモリ21に書込
まれたシーケンスプログラムを表示するためのデ
ータをリフレツシユメモリ22に書込むためのも
のでマイクロコンピユータによつて構成されてい
る。メモリ27には表示制御回路26の動作を制
御するためのコントロールプログラムが記憶され
ている外、シーケンスプログラムの命令語に対応
したシンボルパターンと無効命令で指定されたシ
ンボルパターンおよび無効命令で指定された用途
コードを表示するために、第10図に示すような
変換テーブルが記憶されている。
この変換テーブルには、命令語に対応した表示
データと、シンボル変更用コードに対応した表示
データと、用途表示コードに対応した表示データ
とが記憶されており、これらの内の所定の表示デ
ータがシーケンスプログラムに応じて表示制御回
路26によつて読出されてリフレツシユメモリ2
2の適当な記憶エリアに書込まれ、入出力要素の
シンボルや用途コードの表示が行われる。
第11図は表示制御回路26の動作を制御する
コントロールプログラムを示すフローチヤート
で、デジタルスイツチDS1によつて指定された
出力要素に関連したシーケンスプログラムの読込
みが完了し、プログラム読込回路20から読込完
了信号RIFが送出されると、このプログラムを実
行する。
まず最初にステツプ30で、バツフアメモリの
読出しアドレスを指定する読出カウンタROCを
リセツトした後、画面上に母線が表示されるよう
な表示データをリフレツシユメモリ22に書込み
ステツプ31へ移行する。ステツプ31になると
読出カウンタROCに1を加算して計数値を1に
し、ステツプ32で読出カウンタROCによつて
指定されたアドレスに記憶されているシーケンス
プログラムのデータを読出す。この場合には第5
図に示すように、バツフアメモリ21の1番地に
TN0110のプログラムデータが記憶されているた
め、このTN0110のプログラムデータが読出され
る。
ステツプ33になると、データが読出されたか
どうかを判別し、データが読出されなければ図略
のメインルーチンへ復帰して待期状態となり、こ
の場合のようにデータが読出されればステツプ3
4へ移行する。ステツプ34は読出されたシーケ
ンスプログラムが無効命令NOPであるかどうか
を判別するステツプで、無効命令NOPである場
合にはステツプ34からステツプ42へ移行し、
無効命令NOPでない場合にはステツプ35へ移
行する。この場合には無効命令NOPでないので
ステツプ35へ移行する。
ステツプ35は表示エリアを設定するエリア
で、最初はコラムアドレスC1、ローアドレスR
1の表示エリアが設定される。このようにして表
示エリアの設定が完了すると、ステツプ36へ移
行して命令語の解読が行われ、ステツプ37で、
解読された命令語に応じたシンボルパターンを表
示するためのデータをリフレツシユメモリ22に
書込む。このデータの書込みは第10図に示す変
換テーブルを参照して行われ、この場合のように
命令語がTNOである場合には、常開接点を表示
するためのaaghaaのデータが、設定された表示
エリア内の上から3列目の6個の表示ブロツクに
対応したリフレツシユメモリ22内の記憶エリア
に書込まれる。なお、リフレツシユメモリ22へ
書込みを行う場合には、ゲート回路28に切換指
令信号を送出してリフレツシユメモリ22が表示
制御回路26によつてアクセスできるようにして
いる。
続いて、ステツプ38になると、シーケンスプ
ログラムデータの入出力アドレス部のデータを8
進数に変換し、ステツプ39で、変換した8進数
の入出力アドレスのデータを、コラムアドレスC
1、ローアドレスR1の表示エリアの上から2列
目の表示ブロツクの左から4個の表示ブロツクに
対応した記憶エリアに書込む。
さらに、ステツプ40になると、シーケンスプ
ログラムと共に読込まれた、入出力要素のオンオ
フを示すデータによつて入出力要素のオンオフを
判定し、オンである場合には、指定された表示エ
リアの上から2列目のブロツクの右端のブロツク
に*のマークを表示するためのデータをリフレツ
シユメモリ22に書込み、この後、ステツプ41
へ移行する。ステツプ41は命令語がTNEであ
るかどうかを判別するステツプで、この場合には
TNEではないのでステツプ41からステツプ3
1へ戻る。
ステツプ31へ戻ると、読出しカウンタROC
が歩進され、バツフアメモリ21の2番地に記憶
されているデータが読出される。バツフアメモリ
21の2番地には、NOP1,1のデータが書込
まれているため、ステツプ34からステツプ42
へ移行し、シンボルの変更と、用途表示のための
処理が行われる。
すなわち、ステツプ42になると、無効命令
NOPのオペランド部の上位5ビツトにプログラ
ムされているシンボル変更用のコードデータ0001
を読出し、ステツプ43で、コードデータ0001に
対応する常開の押ボタンスイツチのシンボルを表
示するためのシンボル表示用のデータaaklaaを変
換テーブルから読出し、ステツプ44で、指定さ
れた表示エリアの上から3列目の表示ブロツクに
対応する記憶エリア、すなわちステツプ37で接
点表示用のデータaaghaaの書込まれた記憶エリ
アに読出した表示用のデータaaklaaを書込む。こ
れにより、シーケンスプログラムの命令語によつ
て書込みの行われたaaghaaのデータaaklaaに書
替えられる。
これに続くステツプ45では、無効命令NOP
のオペランド部のデータの内、下位7ビツトに書
込まれている用途表示用のコード0000001を読出
し、ステツプ46で、この読出されたデータ
0000001に対応する表示データKIDOUを変換テー
ブルからサーチする。そして、ステツプ47で用
途表示用コードの最上位桁が1であるかどうかを
判別し、1である場合にはステツプ48へ移行し
て表示データの書込みを行い、0である場合には
ステツプ49へ移行して表示データの書込みを行
う。ステツプ48に移行したときには、現在指定
されている表示エリアの位置する列の右端の表示
エリアに対応した記憶エリアに表示データ
KIDOUが書込まれ、ステツプ49へ移行したと
きには、現在指定されている表示エリアの一番上
の列に対応する記憶エリアに表示データKIDOU
が書込まれる。この場合には最上位桁が1である
ため、ステツプ49へ依行し、現在指定されてい
る表示エリアに対応する記憶エリアに表示データ
KIDOUが書込まれる。
このようにして用途表示用のデータの書込みが
完了すると、ステツプ41を介してステツプ31
へ戻つて3番目のシーケンスプログラムTNE1
30の読出しが行われる。このシーケンスプログ
ラムは無効命令NOPでないため、ステツプ34
からステツプ35へ移行し、表示エリアの指定が
行われる。この場合には、前のシーケンスプログ
ラムがTNO命令であるため、表示エリアは前の
表示エリアの下に設定される。このようにして表
示エリアの設定が終ると前述の場合と同様にして
表示データの書込みが行われる。この場合には、
無効命令NOPのプログラムが付加されていない
ため、シンボルパターンの変更は行われず、接点
のシンボルパターンが表示されることになる。こ
のようにして表示データの書込みが完了すると、
ステツプ41へ移行するが、この場合には命令語
がTNEであるため、ステツプ50を介してステ
ツプ31へ戻る。
ステツプ50は、現在表示データの書込みが行
われている表示エリアの右側の表示エリアに対応
した記憶エリアに、複数の入力要素を並列的に接
続した表示を行わせるための補助的な表示データ
を書込むステツプで、所定のパターンデータをリ
フレツシユメモリ22の該当位置に書込む制御が
行われる。
次に、4番目のシーケンスプログラムTNA1
12が読出されると、表示エリアが1行右にずら
されて表示データの書込みが行われる。この場合
にはこのシーケンスプログラムに続いて無効命令
NOP4,2がプログラムされているため、この
無効命令の表示データ4,2によつてシンボルパ
ターン表示用のデータが常閉のリミツトスイツチ
を表示するデータに変更され、また、LS1の用
途データを付加表示するための表示データLS1
がリフレツシユメモリ22に書込まれる。
さらに、TNA100のシーケンスプログラム
が読出されると、表示エリアが1行だけ右に移行
され、常開の接点表示を行うための表示データの
書込みが行われる。そして、出力命令YON13
0のシーケンスプログラムが読出されると、表示
エリアが1行だけ右にずらされて横線の表示が行
われた後、表示エリアが更に右にずらされ、コラ
ムアドレスC6、ローアドレスR1の表示エリア
に対応する記憶エリアにリレーシンボルと入出力
アドレスの表示を行うための表示データが書込ま
れる。また、この場合には出力命令の後に無効命
令NOPが有り、この無効命令のオペランド部
に、右側の欄外にJIGADの表示を行う用途表示
用のコードプログラムされているため、表示エリ
アの指定が右に移動され、JIGADの表示データ
が移動した表示エリアに該当する記憶エリアに書
込まれる。
上述した動作は、極めて短時間に行われるた
め、デジタルスイツチDS1に出力要素の入出力
アドレスを選定して運転を開始すれば、第12図
に示すリレーダイヤグラムがCRT画面上に瞬時
の内に表示される。
CRT画面に表示されたラダーダイヤグラム
は、押ボタンスイツチ、リミツトスイツチ等がそ
れぞれ固有のシンボルで表示される上、回路の用
途や入力要素の名称も表示され、さらに入力要素
のオンオフ状態も併せて表示される。このため、
故障原因を調べたい場合にはその原因を瞬時に判
別することができる。
例えば、上述した治具前進の起動回路において
起動ボタンを押しても治具が前進しない場合、リ
レーCR10の入出力アドレスをデジタルスイツ
チDS1に設定してモニタを行えば第12図の表
示画面が得られる。この画面を見てLS1がオン
となつていなければ、リミツトスイツチLS1が
誤動作を行こしていることが直ちに分かり、起動
ボタンを押しても、KIDOUと表示された押ボタ
ンスイツチがオンとならなければ、起動用の押ボ
タンスイツチが故障していることが判別できる。
これに対し、従来のように、リレー接点とリレ
ーのシンボルで回路を表示し、入出力アドレスの
みを付加している表示装置ではこのように短時間
で故障判別を行うことはできない。すなわち、従
来のシーケンス表示装置で表示されるラダーダイ
ヤグラムでは、どの接点が、制御機器に設けられ
たリミツトスイツチや操作パネルの押ボタンスイ
ツチに対応するかということは全く知ることがで
きないため、故障箇所を判別するときにはプログ
ラムシート等を参照してどの接点が何に対応して
いるかを逐一調べなければならないからである。
なお、上記実施例においては、無効命令によつ
てシンボルパターンの変更と用途コードの表示と
の両方を行うようにしていたが、どちらか一方だ
けを行うようにした場合でも故障箇所の判別に役
立てることができる。
また、故障箇所の判別を行わない場合には入力
要素のオンオフ状態も表示しなくてもよい。
さらに、上記実施例においては、無効命令を用
いてシンボルパターンの変更と用途コードの表示
を指令するデータをプログラムするようにしてい
たが、シーケンスメモリ10の1ワード当りのビ
ツト数を長くすれば、シーケンスプログラムデー
タと同一のアドレスに、これらのデータをプログ
ラムすることもできる。
以上述べたように、本発明のシーケンス表示装
置においては、シーケンスコントローラのメモリ
から読出したシーケンスプログラムのデータと、
このシーケンスプログラムに付加されている表示
用のデータとの両方によつて表示用のパターンデ
ータを生成して表示を行うようにしているため、
シーケンスプログラム中に簡単なデータを追加す
るだけで、入出力要素のシンボルを変更したり、
用途コード等の付加データを表示したりすること
が可能となる。このため、簡単なプログラムを付
加するだけで表示装置の画面上に出力されるラダ
ーダイヤグラムを実際のリレー回路図に近い形に
することができ、故障診断等のモニタが行いやす
い利点がある。[Table] After the data of the sequence program programmed with such command words is written into the sequence memory 10 by a program writing device (not shown), when the operation of the sequence controller 1 is started, the operation is started. The processing unit 11 sequentially designates different memory addresses in the sequence memory 10, reads out the sequence program, and performs processing according to the instruction words of the read sequence program. That is, if the sequence program read from the sequence memory 10 is a test instruction,
The input/output address data of the lower 11 bits of the sequence program is sent to the input/output circuits 12 and 13 to select the input/output element, and then the selected input/output address data is sent to the arithmetic processing unit 11 via the signal line IOB. The on/off signal from the output element is read internally, a test is performed, and the test result is stored. Further, if the sequence program is an output command, an output element is selected based on input/output address data, and a command signal to turn on/off the selected output element is sent to the output circuit. On the other hand, if the read sequence program is an invalid instruction NOP, the next sequence program is read without performing any processing. Therefore, even if display data is programmed into the operand portion of the invalid instruction NOP, it does not affect sequence control. Next, the sequence display device 2 according to the present invention will be explained. This sequence display device 2 selects and reads a sequence program related to a specified output element, converts the read sequence program into a ladder diagram, and displays it on a CRT (cathode ray display tube). It has the function of displaying on/off status and the function of changing the symbol pattern or displaying the purpose depending on the display data. The program reading circuit 20 is a digital switch.
It searches for a sequence program related to the output element connected to the input/output address set in DS1, and while the sequence program read from the sequence memory 10 is a test instruction or an invalid instruction, the read sequence program and the on/off state of the input/output element selected during the test are sequentially written into the buffer memory 21, and when the output command is read, the operand part of the read output command is set to the input/output state set in the digital switch DS1. It is determined whether they match the address data, and if they match, the output command and the following invalid command are transferred to the buffer memory 2.
1, stop reading the sequence program, and if the two do not match, clear the memory contents of the buffer memory 21, and write the test command following the output command and the on/off signal of the input/output element to the buffer memory 21. Write again. Now, if the starting circuit for advancing the jig shown in FIG. 3 is to be monitored, the input/output address 130 of the relay CR10 is set to the digital switch DS1 and the operation of the sequence display device is started. As a result, among the sequence programs stored in the sequence memory 10, the sequence program related to the indicated relay CR10 is read, and this is stored in the buffer memory 21 together with the signal indicating the on/off of the input/output element. For example, if the program related to relay CR10 is stored in addresses 1000 to 1007 of sequence memory 10 as shown in FIG.
The sequence program up to address 1007 is written into the buffer memory 21 along with signals representing the on/off states of the input/output elements. FIG. 5 shows the storage state in the buffer memory 10, in which 1 and 0 indicating the on/off state of input/output elements are stored after the sequence program data. Also, relay CR10
An invalid instruction NOP in which display data is programmed is also programmed in the sequence program related to the above, and this invalid instruction NOP is also stored in the buffer memory 21. A circuit constituted by a refresh memory 22, a character generator 23, and a timing signal generation circuit 24 sends pattern data corresponding to the data written in the refresh memory 22 to a video signal generation circuit 25. , a pattern according to the data written in the refresh memory 22.
This is something that is displayed on a CRT screen, and if you want to display numbers or uppercase alphanumeric characters, you can write the numbers or alphanumeric characters you want to display in ASCII code (ASCII code).
If it is desired to display patterns of relay contacts, limit switches, etc., a special code as described later is written in the refresh memory 22. In this embodiment, the CRT display screen is divided into 56 display areas of 8 rows and 7 columns, as shown in FIG.
Symbol patterns, input/output addresses, and usage data are displayed in two display areas, and each display area is divided into 24 small blocks arranged in 6 rows and 4 columns as shown in Figure 7. It is now possible to specify the numbers and patterns to be displayed for each block. For this reason, the refresh memory 22 is provided with 48 x 28 storage areas, and addresses are specified using column addresses from C00 to C75 and row addresses from R00 to R63. . Symbols for displaying input/output elements such as contact symbols are displayed by a combination of multiple patterns as shown in Figure 7.
In this embodiment, the character generator 23 is designed so that when an ASCII code corresponding to a lowercase alphabet a to t is written into the refresh memory 22, a pattern as shown in FIG. 8 is displayed. By combining these codes and writing them into the refresh memory 22, a predetermined symbol can be displayed. For example, when displaying the display area of column C1 and row R2 on the display screen as shown in FIG. Just write the data. The display control circuit 26 reads data of the sequence program written in the buffer memory 21 and data for display, and writes data for displaying the sequence program written in the buffer memory 21 to the refresh memory 22. It is composed of a microcomputer. The memory 27 stores a control program for controlling the operation of the display control circuit 26, as well as a symbol pattern corresponding to the command word of the sequence program, a symbol pattern specified by the invalid command, and a control program for controlling the operation of the display control circuit 26. In order to display the usage code, a conversion table as shown in FIG. 10 is stored. This conversion table stores display data corresponding to the command word, display data corresponding to the symbol change code, and display data corresponding to the usage display code. It is read out by the display control circuit 26 according to the sequence program and stored in the refresh memory 2.
2, and the symbols and usage codes of input/output elements are displayed. FIG. 11 is a flowchart showing a control program that controls the operation of the display control circuit 26, and the reading of the sequence program related to the output element specified by the digital switch DS1 is completed, and the reading from the program reading circuit 20 is completed. This program is executed when the signal RIF is sent. First, in step 30, the read counter ROC that specifies the read address of the buffer memory is reset, and then display data such as the bus line displayed on the screen is written into the refresh memory 22, and the process moves to step 31. At step 31, 1 is added to the read counter ROC to make the count value 1, and at step 32, the data of the sequence program stored at the address specified by the read counter ROC is read out. In this case, the fifth
As shown in the figure, at address 1 of buffer memory 21,
Since the program data of TN0110 is stored, this program data of TN0110 is read out. At step 33, it is determined whether the data has been read out. If the data has not been read out, the process returns to the main routine (not shown) and enters a waiting state; if the data has been read out, as in this case, the process returns to step 3.
Move to 4. Step 34 is a step for determining whether or not the read sequence program is an invalid instruction NOP. If it is an invalid instruction NOP, the process moves from step 34 to step 42.
If the instruction is not an invalid instruction NOP, the process moves to step 35. In this case, since the instruction is not an invalid instruction NOP, the process moves to step 35. Step 35 is an area for setting the display area. Initially, column address C1 and row address R are set.
1 display area is set. When the setting of the display area is completed in this way, the process moves to step 36, where the command word is decoded, and in step 37,
Data for displaying a symbol pattern according to the decoded command word is written into the refresh memory 22. Writing of this data is performed with reference to the conversion table shown in Figure 10, and when the instruction word is TNO as in this case, the data of aaghaa to display the normally open contact is set. The data is written to storage areas in the refresh memory 22 corresponding to the six display blocks in the third column from the top in the display area. When writing to the refresh memory 22, a switching command signal is sent to the gate circuit 28 so that the refresh memory 22 can be accessed by the display control circuit 26. Next, at step 38, the data in the input/output address part of the sequence program data is set to 8.
Convert it to a base number, and in step 39, convert the converted octal input/output address data to column address C.
1. Write to the storage area corresponding to the four display blocks from the left of the display block in the second column from the top of the display area of the row address R1. Furthermore, at step 40, the on/off of the input/output element is determined based on the data indicating the on/off of the input/output element read together with the sequence program, and if the input/output element is on, the specified display area is The data for displaying the * mark in the rightmost block of the block in the column is written to the refresh memory 22, and then step 41 is performed.
Move to. Step 41 is a step to determine whether the instruction word is TNE, and in this case,
Since it is not TNE, step 41 to step 3
Return to 1. Returning to step 31, the read counter ROC
is incremented, and the data stored at address 2 of buffer memory 21 is read out. Since the data of NOP1, 1 has been written to address 2 of the buffer memory 21, steps from step 34 to step 42 are performed.
The process moves to change the symbol and display the purpose. That is, when step 42 is reached, the invalid instruction
Code data 0001 for symbol change programmed in the upper 5 bits of the operand part of NOP
In step 43, symbol display data aaklaa for displaying the symbol of the normally open pushbutton switch corresponding to code data 0001 is read out from the conversion table, and in step 44, the symbol display data aaklaa is read from the conversion table from above the specified display area. The read display data aaklaa is written into the storage area corresponding to the display block in the third column, that is, the storage area where the contact display data aaghaa was written in step 37. As a result, data aaghaa written by the instruction word of the sequence program is rewritten to data aaklaa. In the following step 45, the invalid command NOP
The code 0000001 for displaying the usage written in the lower 7 bits of the data in the operand part of is read out, and in step 46, this read data is read out.
Search the conversion table for display data KIDOU corresponding to 0000001. Then, in step 47, it is determined whether the most significant digit of the usage display code is 1. If it is 1, the process moves to step 48 to write the display data, and if it is 0, the process moves to step 49. , and write the display data. When the process moves to step 48, display data is stored in the storage area corresponding to the rightmost display area of the column where the currently designated display area is located.
When KIDOU is written and the process moves to step 49, the display data KIDOU is stored in the storage area corresponding to the top row of the currently designated display area.
is written. In this case, since the most significant digit is 1, the process goes to step 49 and the display data is stored in the storage area corresponding to the currently designated display area.
KIDOU is written. When the writing of the data for purpose display is completed in this way, the process proceeds to step 31 via step 41.
Return to the third sequence program TNE1
30 reads are performed. Since this sequence program is not an invalid instruction NOP, step 34 is executed.
The process then moves to step 35, where a display area is specified. In this case, since the previous sequence program is a TNO instruction, the display area is set below the previous display area. Once the display area has been set in this manner, display data is written in the same manner as in the case described above. In this case,
Since the invalid command NOP program is not added, the symbol pattern will not be changed and the symbol pattern of the contact will be displayed. Once the display data has been written in this way,
The process moves to step 41, but in this case, since the command word is TNE, the process returns to step 31 via step 50. Step 50 stores auxiliary display data for displaying a plurality of input elements connected in parallel in a storage area corresponding to the display area on the right side of the display area where display data is currently being written. In the writing step, control is performed to write predetermined pattern data into the corresponding position of the refresh memory 22. Next, the fourth sequence program TNA1
When 12 is read out, the display area is shifted one line to the right and display data is written. In this case, this sequence program is followed by an invalid instruction.
Since NOP4 and 2 are programmed, the display data 4 and 2 of this invalid command change the symbol pattern display data to data that displays a normally closed limit switch, and additionally displays the usage data of LS1. Display data LS1 for
is written into the refresh memory 22. Further, when the sequence program of the TNA 100 is read out, the display area is shifted to the right by one line, and display data for displaying a normally open contact is written. And output command YON13
When the sequence program 0 is read out, the display area is shifted to the right by one line to display a horizontal line, and then the display area is further shifted to the right to display the display area at column address C6 and row address R1. Display data for displaying relay symbols and input/output addresses is written into the corresponding storage area. In addition, in this case, there is an invalid instruction NOP after the output instruction, and the operand part of this invalid instruction is programmed with a code for displaying the purpose of displaying JIGAD in the right margin, so the display area is specified on the right. , and the JIGAD display data is written to the storage area corresponding to the moved display area. The above operation is performed in an extremely short time, so if you select the input/output address of the output element on digital switch DS1 and start operation, the relay diagram shown in Figure 12 will be displayed on the CRT screen instantly. be done. In the ladder diagram displayed on the CRT screen, pushbutton switches, limit switches, etc. are each displayed with a unique symbol, and the purpose of the circuit and the name of the input element are also displayed, as well as the on/off status of the input element. Ru. For this reason,
If you want to investigate the cause of a failure, you can instantly determine the cause. For example, if the jig does not move forward even if the start button is pressed in the start circuit for moving the jig forward described above, the display screen shown in Figure 12 can be obtained by setting the input/output address of relay CR10 to digital switch DS1 and monitoring. . If you look at this screen and LS1 is not turned on, you will immediately know that the limit switch LS1 is malfunctioning, and if the pushbutton switch labeled KIDOU does not turn on even if you press the start button, start the switch. It can be determined that the push button switch for the On the other hand, conventional display devices that display circuits using relay contacts and relay symbols and add only input/output addresses cannot determine failures in such a short time. In other words, with ladder diagrams displayed on conventional sequence display devices, it is impossible to know which contacts correspond to limit switches installed in control equipment or pushbutton switches on the operation panel. This is because when making a determination, it is necessary to refer to a program sheet or the like and find out which contact corresponds to what. Note that in the above embodiment, both the symbol pattern change and the usage code are displayed using the invalidation command, but even if only one of them is performed, it can be useful for determining the location of the failure. be able to. Further, when the failure location is not determined, the on/off state of the input element may not be displayed. Furthermore, in the above embodiment, the invalid command was used to program the data for commanding the change of the symbol pattern and the display of the usage code, but if the number of bits per word of the sequence memory 10 is increased, These data can also be programmed to the same address as the sequence program data. As described above, in the sequence display device of the present invention, the sequence program data read from the memory of the sequence controller,
Since the display pattern data is generated and displayed using both the display data added to this sequence program,
By simply adding simple data during a sequence program, you can change the symbols of input and output elements,
It becomes possible to display additional data such as a usage code. Therefore, by simply adding a simple program, the ladder diagram output on the screen of the display device can be made into a form similar to the actual relay circuit diagram, which has the advantage of making it easier to monitor for fault diagnosis and the like.
図面は本発明の実施例を示すもので、第1図は
シーケンス表示装置をシーケンスコントローラに
接続した状態を示すブロツク図、第2図a,bは
シーケンスプログラムデータのビツトパターンを
示す図、第3図は治具前進起動回路のリレー回路
図を示す図、第4図は第3図に示すリレー回路に
対応するシーケンスプログラム、第5図は第4図
に示すシーケンスプログラムがバツフアメモリ2
1に記憶された状態を示す図、第6図はCRT画
面上の表示エリアを示す図、第7図は各表示エリ
ア内における表示ブロツクを示す図、第8図はリ
レー、押ボタンスイツチ等のシンボルを表示する
のに使用されるパターンを示す図、第9図はリフ
レツシユメモリ22に表示データが書込まれた状
態を示す図、第10図はメモリ27に記憶されて
いる変換テーブルを示す図、第11図は表示制御
回路26の動作を示すフローチヤート、第12図
はラダーダイヤグラムが表示されたCRTの画面
を示す図である。
1……シーケンスコントローラ、2……シーケ
ンス表示装置、10……シーケンスメモリ、20
……プログラム読込回路、21……バツフアメモ
リ、22……リフレツシユメモリ、23……キヤ
ラクタジエネレータ、24……タイミング信号発
生回路、25……映像信号発生回路、26……表
示制御回路、27……メモリ、42〜44……表
示用データによつてシンボルを変更するステツ
プ、45〜49……表示用データによつて用途表
示を行うステツプ、CRT……陰極線表示管。
The drawings show an embodiment of the present invention, and FIG. 1 is a block diagram showing a state in which a sequence display device is connected to a sequence controller, FIGS. 2a and 2b are diagrams showing bit patterns of sequence program data, and FIG. 4 shows a sequence program corresponding to the relay circuit shown in FIG. 3, and FIG. 5 shows a sequence program shown in FIG. 4 in the buffer memory 2.
Figure 6 shows the display area on the CRT screen, Figure 7 shows the display blocks in each display area, and Figure 8 shows the status of relays, pushbutton switches, etc. FIG. 9 is a diagram showing a pattern used to display symbols, FIG. 9 is a diagram showing display data written in the refresh memory 22, and FIG. 10 is a diagram showing a conversion table stored in the memory 27. 11 is a flowchart showing the operation of the display control circuit 26, and FIG. 12 is a diagram showing a CRT screen on which a ladder diagram is displayed. 1...Sequence controller, 2...Sequence display device, 10...Sequence memory, 20
... Program reading circuit, 21 ... Buffer memory, 22 ... Refresh memory, 23 ... Character generator, 24 ... Timing signal generation circuit, 25 ... Video signal generation circuit, 26 ... Display control circuit, 27 . . . Memory, 42 to 44 . . . Steps for changing symbols according to display data, 45 to 49 . . . Steps for displaying usage according to display data, CRT . . . Cathode ray display tube.
Claims (1)
れているシーケンスプログラムをラダーダイアグ
ラムで表示するようにしたシーケンス表示装置で
あつて、前記モリから特定の出力要素に関連した
シーケンスプログラムデータをシーケンスプログ
ラムデータに付加されてプログラムされているシ
ーケンス制御には無効な表示用のデータと共に読
出す読出手段と、この読出手段によつて読出され
たシーケンスプログラムデータと表示用データと
の両方に基づいて表示用のパターンデータを発生
するパターンデータ発生手段と、このパターンデ
ータ発生手段から発生されるパターンデータを入
力してシンボルパターンを外部表示する表示手段
とによつて構成され、シーケンスプログラムデー
タからでは表示できないシンボルパターンの表示
あるいは用途表示等を行うようにしたことを特徴
とするシーケンス表示装置。1. A sequence display device that displays a sequence program stored in a memory, etc. of a sequence controller in the form of a ladder diagram, in which sequence program data related to a specific output element is added to the sequence program data from the memory. A readout means for reading together with display data that is invalid for the programmed sequence control, and generation of display pattern data based on both the sequence program data and display data read by the readout means. and a display means that inputs the pattern data generated from the pattern data generating means and externally displays the symbol pattern, and is used to display or use symbol patterns that cannot be displayed from sequence program data. A sequence display device characterized in that it performs display, etc.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP546979A JPS5597635A (en) | 1979-01-19 | 1979-01-19 | Sequence display unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP546979A JPS5597635A (en) | 1979-01-19 | 1979-01-19 | Sequence display unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5597635A JPS5597635A (en) | 1980-07-25 |
| JPS622325B2 true JPS622325B2 (en) | 1987-01-19 |
Family
ID=11612091
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP546979A Granted JPS5597635A (en) | 1979-01-19 | 1979-01-19 | Sequence display unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5597635A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS598075A (en) * | 1982-07-02 | 1984-01-17 | Omron Tateisi Electronics Co | Producer of circuit diagram for programmable controller |
-
1979
- 1979-01-19 JP JP546979A patent/JPS5597635A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5597635A (en) | 1980-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1119326A (en) | Variable format alphanumeric display system | |
| US4736340A (en) | Processor generating control programs for a programmable controller | |
| US3540012A (en) | Crt display editing circuit | |
| JPH0337202B2 (en) | ||
| JPS6217244B2 (en) | ||
| JPS622325B2 (en) | ||
| JP2653346B2 (en) | Programmable controller | |
| JPS6211367B2 (en) | ||
| JPH0640296B2 (en) | Character processor | |
| JP2696590B2 (en) | Input / output method of industrial robot controller | |
| JPS61220004A (en) | Screen display system of numerical controller | |
| JPH0417002A (en) | Sequence program searching system | |
| JPH046005B2 (en) | ||
| JPS6037004A (en) | Programming device | |
| JPS5894011A (en) | Programmable controller | |
| JPS6210804Y2 (en) | ||
| JPS6118195B2 (en) | ||
| JPH0350310B2 (en) | ||
| JPH0443281B2 (en) | ||
| JPS606876Y2 (en) | Dot pattern display device | |
| JPS6037499B2 (en) | sequence display device | |
| JPS5936299B2 (en) | screen display device | |
| JPH0661054B2 (en) | input method | |
| JPS6129907A (en) | Programming device of programmable controller | |
| JPS6118206B2 (en) |