JPH032902A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH032902A
JPH032902A JP1135982A JP13598289A JPH032902A JP H032902 A JPH032902 A JP H032902A JP 1135982 A JP1135982 A JP 1135982A JP 13598289 A JP13598289 A JP 13598289A JP H032902 A JPH032902 A JP H032902A
Authority
JP
Japan
Prior art keywords
memory
control program
data
data memory
contents
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
JP1135982A
Other languages
Japanese (ja)
Inventor
Takashi Kuga
久賀 隆志
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 JP1135982A priority Critical patent/JPH032902A/en
Publication of JPH032902A publication Critical patent/JPH032902A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain an effective debugging task of a control program by using a data store memory which stores the contents of a data memory during an arithmetic operation of the control program with an external command and then displaying the contents of the data memory to the outside with an external command. CONSTITUTION:A programmable controller 1 contains a program memory 2, an input part 3, an arithmetic part 4, a data memory 5, an output part 6, and a data store memory 7 and is connected to a maintenance tool 8. Then the controller 1 stores the contents of the memory 5 in the memory 7 during an arithmetic operation of a control program. Therefore the contents of the memory 5 can be displayed to the outside during an arithmetic operation of the control program without affecting the execution of the computing operation of the control program. Thus an effective debugging task is facilitated for the control program.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、外部信号の入力、制御プログラムの演算、お
よび外部機器への信号出力を繰り返し実行する、特に演
算途中のデータの保存および表示が可能なプログラマブ
ルコントローラに関するものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Field of Application) The present invention is directed to data processing in which external signal input, control program calculation, and signal output to external equipment are repeatedly executed, especially data in the middle of calculation. The present invention relates to a programmable controller capable of storing and displaying information.

(従来の技術) 最近は、プラントその他各種の機器の自動制御にプログ
ラマブルコントローラが多用されており、プログラマブ
ルコントローラは機器に組み込まれた各種センサから機
器の動作状態を入力し、その状態に応じた動作指示を機
器の各部に出方する。
(Prior art) Recently, programmable controllers have been widely used for automatic control of plants and other various types of equipment.Programmable controllers input the operating status of equipment from various sensors built into the equipment, and operate according to the status. Send instructions to each part of the equipment.

従来のプログラマブルコントローラは一般に第5図に示
すように、外部信号を入力する入力部3、制御プログラ
ムの演算を実行する演算部4、演算結果を外部機器に出
力する出力部6、制御プログラムを格納するプログラム
メモリ2、および外部入力信号および演算結果を格納す
るデータメモリ5から構成されている。
As shown in Fig. 5, a conventional programmable controller generally has an input section 3 for inputting external signals, a calculation section 4 for executing calculations of a control program, an output section 6 for outputting calculation results to external equipment, and a storage section for storing the control program. A data memory 5 stores external input signals and calculation results.

このように構成されたプログラマブルコントローラは、
入力部3を介して得られた外部入力信号をデータメモリ
5に格納する入力処理、データメモリ5の内容に従って
プログラムメモリ2に格納さ九た制御プログラムを演算
して結果をデータメモリ5に格納する演算処理、および
データメモリ5に格納された制御プログラムの演算結果
を出力部6を介して外部機器に出力する出力処理を繰り
返し実行する。
The programmable controller configured in this way is
Input processing for storing external input signals obtained through the input unit 3 in the data memory 5, calculating the control program stored in the program memory 2 according to the contents of the data memory 5, and storing the results in the data memory 5. Arithmetic processing and output processing for outputting the arithmetic results of the control program stored in the data memory 5 to an external device via the output unit 6 are repeatedly executed.

プログラマブルコントローラを動作させるための制御プ
ログラムは、プログラム作成時の入力ミス、あるいは制
御プログラムのプログラムミスなどによって誤りを生ず
ることがあるので、作成した制御プログラムをプログラ
ムコントローラのプログラムメモリ2に格納して演算実
行し、制御プログラム実行中のデータメモリ5の内容を
保守ツールなどの装置を用いて表示させデバッグを行う
のが普通である。
The control program for operating the programmable controller may have errors due to input errors during program creation or programming errors in the control program. Therefore, the created control program is stored in the program memory 2 of the program controller and then calculated. Normally, the contents of the data memory 5 during execution of the control program are displayed using a device such as a maintenance tool for debugging.

(発明が解決しようとする課題) 従来は、保守ツールなどの装置を用いて表示されるデー
タメモリの内容は制御プログラムの演算終了時の最終結
果のみであり、制御プログラムの演算途中のデータメモ
リの内容を表示することは行われていない。
(Problem to be Solved by the Invention) Conventionally, the contents of the data memory displayed using a device such as a maintenance tool are only the final results at the end of the calculation of the control program, and the contents of the data memory during the calculation of the control program are displayed. No content is displayed.

しかしながらデータメモリの内容は制御プログラム中の
複数の個所で書換えられる場合があり、従って制御プロ
グラムのデバッグを効率的に行うためには制御プログラ
ムの演算途中のデータメモリの内容を表示することが必
要である。
However, the contents of the data memory may be rewritten at multiple locations in the control program, and therefore, in order to debug the control program efficiently, it is necessary to display the contents of the data memory during the operation of the control program. be.

このための手段として、プログラマブルコントローラ自
身に制御プログラムの演算を途中で止めるアドレススト
ップ機能を設ける方法があるが。
As a means for this purpose, there is a method of providing the programmable controller itself with an address stop function that stops the calculation of the control program midway.

この場合は演算を停止するアドレスの設定を変更しなが
ら順次制御プログラムの演算を通行させる必要があり、
デバッグ作業が面倒であるばかりでなく、制御演算の連
続した動きが分りにくいという問題がある。
In this case, it is necessary to pass the calculations of the control program sequentially while changing the setting of the address where calculations are stopped.
There is a problem that not only debugging work is troublesome, but also that it is difficult to understand the continuous movement of control calculations.

また別の手段として、制御プログラムの途中にデータメ
モリの内容をデータメモリ上の使用していない他の領域
に転送して保存するようにプログラムを変更し、転送し
たデータメモリの内容を読み出してデバッグを行う方法
もあるが、デバッグのために本来の制御プログラムを変
更すること自体が、プログラムの変更過程中に制御プロ
グラムにプログラムミスを発生させる恐れがある。
Another method is to change the program to transfer and save the contents of the data memory to another unused area on the data memory during the control program, and then read the transferred data memory contents for debugging. However, changing the original control program for debugging may itself cause a program error in the control program during the program change process.

本発明は制御プログラムの演算実行に影響を与えること
なく、制御プログラムの演算、途中にデータメモリの内
容を表示してデバッグを行うことを可能にした合理的な
プログラマブルコントローラを提供することを目的とし
ている。
An object of the present invention is to provide a rational programmable controller that enables debugging by displaying the contents of data memory during the calculation of a control program without affecting the execution of the calculation of the control program. There is.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段と作用) 本発明によるプログラマブルコントローラは、外部信号
を入力する入力部と制御プログラムの演算を実行する演
算部と演算結果を外部機器に出方する出力部とMfll
プログラムを格納するプログラムメモリ部と外部入力信
号および演算結果を格納するデータメモリ部から構成さ
れ、入力部から得られる入力データをデータメモリ部に
格納する入力処理、プログラムメモリ部に格納された制
御プログラムを演算実行する演算処理、およびデータメ
モリ部に格納された演算結果を出力部を介して外部機器
に出力する出力処理を繰り返し実行するプログラマブル
コントローラにおいて、制御プログラムの演算途中のデ
ータメモリ部の内容を保存するためのデータ保存用メモ
リ領域と、制御プログラムの演算途中にデータメモリ部
の内容をデータ保存用メモリ領域に転送する手段と、デ
ータ保存用のメモリ領域の内容を表示する手段とを設け
(Means and Effects for Solving the Problems) The programmable controller according to the present invention includes an input section for inputting external signals, an arithmetic section for executing arithmetic operations of a control program, an output section for outputting arithmetic results to an external device, and an Mfll.
Consists of a program memory section that stores programs and a data memory section that stores external input signals and calculation results.Input processing that stores input data obtained from the input section in the data memory section, and control programs stored in the program memory section. In a programmable controller that repeatedly performs arithmetic processing to perform calculations and output processing to output the calculation results stored in the data memory section to an external device via the output section, the contents of the data memory section during the calculation of the control program are A data storage memory area for storage, means for transferring the contents of the data memory section to the data storage memory area during the calculation of the control program, and means for displaying the contents of the data storage memory area are provided.

これによって制御プログラムの演算実行に影響を与える
ことなく制御プログラムの演算途中のデータメモリの内
容を外部に表示することを可能とし、デバッグ作業を容
易に行えるようにしたものである。
This makes it possible to externally display the contents of the data memory during the operation of the control program without affecting the execution of the operation of the control program, thereby facilitating debugging work.

(実施例) 本発明によるプログラマブルコントローラの一実施例を
第1図に示す。
(Embodiment) An embodiment of a programmable controller according to the present invention is shown in FIG.

第1図において、プログラマブルコントローラ1は、従
来の第5図と同じように制御プログラムを格納するプロ
グラムメモリ2、図示しない被制御機器から得られる外
部信号を入力して外部入力データに変換する入力部3、
入力部3からの外部入力データに基づき制御プログラム
に従って演算を実行する演算部4.入力部3からの外部
入力データおよび演算部4からの演算結果を格納するデ
ータメモリ5、データメモリ5に格納された外部出力デ
ータを外部信号として制御対象に出力する出力部6を有
すると共に、さらに制御プログラムの演算途中のデータ
メモリ5の内容を保存するデータ保存用メモリ7が設け
られ、制御プログラムの作成およびデバッグのための保
守ツール8に接続できるようになっている。
In FIG. 1, a programmable controller 1 includes a program memory 2 that stores a control program, and an input section that inputs an external signal obtained from a controlled device (not shown) and converts it into external input data, as in the conventional FIG. 5. 3,
a calculation unit 4 that executes calculations according to a control program based on external input data from the input unit 3; It has a data memory 5 for storing external input data from the input section 3 and calculation results from the calculation section 4, and an output section 6 for outputting external output data stored in the data memory 5 as an external signal to a controlled object, and further includes: A data storage memory 7 is provided to store the contents of the data memory 5 during the calculation of the control program, and can be connected to a maintenance tool 8 for creating and debugging the control program.

次に、以上のように構成されたプログラマブルコントロ
ーラの動作を第2図〜第4図を参照して説明する。
Next, the operation of the programmable controller configured as above will be explained with reference to FIGS. 2 to 4.

先ず、入力部3から得られた外部信号をデータメモリ5
に格納する(入力処理100)。次にデータメモリ5に
格納された値を用いて制御プログラムを演算実行し、結
果をデータメモリ5に格納する(演算処理101)。制
御プログラムの演算が終了すると、データメモリ5に格
納された演算結果を出力部6を介して外部機器に出力す
る(出力処理102)。プログラマブルコントローラは
この入力処理100、演算処理101.出力処理102
を繰り返し実行する。
First, an external signal obtained from the input section 3 is input to the data memory 5.
(input processing 100). Next, the control program is executed using the values stored in the data memory 5, and the results are stored in the data memory 5 (arithmetic processing 101). When the calculation of the control program is completed, the calculation result stored in the data memory 5 is output to an external device via the output unit 6 (output processing 102). The programmable controller performs this input processing 100, arithmetic processing 101. Output processing 102
Execute repeatedly.

演算処理101は第4図に示すような命令語の組み合せ
で実行され、各命令語はプラント制御に適するビット演
算や積分演算などを実行する一種のサブルーチンで構成
されている。
Arithmetic processing 101 is executed by a combination of instruction words as shown in FIG. 4, and each instruction word is composed of a type of subroutine for executing bit operations, integral operations, etc. suitable for plant control.

この命令語を実行するために必要なパラメータとしては
、一般にデータの入出刃先が指定されるが、本発明では
さらに、制御プログラムを構成する命令語のアドレス番
号と演算結果を転送するデータ保存用メモリ7のアドレ
ス番号を指定するテーブルが設けられ、演算結果を保存
したい命令語のアドレス番号と演算結果を保存するデー
タ保存用メモリ7のアドレス番号が指定される。
Generally, the input/output edge of data is specified as a parameter necessary to execute this instruction word, but in the present invention, the address number of the instruction word making up the control program and a data storage memory for transferring the operation results are also specified. A table for specifying the address numbers of 7 is provided, and the address number of the instruction word in which the operation result is to be saved and the address number of the data storage memory 7 in which the operation result is to be saved are specified.

一方、プログラマブルコントローラの各命令語の実行処
理機能は第3図に示すように、命令語の機能実行後に第
3図に示すテーブルの内容を読み出し、実行した命令語
のアドレスが指定されている場合には、命令語の演算結
果が指定されたデータ保存用メモリ7に転送される。
On the other hand, as shown in Figure 3, the execution processing function of each instruction word of the programmable controller reads the contents of the table shown in Figure 3 after the function of the instruction word is executed, and if the address of the executed instruction word is specified. In this case, the operation result of the instruction word is transferred to the designated data storage memory 7.

これによって、第4図のアドレス番号で示される命令語
の演算結果であるデータメモリ5の内容は、以降のアド
レスの命令語が書換えられることがあっても、変更され
ることなくデータ保存用メモリ7に保存される。
As a result, the contents of the data memory 5, which are the operation results of the instruction words indicated by the address numbers in FIG. 4, remain unchanged even if the instruction words at subsequent addresses are rewritten. 7 is saved.

データ保存用メモリ7は制御プログラムに用いられるデ
ータメモリ5とは別の領域であるので、第4図のテーブ
ルの指定を変えても制御プログラムの動作に影響を与え
ることはない、また第4図のテーブルの指定およびデー
タ保存用メモリ7の内容を表示することは、制御プログ
ラムの編集機能およびデータメモリ5の表示機能と同様
な手法により、保守ツール8を用いて容易に実現するこ
とができる。
Since the data storage memory 7 is a separate area from the data memory 5 used for the control program, changing the specifications in the table shown in FIG. 4 will not affect the operation of the control program. Specifying the table and displaying the contents of the data storage memory 7 can be easily achieved using the maintenance tool 8 using the same method as the editing function of the control program and the display function of the data memory 5.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、制御プログラムの
演算実行に影響をあたえることなく、演算途中の任意の
データメモリの内容を容易に表示することができ、これ
によって制御プログラムのデバッグ作業を効率的に行え
る合理的なプログラマブルコントローラが得られる。
As explained above, according to the present invention, it is possible to easily display the contents of any data memory in the middle of an operation without affecting the execution of the operation of the control program, thereby making it possible to efficiently debug the control program. This provides a rational programmable controller that can perform

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

第1図は本発明によるプログラマブルコントローラー実
施例を示す構成図、第2図はプログラマブルコントロー
ラの基本的な動作を示すフローチャート、第3図は本発
明におけるデータ転送動作を示すフローチャート、第4
図は本発明におけるメモリアドレス図、第5図は従来の
プログラマブルコントローラの構成図である。 1・・・プログラマブルコントローラ 2川プログラム
メモリ3・・・入力部           4・・・
演算部5・・・データメモリ        6・・・
出力部7・・・データ保存用メモリ     8・・・
保守ツール代理人 弁理士 則 近 憲 佑 同    第子丸   健 第 図 第 図 第 図 第 図 第 図
FIG. 1 is a block diagram showing an embodiment of a programmable controller according to the present invention, FIG. 2 is a flowchart showing the basic operation of the programmable controller, FIG. 3 is a flowchart showing the data transfer operation in the present invention, and FIG.
The figure is a memory address diagram in the present invention, and FIG. 5 is a configuration diagram of a conventional programmable controller. 1... Programmable controller 2 Program memory 3... Input section 4...
Arithmetic unit 5...data memory 6...
Output section 7...Memory for data storage 8...
Maintenance tool agent Patent attorney Nori Ken Yudo Daishimaru Ken

Claims (1)

【特許請求の範囲】[Claims] 外部信号を入力する入力部、制御プログラムの演算を実
行する演算部、演算結果を外部機器に出力する出力部、
制御プログラムを格納するプログラムメモリ、および外
部入力信号および演算結果を格納するデータメモリから
構成され、入力部から得られる入力データをデータメモ
リに格納する入力処理、プログラムメモリに格納された
制御プログラムを演算実行する演算処理、およびデータ
メモリに格納された演算結果を出力部を介して外部機器
に出力する出力処理を繰り返し実行するプログラマブル
コントローラにおいて、制御プログラムの演算途中のデ
ータメモリの内容を外部からの指令に応じて保存するデ
ータ保存用メモリを設け、外部からの指令に応じて外部
に表示するようにしたことを特徴とするプログラマブル
コントローラ。
An input section that inputs external signals, a calculation section that executes calculations of the control program, an output section that outputs calculation results to external equipment,
Consists of a program memory that stores control programs, and a data memory that stores external input signals and calculation results, and performs input processing that stores input data obtained from the input section in the data memory, and calculates the control program stored in the program memory. In a programmable controller that repeatedly executes arithmetic processing and output processing that outputs the calculation results stored in the data memory to an external device via the output unit, it is possible to receive commands from outside to change the contents of the data memory during the calculation of a control program. A programmable controller characterized in that it is provided with a data storage memory that stores data in response to an external command, and is configured to display data externally in response to an external command.
JP1135982A 1989-05-31 1989-05-31 Programmable controller Pending JPH032902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1135982A JPH032902A (en) 1989-05-31 1989-05-31 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1135982A JPH032902A (en) 1989-05-31 1989-05-31 Programmable controller

Publications (1)

Publication Number Publication Date
JPH032902A true JPH032902A (en) 1991-01-09

Family

ID=15164426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1135982A Pending JPH032902A (en) 1989-05-31 1989-05-31 Programmable controller

Country Status (1)

Country Link
JP (1) JPH032902A (en)

Similar Documents

Publication Publication Date Title
US5784621A (en) Sequence program display apparatus
US5687074A (en) System for debugging sequence program
US4924403A (en) Numerical control method and system therefor having override playback function
JPH032902A (en) Programmable controller
JPH0410081B2 (en)
JPH05297913A (en) Programmable controller
JPH02202604A (en) External part extending type programmable controller
JPH08278806A (en) Cnc macro variable debugging system
JPH0460805A (en) Sequence program generating method
JPS62243008A (en) Signal trace controlling system for pmc
JPH11134010A (en) Program executing method of programmable controller
JP3413860B2 (en) Debug method
JPS63177205A (en) Programming device for programmable controller
JPH07253876A (en) Program generating device
JPH04373036A (en) Software testing device for computer system
JPH08286712A (en) Editing system for sequence program
EP0538482A1 (en) Method for debugging sequential program
JP2708983B2 (en) Program display device
JPH01223504A (en) Sampling trace system for programmable controller
JPS6348698A (en) Memory storage control device
JPH0682284B2 (en) Sequence controller
JPH0420481B2 (en)
JPS58221405A (en) Programmable controller
JPH06324717A (en) Edit system for sequence program
JPH01291307A (en) Working program generating system