JP2009042887A - Cpu effective utilization system in multi-cpu system - Google Patents
Cpu effective utilization system in multi-cpu system Download PDFInfo
- Publication number
- JP2009042887A JP2009042887A JP2007205313A JP2007205313A JP2009042887A JP 2009042887 A JP2009042887 A JP 2009042887A JP 2007205313 A JP2007205313 A JP 2007205313A JP 2007205313 A JP2007205313 A JP 2007205313A JP 2009042887 A JP2009042887 A JP 2009042887A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- load
- control system
- bus
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、複数の制御系それぞれのCPUによりマルチCPUシステムが構築され、このマルチCPUシステム内におけるCPUを有効活用する方式に関するものである。 The present invention relates to a system in which a multi-CPU system is constructed by CPUs of a plurality of control systems, and CPUs in the multi-CPU system are effectively used.
例えば、PLCと負荷とで制御系を構築した場合、PLCは、CPUと、メモリと、入、出力インターフェースとが内部バスで相互接続され、CPUは、ラダープログラムをシステム制御プログラムに従い実行し、メモリは、上記プログラムを格納し、また、CPUの演算結果などのデータを格納する各種メモリとから構成される。入出力インターフェースは、外部入出力機器に接続されている。CPUはメモリに格納したラダープログラムに対応して、入出力インターフェースを介して外部入力機器からのデータをメモリに取り込む入力リフレッシュ処理を行い、その後ラダープログラムを1回実行し、演算後のメモリの内容を入出力インターフェースに出力する出力リフレッシュ処理を行う。 For example, when a control system is constructed with a PLC and a load, the PLC is connected to a CPU, a memory, and an input / output interface via an internal bus, and the CPU executes a ladder program according to the system control program, Is composed of various memories for storing the above-mentioned programs and for storing data such as CPU calculation results. The input / output interface is connected to an external input / output device. In response to the ladder program stored in the memory, the CPU performs an input refresh process for fetching data from the external input device into the memory via the input / output interface, then executes the ladder program once, and the contents of the memory after the calculation Is output to the input / output interface.
以上のPLCを複数有すると共に各PLCのそれぞれのCPUが共通バスに接続されたマルチCPUシステムを構築した場合、いずれかのPLCのCPUにおける入出力インターフェースに接続した負荷による負荷率が高い状態が長く続いたり繰り替えされたりすると、CPU温度が上昇し場合によっては熱暴走するなどして負荷を安定制御しにくい場合がある。また、上記マルチCPUシステムでは、いずれかのPLC内のCPUの負荷率が低く時間帯によってはCPUが有効活用されてない場合がある。そこで、本出願人はこうしたマルチCPUシステムにおいて相互のCPUを有効活用する技術の研究開発に着手した。
すなわち本発明は、CPUを有する複数の制御系からなるマルチCPUシステムにおいて各制御系のCPUを有効に活用できるようにすることである。 That is, the present invention is to enable effective use of the CPU of each control system in a multi-CPU system including a plurality of control systems having a CPU.
本発明によるマルチCPUシステムにおけるCPU有効活用方式は、CPUとメモリと入出力インターフェースとが内部バスで相互接続されかつ入出力インターフェースに負荷が接続された複数の制御系において、それぞれのCPUが共通バス系内に存在するマルチCPUシステムにおいて、負荷率が高い第1制御系のCPUとその内部バスとの切り離しおよび接続の高速バススイッチングを行い、上記第1制御系のCPUとその内部バスとを切り離しているときは、その内部バスを負荷率が小さい他の第2制御系のCPUに接続することで、第1制御系の負荷を第2制御系のCPUで処理可能としたことを特徴とするものである。 In the multi-CPU system according to the present invention, the CPU is effectively used in a plurality of control systems in which a CPU, a memory, and an input / output interface are interconnected by an internal bus and a load is connected to the input / output interface. In a multi-CPU system existing in the system, the CPU of the first control system having a high load factor and its internal bus are disconnected and connected to each other by high-speed bus switching, and the CPU of the first control system and its internal bus are disconnected. The load of the first control system can be processed by the CPU of the second control system by connecting the internal bus to the CPU of another second control system having a low load factor. Is.
本発明では、第1制御系のCPUは、負荷率が高いときは、自己の負荷処理の一部を負荷率が小さい第2制御系のCPUにも負担して処理させることができるので、マルチCPUにおいてCPUを有効活用することができる。 In the present invention, when the load factor is high, the CPU of the first control system can also load a part of its own load processing to the CPU of the second control system with a low load factor, so The CPU can be effectively used in the CPU.
本発明の好適な一態様は、高速バススイッチャにより各制御系それぞれのCPUの負荷状況を監視し、第1制御系のCPUからの負荷処理分担要求信号に応じて当該第1制御系のCPUと内部バスとの切り離しおよび接続の高速バススイッチングをすることである。 According to a preferred aspect of the present invention, the high-speed bus switcher monitors the load status of each CPU of each control system, and in response to a load processing sharing request signal from the CPU of the first control system, It is to disconnect from the internal bus and perform high-speed bus switching.
この態様では高速バススイッチャにより各制御系それぞれのCPUの負荷状況を監視して上記高速バススイッチングをするので、各制御系それぞれのCPUによる負荷処理を適正に行いつつ、各CPUを有効に活用することができるようになる。 In this aspect, the high-speed bus switcher monitors the load status of each CPU in each control system and performs the above-described high-speed bus switching. Therefore, each CPU is effectively utilized while properly performing load processing by each CPU in each control system. Will be able to.
本発明のより好適な一態様は、上記高速バススイッチャによりバス使用が競合するときは、バス使用の優先順位が高いCPUの内部バスを優先して他の制御系のCPUに切替接続することができるようになっていることである。 In a more preferred aspect of the present invention, when bus use competes with the high-speed bus switcher, the internal bus of the CPU having a high priority of bus use is preferentially switched and connected to the CPU of another control system. It is possible to do it.
この態様では、重要な負荷を処理している制御系のCPUとさほど重要ではない負荷を処理している制御系のCPUから同一の制御系のCPUに対して負荷処理の要求があってバス使用が競合しても、上記重要な負荷を処理している制御系側のバス使用優先順位を高くすることにより、マルチCPUシステムにおけるシステム運転の安全性を高く維持することができるようになる。 In this mode, a control system CPU that processes an important load and a control system CPU that processes a less important load have a load processing request from the same control system CPU to use the bus. Even if there is contention, the system operation safety in the multi-CPU system can be kept high by increasing the bus usage priority on the control system side that is processing the important load.
本発明のさらに好適な一態様は、第2制御系のCPUは、第1制御系の負荷を処理しているときには自身の負荷処理を実行するまでの残時間を高速バススイッチャに知らせることで当該残時間の経過後には自己の負荷処理を実行可能としたことである。 According to a further preferred aspect of the present invention, when the CPU of the second control system is processing the load of the first control system, it notifies the high-speed bus switcher of the remaining time until executing its own load processing. This means that the load processing can be executed after the remaining time has elapsed.
この態様では、第2制御系のCPUは第1制御系の負荷を処理している最中に自己の負荷を処理すべき時刻が到来した場合に、当該自己の負荷を処理できなくなるという不都合を無くすことができる。 In this aspect, the CPU of the second control system cannot process its own load when the time to process its own load comes while processing the load of the first control system. It can be lost.
本発明によれば、CPUを有する複数の制御系からなるマルチCPUシステムにおいて各制御系のCPUを有効に活用できる。 According to the present invention, a CPU of each control system can be effectively used in a multi-CPU system including a plurality of control systems having a CPU.
以下、添付した図面を参照して、本発明の実施の形態に係るマルチCPUシステムにおけるCPU有効活用方式を説明する。実施の形態では制御系としてPLCを用いるが、これに限定されない。図1は、PLCを用いたマルチCPUシステムの概略構成を示す。 Hereinafter, a CPU effective utilization method in a multi-CPU system according to an embodiment of the present invention will be described with reference to the accompanying drawings. In the embodiment, the PLC is used as the control system, but the present invention is not limited to this. FIG. 1 shows a schematic configuration of a multi-CPU system using a PLC.
実施の形態のマルチCPUシステム1は複数のPLC3,5,7を含む。各PLC3,5,7はCPU3a,5a,7a、メモリ3b,5b,7b、入出力インターフェース3c,5c,7cが内部バス3d,5d,7dで相互接続されている。内部バス3d,5d,7dはバススイッチ11a、13a,15aによりCPU3a,5a,7aに接続されたり切り離しされ、バススイッチ11,13,15により、切替バス25,27,29を介して共通バス9に接続されたり切り離されたりする。CPU3a,5a,7aは外部バス31,33,35を通じて共通バス9に接続されている。バススイッチ11a、13a,15aとバススイッチ11,13,15は制御線36,38,40を介して高速バススイッチャ17により制御される。PLC3,5,7それぞれのCPU3a,5a,7aは、信号線39,41,43から高速バススイッチャ17に負荷処理状況と負荷処理分担要求信号とを送信することができる。高速バススイッチャ17は、信号線39,41,43から与えられるCPU3a,5a,7aの負荷処理状況や負荷処理分担要求信号から必要な以下に述べる制御を行う。なお、バススイッチ11a、13a,15aとバススイッチ11,13,15と高速バススイッチャ17は機能的に示したものであり、この形態に限定されない。
The
図2(a)(b)(c)を参照してPLC3,5,7の負荷を説明する。図2(a)(b)(c)において、横軸は時間、縦軸は負荷率を示す。図2(a)はPLC3のCPU3aの負荷率を示し、PLC3のCPU3aは常時活動していて負荷率が常時高い。図2(b)はPLC5のCPU5aの負荷率を示し、PLC5のCPU5aは、時刻t0−t1,t2−t3,t4−t5で負荷率が高く、それ以外の時刻では活動が小さいかあるいは無くて負荷率が低い。図2(c)はPLC7のCPU7aの負荷率を示し、PLC7のCPU7aの負荷率は時刻t1−t2,t3−t4,で負荷率が高く、それ以外の時刻での活動が小さいかあるいは無くて負荷率が低い。
The loads on the
各PLC3,5,7のCPU3a,5a,7aはバス使用上の優先順位があり、PLC3のCPU3aは負荷19を常時駆動する必要がありCPU負荷率が最大のものでバス使用の優先順位が高いCPUであり、PLC5,7のCPU5a,7aは負荷21,23を間欠的に駆動すればよくバス使用の優先順位が低いCPUである。
The
PLC3の負荷19は図2(a)で示すような負荷率で制御する必要がある例えば生産プラント等の負荷である。PLC5,7の負荷21,23は図2(b)、図2(c)で示すような負荷率で制御すればよい。例えばデイリ電源等の負荷である。なお、これら負荷19,21,23を比較すると、図2(a)の生産プラント等の負荷19では常時24時間体制で制御する必要が有り、図2(b)のデイリ電源等の負荷21では例えば夜間では制御が必要でなく、図2(c)のデイリ電源等の負荷23では例えば夜間に制御する必要がある。
The
以上のマルチCPUシステム1において、高速バススイッチャ17には各PLC3,5,7それぞれのCPU3a,5a,7aから信号線39,41,43を通じて図2(a)(b)(c)で示す負荷率(CPU3a,5a,7aの活動状況)データが与えられていて、高速バススイッチャ17は各PLC3,5,7における負荷率を監視することができるようになっている。
In the
PLC3のCPU3aから時刻t0で高速バススイッチャ17に対して自己の負荷19の処理を依頼する負荷処理分担要求信号が送られると、高速バススイッチャ17は、他のPLC5,7の負荷処理状況からPLC7のCPU7aにPLC3のCPU3aの負荷の一部の処理を分担させるように、バススイッチ11,11aを高速バススイッチング駆動することによりPLC3の内部バス3dをCPU3aに切り離しおよび接続、共通バス9に接続および切り離しを行うことで図3の点線45で示す経路で、PLC7の内部バス7dをPLC7のCPU7aに接続および切り離しをする。この場合、PLC7のCPU7aがPLC3の負荷19を処理するときは、CPU7aをその内部バス7dから切り離すようにバススイッチ15aは高速バススイッチング駆動することにより、PLC7の内部バス7dをCPU7aから切り離しをする。
When a load processing sharing request signal for requesting processing of its
これにより、PLC3のCPU3aの負荷19の処理の一部をPLC7のCPU7aに行わせることができるようになる結果、マルチCPUシステム1においては、PLC7のCPU7aを有効活用することができる。
As a result, a part of processing of the
この場合、PLC3のバス使用優先順位は、他のPLC5,7のそれよりも高いので、PLC3のCPU3aからの負荷処理分担要求信号がPLC3のCPU3aと、他のPLC5のCPU5aとの間で競合する場合、高速バススイッチャ17は優先順位が高いPLC3のCPU3aからの負荷処理分担要求信号を受け付けることができるようになっている。
In this case, since the bus usage priority of the
これにより、高速バススイッチャ17にPLC5のCPU5aからも負荷処理分担要求信号が入力されてきても、高速バススイッチャ17は、PLC5のCPU5aからの負荷処理分担要求信号を無視することができるようになっている。
As a result, even if the load processing sharing request signal is input from the
ただし、高速バススイッチャ17は、バス競合が生じることがないよう、バススイッチ11,11a,13,13aの制御を行うことにより、PLC3,5それぞれのCPU3a,5aの負荷処理の一部をPLC7のCPU7aに行わせることでCPU3aの負荷処理は点線45で、CPU5aの負荷処理は一点鎖線47で示す経路でCPU7aに分担することにより負荷処理を均等に分散させることができるようにしてもよい。こうすることにより、マルチCPUシステムにおけるCPU7aの有効活用を一層促進することができるようになる。
However, the high-
次に時刻t1でPLC3,7のCPU3a,7aそれぞれから高速バススイッチャ17に負荷処理分担要求信号を入力すると、上記と同様に、バス使用優先順位が高いPLC3の内部バス3dをバススイッチ11a、11によりCPU3aからの切り離しおよび接続と共通バス9に対する切り離しおよび接続を高速で繰り返してPLC3のCPU3aの負荷19の処理を図4の点線49で示す経路にてPLC5のCPU5aに行わせる。この場合も、PLC7のCPU7aの負荷処理の一部を一点鎖線51で示す経路にてPLC5のCPU5aに行わせて負荷処理を分散させてもよい。図2中、矢印(1)(3)(5)(7)(9)はPLC3のCPU3aの負荷処理の一部を他のPLC5,7のCPU5a,7aで処理させることを示し、矢印(2)(4)(6)(8)(10)はPLC5または7のCPU5aまたは7aの負荷処理の一部を他のPLC7または5のCPU7aまたは5aで処理させることを示す。
Next, when a load processing sharing request signal is input to the high-
以上から実施の形態のマルチCPUシステム1では、CPU3a,5a,7aそれぞれを有効活用することができる。
As described above, in the
上記の場合、PLC7では時刻t0−t1でCPU7aにより他のPLC3,5の負荷19,21の処理の一部を行うが、時刻t1では自身の負荷23の処理を高い負荷率で実行する必要があるので、自身の負荷23の処理を可能とするために、時刻t1までの残時間を高速バススイッチャ17に知らせる。高速バススイッチャ17は、この残時間が経過した時点で、バススイッチ15aを制御してCPU7aと内部バス7dとを接続してPLC7のCPU7aが自身の制御負荷23の処理を高い負荷率で実行することができるようにする。
In the above case, the
以上説明したように本実施の形態では、自己のCPUの負荷率が高いときは、自己の負荷処理の一部を負荷率が小さいCPUにも負担して処理させることができるので、マルチCPUシステムにおけるCPUの有効活用を図ることができる。 As described above, in the present embodiment, when the load factor of its own CPU is high, a part of its own load processing can also be processed by a CPU having a low load factor, so that a multi-CPU system can be processed. The CPU can be effectively used.
1 マルチCPUシステム
3,5,7 PLC
3a,5a,7a CPU
9 共通バス
11,11a,13,13a,15,15a バススイッチ
17 高速バススイッチャ
1
3a, 5a, 7a CPU
9
Claims (4)
負荷率が高い第1制御系のCPUとその内部バスとの切り離しおよび接続の高速バススイッチングを行い、上記第1制御系のCPUとその内部バスとを切り離しているときは、その内部バスを負荷率が小さい他の第2制御系のCPUに接続することで、第1制御系の負荷を第2制御系のCPUで処理可能とした、ことを特徴とするマルチCPUシステムにおけるCPU有効活用方式。 In a multi-CPU system in which each CPU exists in a common bus system in a plurality of control systems in which a CPU, a memory, and an input / output interface are interconnected by an internal bus and a load is connected to the input / output interface.
When the CPU of the first control system having a high load factor and its internal bus are disconnected and connected at high speed, and the CPU of the first control system is disconnected from the internal bus, the internal bus is loaded. A CPU effective utilization method in a multi-CPU system, characterized in that the load of the first control system can be processed by the CPU of the second control system by connecting to the CPU of another second control system having a low rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007205313A JP2009042887A (en) | 2007-08-07 | 2007-08-07 | Cpu effective utilization system in multi-cpu system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007205313A JP2009042887A (en) | 2007-08-07 | 2007-08-07 | Cpu effective utilization system in multi-cpu system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009042887A true JP2009042887A (en) | 2009-02-26 |
Family
ID=40443591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007205313A Pending JP2009042887A (en) | 2007-08-07 | 2007-08-07 | Cpu effective utilization system in multi-cpu system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009042887A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013501406A (en) * | 2009-07-29 | 2013-01-10 | クゥアルコム・インコーポレイテッド | Asynchronous interface to multi-radio coexistence manager |
US8903314B2 (en) | 2009-10-29 | 2014-12-02 | Qualcomm Incorporated | Bluetooth introduction sequence that replaces frequencies unusable due to other wireless technology co-resident on a bluetooth-capable device |
US9130656B2 (en) | 2010-10-13 | 2015-09-08 | Qualcomm Incorporated | Multi-radio coexistence |
US9148889B2 (en) | 2009-06-01 | 2015-09-29 | Qualcomm Incorporated | Control of multiple radios using a database of interference-related information |
US9161232B2 (en) | 2009-06-29 | 2015-10-13 | Qualcomm Incorporated | Decentralized coexistence manager for controlling operation of multiple radios |
US9185719B2 (en) | 2009-08-18 | 2015-11-10 | Qualcomm Incorporated | Method and apparatus for mapping applications to radios in a wireless communication device |
US9185718B2 (en) | 2009-06-29 | 2015-11-10 | Qualcomm Incorporated | Centralized coexistence manager for controlling operation of multiple radios |
-
2007
- 2007-08-07 JP JP2007205313A patent/JP2009042887A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9148889B2 (en) | 2009-06-01 | 2015-09-29 | Qualcomm Incorporated | Control of multiple radios using a database of interference-related information |
US9155103B2 (en) | 2009-06-01 | 2015-10-06 | Qualcomm Incorporated | Coexistence manager for controlling operation of multiple radios |
US9161232B2 (en) | 2009-06-29 | 2015-10-13 | Qualcomm Incorporated | Decentralized coexistence manager for controlling operation of multiple radios |
US9185718B2 (en) | 2009-06-29 | 2015-11-10 | Qualcomm Incorporated | Centralized coexistence manager for controlling operation of multiple radios |
JP2013501406A (en) * | 2009-07-29 | 2013-01-10 | クゥアルコム・インコーポレイテッド | Asynchronous interface to multi-radio coexistence manager |
US9135197B2 (en) | 2009-07-29 | 2015-09-15 | Qualcomm Incorporated | Asynchronous interface for multi-radio coexistence manager |
US9185719B2 (en) | 2009-08-18 | 2015-11-10 | Qualcomm Incorporated | Method and apparatus for mapping applications to radios in a wireless communication device |
US8903314B2 (en) | 2009-10-29 | 2014-12-02 | Qualcomm Incorporated | Bluetooth introduction sequence that replaces frequencies unusable due to other wireless technology co-resident on a bluetooth-capable device |
US9130656B2 (en) | 2010-10-13 | 2015-09-08 | Qualcomm Incorporated | Multi-radio coexistence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009042887A (en) | Cpu effective utilization system in multi-cpu system | |
EP2515189B1 (en) | Plc cpu unit, system program for plc, and storage medium having system program for plc stored therein | |
JP2007207026A (en) | Dma transfer device | |
US9170832B2 (en) | Virtual machine control apparatus and virtual machine control method | |
JP6527399B2 (en) | Communication system using network | |
JP2007034910A (en) | Multi-cpu system and scheduler | |
CN107743621A (en) | Integrated circuit inputs and output | |
TW201327403A (en) | Information processing apparatus and method of controlling information processing apparatus | |
JP5053109B2 (en) | Control device | |
JP2007018026A (en) | Controller | |
JP2009251783A (en) | Multi-cpu bus occupancy system | |
JP2017144893A (en) | Vehicle communication system | |
JP2008186426A (en) | Unit extension system | |
WO2012127629A1 (en) | Server system and method of executing maintenance of crossbar board in hot-line state | |
JP4432402B2 (en) | Ring bus system | |
JP2007241570A (en) | Setting system of shared memory for communication between programmable controller | |
US20090085626A1 (en) | Semiconductor integrated circuit and method for controlling semiconductor integrated circuit | |
JP2009258790A (en) | Control device and control method of the same | |
JP2015138342A (en) | Multiprocessor system, control method and program thereof | |
JP2017073709A (en) | Relay device | |
JP2008287562A (en) | Processor and device control unit | |
JP2008108123A (en) | Module execution device, and modularization program | |
JP2010049508A (en) | Selection system of plurality of buses and programmable controller with the system | |
JP2009042888A (en) | Bus arbitration method in multi-cpu system | |
JPS61134863A (en) | Data processor |