JPH04237308A - Monitor system for numerical control - Google Patents

Monitor system for numerical control

Info

Publication number
JPH04237308A
JPH04237308A JP2045491A JP2045491A JPH04237308A JP H04237308 A JPH04237308 A JP H04237308A JP 2045491 A JP2045491 A JP 2045491A JP 2045491 A JP2045491 A JP 2045491A JP H04237308 A JPH04237308 A JP H04237308A
Authority
JP
Japan
Prior art keywords
program
numerical control
processor
function
trace
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
JP2045491A
Other languages
Japanese (ja)
Inventor
Kentaro Fujibayashi
謙太郎 藤林
Masahiko Miyake
雅彦 三宅
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 JP2045491A priority Critical patent/JPH04237308A/en
Publication of JPH04237308A publication Critical patent/JPH04237308A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simply execute the improvement and debugging of a system pro gram by including a monitor function necessary for the operation analysis of an internal processor of a CNC in this monitor system. CONSTITUTION:A software program 4b for analyzing the operation of the processor is previously stored in an read-only memory means 4 in a numerical controller 1. At the time of driving the device 1, the program 4b is read out by a program analyzing means 5 in parallel with a system program 4a. The operating state of the processor is written in a RAM 3 as a monitored result. The monitored result is outputted to the outside to inform the operating state of the processor to an operator.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は数値制御用モニタシステ
ムに関し、特にCNC化された数値制御装置(以下、単
にCNCという。)におけるCPUの動作を解析する数
値制御用モニタシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control monitor system, and more particularly to a numerical control monitor system for analyzing the operation of a CPU in a CNC numerical control device (hereinafter simply referred to as CNC).

【0002】0002

【従来の技術】従来から、CNCに内蔵されたCPUの
動作を解析するためには、デバッガ、あるいはエミュレ
ータと称するトレース機能を備えた専用のコンピュータ
が必要であった。この専用コンピュータは、CNCのC
PUに代えてCNC内の制御プログラムを実行するもの
であって、ターゲットデバッガとかインサーキットエミ
ュレータと呼ばれている。
2. Description of the Related Art Conventionally, in order to analyze the operation of a CPU built into a CNC, a dedicated computer with a tracing function called a debugger or emulator has been required. This dedicated computer is a CNC C
It executes a control program within the CNC instead of the PU, and is called a target debugger or in-circuit emulator.

【0003】こうした専用コンピュータによってCPU
の動作解析をする方法は、CNCのシステムプログラム
を開発する際にしばしば採用され、その威力を発揮して
いる。しかし最近のCNCでは、制御用のプログラム(
システムプログラム)の規模が大きくなっており、しか
もシステムの機能が膨大になってきている。このため、
システムプログラムの全ての機能についてのチェックを
テスト運転の段階で完全に終わらせることは、事実上不
可能である。
[0003] These dedicated computers allow CPU
The method of analyzing the motion of CNC is often adopted when developing CNC system programs, and its power is being demonstrated. However, in recent CNCs, control programs (
The scale of system programs (system programs) is increasing, and the functions of the systems are becoming enormous. For this reason,
It is virtually impossible to completely check all functions of a system program at the test run stage.

【0004】そこで、一旦開発が終わり、製品としてユ
ーザに納品されたCNCについても、内蔵されたCPU
の動作を解析する必要が生じる。とりわけ、ユーザがC
NCを使用している段階では、ユーザは独自のNCプロ
グラムによってCNCを運転する。従って、そこで初め
て出現するプログラムエラーに関しては、その原因はテ
スト運転によっては解明できないことがある。
[0004] Therefore, once the development is completed and the CNC is delivered to the user as a product, the built-in CPU
It becomes necessary to analyze the behavior of In particular, if the user
When using the NC, the user operates the CNC using a unique NC program. Therefore, when a program error appears for the first time, the cause may not be revealed through test operation.

【0005】[0005]

【発明が解決しようとする課題】しかし、従来の数値制
御用モニタシステムは、トレース機能等を備えた大型の
コンピュータによって構成されており、一般には数値制
御装置が設置された工場まで簡単には持ち込めない。し
かも一旦CNC内に組み込まれたROM内の制御用のソ
フトウェアは、簡単には交換ができない。そのため、制
御用のプログラムにソフトウェア障害が発生しても、C
NCを機械と接続した状態では、即ち稼働中の状態では
、ソフトウェア障害の原因を簡単には調査できない。
[Problem to be Solved by the Invention] However, conventional numerical control monitor systems are composed of large computers equipped with trace functions, etc., and generally cannot be easily carried to the factory where the numerical control equipment is installed. do not have. Moreover, once the control software in the ROM is incorporated into the CNC, it cannot be easily replaced. Therefore, even if a software failure occurs in the control program, the C
When the NC is connected to a machine, that is, when it is in operation, the cause of a software failure cannot be easily investigated.

【0006】従って、簡単なシステムプログラムの改善
、デバッグなどでも、長時間を要するという問題点があ
った。本発明はこのような点に鑑みてなされたものであ
り、簡単なトレース機能など、数値制御装置内部のプロ
セッサの動作解析に必要なモニタ機能を内蔵した数値制
御用モニタシステムを提供することを目的とする。
[0006]Therefore, there has been a problem in that even simple improvements and debugging of system programs require a long time. The present invention has been made in view of these points, and an object of the present invention is to provide a numerical control monitor system that has built-in monitoring functions necessary for analyzing the operation of a processor inside a numerical control device, such as a simple trace function. shall be.

【0007】[0007]

【課題を解決するための手段】本発明では上記課題を解
決するために、読み取り専用の記憶手段に格納されたシ
ステムプログラムと、このシステムプログラムを制御プ
ログラムとして動作するプロセッサとを内蔵した数値制
御装置において、前記プロセッサの動作を解析するソフ
トウェアプログラムを前記読み取り専用の記憶手段に予
め格納しておき、前記数値制御装置の稼働に際して前記
プロセッサの動作状態をモニタし、モニタ結果を外部に
出力することを特徴とする数値制御用モニタシステムが
、提供される。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides a numerical control device that includes a system program stored in a read-only storage means and a processor that operates with this system program as a control program. In the above, a software program for analyzing the operation of the processor is stored in the read-only storage means in advance, the operation state of the processor is monitored when the numerical control device is operated, and the monitoring result is outputted to the outside. A numerical control monitor system featuring features is provided.

【0008】[0008]

【作用】数値制御装置の稼働時に、制御用のシステムプ
ログラムを格納した記憶手段から、予め格納されたソフ
トウェアプログラムが並列に読み出される。このソフト
ウェアプログラムが実行されて、数値制御装置に内蔵さ
れたプロセッサの動作を解析し、稼働状態のモニタ結果
をオペレータに知らせる。
[Operation] When the numerical control device is in operation, previously stored software programs are read out in parallel from the storage means that stores control system programs. This software program is executed to analyze the operation of the processor built into the numerical control device and notify the operator of the results of monitoring the operating status.

【0009】[0009]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の数値制御用モニタシステムの概
略構成を示すブロック図である。この数値制御用モニタ
システムは、CNC1におけるシステムプログラムを制
御プログラムとして動作するプロセッサ(CPU)の動
作を解析するものであって、CNC1はCRT/MDI
ユニット2を備えている。RAM3には外部からユーザ
などが作成した専用のNCプログラムが書き込まれる。 このCNC1の内部には、上記RAM3の他、ROM(
読み取り専用メモリ)4、プログラム解析手段5、及び
タイマ手段6が設けられている。ROM4には制御プロ
グラムとして動作するシステムプログラム4a、及びそ
の制御用ソフトウェアに基づくCPUの動作を解析する
ソフトウェアプログラム4bが予め搭載される。ここで
、プログラム解析手段5は、システムプログラム4aを
制御プログラムとして動作するCPUと同一の演算手段
として構成されているが、プログラム解析手段5に専用
のプロセッサを割り当てるマルチプロセッサ構成であっ
ても良い。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a numerical control monitor system of the present invention. This numerical control monitor system analyzes the operation of a processor (CPU) that operates using a system program as a control program in a CNC1.
It has unit 2. A dedicated NC program created by a user or the like is externally written into the RAM 3. Inside this CNC 1, in addition to the above-mentioned RAM 3, there is a ROM (
A read-only memory) 4, program analysis means 5, and timer means 6 are provided. The ROM 4 is preloaded with a system program 4a that operates as a control program, and a software program 4b that analyzes the operation of the CPU based on the control software. Here, the program analysis means 5 is configured as the same calculation means as the CPU that operates with the system program 4a as a control program, but it may be of a multiprocessor configuration in which a dedicated processor is assigned to the program analysis means 5.

【0010】このように、数値制御用モニタシステムは
CNC1内にあって、基本制御用のシステムプログラム
4aとともに、次に示す4種類のソフトウェアプログラ
ム4bを含ませ、それによってCPUの動作状態をモニ
タする。これらのソフトウェアプログラム4bによるモ
ニタ動作は、必要に応じてタイマ手段6に設定された所
定の周期で、所定の機能についてサンプリング的に行わ
れる。
As described above, the numerical control monitor system is located in the CNC 1 and includes the following four types of software programs 4b as well as the system program 4a for basic control, thereby monitoring the operating status of the CPU. . The monitoring operation by these software programs 4b is performed in a sampling manner for predetermined functions at a predetermined cycle set in the timer means 6 as necessary.

【0011】ソフトウェアプログラム4bの第1の機能
は、CPUの走った跡を記録するプログラムについての
トレース機能である。この機能は、CPUが機械語のレ
ベルでどのようなルートを走ったかをトレースリストに
記録する。
The first function of the software program 4b is a trace function for a program that records the traces of the CPU. This function records the route taken by the CPU at the machine language level in a trace list.

【0012】第2の機能は、特定のRAMアドレスに対
するシステムプログラム4aのアクセス状態を記録する
メモリトレース機能である。この機能は、CPUがある
特定のRAM領域に対して、どのようなデータをリード
し、あるいはライトしたかをトレースリストに記録する
トレース機能の一種である。
The second function is a memory trace function that records the access status of the system program 4a to a specific RAM address. This function is a type of trace function that records in a trace list what kind of data the CPU has read or written to a specific RAM area.

【0013】第3の機能は、制御用のシステムプログラ
ム4aによって実行される、アドレスAから別のアドレ
スBまでのCPUの処理時間をタイマ手段6により測定
させるタイマ機能である。これによって、プロセッサが
ある時間内で所定の処理を終了しているか否かを判断す
る。
The third function is a timer function which is executed by the control system program 4a and causes the timer means 6 to measure the processing time of the CPU from address A to another address B. This determines whether the processor has completed a predetermined process within a certain time.

【0014】図2は本発明を実施するための数値制御装
置(CNC)のハードウェアのブロック図である。プロ
セッサ11はROM4に格納された上記システムプログ
ラム4aに従って、数値制御装置全体を制御する。RO
M4にはEPROMあるいはEEPROMが使用される
。RAM3にはSRAMが使用され、上述したNCプロ
グラム、トレースリストのようなモニタ結果など、各種
のデータが格納される。不揮発性メモリ14には加工プ
ログラム14a、パラメータ等が記憶され、バッテリバ
ックアップされたCMOS等が使用されるので、数値制
御装置の電源切断後もその内容が保持される。
FIG. 2 is a block diagram of the hardware of a numerical control device (CNC) for implementing the present invention. The processor 11 controls the entire numerical control device according to the system program 4a stored in the ROM 4. R.O.
EPROM or EEPROM is used for M4. An SRAM is used as the RAM 3, and various data such as the above-mentioned NC program and monitoring results such as a trace list are stored. A machining program 14a, parameters, etc. are stored in the nonvolatile memory 14, and since a battery-backed CMOS or the like is used, the contents are retained even after the numerical control device is powered off.

【0015】PMC(プログラマブル・マシン・コント
ローラ)15はM機能、S機能、T機能等の指令を受け
て、シーケンスプログラム15aによってこの指令を解
読処理し、工作機械を制御する出力信号を出力する。ま
た、機械側制御回路からのリミットスイッチの信号ある
いは機械操作盤からのスイッチ信号を受けて、シーケン
ス・プログラム15aで処理し、機械側を制御する出力
信号を出力する。また、数値制御装置で必要な信号はバ
ス25を経由してRAM3に転送し、プロセッサ11に
よって、読み取られる。
A PMC (programmable machine controller) 15 receives commands for the M function, S function, T function, etc., decodes and processes the commands using a sequence program 15a, and outputs an output signal for controlling the machine tool. It also receives a limit switch signal from the machine side control circuit or a switch signal from the machine operation panel, processes it in the sequence program 15a, and outputs an output signal for controlling the machine side. Further, signals necessary for the numerical control device are transferred to the RAM 3 via the bus 25 and read by the processor 11.

【0016】グラフィック制御回路16は各軸の現在位
置、移動量等のRAM3に格納されたデータを表示信号
に変換し、CRT/MDIユニット2の表示装置2aに
送り、表示装置2aはこれを表示する。表示装置2aは
CRT、液晶表示装置等が使用される。キーボード2b
は各種のデータを入力するのに使用される。
The graphic control circuit 16 converts the data stored in the RAM 3, such as the current position and amount of movement of each axis, into a display signal and sends it to the display device 2a of the CRT/MDI unit 2, and the display device 2a displays this. do. As the display device 2a, a CRT, a liquid crystal display, or the like is used. keyboard 2b
is used to input various data.

【0017】軸制御回路18はプロセッサ11から位置
指令を受けて、サーボモータ20を制御するための速度
指令信号をサーボアンプ19に出力する。サーボアンプ
19はこの速度指令信号を増幅し、サーボモータ20を
駆動する。サーボモータ20には位置帰還信号を出力す
るパルスコーダ21が結合されている。パルスコーダ2
1は位置帰還パルスを軸制御回路18にフィードバック
する。パルスコーダ21の他にリニアスケール等の位置
検出器を使用する場合もある。これらの要素は軸数分だ
け必要であるが、各要素の構成は同じであるので、ここ
では1軸分のみ表してある。
The axis control circuit 18 receives a position command from the processor 11 and outputs a speed command signal for controlling the servo motor 20 to the servo amplifier 19. The servo amplifier 19 amplifies this speed command signal and drives the servo motor 20. A pulse coder 21 that outputs a position feedback signal is coupled to the servo motor 20. pulse coder 2
1 feeds back a position feedback pulse to the axis control circuit 18. In addition to the pulse coder 21, a position detector such as a linear scale may be used. These elements are required for the number of axes, but since the configuration of each element is the same, only one axis is shown here.

【0018】入出力回路22は機械側との入出力信号の
授受を行う。すなわち機械側のリミットスイッチ信号、
機械操作盤のスイッチ信号を受け、これをPMC15が
読み取る。また、PMC15からの機械側の空圧アクチ
ュエータ等を制御する出力信号を受けて、機械側に出力
する。
The input/output circuit 22 exchanges input/output signals with the machine side. In other words, the limit switch signal on the machine side,
The PMC 15 receives the switch signal from the machine operation panel and reads it. It also receives an output signal from the PMC 15 that controls a pneumatic actuator on the machine side, and outputs it to the machine side.

【0019】手動パルス発生器23は回転角度に応じて
、各軸を精密に移動させるパルス列を出力し、機械位置
を精密に位置決めするために使用される。手動パルス発
生器23は通常、機械操作盤に実装される。図ではスピ
ンドルを制御するためのスピンドル制御回路、スピンド
ルアンプ、スピンドルモータ等は省略してある。また、
ここではプロセッサは1個であるが、システムに応じて
複数のプロセッサを使用したマルチ・プロセッサシステ
ムにすることもできる。
The manual pulse generator 23 outputs a pulse train for precisely moving each axis in accordance with the rotation angle, and is used to precisely position the machine. Manual pulse generator 23 is typically mounted on a machine operation panel. In the figure, a spindle control circuit, a spindle amplifier, a spindle motor, etc. for controlling the spindle are omitted. Also,
Although there is one processor here, a multi-processor system using a plurality of processors can also be used depending on the system.

【0020】次に、ソフトウェアプログラム4bによっ
て実行されるCPUの動作状態のモニタ方法について説
明する。図3は上記第1のプログラムトレース機能を説
明するフローチャートである。図において、Sに続く数
値はステップ番号を示す。
Next, a method of monitoring the operating state of the CPU executed by the software program 4b will be explained. FIG. 3 is a flowchart illustrating the first program trace function. In the figure, the number following S indicates the step number.

【0021】〔S1〕CPU11内のインタバルタイマ
が発生するタイマ割込みの有無を調べる。 〔S2〕割込みがなければ、CPU11は制御プログラ
ムに基づいて所定のNC命令を実行する。 〔S3〕タイマ割込みがあれば、CPU11はソフトウ
ェアプログラム4bを実行する。即ち、プログラムトレ
ース命令を解読して、CPU11内のプログラムカウン
タをスタックにセーブする。
[S1] Check whether there is a timer interrupt generated by the interval timer in the CPU 11. [S2] If there is no interrupt, the CPU 11 executes a predetermined NC command based on the control program. [S3] If there is a timer interrupt, the CPU 11 executes the software program 4b. That is, the program trace instruction is decoded and the program counter in the CPU 11 is saved in the stack.

【0022】〔S4〕次に、CPU11のスタックから
スタックアドレスを読み出す。 〔S5〕RAM3に設けられたトレースエリアに、プロ
グラムカウンタから読み出された内容を書き込んで、ト
レースリストを作成する。
[S4] Next, the stack address is read from the stack of the CPU 11. [S5] The contents read from the program counter are written in the trace area provided in the RAM 3 to create a trace list.

【0023】図4は上記第2のメモリトレース機能を説
明するフローチャートである。この機能によれば、トレ
ース命令によって指定されたRAM領域に対する、CP
U11のアクセス内容をトレースリストに記録できる。
FIG. 4 is a flowchart illustrating the second memory trace function. According to this function, the CP for the RAM area specified by the trace instruction is
The access contents of U11 can be recorded in the trace list.

【0024】〔S11〕CPU11内のインタバルタイ
マが発生するタイマ割込みの有無を調べる。 〔S12〕割込みがなければ、CPU11は制御プログ
ラムに基づいて所定のNC命令を実行する。 〔S13〕割込みがあれば、CPU11はソフトウェア
プログラム4bを実行する。即ち、トレース命令を解読
して、CPU11からアクセス可能なRAM3のワーク
エリアを特定する。
[S11] Check whether there is a timer interrupt generated by the interval timer in the CPU 11. [S12] If there is no interrupt, the CPU 11 executes a predetermined NC command based on the control program. [S13] If there is an interrupt, the CPU 11 executes the software program 4b. That is, the trace command is decoded to identify the work area of the RAM 3 that is accessible from the CPU 11.

【0025】〔S14〕次に、特定されたRAM3のア
ドレスを読み出す。 〔S15〕RAM3に設けられたトレースエリアに、R
AM3のワークエリアから読み出された内容を書き込ん
で、トレースリストを作成する。
[S14] Next, the specified address of RAM 3 is read. [S15] In the trace area provided in RAM3,
Create a trace list by writing the contents read from the work area of AM3.

【0026】図5は上記第3のタイマ機能を説明するフ
ローチャートである。この機能は、制御プログラムに基
づくCPU11の処理時間をタイマ手段6により測定し
ており、ある時間内で所定の処理が終了しているか否か
を判断できる。
FIG. 5 is a flowchart illustrating the third timer function. This function uses the timer means 6 to measure the processing time of the CPU 11 based on the control program, and it can be determined whether a predetermined process has been completed within a certain time.

【0027】〔S21〕システムプログラム4aの実行
に付随して発生するトラップ命令を検出する。このトラ
ップ命令は、予めシステムプログラム4aの評価をした
い箇所に挿入しておく。 〔S22〕トラップ命令が検出されなければ、CPU1
1は制御プログラムに基づいて所定のNC命令を実行す
る。
[S21] A trap instruction generated along with the execution of the system program 4a is detected. This trap instruction is inserted in advance at a location where the system program 4a is desired to be evaluated. [S22] If no trap instruction is detected, CPU1
1 executes a predetermined NC command based on a control program.

【0028】〔S23〕トラップ命令が検出されれば、
割込みが発生し、CPU11はタイマ手段6における計
時動作の有無を調べる。 〔S24〕計時中でなければ、CPU11はソフトウェ
アプログラム4bを実行する。即ち、タイマ命令を解読
して、割込みが掛けられたCPU11で実行中のアドレ
ス内容を書き換えるとともに、タイマ処理を終了するア
ドレスを指定する。
[S23] If a trap instruction is detected,
An interrupt occurs, and the CPU 11 checks whether or not the timer means 6 is performing a timing operation. [S24] If the time is not being counted, the CPU 11 executes the software program 4b. That is, it decodes the timer instruction, rewrites the contents of the address currently being executed by the CPU 11 to which the interrupt has been applied, and specifies the address at which the timer processing ends.

【0029】〔S25〕上記タイマ命令に基づいて、タ
イマ処理を終了するアドレスの制御プログラムを書き換
えて、そこにタイマ処理終了のためのトラップ命令を設
定する。 〔S26〕上記タイマ手段6における計時動作を開始し
、ステップS22に戻って次のNC命令を続行する。
[S25] Based on the above timer instruction, the control program of the address at which timer processing is to be terminated is rewritten, and a trap instruction for terminating timer processing is set there. [S26] The timer means 6 starts measuring time, and returns to step S22 to continue the next NC command.

【0030】〔S27〕ステップS23で計時中と判断
されれば、タイマ手段6における計時動作を終了し、C
PU11はタイマ手段6の計時内容を読み出す。 〔S28〕RAM3に設けられたトレースエリアに、読
み出された計時内容を書き込む。このとき、設定された
基準時間と比較し、その比較結果に応じて、プログラム
実行異状の有無を表示することも可能である。
[S27] If it is determined in step S23 that time measurement is in progress, the time measurement operation in the timer means 6 is terminated, and C
The PU 11 reads out the time measurement contents of the timer means 6. [S28] The read timing contents are written in the trace area provided in the RAM 3. At this time, it is also possible to compare it with a set reference time and display whether there is an abnormality in program execution according to the comparison result.

【0031】第4の機能は、上記第1乃至第3の機能に
基づくモニタ結果を外部に出力する機能である。この機
能によって、第1のトレース機能に基づくモニタ結果を
CNCの表示装置2aに表示したり、第2のトレース機
能に基づくモニタ結果をパラレルポートによって外部に
転送したりできる。いずれのモニタ結果についても、通
信回線を介して外部機器、例えば他のコンピュータに出
力し、所定の評価を加えることができる。こうした操作
は、全部のデータが一旦RAM3内のモニタ領域に記録
された後、一括して行われる。
The fourth function is to output the monitoring results based on the first to third functions to the outside. This function allows the monitoring results based on the first trace function to be displayed on the display device 2a of the CNC, and the monitoring results based on the second trace function to be transferred to the outside via the parallel port. Any monitoring result can be output to an external device, for example, another computer, via a communication line, and a predetermined evaluation can be added. These operations are performed all at once after all data is once recorded in the monitor area within the RAM 3.

【0032】こうして上記トレースリストには、アドレ
ス番号、及びそれに対応して読み出されたニモニックコ
ード、あるいはプログラムの処理実行時間が順次記録さ
れていく。したがってオペレータは、CPU11の実行
データとは別に、数値制御装置が稼働している状態のモ
ニタ結果を、上記トレースエリアから読み出し、数値制
御装置の通信回線を介してシリアルデータとして外部機
器に出力できる。上記入出力回路22にパラレルポート
、例えばDAコンバータを使用すれば、モニタ結果はパ
ラレルデータとしても出力でき、例えばシンクロスコー
プにアナログ表示される。
[0032] In this manner, address numbers, correspondingly read mnemonic codes, or program processing execution times are sequentially recorded in the trace list. Therefore, apart from the execution data of the CPU 11, the operator can read the monitoring results of the operating state of the numerical control device from the trace area and output them as serial data to an external device via the communication line of the numerical control device. If a parallel port, such as a DA converter, is used for the input/output circuit 22, the monitoring results can be output as parallel data, and displayed in analog form on, for example, a synchroscope.

【0033】このような機能によって、CNCの稼働に
際してソフトウェア障害が発生した時に、CPUをCN
Cから外すことなく、機械に搭載した状態で原因の調査
が可能になる。上記の説明は、4種類のソフトウェアプ
ログラム4bに従ってプロセッサの動作状態をモニタす
る場合であるが、NC制御プログラムに応じて他の種々
の機能を追加し、あるいは変更して、数値制御用モニタ
システムを構成することも可能である。
[0033] With such a function, when a software failure occurs during CNC operation, the CPU can be
It becomes possible to investigate the cause while mounted on the machine without removing it from C. The above explanation is for the case where the operating status of the processor is monitored according to the four types of software programs 4b, but various other functions can be added or changed depending on the NC control program to create a numerical control monitor system. It is also possible to configure

【0034】[0034]

【発明の効果】以上説明したように本発明では、従来の
デバッガ、エミュレータのような専用のコンピュータを
接続する必要がなくなる。したがって数値制御装置のC
PUを制御するシステムプログラムに対して、手軽にプ
ログラムトレース等が実行できるモニタシステムが構築
される。
As described above, the present invention eliminates the need to connect a dedicated computer such as a conventional debugger or emulator. Therefore, C of the numerical control device
A monitor system is constructed that can easily perform program tracing and the like on a system program that controls a PU.

【0035】また、CNCに対して特殊な機器の接続を
必要とせずに、数値制御装置が工作機械に組み込まれた
状態で、しかもその稼働中であってもモニタ結果を得る
ことができる。
Furthermore, monitoring results can be obtained with the numerical control device installed in the machine tool and even while the machine tool is in operation, without requiring any special equipment to be connected to the CNC.

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

【図1】本発明の数値制御用モニタシステムの概略構成
を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a numerical control monitor system of the present invention.

【図2】本発明を実施するための数値制御装置(CNC
)のハードウェアのブロック図である。
[Fig. 2] Numerical control device (CNC) for implementing the present invention
) is a block diagram of the hardware.

【図3】プログラムトレース機能を説明するフローチャ
ートである。
FIG. 3 is a flowchart illustrating a program trace function.

【図4】メモリトレース機能を説明するフローチャート
である。
FIG. 4 is a flowchart illustrating a memory trace function.

【図5】タイマ機能を説明するフローチャートである。FIG. 5 is a flowchart illustrating a timer function.

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

1  CNC 2  CRT/MDIユニット 3  RAM 4  ROM 5  プログラム解析手段 6  タイマ手段 4a  システムプログラム 4b  ソフトウェアプログラム 1 CNC 2 CRT/MDI unit 3 RAM 4 ROM 5 Program analysis means 6. Timer means 4a System program 4b Software program

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】  読み取り専用の記憶手段に格納された
システムプログラムと、このシステムプログラムを制御
プログラムとして動作するプロセッサとを内蔵した数値
制御装置において、前記プロセッサの動作を解析するソ
フトウェアプログラムを前記読み取り専用の記憶手段に
予め格納しておき、前記数値制御装置の稼働に際して前
記プロセッサの動作状態をモニタし、モニタ結果を外部
に出力することを特徴とする数値制御用モニタシステム
1. A numerical control device that includes a system program stored in a read-only storage means and a processor that operates using the system program as a control program, wherein a software program for analyzing the operation of the processor is stored in the read-only storage means. What is claimed is: 1. A numerical control monitor system, characterized in that the operating state of the processor is stored in advance in a storage means, the operating state of the processor is monitored during operation of the numerical control device, and the monitoring results are output to the outside.
【請求項2】  前記ソフトウェアプログラムは、前記
プロセッサの中で前記システムプログラムの走った跡を
記録するトレース機能、前記プロセッサから特定メモリ
領域へのアクセス状態を記録するトレース機能、あるい
は前記プロセッサによるプログラムの処理実行時間を測
定するタイマ機能の内の少なくとも1つの機能を含み、
かつ前記モニタ結果を外部に出力する機能を含むことを
特徴とする請求項1に記載の数値制御用モニタシステム
2. The software program has a trace function that records the running trace of the system program in the processor, a trace function that records the state of access from the processor to a specific memory area, or a trace function that records the execution of the program by the processor. including at least one function of a timer function for measuring processing execution time,
The numerical control monitor system according to claim 1, further comprising a function of outputting the monitoring result to the outside.
【請求項3】  前記プロセッサの動作状態は、前記ソ
フトウェアプログラムが前記システムプログラムに対し
て周期的に割り込むことによってモニタされることを特
徴とする請求項2に記載の数値制御用モニタシステム。
3. The numerical control monitor system according to claim 2, wherein the operating state of the processor is monitored by the software program periodically interrupting the system program.
【請求項4】  前記モニタ結果は、所定のトレースエ
リアに蓄積され、その後に前記数値制御装置の表示画面
に表示されることを特徴とする請求項3に記載の数値制
御用モニタシステム。
4. The numerical control monitor system according to claim 3, wherein the monitoring results are accumulated in a predetermined trace area and then displayed on a display screen of the numerical control device.
【請求項5】  前記モニタ結果は、前記数値制御装置
から通信回線を介してシリアルデータとして、あるいは
パラレルポートを介してパラレルデータとして出力され
ることを特徴とする請求項3に記載の数値制御用モニタ
システム。
5. The numerical control device according to claim 3, wherein the monitoring result is output from the numerical control device as serial data via a communication line or as parallel data via a parallel port. monitor system.
JP2045491A 1991-01-21 1991-01-21 Monitor system for numerical control Pending JPH04237308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2045491A JPH04237308A (en) 1991-01-21 1991-01-21 Monitor system for numerical control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2045491A JPH04237308A (en) 1991-01-21 1991-01-21 Monitor system for numerical control

Publications (1)

Publication Number Publication Date
JPH04237308A true JPH04237308A (en) 1992-08-25

Family

ID=12027519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2045491A Pending JPH04237308A (en) 1991-01-21 1991-01-21 Monitor system for numerical control

Country Status (1)

Country Link
JP (1) JPH04237308A (en)

Similar Documents

Publication Publication Date Title
EP3336637A1 (en) Control system, control program, and control method
US4511982A (en) Numerical control device
JP3225757B2 (en) Programmable controller
JPH01274202A (en) Loop controller
US7386359B2 (en) Device and method for testing machine tools and production machines
JP2019165533A (en) Controller
JPH04237308A (en) Monitor system for numerical control
JPH07200019A (en) Robot controller
JPH05324022A (en) Computer connection type robot controller
CN113348415B (en) Device state reproducing device, method and storage medium
KR20090036287A (en) System for real time control of total control system and method thereof
JPH0268606A (en) Cnc diagnosing system
WO2023053457A1 (en) Control device
JPS6232510A (en) Abnormality diagnostic device for sequencer
JPS6333169B2 (en)
JP2003091302A (en) Abnormality detector in control system of machine tool
JP2820889B2 (en) controller
JPH08278806A (en) Cnc macro variable debugging system
JPH03159515A (en) Digital control/protective relay analysis maintenance supporting unit
JP2001150373A (en) Robot simulation device and robot control device
JP2707031B2 (en) Method and apparatus for checking machining program
JPS6299812A (en) Monitor system for numerical controller
JPH0210404A (en) Cnc device
JPH0442309A (en) Signal tracing method for cnc
JPH05197408A (en) Numerical controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000201