JPH11259308A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH11259308A
JPH11259308A JP6142898A JP6142898A JPH11259308A JP H11259308 A JPH11259308 A JP H11259308A JP 6142898 A JP6142898 A JP 6142898A JP 6142898 A JP6142898 A JP 6142898A JP H11259308 A JPH11259308 A JP H11259308A
Authority
JP
Japan
Prior art keywords
sequence
memory
user program
execution
changed
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
JP6142898A
Other languages
Japanese (ja)
Inventor
Makoto Tofuru
誠 登古
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6142898A priority Critical patent/JPH11259308A/en
Publication of JPH11259308A publication Critical patent/JPH11259308A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable controller with which the execution contents of a sequence can be changed without affecting the execution of the sequence. SOLUTION: Concerning the programmable controller with which a user program language inherent in a machine type is provided, a user program is compiled into a microcomputer language and a microcomputer 8 executes the sequence designated by the user program, since processing from the acceptance of an instruction reloading command at the microcomputer 8 to the reloading of memories 1 and 2 is executed by the processing of an ordinary programmer interface circuit 9 under sequence execution, when the user program is changed in the middle of sequence execution, all the user programs are compiled again and the execution contents of the sequence can be changed without affecting the sequence execution.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ユーザプログラム
をマイコン言語にコンパイルして、マイコンがユーザプ
ログラムで指定されたシーケンスを実行するプログラマ
ブルコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller that compiles a user program into a microcomputer language and causes the microcomputer to execute a sequence specified by the user program.

【0002】[0002]

【従来の技術】従来、プログラマブルコントローラとし
て次のような構成のものがある。すなわち、機種固有の
ユーザプログラム言語をマイコン言語にコンパイルし
て、マイコンがユーザプログラムで指定されたシーケン
スを実行するものである。この場合、ユーザプログラム
言語とマイコン言語とのword数が一対一の関係でな
いため、シーケンス実行中のユーザプログラムの変更
は、ユーザプログラム言語とマイコン言語のword数
が同一で、かつ他の命令に依存しない命令語のみ変更可
能であつた。
2. Description of the Related Art Conventionally, there is a programmable controller having the following configuration. That is, the user program language specific to the model is compiled into the microcomputer language, and the microcomputer executes the sequence specified by the user program. In this case, since the word numbers of the user program language and the microcomputer language are not in a one-to-one relationship, the change of the user program during the execution of the sequence depends on other instructions having the same word number of the user program language and the microcomputer language. Only the instruction words not to be changed could be changed.

【0003】また、ユーザプログラム言語の命令語に付
属し、シーケンス実行時に更新される微分情報(微分命
令の実行を制御する情報:前回値)は、コンパイル時に
全て初期化されるものであった。
Further, differential information (information for controlling the execution of the differential instruction: previous value) attached to the instruction word of the user program language and updated at the time of executing the sequence is all initialized at the time of compilation.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、シーケ
ンス実行中のユーザプログラム変更においては、無変更
部分の微分情報の初期化(クリア)が行われると、ユー
ザプログラムの意図したものと異なるシーケンス実行と
なる。本発明は、シーケンス実行に影響を与えることな
く、シーケンスの実行内容を変更できるプログラマブル
コントローラを提供することを目的とする。
However, when the user program is changed during the execution of the sequence, if the initialization (clearing) of the differential information of the unchanged portion is performed, the sequence will be executed differently from the one intended by the user program. . An object of the present invention is to provide a programmable controller that can change the execution content of a sequence without affecting the execution of the sequence.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するた
め、請求項1に対応する発明は、機種固有のユーザプロ
グラム言語を備え、ユーザプログラムをマイコン言語に
コンパイルして、マイコンがユーザプログラムで指定さ
れたシーケンスを実行するプログラマブルコントローラ
において、シーケンス実行中にユーザプログラムが変更
された場合に変更部分または全てのユーザプログラムを
再コンパイルを実行して、シーケンス実行に影響を与え
ることなくシーケンスの実行内容を変更できるようにし
たことを特徴とするプログラマブルコントローラであ
る。
In order to achieve the above object, an invention according to claim 1 comprises a model-specific user program language, compiles the user program into a microcomputer language, and specifies the microcomputer with the user program. When the user program is changed during the execution of the sequence, the changed part or all the user programs are recompiled in the programmable controller that executes the executed sequence, and the execution contents of the sequence are executed without affecting the sequence execution. A programmable controller characterized in that it can be changed.

【0006】前記目的を達成するため、請求項2に対応
する発明は、少なくとも第1及び第2のメモリを備え、
このうち第1のメモリには前記ユーザプログラムを保存
し、該第2のメモリに前記コンパイルしたマイコン言語
を保存させ、前記第1のメモリによりシーケンスを実行
している際中に、前記ユーザプログラムの変更指令が入
力されたとき、前記第2のメモリにおいてコンパイルを
実行し、かつ該コンパイル結果を該第2のメモリに保存
し、該第2のメモリに保存が完了した後、前記第1のメ
モリにより実行されていたシーケンスを前記第2のメモ
リに切り換えて行うようにしたことを特徴とする請求項
1記載のプログラマブルコントローラである。
In order to achieve the above object, an invention according to claim 2 includes at least first and second memories,
The user program is stored in the first memory, the compiled microcomputer language is stored in the second memory, and the sequence of the user program is executed during execution of the sequence by the first memory. When a change command is input, a compile is executed in the second memory, and the compile result is stored in the second memory. After the completion of the storage in the second memory, the first memory is 2. The programmable controller according to claim 1, wherein the sequence executed by the second controller is switched to the second memory.

【0007】前記目的を達成するため、請求項3に対応
する発明は、変更されたユーザプログラムのコンパイル
結果のマイコン言語word数が変更前と異なった場合
でも、変更後のユーザプログラムに指定されたシーケン
スを実行する請求項1または請求項2記載のプログラマ
ブルコントローラである。
In order to achieve the above object, a third aspect of the present invention is directed to a method of designating a user program after a change even if the number of microcomputer languages as a result of compiling the changed user program is different from that before the change. The programmable controller according to claim 1 or 2, which executes a sequence.

【0008】前記目的を達成するため、請求項4に対応
する発明は、変更部に必要な微分情報数の変更がない場
合に、シーケンス実行に伴うシーケンス命令の実行状態
の微分情報を保有し、変更されたユーザプログラムの微
分情報を初期化し、無変更のユーザプログラムの微分情
報を保持する請求項1または請求項2記載のプログラマ
ブルコントロ−ラである。
In order to achieve the above object, the invention according to claim 4 is characterized in that when there is no change in the number of differential information necessary for the change unit, the differential unit holds the differential information of the execution state of the sequence instruction accompanying the sequence execution, 3. The programmable controller according to claim 1, wherein the differential information of the changed user program is initialized, and the differential information of the user program unchanged is retained.

【0009】前記目的を達成するため、請求項5に対応
する発明は、前記ユーザプログラムの変更によりユーザ
プログラムに必要な微分情報数が変更されても、無変更
のユーザプログラムに関する微分情報を保持する請求項
4記載のプログラマブルコントローラである。請求項1
〜5のいずれかに記載の発明によれば、シーケンス実行
に影響を与えることなく、シーケンスの実行内容を変更
できる。
In order to achieve the above object, the invention according to claim 5 holds the differential information relating to the user program unchanged even if the number of differential information required for the user program is changed by changing the user program. A programmable controller according to claim 4. Claim 1
According to the invention described in any one of (5) to (5), the execution contents of the sequence can be changed without affecting the sequence execution.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施形態について
図面を参照して説明する。図1は本発明の第1の実施形
態の概略構成を示す図であり、ユーザプログラムを機種
固有の言語で保存するメモリ1と、ユーザプログラムを
コンパイルしたマイコン言語で保存するメモリ2と、マ
イコン8のユーザプログラム以外を実行するシステム制
御コードを保存するメモリ3と、コンパイルを実行する
プログラムを保存するメモリ4と、ユーザプログラムで
管理されるシーケンス実行結果や参照データを保存する
メモリ5と、シーケンスの微分情報を保存するメモリ6
と、制御機器の外部入出力のインタフェースとなるI/
O回路7と、システム制御やユーザプログラムのシーケ
ンスを実行したり、入出力を実行するするマイコン8
と、プログラマインタフェース回路9で構成されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a schematic configuration of a first embodiment of the present invention. A memory 1 for storing a user program in a language specific to a model, a memory 2 for storing a user program in a compiled microcomputer language, and a microcomputer 8 A memory 3 for storing a system control code for executing a program other than the user program, a memory 4 for storing a program for executing compilation, a memory 5 for storing sequence execution results and reference data managed by the user program, Memory 6 for storing differential information
And an I /
An O circuit 7 and a microcomputer 8 for executing a sequence of system control and a user program and for performing input and output
And a programmer interface circuit 9.

【0011】この場合のマイコン8は、調停機能を備え
た複数個のプロセッサで構成されてもよい。メモリ3,
4はシステム固有のため、通常一つまたは複数個のRO
M(読み出し専用メモリ)で構成される。メモリ1,
2,5,6はマイコン8が書き換えを行うため通常一つ
のRAM(書き込み読み出し可能なメモリ)、または複
数個のRAMで構成される。メモリ1〜6の一部または
全ては、図1のようにマイコン8とは別体であってもよ
く、またメモリ1〜6の一部または全てはマイコン8と
は一体であってもよい。
In this case, the microcomputer 8 may be constituted by a plurality of processors having an arbitration function. Memory 3,
4 is system-specific, so usually one or more ROs
M (read only memory). Memory 1,
The microcomputers 2, 5, and 6 are usually constituted by one RAM (writable / readable memory) or a plurality of RAMs for the microcomputer 8 to rewrite. Some or all of the memories 1 to 6 may be separate from the microcomputer 8 as shown in FIG. 1, and some or all of the memories 1 to 6 may be integrated with the microcomputer 8.

【0012】また、I/O回路7は本発明と直接関係な
いがプログラマブルコントローラの主構成要素であり、
動作説明上からも有効なため図に加える。メモリ1とメ
モリ2の関係は図2に示す通り、メモリ1のユーザプロ
グラムを、マイコン8が機種固有の言語で保存したシー
ケンス命令をコンパイルし、メモリ2にマイコン言語で
保存する。
Although the I / O circuit 7 is not directly related to the present invention, it is a main component of the programmable controller.
Since it is effective from the operation description, it is added to the figure. As shown in FIG. 2, the relationship between the memory 1 and the memory 2 is such that the microcomputer 8 compiles a sequence command stored in a language specific to the model of the user program in the memory 1 and stores it in the memory 2 in the microcomputer language.

【0013】また、コンパイル後のマイコン言語の数は
シーケンス命令によって異なり、0以上となる。メモリ
5は図3に示す通り、各データはワードで保存され、ワ
ードはk個のビットで構成される。データはワード単位
でも、ビット単位でもアクセス可能である。
The number of microcomputer languages after compilation differs depending on the sequence instruction, and is 0 or more. In the memory 5, as shown in FIG. 3, each data is stored as a word, and the word is composed of k bits. Data can be accessed in word units or bit units.

【0014】メモリ6は図4に示す通り、n個のワード
データで構成される。シーケンスの微分情報データはビ
ット情報があれば十分なため、ワードまたはビット単位
で指定する。図4でワード単位指定とした場合はn個の
微分情報が、ビット単位とした場合はn*k個の微分情
報が登録できる。
As shown in FIG. 4, the memory 6 is composed of n word data. Since the differential information data of the sequence needs only bit information, it is specified in word or bit units. In FIG. 4, when the word unit is designated, n pieces of differential information can be registered, and when the bit unit is designated, n * k pieces of differential information can be registered.

【0015】以上述べた構成において、プログラマ10
からの命令書き換え指令は、プログラマインタフェース
回路9を介してマイコン8に入力され、マイコン8はメ
モリ1およびメモリ2における書き換え指定命令語のア
ドレスを算出し、指定命令語のみをコンパイルする。
In the configuration described above, the programmer 10
Is input to the microcomputer 8 via the programmer interface circuit 9, and the microcomputer 8 calculates the address of the rewrite designation command in the memory 1 and the memory 2, and compiles only the designated command.

【0016】ここで、プログラマ10から命令語書き換
え指令とは、プログラマ10でのユーザプログラム編集
時にシーケンス命令の内容のみの変更時に、プログラマ
10からマイコン8に送られるデータブロックである。
この場合、シーケンス命令語が同一なため、メモリ1お
よびメモリ2のアドレス変更は必要無いため、算出した
アドレスに対して、メモリ1は指定のシーケンス命令語
を書き換え、メモリ2は指定命令語のコンパイル済みの
マイコン言語を書き換える。
Here, the instruction word rewriting instruction from the programmer 10 is a data block sent from the programmer 10 to the microcomputer 8 when only the contents of the sequence instruction are changed when the user program is edited by the programmer 10.
In this case, since the sequence command is the same, it is not necessary to change the addresses of the memory 1 and the memory 2. Therefore, the memory 1 rewrites the specified sequence command to the calculated address, and the memory 2 compiles the specified command. Rewrite already used microcomputer language.

【0017】マイコン8が命令書き換え指令を受け付
け、メモリ1およびメモリ2を書き換えるまでの処理を
シーケンス実行中の通常プログラマインタフェース回路
9の処理で実行するため、シーケンス実行を中断するこ
となくプログラムの変更が可能となる。
Since the microcomputer 8 accepts the instruction rewriting instruction and performs the processing from rewriting the memories 1 and 2 by the processing of the normal programmer interface circuit 9 during the execution of the sequence, the program can be changed without interrupting the sequence execution. It becomes possible.

【0018】具体的には、図1のメモリ1,2のうち、
メモリ1には機種固有の言語でユーザプログラムを保存
し、メモリ2にコンパイルしたマイコン言語を保存さ
せ、メモリ1によりシーケンスを実行している際中に、
ユーザプログラムの変更指令が入力されたとき、メモリ
2においてコンパイルを実行し、かつ該コンパイル結果
をメモリ2に保存し、メモリ2に保存が完了した後、メ
モリ1により実行されていたシーケンスをメモリ2に切
り換えて行うようにしたので、シーケンス実行を中断す
ることなくプログラムの変更が可能となる。
Specifically, of the memories 1 and 2 in FIG.
The user program is stored in the memory 1 in a language specific to the model, the microcomputer language compiled in the memory 2 is stored, and during execution of the sequence by the memory 1,
When an instruction to change the user program is input, compilation is performed in the memory 2 and the compilation result is stored in the memory 2. After the storage is completed in the memory 2, the sequence executed by the memory 1 is stored in the memory 2. The program can be changed without interrupting the sequence execution.

【0019】また、シーケンス命令語が同一とはシーケ
ンス命令のデータ長が等しく、そのコンパイル結果のマ
イコン言語数が等しい場合も含む。図5は、命令書き換
え指令の書き換え前と書き換え後の動作例を示すもの
で、具体的にはシーケンス命令4を4Aへ書き換えた場
合を示している。
The same sequence instruction word also includes a case where the data lengths of the sequence instructions are equal and the number of microcomputer languages resulting from the compilation is equal. FIG. 5 shows an operation example before and after the rewriting of the instruction rewriting instruction, and specifically shows a case where the sequence instruction 4 is rewritten to 4A.

【0020】さらに、シーケンス命令変更(上記に含ま
れないもの)やシーケンス命令追加・削除によるシーケ
ンス命令数の変更を伴う回路編集がプログラマ10によ
りプログラマインタフェース回路9を通して行われた場
合、プログラマ10からマイコン8に回路書き込み指令
が与えられる。回路書き換え、回路挿入、回路削除も同
様で、プログラマ10からプログラマインタフェース回
路9を通してマイコン8にそれぞれ回路書き換え指令、
回路挿入指令、回路削除指令が与えられる。これらの指
令は命令書き換え指令と同様なデータブロックであり、
編集回路のシーケンス命令と指定回路アドレス情報を含
む。
Further, if a circuit edit involving a change in sequence instructions (not included in the above) or a change in the number of sequence instructions due to addition / deletion of sequence instructions is performed by the programmer 10 through the programmer interface circuit 9, the programmer 10 8 is supplied with a circuit write command. Circuit rewriting, circuit insertion, and circuit deletion are performed in the same manner.
A circuit insertion command and a circuit deletion command are given. These commands are data blocks similar to the command rewrite commands,
It contains the sequence command of the editing circuit and the specified circuit address information.

【0021】図6は、回路書き換え指令の書き換え前と
書き換え後の動作例を示すもので、具体的には回路3を
書き換えた場合を示している。図7は、回路挿入指令の
挿入指令前と挿入指令後の動作例を示すもので、具体的
には回路3Aを挿入した場合を示している。図8は、回
路削除指令の削除指令前と削除指令後の動作例を示すも
ので、具体的には回路3Aを削除した場合を示してい
る。
FIG. 6 shows operation examples before and after the rewriting of the circuit rewriting command, and specifically shows a case where the circuit 3 is rewritten. FIG. 7 shows an operation example before and after the insertion instruction of the circuit insertion instruction, and specifically shows a case where the circuit 3A is inserted. FIG. 8 shows an operation example before and after the delete command of the circuit delete command, and specifically shows a case where the circuit 3A is deleted.

【0022】このような構成のものにおいて、マイコン
8は与えられたアドレス情報でメモリ1およびメモリ2
における編集対象の指定回路のアドレスを算出する。ま
た、マイコン8は編集前の回路のマイコン言語数の割り
出しと編集後の回路のシーケンス命令のコンパイルを実
行し、マイコン言語の作成と数を算出する。
In such a configuration, the microcomputer 8 operates the memory 1 and the memory 2 with the given address information.
The address of the designated circuit to be edited in is calculated. Further, the microcomputer 8 calculates the number of microcomputer languages of the circuit before editing and compiles the sequence instruction of the circuit after editing, and calculates the number and the number of microcomputer languages.

【0023】ここで、マイコン8はコンパイル前後のシ
ーケンス命令数とコンパイル後のマイコン言語数からそ
れぞれの増減を算出する。アドレスと増減数を使用して
メモリ1およびメモリ2の必要数を確保または削除し、
編集後のシーケンス命令とコンパイル済みのマイコン言
語をメモリ1およびメモリ2にそれぞれ書き込み、編集
後のシーケンス実行が可能となる。この場合、メモリ2
の必要数確保と書き込みのみはシーケンス実行を停止し
て行う。ここでの回路とは、複数のシーケンス命令の固
まりを示す。
Here, the microcomputer 8 calculates each increase or decrease from the number of sequence instructions before and after compilation and the number of microcomputer languages after compilation. Secure or delete the required number of memory 1 and memory 2 using the address and increase / decrease number,
The edited sequence command and the compiled microcomputer language are written in the memory 1 and the memory 2, respectively, so that the edited sequence can be executed. In this case, memory 2
The sequence execution is stopped only when the required number of items and the writing are performed. The circuit here indicates a group of a plurality of sequence instructions.

【0024】以上述べた第1の実施形態によれば、シー
ケンス実行中にユーザプログラムが変更された場合に変
更部分または全てのユーザプログラムを再コンパイルを
実行して、シーケンス実行に影響を与えることなくシー
ケンスの実行内容を変更できる。具体的には、マイコン
8が命令書き換え指令を受け付け、メモリ1およびメモ
リ2を書き換えるまでの処理をシーケンス実行中の通常
プログラマインタフェース回路9の処理で実行するた
め、シーケンス実行を中断することなくプログラムの変
更が可能となる。
According to the first embodiment described above, when the user program is changed during the execution of the sequence, the changed part or all the user programs are recompiled without affecting the sequence execution. The execution contents of the sequence can be changed. Specifically, since the microcomputer 8 accepts the instruction rewriting command and executes the processing until the memory 1 and the memory 2 are rewritten by the processing of the normal programmer interface circuit 9 during the sequence execution, the program execution can be performed without interrupting the sequence execution. Changes can be made.

【0025】図9は本発明の第2の実施形態の概略構成
を示す図であり、図9に示す通り図1のユーザプログラ
ムを保存するメモリ2を、メモリ21と22に2重化
し、前述の実施形態と同様にシーケンス実行をしていな
い方のメモリにマイコン言語のコンパイル結果を書き込
み、実行するメモリを切り替えることでシーケンス実行
を止めること無く、回路編集が可能である。
FIG. 9 is a diagram showing a schematic configuration of a second embodiment of the present invention. As shown in FIG. 9, the memory 2 for storing the user program of FIG. As in the third embodiment, the compile result of the microcomputer language is written in the memory in which the sequence is not executed, and by switching the memory to be executed, the circuit can be edited without stopping the sequence execution.

【0026】ここで、図10に示すように、実行中のメ
モリ内容と同じものが他方にある場合は回路編集部分を
前記と同様な手段で変更後、実行メモリを切り替える。
また、他方に実行中メモリと同じものが無い場合はプロ
グラム全体をコンパイルしてメモリに書き込み後、実行
メモリを切り替える。
Here, as shown in FIG. 10, when the same memory content is being executed in the other memory, the circuit editing part is changed by the same means as described above, and then the execution memory is switched.
On the other hand, if there is no other memory that is the same as the memory being executed, the entire program is compiled and written into the memory, and then the execution memory is switched.

【0027】各命令語の実行状態の微分情報のメモリ6
はメモリ1,2との関係を図11、図12に示す。図1
2は、微分命令のみに微分情報メモリを割り当て値場合
のメモリ1,2と、メモリ6の関係を示している。
Memory 6 for differential information of the execution state of each instruction word
11 and 12 show the relationship with the memories 1 and 2. FIG.
Numeral 2 indicates the relationship between the memories 6 and 1 and the memory 6 when the differential information memory is assigned to only the differential instruction.

【0028】この第2の実施形態も前述の第1の実施形
態のメモリ2と同様な手段で、回路編集における編集前
後の微分情報メモリ必要数を算出し、編集後の必要数を
メモリ6に確保する。確保した編集回路に相当するデー
タを初期化し、編集後のシーケンスを実行する。
In the second embodiment, the required number of differential information memories before and after editing in circuit editing is calculated by means similar to the memory 2 in the first embodiment, and the required number after editing is stored in the memory 6. Secure. The data corresponding to the secured editing circuit is initialized, and the edited sequence is executed.

【0029】図13は、回路挿入指令時の微分メモリ初
期化の状態を示すもので、回路3の書き換えた場合のメ
モリ1とメモリ6の書き換え指令前と書き換え指令後の
状態を示している。この図から、編集回路以外の微分情
報が保持できる。これにより、編集回路の微分情報数の
増減に関わらず、回路編集部の微分情報初期化と無変更
部の微分情報保持が可能である。
FIG. 13 shows the state of the initialization of the differential memory at the time of the circuit insertion command, and shows the states before and after the rewrite command of the memories 1 and 6 when the circuit 3 is rewritten. From this figure, differential information other than the editing circuit can be held. Thereby, regardless of the increase / decrease of the number of differential information of the editing circuit, it is possible to initialize the differential information of the circuit editing unit and to hold the differential information of the unchanged unit.

【0030】[0030]

【発明の効果】以上述べた本発明によれば、シーケンス
実行に影響を与えることなく、シーケンスの実行内容を
変更できるプログラマブルコントローラを提供すること
ができる。
According to the present invention described above, it is possible to provide a programmable controller capable of changing the execution contents of a sequence without affecting the sequence execution.

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

【図1】本発明のプログラマブルコントローラの第1の
実施形態を示すブロック図。
FIG. 1 is a block diagram showing a first embodiment of a programmable controller according to the present invention.

【図2】図1のメモリ1,2の構成、および両者の関係
を示す図。
FIG. 2 is a diagram showing a configuration of memories 1 and 2 in FIG. 1 and a relationship between the two.

【図3】図1のメモリ5の構成を示す図。FIG. 3 is a diagram showing a configuration of a memory 5 in FIG. 1;

【図4】図1のメモリ6の構成を示す図。FIG. 4 is a diagram showing a configuration of a memory 6 of FIG. 1;

【図5】図1のシーケンス命令書き換え指令の動作を説
明するための図。
FIG. 5 is a view for explaining the operation of the sequence command rewriting command of FIG. 1;

【図6】図1の回路書き換え指令の動作を説明するため
の図。
FIG. 6 is a diagram for explaining the operation of the circuit rewrite command of FIG. 1;

【図7】図1の回路挿入指令の動作を説明するための
図。
FIG. 7 is a view for explaining the operation of the circuit insertion command of FIG. 1;

【図8】図1の回路削除指令の動作を説明するための
図。
FIG. 8 is a diagram for explaining the operation of the circuit deletion command of FIG. 1;

【図9】本発明のプログラマブルコントローラの第1の
実施形態を示すブロック図。
FIG. 9 is a block diagram showing a first embodiment of the programmable controller of the present invention.

【図10】図9のメモリ2が2個ある場合の動作を説明
するための図。
FIG. 10 is a diagram for explaining an operation when there are two memories 2 in FIG. 9;

【図11】図9の微分情報メモリのシーケンスプログラ
ムとの関連を示す図。
FIG. 11 is a diagram showing a relation with a sequence program of a differential information memory of FIG. 9;

【図12】図9の微分情報メモリのシーケンスプログラ
ムとの関連を示す図。
FIG. 12 is a view showing a relation with a sequence program of a differential information memory of FIG. 9;

【図13】図9の回路挿入指令時の微分情報メモリの初
期化例を示す図。
FIG. 13 is a diagram showing an example of initialization of a differential information memory at the time of a circuit insertion command in FIG. 9;

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

1…メモリ(RAM) 2…メモリ(RAM) 3…メモリ(ROM) 4…メモリ(ROM) 5…メモリ(RAM) 6…メモリ(RAM) 7…I/O回路 8…マイコン 9…プログラマインタフェース回路 10…プログラマ DESCRIPTION OF SYMBOLS 1 ... Memory (RAM) 2 ... Memory (RAM) 3 ... Memory (ROM) 4 ... Memory (ROM) 5 ... Memory (RAM) 6 ... Memory (RAM) 7 ... I / O circuit 8 ... Microcomputer 9 ... Programmer interface circuit 10. Programmer

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 機種固有のユーザプログラム言語を備
え、ユーザプログラムをマイコン言語にコンパイルし
て、マイコンがユーザプログラムで指定されたシーケン
スを実行するプログラマブルコントローラにおいて、 シーケンス実行中にユーザプログラムが変更された場合
に変更部分または全てのユーザプログラムを再コンパイ
ルを実行して、シーケンス実行に影響を与えることなく
シーケンスの実行内容を変更できるようにしたことを特
徴とするプログラマブルコントローラ。
1. A programmable controller comprising a model-specific user program language, compiling the user program into a microcomputer language, and causing the microcomputer to execute a sequence specified by the user program, wherein the user program is changed during execution of the sequence. A programmable controller characterized in that the changed part or all user programs are recompiled in such a case so that the execution contents of the sequence can be changed without affecting the sequence execution.
【請求項2】 少なくとも第1及び第2のメモリを備
え、このうち第1のメモリには前記ユーザプログラムを
保存し、該第2のメモリに前記コンパイルしたマイコン
言語を保存させ、前記第1のメモリによりシーケンスを
実行している際中に、前記ユーザプログラムの変更指令
が入力されたとき、前記第2のメモリにおいてコンパイ
ルを実行し、かつ該コンパイル結果を該第2のメモリに
保存し、該第2のメモリに保存が完了した後、前記第1
のメモリにより実行されていたシーケンスを前記第2の
メモリに切り換えて行うようにしたことを特徴とする請
求項1記載のプログラマブルコントローラ。
2. The apparatus according to claim 1, further comprising at least a first memory and a second memory, wherein the first memory stores the user program, and the second memory stores the compiled microcomputer language. When a change instruction of the user program is input during execution of a sequence by the memory, compilation is performed in the second memory, and the compilation result is stored in the second memory. After the storage in the second memory is completed, the first
2. The programmable controller according to claim 1, wherein the sequence executed by said memory is switched to said second memory for execution.
【請求項3】 変更されたユーザプログラムのコンパイ
ル結果のマイコン言語word数が変更前と異なった場
合でも、変更後のユーザプログラムに指定されたシーケ
ンスを実行する請求項1または請求項2記載のプログラ
マブルコントローラ。
3. The programmable device according to claim 1, wherein a sequence specified in the changed user program is executed even if the microcomputer language word number obtained as a result of compiling the changed user program is different from that before the change. controller.
【請求項4】 変更部に必要な微分情報数の変更がない
場合に、シーケンス実行に伴うシーケンス命令の実行状
態の微分情報を保有し、変更されたユーザプログラムの
微分情報を初期化し、無変更のユーザプログラムの微分
情報を保持する請求項1または請求項2記載のプログラ
マブルコントロ−ラ。
4. When there is no change in the number of necessary differential information in the change unit, the differential information of the execution state of the sequence instruction accompanying the sequence execution is retained, the differential information of the changed user program is initialized, and no change is made. 3. The programmable controller according to claim 1, wherein the programmable controller holds differential information of the user program.
【請求項5】 前記ユーザプログラムの変更によりユー
ザプログラムに必要な微分情報数が変更されても、無変
更のユーザプログラムに関する微分情報を保持する請求
項4記載のプログラマブルコントローラ。
5. The programmable controller according to claim 4, wherein even if the number of differential information required for the user program is changed by the change of the user program, differential information relating to the user program which is not changed is retained.
JP6142898A 1998-03-12 1998-03-12 Programmable controller Pending JPH11259308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6142898A JPH11259308A (en) 1998-03-12 1998-03-12 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6142898A JPH11259308A (en) 1998-03-12 1998-03-12 Programmable controller

Publications (1)

Publication Number Publication Date
JPH11259308A true JPH11259308A (en) 1999-09-24

Family

ID=13170800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6142898A Pending JPH11259308A (en) 1998-03-12 1998-03-12 Programmable controller

Country Status (1)

Country Link
JP (1) JPH11259308A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116528A (en) * 2007-11-05 2009-05-28 Toyota Motor Corp Production instruction device
WO2018061538A1 (en) * 2016-09-30 2018-04-05 オムロン株式会社 Safety control unit, safety control method, and safety control program
WO2018061537A1 (en) * 2016-09-30 2018-04-05 オムロン株式会社 Control unit, data refreshing method, data refreshing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116528A (en) * 2007-11-05 2009-05-28 Toyota Motor Corp Production instruction device
WO2018061538A1 (en) * 2016-09-30 2018-04-05 オムロン株式会社 Safety control unit, safety control method, and safety control program
WO2018061537A1 (en) * 2016-09-30 2018-04-05 オムロン株式会社 Control unit, data refreshing method, data refreshing program
US10845785B2 (en) 2016-09-30 2020-11-24 Omron Corporation Control unit, data refresh method, and data refresh program
US10935935B2 (en) 2016-09-30 2021-03-02 Omron Corporation Safety control unit, safety control method, and safety control program

Similar Documents

Publication Publication Date Title
JPH01201729A (en) Decoding
JPH10214203A (en) Information processor
JPH11259308A (en) Programmable controller
JP2001265620A (en) Program debugging system for rom
KR19990071604A (en) Processing system and method for reading and restoring information in RAM configuration
JPH0410081B2 (en)
JPH10247165A (en) Method and device for data writing in write-compensation-frequency limited memory
JP3328686B2 (en) Programmable controller
KR100294655B1 (en) How to Control a My Programmable Controller That Performs a Multitask Function
JPS6348698A (en) Memory storage control device
JP2000267707A (en) Sequence controller, maintenance method for maintenance area in the same device, and recording medium for storing computer program for executing the same method
JP3207333B2 (en) Programmable controller
JPS63249206A (en) Programmable controller
JP3331357B2 (en) Programmable controller
JP2000029508A (en) Programmable controller
JP2621631B2 (en) Programmable controller
JP2978008B2 (en) Memory management method
JPS6126695B2 (en)
JP3341061B2 (en) Programmable controller
JP3328714B2 (en) Programmable controller
JPH08263281A (en) Flash memory editing device
JPH08137521A (en) Program management method
JP2708983B2 (en) Program display device
JPH0330029A (en) Input/output simulation device of computer
JP2508690B2 (en) Programmable controller

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Effective date: 20040824

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041221