[go: up one dir, main page]

JP2862151B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2862151B2
JP2862151B2 JP40163490A JP40163490A JP2862151B2 JP 2862151 B2 JP2862151 B2 JP 2862151B2 JP 40163490 A JP40163490 A JP 40163490A JP 40163490 A JP40163490 A JP 40163490A JP 2862151 B2 JP2862151 B2 JP 2862151B2
Authority
JP
Japan
Prior art keywords
input
programmable controller
sequence
cpu
memory
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.)
Expired - Fee Related
Application number
JP40163490A
Other languages
Japanese (ja)
Other versions
JPH04215107A (en
Inventor
和弘 藤田
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP40163490A priority Critical patent/JP2862151B2/en
Publication of JPH04215107A publication Critical patent/JPH04215107A/en
Application granted granted Critical
Publication of JP2862151B2 publication Critical patent/JP2862151B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Programmable Controllers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子機器を自動制御す
るプログラマブルコントローラに関し、詳しくは制御対
象の電子機器を拡張することの可能なプログラマブルコ
ントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller for automatically controlling electronic equipment, and more particularly, to a programmable controller capable of expanding electronic equipment to be controlled.

【0002】[0002]

【従来の技術】従来のプログラマブルコントローラは、
図4に示すように一般的にシーピーユー(CPU)モジ
ュール1と、オプション入出力モジュール7から主に構
成される。
2. Description of the Related Art Conventional programmable controllers are:
As shown in FIG. 4, the CPU mainly comprises a CPU module 1 and an optional input / output module 7.

【0003】オプション入出力モジュール7は制御対象
の機器とCPUモジュールの間にあって、制御対象の機
器に対する入出力信号と、CPUモジュールに対する入
出力信号をそれぞれの伝送形態に対応させた信号に相互
変換する。また、オプション入出力モジュールはバスイ
ンタフェース8を介してCPUモジュール1とは着脱自
在に接続することができる。
An optional input / output module 7 is provided between a device to be controlled and a CPU module, and mutually converts an input / output signal for the device to be controlled and an input / output signal for the CPU module into a signal corresponding to each transmission mode. . The optional input / output module can be detachably connected to the CPU module 1 via the bus interface 8.

【0004】CPUモジュール1内のCPU2は前回の
スキャンタイムでリンクメモリ5に格納のされた、制御
対象機器からの入力信号を順次に読出して、シーケンス
演算を実行する。また、シーケンス演算の結果は制御対
象機器への出力信号としてリンクメモリ5に書き込まれ
る(図5の区間T2)。
The CPU 2 in the CPU module 1 sequentially reads the input signals from the controlled device stored in the link memory 5 at the previous scan time, and executes a sequence operation. Further, the result of the sequence operation is written to the link memory 5 as an output signal to the control target device (section T2 in FIG. 5).

【0005】シーケンス演算の終了の後CPUモジュー
ル1内のCPU2はリンクメモリ5の出力信号を読出し
オプション入出力モジュール7の共通メモリ11に転送
すると共に、共通メモリ11から次回のシーケンス演算
に用いる入力信号をCPUモジュール1内のリンクメモ
リ5に転送する(図5の区間T2)。
After the completion of the sequence calculation, the CPU 2 in the CPU module 1 reads out the output signal of the link memory 5 and transfers it to the common memory 11 of the optional input / output module 7 and the input signal used for the next sequence calculation from the common memory 11. Is transferred to the link memory 5 in the CPU module 1 (section T2 in FIG. 5).

【0006】[0006]

【発明が解決しようとする課題】従来のプログラマブル
コントローラでは、CPUモジュール1においてシーケ
ンス演算処理およびオプション入出力モジュール7との
間の入出力処理を複数の入出力信号に対して各処理毎に
一括的に実行するために、リンクメモリ5を設けてい
る。しかしながら、オプション入出力モジュール7の接
続可能台数はリンクメモリ5のメモリ容量に制約を受け
てしまう。また、オプション入出力モジュール7とCP
Uモジュール1との間の外部データ転送およびCPUモ
ジュール1内の内部データ転送の2回のデータ転送処理
が発生するため、演算サイクルタイム(スキャンタイ
ム)が長くなるという不具合が従来装置にはあった。
In the conventional programmable controller, sequence operation processing and input / output processing with the optional input / output module 7 in the CPU module 1 are collectively performed for each of a plurality of input / output signals. , A link memory 5 is provided. However, the number of connectable optional input / output modules 7 is limited by the memory capacity of the link memory 5. Also, the optional input / output module 7 and CP
The conventional device has a problem that the operation cycle time (scan time) becomes longer because two data transfer processes of external data transfer to and from the U module 1 and internal data transfer in the CPU module 1 occur. .

【0007】そこで、本発明の目的は、このような点に
鑑みて、演算サイクルタイムを短縮し、かつCPUモジ
ュールに多数のオプション入出力モジュールを接続する
ことの可能なプログラマブルコントローラを提供するこ
とにある。
In view of the above, an object of the present invention is to provide a programmable controller capable of shortening an operation cycle time and connecting a large number of optional input / output modules to a CPU module. is there.

【0008】[0008]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、プログラマブルコントローラ本体
に対して脱着可能な1以上の入出力モジュールを有する
プログラマブルコントローラであって、前記入出力モジ
ュールの各々には前記プログラマブルコントローラ本体
におけるシーケンス演算の対象となる入力信号および当
該シーケンス演算の結果として得られる出力信号を記憶
しておく記憶手段を設け、前記プログラマブルコントロ
ーラ本体には、前記シーケンス演算を規定したシーケン
スプログラムの中のシーケンス命令により、前記記憶手
段に対してアドレスを指定して直接前記入力信号および
前記出力信号を読み/書きする記憶制御手段を設けたこ
とを特徴とする。
In order to achieve the above object, the present invention relates to a programmable controller having one or more input / output modules detachable from a programmable controller main body. Are provided with storage means for storing an input signal to be subjected to a sequence operation in the programmable controller body and an output signal obtained as a result of the sequence operation, and the programmable controller body defines the sequence operation. Storage control means for directly reading / writing the input signal and the output signal by designating an address to the storage means by a sequence instruction in the sequence program.

【0009】[0009]

【作用】本発明は、シーケンス演算に用いる入出力信号
をシーケンス演算実行時に入出力モジュールの記憶手段
から直接シーケンス命令により読出すようにしたので、
従来のように入出力信号の一時記憶メモリをプログラマ
ブルコントローラ本体側に設ける必要はない。
According to the present invention, the input / output signals used for the sequence operation are read out from the storage means of the input / output module directly by the sequence instruction when the sequence operation is executed.
It is not necessary to provide a temporary storage memory for input / output signals in the main body of the programmable controller unlike the related art.

【0010】また、プログラマブルコントローラ本体に
おける入出力信号の転送処理も従来の2回に比べ1回で
すみ、スキャンタイムの短縮化に寄与することができ
る。
The input / output signal transfer process in the main body of the programmable controller only needs to be performed once compared with the conventional two processes, which can contribute to a reduction in scan time.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0012】図1は本発明実施例におけるプログラマブ
ルコントローラの回路構成を示す。
FIG. 1 shows a circuit configuration of a programmable controller according to an embodiment of the present invention.

【0013】なお、図4に示す従来例の同一箇所には同
一の符号を付し、詳細な説明を省略する。
The same parts as those in the conventional example shown in FIG. 4 are denoted by the same reference numerals, and detailed description will be omitted.

【0014】図1において、CPU21モジュール(本
発明のプログラマブルコントローラ本体)内のCPU2
2はユーザプログラムメモリ3に格納されているシーケ
ンスプログラムを実行することによりシーケンス演算処
理を行う。ユーザデータメモリ24はこのシーケンス演
算用の各種データを一時格納する。なお、ユーザデータ
メモリ24には入出力信号用のリンクメモリ領域が設け
られていない。
In FIG. 1, the CPU 2 in a CPU 21 module (the main body of the programmable controller of the present invention)
2 executes a sequence calculation process by executing a sequence program stored in the user program memory 3. The user data memory 24 temporarily stores various data for this sequence operation. The user data memory 24 is not provided with a link memory area for input / output signals.

【0015】オプション入出力モジュール27上の共通
メモリ21(本発明の記憶手段)は、CPU21モジュ
ール側のリンクメモリとして機能し、CPUモジュール
21側のCPU22およびオプション入出力モジュール
27側のCPU10により読み/書き可能である。
The common memory 21 (storage means of the present invention) on the option input / output module 27 functions as a link memory on the CPU 21 module side, and is read / written by the CPU 22 on the CPU module 21 side and the CPU 10 on the option input / output module 27 side. Writable.

【0016】外部インタフェース29を介して制御対象
機器に対して入出力信号を転送するタイミングになった
ときに、CPU10は共通メモリ21に対して読み/書
きを行う。
The CPU 10 reads / writes from / to the common memory 21 when it is time to transfer an input / output signal to the device to be controlled via the external interface 29.

【0017】なお、本実施例ではCPU22が、本発明
の記憶制御手段としてバスインタフェース8に対するア
ドレス指定を行ったときに、バスインタフェース8が共
通メモリ21とCPU22をバス接続し、CPU22の
共通メモリ21に対するアクセスを可能とする。
In this embodiment, when the CPU 22 designates an address for the bus interface 8 as the storage control means of the present invention, the bus interface 8 connects the common memory 21 and the CPU 22 by bus, and Access to

【0018】以下、CPUモジュール21のシーケンス
演算動作を図3のフローチャートを参照しながら説明す
る。
Hereinafter, the sequence operation of the CPU module 21 will be described with reference to the flowchart of FIG.

【0019】シーケンスプログラムの実行タイミングに
なると(図2のタイミングTT1)、CPU22は内部
のプログラムカウンタをユーザプログラムメモリ3の先
頭アドレスに初期設定した後、先頭位置のシーケンス命
令をユーザプログラムメモリ3から読出す(図3のステ
ップS10→S20)。
At the execution timing of the sequence program (timing TT1 in FIG. 2), the CPU 22 initializes the internal program counter to the start address of the user program memory 3, and then reads the sequence instruction at the start position from the user program memory 3. (Step S10 → S20 in FIG. 3).

【0020】CPU22はシーケンス命令の中の演算デ
ータの識別コードに基づき、演算データの読み/書き対
象のメモリを判別し(図3のステップS30,S10
0)、対応のメモリに対するアドレス指定を行ってシー
ケンス演算のためのデータの読み/書きを行う。
The CPU 22 determines the memory from which the operation data is read / written based on the identification code of the operation data in the sequence instruction (steps S30 and S10 in FIG. 3).
0), data is read / written for sequence operation by specifying an address for the corresponding memory.

【0021】本実施例ではシーケンス演算時に、直接オ
プション入出力モジュール27の共通メモリ21に読み
/書きを行う点が従来例と異なる。このため、従来例で
は必要であったCPUモジュール側のリンクメモリが不
要となる。
The present embodiment differs from the prior art in that reading / writing is performed directly to the common memory 21 of the optional input / output module 27 during sequence operation. For this reason, the link memory on the CPU module side, which is required in the conventional example, becomes unnecessary.

【0022】一方、読出したシーケンス命令がメモリか
らの読み/書き以外の動作を指示する命令であればその
他処理を従来通り実行する(図3のステップS30→S
100→S110)。
On the other hand, if the read sequence instruction is an instruction instructing an operation other than reading / writing from the memory, other processing is executed as usual (steps S30 → S in FIG. 3).
100 → S110).

【0023】以下、このようなシーケンス命令の種類に
応じた演算を実行する毎にプログラムカウンタを更新
し、プログラム処理部分まで上述の処理を繰り返し実行
する(図3のステップS20〜S300→S310のル
ープ処理)。
Hereinafter, the program counter is updated every time such an operation according to the type of the sequence instruction is executed, and the above-described processing is repeatedly executed up to the program processing portion (the loop of steps S20 to S300 → S310 in FIG. 3). processing).

【0024】[0024]

【発明の効果】以上、説明したように、本発明によれ
ば、入出力信号の記憶手段を各入出力モジュール側に設
けることで、プログラマブルコントローラ本体側には入
出力信号用の記憶手段が不要となる。このため、従来で
は入出力モジュールの設置台数に応じて上記記憶手段の
メモリ容量も可変としていたが、本発明によれば入出力
モジュールの設置台数すなわち、システムの規模に関係
なく、プログラマブルコントローラ本体を共通化するこ
とができるという効果も得られる。
As described above, according to the present invention, the storage means for input / output signals is provided on each input / output module side, so that the storage means for input / output signals is not required on the main body of the programmable controller. Becomes For this reason, conventionally, the memory capacity of the storage means is also variable in accordance with the number of input / output modules installed. An effect that commonality can be obtained is also obtained.

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

【図1】本発明実施例の回路構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a circuit configuration of an embodiment of the present invention.

【図2】本発明実施例の動作内容を示す説明図である。FIG. 2 is an explanatory diagram showing the operation content of the embodiment of the present invention.

【図3】本発明実施例の動作手順を示すフローチャート
である。
FIG. 3 is a flowchart showing an operation procedure of the embodiment of the present invention.

【図4】従来例の回路構成を示すブロック図である。FIG. 4 is a block diagram showing a circuit configuration of a conventional example.

【図5】従来例の動作内容を示す説明図である。FIG. 5 is an explanatory diagram showing an operation content of a conventional example.

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

1,21 CPUモジュール 2,22 CPU 4,24 ユーザデータメモリ 5 リンクメモリ 7,27 オプション入出力モジュール 11,21 共通メモリ 1,21 CPU module 2,22 CPU 4,24 User data memory 5 Link memory 7,27 Optional input / output module 11,21 Common memory

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G05B 19/05──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G05B 19/05

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブルコントローラ本体に対し
て脱着可能な1以上の入出力モジュールを有するプログ
ラマブルコントローラであって、 前記入出力モジュールの各々には前記プログラマブルコ
ントローラ本体におけるシーケンス演算の対象となる入
力信号および当該シーケンス演算の結果として得られる
出力信号を記憶しておく記憶手段を設け、 前記プログラマブルコントローラ本体には、前記シーケ
ンス演算を規定したシーケンスプログラムの中のシーケ
ンス命令により、前記記憶手段に対してアドレスを指定
して直接前記入力信号および前記出力信号を読み/書き
する記憶制御手段を設けたことを特徴とするプログラマ
ブルコントローラ。
1. A programmable controller having one or more input / output modules detachable from a programmable controller main body, wherein each of the input / output modules includes an input signal to be subjected to a sequence operation in the programmable controller main body. A storage unit for storing an output signal obtained as a result of the sequence operation is provided. The programmable controller main body stores an address in the storage unit by a sequence instruction in a sequence program that defines the sequence operation. Designation
And a storage controller for directly reading / writing the input signal and the output signal.
JP40163490A 1990-12-12 1990-12-12 Programmable controller Expired - Fee Related JP2862151B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP40163490A JP2862151B2 (en) 1990-12-12 1990-12-12 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP40163490A JP2862151B2 (en) 1990-12-12 1990-12-12 Programmable controller

Publications (2)

Publication Number Publication Date
JPH04215107A JPH04215107A (en) 1992-08-05
JP2862151B2 true JP2862151B2 (en) 1999-02-24

Family

ID=18511472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP40163490A Expired - Fee Related JP2862151B2 (en) 1990-12-12 1990-12-12 Programmable controller

Country Status (1)

Country Link
JP (1) JP2862151B2 (en)

Also Published As

Publication number Publication date
JPH04215107A (en) 1992-08-05

Similar Documents

Publication Publication Date Title
US20020161944A1 (en) Programmable controller
JP2862151B2 (en) Programmable controller
JPH01261758A (en) Computer system
JP2679591B2 (en) Emulation chip and in-circuit emulator
KR960001977B1 (en) Control method in programmable controller
JPH1011321A (en) Microprocessor with execution tracing function
JP2639927B2 (en) Test method for control device in data processing system
JPH06110506A (en) Program controller's comment storage method
JPH04199228A (en) Semiconductor integrated circuit device
JP2000047706A (en) System and method for controlling actuator
JP2584903B2 (en) External device control method
JP3033334B2 (en) Data storage device
JPH0638210B2 (en) Sequence controller input / output control system
JPS62163142A (en) Apparatus for correcting computer program
JPS59206948A (en) Information processing device
JP3227273B2 (en) Link processing method of programmable controller
JPH04312148A (en) Storage device
JPH01284902A (en) Transmission controller for programmable controller
JPH02125303A (en) Programmable controller
JPH0547841B2 (en)
JPH0261749A (en) Data transfer device
JPS6336304A (en) Programmable controller system
JPH0232403A (en) Programmable controller
JPS6148746B2 (en)
JPS6224821B2 (en)

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071211

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20081211

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20081211

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091211

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20101211

LAPS Cancellation because of no payment of annual fees