JP2009251783A - Multi-cpu bus occupancy system - Google Patents
Multi-cpu bus occupancy system Download PDFInfo
- Publication number
- JP2009251783A JP2009251783A JP2008096995A JP2008096995A JP2009251783A JP 2009251783 A JP2009251783 A JP 2009251783A JP 2008096995 A JP2008096995 A JP 2008096995A JP 2008096995 A JP2008096995 A JP 2008096995A JP 2009251783 A JP2009251783 A JP 2009251783A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- cpu
- cpus
- master
- slave
- 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
Landscapes
- Bus Control (AREA)
Abstract
Description
本発明は、シングルのバスにCPUをマルチ接続したマルチCPUバス占有方式に関するものである。 The present invention relates to a multi-CPU bus occupation system in which CPUs are multi-connected to a single bus.
PLCを用いて制御対象を制御する従来の制御システムにおいて、上記PLCでは、CPUの内部バスに、ROM、RAM、入出力インターフェースと、バス変換部とを接続してなり、入出力インターフェースに接続した複数の入出力機器を制御すると共に、バス変換部に接続したPLCバスに複数のモジュールを接続していた。 In a conventional control system that controls a control target using a PLC, the PLC is configured by connecting a ROM, a RAM, an input / output interface, and a bus conversion unit to an internal bus of the CPU, and connected to the input / output interface. In addition to controlling a plurality of input / output devices, a plurality of modules are connected to the PLC bus connected to the bus conversion unit.
しかしながら、上記制御システムで、より高速制御化を図るには、CPUを高速制御が可能であるが価格が高価なCPUに交換することが必要である。 However, in order to achieve higher speed control with the above control system, it is necessary to replace the CPU with a CPU that is capable of high speed control but is expensive.
一方、複数のCPUを共有バスに接続し、これらCPUに制御を分散する方式もある(特許文献1)。この方式では、CPUを高速制御可能な高価なものと交換する必要がなくなる。 On the other hand, there is a system in which a plurality of CPUs are connected to a shared bus and control is distributed to these CPUs (Patent Document 1). This method eliminates the need to replace the CPU with an expensive one that can be controlled at high speed.
しかしながら、共有バスに複数のCPUを接続し、共有バスに接続したRAMを各CPU間で共有使用する場合、各CPU間で共有バス使用上から煩雑で時間を要するバス調停を行う必要があった。特に、負荷が複雑膨大化した場合に、バス調停を行うと、負荷を高速処理することが困難化する。 However, when a plurality of CPUs are connected to the shared bus and the RAM connected to the shared bus is shared between the CPUs, it is necessary to perform a complicated and time-consuming bus arbitration between the CPUs in terms of using the shared bus. . In particular, when the load becomes complicated and enormous, if bus arbitration is performed, it becomes difficult to process the load at high speed.
また、複数のCPUを共有バスに接続し、各CPU間で割り込み処理宣言でバス使用の調停を行う方式(特許文献2)がある。この方式では、各CPU間の統率をとることが困難化し、複雑膨大な負荷の処理の整然たる分担には不向きである。
本発明は、バス調停部を用いずに安価な構成にて複雑膨大な負荷を高速処理することが可能なマルチCPUバス占有方式を提供するものである。 The present invention provides a multi-CPU bus occupancy method capable of high-speed processing of a complex and enormous load with an inexpensive configuration without using a bus arbitration unit.
本発明によるマルチCPUバス占有方式は、シングルのバスにマルチ接続したCPUのバス占有方式であって、いずれか1つのCPUをマスタとし、該CPUを他のCPUに信号線にて個別接続し、マスタ側CPUは、この信号線を用いて他のCPUのバス制御を行うことを特徴とするものである。 The multi-CPU bus occupancy method according to the present invention is a bus occupancy method of a CPU multi-connected to a single bus, and any one CPU is set as a master, and the CPU is individually connected to other CPUs by signal lines, The master side CPU is characterized by performing bus control of other CPUs using this signal line.
本発明において、好ましい態様は、上記マスタ側のCPUは、自己ならびに他の各CPUによる負荷処理状況、バス使用/不使用状況を管理してバス制御を行うことである。 In the present invention, a preferable aspect is that the CPU on the master side performs bus control by managing the load processing status and the bus use / non-use status by itself and other CPUs.
本発明において、別の好ましい態様は、上記バスには、各CPUがバス占有時に用いる共有メモリを接続することである。 In the present invention, another preferred aspect is to connect a shared memory used by each CPU when the bus is occupied to the bus.
本発明では、マスタとなるCPUが信号線を用いて他のCPUにバス制御指令を発行することで、全体のバス使用を統率制御することができるので、シングルのバスを最大限有効使用して複雑膨大な負荷を高速で処理することができる。 In the present invention, since the master CPU issues a bus control command to other CPUs using a signal line, the entire bus use can be controlled, so that a single bus can be used as effectively as possible. A complex and enormous load can be processed at high speed.
以上により、本発明では、シングルのバスにマルチCPUを接続して用いるにもかかわらず、バス調停しないからバス調停時間を削減でき、また、シングルのバスをマルチCPUを用いて多大な負荷でも高速で処理することができるから、高速化のための高価なCPUが不要となるマルチCPUバス占有方式を提供することができる。 As described above, in the present invention, the bus arbitration time can be reduced because the bus is not arbitrated even though the multi-CPU is connected to the single bus, and the single bus is fast even with a large load using the multi-CPU. Therefore, it is possible to provide a multi-CPU bus occupation method that eliminates the need for an expensive CPU for speeding up.
本発明によれば、シングルバスをマルチCPUで用いるのにバス調停せず、膨大な負荷を安価な構成で高速処理することが可能なマルチCPUバス占有方式を提供することができる。 According to the present invention, it is possible to provide a multi-CPU bus occupying method capable of high-speed processing of a huge load with an inexpensive configuration without bus arbitration when a single bus is used in a multi-CPU.
以下、添付した図面を参照して、本発明の実施の形態に係るマルチCPUバス占有方式を説明する。図1は、実施の形態のマルチCPUバス占有方式を実施する制御システムの構成を示す。1は、各CPU2,3,4に共有されるバスを示す。このバス1は高速バスである。バス1に各CPU2,3,4に共有されるRAM等の共有メモリ5が接続されている。CPU2は、マスタ側のCPU(マスタCPU)となり、他のCPU3,4はスレーブ側のCPU(スレーブCPU)となる。マスタ、スレーブCPU2,3,4には、システムプログラム、ラダープログラム、バス制御プログラムが格納される内部メモリ6,7,8が内部バス9,10,11を介して接続されている。マスタCPU2とスレーブCPU3,4とは信号線12,13で接続されている。バス1には入出力インターフェース14とモジュールバス変換部15とが接続されている。モジュールバス変換部15には低速のバス16が接続されている。
Hereinafter, a multi-CPU bus occupation method according to an embodiment of the present invention will be described with reference to the accompanying drawings. FIG. 1 shows the configuration of a control system that implements the multi-CPU bus occupation method of the embodiment. Reference numeral 1 denotes a bus shared by the CPUs 2, 3, and 4. This bus 1 is a high-speed bus. A shared
以上によりPLC17が構成されている。
The
PLC17の入出力インターフェース14にはセンサ等の各種入力機器18、アクチュエータやモータ等の各種出力機器19が、また、モジュールバス変換部15のバス16にはモーションモジュール等の各種モジュール20,21が接続されている。
こうして図1で示す制御システム全体が構築されている状態において、PLC17では、マスタCPU2が、入出力インターフェース14、シングルのバス16に接続されている負荷(入力機器18、出力機器19、モジュール20,21)の処理を、スレーブCPU3,4に対して、バス1の解放、バス1の使用のウエイト、およびバス1の占有許可を、あらかじめ定めた所定のプログラムに従ってマスタ制御するようになっている。また、スレーブCPU3,4も上記プログラムに対応して内部メモリ7,8に格納したプログラムに従いバス1の使用をスレーブ制御する。
In the state where the entire control system shown in FIG. 1 is constructed in this way, in the
すなわち、マスタCPU2は、自己がバス1を占有するときは、スレーブCPU3,4に対してバス1の使用をウエイトさせる。この状態でマスタCPU2は、共有メモリ5にアクセスして上記負荷を処理する。マスタCPU2は、自己が当該自己の負荷処理に例えばビジィであるときは、その間はバス1を使用せず、バス1が空いている状態であるので、バス1を解放し、スレーブCPU3,4に対してバス使用のウエイト状態を解除して、信号線12を介してスレーブCPU3に割り込み信号を入力する。このとき、各内部メモリ6,7,8に格納するラダープログラムに従い、例えばマスタCPU2が、スレーブCPU3に対してどのように負荷を処理するかを指令したり、スレーブCPU3がその指令を受けることなく負荷を処理することができるようにしてもよい。
That is, when the master CPU 2 occupies the bus 1, the master CPU 2 causes the slave CPUs 3 and 4 to wait for the use of the bus 1. In this state, the master CPU 2 accesses the shared
これにより、スレーブCPU3は、バス1を占有し、共有メモリ5にアクセスして上記負荷を処理する。この共有メモリ5には当該PLC17の負荷処理の状況等のデータが記憶されているので、スレーブCPU3は、このデータを読出して参照することで負荷を処理したり、自己による負荷処理状況等のデータを書き込んで記憶させたりすることができる。
As a result, the slave CPU 3 occupies the bus 1 and accesses the shared
そして、スレーブCPU3は、自己の負荷処理が終了すると、その終了信号をマスタCPU2に通知する。これにより、マスタCPU2は、次のスレーブCPU4に対してバス1の使用ウエイトを解除して、信号線13を介してスレーブCPU4に割り込み信号を入力する。これにより、スレーブCPU4は、スレーブCPU3と同様に、バス1を占有し、共有メモリ5にアクセスして上記負荷を処理する。
Then, when the slave CPU 3 finishes its own load process, it notifies the master CPU 2 of the end signal. As a result, the master CPU 2 releases the use wait of the bus 1 for the next slave CPU 4 and inputs an interrupt signal to the slave CPU 4 via the signal line 13. As a result, the slave CPU 4 occupies the bus 1 and accesses the shared
以上説明したように本実施の形態では、マスタCPU2が、当該自身やスレーブCPU3,4を統率し、バス1が単一でもそのバス1が空きのときはスレーブCPU3,4にバス1の有効使用を可能として負荷処理を分担させることができる。その結果、実施の形態ではバス調停部を、必要とせず、かつ、用いていないからバス調停に要していた時間を削減でき、バス1に高速のバスを用いて処理の高速化を図れると共に、高速ではあるが高価なCPUが不要となると共に、複雑膨大な負荷を抱えた制御システム全体を高速処理することが可能となるマルチCPUバス占有方式を提供することができる。 As described above, in the present embodiment, the master CPU 2 manages itself and the slave CPUs 3 and 4, and the bus 1 is effectively used by the slave CPUs 3 and 4 even when the bus 1 is single. It is possible to share the load processing. As a result, the embodiment does not require a bus arbitration unit, and since the bus arbitration unit is not used, the time required for bus arbitration can be reduced, and a high-speed bus can be used for the bus 1 and the processing speed can be increased. Thus, it is possible to provide a multi-CPU bus occupancy method that eliminates the need for a high-speed but expensive CPU and enables high-speed processing of the entire control system having a complicated and enormous load.
1 バス
2 マスタCPU
3,4 スレーブCPU
5 共有メモリ
6,7,8 内部メモリ
9,10,11 内部バス
12,13 信号線
1 Bus 2 Master CPU
3, 4 Slave CPU
5 Shared
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008096995A JP2009251783A (en) | 2008-04-03 | 2008-04-03 | Multi-cpu bus occupancy system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008096995A JP2009251783A (en) | 2008-04-03 | 2008-04-03 | Multi-cpu bus occupancy system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009251783A true JP2009251783A (en) | 2009-10-29 |
Family
ID=41312460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008096995A Pending JP2009251783A (en) | 2008-04-03 | 2008-04-03 | Multi-cpu bus occupancy system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009251783A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013242681A (en) * | 2012-05-21 | 2013-12-05 | Mitsubishi Electric Corp | Plant monitoring control device |
CN115191105A (en) * | 2022-06-07 | 2022-10-14 | 广东逸动科技有限公司 | Method and device for preempting bus, electronic equipment, control system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62154045A (en) * | 1985-12-27 | 1987-07-09 | Hitachi Ltd | Bus arbitration system |
JPH09114775A (en) * | 1995-10-23 | 1997-05-02 | Hitachi Ltd | Multiprocessor system |
JP2002163242A (en) * | 2000-11-24 | 2002-06-07 | Hitachi Ltd | Data processing system |
-
2008
- 2008-04-03 JP JP2008096995A patent/JP2009251783A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62154045A (en) * | 1985-12-27 | 1987-07-09 | Hitachi Ltd | Bus arbitration system |
JPH09114775A (en) * | 1995-10-23 | 1997-05-02 | Hitachi Ltd | Multiprocessor system |
JP2002163242A (en) * | 2000-11-24 | 2002-06-07 | Hitachi Ltd | Data processing system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013242681A (en) * | 2012-05-21 | 2013-12-05 | Mitsubishi Electric Corp | Plant monitoring control device |
CN115191105A (en) * | 2022-06-07 | 2022-10-14 | 广东逸动科技有限公司 | Method and device for preempting bus, electronic equipment, control system and storage medium |
CN115191105B (en) * | 2022-06-07 | 2024-05-17 | 广东逸动科技有限公司 | Method and device for preempting bus, electronic equipment, control system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130179622A1 (en) | System and method for transmitting and receiving data using an industrial expansion bus | |
JP2004252990A5 (en) | ||
JP2007207026A (en) | Dma transfer device | |
EP2250569B1 (en) | Sharing bandwidth of a single port sram between at least one dma peripheral and a cpu operating with a quadrature clock | |
JP2007219678A (en) | Multilayer bus system | |
JP2014035628A5 (en) | ||
JP2007026366A (en) | Memory controller | |
JP2007034910A (en) | Multi-cpu system and scheduler | |
JP2009042887A (en) | Cpu effective utilization system in multi-cpu system | |
JP2009251783A (en) | Multi-cpu bus occupancy system | |
JP6568399B2 (en) | Information processing device | |
JP2007172112A (en) | Memory controller | |
JP5058890B2 (en) | Bus control device | |
JP6294732B2 (en) | Data transfer control device and memory built-in device | |
JP2008140065A (en) | Access arbitration device, access arbitration method and information processor | |
TWI724608B (en) | Microcontroller architecture and data reading method in architecture | |
JP2010049511A (en) | Access method to shared memory and programmable controller of multi-cpu configuration | |
JP2007188214A (en) | Semiconductor integrated circuit device | |
JP4599524B2 (en) | Data processing apparatus and method | |
JP2011150613A (en) | Data processing apparatus | |
JP2006338511A (en) | Numerical control device | |
JP5104402B2 (en) | Memory access control device | |
US20150378939A1 (en) | Memory mechanism for providing semaphore functionality in multi-master processing environment | |
JP6802072B2 (en) | Data input / output control device and control method | |
JP2005293435A (en) | Data transfer device and its setting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110401 |
|
A131 | Notification of reasons for refusal |
Effective date: 20120703 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A977 | Report on retrieval |
Effective date: 20120704 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20121030 |