JPH02165305A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH02165305A JPH02165305A JP32275988A JP32275988A JPH02165305A JP H02165305 A JPH02165305 A JP H02165305A JP 32275988 A JP32275988 A JP 32275988A JP 32275988 A JP32275988 A JP 32275988A JP H02165305 A JPH02165305 A JP H02165305A
- Authority
- JP
- Japan
- Prior art keywords
- program
- double coil
- coil
- debugging
- user program
- 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
Links
- 238000012937 correction Methods 0.000 claims abstract description 6
- 230000004044 response Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 11
- 230000009977 dual effect Effects 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
この発明は、被制御対象をシーケンス制御するユーザプ
ログラムを記憶手段に格納し、記憶手段に格納されたユ
ーザプログラムを、デバッグする機能を有するプログラ
マブル・コントローラに関するものである。[Detailed Description of the Invention] <Industrial Application Field> The present invention is a programmable computer having a function of storing a user program for sequence control of a controlled object in a storage means and debugging the user program stored in the storage means.・It is related to the controller.
〈従来の技術〉
近年、シーケンス回路の複雑化に伴い、コンピュータに
より被制御対象をシーケンス制御するプログラマブル・
コントローラが開発されている。<Prior art> In recent years, as sequence circuits have become more complex, programmable
A controller has been developed.
このようなプログラマブル・コントローラのシーケンス
プログラムをメーカ側ばかりでなく、ユーザ側において
デバッグすることができるプログラマブル・コントロー
ラが開発されている。Programmable controllers have been developed that allow the sequence programs of such programmable controllers to be debugged not only by the manufacturer but also by the user.
上記プログラマブル・コントローラは、回路素子で構成
されるシーケンス回路、例えば第7図で示されるように
、ユーザが作成したラダー図に基づいて、プログラムを
作成して入力する。このように入力されたシーケンス回
路の出力素子番号が誤って使用された場合は、シーケン
ス回路の出力素子番号の誤使用をチエツクして、修正す
ることができる素子番号誤使用チエツク機能を有するも
のがある(特開昭63−159904参照)。The programmable controller creates and inputs a program based on a sequence circuit made up of circuit elements, for example, a ladder diagram created by the user, as shown in FIG. If the output element number of the sequence circuit inputted in this way is used incorrectly, there is a device that has an element number error check function that can check and correct the incorrect use of the output element number of the sequence circuit. Yes (see Japanese Patent Application Laid-Open No. 63-159904).
〈発明が解決しようとする課題〉
ところで、ユーザが作成したプログラムには、第8図に
示されるように、二重コイルが存在する場合がある。こ
の二重コイルが存在して5いてもプログラム自体は正し
い場合が多いので、二重コイルを検索したり、修正した
りすることは行われていなかった。<Problems to be Solved by the Invention> By the way, a program created by a user may include a double coil, as shown in FIG. Even if this double coil exists, the program itself is often correct, so searching for or modifying the double coil is not performed.
しかし、二重コイルの存在位置が離れていて、プログラ
ムミスの場合には、デバッグすることが困難である。However, if the dual coils are located far apart and there is a programming error, it is difficult to debug it.
第8図に基づいてさらに詳細に説明すれば、上記ラダー
図上のプログラムステップ番号50に対応するユーザプ
ログラムは、プログラムステップ番号50〜57の間に
出現している。また、プログラムステップ番号100に
対応するユーザプログラムは、プログラムステップ番号
100〜102の間に出現している。すなわち、二重コ
イルが存在している。To explain in more detail based on FIG. 8, the user program corresponding to program step number 50 on the ladder diagram appears between program step numbers 50 to 57. Further, the user program corresponding to program step number 100 appears between program step numbers 100-102. That is, a double coil is present.
このように、50ステツプも離れた位置に二重コイルが
発生した場合には、ユーザ側で、検索してこれをデバッ
グしなければならないので、プログラムの修正箇所を捜
すのに時間、及び労力がかかってしまうという不都合が
生じる。In this way, if a double coil occurs at a position 50 steps apart, the user must search and debug it, which saves time and effort in searching for a place to correct the program. This causes the inconvenience of being affected.
く目的〉
この発明は、上記の問題点に鑑みてなされたもので、二
重コイルが存在する場合におけるユーザプログラムのデ
バッグに要する時間、及び労力の軽減を図ることができ
るプログラマブル・コントローラを提供することを目的
とする。Purpose> The present invention has been made in view of the above problems, and provides a programmable controller that can reduce the time and labor required for debugging a user program when dual coils are present. The purpose is to
く課題を解決するための手段〉
上記目的を達成するためにこの発明のプログラマブル・
コントローラは、上記操作者からの検索指令入力に応じ
て、上記ユーザプログラム内の二重コイルを順次検索す
る検索手段と、上記二重コイルが存在する回路の先頭プ
ログラムステップ番号を表示する表示手段と、二重コイ
ルを修正する処理をするか否かをプログラマに選択させ
る選択手段と、上記二重コイルの入力側プログラムの論
理和を取り単一のコイルに修正する修正手段とを具備す
るものである。Means for Solving the Problems> In order to achieve the above objects, the programmable
The controller includes a search means for sequentially searching for the double coil in the user program in response to a search command input from the operator, and a display means for displaying the first program step number of the circuit in which the double coil exists. , comprising a selection means for causing the programmer to select whether or not to perform processing for modifying the double coil, and a modifying means for calculating the logical sum of the input side programs of the double coil and modifying the program into a single coil. be.
く作用〉
以上の構成のプログラマブル榔コントローラによれば、
ユーザプログラム内に二重コイルが発生した場合におい
ても、以下に説明するように上記二重コイルを検索して
、かつ修正することができる。まず、上記操作者からの
検索指令入力に応じて、検索手段により、予め記憶手段
に格納されたユーザプログラムから、二重コイルが順次
検索される。検索した結果、二重コイルが発見されると
、表示手段により、上記ユーザプログラム内の二重コイ
ルが存在する先頭プログラムステップ番号、及び二重コ
イルを修正するか否かを表示して、操作者に修正手段を
選択させ、る。そして、操作者が修正手段を選択した場
合であれば、修正手段により、二重コイルが存在するユ
ーザプログラムの二重コイルの入力端プログラムの論理
和を取り、単一のコイルに修正することができる。According to the programmable controller with the above configuration,
Even if a double coil occurs in a user program, the double coil can be searched for and modified as described below. First, in response to a search command input from the operator, the search means sequentially searches for double coils from a user program stored in the storage means in advance. When a double coil is found as a result of the search, the display means displays the first program step number in the user program in which the double coil exists and whether or not the double coil is to be modified. Let them select the corrective measures. If the operator selects the modifying means, the modifying means calculates the logical sum of the dual coil input terminal program of the user program in which the dual coil exists, and modifies the program into a single coil. can.
これにより単一化されたコイルに基づいて作成されたユ
ーザプログラムに基づいてデバッグを行えば、デバッグ
することは容易となりデバッグに要する時間、及び労力
の軽減を図ることができる。If debugging is performed based on a user program created based on the unified coil, debugging becomes easy and the time and labor required for debugging can be reduced.
〈実施例〉
以下に、この発明に係るプログラマブル・コントローラ
の実施例を添付図面を参照しながら説明する。<Embodiments> Examples of the programmable controller according to the present invention will be described below with reference to the accompanying drawings.
第1図は、プログラマブル・コントローラの機能ブロッ
ク図を示す。FIG. 1 shows a functional block diagram of a programmable controller.
上記プログラマブル・コントローラは、ユーザプログラ
ムの検索指令等を入力する入力部(1)と、操作者から
の検索指令入力に応じて、上記ユーザプログラム内の二
重コイルを順次検索する検索部(2)と、上記ユーザプ
ログラム内の二重コイルが存在する先頭プログラムステ
ップ番号、及び二重コイルを修正するか否かを表示する
表示部(3)と、二重コイルを修正する処理をするか否
かをプログラマに選択させる選択部(4)と、二重コイ
ルの入力側プログラムの論理和を取り、単一の回路構成
にする修正処理部(5)とを有する。The above-mentioned programmable controller includes an input section (1) for inputting a search command etc. of the user program, and a search section (2) for sequentially searching the double coils in the above-mentioned user program in response to the search command input from the operator. and a display section (3) that displays the first program step number in which the double coil exists in the user program, and whether or not to modify the double coil, and whether or not to perform processing to modify the double coil. It has a selection section (4) that allows the programmer to select, and a modification processing section (5) that takes the logical sum of the input side programs of the dual coils and creates a single circuit configuration.
上記修正処理部(5)は、第8図に示したごとき二重コ
イルが発生した場合において、プログラムステップ番号
56及び101プログラムの論理和を取り、プログラム
ステップ番号を連続させることができる(第2図参照)
。これにより、二重コイルを単一の回路構成にする。こ
れに応じて、プログラムステップ番号100以降のプロ
グラムを58以降に修正して連続したプログラムステッ
プ番号にする処理を実行できる。When a double coil as shown in FIG. 8 occurs, the correction processing unit (5) can logically OR program step numbers 56 and 101 to make the program step numbers consecutive (second (see figure)
. This turns the dual coils into a single circuit configuration. In accordance with this, it is possible to execute a process of modifying the program after program step number 100 to 58 or later to make the program step numbers continuous.
第3図は、プログラマブル・コントローラのハードウェ
ア構成図を示す。FIG. 3 shows a hardware configuration diagram of the programmable controller.
このプログラマブル・コントローラのパスライン(29
)には、CP U (21)と、システムプログラムメ
モリ(22)と、ユーザプログラムメモリ(23)と、
データメモリ(24)と、入力回路(25)と、出力回
路(26)と、周辺装置インターフェース(27)とが
接続されている。This programmable controller's pass line (29
) includes a CPU (21), a system program memory (22), a user program memory (23),
A data memory (24), an input circuit (25), an output circuit (26) and a peripheral device interface (27) are connected.
CP U (2+)は、システムプログラムメモリ(2
2)に予め格納されるシステムプログラムに基づいて、
二重コイルチエツク処理等を実行する。The CPU (2+) is the system program memory (2+).
2) Based on the system program stored in advance,
Executes double coil check processing, etc.
システムプログラムメモリ(22)は、二重コイルチエ
ツク処理等を上記CP U (21)に行なわせるシス
テムプログラムを格納する。このシステムプログラムに
基づいて表したものが、上記第1図の機能ブロック図で
ある。The system program memory (22) stores a system program that causes the CPU (21) to perform double coil check processing and the like. The functional block diagram shown in FIG. 1 above is based on this system program.
ユーザプログラムメモリ(23)は、ユーザがラダー図
に基づいて、プログラム変換したユーザプログラムを格
納する。また、データメモリ(24)は、検索した二重
コイルデータ等を一時的に格納する。The user program memory (23) stores a user program converted by the user based on the ladder diagram. Further, the data memory (24) temporarily stores searched double coil data and the like.
さらに、入力回路(25)は、各種スイッチ、あるいは
操作コイル等多数の入力信号源を有するものであり、出
力回路(26)は、多数の制御用リレーを装備している
。Further, the input circuit (25) has a large number of input signal sources such as various switches or operation coils, and the output circuit (26) is equipped with a large number of control relays.
周辺装置インターフェース(27)は、プログラマブル
・コントローラとその周辺装置であるプログラミング・
コンソール(28)間の電圧レベル等の整合を取ってい
る。The peripheral device interface (27) connects the programmable controller and its peripheral devices to the programming device.
Voltage levels, etc. between the consoles (28) are matched.
第4図は、プログラマブル・コントローラに接続される
プログラミング・コンソール(28)の操作パネル(2
1ia)を示す。Figure 4 shows the operation panel (28) of the programming console (28) connected to the programmable controller.
1ia).
操作パネル(28a)は、操作キー(28b)と表示器
(28c)とを備えている。The operation panel (28a) includes operation keys (28b) and a display (28c).
操作キー(28b)は、0〜9までの数字キー(28d
)と各種処理キー(28e)に別れており、数字キー(
28d)は、ユーザプログラムのデバッグ時等に操作者
が、プログラムステップの先頭プログラムステップ番号
等を入力するのに使用するものであり、各種処理キー(
28e)は、検索、修正処理等を行う場合に操作される
各種機能キーを備えている。The operation keys (28b) are number keys (28d) from 0 to 9.
) and various processing keys (28e), and numeric keys (
28d) is used by the operator to input the first program step number, etc. of the program step when debugging the user program, and various processing keys (
28e) includes various function keys that are operated when performing search, correction processing, etc.
表示器(28c)は、二重コイルを検索した結果、二重
コイルが存在すれば、該当するラダー図内の二重コイル
が存在する先頭プログラムステップ番号を表示しく第6
図(a)参照)、かつ二重コイルの修正要求メツセージ
を表示している(第6図(b)参照)。If a double coil exists as a result of searching for a double coil, the display (28c) will display the first program step number in which the double coil exists in the corresponding ladder diagram.
(See FIG. 6(a)), and a message requesting correction of the double coil is displayed (see FIG. 6(b)).
第5図は、二重コイルチエツク処理プログラムのフロー
チャートを示す。FIG. 5 shows a flowchart of the double coil check processing program.
まず、操作者により、二重コイルチエツク処理プログラ
ムが選択されると、CP U (21)は、予めデータ
メモリ(24)に格納されているユーザプログラムから
、二重コイルを順次検索する(ステップ■)。検索した
結果、ユーザプログラムにおいて、例えば、プログラム
ステップ番号100に二重コイルが存在する場合には、
CP U (21)は、「10〇 二重コイルあり」と
いうメツセージを操作パネル(28a)上の表示器(2
8c)に表示させる(ステップ■)、(第6図(a)参
照)。次に、CPU(21)は、このプログラムを修正
するか否かのメツセージ例えば、「修正をしますか?
(YES : INO:O)Jを表示器(28c)に表
示させる(ステップ■)、(第6図(b)参照)。操作
者は、上記表示メツセージを見て、上記プログラムを修
正するか否かを判断した後、修正する場合には、数字キ
ー (28d)から例えば「1」キーを入力し、また逆
に、修正しない場合には、例えば「0」キーを入力する
。ここで、「1」キーが入力されると、CP U (2
1)は、プログラム修正処理を実行する(ステップ■)
。例えば、第8図のプログラムを第2図に示すように、
プログラムステップ番号56及び101プログラムの論
理和を取り、プログラムステップ番号を連続させること
ができる。これにより、二重コイルを単一の回路構成に
する。First, when the operator selects the double coil check processing program, the CPU (21) sequentially searches for double coils from the user program stored in the data memory (24) in advance (step ①). ). As a result of the search, for example, if a double coil exists at program step number 100 in the user program,
The CPU (21) displays the message "100 double coils available" on the display (2) on the operation panel (28a).
8c) (step ■) (see FIG. 6(a)). Next, the CPU (21) sends a message asking whether or not to modify this program, such as "Do you want to modify it?"
(YES: INO:O) Display J on the display (28c) (step ■) (see FIG. 6(b)). The operator looks at the displayed message and decides whether or not to modify the program, and if so, inputs, for example, the "1" key from the number keys (28d), or vice versa. If not, for example, input the "0" key. Here, when the "1" key is input, the CPU (2
1) Executes program modification processing (step ■)
. For example, as shown in Figure 2, the program in Figure 8 is
Program step numbers 56 and 101 can be logically ORed to make the program step numbers consecutive. This turns the dual coils into a single circuit configuration.
これに応じて、プログラムステップ番号100以降のプ
ログラムを58以降に修正して連続したプログラムステ
ップ番号にする処理を実行する。In response to this, a process is executed to modify the program with program step numbers 100 and onwards to numbers 58 and onwards to make them continuous program step numbers.
「0」キーが入力されると、プログラム修正処理を実行
せず、ステップ■にジャンプする。次いで、CP U
(21)は、プログラム修正処理が終了したか否かを判
断する(ステップ■)。判断した結果、プログラム修正
処理が終了していなければ、ステップ■にジャンプして
、もう−度、二重コイルチエツク処理を繰り返す。また
逆に、プログラム修正処理が終了していると判断すれば
、二重コイルチエツク処理を終了する(ステップ■)。When the "0" key is input, the program jumps to step (2) without executing the program correction process. Then, the CPU
In (21), it is determined whether the program modification process has been completed (step ■). As a result of the judgment, if the program correction processing has not been completed, the program jumps to step (3) and repeats the double coil check processing once again. Conversely, if it is determined that the program correction process has been completed, the double coil check process is ended (step 2).
上記構成のプログラマブルφコントローラであれば、上
記第8図(b)で示されるユーザプログラムが検索、修
正等された結果、第2図(b)に示されるユーザプログ
ラムを得ることができる。すなわち、二重コイルが解消
され、プログラムステップ番号50〜60の間で1ステ
ツプ毎に連続したものとすることができ、簡略化された
見やすいプログラムとなっている。With the programmable φ controller having the above configuration, the user program shown in FIG. 2(b) can be obtained as a result of searching, modifying, etc. the user program shown in FIG. 8(b). That is, the double coil is eliminated, and each step between program step numbers 50 and 60 can be made continuous, resulting in a simplified and easy-to-read program.
したがって、ユーザは、二重コイルチエツク処理により
簡略化されたユーザプログラムをデバ、。Therefore, the user can simplify the user program by double coil check processing.
グすればよいので、デバッグすることを容易かつ効率的
に行うことができ、該デバッグに要する時間、及び労力
の軽減を図ることができる。Therefore, debugging can be performed easily and efficiently, and the time and labor required for debugging can be reduced.
尚、上記実施例では、プログラム修正処理が実行される
前に、プログラムを修正するか否かのメツセージ等を表
示するのみであるが、例えば、警報ブザーを鳴動させた
り、表示ランプを点滅させることが可能である等、この
発明の要旨を変更しない範囲内において、種々の設計変
更を施すことが可能である。In the above embodiment, before the program modification process is executed, only a message indicating whether or not to modify the program is displayed, but for example, an alarm buzzer may be sounded or a display lamp may be blinked. It is possible to make various design changes without changing the gist of the present invention.
〈発明の効果〉
以上のように、この発明のプログラマブル・コントロー
ラによれば、検索手段により、予め記憶手段に格納され
たユーザプログラムから、二重コイルを順次検索するこ
とができる。そして、修正手段により、二重コイルを単
一のコイルに修正することができるので、修正箇所に対
応するユーザプログラムは、1プログラムステツプ毎に
連続した見やすいものとなる。<Effects of the Invention> As described above, according to the programmable controller of the present invention, the search means can sequentially search for double coils from the user program stored in the storage means in advance. Since the double coil can be modified into a single coil by the modifying means, the user program corresponding to the modified part becomes an easy-to-read program that is continuous for each program step.
したがって、このようにして得られたユーザプログラム
に基づいてデバッグを行えば、デバッグは容品となり、
デバッグに要する時間、及び労力の軽減を図ることがで
き、ひいてはプログラムミスによる被制御対象の誤動作
を減少させることができるという特有の効果が得られる
。Therefore, if you debug based on the user program obtained in this way, the debugging will be fine.
It is possible to reduce the time and labor required for debugging, and the unique effects of reducing malfunctions of the controlled object due to program errors can be obtained.
第1図は本願発明の実施例に係るプログラマブル・コン
トローラの機能ブロック図、
第2図はプログラム修正処理を施した後のユーザプログ
ラム及びラダー図の一例、
第3図はプログラマブル・コントローラのハードウェア
構成図、
第4図はプログラミング・コンソールの操作パネルを示
す外観図、
第5図は二重コイルチエツク処理プログラムのフローチ
ャート、
第6図はプログラミング・コンソールの表示器に表示さ
れる表示例、
第7図は素子番号が誤使用されたユーザプログラム及び
ラダー図の一例、
第8図は二重コイルが存在するユーザプログラム及びラ
ダー図の一例。
(1)・・・入力部、(2)・・・表示部、(3)・・
・検索部、(4)・・・選択部、(5)・・・修正処理
部、
(21)・・・CPU。
(22)・・・システムプログラムメモリ、(23)・
・・ユーザプログラムメモリ、(24)・・・データメ
モリ、
(25)・・・入力回路、(26)・・・出力回路、(
27)・・・周辺装置インターフェース(G)
LD
ORNOT
ND
OUT
D
ND
LIT
ooBo。
D
D
AND NOT
D
ND
ORLD
AND LD
×001
OO2
×Oo3
×Oo4
100 LD N0T
101 LD
102 OUT
OO6
OO7
OI OFig. 1 is a functional block diagram of a programmable controller according to an embodiment of the present invention, Fig. 2 is an example of a user program and ladder diagram after program modification processing, and Fig. 3 is a hardware configuration of the programmable controller. Figure 4 is an external view showing the operation panel of the programming console, Figure 5 is a flowchart of the double coil check processing program, Figure 6 is an example of the display displayed on the display of the programming console, Figure 7 Figure 8 is an example of a user program and ladder diagram in which an element number is incorrectly used. Figure 8 is an example of a user program and ladder diagram in which a double coil is present. (1)...Input section, (2)...Display section, (3)...
- Search unit, (4)...Selection unit, (5)...Correction processing unit, (21)...CPU. (22)...System program memory, (23)...
...User program memory, (24)...Data memory, (25)...Input circuit, (26)...Output circuit, (
27)... Peripheral device interface (G) LD ORNOT ND OUT D ND LIT ooBo. D D AND NOT D ND ORLD AND LD ×001 OO2 ×Oo3 ×Oo4 100 LD N0T 101 LD 102 OUT OO6 OO7 OI O
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32275988A JPH02165305A (en) | 1988-12-20 | 1988-12-20 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32275988A JPH02165305A (en) | 1988-12-20 | 1988-12-20 | Programmable controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02165305A true JPH02165305A (en) | 1990-06-26 |
Family
ID=18147325
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32275988A Pending JPH02165305A (en) | 1988-12-20 | 1988-12-20 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02165305A (en) |
-
1988
- 1988-12-20 JP JP32275988A patent/JPH02165305A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0223882B2 (en) | ||
| JPH02165305A (en) | Programmable controller | |
| JP3196309B2 (en) | Industrial robot | |
| JPH0327926B2 (en) | ||
| JPH045703A (en) | Sequence program generating device | |
| JP3557479B2 (en) | Computer with check function | |
| JP2734176B2 (en) | How to create a sequence program | |
| JP3734379B2 (en) | Display panel | |
| JPH021014A (en) | Portable computer | |
| JPS62224805A (en) | Ladder diagram display system for program of sequence programmable controller | |
| JPH04105101A (en) | Abnormality processing form setting method for controller | |
| JPH08147261A (en) | Test mode execution device | |
| JPH08286734A (en) | Programmable display device | |
| JPS627563B2 (en) | ||
| JPH0719120B2 (en) | Programmable controller | |
| JPS609843Y2 (en) | Progressive programmable controller | |
| JPH01236309A (en) | Display device for numerical controller | |
| JP2526181Y2 (en) | Small electronic calculator | |
| JPH1097307A (en) | Sequencer operation verification device and medium recording sequencer operation verification program | |
| JP3067166B2 (en) | Digital controller | |
| JPH05324015A (en) | Programmable terminal | |
| JPS62269215A (en) | Password processor | |
| JPH09106312A (en) | How to update process control data | |
| JPH01200406A (en) | Program comparing device for programmable controller | |
| JPH03246602A (en) | Programmable controller |