JP2900065B2 - Programming device for programmable controller - Google Patents

Programming device for programmable controller

Info

Publication number
JP2900065B2
JP2900065B2 JP13026390A JP13026390A JP2900065B2 JP 2900065 B2 JP2900065 B2 JP 2900065B2 JP 13026390 A JP13026390 A JP 13026390A JP 13026390 A JP13026390 A JP 13026390A JP 2900065 B2 JP2900065 B2 JP 2900065B2
Authority
JP
Japan
Prior art keywords
page
program
instruction
sequence program
programmable controller
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.)
Expired - Fee Related
Application number
JP13026390A
Other languages
Japanese (ja)
Other versions
JPH0425902A (en
Inventor
俊夫 新居
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 JP13026390A priority Critical patent/JP2900065B2/en
Publication of JPH0425902A publication Critical patent/JPH0425902A/en
Application granted granted Critical
Publication of JP2900065B2 publication Critical patent/JP2900065B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、プログラマブルコントローラの実行するシ
ーケンスプログラムを作成入力するプログラマブルコン
トローラのプログラミング装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller programming device that creates and inputs a sequence program to be executed by a programmable controller.

[従来の技術] 従来、電子機器を自動制御するためにプログラマブル
コントローラの実行するシーケンスプログラムはプログ
ラミング装置において、ユーザにより作成入力される。
[Related Art] Conventionally, a sequence program executed by a programmable controller to automatically control an electronic device is created and input by a user in a programming device.

作成されたシーケンスプログラムはプログラマブルコ
ントローラへ転送され、内部のプログラムメモリに格納
された後、システムの起動に応じて順次にプログラムメ
モリからシーケンスプログラムが読出され実行される。
The created sequence program is transferred to the programmable controller and stored in an internal program memory. Then, the sequence program is sequentially read from the program memory and executed according to the activation of the system.

また、プログラミング装置は上記プログラムメモリに
格納されたシーケンスプログラムからの修正も可能であ
る。この場合は、上記プログラムメモリのシーケンスプ
ログラムをプログラミング装置へ再転送した後、プログ
ラム命令の修正,挿入,削除,置換等の修正,編集処理
をユーザの指示により行う。
The programming device can also modify the sequence program stored in the program memory. In this case, after the sequence program in the program memory is re-transferred to the programming device, correction, editing such as correction, insertion, deletion, and replacement of the program instruction, and editing processing are performed by a user's instruction.

シーケンスプログラムの作成労力を軽減するために、
シーケンスプログラムはページ分割され、ページ単位で
表示される。またこのページに対する自動および手動に
よる番号付けや指定したページのシーケンスプログラム
の表示も従来装置では可能である。
To reduce the effort of creating sequence programs,
The sequence program is divided into pages and displayed in page units. The conventional apparatus can also automatically and manually number the pages and display the sequence program of the designated page.

[発明が解決しようとする課題] しかしながら、従来装置では特に作成済のシーケンス
プログラムに、新しいページを挿入すると、その都度シ
ーケンスプログラムの自動番号付けを行わなければなら
ないという不具合があった。
[Problems to be Solved by the Invention] However, the conventional device has a problem that the sequence program must be automatically numbered every time a new page is inserted into the already created sequence program.

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

プログラムメモリのシーケンスプログラムに対してペ
ージ位置の変更を行って、第5図に示すようなページ番
号変更前の順序にシーケンスプログラムのページが並べ
換えられたものとする。次に、プログラミング装置に対
してユーザーにより自動番号付けが指示されると、プロ
グラミング装置ではシーケンスプログラムのページの終
了を示すプログラム命令をプログラムメモリの先頭アド
レスから検索すると共に、このプログラム命令を検出す
る毎に検出個数を計数する。
It is assumed that the page position of the sequence program in the program memory is changed, and the pages of the sequence program are rearranged in the order before the page number change as shown in FIG. Next, when automatic numbering is instructed by the user to the programming device, the programming device searches for a program instruction indicating the end of the page of the sequence program from the top address of the program memory, and every time this program instruction is detected. The number of detections is counted.

この計数結果をそれぞれページ番号に割当てることに
より自動番号付けを行う。
Automatic numbering is performed by assigning the counting results to page numbers.

このため、新たに割当てられたページ番号は第5図に
示すように“1",“2",“3"というように昇順かつ連続の
整数順となる。
Therefore, the newly assigned page numbers are in ascending and consecutive integer order such as "1", "2", and "3" as shown in FIG.

このように番号付けを行った後に新しいページプログ
ラムを、例えば2ページと3ページの間に挿入した場
合、そのページをページ無しとするか、新たにもう1度
自動番号付けを行わなければならない。ページの自動番
号付けは全てのシーケンスプログラムに対して行うため
に、その処理に時間がかかるので、結果として、シーケ
ンスプログラムの修正処理に時間がかかってしまってい
た。
If a new page program is inserted after page numbering, for example, between pages 2 and 3, that page must be either empty or a new automatic numbering process must be performed. Since the automatic page numbering is performed for all the sequence programs, the processing takes a long time, and as a result, the correction processing of the sequence program takes a long time.

そこで、本発明の目的は、上述の点に鑑みて、番号付
け終了後のページ挿入を考慮して、そのページの番号付
けが容易な自動番号付け機能を有するプログラマブルコ
ントローラのプログラミング装置を提供することにあ
る。
In view of the above, an object of the present invention is to provide a programming device for a programmable controller having an automatic numbering function that facilitates numbering of pages in consideration of page insertion after completion of numbering. It is in.

[課題を解決するための手段] このような目的を達成するために、本発明は、プログ
ラマブルコントローラの実行するシーケンスプログラム
を回路の形態で作成し、当該作成のシーケンスプログラ
ムに対してページ毎にページ番号を付加することの可能
なプログラマブルコントローラのプログラミング装置に
おいて、前記シーケンスプログラムの先頭ページに割当
てるページ番号を指示入力する第1指示入力手段と、ペ
ージ番号の間隔を指示入力する第2指示入力手段と、前
記第1指示入力手段により指示されたページ番号および
前記第2指示入力手段により指示された間隔を用いて付
加すべきページ番号を予め定めた演算式により算出する
演算手段とを具えたことを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention creates a sequence program to be executed by a programmable controller in the form of a circuit, and generates a page-by-page In a programming device for a programmable controller to which a number can be added, first instruction input means for instructing and inputting a page number to be allocated to the first page of the sequence program, and second instruction input means for instructing and inputting an interval between page numbers. Calculating means for calculating a page number to be added using a page number designated by the first instruction input means and a space designated by the second instruction input means by a predetermined arithmetic expression. Features.

[作用] 本発明は、番号を付けるページ番号に一定数値間隔を
設けることにより自動番号付け後の挿入ページの番号付
けを可能とする。また、自動の番号付けにおけるページ
間隔は可変設定可能であるので、ページの挿入回数が制
限されることはない。
[Operation] The present invention makes it possible to number inserted pages after automatic numbering by providing a fixed numerical interval in the page numbers to be numbered. Also, since the page interval in automatic numbering can be set variably, the number of page insertions is not limited.

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

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

本実施例にプログラミング装置は、プログラマブルコ
ントローラの実行するシーケンスプログラムを作成し、
当該作成のシーケンスプログラムに対してページ毎にペ
ージ番号を付加することの可能なプログラマブルコント
ローラのプログラミング装置である。
In this embodiment, the programming device creates a sequence program to be executed by the programmable controller,
This is a programmable controller programming device capable of adding a page number for each page to the created sequence program.

第1図において、 第1指示手段100はシーケンスプログラムの先頭に割
当てるページ番号を指示入力する。
In FIG. 1, a first instruction means 100 instructs and inputs a page number to be assigned to the head of a sequence program.

第2指示手段200はページ番号の間隔を指示入力す
る。演算手段300は上記第1指示手段により指示された
ページ番号および上記第2指示手段により指示された間
隔を用いて付加すべきページ番号を予め定めた演算式に
より算出する。
The second instructing means 200 instructs and inputs a page number interval. The calculating means 300 calculates a page number to be added using a page number specified by the first specifying means and an interval specified by the second specifying means by a predetermined calculating formula.

第2図は本発明実施例におけるプログラミング装置の
一構成例を示す。
FIG. 2 shows an example of the configuration of the programming device according to the embodiment of the present invention.

第1図において、中央演算処理装置(CPU)10,リード
オンリメモリ(ROM)20,キーボード入力装置30,入出力
インタフェース(I/O)40,表示装置50,ユーザプログラ
ム用ランダムアクセスメモリ(RAM)60等がバスに共通
接続されている。
In FIG. 1, a central processing unit (CPU) 10, a read only memory (ROM) 20, a keyboard input device 30, an input / output interface (I / O) 40, a display device 50, a random access memory (RAM) for a user program. 60 etc. are commonly connected to the bus.

CPU10はROM20に格納されたシステムプログラムに基づ
き、シーケンスプログラムの作成,修正処理およびプロ
グラミング装置とプログラマブルコントローラとの間の
シーケンスプログラムの転送処理を実行する。
Based on the system program stored in the ROM 20, the CPU 10 executes a sequence program creation and correction process and a sequence program transfer process between the programming device and the programmable controller.

ROM20には上記処理を実行するためのプログラムの
他、ページ番号付けのための第3図に示す制御プログラ
ムが格納されている。
The ROM 20 stores a control program shown in FIG. 3 for page numbering, in addition to a program for executing the above processing.

キーボード入力装置は30は作成対象のシーケンスプロ
グラムを構成するプログラム情報やCPU10に対する動作
指示を入力する。
The keyboard input device 30 inputs program information constituting a sequence program to be created and operation instructions to the CPU 10.

I/O40はプログラマブルコントローラ(不図示)とCPU
10との間にあって情報転送を行う。
I / O40 is a programmable controller (not shown) and CPU
10 and transfer information.

表示装置50は作成,修正対象のシーケンスプログラム
をページ単位で表示する。
The display device 50 displays the sequence program to be created and modified in page units.

ユーザプログラム用RAM60は作成,修正用のシーケン
スプログラムを展開記憶する。
The user program RAM 60 expands and stores a sequence program for creation and correction.

このような回路によるシーケンスプログラムの番号付
け処理を第3図のフローチャートを参照して説明する。
なお、ユーザプログラムメモリ60には第4図に示すよう
にページ順の並び換えが行われたシーケンスプログラム
が格納されているものとする。
The sequence program numbering process by such a circuit will be described with reference to the flowchart of FIG.
It is assumed that the user program memory 60 stores a sequence program that has been rearranged in page order as shown in FIG.

ユーザがページの自動番号付けの指示,先頭番号A,ペ
ージ番号間隔Bをキーボード入力装置30から指示する
と、CPU10は第3図の制御手順を開始する。このときキ
ーボード入力装置30が第1指示手段,第2指示手段とし
て動作する。
When the user instructs automatic page numbering, the start number A, and the page number interval B from the keyboard input device 30, the CPU 10 starts the control procedure shown in FIG. At this time, the keyboard input device 30 operates as the first instruction means and the second instruction means.

CPU10はまず入力の先頭ページ番号A、たとえば、数
値“10"をCPU10内の内部メモリに変数名PAGEと名付けて
記憶する。ページ間隔B、たとえば、数値“10"は変数
名PNXTと名付けられて上記内部メモリに記憶される(第
3図のステップS10→S20)。
The CPU 10 first stores the input first page number A, for example, the numerical value “10” in the internal memory of the CPU 10 with the variable name PAGE. The page interval B, for example, the numerical value "10" is named variable name PNXT and stored in the internal memory (step S10 → S20 in FIG. 3).

続いて、ユーザ用プログラム用RAM60の読出しステッ
プ(アドレス)を先頭位置に初期設定した後、そのステ
ップ(ステップ番号“0")のプログラム命令を読出す
(第3図のステップS30)。
Subsequently, after initially setting the read step (address) of the user program RAM 60 to the head position, the program instruction of that step (step number "0") is read (step S30 in FIG. 3).

CPU10は読出しのプログラム命令がページの終了を示
す命令(ページ命令と称す)であるか否かを判定するこ
とによりページ命令の検出を行う。読出しのプログラム
命令がページ命令ではないときは、現在のステップ番号
iを“0"から“1"に更新し、次のステップ番号のプログ
ラム命令をユーザプログラム用RAM60から読出す(第3
図のステップS40→S70)。
The CPU 10 detects a page command by determining whether the read program command is a command indicating the end of a page (referred to as a page command). If the read program instruction is not a page instruction, the current step number i is updated from “0” to “1”, and the program instruction of the next step number is read from the user program RAM 60 (third step).
Steps S40 → S70 in the figure).

以下、上述の手順を繰り返して、ユーザプログラム中
のページ命令を検索抽出する(ステップS40→S70→S80
→S40のループ処理)。
Hereinafter, the above procedure is repeated to search and extract a page instruction in the user program (steps S40 → S70 → S80).
→ S40 loop processing).

読出しのプログラム命令がページ命令であることが第
3図のステップS40で検出されると、ページプログラム
の初期番号として内部メモリに格納されている変数PAGE
の値、すなわち数値“10"をページ番号としてページ命
令の中にセット(付加)する(第3図のステップS5
0)。
When it is detected in step S40 in FIG. 3 that the read program instruction is a page instruction, the variable PAGE stored in the internal memory as the initial number of the page program
Is set (added) as a page number in the page instruction (step S5 in FIG. 3).
0).

付加するページ番号Pは P=A+B(N−1) の関係を持つ。なお、Aは初期番号,Bは間隔,Nはページ
順番。この式によりページ番号Pを算出してもよいので
あるが、この式を直接的に用いるとA,B,Nの3つの値を
格納するメモリ領域が必要となる。このため、本実施例
ではページ命令を検出する毎に初期番号Aに間隔Bを累
積加算する(第3図のステップS60)。このようにする
と、次回のプログラム命令のプログラム番号PAGEとして
現在のPAGE(“10")+間隔(“10")=20が得られる。
また、メモリ領域は変数PAGE,間隔PNXTの2つのみでよ
いことになる。
The page number P to be added has a relationship of P = A + B (N-1). A is an initial number, B is an interval, and N is a page order. Although the page number P may be calculated by this formula, if this formula is used directly, a memory area for storing three values of A, B and N is required. Therefore, in this embodiment, every time a page command is detected, the interval B is cumulatively added to the initial number A (step S60 in FIG. 3). In this way, the current PAGE (“10”) + interval (“10”) = 20 is obtained as the program number PAGE of the next program instruction.
Also, only two memory areas, the variable PAGE and the interval PNXT, are required.

ページ命令を検出する毎にこのような処理をCPU10に
より施すことにより第1番目のページ命令から順にペー
ジ番号として“10",“20",“30",…が付加され、ユーザ
プログラム用RAM60にページ番号の付加されたページ命
令が再格納される。(第4図参照)。シーケンスプログ
ラムの終了命令が検出されると、CPU10は本制御手順の
実行を終了する。
By performing such processing by the CPU 10 every time a page instruction is detected, “10”, “20”, “30”,... Are added as page numbers sequentially from the first page instruction. The page command with the page number added is restored. (See FIG. 4). When detecting the end instruction of the sequence program, the CPU 10 ends the execution of this control procedure.

このようにページ番号を付加されたシーケンスプログ
ラムはページ毎にCPU10に読出され、表示装置50にペー
ジ単位で表示される。
The sequence program to which the page number is added in this manner is read by the CPU 10 for each page, and is displayed on the display device 50 in page units.

このように番号付けされたシーケンスプログラムに対
してユーザが編集処理により、たとえば、“10"ページ
と“20"ページの間にページプログラムを挿入した場
合、ユーザは挿入のページプログラムの最後に位置する
ようにページ番号“11"のページ命令をキーボード入力
装置30により指示入力すればよく、従来のように再び自
動番号付けの処理を行う必要がない。
When the user inserts a page program between the “10” page and the “20” page by the editing process for the sequence program numbered in this way, the user is positioned at the end of the inserted page program. Thus, the page command of the page number "11" may be input by the keyboard input device 30, and there is no need to perform the automatic numbering process again as in the related art.

また、挿入のページ番号は下位桁に端数を持つのでプ
ログラム修正後、ユーザがそのページプログラムを見た
とき、挿入プログラムであることが認識できるという利
点もある。
Also, since the insertion page number has a fraction in the lower digit, there is also an advantage that the user can recognize the insertion program when viewing the page program after correcting the program.

本実施例の他に次の例が挙げられる。 The following examples are given in addition to this embodiment.

(1)本実施例におけるページの番号付けはシーケンス
プログラムの先頭位置から行うようにしているが、シー
ケンスプログラムの途中から行うこともできる。この場
合、変更したいプログラムページを表示画面に表示させ
ることにより、その表示プログラムのユーザプログラム
用RAM60の格納位置を検出し、ユーザはその位置からの
自動番号付けの指示を行う。またCPU10は検出の格納位
置をプログラムの先頭位置とみなして第3図の制御手順
を実行することになる。
(1) In this embodiment, the page numbering is performed from the head position of the sequence program, but may be performed in the middle of the sequence program. In this case, by displaying the program page to be changed on the display screen, the storage position of the display program in the user program RAM 60 is detected, and the user issues an instruction for automatic numbering from that position. The CPU 10 executes the control procedure shown in FIG. 3 by regarding the storage position of the detection as the head position of the program.

(2)本実施例ではページ間隔を数値の形態で入力する
ようにしているが、予め、複数種のページ間隔を用意
し、ユーザにより選択指定するようにしてもよい。
(2) In the present embodiment, the page interval is input in the form of a numerical value. However, a plurality of types of page intervals may be prepared in advance and selected and designated by the user.

[発明の効果] 以上、説明したように、本発明によれば、自動のペー
ジ番号付けにおいて、シーケンスプログラムの各ページ
に付加するページの番号の間隔を可変設定できるので、
番号付けを行った後でページプログラムを挿入しても、
挿入ページの番号付けが可能であり、また、そのページ
番号が一定間隔を持たないことから、挿入ページである
ことも確認することができる。
[Effects of the Invention] As described above, according to the present invention, in the automatic page numbering, the interval between page numbers added to each page of the sequence program can be variably set.
If you insert a page program after numbering,
It is possible to number the inserted page, and since the page numbers do not have a fixed interval, it can be confirmed that the page is an inserted page.

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

第1図は本発明実施例の基本構成を示すブロック図、 第2図は本発明実施例の回路構成を示すブロック図、 第3図は第2図のCPUが実行する制御手順を示すフロー
チャート、 第4図は本発明実施例のページの番号付けの態様を示す
説明図、 第5図は従来例のページの番号付けの態様を示す説明図
である。 10……CPU、20……ROM、30……キーボード入力装置、40
……I/O、50……表示装置、60……ユーザプログラム用R
AM。
FIG. 1 is a block diagram showing a basic configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing a circuit configuration of the embodiment of the present invention, FIG. 3 is a flowchart showing a control procedure executed by the CPU of FIG. FIG. 4 is an explanatory diagram showing a page numbering mode according to the embodiment of the present invention, and FIG. 5 is an explanatory diagram showing a page numbering mode in a conventional example. 10 ... CPU, 20 ... ROM, 30 ... Keyboard input device, 40
…… I / O, 50 …… Display device, 60 …… R for user program
AM.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラマブルコントローラの実行するシ
ーケンスプログラムを回路の形態で作成し、当該作成の
シーケンスプログラムに対してページ毎にページ番号を
付加することの可能なプログラマブルコントローラのプ
ログラミング装置において、 前記シーケンスプログラムの先頭ページに割当てるペー
ジ番号を指示入力する第1指示入力手段と、 ページ番号の間隔を指示入力する第2指示入力手段と、 前記第1指示入力手段により指示されたページ番号およ
び前記第2指示入力手段により指示された間隔を用いて
付加すべきページ番号を予め定めた演算式により算出す
る演算手段と を具えたことを特徴とするプログラマブルコントローラ
のプログラミング装置。
1. A programmable controller programming device capable of creating a sequence program to be executed by a programmable controller in the form of a circuit and adding a page number for each page to the created sequence program. First instruction input means for instructing and inputting a page number to be allocated to the first page of the document, second instruction input means for instructing and inputting a page number interval, a page number instructed by the first instruction input means, and the second instruction A programming means for calculating a page number to be added using an interval specified by the input means by a predetermined arithmetic expression.
JP13026390A 1990-05-22 1990-05-22 Programming device for programmable controller Expired - Fee Related JP2900065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13026390A JP2900065B2 (en) 1990-05-22 1990-05-22 Programming device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13026390A JP2900065B2 (en) 1990-05-22 1990-05-22 Programming device for programmable controller

Publications (2)

Publication Number Publication Date
JPH0425902A JPH0425902A (en) 1992-01-29
JP2900065B2 true JP2900065B2 (en) 1999-06-02

Family

ID=15030094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13026390A Expired - Fee Related JP2900065B2 (en) 1990-05-22 1990-05-22 Programming device for programmable controller

Country Status (1)

Country Link
JP (1) JP2900065B2 (en)

Also Published As

Publication number Publication date
JPH0425902A (en) 1992-01-29

Similar Documents

Publication Publication Date Title
US5793947A (en) Programmable controller for synchronously tracing the execution of operation blocks and SFC program execution method using the programmable controller
JPH0727349B2 (en) Multi-window display control method
JP2900065B2 (en) Programming device for programmable controller
JPS63172330A (en) Halftone application system for document processor
JPS58163036A (en) Automatic numbering device
JP2762665B2 (en) Blog programming device for programmable controller
JP2706558B2 (en) Ladder program editing method
JP2842511B2 (en) Form creation device
JP2522840B2 (en) Programmable controller programming device
JPH0836569A (en) File edition processor
JP2985324B2 (en) Table support device
JPH0721802B2 (en) Formula editing device
JPH0750480B2 (en) Text data editing device
JPH0476740A (en) Error information display system
JP2546828B2 (en) Information processing device
JP2831717B2 (en) Data path display device
JP2660603B2 (en) Control program parameter setting method
JPH063468Y2 (en) Small electronic calculator
JPH03265004A (en) Processing executing system based on set parameter
KR930013912A (en) Program search method of PLC programming device
JPH04229306A (en) Numerical controller
JPH04107652A (en) Character processor
JPH0546375A (en) Editor device
JPH0756727A (en) Method and device for preparing revised history of program
JPH03225571A (en) Graph formation processing system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080319

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees