JP2001125608A - Programmable logic controller - Google Patents

Programmable logic controller

Info

Publication number
JP2001125608A
JP2001125608A JP30169899A JP30169899A JP2001125608A JP 2001125608 A JP2001125608 A JP 2001125608A JP 30169899 A JP30169899 A JP 30169899A JP 30169899 A JP30169899 A JP 30169899A JP 2001125608 A JP2001125608 A JP 2001125608A
Authority
JP
Japan
Prior art keywords
program
system program
instruction
memory
mode
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
JP30169899A
Other languages
Japanese (ja)
Other versions
JP3659399B2 (en
Inventor
Koichi Araki
宏一 荒木
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP30169899A priority Critical patent/JP3659399B2/en
Publication of JP2001125608A publication Critical patent/JP2001125608A/en
Application granted granted Critical
Publication of JP3659399B2 publication Critical patent/JP3659399B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable logic controller which permits program modification, instruction addition, and customization through simple operation without requiring any special hardware such as a PROM writer and a device adapter. SOLUTION: At least, part of a system program memory is composed of a nonvolatile memory which is rewritable in a mounted state and the rewritable nonvolatile memory is provided with a system program storage area which corresponds to an additional function; and this controller is provided with a mode setting means which sets an operation mode to a system program part modification mode, a connector where an external storage medium stored with a system program corresponding to the additional function is fitted detachably, and a program transfer means which transfers the system program corresponding to the additional function stored in the external storage medium connected through the connector to the system program storage area corresponding to the additional function of the system program memory on condition that the operation mode is set to the system program part modification mode.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、PROMライタ
やデバイス用のアダプタなどの特別な機材を要すること
なく、簡単な操作でシステムプログラムの部分変更を可
能としたプログラマブルロジックコントローラに係り、
特に、ユーザ命令機能の変更・追加などに好適なプログ
ラマブルロジックコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable logic controller capable of partially changing a system program by a simple operation without requiring special equipment such as a PROM writer and a device adapter.
In particular, the present invention relates to a programmable logic controller suitable for changing or adding a user instruction function.

【0002】[0002]

【従来の技術】この種のプログラマブルロジックコント
ローラ(以下、PLCと言う)には、ユーザ命令実行処
理やI/Oリフレッシュ処理といった装置本来の機能を
実現するためのシステムプログラムを格納するシステム
プログラムメモリと、ユーザの制御仕様に相当するユー
ザプログラムを格納するユーザプログラムメモリとが少
なくとも設けられている。
2. Description of the Related Art A programmable logic controller (hereinafter, referred to as a PLC) of this kind includes a system program memory for storing a system program for realizing functions inherent to the apparatus such as a user instruction execution process and an I / O refresh process. And a user program memory for storing a user program corresponding to the user's control specifications.

【0003】ところで、従来、この種のPLCのシステ
ムプログラムや命令データ(命令機能実現プログラム)
を変更・追加するためには、システムプログラム・命令
の格納されているメモリの内容を全消去後、追加内容を
含むシステムプログラム・命令データを一括して作成・
書き込む方法(以下、第1の方法と言う)、命令追加に
おいては、追加する命令用データをその追加命令を使用
するユーザプログラムの一部として作成し、格納する方
法(以下、第2の方法と言う)と、既にデータの変更さ
れた別のPROMと物理的に交換する方法(以下、第3
の方法と言う)とのいずれかが採用されていた。尚、理
解を容易とするために、第2の方法を図11に図解して
示す。同図において、図11(a)はカスタマイズ前に
おけるユーザプログラムメモリの内容を示すメモリマッ
プ、図11(b)はカスタマイズ後におけるユーザプロ
グラムメモリの内容を示すメモリマップである。これら
の図から明らかなように、カスタマイズ前にあっては、
ユーザプログラムメモリ内のシステムプログラム領域は
空領域となっている。これに対し、カスタマイズ後にあ
っては、ユーザプログラムメモリ内のシステムプログラ
ム領域には新規命令機能実現処理が格納されている。こ
のように、第2の方法にあっては、命令追加において
は、追加する命令用データをその追加命令を使用するユ
ーザプログラムの一部として作成し、ユーザプログラム
メモリ内に格納するのである。
Conventionally, a PLC system program and instruction data (instruction function realization program) of this kind have conventionally been used.
To change or add a program, delete the entire contents of the memory where the system program / instruction is stored, and then collectively create /
In a writing method (hereinafter, referred to as a first method) and an instruction addition, a method of creating and storing instruction data to be added as a part of a user program using the additional instruction (hereinafter, referred to as a second method). And physically replacing the PROM with another PROM whose data has already been changed (hereinafter referred to as the third method).
Method) was adopted either. The second method is shown in FIG. 11 for ease of understanding. 11A is a memory map showing the contents of the user program memory before customization, and FIG. 11B is a memory map showing the contents of the user program memory after customization. As you can see from these figures, before customization,
The system program area in the user program memory is an empty area. On the other hand, after customization, a new instruction function realizing process is stored in the system program area in the user program memory. As described above, in the second method, in adding an instruction, data for an instruction to be added is created as a part of a user program that uses the additional instruction, and is stored in the user program memory.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
第1〜第3の方法にあっては、次のような問題点が指摘
されている。
However, the following problems have been pointed out in the first to third methods.

【0005】システムプログラム変更・命令追加/カス
タマイズは、そのデータ作成・反映処理がメーカーでし
か行えないため、ユーザにカスタマイズ対応が必要なP
LCが生じた場合、その解決には一定期間が必要であ
り、即座には対応できない。
[0005] The system program modification / instruction addition / customization can only be performed by the maker for data creation / reflection processing.
When LC occurs, its resolution requires a certain period of time and cannot be dealt with immediately.

【0006】又、PROM/FROMなどにシステムプ
ログラムデータを書き込む(反映する)際には、PRO
Mライタ、デバイス用のアダプタなどの機材が必要とな
る。
When writing (reflecting) system program data to a PROM / FROM or the like, the PRO
Equipment such as an M writer and a device adapter is required.

【0007】又、システムプログラムや命令は、一連の
データとして扱われているため、その変更やカスタマイ
ズが必要な部分を分離して対応することができない。そ
のため、変更/追加などのカスタマイズを行うために
は、変更部分以外のプログラムデータも必要となり、ま
た命令追加のみであってもシステムプログラムそのもの
を変更する必要が生ずる。
[0007] Also, since system programs and instructions are handled as a series of data, it is not possible to separate and respond to portions that need to be changed or customized. Therefore, in order to perform customization such as change / addition, program data other than the changed portion is required, and even if only instructions are added, the system program itself needs to be changed.

【0008】さらに、ユーザプログラムと追加命令をプ
ログラムデータとする命令追加方法の場合にあっては、
プログラムデータを作成する工数が別に発生する。その
ため、本来注力したいユーザプログラムの作成に対する
余分な工数が生じてしまう。
Further, in the case of an instruction adding method using a user program and an additional instruction as program data,
The man-hour for creating the program data is generated separately. For this reason, an extra man-hour is required for creating a user program that the user should focus on.

【0009】この発明は、上述の問題点に着目してなさ
れたものであり、その目的とするところは、PROMラ
イタやデバイス用のアダプタなどの特別な機材を要する
ことなく、簡単な操作でシステムプログラム変更・命令
追加/カスタマイズを可能としたプログラマブルロジッ
クコントローラを提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and has as its object to provide a simple operation without requiring special equipment such as a PROM writer and a device adapter. An object of the present invention is to provide a programmable logic controller capable of changing programs, adding instructions, and customizing.

【0010】[0010]

【課題を解決するための手段】この発明のプログラマブ
ルロジックコントローラは、ユーザ命令解読実行処理や
I/Oリフレッシュ処理といった装置本来の機能を実現
するためのシステムプログラムを格納するシステムプロ
グラムメモリと、ユーザの制御仕様に相当するユーザプ
ログラムを格納するユーザプログラムメモリとを少なく
とも有することを前提としている。
A programmable logic controller according to the present invention comprises: a system program memory for storing a system program for realizing functions inherent to the apparatus such as a user instruction decoding execution process and an I / O refresh process; It is assumed that it has at least a user program memory for storing a user program corresponding to the control specification.

【0011】加えて、上記システムプログラムメモリの
少なくとも一部は、実装状態のままで書き換え可能な不
揮発性メモリ(例えば、フラッシュメモリ)で構成する
と共に、該書き換え可能な不揮発性メモリには追加機能
に対応するシステムプログラム格納領域が設けられる。
In addition, at least a part of the system program memory is composed of a rewritable nonvolatile memory (for example, a flash memory) in a mounted state, and the rewritable nonvolatile memory has an additional function. A corresponding system program storage area is provided.

【0012】さらに、本発明のプログラマブルロジック
コントローラには、動作モードシステムプログラム部分
変更モードに設定するためのモード設定手段と、追加機
能に対応するシステムプログラムを格納した外部記憶媒
体を着脱可能に取り付けるためのコネクタと、動作モー
ドがシステムプログラム部分変更モードに設定されてい
ることを条件として、前記コネクタを介して接続された
外部記憶媒体に格納された追加機能に対応するシステム
プログラムを、前記システムプログラムメモリの追加機
能に対応するシステムプログラム格納領域に転送するプ
ログラム転送手段とを有する。
Further, the programmable logic controller of the present invention has a mode setting means for setting an operation mode to a system program partial change mode, and a detachable external storage medium storing a system program corresponding to an additional function. And a system program corresponding to an additional function stored in an external storage medium connected via the connector, provided that the operation mode is set to the system program partial change mode. And a program transfer unit for transferring the program to a system program storage area corresponding to the additional function.

【0013】このような構成によれば、追加機能に対応
するシステムプログラムを格納した外部記憶媒体をPL
C本体に装着した後、モード設定手段を用いて動作モー
ドをシステムプログラム部分変更モードに設定するだけ
で、前記コネクタを介して接続された外部記憶媒体に格
納された追加機能に対応するシステムプログラムは、前
記システムプログラムメモリの追加機能に対応する実現
プログラム格納領域に自動的に転送され、これによりP
ROMライタやデバイス用のアダプタなどの特別な機材
を使用することなく、システムプログラムの部分変更を
容易に行うことが可能となる。
According to such a configuration, the external storage medium storing the system program corresponding to the additional function is stored in the PL.
After setting the operation mode to the system program partial change mode using the mode setting means after mounting on the C body, the system program corresponding to the additional function stored in the external storage medium connected via the connector is Are automatically transferred to the realization program storage area corresponding to the additional function of the system program memory.
Partial changes in the system program can be easily made without using special equipment such as a ROM writer or a device adapter.

【0014】又、本発明のプログラマブルロジックコン
トローラは、ユーザ命令の各々に対応する命令機能実現
プログラム(命令データ)をシステムプログラムメモリ
に格納し、これをユーザ命令解読に際して適宜に読み出
して実行することにより、ユーザプログラムで規定され
た制御仕様を実現するプログラマブルロジックコントロ
ーラを前提としている。
Further, the programmable logic controller of the present invention stores an instruction function realization program (instruction data) corresponding to each user instruction in a system program memory, and reads and executes the program appropriately when decoding the user instruction. And a programmable logic controller that realizes control specifications specified by a user program.

【0015】このプログラマブルロジックコントローラ
においても、システムプログラムメモリの少なくとも一
部が実装状態のままで書き換え可能な不揮発性メモリ
(例えば、フラッシュメモリなど)で構成されると共
に、該書き換え可能な不揮発性メモリには追加命令に対
応する命令機能実現プログラム格納領域が設けられる。
In this programmable logic controller, at least a part of the system program memory is constituted by a rewritable non-volatile memory (for example, a flash memory or the like) in a mounted state. Is provided with an instruction function realizing program storage area corresponding to the additional instruction.

【0016】さらに、このプログラマブルロジックコン
トローラにおいては、動作モードをシステムプログラム
部分変更モードに設定するためのモード設定手段と、追
加命令に対応する命令機能実現プログラムを格納した外
部記憶媒体を着脱可能に取り付けるためのコネクタと、
動作モードがシステムプログラム部分変更モードに設定
されていることを条件として、前記コネクタを介して接
続された外部記憶媒体に格納された追加命令に対応する
命令機能実現プログラムを、前記システムプログラムメ
モリの命令機能実現プログラム格納領域に転送するプロ
グラム転送手段とを有する。
Further, in this programmable logic controller, mode setting means for setting an operation mode to a system program partial change mode and an external storage medium storing an instruction function realizing program corresponding to an additional instruction are detachably attached. Connector for
Provided that the operation mode is set to the system program partial change mode, an instruction function realizing program corresponding to the additional instruction stored in the external storage medium connected via the connector is executed by the instruction in the system program memory. Program transfer means for transferring the program to the function realization program storage area.

【0017】このような構成によれば、追加命令に対応
する命令機能実現プログラムを格納した外部記憶媒体を
コネクタに装着した後、モード設定手段を用いて動作モ
ードシステムプログラム部分変更モードに設定すれば、
前記コネクタを介して接続された外部記憶媒体に格納さ
れた追加命令に対応する命令機能実現プログラムは、シ
ステムプログラムメモリの命令機能実現プログラム格納
機能に自動的に転送され、この場合にあっても、PRO
Mライタやデバイス用のアダプタ等の特別な機材を要す
ることなく、簡単な操作で命令追加処理を行うことがで
きる。
According to such a configuration, after the external storage medium storing the instruction function realizing program corresponding to the additional instruction is mounted on the connector, the operation mode is set to the operation mode system program partial change mode using the mode setting means. ,
The instruction function realization program corresponding to the additional instruction stored in the external storage medium connected via the connector is automatically transferred to the instruction function realization program storage function of the system program memory. PRO
The instruction adding process can be performed by a simple operation without requiring special equipment such as an M writer and a device adapter.

【0018】好ましい実施の形態では、システムプログ
ラムメモリを構成する実装状態で書き換え可能な不揮発
性メモリには、命令解読により生成される各命令機能実
現プログラムの格納論理アドレスをその格納物理アドレ
スに変換するアドレス変換テーブル格納領域が設けら
れ、プログラム転送手段には該アドレス変換テーブル格
納領域の内容を転送後の命令機能実現プログラムの各格
納アドレスに応じて更新する機能が含まれる。
In a preferred embodiment, a storage logical address of each instruction function realization program generated by instruction decoding is converted into a storage physical address in a mounted rewritable nonvolatile memory constituting a system program memory. An address conversion table storage area is provided, and the program transfer means includes a function of updating the contents of the address conversion table storage area according to each storage address of the transferred instruction function implementing program.

【0019】このような構成によれば、命令語とその命
令機能実現プログラム格納アドレスとを対応させたいわ
ゆる命令テーブルがシステムプログラムの書き換え不能
部分に格納されていたとしても、命令解読により生成さ
れる各命令機能実現プログラムの格納論理アドレスをそ
の格納物理アドレスに変換するアドレス変換テーブルの
内容を、転送後の命令機能実現プログラムの各格納物理
アドレスに応じて更新することにより、周囲のシステム
プログラムに影響を与えることなく、追加命令に対応す
る命令機能実現プログラムの書き込みが可能となる。
According to such a configuration, even if a so-called instruction table in which an instruction word is associated with a storage address of an instruction function realizing program is stored in a non-rewritable part of the system program, the instruction table is generated by decoding the instruction. The contents of the address conversion table that translates the storage logical address of each instruction function realization program into its storage physical address are updated according to each storage physical address of the instruction function realization program after transfer, thereby affecting surrounding system programs. , It is possible to write an instruction function realizing program corresponding to the additional instruction.

【0020】又、本発明のプログラマブルロジックコン
トローラは、ユーザ命令の各々に対応する命令機能実現
プログラムをシステムプログラムメモリに格納し、これ
をユーザ命令解読に際して適宜に呼び出して実行するこ
とにより、ユーザプログラムで規定された制御仕様を実
現するプログラマブルロジックコントローラを前提とし
ている。
Further, the programmable logic controller of the present invention stores an instruction function realizing program corresponding to each user instruction in a system program memory, and appropriately calls and executes the program when decoding the user instruction, thereby executing the user program. It assumes a programmable logic controller that achieves the specified control specifications.

【0021】このプログラマブルロジックコントローラ
においても、システムプログラムの少なくとも一部は実
装状態のままで書き換え可能な不揮発性メモリ(フラッ
シュメモリなど)で構成されると共に、該書き換え可能
な不揮発性メモリには新規命令に対応する命令機能実現
プログラム格納領域が設けられる。
Also in this programmable logic controller, at least a part of the system program is constituted by a rewritable nonvolatile memory (flash memory or the like) in a mounted state, and a new instruction is stored in the rewritable nonvolatile memory. An instruction function realizing program storage area corresponding to.

【0022】また、このプログラマブルロジックコント
ローラには、ハウジング外面に取り付けられ且つ少なく
ともプログラム変更モードと通常モードとに設定可能な
モード設定スイッチと、ハウジング外面に設けられ且つ
1若しくは2以上の命令機能実現プログラムが格納され
たメモリカードを装着可能なスロットと、動作電源を投
入するために使用される電源スイッチとが設けられる。
The programmable logic controller includes a mode setting switch attached to the outer surface of the housing and capable of setting at least a program change mode and a normal mode, and one or more instruction function realizing programs provided on the outer surface of the housing. And a power switch used to turn on the operating power.

【0023】さらに、このシステムプログラムメモリに
格納されるシステムプログラムには、前記電源スイッチ
のオン直後に前記モード設定スイッチの状態を読み込む
と共に、その状態がプログラム部分変更モードである場
合には、前記スロットに装着されたメモリカードに格納
された命令機能実現プログラムを前記システムプログラ
ムメモリの命令機能実現プログラム格納領域に転送する
一方、通常モードである場合には命令実行処理やI/O
リフレッシュ処理を含む通常動作を行う機能が含まれて
いる。
The state of the mode setting switch is read into the system program stored in the system program memory immediately after the power switch is turned on. The instruction function realizing program stored in the memory card mounted on the memory card is transferred to the instruction function realizing program storage area of the system program memory.
A function for performing a normal operation including a refresh process is included.

【0024】このような構成によれば、ハウジング外面
に設けられたスロットに対し、1若しくは2以上の命令
機能実現プログラムが格納されたメモリカードを装着し
た後、ハウジング外面に取り付けられたモード設定スイ
ッチをプログラム部分変更モードに設定し、さらに電源
スイッチを用いて動作電源を投入するといった簡単な操
作を行うだけで、前記スロットに装着されたメモリカー
ドに格納された命令機能実現プログラムは、システムプ
ログラムメモリの命令機能実現プログラム格納領域に転
送される。一方、モード設定スイッチを通常モードに設
定した後、電源スイッチを用いて動作電源を再投入すれ
ば、命令実行処理やI/Oリフレッシュ処理を含む通常
動作が起動される。
According to such a configuration, after the memory card storing one or more instruction function realizing programs is mounted on the slot provided on the outer surface of the housing, the mode setting switch mounted on the outer surface of the housing is mounted. The instruction function realizing program stored in the memory card mounted in the slot is executed by simply performing a simple operation such as setting the program partial change mode and turning on the operating power using the power switch. Is transferred to the instruction function realizing program storage area. On the other hand, after setting the mode setting switch to the normal mode and turning on the operating power again using the power switch, the normal operation including the instruction execution processing and the I / O refresh processing is started.

【0025】このような構成によれば、ユーザ命令追加
等のためのシステムプログラム部分変更を一層簡単な操
作で行わせることができる。
According to such a configuration, it is possible to change the system program portion for adding a user command or the like with a simpler operation.

【0026】好ましい実施の形態では、システムプログ
ラムメモリを構成する実装状態で書き換え可能な不揮発
性メモリには、命令解読により生成される各命令機能実
現プログラムの格納論理アドレスをその格納物理アドレ
スに変換するアドレス変換テーブル格納領域が設けら
れ、プログラム転送手段には、該アドレス変換テーブル
格納領域の内容を転送後の各命令機能実現プログラムの
格納アドレスに応じて更新する機能が含まれる。
In a preferred embodiment, a storage logical address of each instruction function realization program generated by instruction decoding is converted into its storage physical address in a mounted rewritable nonvolatile memory constituting a system program memory. An address conversion table storage area is provided, and the program transfer means includes a function of updating the contents of the address conversion table storage area according to the storage address of each instruction function implementing program after transfer.

【0027】これにより、他のシステムプログラムに影
響を与えることなく、追加命令に相当する命令機能実現
プログラムのみを選択的に書き換えることができる。
Thus, only the instruction function implementing program corresponding to the additional instruction can be selectively rewritten without affecting other system programs.

【0028】以上説明したいくつかの発明において、さ
らに好ましい実施の形態では、命令機能実現プログラム
のシステムプログラムメモリへの転送に際しては、書き
込み正常実行中、書き込み異常発生、書き込み正常終了
の別を表示する表示手段が設けられる。
In some of the inventions described above, in a further preferred embodiment, when the instruction function realizing program is transferred to the system program memory, a distinction is made between the normal execution of the write, the occurrence of the abnormal write, and the normal end of the write. Display means is provided.

【0029】このような構成によれば、オペレータに対
してシステムプログラム書き込み動作の進行状況を視覚
的に確認させることができる。
According to this configuration, the operator can visually confirm the progress of the system program writing operation.

【0030】[0030]

【発明の実施の形態】以下に、本発明のプログラマブル
ロジックコントローラの好適な実施の一形態を添付図面
に従って詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the programmable logic controller according to the present invention will be described below in detail with reference to the accompanying drawings.

【0031】本発明が適用されたPLC全体のハードウ
ェア構成を示すブロック図が図1に示されている。同図
に示されるように、このPLC1は、CPU101と、
I/Oメモリ102と、ユーザプログラムメモリ103
と、システムプログラムメモリ104と、ワークメモリ
105と、I/Oインタフェース106と、入出力装置
107と、コネクタ108と、メモリカード109と、
インタフェース110と、DIPスイッチ111と、表
示部112とを備えている。
FIG. 1 is a block diagram showing a hardware configuration of the entire PLC to which the present invention is applied. As shown in the figure, the PLC 1 includes a CPU 101,
I / O memory 102 and user program memory 103
, A system program memory 104, a work memory 105, an I / O interface 106, an input / output device 107, a connector 108, a memory card 109,
An interface 110, a DIP switch 111, and a display unit 112 are provided.

【0032】CPU101は、マイクロプロセッサを主
体として構成されており、システムプログラムメモリ1
04に格納された各種のシステムプログラムを実行する
ことにより、PLCとしての各種の機能を実現するもの
である。ここで、システムプログラムの実行により実現
される機能の代表的なものとしては、ユーザプログラム
実行機能、I/Oリフレッシュ機能、システムサービス
機能などを挙げることができる。
The CPU 101 is mainly composed of a microprocessor, and has a system program memory 1
By executing various system programs stored in the CPU 04, various functions as a PLC are realized. Here, typical functions realized by executing the system program include a user program execution function, an I / O refresh function, and a system service function.

【0033】I/Oメモリ102は、入出力装置107
から取り込まれた入力データ並びに入出力装置107へ
と送り出すための出力データなどの格納領域として使用
される。このI/Oメモリ102は、常時書き換え可能
なRAMで構成される。
The I / O memory 102 has an input / output device 107
It is used as a storage area for input data taken in from the server and output data to be sent to the input / output device 107. The I / O memory 102 is constituted by a RAM that can be constantly rewritten.

【0034】ユーザプログラムメモリ103は、ユーザ
が所望する制御仕様に対応したユーザプログラムを記憶
するメモリであり、記憶媒体としては、例えばEEPR
OMやフラッシュPROMなどで構成される。
The user program memory 103 is a memory for storing a user program corresponding to a control specification desired by the user.
It is composed of OM and flash PROM.

【0035】システムプログラムメモリ104は、PL
C1に必要な各種の機能を実現するためのシステムプロ
グラムが格納される。記憶媒体としては、PROMライ
タなどの機材でなければ書き換えることのできない通常
のPROMと、実装状態において容易に書き換えの可能
な不揮発性メモリであるフラッシュメモリ(FROM)
とから構成されている。
The system program memory 104 stores the PL
A system program for realizing various functions required for C1 is stored. As a storage medium, a normal PROM which can be rewritten only with equipment such as a PROM writer, and a flash memory (FROM) which is a nonvolatile memory which can be easily rewritten in a mounted state
It is composed of

【0036】そして、後述するように、通常のPROM
の側には、システムプログラムの中の固定的な部分が格
納される一方、FROMの側には追加命令などに対応す
る命令機能実現プログラム並びに後述するアドレス変換
テーブル(図6参照)が格納される。
Then, as described later, a normal PROM
The side stores a fixed part of the system program, while the FROM stores an instruction function realization program corresponding to an additional instruction and the like and an address conversion table (see FIG. 6) described later. .

【0037】ワークメモリ105は、CPU101がシ
ステムプログラムを実行するに際し、演算途中結果の記
憶領域等として使用される。記憶媒体としては、書き換
えが可能なRAMが使用される。
The work memory 105 is used as a storage area or the like for an intermediate calculation result when the CPU 101 executes a system program. A rewritable RAM is used as a storage medium.

【0038】入出力装置107は、外部入力機器(スイ
ッチ、センサなど)から入力データを取り込むための入
力装置と、外部出力機器(リレー、表示器など)に対し
て出力データを送出する出力装置とから構成されてい
る。この入出力装置107は、I/Oインタフェース1
06を介して、PLC1の内部バスに接続される。
The input / output device 107 includes an input device for receiving input data from an external input device (switch, sensor, etc.) and an output device for sending output data to an external output device (relay, display, etc.). It is composed of This input / output device 107 has an I / O interface 1
06, it is connected to the internal bus of PLC1.

【0039】コネクタ108は、PLC1のハウジング
に設けられたスロットに内蔵されるものであり、このコ
ネクタ108には外部記憶媒体であるメモリカード10
9が着脱自在に装着される。メモリカード109には、
追加命令に対応する命令機能実現プログラム並びに後述
するアドレス変換テーブルが予め書き込まれている。こ
の書き込み操作は、メーカー側あるいはベンダー側で行
うことができる。
The connector 108 is built in a slot provided in the housing of the PLC 1. The connector 108 has a memory card 10 as an external storage medium.
9 is detachably mounted. In the memory card 109,
An instruction function realizing program corresponding to the additional instruction and an address conversion table described later are written in advance. This writing operation can be performed by the manufacturer or the vendor.

【0040】システムプログラムメモリ104に格納さ
れたシステムプログラムを、CPU101が実行するこ
とにより実現される、システム処理全体のフローチャー
トが図2に示されている。
FIG. 2 shows a flowchart of the entire system processing which is realized by the CPU 101 executing the system program stored in the system program memory 104.

【0041】同図において、図示しない電源スイッチの
投入により処理が開始されると、まずイニシャル処理が
実行されて、システムの動作に必要な各種フラグやレジ
スタの初期設定が行われる(ステップ201)。特に、
この発明では、このイニシャル処理(ステップ201)
において、システムプログラム部分変更処理が実行され
る。
In FIG. 4, when the process is started by turning on a power switch (not shown), an initial process is executed, and various flags and registers necessary for the operation of the system are initialized (step 201). In particular,
In the present invention, this initial processing (step 201)
, A system program partial change process is executed.

【0042】イニシャル処理(ステップ201)が実行
完了したならば、以後、ユーザプログラム実行処理(ス
テップ202)、I/Oリフレッシュ処理(ステップ2
03)、システムサービス処理(ステップ204)がサ
イクリックに実行される。
After the execution of the initial processing (Step 201) is completed, the user program execution processing (Step 202) and the I / O refresh processing (Step 2)
03), the system service process (step 204) is cyclically executed.

【0043】即ち、ユーザプログラム実行処理(ステッ
プ202)では、ユーザプログラムメモリ103から各
命令語を順次読み出して解読すると共に、その解読結果
に応じて対応する命令機能実現プログラム(命令デー
タ)を、システムプログラムメモリ104から読み出し
て実行する。
That is, in the user program execution process (step 202), each instruction word is sequentially read from the user program memory 103 and decoded, and a corresponding instruction function realization program (instruction data) is stored in the system according to the result of the decoding. It is read from the program memory 104 and executed.

【0044】I/Oリフレッシュ処理(ステップ20
3)では、入出力装置107から取り込まれた入力デー
タを、I/Oメモリ102の入力エリアに書き込むと共
に、I/Oメモリ102の出力エリアから読み出した出
力データを、入出力装置107の出力端子へと送出する
処理を実行する。
I / O refresh processing (step 20)
In 3), the input data fetched from the input / output device 107 is written to the input area of the I / O memory 102, and the output data read from the output area of the I / O memory 102 is output to the output terminal of the input / output device 107. Execute the process of sending to.

【0045】システムサービス処理(ステップ204)
では、図示しないサポートツールなどと交信を行った
り、あるいは他のPLCやリモートI/Oなどと交信す
ることにより、各種のシステムサービスを実行する。
System service processing (step 204)
Then, various system services are executed by communicating with a support tool (not shown) or by communicating with another PLC or remote I / O.

【0046】イニシャル処理(ステップ201)で実行
されるシステムプログラム部分変更処理の詳細が図3の
フローチャートに示されている。
The details of the system program partial change process executed in the initial process (step 201) are shown in the flowchart of FIG.

【0047】同図において、処理が開始されると、イン
タフェース110を介して、DIPスイッチ111の状
態が読み込まれる(ステップ301)。このDIPスイ
ッチ111は、PLC1の動作を、プログラム部分変更
モードと通常モードとに設定可能になされている。
In the figure, when the processing is started, the state of the DIP switch 111 is read via the interface 110 (step 301). The DIP switch 111 can set the operation of the PLC 1 between a program partial change mode and a normal mode.

【0048】DIPスイッチ設定読み込み処理(ステッ
プ301)に続いて、動作モード判定処理が実行される
(ステップ302)。ここで、システムプログラム部分
変更モードと判定されると(ステップ302YES)、
外部記憶媒体であるメモリカード109から変更プログ
ラムを読み込み(ステップ303)、これをシステムプ
ログラムメモリ104を構成するFROMへと書き込む
処理(ステップ304)を実行することによって、メモ
リカード109からシステムプログラムメモリ104の
FROM領域へと、変更プログラムを転送する。この変
更プログラムには、命令機能実現プログラムPR1〜P
Rn(図7参照)並びに論理/物理アドレス変換テーブ
ル(図6参照)が含まれている。従って、後述するよう
に、変更プログラムの更新を行うと、命令機能実現プロ
グラムPR1〜PRnのみならず、論理/物理アドレス
変換テーブルについても自動的に更新される。
Subsequent to the DIP switch setting reading process (step 301), an operation mode determination process is executed (step 302). Here, if it is determined that the mode is the system program partial change mode (step 302 YES),
The change program is read from the memory card 109 which is an external storage medium (step 303), and is written to the FROM constituting the system program memory 104 (step 304). Is transferred to the FROM area. This change program includes instruction function realization programs PR1 to P
Rn (see FIG. 7) and a logical / physical address conversion table (see FIG. 6) are included. Therefore, as will be described later, when the change program is updated, not only the instruction function realization programs PR1 to PRn but also the logical / physical address conversion table are automatically updated.

【0049】以上を繰り返す間に、全プログラムの書き
込みが完了したならば(ステップ308)、処理を終了
する。
If the writing of all the programs is completed while repeating the above (step 308), the processing is terminated.

【0050】変更プログラム転送処理の間に、書き込み
異常が発生すると(ステップ305NO)、異常発生表
示が行われる(ステップ307)。書き込みが正常であ
る場合には(ステップ305YES)、正常実行中表示
が行われる(ステップ306)。書き込みが全て完了し
たならば(ステップ308YES)、書き込み正常終了
表示が行われる(ステップ309)。
If a write error occurs during the change program transfer process (step 305 NO), an error occurrence display is performed (step 307). If the writing is normal (YES in step 305), a normal execution display is performed (step 306). If all the writing is completed (YES in step 308), a normal end of writing display is performed (step 309).

【0051】表示部112の一例が図9に示されてい
る。この例では、3個の発光ダイオード(LED1,L
ED2,LED3)を使用して、正常実行中表示、異常
発生表示、正常終了表示を行うようにしている。
FIG. 9 shows an example of the display section 112. In this example, three light emitting diodes (LED1, L
ED2, LED3) are used to perform a normal execution display, an abnormality occurrence display, and a normal end display.

【0052】すなわち、正常実行表示は、図9(a)に
示されるように、LED1とLED3とを同時点灯する
ことで行われる。
That is, the normal execution display is performed by simultaneously turning on the LED 1 and the LED 3 as shown in FIG.

【0053】異常発生表示は、図9(b)に示されるよ
うに、LED1を点滅させることにより行われる。
An abnormality occurrence display is performed by blinking the LED 1 as shown in FIG. 9 (b).

【0054】正常終了表示は、図9(c)に示されるよ
うに、3個のLED(LED1,LED2,LED3)
を同時点灯することで行われる。
As shown in FIG. 9C, the normal termination display is performed by three LEDs (LED1, LED2, LED3).
At the same time.

【0055】ユーザプログラム実行処理の詳細フローチ
ャートが図4に示されている。
FIG. 4 is a detailed flowchart of the user program execution process.

【0056】同図において、処理が開始されると、プロ
グラムカウンタの値を初期設定した後(ステップ40
1)、プログラムカウンタで指定される命令をユーザプ
ログラムメモリ103から読み出し(ステップ40
2)、図5に示される命令/論理アドレス変換テーブル
を参照することで、各命令(OP1〜OPn)に対応す
る命令プログラム(命令機能実現プログラム)(PR1
〜PRn)の格納エリアの先頭論理アドレス(LAD1
1〜LADn1)並びに末尾論理アドレス(LAD12
〜LADn2)が取得される(ステップ403)。
In the figure, when the process is started, the value of the program counter is initialized (step 40).
1) The instruction specified by the program counter is read from the user program memory 103 (step 40).
2), by referring to the instruction / logical address conversion table shown in FIG. 5, an instruction program (instruction function realization program) (PR1) corresponding to each instruction (OP1 to OPn)
To PRn) in the first logical address (LAD1) of the storage area.
1 to LADn1) and the tail logical address (LAD12
To LADn2) are obtained (step 403).

【0057】続いて、取得された先頭,末尾の論理アド
レスに基づいて、図6に示される論理/物理アドレス変
換テーブルを参照することにより、該当する先頭,末尾
の物理アドレスが求められる(ステップ404)。
Subsequently, based on the obtained start and end logical addresses, the corresponding start and end physical addresses are obtained by referring to the logical / physical address conversion table shown in FIG. 6 (step 404). ).

【0058】図7のメモリマップに示されるように、こ
うして求められた物理アドレスAD11〜ADn1,A
D12〜ADn2)は、実際に各命令(OP1〜OP
n)に対応する命令プログラム(命令機能実現プログラ
ムの意)(PR1〜PRn)の格納アドレスに相当す
る。
As shown in the memory map of FIG. 7, the physical addresses AD11 to ADn1, A
D12 to ADn2) are actually each instruction (OP1 to OPn)
n) corresponds to the storage address of the instruction program (meaning the instruction function realization program) (PR1 to PRn) corresponding to (n).

【0059】その後、最終的に得られた先頭,末尾の物
理アドレスに基づいて、該当する命令プログラム(PR
1〜PRn)を読み出して実行することにより、該当す
る命令機能が実現される(ステップ405)。
Thereafter, based on the finally obtained physical addresses of the beginning and end, the corresponding instruction program (PR
1 to PRn), the corresponding instruction function is realized (step 405).

【0060】こうして、ユーザプログラムの最後に記述
されたEND命令が検出されるまで(ステップ406N
O)、プログラムカウンタを歩進しては(ステップ40
7)、以上の処理が繰り返され(ステップ402〜40
5)、END命令の検出と共に(ステップ406YE
S)、処理は終了する。
Thus, until the END instruction described at the end of the user program is detected (step 406N).
O), increment the program counter (step 40)
7) The above processing is repeated (steps 402 to 40).
5) With the detection of the END instruction (step 406YE)
S), the process ends.

【0061】次に、以上説明した命令/論理アドレス変
換テーブル(図5参照)、論理/物理アドレス変換テー
ブル(図6参照)、命令プログラム領域(図7参照)の
配置について説明する。
Next, the arrangement of the above-described instruction / logical address conversion table (see FIG. 5), logical / physical address conversion table (see FIG. 6), and instruction program area (see FIG. 7) will be described.

【0062】命令/論理アドレス変換テーブル(図5参
照)は、システムプログラムメモリ104を構成する記
録媒体の中で、実装状態では書き換え不能なPROM領
域に格納される。又、このPROM領域には、図7に示
される命令プログラムの中で、固定的な命令プログラム
部分(PR1〜PRm)が格納される。この例では、命
令機能の追加を意図しているため、固定的な命令プログ
ラム部分の容量は命令プログラム全体の約70〜80%
程度とされている。
The instruction / logical address conversion table (see FIG. 5) is stored in a PROM area of the recording medium constituting the system program memory 104 which cannot be rewritten in the mounted state. The PROM area stores fixed instruction program portions (PR1 to PRm) in the instruction program shown in FIG. In this example, since the instruction function is intended to be added, the capacity of the fixed instruction program portion is about 70 to 80% of the entire instruction program.
Degree.

【0063】これに対して、図7に示される命令プログ
ラムの中で、変更可能な命令プログラム部分(PRm+
1〜PRn)については、システムプログラムメモリ1
04のFROM領域に格納される。左記の例では、変更
可能な命令プログラム部分の容量は命令プログラム全体
の約20〜30%程度とされている。又、このFROM
領域には、図6に示される論理/物理アドレス変換テー
ブルも格納される。
On the other hand, in the instruction program shown in FIG. 7, a changeable instruction program portion (PRm +
1 to PRn), the system program memory 1
04 is stored in the FROM area. In the example on the left, the capacity of the changeable instruction program is about 20 to 30% of the entire instruction program. Also, this FROM
The area also stores the logical / physical address conversion table shown in FIG.

【0064】そのため、図7に示される命令プログラム
領域の一部を書き換えるような場合には、その書き換え
後の新たな命令プログラムの物理アドレスに応じて、図
6に示される論理/物理アドレス変換テーブルが更新さ
れる。
Therefore, when a part of the instruction program area shown in FIG. 7 is rewritten, the logical / physical address conversion table shown in FIG. 6 is used in accordance with the physical address of the new instruction program after the rewriting. Is updated.

【0065】このようにして、命令プログラム領域の構
成を変更すると同時に、論理/物理アドレス変換テーブ
ル(図6参照)を更新することで、システムプログラム
104のPROM領域に格納された命令/論理アドレス
変換テーブル(図5参照)については変更の必要がなく
なる。すなわち、新規命令機能を追加するために、図7
に示される命令プログラム領域の一部を変更したとして
も、図6に示される論理/物理アドレス変換テーブルを
それに合わせて更新することで、PROM領域に格納さ
れた命令/論理アドレス変換テーブル(図5参照)につ
いては変更の必要がなくなり、システムプログラム全体
の実行に支障を来さないのである。
As described above, by changing the configuration of the instruction program area and updating the logical / physical address conversion table (see FIG. 6), the instruction / logical address conversion stored in the PROM area of the system program 104 can be performed. There is no need to change the table (see FIG. 5). That is, in order to add a new instruction function, FIG.
Even if a part of the instruction program area shown in FIG. 5 is changed, the logical / physical address conversion table shown in FIG. 6 is updated in accordance with the change, so that the instruction / logical address conversion table stored in the PROM area (FIG. ) No longer needs to be changed and does not hinder the execution of the entire system program.

【0066】部分変更におけるシステムプログラム書き
換え範囲のメモリマップが図8に示されている。同図か
ら明らかなように、この実施形態によれば、システムプ
ログラム全体の中で、その一部のみを書き換えることが
でき、また書き換えた後にあっても、他のシステムプロ
グラム部分との整合性を維持することができる。なお、
同図において、書き替え対象エリアに続く、『変化な
し』と記されたエリアは、命令機能実現プログラム以外
の別のシステムプログラムが格納された領域である。
FIG. 8 shows a memory map of a system program rewriting range in a partial change. As can be seen from the figure, according to this embodiment, only a part of the entire system program can be rewritten, and even after rewriting, consistency with other system program parts can be maintained. Can be maintained. In addition,
In the drawing, the area described as “no change” following the area to be rewritten is an area in which another system program other than the instruction function realizing program is stored.

【0067】従って、この実施形態によれば、図10
(a)に示されるように、複数の既存命令(OP1〜O
Pn)を用いて記述されたユーザプログラムを、図10
(b)に示されるように、1個の新規カスタマイズ命令
(OPP1)として記述することが可能となり、各ユー
ザに固有なノウハウがユーザプログラムに表れているよ
うな場合、この部分を1個の新規カスタマイズ命令(O
PP1)と置き換えることによって、ノウハウの漏洩を
回避することができる。
Therefore, according to this embodiment, FIG.
As shown in (a), a plurality of existing instructions (OP1 to OP
FIG. 10 shows a user program described using Pn).
As shown in (b), it can be described as one new customization instruction (OPP1). If know-how unique to each user appears in the user program, this part is replaced with one new customization instruction. Customize instruction (O
By replacing with PP1), leakage of know-how can be avoided.

【0068】以上説明したように、この実施形態によれ
ば、ユーザにおいてシステムプログラム変更・命令追加
などのカスタマイズの必要性が生じた場合、メーカー側
若しくはベンダー側においては、メモリカード109な
どの外部記憶媒体にカスタマイズ対応用プログラムデー
タを書き込んで、ユーザに配布するだけで済み、ユーザ
側ではこのメモリカード109を所定のスロットに装着
してコネクタ108と接続し、DIPスイッチ111を
プログラム部分変更モードに設定して、図示しない電源
スイッチを投入すれば、図3に示されるシステムプログ
ラム部分変更処理が実行されて、メモリカード109に
格納されたカスタマイズ対応用プログラムデータはシス
テムプログラムメモリ104のFROM領域へと自動的
に転送格納される。同時に、図6に示される論理/物理
アドレス変換テーブルが更新されることによって、シス
テムプログラムメモリ全体の整合性が保たれる。
As described above, according to this embodiment, when the user needs to customize the system program, add a command, or the like, the maker or the vendor requires the external storage such as the memory card 109 to be used. All that is required is to write the program data for customization on the medium and distribute it to the user. The user inserts the memory card 109 into a predetermined slot, connects the connector 108, and sets the DIP switch 111 to the program partial change mode. Then, when a power switch (not shown) is turned on, the system program partial change processing shown in FIG. 3 is executed, and the customization correspondence program data stored in the memory card 109 is automatically stored in the FROM area of the system program memory 104. Transferred and stored At the same time, by updating the logical / physical address conversion table shown in FIG. 6, the consistency of the entire system program memory is maintained.

【0069】そのため、ユーザノウハウを命令という形
で隠蔽しやすくなると共に、従来ラダー言語で記述して
いた複数の処理を1つの命令として作成することで、処
理の高速化を図ることができる。又、システムプログラ
ムへのデータ書き込み機材は不要であり、そのための準
備作業も含めコスト・工数の削減を図ることができる。
さらに、現状のシステムプログラムと追加部分を独立さ
せる仕組みを実現したことで、追加/変更部分の開発の
みでカスタマイズ対応用プログラムデータが作成可能と
なり、開発工数を削減することができ、加えてカスタマ
イズデータが既存システムプログラムにADD−ONさ
れるため、カスタマイズデータそのものを直接管理可能
となる。すなわち、既存システムプログラムのバージョ
ンを意識する必要がなくなる。
Therefore, the user know-how can be easily concealed in the form of an instruction, and the processing can be speeded up by creating a plurality of processes conventionally described in a ladder language as one instruction. Further, no equipment for writing data to the system program is required, and the cost and man-hour can be reduced, including the preparation work for that.
Furthermore, by realizing a mechanism that makes the current system program and additional parts independent, it is possible to create program data for customization only by developing additional / changed parts, reducing development man-hours and customizing data. Is added to the existing system program, the customization data itself can be directly managed. That is, there is no need to be aware of the version of the existing system program.

【0070】尚、以上の実施形態においては、ユーザ命
令の追加のために本発明を実施したが、本発明のシステ
ムプログラム部分変更処理はこれに限定されるものでは
なく、ユーザ命令全体の差し替え、或いは任意の機能の
システムプログラムの部分変更にも応用することが可能
である。さらに、以上の実施形態では、書き込まれるべ
きシステムプログラムそれ自体に、命令機能実現プログ
ラムの他に、論理/物理アドレス変換テーブルも含ませ
て、システムプログラムの書き替え処理により、それに
関連する論理/物理アドレス変換テーブルを自動的に更
新するように構成したが、これはアドレス変換テーブル
更新の一態様に過ぎないものである。すなわち、書き込
まれるべきシステムプログラムそれ自体には、命令機能
実現プログラムのみを含ませておき、その書き替え後の
物理アドレスを別途上記の変換テーブルに書き込むこと
によっても、アドレス変換テーブルの更新を行うことが
できる。
In the above embodiment, the present invention is implemented for adding a user instruction. However, the system program partial change processing of the present invention is not limited to this. Alternatively, the present invention can be applied to a partial change of a system program having an arbitrary function. Further, in the above embodiment, the system program to be written itself includes a logical / physical address conversion table in addition to the instruction function realizing program, and the rewriting of the system program causes the relevant logical / physical Although the address translation table is configured to be automatically updated, this is only one mode of updating the address translation table. In other words, the system program to be written itself includes only the instruction function realizing program, and the physical address after rewriting is separately written in the above conversion table, thereby updating the address conversion table. Can be.

【0071】[0071]

【発明の効果】以上の説明で明らかなように、この発明
によれば、PROMライタやデバイス用のアダプタなど
の特別な機材を要することなく、簡単な操作でシステム
プログラム変更・命令追加/カスタマイズを可能とした
プログラマブルロジックコントローラを提供することが
できる。
As is apparent from the above description, according to the present invention, a system program can be changed, instructions can be added / customized by a simple operation without special equipment such as a PROM writer and a device adapter. An enabled programmable logic controller can be provided.

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

【図1】PLC全体のハードウェア構成を示すブロック
図。
FIG. 1 is a block diagram showing a hardware configuration of an entire PLC.

【図2】システム処理全体のフローチャート。FIG. 2 is a flowchart of the entire system processing.

【図3】システムプログラム部分変更処理のフローチャ
ート。
FIG. 3 is a flowchart of a system program partial change process.

【図4】ユーザプログラム実行処理の詳細フローチャー
ト。
FIG. 4 is a detailed flowchart of a user program execution process.

【図5】命令/論理アドレス変換テーブルの説明図。FIG. 5 is an explanatory diagram of an instruction / logical address conversion table.

【図6】論理/物理アドレス変換テーブルの説明図。FIG. 6 is an explanatory diagram of a logical / physical address conversion table.

【図7】命令プログラム領域のメモリマップ。FIG. 7 is a memory map of an instruction program area.

【図8】部分変更におけるシステムプログラム書き換え
範囲のメモリマップ。
FIG. 8 is a memory map of a system program rewriting range in a partial change.

【図9】表示部の動作態様を示す説明図。FIG. 9 is an explanatory diagram illustrating an operation mode of a display unit.

【図10】既存命令で記述されたユーザプログラムと新
規カスタマイズ命令で記述されたユーザプログラムとを
比較して示す説明図。
FIG. 10 is an explanatory diagram showing a comparison between a user program described by an existing instruction and a user program described by a new customization instruction;

【図11】従来PLCのユーザプログラムメモリの内容
を示すメモリマップ。
FIG. 11 is a memory map showing the contents of a user program memory of a conventional PLC.

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

1 PLC 101 CPU 102 I/Oメモリ 103 ユーザプログラムメモリ 104 システムプログラムメモリ 105 ワークメモリ 106 I/Oインタフェース 107 入出力装置 108 コネクタ 109 メモリカード 110 インタフェース 111 DIPスイッチ 112 表示部 1 PLC 101 CPU 102 I / O memory 103 User program memory 104 System program memory 105 Work memory 106 I / O interface 107 I / O device 108 Connector 109 Memory card 110 Interface 111 DIP switch 112 Display unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ユーザ命令解読実行処理やI/Oリフレ
ッシュ処理と言った装置本来の機能を実現するためのシ
ステムプログラムを格納するシステムプログラムメモリ
と、ユーザの制御仕様に相当するユーザプログラムを格
納するユーザプログラムメモリとを少なくとも有するプ
ログラマブルロジックコントローラにおいて、 前記システムプログラムメモリの少なくとも一部を実装
状態のままで書き換え可能な不揮発性メモリで構成する
と共に、該書き換え可能な不揮発性メモリには追加機能
に対応するシステムプログラム格納領域を設け、さら
に、 動作モードをシステムプログラム部分変更モードに設定
するためのモード設定手段と、 追加機能に対応するシステムプログラムを格納した外部
記憶媒体を着脱可能に取り付けるためのコネクタと、 動作モードがシステムプログラム部分変更モードに設定
されていることを条件として、前記コネクタを介して接
続された外部記憶媒体に格納された追加機能に対応する
システムプログラムを、前記システムプログラムメモリ
の追加機能に対応するシステムプログラム格納領域に転
送するプログラム転送手段と、 を設けたプログラマブルロジックコントローラ。
1. A system program memory for storing a system program for realizing functions inherent to the apparatus such as a user command decoding execution process and an I / O refresh process, and a user program corresponding to a user's control specification. A programmable logic controller having at least a user program memory, wherein at least a part of the system program memory is configured as a rewritable nonvolatile memory while being mounted, and the rewritable nonvolatile memory corresponds to an additional function. Mode setting means for setting an operation mode to a system program partial change mode, and a connector for detachably attaching an external storage medium storing a system program corresponding to an additional function. And a system program corresponding to the additional function stored in the external storage medium connected via the connector, provided that the operation mode is set to the system program partial change mode. A program transfer means for transferring a program to a system program storage area corresponding to a function;
【請求項2】 ユーザ命令の各々に対応する命令機能実
現プログラムをシステムプログラムメモリに格納し、こ
れをユーザ命令解読に際して適宜に読み出して実行する
ことにより、ユーザプログラムで規定された制御仕様を
実現するプログラマブルロジックコントローラにおい
て、 前記システムプログラムメモリの少なくとも一部を実装
状態のままで書き換え可能な不揮発性メモリで構成する
と共に、該書き換え可能な不揮発性メモリには追加命令
に対応する命令機能実現プログラム格納領域を設け、さ
らに、 動作モードをシステムプログラム部分変更モードに設定
するためのモード設定手段と、 追加命令に対応する命令機能実現プログラムを格納した
外部記憶媒体を着脱可能に取り付けるためのコネクタ
と、 動作モードがシステムプログラム部分変更モードに設定
されていることを条件として、前記コネクタを介して接
続された外部記憶媒体に格納された追加命令に対応する
命令機能実現プログラムを、前記システムプログラムメ
モリの命令機能実現プログラム格納領域に転送するプロ
グラム転送手段と、 を設けたプログラマブルロジックコントローラ。
2. A control function specified by a user program is realized by storing an instruction function realizing program corresponding to each user command in a system program memory and reading and executing the program appropriately when decoding the user command. In the programmable logic controller, at least a part of the system program memory is configured as a rewritable nonvolatile memory while being mounted, and the rewritable nonvolatile memory has an instruction function realization program storage area corresponding to an additional instruction. Mode setting means for setting the operation mode to the system program partial change mode; a connector for detachably attaching an external storage medium storing an instruction function realization program corresponding to the additional instruction; and an operation mode. Is a system program The instruction function realizing program corresponding to the additional instruction stored in the external storage medium connected via the connector is stored in the system program memory, provided that the instruction function realizing program is set in the system partial change mode. A programmable logic controller comprising: a program transfer means for transferring data to an area;
【請求項3】 ユーザ命令の各々に対応する命令機能実
現プログラムをシステムプログラムメモリに格納し、こ
れをユーザ命令解読に際して適宜に読み出して実行する
ことにより、ユーザプログラムで規定された制御仕様を
実現するプログラマブルロジックコントローラにおい
て、 前記システムプログラムメモリの少なくとも一部を実装
状態のままで書き換え可能な不揮発性メモリで構成する
と共に、該書き換え可能な不揮発性メモリには新規命令
に対応する命令機能実現プログラム格納領域を設け、ま
たハウジング外面に取り付けられかつ少なくともプログ
ラム部分変更モードと通常モードとに設定可能なモード
設定スイッチと、 ハウジング外面に設けられかつ1若しくは2以上の命令
機能実現プログラムが格納されたメモリカードを装着可
能なスロットと、 動作電源を投入するために使用される電源スイッチと、
を設け、さらに前記システムプログラムメモリに格納さ
れるシステムプログラムには、前記電源スイッチのオン
直後に前記モード設定スイッチの状態を読み込むと共
に、その状態がプログラム部分変更モードである場合に
は、前記スロットに装着されたメモリカードに格納され
た命令機能実現プログラムを前記システムプログラムメ
モリの命令機能実現プログラム格納領域に転送する一
方、通常モードである場合には命令実行処理やI/Oリ
フレッシュ処理を含む通常動作を行う機能が含まれてい
る、プログラマブルロジックコントローラ。
3. A control function specified by the user program is realized by storing an instruction function realizing program corresponding to each user command in a system program memory and reading and executing the program appropriately when decoding the user command. In the programmable logic controller, at least a part of the system program memory is configured as a rewritable nonvolatile memory in a mounted state, and the rewritable nonvolatile memory has an instruction function realizing program storage area corresponding to a new instruction. A mode setting switch mounted on the outer surface of the housing and capable of setting at least a program partial change mode and a normal mode; and a memory card provided on the outer surface of the housing and storing one or more instruction function realization programs. Wearing Noh slot, a power switch used for turning on the operating power,
In the system program stored in the system program memory, the state of the mode setting switch is read immediately after the power switch is turned on, and when the state is the program partial change mode, the While transferring the instruction function realization program stored in the attached memory card to the instruction function realization program storage area of the system program memory, in the normal mode, normal operation including instruction execution processing and I / O refresh processing A programmable logic controller that includes the function of performing
JP30169899A 1999-10-22 1999-10-22 Programmable logic controller Expired - Fee Related JP3659399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30169899A JP3659399B2 (en) 1999-10-22 1999-10-22 Programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30169899A JP3659399B2 (en) 1999-10-22 1999-10-22 Programmable logic controller

Publications (2)

Publication Number Publication Date
JP2001125608A true JP2001125608A (en) 2001-05-11
JP3659399B2 JP3659399B2 (en) 2005-06-15

Family

ID=17900085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30169899A Expired - Fee Related JP3659399B2 (en) 1999-10-22 1999-10-22 Programmable logic controller

Country Status (1)

Country Link
JP (1) JP3659399B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103163820A (en) * 2011-12-19 2013-06-19 深圳市汇川控制技术有限公司 Programmable logic controller (PLC) enabling program debugging to be convenient and implementing method
JP2013534672A (en) * 2010-07-09 2013-09-05 カンパテンツ ベー フェー How to monitor changes in the settings of an automatic machine controller
US10001767B2 (en) 2014-06-02 2018-06-19 Mitsubishi Electric Corporation Programmable controller system, programmable controller, program display device, and program display method
US10488841B2 (en) 2016-07-27 2019-11-26 Fanuc Corporation Programmable controller

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102965521B (en) * 2012-11-26 2013-11-20 罕王实业集团有限公司 Method for nickel laterite ore through adopting wet pellet smelting lower temperature reduction mode

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013534672A (en) * 2010-07-09 2013-09-05 カンパテンツ ベー フェー How to monitor changes in the settings of an automatic machine controller
CN103163820A (en) * 2011-12-19 2013-06-19 深圳市汇川控制技术有限公司 Programmable logic controller (PLC) enabling program debugging to be convenient and implementing method
US10001767B2 (en) 2014-06-02 2018-06-19 Mitsubishi Electric Corporation Programmable controller system, programmable controller, program display device, and program display method
US10488841B2 (en) 2016-07-27 2019-11-26 Fanuc Corporation Programmable controller

Also Published As

Publication number Publication date
JP3659399B2 (en) 2005-06-15

Similar Documents

Publication Publication Date Title
US6237091B1 (en) Method of updating firmware without affecting initialization information
CN113553081A (en) FPGA loading method based on ZYNQ chip
CN116009921A (en) Method, device and medium for upgrading embedded operating system
US20020083427A1 (en) Embedded system capable of rapidly updating software and method for rapidly updating software of embedded system
US6925522B2 (en) Device and method capable of changing codes of micro-controller
JP2001125608A (en) Programmable logic controller
JP3916253B2 (en) Method for generating and storing a user program comprising instructions for a program storage controller and method of operating a program storage controller
CN116560688A (en) Software updating method for domain controller
JP2004021867A (en) Information processing system
JPH0237600A (en) Testing of read-only-memory and device for executing the same
KR19980054349A (en) Optional automatic setting circuit
JPH08179986A (en) Information processor
WO2020129324A1 (en) Module, information processing device equipped with same, and program data updating method for updating program data of module
JP2001117766A (en) Information processor with patch function of mask rom
JPH11282690A (en) Method for writing control program, information processor and information processing system
JP3635903B2 (en) Programmable controller
JPH08307246A (en) Method for configuring integrated circuit device and logic circuit
JPH1050086A (en) Microcomputer having eeprom and its rewriting method
JPH05143315A (en) Version up method for firmware
JP2003167843A (en) Signal input and output device
JPH1145175A (en) Cpu device and its using method
CN115904433A (en) FPGA (field programmable Gate array) flashing method and device, readable storage medium and system
JP2000148466A (en) Information processor, and control program updating method of information processor
CN116521244A (en) Method, device, equipment and medium for correcting error threshold
JP2002268891A (en) Device controller

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041217

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050309

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090325

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees