JPH10240313A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH10240313A
JPH10240313A JP4773997A JP4773997A JPH10240313A JP H10240313 A JPH10240313 A JP H10240313A JP 4773997 A JP4773997 A JP 4773997A JP 4773997 A JP4773997 A JP 4773997A JP H10240313 A JPH10240313 A JP H10240313A
Authority
JP
Japan
Prior art keywords
instructions
storage unit
calculation
stored
result
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.)
Granted
Application number
JP4773997A
Other languages
Japanese (ja)
Other versions
JP3409625B2 (en
Inventor
Hirobumi Yamada
博文 山田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP04773997A priority Critical patent/JP3409625B2/en
Publication of JPH10240313A publication Critical patent/JPH10240313A/en
Application granted granted Critical
Publication of JP3409625B2 publication Critical patent/JP3409625B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【課題】 演算プログラムの途中でも演算結果を見るの
が容易に行え、デバッグ作業が円滑にできるプログラマ
ブルコントローラを提供すること。 【解決手段】 ラダープログラム等により命令1〜命令
nが記述された演算プログラム格納部10と、この演算
プログラム格納部に格納された命令1〜命令nを読み込
んで逐次実行してゆく演算実行部20と、この演算実行
部の実行した命令1〜命令nに対する演算結果を格納す
る演算結果格納部30と、この演算結果格納部に格納さ
れた演算結果を表示する演算結果表示部40とを有する
プログラマブルコントローラにおいて、前記演算プログ
ラム格納部に格納された各命令1〜命令nと一対一に設
けられた途中結果表示フラグ50を設け、前記演算プロ
グラム格納部に格納された各命令1〜命令nの途中で演
算結果を表示する際には、この演算結果を表示する命令
に対応する途中結果表示フラグをオンすることを特徴と
している。
(57) [Summary] [PROBLEMS] To provide a programmable controller capable of easily seeing a calculation result even in the middle of a calculation program and performing a debugging operation smoothly. SOLUTION: An operation program storage unit 10 in which instructions 1 to n are described by a ladder program or the like, and an operation execution unit 20 which reads the instructions 1 to n stored in the operation program storage and sequentially executes the instructions. And a calculation result storage unit 30 for storing the calculation results for the instructions 1 to n executed by the calculation execution unit, and a calculation result display unit 40 for displaying the calculation results stored in the calculation result storage unit. In the controller, an intermediate result display flag 50 provided one-to-one with each of the instructions 1 to n stored in the arithmetic program storage unit is provided, and the controller is provided with a halfway result of each of the instructions 1 to n stored in the arithmetic program storage unit. When the calculation result is displayed, the intermediate result display flag corresponding to the instruction for displaying the calculation result is turned on.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、工作機械等の制御
を行うのに好適なプログラマブルコントローラに関し、
特に演算結果を参照しながらデバッグするのに好適な改
良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller suitable for controlling a machine tool or the like.
In particular, the present invention relates to an improvement suitable for debugging while referring to an operation result.

【0002】[0002]

【従来の技術】本出願人は、例えば特開平3−2375
02号公報等でプログラマブル・コントローラ(PL
C)を提案している。図3は、従来のプログラマブルコ
ントローラの構成ブロック図である。図において、演算
プログラム格納部10は、ラダープログラム等により命
令1〜命令nが記述されたものである。演算実行部20
は、演算プログラム格納部10に格納された命令1〜命
令nを読み込んで、逐次実行してゆく。演算結果格納部
30は、演算実行部20の実行した命令1〜命令nに対
する演算結果を格納するレジスタである。演算結果表示
部40は、演算結果格納部30に格納された演算結果を
表示するもので、例えば液晶やCRTを備えている。
2. Description of the Related Art The present applicant has disclosed, for example, Japanese Unexamined Patent Publication No. Hei.
No. 02 Publication etc., programmable controller (PL
C). FIG. 3 is a configuration block diagram of a conventional programmable controller. In the figure, an arithmetic program storage unit 10 stores instructions 1 to n in a ladder program or the like. Arithmetic execution unit 20
Reads the instructions 1 to n stored in the arithmetic program storage unit 10 and sequentially executes them. The calculation result storage unit 30 is a register that stores calculation results for the instructions 1 to n executed by the calculation execution unit 20. The calculation result display unit 40 displays the calculation results stored in the calculation result storage unit 30, and includes, for example, a liquid crystal or a CRT.

【0003】しかし、演算実行部20では、演算プログ
ラム格納部10に格納された命令1〜命令nの全てを実
行しないと、演算結果表示部40が動作しなかった。他
方、いわゆるデバッグ作業においては、演算プログラム
格納部10に格納された命令1〜命令nの各ステップに
おかれる動作を確認したり、誤りを見つけるために、演
算プログラムの途中で演算結果を見たい場合がある。そ
こで、従来は演算結果を見たい命令以降の命令に対して
は、演算結果を別の場所に格納して、演算結果表示部4
0で途中の演算結果が認識できるように、演算プログラ
ムを修正していた。
However, in the operation execution unit 20, unless all of the instructions 1 to n stored in the operation program storage unit 10 are executed, the operation result display unit 40 does not operate. On the other hand, in a so-called debugging work, it is desired to confirm the operation in each step of the instructions 1 to n stored in the arithmetic program storage unit 10 and to view the arithmetic result in the middle of the arithmetic program in order to find an error. There are cases. Therefore, conventionally, for instructions following the instruction for which the operator wants to view the operation result, the operation result is stored in another location, and the operation result display section 4
The calculation program was modified so that the calculation result at 0 could be recognized in the middle.

【0004】[0004]

【発明が解決しようとする課題】しかし、演算プログラ
ムの途中で演算結果を見たい場合に、いちいち演算プロ
グラムを修正していたのでは、煩雑であり、デバッグ作
業が円滑にできないという課題があった。本発明は上述
の課題を解決したもので、演算プログラムの途中でも演
算結果を見るのが容易に行え、デバッグ作業が円滑にで
きるプログラマブルコントローラを提供することを目的
とする。
However, when it is desired to view the operation result in the middle of the operation program, if the operation program is corrected each time, there is a problem that the operation is complicated and debugging work cannot be performed smoothly. . An object of the present invention is to solve the above-described problems, and an object of the present invention is to provide a programmable controller that allows the operator to easily see the operation result even in the middle of an operation program and to facilitate a debugging operation.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成する本
発明は、ラダープログラム等により命令1〜命令nが記
述された演算プログラム格納部10と、この演算プログ
ラム格納部に格納された命令1〜命令nを読み込んで逐
次実行してゆく演算実行部20と、この演算実行部の実
行した命令1〜命令nに対する演算結果を格納する演算
結果格納部30と、この演算結果格納部に格納された演
算結果を表示する演算結果表示部40とを有するプログ
ラマブルコントローラにおいて、前記演算プログラム格
納部に格納された各命令1〜命令nと一対一に設けられ
た途中結果表示フラグ50を設け、前記演算プログラム
格納部に格納された各命令1〜命令nの途中で演算結果
を表示する際には、この演算結果を表示する命令に対応
する途中結果表示フラグをオンすることを特徴としてい
る。
According to the present invention for achieving the above object, there is provided an operation program storage unit 10 in which instructions 1 to n are described by a ladder program or the like, and an instruction 1 stored in the operation program storage unit. , An operation execution unit 20 for sequentially reading and executing instructions n, an operation result storage unit 30 for storing operation results for instructions 1 to n executed by the operation execution unit, and an operation result storage unit 30 And a calculation result display unit 40 for displaying the calculation result obtained by the calculation program, and an intermediate result display flag 50 provided one-to-one with each of the instructions 1 to n stored in the calculation program storage unit. When displaying an operation result in the middle of each of the instructions 1 to n stored in the program storage unit, an intermediate result display corresponding to the instruction displaying the operation result is performed. It is characterized in that on the rug.

【0006】本発明の構成によれば、途中結果表示フラ
グ50を演算プログラム格納部に格納された各命令1〜
命令nと一対一に設けている。そして、各命令1〜命令
nの途中で演算結果を表示する際には、この演算結果を
表示する命令に対応する途中結果表示フラグをオンす
る。これにより、デバッグ作業が円滑に行える。
According to the configuration of the present invention, the intermediate result display flag 50 is stored in each of the instructions 1 to 3 stored in the arithmetic program storage unit.
Instruction n is provided one-to-one. Then, when displaying the operation result in the middle of each of the instructions 1 to n, the intermediate result display flag corresponding to the instruction for displaying the operation result is turned on. Thereby, debugging work can be performed smoothly.

【0007】[0007]

【発明の実施の形態】以下図面を用いて、本発明を説明
する。図1は本発明の一実施例を示す構成ブロック図で
ある。なお、図1において前記図3と同一作用をするも
のには同一符号を付して、説明を省略する。図におい
て、途中結果表示フラグ50は、演算プログラム格納部
10に格納された各命令1〜命令nと一対一に設けられ
たものである。そして、演算プログラム格納部10に格
納された各命令1〜命令nの途中で演算結果を表示する
際には、演算結果表示部40によって演算結果を表示す
る命令に対応する途中結果表示フラグ50をオンする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a configuration block diagram showing one embodiment of the present invention. In FIG. 1, components having the same functions as those in FIG. 3 are denoted by the same reference numerals, and description thereof will be omitted. In the figure, an intermediate result display flag 50 is provided one-to-one with each of the instructions 1 to n stored in the arithmetic program storage unit 10. When displaying the calculation result in the middle of each of the instructions 1 to n stored in the calculation program storage unit 10, the calculation result display unit 40 sets the halfway result display flag 50 corresponding to the instruction for displaying the calculation result. Turn on.

【0008】このように構成された装置の動作を次に説
明する。図2は図1の装置の動作を説明する流れ図であ
る。演算実行部20は、演算プログラム格納部10に格
納された各命令1〜命令nを逐次実行する(S21)。
各命令の実行時において、途中結果表示フラグ50がオ
ンされているか判断する(S22)。オンされていれ
ば、演算結果表示部40にこの命令の演算結果の表示を
要求する(S23)。そして、最後の命令nまで、この
動作を繰り返す(S24)。
[0008] The operation of the apparatus thus constructed will be described below. FIG. 2 is a flowchart illustrating the operation of the apparatus of FIG. The operation execution unit 20 sequentially executes each of the instructions 1 to n stored in the operation program storage unit 10 (S21).
At the time of execution of each instruction, it is determined whether the intermediate result display flag 50 is turned on (S22). If it is turned on, it requests the operation result display unit 40 to display the operation result of this command (S23). Then, this operation is repeated until the last instruction n (S24).

【0009】他方、演算結果表示部40では、演算途中
結果を表示する命令があるか操作者に問う(S41)。
そして、表示する命令が指定されると、対応する途中結
果表示フラグ50をオンする(S42)。次に、演算実
行部20から命令に対する演算結果の表示要求があるか
判断する(S43)。表示要求があれば、画面に演算結
果の表示をする処理を行う(S44)。
On the other hand, the calculation result display section 40 asks the operator whether there is a command for displaying the calculation halfway result (S41).
Then, when the command to be displayed is specified, the corresponding halfway result display flag 50 is turned on (S42). Next, it is determined whether or not there is a display request of the calculation result for the instruction from the calculation execution unit 20 (S43). If there is a display request, processing for displaying the calculation result on the screen is performed (S44).

【0010】これらの入出力命令に対する実アドレス
は、インデクス演算部30で演算される。モニタ部40
は、入出力命令の実アドレスにアクセスして、オンオフ
状態を把握し、モニタ画面50に表示する。実アドレス
で入出力命令を監視したいという用途では、実アドレス
画面60を表示する。そして、インデクス値の初期値を
定めているだけで逐次変化する場合には、逐次変化の度
に実アドレスが更新されて表示する。
The real addresses for these input / output instructions are calculated by the index calculation unit 30. Monitor section 40
Accesses the real address of the input / output instruction, grasps the on / off state, and displays it on the monitor screen 50. If the user wants to monitor an input / output instruction at a real address, the real address screen 60 is displayed. When the index value changes sequentially only by defining the initial value, the real address is updated and displayed each time the index value changes.

【0011】[0011]

【発明の効果】以上説明したように本発明によれば、途
中結果表示フラグ50を演算プログラム格納部に格納さ
れた各命令1〜命令nと一対一に設け、各命令1〜命令
nの途中で演算結果を表示する際には、この演算結果を
表示する命令に対応する途中結果表示フラグをオンする
ので、従来のように演算プログラムを修正しなくても途
中の命令に対する演算結果を表示でき、デバッグ作業が
円滑に行えるという効果がある。
As described above, according to the present invention, the intermediate result display flag 50 is provided one-to-one with each of the instructions 1 to n stored in the arithmetic program storage unit. When displaying the operation result, the intermediate result display flag corresponding to the instruction for displaying the operation result is turned on, so that the operation result for the intermediate instruction can be displayed without modifying the operation program as in the related art. This has the effect that debugging work can be performed smoothly.

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

【図1】本発明の一実施例を示す構成ブロック図であ
る。
FIG. 1 is a configuration block diagram showing one embodiment of the present invention.

【図2】図1の装置の動作を説明する流れ図である。FIG. 2 is a flowchart illustrating the operation of the apparatus of FIG. 1;

【図3】従来のプログラマブルコントローラの構成ブロ
ック図である。
FIG. 3 is a configuration block diagram of a conventional programmable controller.

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

10 演算プログラム格納部 20 演算実行部 30 演算結果格納部 40 演算結果表示部 50 途中結果表示フラグ Reference Signs List 10 calculation program storage unit 20 calculation execution unit 30 calculation result storage unit 40 calculation result display unit 50 halfway result display flag

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】ラダープログラム等により命令1〜命令n
が記述された演算プログラム格納部(10)と、この演
算プログラム格納部に格納された命令1〜命令nを読み
込んで逐次実行してゆく演算実行部(20)と、この演
算実行部の実行した命令1〜命令nに対する演算結果を
格納する演算結果格納部(30)と、この演算結果格納
部に格納された演算結果を表示する演算結果表示部(4
0)とを有するプログラマブルコントローラにおいて、 前記演算プログラム格納部に格納された各命令1〜命令
nと一対一に設けられた途中結果表示フラグ(50)を
設け、 前記演算プログラム格納部に格納された各命令1〜命令
nの途中で演算結果を表示する際には、この演算結果を
表示する命令に対応する途中結果表示フラグをオンする
ことを特徴とするプログラマブルコントローラ。
An instruction 1 to an instruction n according to a ladder program or the like.
, An operation execution unit (20) that reads and sequentially executes instructions 1 to n stored in the operation program storage unit, and an execution unit that executes the operation execution unit. An operation result storage unit (30) for storing the operation results for the instructions 1 to n, and an operation result display unit (4) for displaying the operation results stored in the operation result storage unit
0), wherein an intermediate result display flag (50) provided one-to-one with each of the instructions 1 to n stored in the arithmetic program storage unit is provided, and stored in the arithmetic program storage unit. A programmable controller characterized in that when displaying an operation result in the middle of each of the instructions 1 to n, an intermediate result display flag corresponding to the instruction for displaying the operation result is turned on.
【請求項2】前記演算結果を表示する命令に対応する途
中結果表示フラグをオンすることは、前記演算結果表示
部により行うことを特徴とする請求項1記載のプログラ
マブルコントローラ。
2. The programmable controller according to claim 1, wherein turning on the intermediate result display flag corresponding to the instruction for displaying the operation result is performed by the operation result display section.
JP04773997A 1997-03-03 1997-03-03 Programmable controller Expired - Fee Related JP3409625B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04773997A JP3409625B2 (en) 1997-03-03 1997-03-03 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04773997A JP3409625B2 (en) 1997-03-03 1997-03-03 Programmable controller

Publications (2)

Publication Number Publication Date
JPH10240313A true JPH10240313A (en) 1998-09-11
JP3409625B2 JP3409625B2 (en) 2003-05-26

Family

ID=12783726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04773997A Expired - Fee Related JP3409625B2 (en) 1997-03-03 1997-03-03 Programmable controller

Country Status (1)

Country Link
JP (1) JP3409625B2 (en)

Also Published As

Publication number Publication date
JP3409625B2 (en) 2003-05-26

Similar Documents

Publication Publication Date Title
JPH10254527A (en) Robot teaching device
JP3409625B2 (en) Programmable controller
JP4217638B2 (en) Operation guidance generation device and operation guidance generation program
JPS6253859B2 (en)
JP3355280B2 (en) Display control system
JPH04105101A (en) Abnormality processing form setting method for controller
JPH01191269A (en) Image controller
JPH01233483A (en) Character display device
JPH0855087A (en) Electronics
JPH021014A (en) Portable computer
JPH09106312A (en) How to update process control data
JPH05150932A (en) Computer device with icon display functi0n
JPH08179750A (en) Graph display device
JPS6232491A (en) Crt display unit
JPH07146947A (en) Graph display device
JPS6317490A (en) Screen scrolling for crt screen
JPH0293823A (en) Large screen display system
JPH10105226A (en) Programmable display device
JPH02194427A (en) Graphic picture display controlling system
JPH07182149A (en) Message display method
JP2003076418A (en) Driving support device
JPS63180141A (en) Debugging system by conversational debugger
JPH10222471A (en) Graph drawing apparatus, graph drawing processing method, and recording medium storing graph drawing processing program
JPH0212406A (en) Picture display device
JPH0689152A (en) Monitoring screen display controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees