JPH096415A - Program generator for programmable controller - Google Patents

Program generator for programmable controller

Info

Publication number
JPH096415A
JPH096415A JP14994595A JP14994595A JPH096415A JP H096415 A JPH096415 A JP H096415A JP 14994595 A JP14994595 A JP 14994595A JP 14994595 A JP14994595 A JP 14994595A JP H096415 A JPH096415 A JP H096415A
Authority
JP
Japan
Prior art keywords
input
program
programmable controller
registration data
plc
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
JP14994595A
Other languages
Japanese (ja)
Inventor
Akio Hagino
明生 萩野
Nakako Hasegawa
奈賀子 長谷川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP14994595A priority Critical patent/JPH096415A/en
Publication of JPH096415A publication Critical patent/JPH096415A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE: To inhibit useless instruction word transfer processing from a PP to a PLC when the number of input and output points from the operator exceeds the number of input and output points capable of handling an object PLC. CONSTITUTION: Prior to generating a sequence program, the operator sets a minimum value and a maximum value of input output numbers of an object PLC 14 and registers the result to a memory map 22b of a PP 27 as practical permissible range registration data 46. The PP 27 discriminates whether or not the input output numbers from the operator are within a range set by the practical permissible range registration data 46 in the program generating stage and generates an instruction word to the PLC 14 when the input output numbers are within the range and outputs a warning message to a display device when the input output numbers are not within the range and inhibits the program transfer processing from the PP 27 to the PLC 14.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、複数の入力信号のオ
ン・オフ状態に応じプログラマブルな電子的手段によっ
て複数の出力信号のオン・オフ状態を制御するプログラ
マブルコントローラ(以下、PLCと称する)に対し、
上記制御内容を決定するシーケンスプログラムを作成す
るためのツールとしてのプログラム作成装置(以下、P
Pと称する)に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (hereinafter referred to as PLC) for controlling on / off states of a plurality of output signals by programmable electronic means according to on / off states of a plurality of input signals. In contrast,
A program creation device (hereinafter, referred to as P) as a tool for creating a sequence program for determining the above control content.
P).

【0002】[0002]

【従来の技術】図6は従来のPLC14および増設ユニ
ット15を示している。この図6において、PLC14
は、マイクロプロセッサ(以下、CPUと称する)1、
CPU1と共働してオン・オフ信号の処理を行うビット
プロセッサ(以下、BPUと称する)3、CPU1にバ
スライン2を介して接続された次のような各種のメモリ
やインタフェースを有している。そのメモリやインタフ
ェースとしては、CPU1の基本的な動作を定義したプ
ログラムが格納されたシステムROM4、後述のPP2
7(図7参照)からシーケンスプログラムが書き込まれ
るRAMなどのプログラムメモリ5、ワーキング用ある
いはデータレジスタなどのデバイス用として用いられる
内部RAM6、PP27と図外のケーブルを介して接続
されるPP用インタフェース7、リミットスイッチや押
しボタンスイッチなどの複数の外部スイッチ9aが接続
される入力インタフェース8a、電磁弁やパイロットラ
ンプなどの複数の外部負荷11aが接続される出力イン
タフェース10a、入出力増設用インタフェース12
a、外部スイッチ9aのオン・オフ状態や外部負荷11
aに対するオン・オフ指令状態を記憶するイメージメモ
リ13などである。
2. Description of the Related Art FIG. 6 shows a conventional PLC 14 and an extension unit 15. In FIG. 6, the PLC 14
Is a microprocessor (hereinafter referred to as CPU) 1,
It has a bit processor (hereinafter referred to as BPU) 3 that cooperates with the CPU 1 to process an on / off signal, and various memories and interfaces described below connected to the CPU 1 via a bus line 2. . As the memory and the interface, a system ROM 4 in which a program defining the basic operation of the CPU 1 is stored, a PP 2 described later
7 (see FIG. 7), a program memory 5 such as a RAM in which a sequence program is written, an internal RAM 6 used for working or a device such as a data register, and a PP interface 7 connected to the PP 27 via a cable (not shown). , An input interface 8a to which a plurality of external switches 9a such as limit switches and push button switches are connected, an output interface 10a to which a plurality of external loads 11a such as solenoid valves and pilot lamps are connected, and an input / output expansion interface 12
a, the on / off state of the external switch 9a and the external load 11
The image memory 13 stores the on / off command state for a.

【0003】上記PLC14の入出力点数を拡張するた
めの増設ユニット15は、PLC14の増設用インタフ
ェース12aにケーブル17により接続される増設用イ
ンタフェース16、PLC14の入力インタフェース8
aと同様にリミットスイッチや押しボタンスイッチなど
の複数の外部スイッチ9bが接続される入力インタフェ
ース8b、PLC14の出力インタフェース10bと同
様に電磁弁やパイロットランプなどの複数の外部負荷1
1bが接続される出力インタフェース10b、増設用イ
ンタフェース12bのそれぞをバスライン18で互いに
接続した状態に構成されている。
The expansion unit 15 for expanding the number of input / output points of the PLC 14 includes an expansion interface 16 connected to the expansion interface 12a of the PLC 14 by a cable 17, and an input interface 8 of the PLC 14.
A plurality of external loads 1 such as a solenoid valve and a pilot lamp, like the input interface 8b to which a plurality of external switches 9b such as limit switches and push button switches are connected, and the output interface 10b of the PLC 14, similar to a.
The output interface 10b to which 1b is connected and the expansion interface 12b are connected to each other by a bus line 18.

【0004】図7はPP27を示している。この図7に
おいて、20はマイクロプロセッサ(以下、CPUと称
する)であって、これは下記のような各種のメモリやイ
ンタフェースが接続されるバスライン2aを有してい
る。上記メモリやインタフェースとしては、CRT(陰
極線管)、LCD(液晶)、プラズマなどのキャラクタ
またはグラフィク式の表示装置21、シーケンスプログ
ラム作成用のシステムプログラムおよびその作業データ
や作成したシーケンスプログラムなどを格納するRAM
などの記憶装置22、IPL(Initial Pro
gram Loader)やBIOS(Basic I
/O System)などを格納するROM23、キー
ボードまたはマウスなどで構成される入力装置24、シ
ーケンスプログラム作成用のシステムプログラムや作成
されたシーケンスプログラムを格納するフロッピィディ
スクまたはハードディスクなどからなる外部ファイル装
置25、PLC14に対してシーケンスプログラムや各
種データを読み出したり書き込んだりするPLC用イン
タフェース26などである。
FIG. 7 shows PP27. In FIG. 7, reference numeral 20 denotes a microprocessor (hereinafter referred to as CPU), which has a bus line 2a to which various memories and interfaces as described below are connected. The memory or interface stores a character or graphic type display device 21 such as a CRT (cathode ray tube), LCD (liquid crystal), plasma, a system program for creating a sequence program, its work data, and the created sequence program. RAM
Storage device 22 such as IPL (Initial Pro)
gram Loader) and BIOS (Basic I)
/ O System) and the like, an input device 24 composed of a keyboard or a mouse, an external file device 25 composed of a system program for creating a sequence program or a floppy disk or a hard disk storing the created sequence program, It is a PLC interface 26 for reading and writing a sequence program and various data to and from the PLC 14.

【0005】図8は上記記憶装置22のメモリマップ2
2aを示している。この図8において、30は基本ソフ
ト(OS)、31はシーケンスプログラム作成用システ
ムプログラム、32はPLC14にシーケンスプログラ
ムの転送を行うためのシーケンスプログラム転送用シス
テムプログラム、33は記憶装置22内の内容を外部フ
ァイル装置25に入出力するためのファイル処理用プロ
グラム、34はPP27に入力されたPLC14の入出
力番号をPLC14の命令語に変換するための入出力番
号処理プログラム、35は入出力番号が許容範囲内であ
るか否かの判定を行うための理論許容範囲システムデー
タ、36はPLC14で実行するためのシーケンスプロ
グラムを格納するシーケンスプログラム格納エリアであ
る。
FIG. 8 shows the memory map 2 of the storage device 22.
2a is shown. In FIG. 8, 30 is a basic software (OS), 31 is a sequence program creating system program, 32 is a sequence program transfer system program for transferring the sequence program to the PLC 14, and 33 is contents in the storage device 22. A file processing program for inputting / outputting to / from the external file device 25, 34 is an input / output number processing program for converting the input / output number of the PLC 14 input to the PP 27 into a command word of the PLC 14, and 35 is an input / output number allowed The theoretical permissible range system data for determining whether or not it is within the range, and 36 is a sequence program storage area for storing a sequence program to be executed by the PLC 14.

【0006】上記従来装置の動作について説明する。シ
ーケンスプログラムの作成は図7のPP27を用いて以
下のとおりに行われる。オペレータは入力装置24を操
作し、表示装置21の画面を参照しながらシーケンスプ
ログラムを作成し、その結果は図8のメモリマップ22
a内のシーケンスプログラム格納エリア36に格納され
る。このときの処理手続きはシーケンスプログラム作成
用システムプログラム31によって定められており、こ
れはオペレータにとっては変更できない手順である。プ
ログラム作成作業はシーケンス処理命令と、それにもと
づくデバイス番号との組み合わせを順次作成する作業で
ある。デバイス番号とはPLC14で扱われるタイマ、
カウンタ、データレジスタ、入力リレーおよび出力リレ
ーなどである。例えば、入力リレーはX00、X01、
X02……のように入力番号Xを伴う一連番号で表さ
れ、出力リレーはY00、Y01、Y02……のように
出力番号Yを伴う一連番号で表されている。これらの一
連番号の取り扱い得る最大の入出力点数は、PLC14
の製品シリーズや増設用インタフェースの有無によって
異なる。しかし、図8の理論許容範囲システムデータ3
5は最大システムを考慮した固定値であって、オペレー
タによる変更はできないものとなっている。図8の入出
力番号処理プログラム34は、オペレータの扱った入出
力番号が理論許容範囲システムデータ35で定められた
最大範囲を越えたときに、そのオペレータの扱った入出
力番号をエラーとして処理し、受け付けないようになっ
ている。このようにして作成されたシーケンスプログラ
ムはPLC用インタフェース26から図6のPLC14
のPP用インタフェース7を経由してプログラムメモリ
5に転送される。この転送は図8のシーケンスプログラ
ム転送用システムプログラム32にもとづいて行われ
る。また、上記作成されたシーケンスプログラムを図7
の外部ファイル装置25に格納保存したいときは、入力
装置24を経由したオペレータからの指示により、図8
のファイル処理用プログラム33にもとづいてRAM2
2から外部ファイル装置25への転送処理が行われる。
The operation of the above conventional device will be described. The sequence program is created using PP27 shown in FIG. 7 as follows. The operator operates the input device 24 to create a sequence program while referring to the screen of the display device 21, and the result is the memory map 22 of FIG.
It is stored in the sequence program storage area 36 in a. The processing procedure at this time is defined by the sequence program creation system program 31, and this is a procedure that cannot be changed by the operator. The program creation operation is an operation for sequentially creating a combination of a sequence processing instruction and a device number based on the instruction. The device number is a timer handled by PLC14,
Counters, data registers, input relays and output relays. For example, the input relay is X00, X01,
X02 ... is represented by a serial number with the input number X, and output relays are represented by serial numbers with the output number Y, such as Y00, Y01, Y02. The maximum number of I / O points that can be handled by these serial numbers is PLC14.
Depending on the product series and the presence / absence of an interface for expansion. However, the theoretical allowable range system data 3 in FIG.
5 is a fixed value considering the maximum system and cannot be changed by the operator. The input / output number processing program 34 of FIG. 8 processes the input / output number handled by the operator as an error when the input / output number handled by the operator exceeds the maximum range defined by the theoretical allowable range system data 35. , Is not accepted. The sequence program created in this way is transmitted from the PLC interface 26 to the PLC 14 of FIG.
Is transferred to the program memory 5 via the PP interface 7. This transfer is performed based on the sequence program transfer system program 32 of FIG. In addition, the sequence program created above is shown in FIG.
8 is stored in the external file device 25 of FIG.
RAM2 based on the file processing program 33 of
Transfer processing from 2 to the external file device 25 is performed.

【0007】[0007]

【発明が解決しようとする課題】従来、PP27で取り
扱う入出力点数(入出力番号範囲)とPLC14が実際
に備えている入出力点数(入出力番号範囲)との間の不
一致に対する取り扱いが問題となっている。この不一致
への取り扱い問題については、PLC14がPP27か
ら転送されてきたシーケンスプログラムの自己チェック
を行い、PP27で取り扱った入出力点数が当該PLC
14で取り扱い得る入出力点数以上であるときには、P
LC14がエラー処理を行うのが一般的である。また、
上記PLC14での自己チェックの結果、PP27で取
り扱った入出力点数がPLC14で取り扱い得る入出力
点数以下であるときには、PP27へのシーケンスプロ
グラムの供給者がそのシステムプログラムの変更を行う
のが一般的である。
Conventionally, there is a problem in handling a mismatch between the number of input / output points (input / output number range) handled by PP27 and the number of input / output points (input / output number range) actually provided in PLC 14. Has become. Regarding the problem of handling this inconsistency, the PLC 14 performs self-check of the sequence program transferred from the PP 27, and the number of input / output points handled by the PP 27 is the PLC concerned.
When the number of I / O points that can be handled by 14 is exceeded, P
The LC 14 generally performs error handling. Also,
As a result of the self-check performed by the PLC 14, when the number of input / output points handled by the PP 27 is equal to or less than the number of input / output points handled by the PLC 14, the supplier of the sequence program to the PP 27 generally changes the system program. is there.

【0008】そこで、この発明は上記のような課題を解
決するためになされたものであり、PPで取り扱おうと
した入出力点数が対象とするPLCの取り扱い得る入出
力点数を越えたときには、PPによるプログラム作成段
階でエラー処理を行って、PPがPLCに命令語の無駄
な転送処理を行わないようにするとともに、PPで取り
扱い得る入出力点数はユーザ(操作者)によって自由に
設定および変更ができるようにすることによって、PP
のシステムプログラムの変更を供給者がしなくてもよい
ようにするプログラマブルコントローラのプログラム作
成装置を提供しようとすることを目的とする。
Therefore, the present invention has been made to solve the above problems, and when the number of input / output points which the PP intends to handle exceeds the number of input / output points which can be handled by the target PLC, the PP. Error processing at the program creation stage to prevent the PP from wastefully transferring the command word to the PLC, and the number of input / output points that can be handled by the PP can be freely set and changed by the user (operator). By being able to
It is an object of the present invention to provide a programmable controller program creation device that does not require a supplier to change the system program.

【0009】[0009]

【課題を解決するための手段】請求項1の発明は、プロ
グラマブルコントローラのプログラム作成装置におい
て、シーケンスプログラム作成時に操作者から入力され
る入出力点数が記憶装置に実用許容範囲登録データとし
て予め格納されたプログラマブルコントローラの入出力
点数を越えた場合にプログラマブルコントローラへのプ
ログラムの転送処理を禁止する手段を備えたことを特徴
としている。
According to a first aspect of the present invention, in a programmable controller program creating apparatus, the number of input / output points input by an operator at the time of creating a sequence program is stored in advance in a storage device as practical allowable range registration data. It is characterized in that it is provided with means for inhibiting the transfer processing of the program to the programmable controller when the number of input / output points of the programmable controller is exceeded.

【0010】請求項2の発明は、請求項1に記載のプロ
グラム作成装置に、操作者からの入出力点数が記憶装置
の実用許容範囲登録データの入出力点数を越えた場合に
警告メッセージを表示する手段を備えたことを特徴とし
ている。
According to a second aspect of the present invention, the program creating apparatus according to the first aspect displays a warning message when the number of input / output points from the operator exceeds the number of input / output points of the practical permissible range registration data of the storage device. It is characterized by having a means for doing.

【0011】請求項3の発明は、請求項1に記載の記憶
装置を実用許容範囲登録データを書き換え可能に格納す
る記憶装置により構成したことを特徴としている。
A third aspect of the present invention is characterized in that the storage device according to the first aspect is constituted by a storage device which stores rewritable practical allowable range registration data.

【0012】請求項4の発明は、請求項1に記載の記憶
装置に複数の許容範囲登録データを格納し、対象とする
プログラマブルコントローラの製品シリーズに応じて選
択使用する手段を備えたことを特徴としている。
According to a fourth aspect of the present invention, a plurality of permissible range registration data are stored in the storage device according to the first aspect, and means for selectively using the programmable controller according to the product series of the target programmable controller is provided. I am trying.

【0013】請求項5の発明は、請求項1に記載の記憶
装置の記憶内容をフロッピィディスク、ICメモリなど
の外部ファイル装置に複写生成する手段を備えたことを
特徴としている。
According to a fifth aspect of the invention, there is provided means for copying the storage contents of the storage device according to the first aspect to an external file device such as a floppy disk or an IC memory.

【0014】[0014]

【作用】請求項1の発明によれば、操作者からの入出力
点数がプログラマブルコントローラの入出力点数を越え
た場合に、プログラマブルコントローラへのプログラム
の転送処理を禁止するようにしたことにより、PLCへ
の命令語の無駄な転送処理を省いて、品質信頼性を向上
できる。
According to the invention of claim 1, when the number of input / output points from the operator exceeds the number of input / output points of the programmable controller, the transfer processing of the program to the programmable controller is prohibited. It is possible to improve the quality reliability by omitting the wasteful transfer process of the command word to.

【0015】請求項2に発明によれば、上記PLCへの
プログラムの転送処理を禁止とともに警告メッセージを
表示するようにしたことにより、操作者にシーケンスプ
ログラム作成段階での入出力点数の設定間違いを通知
し、デバックに要する時間を短縮できる。
According to the second aspect of the present invention, the program transfer processing to the PLC is prohibited and a warning message is displayed, so that the operator is prevented from making an error in setting the number of input / output points at the sequence program creating stage. It can be notified and the time required for debugging can be shortened.

【0016】請求項3の発明によれば、実用許容範囲登
録データを書き換え可能にしたことにより、操作者が予
め設定されたプログラマブルコントローラの入出力点数
の範囲を変更し、供給者によるシステムプログラムの変
更を解消できる。
According to the third aspect of the present invention, the practical permissible range registration data is made rewritable, so that the operator can change the preset range of the number of input / output points of the programmable controller and the system program of the supplier can be changed. Change can be resolved.

【0017】請求項4の発明によれば、複数の許容範囲
登録データを対象とするプログラマブルコントローラの
製品シリーズに応じて選択使用するようにしたことによ
り、PLCの製品シリーズの相違や入出力の増設規模な
どにも臨機応変に対応できる。
According to the invention of claim 4, the plurality of permissible range registration data are selectively used according to the product series of the programmable controller, so that the PLC product series is different and the input / output is increased. It can respond flexibly to the scale and so on.

【0018】請求項5の発明によれば、記憶装置の記憶
内容を外部ファイル装置に複写生成するようにしたこと
により、プログラム作成装置を操作者個々に活用でき
る。
According to the fifth aspect of the present invention, since the storage contents of the storage device are copied and generated in the external file device, the operator can utilize the program creation device.

【0019】[0019]

【実施例】以下、この発明の各実施例を図面とともに従
来例と同一部分に同一符号を付して説明する。各実施例
で取り扱われるPLCやPPは前述の図6および図7に
示すとおりであるが、この発明の基本的な構成は図1に
要約されている。 実施例1.図1は実施例1のPLC14とPP27とを
示している。この図1において、22bはPP27の記
憶装置22におけるメモリマップ、40は基本ソフト
(OS)、41はシーケンスプログラム作成用システム
プログラム、42はPLC14にシーケンスプログラム
の転送を行うためのシーケンスプログラム転送用システ
ムプログラム、43は記憶装置22内の内容を外部ファ
イル装置25に入出力するためのファイル処理用プログ
ラム、44はPP27に入力されたPLC14の入出力
番号をPLC14の命令語に変換するための入出力番号
処理プログラム(詳細は図5により後述する)、45は
実用許容範囲登録データ46を作成するときに入出力番
号がシステム上の最大許容範囲内であるか否かの判定を
行うための理論許容範囲システムデータ、46は入出力
番号処理プログラム44が命令語に変換するときに入出
力番号が許容範囲内であるか否かの判定を行うための実
用許容範囲登録データであって、その作成手順は図4に
より後述する。47はPLC14で実行するためのシー
ケンスプログラムを格納するためのシーケンスプログラ
ム格納エリア、60a〜60nは実用許容範囲登録デー
タ46の内容をPP27の外部ファイル装置25に個別
にファイルとして格納した実用許容範囲登録データファ
イルである。
Embodiments of the present invention will be described below with reference to the drawings by attaching the same reference numerals to the same portions as those of the conventional example. The PLC and PP handled in each embodiment are as shown in FIGS. 6 and 7 described above, but the basic configuration of the present invention is summarized in FIG. Embodiment 1 FIG. FIG. 1 shows the PLC 14 and the PP 27 of the first embodiment. In FIG. 1, 22b is a memory map in the storage device 22 of PP27, 40 is a basic software (OS), 41 is a system program for creating a sequence program, and 42 is a sequence program transfer system for transferring the sequence program to the PLC 14. A program, 43 is a file processing program for inputting / outputting the contents in the storage device 22 to / from the external file device 25, and 44 is an input / output for converting the input / output number of the PLC 14 input to the PP 27 into a command word of the PLC 14. A number processing program (details will be described later with reference to FIG. 5), 45 is a theoretical allowance for determining whether the input / output number is within the maximum allowable range on the system when creating the practical allowable range registration data 46. Range system data, 46 is an input / output number processing program 44 command word A practical tolerance registration data for determining output number is whether within the allowable range when converting, the creation procedure will be described later with FIG. 47 is a sequence program storage area for storing a sequence program to be executed by the PLC 14, and 60a to 60n are practical permissible range registrations in which the contents of the practical permissible range registration data 46 are individually stored as files in the external file device 25 of the PP 27. It is a data file.

【0020】上記基本ソフト40、シーケンスプログラ
ム作成用システムプログラム41、シーケンスプログラ
ム転送用システムプログラム42、ファイル処理用プロ
グラム43、入出力番号処理プログラム44および理論
許容範囲システムデータ45は、オペレータによる変更
はできないものとなっている。これに対し、実用許容範
囲登録データ46および実用許容範囲登録データファイ
ル60a〜60nは、オペレータによる書き換え可能
(変更可能)になっている。
The basic software 40, the sequence program creating system program 41, the sequence program transferring system program 42, the file processing program 43, the input / output number processing program 44, and the theoretical allowable range system data 45 cannot be changed by the operator. It has become a thing. On the other hand, the practical permissible range registration data 46 and the practical permissible range registration data files 60a to 60n are rewritable (changeable) by the operator.

【0021】図2はPP27の表示装置21で表示され
る実用許容範囲登録データ46の設定画面を示してい
る。この図2において、70は入力インタフェース8
a,8b(図6)に割り付けられた固有の番号の最小値
および最大値を設定する部分、71は出力インタフェー
ス10a,10b(図6)に割り付けられた固有の番号
の最小値および最小値を設定する部分である。
FIG. 2 shows a setting screen of the practical permissible range registration data 46 displayed on the display device 21 of PP27. In FIG. 2, 70 is the input interface 8
a, 8b (FIG. 6), a part for setting the minimum value and the maximum value of the unique numbers, 71 denotes the minimum value and the minimum value of the unique numbers assigned to the output interfaces 10a, 10b (FIG. 6). This is the part to set.

【0022】図3は外部ファイル装置25に格納した実
用許容範囲登録データ60a〜60nのうちの一つをメ
モリマップ22b(図1)の実用許容範囲登録データ4
6に読み込むための選択画面である。
In FIG. 3, one of the practical permissible range registration data 60a-60n stored in the external file device 25 is used as the practical permissible range registration data 4 of the memory map 22b (FIG. 1).
6 is a selection screen for reading.

【0023】図4は実用許容範囲登録データ46を作成
するときのフローチャートである。この図4において、
80は入力インタフェース8a,8bの最小割り付け番
号を実用許容範囲登録データ46に代入するステップ、
81は入力インタフェース8a,8bの最大割り付け番
号を実用許容範囲登録データ46に代入するステップ、
82は出力インタフェース10a,10bの最小割り付
け番号を実用許容範囲登録データ46に代入するステッ
プ、83は出力インタフェース10a,10bの最大割
り付け番号を実用許容範囲登録データ46に代入するス
テップである。
FIG. 4 is a flowchart for creating the practical permissible range registration data 46. In FIG.
80 is a step of substituting the minimum allocation number of the input interfaces 8a and 8b into the practical permissible range registration data 46,
81 is a step of substituting the maximum allocation number of the input interfaces 8a and 8b into the practical permissible range registration data 46,
Reference numeral 82 is a step of substituting the minimum allocation number of the output interfaces 10a and 10b into the practical permissible range registration data 46, and 83 is a step of substituting the maximum allocation number of the output interfaces 10a and 10b into the practical permissible range registration data 46.

【0024】図5は入出力番号処理プログラム44(図
1)の一過程であって、図7に示す入力装置24でキー
インされた入出力番号から命令語を作成する部分のフロ
ーチャートである。この図5において、91はPP27
の入力装置24から入力記号Xまたは出力記号Yを入力
するステップ、92はステップ91で設定された内容を
判定するステップ、93は入力装置24から入力記号X
または出力記号Yのそれぞれに続く入力番号または出力
番号を入力するステップ、94はステップ93で入力さ
れた入力番号または出力番号が実用許容範囲登録データ
46で設定されている値の範囲であるか否かを判定する
ステップ、95はステップ94で判定した結果が範囲外
の数値のときにチェックアウトするステップ、96は入
力番号が範囲内に存在して適正であったときに、予め入
力記号Xの前に入力された常開接点命令、常閉接点命令
などのシーケンス命令に対するオペランドコードと、入
力記号Xと入力番号とから生成されるオペランド部とか
らPLC14の命令語に変換するステップ、97は出力
番号に対してステップ93〜ステップ96と同様の処理
を行うステップである。
FIG. 5 is a flow chart of a part of the process of the input / output number processing program 44 (FIG. 1), in which a command word is created from the input / output number keyed in by the input device 24 shown in FIG. In FIG. 5, 91 is PP27
Of inputting the input symbol X or the output symbol Y from the input device 24, 92 is a step of determining the contents set in step 91, and 93 is the input symbol X from the input device 24.
Alternatively, a step of inputting an input number or an output number following each of the output symbols Y, and 94 is whether or not the input number or the output number input in step 93 is within the range of values set in the practical permissible range registration data 46. Step 95 is a step of checking if the result of the determination in Step 94 is out of the range, and 96 is a step of checking the input symbol X in advance when the input number is within the range and proper. A step of converting an operand code for a sequence instruction such as a normally-open contact instruction or a normally-closed contact instruction inputted previously and an operand part generated from the input symbol X and the input number into an instruction word of the PLC 14, 97 is an output This is a step of performing the same processing as that of step 93 to step 96 on the number.

【0025】この実施例1の動作について説明する。シ
ーケンスプログラムを作成する前に、図2に示す実用入
出力点数範囲の設定画面において、オペレータが実際に
稼働するPLC14のシステムに合わせて入力番号の最
小値と最大値とを設定する。設定された最大値は図4の
ステップ80、ステップ81によって、実用許容範囲登
録データ46に登録される。同様に出力番号において
も、オペレータが最小値と最大値とを設定する。設定さ
れた最大値は図4のステップ82、ステップ83によっ
て、実用許容範囲登録データ46に登録される。ここ
で、登録される実用許容範囲登録データ46は理論許容
範囲システムデータ45の範囲を越えないものである。
The operation of the first embodiment will be described. Before creating the sequence program, the operator sets the minimum value and the maximum value of the input number on the setting screen of the practical input / output point range shown in FIG. 2 in accordance with the actually operating system of the PLC 14. The set maximum value is registered in the practical permissible range registration data 46 in steps 80 and 81 of FIG. Similarly, with respect to the output number, the operator sets the minimum value and the maximum value. The set maximum value is registered in the practical permissible range registration data 46 in steps 82 and 83 of FIG. Here, the practical permissible range registration data 46 registered does not exceed the range of the theoretical permissible range system data 45.

【0026】シーケンスプログラム作成段階で、入出力
番号処理プログラム44が実行されるとき、実用許容範
囲登録データ46が設定されておれば、実用許容範囲登
録データ46を参照し、実用許容範囲登録データ46が
設定されていないときは理論許容範囲システムデータ4
5を参照し、図2に示すフローチャートによって入出力
番号から命令語を作成する。
If the practical permissible range registration data 46 is set when the input / output number processing program 44 is executed in the sequence program creating stage, the practical permissible range registration data 46 is referred to and the practical permissible range registration data 46 is referred to. If is not set, theoretical allowable system data 4
5, an instruction word is created from the input / output number according to the flowchart shown in FIG.

【0027】図5のステップ91で入力記号Xが入力さ
れると、ステップ92からステップ93が実行され、記
号Xに続く入力番号が入力される。次に、ステップ94
において、ステップ93で入力した割り付け番号が実用
許容範囲登録データ46で設定された範囲内であるか否
かを判定する。
When the input symbol X is input in step 91 of FIG. 5, steps 92 to 93 are executed, and the input number following the symbol X is input. Next, step 94.
At step 93, it is determined whether the allocation number input in step 93 is within the range set by the practical permissible range registration data 46.

【0028】割り付け番号が範囲内のときは、ステップ
96で命令語を生成してこの処理を終了する。また、ス
テップ94において、割り付け番号が範囲外であった場
合、ステップ95において、実用許容範囲登録データ4
6の範囲外である旨の警告メッセージを表示装置21に
出力し、入力番号の変更をオペレータに促すとともに、
PP27からPLC14への転送処理を禁止する。同様
に、ステップ97により出力Yを含む命令の命令語の生
成、割り付け番号の範囲外に伴う警告メッセージの表
示、命令語の転送処理の禁止が行われる。
If the allocation number is within the range, an instruction word is generated in step 96, and this processing ends. If the allocation number is out of range in step 94, the practical permissible range registration data 4 is entered in step 95.
A warning message indicating that it is out of the range of 6 is output to the display device 21 to prompt the operator to change the input number,
The transfer processing from PP27 to PLC14 is prohibited. Similarly, in step 97, a command word of a command including the output Y is generated, a warning message is displayed when the allocation number is out of range, and a command word transfer process is prohibited.

【0029】実施例2.この実施例2では、図3に示す
ように、実施例1で作成した実用許容範囲登録データ4
6に名称を付けてPP27の外部ファイル装置25に実
用許容範囲登録データファイル60aを出力し、同様
に、異なる名称で実用許容範囲登録データ46を実用許
容範囲登録データファイル60b〜60nとして、外部
ファイル装置25に出力させれば、オペレータは、図7
に示す入力装置24の操作により、外部ファイル装置2
5に格納された複数の実用許容範囲登録データ60a〜
60nから対象とするPLC14の製品シリーズまたは
入出力点数規模によって実際に使用する実用許容範囲登
録データ46を選択して使用することができる。
Example 2. In the second embodiment, as shown in FIG. 3, the practical permissible range registration data 4 created in the first embodiment.
6, the practical allowable range registration data file 60a is output to the external file device 25 of the PP 27, and similarly, the practical allowable range registration data 46 with different names is used as the practical allowable range registration data files 60b to 60n. If it is output to the device 25, the operator
By operating the input device 24 shown in FIG.
A plurality of practical permissible range registration data 60a stored in
The practical allowable range registration data 46 to be actually used can be selected and used from 60n depending on the product series of the target PLC 14 or the scale of the number of input / output points.

【0030】実施例3.この実施例3では、オペレータ
が、図7に示す入力装置24の操作により、PP27の
メモリマップ22bに格納されたユーザによって書き換
えのできない図1に示すシーケンスプログラム作成用シ
ステムプログラム41、シーケンスプログラム転送用シ
ステムプログラム42、ファイル処理用プログラム4
3、入出力番号処理プログラム44および理論許容範囲
システムデータ45などの一連のプログラムと、ファイ
ル処理用プログラム43、ユーザによって手軽に書き換
えられる実用許容範囲登録データ46とを、ファイル処
理用プログラム43の働きで、図7に示す外部ファイル
装置25に複写生成し、この複写生成によってファイル
化されたフロッピィディスクやメモリカードなどをユー
ザに配布しておけば、ユーザが誤ってシステムプログラ
ムを破壊することがなく、ユーザ側での入出力点数の変
更にも対応することができる。
Example 3. In the third embodiment, the operator operates the input device 24 shown in FIG. 7 and the system program 41 for sequence program creation and the sequence program transfer shown in FIG. System program 42, file processing program 4
3, a series of programs such as the input / output number processing program 44 and the theoretical permissible range system data 45, the file processing program 43, and the practical permissible range registration data 46 which can be easily rewritten by the user. If the floppy disk, memory card, etc., which have been filed by the copy generation, are distributed to the user by being copied and generated in the external file device 25 shown in FIG. 7, the user will not accidentally destroy the system program. It is also possible to deal with the change of the number of input / output points on the user side.

【0031】[0031]

【発明の効果】この発明によれば、次のような効果があ
る。請求項1によれば、操作者からの入出力点数がプロ
グラマブルコントローラの入出力点数を越えた場合に、
プログラマブルコントローラへのプログラムの転送処理
を禁止可能としたから、PLCへの命令語の無駄な転送
処理を行わず、品質信頼性を向上できる。
According to the present invention, the following effects can be obtained. According to claim 1, when the number of input / output points from the operator exceeds the number of input / output points of the programmable controller,
Since the transfer processing of the program to the programmable controller can be prohibited, wasteful transfer processing of the command word to the PLC is not performed, and the quality reliability can be improved.

【0032】請求項2によれば、上記PLCへのプログ
ラムの転送処理を禁止とともに警告メッセージを表示可
能としたから、操作者にシーケンスプログラム作成段階
での入出力点数の設定間違いを適切に通知し、デバック
の時間短縮を図ることができる。
According to the second aspect of the present invention, since the transfer processing of the program to the PLC is prohibited and the warning message can be displayed, the operator is appropriately notified of the setting error of the input / output points at the sequence program creating stage. The debugging time can be shortened.

【0033】請求項3によれば、実用許容範囲登録デー
タを書き換え可能としたから、操作者が予め設定された
プログラマブルコントローラの入出力点数の範囲を変更
することができ、供給者によるシステムプログラムの変
更を解消することができる。
According to the third aspect, since the practical permissible range registration data can be rewritten, the operator can change the preset range of the number of input / output points of the programmable controller, and the system program of the supplier can be changed. Changes can be resolved.

【0034】請求項4によれば、複数の許容範囲登録デ
ータを対象とするプログラマブルコントローラの製品シ
リーズに応じて選択使用可能としたから、PLCの製品
シリーズの相違や入出力の増設規模などにも臨機応変に
対応し、用途に合わせた最適なものを手軽に使用するこ
とができる。
According to the fourth aspect of the present invention, the plurality of permissible range registration data can be selectively used according to the product series of the programmable controller. Therefore, the PLC product series can be different and the input / output expansion scale can be selected. It is flexible and you can easily use the most suitable one for your application.

【0035】請求項5によれば、記憶装置の記憶内容を
外部ファイル装置に複写生成可能としたから、プログラ
ム作成装置を操作者個々で活用するでき、ファイル化し
たフロッピィディスクやメモリカードなどを操作者個々
に配布しておけば、PLCのシリーズ拡張にも適切に対
処することができる。
According to the fifth aspect, since the storage contents of the storage device can be copied and generated in the external file device, each operator can utilize the program creation device and operate the filed floppy disk or memory card. If it is distributed to each person, the PLC series expansion can be dealt with appropriately.

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

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

【図2】 実施例1の実用許容範囲登録データの設定画
面を示す図である。
FIG. 2 is a diagram showing a setting screen for practical use allowable range registration data according to the first embodiment.

【図3】 実施例1の実用許容範囲登録データの選択画
面を示す図である。
FIG. 3 is a diagram showing a selection screen for practical use allowable range registration data according to the first embodiment.

【図4】 実施例1の実用許容範囲登録データを作成す
るフローチャートである。
FIG. 4 is a flowchart for creating practical allowable range registration data according to the first embodiment.

【図5】 実施例1の入出力番号から命令語を作成する
フローチャートである。
FIG. 5 is a flowchart of creating an instruction word from an input / output number according to the first embodiment.

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

【図7】 従来のプログラム作成装置のブロック図であ
る。
FIG. 7 is a block diagram of a conventional program creation device.

【図8】 従来のプログラム作成装置のメモリマップを
示す図である。
FIG. 8 is a diagram showing a memory map of a conventional program creating device.

【符号の説明】 5 プログラムメモリ、14 PLC(プログラマブル
コントローラ)、22 記憶装置、24 入力装置、2
5 外部ファイル装置、27 PP(プログラム作成装
置)、41 シーケンスプログラム作成用システムプロ
グラム、42 シーケンスプログラム転送用システムプ
ログラム、43 ファイル処理用プログラム、44 入
出力番号処理プログラム、45 理論許容範囲システム
データ、46 実用許容範囲登録データ、60a〜60
n 実用許容範囲登録データファイル。
[Explanation of Codes] 5 Program Memory, 14 PLC (Programmable Controller), 22 Storage Device, 24 Input Device, 2
5 external file device, 27 PP (program creation device), 41 sequence program creation system program, 42 sequence program transfer system program, 43 file processing program, 44 input / output number processing program, 45 theoretical allowable range system data, 46 Practical tolerance registration data, 60a-60
n Practical allowable range registration data file.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の入力信号のオン・オフ状態に応じ
プログラマブルな電子的手段によって複数の出力信号の
オン・オフ状態を制御する内容を決定するシーケンスプ
ログラムを作成し、この作成されたシーケンスプログラ
ムをプログラマブルコントローラのプログラムメモリに
転送するプログラマブルコントローラのプログラム作成
装置において、シーケンスプログラム作成時に操作者か
ら入力される入出力点数が記憶装置に実用許容範囲登録
データとして予め格納されたプログラマブルコントロー
ラの入出力点数を越えた場合にプログラマブルコントロ
ーラへのプログラムの転送処理を禁止する手段を備えた
ことを特徴とするプログラマブルコントローラのプログ
ラム作成装置。
1. A sequence program for determining the content for controlling the on / off states of a plurality of output signals by programmable electronic means according to the on / off states of a plurality of input signals, and the created sequence program. In the programmable controller program creation device that transfers the data to the program memory of the programmable controller, the number of input / output points input by the operator at the time of sequence program creation is stored in advance in the storage device as practical allowable range registration data. A program creation device for a programmable controller, which is provided with means for prohibiting transfer processing of the program to the programmable controller when the number exceeds the limit.
【請求項2】 操作者からの入出力点数が記憶装置の実
用許容範囲登録データの入出力点数を越えた場合に警告
メッセージを表示する手段を備えたことを特徴とする請
求項1記載のプログラマブルコントローラのプログラム
作成装置。
2. The programmable device according to claim 1, further comprising means for displaying a warning message when the number of input / output points from the operator exceeds the number of input / output points of the practical permissible range registration data of the storage device. Controller program creation device.
【請求項3】 記憶装置を実用許容範囲登録データを書
き換え可能に格納する記憶装置により構成したことを特
徴とする請求項1記載のプログラマブルコントローラの
プログラム作成装置。
3. The program creation device for a programmable controller according to claim 1, wherein the storage device is a storage device that stores rewritable practical range registration data in a rewritable manner.
【請求項4】 記憶装置に複数の許容範囲登録データを
格納し、対象とするプログラマブルコントローラの製品
シリーズに応じて選択使用する手段を備えたことを特徴
とする請求項1記載のプログラマブルコントローラのプ
ログラム作成装置。
4. A program for a programmable controller according to claim 1, further comprising means for storing a plurality of permissible range registration data in a storage device and selectively using the data according to a product series of the target programmable controller. Creation device.
【請求項5】 記憶装置の記憶内容をフロッピィディス
ク、ICメモリなどの外部ファイル装置に複写生成する
手段を備えたことを特徴とする請求項1記載のプログラ
マブルコントローラのプログラム作成装置。
5. The program creating apparatus for a programmable controller according to claim 1, further comprising means for copying and creating the stored contents of the storage device to an external file device such as a floppy disk or an IC memory.
JP14994595A 1995-06-16 1995-06-16 Program generator for programmable controller Pending JPH096415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14994595A JPH096415A (en) 1995-06-16 1995-06-16 Program generator for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14994595A JPH096415A (en) 1995-06-16 1995-06-16 Program generator for programmable controller

Publications (1)

Publication Number Publication Date
JPH096415A true JPH096415A (en) 1997-01-10

Family

ID=15486017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14994595A Pending JPH096415A (en) 1995-06-16 1995-06-16 Program generator for programmable controller

Country Status (1)

Country Link
JP (1) JPH096415A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252775A (en) * 1998-03-06 1999-09-17 Mitsubishi Electric Corp Digital protective relay apparatus
CN104364721A (en) * 2012-06-14 2015-02-18 三菱电机株式会社 I/O device, programmable logic controller and calculation method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252775A (en) * 1998-03-06 1999-09-17 Mitsubishi Electric Corp Digital protective relay apparatus
CN104364721A (en) * 2012-06-14 2015-02-18 三菱电机株式会社 I/O device, programmable logic controller and calculation method
CN104364721B (en) * 2012-06-14 2017-01-18 三菱电机株式会社 I/O device, programmable logic controller and calculation method

Similar Documents

Publication Publication Date Title
US6327653B1 (en) Technique for easily changing operating systems of a digital computer system using at least two pushbuttons
JPH0792789B2 (en) Graph display device
JPH096415A (en) Program generator for programmable controller
JP3356634B2 (en) Screen data creation device for programmable display devices
JPH08329338A (en) Cash register device
JP2701089B2 (en) Information transfer method
JPH08263245A (en) Display picture preparing device for programmable display
JP3480957B2 (en) Memory programming equipment
KR100250877B1 (en) Printing method of program processing paper for ecr
JPH05158522A (en) Numerical controller
JP3414038B2 (en) Programmable controller
JPH04352231A (en) Personal computer
JP3392663B2 (en) Programmable display
JPH04188399A (en) Terminal equipment
JP2941807B2 (en) Data processing apparatus and method
JP3357891B2 (en) Plant operation control device
JPS62226357A (en) Initial program loading system
JPH0537314Y2 (en)
JPH04111160A (en) Word processor
JP2979153B2 (en) Display control device
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPH04296935A (en) Programming device for programmable controller
JPH02226307A (en) Numerical controller
JPS6318401A (en) Programming device for programmable controller
JPS63219006A (en) Digital input output simulation device for process control device