JPH01244501A - Pc trace control system - Google Patents

Pc trace control system

Info

Publication number
JPH01244501A
JPH01244501A JP63071122A JP7112288A JPH01244501A JP H01244501 A JPH01244501 A JP H01244501A JP 63071122 A JP63071122 A JP 63071122A JP 7112288 A JP7112288 A JP 7112288A JP H01244501 A JPH01244501 A JP H01244501A
Authority
JP
Japan
Prior art keywords
trace
signal
program
traced
signals
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
JP63071122A
Other languages
Japanese (ja)
Inventor
Nobuyuki Kitani
木谷 信之
Kimio Maeda
前田 紀美夫
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 JP63071122A priority Critical patent/JPH01244501A/en
Publication of JPH01244501A publication Critical patent/JPH01244501A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily trace a signal, to facilitate recognition of the time elapse of the signal and to shorten the debugging time by providing a source program with a trace function to trace the required signal. CONSTITUTION:With respect to the trace function, instructions of program numbers 21 and 22 are added for trace in a source program 5 generated in the PASCAL language. The instruction of the program number 22 is the trace function, and I is the number of signals to be traced and TR designates the signal to be traced. The instruction of the program number 21 indicates that the signal designated by the trace function is A. Then, the signal A is traced and results are stored in a trace area. The trace function including the signal to be traced and the number of signals to be traced is designated to the source program of a PC generated in a high level language, and the signal is traced, and results are stored in the memory and are displayed. Thus, it is unnecessary to generate or add a special program for trace.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はPC(プログラマブル・コン1〜ローラ)のユ
ーザプログラムをデバッグするためのPCのトレース制
御方式に関し、特に信号をトレースするためのトレース
関数を設けたPCのトレース制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a PC trace control method for debugging a user program of a PC (programmable controller 1 to a controller), and in particular a trace function for tracing signals. This invention relates to a trace control method for a PC equipped with a PC.

〔従来の技術〕[Conventional technology]

PC(プログラマブル・コントローラ)のユーザプログ
ラムをデバッグするときに、ユーザプログラムの動作を
確認するために、現在実行中の命令をソースプログラム
上に表示する機能や、必要な信号をメモリに格納する処
理を追加している。
When debugging a user program on a PC (programmable controller), in order to check the operation of the user program, there is a function that displays the currently executing instructions on the source program, and a process that stores necessary signals in memory. Adding.

特に、ユーザプログラムがパスカル言語等の高級言語の
場合は、ソースプログラムとオブジェク1〜プログラム
の対応がつかないので、このような必要性が高い。
This is especially necessary when the user program is a high-level language such as the Pascal language, since there is no correspondence between the source program and the objects 1 to 1 through the program.

〔発明が解決しヰうとする課題] しかし、このような確認のためのプログラムをソースプ
ログラムに多数追加すると、ユーザプロクラムが完成後
に削除するのに手間がかかり、削除するときに誤り等が
発生ずる可能性もある。
[Problem to be solved by the invention] However, if a large number of such confirmation programs are added to a source program, it takes time to delete them after the user program is completed, and errors may occur when deleting them. There is a possibility.

また、確認すべきデータをメモリに格納しても、時間経
過による信号の変化の過程を把握するのが一般に困難で
ある。
Furthermore, even if data to be confirmed is stored in memory, it is generally difficult to understand the process of signal change over time.

本発明はこのような点に鑑みてなされたものであり、信
号をトレースするためのトレース関数を設けたPCのト
レース制御方式を提供することを目的とする。
The present invention has been made in view of these points, and it is an object of the present invention to provide a trace control method for a PC provided with a trace function for tracing signals.

〔課題を解決するための手段] 本発明では上記課題を解決するために、I)C(プログ
ラマブル・コン1司コーラ)のユーザプログラムをデハ
ソグするだめのl’ Cのトレース制御方式において、 高級言語で作成されたPCのソースプロゲラ1、にトレ
ースすべき信号と数を含むトレース関数を指令し、 該信号をトレースして、メモリに記憶し、該信号を表示
するようにしたPCのトレース制御方式提供される。
[Means for Solving the Problems] In order to solve the above problems, the present invention uses a high-level language in a trace control method for I'C (Programmable Controller), which is used to dehasoglog a user program of C (Programmable Controller). A PC trace control that instructs the PC source created by Progera 1 to trace a function including the signal and number to be traced, traces the signal, stores it in memory, and displays the signal. method provided.

〔作用〕[Effect]

ソースプログラムに追t’>+1されたI・レース関数
が、指定された信伺をトレースし、メモリに格納し、表
示する。従って、トレースのための特別のプログラムを
作成したり、追加したりする必要がない。
The I-race function added to the source program traces the specified signal, stores it in memory, and displays it. Therefore, there is no need to create or add a special program for tracing.

(実施例〕 以下、本発明の一実施例をし」而に基づいて説明する。(Example〕 DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below.

第1図に本発明を実施するだめのPC(プログラマブル
・コントローラ)のハードウェアのフ゛11ツタ図を示
す。図において、1 iJプログラム作成装置、2は表
示画面でありCRT、液晶表示装置等が使用される。表
示画面2には、指定されたトレース信号が表示される。
FIG. 1 shows a block diagram of the hardware of a PC (programmable controller) on which the present invention is implemented. In the figure, 1 is an iJ program creation device, 2 is a display screen, and a CRT, liquid crystal display, etc. are used. The specified trace signal is displayed on the display screen 2.

3はファンクションキーであり、4は操作キーである。3 is a function key, and 4 is an operation key.

10ばPC(7’ログラマブル・コントローラ)、11
はPC全体を制御するプロセッサである。12は入力回
路であり、外部からの信号を受け、信号レベルを変換し
てハスに転送する。13は出力回路であり、内部の出力
信号を外部へ出力する。
10ba PC (7' programmable controller), 11
is a processor that controls the entire PC. 12 is an input circuit that receives a signal from the outside, converts the signal level, and transmits it to the lotus. 13 is an output circuit, which outputs an internal output signal to the outside.

20はROMであり、その内部にはユーザプログラムの
実行を管理する管理プログラム21と工作機械等を制御
するためのパスカル言語で作成されたユーザプログラム
22等が格納されている。
Reference numeral 20 denotes a ROM, in which a management program 21 for managing the execution of user programs, a user program 22 written in Pascal language for controlling machine tools, etc. are stored.

30はRAMであり、各種のデータが格納されており、
入力信号、出力信号、補助リレー信号、内部レジスタ信
号もここに格納される。
30 is a RAM, in which various data are stored;
Input signals, output signals, auxiliary relay signals, and internal register signals are also stored here.

40はプログラム作成装置用のインタフェースであり、
ハスとプログラム作成装置を接続するだめのインタフェ
ース回路である。
40 is an interface for the program creation device;
This is an interface circuit that connects the lotus and the programming device.

第2図に1−レース関数の例を示す。図において、5は
パスカル言語で作成されたソースプログラムである。5
aはソースプログラムのプログラム番号であり、プログ
ラム番号20.23は通常のソースプログラムである。
FIG. 2 shows an example of a 1-race function. In the figure, 5 is a source program created in Pascal language. 5
a is the program number of the source program, and program number 20.23 is a normal source program.

プログラム番号21と22はトレースのために追加され
た命令である。
Program numbers 21 and 22 are instructions added for tracing.

プログラム番月22の命令はトレース関数であり、1は
トレースすべき信号の数、1゛Rはトレースすべき信号
の指定である。プログラム番号21の命令はトレース関
数で指定された信号がAであることを指定する命令であ
る。これによって、信号AがI・レースされ、トレース
領域に格納される。
The command with program number 22 is a trace function, where 1 is the number of signals to be traced and 1'R is the designation of the signal to be traced. The instruction with program number 21 is an instruction that specifies that the signal specified by the trace function is A. As a result, signal A is traced and stored in the trace area.

第3図にトレースされた信号を表示した例を示す。6は
表示画面であり、6aはシーケンス番号、22はトレー
ス関数が指定されたソースプロクラムのプログラム番号
、6cは信号Aの状態を示す。
FIG. 3 shows an example of displaying traced signals. 6 is a display screen, 6a is a sequence number, 22 is a program number of a source program to which a trace function is specified, and 6c is a state of signal A.

ずなわち、信号Aが0.2.4と変化していく状態が明
確に分かる。
That is, it can be clearly seen that the signal A changes to 0.2.4.

上記の説明ではソースプログラムをパスカル言語で説明
したが、他の言語でも同様に適用することができる。ま
た、ラダープログラムのような言語で作成されたプログ
ラムでも、トレース関数を定義するマクロ命令等によっ
て同様に必要な信号をトレースすることができる。
In the above explanation, the source program was explained in Pascal language, but it can be similarly applied to other languages. Further, even in a program created in a language such as a ladder program, necessary signals can be similarly traced using macro instructions that define a trace function.

(発明の効果〕 以上説明したように本発明では、ソースプログラムにト
レース関数を設けて、必要な信号をトレースするように
構成したので、信号を簡単にトレースすることができ、
信号の時間的経過の把握が容易になり、デバッグ時間も
短縮される。
(Effects of the Invention) As explained above, in the present invention, a trace function is provided in the source program and the necessary signals are traced, so that the signals can be easily traced.
It becomes easier to understand the time course of signals, and debugging time is also shortened.

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

第1図は本発明を実施するためのPC(プログラマブル
・コントローラ)のハードウェアのブロック図、 第2図はトレース関数の例を示す図、 第3図はトレースされた信号を表示した図である。 1−−−−−−−−−−−−プログラム作成装置2−−
−−−−−−−−一表示画面 3−−−−−−−−−−・ファンクションキー4−−−
−−−−−−−一操作キー 5−−−−−−−−−−−−−ソースプログラム6−−
−−−−−−−−表示画面 10−−−−−−−−−−−−P C(プログラマブル
・コントローラ) 11−−−−−−−−−−−−−プロセッサ12−−−
−−−−−−−−−−一入力回路13−−−−−−−−
−−−−出力回路20−=−−−−−−−−−ROM 21−−−−−−−−−−−−管理プログラム22−−
−−−−−−−−−−−−ユーザプログラム30−−−
−−−−−−−−−−−− RA M40−−−−−−
−−−−−−−−−インタフェース特許出願人 ファナ
ック株式会社 代理人   弁理士  服部毅巖 菓3M 第2M
Figure 1 is a block diagram of the hardware of a PC (programmable controller) for implementing the present invention, Figure 2 is a diagram showing an example of a trace function, and Figure 3 is a diagram displaying traced signals. . 1-----------Program creation device 2--
−−−−−−−−Display screen 3−−−−−−−−・Function key 4−−−
--------- One operation key 5 ------------ Source program 6 ---
------------Display screen 10------------PC (programmable controller) 11------------Processor 12--
−−−−−−−−−−−One input circuit 13−−−−−−−−
---Output circuit 20--=----- ROM 21------- Management program 22--
------------User program 30----
------------ RA M40----
−−−−−−−−−Interface patent applicant Fanuc Co., Ltd. agent Patent attorney Koganaka Hattori 3M 2M

Claims (2)

【特許請求の範囲】[Claims] (1)PC(プログラマブル・コントローラ)のユーザ
プログラムをデバッグするためのPCのトレース制御方
式において、 高級言語で作成されたPCのソースプログラムにトレー
スすべき信号と数を含むトレース関数を指令し、 該信号をトレースして、メモリに記憶し、該信号を表示
するようにしたPCのトレース制御方式。
(1) In a PC trace control method for debugging a PC (programmable controller) user program, a trace function containing signals and numbers to be traced is commanded to a PC source program written in a high-level language, and A PC trace control method that traces signals, stores them in memory, and displays the signals.
(2)前記高級言語はパスカル言語であることを特徴と
する特許請求の範囲第1項記載のPCのトレース制御方
式。
(2) The trace control method for a PC according to claim 1, wherein the high-level language is a Pascal language.
JP63071122A 1988-03-25 1988-03-25 Pc trace control system Pending JPH01244501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63071122A JPH01244501A (en) 1988-03-25 1988-03-25 Pc trace control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63071122A JPH01244501A (en) 1988-03-25 1988-03-25 Pc trace control system

Publications (1)

Publication Number Publication Date
JPH01244501A true JPH01244501A (en) 1989-09-28

Family

ID=13451449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63071122A Pending JPH01244501A (en) 1988-03-25 1988-03-25 Pc trace control system

Country Status (1)

Country Link
JP (1) JPH01244501A (en)

Similar Documents

Publication Publication Date Title
US5513317A (en) System and method for permitting rapid refinement of data output from a debugger
JPS6116100B2 (en)
JPH01244501A (en) Pc trace control system
JPH0554277A (en) Plant monitor device
JPH0581070A (en) Programmable controller and user program execution method in programmable controller
JPH02275539A (en) Debugging system
JPH0242505A (en) Trace control system for program controller
JPS62162105A (en) Flow chart type programmable controller
JPH01177613A (en) System for displaying nc program
JPS6170610A (en) Numerical controller
JPH04123144A (en) Debuging device
JPH0239330A (en) Debugging system for on-line program
JP3443184B2 (en) Programmer for programmable controller
JPH05297913A (en) Programmable controller
JPH047637A (en) Program diagram generating device
JPH01244502A (en) Pc program display system
JPH1078817A (en) Programmable display device
JPS63317840A (en) Program debug system
JPH0350672A (en) Interactive type text editor
JPH01152505A (en) Program debugging system for pc
JPH02253305A (en) Signal tracing system for programmable controller
JPH0667931A (en) Single chip microcomputer simulator
JPH01134502A (en) Pc off-line executing system
JPH03269622A (en) Generating device for job control statement
JPH02284205A (en) Simulation system for pc