JPS61133445A - Program debugging device - Google Patents

Program debugging device

Info

Publication number
JPS61133445A
JPS61133445A JP59255379A JP25537984A JPS61133445A JP S61133445 A JPS61133445 A JP S61133445A JP 59255379 A JP59255379 A JP 59255379A JP 25537984 A JP25537984 A JP 25537984A JP S61133445 A JPS61133445 A JP S61133445A
Authority
JP
Japan
Prior art keywords
program
central control
ram
control section
control unit
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
JP59255379A
Other languages
Japanese (ja)
Inventor
Wataru Doi
渡 土井
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.)
Nitto Seiko Co Ltd
Original Assignee
Nitto Seiko Co Ltd
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 Nitto Seiko Co Ltd filed Critical Nitto Seiko Co Ltd
Priority to JP59255379A priority Critical patent/JPS61133445A/en
Publication of JPS61133445A publication Critical patent/JPS61133445A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

PURPOSE:To reduce the period required for development of a controller for a working machine by using a program editor to correct the content of source program and a RAM in which an operating program is written. CONSTITUTION:In correcting the operating program of a controller 6 controlling a working machine 5, when an object CPU chip in the controller 6 is plugged into a connector 8, an initial program section 10 is actuated, the 1st central control section 2 and the controller 6 are brought into correspondence-enable state. A program editor 12 transmits an instruction to the 1st central control section 2 from this state and the content of an ROM 6a in the controller 6 is written on the same address of the emulation RAM 3. The central control section 2 reads sequentially the content in the address of the emulation RAM 3 and when it is written on a RAM 15 in the program editor 12, it is displayed. Thus, the operator confirms the content of each address on the display in the form of a machine language and uses the machine language from the program editor 12 as required.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、所定作業機に所定の作業を行わせるためRO
Mに記憶されたプログラムの一部を修正するプログラム
デバッグ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is directed to an RO
The present invention relates to a program debugging device for modifying a part of a program stored in M.

従来技術 従来、マイクロコンピュータ制御により作動する作業機
の制御装置は、所定作業を行うための動作プログラムを
記憶するROMを有し、CPIJチップを有する中央制
御部からの指令に基づき、ROM内のプログラムおよび
RAMから各種動作条件および作業位置等の必要情報を
呼出し、作業機にあらかじめ決められた所定の作業を行
わせるように構成されている。この種の制御装置では、
中央制御部を作動させる動作プログラムは、ROMにR
OMライタにより書き込まれるように構成されており、
中央制御部はこのROM1.:flき込まれた命令を順
に読み出すように構成されている。
Prior Art Conventionally, a control device for a work machine operated by microcomputer control has a ROM that stores an operation program for performing a predetermined work, and the program in the ROM is stored based on a command from a central control unit having a CPIJ chip. The machine is configured to read necessary information such as various operating conditions and work positions from the RAM and to cause the working machine to perform a predetermined work. In this type of control device,
The operation program that operates the central control unit is stored in the ROM.
It is configured to be written by the OM writer,
The central control unit uses this ROM1. :fl It is configured to read out the loaded instructions in order.

発明が解決しようとする問題点 このようにROMライタによりROM内に動作プログラ
ムを書き込むと、これを修正する場合には、動作プログ
ラムの一部を修正する場合でも、最初から動作プログラ
ムを書き込み直さねばならず、その作業に時間を要し、
極めて効率の悪いものとなる等の欠点が生じている。
Problems to be Solved by the Invention When an operating program is written in the ROM by a ROM writer, if the operating program is to be modified, even if a part of the operating program is to be modified, the operating program must be rewritten from the beginning. It takes time to do the work,
There are drawbacks such as extremely low efficiency.

問題点を解決するための手段 本発明は上記欠点の除去を目的とするもので、CPUチ
ップを有する中央制御部を配置している。
Means for Solving the Problems The present invention aims to eliminate the above-mentioned drawbacks by arranging a central control unit with a CPU chip.

この中央制御部にはエミュレーションRAMが接続され
、しかもこの中央制御部にはパンファ回路を介しC作業
機を駆動する制御装置内の対象CPUチップと同一のコ
ネクタピンを持つコネクタが配置されている。一方、前
記中央制御部にはインタフェイスを介してプログラム編
集装置が接続されている。また、この中央1iIlII
laIIはブレイクコントロール部を介してブレイクコ
マンド発生部が接続されており、ブレイクコマンドが中
央制御部に送られるように構成されている。さらに、こ
のブレイクコマンド発生部は手動スイッチによりブレイ
クコマンドを発生するように構成されており、外部から
もブレイクコマンドを発生できるように構成されている
An emulation RAM is connected to this central control section, and a connector having the same connector pins as the target CPU chip in the control device that drives the C working machine via a breadthreader circuit is arranged in this central control section. On the other hand, a program editing device is connected to the central control unit via an interface. Also, this central 1iIlII
laII is connected to a break command generating section via a break control section, and is configured so that break commands are sent to the central control section. Further, this break command generating section is configured to generate a break command by a manual switch, and is also configured to be able to generate a break command from the outside.

作用 作業機の制御装置のプログラムを修正する場合、まずC
PUチップを抜き取り、その位置にコネクタを差込む。
When modifying the program of the control device of the working machine, first
Pull out the PU chip and insert the connector in its place.

その後、プログラム編集装置からの命令により中央制御
部が制御装置内のROMに書き込まれた内容をエミュレ
ーションRAM内の同一アドレスに書き込む。その侵、
プログラム編集装置から中央制御部へ動作命令を送ると
、エミュレーションRAMの内容を順次読み出してプロ
グラム編集装置内のRAMに送り、これをディスプレイ
する。
Thereafter, the central control unit writes the contents written in the ROM in the control device to the same address in the emulation RAM according to a command from the program editing device. The invasion,
When the program editing device sends an operation command to the central control unit, the contents of the emulation RAM are sequentially read out and sent to the RAM in the program editing device, where they are displayed.

同時に、中央制御部を前記エミュレーションRAMの内
容により動作させ、作業機を駆動し、不具合な点があれ
ば、このディスプレイされた内容をもとに作業者は各ア
ドレスの内容を確認し、プログラム編集装置からその内
容を修正する。プログラム修正完了侵、プログラム編集
装置にROMライタを接続してプログラム編集装置内の
RAMの内容をROMライタに挿入された新たなROM
に順次書き込むことができる。
At the same time, the central control unit is operated according to the contents of the emulation RAM to drive the work equipment, and if there is a problem, the operator can check the contents of each address based on the displayed contents and edit the program. Modify its contents from the device. After completing the program modification, connect the ROM writer to the program editing device and transfer the contents of the RAM in the program editing device to the new ROM inserted into the ROM writer.
can be written sequentially.

実施例 以下、実施例を図面について説明する。第1図および第
2図において、1はプログラムデバッグ装置(以下、デ
バッグIIIという)であり、CPUチップ(図示せず
)を有する第 1中央制御部2、これに接続されたエミ
ュレーションRAM 3を有している。また、第 1中
央制御部2には、バッフ7回路4を介して作業1a5を
駆動する制御袋M6内の対象CPLIチップ7と同一の
コネクタピン8aを持つコネクタ8が接続されており、
しがも前記制御部W6との交信を制御するコントロール
ロジック部9が接続されている。また、このデバッグ装
置1はイニシャルプログラム部10を有し、前記コネク
タ 8が制御部NGの所定の位置に接続されると、制御
装置6と第 1中央制御部2が交信可能状態となるよう
に構成されている。ざらに、前記デバッグ装置1にはイ
ンタフェイスltaを介してプログラム編集装置12が
接続されており、第 1中央制御部2に各種の命令を送
るように構成されている。
EXAMPLE Hereinafter, an example will be described with reference to the drawings. In FIGS. 1 and 2, 1 is a program debugging device (hereinafter referred to as debugging III), which includes a first central control section 2 having a CPU chip (not shown) and an emulation RAM 3 connected thereto. are doing. Further, a connector 8 having the same connector pin 8a as the target CPLI chip 7 in the control bag M6 that drives the work 1a5 via the buffer 7 circuit 4 is connected to the first central control unit 2.
However, a control logic section 9 that controls communication with the control section W6 is connected. Further, this debug device 1 has an initial program section 10, and when the connector 8 is connected to a predetermined position of the control section NG, the control device 6 and the first central control section 2 are able to communicate with each other. It is configured. In general, a program editing device 12 is connected to the debugging device 1 via an interface lta, and is configured to send various commands to the first central control section 2.

前記プログラム編集装置12は、第3図に示すように第
 2中央制御部13、−EニタROM14、RAM15
、キーボード16、モニタ17、外部記憶装置18およ
びROMライタ14を有し、前記キーボード16、モニ
タ17、外部記憶装置18およびROMライタ19はそ
れぞれインタフェイス11b 11c 11d 11e
を介して前記第 2中央制御部13に接続されている。
The program editing device 12, as shown in FIG.
, a keyboard 16, a monitor 17, an external storage device 18, and a ROM writer 14, and the keyboard 16, monitor 17, external storage device 18, and ROM writer 19 have interfaces 11b, 11c, 11d, and 11e, respectively.
It is connected to the second central control unit 13 via.

また、前記デバッグ装置1は第 1中央制御部2にブレ
イクコントロール部20を介して接続されるブレイクコ
マンド発生部21を有している。このブレイクコントロ
ール部20は第4図に示すようにプログラム編集装[1
2から所定アドレスを設定できる設定アドレス部22と
、読み出されたエミュレーションRAM a内のアドレ
スとの一致を見る一致回路23およびこの一致信号を受
けて動作する減数ループカウンタ24を有している。ま
た、この減数ループカウンタ24は前記プログラム編集
装置12から前記アドレスと同様に設定できるように構
成されている。さらに、前記ブレイクコマンド発生部2
1は手動スイッチ25を有し、この作動によってもブレ
イクコマンドを発生することができるように構成されて
いる。
The debugging device 1 also includes a break command generating section 21 connected to the first central control section 2 via a break control section 20. This break control section 20 is a program editing device [1] as shown in FIG.
2, a matching circuit 23 that checks the match with the read address in the emulation RAM a, and a subtraction loop counter 24 that operates in response to this match signal. Further, this subtraction loop counter 24 is configured so that it can be set from the program editing device 12 in the same manner as the address. Furthermore, the break command generating section 2
1 has a manual switch 25, which is configured so that a break command can also be generated by operating this switch.

上記デバッグ装置において、作業機5を制御する制御装
置6の動作プログラムを修正する場合、まず制御装置6
内の対象CPUチップを抜取る。
In the above debugging device, when modifying the operation program of the control device 6 that controls the work machine 5, first the control device 6
Remove the target CPU chip inside.

その後、コネクタ8を差込むと、イニシャルプログラム
部10が作動し、第 1中央制御部2とこの制御装置6
とが交信可能状態となる。この状態から、第5図に示す
ようにプログラム編集装[12から第1中央制御部2に
命令を送り、制御装置6内のROM 6aの内容をエミ
ュレーションRAM 3の同一アドレス内に書込む。そ
の後、ソースプログラムによる修正をしない場合には、
プログラム編集装置12から第 1中央制御部2にエミ
ュレーションRAM 3内のアドレス内の内容を作業機
5を駆動しながら読み出すように命令を送る。中央制御
部2は順次このエミュレーションRAM 3のアドレス
内の内容を順次読み出し、これがプログラム編集装置2
12内のRAM15内に書き込まれるとともにディスプ
レイされる。そのため、作業者は各アドレスの内容をマ
シン語でディスプレイ上で確認し、必要に応じてプログ
ラム編集装置12からマシン語で修正する。
After that, when the connector 8 is inserted, the initial program section 10 is activated, and the first central control section 2 and this control device 6 are activated.
becomes ready for communication. From this state, as shown in FIG. 5, a command is sent from the program editing device [12] to the first central control unit 2 to write the contents of the ROM 6a in the control device 6 into the same address of the emulation RAM 3. After that, if you do not modify the source program,
A command is sent from the program editing device 12 to the first central control unit 2 to read out the contents of the addresses in the emulation RAM 3 while driving the working machine 5. The central control unit 2 sequentially reads out the contents in the addresses of this emulation RAM 3, and this is read out in sequence by the program editing device 2.
The data is written into the RAM 15 in the RAM 12 and displayed. Therefore, the operator confirms the contents of each address in machine language on the display and, if necessary, makes corrections in machine language from the program editing device 12.

これをプログラム編集装W112のRAM15内に一時
記憶させたのち、このRAM15内の内容をROMライ
タ19によりこれに差しこまれた新たなROM(図示せ
ず)に順次書きこむ。
After temporarily storing this in the RAM 15 of the program editing device W112, the contents of this RAM 15 are sequentially written into a new ROM (not shown) inserted into this by the ROM writer 19.

また、もう一つのプログラム修正方法について述べる。We will also discuss another program modification method.

プログラム編集装置12に付属している外部記憶装置1
8により、ソースプログラムを読み出し、これを修正す
る場合、これをプログラム編集装置12内のRAM15
に書込み、キーボード16からこれをアセンブリ言語で
再度編集し、RA M 15内に記憶するとともにデバ
ッグ装置1内のエミュレーションRAM 3に記憶させ
る。その後、作業者はプログラム編集装W12のキーボ
ード16から命令を与え、作業!115を駆動し、第 
1中央制御部2の動作の確認を行い、不具合点が生じれ
ば、再びプログラム編集装置12によりプログラムの修
正を行う。第 1中央制御部2の動作確認が終了すると
、プログラム編集装置12はそのRAM15の内容をR
OMライタ19により新たなROMに書き込む。
External storage device 1 attached to program editing device 12
8, when a source program is read and modified, it is stored in the RAM 15 in the program editing device 12.
, edit it again in assembly language from the keyboard 16, and store it in the RAM 15 as well as the emulation RAM 3 in the debug device 1. After that, the operator gives commands from the keyboard 16 of the program editing device W12 and begins work! 115, and
1. The operation of the central control unit 2 is checked, and if any problems occur, the program is corrected again using the program editing device 12. When the operation check of the first central control unit 2 is completed, the program editing device 12 reads the contents of the RAM 15.
The OM writer 19 writes to a new ROM.

また、任意のアドレスにおける第 1中央制御部2の動
作状態を知りたい時には、プログラム編集装置12から
そのアドレスおよび減数ループカウンタ24の設定値を
設定すると、ブレイクコントロール部20の設定アドレ
ス部22に設定される。この状態で、第 1中央制御部
2が作動してエミュレーションRAM 3の読み出しア
ドレスが前記設定値と一致すると、減数ループカウンタ
24に信号を送り、減数ループカウンタ24がOになる
とブレイクコマンドが発信され、第1中央制御部2は停
止するとともに、この時のエミュレーションRAM 3
の内容および第 1中央制御部2の動作状態をプログラ
ム編集装置上でディスプレイする。
Furthermore, when you want to know the operating state of the first central control section 2 at an arbitrary address, you can set that address and the setting value of the subtraction loop counter 24 from the program editing device 12, and the setting value will be displayed in the setting address section 22 of the break control section 20. be done. In this state, when the first central control section 2 operates and the read address of the emulation RAM 3 matches the set value, it sends a signal to the subtraction loop counter 24, and when the subtraction loop counter 24 reaches O, a break command is issued. , the first central control unit 2 stops, and the emulation RAM 3 at this time
and the operating status of the first central control unit 2 are displayed on the program editing device.

さらに、外部から第 1中央制御部2を停止させる場合
には、手動スイッチ25をオンにするとブレイクコマン
ドが発信され、第 1中央制御部2は停止して、前記同
様にその時のエミレーションRAM3の内容および第 
1中央制御部2の動作状態をプログラム編集装置12上
にディスプレイすることができる。
Furthermore, when stopping the first central control section 2 from the outside, turning on the manual switch 25 sends a break command, stopping the first central control section 2 and updating the current emulation RAM 3 as described above. Contents and Part
1 The operating status of the central control unit 2 can be displayed on the program editing device 12.

発明の詳細 な説明したように、本発明は制御装置内のROMに作業
機をあらかじめ決めた通り作動させるように書き込まれ
た動作プログラムを−HエミュレーションRAMに書き
こみ、このエミュレーションRAM内の内容をプログラ
ム編集装置に送りこれを修正、またソースプログラムを
プログラム編集装置により修正するように構成している
ため、プログラムを修正する度に口れをROMに書きこ
む必要がなく、−UエミュレーションRAMに記憶させ
てその動作の確認ができるばかりか、この確認が終了侵
、ROMに書き込まれた動作プログラムをプログラム編
集装置でその一部を修正した後、これをROMライタに
より新たなROMに層きこむことによりROMの修正が
可能となり、作業機の制御装置の開発に要する期間を短
縮することができる等の利点がある。
As described in detail, the present invention writes an operating program written in a ROM in a control device to operate a working machine in a predetermined manner to an -H emulation RAM, and then writes the contents of this emulation RAM into the ROM. Since the source program is sent to the program editing device and modified, and the source program is modified by the program editing device, there is no need to write the program to the ROM each time the program is modified, and it is stored in the -U emulation RAM. Not only can the operation be confirmed by checking the operation, but also by modifying a part of the operation program written in the ROM using a program editing device, and then writing it into a new ROM using a ROM writer. This has the advantage that the ROM can be modified and the time required for developing a control device for a working machine can be shortened.

また、本発明は任意のアドレスで停止させることができ
るので、所望アドレスにおける中央制御部の状態を迅速
にディスプレイすることができ、迅速な制御プログラム
の不具合点の修正が可能となる等の利点がある。
Furthermore, since the present invention can be stopped at any address, the status of the central control unit at a desired address can be displayed quickly, and there are advantages such as the ability to quickly correct defects in the control program. be.

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

第1図は本発明の全体説明図、第3図は本発明に係わる
プログラム編集装置のブロック図、第4図は本発明に係
わるブレイクコントロール部のブロック図、第5図は本
発明の詳細な説明するフローチャートである。 1 プログラムデバッグ装置、 2 第1中央制御部、 3 エミュレーションRAM。 4 バッファ回路、   5 作業機、6 制御装置、
    6a  ROM。 7 対象CPUチップ、8 コネクタ、8a  コネク
タピン、 9 コントロールロジック部、 10  イニシャルプログラム部、 11a 11b 11c 11d 1ieインタフエイ
ス、12  プログラム編集装置、13  第2中央制
師部、14  モニタROM。 1S  RAM、       16  キーボード、
17  モニタ、     18  外部記憶装置、1
9  ROMライタ、 20  ブレイクコントロール部、 21  ブレイクコマンド発生部、
FIG. 1 is an overall explanatory diagram of the present invention, FIG. 3 is a block diagram of a program editing device according to the present invention, FIG. 4 is a block diagram of a break control section according to the present invention, and FIG. 5 is a detailed diagram of the present invention. It is a flowchart explaining. 1 Program debug device, 2 First central control unit, 3 Emulation RAM. 4 buffer circuit, 5 work machine, 6 control device,
6a ROM. 7 target CPU chip, 8 connector, 8a connector pin, 9 control logic section, 10 initial program section, 11a 11b 11c 11d 1ie interface, 12 program editing device, 13 second central control section, 14 monitor ROM. 1S RAM, 16 keyboards,
17 monitor, 18 external storage device, 1
9 ROM writer, 20 break control section, 21 break command generation section,

Claims (1)

【特許請求の範囲】 1)CPUチップを有する中央制御部を配置し、この中
央制御部に接続されるエミュレーションRAMを配置す
るとともにバッファ回路を介して作業機を駆動する制御
装置内の対象CPUチップと同一のコネクタピンを持つ
コネクタを設ける一方、前記CPUにインタフェイスを
介してプログラム編集装置を接続したことを特徴とする
プログラムデバッグ装置。 2)CPUチップを有する中央制御部を配置し、この中
央制御部に接続されるエミュレーションRAMを配置す
るとともにバッファ回路を介して作業機を駆動する制御
装置内の対象CPUチップと同一のコネクタピンを持つ
コネクタを設ける一方、前記CPUにインタフェイスを
介してプログラム編集装置を接続したプログラムデバッ
グ装置において、 ブレイクコマンド発生部をブレイクコントロール部を介
して配置し、ブレイクコマンドを中央制御部へ送るよう
に構成したことを特徴とするプログラムデバッグ装置。 3)ブレイクコマンド発生部は手動スイッチによりブレ
イクコマンドを中央制御部へ送るように構成したことを
特徴とする特許請求の範囲第2項記載のプログラムデバ
ッグ装置。
[Scope of Claims] 1) A target CPU chip in a control device that includes a central control unit having a CPU chip, an emulation RAM connected to the central control unit, and drives a working machine via a buffer circuit. A program debugging device characterized in that a connector having the same connector pins as the CPU is provided, and a program editing device is connected to the CPU via an interface. 2) Place a central control unit with a CPU chip, place an emulation RAM connected to this central control unit, and connect the same connector pin as the target CPU chip in the control device that drives the work machine via a buffer circuit. In the program debugging device, a program editing device is connected to the CPU via an interface, and a break command generating section is arranged via a break control section, and the break command is sent to the central control section. A program debugging device characterized by: 3) The program debugging device according to claim 2, wherein the break command generating section is configured to send the break command to the central control section by a manual switch.
JP59255379A 1984-11-30 1984-11-30 Program debugging device Pending JPS61133445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59255379A JPS61133445A (en) 1984-11-30 1984-11-30 Program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59255379A JPS61133445A (en) 1984-11-30 1984-11-30 Program debugging device

Publications (1)

Publication Number Publication Date
JPS61133445A true JPS61133445A (en) 1986-06-20

Family

ID=17277944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59255379A Pending JPS61133445A (en) 1984-11-30 1984-11-30 Program debugging device

Country Status (1)

Country Link
JP (1) JPS61133445A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6290733A (en) * 1985-10-16 1987-04-25 Sanyo Electric Co Ltd Device for displaying content of ram

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6290733A (en) * 1985-10-16 1987-04-25 Sanyo Electric Co Ltd Device for displaying content of ram

Similar Documents

Publication Publication Date Title
JP2002278783A (en) System for rewriting firmware
JPH02100704A (en) Robot programming check system
JPS61133445A (en) Program debugging device
JPH11272310A (en) Emulation device for programmable controller
JPS6265145A (en) Program debugging device
JP2003044277A (en) Program development support device, program development support program and recording medium having the same program recorded thereon
JPS6252607A (en) Program debugging device
JP2854608B2 (en) Control devices for industrial machines
JP2001047251A (en) Controller for welding
JPH03207628A (en) Method and apparatus for editing sequence program of injection molding machine
JP2708983B2 (en) Program display device
KR100224865B1 (en) Method for controlling a robot
JPH1097307A (en) Sequencer operation verification device and medium recording sequencer operation verification program
JPH01124001A (en) Robot control system
JPS6238746B2 (en)
JPH057722B2 (en)
JPS62108337A (en) Program debug device
JPS62103714A (en) Program generating device for industrial robot
JPH01177613A (en) System for displaying nc program
JPS61105606A (en) Sequence controller
JPS62226309A (en) Write system for rom cassette in programmable machine controller
JPH0477946A (en) Execution system for input/output channel program
JPH0883108A (en) Debugging tool for programmable controller
JPS6263347A (en) Programmable controller
JPH0261702A (en) System code correcting system for robot controller