JP4131095B2 - Programmable controller programming device. - Google Patents
Programmable controller programming device. Download PDFInfo
- Publication number
- JP4131095B2 JP4131095B2 JP2001180177A JP2001180177A JP4131095B2 JP 4131095 B2 JP4131095 B2 JP 4131095B2 JP 2001180177 A JP2001180177 A JP 2001180177A JP 2001180177 A JP2001180177 A JP 2001180177A JP 4131095 B2 JP4131095 B2 JP 4131095B2
- Authority
- JP
- Japan
- Prior art keywords
- branch
- storage area
- programmable controller
- circuit
- mouse
- 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 - Fee Related
Links
Images
Landscapes
- Programmable Controllers (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、プログラマブルコントローラの実行するシーケンスプログラムを、ラダーダイアグラムにより作成するプログラマブルコントローラのプログラミング装置に関する。
【0002】
【従来の技術】
従来、プログラマブルコントローラのプログラミング装置において、ラダーダイアグラム上を構成する各ライン上に分岐回路を作成する際、分岐の始点、終点の設定方法は、図9のように行われていた。
図9において、11はプログラミング装置、12はプログラミング装置11の保守・調整対象のプログラマブルコントローラ、13はプログラミング装置11で作成するラダーダイアグラムの表示画面である。前記表示画面13において、1は分岐および命令群を配置するライン、2は分岐回路を構成する分岐、3は命令群であり、ラダーダイアグラムは前記ライン、分岐、および命令群の組み合わせにより構成される。6は新規に挿入する分岐の始点位置、7は分岐設定途中のカーソル位置であり、前記始点決定後に、終点位置に分岐の片端をドラッグしている状態である。
ところが、従来技術では、前記分岐の始点に対する終点の設定可能な位置に関する制約が陽に情報として与えられないため、終点として想定した位置が実際に設定可能かどうかは、いったん位置指定を実行してからでなければ判断することができない。このためプログラム作成の作業効率が低下する問題があった。
【0003】
これと同じような作業効率が低下するプログラム作成上の問題として、表示画面13(図9)において図13で示すような並列回路を作成する場合においても存在していた。すなわち、プログラマブルコントローラ用シーケンスプログラムには、図13で示すような直列回路と並列回路からプログラムが構成されている。図13において、50は並列回路を作成する前のシーケンスプログラム、51、52は接点命令であり、60は並列分岐回路を作成したシーケンスプログラム、61は並列分岐回路であり、70は並列回路を作成したシーケンスプログラム、71は並列回路である。
そこで、シーケンスプログラム50で並列回路71を作成する時は、従来は、まず接点命令52に対して、並列分岐回路61を作成し、次に前記作成した並列分岐回路61に接点命令51を配置するという方法がとられていた。
ところが、このような従来の方法では、並列回路を作成するために、並列分岐回路を作成する必要があり、その分手間がかかり、プログラムを速やかに作成することができないという問題があった。
【0004】
【発明が解決しようとする課題】
そこで本発明の目的は、これらの課題を解決するためのもので、従来技術のような、分岐の始点に対する終点として想定した位置が実際に設定可能かどうかは位置指定を実行してからでなければ判断することができないといった作業効率の悪いものではなくて、予め分岐の終点の設定可能な位置の方向を示すようにして即座に設定可能かどうかを判断できるようにしたプログラミング装置を提供することにある。
また、並列回路の作成においても、並列分岐回路をわざわざ作成する必要のない、効率良くプログラマブルコントローラ用シーケンスプログラムが作成できるプログラミング装置を提供することにある。
【0005】
【課題を解決するための手段】
前記問題を解決するために、請求項1記載のプログラマブルコントローラのプログラミング装置の発明は、入力装置としてのマウスとCPUと表示装置と記憶領域とを備え、前記表示装置の表示画面上にラダーダイアグラムを作成することによりプログラマブルコントローラ用シーケンスプログラムを作成するプログラマブルコントローラのプログラミング装置であって、前記記憶領域には前記ラダーダイアグラムを構成する分岐情報記憶領域を有する記憶手段と、前記マウスのポインタの位置座標を記憶する記憶領域を有するマウスポインタ位置座標記憶手段と、を備えたプログラマブルコントローラのプログラミング装置において、前記表示画面上のラダーダイアグラムに分岐回路を配置する際、前記分岐回路の分岐の始点を前記マウスでライン上に決定した後、前記表示画面上の前記マウスポインタを移動させることにより、前記分岐情報記憶領域の情報と前記マウスのポインタの位置座標記憶領域の情報と、異なる分岐回路同士が交叉してはならないという回路構成の制約とに基づいて前記分岐の終点の設定可能な位置が存在する範囲を判断し、前記表示画面上で前記分岐の終点の設定可能な位置が前記分岐分岐の前記始点から見て右方向に存在するのであれば右ガイドを、左方向であれば左ガイドを、左右両方向であれば両ガイドの3種類のガイドによって表示する分岐回路設定可能方向表示手段を備えたことを特徴としている。
また、請求項2記載の発明は、同じく、入力装置としてのマウスとCPUと表示装置と記憶領域とを備え、前記表示装置の表示画面上にラダーダイアグラムを作成することによりプログラマブルコントローラ用シーケンスプログラムを作成するプログラマブルコントローラのプログラミング装置であって、前記記憶領域には前記ラダーダイアグラムを構成する分岐情報記憶領域を有する記憶手段と、前記マウスのポインタの位置座標を記憶する記憶領域を有するマウスポインタ位置座標記憶手段と、を備えたプログラマブルコントローラのプログラミング装置において、前記表示画面上のラダーダイアグラムに分岐回路を配置する際、前記分岐回路の分岐の始点を前記マウスでライン上に決定した後、前記表示画面上の前記マウスポインタを移動させることにより、前記分岐情報記憶領域の情報と前記マウスのポインタの位置座標記憶領域の情報と、異なる分岐回路同士が交叉してはならないという回路構成の制約とに基づいて前記分岐の終点の設定可能な位置が存在する範囲を判断し、前記分岐の始点から終点までの設定可能な位置が存在する範囲を、周囲とは異なった表示形態で表示する分岐回路設定可能範囲表示手段を備えたことを特徴としている。
以上の構成により、予め分岐の終点の設定可能な位置の方向又はエリアを示すので、即座に設定可能かどうかを判断でき、したがって作業効率の良いプログラミングが行える。
【0006】
【発明の実施の形態】
以下、本発明の実施例を図に基づいて説明する。
図1は本発明による装置を用いて、ラダーダイアグラムを作成する際の表示画面例である。同図において、1は分岐、命令を配置するライン、2は分岐回路を構成する分岐、3は命令群である。
図2は、本発明におけるプログラマブルコントローラのプログラミング装置の構成を示すブロック図である。図において、21は入力装置(マウス)、22はCPUを含む主制御部、23は記憶領域(メモリ)、24は表示装置である。
記憶領域23内には、本発明により設けられた次の3領域がある。
230は本発明の第1の実施の形態による既存の分岐情報記憶領域であり、主制御部22によって随時、格納および読み込みが行われ、表示装置24にラダーダイアグラムを表示する。
231は本発明の第2の実施の形態によるラダーダイアグラム上の接点命令の位置座標記憶領域であり、同じく主制御部22によって随時、格納および読み込みが行われ、表示装置24にラダーダイアグラムを表示する。
232は第1および第2の実施の形態で用いられるマウスのポインタの位置座標記憶領域であり、入力装置(マウス)21で、マウスのポインタを移動すると、主制御部2によって位置座標が記憶領域に格納される。
図3は、ラダーダイアグラムを作成する際の図1の表示画面を用いて分岐を設定する際の回路構成の制約を説明する図である。図3において、4は既存の分岐、5は新規に設定する分岐である。ラダーダイアグラムを作成する際、異なる分岐回路同士の交叉は認められないという制約がある。交叉を認めると回路構成のロジックが不正となるためである。
この制約に基づいて図3の回路を見ると、図3(A)の(1)、(2)の2つの図はいずれも前記新規分岐5が前記既存分岐4と交叉していないことが分かる。このため上記回路構成の制約は守られていることになり、この新規分岐5は適正なものである。
ところが、図3(B)の(1)、(2)の2つの図はいずれも前記新規分岐が前記既存分岐4と交叉しているのが認められる。すなわち、図3(B)(1)において、既存分岐4と新規分岐5とが点aにおいて交叉しており、また、図3(B)(2)においては、既存分岐4と新規分岐5とが区間b−cにおいて逆向きとなっており、交叉している。このように(B)の(1)においては既存分岐4と新規分岐5が交叉しているため回路構成の制約が守られておらず、ロジックが不正となるので、この新規分岐5は不適正なものである。
本発明はこの制約に着目し、これに基づいて適正なものとなるように方向ガイドを採用するようにしたことが特徴である。
【0007】
図4は本発明による装置を用いて、右方向を示すガイドが表示される分岐の設定例である。8は右方向にのみ分岐の接続可能を表す方向ガイドである。
図4(A)に示すように、新規に分岐を挿入する際に、既存の分岐の分岐点を新規分岐の始点6として指定した場合、前記新規分岐の終点は、異なる分岐回路同士が交叉してはならないという回路構成の制約から始点の右側にのみ設定可能という制約が生じる。そのため、本発明により、図4(B)のように右方向にのみ終点設定可能を意味する方向ガイド8が表示されるようになる。
したがって、オペレータはこの方向ガイド8を見ながら、その指示する方向にカーソル位置7を移動させればよいので、新規分岐の終点が設定可能かどうか考える必要がなくなり、作業効率の良いプログラミングが行える。
前記新規分岐の終点が左側にも設定可能とすると、分岐同士が交叉することになり回路構成のロジックが不正となる。
【0008】
図5は本発明による装置を用いて、左方向を示すガイドが表示される分岐の設定例である。9は左方向にのみ分岐の接続可能を表す方向ガイドである。
図5(A)の状態から、新規に分岐を挿入する際に、既存の分岐の合流点を新規分岐の始点6として指定した場合、前記新規分岐の終点は、異なる分岐回路同士が交叉してはならないという回路構成の制約から始点の左側にのみ設定可能という制約が生じる。そのため、図5(B)のように左方向にのみ終点設定可能を意味する方向ガイド9が表示される。前記新規分岐の終点が右側にも設定可能とすると、分岐同士が交叉することになり回路構成のロジックが不正となる。
【0009】
図6は本発明による装置を用いて、左右両方向を示すガイドが表示される分岐の設定例である。10は左右両方向に分岐の接続可能を表す方向ガイドである。
図6(A)の状態から、新規に分岐を挿入する際に、既存の分岐の分岐点、および合流点とは異なる位置を新規分岐の始点6として指定した場合、前記始点6の左右いずれも終点として設定可能な位置が存在するため、前記新規分岐の終点の方向には回路構成の制約が生じない。そのため、図6(B)のように左右両方向に終点配置可能を意味する方向ガイド10が表示される。
【0010】
図7は図4〜図6の表示を行わせるフローチャートである。
図7において、オペレータは表示装置(図2の24)の表示画面に図9の13のようなラダーダイアグラムを表示させ、分岐作業を開始する。
まず、マウス(図2の21)を用いて新規に設定する分岐の始点を指定する(ステップ1)と、その始点が既存の分岐の分岐始点と点を共有するかどうか「既存の分岐情報記憶領域」(図2の230)へ調べにゆき(ステップ2)、その結果、共有すれば右方向ガイド(図4の8)を表示する(ステップ3)。
一方、ステップ2で分岐始点を共有しなければステップ4へ飛び、その始点が既存の分岐の合流点と点を共有するかどうか調べ(ステップ4)、共有すれば左方向ガイド(図5の9)を表示する(ステップ6)。
さらに、ステップ4で合流点も共有しなければ左右両方向ガイド(図6の10)を表示する。
オペレータはこれらの方向ガイドを参考にしながらマウスで分岐を描き終点までドラッグする(ステップ8)。
そしてこの場合、このドラッグが方向ガイドにしたがってなされたとしても、図4のdのようにドラッグしすぎて既存の分岐と交叉することもありうるので、これとの交叉がないか「既存の分岐情報記憶領域」(図2の230)へ調べにゆき(ステップ9)、交叉していれば分岐は形成せず(ステップ10)、交叉していなければ分岐を形成して(ステップ11)、この分岐作業は終了する。
以上のように、本発明の第1実施の形態によれば、ラダーダイアグラム作成時の分岐の設定において、分岐の始点を決定後に前記分岐の終点の設定可能な位置の方向を、異なる分岐回路同士が交叉してはならないという回路構成の制約に基づいて判断し、右方向、左方向、左右両方向の3種類のガイドを用いて表示するので、終点の設定可能な方向が即座に判断可能となり、作業効率が向上する。
【0011】
なお、上記第1実施の形態では、右方向、左方向、左右両方向の3種類のガイドを用いて表示するようにしているが、この変形例として、始点から終点に至るまでの設定可能な範囲を、図8のようにハッチングで表示して、周囲とは異なった表示形態で表示するようにすれば、オペレータはこの範囲内で終点を設定すればよいのできわめて便利である。
図8(A)に示すように、新規に分岐を挿入する際に、既存の分岐の分岐点を新規分岐の始点6として指定した場合、前記新規分岐の終点は異なる分岐回路同士が交叉してはならないという回路構成の制約から、始点の右側にのみ設定可能という制約が生じる。この制約に基づいて既存の分岐の範囲内のエリア8’の表示(ハッチング)および既存の分岐の範囲外のエリア8”の表示(網点)を行うと、オペレータはこのエリア8’又は8”の範囲でカーソル位置を移動させればよいので、新規分岐の終点が設定可能かどうか考える必要がなくなり、作業効率の良いプログラミングが行える。
図8(B)は新規分岐の始点6を既存の分岐の合流点に指定した場合の表示例である。上記と同じく、新規分岐の終点は異なる分岐回路同士が交叉してはならないという回路構成の制約に基づいて既存の分岐の範囲内のエリア9’の表示(ハッチング)および既存の分岐の範囲外のエリア8”の表示(網点)を行うと、オペレータはこのエリア8’又は8”の範囲でカーソル位置を移動させればよいので、新規分岐の終点が設定可能かどうか考える必要がなくなり、作業効率の良いプログラミングが行える。
図8(C)は左右両方向を示すガイドが表示される分岐の設定例である。新規に分岐を挿入する際に、既存の分岐の分岐点、および合流点とは異なる位置を新規分岐の始点6として指定した場合、前記始点6の左右いずれも終点として設定可能な位置が存在するため、既存の分岐の範囲内のエリア10’の表示(ハッチング)を行うと、オペレータはこのエリア10’の範囲でカーソル位置を移動させればよいので、新規分岐の終点が設定可能かどうか考える必要がなくなり、作業効率の良いプログラミングが行える。
エリアの表示は、ハッチングや網掛けの他、各色のカラー表示などを採用してもよい。
この表示を行わせるフローチャートは本質的に図7と同じであり、異なる点はステップ3,6,7であり、各ステップにおける各ガイドの表示に代えて、既存の分岐点の始点と合流点で囲まれる内側のエリアの表示をハッチング等の表示形態で表示させればよい。
【0012】
次に、本発明の第2の実施の形態を図2および図10〜図12に基づいて説明する。図2において、21は入力装置、22はCPUを含む主制御部、23は記憶領域、24は表示装置であり、本発明の第2の実施の形態により、231のラダーダイアグラム上の接点命令の位置座標記憶領域が設けられ、主制御部22によって随時、格納および読み込みがここに行われ、表示装置24にラダーダイアグラムを表示する。232はマウスのポインタの位置座標記憶領域であり、入力装置21で、マウスのポインタを移動すると、主制御部2によって位置座標が記憶領域に格納される。
図10は図2の表示装置24に表示されるラダーダイアグラムの例であり、A、B、C、Dは接点命令である。41は接点命令Cと接点命令Dの並列回路であり、42は接点命令Cに対する並列分岐回路である。X、Yはそれぞれラダーダイアグラムの左上を原点としたX座標、Y座標を意味する。
図11は図2の記憶領域23に格納されたデータの内容を説明する図であり、接点命令の位置座標記憶領域231は、表示装置24に表示されているラダーダイアグラム中の、各接点命令の表示位置座標データを、X座標とY座標として記憶している。マウスポインタの位置座標記憶領域232は、ラダーダイアグラム中のマウスポインタの表示位置座標データを、X座標とY座標として記憶している。
図12は、図2に示したプログラミング装置を用いて、プログラマブルコントローラ用シーケンスプログラムを作成する手順を示したフローチャートである。
第2の実施の形態によるプログラミング装置を使ってシーケンスプログラムを作成する場合、ロードされた図示しないプログラムによって主制御部22(図2)が動作すると、ラダーダイアグラム中における接点命令のX座標、Y座標を記憶領域231に、マウスポインタのX座標、Y座標を記憶領域232に格納し、入力装置(マウス)21からの入力を待つ(ステップS1)。
選択したい接点命令Aの上にマウスポインタを移動し、マウスボタンによりドラッグする(ステップS2)。
マウスポインタのX座標とY座標と同じ座標の接点命令を、接点命令の位置座標記憶領域231より検索する(ステップS3)。
同じ座標を持つ接点命令があれば、前記ドラッグのまま、並列回路を作成したい接点命令Bの上にマウスポインタを移動する(ステップS8)。
移動したマウスポインタのX座標とY座標を、記憶領域232に格納し(ステップS9)、マウスポインタのX座標とY座標と、同じX座標とY座標の接点命令を、接点命令の位置座標記憶領域31より検索する(ステップS4)。
同じ座標をもつ接点命令があれば、マウスボタンにより前記選択した接点命令Aをドロップ(ステップS5)して、ステップS4で検索した接点命令Bに並列分岐回路を作成し(ステップS6)、ステップS3で選択した接点命令AをステップS6で作成した並列分岐回路上に配置し(ステップS7)、処理は終了する。
これにより、並列回路41と同じ回路が作成される。
以上のように、本発明の第2の実施の形態によれば、選択したい接点命令をマウスによりドラッグし、並列回路を作成したい接点命令のところで、ドラッグした接点命令をドロップすることによって並列回路を容易に作成することができるため、シーケンスプログラム作成の効率が向上する。
【0013】
【発明の効果】
以上述べたように、本発明の第1の実施の形態によれば、ラダーダイアグラム作成時の分岐の設定において、分岐の始点を決定後に前記分岐の終点の設定可能な位置の方向を、異なる分岐回路同士が交叉してはならないという回路構成の制約に基づいて判断し、右方向、左方向、左右両方向の3種類のガイド等を用いて表示することにより、終点の設定可能な方向が即座に判断可能となり、作業効率が向上するなどの効果がある。
また、本発明の第2の実施の形態によれば、選択したい接点命令をマウスによりドラッグし、並列回路を作成したい接点命令のところで、ドラッグした接点命令をドロップすることによって並列回路を容易に作成することができるため、シーケンスプログラム作成の効率が向上するという効果がある。
【図面の簡単な説明】
【図1】本発明が対象とするラダーダイアグラムの表示画面例である。
【図2】本発明におけるプログラマブルコントローラのプログラミング装置の構成を示すブロック図である。
【図3】本発明の第1の実施の形態の基礎となる回路構成の制約説明図である。
【図4】本発明の第1の実施の形態で右方向に設定可能な例である。
【図5】本発明の第1の実施の形態で左方向に設定可能な例である。
【図6】本発明の第1の実施の形態で左右両方向に設定可能な例である。
【図7】図4〜図6の表示を行わせるフローチャートである。
【図8】本発明の第1の実施の形態の変形例である。
【図9】従来のプログラミング装置のラダーダイアグラムにおける新規分岐の作成例である。
【図10】表示装置に表示されるラダーダイアグラムの例である。
【図11】記憶領域(メモリ)に格納されたデータの内容を示す図である。
【図12】第2の実施の形態によるプログラマブルコントローラ用シーケンスプログラムを作成する手順である。
【図13】従来の並列回路の作成手順を示す図である。
【符号の説明】
1 分岐、命令を配置するライン
2 分岐回路を構成する分岐
3 命令群
4 既存の分岐
5 新規分岐
6 新規分岐の始点位置
7 分岐設定途中のカーソル(ドラッグ状態)
8 右方向ガイド
9 左方向ガイド
10 左右両方向ガイド
11 プログラミング装置
12 プログラミング装置11の保守・調整対象のプログラマブルコントローラ
13 プログラミング装置11で作成するラダーダイアグラムの表示画面
21 入力装置
22 主制御部
23 記憶領域
231 接点命令の位置座標記憶領域
232 マウスポインタの位置座標記憶領域
24 表示装置
41 接点命令Cと接点命令Dの並列回路
42 接点命令Cに対する並列分岐回路
50 並列回路を作成する前のシーケンスプログラム
51 接点命令
52 接点命令
60 並列分岐回路を作成したシーケンスプログラム
61 並列分岐回路
70 並列回路を作成したシーケンスプログラム
71 並列回路
A、B、C、D 接点命令
X ラダーダイアグラムの左上を原点としたX座標
Y ラダーダイアグラムの左上を原点としたY座標[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a programmable controller programming apparatus for creating a sequence program executed by a programmable controller using a ladder diagram.
[0002]
[Prior art]
Conventionally, when a branch circuit is created on each line constituting a ladder diagram in a programming device of a programmable controller, a branch start point and end point setting method has been performed as shown in FIG.
In FIG. 9, 11 is a programming device, 12 is a programmable controller to be maintained and adjusted by the
However, in the prior art, restrictions on the position where the end point can be set with respect to the start point of the branch are not explicitly given as information, so whether or not the position assumed as the end point can actually be set is determined once by specifying the position. You cannot judge unless For this reason, there has been a problem that the work efficiency of program creation is lowered.
[0003]
As a problem in creating a program in which the work efficiency is reduced similarly to this, the problem exists when a parallel circuit as shown in FIG. 13 is created on the display screen 13 (FIG. 9). That is, the programmable controller sequence program is composed of a series circuit and a parallel circuit as shown in FIG. In FIG. 13, 50 is a sequence program before creating a parallel circuit, 51 and 52 are contact instructions, 60 is a sequence program that creates a parallel branch circuit, 61 is a parallel branch circuit, and 70 is a parallel circuit. The
Therefore, when the
However, in such a conventional method, in order to create a parallel circuit, it is necessary to create a parallel branch circuit, which is troublesome, and there is a problem that a program cannot be created quickly.
[0004]
[Problems to be solved by the invention]
Therefore, an object of the present invention is to solve these problems, and whether or not the position assumed as the end point with respect to the start point of the branch as in the prior art can actually be set must be performed after the position designation is executed. To provide a programming device that can determine immediately whether or not it is possible to set the end point of the branch by indicating the direction of the position where the end point of the branch can be set. It is in.
Another object of the present invention is to provide a programming device capable of efficiently creating a sequence program for a programmable controller without the need to bother creating a parallel branch circuit when creating a parallel circuit.
[0005]
[Means for Solving the Problems]
In order to solve the above problem, the programmable controller programming device according to
The invention of
With the above configuration, the direction or area of the position where the branch end point can be set is indicated in advance, so it can be determined immediately whether it can be set, and therefore programming with high work efficiency can be performed.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is an example of a display screen when a ladder diagram is created using the apparatus according to the present invention. In the figure, 1 is a branch, a line for arranging instructions, 2 is a branch constituting a branch circuit, and 3 is an instruction group.
FIG. 2 is a block diagram showing the configuration of the programming device of the programmable controller according to the present invention. In the figure, 21 is an input device (mouse), 22 is a main control unit including a CPU, 23 is a storage area (memory), and 24 is a display device.
In the
FIG. 3 is a diagram for explaining the restrictions on the circuit configuration when branching is set using the display screen of FIG. 1 when creating a ladder diagram. In FIG. 3, 4 is an existing branch, and 5 is a branch to be newly set. When creating a ladder diagram, there is a restriction that crossing between different branch circuits is not allowed. This is because if the crossover is recognized, the logic of the circuit configuration becomes illegal.
When looking at the circuit of FIG. 3 based on this restriction, it can be seen that the
However, it is recognized that the new branch intersects with the
The present invention is characterized by paying attention to this restriction and adopting a direction guide so as to be appropriate based on this restriction.
[0007]
FIG. 4 is an example of setting a branch where a guide indicating the right direction is displayed using the apparatus according to the present invention.
As shown in FIG. 4A, when a branch point of an existing branch is specified as the
Therefore, the operator only has to move the
If the end point of the new branch can also be set on the left side, the branches cross each other and the logic of the circuit configuration becomes invalid.
[0008]
FIG. 5 shows an example of setting a branch in which a guide indicating the left direction is displayed using the apparatus according to the present invention.
When a new branch is inserted from the state shown in FIG. 5A, when the merge point of the existing branch is designated as the
[0009]
FIG. 6 shows an example of branch setting where a guide indicating both left and right directions is displayed using the apparatus according to the present invention.
When a branch is newly inserted from the state shown in FIG. 6A, if a position different from the branch point of the existing branch and the merge point is designated as the
[0010]
FIG. 7 is a flowchart for causing the display of FIGS.
In FIG. 7, the operator displays a ladder diagram such as 13 in FIG. 9 on the display screen of the display device (24 in FIG. 2), and starts a branching operation.
First, when the start point of a branch to be newly set is designated using the mouse (21 in FIG. 2) (step 1), whether or not the start point shares a point with the branch start point of the existing branch is determined. Go to “Region” (230 in FIG. 2) (step 2). As a result, if it is shared, the right direction guide (8 in FIG. 4) is displayed (step 3).
On the other hand, if the branch start point is not shared in
Further, if the merging point is not shared in
The operator draws a branch with the mouse while referring to these direction guides and drags it to the end point (step 8).
In this case, even if this drag is performed in accordance with the direction guide, it may be dragged too much as shown in d of FIG. 4 to cross an existing branch. Go to “information storage area” (230 in FIG. 2) (step 9). If it is crossed, no branch is formed (step 10). If it is not crossed, a branch is formed (step 11). The branching work ends.
As described above, according to the first embodiment of the present invention, in setting a branch at the time of creating a ladder diagram, the direction of the position where the end point of the branch can be set after determining the start point of the branch is changed between different branch circuits. Is determined based on the restrictions on the circuit configuration that must not be crossed, and is displayed using three types of guides in the right direction, left direction, and left and right directions, so the direction in which the end point can be set can be immediately determined. Work efficiency is improved.
[0011]
In the first embodiment, the display is performed using three types of guides in the right direction, the left direction, and the left and right directions. As a modification, a settable range from the start point to the end point is used. Is displayed in a hatching manner as shown in FIG. 8 and displayed in a display form different from the surroundings, which is very convenient because the operator only needs to set the end point within this range.
As shown in FIG. 8A, when a new branch is inserted, if the branch point of the existing branch is designated as the
FIG. 8B is a display example when the
FIG. 8C shows an example of branch setting in which guides indicating both left and right directions are displayed. When a new branch is inserted, if a position different from the branch point of the existing branch and the merge point is designated as the
The area display may be a color display of each color in addition to hatching or shading.
The flowchart for performing this display is essentially the same as that in FIG. 7 except for
[0012]
Next, a second embodiment of the present invention will be described with reference to FIGS. 2 and 10 to 12. In FIG. 2, 21 is an input device, 22 is a main control unit including a CPU, 23 is a storage area, and 24 is a display device. According to the second embodiment of the present invention, A position coordinate storage area is provided, which is stored and read by the
FIG. 10 is an example of a ladder diagram displayed on the
FIG. 11 is a diagram for explaining the contents of data stored in the
FIG. 12 is a flowchart showing a procedure for creating a sequence program for a programmable controller using the programming device shown in FIG.
When the sequence program is created using the programming device according to the second embodiment, when the main control unit 22 (FIG. 2) is operated by a loaded program (not shown), the X coordinate and Y coordinate of the contact instruction in the ladder diagram. Is stored in the
The mouse pointer is moved onto the contact instruction A to be selected and dragged by the mouse button (step S2).
A contact command having the same coordinates as the X and Y coordinates of the mouse pointer is retrieved from the position coordinate
If there is a contact instruction having the same coordinates, the mouse pointer is moved onto the contact instruction B for which a parallel circuit is to be created while keeping the drag (step S8).
The X coordinate and Y coordinate of the moved mouse pointer are stored in the storage area 232 (step S9), and the contact instruction of the same X coordinate and Y coordinate as the X coordinate and Y coordinate of the mouse pointer is stored in the position coordinate of the contact instruction. A search is performed from the region 31 (step S4).
If there is a contact instruction having the same coordinates, the selected contact instruction A is dropped with a mouse button (step S5), and a parallel branch circuit is created for the contact instruction B searched in step S4 (step S6), and step S3. The contact instruction A selected in step S6 is placed on the parallel branch circuit created in step S6 (step S7), and the process ends.
Thereby, the same circuit as the
As described above, according to the second embodiment of the present invention, the contact instruction to be selected is dragged with the mouse, and the parallel instruction is dropped by dropping the dragged contact instruction at the contact instruction to create the parallel circuit. Since it can be easily created, the efficiency of sequence program creation is improved.
[0013]
【The invention's effect】
As described above, according to the first embodiment of the present invention, in the setting of a branch when creating a ladder diagram, the direction of the position where the end point of the branch can be set is determined after the branch start point is determined. Judgment based on the circuit configuration restriction that the circuits should not cross each other, and display using three types of guides such as right direction, left direction, left and right direction, etc. Judgment can be made, and there is an effect of improving work efficiency.
Further, according to the second embodiment of the present invention, a parallel circuit can be easily created by dragging a contact instruction to be selected with a mouse and dropping the dragged contact instruction at a contact instruction for which a parallel circuit is to be created. Therefore, the efficiency of sequence program creation is improved.
[Brief description of the drawings]
FIG. 1 is an example of a ladder diagram display screen targeted by the present invention.
FIG. 2 is a block diagram showing a configuration of a programming device for a programmable controller according to the present invention.
FIG. 3 is an explanatory diagram for restricting a circuit configuration as a basis of the first embodiment of the present invention;
FIG. 4 is an example that can be set in the right direction in the first embodiment of the present invention.
FIG. 5 is an example that can be set in the left direction in the first embodiment of the present invention;
FIG. 6 is an example that can be set in both left and right directions in the first embodiment of the present invention.
FIG. 7 is a flowchart for causing the display of FIGS.
FIG. 8 is a modification of the first embodiment of the present invention.
FIG. 9 is an example of creating a new branch in a ladder diagram of a conventional programming device.
FIG. 10 is an example of a ladder diagram displayed on the display device.
FIG. 11 is a diagram showing the contents of data stored in a storage area (memory).
FIG. 12 shows a procedure for creating a sequence program for a programmable controller according to the second embodiment.
FIG. 13 is a diagram showing a procedure for creating a conventional parallel circuit.
[Explanation of symbols]
1 Branch and
8 Right direction guide 9 Left direction guide 10 Left and right direction guide 11
Claims (2)
前記表示画面上のラダーダイアグラムに分岐回路を配置する際、前記分岐回路の分岐の始点を前記マウスでライン上に決定した後、前記表示画面上の前記マウスポインタを移動させることにより、前記分岐情報記憶領域の情報と前記マウスのポインタの位置座標記憶領域の情報と、異なる分岐回路同士が交叉してはならないという回路構成の制約とに基づいて前記分岐の終点の設定可能な位置が存在する範囲を判断し、前記表示画面上で前記分岐の終点の設定可能な位置が前記分岐分岐の前記始点から見て右方向に存在するのであれば右ガイドを、左方向であれば左ガイドを、左右両方向であれば両ガイドの3種類のガイドによって表示する分岐回路設定可能方向表示手段を備えたことを特徴とするプログラマブルコントローラのプログラミング装置。A programmable controller programming device comprising a mouse, a CPU, a display device, and a storage area as input devices, and creating a sequence program for a programmable controller by creating a ladder diagram on a display screen of the display device , A programmable controller programming device comprising: storage means having a branch information storage area constituting the ladder diagram in the storage area; and mouse pointer position coordinate storage means having a storage area for storing the position coordinates of the mouse pointer In
When the branch circuit is arranged on the ladder diagram on the display screen, the branch information is determined by moving the mouse pointer on the display screen after determining the branch start point of the branch circuit on the line with the mouse. Range in which the position where the end point of the branch can be set exists based on the information on the storage area, the information on the position coordinate storage area of the mouse pointer, and the restriction on the circuit configuration that different branch circuits should not cross each other determine, the display screen in the branch endpoint settable position is the branch branch of the if present in the right direction as viewed from the start point right guide, the left guide if left, the right and left programming of the programmable controller, characterized in that it comprises a branch circuit settable direction display means for displaying the two guide three guide if both Grayed apparatus.
前記表示画面上のラダーダイアグラムに分岐回路を配置する際、前記分岐回路の分岐の始点を前記マウスでライン上に決定した後、前記表示画面上の前記マウスポインタを移動させることにより、前記分岐情報記憶領域の情報と前記マウスのポインタの位置座標記憶領域の情報と、異なる分岐回路同士が交叉してはならないという回路構成の制約とに基づいて前記分岐の終点の設定可能な位置が存在する範囲を判断し、
前記分岐の始点から終点までの設定可能な位置が存在する範囲を、周囲とは異なった表示形態で表示する分岐回路設定可能範囲表示手段を備えたことを特徴とするプログラマブルコントローラのプログラミング装置。A programmable controller programming device comprising a mouse, a CPU, a display device, and a storage area as input devices, and creating a sequence program for a programmable controller by creating a ladder diagram on a display screen of the display device , A programmable controller programming device comprising: storage means having a branch information storage area constituting the ladder diagram in the storage area; and mouse pointer position coordinate storage means having a storage area for storing the position coordinates of the mouse pointer In
When the branch circuit is arranged on the ladder diagram on the display screen, the branch information is determined by moving the mouse pointer on the display screen after determining the branch start point of the branch circuit on the line with the mouse. Range in which the position where the end point of the branch can be set exists based on the information on the storage area, the information on the position coordinate storage area of the mouse pointer, and the restriction on the circuit configuration that different branch circuits should not cross each other Judging
A programmable controller programming device comprising branch circuit settable range display means for displaying a range in which a settable position from the start point to the end point of the branch exists in a display form different from the surroundings.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001180177A JP4131095B2 (en) | 2001-06-14 | 2001-06-14 | Programmable controller programming device. |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001180177A JP4131095B2 (en) | 2001-06-14 | 2001-06-14 | Programmable controller programming device. |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008087801A Division JP4702386B2 (en) | 2008-03-28 | 2008-03-28 | Programmable controller programming device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002373004A JP2002373004A (en) | 2002-12-26 |
| JP4131095B2 true JP4131095B2 (en) | 2008-08-13 |
Family
ID=19020636
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001180177A Expired - Fee Related JP4131095B2 (en) | 2001-06-14 | 2001-06-14 | Programmable controller programming device. |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4131095B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4874171B2 (en) * | 2007-06-13 | 2012-02-15 | 三菱電機株式会社 | Ladder diagram editing apparatus and ladder diagram editing program |
| JP4879134B2 (en) * | 2007-10-18 | 2012-02-22 | 光洋電子工業株式会社 | Ladder diagram editing method |
-
2001
- 2001-06-14 JP JP2001180177A patent/JP4131095B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002373004A (en) | 2002-12-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8484570B2 (en) | Method and apparatus for screen object manipulation | |
| KR100236619B1 (en) | Method and apparatus for inputting embroidery lines | |
| CN104583885B (en) | Numerical control system and numerical value control data generation method | |
| JP4131095B2 (en) | Programmable controller programming device. | |
| JP2000020207A (en) | Window control device and recording medium | |
| JP4702386B2 (en) | Programmable controller programming device | |
| JP3015264B2 (en) | Information processing apparatus and method | |
| JP3239292B2 (en) | Figure specification control method for figure editing system | |
| JPS62271070A (en) | Display device | |
| JP2875135B2 (en) | Program device for programmable controller | |
| JP3013907U (en) | CAD drawing device | |
| CN107122110B (en) | Control device for electronic equipment and control method for electronic equipment | |
| JPH0561926A (en) | CAD device | |
| JPH04271475A (en) | Shape editing method and figure editing device | |
| JPH09212670A (en) | Graphic editing method and graphic drawing processing device | |
| JP2004279682A (en) | Information display device and information display program | |
| JPH04358284A (en) | Plotting method by computer aided design device | |
| JP2001297128A (en) | Layout editing system, layout editing method, and recording medium | |
| JP2004303143A (en) | Graphic processing unit | |
| JPH114983A (en) | Sewing data creation device | |
| JPH09198220A (en) | Window system and window display method | |
| JPS6385977A (en) | Graphic editing device | |
| JPH0896159A (en) | Graphic editing device | |
| JPH03242767A (en) | Layout pattern processing method | |
| JPH02103672A (en) | Panning system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050727 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060324 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071127 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080123 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080130 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080328 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080328 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20080430 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080513 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110606 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120606 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130606 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140606 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |