JP2001306116A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2001306116A
JP2001306116A JP2000128940A JP2000128940A JP2001306116A JP 2001306116 A JP2001306116 A JP 2001306116A JP 2000128940 A JP2000128940 A JP 2000128940A JP 2000128940 A JP2000128940 A JP 2000128940A JP 2001306116 A JP2001306116 A JP 2001306116A
Authority
JP
Japan
Prior art keywords
unit
storage unit
arithmetic
input
output
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
Application number
JP2000128940A
Other languages
Japanese (ja)
Inventor
Toru Oshima
透 大島
Atsushi Ito
厚 伊東
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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP2000128940A priority Critical patent/JP2001306116A/en
Publication of JP2001306116A publication Critical patent/JP2001306116A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that calculation stops during refreshing due to alternate execution of calculating and refreshing in existing PLCs. SOLUTION: A programmable controller is composed of two storage parts, a calculation part executing calculation by using the two memory units alternately, and a control part assigning refreshing to one of the memory units which is not being used for calculation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はプログラマブルコン
トローラ(以下、単に「PLC」と記載する)に係り、
特にPLCのリフレッシュ処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (hereinafter, simply referred to as "PLC").
In particular, it relates to the refresh processing of the PLC.

【0002】[0002]

【従来の技術】従来のPLCにおける演算処理方法とリ
フレッシュ処理の関係について、図2及び図4を用いて
説明する。
2. Description of the Related Art The relationship between an arithmetic processing method and refresh processing in a conventional PLC will be described with reference to FIGS.

【0003】図2のPLC21において、演算部22は
メモリ28の演算記憶部23のデータや入出力装置25
からの入力データに基づき予めプログラムされた外部装
置を制御する制御データを求める演算を行なう。そし
て、演算の結果を演算記憶部23に記憶せしめる。以上
が演算処理と呼ばれる。次に演算部22は演算記憶部2
3のデータをデータ伝送バス24を使用して、入出力装
置25の入出力記憶部26に出力する。そして、この入
出力記憶部26の古いデータを新しい演算結果で上書き
し更新する。これをリフレッシュ処理と呼んでいる。入
出力装置25は入出力用記憶部26に書込まれたデータ
を一定周期で入出力部27に入出力を行う。入出力部2
7はこのデータにより図示していない外部の装置を制御
する。
In the PLC 21 shown in FIG. 2, an operation unit 22 stores data in an operation storage unit 23 of a memory 28 and an input / output device 25.
An operation for obtaining control data for controlling an external device, which is programmed in advance, based on the input data from is performed. Then, the result of the operation is stored in the operation storage unit 23. The above is called arithmetic processing. Next, the operation unit 22 is the operation storage unit 2
The data No. 3 is output to the input / output storage unit 26 of the input / output device 25 using the data transmission bus 24. Then, the old data in the input / output storage unit 26 is overwritten and updated with the new calculation result. This is called a refresh process. The input / output device 25 inputs / outputs the data written in the input / output storage unit 26 to / from the input / output unit 27 at regular intervals. Input / output unit 2
Reference numeral 7 controls an external device (not shown) based on the data.

【0004】このときの処理の時間的な流れを図4に示
す。図示のように演算部22の処理は演算記憶部23を
使った演算処理41、演算記憶部23に格納されている
データによるリフレッシュ処理42、演算記憶部23を
使った演算処理43、演算記憶部23に格納されている
データによるリフレッシュ処理44(以下同様)のよう
に従来の方式では演算処理とリフレッシュ処理を演算部
22が交互に行われていた。したがって、演算部22が
実際に演算しているのは図の45、46で示されている
期間だけであり、リフレッシュ処理を実行している間は
演算処理が停止していた。
FIG. 4 shows a temporal flow of the processing at this time. As shown in the figure, the processing of the calculation unit 22 includes a calculation process 41 using the calculation storage unit 23, a refresh process 42 using data stored in the calculation storage unit 23, a calculation process 43 using the calculation storage unit 23, and a calculation storage unit. In the conventional method, as in a refresh process 44 (the same applies hereinafter) using the data stored in 23, the arithmetic unit 22 alternately performs the arithmetic process and the refresh process. Therefore, the calculation unit 22 actually performs the calculation only during the periods indicated by 45 and 46 in the figure, and the calculation process is stopped during the execution of the refresh process.

【0005】特開平9−54603号公報には、演算部
の演算結果を出力部へ転送するに際し、演算部が出力部
の応答時間に影響を受けないように一時保持して転送す
る制御部を別に設けることにより演算部の演算速度を確
保することが示されている。しかしながら、図4に説明
したような課題には触れられていない。
Japanese Patent Application Laid-Open No. 9-54603 discloses a control unit for temporarily storing and transferring a calculation result of a calculation unit to an output unit so that the calculation unit is not affected by the response time of the output unit. It is shown that the operation speed of the operation unit is secured by separately providing the operation unit. However, the subject as described in FIG. 4 is not mentioned.

【0006】[0006]

【発明が解決しようとする課題】従来技術によるPLC
では、演算装置が演算処理とリフレッシュ処理を行なっ
ていたため、リフレッシュ処理の間は演算処理が停止さ
れて、連続的な演算が行なえなかった。
PROBLEM TO BE SOLVED BY THE PRIOR ART
In this case, since the arithmetic unit performs the arithmetic processing and the refresh processing, the arithmetic processing is stopped during the refresh processing, and continuous arithmetic cannot be performed.

【0007】本発明は、上記の従来技術における問題点
を解消し、連続的な演算処理が可能なPLCを提供する
ことを目的とする。
[0007] It is an object of the present invention to solve the above-mentioned problems in the prior art and to provide a PLC capable of performing continuous arithmetic processing.

【0008】[0008]

【課題を解決するための手段】本発明は、上記の目的を
達成するために、2つの記憶手段を用意し、演算部はこ
の記憶手段を交互に使用して演算処理を行ない、一方、
演算処理が終了し演算部が他の記憶手段を使用して演算
処理を行なっている記憶手段についてリフレッシュ処理
を行う制御部を設けたものである。
According to the present invention, in order to achieve the above object, two storage means are provided, and an arithmetic unit performs arithmetic processing by using these storage means alternately.
A control unit is provided for performing refresh processing on a storage unit in which the arithmetic processing is completed and the arithmetic unit is performing arithmetic processing using another storage unit.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図を参照しながら詳細に説明する。図1には、本発
明になるPLC1の構成図が示されている。このPLC
1は2つの書き換え可能な演算記憶部4,5を備えてい
る。演算記憶部4,5はそれぞれ別な記憶装置であって
も良いし、ある記憶装置の異なる領域であっても良い。
本実施例ではメモリ10の演算記憶部4の領域と演算記
憶部5の領域を備えている。演算処理部2は前記メモリ
10に格納されたプログラムや演算データに従って所定
の演算処理を実行するものであり、その演算結果は例え
ば、工場内におけるFA(ファクトリ・オートメーショ
ン)の制御を実行する制御データとして使用される。こ
のPLC1において、演算部2は演算記憶部4、5及び
入力データにより演算した結果を演算記憶部4、5に出
力する。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a configuration diagram of a PLC 1 according to the present invention. This PLC
1 has two rewritable operation storage units 4 and 5. The operation storage units 4 and 5 may be different storage devices, or may be different areas of a certain storage device.
In this embodiment, an area of the operation storage unit 4 of the memory 10 and an area of the operation storage unit 5 are provided. The arithmetic processing unit 2 executes a predetermined arithmetic processing according to a program or arithmetic data stored in the memory 10, and the arithmetic result is, for example, control data for executing control of factory automation (FA) in a factory. Used as In the PLC 1, the operation unit 2 outputs the operation result based on the operation storage units 4 and 5 and the input data to the operation storage units 4 and 5.

【0010】本実施例では更に、演算記憶部4,5のデ
ータをデータ伝送バス6を介して入出力装置7の入出力
記憶部8に転送し、入出力記憶部8の内容を更新するリ
フレッシュ処理を行なう制御部3を備えている。なお、
従来と同様に入出力装置7は入出力記憶部8に書込まれ
たデータを一定周期で入出力部9に出力する。このデー
タは入出力部9を通して外部装置(図示せず)に与えら
れ、外部装置を制御する。
In this embodiment, furthermore, the data in the operation storage units 4 and 5 is transferred to the input / output storage unit 8 of the input / output device 7 via the data transmission bus 6 and the refresh operation for updating the contents of the input / output storage unit 8 is performed. A control unit 3 for performing processing is provided. In addition,
As in the conventional case, the input / output device 7 outputs the data written in the input / output storage unit 8 to the input / output unit 9 at regular intervals. This data is supplied to an external device (not shown) through the input / output unit 9 to control the external device.

【0011】本実施例の動作、及び構成を更に図3、図
5を使用して更に説明する。図3に示すように、演算部
2は演算記憶部4を使用して演算処理を行なう(3
1)。このとき制御部3は演算記憶部5についてリフレ
ッシュ処理を行なう(34)。制御部3は演算部2とは
独立に並行して処理が可能なものであって、リフレッシ
ュ動作をする機能及び演算記憶部4,5のアドレス等リ
フレッシュに必要な情報を持っている。演算処理に比べ
てリフレッシュ処理の要する時間は極めて短いものであ
る。したがって、演算記憶部5のリフレッシュ処理が終
わらないうちに演算記憶部5に関しての演算処理が始ま
ることはない。
The operation and configuration of this embodiment will be further described with reference to FIGS. As shown in FIG. 3, arithmetic unit 2 performs arithmetic processing using arithmetic storage unit 4 (3
1). At this time, the control unit 3 performs a refresh process on the operation storage unit 5 (34). The control unit 3 is capable of performing processing independently and in parallel with the arithmetic unit 2 and has a function of performing a refresh operation and information necessary for refreshing, such as addresses of the operation storage units 4 and 5. The time required for the refresh processing is extremely short as compared with the arithmetic processing. Therefore, the arithmetic processing for the arithmetic storage unit 5 does not start before the refresh processing of the arithmetic storage unit 5 is completed.

【0012】演算部2は引き続き、演算記憶部5に関す
る演算処理(32)、演算記憶部4に関する演算処理
(33)と言うように交互に演算記憶部4,5に関する
演算処理を実行していく。したがって、矢印37で示す
ように演算処理は連続して実行される。
The operation unit 2 continues to execute the operation processes related to the operation storage units 4 and 5 alternately as an operation process (32) for the operation storage unit 5 and an operation process (33) for the operation storage unit 4. . Therefore, the arithmetic processing is executed continuously as indicated by the arrow 37.

【0013】同じように、制御部3は演算処理31が終
了すると次に演算記憶部4のリフレッシュ処理を行なう
(35)。そして、同様に演算処理32が終了すると演
算記憶部5のリフレッシュ処理を行なう(36)。以下
同様にして処理を継続する。
Similarly, when the operation processing 31 is completed, the control section 3 next performs a refresh processing of the operation storage section 4 (35). Then, similarly, when the arithmetic processing 32 is completed, the refresh processing of the arithmetic storage unit 5 is performed (36). Hereinafter, the processing is continued in the same manner.

【0014】上記のように演算部2の演算対象を演算記
憶部4または演算記憶部5で交互に切替え、制御部3が
入出力装置7の入出力記憶部8に出力する対象の演算記
憶部を演算部2の演算対象となる演算記憶部とは逆のも
のにする。
As described above, the operation target of the operation unit 2 is alternately switched by the operation storage unit 4 or the operation storage unit 5, and the control unit 3 outputs the operation target to the input / output storage unit 8 of the input / output device 7. Is the reverse of the operation storage unit to be operated by the operation unit 2.

【0015】図5は演算部2と制御部3の構成を説明す
るフローチャートである。演算部2では処理が開始され
ると演算記憶部4に関する演算処理を行なう(51)。
演算処理が終了すると、制御部3に対して演算記憶部4
についてのリフレッシュを要求する(52)。そして、
直ぐに演算記憶部5に関する演算処理を行ない(5
3)、終了すると、制御部3に演算記憶部5についての
リフレッシュ要求をする(54)。以下、これが繰り返
される。
FIG. 5 is a flowchart for explaining the configuration of the arithmetic unit 2 and the control unit 3. When the processing is started, the arithmetic unit 2 performs an arithmetic process on the arithmetic storage unit 4 (51).
When the arithmetic processing is completed, the control unit 3 is instructed to execute the arithmetic storage unit 4
Is requested (52). And
Immediately, the arithmetic processing for the arithmetic storage unit 5 is performed (5
3) Upon completion, a refresh request is made to the control unit 3 for the operation storage unit 5 (54). Hereinafter, this is repeated.

【0016】一方、制御部3は演算部2からのリフレッ
シュ要求があるか監視をしており(55)、あれば、そ
れが演算記憶部4についてのリフレッシュの要求かを判
断し(56)、そうであれば、演算記憶部4のリフレッ
シュ処理を実行し(58)、そうでなければ、演算記憶
部5のリフレッシュ処理を実行する(57)。ステップ
56はどちらの演算記憶部のリフレッシュが要求されて
いるかを判断するものであり、必ずしもこのようなステ
ップでなくとも良い。
On the other hand, the control unit 3 monitors whether there is a refresh request from the arithmetic unit 2 (55), and if so, determines whether it is a refresh request for the arithmetic storage unit 4 (56), If so, the refresh processing of the arithmetic storage unit 4 is executed (58); otherwise, the refresh processing of the arithmetic storage unit 5 is executed (57). Step 56 is for judging which operation storage unit is required to be refreshed, and need not necessarily be such a step.

【0017】以上のように、リフレッシュを司る制御部
3を設け、更に、演算記憶部を2つに分割して、演算部
2の対象とするものと制御部3の対象とするものとに交
互に切り替える。
As described above, the control unit 3 for controlling the refresh operation is provided, and the operation storage unit is divided into two parts so that the operation storage unit and the control unit 3 are alternately operated. Switch to

【0018】[0018]

【発明の効果】以上のように、本発明のPLCによれ
ば、リフレッシュ処理により演算処理が妨げられること
無く、連続的な演算処理が可能となる。
As described above, according to the PLC of the present invention, continuous arithmetic processing can be performed without the arithmetic processing being hindered by the refresh processing.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】従来のPLCの例を示すブロック図。FIG. 2 is a block diagram showing an example of a conventional PLC.

【図3】本発明の一実施例における処理の流れを示す
図。
FIG. 3 is a diagram showing a flow of processing in an embodiment of the present invention.

【図4】従来のPLCにおける処理の流れを示す図。FIG. 4 is a diagram showing a processing flow in a conventional PLC.

【図5】本発明の一実施例における演算部と制御部のフ
ローチャート。
FIG. 5 is a flowchart of a calculation unit and a control unit according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1: PLC 2: 演算部 3: 制御部 4: 演算記憶部 5: 演算記憶部 6: データ伝送バス 7: 入出力装置 8: 入出力用記憶部 9: 入出力部 10: メモリ 1: PLC 2: Operation unit 3: Control unit 4: Operation storage unit 5: Operation storage unit 6: Data transmission bus 7: Input / output device 8: Input / output storage unit 9: Input / output unit 10: Memory

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】2つの書き換え可能な記憶部と、前記2つ
の記憶部を交互に使用して演算を行なう演算処理部と、
前記演算処理部と並行して動作可能であり前記演算処理
部が使用していない前記記憶部についてリフレッシュ処
理を行う制御部とを備えたことを特徴とするプログラマ
ブルコントローラ。
1. A rewritable storage unit, an operation processing unit that performs an operation by using the two storage units alternately,
A controller operable in parallel with the arithmetic processing unit and performing a refresh process on the storage unit not used by the arithmetic processing unit.
【請求項2】更に、外部とのデータの入出力を行ない入
出力データを記憶する入出力記憶部を含む入出力装置
と、前記記憶部と前記演算処理部と前記制御部と前記入
出力装置とを接続する接続手段とを有し、前記制御部は
前記接続手段を介して前記記憶部のデータを前記入出力
記憶部に書き込むことを特徴とする請求項1記載のプロ
グラマブルコントローラ。
2. An input / output device including an input / output storage unit for inputting / outputting data from / to the outside and storing input / output data, the storage unit, the arithmetic processing unit, the control unit, and the input / output device 2. The programmable controller according to claim 1, further comprising: connection means for connecting to the input / output storage unit, wherein the control unit writes data in the storage unit to the input / output storage unit via the connection unit.
【請求項3】2つの演算記憶部と、前記2つの演算記憶
部の一方を使用して演算処理を行ない、演算処理が終了
すると当該演算記憶部についてのリフレッシュ要求を出
力して、他の一方の演算記憶部を使用して演算処理を行
ない、演算処理が終了すると当該演算記憶部についての
リフレッシュ要求を出力することを繰り返す演算処理部
と、前記演算処理部と並行して処理が可能であり前記リ
フレッシュ要求を受けると指定された演算記憶部につい
てリフレッシュ処理をする制御部とを備えたことを特徴
とするプログラマブルコントローラ。
3. An operation process is performed using two operation storage units and one of the two operation storage units. When the operation process is completed, a refresh request for the operation storage unit is output, and the other one is output. An arithmetic processing unit that performs arithmetic processing using the arithmetic storage unit, and repeats outputting a refresh request for the arithmetic storage unit when the arithmetic processing is completed; and processing can be performed in parallel with the arithmetic processing unit. A programmable controller, comprising: a control unit that performs a refresh process on an operation storage unit designated when the refresh request is received.
【請求項4】前記制御部は前記リフレッシュ要求を受け
ると2つの演算記憶部のどちらに対するリフレッシュ要
求かを判断し当該演算記憶部についてリフレッシュ処理
をすることを特徴とする請求項2記載のプログラマブル
コントローラ。
4. The programmable controller according to claim 2, wherein the control unit, upon receiving the refresh request, determines which of the two operation storage units is the refresh request, and performs a refresh process on the operation storage unit. .
JP2000128940A 2000-04-25 2000-04-25 Programmable controller Pending JP2001306116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000128940A JP2001306116A (en) 2000-04-25 2000-04-25 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000128940A JP2001306116A (en) 2000-04-25 2000-04-25 Programmable controller

Publications (1)

Publication Number Publication Date
JP2001306116A true JP2001306116A (en) 2001-11-02

Family

ID=18638295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000128940A Pending JP2001306116A (en) 2000-04-25 2000-04-25 Programmable controller

Country Status (1)

Country Link
JP (1) JP2001306116A (en)

Similar Documents

Publication Publication Date Title
JP3393035B2 (en) Control device and semiconductor manufacturing device
JP2001265412A (en) Programmable controller
WO2014118918A1 (en) Numerical control device
JP2001306116A (en) Programmable controller
JPS5860318A (en) Programmable controller
JP3207333B2 (en) Programmable controller
WO2018061537A1 (en) Control unit, data refreshing method, data refreshing program
JPH03288906A (en) Instruction executing system for pc
JPH10105212A (en) Display control system
JPS62243008A (en) Signal trace controlling system for pmc
JP2003228418A (en) Control apparatus for industrial purpose robot, and display method for the apparatus
JPH11175113A (en) Programmable controller
JPH09244717A (en) Controller
JPH10268914A (en) Programmable controller
JPH09185402A (en) Execution system for sequence program
JPH0743739B2 (en) Automatic wiring processing execution system
JP2793809B2 (en) Applied instruction processing method of programmable controller
JPH02226307A (en) Numerical controller
JPH1195825A (en) Method for executing numerical control program
JP2001147802A (en) Image processor
JPH08286602A (en) Map display device
JPH02125303A (en) Programmable controller
JPH1078817A (en) Programmable display device
JPH025103A (en) Programmable controller
JPH07334375A (en) Interruption processing controller