JPH02253305A - Signal tracing system for programmable controller - Google Patents

Signal tracing system for programmable controller

Info

Publication number
JPH02253305A
JPH02253305A JP7431989A JP7431989A JPH02253305A JP H02253305 A JPH02253305 A JP H02253305A JP 7431989 A JP7431989 A JP 7431989A JP 7431989 A JP7431989 A JP 7431989A JP H02253305 A JPH02253305 A JP H02253305A
Authority
JP
Japan
Prior art keywords
signal
signals
ladder sequence
sequence
ladder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7431989A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Yoshiharu Saiki
嘉春 斎木
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP7431989A priority Critical patent/JPH02253305A/en
Publication of JPH02253305A publication Critical patent/JPH02253305A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To display the signal changing states for each ladder sequence in response to the display requests by designating the signals to be displayed for each ladder sequence and storing these signals into a signal store memory. CONSTITUTION:The ladder sequence, etc., are displayed on a display screen 11 of a program preparing device 10, and the designation of a coil, the change of a display cycle, etc., are carried out in the ladder sequence with use of the operation keys 14. A processor 21 controls totally a programmable controller PC 20, and the signals including the input, output, auxiliary relay, internal register signals, etc., which are necessary for trace are stored in an area of a signal store memory 41 of a RAM 40. Thus the signals to be checked are stored in the memory 41 for each ladder sequence and therefore the trace result can be displayed on a ladder sequence diagram. As a result, the signal changing states can be simply recognized and a sequence program is easily debugged.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はPC(プログラマブル・コントローラ)の信号
トレース方式に係り、特にラダーシーケンスで制御され
るPCの信号の変化状態を表示するPCの信号トレース
方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a PC (programmable controller) signal tracing method, and particularly to a PC signal tracing method that displays the changing state of a PC signal controlled by a ladder sequence. Regarding the method.

[従来の技術〕 PCでは、作成されたシーケンスプログラムが正しく作
成されているか調べるために、特定の信号が正常に処理
されているか調べる。また、PCが正常に動作しなかっ
た場合に、その原因を調べるために、特定の信号の変化
の状態を調べる必要がある。
[Prior Art] In order to check whether a created sequence program has been created correctly, a PC checks whether a specific signal is being processed normally. Furthermore, when the PC does not operate normally, it is necessary to examine the state of change in a specific signal in order to investigate the cause.

これらの信号はPClまたはPCと結合された数値制御
装置(CNC)の表示装置に表示されるが、信号の変化
が高速であったり、発生の頻度が低かったりすると表示
装置のみでは十分対応できない。そこで、特定の信号を
メモリに記憶させて、それを再現する必要が生じる。特
に、これらの状態は静的な状態よりも、動的な状態、即
ち、変化の過程が重要になる場合が多いからである。
These signals are displayed on a display device of a numerical control unit (CNC) coupled to a PCl or a PC, but if the signals change rapidly or occur infrequently, the display device alone cannot adequately handle the situation. Therefore, it becomes necessary to store a specific signal in memory and reproduce it. In particular, this is because dynamic states, that is, processes of change, are often more important than static states.

このような状態を知る方法として、制御装置のプログラ
ムを変更し、特定の信号を監視するという方式が採用さ
れている。しかし、制御装置のプログラムがROMに格
納されている場合にはそのプログラム自身を変更するこ
とができないので、信号の変化を知ることができなかっ
た。
As a method of knowing such a state, a method has been adopted in which the program of the control device is changed and a specific signal is monitored. However, if the program of the control device is stored in the ROM, the program itself cannot be changed, so changes in the signal cannot be known.

また、信号の状態を監視する方式として一定時間、所定
の信号を順次メモリに記憶するという方式が知られてい
る。このように信号の状態を追跡して、それを他のメモ
リに記憶して再現する方法をトレースと称する。この再
現方法としてシーケンスプログラムを実行したときの、
読み込んだアドレス、その命令の実行ステップ番号、信
号の状態を一覧表にして、外部に接続されたプリンタ等
にプリントアウトするものがある。しかし、この方式で
は単に信号をトレースして、メモリに記憶していくのみ
であり、メモリの容量が膨大になってしまうという問題
がある。
Further, as a method for monitoring the state of a signal, a method is known in which predetermined signals are sequentially stored in a memory for a certain period of time. This method of tracing the signal state, storing it in another memory, and reproducing it is called tracing. As a way to reproduce this, when running the sequence program,
Some devices print out a list of read addresses, instruction execution step numbers, and signal states on an externally connected printer or the like. However, this method simply traces the signal and stores it in memory, which poses a problem in that the memory capacity becomes enormous.

そこで、メモリの容量を減らすためのトレース制御方式
として、特開昭62−243008号公報に記載のもの
がある。この方式ではトレースすべき信号の変化を捕ら
えて、その信号と同一のバイト、ワードをトレースする
ようにしている。
Therefore, as a trace control method for reducing the memory capacity, there is a method described in Japanese Patent Laid-Open No. 62-243008. This method captures changes in the signal to be traced and traces the same byte or word as the signal.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、従来のトレース方式では、各命令ステップでの
信号の変化状態は分かるが、シーケンスプログラムのス
テップ数が多くなると、必要とする信号を見つけ、その
変化を調べるのは究めて困難である。また、この信号は
ラダーシーケンスに関係すると思われる信号毎のトレー
スに過ぎないため、結局はラダーシーケンスと見比べて
解析しなければならず、面倒である。
However, with the conventional tracing method, it is possible to see the state of change in a signal at each instruction step, but as the number of steps in a sequence program increases, it becomes extremely difficult to find the required signal and examine its change. Further, since this signal is only a trace of each signal that is considered to be related to the ladder sequence, it is necessary to analyze it by comparing it with the ladder sequence, which is troublesome.

一方、ラダーシーケンスプログラムのデバッグや装置の
保守等では、トレースすべき信号が他の信号との関係で
どのように変化したか、また、原因となる信号との時間
的な関係を知りたい場合が多い。従って、トレースすべ
き信号の変化のみでは十分ではなかった。
On the other hand, when debugging ladder sequence programs or maintaining equipment, you may want to know how the signal to be traced has changed in relation to other signals, or the temporal relation to the signal that is the cause. many. Therefore, changes in the signal to be traced alone were not sufficient.

本発明はこのような点に鑑みてなされたものであり、特
定の信号の変化状態をラダーシーケンス毎に表示するこ
とのできるPCの信号トレース方式を提供することを目
的とする。
The present invention has been made in view of these points, and it is an object of the present invention to provide a PC signal tracing method that can display the changing state of a specific signal for each ladder sequence.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するために、PC(プログラ
マブル・コントローラ)における特定の信号の変化を調
べるためのPCの信号トレース方式において、表示すべ
き信号をラダーシーケンス単位で指定し、指定されたラ
ダーシーケンスの前記信号を信号格納メモリに格納し、
表示要求に応じて前記信号の変化状態をラダーシーケン
ス上で表示するようにしたことを特徴とするPCの信号
トレース方式が、提供される。
In order to solve the above problems, the present invention specifies signals to be displayed in ladder sequence units in a PC signal tracing method for investigating changes in specific signals in a PC (programmable controller), and storing said signals of a sequence in a signal storage memory;
A signal tracing method for a PC is provided, characterized in that the changing state of the signal is displayed on a ladder sequence in response to a display request.

〔作用〕[Effect]

ラダーシーケンスを画面上で指定することによって、そ
のラダーシーケンスに関係する信号をトレースすること
ができる。また、トレースの結果がラダーシーケンス上
に表示されるので信号の変化の様子が容易に把握できる
By specifying a ladder sequence on the screen, signals related to that ladder sequence can be traced. Furthermore, since the trace results are displayed on a ladder sequence, it is easy to understand how the signal changes.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第2図はラダーシーケンスを表示した画面を示す図であ
る0図において、表示画面1はプログラム編集装置の画
面であり、ラダーシーケンスの一部が表示されている。
FIG. 2 is a diagram showing a screen displaying a ladder sequence. In FIG. 0, a display screen 1 is a screen of a program editing device, and a part of a ladder sequence is displayed.

カーソル3を表示画面1上のコイル(Yo、0)の上に
持っていき、図示していない操作キーでそのコイル(Y
O,O)を指定してやる。すると、点線の枠2で囲まれ
たコイル(YO,O)に関係するラダーシーケンスに対
してトレースが行われる。
Move the cursor 3 over the coil (Yo, 0) on the display screen 1, and use the operation keys (not shown) to
O, O). Then, tracing is performed on the ladder sequence related to the coil (YO, O) surrounded by the dotted line frame 2.

このトレースは従来と同様の方法で行われ、トレースす
べき信号の変化を捕らえて、その信号と同−のバイト、
ワードをトレースする。
This tracing is done in the same way as before, by capturing changes in the signal to be traced and
Trace the word.

第1図は本発明の一実施例のトレース結果をラダーシー
ケンス上に表示した画面を示す図である。
FIG. 1 is a diagram showing a screen displaying trace results on a ladder sequence according to an embodiment of the present invention.

図において、各接点のうちオンした接点は太線で表示さ
れる。即ち、本図では五つの接点(Xo。
In the figure, the contacts that are turned on among the contacts are displayed with thick lines. That is, in this figure, there are five contact points (Xo.

0)、(Xo、1)、(Y2.O)、(X15゜0)及
び(X7.0)がオンした状態を示す。そして、接点(
Xo、1)、(Y2.O)及び(X15.0)のオンに
よってコイル(YO,O)につながる線も太線に変化す
る。従って、コイル(YO,O)はどの接点のオンによ
ってオン状態になったのかが容易に判断できる。そして
、操作キーを操作することによって次のサイクルの状態
を表示することができる。
0), (Xo, 1), (Y2.O), (X15°0) and (X7.0) are turned on. And the contact (
By turning on Xo, 1), (Y2.O), and (X15.0), the line connected to the coil (YO, O) also changes to a thick line. Therefore, it can be easily determined which contact turns on the coils (YO, O). Then, by operating the operation keys, the status of the next cycle can be displayed.

第1図ではコイル(YO,O)に関係するラダーシーケ
ンスを示したが、第2図のようにコイル(Yo、1)に
関係するラダーシーケンスを同時にトレースして表示す
ることも可能である。この場合は、操作キーでコイル(
YO,o)&びコイル(Yo、1)を同時に指定してや
ればよい。
Although FIG. 1 shows the ladder sequence related to the coil (YO, O), it is also possible to simultaneously trace and display the ladder sequence related to the coil (Yo, 1) as shown in FIG. In this case, use the operation keys to select the coil (
YO, o) & coil (Yo, 1) may be specified at the same time.

第3図に本発明を実施するためのプログラム作成装置と
PC(プログラマブル・コントローラ)のハードウェア
のブロック図を示す。プログラム作成装置10はラダー
シーケンスプログラムを作成する装置である。表示画面
11はCRT、液晶表示装置等が使用される。表示画面
11には、第1図及び第2図に示すラダーシーケンス等
の表示画面1が表示される。ファンクションキー13は
削除、複写、変更等のファンクションを指令するキーで
あり、操作キー14は各種の操作を行うためのキーであ
り、ラダーシーケンス上のコイルの指定とか表示すイク
ルの変更とかを行うキーである。
FIG. 3 shows a hardware block diagram of a program creation device and a PC (programmable controller) for implementing the present invention. The program creation device 10 is a device that creates a ladder sequence program. As the display screen 11, a CRT, liquid crystal display, or the like is used. On the display screen 11, a display screen 1 such as a ladder sequence shown in FIGS. 1 and 2 is displayed. The function key 13 is a key for commanding functions such as deletion, copying, and modification, and the operation key 14 is a key for performing various operations, such as specifying a coil on a ladder sequence and changing the cycle to be displayed. That's the key.

プログラム作成装置10はマイクロプロセッサ構成とな
っており、上述のような表示処理はプログラム作成装置
10内のマイクロプロセッサによって処理される。
The program creation device 10 has a microprocessor configuration, and the display processing as described above is processed by the microprocessor within the program creation device 10.

プロセッサ21はPC(プログラマブル・コントローラ
)20全体を制御する。入力回路22は、外部からの信
号を受け、信号レベルを変換してバスに転送する。出力
回路23は内部の出力信号を外部へ出力する。
A processor 21 controls the entire PC (programmable controller) 20. The input circuit 22 receives a signal from the outside, converts the signal level, and transfers the signal to the bus. The output circuit 23 outputs an internal output signal to the outside.

プログラム作成装置用のインタフェース24は、PC2
0のバスとプログラム作成装置1oとを接続するための
インタフェース回路である。
The interface 24 for the program creation device is the PC2
This is an interface circuit for connecting the bus No. 0 and the program creation device 1o.

ROM30は、その内部にラダープログラムの実行を管
理する管理プログラム31と工作機械等を制御するため
のラダー言語で作成されシーケンスプログラムであるラ
ダープログラム32等が格納されている。RAM40は
、信号格納メモリ41の領域があり、それ以外に各種の
データが格納されており、入力信号、出力信号、補助リ
レー信号、内部レジスタ信号等トレースに必要な信号は
ここに格納される。不揮発性メモリ50がバスに接続さ
れている。
The ROM 30 stores therein a management program 31 that manages the execution of ladder programs, a ladder program 32 that is a sequence program written in a ladder language for controlling machine tools, etc., and the like. The RAM 40 has an area for a signal storage memory 41, and various other data are stored therein, and signals necessary for tracing such as input signals, output signals, auxiliary relay signals, and internal register signals are stored here. Non-volatile memory 50 is connected to the bus.

上述の説明では、信号の表示は自動プログラム作成装置
lOの表示画面11に表示することで説明したが、PC
(プログラマブル・コントローラ)が表示装置を内蔵す
る場合は、その表示装置に表示させることも・できる。
In the above explanation, the display of the signal was explained by displaying it on the display screen 11 of the automatic program creation device IO, but
If the (programmable controller) has a built-in display device, it is also possible to display the information on that display device.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、調査したい信号をラダ
ーシーケンス単位で信号格納メモリに格納して、そのト
レース結果をラダーシーケンス図上に表示するようにし
たので、信号の変化状態が簡単に認識でき、シーケンス
プログラムのデパックが容易になる。
As explained above, in the present invention, the signals to be investigated are stored in the signal storage memory in units of ladder sequences, and the trace results are displayed on the ladder sequence diagram, so that the changing state of the signal can be easily recognized. , it becomes easier to depack sequence programs.

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

第1図は本発明の一実施例のトレース結果をラダーシー
ケンス上に表示した画面を示す図、第2図はラダーシー
ケンスを表示した画面を示す図、 第3図は本発明を実施するためのプログラム作成装置と
PC(プログラマブル・コントローラ)のハードウェア
のブロック図である。 1−−−−−−−−・−・−・表示画面10−・−・−
・・−自動プログラム作成装置1−−−−−−−−−−
−・−・・・表示画面3・・・−一−−・−−−一−−
−ファンクションキー4   ・−−−−・・操作キー O・・−−−一−・・・・−・・PC(プログラマブル
ーラ) 1・−・・・−・・−・・−・・−・プロセッサ2・・
・−・・・−・・・−・−・入力回路3・・・・−・・
−一−−−−出力回路4−・−−−−−・−・−−−−
−・インタフェース0−・−一一一・・−・・−ROM O−・・−−−一−−−・・−RAM 1−・・・−−一−−・−−−一−・信号格納メモリO
−・・−・−・−−−−一不揮発性メモリ・コントロ 出願人   ファナック株式会社 代理人   弁理士  服部毅巖
Fig. 1 is a diagram showing a screen displaying trace results on a ladder sequence according to an embodiment of the present invention, Fig. 2 is a diagram showing a screen displaying a ladder sequence, and Fig. 3 is a diagram showing a screen displaying trace results on a ladder sequence. It is a block diagram of the hardware of a program creation device and a PC (programmable controller). 1------------・--・Display screen 10--・-・-
...-Automatic program creation device 1-----
−・−・Display screen 3・・・−1−−・−−−1−−
-Function key 4 -------・Operation key O・・----1-・・・・・PC (programmer bluer) 1・−・−・・・−・・−・・−・Processor 2...
・−・・・−・・・−・−・Input circuit 3・・・・−・・
−1−−−−Output circuit 4−・−−−−−・−・−−−−
−・Interface 0−・−111・・−・・−ROM O−・・−−1−−−・・−RAM 1−・・・・−−1−−・−−−1−・Signal Storage memory O
−・・−・−・−−−−1 Non-volatile memory controller applicant FANUC Co., Ltd. agent Patent attorney Takeshi Hattori

Claims (2)

【特許請求の範囲】[Claims] (1)PC(プログラマブル・コントローラ)における
特定の信号の変化を調べるためのPCの信号トレース方
式において、 表示すべき信号をラダーシーケンス単位で指定し、 指定されたラダーシーケンスの前記信号を信号格納メモ
リに格納し、 表示要求に応じて前記信号の変化状態を表示画面上のラ
ダーシーケンスに表示するようにしたことを特徴とする
PCの信号トレース方式。
(1) In the PC signal tracing method for investigating changes in specific signals in a PC (programmable controller), the signals to be displayed are specified in ladder sequence units, and the signals of the specified ladder sequence are stored in the signal storage memory. A signal tracing system for a PC, characterized in that the signal is stored in a PC, and the changing state of the signal is displayed in a ladder sequence on a display screen in response to a display request.
(2)前記ラダーシーケンス単位の指定は前記表示画面
上のラダーシーケンスのコイルをカーソルで選択するこ
とによって行うことを特徴とする特許請求の範囲第1項
記載のPCの信号トレース方式。
(2) The PC signal tracing method according to claim 1, wherein the ladder sequence unit is specified by selecting a coil of the ladder sequence on the display screen with a cursor.
JP7431989A 1989-03-27 1989-03-27 Signal tracing system for programmable controller Pending JPH02253305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7431989A JPH02253305A (en) 1989-03-27 1989-03-27 Signal tracing system for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7431989A JPH02253305A (en) 1989-03-27 1989-03-27 Signal tracing system for programmable controller

Publications (1)

Publication Number Publication Date
JPH02253305A true JPH02253305A (en) 1990-10-12

Family

ID=13543682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7431989A Pending JPH02253305A (en) 1989-03-27 1989-03-27 Signal tracing system for programmable controller

Country Status (1)

Country Link
JP (1) JPH02253305A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller
JP2020140502A (en) * 2019-02-28 2020-09-03 ファナック株式会社 Sequence program processing device for use in tracing sequence program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller
JPWO2017203583A1 (en) * 2016-05-23 2018-07-12 三菱電機株式会社 Programmable logic controller
CN109154803A (en) * 2016-05-23 2019-01-04 三菱电机株式会社 Programmable logic controller (PLC)
CN109154803B (en) * 2016-05-23 2022-04-08 三菱电机株式会社 Programmable logic controller
JP2020140502A (en) * 2019-02-28 2020-09-03 ファナック株式会社 Sequence program processing device for use in tracing sequence program

Similar Documents

Publication Publication Date Title
US5426730A (en) Method and apparatus for displaying sequential function chart elements
JPH07334211A (en) Data tracing method for programmable controller
JP2002507303A (en) Programming device
JPH02253305A (en) Signal tracing system for programmable controller
EP0362392A1 (en) Pc simulation system
JP4542494B2 (en) Programmable display device, debugging support program, and debugging device control method
JPH06242819A (en) Signal state control system for programmable controller
JP2003248504A (en) Method for debugging control program
JP3167245B2 (en) Programmable controller operating state monitoring device
JPH0736536A (en) Programmable controller
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JPS6232510A (en) Abnormality diagnostic device for sequencer
JPH03105503A (en) Programmable controller
JPH02110706A (en) Data display system for pc
JPH01223504A (en) Sampling trace system for programmable controller
JPS62243008A (en) Signal trace controlling system for pmc
KR970007265B1 (en) Apparatus for plc program error check
JPH0242505A (en) Trace control system for program controller
JPH09114513A (en) Numerical control system
JP2003122408A (en) Method of preparing data for control system
JPS6132106A (en) Programming device of programmable controller
JPH06250709A (en) Peripheral equipment of programmable controller
JPH01277904A (en) Program display system for pc
JPH02226307A (en) Numerical controller
JPH07110651A (en) Method for storing comment in programmable controller, and programmable controller