JP2001159905A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JP2001159905A JP2001159905A JP34304099A JP34304099A JP2001159905A JP 2001159905 A JP2001159905 A JP 2001159905A JP 34304099 A JP34304099 A JP 34304099A JP 34304099 A JP34304099 A JP 34304099A JP 2001159905 A JP2001159905 A JP 2001159905A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- module
- mpu
- instruction
- programmable controller
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、プログラマブルコ
ントローラに関するものであり、詳しくはプログラマブ
ルコントローラのCPUモジュールに関し、IOモジュ
ールのアクセスを伴うシーケンス命令処理プロセッサの
高速化を計ったプログラマブルコントローラのCPUモ
ジュールに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller, and more particularly, to a programmable controller (CPU) module for a programmable controller, and more particularly to a programmable controller CPU module for increasing the speed of a sequence instruction processor accompanied by access to an IO module.
【0002】[0002]
【従来の技術】従来技術におけるプログラマブルコント
ローラは、図2に示すように、シーケンスプログラムの
演算等を行うCPU(Central Process
ingUnit)モジュール10と、外部とのインター
フェースを司るIO(Input Output)モジ
ュール20と、CPUモジュール10とIOモジュール
20とをバスラインで接続するIOバス30とから構成
されている。2. Description of the Related Art As shown in FIG. 2, a programmable controller according to the prior art is a CPU (Central Process) for performing operations such as a sequence program.
an IO unit 20 that controls an external interface, and an IO bus 30 that connects the CPU module 10 and the IO module 20 via a bus line.
【0003】CPUモジュール10は、IOレフレッシ
ュや周辺処理を行うMPU(Micro Proces
sor Unit)11と、シーケンス命令処理を行う
シーケンス命令処理プロセッサ12と、シーケンスプロ
グラムやデータを格納するメモリ13と、MPU11と
シーケンス命令処理プロセッサ12が並列に動作できる
ように分離するためのバッフア14と、MPU11がI
Oモジュール20へアクセスする時に、MPUバス15
のデータをIOバス30に変換するバスインターフエー
ス回路16とから構成されている。このうち、MPU1
1とバスインターフエース回路16とバッフア14はM
PUバス15を介して接続され、バッフア14とシーケ
ンス命令処理プロセッサ12とメモリ13はSPUバス
17を介して接続されている。[0003] The CPU module 10 includes an MPU (Micro Processes) for performing IO refresh and peripheral processing.
Sor Unit) 11, a sequence instruction processor 12 for performing sequence instruction processing, a memory 13 for storing sequence programs and data, and a buffer 14 for separating the MPU 11 and the sequence instruction processor 12 so that they can operate in parallel. , MPU11 is I
When accessing the O module 20, the MPU bus 15
And a bus interface circuit 16 for converting the data of the I / O bus into the IO bus 30. Of these, MPU1
1, bus interface circuit 16 and buffer 14 are M
The buffer 14, the sequence instruction processor 12, and the memory 13 are connected via a PU bus 15.
【0004】このような構成において、シーケンスプロ
グラムで、リード命令、ライト命令、ダイレクトリフレ
ッシュ命令の処理が発生すると次に示すような動作をす
る。In such a configuration, when a read command, a write command, or a direct refresh command is processed in a sequence program, the following operation is performed.
【0005】先ず、シーケンス命令処理プロセッサ12
は、SPUバス17を介してメモリ13から、種々の命
令をフェッチすると、IRQ信号をアサートし、MPU
11に割り込みを行う。MPU11は、割り込みが発生
すると、MPUバス15、バッフア14、SPUバス1
7を経由してメモリ13にアクセスし、命令コード、I
Oモジュール20のアドレス、メモリ13のアドレス、
転送数などの命令処理に必要な情報を読み出す。更に、
MPU11は、メモリ13とIOモジュール20の間の
データ転送を行う。このデータ転送が終了すると、この
終了したことをシーケンス命令処理プロセッサ12に通
知し、一連の命令処理は完了する。First, the sequence instruction processor 12
Fetches various instructions from the memory 13 via the SPU bus 17, asserts the IRQ signal,
11 is interrupted. When an interrupt occurs, the MPU 11 sends the MPU bus 15, the buffer 14, the SPU bus 1
7 to access the memory 13, and the instruction code, I
O module 20 address, memory 13 address,
Reads information necessary for instruction processing such as the number of transfers. Furthermore,
The MPU 11 performs data transfer between the memory 13 and the IO module 20. When this data transfer is completed, the completion is notified to the sequence instruction processor 12, and a series of instruction processing is completed.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上述し
た従来技術におけるシーケンス命令処理プロセッサがI
Oモジュールへアクセスしようとした場合、MPUへ割
り込みを行い、MPUにIOモジュールへアクセスを代
行してもらう必要があり、処理時間が長くなるという問
題がある。即ち、シーケンスプログラムで、リード命
令、ライト命令、ダイレクトリフレッシュ命令の処理時
間が長くなっていた。又、このことによって、MPUの
処理負荷も増大していた。However, the above-mentioned sequence instruction processor in the prior art is not compatible with the I / O processor.
When trying to access the O module, it is necessary to interrupt the MPU and have the MPU perform access to the IO module on behalf of the MPU. That is, in the sequence program, the processing time of the read command, the write command, and the direct refresh command has been long. This has also increased the processing load of the MPU.
【0007】従って、シーケンス命令処理プロセッサに
おいて、IOモジュールへのアクセスを高速化すること
に解決しなければならない課題を有する。Therefore, the sequence instruction processor has a problem that needs to be solved to speed up access to the IO module.
【0008】[0008]
【課題を解決するための手段】上記課題を解決するため
に、本発明に係るプログラマブルコントローラは下記の
ような構成にすることである。In order to solve the above-mentioned problems, a programmable controller according to the present invention has the following configuration.
【0009】(1)少なくともシーケンス命令処理を行
うシーケンス命令処理プロセッサと、該シーケンス命令
処理プロセッサからの指示に従いIOバスのアクセスを
制御するマイクロプロセッサユニット(MPU)と、該
MPUの指示に従いIOバスをアクセスするバスインタ
ーフエースとからなるCPUモジュールと、前記IOバ
スを介して前記CPUモジュールとアクセスすることが
できるIOモジュールとからなり、前記バスインターフ
エースは、前記シーケンス命令処理プロセッサからの直
接の指示で前記IOバスのアクセスが行えるダイレクト
メモリアクセスコントローラ(DMAC)を備えたこと
を特徴とするプログラマブルコントローラ。 (2)前記DMACは、アクセスするIOモジュールの
アドレス、メモリのアドレス、転送モード、転送数等の
パラメータを所定のメモリからロードする機能を有する
ことを特徴とする(1)に記載のプログラマブルコント
ローラ。 (3)前記DMACは、ダイレクトメモリアクセス(D
MA)転送のステータスを所定のメモリにストアする機
能を有することを特徴とする(1)又は(2)に記載の
プログラマブルコントローラ。 (4)前記DMACは、複数チャンネル備えたことを特
徴とする(1)、(2)又は(3)に記載のプログラマ
ブルコントローラ。(1) A sequence instruction processor for performing at least sequence instruction processing, a microprocessor unit (MPU) for controlling access to the IO bus according to instructions from the sequence instruction processor, and an IO bus according to instructions from the MPU. A CPU module comprising a bus interface to be accessed; and an IO module capable of accessing the CPU module via the IO bus. The bus interface is provided by a direct instruction from the sequence instruction processing processor. A programmable controller comprising a direct memory access controller (DMAC) capable of accessing the IO bus. (2) The programmable controller according to (1), wherein the DMAC has a function of loading parameters such as an address of an I / O module to be accessed, a memory address, a transfer mode, and a transfer number from a predetermined memory. (3) The DMAC performs direct memory access (D
MA) The programmable controller according to (1) or (2), having a function of storing a transfer status in a predetermined memory. (4) The programmable controller according to (1), (2) or (3), wherein the DMAC includes a plurality of channels.
【0010】[0010]
【発明の実施の形態】次に、本願発明に係るプログラマ
ブルコントローラの実施の形態について図面を参照して
説明する。尚、従来技術と同様のものには同一符号を付
与して説明する。Next, an embodiment of a programmable controller according to the present invention will be described with reference to the drawings. The same components as those in the prior art will be described with the same reference numerals.
【0011】本発明に係るプログラマブルコントローラ
は、図1に示すように、シーケンスプログラムの演算等
を行うCPUモジュール10と、外部とのインターフェ
ースを行うIOモジュール20とから構成され、これら
CPUモジュール10とIOモジュール20はIOバス
30を介して接続されている。As shown in FIG. 1, the programmable controller according to the present invention comprises a CPU module 10 for performing operations of a sequence program and the like, and an IO module 20 for interfacing with the outside. The module 20 is connected via an IO bus 30.
【0012】CPUモジュール10は、IOレフレッシ
ュ及び周辺処理を行うMPU11と、シーケンス命令処
理を行うシーケンス命令処理プロセッサ12と、シーケ
ンスプログラムやデータを格納するためのメモリ13
と、MPU11とシーケンス命令処理プロセッサ12が
並列に動作できるようにバスを分離するためのバッフア
14と、MPU11がIOモジュール20へアクセスす
る時にMPUバス15をIOバス30に変換するバスイ
ンターフエース回路16と、メモリ13及びIOモジュ
ール20へアクセス可能なDMAC(ダイレクトメモリ
アクセスコントローラ;Direct Memory
Access ControlIer)18とから構成
されている。この内、バスインターフエース回路16と
DMAC18とでバスインターフエースLSI(19)
を構成する。又、シーケンス命令処理プロセッサ12と
メモリ13、バッフア14はSPUバス17を介して接
続することができる構成になっている。The CPU module 10 includes an MPU 11 for performing IO refresh and peripheral processing, a sequence instruction processor 12 for performing sequence instruction processing, and a memory 13 for storing sequence programs and data.
A buffer 14 for separating the bus so that the MPU 11 and the sequence instruction processor 12 can operate in parallel; and a bus interface circuit 16 for converting the MPU bus 15 to the IO bus 30 when the MPU 11 accesses the IO module 20. And a DMAC (Direct Memory Access Controller; Direct Memory) capable of accessing the memory 13 and the IO module 20
Access Control 18). Of these, the bus interface circuit 16 and the DMAC 18 use the bus interface LSI (19).
Is configured. The sequence instruction processor 12, the memory 13, and the buffer 14 can be connected via the SPU bus 17.
【0013】このような構成におけるシーケンスプログ
ラムにおいて、リード命令、ライト命令、ダイレクトレ
フレッシュ命令の処理が発生すると、シーケンス命令処
理プロセッサ12は、SPUバス17を介してメモリ13か
らこれらの命令をフエッチすると、DRQ信号をアサー
トし、DMAC18にDMA(Direct Memor
y Acess)要求を行う。そして、MPU11はバ
スの占有権を開放すると、BACK信号をアサートし、
そのことをDMAC18に通知する。DMAC18は、
DMA転送に必要なパラメータを自動的にロードする機
能を有し、MPUバス15を占有する権利を獲得すると
MPUバス15、バッフア14、SPUバス17を介し
てメモリ13にアクセスし、命令コード、IOモジュー
ル20のアドレス、メモリ13のアドレス、転送モー
ド、転送数などのDMA転送に必要な情報を読み出す。
次に、DMAC18は、メモリ13とIOモジュール2
0の間のデータ転送を行い、データ転送が終了すると、
そのことをシーケンス命令処理プロセッサ12に通知す
ると共に、DMA転送のステータスをメモリ13にスト
アする。このようにして、シーケンス命令処理プロセッ
サ12は、IOバス30をアクセスするためにDMAC
18を介して直接にバスインターフエース回路16を駆
動制御することができるため、従来のようにMPU11
と内部バスを介してIOバス30を駆動制御する必要が
なくなり、その分迅速にIOモジュール20をアクセス
することができる。When the processing of a read instruction, a write instruction, or a direct refresh instruction occurs in the sequence program having such a configuration, the sequence instruction processor 12 fetches these instructions from the memory 13 via the SPU bus 17. , DRQ signal is asserted, and DMA (Direct Memory) is sent to the DMAC 18.
y Access) request. When the MPU 11 releases the right to occupy the bus, the MPU 11 asserts a BACK signal,
This is notified to the DMAC 18. DMAC 18
It has a function of automatically loading parameters required for DMA transfer, and when it acquires the right to occupy the MPU bus 15, it accesses the memory 13 via the MPU bus 15, the buffer 14, and the SPU bus 17 to execute instruction codes, IO Information necessary for DMA transfer, such as the address of the module 20, the address of the memory 13, the transfer mode, and the number of transfers is read.
Next, the DMAC 18 stores the memory 13 and the IO module 2
Data transfer during 0 is performed, and when the data transfer is completed,
This is notified to the sequence instruction processor 12, and the status of the DMA transfer is stored in the memory 13. In this way, the sequence instruction processing processor 12 uses the DMAC to access the IO bus 30.
Since the drive of the bus interface circuit 16 can be controlled directly via the MPU 11, the MPU 11
Therefore, it is not necessary to drive and control the IO bus 30 via the internal bus, and the IO module 20 can be accessed quickly by that amount.
【0014】更に、MPU11への割り込みを行ってD
MAC18を介してバスインターフエース回路16を駆
動制御するために、DMAC18に複数のチャンネルを
備えるようにすると、割り込み処理等で速やかにIOモ
ジュール20へのアクセスができるようになる。Further, an interrupt to the MPU 11 is performed to
If the DMAC 18 is provided with a plurality of channels in order to drive and control the bus interface circuit 16 via the MAC 18, access to the IO module 20 can be promptly performed by interrupt processing or the like.
【0015】[0015]
【発明の効果】以上説明したように、本発明に係るプロ
グラマブルコントローラにおけるシーケンス命令処理プ
ロセッサは、DMACを使用することによって、MPU
を介さずにIOモジュールへのアクセスが可能になった
ため、同アクセスを高速に行うことができるという効果
がある。As described above, the sequence instruction processing processor in the programmable controller according to the present invention uses the DMAC to execute the MPU.
This makes it possible to access the IO module without going through the interface, so that the access can be performed at high speed.
【0016】また、シーケンスプログラムにおいて、リ
ード命令、ライト命令、ダイレクトレフレッシュ命令の
処理を高速に行うことできるようになり、MPUの処理
負荷軽減を図ることができるという効果がある。Further, in a sequence program, processing of a read instruction, a write instruction, and a direct refresh instruction can be performed at a high speed, and there is an effect that a processing load of an MPU can be reduced.
【0017】更に、DMACを複数チャンネル装備する
ことによって、シーケンス命令処理中の割り込み処理等
で、IOモジュールへのアクセス要求があった場合にお
いても速やかな対処ができるという効果がある。Further, by providing the DMAC with a plurality of channels, it is possible to promptly cope with a request for access to the IO module due to interrupt processing during sequence command processing.
【図1】本願発明に係るプログラマブルコントローラの
構成を示したブロック図である。FIG. 1 is a block diagram showing a configuration of a programmable controller according to the present invention.
【図2】従来技術におけるプログラマブルコントローラ
の構成を示したブロック図である。FIG. 2 is a block diagram illustrating a configuration of a programmable controller according to the related art.
10 CPUモジュール 11 MPU 12 シーケンス命令処理プロセッサ 13 メモリ 14 バッフア 15 MPUバス 16 バスインターフエース回路 17 SPUバス 18 DMAC 19 バスインターフエースLSI 20 IOモジュール 30 IOバス Reference Signs List 10 CPU module 11 MPU 12 Sequence instruction processor 13 Memory 14 Buffer 15 MPU bus 16 Bus interface circuit 17 SPU bus 18 DMAC 19 Bus interface LSI 20 IO module 30 IO bus
Claims (4)
ケンス命令処理プロセッサと、該シーケンス命令処理プ
ロセッサからの指示に従いIOバスのアクセスを制御す
るマイクロプロセッサユニット(MPU)と、該MPU
の指示に従いIOバスをアクセスするバスインターフエ
ースとからなるCPUモジュールと、前記IOバスを介
して前記CPUモジュールとアクセスすることができる
IOモジュールとからなり、 前記バスインターフエースは、前記シーケンス命令処理
プロセッサからの直接の指示で前記IOバスのアクセス
が行えるダイレクトメモリアクセスコントローラ(DM
AC)を備えたことを特徴とするプログラマブルコント
ローラ。1. A sequence instruction processor for performing at least sequence instruction processing, a microprocessor unit (MPU) for controlling access to an IO bus in accordance with an instruction from the sequence instruction processor, and an MPU
A CPU module comprising a bus interface for accessing the IO bus in accordance with the instruction of the above, and an IO module capable of accessing the CPU module via the IO bus. The bus interface comprises the sequence instruction processing processor Memory controller (DM) that can access the IO bus by a direct instruction from
AC).
ールのアドレス、メモリのアドレス、転送モード、転送
数等のパラメータを所定のメモリからロードする機能を
有することを特徴とする請求項1に記載のプログラマブ
ルコントローラ。2. The programmable controller according to claim 1, wherein said DMAC has a function of loading parameters such as an address of an IO module to be accessed, a memory address, a transfer mode, and a transfer number from a predetermined memory. controller.
ス(DMA)転送のステータスを所定のメモリにストア
する機能を有することを特徴とする請求項1又は2に記
載のプログラマブルコントローラ。3. The programmable controller according to claim 1, wherein said DMAC has a function of storing a status of direct memory access (DMA) transfer in a predetermined memory.
とを特徴とする請求項1、2又は3に記載のプログラマ
ブルコントローラ。4. The programmable controller according to claim 1, wherein said DMAC has a plurality of channels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34304099A JP3943302B2 (en) | 1999-12-02 | 1999-12-02 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34304099A JP3943302B2 (en) | 1999-12-02 | 1999-12-02 | Programmable controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001159905A true JP2001159905A (en) | 2001-06-12 |
JP3943302B2 JP3943302B2 (en) | 2007-07-11 |
Family
ID=18358484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34304099A Expired - Lifetime JP3943302B2 (en) | 1999-12-02 | 1999-12-02 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3943302B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010182101A (en) * | 2009-02-05 | 2010-08-19 | Yokogawa Electric Corp | Field control system |
-
1999
- 1999-12-02 JP JP34304099A patent/JP3943302B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010182101A (en) * | 2009-02-05 | 2010-08-19 | Yokogawa Electric Corp | Field control system |
Also Published As
Publication number | Publication date |
---|---|
JP3943302B2 (en) | 2007-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0863354A (en) | Equipment and method for execution of computer processing | |
JP2002530778A (en) | Direct memory access engine to support multiple virtual direct memory access channels | |
JPH04363746A (en) | Microcomputer system having dma function | |
EP0357075A2 (en) | Data control device and system using the same | |
JP2001159905A (en) | Programmable controller | |
JP2005258509A (en) | Storage device | |
JP4451010B2 (en) | Programmable controller | |
US7272680B2 (en) | Method of transferring data between computer peripherals | |
JP2003308289A (en) | Data processor | |
JPH0312768A (en) | I/o controller | |
JPH02207363A (en) | Data transfer system, device controller, and memory controller | |
JPH07302255A (en) | Semiconductor integrated circuit device, processor for emulating the same and emulator | |
JPH02252044A (en) | Coprocessor and data transfer control system | |
JPH0736806A (en) | Dma system | |
JPH0713920A (en) | Dma transferring method | |
JPH023217B2 (en) | ||
JP2000298641A (en) | Information processor, its data transferring method and storage medium with data transfer control program stored therein | |
JP2003186666A (en) | Microcomputer and dma control circuit | |
JPH10177493A (en) | Graphic processing system | |
JPH05334234A (en) | High speed dma transferring device | |
JPH0231265A (en) | Dma controller | |
JPS62269237A (en) | Data processor | |
JPH03109661A (en) | Data processor | |
JPH0981500A (en) | Virtual dma transfer method | |
JP2003076550A (en) | Data processor, semiconductor circuit and data processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20041215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050112 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050309 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050926 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051024 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20051102 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20051228 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070308 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070405 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 3943302 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100413 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110413 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120413 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130413 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130413 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140413 Year of fee payment: 7 |
|
EXPY | Cancellation because of completion of term |