JPH04175902A - Programmable controller system - Google Patents

Programmable controller system

Info

Publication number
JPH04175902A
JPH04175902A JP2302666A JP30266690A JPH04175902A JP H04175902 A JPH04175902 A JP H04175902A JP 2302666 A JP2302666 A JP 2302666A JP 30266690 A JP30266690 A JP 30266690A JP H04175902 A JPH04175902 A JP H04175902A
Authority
JP
Japan
Prior art keywords
program
sequence
subroutine
input
code
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
JP2302666A
Other languages
Japanese (ja)
Inventor
Yutaka Yatsuda
八ツ田 豊
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2302666A priority Critical patent/JPH04175902A/en
Publication of JPH04175902A publication Critical patent/JPH04175902A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To enable an operator to easily know the mutual relation between the relative program of a main program and subroutine programs by providing a code detecting mans, an information extracting means, and a display means. CONSTITUTION:This programmable controller system is equipped with a code detecting means 1000 which detects the information codes in a sequence program to be displayed and also equipped with the information extracting means 1100 which extracts input/output parameters used by sequence instructions from a partial program within the range of the sequence program to be displayed which is indicates by the detected information codes. Further, the system is equipped with a display means 1200 which displays the extracted input/output parameters at a specific position. Consequently, when execution instructions of subroutine programs are displayed, input/output parameters indicating the contents of the subroutine programs can be displayed nearby a display of the execution instruction of the subroutine programs, so that the operator can know the mutual relation between the main program and subroutine programs.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明は、シーケンスプログラムを演算実行することに
より電子機器を自動制御するプログラマブルコントロー
ラシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to a programmable controller system that automatically controls electronic equipment by executing a sequence program.

【従来の技術1 従来、ユーザのシーケンスプログラムの作成労力を軽減
するために、シーケンスプログラム中で複数回使用する
部分プログラムについては、サブルーチン(分岐)を用
いた記載手法が用いられている。すなわち、共通使用す
るシーケンスプログラムの中の上記部分プログラムをメ
イン(主)プログラムとは別個に識別名を付してシーケ
ンスプログラム中に記載しておき(この記載された部分
プログラムをサブルーチンプログラムと称す)、メイン
プログラム中の上記サブルーチンプログラムの使用箇所
にはサブルーチンプログラムの識別名を含む、サブルー
チンプログラムの実行命令(マクロ命令とも呼ばれる)
を記載する。
[Prior Art 1] Conventionally, in order to reduce the effort of a user to create a sequence program, a description method using subroutines (branches) has been used for partial programs that are used multiple times in a sequence program. That is, the above-mentioned partial programs in the commonly used sequence program are written in the sequence program with an identification name separately from the main program (this written partial program is called a subroutine program). , the location where the above subroutine program is used in the main program contains the subroutine program's identification name, and the subroutine program execution instruction (also called a macro instruction)
Describe.

シーケンスプログラムをプログラマブルコントローラで
実行する際に、プログラマブルコントローラ内部の中央
演算処理装置(C:PU)がメインプログラム中で上記
実行命令を検出すると、CPUは実行手順をサブルーチ
ンプログラムに移し、サブルーチンプログラムを実行し
た後、実行手順を移動前のメインプログラム位置に戻し
、以後メインプログラムの演算を実行する。
When a sequence program is executed by a programmable controller, when the central processing unit (C: PU) inside the programmable controller detects the above execution instruction in the main program, the CPU moves the execution procedure to a subroutine program and executes the subroutine program. After that, the execution procedure is returned to the main program position before the movement, and the calculations of the main program are executed thereafter.

このようなプログラム記載手法を用いることで繰返し実
行する同一の部分プログラムについてはユーザは1回だ
け記載すればよく、複数回記載する必要はない。
By using such a program description method, the user only needs to write the same partial program once to be executed repeatedly, and there is no need to write it multiple times.

[発明が解決しようとする課題l 上述のような手法で作成されたシーケンスプログラム中
ではメインプログラムとサブルーチンプログラムとは上
述の如く別個に記載されるので、メインプログラムとサ
ブルーチンプログラムの両方をプログラミング装置の表
示画面に表示することができない。
[Problem to be Solved by the Invention l] In a sequence program created using the method described above, the main program and the subroutine program are written separately as described above, so it is necessary to write both the main program and the subroutine program on the programming device. cannot be displayed on the display screen.

このためユーザはメインプログラムとサブルーチンプロ
グラムの相互関係が判別しにくいという不具合があった
Therefore, there was a problem in that it was difficult for the user to determine the mutual relationship between the main program and the subroutine program.

この点について詳しく説明する。This point will be explained in detail.

シーケンスプログラムはプログラマブルコントローラに
おいては情報コード信号の形態で処理される。この情報
コード信号を文字表現に−モニック表現)したシーケン
スプログラムを第8図に示す。
The sequence program is processed in the form of an information code signal in the programmable controller. A sequence program in which this information code signal is expressed in character (monic expression) is shown in FIG.

上記情報コード信号のシーケンスプログラムをプログラ
ミング装!ではシーケンス回路の図形形態に変換して表
示する。
Programming device for the sequence program of the above information code signal! Now, convert it into a graphic form of a sequence circuit and display it.

第8図の二−モニック表現のシーケンスプログラム中に
おけるサブルーチンプログラムの実行命令“CALL 
PlooO”はシーケンス回路図中でもそのまま表示さ
れる。
The execution command “CALL” of the subroutine program in the sequence program of the monic expression shown in FIG.
PlooO” is displayed as is even in the sequence circuit diagram.

オペレータがサブルーチンプログラムを見たい場合は両
面移動等により表示画面を切換えてサブルーチンプログ
ラム位置まで表示プログラムを変更する。このため、前
に表示していたメインプログラムは表示画面から消えて
しまう。たとえばサブルーチンプログラムの中で演算式
を規定し、メインプログラム中で演算式に用いるデータ
をシーケンス命令内の入出力パラメータで規定する場合
、演算式と入出力パラメータの間には相互関連がある。
If the operator wants to view a subroutine program, he switches the display screen by moving both sides, etc., and changes the display program to the subroutine program position. As a result, the previously displayed main program disappears from the display screen. For example, when an arithmetic expression is defined in a subroutine program and data used in the arithmetic expression is defined in a main program by an input/output parameter in a sequence instruction, there is a mutual relationship between the arithmetic expression and the input/output parameter.

したがって、シーケンスプログラムのチエツク等を行う
際にオペレータはメインプログラムとサブルーチンプロ
グラムを交互に複数回表示しなければならないという点
において、従来のプログラマブルコントローラシステム
にはなお、改良の点があった。
Therefore, the conventional programmable controller system still needs improvement in that the operator must alternately display the main program and subroutine program multiple times when checking the sequence program.

そこで、本発明の目的は、上述の点に鑑みて、メインプ
ログラム中に記載されたサブルーチンプログラムの実行
命令があるときには表示画面を切換え操作することなく
メインプログラムとサブルーチンプログラムとの相互関
連をオペレータが知ることの可能なプログラマブルコン
トローラシステムを提供することにある。
SUMMARY OF THE INVENTION In view of the above-mentioned points, an object of the present invention is to enable an operator to understand the mutual relationship between the main program and the subroutine program without switching the display screen when there is an execution command for a subroutine program written in the main program. The purpose of the present invention is to provide a programmable controller system that can be used as a programmable controller.

[課題を解決するための手段1 このような目的を達成するために、本発明は、シーケン
スプログラムの中の部分プログラムの範囲を示し、シー
ケンス演算の対象としない情報コードを予め定め、表示
対象のシーケンスプログラムの中に記載された前記情報
コードを検出するコード検出手段と、当該表示対象のシ
ーケンスプログラムの中の、当該検出された情報コード
の示す範囲の部分プログラムから、シーケンス命令に使
用される入出力パラメータを抽出する情報抽出手段と、
当該抽出された入出力パラメータを所定位置に表示する
表示手段とを具えたことを特徴とする。
[Means for Solving the Problems 1] In order to achieve such an object, the present invention indicates the range of a partial program in a sequence program, predetermines information codes that are not subject to sequence calculations, and specifies information codes to be displayed. A code detection means detects the information code written in the sequence program, and an input used for the sequence instruction is detected from the partial program in the range indicated by the detected information code in the sequence program to be displayed. information extraction means for extracting output parameters;
The present invention is characterized by comprising display means for displaying the extracted input/output parameters at a predetermined position.

【作 用j 本発明では、サブルーチンプログラムまたは関連するメ
インプログラム中の部分プログラムを特定の情報コード
で範囲指定しておく。
[Operation j] In the present invention, a range of a subroutine program or a related partial program in a main program is specified by a specific information code.

シーケンスプログラムを表示するときにこの情報コード
を検出し、情報コードの示す範囲のブロダラムから入出
力パラメータを抽出する。次に、入出力パラメータをサ
ブルーチンプログラムや関連プログラムの位置に表示す
ることでサブルーチンプログラムと関連プログラムの相
互関係をオペレータに知らせる。また、表示内容には命
令部分を含まないので、入出力パラメータの表示面積は
小さい。
This information code is detected when displaying a sequence program, and input/output parameters are extracted from the program range indicated by the information code. Next, the input/output parameters are displayed at the positions of the subroutine programs and related programs to inform the operator of the interrelationship between the subroutine programs and related programs. Furthermore, since the displayed content does not include an instruction portion, the display area for input/output parameters is small.

]実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
Embodiments] Embodiments of the present invention will now be described in detail with reference to the drawings.

第1図は本発明実施例の基本構成を示す。FIG. 1 shows the basic configuration of an embodiment of the present invention.

第1図において、シーケンスプログラムの中の部分プロ
グラムの範囲を示し、シーケンス演算の対象としない情
報コードを予め定めている。
In FIG. 1, the range of a partial program in a sequence program is shown, and information codes that are not subject to sequence calculations are predetermined.

1000は表示対象のシーケンスプログラムの中に記載
された前記情報コードを検出するコード検出手段である
1000 is code detection means for detecting the information code written in the sequence program to be displayed.

1100は当該表示対象のシーケンスプログラムの中の
、当該検出された情報コードの示す範囲の部分プログラ
ムから、シーケンス命令に使用される入出力パラメータ
を抽出する情報抽出手段である。
Reference numeral 1100 denotes information extraction means for extracting input/output parameters used for sequence commands from a partial program in the range indicated by the detected information code in the sequence program to be displayed.

1200は当該抽出された入出力パラメータを所定位置
に表示する表示手段である。
1200 is a display means for displaying the extracted input/output parameters at a predetermined position.

第2図は本発明を適用したプログラマブルコントローラ
システムの主要構成の一例を示す。
FIG. 2 shows an example of the main configuration of a programmable controller system to which the present invention is applied.

第2図において、CPUl0 、システムプログラムメ
モリ20.ユーザプログラムメモリ30.データメモリ
40.システムデータメモリ50および入出力インタフ
ェース(Ilo) 60が共通バスに接続されている。
In FIG. 2, CPU10, system program memory 20. User program memory 30. Data memory 40. A system data memory 50 and an input/output interface (Ilo) 60 are connected to the common bus.

CPUl0はシステムプログラムメモリ20に格納され
た後述のシステムプログラムに従って装置全体の動作制
御を行う他、ユーザプログラムメモリ30に格納された
シーケンスプログラムを実行し、電子機器の自動制御を
行う。
The CPU 10 not only controls the operation of the entire device according to a system program, which will be described later, stored in the system program memory 20, but also executes a sequence program stored in the user program memory 30 to automatically control the electronic equipment.

データメモリ40は制御対象の電子機器との間で授受す
る情報信号を格納する。
The data memory 40 stores information signals exchanged with electronic devices to be controlled.

システムデータメモリ50はCPUl0において用いる
システム関連データの一時記憶に用いる。
The system data memory 50 is used for temporary storage of system-related data used in the CPU10.

l1060はプログラミング装置70とCPUl0の間
で授受する信号を転送する。
11060 transfers signals exchanged between programming device 70 and CPU 10.

システムプログラムメモリ20には次のようなシステム
プログラムが格納されている。
The system program memory 20 stores the following system programs.

(1)シーケンスプログラムを、CPUl0において実
行可能なプログラム言語に翻訳するためのプログラム。
(1) A program for translating a sequence program into a program language executable on CPU10.

(2)プログラミング装置60との間でシーケンスプロ
グラムを授受し、シーケンスプログラムをユーザメモリ
30に読み/書きするためのプログラム。
(2) A program for exchanging sequence programs with the programming device 60 and reading/writing the sequence programs into the user memory 30.

(3)その他、システム関連プログラム。(3) Other system-related programs.

次に、本発明に関わり、シーケンスプログラム中におい
て用いるシステム制御命令について、説明する。
Next, system control commands related to the present invention and used in the sequence program will be explained.

第3図はシーケンスプログラムの中のメインプログラム
の一例を示し、第4図はサブルーチンプログラムの一例
を示す。
FIG. 3 shows an example of a main program in the sequence program, and FIG. 4 shows an example of a subroutine program.

本実施例ではサブルーチンプログラムに関連するメイン
プログラムの範囲を示す情報コードを新たに設け、シー
ケンスプログラムを表示する際には、ユーザプログラム
メモリ30からシーケンスプログラムを読出すときに、
この範囲に記載された入出力パラメータ(シーケンス命
令の中で用いられる入出力データの識別名)をCPUl
0により抽出する。
In this embodiment, an information code indicating the range of the main program related to the subroutine program is newly provided, and when displaying the sequence program, when reading the sequence program from the user program memory 30,
The input/output parameters (identification names of input/output data used in sequence instructions) described in this range are
Extract by 0.

この範囲の先頭部分を示す情報コード(先頭コード)に
本発明は第3図に示すような”CALLUM“を用いこ
の情報コードの後に関連のサブルーチンプログラムの識
別名(またはサブルーチンプログラムの開始ステップ番
号)を付加する。
The present invention uses "CALLUM" as shown in FIG. 3 as the information code (first code) indicating the beginning part of this range, and after this information code, the identification name of the related subroutine program (or the start step number of the subroutine program). Add.

サブルーチン関連プログラムの範囲の末尾部分を示す情
報コード(末尾コード)には”UM END”を用いる
"UM END" is used as the information code (end code) indicating the end of the range of the subroutine related program.

さらに、サブルーチンプログラムの実行命令としてはE
XE”を用いる。
Furthermore, the execution command for the subroutine program is E.
XE" is used.

また、サブルーチンプログラムの先頭部分。Also, the beginning part of a subroutine program.

末尾部分にはそれぞれ第4図に示すように”UMSTA
BT  rサブルーチンプログラムの識別名」”。
As shown in Figure 4, the suffix is ``UMSTA''.
BTr subroutine program identification name.

”UM RET”の情報コードを用いる。Use the information code "UM RET".

このようなフォーマット(書式)で記載したシーケンス
プログラムを演算実行する場合のCPU10の処理手順
を第6図のフローチャートを参照して説明する。
The processing procedure of the CPU 10 when executing a sequence program written in such a format will be explained with reference to the flowchart shown in FIG.

第2図のプログラミング装置70からシステム起動の指
示を入力すると、CPUl0はユーザプログラムメモリ
30の先頭アドレスに読出しアドレスを初期設定してシ
ーケンス命令コードを第1番目から順次に読出す(ステ
ップSlO〜520)。
When an instruction to start the system is input from the programming device 70 in FIG. 2, the CPU 10 initializes the read address to the first address of the user program memory 30 and sequentially reads out the sequence instruction codes starting from the first one (steps SlO to 520). ).

CPUl0は読出したシーケンス命令コードと先頭コー
ド”CALL UM”コードとの一致比較を行って、読
出したシーケンス命令の中のサブルーチン関連プログラ
ムについての先頭コード(”CALL UM”コード)
を検出する(ステップS20〜S40 ) 。
CPUl0 compares the read sequence instruction code and the first code "CALL UM" code, and determines the first code ("CALL UM" code) for the subroutine related program in the read sequence instruction.
is detected (steps S20 to S40).

このときのCPUl0が本発明のコード検出手段として
動作する。
At this time, CPU10 operates as the code detection means of the present invention.

ステップS40の判定処理が否定判定の場合は、従来同
様シーケンス命令コードの機械語への翻訳を行った後、
このシーケンス命令コードの指示する処理を実行する(
ステップS40−550 )。
If the determination process in step S40 is negative, the sequence instruction code is translated into machine language as in the past, and then
Execute the process specified by this sequence instruction code (
Steps S40-550).

このようにして、CPUl0はユーザプログラムメモリ
の中から順にシーケンスプログラム命令コードを読出し
、演算実行する(ステップS40→S50→S60→S
llのループ処理)、第3図に示すような先頭コードを
検出すると、サブルーチンフラグをオンに設定して先頭
コードに含まれるサブルーチンプログラム名をシステム
データメモリ50に一時記憶する。なお、サブルーチン
フラグは読出したシーケンス命令コードが先頭コードと
末尾コードの間に位置していることをフラグのオンで示
す。
In this way, the CPU 10 sequentially reads the sequence program instruction codes from the user program memory and executes the operations (steps S40→S50→S60→S
When the first code as shown in FIG. 3 is detected, the subroutine flag is set on and the subroutine program name included in the first code is temporarily stored in the system data memory 50. Note that turning on the subroutine flag indicates that the read sequence instruction code is located between the first code and the last code.

読出した先頭コードに対しては翻訳処理を行わず、続い
て次のシーケンス命令コードを読出す(ステップS40
→5100→5IIO→S60−320 )。
Translation processing is not performed on the read first code, and the next sequence instruction code is subsequently read (step S40).
→5100→5IIO→S60-320).

サブルーチンフラグがオンとなっているので、以後読出
される通常のシーケンス命令コードに対する識別処理手
順はステップS30−5200−3300→5320の
経路を進む。
Since the subroutine flag is on, the identification processing procedure for the normal sequence instruction code that will be read thereafter follows the path of steps S30-5200-3300→5320.

ステップ5320において、シーケンス命令コードの中
の入出力パラメータがCPUl0によりシステムデータ
メモリ50に一時格納される。このときのcpuioが
本発明の情報抽出手段として動作する。
In step 5320, the input/output parameters in the sequence instruction code are temporarily stored in the system data memory 50 by CPU10. The cpuio at this time operates as the information extraction means of the present invention.

この後、読出しのシーケンス命令コードはステップS5
0のシーケンス命令実行処理に引き渡される。
After this, the read sequence instruction code is set at step S5.
It is handed over to sequence instruction execution processing of 0.

また、読出しのシーケンス命令コードがサブルーチンフ
ラグラムの実行命令コード”EXE”であることが検出
された場合、シーケンスデータメモリ50に一時記憶し
であるサブルーチンプログラム名を読出しこの名前のサ
ブルーチンプログラムを実行する(ステップ5200→
5210)。
Further, if it is detected that the read sequence command code is the subroutine flag execution command code "EXE", the subroutine program name temporarily stored in the sequence data memory 50 is read out and the subroutine program with this name is executed. (Step 5200→
5210).

読出しのシーケンス命令コードが末尾コード”IM E
ND“であることが検出された場合は、サブルーチンフ
ラグをオフして、サブルーチン関連プログラムからの入
出力パラメータの抽出処理を終了する。
The read sequence instruction code is the last code “IM E”.
ND", the subroutine flag is turned off and the process of extracting input/output parameters from the subroutine-related program ends.

以下、上述の手順を繰り返し実行して、シーケンスプロ
グラムの最終コードを検出したときに起動時における最
初のシーケンスプログラムの実行を終了する。
Thereafter, the above-described procedure is repeatedly executed, and when the final code of the sequence program is detected, the execution of the first sequence program at startup is ended.

オペレータからシーケンスプログラムの表示をプログラ
ミング装置70から指示入力したときに、CPUl0は
ユーザプログラミング装置に転送する。
When an operator inputs an instruction to display a sequence program from the programming device 70, the CPU 10 transfers the sequence program to the user programming device.

このときに抽出した入出力パラメータをシーケンスプロ
グラムのサブルーチンプログラムに関連する所定位置に
挿入することで、プログラミング装置側の表示器(本発
明の表示手段)ではこの入出力パラメータを表示するこ
とにより、サブルーチンプログラムと前後のメインプロ
グラムの相互関連をオペレータに報らせる。
By inserting the input/output parameters extracted at this time into a predetermined position related to the subroutine program of the sequence program, the input/output parameters can be displayed on the display on the programming device side (display means of the present invention), thereby allowing the subroutine To inform an operator of the mutual relationship between a program and the main programs before and after it.

本実施例においてサブルーチン関連プログラムのシーケ
ンス命令から入出力パラメータを抽出する処理には従来
から周知の手順を用いればよいが、代表的な処理を簡単
に説明しておく。
In this embodiment, a conventionally well-known procedure may be used to extract input/output parameters from sequence instructions of a subroutine-related program, but a typical process will be briefly explained.

シーケンス命令に限らず、プログラム命令は、指示動作
内容を表わす情報コード(オペランド)と指示動作に関
連する各種データ(パラメータ)を表わす情報コードか
ら構成される。これら情報コードは予め定められたコー
ド体系および記載順序(フォーマット)に従ってプログ
ラム中に記載されるので、本実施例ではCPUl0によ
り読出しのシーケンス命令のコードと各種規定のコード
との一致比較によりシーケンス命令のコード内容の識別
を行う。また、記載順序に基づき、メモリ(またはCP
U内のレジスタ)に格納されたプログラム命令コードの
中の(入出力)パラメータ情報をCPUl0により読出
すことでパラメータ情報を抽出する。
A program instruction, not limited to a sequence instruction, is composed of an information code (operand) representing the contents of an instruction operation and an information code representing various data (parameters) related to the instruction operation. These information codes are written in the program according to a predetermined code system and writing order (format), so in this embodiment, the CPU 10 compares the code of the read sequence instruction with various prescribed codes to read the sequence instruction. Identifies code content. Also, based on the order of description, memory (or CP)
The parameter information is extracted by reading (input/output) parameter information in the program instruction code stored in the register (in U) by the CPU10.

この相互関連を報らせるための入出力パラメータの表示
形態には次の各種の例を挙げることができる。
The following various examples can be given as display formats of input/output parameters for reporting this correlation.

(1)サブルーチンプログラムの表示に関連してメイン
プログラム側の人8カパラメータを自動表示する。
(1) Automatically display eight parameters on the main program side in connection with the display of the subroutine program.

(2)入出力パラメータはサブルーチンプログラム内で
も用いられているのでメインプログラムのサブルーチン
実行命令についての図形表示に付加して入出力パラメー
タを自動表示する(第5図参照)。
(2) Since the input/output parameters are also used within the subroutine program, the input/output parameters are automatically displayed in addition to the graphical display of the subroutine execution command of the main program (see FIG. 5).

(3)オペレータから入出力パラメータの表示の指示が
あったときにプログラミング装置70においてオペレー
タの指示する表示画面位置に表示を行う。
(3) When an operator instructs input/output parameters to be displayed, the programming device 70 displays the input/output parameters at the display screen position specified by the operator.

また、本実施例を次のように変更して本発明を実施する
ことができる。
Further, the present invention can be practiced by modifying this embodiment as follows.

(1)本実施例ではメインプログラム中の先頭コードと
末尾コードの間に挟まれたシーケンス命令の中に含まれ
る入出力パラメータを抽出し、表示するようにしている
が、サブルーチンプログラム内のシーケンス命令につい
ての入出力パラメータを抽出しメインプログラムの中で
表示するようにしてもよい。この場合は第6図の手順に
おいてメインプログラム中の先頭/末尾コードをサブル
ーチンプログラム中の先頭/末尾コードと読み換える。
(1) In this embodiment, the input/output parameters included in the sequence instructions sandwiched between the first code and the last code in the main program are extracted and displayed, but the sequence instructions in the subroutine program The input/output parameters may be extracted and displayed in the main program. In this case, in the procedure shown in FIG. 6, the start/end codes in the main program are read as the start/end codes in the subroutine program.

(2)本実施例ではプログラマブルコントローラにおい
てシーケンスプログラムを実行する第1回目に入出力パ
ラメータを抽出するようにしているが、抽出タイミング
は他に、プロゲラミンク装置70から実行対象のシーケ
ンスプログラムを受信したとき、プログラミング装置7
0へ表示対象のシーケンスプログラムを送信するときに
入出力パラメータの抽出処理を行うことができる。
(2) In this embodiment, the input/output parameters are extracted the first time the programmable controller executes the sequence program, but the extraction timing is also determined when the sequence program to be executed is received from the progeramink device 70. , programming device 7
When transmitting the sequence program to be displayed to 0, input/output parameter extraction processing can be performed.

またプログラミング装置70側においても作成またはプ
ログラマブルコントローラから受信のシーケンスプログ
ラムをメモリに記憶するので、プログラミング装置内の
CPUによりシーケンスプログラムを表示する際に入出
力パラメータの抽出処理を行ってもよい、参考のために
このCPUの処理手順を第7図に示す。
In addition, since the sequence program created or received from the programmable controller is stored in the memory on the programming device 70 side, input/output parameter extraction processing may be performed when displaying the sequence program by the CPU in the programming device. For this purpose, the processing procedure of this CPU is shown in FIG.

(3)本実施例では入出力パラメータの抽出対象をサブ
ルーチン関連プログラムとしているが、サブルーチン関
連プログラムに限らず、特定のシステム動作を指示する
ための複数のプログラム命令群をシステムメモリの中に
記憶し、CPUl0に対して上記複数のプログラム命令
の実行を指示するプログラム命令(一般にマクロ命令と
呼ばれる)にも本発明を適用することが可能である。
(3) In this embodiment, input/output parameters are extracted from subroutine-related programs, but the system memory is not limited to subroutine-related programs, and multiple program command groups for instructing specific system operations can be stored in the system memory. The present invention can also be applied to program instructions (generally called macro instructions) that instruct the CPU 10 to execute the plurality of program instructions.

[発明の効果1 以上、説明したように、本発明によれば、サブルーチン
プログラムの実行命令に対する表示に際し、サブルーチ
ンプログラムの内容を示す入出力パラメータをサブルー
チンプログラムの実行命令表示付近に表示することがで
きる。このため、オペレータはメインプログラムの関連
プログラムとサブルーチンプログラムの相互関連を容易
に知ることができる。また、入出力パラメータの表示は
表示面積が小さいので、メインプログラムと共に1画面
中に表示することができ、従来のように表示画面を切換
える必要もない。
[Advantageous Effects of the Invention 1] As explained above, according to the present invention, when displaying an execution command of a subroutine program, input/output parameters indicating the contents of the subroutine program can be displayed near the display of the execution command of the subroutine program. . Therefore, the operator can easily know the mutual relationship between the related programs of the main program and the subroutine programs. Furthermore, since the display area of the input/output parameters is small, they can be displayed together with the main program on one screen, and there is no need to switch the display screen as in the conventional case.

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

第1図は本発明実施例の基本構成を示すブロック図、 第2図は本発明実施例の具体的な回路構成例を示すブロ
ック図、 第3図は本発明実施例のシーケンスプログラムの一例を
示す説明図、 第4図は本発明実施例のサブルーチンプログラムの一例
を示す説明図、 第5図は本発明実施例の表示例を示す説明図、 第6図は本発明実施例の入出力パラメータの抽出処理手
順を示すフローチャート、 第7図は本発明実施例の入出力パラメータの第2抽出処
理手順を示すフローチャート、第8図は従来例のシーケ
ンスプログラムとその表示内容の対応関係を示す説明図
である。 10・・・cpu 。 20・・・システムプログラムメモリ、30・・・ユー
ザプログラムメモリ、 50・・・システムデータメモリ、 70・・・プログラミング装置。 本4e1M亥施例の回路構成を水1ブロック囚第2図 CAu  UMlooO−4r7’lレ−’rン聞遂7
°ログラム/)ttlり−)’WDJ   WMQ08
010−人fJ’)−ト′ コ?”−Jt4’)−)’
MOV   WMI、D8020−区b’)−)′フe
’−1ft4rり−)”EXE□マクロ争卒(サブルー
千′7アロフ゛ラム実イ1命命)MOV   D802
0.WMI−!Aカフー)’フe’−Jtj+り−)U
M   END□τブルー千シ閣遂プロフ′ラム終コク
−1゛本梵−Pl亥洸例のシーケンスプログラムr> 
−fl’1iijttj目園第3図 UM  5TART   1000  −q7o先ji
p−ド第4図 本り月裏嘉ン、イ列の表水g1/T:、17卓見ν月図
第5図
FIG. 1 is a block diagram showing the basic configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing a specific circuit configuration example of the embodiment of the present invention, and FIG. 3 is an example of a sequence program of the embodiment of the present invention. FIG. 4 is an explanatory diagram showing an example of a subroutine program according to the embodiment of the present invention. FIG. 5 is an explanatory diagram showing an example of a display according to the embodiment of the present invention. FIG. FIG. 7 is a flowchart showing the second extraction processing procedure of input/output parameters according to the embodiment of the present invention, and FIG. 8 is an explanatory diagram showing the correspondence between the conventional sequence program and its display contents. It is. 10...cpu. 20... System program memory, 30... User program memory, 50... System data memory, 70... Programming device. The circuit configuration of this 4e1M example is shown in Figure 2.
°Program/)ttl-)'WDJ WMQ08
010-personfJ')-to' ko? "-Jt4')-)'
MOV WMI, D8020-ku b')-)'F e
'-1ft4rri-)'EXE□Macro Contest (Sub Blue 1'7 Alofuram Real 1 Life) MOV D802
0. WMI-! A Kafu)'F e'-Jtj+Ri-)U
M END
-fl'1iijttj Eye Garden Figure 3 UM 5TART 1000 -q7o destination ji
P-Do Figure 4 Book Moon Ura-Kan, A column surface water g1/T:, 17 table ν Moon Figure Figure 5

Claims (1)

【特許請求の範囲】 1)シーケンスプログラムの中の部分プログラムの範囲
を示し、シーケンス演算の対象としない情報コードを予
め定め、表示対象のシーケンスプログラムの中に記載さ
れた前記情報コードを検出するコード検出手段と、 当該表示対象のシーケンスプログラムの中の、当該検出
された情報コードの示す範囲の部分プログラムから、シ
ーケンス命令に使用される入出力パラメータを抽出する
情報抽出手段と、 当該抽出された入出力パラメータを所定位置に表示する
表示手段と を具えたことを特徴とするプログラマブルコントローラ
システム。
[Claims] 1) A code that indicates the range of a partial program in a sequence program, predetermines information codes that are not subject to sequence calculations, and detects the information codes written in the sequence program to be displayed. a detecting means; an information extracting means for extracting an input/output parameter used in a sequence instruction from a partial program in a range indicated by the detected information code in the sequence program to be displayed; A programmable controller system comprising display means for displaying output parameters at a predetermined position.
JP2302666A 1990-11-09 1990-11-09 Programmable controller system Pending JPH04175902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2302666A JPH04175902A (en) 1990-11-09 1990-11-09 Programmable controller system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2302666A JPH04175902A (en) 1990-11-09 1990-11-09 Programmable controller system

Publications (1)

Publication Number Publication Date
JPH04175902A true JPH04175902A (en) 1992-06-23

Family

ID=17911728

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2302666A Pending JPH04175902A (en) 1990-11-09 1990-11-09 Programmable controller system

Country Status (1)

Country Link
JP (1) JPH04175902A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031462A (en) * 2004-07-16 2006-02-02 Mitsubishi Electric Corp Program change method, programmable controller, and program editing apparatus.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031462A (en) * 2004-07-16 2006-02-02 Mitsubishi Electric Corp Program change method, programmable controller, and program editing apparatus.

Similar Documents

Publication Publication Date Title
JPH02123468A (en) Plotting of computer-aided plotting system
KR950012071B1 (en) Information processing system
US7721255B2 (en) Sequence program editing apparatus
CN109542569B (en) Method, device, terminal and storage medium for setting display language
JPH04175902A (en) Programmable controller system
JPS627592B2 (en)
JP3356530B2 (en) Data creation support device for display control device
JP4735549B2 (en) Electronic device and electronic device control program
JP5581168B2 (en) Display device
JP3163627B2 (en) Display device for OHP projector with editing function
JPS6149209A (en) Program execution system of numerical controller
JPH0519817A (en) System for editing sequence program
JPH0640296B2 (en) Character processor
JPH01191269A (en) Image controller
JPH0566934A (en) Programming device for programmable controller
JPH0334098B2 (en)
JPS6338732B2 (en)
JPS6236253B2 (en)
JPH0552961B2 (en)
JP2727717B2 (en) Programmable controller system
JP2914538B2 (en) Programmable controller
JPH04271404A (en) Programming device for programmable controller
JPH01211169A (en) Japanese information processor
JPS5927303A (en) Program correcting device
JPH05113817A (en) Numerical controller