JP3709315B2 - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP3709315B2
JP3709315B2 JP37140799A JP37140799A JP3709315B2 JP 3709315 B2 JP3709315 B2 JP 3709315B2 JP 37140799 A JP37140799 A JP 37140799A JP 37140799 A JP37140799 A JP 37140799A JP 3709315 B2 JP3709315 B2 JP 3709315B2
Authority
JP
Japan
Prior art keywords
memory
user program
change
run
plc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP37140799A
Other languages
Japanese (ja)
Other versions
JP2001184106A (en
Inventor
淳一 加藤
直典 菊池
裕之 木村
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co Ltd
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 Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP37140799A priority Critical patent/JP3709315B2/en
Publication of JP2001184106A publication Critical patent/JP2001184106A/en
Application granted granted Critical
Publication of JP3709315B2 publication Critical patent/JP3709315B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、プログラマブルコントローラに係り、ユーザプログラム、特にシーケンスプログラムの演算実行中において、そのシーケンスプログラムを変更することが可能なプログラマブルコントローラに関するものである。
【0002】
【従来の技術】
近年、プログラマブルコントローラ(以下、PLCという)の高速・高性能化あるいは制御システムの複雑化などの理由により、ユーザが作成するユーザプログラム、特に、代表的なシーケンスプログラムは複雑、且つ大規模化している。
【0003】
この大規模化は、シーケンスプログラムのデバッグ作業に要する作業時間を増大させる要因となっている。デバッグ作業を効率的に実施するため、PLCの運転中にユーザプログラムを変更(以下、RUN中変更という)する機能を有したPLCが多い。
【0004】
ここで、図5を参照して従来のPLCにおける演算処理およびRUN中変更機能について説明する。
【0005】
図5は従来のPLCの構成図である。図5において、PLC100は、少なくとも周辺装置から情報を入力する手段と、該PLC100全体を制御するシステムプログラムに基づき、ユーザプログラムに従い、演算・制御を行い、且つ前記演算実行中に前記ユーザプログラムの内容を変更できる中央演算処理部(以下、CPU部という)10と、前記CPU部と接続され、且つ演算・制御に必要な各種データを格納するデータメモリ5と、前記CPU部と接続され、且つ演算・制御のためのユーザプログラムを格納するユーザプログラムメモリ6Aおよび前記PLCの運転中に前記ユーザプログラムの変更に用いられるRUN中変更用メモリ6Bと、前記システムプログラムを格納するシステムプログラムメモリ7と、前記CPU部10とインタフェース8および周辺装置ポート9を介して接続される周辺装置110と、前記CPU部10に入力する入力接点を有する入力部1と、制御対象に出力する出力コイル3を有する出力部4とから構成される。なお、前記周辺装置110は通常パソコン等が用いられる。
【0006】
PLCのCPU部10の主な機能として、第一に、プログラムおよびデータを転送する能力を有すること、第二に、ユーザがコーディングしたユーザプログラム内容に応じた演算処理を行い、その結果に応じて出力信号制御を行うことなどが挙げられる。
【0007】
ここで、プログラム転送とは、ユーザが周辺装置110で入力したユーザプログラムを周辺ポート9および周辺装置インタフェース8を介してユーザプログラムメモリ6Aに格納することである。
【0008】
データ転送とは、周辺装置110から周辺ポート9および周辺装置インタフェース8を介して、CPU部10の内部の演算結果を格納するデータメモリ5の内容を読み出したり、逆に、データメモリ5にデータを書き込むことである。
【0009】
さらに、CPU部10は、入力部2を介して入力接点1の状態を取り込み、ユーザメモリ6Aに格納されたユーザプログラムに従い、前述の取り込んだデータをCPU部10で演算する。演算結果はデータメモリ5に格納されたり、出力部4を介して出力コイル3に出力する構成となっていた。
【0010】
次に、従来のPLCにおけるRUN中変更機能について説明する。
【0011】
周辺装置110からRUN中変更の要求がCPU10に送られ、同時に変更後のユーザプログラムが前記周辺装置110からRUN中変更用メモリ6Bに転送される。前記CPU10は、ユーザプログラムメモリ6A上のユーザプログラム実行状況を監視しつつ、RUN中変更用メモリ6Bの変更ユーザプログラムをユーザプログラムメモリ6A上に置換していくものである。この置換する手段はシステムプログラムに格納されている置換プログラムに従いCPU10がソフト的に行うものである。
【0012】
【発明が解決しようとする課題】
一般に、RUN中変更機能は、制御システムの試運転時などユーザプログラムを頻繁に変更する場合には使用頻度が高く、制御システムが安定動作している通常運転時には使用頻度が低い。
【0013】
それにも関わらず、図5に示す如く、従来、RUN中変更機能を実現する場合のPLC100のハードウエア構成としては、該PLC100内にRUN中変更メモリを専用に有していることが多い。
【0014】
すなわち、従来RUN中変更機能を実現する構成では、通常運転状態などにおけるRUN中変更が不必要な場合にも専用のメモリを搭載していることになり、貴重なハードウエア資源を無駄遣いしているという問題がある。
【0015】
この問題を改善した技術が提案されている。外部メモリ、例えば、周辺装置のプログラミングコンソールのメモリを利用してプログラムの修正を行い、修正が完了したならば、修正済のプログラムを停止させたPLCに転送するものである。これに関連するものとしては、特開平5−233014号公報の技術がある。
しかし、これは、単に、プログラム実行中に、外部メモリでプログラムを修正できるというものである。しかしながら、プログラムを変更する場合はPLCを停止しなければならず、RUN中変更が出来ず、加えて、周辺装置のプログラミングコンソルと作業メモリとが一体化しており、大形プログラミングコンソールを運搬する必要があり、保守性に対する配慮が不十分であつた。
【0016】
また、一般に、電子機器において、コネクタなどを介して機器間を接続する場合、その取付けと取外し時には注意を要することが多い。その理由はコネクタが接触するタイミングによっては、電源電圧の変動等により機器内部の部品が破損するおそれが有るためである。
【0017】
図6は、従来におけるメモリI/Fとメモリボードのブロック図を示す。
【0018】
上記対策のため、メモリI/F部において、従来機器では機器の電源を切ってからコネクタ類の取付けと取外しの対策手段を設けたものがある。メモリI/FとPLC本体側とメモリボード側の部品を保護するため、メモリI/Fの電源部にスィッチチング素子24とスィッチ23を設けた一例である。
【0019】
メモリボード102の取付け前には、スイッチ23を解放状態にしてスィッチング素子24をOFFにし、メモリボード102側に電源が供給されないようにする。前記メモリボード102を取り付けた後、スイッチ23を接続状態にしてスィッチング素子24をONにし、当該メモリボード102に電源を供給すると同時に、データバスバッファ25Bとアドレスバッファ25Aを制御する信号22が活線化されてくる。なお、20A,20Bはデータバス、21A,21Bはアドレスバスである。
【0020】
メモリボード102を取り外す前には、スィツチ23を解放状態にして
、メモリボード102への電源供給とバッフア25A、25Bへの信号供給を停止する。このように、従来の構成の対策手段では、メモリボード102の取付け/取り外し前にスイッチの操作が必要であり、保守性に対する問題があった。
【0021】
本発明は、かかる従来の問題点を解決するためになされたものであり、通常運転状態などにおけるRUN中変更が不必要な場合の専用のメモリを搭載を止め、貴重なハードウエア資源の無駄遣いがなく、保守性に対する配慮も十分であるプログラマブルコントローラを提供することをその目的とする。
【0022】
【課題を解決するための手段】
上記目的を達成するために、本発明では、ユーザプログラムを格納するユーザプログラムメモリと、システムプログラムを格納するシステムプログラムメモリと、前記ユーザプログラムに従い順次演算実行し、且つ前記ユーザプログラムメモリの内容を変更する中央演算処理部と、該中央演算処理部と前記ユーザプログラムメモリとに接続されるメモリボード用インタフェース部とを備えたプログラマブルコントローラにおいて、当該プログラマブルコントローラが通電され前記ユーザプログラムが実行されている状態でも前記ユーザプログラムの変更が可能な活線挿抜構造の受け側コネクタを有し、該受け側コネクタを介してRUN中変更用メモリと、LEDと、前記活線挿抜構造の挿入側コネクタとが搭載されたメモリボードを着脱自在に接続可能とし、さらに、該メモリボードの活線装着が完了し、前記中央演算処理部が前記ユーザプログラムの変更が必要と判断した場合、RUN中変更を開始し且つ前記LEDを点灯させ、前記RUN中変更が完了すると、該LEDを消灯させて、前記メモリボードの活線脱離が可能であることを示す構成とする。
【0024】
【発明の実施の形態】
以下、本発明に係るプログラマブルコントローラ(以下、PLCという)の一実施の形態について図1ないし図4を参照して説明する。
【0025】
図1は、本発明の一実施形態に係るPLCの構成図である。
【0026】
図1において、PLC101は、システムプログラムに従い当該PLC101全体を制御するCPU10と、該CPU10と接続され、ユーザプログラムのRUN中変更プログラムを含む制御内容・手順を記憶し、格納するシステムプログラムメモリ7と、前記CPU10と接続され、且つユーザプログラムを格納する書き換え可能なユーザプログラムメモリ6Aと、上記CPU10に接続され演算に必要なデータ、演算結果などを記憶する書き換え可能なデータメモリ5とを備えるものである。そして、周辺装置110がPLCの近くに置かれている場合は、データメモリ5の内容を書き換え可能とするために、データメモリ5が周辺装置のインタフェース8および周辺ポート9を介して該周辺装置110に接続されているのが通常である。
【0027】
そして、RUN中変更用メモリ6Bと、前記CPU10および前記ユーザプログラムメモリ6Aとを接続するメモリインタフェース12(以下、メモリI/F12という)が設けられいる。前記メモリI/F12側のメス型コネクタとメモリボード102側のオス型コネクタ103が接続されることにより、前記メモリI/F12に、RUN中変更用メモリ6Bが搭載された前記メモリボード102が装着される。
【0028】
前記CPU10が、RUN中変更用メモリ6Bが搭載された状態のメモリボード102が装着状態か、脱離状態かを適宜な手段、例えば電源端子の挿入もしくは未挿入の通電の有無により、定期的に監視している。前記メモリボード102にはパワーLED105が設けられおり、前記CPU10が、定期的に監視の結果、前記メモリボード102が装着されていることを認識した場合には前記パワーLED105が点灯するようになっている。なお、前記パワーLED105の配線関係については図示を省略している。
【0029】
次ぎに、RUN中変更時以外においては、使用されていない状態のRUN中変更用のメモリを取り外す構造と、取り外す際のメモリ内容の保護をする活線挿抜の構造を図2および図3を参照して説明する。図2は、活線挿抜のコネクタ構造の説明図、図3は、メモリI/F12側とメモリボード102側との結合説明図である。
【0030】
図2、3において、オス型コネクタ103は、グラウンド端子41と信号端子40a,40bと電源端子42を有する。それらの端子の長さは、グラウンド端子41>信号端子40a,40b>電源端子42の関係になっている。そして、該オス型コネクタ103は前記メモリボード102に組み込まれている。
【0031】
メモリI/F12側には、メス型コネクタ104がメモリI/F12に組み込まれており、メモリI/F12には、電源5Vとの接続線PV5と、メモリI/F12の接地部SGと接続線PG5と、入力データバス21Aと接続されているアドレス指定用の一方向のアドレス用バッフアアンプ25Aと
、その出力データバス21Bおよび入力データバス20Aと接続されているデータを双方向に転送する双方向のデータ用バッフアアンプ25Bと、その出力データバス20Bが設けられている。
【0032】
前記PV5は端子孔62、前記PG5は端子孔61、前記出力データバス21Bは端子孔60a、前記出力データバス20Bは端子孔60bと接続されている。なお、信号22は前記バッファ25Aおよび25Bを有効もしくは無効に切替えるための制御信号である。前記入力データバス21Aおよび入力データバス20Aは、図示しないPLC内のバスと接続されている。
【0033】
前記オス型コネクタ103のグラウンド端子41、信号端子40a,40b、電源端子42とそれぞれ接続する上記端子孔61、60a,60b、62の深さは、前記オス型コネクタ103のグラウンド端子41、信号端子40a,40b、電源端子42の長さに応じて深くなるように構成されている。
【0034】
上記構成のコネクタ構造を用いた活線挿抜を説明する。
【0035】
メモリI/F12にメモリボード102を取り付ける場合、前記オス型コネクタ103を前記メス型コネクタ104に接続させるが、まず、前記オス型コネクタ103のグランド端子41と、前記メス型コネクタ104のPG5の端子孔61とが端子の長さと孔の深さの関係より接続される。これにより、メモリI/F12とメモリボード102間の基準電位が一致する。
【0036】
次ぎに、前記オス型コネクタ103の信号40a,40bと前記メス型コネクタ104のアドレス用出力データバス21Bの端子孔60a,データ用出力データバス20Bの端子孔60bとが接続される。ここで、アドレス用出力データバス21B,データ用出力データバス20Bの信号が変動しても、前記の如く、メモリI/F12とメモリボード102間の基準電位が同一であるため、両者間の信号に大きな電位差は生じない。そのため、メモリホード102内のデータや構成部品が破損する心配がない。
【0037】
最後に、前記オス型コネクタ103の電源端子42と電源5Vと接続されているPV5端子孔62が接続され、メモリI/F12とメモリボード102間においてデータの受渡しが可能となる。
【0038】
このように、両端子が時間差をつけて接続されることにより、スイッチやスイッチング素子等の特別の手段を設けることなく、活線挿抜を実現することができる。
【0039】
上記構成のPLCの動作を図4を参照して説明する。図4は、図1のPLCのフロチャートである。
【0040】
S1において、PLC電源をONされる。
【0041】
S2において、ユーザプログラム変更の要否が判断される。必要な場合S3へ進む。不必要な場合にはS10へ進み、PLCの通常運転が続けられる。
【0042】
S3において、必要なユーザプログラムが格納されたRUN中変更用の作業メモリ6Bを搭載したメモリボード102がメモリI/F12と結合し、作業メモリ6Bは活線装着される。
【0043】
S4において、CPUが作業メモリ6Bの装着を確認すると、パワーLED105が点灯する。
【0044】
S5において、CPUがユーザプログラムの内容変更を指示する。
【0045】
S6において、CPUが作業メモリ6BのRUN中変更用情報テーブルを読みだす。RUN中変更用情報テーブルとは、変更の必要なユーザプログラムのアドレスとその内容を示すテーブルである。
【0046】
S7において、前記RUN中変更用情報テーブルの情報を判断し、ユーザプログラムと作業メモリ6Bの内容を置き換える。このとき、ユーザプログラムの実行に支障のないように行われる。
【0047】
S8において、前記RUN中変更用情報テーブルの情報によりユーザプログラムの置き換えがおわり、変更の完了が確認される。
【0048】
S9において、CPUがパワLED105が消灯する。RUN中変更用の作業メモリを活線脱離する。
【0049】
S10において、通常運転となる。
【0050】
前記活線脱離した前記作業メモリの内容は、必要に応じ格納されているプログラムを変更することができる。また、格納されているプログラムを固定した作業メモリを多種類準備しても差し支えない。
【0051】
【発明の効果】
以上、詳細に説明した如く、本発明の構成によれば、脱着可能なRUN中変更用メモリを使用したことにより、以下の効果が得られる
1.部品点数が減少するため、安価なPLCを提供することができる。
【0052】
2.部品点数が減少するため、通常運転時の消費電力を抑制できる。また、PLCを停止することなくRUN中変更用の作業メモリを着脱できる方式を発明したことにより作業効率を向上させることができる。
【0053】
3.小型軽量で持ち運びが便で、保守性がよいRUN中変更用の作業メモリを提供できる。
【図面の簡単な説明】
【図1】本発明の一実施形態に係るPLCの構成図である。
【図2】活線挿抜のコネクタ構造の説明図である。
【図3】メモリI/F12側とメモリボード102側との結合説明図である。
【図4】図1のPLCのフロチャートである。
【図5】従来のPLCの構成図である。
【図6】従来におけるメモリI/Fとメモリボードのブロック図である。
【符号の説明】
1…入力接点、2…入力部、3…出力コイル、4…出力部、5…データメモリ、
6A…ユーザプログラムメモリ、6B…RUN中変更用メモリ、
7…システムプログラムメモリ、8…周辺装置インタフェース、
9…周辺ポート、10…CPU部、12…メモリインタフェース、20A,20B…データバス、21A,21B…アドレスバス、22…バッファ制御信号、23…スイッチ、24…電源用スイッチング素子、
25A…アドレス用バッファ、25B…データ用バッファ、41…グラウンド端子、40a,40b…信号端子、42…電源端子42、
100…従来のPLC、101…本発明のPLC、102…メモリボード、103…メモリポート、110…周辺装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a programmable controller, and more particularly to a programmable controller capable of changing a sequence program during execution of a user program, particularly a sequence program.
[0002]
[Prior art]
In recent years, user programs created by users, especially typical sequence programs, have become complex and large-scale due to reasons such as high speed and high performance of programmable controllers (hereinafter referred to as PLC) or complicated control systems. .
[0003]
This increase in scale is a factor that increases the work time required for debugging the sequence program. Many PLCs have a function of changing a user program (hereinafter referred to as RUN change) during operation of the PLC in order to efficiently perform debugging work.
[0004]
Here, with reference to FIG. 5, the arithmetic processing and the RUN change function in the conventional PLC will be described.
[0005]
FIG. 5 is a block diagram of a conventional PLC. In FIG. 5, the PLC 100 performs calculation / control in accordance with a user program based on at least a means for inputting information from a peripheral device and a system program for controlling the entire PLC 100, and contents of the user program during the execution of the calculation A central processing unit (hereinafter referred to as a CPU unit) 10 that can change the data, a data memory 5 that is connected to the CPU unit and stores various data necessary for calculation and control, and is connected to the CPU unit and operates. A user program memory 6A for storing a user program for control, a RUN change memory 6B used for changing the user program during operation of the PLC, a system program memory 7 for storing the system program, CPU unit 10 and interface 8 and peripheral device port A peripheral device 110 connected via an input section 1 having an input contact to be input to the CPU unit 10, and an output unit 4 and having an output coil 3 to be output to the controlled object. The peripheral device 110 is usually a personal computer.
[0006]
The main functions of the PLC CPU 10 are, firstly, having the ability to transfer programs and data, and secondly, performing arithmetic processing according to the contents of the user program coded by the user, and depending on the result For example, output signal control is performed.
[0007]
Here, the program transfer is to store the user program input by the user through the peripheral device 110 in the user program memory 6A via the peripheral port 9 and the peripheral device interface 8.
[0008]
Data transfer refers to reading the contents of the data memory 5 that stores the calculation results inside the CPU unit 10 from the peripheral device 110 via the peripheral port 9 and the peripheral device interface 8, or conversely, transferring data to the data memory 5. Is to write.
[0009]
Further, the CPU unit 10 captures the state of the input contact 1 via the input unit 2, and the CPU unit 10 calculates the captured data according to the user program stored in the user memory 6A. The calculation results are stored in the data memory 5 or output to the output coil 3 via the output unit 4.
[0010]
Next, the RUN change function in the conventional PLC will be described.
[0011]
A request for change during RUN is sent from the peripheral device 110 to the CPU 10, and at the same time, the changed user program is transferred from the peripheral device 110 to the memory for change during RUN 6B. The CPU 10 replaces the changed user program in the RUN change memory 6B with the user program memory 6A while monitoring the execution status of the user program on the user program memory 6A. This replacement means is performed by the CPU 10 in a software manner in accordance with a replacement program stored in the system program.
[0012]
[Problems to be solved by the invention]
In general, the RUN change function is frequently used when the user program is frequently changed, such as during a test operation of the control system, and is not frequently used during normal operation when the control system is operating stably.
[0013]
Nevertheless, as shown in FIG. 5, conventionally, as a hardware configuration of the PLC 100 when the RUN change function is realized, the PLC 100 often has a RUN change memory exclusively.
[0014]
In other words, in the configuration that realizes the conventional RUN change function, a dedicated memory is mounted even when the RUN change in the normal operation state is unnecessary, and valuable hardware resources are wasted. There is a problem.
[0015]
Techniques that improve this problem have been proposed. The program is corrected using an external memory, for example, the memory of the programming console of the peripheral device. When the correction is completed, the corrected program is transferred to the stopped PLC. A related technique is disclosed in Japanese Patent Application Laid-Open No. 5-233014.
However, this simply means that the program can be modified in external memory during program execution. However, when changing the program, the PLC must be stopped and cannot be changed during RUN. In addition, the programming console of the peripheral device and the working memory are integrated, and it is necessary to carry a large programming console. There was a lack of consideration for maintainability.
[0016]
In general, in an electronic device, when devices are connected via a connector or the like, care is often required when mounting and removing the devices. The reason for this is that depending on the timing at which the connector comes into contact, the components inside the device may be damaged due to fluctuations in the power supply voltage or the like.
[0017]
FIG. 6 shows a block diagram of a conventional memory I / F and memory board.
[0018]
In order to take the above measures, in some memory I / F units, conventional devices are provided with measures for attaching and removing connectors after the device is turned off. This is an example in which a switching element 24 and a switch 23 are provided in the power supply unit of the memory I / F in order to protect the components on the memory I / F, the PLC main body side, and the memory board side.
[0019]
Before the memory board 102 is mounted, the switch 23 is opened to turn off the switching element 24 so that power is not supplied to the memory board 102 side. After the memory board 102 is installed, the switch 23 is connected and the switching element 24 is turned on to supply power to the memory board 102. At the same time, the signal 22 for controlling the data bus buffer 25B and the address buffer 25A is live. It becomes. 20A and 20B are data buses, and 21A and 21B are address buses.
[0020]
Before removing the memory board 102, the switch 23 is released to stop the power supply to the memory board 102 and the signal supply to the buffers 25A and 25B. As described above, in the countermeasure means of the conventional configuration, it is necessary to operate the switch before the memory board 102 is attached / removed, and there is a problem with maintainability.
[0021]
The present invention has been made in order to solve such a conventional problem, and stops mounting a dedicated memory when a change during RUN in a normal operation state is unnecessary, thereby wasting valuable hardware resources. It is an object of the present invention to provide a programmable controller with sufficient consideration for maintainability.
[0022]
[Means for Solving the Problems]
In order to achieve the above object, according to the present invention, a user program memory for storing a user program, a system program memory for storing a system program, a sequential calculation and execution in accordance with the user program, and changing the contents of the user program memory In a programmable controller comprising a central processing unit that performs and a memory board interface unit connected to the central processing unit and the user program memory , the programmable controller is energized and the user program is being executed However, it has a receiving-side connector with a hot-swap structure capable of changing the user program, and a memory for changing during RUN, an LED, and an inserting-side connector with the hot-swap structure are mounted via the receiving-side connector. Removable memory board Further, when the hot plugging of the memory board is completed and the central processing unit determines that the user program needs to be changed, the change during RUN is started and the LED is turned on. When the medium change is completed, the LED is turned off to indicate that the hot removal of the memory board is possible .
[0024]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of a programmable controller (hereinafter referred to as PLC) according to the present invention will be described with reference to FIGS.
[0025]
FIG. 1 is a configuration diagram of a PLC according to an embodiment of the present invention.
[0026]
In FIG. 1, a PLC 101 is a CPU 10 that controls the entire PLC 101 according to a system program, a system program memory 7 that is connected to the CPU 10 and stores and stores control contents and procedures including a RUN change program of a user program. A rewritable user program memory 6A that is connected to the CPU 10 and stores a user program, and a rewritable data memory 5 that is connected to the CPU 10 and stores data necessary for calculation, calculation results, and the like. . When the peripheral device 110 is placed near the PLC, the data memory 5 is connected to the peripheral device 110 via the peripheral device interface 8 and the peripheral port 9 so that the contents of the data memory 5 can be rewritten. It is usually connected to.
[0027]
A memory interface 12 (hereinafter referred to as a memory I / F 12) for connecting the RUN change memory 6B to the CPU 10 and the user program memory 6A is provided. By connecting the female connector on the memory I / F 12 side and the male connector 103 on the memory board 102 side, the memory board 102 in which the memory 6B for RUN change is mounted is mounted on the memory I / F 12 Is done.
[0028]
The CPU 10 periodically determines whether the memory board 102 in which the RUN change memory 6B is mounted is in a mounted state or a detached state, for example, depending on whether a power supply terminal is inserted or not inserted. Monitoring. The power LED 105 is provided on the memory board 102, and the power LED 105 is turned on when the CPU 10 recognizes that the memory board 102 is mounted as a result of regular monitoring. Yes. The wiring relationship of the power LED 105 is not shown.
[0029]
Next, refer to FIG. 2 and FIG. 3 for the structure for removing the RUN change memory that is not being used except during the RUN change, and the structure for hot-swapping to protect the memory contents when removed. To explain. FIG. 2 is an explanatory view of a connector structure for hot-swap, and FIG. 3 is an explanatory view of coupling between the memory I / F 12 side and the memory board 102 side.
[0030]
2 and 3, the male connector 103 includes a ground terminal 41, signal terminals 40 a and 40 b, and a power supply terminal 42. The lengths of these terminals are in the relationship of ground terminal 41> signal terminals 40a, 40b> power supply terminal 42. The male connector 103 is incorporated in the memory board 102.
[0031]
A female connector 104 is incorporated in the memory I / F 12 on the memory I / F 12 side. The memory I / F 12 includes a connection line PV5 to the power source 5V, and a ground line SG to the memory I / F 12 and a connection line. PG 5, a one-way address buffer amplifier 25 A for address designation connected to the input data bus 21 A, and a bidirectional transfer of data connected to the output data bus 21 B and the input data bus 20 A. A data buffer amplifier 25B and its output data bus 20B are provided.
[0032]
The PV5 is connected to the terminal hole 62, the PG5 is connected to the terminal hole 61, the output data bus 21B is connected to the terminal hole 60a, and the output data bus 20B is connected to the terminal hole 60b. The signal 22 is a control signal for switching the buffers 25A and 25B between valid and invalid. The input data bus 21A and the input data bus 20A are connected to a bus in the PLC (not shown).
[0033]
The depths of the terminal holes 61, 60a, 60b, 62 connected to the ground terminal 41, the signal terminals 40a, 40b, and the power supply terminal 42 of the male connector 103 are determined by the ground terminal 41, the signal terminal of the male connector 103, respectively. 40a, 40b and the power terminal 42 are configured to be deeper according to the length.
[0034]
The hot wire insertion / extraction using the connector structure having the above configuration will be described.
[0035]
When the memory board 102 is attached to the memory I / F 12, the male connector 103 is connected to the female connector 104. First, the ground terminal 41 of the male connector 103 and the PG5 terminal of the female connector 104 are connected. The hole 61 is connected based on the relationship between the length of the terminal and the depth of the hole. As a result, the reference potential between the memory I / F 12 and the memory board 102 matches.
[0036]
Next, the signals 40a and 40b of the male connector 103 are connected to the terminal hole 60a of the address output data bus 21B of the female connector 104 and the terminal hole 60b of the data output data bus 20B. Here, even if the signals of the address output data bus 21B and the data output data bus 20B fluctuate, the reference potential between the memory I / F 12 and the memory board 102 is the same as described above. A large potential difference does not occur. Therefore, there is no fear that the data and components in the memory word 102 are damaged.
[0037]
Finally, the power supply terminal 42 of the male connector 103 and the PV5 terminal hole 62 connected to the power supply 5V are connected, and data can be transferred between the memory I / F 12 and the memory board 102.
[0038]
In this way, by connecting both terminals with a time difference, it is possible to realize hot-line insertion / extraction without providing special means such as a switch or a switching element.
[0039]
The operation of the PLC having the above configuration will be described with reference to FIG. FIG. 4 is a flowchart of the PLC of FIG.
[0040]
In S1, the PLC power is turned on.
[0041]
In S2, it is determined whether the user program needs to be changed. If necessary, go to S3. If not necessary, the process proceeds to S10, and the normal operation of the PLC is continued.
[0042]
In S3, the memory board 102 mounted with the RUN change working memory 6B storing the necessary user program is coupled to the memory I / F 12, and the working memory 6B is hot-plugged.
[0043]
In S4, when the CPU confirms the installation of the work memory 6B, the power LED 105 is turned on.
[0044]
In S5, the CPU instructs to change the contents of the user program.
[0045]
In S6, the CPU reads the RUN change information table in the working memory 6B. The RUN change information table is a table showing the addresses of user programs that need to be changed and their contents.
[0046]
In S7, the information in the information table for RUN change is determined, and the contents of the user program and the work memory 6B are replaced. At this time, it is performed so as not to hinder the execution of the user program.
[0047]
In S8, the user program is replaced by the information in the RUN change information table, and the completion of the change is confirmed.
[0048]
In S9, the CPU turns off the power LED 105. The working memory for changing during RUN is hot-lined.
[0049]
In S10, normal operation is performed.
[0050]
The contents of the working memory that has been disconnected can be changed as needed. Also, it is possible to prepare many types of work memories in which stored programs are fixed.
[0051]
【The invention's effect】
As described above in detail, according to the configuration of the present invention, the following effects can be obtained by using the removable RUN change memory. Since the number of parts is reduced, an inexpensive PLC can be provided.
[0052]
2. Since the number of parts is reduced, power consumption during normal operation can be suppressed. Moreover, work efficiency can be improved by inventing the system which can attach or detach the working memory for RUN change without stopping PLC.
[0053]
3. It is possible to provide a working memory for change during RUN that is compact and lightweight, easy to carry, and has good maintainability.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a PLC according to an embodiment of the present invention.
FIG. 2 is an explanatory diagram of a connector structure for hot-swap.
FIG. 3 is an explanatory diagram of coupling between the memory I / F 12 side and the memory board 102 side.
4 is a flowchart of the PLC shown in FIG. 1. FIG.
FIG. 5 is a configuration diagram of a conventional PLC.
FIG. 6 is a block diagram of a conventional memory I / F and a memory board.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Input contact, 2 ... Input part, 3 ... Output coil, 4 ... Output part, 5 ... Data memory,
6A ... User program memory, 6B ... RUN change memory,
7 ... System program memory, 8 ... Peripheral device interface,
DESCRIPTION OF SYMBOLS 9 ... Peripheral port, 10 ... CPU part, 12 ... Memory interface, 20A, 20B ... Data bus, 21A, 21B ... Address bus, 22 ... Buffer control signal, 23 ... Switch, 24 ... Switching element for power supplies,
25A ... address buffer, 25B ... data buffer, 41 ... ground terminal, 40a, 40b ... signal terminal, 42 ... power supply terminal 42,
DESCRIPTION OF SYMBOLS 100 ... Conventional PLC, 101 ... PLC of this invention, 102 ... Memory board, 103 ... Memory port, 110 ... Peripheral device

Claims (1)

ユーザプログラムを格納するユーザプログラムメモリと、システムプログラムを格納するシステムプログラムメモリと、前記ユーザプログラムに従い順次演算実行し、且つ前記ユーザプログラムメモリの内容を変更する中央演算処理部と、該中央演算処理部と前記ユーザプログラムメモリとに接続されるメモリボード用インタフェース部とを備えたプログラマブルコントローラにおいて、
当該プログラマブルコントローラが通電され前記ユーザプログラムが実行されている状態でも前記ユーザプログラムの変更が可能な活線挿抜構造の受け側コネクタを有し、該受け側コネクタを介してRUN中変更用メモリと、LEDと、前記活線挿抜構造の挿入側コネクタとが搭載されたメモリボードを着脱自在に接続可能とし、さらに、該メモリボードの活線装着が完了し、前記中央演算処理部が前記ユーザプログラムの変更が必要と判断した場合、RUN中変更を開始し且つ前記LEDを点灯させ、前記RUN中変更が完了すると、該LEDを消灯させて、前記メモリボードの活線脱離が可能であることを示す構成としたことを特徴とするプログラマブルコントローラ。
A user program memory for storing a user program, a system program memory for storing a system program, a central processing unit for sequentially executing operations according to the user program and changing the contents of the user program memory , and the central processing unit And a programmable controller comprising a memory board interface unit connected to the user program memory ,
A receiving connector having a hot-swap structure that can change the user program even when the programmable controller is energized and the user program is being executed, and a RUN change memory via the receiving connector; The memory board on which the LED and the insertion side connector of the hot-wire insertion / removal structure are mounted can be detachably connected. Further, the hot-plugging of the memory board is completed, and the central processing unit is connected to the user program. When it is determined that a change is necessary, start the change during RUN and turn on the LED. When the change during the RUN is completed, the LED is turned off and the memory board can be hot-lined. The programmable controller characterized by having shown the structure .
JP37140799A 1999-12-27 1999-12-27 Programmable controller Expired - Fee Related JP3709315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP37140799A JP3709315B2 (en) 1999-12-27 1999-12-27 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37140799A JP3709315B2 (en) 1999-12-27 1999-12-27 Programmable controller

Publications (2)

Publication Number Publication Date
JP2001184106A JP2001184106A (en) 2001-07-06
JP3709315B2 true JP3709315B2 (en) 2005-10-26

Family

ID=18498664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37140799A Expired - Fee Related JP3709315B2 (en) 1999-12-27 1999-12-27 Programmable controller

Country Status (1)

Country Link
JP (1) JP3709315B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10496062B2 (en) 2013-11-27 2019-12-03 Kabushiki Kaisha Toshiba Programmable controller for controlling automatic machines, having CPU to received control with respect to own apparatus, when external storage is authenticated based on authentication information

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7568198B2 (en) * 2006-01-10 2009-07-28 National Instruments Corporation Control of tasks in a programmable logic controller
JP6564574B2 (en) 2015-02-06 2019-08-21 コマツ産機株式会社 Press machine and method of using the press machine
CN111913426B (en) * 2019-05-08 2023-05-05 创升益世(东莞)智能自控有限公司 Software container method applied to industrial automation control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10496062B2 (en) 2013-11-27 2019-12-03 Kabushiki Kaisha Toshiba Programmable controller for controlling automatic machines, having CPU to received control with respect to own apparatus, when external storage is authenticated based on authentication information

Also Published As

Publication number Publication date
JP2001184106A (en) 2001-07-06

Similar Documents

Publication Publication Date Title
KR100280637B1 (en) Computer system capable of data update of fixed flash ROM and its control method
JP3709315B2 (en) Programmable controller
CN103842966A (en) Electronic device
JPH0644671A (en) Disk drive package
TWI474679B (en) Bridge and operation method thereof
JP2003122458A (en) Computer device, controller, and method of controlling computer device
CN105824650B (en) Computer system, adaptive suspend mode control module and its control method
JPH1069453A (en) Programmable controller provided with extension unit
US10318463B2 (en) Interface controller, external electronic device, and external electronic device control method
CN103226479B (en) Electronic apparatus system and electronic equipment
JP2002006910A (en) Programable controller with updating function and method for updating function of function extention unit in programable controller
US6985991B2 (en) Bridge element enabled module and method
JP3635903B2 (en) Programmable controller
JP3781844B2 (en) ROM writing system and ROM writing device
JPH0720972A (en) Hot-line inserting and extracting device
JP4366516B2 (en) Computer equipment
JP2002041437A (en) Hard disk drive switching system
JPH10333978A (en) On-board write control device and its method
CN115168268A (en) Communication circuit, board card and electronic equipment
JPH07239921A (en) Pc card
JP2000339070A (en) Pc card adaptor for extending memory and method for extending memory
JP2005141779A (en) Data processing system
JP2021082174A (en) Control apparatus, industrial machine and program writing system
JPH08265488A (en) Facsimile equipment
JPH05181575A (en) Active loading/unloading system for input/output device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050314

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050426

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050622

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050622

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: 20050802

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050808

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: 20080812

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090812

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100812

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100812

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110812

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120812

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130812

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees