JP2014016947A - Programmable controller - Google Patents
Programmable controller Download PDFInfo
- Publication number
- JP2014016947A JP2014016947A JP2012155715A JP2012155715A JP2014016947A JP 2014016947 A JP2014016947 A JP 2014016947A JP 2012155715 A JP2012155715 A JP 2012155715A JP 2012155715 A JP2012155715 A JP 2012155715A JP 2014016947 A JP2014016947 A JP 2014016947A
- Authority
- JP
- Japan
- Prior art keywords
- sequence program
- plc
- mode
- programmable controller
- rewrite
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明による実施形態は、プログラマブルコントローラに係り、例えば、シーケンス制御用のプログラムを格納するプログラマブルコントローラに関する。 Embodiments according to the present invention relate to a programmable controller, for example, a programmable controller that stores a program for sequence control.
プログラマブルコントローラ(以下、PLC(Programmable Logic Controller) とも言う) は、ユーザにより作成されたアプリケーションプログラム(シーケンスプログラム)を実行することによって、該PLCに接続された制御対象を自動でシーケンス制御する。 A programmable controller (hereinafter also referred to as a PLC (Programmable Logic Controller)) automatically performs sequence control on a control target connected to the PLC by executing an application program (sequence program) created by a user.
PLCで実行されるシーケンスプログラムは、通常、プログラミング装置を用いて作成され、マシンコードに変換された後にPLCに転送される。PLCは、システムプログラムを基層のプログラムとして作動し、プログラミング装置から転送されたシーケンスプログラムを演算実行する。これにより、PLCは、制御対象の自動シーケンス制御することができる。 A sequence program executed by the PLC is usually created using a programming device, converted into machine code, and then transferred to the PLC. The PLC operates with the system program as a base layer program, and executes the sequence program transferred from the programming device. As a result, the PLC can perform automatic sequence control of the controlled object.
このようなPLCのシーケンスプログラムは、必要に応じて書き換えられる場合がある。シーケンスプログラムを書き換える場合、従来、パーソナルコンピュータ等の書換えツールを用いて、PLCのシーケンスプログラムを書き換えていた。 Such a PLC sequence program may be rewritten as necessary. In the case of rewriting the sequence program, the PLC sequence program has been conventionally rewritten using a rewriting tool such as a personal computer.
しかしながら、複数のPLCのシーケンスプログラムを書換える場合、ユーザは、書換えツールを個々のPLCに接続してシーケンスプログラムを繰し返し書き換える必要があった。 However, when rewriting a sequence program of a plurality of PLCs, the user needs to rewrite the sequence program repeatedly by connecting a rewriting tool to each PLC.
また、ネットワークを介して複数のPLCのプログラムを同時に書換えることが考えられる。しかし、この場合には、書換え対象のPLCはネットワークで相互に接続されていなければならず、また、書換えの際には、書換えツールは全てのPLCに対して並列に接続されていなければならない。ネットワークに接続されていない独立したPLCについては、プログラムの書換え時にユーザはネットワークに接続するか、あるいは、書換えツールを個々の独立したPLCに接続してプログラムの書換え実行する必要がある。従って、従来からシーケンスプログラムの書換えには、手間および時間が掛かっていた。 It is also conceivable to simultaneously rewrite a plurality of PLC programs via a network. However, in this case, the PLCs to be rewritten must be connected to each other via a network, and at the time of rewriting, the rewriting tool must be connected in parallel to all the PLCs. For an independent PLC that is not connected to the network, the user needs to connect to the network at the time of rewriting the program, or to rewrite the program by connecting a rewriting tool to each independent PLC. Therefore, conventionally, rewriting the sequence program has taken time and effort.
そこで、本発明は、上記問題点を解決するためになされたもので、プログラムを容易かつ短時間に書き換えることができるプログラマブルコントローラを提供することである。 Accordingly, the present invention has been made to solve the above problems, and it is an object of the present invention to provide a programmable controller that can rewrite a program easily and in a short time.
本実施形態によるプログラマブルコントローラは、制御対象の動作を規定するシーケンスプログラムを格納する第1の記憶部と、制御対象の動作を制御するためにシーケンスプログラムを実行する演算処理部と、外部と通信接続可能なインタフェースとを備えたプログラマブルコントローラであって、演算処理部は、シーケンスプログラムを用いて制御対象の動作を制御する通常モード、第1の記憶部に格納されたシーケンスプログラムの書換えを許可する書換えモード、あるいは、他のプログラマブルコントローラのシーケンスプログラムを書き換えるために、第1の記憶部に格納されたシーケンスプログラムをインタフェースから出力する出力モードのいずれかに設定される。 The programmable controller according to the present embodiment includes a first storage unit that stores a sequence program that defines an operation to be controlled, an arithmetic processing unit that executes the sequence program to control the operation to be controlled, and an external communication connection A programmable controller having a possible interface, wherein the arithmetic processing unit rewrites the normal mode for controlling the operation of the control target using the sequence program, and rewrites the sequence program stored in the first storage unit In order to rewrite the mode or the sequence program of another programmable controller, the sequence program stored in the first storage unit is set to either the output mode for outputting from the interface.
当該プログラマブルコントローラは、演算処理部のモードを通常モード、書換えモードあるいは出力モードのいずれかに設定するスイッチをさらに備えていてもよい。 The programmable controller may further include a switch that sets the mode of the arithmetic processing unit to any one of a normal mode, a rewrite mode, and an output mode.
当該プログラマブルコントローラおよび他のプログラマブルコントローラは、同一の構成を有していてもよい。 The programmable controller and other programmable controllers may have the same configuration.
出力モードにおいて、インタフェースは、書換えモードに設定された他のプログラマブルコントローラに通信可能に接続され、演算処理部は、インタフェースを介して第1の記憶部のシーケンスプログラムを他のプログラマブルコントローラへ出力してもよい。 In the output mode, the interface is communicably connected to another programmable controller set to the rewrite mode, and the arithmetic processing unit outputs the sequence program in the first storage unit to the other programmable controller via the interface. Also good.
出力モードにおいて、インタフェースは、複数の他のプログラマブルコントローラに通信可能に接続され、演算処理部は、インタフェースを介して第1の記憶部のシーケンスプログラムを複数の他のプログラマブルコントローラへ出力してもよい。 In the output mode, the interface may be communicably connected to a plurality of other programmable controllers, and the arithmetic processing unit may output the sequence program in the first storage unit to the plurality of other programmable controllers via the interface. .
出力モードにおいて、インタフェースは、書換えモードに設定された他のプログラマブルコントローラに通信可能に接続され、演算処理部は、インタフェースを介して第1の記憶部のシーケンスプログラムを他のプログラマブルコントローラの記憶部へ書き込んでもよい。 In the output mode, the interface is communicably connected to another programmable controller set to the rewrite mode, and the arithmetic processing unit transfers the sequence program of the first storage unit to the storage unit of the other programmable controller via the interface. You may write.
当該プログラマブルコントローラは、第1の記憶部よりも書込み速度の速い第2の記憶部をさらに備え、書換えモードにおいて、演算処理部は、外部から受け取ったシーケンスプログラムを第2の記憶部に一旦格納し、その後、第2の記憶部から第1の記憶部へシーケンスプログラムを書き込んでもよい。 The programmable controller further includes a second storage unit that is faster in writing speed than the first storage unit, and in the rewrite mode, the arithmetic processing unit temporarily stores the sequence program received from the outside in the second storage unit. Thereafter, the sequence program may be written from the second storage unit to the first storage unit.
インタフェースは、シリアル通信、パラレル通信、または、ネットワーク通信によって他のプログラマブルコントローラと通信可能に接続されていてもよい。 The interface may be communicably connected to another programmable controller by serial communication, parallel communication, or network communication.
以下、図面を参照して本発明に係る実施形態を説明する。本実施形態は、本発明を限定するものではない。 Embodiments according to the present invention will be described below with reference to the drawings. This embodiment does not limit the present invention.
(第1の実施形態)
図1は、第1の実施形態によるPLCの構成例を示す図である。PLC100は、CPU(Central Processing Unit)モジュール10と、通信モジュール20と、インタフェース30、50と、I/Oモジュール40とを備えている。I/Oモジュール40は、制御対象と通信可能に接続されており、CPUモジュール10は、I/Oモジュール40を介して制御対象(図示せず)のシーケンス制御を行なう。
(First embodiment)
FIG. 1 is a diagram illustrating a configuration example of a PLC according to the first embodiment. The
CPUモジュール10は、内部のシステムバス19によって互いに接続された各構成要素11〜18を備えている。CPU11は、システムメモリ15に記憶されたシステムプログラムを実行し、CPUモジュール10内の各構成要素の動作制御を行う。それとともに、CPU11は、第1の記憶部としてのシーケンスメモリ17に記憶されたシーケンスプログラムを実行して制御対象のシーケンス制御を行う。
The CPU module 10 includes
システムメモリ15は、システムプログラムを格納している。システムプログラムは、シーケンスプログラム等のユーザアプリケーションプログラムを実行するためのOS(Operating System)として機能する。システムメモリ15は、例えば、フラッシュメモリを用いて構成されている。
The
第1の記憶部としてのシーケンスメモリ17は、インタフェース30から受信したユーザのシーケンスプログラムを格納している。シーケンスプログラムは、システムプログラム上において実行されるユーザアプリケーションであり、制御対象の動作を規定する。通常、シーケンスプログラムは、制御対象を任意に動作させるためにユーザが作成し、インタフェース30を介してシーケンスメモリ17に格納される。制御対象の動作を変更するときには、ユーザは、シーケンスメモリ17内のシーケンスプログラムを書き換えればよい。シーケンスメモリ17は、例えば、フラッシュメモリを用いて構成されている。
The
第2の記憶部としてのワークメモリ16は、CPU11がシステムプログラムおよびシーケンスプログラムに基づいて実行する制御処理に関連するデータを一時的に格納するメモリである。ワークメモリ16は、例えば、SRAMを用いて構成されている。
The
ドライバ/レシーバ13は、インタフェース30を介して外部からシーケンスプログラム等を送受信する。
The driver /
バスインタフェース14は、I/Oモジュール40とシステムバス19との間に接続されており、制御対象をシーケンス制御するために制御に関する情報を入力または出力する。
The
モードスイッチ18は、CPUモジュール10の動作モードを切り替えるスイッチである。CPUモジュール10の動作モードは、例えば、通常モード、書換えモード、および、出力モードを含む。通常モードは、シーケンスプログラムを用いて制御対象をシーケンス制御するモードである。書換えモードは、シーケンスメモリ17に格納されたシーケンスプログラムの書換えを許可するモードである。出力モードは、他のプログラマブルコントローラのシーケンスプログラムを書き換えるために、シーケンスメモリ17に格納されたシーケンスプログラムをインタフェース30から出力するモードである。
The
モードスイッチ18は、CPUモジュール10を、通常モード、書換えモード、および、出力モードのいずれかのモードに設定することができる。モードスイッチ18は、例えば、ディップスイッチを用いて構成されている。この場合、ユーザがディップスイッチのON/OFFを操作することによって上記モードを切り替えることができる。
The
書換えモードにおいて、PLC100は、出力要求信号または書換えモードであることを示すモード信号を出力する。これにより、PLC100に接続された他のPLCまたは書換えツールは、PLC100が書換えモードであり、シーケンスメモリ17内のシーケンスプログラムを書き換えることができる状態にある、ということを知ることができる。
In the rewrite mode, the
また、出力モードにおいては、PLC100は、書換え要求信号または出力モードであることを示すモード信号を出力する。これにより、PLC100に接続された他のPLCは、PLC100が出力モードであり、シーケンスメモリ17内のシーケンスプログラムを出力することができる状態にある、ということを知ることができる。
In the output mode, the
通信モジュール20は、インタフェース50を介してネットワーク(例えば、インターネット、LAN等)に接続可能である。
The
図2は、シーケンスプログラムの書換え時におけるPLC100およびPLC200の接続関係を示す図である。PLC200は、PLC100と同一の構成を有する。ただし、PLC100とPLC200との各構成要素を区別するために、図2において、PLC100の構成要素の参照番号には“a”を付加し、PLC200の構成要素の参照番号には“b”を付加している。
FIG. 2 is a diagram showing a connection relationship between the
PLC100のインタフェース30aとPLC200のインタフェース30bとは、通信線300によって通信可能に接続されている。通信線300は、シリアル通信、パラレル通信、または、ネットワーク通信のいずれでもよい。通信線300は、有線、無線のいずれでもよく、例えば、電話回線、インターネット、LAN等のいずれでもよい。
The interface 30a of the
例えば、PLC100が書換えモードに設定されており、PLC200が出力モードに設定されているものとする。この場合、PLC200は、PLC100のシーケンスプログラムを書き換えるために、シーケンスメモリ17bに格納されたシーケンスプログラムをインタフェース30bから出力する。
For example, it is assumed that the
PLC100は、書換えモードに設定されているので、PLC200からの新しいシーケンスプログラムを受け取ると、CPU11aは、その新しいシーケンスプログラムでシーケンスメモリ17a内のシーケンスプログラムを書き換える。
Since the
逆に、PLC200が書換えモードに設定されており、PLC100が出力モードに設定されている場合、PLC100は、PLC200のプログラマブルコントローラのシーケンスプログラムを書き換えるために、シーケンスメモリ17aに格納されたシーケンスプログラムをインタフェース30aから出力する。
Conversely, when the
PLC200は、書換えモードに設定されているので、PLC100からの新しいシーケンスプログラムを受け取ると、CPU11bは、その新しいシーケンスプログラムでシーケンスメモリ17b内のシーケンスプログラムを書き換える。
Since the
このように、本実施形態によるPLC100、200は、通常モードの他に、書換えモードおよび出力モードを有する。これにより、PLC100、200は、同一の構成を有するものの、それらの一方が他方のシーケンスプログラムを書き換えることができる。
Thus, the
勿論、PLC100とPLC200との間でシーケンスプログラムの書換えを行なうためには、最初にPLC100または200のいずれかが新しいシーケンスプログラムを格納している必要がある。最初にPLC100または200のいずれかに新しいシーケンスプログラムを書き込むために、パーソナルコンピュータ等の書換えツール400が用いられる。
Of course, in order to rewrite the sequence program between the
図3および図4は、PLC100、200の動作を示すフロー図である。図3および図4を参照して、PLC100、200の動作をより詳細に説明する。図3は、書換えモードにおけるPLC100、200の動作を示す。図4は出力モードにおけるPLC100、200の動作を示す。
3 and 4 are flowcharts showing the operation of the
[通常モード]
通常モードでは、PLC100は、シーケンスメモリ17a内のシーケンスプログラムに基づいて、制御バスインタフェース14a、I/Oモジュール40aを介して制御対象をシーケンス制御する。即ち、PLC100は、通常動作を実行する(S2)。
[Normal mode]
In the normal mode, the
[書換えモード(図3)]
PLC100のシーケンスプログラムを書き換えるために、ユーザがモードスイッチ18aを書換えモードに切り替えると、PLC100は、書換えモードに入る(S3)。書換えモードでは、CPU11aは、シーケンスメモリ17a内のシーケンスプログラムを書換え可能にする。また、PLC100は、外部からのシーケンスプログラムの書換え要求信号を待機する。
[Rewrite mode (Fig. 3)]
When the user switches the mode switch 18a to the rewrite mode in order to rewrite the sequence program of the
次に、インタフェース30aには、出力モードに設定された他のPLC200または書換えツール400が接続される(図2参照)(S20)。
Next, the
PLC200または書換えツール400がシーケンスプログラムの書換え要求信号または出力モード信号を出力する(S30)と、PLC100は、インタフェース30aおよびドライバ/レシーバ13aを介して書換え要求信号または出力モード信号を受け取る。PLC100は、書換え要求信号または出力モード信号に対して、出力要求信号または書換えモード信号を返信する(S40)。尚、書換え要求信号または出力モード信号、および、出力要求信号または書換えモード信号には、送信元および送信先の識別子(例えば、アドレス)が含まれている。
When the
PLC200または書換えツール400が出力要求信号または書換えモード信号を受け取ると、PLC200または書換えツール400は、自己のメモリ(例えば、シーケンスメモリ17b)に格納された新しいシーケンスプログラムを一群ずつ送信する(S50)。
When the
尚、PLC200または書換えツール400が書換え要求信号または出力モード信号を出力するタイミング、および、PLC100が出力要求信号または書換えモード信号を出力するタイミングは、いずれが先であってもよい。即ち、PLC100およびPLC200(または書換えツール400)がそれぞれ書換えモードおよび出力モードに設定されており、それらがシーケンスプログラムの出力および書換えの準備ができていることを相互に知ることができればよい。
Note that either the timing at which the
PLC100が新しいシーケンスプログラムを受け取ると、CPU11aは、新しいシーケンスプログラムをシーケンスメモリ17aに格納し、シーケンスメモリ17a内の既存のシーケンスプログラムを新しいシーケンスプログラムで書き換える(S60)。このとき、PLC100は、受け取った新しいシーケンスプログラムを第2の記憶部としてのワークメモリ16aに一旦格納した後に、ワークメモリ16aからシーケンスメモリ17aへその新しいシーケンスプログラムを格納してもよい。
When the
その後、PLC100、PLC200または書換えツール400は、PLC100に格納された新しいシーケンスプログラムのベリファイを行なう(S70)。シーケンスプログラムが正常に書き換えられていることを確認した後に、PLC100とPLC200または書換えツール400との通信は終了する。
Thereafter, the
さらに、ユーザがモードスイッチ18a、18bを通常モードへ戻すことによって、PLC100および200は、それぞれ通常モードに戻る。
Furthermore, when the user returns the mode switches 18a and 18b to the normal mode, the
[出力モード(図4)]
PLC100のシーケンスプログラムを他のPLC200へ出力するために、ユーザは、PLC100のモードスイッチ18aを出力モードに切り替える(S11)。
[Output mode (Fig. 4)]
In order to output the
次に、書換えモードに設定された他のPLC200がPLC100のインタフェース30aに接続される(S21)。
Next, another
PLC100がシーケンスプログラムの書換え要求信号または出力モード信号を出力する(S31)と、PLC200は、インタフェース30bおよびドライバ/レシーバ13bを介して書換え要求信号または出力モード信号を受け取る。PLC200は、書換え要求信号または出力モード信号に対して、出力要求信号または書換えモード信号を返信する(S41)。
When the
PLC100が出力要求信号または書換えモード信号を受け取ると、PLC100のCPUモジュール10aは、自己のシーケンスメモリ17aに格納された新しいシーケンスプログラムを一群ずつ送信する(S51)。
When the
PLC200が新しいシーケンスプログラムを受け取ると、CPU11bは、シーケンスメモリ17b内の既存のシーケンスプログラムを新しいシーケンスプログラムで書き換える(S61)。
When the
その後、PLC100またはPLC200は、PLC200に格納された新しいシーケンスプログラムのベリファイを行なう(S71)。シーケンスプログラムが正常に書き換えられていることを確認した後に、PLC100とPLC200との通信は終了する。
Thereafter, the
さらに、ユーザがモードスイッチ18a、18bを通常モードへ戻すことによって、PLC100および200は、それぞれ通常モードに戻る。
Furthermore, when the user returns the mode switches 18a and 18b to the normal mode, the
尚、ステップS20、S21においてPLC100、200が接続されたときに、一方が通常モードである場合には、シーケンスプログラムの書換え時に必要な書換え要求信号(あるいは出力モード信号)、出力要求信号(あるいは書換えモード信号)が出力されない。従って、PLC100、200が誤ってシーケンスプログラムを出力し、あるいは、シーケンスプログラムを書き換えることはない。
When the
本実施形態によれば、PLC100、200のシーケンスプログラムの書換えにおいて、書換えツール400は最初の1回のみである。その後、シーケンスプログラムの書換えは、PLC100、200同士におけるシーケンスプログラムの授受によって実行される。従って、本実施形態によれば、書換えツール400の使用は可及的に少なく、書換えツール400を複数のPLC100、200のそれぞれに接続する必要がない。書換えツール400の台数も可及的に少なくて済む。
According to the present embodiment, in rewriting the sequence program of the
また、書換えツール400は、複数のPLC100、200に並列に接続されている必要もない。例えば、PLC100およびPLC200がLAN等のネットワークで相互に接続されている場合、書換えツール400は、インターネット等を介して新しいシーケンスプログラムをPLC100または200の一方に書き込めばよい。その後、LANに接続されたPLC同士が、互いにシーケンスプログラムを書き換えることができる。これにより、書換えツール400の使用時間が短縮され、かつ、シーケンスプログラムの書換え時間も短縮され得る。その結果、本実施形態によるPLCは、シーケンスプログラムを容易かつ短時間に書き換えることができる。
Further, the
さらに、上述の通り、書換えモードにおいて、PLC100は、受け取った新しいシーケンスプログラムを第2の記憶部としてのワークメモリ16aに一旦格納した後に、ワークメモリ16aからシーケンスメモリ17aへその新しいシーケンスプログラムを格納してもよい。ワークメモリ16aは、例えば、SRAMであり、フラッシュメモリで構成されたシーケンスメモリ17aよりも書込み速度が速い。従って、シーケンスプログラムをワークメモリ16aに一旦格納することによって、PLC100とPLC200(または書換えツール)との通信時間が短くなる。即ち、シーケンスプログラムをPLC100に書込む時間が、見かけ上、短縮される。
Further, as described above, in the rewrite mode, the
上記実施形態において、PLC100は、1つのPLC200に接続されている。しかし、PLC100は、複数のPLC200に接続されていてもよい。PLC100を出力モードに設定し、かつ、複数のPLC200を総て書換えモードに設定することによって、1つのPLC100のCPU11aは、シーケンスメモリ17a内のシーケンスプログラムを複数の他のPLC200へ出力することができる。これにより、1つのPLC100は、複数のPLC200のシーケンスプログラムを同時に書き換えることができる。
In the above embodiment, the
また、PLC100に接続された複数のPLC200のうちシーケンスプログラムを書き換える必要の無いPLC200のモードスイッチ18bは、通常モードに設定しておけばよい。上述の通り、PLC100が接続されたときに、PLC200が通常モードである場合には、PLC200は、出力要求信号または書換えモード信号を出力しない。書換えの必要なPLC200は、書換えモードになっているので、出力要求信号または書換えモード信号を出力する。このとき、出力要求信号または書換えモード信号は、送信元であるPLC200の識別子および送信先であるPLC100の識別子を含む。従って、PLC100は、出力要求信号または書換えモード信号に応じて、書換えの必要なPLC200へシーケンスプログラムを正確に出力することができる。このとき、書換え不要なPLC200のシーケンスプログラムは書き換えられない。
The
(第2の実施形態)
第1の実施形態では、書換えモードに設定されたPLC100が新しいシーケンスプログラムを受け取ると、CPU11aがその新しいシーケンスプログラムをワークメモリ16aに一旦格納し、その後、ワークメモリ16aからシーケンスメモリ17aにシーケンスプログラムを書き込んでいる。
(Second Embodiment)
In the first embodiment, when the
第2の実施形態では、出力モードに設定されたPLC200が、インタフェース30aを介してPLC100のシーケンスメモリ17aへシーケンスプログラムを直接書き込む。この場合、PLC200のCPU11bがPLC100のシーケンスメモリ17aへシーケンスプログラムを書き込むので、書換えモードに設定されたPLC100のCPU1aに掛かる負荷が小さくなる。
In the second embodiment, the
勿論、PLC100が出力モードであり、PLC200が書換えモードである場合には、PLC100のCPU11aがPLC200のシーケンスメモリ17bへシーケンスプログラムを直接書き込む。
Of course, when the
このように、第2の実施形態によれば、PLCのCPUの負荷を考慮して、出力モード側のPLCのCPUが、書換えモード側のPLCのシーケンスプログラムを書き換えてもよい。 Thus, according to the second embodiment, the PLC CPU on the output mode side may rewrite the PLC sequence program on the rewrite mode side in consideration of the load on the PLC CPU.
(第3の実施形態)
第3の実施形態において、モードスイッチ18は、ソフトウェアスイッチである。即ち、モードスイッチ18は、BIOS(Basic Input/Output System)のようにシステムプログラムに組み込まれたプログラムでもよい。
(Third embodiment)
In the third embodiment, the
この場合、例えば、PLC100のインタフェース30aに何も接続されていない場合、PLC100は、通常モードにあるものとして動作する。
In this case, for example, when nothing is connected to the interface 30a of the
PLC100のインタフェース30aにPLC200が接続された場合、PLC100は、その接続を検知してシーケンスメモリ17aに格納されたシーケンスプログラムのバージョン情報をPLC200へ送信する。このとき、PLC200も、PLC100の接続を検知し、シーケンスメモリ17bに格納されたシーケンスプログラムのバージョン情報をPLC100へ送信する。PLC100およびPLC200のCPU11a、11bは、互いのシーケンスプログラムのバージョン情報を比較する。このような動作を実行するように、シーケンスプログラムは構成されている。そして、古いシーケンスプログラムを有するPLCが書換えモードになり、新しいシーケンスプログラムを有するPLCが出力モードになる。例えば、PLC100に格納されているシーケンスプログラムがPLC200に格納されているシーケンスプログラムよりも古いバージョンである場合、PLC100が書換えモードとなり、PLC200が出力モードになる。そして、PLC200が自己のシーケンスプログラムを出力し、PLC100がPLC200から受け取ったシーケンスプログラムでシーケンスメモリ17aのシーケンスプログラムを書き換える。
When the
PLC100、200の各モードが決定された後、PLC100、200は、図3に示すステップS30以降のステップまたは図4に示すステップS31以降のステップを実行すればよい。これにより、PLC100のシーケンスプログラムが新しいバージョンのシーケンスプログラムに書き換えられる。
After each mode of the
第3の実施形態によれば、PLCは、他のPLCと接続されたときに、相互のシーケンスプログラムのバージョンを自動で比較する。従って、シーケンスプログラムの書換えをする場合、ユーザは、単にPLCを他のPLCに接続するだけでよく、モードスイッチ18a、18bを切り替える必要がない。即ち、ユーザは、PLCのモードを意識する必要がない。さらに、第3の実施形態は、第1の実施形態の効果も得ることができる。 According to the third embodiment, the PLC automatically compares the versions of the sequence programs with each other when connected to another PLC. Therefore, when rewriting the sequence program, the user only needs to connect the PLC to another PLC, and does not need to switch the mode switches 18a and 18b. That is, the user does not need to be aware of the PLC mode. Furthermore, the third embodiment can also obtain the effects of the first embodiment.
100・・・PLC、10・・・CPUモジュール、20・・・通信モジュール、30・・・インタフェース、40・・・I/Oモジュール、11・・・CPU、13・・・ドライバ/レシーバ、14・・・バスインタフェース、15・・・システムメモリ、16・・・ワークメモリ、17・・・シーケンスメモリ、18・・・モードスイッチ 100 ... PLC, 10 ... CPU module, 20 ... communication module, 30 ... interface, 40 ... I / O module, 11 ... CPU, 13 ... driver / receiver, 14 ... Bus interface, 15 ... System memory, 16 ... Work memory, 17 ... Sequence memory, 18 ... Mode switch
Claims (8)
前記制御対象の動作を制御するために前記シーケンスプログラムを実行する演算処理部と、
外部と通信接続可能なインタフェースとを備えたプログラマブルコントローラであって、
前記演算処理部は、前記シーケンスプログラムを用いて前記制御対象の動作を制御する通常モード、前記第1の記憶部に格納された前記シーケンスプログラムの書換えを許可する書換えモード、あるいは、他のプログラマブルコントローラのシーケンスプログラムを書き換えるために、前記第1の記憶部に格納された前記シーケンスプログラムを前記インタフェースから出力する出力モードのいずれかに設定されることを特徴とするプログラマブルコントローラ。 A first storage unit that stores a sequence program that defines an operation to be controlled;
An arithmetic processing unit that executes the sequence program to control the operation of the control target;
A programmable controller having an interface capable of communication connection with the outside,
The arithmetic processing unit may be a normal mode for controlling the operation of the control target using the sequence program, a rewrite mode for permitting rewriting of the sequence program stored in the first storage unit, or another programmable controller. In order to rewrite the sequence program, the programmable controller is set to one of output modes in which the sequence program stored in the first storage unit is output from the interface.
前記インタフェースは、前記書換えモードに設定された他のプログラマブルコントローラに通信可能に接続され、
前記演算処理部は、前記インタフェースを介して前記第1の記憶部の前記シーケンスプログラムを前記他のプログラマブルコントローラへ出力することを特徴とする請求項1から請求項3のいずれか一項に記載のプログラマブルコントローラ。 In the output mode,
The interface is communicably connected to another programmable controller set to the rewrite mode,
The said arithmetic processing part outputs the said sequence program of the said 1st memory | storage part to said other programmable controller via the said interface, The Claim 1 characterized by the above-mentioned. Programmable controller.
前記インタフェースは、複数の他のプログラマブルコントローラに通信可能に接続され、
前記演算処理部は、前記インタフェースを介して前記第1の記憶部の前記シーケンスプログラムを複数の前記他のプログラマブルコントローラへ出力することを特徴とする請求項1から請求項3のいずれか一項に記載のプログラマブルコントローラ。 In the output mode,
The interface is communicatively connected to a plurality of other programmable controllers,
The said arithmetic processing part outputs the said sequence program of the said 1st memory | storage part to several said other programmable controller via the said interface, The Claim 1 characterized by the above-mentioned. The programmable controller described.
前記インタフェースは、前記書換えモードに設定された他のプログラマブルコントローラに通信可能に接続され、
前記演算処理部は、前記インタフェースを介して前記第1の記憶部の前記シーケンスプログラムを前記他のプログラマブルコントローラの記憶部へ書き込むことを特徴とする請求項1から請求項3のいずれか一項に記載のプログラマブルコントローラ。 In the output mode,
The interface is communicably connected to another programmable controller set to the rewrite mode,
The said arithmetic processing part writes the said sequence program of the said 1st memory | storage part to the memory | storage part of said other programmable controller via the said interface, The Claim 1 characterized by the above-mentioned. The programmable controller described.
前記書換えモードにおいて、
前記演算処理部は、外部から受け取ったシーケンスプログラムを前記第2の記憶部に一旦格納し、その後、前記第2の記憶部から前記第1の記憶部へ前記シーケンスプログラムを書き込むことを特徴とする請求項1から請求項6のいずれか一項に記載のプログラマブルコントローラ。 A second storage unit having a writing speed faster than that of the first storage unit;
In the rewrite mode,
The arithmetic processing unit temporarily stores a sequence program received from the outside in the second storage unit, and then writes the sequence program from the second storage unit to the first storage unit. The programmable controller as described in any one of Claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012155715A JP2014016947A (en) | 2012-07-11 | 2012-07-11 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012155715A JP2014016947A (en) | 2012-07-11 | 2012-07-11 | Programmable controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014016947A true JP2014016947A (en) | 2014-01-30 |
Family
ID=50111536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012155715A Pending JP2014016947A (en) | 2012-07-11 | 2012-07-11 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014016947A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808571A (en) * | 2015-03-03 | 2015-07-29 | 肖庆 | Fluid multi-pipeline electric controller |
-
2012
- 2012-07-11 JP JP2012155715A patent/JP2014016947A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808571A (en) * | 2015-03-03 | 2015-07-29 | 肖庆 | Fluid multi-pipeline electric controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8433827B2 (en) | Method for configuring fieldbus stations | |
US20120079470A1 (en) | System, method, and apparatus for software maintenance of sensor and control systems | |
WO2016047312A1 (en) | Vehicle control device, reprogramming system | |
WO2011108026A1 (en) | Control system provided with programmable display, programmable display, and drawing data creation means thereof | |
WO2016033941A1 (en) | Boot on-line upgrading apparatus and method | |
CN104932914A (en) | Multi-CPU starting circuit and multi-CPU starting method | |
US20100070260A1 (en) | Verification device, verifying apparatus and verification system | |
US20140136570A1 (en) | Controller and program | |
JP2010033435A (en) | Control apparatus, control method, and computer program | |
JP6175788B2 (en) | Electronic devices that can update microprograms | |
US10146200B2 (en) | Apparatus and method for updating operating system in programmable logic controller | |
JP5921781B2 (en) | Programmable controller and control method of programmable controller | |
US9223697B2 (en) | Computer reprogramming method, data storage medium and motor vehicle computer | |
WO2018096717A1 (en) | Control system and control method | |
CN103777618A (en) | Method for controlling instruction execution of semiconductor technology | |
JP2014016947A (en) | Programmable controller | |
RU2454739C1 (en) | Method of programming nand flash memory ic and apparatus for realising said method | |
JP6954191B2 (en) | Control systems, development support equipment, and development support programs | |
JP2004280299A (en) | Controller, developing device and system | |
JP2014099099A (en) | Control system | |
CN110278716B (en) | PLC, network unit, CPU unit, and data transfer method | |
JP2010231809A (en) | Controller and computer program | |
JP2006178818A (en) | Motion controller, engineering tool, and c language execution system | |
CN105659174A (en) | Control device for distributed control system | |
JP2008226111A (en) | Duplication controller system and operation system controller |