JPH07248806A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH07248806A
JPH07248806A JP3994694A JP3994694A JPH07248806A JP H07248806 A JPH07248806 A JP H07248806A JP 3994694 A JP3994694 A JP 3994694A JP 3994694 A JP3994694 A JP 3994694A JP H07248806 A JPH07248806 A JP H07248806A
Authority
JP
Japan
Prior art keywords
program
memory
programmable controller
stored
command
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.)
Granted
Application number
JP3994694A
Other languages
Japanese (ja)
Other versions
JP3367197B2 (en
Inventor
Tomoyuki Otake
知之 大竹
Fuyuhiko Yoshikura
冬彦 吉倉
Kazuto Shibata
和人 柴田
Yoshinori Nishio
嘉典 西尾
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP03994694A priority Critical patent/JP3367197B2/en
Publication of JPH07248806A publication Critical patent/JPH07248806A/en
Application granted granted Critical
Publication of JP3367197B2 publication Critical patent/JP3367197B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To easily monitor and maintain a program in a PC. CONSTITUTION:A program including only basic instructions is stored in a memory 1 13, and a program including application instruction is stored in a memory 2 14. At the time of program execution, programs in memories 13 and 14 are transferred to a memory 0 12 and are combined, and this combined program is executed. In the case of monitor, contents of a working area memory 18 and the memory 1 13 are monitored Thus, only the program including basic instructions is monitored, and maintenance is facilitated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、記憶されているプログ
ラムを実行し、機械の動作を制御するプログラマブルコ
ントローラ(以下、PCという)、特にそのメンテナン
スの容易化に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (hereinafter referred to as a PC) for executing a stored program and controlling the operation of a machine, and more particularly to facilitating maintenance thereof.

【0002】[0002]

【従来の技術】従来より、各種の工場において、その製
造ラインの制御にPCが使用されている。例えば、自動
車の組立て、塗装等のラインにおいては、PCによって
各種機器(例えば、油圧アクチュエータの油圧制御用電
磁弁等)が制御されている。
2. Description of the Related Art Conventionally, PCs have been used in various factories to control their production lines. For example, in a vehicle assembly line, painting line, or the like, a PC controls various devices (for example, a hydraulic control solenoid valve of a hydraulic actuator).

【0003】そして、このようなPCには、単にオンオ
フ制御されるリレーコイルだけでなく、各種の動作を行
うNC(数値制御)装置等も接続される。このような場
合、プログラマブルコントローラにおけるプログラムに
は、数値処理を行うための多数の応用命令が必須とな
る。そこで、多数の命令や、数値制御に必要なデータの
やり取りを行うために必要なデータレジスタの割付け等
についての十分な理解がある者がPCが実行するプログ
ラムの開発、保守等を行っていた。
To such a PC is connected not only a relay coil which is simply controlled to be turned on and off, but also an NC (numerical control) device which performs various operations. In such a case, a program in the programmable controller requires a large number of application instructions for performing numerical processing. Therefore, a person who has a sufficient understanding of a large number of instructions and the allocation of data registers necessary for exchanging data necessary for numerical control has developed and maintained programs executed by the PC.

【0004】[0004]

【発明が解決しようとする課題】しかし、PCは、1つ
の製造ラインでも多数使用されるものであり、この保守
等はなるべく多数の人間が行えることが好ましい。
However, since many PCs are used in one production line, it is preferable that as many people as possible perform maintenance and the like.

【0005】本発明は、実行するプログラムの保守等を
容易に行うことができるプログラマブルコントローラを
提供することを目的とする。
It is an object of the present invention to provide a programmable controller which can easily maintain a program to be executed.

【0006】なお、プログラマブルコントローラにおい
て、プログラムを軸制御プログラムと制御プログラムに
別けて開発保守を行うことは特開平1−209503号
公報等に記載され、複数のプログラムの中から実行すべ
きプログラムを選択することは特開平3−71307号
公報などに記載されている。
In a programmable controller, development and maintenance of a program divided into an axis control program and a control program is described in JP-A-1-209503, etc., and a program to be executed is selected from a plurality of programs. What is done is described in JP-A-3-71307.

【0007】[0007]

【課題を解決するための手段】本発明は、記憶されてい
るプログラムを実行し、機械の動作を制御するプログラ
マブルコントローラにおいて、プログラムを分類して記
憶する記憶手段と、プログラムのモニタのための読み出
し指令を受けた場合に、予め定められた分類のプログラ
ムを自動的に選択して読み出し表示するモニタ手段と、
を有し、プログラムの種類に応じたメンテナンスが行え
ることを特徴とする。また、記憶手段は、複数のメモリ
からなり、プログラムはその種類に応じて、別のメモリ
に記憶されていることを特徴とする。
According to the present invention, in a programmable controller for executing a stored program and controlling the operation of a machine, a storage means for classifying and storing the program and a reading for monitoring the program. Monitor means for automatically selecting, reading and displaying a program of a predetermined classification when receiving a command,
And is capable of performing maintenance according to the type of program. Further, the storage means is composed of a plurality of memories, and the program is stored in another memory according to its type.

【0008】また、プログラムはその種類の応じて、領
域が割り当てられていることを特徴とする。
Further, the program is characterized in that areas are allocated according to its type.

【0009】また、プログラムは、リレーコイルのオン
オフ制御についての指令である基本プログラムと、単な
るオンオフではなく数値制御処理について指令である応
用プログラムの2種類であり、モニタ手段におけるモニ
タ動作においては、基本プログラムのみが自動的に選択
されることを特徴とする。
There are two types of programs, a basic program that is a command for ON / OFF control of the relay coil and an application program that is a command for numerical control processing instead of simple ON / OFF. It is characterized in that only programs are automatically selected.

【0010】また、プログラムは、標準化された指令に
ついての標準プログラムと、個々の設備に特有な指令に
ついての個別プログラムの2種類であり、モニタ手段に
おけるモニタ動作においては、個別プログラムのみが自
動的に選択されることを特徴とする。
Further, there are two types of programs, a standard program for standardized commands and an individual program for commands specific to each equipment. In the monitor operation of the monitor means, only the individual program is automatically operated. It is characterized by being selected.

【0011】[0011]

【作用】このように、本発明によれば、プログラムの内
容に応じて、プログラムを分類されている。このため、
モニタの際にその表示内容を制御することができる。そ
こで、比較的簡単な基本命令のみを含むプログラムのみ
を表示することによって、操作性を向上することができ
る。更に、所定のプログラムにおいては、その書き替え
を禁止することによって、誤ってプログラムが破壊され
ることを防止することができる。
As described above, according to the present invention, the programs are classified according to the contents of the programs. For this reason,
It is possible to control the display contents when monitoring. Therefore, the operability can be improved by displaying only the program including only the relatively simple basic command. Further, by prohibiting the rewriting of a predetermined program, it is possible to prevent the program from being accidentally destroyed.

【0012】[0012]

【実施例】以下、本発明の実施例について、図面に基づ
いて説明する。図1には、PCの全体構成を示す図であ
り、PC(CPU部)には、入力カード2及び出力カー
ド3が接続されている。そして、入力カード2には複数
のスイッチ4が接続され、出力カード3には複数のコイ
ル5が接続されている。そして、PC本体(CPU部)
1は、その内部にユーザプログラムを記憶しており、実
際の動作においては、このユーザプログラムをサイクリ
ックに実行する。すなわち、PC本体(CPU部)1
は、ユーザプログラムの実行に伴い、入力カード2を介
し、スイッチ4のオンオフ状態を取り込む。そして、こ
のオンオフ状態に応じて、所定の出力を出力カード3へ
供給する。これによって、出力に応じてコイル5に電流
が流れ、所望の処理が行われる。ここでスイッチ4は、
リミットスイッチや押ボタンスイッチ等であり、コイル
5は、そのオンオフによってアクチュエータの駆動を制
御する流量制御弁等がオンオフされる。そこで、上述の
ようなPC1のユーザプログラムの実行によってコイル
5がオンオフされ、アクチュエータに所望の動作を行わ
せることができる。さらに、PC本体1には、数値加工
を行うNC装置6も接続されており、このNC装置6の
動作もPC本体1により制御される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing the overall configuration of a PC, and an input card 2 and an output card 3 are connected to the PC (CPU section). A plurality of switches 4 are connected to the input card 2 and a plurality of coils 5 are connected to the output card 3. And the PC body (CPU part)
1 stores a user program therein, and cyclically executes this user program in an actual operation. That is, the PC main body (CPU section) 1
Captures the on / off state of the switch 4 via the input card 2 as the user program is executed. Then, according to this on / off state, a predetermined output is supplied to the output card 3. As a result, a current flows through the coil 5 according to the output, and desired processing is performed. Here, the switch 4 is
The coil 5 is a limit switch, a push button switch, or the like, and the coil 5 is turned on / off by turning on / off a flow control valve or the like for controlling the drive of the actuator. Therefore, the coil 5 is turned on and off by executing the user program of the PC 1 as described above, and the actuator can be caused to perform a desired operation. Further, an NC device 6 for performing numerical processing is also connected to the PC body 1, and the operation of the NC device 6 is also controlled by the PC body 1.

【0013】[第1実施例]図2は、第1実施例のPC
本体1の構成を示すブロック図である。このように、P
C本体1は、各種演算処理を行うCPU部11、ユーザ
プログラムを記憶するための0メモリ12、1メモリ1
3、2メモリ14、入出力カード2,3とのインターフ
ェースとして機能する入出力部15、周辺ツール17と
のインターフェースである周辺ツールインターフェース
部16、各種処理の際に、必要なデータの記憶を行うワ
ーキングエリアメモリ18及びシステムプログラム等が
予め記憶されているROM部19、外部のNC装置6と
の通信を行うための通信部20からなっている。そし
て、本実施例においては、CPU部11の内部に合体実
行部11aが設けられ、ROM部19の内部に合体処理
ルーチン19aが設けられている。通信部20は、外部
のNC装置と接続するためのものであって、所定の通信
回路を通じて信号の送受信を行う。
[First Embodiment] FIG. 2 shows a PC according to the first embodiment.
3 is a block diagram showing the configuration of the main body 1. FIG. Thus, P
The C main body 1 includes a CPU unit 11 for performing various arithmetic processes, a 0 memory 12 for storing a user program, and a 1 memory 1
3, 2 memory 14, an input / output unit 15 that functions as an interface with the input / output cards 2 and 3, a peripheral tool interface unit 16 that is an interface with the peripheral tool 17, and stores necessary data during various processes. It comprises a working area memory 18, a ROM section 19 in which system programs and the like are stored in advance, and a communication section 20 for communicating with the external NC device 6. Further, in the present embodiment, the CPU 11 is provided with a merge execution unit 11a, and the ROM unit 19 is provided with a merge processing routine 19a. The communication unit 20 is for connecting to an external NC device, and transmits and receives signals through a predetermined communication circuit.

【0014】そして、図3に示すように、1メモリ13
と、2メモリ14にはそれぞれ別のプログラムであるプ
ログラムAとプログラムBがそれぞれ記憶されており、
0メモリ12にはこれらプログラムAとプログラムBが
合体されたプログラムであるプログラムCが記憶されて
いる。
Then, as shown in FIG.
, 2 memory 14 stores different programs A and B, respectively,
The 0 memory 12 stores a program C, which is a combined program of these programs A and B.

【0015】ここで、本実施例においては、1メモリ1
3は、ON,OFF等の基本命令のみからなる設備制御
用のプログラムが記憶されているメモリであり、2メモ
リ14は、MOVE等の応用命令を含む数値制御用のプ
ログラムが記憶されているメモリである。
Here, in this embodiment, one memory 1
Reference numeral 3 is a memory in which a program for equipment control consisting only of basic instructions such as ON and OFF is stored, and 2 is memory 14 in which a program for numerical control including application instructions such as MOVE is stored. Is.

【0016】このように、本実施例においては、1メモ
リ13には、基本命令のみで作成されたプログラムが記
憶されなければならない。操作者は、周辺ツール17を
利用して、ユーザプログラムを作成する。そして、作成
したプログラムをPC内部のメモリに書き込むが、この
とき基本命令のみで構成されるプログラムを書き込む場
合には、1メモリ13への書き込みを指令する。これに
よって、周辺ツール17から入力されたプログラムは周
辺ツールインターフェース部16を介し、1メモリ13
に記憶される。
As described above, in this embodiment, the one memory 13 must store the program created only by the basic instructions. The operator uses the peripheral tool 17 to create a user program. Then, the created program is written in the memory inside the PC. At this time, when writing the program composed of only the basic instructions, the writing to one memory 13 is instructed. As a result, the program input from the peripheral tool 17 is transferred to the 1 memory 13 via the peripheral tool interface section 16.
Memorized in.

【0017】一方、応用命令を含んでいるプログラムを
作成した場合には、そのプログラムを周辺ツール17か
ら2メモリ14に書き込む。このような、どのメモリに
書き込むかの選択は、操作者が周辺ツール17にて行
う。
On the other hand, when the program including the application instruction is created, the program is written from the peripheral tool 17 to the 2 memory 14. The selection of which memory to write in is performed by the operator using the peripheral tool 17.

【0018】次に、電源投入時又はリセット時において
は、図4に示すように、まず1メモリ13の内容をチェ
ックし、応用命令があるか否かを判定する(S11)。
そして、応用命令が含まれていた場合には、応用命令が
含まれていること、どの命令が含まれているか、またそ
の位置について等の表示を行う。このようにして、電源
投入時又はリセット時に、1メモリ13に応用命令が含
まれていないかをチェックするため、1メモリ13に応
用命令が含まれていないことがなくなる。
Next, when the power is turned on or at the time of reset, as shown in FIG. 4, first, the contents of one memory 13 are checked to determine whether or not there is an application instruction (S11).
When the application command is included, the display that the application command is included, which command is included, and the position thereof is displayed. In this way, when the power is turned on or the reset is performed, it is checked whether the application instruction is not included in the one memory 13, so that the application instruction is not included in the one memory 13.

【0019】一方、基本命令のみであった場合には、1
メモリ13の内容を0メモリ12へ転送すると共に、2
メモリ14の内容を0メモリ12へ転送する(S12,
S13)。このプログラムの0メモリ12への転送は、
CPU部11の合体実行部11aが、ROM部19の合
体処理ルーチン19aを実行することにより、行われ
る。
On the other hand, if there is only a basic instruction, 1
The contents of the memory 13 are transferred to the 0 memory 12 and 2
The contents of the memory 14 are transferred to the 0 memory 12 (S12,
S13). Transfer of this program to the 0 memory 12
This is performed by the merge execution unit 11a of the CPU unit 11 executing the merge processing routine 19a of the ROM unit 19.

【0020】ここで、1メモリ13に記憶されているプ
ログラムと、2メモリ14に記憶されているプログラム
の結合方法であるが、1メモリ13及び2メモリ14に
記憶されているプログラムは、いずれもSTART命
令、プログラム部、END命令によって構成されてい
る。そこで、1メモリ13からプログラムを転送する場
合には、この中のEND命令を消去する。一方、2メモ
リ14からのプログラムについては、START命令を
消去する。そして、0メモリ12内においては、STA
RT命令の後に、1メモリ13及び2メモリ14に記憶
されているプログラム部分が連結されて、その後にEN
D命令が書き込まれるため、1本のプログラムとするこ
とができる。
Here, the method of combining the programs stored in the one memory 13 and the programs stored in the two memories 14 is as follows. The programs stored in the one memory 13 and the two memories 14 are both It is composed of a START instruction, a program section, and an END instruction. Therefore, when transferring a program from one memory 13, the END instruction in the program is erased. On the other hand, for the program from the 2 memory 14, the START instruction is erased. In the 0 memory 12, the STA is
After the RT instruction, the program parts stored in the 1st memory 13 and the 2nd memory 14 are linked, and then the EN
Since the D instruction is written, it can be a single program.

【0021】次に、実際のPCの動作中におけるモニタ
は、合体後のプログラムが記憶されている0メモリ12
のプログラムとワーキングエリアメモリ18における動
作をみる必要がある。しかし、0メモリ12のプログラ
ム部分の内容は、1メモリ13と、2メモリ14の内容
と同一である。そこで、本実施例では、1メモリ13内
にあるプログラムとワーキングエリアメモリ18を周辺
ツール17でモニタすることにより、実動作のモニタが
行われる。
Next, the monitor during the actual operation of the PC is the 0 memory 12 in which the program after the combination is stored.
It is necessary to see the program and the operation in the working area memory 18. However, the contents of the program portion of the 0 memory 12 are the same as the contents of the 1 memory 13 and the 2 memory 14. Therefore, in the present embodiment, the actual operation is monitored by monitoring the program and working area memory 18 in one memory 13 with the peripheral tool 17.

【0022】すなわち、1メモリ13に記憶されている
設備制御用のプログラムは内容が比較的簡単であるた
め、本実施例では、実動作のモニタの際に、自動的に1
メモリを選択し、その内容を周辺ツールに表示する。
That is, since the facility control program stored in one memory 13 has a relatively simple content, in the present embodiment, the program is automatically set to 1 when monitoring the actual operation.
Select the memory and display the contents in the peripheral tools.

【0023】ここで、図5に示すように、0メモリ12
に記憶されているプログラムは、1メモリ13及び2メ
モリ14のプログラムが連結されたものである。そし
て、これらは図に示すようなシーケンス回路で表示され
る。一方、ワーキングエリアメモリ18内におけるプロ
グラムは、プログラム言語で書かれたものである。
Here, as shown in FIG.
The program stored in 1 is a combination of the programs of 1 memory 13 and 2 memory 14. Then, these are displayed by a sequence circuit as shown in the figure. On the other hand, the program in the working area memory 18 is written in a programming language.

【0024】そして、本実施例では、1メモリ13の内
容と、ワーキングエリアメモリ18の内容のみからモニ
タされる。1メモリ13に記憶されているのは、この例
において基本命令のみであるため、その確認は非常に容
易であるため、エラーの原因やその対処等にそれほど熟
練していない者によっても、行うことができる。なお、
2メモリ14の内容のみをチェックすればよい場合もあ
る。このような場合において、本実施例では、応用プロ
グラムのみのチェックも行うことができる。
In this embodiment, only the contents of the one memory 13 and the contents of the working area memory 18 are monitored. Since only the basic instructions are stored in one memory 13 in this example, the confirmation thereof is very easy. Therefore, even a person who is not very skilled in the cause of the error and the coping therewith can perform the operation. You can In addition,
In some cases, only the contents of the two memories 14 need to be checked. In such a case, in the present embodiment, it is possible to check only the application program.

【0025】更に、このように1メモリ13と2メモリ
14が別のメモリとして構成されているため、いずれか
一方については書き換え不能とすることによってそのプ
ログラム内容を保持し、書き替えられてしまうことを防
止することができる。
Further, since the 1st memory 13 and the 2nd memory 14 are configured as separate memories in this way, the program contents are held and rewritten by making one of them unrewritable. Can be prevented.

【0026】また、上記例においては、1メモリ13
と、2メモリ14に、基本命令のみからなるプログラム
と応用命令を含むプログラムを別々に記憶したが、これ
に限らず、一方に標準化された書き替え禁止のプログラ
ムを記憶し、他方にそのPC特有のプログラムを記憶
し、このPCの特有のプログラムのみをモニタおよび書
き替え可能とするのも効果的である。
In the above example, one memory 13
The two memory 14 separately store the program including only the basic instruction and the program including the application instruction. However, the present invention is not limited to this, and the standardized rewrite-prohibited program is stored in one side and the PC specific to the other side. It is also effective to store the above program and monitor and rewrite only the program unique to this PC.

【0027】[第2実施例]図6に、本発明の第2実施
例の構成を示す。本実施例のPCは、CPU31、メモ
リ32、入出力部33、周辺ツールI/F部34、ワー
キングメモリ35、ROM42からなっている。そし
て、CPU31は、その内部にLABEL判別部31a
を有しており、入出力部33は、その内部にLABEL
切替部33aを有しており、ROM42は、LABEL
処理ルーチン42aを有している。また、周辺ツールI
/F部34には、周辺ツール36が接続されている。こ
のような装置において、ユーザプログラム等は周辺ツー
ル36を利用して作成され、これが周辺ツールI/F部
34を介しメモリ32に記憶される。
[Second Embodiment] FIG. 6 shows the configuration of a second embodiment of the present invention. The PC of this embodiment includes a CPU 31, a memory 32, an input / output unit 33, a peripheral tool I / F unit 34, a working memory 35, and a ROM 42. Then, the CPU 31 has the LABEL determination unit 31a therein.
And the input / output unit 33 has a LABEL inside.
It has a switching unit 33a, and the ROM 42 is a LABEL.
It has a processing routine 42a. Also, peripheral tools I
A peripheral tool 36 is connected to the / F section 34. In such a device, a user program or the like is created using the peripheral tool 36, and this is stored in the memory 32 via the peripheral tool I / F unit 34.

【0028】ここで、この記憶されるユーザプログラム
は、そのプログラムが基本命令のみを含むプログラム
か、応用命令を含むプログラムかによってLABELを
付けて入力する。そして、図7のメモリマップに示すよ
うに、CPU31のLABEL判別部31aは、このL
ABELを認識し、基本命令のみのプログラム38と応
用命令を含むプログラム39がそのLABELで識別し
て、メモリ32に記憶する。この例においては、ステッ
プ002からステップ018までが基本命令のみを含む
プログラム38であり、ステップ021からステップ1
09までが応用命令を含む数値制御部のプログラム39
である。そして、メモリ32においては、ステップ00
0のSTARTの後、ステップ001でLABEL識別
用のLABEL1が記憶され、ステップ019にはLA
BEL1のプログラムが終了したことを示すものとし
て、LABEL ENDが記憶され、ステップ020に
はLABEL2が記憶され、ステップ110にはLAB
EL ENDが記憶される。そして、ステップ111が
プログラムの終了を示すENDである。
Here, the stored user program is inputted with LABEL depending on whether the program contains only basic instructions or application instructions. Then, as shown in the memory map of FIG.
The ABEL is recognized, and the program 38 including only the basic instruction and the program 39 including the application instruction are identified by the LABEL and stored in the memory 32. In this example, steps 002 to 018 are a program 38 containing only basic instructions, and steps 021 to 1
Numerical control program 39 up to 09 includes application instructions
Is. Then, in the memory 32, step 00
After START of 0, LABEL1 for LABEL identification is stored in step 001, and LA is identified in step 019.
LABEL END is stored to indicate that the program of BEL1 is completed, LABEL2 is stored in step 020, and LAB is stored in step 110.
EL END is stored. Then, step 111 is END indicating the end of the program.

【0029】そして、PCの動作としては、電源投入時
及びリセット時には、上述した例と同様に基本命令のみ
が設備制御部のプログラム38に使用されているかどう
かのチェックを行う。そして、このチェックが終了し、
正常であった場合には、図8に示すようにメモリ32内
に記憶されているプログラムを順次実行する。すなわ
ち、最も若いステップの実行を行い(S21)、次にE
ND命令か否かを判定し(S22)、END命令でなけ
れば次のステップの命令を実行し(S21)、そして、
S22においてEND命令であった場合に、START
命令へ戻る(S23)。これによって、メモリ32に記
憶されているステップ000「START」〜ステップ
111「END」間でのプログラムが繰り返し実行され
ることとなる。
Then, as the operation of the PC, when the power is turned on and at the time of resetting, it is checked whether or not only the basic command is used in the program 38 of the equipment control unit as in the above-mentioned example. And this check is over,
If it is normal, the programs stored in the memory 32 are sequentially executed as shown in FIG. That is, the youngest step is executed (S21), and then E
It is determined whether the command is the ND command (S22), and if it is not the END command, the command of the next step is executed (S21), and
If it is an END instruction in S22, START
Return to the command (S23). As a result, the program stored in the memory 32 between step 000 “START” and step 111 “END” is repeatedly executed.

【0030】ここで、本実施例においては、モニタを行
うために、メモリ32内のLABEL1の命令、すなわ
ち、設備制御部のプログラム38のみが周辺ツール36
に転送されている。すなわち、図9に示すように、ST
ART命令を読み込み(S31)、LABEL1を読み
込んだ後は、LABEL1ENDになるまで次のステッ
プを読み込む(S33,S34)。これによって、周辺
ツール36側において、メモリ32内の基本命令のみか
ら構成される設備制御プログラム38が読み込まれるこ
ととなる。従って、周辺ツール36は、内部に記憶され
ている設備制御部のプログラム38の内容と、周辺ツー
ルI/F34を介し、ワーキングメモリ35の内容をモ
ニタすることによって、図10に示すように基本命令の
みのプログラムとワーキングメモリ35における実際の
プログラムの両方を比較してモニタすることができる。
Here, in this embodiment, in order to perform monitoring, only the instruction of LABEL 1 in the memory 32, that is, the program 38 of the equipment control unit, is used as the peripheral tool 36.
Have been transferred to. That is, as shown in FIG.
After reading the ART command (S31) and LABEL1, the next step is read until LABEL1END is reached (S33, S34). As a result, on the peripheral tool 36 side, the equipment control program 38 composed of only the basic instructions in the memory 32 is read. Therefore, the peripheral tool 36 monitors the contents of the program 38 of the equipment control unit stored therein and the contents of the working memory 35 via the peripheral tool I / F 34, and as shown in FIG. Both the only program and the actual program in working memory 35 can be compared and monitored.

【0031】更に、本実施例においては、入出力部33
にLABEL切替部33aが設けられている。そして、
このLABEL切替部33aに接続されているスイッチ
の状況に応じて、上述のようにして周辺ツール36に転
送するプログラムを変更することができる。すなわち、
スイッチにおいてLABEL1を選択している場合に
は、設備制御プログラム38が周辺ツール36に転送さ
れ、このモニタが行われ、スイッチ33bがLABEL
2側に切り替えられていた場合には、周辺ツール36に
数値制御部のプログラム39が転送され、このモニタが
行われることとなる。
Further, in this embodiment, the input / output unit 33
Is provided with a LABEL switching unit 33a. And
As described above, the program transferred to the peripheral tool 36 can be changed according to the status of the switch connected to the LABEL switching unit 33a. That is,
When LABEL1 is selected in the switch, the equipment control program 38 is transferred to the peripheral tool 36, this monitoring is performed, and the switch 33b is set in LABEL.
If it has been switched to the 2 side, the program 39 of the numerical control unit is transferred to the peripheral tool 36, and this monitoring is performed.

【0032】なお、上述の第1実施例と同様に、標準化
プログラムと、個別プログラムに分類して、LABEL
割付けても良い。
As in the first embodiment, the LABEL is classified into a standardized program and an individual program.
You may allocate it.

【0033】[第3実施例]更に、LABELの処理を
周辺ツール36側において行うこともできる。すなわ
ち、メモリ32内の内容を全て周辺ツール36側に転送
しておき、周辺ツール36内部で表示する際に表示の範
囲をLABELに応じて制御することができる。周辺ツ
ール36の内部のプログラムにおいて、LABELを認
識できるようにしておけば、このようなことができる。
[Third Embodiment] Further, the LABEL processing can be performed on the side of the peripheral tool 36. That is, it is possible to transfer all the contents in the memory 32 to the peripheral tool 36 side and control the display range according to the LABEL when displaying the contents inside the peripheral tool 36. If the LABEL can be recognized by the program inside the peripheral tool 36, this can be done.

【0034】そこで、これについて図11、図12に基
づいて説明する。まず、プログラムの周辺ツール36へ
の転送は、周辺ツール36において周辺ツールI/F部
34を介しメモリ32の読み込みを実施する。そして、
まずSTART命令を読み込み(S50)、次に、LA
BELを読み込み(S51)。次に、LABELのステ
ップナンバーを記憶し(S52)、順次次のステップを
LABEL ENDまで読み込んでいく(S53,5
4)。そして、LABEL ENDになった場合には、
LABEL ENDのステップナンバーを記憶する(S
55)。そして、S51に戻り次のLABELを読み込
む。このようにして、LABELの読み込みを行った後
は、そのLABELに対応するプログラムのステップナ
ンバーのSTART番号及びEND番号を記憶する。
Therefore, this will be described with reference to FIGS. 11 and 12. First, the transfer of the program to the peripheral tool 36 is performed by reading the memory 32 via the peripheral tool I / F unit 34 in the peripheral tool 36. And
First, read the START command (S50), then LA
Read BEL (S51). Next, the LABEL step number is stored (S52), and the next step is sequentially read until LABEL END (S53, 5).
4). And when it becomes LABEL END,
Store the LABEL END step number (S
55). Then, the process returns to S51 to read the next LABEL. After the LABEL is read in this way, the START number and END number of the step number of the program corresponding to the LABEL are stored.

【0035】そして、モニタの際には、周辺ツールの操
作者によるLABELナンバーの入力に応じ、そのLA
BELの各ステップナンバーの内容を表示する(S5
6)。そして、LABELENDのステップナンバーに
至った場合には表示を終了する。一方、ENDに至って
いなかった場合には、次のステップナンバーに進め(S
58)、その内容を表示する(S59)。このようにし
て、LABELのナンバーの入力に応じてそのLABE
Lナンバーに対応したプログラムのみを表示することが
できる。
Then, at the time of monitoring, the LA of the LA is input according to the input of the LABEL number by the operator of the peripheral tool.
Display the contents of each step number of BEL (S5
6). When the LABELEND step number is reached, the display ends. On the other hand, if END has not been reached, proceed to the next step number (S
58), the contents are displayed (S59). In this way, depending on the input of the LABEL number, the LABE
Only the program corresponding to the L number can be displayed.

【0036】このように、プログラムの内容表示をLA
BELのナンバーに応じて自由に設定することができる
ため、プログラム内容が比較的簡単な設備制御プログラ
ムのみの表示を行うことができ、モニタの内容を簡単な
もののみとすることができる。そこで、熟練していない
者においても、エラー発生の際等にプログラムのチェッ
クを行うことができる。
In this way, the contents of the program are displayed in LA
Since it can be freely set according to the BEL number, only the facility control program whose program content is relatively simple can be displayed, and the monitor content can be only simple. Therefore, even an unskilled person can check the program when an error occurs.

【0037】この実施例の場合も上述の場合と同様に、
プログラムの種類に応じて、書き替えを禁止したり、プ
ログラムを標準化されたものと、個別のものに分類して
も良い。
Also in the case of this embodiment, as in the case described above,
Rewriting may be prohibited or the programs may be classified into standardized programs and individual programs according to the type of program.

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
プログラムの内容に応じて、プログラムを分類し、その
表示内容を制御することができる。そこで、比較的簡単
な基本命令のみを含むプログラムのみを表示することに
よって、操作性を向上することができる。更に、所定の
プログラムにおいては、その書き替えを禁止することに
よって、誤ってプログラムが破壊されることを防止する
ことができる。
As described above, according to the present invention,
It is possible to classify programs according to the contents of the programs and control the display contents. Therefore, the operability can be improved by displaying only the program including only the relatively simple basic command. Further, by prohibiting the rewriting of a predetermined program, it is possible to prevent the program from being accidentally destroyed.

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

【図1】PCの全体構成を示す図である。FIG. 1 is a diagram showing an overall configuration of a PC.

【図2】PCの内部構成を示すブロック図である。FIG. 2 is a block diagram showing an internal configuration of a PC.

【図3】第1〜2メモリの内容を示す説明図である。FIG. 3 is an explanatory diagram showing contents of first and second memories.

【図4】合体処理のフローチャートである。FIG. 4 is a flowchart of a merge process.

【図5】合体処理後のモニタ動作の説明図である。FIG. 5 is an explanatory diagram of a monitor operation after a merge process.

【図6】第2実施例の内部構成を示すブロック図であ
る。
FIG. 6 is a block diagram showing an internal configuration of a second embodiment.

【図7】メモリ3の内容を示す説明図である。FIG. 7 is an explanatory diagram showing contents of a memory 3.

【図8】プログラム実行時の動作を示すフローチャート
である。
FIG. 8 is a flowchart showing an operation when a program is executed.

【図9】モニタのためのメモリの内容の読み込み処理を
示すフローチャートである。
FIG. 9 is a flowchart showing a process of reading the contents of a memory for a monitor.

【図10】モニタ時における周辺ツール36における表
示を示す説明図である。
FIG. 10 is an explanatory diagram showing a display on the peripheral tool during monitoring.

【図11】第3実施例におけるモニタのためのメモリ内
のデータ読み込みのフローチャートである。
FIG. 11 is a flowchart of reading data in a memory for monitoring in the third embodiment.

【図12】LABEL毎の表示の動作を示すフローチャ
ートである。
FIG. 12 is a flowchart showing a display operation for each LABEL.

【符号の説明】[Explanation of symbols]

1,37 PC本体 2 入力カード 3 出力カード 4 スイッチ 5 コイル 6 NC装置 11 CPU 12〜14,32 メモリ 15,33 入出力部 16,36 周辺ツール 1,37 PC main body 2 Input card 3 Output card 4 Switch 5 Coil 6 NC device 11 CPU 12-14, 32 Memory 15, 33 Input / output unit 16, 36 Peripheral tool

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 19/4155 7531−3H G05B 19/18 W 7531−3H V (72)発明者 西尾 嘉典 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location G05B 19/4155 7531-3H G05B 19/18 W 7531-3H V (72) Inventor Yoshinori Nishio Aichi 1 Toyota Town, Toyota City, Japan Toyota Motor Co., Ltd.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 記憶されているプログラムを実行し、機
械の動作を制御するプログラマブルコントローラにおい
て、 プログラムを分類して記憶する記憶手段と、 プログラムのモニタのための読み出し指令を受けた場合
に、予め定められた分類のプログラムを自動的に選択し
て読み出し表示するモニタ手段と、 を有し、プログラムの種類に応じたメンテナンスが行え
ることを特徴とするプログラマブルコントローラ。
1. A programmable controller for executing a stored program to control the operation of a machine, wherein a storage means for classifying and storing the program and a read command for monitoring the program are received in advance. A programmable controller characterized in that it has a monitor means for automatically selecting, reading and displaying a program of a predetermined classification, and performing maintenance according to the type of program.
【請求項2】 請求項1に記載のプログラマブルコント
ローラにおいて、 記憶手段は、複数のメモリからなり、プログラムはその
種類に応じて、別のメモリに記憶されていることを特徴
とするプログラマブルコントローラ。
2. The programmable controller according to claim 1, wherein the storage means comprises a plurality of memories, and the program is stored in another memory according to its type.
【請求項3】 請求項1に記載のプログラマブルコント
ローラにおいて、 プログラムはその種類の応じて、領域が割り当てられて
いることを特徴とするプログラマブルコントローラ。
3. The programmable controller according to claim 1, wherein an area is allocated to the program according to its type.
【請求項4】 請求項1〜3のいずれかに記載のプログ
ラマブルコントローラにおいて、 プログラムは、リレーコイルのオンオフ制御についての
指令である基本プログラムと、単なるオンオフではなく
数値制御処理について指令である応用プログラムの2種
類であり、 モニタ手段におけるモニタ動作においては、基本プログ
ラムのみが自動的に選択されることを特徴とするプログ
ラマブルコントローラ。
4. The programmable controller according to claim 1, wherein the program is a basic program that is a command for ON / OFF control of a relay coil, and an application program that is a command for numerical control processing, not just ON / OFF. The programmable controller is characterized in that only the basic program is automatically selected in the monitor operation of the monitor means.
【請求項5】 請求項1〜3のいずれかに記載のプログ
ラマブルコントローラにおいて、 プログラムは、標準化された指令についての標準プログ
ラムと、個々の設備に特有な指令についての個別プログ
ラムの2種類であり、 モニタ手段におけるモニタ動作においては、個別プログ
ラムのみが自動的に選択されることを特徴とするプログ
ラマブルコントローラ。
5. The programmable controller according to claim 1, wherein the program is of two types: a standard program for standardized commands and an individual program for commands specific to each facility. A programmable controller characterized in that only individual programs are automatically selected in the monitor operation of the monitor means.
JP03994694A 1994-03-10 1994-03-10 Programmable controller Expired - Fee Related JP3367197B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03994694A JP3367197B2 (en) 1994-03-10 1994-03-10 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03994694A JP3367197B2 (en) 1994-03-10 1994-03-10 Programmable controller

Publications (2)

Publication Number Publication Date
JPH07248806A true JPH07248806A (en) 1995-09-26
JP3367197B2 JP3367197B2 (en) 2003-01-14

Family

ID=12567130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03994694A Expired - Fee Related JP3367197B2 (en) 1994-03-10 1994-03-10 Programmable controller

Country Status (1)

Country Link
JP (1) JP3367197B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227873A (en) * 2004-02-10 2005-08-25 Fanuc Ltd Programmable sequence controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227873A (en) * 2004-02-10 2005-08-25 Fanuc Ltd Programmable sequence controller

Also Published As

Publication number Publication date
JP3367197B2 (en) 2003-01-14

Similar Documents

Publication Publication Date Title
US4542452A (en) Programmable controller
US7102622B2 (en) Production equipment monitoring device
US4019175A (en) Program changeable sequence controller
JP4883314B2 (en) Data trace system using PLC
US6629165B1 (en) Programmable controller including intelligent module
JP3367197B2 (en) Programmable controller
JPH103307A (en) Numerical controller
JP4566904B2 (en) System, control program and recording medium recording the program, and image data creation program and recording medium recording the program
US6285921B1 (en) Robot control apparatus with function for robot backward operation
JP2007179112A5 (en)
JPH0857644A (en) Assignment use method of welding equipment in welding robot system
JPH06242819A (en) Signal state control system for programmable controller
JPS6350727B2 (en)
JP3659399B2 (en) Programmable logic controller
JP3476391B2 (en) Programmable display device
JP3392663B2 (en) Programmable display
JP2525006B2 (en) PMC control system
JPS62154102A (en) Program writer
JPH10268914A (en) Programmable controller
JP2009522630A (en) Method for controlling a modular production machine composed of apparatus and components
JPH04330532A (en) Programmable controller
JPH08106309A (en) Programmable controller
JPH1011294A (en) Programmable controller
JPH02171802A (en) Programmable controller
JPH10105226A (en) Programmable display device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20081108

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees