JP3452241B2 - Program determination display method and apparatus - Google Patents

Program determination display method and apparatus

Info

Publication number
JP3452241B2
JP3452241B2 JP04011899A JP4011899A JP3452241B2 JP 3452241 B2 JP3452241 B2 JP 3452241B2 JP 04011899 A JP04011899 A JP 04011899A JP 4011899 A JP4011899 A JP 4011899A JP 3452241 B2 JP3452241 B2 JP 3452241B2
Authority
JP
Japan
Prior art keywords
ladder
program
circuit
discriminating
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP04011899A
Other languages
Japanese (ja)
Other versions
JP2000242314A (en
Inventor
桂三 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP04011899A priority Critical patent/JP3452241B2/en
Publication of JP2000242314A publication Critical patent/JP2000242314A/en
Application granted granted Critical
Publication of JP3452241B2 publication Critical patent/JP3452241B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、プログラム判別
表示方法および装置に関し、詳しくは、ラダーエディタ
で作成したラダー回路、プログラマブルコントローラか
らアップロードしたラダープログラムを構成するラダー
回路、フロッピーディスクまたはハードディスクからロ
ードしたラダープログラムを構成するラダー回路の正
常、異常を判別してこれを識別可能に表示するようにし
たプログラム判別表示方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program discriminating and displaying method and apparatus, and more specifically, it is loaded from a ladder circuit created by a ladder editor, a ladder circuit constituting a ladder program uploaded from a programmable controller, a floppy disk or a hard disk. The present invention relates to a program discriminating and displaying method and device for discriminating normality and abnormality of a ladder circuit which constitutes a ladder program and displaying the discriminably.

【0002】[0002]

【従来の技術】近年、センサ,アクチュエータ等を制御
するプログラマブルコントローラ(PLC)は、例えば
図9に示すように、CPUユニット50と、システムバ
ス90を介してCPUユニット50と接続するNCユニ
ット等からなる高機能I/Oユニット60および他の通
信ユニットとデータを送受信する通信ユニット70とか
ら構成されている。
2. Description of the Related Art In recent years, a programmable controller (PLC) for controlling a sensor, an actuator, etc., includes a CPU unit 50 and an NC unit etc. connected to the CPU unit 50 via a system bus 90 as shown in FIG. It comprises a high-performance I / O unit 60 and a communication unit 70 for transmitting / receiving data to / from other communication units.

【0003】CPUユニット50は、ラック上に有する
高機能I/Oユニット60および通信ユニット70を制
御するようになっているとともに、ツールケーブル10
0を介してデータを設定させるツール(アプリケーショ
ンソフトウェア)1,高機能I/Oユニット60でモニ
タリングを実行させるツール2(アプリケーションソフ
トウェア)を稼働させるパーソナルコンピュータ80と
接続するようになっている。
The CPU unit 50 controls the high-performance I / O unit 60 and the communication unit 70 on the rack, and the tool cable 10 is also provided.
A tool (application software) 1 for setting data via 0 and a personal computer 80 for running a tool 2 (application software) for executing monitoring by the high-performance I / O unit 60 are connected.

【0004】高機能I/Oユニット60は、特殊な制
御、例えばNC制御,PID制御等を実施するものであ
る。
The high-performance I / O unit 60 carries out special control such as NC control and PID control.

【0005】通信ユニット70は、他のノードとなる別
のCPUユニット50または高機能I/Oユニット60
とデータを送受信するようになっている。
The communication unit 70 is another CPU unit 50 or a high-performance I / O unit 60 which is another node.
To send and receive data.

【0006】[0006]

【発明が解決しようとする課題】ところで、上述したプ
ログラマブルコントローラシステムにおいて、各プログ
ラマブルコントローラは、ラダ−プログラムで駆動制御
されているが、このラダープログラムの各ラダー回路の
正常、異常の判別は専門的な知識が必要であるととも
に、非常に手間がかかり、これがシステム運用の上で大
きな問題となっていた。
By the way, in the programmable controller system described above, each programmable controller is drive-controlled by a ladder program, and it is professional to judge whether each ladder circuit of this ladder program is normal or abnormal. It requires a lot of knowledge and is very time-consuming, which has been a major problem in system operation.

【0007】そこで、この発明は上述した問題点に鑑
み、プログラマブルコントローラで使用するラダープロ
グラムの各ラダー回路の正常、異常を自動的に判別して
これを識別可能に表示するようにしたプログラム判別表
示方法および装置を提供することを目的とする。
In view of the above-mentioned problems, the present invention automatically determines whether each ladder circuit of the ladder program used in the programmable controller is normal or abnormal, and displays it in a distinguishable manner. It is an object to provide a method and a device.

【0008】[0008]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明においては、プログラマブルコントロー
ラで使用するラダープログラムの各ラダー回路の正常、
異常を自動的に判別し、異常と判別されたラダー回路は
その左母線の色を変更して表示することでその異常をユ
ーザが容易かつ迅速に識別できるように構成されてい
る。
In order to achieve the above-mentioned object, in the present invention, the normality of each ladder circuit of a ladder program used in a programmable controller,
An abnormality is automatically discriminated, and the ladder circuit discriminated as an abnormality is configured so that the abnormality can be easily and quickly identified by the user by changing and displaying the color of the left busbar.

【0009】すなわち、請求項1の発明においては、プ
ログラマブルコントローラで使用するラダープログラム
を判別表示するプログラム判別表示方法において、ラダ
ーエディタでラダー回路を作成するとともに、該作成し
たラダー回路の正常、異常を判別し、異常と判別された
場合は作成したラダー回路の左母線の色を変更して表示
することを特徴とする。
That is, according to the first aspect of the invention, in the program discriminating and displaying method for discriminating and displaying the ladder program used in the programmable controller, the ladder circuit is created by the ladder editor, and normality and abnormality of the created ladder circuit are checked. If it is determined that the ladder circuit is abnormal, the color of the left busbar of the created ladder circuit is changed and displayed.

【0010】また、請求項2の発明においては、プログ
ラマブルコントローラで使用するラダ−プログラムを判
別表示するプログラム判別表示方法において、上記プロ
グラマブルコントローラからラダープログラムをアップ
ロードし、該アップロードしたラダープログラムからラ
ダー回路を一つずつ切り出し、該切り出したラダー回路
の正常、異常をそれぞれ判別して、異常と判別された場
合は該切り出したラダー回路の左母線の色を変更して表
示することを特徴とする。
According to a second aspect of the present invention, in a program discriminating and displaying method for discriminating and displaying a ladder program used in a programmable controller, a ladder program is uploaded from the programmable controller, and a ladder circuit is loaded from the uploaded ladder program. It is characterized in that the cut-out ladder circuit is cut out one by one, and whether the cut-out ladder circuit is normal or abnormal is judged.

【0011】また、請求項3の発明においては、プログ
ラマブルコントローラで使用するラダープログラムを判
別表示するプログラム判別表示方法において、外部記憶
装置にセーブしたラダープログラムをロードし、該ロー
ドしたラダープログラムからラダー回路を一つずつ切り
出し、該切り出したラダー回路の正常、異常をそれぞれ
判別して、異常と判別された場合は該切り出したラダー
回路の左母線の色を変更して表示する。
According to a third aspect of the present invention, in the program discriminating display method for discriminating and displaying the ladder program used in the programmable controller, the saved ladder program is loaded into the external storage device, and the ladder circuit is loaded from the loaded ladder program. Are cut out one by one, and the cut-out ladder circuit is judged to be normal or abnormal, and if judged to be abnormal, the color of the left bus bar of the cut-out ladder circuit is changed and displayed.

【0012】また、請求項4の発明においては、プログ
ラマブルコントローラで使用するラダープログラムを判
別表示するプログラム判別表示装置において、上記ラダ
ープログラムからラダー回路を一つずつ切り出す切出手
段と、上記切出手段で切り出したラダー回路の正常、異
常をそれぞれ判別する判別手段と、上記判別手段で異常
と判別されたラダー回路の左母線の色を変更して表示す
る表示制御手段と、を具備することを特徴とする。
According to a fourth aspect of the present invention, in a program discriminating display device for discriminating and displaying a ladder program used in a programmable controller, a cutting means for cutting one ladder circuit from the ladder program, and the cutting means. And a display control unit for changing and displaying the color of the left busbar of the ladder circuit determined to be abnormal by the determination unit. And

【0013】[0013]

【発明の実施の形態】以下、この発明に係るプログラム
判別表示方法および装置を図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A program discrimination display method and device according to the present invention will be described below with reference to the drawings.

【0014】図1はこの発明に係るプログラム判別表示
方法および装置を適用して構成したプログラマブルロジ
ックコントローラシステムの一実施の形態を示すブロッ
ク図である。
FIG. 1 is a block diagram showing one embodiment of a programmable logic controller system configured by applying the program discrimination display method and apparatus according to the present invention.

【0015】この実施の形態のプログラマブルロジック
コントローラシステム(以下、PLCシステムという)
は、センサ,アクチュエータ等の制御対象機器を制御す
る第1のプログラマブルコントローラ(以下、第1のP
LCという、)1および第2のプログラマブルコントロ
ーラ(以下、第2のPLCという)1aと、後述するツ
ールを稼働するパーソナルコンピュータ(以下、パソコ
ンという)2とから構成されている。
Programmable logic controller system of this embodiment (hereinafter referred to as PLC system)
Is a first programmable controller (hereinafter, referred to as a first P) that controls devices to be controlled such as sensors and actuators.
It is composed of an LC 1) and a second programmable controller (hereinafter referred to as a second PLC) 1a, and a personal computer (hereinafter referred to as a personal computer) 2 that operates a tool described later.

【0016】第1のPLC1は、CPUユニット11
と、高機能ユニット12と、通信ユニット13とを備え
ており、これらがデータバス,アドレスバス等からなる
システムバス14と接続された構成になっている。
The first PLC 1 is a CPU unit 11
, A high function unit 12 and a communication unit 13, which are connected to a system bus 14 including a data bus, an address bus and the like.

【0017】CPUユニット11は、ラック上に有する
高機能I/Oユニット12および通信ユニット13を制
御するとともに、ツールケーブル3を介してパソコン2
と接続されており、パソコン2から受信したツールの所
定処理を実行するようになっている。
The CPU unit 11 controls the high-performance I / O unit 12 and the communication unit 13 on the rack, and the personal computer 2 via the tool cable 3.
And is configured to execute a predetermined process of the tool received from the personal computer 2.

【0018】このCPUユニット12は、CPUユニッ
ト自身を制御するマイクロコンピュータ(マイコン)1
11と、マイクロコンピュータ111がシステムバス1
4を介して各ユニット12,13にアクセスするための
インタフェースを行うマイコンバスASIC112と、
ツールからの受信データ(以下、コマンドメッセージと
いう)を複数格納するとともにツールに対して送信する
送信データ(レスポンスメッセージという)を格納する
メモリ113と、通信処理を行う通信処理プログラムを
格納する通信処理プログラムメモリ114とを有するよ
うな構成になっている。
The CPU unit 12 is a microcomputer 1 for controlling the CPU unit itself.
11 and the microcomputer 111 are the system bus 1
A microcomputer bus ASIC 112 that provides an interface for accessing each of the units 12 and 13 via
A memory 113 that stores a plurality of data received from the tool (hereinafter referred to as a command message) and also stores transmission data to be transmitted to the tool (referred to as a response message), and a communication processing program that stores a communication processing program that performs communication processing. And a memory 114.

【0019】高機能I/Oユニット12は、特殊な制御
を行うためユニット、例えばNCユニット等であり、高
機能I/Oユニット自身を制御するマイクロコンピュー
タ(マイコン)121と、システムバス14とこのユニ
ットのインタフェースを行うバスASIC122と、C
PUユニット11から送信されてきたコマンドおよびC
PUユニット11に対して送信するレスポンスを格納す
るメモリ123とを有するような構成になっている。
The high-performance I / O unit 12 is a unit for performing special control, such as an NC unit, and includes a microcomputer 121 for controlling the high-performance I / O unit itself, a system bus 14, and this. A bus ASIC 122 for interfacing the units, and C
Command and C sent from PU unit 11
It is configured to have a memory 123 that stores a response to be transmitted to the PU unit 11.

【0020】通信ユニット13は、CPUユニット11
からの受信したコマンドメッセージを、接続している他
のノードに有する通信ユニットに送信するとともに、そ
れに対するレスポンス等を受信し、これをCPUユニッ
ト11に送信するようになっており、通信ユニット自身
を制御するマイクロコンピュータ(マイコン)131
と、システムバス14とこのユニットのインタフェース
を行うバスASIC132と、CPUユニット11から
送信されてきたコマンド等およびCPUユニット11に
対して送信するレスポンスメッセージを格納するメモリ
133とを有する構成になっている。
The communication unit 13 is the CPU unit 11
The command message received from the communication unit is transmitted to a communication unit included in another connected node, and a response to the command message is received and transmitted to the CPU unit 11. Microcomputer 131 for controlling
And a bus ASIC 132 for interfacing the system bus 14 with this unit, and a memory 133 for storing a command or the like transmitted from the CPU unit 11 and a response message transmitted to the CPU unit 11. .

【0021】パソコン2は、表示画面上に複数のウィン
ドウを表示できるものであって、このウィンドウを使用
して複数のツール21(アプリケーションソフトウェ
ア)(図面上では#1のツール21および#2のツール
21)を実行するようになっている。
The personal computer 2 is capable of displaying a plurality of windows on the display screen, and a plurality of tools 21 (application software) (tools # 1 and # 2 in the drawing) are used by using the windows. 21) is executed.

【0022】さて、この実施の形態のPLCシステムに
おいては、ラダーエディタで作成したラダー回路、第1
のPLC1若しくは第2のPLC1aからアップロード
したラダープログラムを構成するラダー回路、フロッピ
ーディスクまたはハードディスクからロードしたラダー
プログラムを構成するラダー回路の正常、異常をパソコ
ン2で判別し、これをパソコン2の表示画面上にユーザ
が識別可能に表示できるように構成されている。
In the PLC system of this embodiment, the ladder circuit created by the ladder editor, the first
The normal or abnormal state of the ladder circuit that constitutes the ladder program uploaded from the PLC1 or the second PLC1a, or the ladder circuit that constitutes the ladder program loaded from the floppy disk or hard disk is discriminated by the personal computer 2, and this is displayed on the personal computer 2. It is configured so that it can be displayed by the user in an identifiable manner.

【0023】図2は、この実施の形態におけるプログラ
ム判別表示処理を示す機能ブロック図である。
FIG. 2 is a functional block diagram showing the program discrimination display processing in this embodiment.

【0024】図2において、この プログラム判別表示
処理は、 1)ラダーエディタ201で作成したラダー回路 2)フロッピーディスクまたはハードディスク(FD/
HD)からロード202したラダープログラムからラダ
ー回路切り出し部204で切り出したラダー回路 3)PLCからアップロード203したラダープログラ
ムからラダー回路切り出し部204で切り出したラダー
回路 について、 a)ラダー回路が成立しているか b)ラダー回路中にある命令が対象のプログラマブルコ
ントローラでサポートされているか c)ラダー回路中にあるすべての命令にオペランドの不
足がないか d)ラダー回路中にあるオペランドが対象のプログラマ
ブルコントローラでサポートされているか のチェックを行い、上記a)〜d)のうちの少なくとも
一つが成立しないとこれを異常としてエラー判別部21
1で判別し、この場合、ラダー図の母線の色を変えてラ
ダー画面214に表示するように構成されている。
In FIG. 2, this program discrimination display processing is as follows: 1) Ladder circuit 2 created by the ladder editor 201) Floppy disk or hard disk (FD /
HD) Ladder circuit cut out by the ladder circuit cut-out unit 204 from the ladder program loaded 202) 3) Ladder circuit cut out by the ladder circuit cut-out unit 204 from the ladder program uploaded 203 from PLC a) Is the ladder circuit established? b) Is the instruction in the ladder circuit supported by the target programmable controller? c) Is all the instructions in the ladder circuit full of operands? d) The operand in the ladder circuit is supported by the target programmable controller If at least one of the above a) to d) is not established, it is regarded as an error and the error determination unit 21 is checked.
In this case, the colors of the bus lines in the ladder diagram are changed and displayed on the ladder screen 214.

【0025】すなわち、ラダーエディタ201で作成さ
れたラダー回路は1回路ずつラダー図表示部205に入
力される。
That is, the ladder circuits created by the ladder editor 201 are input to the ladder diagram display unit 205 one by one.

【0026】また、フロッピーディスクまたはハードデ
ィスク(FD/HD)からロードしたラダープログラム
およびPLCからアップロードしたラダープログラムは
ラダー回路切り出し部204に入力され、ここで、該ラ
ダープログラムにより構成されるラダー回路が1回路ず
つ切り出されて、ラダー図表示部205に入力される。
The ladder program loaded from the floppy disk or hard disk (FD / HD) and the ladder program uploaded from the PLC are input to the ladder circuit cutout unit 204, where the ladder circuit configured by the ladder program is 1 The circuits are cut out and input to the ladder diagram display unit 205.

【0027】ラダー図表示部205は、ラダーエディタ
201で作成されたラダー回路若しくはフロッピーディ
スクまたはハードディスク(FD/HD)からロードさ
れラダー回路切り出し部204で1回路ずつ切り出され
たラダー回路若しくはPLCからアップロードされラダ
ー回路切り出し部204で1回路ずつ切り出されたラダ
ー回路をそれぞれラダー図に変換して画面合成部213
に出力する。
The ladder diagram display unit 205 is loaded from a ladder circuit or a floppy disk or a hard disk (FD / HD) created by the ladder editor 201 and uploaded from the ladder circuit or PLC cut out one circuit at a time by the ladder circuit cutout unit 204. The ladder circuit cutout unit 204 converts the ladder circuits cut out one by one into a ladder diagram, and the screen synthesis unit 213
Output to.

【0028】一方、命令エラーチェック部208は、命
令データベース(命令DB)206に格納された命令情
報を参照して当該ラダー回路中にある命令が対象のプロ
グラマブルコントローラでサポートされているかを調べ
る。
On the other hand, the instruction error checking unit 208 refers to the instruction information stored in the instruction database (instruction DB) 206 to check whether the instruction in the ladder circuit is supported by the target programmable controller.

【0029】また、オペランド有無チェック部209
は、命令データベース(命令DB)206に格納された
命令情報を参照して当該ラダー回路中にあるすべての命
令にオペランドの不足がないかを調べる。
Further, the operand presence / absence checking unit 209
Refers to the instruction information stored in the instruction database (instruction DB) 206 to check whether or not all the instructions in the ladder circuit have an operand shortage.

【0030】また、オペランドエラーチェック部210
は、オペランドデータベース(オペランドDB)207
に格納されたオペランド情報を参照して当該ラダー回路
中にあるオペランドが対象のプログラマブルコントロー
ラでサポートされているかを調べる。
Further, the operand error check unit 210
Is the operand database (operand DB) 207
It is checked whether the operand in the ladder circuit is supported by the target programmable controller by referring to the operand information stored in.

【0031】エラー判別部211は、命令エラーチェッ
ク部208およびオペランド有無チェック部209およ
びオペランドエラーチェック部210の出力に基づき、
当該ラダー回路のエラーの有無を判別し、その判別結果
を左母線表示部212に通知する。
The error discriminating unit 211, based on the outputs of the instruction error checking unit 208, the operand presence / absence checking unit 209, and the operand error checking unit 210,
Whether or not there is an error in the ladder circuit is determined, and the determination result is notified to the left bus bar display unit 212.

【0032】左母線表示部212は、エラー判別部21
1の判断結果に基づきラダー図の母線を画像合成部21
3に出力する。ここで、左母線表示部212は、エラー
判別部211でエラー無しと判別された場合は、ラダー
図の通常の色の母線を出力し、エラー判別部211でエ
ラー有りと判別された場合は、ラダー図の通常の色とは
異なる色の母線を出力する。
The left bus bar display section 212 is provided with an error determination section 21.
Based on the judgment result of 1, the image generating unit 21
Output to 3. Here, the left bus bar display unit 212 outputs a normal color bus line of the ladder diagram when the error determination unit 211 determines that there is no error, and when the error determination unit 211 determines that there is an error, Output a bus of a color different from the normal color of the ladder diagram.

【0033】画像合成部213は、ラダー図表示部20
5から出力されたラダー図と左母線表示部212から出
力されたラダー図の母線を合成し、これをラダー画面2
14に表示する。
The image synthesizing unit 213 includes a ladder diagram display unit 20.
The ladder diagram output from No. 5 and the bus diagram of the ladder diagram output from the left bus bar display unit 212 are combined, and this is combined with the ladder screen 2
14 is displayed.

【0034】次に、図2に示したプログラム判別表示処
理の詳細を図3乃至図5に示したフローチャートを参照
して更に説明する。
Next, the details of the program discrimination display processing shown in FIG. 2 will be further described with reference to the flow charts shown in FIGS.

【0035】図3は、ユーザがラダーエディタ201で
ラダー回路を作成する場合における図2に示したプログ
ラム判別表示処理を示すフローチャートである。
FIG. 3 is a flow chart showing the program discrimination display processing shown in FIG. 2 when the user creates a ladder circuit with the ladder editor 201.

【0036】図3において、まず、ユーザがラダーエデ
ィタ201でラダー回路を作成する(ステップ30
1)。
In FIG. 3, first, the user creates a ladder circuit with the ladder editor 201 (step 30).
1).

【0037】次に、作成したラダー回路が成立している
かを調べ(ステップ302)、作成したラダー回路が成
立している場合は(ステップ302でYES)、次に、
作成した回路中にある命令が対象のPLCでサポートさ
れているかを調べる(ステップ303)。
Next, it is checked whether the created ladder circuit is established (step 302). If the created ladder circuit is established (YES in step 302), then,
It is checked whether or not the instruction in the created circuit is supported by the target PLC (step 303).

【0038】ここで、作成した回路中にある命令が対象
PLCでサポートされている場合は(ステップ303で
YES)、次に、作成した回路中にある全ての命令にオ
ペランドの不足はないかを調べる(ステップ304)。
ここで、作成した回路中にある全ての命令にオペランド
の不足がないと判断されると(ステップ304でYE
S)、作成した回路中にあるオペランドが対象のPLC
でサポートされているかを調べる(ステップ305)。
If the target PLC supports the instructions in the created circuit (YES in step 303), it is then checked whether all the instructions in the created circuit have sufficient operands. Check (step 304).
If it is determined that there is no shortage of operands in all the instructions in the created circuit (YES in step 304).
S), the operand in the created circuit is the target PLC
Check if it is supported by (step 305).

【0039】ここで、作成した回路中にあるオペランド
が対象のPLCでサポートされていると判断されると、
このラダー回路は正常であるのでラダー回路の左母線の
色を変更しない(ステップ306)。
Here, if it is determined that the operand in the created circuit is supported by the target PLC,
Since this ladder circuit is normal, the color of the left busbar of the ladder circuit is not changed (step 306).

【0040】しかし、ステップ302で、作成したラダ
ー回路が成立していないと判断された場合(ステップ3
02でNO)、または、ステップ303で、作成した回
路中にある命令が対象のPLCでサポートされていない
と判断された場合(ステップ303でNO)、または、
ステップ304で、作成した回路中にある命令にオペラ
ンドの不足があると判断された場合(ステップ304で
NO)、または、ステップ305で、作成した回路中に
あるオペランドが対象のPLCでサポートされていない
と判断された場合は(ステップ305でNO)、このラ
ダー回路は異常であるとしてラダー回路の左母線の色を
変更する(ステップ307)。
However, if it is determined in step 302 that the created ladder circuit is not established (step 3
(NO at 02), or at step 303, if it is determined that the instruction in the created circuit is not supported by the target PLC (NO at step 303), or
If it is determined in step 304 that the instruction in the created circuit has insufficient operands (NO in step 304), or the operand in the created circuit is supported by the target PLC in step 305. If it is determined that the ladder circuit is not present (NO in step 305), it is determined that the ladder circuit is abnormal, and the color of the left bus line of the ladder circuit is changed (step 307).

【0041】図4は、PLCからラダープログラムをア
ップロードする場合における図2に示したプログラム判
別表示処理を示すフローチャートである。
FIG. 4 is a flow chart showing the program discrimination display processing shown in FIG. 2 when the ladder program is uploaded from the PLC.

【0042】図4において、まず、PLCからラダープ
ログラムをアップロードし、ラダー回路を一つずつ切り
出す(ステップ311)。
In FIG. 4, first, the ladder program is uploaded from the PLC and the ladder circuits are cut out one by one (step 311).

【0043】次に、切り出したラダー回路が成立してい
るかを調べ(ステップ312)、切り出したラダー回路
が成立している場合は(ステップ312でYES)、次
に、切り出した回路中にある命令が対象のPLCでサポ
ートされているかを調べる(ステップ313)。
Next, it is checked whether or not the cut-out ladder circuit is established (step 312). If the cut-out ladder circuit is established (YES in step 312), the next instruction in the cut-out circuit is checked. Is supported by the target PLC (step 313).

【0044】ここで、切り出した回路中にある命令が対
象のPLCでサポートされている場合は(ステップ31
3でYES)、次に、切り出した回路中にある全ての命
令にオペランドの不足はないかを調べる(ステップ31
4)。ここで、切り出した回路中にある全ての命令にオ
ペランドの不足がないと判断されると(ステップ314
でYES)、切り出した回路中にあるオペランドが対象
のPLCでサポートされているかを調べる(ステップ3
15)。
If the instruction in the cut-out circuit is supported by the target PLC (step 31
Then, it is checked whether or not all the instructions in the cut-out circuit have a shortage of operands (step 31).
4). Here, if it is determined that all the instructions in the cut out circuit have sufficient operands (step 314).
YES), it is checked whether the operand in the cut out circuit is supported by the target PLC (step 3).
15).

【0045】ここで、切り出した回路中にあるオペラン
ドが対象のPLCでサポートされていると判断される
と、このラダー回路は正常であるのでラダー回路の左母
線の色を変更しない(ステップ316)。
If it is determined that the operand in the cut-out circuit is supported by the target PLC, this ladder circuit is normal and the color of the left busbar of the ladder circuit is not changed (step 316). .

【0046】しかし、ステップ312で、切り出したラ
ダー回路が成立していないと判断された場合(ステップ
312でNO)、または、ステップ313で、切り出し
た回路中にある命令が対象のPLCでサポートされてい
ないと判断された場合(ステップ313でNO)、また
は、ステップ314で、切り出した回路中にある命令に
オペランドの不足があると判断された場合(ステップ3
14でNO)、または、ステップ315で、切り出した
回路中にあるオペランドが対象のPLCでサポートされ
ていないと判断された場合は(ステップ315でN
O)、このラダー回路は異常であるとしてラダー回路の
左母線の色を変更する(ステップ317)。
However, if it is determined in step 312 that the cut-out ladder circuit is not established (NO in step 312), or in step 313, the instruction in the cut-out circuit is supported by the target PLC. If it is determined that there is no operand (NO in step 313), or if it is determined in step 314 that there is a lack of operands in the instruction in the cut out circuit (step 3)
(NO in step 14), or if it is determined in step 315 that the operand in the cut out circuit is not supported by the target PLC (N in step 315).
O), change the color of the left bus line of the ladder circuit as an abnormality (step 317).

【0047】なお、上記ステップ312からステップ3
17までの処理は、切り出したラダー回路の数だけ繰り
返される。
Incidentally, the above steps 312 to 3
The processes up to 17 are repeated for the number of cut ladder circuits.

【0048】図5は、セーブしたラダープログラムをフ
ロッピーディスクまたはハードディスク(FD/HD)
からロードする場合における図2に示したプログラム判
別表示処理を示すフローチャートである。
FIG. 5 shows the saved ladder program as a floppy disk or hard disk (FD / HD).
3 is a flowchart showing the program discrimination display processing shown in FIG. 2 in the case of loading from.

【0049】図5において、まず、セーブしたラダープ
ログラムをフロッピーディスクまたはハードディスク
(FD/HD)からロードし、ラダー回路を一つずつ切
り出す(ステップ321)。
In FIG. 5, first, the saved ladder program is loaded from a floppy disk or hard disk (FD / HD) and the ladder circuits are cut out one by one (step 321).

【0050】次に、切り出したラダー回路が成立してい
るかを調べ(ステップ322)、切り出したラダー回路
が成立している場合は(ステップ322でYES)、次
に、切り出した回路中にある命令が対象のPLCでサポ
ートされているかを調べる(ステップ323)。
Next, it is checked whether the cut-out ladder circuit is established (step 322). If the cut-out ladder circuit is established (YES in step 322), then the instruction in the cut-out circuit is executed. Is supported by the target PLC (step 323).

【0051】ここで、切り出した回路中にある命令が対
象のPLCでサポートされている場合は(ステップ32
3でYES)、次に、切り出した回路中にある全ての命
令にオペランドの不足はないかを調べる(ステップ32
4)。ここで、切り出した回路中にある全ての命令にオ
ペランドの不足がないと判断されると(ステップ324
でYES)、切り出した回路中にあるオペランドが対象
のPLCでサポートされているかを調べる(ステップ3
25)。
If the instruction in the cut-out circuit is supported by the target PLC (step 32)
Then, it is checked whether or not all the instructions in the cut-out circuit have a lack of operands (step 32).
4). If it is determined that there is no operand shortage in all the instructions in the cut out circuit (step 324).
YES), it is checked whether the operand in the cut out circuit is supported by the target PLC (step 3).
25).

【0052】ここで、切り出した回路中にあるオペラン
ドが対象のPLCでサポートされていると判断される
と、このラダー回路は正常であるのでラダー回路の左母
線の色を変更しない(ステップ326)。
If it is determined that the operand in the clipped circuit is supported by the target PLC, this ladder circuit is normal and the color of the left busbar of the ladder circuit is not changed (step 326). .

【0053】しかし、ステップ322で、切り出したラ
ダー回路が成立していないと判断された場合(ステップ
322でNO)、または、ステップ323で、切り出し
た回路中にある命令が対象のPLCでサポートされてい
ないと判断された場合(ステップ323でNO)、また
は、ステップ324で、切り出した回路中にある命令に
オペランドの不足があると判断された場合(ステップ3
24でNO)、または、ステップ325で、切り出した
回路中にあるオペランドが対象のPLCでサポートされ
ていないと判断された場合は(ステップ325でN
O)、このラダー回路は異常であるとしてラダー回路の
左母線の色を変更する(ステップ327)。
However, if it is determined in step 322 that the cut ladder circuit is not established (NO in step 322), or in step 323, the instruction in the cut circuit is supported by the target PLC. If not (NO at step 323), or if it is determined at step 324 that there is an operand shortage in the instruction in the cut out circuit (step 3)
No in step 24), or if it is determined in step 325 that the operand in the cut out circuit is not supported by the target PLC (N in step 325).
O), change the color of the left busbar of the ladder circuit as an abnormality (step 327).

【0054】なお、上記ステップ322からステップ3
27までの処理は、切り出したラダー回路の数だけ繰り
返される。
Incidentally, the above steps 322 to 3
The processes up to 27 are repeated by the number of cut ladder circuits.

【0055】図6は、ラダー画面に表示されたラダー回
路が異常である場合の表示例を示す図である。
FIG. 6 is a diagram showing a display example when the ladder circuit displayed on the ladder screen is abnormal.

【0056】図6において、赤の縦線(母線)は、回路
が成立していないことを示している。ここで回路が成立
すれば、この回路が成立した時点でこの赤の縦線(母
線)は消える。
In FIG. 6, the red vertical line (bus bar) indicates that the circuit is not established. If the circuit is established here, the red vertical line (bus line) disappears when the circuit is established.

【0057】なお、この実施の形態のPLCシステムに
おいては、ラダー画面において、エラー個所やアドレス
使用個所へ自動ジャンプ可能に構成されている。
In the PLC system of this embodiment, it is possible to automatically jump to an error point or an address use point on the ladder screen.

【0058】すなわち、図7にように、エラー個所があ
る場合は、プログラムチェック結果を見て、原因となっ
ているエラー個所にジャンプすることが可能である。
That is, as shown in FIG. 7, when there is an error location, it is possible to jump to the error location causing the error by looking at the program check result.

【0059】また、図8に示すように、そのアドレスが
他のどの命令で使用されているかを見たいとき、そのア
ドレスを指定している接点やコイルの位置にカーソルを
移動させ、そのままクロスリファレンスを表示させるこ
とができる。更にはその個所へのジャンプや、命令語の
ソートも可能である。
Further, as shown in FIG. 8, when it is desired to see which other instruction is using the address, the cursor is moved to the position of the contact or coil which specifies the address, and the cross reference is directly applied. Can be displayed. Furthermore, it is possible to jump to that location and sort the command words.

【0060】[0060]

【発明の効果】以上説明したように請求項1の発明にお
いては、プログラマブルコントローラで使用するラダ−
プログラムを判別表示するプログラム判別表示方法にお
いて、ラダーエディタでラダー回路を作成するととも
に、該作成したラダー回路の正常、異常を判別し、異常
と判別された場合は作成したラダー回路の左母線の色を
変更して表示するように構成したので、ラダーエディタ
で作成したラダー回路の正常、異常を自動的に判別して
これを識別可能に表示することが可能になる。
As described above, according to the first aspect of the invention, the ladder used in the programmable controller is used.
In the program discrimination display method for discriminating and displaying a program, a ladder circuit is created with a ladder editor, and whether the created ladder circuit is normal or abnormal is discriminated. If the ladder circuit is discriminated as abnormal, the color of the left busbar of the created ladder circuit Since it is configured to be changed and displayed, it becomes possible to automatically discriminate between normality and abnormality of the ladder circuit created by the ladder editor and display this in a distinguishable manner.

【0061】また、請求項3の発明においては、プログ
ラマブルコントローラで使用するラダープログラムを判
別表示するプログラム判別表示方法において、上記プロ
グラマブルコントローラからラダープログラムをアップ
ロードし、該アップロードしたラダープログラムからラ
ダー回路を一つずつ切り出し、該切り出したラダー回路
の正常、異常をそれぞれ判別して、異常と判別された場
合は該切り出したラダー回路の左母線の色を変更して表
示するように構成したので、プログラマブルコントロー
ラからアップロードしたラダープログラムを構成するラ
ダー回路の正常、異常を自動的に判別してこれを識別可
能に表示することが可能になる。
According to a third aspect of the present invention, in the program discrimination display method for discriminating and displaying the ladder program used in the programmable controller, the ladder program is uploaded from the programmable controller, and the ladder circuit is updated from the uploaded ladder program. The programmable controller is configured so that the cut-out ladder circuit is judged to be normal or abnormal, and if it is judged to be abnormal, the color of the left busbar of the cut-out ladder circuit is changed and displayed. It will be possible to automatically discriminate between normality and abnormality of the ladder circuit that constitutes the ladder program uploaded from, and display this in a distinguishable manner.

【0062】また、請求項5の発明においては、プログ
ラマブルコントローラで使用するラダープログラムを判
別表示するプログラム判別表示方法において、外部記憶
装置にセーブしたラダープログラムをロードし、該ロー
ドしたラダープログラムからラダー回路を一つずつ切り
出し、該切り出したラダー回路の正常、異常をそれぞれ
判別して、異常と判別された場合は該切り出したラダー
回路の左母線の色を変更して表示するように構成したの
で、外部記憶装置からロードしたラダープログラムを構
成するラダー回路の正常、異常を自動的に判別してこれ
を識別可能に表示することが可能になる。
According to a fifth aspect of the invention, in the program discriminating display method for discriminating and displaying the ladder program used in the programmable controller, the saved ladder program is loaded into the external storage device, and the ladder circuit is loaded from the loaded ladder program. It is configured to cut out one by one, determine whether the cut-out ladder circuit is normal or abnormal, and change the color of the left bus bar of the cut-out ladder circuit to display when abnormal is determined. It becomes possible to automatically discriminate between normality and abnormality of the ladder circuit which constitutes the ladder program loaded from the external storage device and display them in a distinguishable manner.

【0063】また、請求項7の発明は、プログラマブル
コントローラで使用するラダ−プログラムを判別表示す
るプログラム判別表示装置において、上記ラダープログ
ラムからラダー回路を一つずつ切り出す切出手段と、上
記切出手段で切り出したラダー回路の正常、異常をそれ
ぞれ判別する判別手段と、上記判別手段で異常と判別さ
れたラダー回路の左母線の色を変更して表示する表示制
御手段と、を具備して構成したので、プログラマブルコ
ントローラで使用するラダープログラムの各ラダー回路
の正常、異常を自動的に判別してこれを識別可能に表示
するようにしたプログラム判別表示装置を提供すること
ができる。
According to a seventh aspect of the present invention, in a program discriminating display device for discriminating and displaying a ladder program used in a programmable controller, a cutting means for cutting one ladder circuit from the ladder program, and the cutting means. And a display control unit for changing the color of the left bus bar of the ladder circuit that is determined to be abnormal by the determination unit and displaying the changed color. Therefore, it is possible to provide a program discriminating / displaying device which automatically discriminates normality / abnormality of each ladder circuit of the ladder program used in the programmable controller and displays the discriminably.

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

【図1】この発明に係るプログラム判別表示方法および
装置を適用して構成したプログラマブルロジックコント
ローラシステムの一実施の形態を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a programmable logic controller system configured by applying a program discrimination display method and device according to the present invention.

【図2】この実施の形態におけるプログラム判別表示処
理を示す機能ブロック図。
FIG. 2 is a functional block diagram showing a program discrimination display process according to this embodiment.

【図3】ユーザがラダーエディタでラダー回路を作成す
る場合における図2に示したプログラム判別表示処理を
示すフローチャート。
FIG. 3 is a flowchart showing a program discrimination display process shown in FIG. 2 when a user creates a ladder circuit with a ladder editor.

【図4】PLCからラダープログラムをアップロードす
る場合における図2に示したプログラム判別表示処理を
示すフローチャート。
FIG. 4 is a flowchart showing the program discrimination display processing shown in FIG. 2 when uploading a ladder program from a PLC.

【図5】セーブしたラダープログラムをフロッピーディ
スクまたはハードディスク(FD/HD)からロードす
る場合における図2に示したプログラム判別表示処理を
示すフローチャート。
FIG. 5 is a flowchart showing the program discrimination display processing shown in FIG. 2 when the saved ladder program is loaded from a floppy disk or a hard disk (FD / HD).

【図6】ラダー画面に表示されたラダー回路が異常であ
る場合の表示例を示す図。
FIG. 6 is a diagram showing a display example when the ladder circuit displayed on the ladder screen is abnormal.

【図7】この実施の形態におけるラダー画面におけるエ
ラー個所への自動ジャンプを説明する図。
FIG. 7 is a diagram illustrating an automatic jump to an error point on the ladder screen according to this embodiment.

【図8】この実施の形態におけるラダー画面におけるア
ドレス使用個所への自動ジャンプを説明する図。
FIG. 8 is a diagram for explaining an automatic jump to a location where an address is used on the ladder screen according to this embodiment.

【図9】従来のプログラマブルロジックコントローラシ
ステムの一例を示すブロック図。
FIG. 9 is a block diagram showing an example of a conventional programmable logic controller system.

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

1,1a プログラマブルコントローラ 11 CPUユニット 111 マイクロコンピュータ 112 バスASIC 113 メモリ 114 通信処理プログラム格納メモリ 12 高機能ユニット 121 マイクロコンピュータ 122 バスASIC 123 メモリ 13 通信ユニット 131 マイクロコンピュータ 132 バスASIC 133 メモリ 14 システムバス 2 パーソナルコンピュータ 3 ツールケーブル 1,1a Programmable controller 11 CPU unit 111 Microcomputer 112 Bus ASIC 113 memory 114 communication processing program storage memory 12 High-performance unit 121 Microcomputer 122 Bus ASIC 123 memory 13 Communication unit 131 Microcomputer 132 Bus ASIC 133 memory 14 system bus 2 personal computer 3 tool cable

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G05B 19/05

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブルコントローラで使用する
ラダープログラムを判別表示するプログラム判別表示方
法において、 ラダーエディタでラダー回路を作成するとともに、該作
成したラダー回路の正常、異常を判別し、異常と判別さ
れた場合は作成したラダー回路の左母線の色を変更して
表示することを特徴とするプログラム判別表示方法。
1. A program discriminating display method for discriminating and displaying a ladder program used in a programmable controller, wherein a ladder circuit is created by a ladder editor, and the created ladder circuit is judged to be normal or abnormal, and it is judged as abnormal. In this case, the program discrimination display method is characterized in that the color of the left busbar of the created ladder circuit is changed and displayed.
【請求項2】 プログラマブルコントローラで使用する
ラダープログラムを判別表示するプログラム判別表示方
法において、 上記プログラマブルコントローラからラダープログラム
をアップロードし、該アップロードしたラダープログラ
ムからラダー回路を一つずつ切り出し、該切り出したラ
ダー回路の正常、異常をそれぞれ判別して、異常と判別
された場合は該切り出したラダー回路の左母線の色を変
更して表示することを特徴とするプログラム判別表示方
法。
2. A program discrimination display method for discriminating and displaying a ladder program used in a programmable controller, wherein a ladder program is uploaded from the programmable controller, ladder circuits are cut out one by one from the uploaded ladder program, and the cut ladder A program discriminating and displaying method characterized by discriminating between normality and abnormality of the circuit, and when it is determined to be abnormal, changing the color of the left bus bar of the cut-out ladder circuit for display.
【請求項3】 プログラマブルコントローラで使用する
ラダープログラムを判別表示するプログラム判別表示方
法において、 外部記憶装置にセーブしたラダープログラムをロード
し、該ロードしたラダープログラムからラダー回路を一
つずつ切り出し、該切り出したラダー回路の正常、異常
をそれぞれ判別して、異常と判別された場合は該切り出
したラダー回路の左母線の色を変更して表示することを
特徴とするプログラム判別表示方法。
3. A program discrimination display method for discriminating and displaying a ladder program used in a programmable controller, loading a saved ladder program in an external storage device, cutting out ladder circuits one by one from the loaded ladder program, and cutting out the ladder circuits one by one. A program discriminating and displaying method, characterized in that the ladder circuit is normally or abnormally discriminated, and when the ladder circuit is discriminated as abnormal, the color of the left busbar of the clipped ladder circuit is changed and displayed.
【請求項4】 プログラマブルコントローラで使用する
ラダープログラムを判別表示するプログラム判別表示装
置において、 上記ラダープログラムからラダー回路を一つずつ切り出
す切出手段と、 上記切出手段で切り出したラダー回路の正常、異常をそ
れぞれ判別する判別手段と、 上記判別手段で異常と判別されたラダー回路の左母線の
色を変更して表示する表示制御手段と、 を具備することを特徴とするプログラム判別表示装置。
4. A program discriminating and displaying device for discriminating and displaying a ladder program used in a programmable controller, a cutting means for cutting one ladder circuit from the ladder program, and a normal ladder circuit cut out by the cutting means. A program discriminating display device comprising: discriminating means for discriminating each abnormality, and display control means for changing and displaying the color of the left busbar of the ladder circuit discriminated as abnormal by the discriminating means.
JP04011899A 1999-02-18 1999-02-18 Program determination display method and apparatus Expired - Lifetime JP3452241B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04011899A JP3452241B2 (en) 1999-02-18 1999-02-18 Program determination display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04011899A JP3452241B2 (en) 1999-02-18 1999-02-18 Program determination display method and apparatus

Publications (2)

Publication Number Publication Date
JP2000242314A JP2000242314A (en) 2000-09-08
JP3452241B2 true JP3452241B2 (en) 2003-09-29

Family

ID=12571928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04011899A Expired - Lifetime JP3452241B2 (en) 1999-02-18 1999-02-18 Program determination display method and apparatus

Country Status (1)

Country Link
JP (1) JP3452241B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287710A (en) * 2007-04-16 2008-11-27 Nst:Kk Development control device

Also Published As

Publication number Publication date
JP2000242314A (en) 2000-09-08

Similar Documents

Publication Publication Date Title
EP1586966B1 (en) Control system configuration device
EP2891020B1 (en) Control system for controlling operation of a numerically controlled machine tool, and back-end and front-end control devices for use in such system
US20100114334A1 (en) Method and device for accessing a functional module of automation sytem
WO2015136959A1 (en) Control system, method, program and information processing device
EP1710645A2 (en) Numerical control system
US20160125037A1 (en) Information processing apparatus, information processing method, information processing program, and storage medium
US11402819B2 (en) Screen creation device and screen creation system
JP3456692B2 (en) Data processing device
JP2008282341A (en) Apparatus for supporting safety conformity program generation
WO2019167512A1 (en) Display device, screen generation method, and screen generation program
EP1589390A1 (en) Numerical controller with function of selecting spindle
EP3416004A1 (en) Device management apparatus, device management method, device management program, and non-transitory computer readable storage medium
JP3452241B2 (en) Program determination display method and apparatus
US20090278653A1 (en) Device for Operating an Electrical Device of an Automation System
JPWO2005114344A1 (en) How to select engineering tool and engineering tool startup program and add new program
JP7276265B2 (en) Production system, host control device, control device, communication method, and program
JP6051545B2 (en) PLC system, status display method, PLC, and programmable display
JP3211528B2 (en) Production management device
JP2003295910A (en) Unit, tool equipment, and program product
JP2000315104A (en) Management system for nc machine tool and its management program
JP3309434B2 (en) PC programming device
JP2000322118A (en) Management system for nc machine tool and storage medium storing management program
JP2008293241A (en) Display device
JP4409786B2 (en) Control system
US20240012385A1 (en) Control device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030620

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080718

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080718

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090718

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090718

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100718

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120718

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130718

Year of fee payment: 10

EXPY Cancellation because of completion of term