JPH02138606A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH02138606A
JPH02138606A JP63188644A JP18864488A JPH02138606A JP H02138606 A JPH02138606 A JP H02138606A JP 63188644 A JP63188644 A JP 63188644A JP 18864488 A JP18864488 A JP 18864488A JP H02138606 A JPH02138606 A JP H02138606A
Authority
JP
Japan
Prior art keywords
instruction word
section
data
executed
instruction
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
JP63188644A
Other languages
Japanese (ja)
Inventor
Kenji Okamoto
健二 岡本
Soji Ota
太田 宗司
Toshio Morimoto
敏夫 森本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63188644A priority Critical patent/JPH02138606A/en
Publication of JPH02138606A publication Critical patent/JPH02138606A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To correctly and rapidly understand the operation of a sequence program by extracting the data of an address contained in the instruction word immediately before the instruction word is operated by an arithmetic part and an arithmetic result immediately after the instruction word is executed and displaying them together with the instruction word. CONSTITUTION:A command for displaying an instruction word to transfer data between memories and operating the data of one byte or above such as four rules operation on a displaying part 4, is given from an arithmetic part 3 to a control part 1. As a result, in response thereto, an arithmetic part 2 extracts the data of the address included in the instruction word immediately before the instruction word is operated by the arithmetic part 2 and the arithmetic result immediately after the instruction word is executed. Also, the displaying part 4 displays the data of the address included in the instruction word immediately before the instruction word is operated by the arithmetic part 2 and the arithmetic result immediately after the instruction word is executed. Accordingly, immediately before the instruction word is operated by the arithmetic part 2, the data of the address included in the instruction and the arithmetic result immediately after the instruction word is executed are successively displayed together with the instruction word. In such a way, the operation of a sequence program can be correctly and rapidly understood.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は各種機器を所定のシーケンスプログラムに従
って制御するプログラマブルコントローラに関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller that controls various devices according to a predetermined sequence program.

〔従 来 の 技 術〕[Traditional techniques]

従来のプログラマブルコントローラは、シーケンスプロ
グラムの実行中にメモリ間転送や四則演算等の1バイト
以上の演算を行う命令語の演算結果を知りたい場合、内
部メモリや入出力のオン・オフ状態を表示部に表示する
機能(以下、入出力モニタ機能という)を実行すること
により、前記命令語の演算結果を認識していた。
In conventional programmable controllers, when you want to know the operation result of a command word that performs an operation of 1 byte or more, such as inter-memory transfer or four arithmetic operations during the execution of a sequence program, the on/off status of internal memory and input/output is displayed on the display. The result of the operation of the instruction word was recognized by executing a function to display the command (hereinafter referred to as the input/output monitor function).

(発明が解決しようとするii、I!I)しかしながら
、上記の入出力モニタ機能を使って演算結果を確かめる
方法では、命令語の演算結果が格納されているアドレス
を操作者が把握し、表示部を入出力モニタ機能のモード
に切り替えてから前記アドレスを設定しなければ演算結
果を認識できないので、操作に手間がかかるという問題
があった。
(II, I!I to be solved by the invention) However, in the above method of checking the operation result using the input/output monitor function, the operator grasps the address where the operation result of the instruction word is stored and displays it. The operation result cannot be recognized unless the address is set after the unit is switched to the mode of the input/output monitor function, so there is a problem in that the operation is time-consuming.

サラに、1つのシーケンスプログラム中に演!結果を同
一アドレスに格納する命令語が複数個存在した場合、入
出力モニタには、シーケンスプログラムの最後に実行さ
れた結果が表示されることになっているので、演算直後
の結果を確認できないという問題があった。
Sarah, performed during one sequence program! If there are multiple instruction words that store the result at the same address, the input/output monitor is supposed to display the last executed result of the sequence program, so you may not be able to check the result immediately after the operation. There was a problem.

したがって、この発明の目的は、シーケンスプログラム
の動作を正確かつ迅速に把握することができるプログラ
マブルコントローラを提供することである。
Therefore, an object of the present invention is to provide a programmable controller that can accurately and quickly grasp the operation of a sequence program.

〔課題を解決するための手段〕[Means to solve the problem]

この発明のプログラマブルコントローラは、命令語を演
算部で演算する直前における命令語に含まれるアドレス
のデータと命令語が実行された直後の演算結果とを命令
語の表示指令に応答して演算部で抽出させる手段と、命
令語を演算部で演算する直前において命令語に含まれる
アドレスのデータと命令語が実行された直後の演算結果
とを表示部に命令語とともに表示させる手段とを設けた
ことを特徴とする。
In the programmable controller of the present invention, the data of the address included in the instruction word immediately before the instruction word is operated in the operation section and the operation result immediately after the instruction word is executed are displayed in the operation section in response to a display command of the instruction word. A means for extracting the instruction word, and a means for displaying the address data included in the instruction word immediately before the instruction word is operated in the arithmetic unit and the operation result immediately after the instruction word is executed on the display unit together with the instruction word. It is characterized by

〔作   用〕[For production]

この発明の構成においては、メモリ間のデータ転送およ
び四則演算等の1バイト以上のデータを演算する命令語
を表示部に表示させる指令を操作部から制御部に与える
と、これに応答して演算部が命令語を演算部で演算する
直前における命令語に含まれるアドレスのデータと命令
語が実行された直後の演算結果とを抽出し、さらに表示
部が命令語を演算部で演算する直前において命令語に含
まれるアドレスのデータと命令語が実行された直後の演
算結果とを表示することになる。
In the configuration of the present invention, when a command is given from the operation unit to the control unit to display a command word for calculating data of 1 byte or more such as data transfer between memories and four arithmetic operations on the display unit, the operation The display section extracts the data of the address included in the instruction word immediately before the instruction word is calculated by the calculation section and the operation result immediately after the instruction word is executed, and the display section extracts the data of the address included in the instruction word immediately before the instruction word is calculated by the calculation section. The address data included in the instruction word and the calculation result immediately after the instruction word is executed are displayed.

したがって、表示部に表示させる命令語を例えばシーケ
ンスプログラムに従って順次変更していけば、シーケン
スプログラムを構成するすべての1バイト以上の命令語
に対して表示部が命令語を演算部で演算する直前におい
て命令語に含まれるアドレスのデータと命令語が実行さ
れた直後の演算結果とが命令語とともに順次表示される
ことになり、シーケンスプログラムの動作を正確かつ迅
速に把握することができる。
Therefore, if the instruction words to be displayed on the display section are changed sequentially according to the sequence program, for example, the display section will change the instruction words for all the instruction words of 1 byte or more that make up the sequence program immediately before the operation section calculates the instruction words. The address data included in the instruction word and the calculation result immediately after the instruction word is executed are displayed sequentially together with the instruction word, so that the operation of the sequence program can be grasped accurately and quickly.

この場合、上記の動作を実行させるには、例えば1バイ
ト以上の演算を行う命令語を表示部に表示させて命令語
をモニタするときに、表示させるべき命令語にのみ、命
令語を演算部で演算する直前における命令語に含まれる
アドレスのデータと命令語が実行された直後の演算結果
とを抽出して、それを表示させるサブプログラムを呼び
出す命令を付は加えることで、上記の命令語を演算部で
演算する直前における命令語に含まれるアドレスのデー
タと命令語が実行された直後の演算結果とを表示部に表
示させることができる。
In this case, in order to execute the above operation, for example, when displaying an instruction word that performs an operation of 1 byte or more on the display section and monitoring the instruction word, only the instruction word to be displayed must be displayed on the operation section. By adding an instruction that calls a subprogram that extracts the data at the address included in the instruction word immediately before the operation is performed and the operation result immediately after the instruction word is executed, and displays it, the above instruction word It is possible to display on the display section the data of the address included in the instruction word immediately before the instruction word is computed by the arithmetic section and the operation result immediately after the instruction word is executed.

〔実 施 例〕〔Example〕

この発明の一実施例を第1図ないし第3図に基づいて説
明する。第1図はこの発明の一実施例のプログラマブル
コントローラの構成を示している。
An embodiment of the present invention will be described based on FIGS. 1 to 3. FIG. 1 shows the configuration of a programmable controller according to an embodiment of the present invention.

第1図において、1は入力状態や内部情報に対して論理
演算を行う制御部、2はシーケンスプログラムを実行す
るための演算部である。5は入出力データや内部情報、
演算結果等が格納される内部メモリ、6はシーケンスプ
ログラムが格納されているメモリである。3は制御部1
に対して各種指令やユーザプログラム(シーケンスプロ
グラム)を入力するための操作部、4は操作部3から指
示された各種指令や演算部2で処理された演算結果等を
表示する表示部である。7は入出力部である。
In FIG. 1, numeral 1 denotes a control section that performs logical operations on input states and internal information, and numeral 2 denotes an arithmetic section that executes a sequence program. 5 is input/output data and internal information,
An internal memory stores calculation results, etc., and a memory 6 stores a sequence program. 3 is the control unit 1
An operating section 4 is used to input various commands and user programs (sequence programs) to the operating section 3, and a display section 4 displays various commands instructed from the operating section 3, calculation results processed by the calculating section 2, and the like. 7 is an input/output section.

第2図は、命令語を表示部4に表示させて命令語をモニ
タするときに、命令語を演算部で演算する直前における
命令語に含まれるアドレスのデータと命令語が実行され
た直後の演算結果とを抽出演算部で抽出させる手段、お
よび命令語を演算部で演算する直前における命令語に含
まれるアドレスのデータと命令語が実行された直後の演
算結果とを表示部に表示させるための手段を示したフロ
ーチャートである。第3図は前述した各手段を具体的に
実行したときのシーケンスプログラムの流れ図である。
FIG. 2 shows the data at the address included in the instruction immediately before the instruction is operated in the arithmetic section and the data at the address immediately after the instruction is executed when the instruction is displayed on the display section 4 to monitor the instruction. Means for causing an extraction operation section to extract the operation result, and for displaying on a display section the data of the address included in the instruction word immediately before the instruction word is operated by the operation section and the operation result immediately after the instruction word is executed. FIG. FIG. 3 is a flowchart of a sequence program when each of the above-mentioned means is specifically executed.

以上のように構成されたプログラマブルコントローラに
ついて、第1図ないし第3図を用いて説明する。
The programmable controller configured as described above will be explained using FIGS. 1 to 3.

実行状態にあるプログラマブルコントローラにおいて、
操作部3からシーケンスプログラムの命令語を表示させ
る指令が制御部1に送られると、制御部1は第2図に示
すフローチャートに基づいて実行する。まず、処理8で
モニタする命令語が1バイト以上の演算命令(以下、バ
イト演算命令という)であるかどうかを判断し、もし該
当すれば前記命令語のコピーを記憶部(システムエリア
)内に作成する処理9を実行する。
In the programmable controller in the execution state,
When a command to display command words of a sequence program is sent from the operation section 3 to the control section 1, the control section 1 executes the commands based on the flowchart shown in FIG. First, in process 8, it is determined whether the instruction word to be monitored is an arithmetic instruction of one byte or more (hereinafter referred to as a byte arithmetic instruction), and if so, a copy of the instruction word is stored in the storage unit (system area). Execute process 9 to create.

つぎに、前記命令語の先頭にサブプログラムを呼び出す
CALL命令を書く0例えば、第3図に示すように、ス
テップ番号003の命令語■がバイト演算命令であると
すれば、この命令語■を表示させる指令を送ったときに
第2図の処理8,9゜10が実行されるので、命令語■
の先頭にはCALL命令が書かれることになる。その後
、演算部2によってシーケンスプログラム12が逐次実
行され、ステップ番号が003のところにくれば、サブ
ルーチンの処理13,14,15.16を実行すること
になる。すなわち、処理13で命令語4に含まれている
アドレスのデータを表示し、処理14で命令語4の演算
を行い、処理15ではその演算結果を表示することにな
る。処理16では、シーケンスプログラム12に戻り、
シーケンスプログラム12のステップ番号004の命令
語■を実行する。
Next, write a CALL instruction to call the subprogram at the beginning of the instruction word. For example, as shown in FIG. 3, if the instruction word ■ of step number 003 is a byte operation instruction, When the command to display is sent, processes 8, 9 and 10 in Figure 2 are executed, so the command word ■
A CALL instruction will be written at the beginning of the file. Thereafter, the sequence program 12 is sequentially executed by the arithmetic unit 2, and when the step number reaches 003, subroutine processes 13, 14, 15, and 16 are executed. That is, in process 13, the data of the address included in instruction word 4 is displayed, in process 14, an operation is performed on instruction word 4, and in process 15, the result of the operation is displayed. In process 16, the process returns to the sequence program 12,
Execute the instruction word ■ of step number 004 of the sequence program 12.

また、操作部3から前述した命令語■を表示することと
は別の指令が制御部1へ送られた場合、それまで表示し
ていた命令語の内容を修復する作業を行った後、前記の
別の指令について処理を行うことになる。
In addition, if a command other than displaying the command word ■ mentioned above is sent from the operation unit 3 to the control unit 1, after repairing the contents of the command word that had been displayed until then, Processing will be performed for another command.

このように構成した結果、表示部4に表示させる命令語
を例えばシーケンスプログラム12に従って順次変更し
ていけば、シーケンスプログラム12を構成するすべて
の1バイト以上の命令語に対して表示部4が命令語を演
算部2で演算する直前において命令語に含まれるアドレ
スのデータと命令語が実行された直後の演算結果とが命
令語とともに順次表示されることになり、シーケンスプ
ログラム12の動作を正確かつ迅速に把握することがで
きる。
As a result of this configuration, if the command words to be displayed on the display unit 4 are changed sequentially according to the sequence program 12, the display unit 4 will display the commands for all the command words of 1 byte or more that constitute the sequence program 12. Immediately before the instruction word is computed by the arithmetic unit 2, the address data included in the instruction word and the operation result immediately after the instruction word is executed are sequentially displayed together with the instruction word, allowing accurate and accurate operation of the sequence program 12. Can be grasped quickly.

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

この発明のプログラマブルコントローラによれば、命令
語を演算部で演算する直前における命令語に含まれるア
ドレスのデータと命令語が実行された直後の演算結果と
を抽出して命令語とともに表示するので、シーケンスプ
ログラムの動作を正確かつ迅速に把握することができる
According to the programmable controller of the present invention, the address data included in the instruction word immediately before the instruction word is operated in the arithmetic section and the operation result immediately after the instruction word is executed are extracted and displayed together with the instruction word. It is possible to accurately and quickly understand the operation of a sequence program.

【図面の簡単な説明】 第1図はこの発明の一実施例のプログラマブルコントロ
ーラの構成を示すブロック図、第2図は命令語実行直前
直後のデータを抽出・表示する手段を示すフローチャー
ト、第3図は命令語実行直前直後のデータを抽出・表示
する手段を具体的に実行したときのシーケンスプログラ
ムを示す流れ図である。 1・・・制御部、2・・・演算部、3・・・操作部、4
・・・表示部、7・・・入出力部 第 図 第 図
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a block diagram showing the configuration of a programmable controller according to an embodiment of the present invention, FIG. 2 is a flowchart showing means for extracting and displaying data immediately before and after execution of a command word, and FIG. The figure is a flowchart showing a sequence program when specifically executing means for extracting and displaying data immediately before and after execution of a command word. DESCRIPTION OF SYMBOLS 1...Control part, 2...Calculation part, 3...Operation part, 4
...Display section, 7...Input/output section Fig.

Claims (1)

【特許請求の範囲】 メモリ間のデータ転送および四則演算等の1バイト以上
のデータを演算する命令語が実行可能なプログラマブル
コントローラであって、 入力状態および内部情報に対して論理演算を行う制御部
と、前記制御部で処理されたデータを格納する第1記憶
部と、前記命令語を実行する演算部と、前記演算部で実
行されたデータ等を格納する第2記憶部と、前記制御部
に各種指令を伝える操作部と、前記制御部および演算部
で処理された結果等を表示する表示部と、前記命令語を
前記演算部で演算する直前における前記命令語に含まれ
るアドレスのデータと前記命令語が実行された直後の演
算結果とを前記命令語の表示指令に応答して前記演算部
で抽出させる手段と、前記命令語を前記演算部で演算す
る直前において前記命令語に含まれるアドレスのデータ
と前記命令語が実行された直後の演算結果とを前記表示
部に前記命令語とともに表示させる手段とを備えたプロ
グラマブルコントローラ。
[Scope of Claims] A programmable controller capable of executing commands for data transfer between memories and operations on data of 1 byte or more, such as four arithmetic operations, and a control unit that performs logical operations on input states and internal information. a first storage section that stores data processed by the control section; a calculation section that executes the command; a second storage section that stores data executed by the calculation section; and a control section. an operating section for transmitting various commands to the computer; a display section for displaying results processed by the control section and the calculation section; and data of an address included in the instruction word immediately before the instruction word is calculated by the calculation section. means for causing the arithmetic unit to extract an operation result immediately after the instruction word is executed in response to a display command of the instruction word; A programmable controller comprising: means for displaying address data and a calculation result immediately after the instruction word is executed on the display unit together with the instruction word.
JP63188644A 1988-07-28 1988-07-28 Programmable controller Pending JPH02138606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63188644A JPH02138606A (en) 1988-07-28 1988-07-28 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63188644A JPH02138606A (en) 1988-07-28 1988-07-28 Programmable controller

Publications (1)

Publication Number Publication Date
JPH02138606A true JPH02138606A (en) 1990-05-28

Family

ID=16227323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63188644A Pending JPH02138606A (en) 1988-07-28 1988-07-28 Programmable controller

Country Status (1)

Country Link
JP (1) JPH02138606A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58125109A (en) * 1982-01-20 1983-07-26 Toshiba Corp Programmable controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58125109A (en) * 1982-01-20 1983-07-26 Toshiba Corp Programmable controller

Similar Documents

Publication Publication Date Title
JPS60262204A (en) Programmable controller
US5253158A (en) Apparatus for supporting the development of sequence software to be used in automated equipments, and method thereof
JPH02138606A (en) Programmable controller
JPS58178408A (en) Programmable controller having simulating function
JPS59114602A (en) Programmable controller
JPS63172307A (en) Programmable controller
JPS5949609A (en) Programmable controller equipped with simulation performing function
JP3358113B2 (en) Program creation device for programmable controller
JP3443184B2 (en) Programmer for programmable controller
JPH01223504A (en) Sampling trace system for programmable controller
JP2004151762A (en) Programmable controller
JPH02118849A (en) Simulation system for input output device
JPS63201736A (en) Programming device for programmable controller
JPH0751610Y2 (en) Programmable controller with override function
JPH06161516A (en) Checking method for sequence program
JPS58221405A (en) Programmable controller
JPH02253305A (en) Signal tracing system for programmable controller
JPS6238746B2 (en)
JPH04332003A (en) Programmable controller
JPH03161803A (en) Process controller
JPS6232540A (en) Information processor
JPH05297913A (en) Programmable controller
JPS59119413A (en) Programmable controller
JPS6252607A (en) Program debugging device
JPH032902A (en) Programmable controller