JPS5966716A - Sequence program debugging device - Google Patents

Sequence program debugging device

Info

Publication number
JPS5966716A
JPS5966716A JP57176259A JP17625982A JPS5966716A JP S5966716 A JPS5966716 A JP S5966716A JP 57176259 A JP57176259 A JP 57176259A JP 17625982 A JP17625982 A JP 17625982A JP S5966716 A JPS5966716 A JP S5966716A
Authority
JP
Japan
Prior art keywords
address
program
memory
storage memory
execution
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
JP57176259A
Other languages
Japanese (ja)
Inventor
Takashi Murakoshi
隆 村越
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP57176259A priority Critical patent/JPS5966716A/en
Publication of JPS5966716A publication Critical patent/JPS5966716A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13142Debugging, tracing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

PURPOSE:To confirm the executing state without stopping a program by providing an execution address storage memory in which an executed address is written and read and comparing the executed address with an address set optionally. CONSTITUTION:A sequence controller is constituted with a program storage memory 3 storing a data required for the program execution and a main controller 2 having an operating device and a sequence program is monitored. An objective address is set by a setter 1 and inputted to the main controller 2, and the program address during execution at a comparator 4 and the said objective address are compared. Further, an execution address data is written sequentially to an address storage memory 6 and the write is interrupted by the comparison output of the comparator 4. The address data stored in the memory 6 is read at a memory readout device 7 to know the process to reach the objective address and displayed on a display device 8 by tracing back to the objective address.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、シーケンスコントtコーラVC於けるプログ
ラム実行動作のオンラインモニタ等を可能としたシーケ
ンスプログラムデバッグ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a sequence program debugging device that enables online monitoring of program execution operations in a sequence controller VC.

発明の技術的背景とその問題点 従来、シーケンスコントローラは、−巡の連続したプロ
グラムをくり返し実行する形式が主流であったため、プ
ログラムの実行状態を知る場合に於いては、開始アドレ
スから終了アトルスまてのいずh、の箇所でも、目的と
する昂令あるいは、ブロックについてのオンラインモニ
タがiiJ能であった。
Technical Background of the Invention and its Problems Conventionally, sequence controllers have been mainly of the type that repeatedly executes a continuous program. In the case of ``Tenoizh'', the online monitor for the target command or block was iiJ function.

しかしながら、近年、発亀制仰用や、一般並業用に1吏
用されているシーケンスコントローラの中には、単なる
リレーシーケンスの置換えから、分岐命令やくり返し命
令などが用意されたシーケンスコントローラも出現して
いる。
However, in recent years, among the sequence controllers used for trigger control and general work, there are also sequence controllers that have branch instructions, repeat instructions, etc., rather than just replacing relay sequences. are doing.

このような、分岐命令などを設けたシーケンスコントロ
ーラに於いては、これまでのような連続したプログラム
動作以外に、分岐命令によって実行されないアドレスも
出てくるため、現時点で、どのアドレスを実行している
かを調べることが難しく、これまでのようにいずれのア
ドレスについてもプログラム動作状態をモニタするとい
うことができなくなっている。したがって、特に、プロ
グラムデバッグ時や不具合発生時のプログラム解析には
、多大の時間を必要としていた。
In such a sequence controller equipped with branch instructions, in addition to the continuous program operations as before, there are also addresses that are not executed due to branch instructions, so it is difficult to determine which address is currently being executed. It is difficult to check whether the program is running at any address, and it is no longer possible to monitor the program operating status at any address as before. Therefore, a lot of time is required, especially when debugging a program or analyzing a program when a problem occurs.

たとえば、プログラムデバッグに於いては、分岐先毎に
分岐されたことを知るだめの命令あるいはブロックを追
加し、デバッグ終了後それらの命令を削除して、最終動
作確認を行なうといった二度手間の手法をとっていた。
For example, when debugging a program, it is a two-time method to add instructions or blocks for each branch destination to know that the branch has been taken, delete those instructions after debugging, and then check the final operation. I was taking it.

また、不具合発生時の解析に於いては、実機での確認以
上に机上での検討が重要な位置を占め、実機での調査す
でに多くの時間を責していた。
In addition, when analyzing problems, desk studies are more important than checking on actual machines, and investigations using actual machines are already taking up a lot of time.

発明の目的 本発明の目的は、分岐命令等を使用することによって、
プログラム動作状態を知ることの難しくなったシーケン
スコントローラに於いて、希iするプログラム人行アド
レスについて、そのアドレスに行くまでの経路をプログ
ラムを停止することなくモニタすることがCさるシー/
f/スプログラムデバック装置tl−得るにある。
Purpose of the Invention The purpose of the present invention is to achieve the following by using branch instructions etc.
In sequence controllers, where it has become difficult to know the program operating status, it is important to monitor the route to a desired program line address without stopping the program.
The f/program debug device is located at the tl-obtainer.

発明のa妾 本発明は一巡のプログラムをくり返し実行し、実行され
たプログラムのアドレスを格納する実行アドレス格納メ
モリと、プログラムアドレスヲ任意に設定装置と、この
アドレス設だ装置で設定されたアドレスと、実行さiL
でいるプログラムのアドレスとを比較する比較装置と、
実行されているアドレスを遂次実行アドレス格納メモリ
に磐込みを行なう%込み装置と、実行アドレス格納メモ
リの内容を洸出す読出装置と、この続出装置の出力を表
示する表示装置をシーケンスコントローラに接続し、プ
ログラムを停止することナク、指定のアドレスからさ7
)・のほって、プログラム央行状態を知ることを可能と
したことを特徴とする。
A miscellaneous aspect of the invention The present invention repeatedly executes a program, and includes an execution address storage memory for storing the address of the executed program, a device for arbitrarily setting the program address, and an address set by the address setting device. , executed iL
a comparator for comparing the address of the program in the program;
A percentage loading device that successively stores the addresses being executed into the execution address storage memory, a reading device that reads the contents of the execution address storage memory, and a display device that displays the output of this successive reading device are connected to the sequence controller. 7 and stop the program from the specified address.
) · It is characterized by making it possible to know the program center line status.

発明の実施例 第1図は本発明を実現する一実施例の構成列である。1
はアドレス設定装置、2は王制制御装置、3はプログラ
ム記憶メモリ、4は比較装置、5はメモリ書込装置、6
はアドレス格納メモリ、7はメモリ読出装置、8は表示
装置である。1,4,5,6゜7.8は本発明を実現す
るに際して従来シーケンスコントローラに追加したもの
である各信号a % kは、それぞれ以下の制御に使用
される。
Embodiment of the Invention FIG. 1 is a diagram showing the configuration of an embodiment of the present invention. 1
is an address setting device, 2 is a royal control device, 3 is a program storage memory, 4 is a comparison device, 5 is a memory writing device, 6
1 is an address storage memory, 7 is a memory reading device, and 8 is a display device. 1, 4, 5, 6°7.8 are added to the conventional sequence controller when implementing the present invention. Each signal a % k is used for the following control, respectively.

信号aは、アドレス設定装置1から主161j御装瀘2
に対して出力するアドレス設定要求11号である。
The signal a is transmitted from the address setting device 1 to the main 161j control 2.
This is address setting request No. 11 to be output to.

信号すは、アドレス設定表ilで設定するアドレスデー
タ信号で、主制御装置11比較装置4、メモリ読出装置
7に出力される。信号Cは、アドレス設定装置1から出
力されたアドレスデータ信号すが比較装置、t4とメモ
リ読出装置7のいずれに使用するかを区別する信号とし
て1吏用し、主制御装f2に出力される。信号dは、前
述信号Cが主制御@1i12によって判別された結果の
比較装置4へ比較アドレスを書込むための信号である。
The signal S is an address data signal set in the address setting table il, and is output to the main controller 11, the comparison device 4, and the memory reading device 7. Signal C is used as a signal to distinguish whether the address data signal outputted from the address setting device 1 is to be used for the comparator, t4, or the memory reading device 7, and is output to the main control device f2. . The signal d is a signal for writing a comparison address into the comparison device 4 as a result of the determination of the signal C by the main control @1i12.

信号eは、主制御装置2がプログラム実行に際して必要
となるデータをプログラム記憶メモリ3から取出すため
の続出信号であり、比較装置4メモリ1瞥込装置5に対
しても同時に出力する。
The signal e is a continuous signal used by the main controller 2 to retrieve data necessary for program execution from the program storage memory 3, and is also output to the comparator 4, memory 1, and viewing device 5 at the same time.

信号fは、主制御装置2からプログラム記憶メモリに対
して出力するプログラム実行アドレスデータ信号であり
、比較装置4及びメモリ書込装置5に対して同時に出力
する。信号gは、メモIJ it込装+t 5からアド
レス格納メモリ6に対して出力する書込み要求信号であ
る。信号りは、比較装置4で前述信号すとfを比較した
結果をメモリ査込装#5、主制御装置2及び表示装置8
へ出力する信号である。信号1は、主制御装置ハ2がメ
モリ読出装置7へ読出しアドレスを磐込むための信号で
ある。信号Jは、メモリ続出装置7がアドレス格納メモ
リ6の内容を取出すだめの続出し信号である。信号には
、アドレス格納メモリ6から出力されるアドレスデータ
信号であり、読出装置t7、主制御装置t 2を経由し
て、表示装置8へ出力される。
The signal f is a program execution address data signal outputted from the main control device 2 to the program storage memory, and is outputted to the comparison device 4 and the memory writing device 5 at the same time. The signal g is a write request signal outputted from the memory IJ it loading device +t 5 to the address storage memory 6. The comparison device 4 compares the signal S and f, and the result is sent to the memory reading device #5, the main controller 2, and the display device 8.
This is the signal to be output to. Signal 1 is a signal used by main controller C 2 to input a read address to memory read device 7 . The signal J is a continuous output signal used by the memory continuous output device 7 to retrieve the contents of the address storage memory 6. The signal is an address data signal output from the address storage memory 6, and is output to the display device 8 via the reading device t7 and the main control device t2.

主制御装置2は、プロセッサとしての基本機能である中
央制御装置、演算装置、入力制御装置、出力制御装置お
よび作業用記憶メモリを有するものとする。
The main control device 2 is assumed to have a central control device, an arithmetic unit, an input control device, an output control device, and a working memory, which are the basic functions of a processor.

今、希望するプログラム実行アドレスについて、そのア
ドレスが実行されたことを知り、そのアドレスに行くま
での経過を調べる場合は、本構成に於いては、以下の動
作によって実現される。
If you now want to know that a desired program execution address has been executed and check the progress up to that address, this is accomplished by the following operations in this configuration.

まず、アドレス設定装置lにて目的とするアドレスを比
較装置4に知らせるために、信号a、b、cが主制御装
置2へ出力される。主制御装置2は、基本機能として設
けである入力制御装置出力制御装置、演算制御装置、中
央制御装置から、信号a。
First, signals a, b, and c are outputted to the main controller 2 by the address setting device 1 in order to notify the comparator 4 of the target address. The main control device 2 receives a signal a from an input control device, an output control device, an arithmetic control device, and a central control device, which are provided as basic functions.

b、cの内容を比較装置4に対して信号d及び装置1か
らの信号すを出力する。比較装置4は、装置2からの信
号す、dによって比較対象アドレスを知り以降信号e、
fのから実行中のプログラムアドレスをモニタし、対象
アドレスとの比較を行なう。
The contents of b and c are output to the comparator 4 as a signal d and a signal s from the device 1. The comparator 4 learns the comparison target address from the signals s and d from the device 2 and then uses the signals e and d.
The program address being executed from f is monitored and compared with the target address.

主制御装fIL2は、プログラム実行の際、プログラム
実行アドレスから、プログラム記憶装置3に対してプロ
グラム内容を読み出す方法が一般的であるが、その際主
制御装置2からプログラム記憶メモリ3に出力する信号
e、fを比較装置4に同時に出力することによって比較
装置煮4に於いて実行中のプログラムアドレスをモニタ
することが可能となる。
When executing a program, the main control unit fIL2 generally reads the program contents from the program execution address to the program storage device 3. By simultaneously outputting e and f to the comparison device 4, it becomes possible to monitor the program address being executed in the comparison device 4.

メモリ書込装置f 5は、装置4と同様に信1je 、
 fより、現在実行中のプログラムアドレスレスを知り
、装置4にて対象アドレスが検出されたことを知らせる
信号りを確認しながら、アト゛レス格納メモリ6に信号
f2gを使用して、実行アドレスデータを遂久卦込み、
比較μ:1道4からの信号hVCよって、対象アドレス
を検出した時点でメモリ6へのアドレスデータ書込みを
中断する。比較装置4がら出力される信号11は装置”
:2を経由して、表示装置8へ希望するアドレスが実行
されたことを知らせる。
Memory writing device f5, like device 4, has signals 1je,
From f, the address of the program currently being executed is known, and while checking the signal indicating that the target address has been detected in the device 4, the execution address data is executed in the address storage memory 6 using the signal f2g. Kua included,
Comparison μ: 1. Address data writing to the memory 6 is interrupted when the target address is detected by the signal hVC from the path 4. The signal 11 output from the comparison device 4 is
:2 to inform the display device 8 that the desired address has been executed.

次に、希望アドレスに至るまでの経過を知るために、装
置工より信号a、Jcを装置2へ出力する。
Next, the equipment engineer outputs signals a and Jc to the equipment 2 in order to know the progress up to the desired address.

この時信号すで出方されるアドレスデータは、メモリ6
のメモリアドレスを指足する。主制御装置2では、信号
a、b、cより、メモリ読出装置7に対してアドレス格
納メモリ6の内容を読み出すための信号i及びアドレス
データ書込号・bを出力する。
At this time, the address data already output as a signal is stored in the memory 6.
Add the memory address of . The main control device 2 outputs a signal i for reading the contents of the address storage memory 6 and an address data write code b to the memory reading device 7 from the signals a, b, and c.

メモリ読出装置7は、前述信号i、bからアドレス格納
メモリ6の内:dを読み出す信号i、bを、メモリ6へ
出力し、メモリ6の内容である信号kからアドレス洛納
メモリ6内に格納されているアドレスデータを取出し、
主制御装置2を経由して表示装置8へ出力する。
The memory reading device 7 outputs signals i and b for reading out :d in the address storage memory 6 from the aforementioned signals i and b to the memory 6, and reads the contents of the address storage memory 6 from the signal k which is the content of the memory 6. Retrieve the stored address data,
It is output to the display device 8 via the main control device 2.

以下、アドレス設定装置lにて、アドレス格納メモリ6
のポインタを指示するアドレスを変えることにより希望
するプログラム実行アドレスに到達するまでのアドレス
経過を表示装置8へ出力可°能となる。
Hereinafter, in the address setting device 1, the address storage memory 6
By changing the address pointed to by the pointer, it is possible to output to the display device 8 the progress of the addresses until the desired program execution address is reached.

第2図は、本発明を発明を実現する第1図の構成列の応
用である。1〜8は、第1図と同じ装置である。また、
直号a −kも同じ内容を示す。第2図では、主制御装
置2とプログラム記憶メモリ3から構成されるシーケン
スコントローラと、本発明を実現するために必要となる
l 、4,5,6,7.8を切離し可能な構成となって
おり、1,4,5,6,7.8との接続箇所は信号e、
fのみである。したがって1゜4.5,6,7,8より
構成される装置をシーケンスコントローラに着脱可能と
することは、技術的にも容易であるため、ンーケンスコ
ントローラのハードウェアあるいはソフトウェアに頁イ
uiをカ)けることなく不発明を冥現町mlとなりうめ
FIG. 2 is an application of the configuration sequence of FIG. 1 to implement the invention. 1 to 8 are the same devices as in FIG. Also,
Direct numbers a to k also indicate the same content. In FIG. 2, a sequence controller consisting of a main controller 2 and a program storage memory 3 is configured so that the components 1, 4, 5, 6, and 7.8 necessary for realizing the present invention can be separated. The connection points with 1, 4, 5, 6, 7.8 are signals e,
Only f. Therefore, it is technically easy to make a device consisting of 1.4.5, 6, 7, and 8 detachable from a sequence controller, so it is possible to add a page UI to the sequence controller's hardware or software. (f) The non-inventiveness becomes Meigen-cho ml without being lost.

発明の効果 以上に述べたように、本発明によれば、分岐h6令を使
用することによって、プログラムχ行状悪ヲ九ることの
難しくなったシーケンスコントローラに於いても希望す
るプログラム実行アドレスについての天行状悪をプログ
ツム金が止すること/まく確認可能となるため、プロゲ
ラl、のデバッグ及び不具合解析に費す時間が大幅にA
ll減さJt、かつより完全IJプログラムデバッグが
釘止となるため高品質のプログラムを作成できる。
Effects of the Invention As described above, according to the present invention, by using the branch h6 instruction, it is possible to determine the desired program execution address even in a sequence controller in which it is difficult to prevent a program from misbehaving. The time spent on debugging and analyzing problems can be greatly reduced by making it possible to check if the program can stop the malfunction.
It is possible to create high-quality programs because it reduces Jt and allows for more complete IJ program debugging.

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

第1図は本発明の一実施例のブロック構成図、442図
は本発明の他の一犬比例を7バすブロック構成図である
。 l・・・アドレス設定装置 2・・・王I制御装置 3・・・プログラム記憶;l 、E−I+4・・・比較
装置 5・・・メモリ書込装置 6・・・アドレス格納メモリ 7・・・メモリi流出装置 8・・・表示装置 (7317)代理人弁理士 則近憲(6(はか1名)第
1図
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 442 is a block diagram of another one-dog proportional system of the present invention. l... Address setting device 2... King I control device 3... Program storage; l, E-I+4... Comparison device 5... Memory writing device 6... Address storage memory 7...・Memory i leakage device 8...Display device (7317) Representative patent attorney Noriyoshi Norichika (6 (1 person) Figure 1)

Claims (1)

【特許請求の範囲】[Claims] 一巡のプログラムをくり返し実行し、実行され格納メモ
リと、プログラムアドレスを任意に設定できるアドレス
設定装置と、前述アドレス設定装置で設定されたアドレ
スと、実行されているプログラムのアドレスとを比較す
る比較装置と、実行されているアドレスを遂次実行アド
レス格納メモリに書込みを行なう書込み装置と、実行ア
ドレス格納メモリの内容を読出す読出装置と、前述続出
装置の出力を表示する表示装置をシーケンスコントロー
ラに接続し、プログラムを停止することなく、指定のア
ドレスがらさかのぼって、プログラム実行状態を知るこ
とを可能としたシーケンスプログラムデバッグ装置。
An address setting device that repeatedly executes one round of the program and can arbitrarily set the executed storage memory and program address, and a comparison device that compares the address set by the address setting device and the address of the program being executed. , a writing device for writing the address being executed into the successive execution address storage memory, a reading device for reading out the contents of the execution address storage memory, and a display device for displaying the output of the above-mentioned successive writing device are connected to the sequence controller. A sequence program debugging device that makes it possible to trace back to a specified address and find out the program execution status without stopping the program.
JP57176259A 1982-10-08 1982-10-08 Sequence program debugging device Pending JPS5966716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57176259A JPS5966716A (en) 1982-10-08 1982-10-08 Sequence program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57176259A JPS5966716A (en) 1982-10-08 1982-10-08 Sequence program debugging device

Publications (1)

Publication Number Publication Date
JPS5966716A true JPS5966716A (en) 1984-04-16

Family

ID=16010434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57176259A Pending JPS5966716A (en) 1982-10-08 1982-10-08 Sequence program debugging device

Country Status (1)

Country Link
JP (1) JPS5966716A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375576A (en) * 2018-12-05 2019-02-22 广州奇芯机器人技术有限公司 A kind of PLC program signal on-line analysis and diagnostic method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375576A (en) * 2018-12-05 2019-02-22 广州奇芯机器人技术有限公司 A kind of PLC program signal on-line analysis and diagnostic method
CN109375576B (en) * 2018-12-05 2021-07-20 广州奇芯机器人技术有限公司 PLC program signal online analysis and diagnosis method

Similar Documents

Publication Publication Date Title
US5038348A (en) Apparatus for debugging a data flow program
JPS5966716A (en) Sequence program debugging device
JPS60159951A (en) Tracing system in information processing device
US20230315612A1 (en) In-circuit emulator device
JPH01155452A (en) System for confirming connection of data processing system
JPS57164362A (en) Debugging device in multi-processor system
JPS62162105A (en) Flow chart type programmable controller
SU560226A1 (en) Device for controlling a digital control system
JPS5850051A (en) Program execution tracing system for debugging
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JPS5826044B2 (en) computer system
JP2659115B2 (en) Sequence controller
JPH06101045B2 (en) Data flow type information processing device simulation device
JPS58142443A (en) Event recorder
JP2910038B2 (en) Multi-board equipment
JPS59183405A (en) Programmable controller
JPS626341A (en) Information processor
JPS63177205A (en) Programming device for programmable controller
JPH0233178B2 (en)
JPH01144135A (en) System for observing program executing process
JPS6399156A (en) Memorizing system for abnormality information in numerical control device
JPS61190636A (en) Information processor with trace function
JPS6339048A (en) Executing system for diagnosis program
JPS58125154A (en) State hysteresis storing system
JPS58181345A (en) Communication device