JPH0442309A - Signal tracing method for cnc - Google Patents
Signal tracing method for cncInfo
- Publication number
- JPH0442309A JPH0442309A JP2149623A JP14962390A JPH0442309A JP H0442309 A JPH0442309 A JP H0442309A JP 2149623 A JP2149623 A JP 2149623A JP 14962390 A JP14962390 A JP 14962390A JP H0442309 A JPH0442309 A JP H0442309A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- trace
- change
- cnc
- 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
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は数値制御装置(CNC)の信号トレース方法に
関し、特にトレース信号の変化した時刻を表示するよう
にしたCNCの信号トレース方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a signal tracing method for a numerical control device (CNC), and particularly to a signal tracing method for a CNC that displays the time at which a trace signal changes.
数値制御装置(CNC)では、数値制御装置の故障診断
、PMCのシーケンス・プログラノ・のチエツク、外部
との入出力信号のrKMKJ等のだyつに、内部信号あ
るいは人出力信号を表示画面に表示できるようになって
いる。In numerical control equipment (CNC), internal signals or human output signals are displayed on the display screen for various purposes such as failure diagnosis of numerical control equipment, checking of PMC sequence/prograno, and rKMKJ of external input/output signals. It is now possible to do so.
オペレータはこれらの信号を参照して、故障診断、シー
ケンス・プログラムのチエツク等を行うことができる。The operator can refer to these signals to diagnose failures, check sequence programs, etc.
しかし、これらの表示信号は単なる現状の信号状態を表
示するに過ぎず、故障の原因となった過去の信号の変化
状態を知ることができない。また、シーケンス・プログ
ラムのチエツクを行うときも、シーケンス・プログラム
が正常に動作しない原因となる過去の信号状態を確Jす
ることができなかった。However, these display signals merely display the current signal state, and cannot know the past change state of the signal that caused the failure. Furthermore, when checking a sequence program, it is not possible to confirm past signal states that may cause the sequence program to malfunction.
本発明はこのような点に鑑みてなされたものであり、過
去の信号状態をトレースできるCNCの信号トレース方
法を提供することを目的とする。The present invention has been made in view of these points, and an object of the present invention is to provide a CNC signal tracing method that can trace past signal states.
また、本発明の他の目的はトレース信号の変化の状態を
変化した時刻とともに表示できるCNCの信号トレース
方法を提供することである。Another object of the present invention is to provide a CNC signal tracing method that can display the state of change in a trace signal together with the time of change.
本発明では上記課題を解決するために、数値制御装置(
CNC)における人出力信号あるいは内部信号を時系列
的にトレースするCNCの信号トレース方法において、
トレース信号の変化を判別し、前記トレース信号の信号
変化があるときは、前記トレース信号と変化時刻をトレ
ーステーブルに格納し、前記トレース信号を前記変化時
刻とともに表示画面に表示することを特徴とするCNC
の信号トレース方法が、提供される。In order to solve the above problems, the present invention provides a numerical control device (
In a CNC signal tracing method that traces human output signals or internal signals in time series (CNC),
A change in the trace signal is determined, and when there is a signal change in the trace signal, the trace signal and the time of change are stored in a trace table, and the trace signal is displayed on a display screen together with the time of change. CNC
A signal tracing method is provided.
トレースすべき信号を指定し、これらのトレース信号を
一定時間ごとに監視し、変化があったときは、その時刻
とともにトレーステーブルに格納する。一方、これらの
トレース信号と変化時刻を表示画面に表示する。Signals to be traced are specified, these trace signals are monitored at regular intervals, and when a change occurs, it is stored in a trace table along with the time. Meanwhile, these trace signals and change times are displayed on the display screen.
以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.
第2図は本発明を実施するための数値制御装置(CNC
)のハードウェアのブロック図である。Figure 2 shows a numerical control device (CNC) for implementing the present invention.
) is a block diagram of the hardware.
プロセッサ11はROM12に格納されたシステムプロ
グラムに従って、数値制御装置全体を制御する。ROM
12にはEPROMあるいはEEFROMが使用される
。RAM13はSRΔMが使用され、各種のデータが格
納される。不揮発性メモリ14には、後述するトレース
信号を格納するトレーステーブル3が格納される。また
、加ニブログラム、パラメータ等が記憶され、バッテリ
バックアップされたCMO3等が使用し、数値制御装置
の電源切断後もその内容が保持される。The processor 11 controls the entire numerical control device according to a system program stored in the ROM 12. ROM
12 uses EPROM or EEFROM. The RAM 13 uses SRΔM and stores various data. The nonvolatile memory 14 stores a trace table 3 that stores trace signals, which will be described later. In addition, the computer program, parameters, etc. are stored and used by the battery-backed CMO 3 and the like, and the contents are retained even after the numerical control device is powered off.
PMC(’;’ログラマブル・マシン・コントローラ)
15はM機能、S機能、T機能等の指令を受けて、シー
ケンスプログラム15aによってこの指令を解読処理し
、工作機械を制御する出力信号を出力する。また、機械
側からのリミットスイッチの信号あるいは機械操作盤か
らのスイッチ信号を受けて、シーケンス・プログラム1
5aで処理し、機械側を制御する出力信号を出力し、数
値制御装置で必要な信号はバス25を経由してRAM1
3に転送する。この信号はプロセッサ11によって、読
み取られる。PMC (';' Logrammable 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. Also, in response to the limit switch signal from the machine side or the switch signal from the machine operation panel, the sequence program 1
5a and outputs an output signal to control the machine side, and the signals necessary for the numerical control device are sent to RAM 1 via bus 25.
Transfer to 3. This signal is read by processor 11.
グラフィック制御回路16には、後述のトレーステーブ
ルの内容を表示信号に変換し、表示装置16aに送り、
表示装置16aに表示する。表示装置16aはCRT、
液晶表示装置等が使用される。キーボード17は各種の
データを入力するのに使用される。The graphic control circuit 16 converts the contents of a trace table, which will be described later, into a display signal and sends it to the display device 16a.
It is displayed on the display device 16a. The display device 16a is a CRT,
A liquid crystal display device or the like is used. The keyboard 17 is used to input various data.
軸制御回路18はプロセッサ11から位置指令を受けて
、サーボモータ20を制御するための速度指令信号をサ
ーボアンプ19に出力する。サーボアンプ19はこの速
度指令信号を増幅し、サーボモータ20を駆動する。サ
ーボモータ20には位置帰還信号を出力するパルスコー
ダ21が結合されている。パルスコーダ21は位置帰還
パルスを軸制御回路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. The pulse coder 21 feeds back position feedback pulses 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.
入出力回路22は機械側との入出力信号の授受を行う。The input/output circuit 22 exchanges input/output signals with the machine side.
すなわち機械側のリミットスイッチ信号、機械模作盤の
スイッチ信号等の機械側からの入力信号を受け、これを
2MC15が読み取る。また、PMC15からの機械側
の空圧アクチュエイタ等を制御する出力信号を受けて、
機械側に出力する。That is, the 2MC 15 receives input signals from the machine side, such as limit switch signals from the machine side and switch signals from the machine mock board, and reads these signals. In addition, receiving an output signal from the PMC15 that controls the pneumatic actuator etc. on the machine side,
Output to the machine side.
手動パルス発生器23は回転角度に応じて、各軸を精密
に移動させるパルス列を出力し、機械位置を精密に位置
決めするために使用される。手動パルス発生器23は通
常機械操作盤に実装される。The manual pulse generator 23 outputs a pulse train for precisely moving each axis according to the rotation angle, and is used to precisely position the machine. Manual pulse generator 23 is usually mounted on a machine operation panel.
第2図ではスピンドルを制御するためのスピンドル制御
回路、スピンドルアンプ、スピンドルモータ等は省略し
である。In FIG. 2, the spindle control circuit, spindle amplifier, spindle motor, etc. for controlling the spindle are omitted.
また、ここではプロセッサは1個であるが、システムに
応じて複数のプロセッサを使用したマルチ・プロセッザ
シスデムにすることもできる。Further, although there is one processor here, a multi-processor system using a plurality of processors can be used depending on the system.
第3図はトレース信号を指定する信号指定テブルの例を
示す図である。信号指定テーブル2は10個の信号をト
レース信号として指定できるようになっている。すなわ
ち、1番目の信号はアドレスX0O20,2の信号をト
レース信号として指定している。ここで、アドレスXは
機械側から入出力回路22を経由してPMC15に人力
される信号のアドレスを意味している。Xに続く4椿の
数値は信号のアドレスを、小数点の右側の数値はビット
を表す。FIG. 3 is a diagram showing an example of a signal specification table for specifying trace signals. The signal designation table 2 allows ten signals to be designated as trace signals. That is, the first signal specifies the signal at address X0O20,2 as a trace signal. Here, the address X means the address of a signal that is manually input from the machine side to the PMC 15 via the input/output circuit 22. The four-digit number following the X represents the signal address, and the number to the right of the decimal point represents the bit.
また、3番目のトレース信号のアドレスYは2MC15
から入出力回路22を経由して機械側へ出力される出力
信号のアドレスを意味している。Also, the address Y of the third trace signal is 2MC15
It means the address of the output signal that is output from to the machine side via the input/output circuit 22.
さらに、6番目のトレース信号のアドレスGは2MC1
5からRAM13に転送される信号を意味する。7番目
のトレース信号のアドレスFはRAM13から2MC1
5に転送される信号を意味している。Furthermore, the address G of the sixth trace signal is 2MC1
5 to the RAM 13. Address F of the 7th trace signal is from RAM13 to 2MC1
This means the signal transferred to 5.
このように、本実施例では2MC15の入出力信号をト
レース信号としているが、これ以外のRAM13に記憶
される信号、その他の信号を指定することもできる。In this way, in this embodiment, the input/output signals of the 2MC 15 are used as trace signals, but it is also possible to specify other signals to be stored in the RAM 13 or other signals.
第4図はトレーステーブルの例を示す図である。FIG. 4 is a diagram showing an example of a trace table.
トレーステーブル3は変化したトレース信号のアドレス
と3a、信号の変化状態3b、変化した時刻3cを格納
できるようになっている。変化状態3bは、信号が0か
ら1に変化したときは上向きの矢印、1から0に変化し
たときは下向きの矢印で表す。また、時間3cはトレー
スを開始した時刻からの経過時間をmsで表している。The trace table 3 can store the address 3a of the trace signal that has changed, the signal change state 3b, and the time 3c of the change. The change state 3b is represented by an upward arrow when the signal changes from 0 to 1, and a downward arrow when the signal changes from 1 to 0. Further, time 3c represents the elapsed time in ms from the time when tracing was started.
ここでは、60個のトレース信号を表示できるように構
成している。すなわち、信号指定テーブル2で指定され
たトレース信号を、一定時間毎に監視し、変化したトレ
ース信号をトレーステーブル3に書き込んでいく。同一
のトレース信号でも変化すれば、再度のそのトレース信
号と、変化状態、変化時刻をトレーステーブル3に順次
書き込んでいく。Here, the configuration is such that 60 trace signals can be displayed. That is, the trace signal specified in the signal specification table 2 is monitored at regular intervals, and the changed trace signal is written in the trace table 3. If the same trace signal changes, the trace signal again, the state of change, and the time of change are sequentially written into the trace table 3.
もし、トレーステーブル3が一杯になったときは、一番
最初に書き込まれたトレース信号を消し、トレース信号
を順次1アドレス進めて、新しいトレース信号を書き込
んでいく。If the trace table 3 becomes full, the first trace signal written is erased, the trace signal is sequentially advanced by one address, and a new trace signal is written.
この他に、トレーステーブル3が一杯になると、最初に
書き込まれたトレース信号を消し、順次新しく変化した
信号を書き込むようにすることもできる。In addition, when the trace table 3 becomes full, the first written trace signal can be erased and newly changed signals can be sequentially written.
第5図はトレース処理のフローチャートである。FIG. 5 is a flowchart of trace processing.
図において、Sに続く数値はステップ番号を示す。In the figure, the number following S indicates the step number.
[’511)レースモードかどうか判別し、トレースモ
ードならS2へ進む。トレースモードでなければ処理を
しない。トレースモードは後述するようにソフトウェア
キーによって指定する。['511] Determine whether it is race mode or not, and if it is trace mode, proceed to S2. It does not process unless it is in trace mode. The trace mode is specified by a software key as described later.
〔S2〕信号指定テーブルのアドレス番号Nを1にする
。すなわち、信号指定テーブル2の1@目の信号からト
レースを開始する。[S2] Set address number N in the signal specification table to 1. That is, tracing is started from the 1st signal in the signal specification table 2.
(S3]N番目のトレース信号が変化したか判別し、変
化していればS4へ進み、変化していなければS6へ進
む。(S3) Determine whether the Nth trace signal has changed. If it has changed, proceed to S4; if not, proceed to S6.
[S4:IN番目のトレース信号が変化したので、現在
の時刻を読み込む。この時刻がN番目のトレース信号の
変化時刻となる。[S4: Since the INth trace signal has changed, read the current time. This time becomes the change time of the Nth trace signal.
[:S5:IN8目のトレース信号と変化時刻をトレー
ステーブルに書き込む。[: S5: Write the 8th IN trace signal and change time in the trace table.
〔S6〕Nを+1する。[S6] Add 1 to N.
[S7:INが10以上か判別し、10より大であれば
、すべての信号指定テーブル2のトレース信号の変化を
チエツクしたので処理は終了する。Nが10以下なら、
次のトレースの変化を調べるた狛に、S3に戻り処理を
継続する。[S7: Determine whether IN is greater than or equal to 10. If it is greater than 10, the process ends because changes in trace signals in all signal specification tables 2 have been checked. If N is less than 10,
After checking the change in the next trace, the process returns to S3 and continues the process.
このような処理を一定時間ごとに行うことにより、トレ
ース信号の変化状態と変化時刻を求め、トレーステーブ
ル3に書き込む。トレーステーブル3の内容はオペレー
タの操作により、表示画面に表示することができる。By performing such processing at regular intervals, the change state and change time of the trace signal are determined and written into the trace table 3. The contents of the trace table 3 can be displayed on the display screen by an operator's operation.
第1図はトレーステーブルの内容を表示画面に表示した
例を示す図である。トレース画面1には、トレース信号
のアドレス1a、変化状態1b、変化時刻1cが表示さ
れている。ここでは、1画面に20個のトレース信号が
表示されており、次の画面に20個、さらに次の画面に
20個のトレース信号が表示できるようになっている。FIG. 1 is a diagram showing an example of displaying the contents of a trace table on a display screen. The trace screen 1 displays an address 1a, a change state 1b, and a change time 1c of the trace signal. Here, 20 trace signals are displayed on one screen, 20 trace signals can be displayed on the next screen, and 20 trace signals can be displayed on the next screen.
変化状態1bはトレーステーブルと同じように、上向き
の矢印と、下向きの矢印で表示される。The change state 1b is displayed with an upward arrow and a downward arrow, similar to the trace table.
このようなトレース信号の表示によって、オペレータは
必要な信号がどのような経過で変化したかを明確にδ忍
識できる。従って、故障診断、シーケンス・プログラム
のチエツク等に有用である。By displaying such a trace signal, the operator can clearly understand how the necessary signal changes over time. Therefore, it is useful for fault diagnosis, checking sequence programs, etc.
以」二説明したように本発明では、トレース信号の変化
を変化時刻とともに表示するようにしたので必要な信号
の変化状態を簡単に表示することができ、故障診断等に
有用である。As described above, in the present invention, changes in the trace signal are displayed together with the time of change, so that the necessary change state of the signal can be easily displayed, which is useful for fault diagnosis and the like.
第1図はトレーステーブルを表示画面に表示し1ま
た例を示す図、
第2図は本発明を実施するための数値制御装置(CNC
)のハードウェアのブロック図、第3図はトレースすべ
き信号を指定する信号指定テーブルの例を示す図、
第4図はトレーステーブルの例を示す図、第5図はトレ
ース処理のフローチャートである。
軸制御回路
サーボアンプ
サーボモータ
パルスコーダ
入出力回路
手動パルス発生器
ノくス
5a
6a
トレース画面
信号指定テーブル
トレーステーブル
プロセッサ
OM
AM
不揮発性メモリ
PMC(プログラマブル・マシン
・コントローラ)
シーケンスプログラム
表示装置
キーボード
特許出願人 ファナック株式会社
代理人 弁理士 服部毅巖FIG. 1 shows an example of a trace table displayed on a display screen, and FIG. 2 shows a numerical control device (CNC) for implementing the present invention.
), Figure 3 is a diagram showing an example of a signal specification table that specifies signals to be traced, Figure 4 is a diagram showing an example of a trace table, and Figure 5 is a flowchart of trace processing. . Axis control circuit Servo amplifier Servo motor Pulse coder Input/output circuit Manual pulse generator Nox 5a 6a Trace screen signal specification table Trace table processor OM AM Non-volatile memory PMC (Programmable Machine Controller) Sequence program display device keyboard Patent applicant Agent of FANUC Co., Ltd. Patent attorney Takeshi Hattori
Claims (4)
いは内部信号を時系列的にトレースするCNCの信号ト
レース方法において、 トレース信号の変化を判別し、 前記トレース信号の信号変化があるときは、前記トレー
ス信号と変化時刻をトレーステーブルに格納し、 前記トレース信号を前記変化時刻とともに表示画面に表
示することを特徴とするCNCの信号トレース方法。(1) In a CNC signal tracing method that traces input/output signals or internal signals in a numerical control device (CNC) in time series, a change in the trace signal is determined, and when there is a signal change in the trace signal, the A CNC signal tracing method, characterized in that a trace signal and a time of change are stored in a trace table, and the trace signal and the time of change are displayed on a display screen.
から1に変化したときは上向きの矢印で、1から0に変
化したときは下向きの矢印で表示することを特徴とする
請求項1記載のCNCの信号トレース方法。(2) The state of change in the trace signal is set to 0 when the signal logic is 0.
2. The CNC signal tracing method according to claim 1, wherein a change from 1 to 1 is indicated by an upward arrow, and a change from 1 to 0 is indicated by a downward arrow.
番最初に書き込まれたトレース信号を消し、トレース信
号を順次1アドレス進めて、新しいトレース信号を書き
込んでいくようにしたことを特徴とする請求項1記載の
CNCの信号トレース方法。(3) When the trace table becomes full, the trace signal written first is erased, the trace signal is sequentially advanced by one address, and a new trace signal is written. The CNC signal tracing method according to claim 1.
(プログラマブル・マシン・コントローラ)への入力信
号、前記PMCから前記CNCへの入力信号、前記CN
Cから前記PMCへの出力信号、前記PMCから前記機
械側への出力信号のいずれかを含むことを特徴とする請
求項1記載のCNCの信号トレース方法。(4) The trace signal is transmitted to the PMC from at least the machine side.
(programmable machine controller), input signal from the PMC to the CNC, the CN
2. The CNC signal tracing method according to claim 1, further comprising: an output signal from the PMC to the PMC, or an output signal from the PMC to the machine side.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2149623A JPH0442309A (en) | 1990-06-07 | 1990-06-07 | Signal tracing method for cnc |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2149623A JPH0442309A (en) | 1990-06-07 | 1990-06-07 | Signal tracing method for cnc |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0442309A true JPH0442309A (en) | 1992-02-12 |
Family
ID=15479267
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2149623A Pending JPH0442309A (en) | 1990-06-07 | 1990-06-07 | Signal tracing method for cnc |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0442309A (en) |
-
1990
- 1990-06-07 JP JP2149623A patent/JPH0442309A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6928337B2 (en) | Robot simulation apparatus | |
| US4616307A (en) | Programmable controller alarm display method | |
| JP4846209B2 (en) | Numerical control device with machine tool simulator | |
| US5784621A (en) | Sequence program display apparatus | |
| US7386359B2 (en) | Device and method for testing machine tools and production machines | |
| US5337249A (en) | Numerical control machining animation with workpiece and tool movement | |
| JPH0442309A (en) | Signal tracing method for cnc | |
| JPS58217223A (en) | Numerically controlled electric discharge machine equipped with display device | |
| KR19980020028A (en) | Virtual computer numerical control machine system and method | |
| JPH07200019A (en) | Robot controller | |
| JPS6031611A (en) | Method for testing working trace control program | |
| JPH05324022A (en) | Computer connection type robot controller | |
| KR100300135B1 (en) | A system of the instruction for the control of CNC and method thereof | |
| JP2533373B2 (en) | Control program creation method | |
| JPH05282163A (en) | Information processing equipment | |
| JPH08278806A (en) | Cnc macro variable debugging system | |
| JPH04177402A (en) | Pc signal state display system | |
| JPH02137674A (en) | Automatic welding system | |
| JPH08286734A (en) | Programmable display device | |
| JPH06231109A (en) | System for supporing operation of real machine plant | |
| JP2533370B2 (en) | Control program creation method | |
| JPH0268606A (en) | Cnc diagnosing system | |
| WO1992021073A1 (en) | Method for debugging sequential program | |
| JPH0217509A (en) | Cad cam device | |
| JP2597635B2 (en) | All key operation check method and device |