JPH0272411A - Programmable controller system - Google Patents

Programmable controller system

Info

Publication number
JPH0272411A
JPH0272411A JP22544288A JP22544288A JPH0272411A JP H0272411 A JPH0272411 A JP H0272411A JP 22544288 A JP22544288 A JP 22544288A JP 22544288 A JP22544288 A JP 22544288A JP H0272411 A JPH0272411 A JP H0272411A
Authority
JP
Japan
Prior art keywords
data
programmable controller
remote
input
main body
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
Application number
JP22544288A
Other languages
Japanese (ja)
Other versions
JP2767824B2 (en
Inventor
Toshimi Matsuura
松浦 利美
Hisao Toyama
外山 久雄
Yoshiro Tasaka
田坂 吉朗
Shigemi Tanabe
田辺 繁美
Norio Yoshikawa
典雄 吉川
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP22544288A priority Critical patent/JP2767824B2/en
Publication of JPH0272411A publication Critical patent/JPH0272411A/en
Application granted granted Critical
Publication of JP2767824B2 publication Critical patent/JP2767824B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To attain a fixed transmission cycle of data by holding the total I/O data on a system also via a remote I/O device itself. CONSTITUTION:For a programmable controller main body 1 and each remote I/O device 3, the overall switch states of the input and output devices of a programmable controller system are stored in the I/O data memories A and D. Therefore the device 3 can easily recognize the contents of the necessary switch states of other remote I/O devices by having an access to the memory D of its own device. Thus it is not required to make the controller main body 1 confirm the data contents every time such a request is produced. Then the process is simplified for a programmable controller system. Furthermore the communication cycle is always fixed since each remote I/O device can refresh the contents of the memory D.

Description

【発明の詳細な説明】 〔発明の分野〕 本発明はリモート入出力装置(以下リモー)1/○装置
という)を有するプログラマブルコントローラシステム
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a programmable controller system having a remote input/output device (hereinafter referred to as remote 1/○ device).

〔従来技術] 従来1台のプログラマブルコントローラに複数のリモー
トI/O装置が接続されて構成されるシステムにあって
は、夫々リモートI/O装置に入出力装置、例えば光電
スイッチや近接スイッチ等の入力装置やリレー、ソレノ
イド等の出力装置が接続される。そしてプログラマブル
コントローラ本体は各リモート入出力装置に接続される
入出力装置のスイッチ状態を保持する■/○データメモ
ノを有しているが、各リモート入出力装置には接続され
ている入出力装置のみのスイッチ状態を有するメモリが
設けられている。そして周期的にプログラマブルコント
ローラ本体より各リモートI/O装置に出力装置のデー
タを送出すると共に、その入力装置のスイッチ状態のデ
ータをプログラマブルコントローラ本体に伝送するよう
に構成されている。
[Prior Art] Conventionally, in a system configured by connecting a plurality of remote I/O devices to one programmable controller, each remote I/O device has an input/output device such as a photoelectric switch or a proximity switch. Input devices and output devices such as relays and solenoids are connected. The main body of the programmable controller has a ■/○ data memo that maintains the switch status of the input/output devices connected to each remote input/output device, but each remote input/output device has only the input/output devices connected to it. A memory having switch states is provided. The programmable controller main body periodically sends data of the output device to each remote I/O device, and is configured to transmit data on the switch state of the input device to the programmable controller main body.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながらこのような従来のシステムにあっては、あ
るリモートI/O装置からプログラマブルコントローラ
本体やシステム内の他のリモートI/O装置に接続され
ている入出力装置の状態を判別しようとすれば、定期的
に行われるデータの伝送周期が変化することとなる。又
プログラマフルコントローラ本体にのみ全てのリモート
I/O装置の入出力データを保持するメモリが設けられ
ているため、リモーzio装置はプログラマブルコント
ローラ本体を介して他のリモートI/O装置との間でデ
ータ通信を行う必要があり、そのための負荷が過多にな
るという欠点があった。
However, in such conventional systems, if you try to determine the status of input/output devices connected to the programmable controller main body or other remote I/O devices in the system from a certain remote I/O device, The periodic data transmission cycle will change. In addition, since the programmable controller itself is equipped with a memory that holds the input/output data of all remote I/O devices, the remote ZIO device can be connected to other remote I/O devices via the programmable controller itself. It has the disadvantage that it requires data communication, resulting in an excessive load.

本発明はこのような従来のプログラマブルコントローラ
システムの問題点に濯みてなされたものであって、各リ
モートI/O装置は他のリモートI/O装置の入出力デ
ータが必要となってもその毎にプログラマブルコントロ
ーラにアクセスする必要はなく、データの伝送周期を一
定にさせるようにすることを技術的課題とする。
The present invention has been made in view of the problems of the conventional programmable controller system, and each remote I/O device is configured to input/output data from other remote I/O devices whenever necessary. There is no need to access the programmable controller at any time, and the technical challenge is to make the data transmission cycle constant.

〔発明の構成と効果〕[Structure and effects of the invention]

(課題を解決するための手段) 本発明はプログラマブルコントローラ本体1と、該プロ
グラマブルコントローラ本体に伝送線2を介して接続さ
れた複数のリモートI/O装置3〜Nとを有し、プログ
ラマブルコントローラ本体及びリモートI/O装置に接
続される入出力装置の制御を行うプログラマブルコント
ローラシステムであって、第1図に示すように、プログ
ラマブルコントローラ本体は、プログラマブルコントロ
ーラ本体を含む各リモートI/O装置に接続される入出
力装置のスイッチ状態を保持するI/OデータメモリA
と、各リモートI/O装置に順次夫々の出力装置の出力
データを送出すると共に夫々の入力装置の入力データを
受信するデータ伝送手段Bと、データ伝送手段より得ら
れる入力データ及びプログラマブルコントローラに接続
される入力装置の入力データによりI/Oデータメモリ
を更新すると共に所定のプログラムに従って各出力装置
の出力データを更新するデータ更新手段Cと、を有する
ものであり、各リモートI / OW 置は、プログラ
マブルコントローラ本体を含む各リモートI/O装置に
接続される入出力装置のスイッチ状態を保持するI/O
データメモリDと、周期的にプログラマブルコントロー
ラ本体に自装置の入力装置のデータを送出すると共に、
出力装置のデータを受信するデータ伝送手段Eと、I/
Oデータメモリより得られる出力データを自装置の出力
装置に出力すると共に自装置内の入力装置のデータをI
/Oメモリにストアするデータ更新手段Fと、を有する
ことを特徴とするものである。
(Means for Solving the Problems) The present invention includes a programmable controller main body 1 and a plurality of remote I/O devices 3 to N connected to the programmable controller main body via transmission lines 2. and a programmable controller system that controls input/output devices connected to a remote I/O device, as shown in FIG. I/O data memory A that holds switch states of input/output devices
, a data transmission means B that sequentially sends the output data of each output device to each remote I/O device and receives input data of each input device, and is connected to the input data obtained from the data transmission means and the programmable controller. and a data updating means C for updating the I/O data memory with the input data of the input device and updating the output data of each output device according to a predetermined program, and each remote I/OW location has the following: I/O that maintains the switch status of input/output devices connected to each remote I/O device including the programmable controller main body
The data memory D periodically sends the data of the input device of the own device to the programmable controller main body,
data transmission means E for receiving data from the output device;
The output data obtained from the O data memory is output to the output device of the own device, and the data of the input device within the own device is output to the I
The data update means F stores data in the /O memory.

(作用) このような特徴を有する本発明によれば、プログラマブ
ルコントローラ本体と各リモートI/O装置にはこのプ
ログラマブルコントローラシステムの全体の入力装置及
び出力装置のスイッチ状態が夫々I/Oデータメモリに
記憶されている。そしてプログラマブルコントローラ本
体は自装置の入力装置及びデータ伝送手段より得られる
入力装置の入力データによりI/Oデータメモリのデー
タを更新すると共に、所定の処理を行うことによってそ
の出力データを更新するようにしている。
(Operation) According to the present invention having such features, the switch states of the entire input device and output device of the programmable controller system are stored in the I/O data memory of the programmable controller main body and each remote I/O device, respectively. remembered. Then, the programmable controller main body updates the data in the I/O data memory with the input data of the input device obtained from the input device of the own device and the data transmission means, and updates the output data by performing predetermined processing. ing.

又各すモー) I/O装置は自装置に接続される入出力
装置だけでなくシステム全体の入出力装置のスイッチ状
態を保持しており、入力装置より得られる入力データに
基づいてその内容を更新すると共に伝送線を介して与え
られる出力データに基づいて自装置の出力装置を駆動し
ている。そしてその更新を所定周期毎に行うようにして
各I/Oデータメモリのデータを一致させるようにして
いる。
Also, each I/O device maintains the switch status of not only the input/output devices connected to itself but also the input/output devices of the entire system, and its contents are changed based on the input data obtained from the input device. The output device of the device itself is driven based on the output data that is updated and given via the transmission line. The update is performed at predetermined intervals to match the data in each I/O data memory.

(発明の効果) そのため本発明によれば、プログラマブルコントローラ
本体だけでなく各リモートI/O装置は、他のリモート
I/O装置の入出力装置のスイッチ状態を必要とする場
合には自装置内のI/Oデータメモリをアクセスするこ
とによって容易にその内容を認識することができる。従
ってこのような要求が生じる毎にプログラマブルコント
ローラ本体にそのデータ内容を確認する必要がなくなり
、処理が筒略化されるという効果が得られる。又常に各
リモートI/O装置がI/Oデータメモリの内容をリフ
レッシュするようにしているため、通信周期が常に一定
になるという効果が得られる。
(Effects of the Invention) Therefore, according to the present invention, not only the programmable controller main body but also each remote I/O device internally controls the switch status of the input/output device of another remote I/O device when the switch state of the input/output device of another remote I/O device is required. By accessing the I/O data memory of , the contents can be easily recognized. Therefore, it is no longer necessary to check the data contents in the programmable controller main body every time such a request occurs, and the effect of simplifying the processing can be obtained. Furthermore, since each remote I/O device always refreshes the contents of the I/O data memory, the communication cycle is always constant.

〔実施例の説明〕[Explanation of Examples]

第2図は本発明の一実施例によるプログラマブルコント
ローラシステムの全体構成を示す図である0本図におい
てプログラマブルコントローラ本体1には伝送線2を介
して複数のリモートI/O装置3,4−・・・・・−N
が接続される。プログラマブルコントローラ本体lとリ
モートI/O装置3〜Nには夫々入出力装置1a−Na
が接続される。ここで入力装置とは例えば光電スイッチ
や近接スイッチ等であり、出力装置は例えばリレーやア
クチュエータ等である。プログラマブルコントローラ本
体1は本体に接続されている入出力装置に加えて各リモ
ー)I/O装置3〜Nに接続される入力装置のスイッチ
状態に基づいて各出力装置を動作させることによって一
連の制御を行うものである。
FIG. 2 is a diagram showing the overall configuration of a programmable controller system according to an embodiment of the present invention. In this figure, a programmable controller main body 1 is connected to a plurality of remote I/O devices 3, 4-. ...-N
is connected. The programmable controller main body l and remote I/O devices 3 to N have input/output devices 1a to Na, respectively.
is connected. Here, the input device is, for example, a photoelectric switch or a proximity switch, and the output device is, for example, a relay, an actuator, or the like. The programmable controller main body 1 performs a series of controls by operating each output device based on the switch states of the input devices connected to the main body and the input/output devices connected to each remote I/O device 3 to N. This is what we do.

そしてプログラマブルコントローラ本体1又は各リモー
)I/O装置には任意にモニタ装置6を接続することが
できる。モニタ装置6はプログラマブルコントローラ本
体1やリモートI/O’W1i3〜Nの動作状態を確認
するためのものである。
A monitor device 6 can be optionally connected to the programmable controller main body 1 or each remote I/O device. The monitor device 6 is for checking the operating status of the programmable controller main body 1 and the remote I/O'W1i3 to N.

さてプログラマブルコントローラ本体1は第3図に示す
ようにCPUI 1を有しており、CPUI/Oにはパ
スライン12を介して処理プログラムを記憶するリード
オンリメモリ (以下ROMという)13.ユーザプロ
グラムやI/O実行データメモリの領域を有するランダ
ムアクセスメモリ (以下RAMという)14が接続さ
れ、又アクセス調停回路15を介して共有メモリである
I/Oデータメモリ16(A)が接続される。I/Oデ
ータメモリ16は第4図に示すようにプログラマブルコ
ントローラ本体の出力データ、リモート■/O装置3〜
Nの出力データを記憶する領域及びプログラマブルコン
トローラ本体の入力データや各リモート■/O装置の入
力データを全て記憶する領域を含んでいるテーブル形式
のメモリであって、データ通信部20と共有するために
アクセス調停回路15が設けられている。又パスライン
12には入カバソファ回路17及び出カバソファ回路1
8が接続される。入カバソファ回路17には図示しない
光電スイッチや近接スイッチが接続されている。又出カ
バソファ回路18には図示しないリレーやアクチュエー
タが接続される。さてパスライン12には更にモニタ制
御インターフェース回路19が接続される。更にプログ
ラマブルコントローラ本体にはリモートI/O装置3〜
Nとの間のデータ通信を行うためのデータ通信部2oが
接続される。データ通信部20はパスライン12に接続
された通信専用のCPU21、及びその通信用のプログ
ラムを記憶するROM22.通信内容や入出力装置のス
イッチ状態を一時保持する通信バッファを含むRAM2
3及び通信制御回路24が接続されている。ここでプロ
グラマブルコントローラ本体1のI/O実行データメモ
リ及び通信ノ7フファは第4図に示すI/Oデータメモ
リ16と同様の構成を有し、プログラマプルコントロー
ラ零体1及び各リモートI/O装置3〜Nの入出力デー
タを記憶する領域が設けられている。
As shown in FIG. 3, the programmable controller main body 1 has a CPUI 1, and the CPUI/O has a read-only memory (hereinafter referred to as ROM) 13. which stores processing programs via a path line 12. A random access memory (hereinafter referred to as RAM) 14 having areas for user programs and I/O execution data memory is connected, and an I/O data memory 16 (A) which is a shared memory is connected via an access arbitration circuit 15. Ru. As shown in FIG. 4, the I/O data memory 16 stores the output data of the programmable controller main body, the remote
This is a table-type memory that includes an area for storing output data of N, an area for storing all input data of the programmable controller main body, and input data of each remote ■/O device, and is shared with the data communication section 20. An access arbitration circuit 15 is provided. In addition, the pass line 12 has an input cover sofa circuit 17 and an output cover sofa circuit 1.
8 is connected. A photoelectric switch and a proximity switch (not shown) are connected to the inlet sofa circuit 17. Further, a relay and an actuator (not shown) are connected to the output cover sofa circuit 18. Now, a monitor control interface circuit 19 is further connected to the pass line 12. Furthermore, the programmable controller body has remote I/O devices 3~
A data communication unit 2o for performing data communication with N is connected. The data communication unit 20 includes a communication-dedicated CPU 21 connected to the path line 12, and a ROM 22.0 that stores a communication program. RAM2 that includes a communication buffer that temporarily holds communication contents and switch states of input/output devices
3 and a communication control circuit 24 are connected thereto. Here, the I/O execution data memory and communication buffer of the programmable controller main body 1 have the same configuration as the I/O data memory 16 shown in FIG. An area for storing input/output data of devices 3 to N is provided.

次に各リモートI/O装置は第5図にプロ・7り図を示
すようにCPU31が設けられ、そのパスライン32に
はプログラムを記憶するメモリ33とI/Oデータメモ
リ34(D)が接続される。
Next, each remote I/O device is provided with a CPU 31 as shown in FIG. Connected.

又プログラマブルコントローラ本体と同様に入力ハノフ
ァ回路35及び出カバ・ンファ回路36が接続され、更
にモニタ装置6の接続時に用いられるモニタ制御インタ
ーフェース37が接続される。
Also, like the programmable controller main body, an input Hanofa circuit 35 and an output buffer circuit 36 are connected, and a monitor control interface 37 used when connecting the monitor device 6 is also connected.

更にリモートI/O装置は通信制御回路38を有してお
り、伝送りA2を介してプログラマブルコントローラ本
体1に接続されている。ここでI/Oデータメモリ34
は第4図に示すようにプログラマブルコントローラ本体
1内のI / Oチー 9 J モノ16と同様の構成
を有するものとする。
Furthermore, the remote I/O device has a communication control circuit 38, and is connected to the programmable controller main body 1 via a transmission line A2. Here, the I/O data memory 34
As shown in FIG. 4, it has the same configuration as the I/O module 16 in the programmable controller main body 1.

次に本実施例の動作についてフローチャー1・を参照し
つつ説明する。第6図はプログラマブルコントローラ本
体1の動作を示すフローチャートである。本図において
電源が投入されると、まずCPULLはステップ41に
おいて各メモリを全てクリアし本体に接続されている入
出力装置の接続状態を示すステータスを認識する等の初
期処理を行う。そしてステップ42に進んで各リモート
I/O装置3〜Nに接続される入出力装置の状態を読出
すためのコマンドをデータ通信部20に送出する。
Next, the operation of this embodiment will be explained with reference to flowchart 1. FIG. 6 is a flowchart showing the operation of the programmable controller main body 1. In the figure, when the power is turned on, the CPU first performs initial processing such as clearing all memories in step 41 and recognizing the status indicating the connection status of the input/output devices connected to the main body. The process then proceeds to step 42, where a command for reading the status of the input/output devices connected to each of the remote I/O devices 3 to N is sent to the data communication section 20.

そしてその続出結果を待受け、結果が得られればステッ
プ44に進んで第4図に示すようにI/Oデータメモリ
16のテーブルを作成する。そしてステップ45に進ん
で入出力のりフレッシュを行う。
The process waits for successive results, and if the results are obtained, the process proceeds to step 44 to create a table in the I/O data memory 16 as shown in FIG. Then, the process advances to step 45 to perform input/output glue refreshing.

これはプログラマブルコントローラ本体1の入力バノフ
ァ回路17よりデータを読込んでRAMI4内のI/O
実行データメモリ内にストアし、I/O実行データメモ
リ内の出力データを出カバソファ回路18を介して外部
に出力する処理である。
This reads data from the input vanofer circuit 17 of the programmable controller main body 1 and outputs it to the I/O in RAMI4.
This is a process of storing the output data in the execution data memory and outputting the output data in the I/O execution data memory to the outside via the output sofa circuit 18.

そしてステップ46に進んで共有メモリであるI/Oデ
ータメモリ16をBUSYとするフラグを立て、ステッ
プ47に進んでI/○実行データメモリの出力データ及
びプログラマブルコントローラ本体1の入力データをI
/Oデータメモリに転送すると共に、I/Oデータメモ
リにある各リモートI/O装置の入力データをI/O実
行データメモリに転送することによってデータの交換を
行う。
Then, the process proceeds to step 46, where a flag is set to indicate that the I/O data memory 16, which is a shared memory, is BUSY, and the process proceeds to step 47, where the output data of the I/O execution data memory and the input data of the programmable controller main body 1 are set as BUSY.
Data is exchanged by transferring input data of each remote I/O device in the I/O data memory to the I/O execution data memory.

そしてステップ48に進んでBUSYフラグをリセット
し、ステップ49に進んで通信を開始させる。
Then, the process proceeds to step 48 to reset the BUSY flag, and the process proceeds to step 49 to start communication.

そしてステップ50に進みユーザプログラムの命令を実
行し、ステップ45に戻って同様の処理を繰り返す。こ
こでCPUI 1はステップ45〜50において入力デ
ータによって■/○データメモリのデータを更新すると
共に、所定のプログラムに従って各出力装置の出力デー
タを更新するデータ更新手段Cの機能を達成している。
The process then proceeds to step 50 to execute the instructions of the user program, and returns to step 45 to repeat the same process. Here, the CPU 1 updates the data in the ■/○ data memory with the input data in steps 45 to 50, and also functions as a data updating means C that updates the output data of each output device according to a predetermined program.

一方電源が投入されるとデータ通信部20のCPU21
はまずステップ51においてメモリをクリアする等の初
期処理を行い、ステップ52に進んでCPUI 1より
ステータスリードコマンドを待受ける。そしてこのコマ
ンドが得られればステップ53に進み、各リモートI/
O装置3〜Nに順次ステータスの問い合わせを行う。そ
して各リモートI/O装置より得られた結果をC1・t
l I/Oに転送することによりCPUII内で前述し
たステップ44によるテーブルを完成させる。そしてテ
ーブルの完了を待受け(ステップ54)、テーブルが完
了すればステップ55において各リモー)1/○装置3
〜Nに順次作成したI/Oデータメモリのテーブルを送
出する。そしてステップ56に進んで通信開始のコマン
ドを待受け、CPUIIがステップ49に進んで通信ス
タートのコマンドを送出すればステップ57に進んでB
USYフラグが立てられているかどうかをチエツクする
。このフラグが立てられていればCPUI 1がI/O
データメモリ16をアクセスしているためこのフラグが
リセットされるのを待受け、リセットされればステップ
58に進んでI/Oデータメモリ16とデータ通信部2
0の通信バッファとの間でデータを変換する。
On the other hand, when the power is turned on, the CPU 21 of the data communication section 20
First, in step 51, initial processing such as clearing the memory is performed, and the process proceeds to step 52, where it waits for a status read command from the CPU 1. If this command is obtained, the process proceeds to step 53, where each remote I/O
Status inquiries are sequentially made to O devices 3 to N. Then, the results obtained from each remote I/O device are C1・t
Complete the table according to step 44 described above in the CPU II by transferring to I/O. Then, it waits for the completion of the table (step 54), and when the table is completed, in step 55, each remote) 1/○ device 3
-N, the created I/O data memory table is sent sequentially. The CPU II then proceeds to step 56 and waits for a command to start communication, and if the CPU II proceeds to step 49 and sends a command to start communication, it proceeds to step 57 and waits for a command to start communication.
Check if USY flag is set. If this flag is set, CPUI 1 is the I/O
Since the data memory 16 is being accessed, wait for this flag to be reset, and if it is reset, proceed to step 58 and connect the I/O data memory 16 and data communication unit 2.
Converts data to and from communication buffer 0.

そしてステップ59に進んで各リモー)I/O装置3〜
Nに出力データを送出する。そしてステップ60に進み
最も近いクモ−1−I/O0装置3に送信権を移行する
。こうすれば後述するようにリモートI/O装置3はそ
の入力データを送信することとなる。従ってステップ6
1において各リモートI/O装置より入力データを受信
し、ステップ62に進んで最終のリモートI/O装置N
よりデータの受信が完了したかどうかをチエツクする。
Then, proceed to step 59 to connect each remote) I/O device 3 to
Send output data to N. Then, the process proceeds to step 60, and the transmission right is transferred to the nearest Spider-1-I/O0 device 3. In this way, the remote I/O device 3 will transmit its input data, as will be described later. Therefore step 6
In step 1, input data is received from each remote I/O device, and the process proceeds to step 62, where the input data is received from the final remote I/O device N.
Check whether data reception is complete.

完了するまでデータの受信を継続しくステップ61.6
2)、データ受信が完了すればステップ62よりステッ
プ57に進んで同様の処理を繰り返す。ここでCPU2
1はステップ51〜62において各リモートI/O装置
に順次出力データを送出すると共に、入力装置のデータ
を受信するデータ伝送手段Bの機能を達成している。
Continue receiving data until complete step 61.6
2) When data reception is completed, the process proceeds from step 62 to step 57 and the same process is repeated. Here CPU2
1 achieves the function of data transmission means B which sequentially sends output data to each remote I/O device in steps 51 to 62 and receives data from an input device.

一方すモートI/O装置は第7図(a)に示すように電
源が投入されればメモリクリア等の初期処理を行い(ス
テップ71)、ステップ72に進んでそのリモートI/
O0装置内にある入出力装置の状態(I/Oステータス
)を識別しプログラマブルコントローラ本体lからのス
テータスコマンドに応じてこの情報を送出する。そして
ステップ73において本体から得られるシステム全体の
I/Oステータスを受信してI/Oデータメモリ34に
プログラマブルコントローラ本体lと同一のテーブルを
作成する。そしてステップ74において自装置内の入出
力装置をリフレッシュする。即ちそのリモートI/O0
装置内にある入力装置のスイッチ状態を入力し、受信し
たI/Oデータメモリの出力データを出力装置に出力し
て処理を終え、以後同様の処理を繰り返す。
On the other hand, as shown in FIG. 7(a), when the remote I/O device is powered on, it performs initial processing such as memory clearing (step 71), and then proceeds to step 72 to
It identifies the status of the input/output device (I/O status) in the O0 device and sends this information in response to a status command from the programmable controller main body l. Then, in step 73, the I/O status of the entire system obtained from the main body is received, and the same table as that of the programmable controller main body 1 is created in the I/O data memory 34. Then, in step 74, the input/output devices within the own device are refreshed. That is, its remote I/O0
The switch state of the input device in the device is input, the received output data of the I/O data memory is outputted to the output device, the process is completed, and the same process is repeated thereafter.

さて伝送りA2を介して割込みがあれば第7図fb)に
示すようにステップ75においてその割込要因を解析し
、データが送られてきた場合にはステップ76、77に
おいてI/Oデータメモリ34にデータをストアして処
理を終える。又割込要因によりデータの送信権が与えら
れた場合には、ステップ79においてI/Oデータメモ
リ内にあるそのリモートI/O装置の入力データのみを
プログラマブルコントローラ本体lに送出する。そして
ステップ80に進んで送信権を次アドレスのリモートI
/O装置に送出して処理を終了する。ここでCPtJ3
1はステップ74においてI/Oデータメモリの出力デ
ータを出力装置に出力すると共に、自装置内の入力デー
タをI/Oデータメモリ34にストアするデータ更新手
段Fの機能を達成しており、ステップ76〜79におい
てプログラマブルコントローラ本体1に自装置の入力デ
ータを送出すると共に、各出力装置の出力データを受信
するデータ伝送手段Eの機能を達成している。
Now, if there is an interrupt via the transmission A2, the cause of the interrupt is analyzed in step 75 as shown in FIG. The data is stored in 34 and the processing is completed. If the right to transmit data is granted due to an interrupt factor, in step 79 only the input data of the remote I/O device in the I/O data memory is sent to the programmable controller main body 1. Then, proceed to step 80 and transfer the transmission right to the remote I of the next address.
/O Send to the device and end the process. Here CPtJ3
1 achieves the function of data updating means F that outputs the output data of the I/O data memory to the output device in step 74 and stores the input data in the own device in the I/O data memory 34, 76 to 79 achieve the function of data transmission means E for transmitting the input data of the own device to the programmable controller main body 1 and receiving the output data of each output device.

又第8図はプログラマブルコントローラ本体や各リモー
トI/O0装置にモニタ装置6が接続されモニタの要求
があった場合の処理を示すフローチャートである。モニ
タの要求があればステップ91から92に進んで夫々の
装置に接続されているI/Oデータメモリの要求された
入出力装置のアドレスのメモリを読出す。そしてそのデ
ータに基づきオン/オフ表示を行って(ステップ93)
処理を終える。モニタ装置6ではプログラマブルコント
ローラ本体1だけでなくいずれのリモートI/O装置に
接続してもその場で必要な入出力装置のスイッチ状態を
モニタすることができる。
FIG. 8 is a flowchart showing the processing when the monitor device 6 is connected to the programmable controller main body or each remote I/O device and a request for monitoring is made. If there is a request for monitoring, the process proceeds from steps 91 to 92 to read the address of the requested input/output device from the I/O data memory connected to each device. Then, on/off display is performed based on the data (step 93).
Finish processing. The monitor device 6 can monitor the switch states of necessary input/output devices on the spot by connecting not only the programmable controller main body 1 but also any remote I/O device.

こうすればリモートに/O装置自体でもシステム全体の
I/Oデータが保持されることとなり、そのデータが所
定のサイクルでプログラマブルコントローラ本体だけで
なく全てのリモート■/。
In this way, the I/O data of the entire system will be held in the remote/O device itself, and the data will be transferred not only to the programmable controller main body but also to all the remote ■/O devices in a predetermined cycle.

装置に保持されることとなる。従って各リモートI/O
装置は他のリモートI/O装置のデータが必要な場合に
も自装置内のメモリをアクセスすることによってそのデ
ータを得ることができる。従ってそのような要因が生じ
たときに逐一伝送線を介して他のリモートI/O装置等
にデータを求める必要がなくなり、又その場合の処理を
迅速にすることができる。更にデータ通信量が一定とな
りサイクル時間が変化することがなくなるという効果が
得られる。
It will be held in the device. Therefore each remote I/O
Even when a device needs data from another remote I/O device, it can obtain that data by accessing its own internal memory. Therefore, when such a factor occurs, there is no need to request data from other remote I/O devices via the transmission line one by one, and the processing in that case can be speeded up. Furthermore, the effect that the amount of data communication is constant and the cycle time does not change can be obtained.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明によるプログラマブルコントローラシス
テムの機能的構成を示すブロック図、第2図は本実施例
のプログラマブルコントローラシステムの全体構成を示
すブロック図、第3図はプログラマブルコントローラ本
体の構成を示すブロック図、第4図はI/Oデータメモ
リの内容を示す図、第5図はリモートI/O装置の構成
を示すブロック図、第6図はプログラマブルコントロー
ラ本体の動作を示すフローチャート、第7図(a)。 第7図(blは各リモートI/O装置の動作を示すフロ
ーチャート、第8図はモニタ装置の動作を示すフローチ
ャートである。 A 、  D −−−−−1/ Oデータメモリ  B
、E−・・・−データ伝送手段  C,F−−−−−・
データ更新手段1−−−プログラマブルコントローラ本
体  2・・伝送線  3.4〜N−・−・−リモート
I/O装置6−・−モニタ装置  I/O,21.31
・−・−CPU   14.23−−RAM   16
.34・−・I/Oデータメモリ  23.38− −
通信制御回路  17.35−・−人カバソファ回路 
 I8.36−−−−・−出力バソファ回路特許出願人
   立石電機株式会社 代理人 弁理士 岡本官喜(他1名) 区 ^) r) C)
FIG. 1 is a block diagram showing the functional configuration of the programmable controller system according to the present invention, FIG. 2 is a block diagram showing the overall configuration of the programmable controller system of this embodiment, and FIG. 3 is a block diagram showing the configuration of the programmable controller main body. 4 is a diagram showing the contents of the I/O data memory, FIG. 5 is a block diagram showing the configuration of the remote I/O device, FIG. 6 is a flowchart showing the operation of the programmable controller main body, and FIG. a). FIG. 7 (bl is a flowchart showing the operation of each remote I/O device, and FIG. 8 is a flowchart showing the operation of the monitor device. A, D -------1/O data memory B
, E---- Data transmission means C, F-----
Data update means 1---Programmable controller body 2...Transmission line 3.4~N---Remote I/O device 6---Monitor device I/O, 21.31
・-・-CPU 14.23--RAM 16
.. 34.--I/O data memory 23.38--
Communication control circuit 17.35-・-human cover sofa circuit
I8.36---Output basso circuit patent applicant Tateishi Electric Co., Ltd. Agent Patent attorney Kanki Okamoto (and 1 other person) Ward ^) r) C)

Claims (1)

【特許請求の範囲】[Claims] (1)プログラマブルコントローラ本体と、該プログラ
マブルコントローラ本体に伝送線を介して接続された複
数のリモート入出力装置(以下リモートI/O装置とい
う)とを有し、プログラマブルコントローラ本体及びリ
モートI/O装置に接続される入出力装置の制御を行う
プログラマブルコントローラシステムにおいて、 前記プログラマブルコントローラ本体は、 前記プログラマブルコントローラ本体を含む各リモート
I/O装置に接続される入出力装置のスイッチ状態を保
持するI/Oデータメモリと、 各リモートI/O装置に順次夫々の出力装置の出力デー
タを送出すると共に夫々の入力装置の入力データを受信
するデータ伝送手段と、前記データ伝送手段より得られ
る入力データ及びプログラマブルコントローラに接続さ
れる入力装置の入力データにより前記I/Oデータメモ
リを更新すると共に所定のプログラムに従って各出力装
置の出力データを更新するデータ更新手段と、を有する
ものであり、前記各リモートI/O装置は、 前記プログラマブルコントローラ本体を含む各リモート
I/O装置に接続される入出力装置のスイッチ状態を保
持するI/Oデータメモリと、 周期的に前記プログラマブルコントローラ本体に自装置
の入力装置のデータを送出すると共に、出力装置のデー
タを受信するデータ伝送手段と、 前記I/Oデータメモリより得られる出力データを自装
置の出力装置に出力すると共に自装置内の入力装置のデ
ータをI/Oメモリにストアするデータ更新手段と、 を有することを特徴とするプログラマブルコントローラ
システム。
(1) It has a programmable controller main body and a plurality of remote input/output devices (hereinafter referred to as remote I/O devices) connected to the programmable controller main body via transmission lines, and the programmable controller main body and remote I/O devices In a programmable controller system that controls input/output devices connected to the programmable controller main body, the programmable controller main body is an I/O controller that maintains switch states of the input/output devices connected to each remote I/O device including the programmable controller main body. a data memory; a data transmission means for sequentially transmitting output data of each output device to each remote I/O device and receiving input data of each input device; and input data obtained from the data transmission means and a programmable controller. data updating means for updating the I/O data memory with input data from an input device connected to the remote I/O device and updating output data from each output device according to a predetermined program; The device includes an I/O data memory that retains switch states of input/output devices connected to each remote I/O device including the programmable controller main body, and a data memory for periodically transmitting data of the input device of the own device to the programmable controller main body. a data transmission means for transmitting data from the input device and receiving data from the output device; A programmable controller system comprising: data updating means for storing in memory; and a programmable controller system.
JP22544288A 1988-09-07 1988-09-07 Programmable controller system Expired - Fee Related JP2767824B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22544288A JP2767824B2 (en) 1988-09-07 1988-09-07 Programmable controller system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22544288A JP2767824B2 (en) 1988-09-07 1988-09-07 Programmable controller system

Publications (2)

Publication Number Publication Date
JPH0272411A true JPH0272411A (en) 1990-03-12
JP2767824B2 JP2767824B2 (en) 1998-06-18

Family

ID=16829428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22544288A Expired - Fee Related JP2767824B2 (en) 1988-09-07 1988-09-07 Programmable controller system

Country Status (1)

Country Link
JP (1) JP2767824B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171833A (en) * 2004-12-13 2006-06-29 Fuji Electric Fa Components & Systems Co Ltd Plc data exchange system and method for controlling it
JP2012204891A (en) * 2011-03-24 2012-10-22 Nec Access Technica Ltd Monitoring/controlling method and monitoring/controlling device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171833A (en) * 2004-12-13 2006-06-29 Fuji Electric Fa Components & Systems Co Ltd Plc data exchange system and method for controlling it
JP2012204891A (en) * 2011-03-24 2012-10-22 Nec Access Technica Ltd Monitoring/controlling method and monitoring/controlling device

Also Published As

Publication number Publication date
JP2767824B2 (en) 1998-06-18

Similar Documents

Publication Publication Date Title
US6782439B2 (en) Bus system and execution scheduling method for access commands thereof
US7080175B2 (en) Network system
KR970002680A (en) Inter-module communication device and method using system bus controller
JPH0272411A (en) Programmable controller system
JP3669302B2 (en) Programmable controller
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH05257852A (en) Process data processing system and processing method
JP3388246B2 (en) Remote I / O system for programmable controller
JP3358045B2 (en) Programmable controller
JP3020776B2 (en) Process instrumentation system
JPH08221106A (en) Programmable controller
JP2847920B2 (en) Bus relay device
JP2576236B2 (en) Communication method of programmable controller
JPS6190204A (en) Linking method of programmable controller
JPH01248207A (en) Numerical controller
JP2001084173A (en) Memory device
JPH01229357A (en) Data supplying/receiving method among plural processors
JPH0251759A (en) Adaptor controlling system
JPH1031617A (en) Programmable controller
JPH10240317A (en) Module device
JPS62190544A (en) Higher link unit for programmable controller
JPH03265904A (en) Process control system
JPH03212776A (en) One-chip cpu
JPH096425A (en) Multi-processor system
JPH0573473A (en) Industrial computer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees