JPH03189802A - Host link unit for programmable controller - Google Patents

Host link unit for programmable controller

Info

Publication number
JPH03189802A
JPH03189802A JP33171589A JP33171589A JPH03189802A JP H03189802 A JPH03189802 A JP H03189802A JP 33171589 A JP33171589 A JP 33171589A JP 33171589 A JP33171589 A JP 33171589A JP H03189802 A JPH03189802 A JP H03189802A
Authority
JP
Japan
Prior art keywords
monitor
host computer
data
monitor data
link unit
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
JP33171589A
Other languages
Japanese (ja)
Inventor
Masatake Torida
鳥田 正剛
Hiroshi Yamamoto
宏 山本
Hiroshi Kutsuyama
沓山 弘
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP33171589A priority Critical patent/JPH03189802A/en
Publication of JPH03189802A publication Critical patent/JPH03189802A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To immediately return the data by receiving a monitor data request by holding the monitor data by a monitor operation command request issued by a host computer, reading out the held data at the time of receiving the monitor data request and returning it to the host computer. CONSTITUTION:By a monitor operation command from a host computer 1, a host link unit 2 executes a monitor operation of a programmable controller 4, and inputs and holds monitor data of the controller 4. Subsequently, when a monitor data request is received, the monitor data held by the host link unit 2 is returned immediately to the host computer 1 without accessing the controller 4. In such a way, with respect to the monitor data request, access holding, etc., of the controller 4 are omitted, and the monitor data can be returned to the host computer by a quick response.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ホスI・コンピュータとプログラマブル・コ
ントローラとの間に設けられるプログラマブル コント
ローラの上位リンクユニットに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an upper link unit of a programmable controller provided between a host I computer and a programmable controller.

〔従来の技術〕[Conventional technology]

従来、プログラマブル コントローラ(以下PCという
)の上位リンクユニットは、PCと非同期に動作すると
ともにホストコンピュータに双方向通信接続される。
Conventionally, an upper link unit of a programmable controller (hereinafter referred to as a PC) operates asynchronously with the PC and is connected to a host computer for bidirectional communication.

そして、ホストコンピュータからモニタデータ要求等の
要求コマンド、設定コマンドを受信すると、そのコマン
ドを解釈して])Cのデータエリアにアクセスし、デー
タの読出し、暮込み全実行した後、処理結果等をホスト
コンピュータへ返送する。
When it receives a request command such as a monitor data request or a setting command from the host computer, it interprets the command, accesses the data area of C, reads the data, executes the entire process, and then displays the processing results, etc. Send it back to the host computer.

このとき、PCの制御への影響を防止するため、前記デ
ータエリアのアクセス権はPCが有し、PCの許可制御
に基いてと位リンクユニットはデータ工jアをアクセス
する。
At this time, in order to prevent any influence on the control of the PC, the PC has access rights to the data area, and the link unit accesses the data area based on the permission control of the PC.

そして、データエリアの各点番のデータがPCのシーケ
ンス制御周期毎に発生して更新されるため、データエリ
アのアクセス許可はシーケンス制御周期の間隔で発生す
る。
Since data for each point number in the data area is generated and updated every sequence control cycle of the PC, access permission to the data area occurs at intervals of the sequence control cycle.

そのため、ホストコンピュータのモニタデータ要求の受
信時は、この受信に基くモニタ動作によりPCにアクセ
ス要求を発行して許可されるまで待機した後、データエ
リアをアクセスして指定された1又は複数の点番の最新
のデータを取込み、この取込み後にホストコンピュータ
にデータを返送する。
Therefore, when receiving a monitor data request from the host computer, the monitor operation based on this reception issues an access request to the PC, waits until permission is granted, and then accesses the data area to access the specified one or more points. The latest data of the number is taken in, and after this data is taken in, the data is sent back to the host computer.

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

前記従来のPCの上位リンクユニットの場合、モニタデ
ータ要求を受信してからPCのデータエリアのアクセス
等を行うため、ホストコンピュータに返送するまでに時
間を要する問題点がある。
In the case of the conventional PC upper link unit, since it accesses the data area of the PC after receiving the monitor data request, there is a problem in that it takes time to send the data back to the host computer.

すなわち、上位リンクユニットはプログラム言語等の違
いに基き、ホストコンピュータより迅速に動作するが、
PCと非同期に動作し、しかも、PCのシーケンス制御
周期が制御内容等によって変化し、長い制御のときに数
100m5ecにも達するため、モニタデータ要求の受
信によって直ちにアクセス要求を発行しても、最大数1
00m5ecも遅れてデータがホストコンピュータに返
送される。
In other words, the upper link unit operates faster than the host computer due to differences in programming language, etc.
It operates asynchronously with the PC, and the sequence control period of the PC changes depending on the control contents, reaching several 100 m5ec during long control, so even if an access request is immediately issued upon receiving a monitor data request, the maximum Number 1
The data is returned to the host computer with a delay of 00m5ec.

そのため、ホストコンピュータのリアルタイムモニタが
行えない。
Therefore, real-time monitoring of the host computer cannot be performed.

また、ホストコンピュータと上位リンクユニットとの通
信が、経済性等を考慮して伝送速度の遅いシリアル伝送
で行われるとともに、ホストコンピュータに複数の上位
リンクユニットが接続されている場合、モニタデータ要
求を発行してからデータが返送されるまで他のリンクユ
ニットとの通信を禁止して行われる。
In addition, communication between the host computer and the host link unit is carried out by serial transmission, which has a slow transmission speed in consideration of economic efficiency, and when multiple host link units are connected to the host computer, monitor data requests are Communication with other link units is prohibited from the time it is issued until the data is returned.

そのため、上位リンクユニットからのデータの返送が遅
れると、ホストコンピュータと各上位リンクユニットと
の通信切換えが極めて遅くなり、モニタ可能な上位リン
クユニットの数が制限されてホストコンピュータのモニ
タ能力が極めて低下する。
Therefore, if the return of data from the host link unit is delayed, communication switching between the host computer and each host link unit will be extremely slow, which will limit the number of host link units that can be monitored and severely reduce the host computer's monitoring ability. do.

本発明は、モニタデータ要求の受信により直ちにデータ
返送を行うようにしたPCの上位リンクユニットを提供
することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an upper link unit for a PC that immediately returns data upon receiving a monitor data request.

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するために、本発明のPCの上位リンク
ユニットにおいては、ホストコンピュータが発行するモ
ニタ動作指令要求によりモニタ動作のみを実行してモニ
タデータを保持するモニタデ〜り保持手段と、 番呑モニタデータ要求の受信時PCBアクセスせずに前
記保持手段のデータを読出して前記ホストコンピュータ
に返送するモニタデータ返送手段とを備える。
In order to achieve the above object, the upper link unit of the PC of the present invention includes a monitor data holding means that executes only a monitor operation and holds monitor data in response to a monitor operation command request issued by a host computer; and monitor data return means for reading data from the holding means and returning it to the host computer without accessing the PCB when a monitor data request is received.

〔作用〕[Effect]

前記のように構成された本発明の1位リンクユニットの
場合、モニタデータ要求に先立ってホストコンピュータ
から送信されるモニタ動作指令要求により、モニタデー
タ保持手段がモニタデータ要求の受信前にモニタ動作を
実行してPCの最新のモニタデータを保持する。
In the case of the first link unit of the present invention configured as described above, in response to the monitor operation command request transmitted from the host computer prior to the monitor data request, the monitor data holding means executes the monitor operation before receiving the monitor data request. Execute to maintain the latest PC monitor data.

そして、モニタデータ要求を受信すると、モニタデータ
返送手段が保持手段のモニタデータをホストコンピュー
タに返送する。
Then, upon receiving the monitor data request, the monitor data return means returns the monitor data in the holding means to the host computer.

そのため、モニタデータ要求の受信時、従来のようにP
Cからのアクセス許可を待つことなく、直ちに最新のモ
ニタデータがホストコンピュータに返送される。
Therefore, when receiving a monitor data request, P
The latest monitor data is immediately returned to the host computer without waiting for access permission from C.

〔実施例〕〔Example〕

1実施例について、第1図及び第2図を参照して説明す
る。
One embodiment will be described with reference to FIGS. 1 and 2.

第1図に示すように、ホストコンピュータ(1)と上位
リンクユニット(2)とは双方向通信用のシリアル伝送
ライン(3)ヲ介して接続され、上位リンクユニット(
2)とPC+41とはコネクタt5+ 、 +61 ’
i介してパスライン接続されている。
As shown in FIG. 1, the host computer (1) and the upper link unit (2) are connected via a serial transmission line (3) for bidirectional communication, and the upper link unit (
2) and PC+41 are connectors t5+, +61'
Pass line connection is made via i.

そして、ホストコンピュータ11)が従来のホストコン
ピュータと異なる点は、モニタ動作指令要求としてのモ
ニタ動作登録コマンドの発行機能及びこのコマンドの動
作解除指令用のモニタ動作解除コマンドの発行機能を備
えた点である。
The host computer 11) differs from conventional host computers in that it has the function of issuing a monitor operation registration command as a monitor operation command request and the function of issuing a monitor operation cancellation command for an operation cancellation command of this command. be.

また、上位リンクユニット(2)はCPU(71,通信
コントローラ(8)及びメモリ構成のシステムプログラ
ムエリア(9:、ワークエリアflol 、モニタパラ
メータエリアl+) eモニタデータエリア(12)ヲ
バス接続して形成され、従来の上位リンクユニットと異
なる点は、エリア(ul 、 (12) k付加すると
ともにエリア(9)のプログラムを変更してモニタデー
タ保持手段、モニタデータ保持手段を備えた点である。
In addition, the upper link unit (2) is formed by connecting the CPU (71, communication controller (8), system program area (9:, work area flol, monitor parameter area l+), e-monitor data area (12), and memory configuration to the bus. The difference from the conventional upper link unit is that areas (ul, (12)k) are added and the program of area (9) is changed to provide monitor data holding means and monitor data holding means.

そして、CPU(71はシステムプログラムエリア(9
)に格納されたシステムプログラムにしたがって動作し
、ワークエリア+lO1を用いた種々の演算等全実行す
る。
The CPU (71 is the system program area (9)
), and executes all the various calculations using the work area +lO1.

また、通信コントローラ(8)はホストコンピュタ1】
)との双方向通信全制御し、モニタパラメータエリア(
11)はモニタ動作要求コマンドの点番指定パラメ〜り
等の各制御パラメータ全保持し、モニタデータエリア(
12]はモニタ動作によって取込まれたPC+41のモ
ニタデータを保持する。
In addition, the communication controller (8) is the host computer 1]
) and monitor parameter area (
11) holds all control parameters such as the point number specification parameters of the monitor operation request command, and the monitor data area (
12] holds the monitor data of PC+41 taken in by the monitor operation.

さらに、PC+4+は従来のpcと同様、CPU!+3
)、メモリ構成のシステムプログラムエリア(+4) 
、ワークエリア(+5) *ユーザプログラムエリア(
+6+ 、共有データエリアQ 7) 及ヒPCユニッ
ト側ハソファ(+8) * 周辺ユニット側バッファ(
191バス接続するとともに、アクセス制御回路シ0)
ヲ設けて形成されている。
Furthermore, PC+4+ has a CPU like a conventional PC! +3
), memory configuration system program area (+4)
, work area (+5) *User program area (
+6+, shared data area Q 7) and buffer on the PC unit side (+8) * peripheral unit side buffer (
In addition to connecting the 191 bus, the access control circuit
It is formed by providing

そして、CPU(+3)はシステムプログラムエリア(
14)に格納されたシステムプログラムにしたがって動
作し、被制御機器側の入出力装置(図示せず)の入出力
処理、ユーザプログラムエリア(1G)に格納されたニ
ーサブログラム(制御プログラム)の解釈。
And the CPU (+3) is the system program area (
14) operates in accordance with the system program stored in the device, performs input/output processing of the input/output device (not shown) on the controlled equipment side, and interprets the knee subprogram (control program) stored in the user program area (1G). .

実行、上位リンクユニyト(2)に対するサーヒス処理
をシーケンス制御周期毎番こサイクリックに行う。
Execution: Service processing for the upper link unit (2) is performed cyclically every sequence control period.

このとき、ワークエリア(15)はCPU(13)の演
算に用) L1共有データエリア(1カはPC(4+がアクセス権
を有し、アクセス制御回路(20)によるバッフy 1
1B) p Q!llIの制御に基いて上位リンクユニ
ット[21、PC[4+がデータの授受等に共用する。
At this time, the work area (15) is used for calculations by the CPU (13)).
1B) p Q! It is shared by the upper link unit [21 and PC[4+] for exchanging data, etc. under the control of llI.

また、アクセス制御回路(20)はCP U(7) 、
 +131のアクセス要求に基き、シーケンス制御を優
先して両CP U +7) 、 (+31に共有データ
エリア(17)のアクセス許可?与える。
The access control circuit (20) also includes a CPU (7),
Based on the access request from +131, both CPUs +7) and (+31 are granted permission to access the shared data area (17), giving priority to sequence control.

そして、上位リンクユニット(2)はPC(41に接続
されると、PCi41から給電されて動作状態になると
同時にリセットがかかり第2凶のスターHからの各処理
全実行する。
When the upper link unit (2) is connected to the PC (41), it is supplied with power from the PCi41 and becomes operational, at the same time it is reset and executes all the processes from the second worst star H.

すなわち、ステップ(51)によりシステムプログラム
がロードされてエリアt10)〜(12)の初期化等が
施され、動作環境が整えられる。
That is, in step (51), the system program is loaded, areas t10) to (12) are initialized, and the operating environment is prepared.

さらに、ステップ(S2)のシステム処理により受信待
機の状態になり、ホストコンピュータ(1)からコマン
ド等全受信するまでステップ(S3)、(S4)’t 
NOで通過してステップ(S2)に戻る。
Furthermore, the system processing in step (S2) puts the system in a reception standby state, and steps (S3) and (S4) until all commands etc. are received from the host computer (1).
Pass with NO and return to step (S2).

そして、ホストコンピュータillからの受信があると
、ステップ(S3)からステップ(S5)に移行し、通
信コントローラ(8)内で伝送エラーがチエツクされる
When there is reception from the host computer ill, the process moves from step (S3) to step (S5), and a transmission error is checked in the communication controller (8).

このとき、伝送エラーが有ればステップ(S6)をNo
で通過してステップ(S7)に移行し、再送要求等全応
答としてホストコンピュータ(1)に返送される。
At this time, if there is a transmission error, select No in step (S6).
The process passes through step (S7) and is returned to the host computer (1) as a full response such as a retransmission request.

一方、伝送エラーが無ければステップ(S6)からステ
ップ(S8)に移行し、CP U(7)がワークエリア
(10)を利用して受信コマンドを解釈する。
On the other hand, if there is no transmission error, the process moves from step (S6) to step (S8), where the CPU (7) interprets the received command using the work area (10).

この受信コマンドがモニタ動作登録コマンドであれば、
ステップ(S9) ”i介してステップ(510月こ移
行し、モニタパラメータエリア(11)に登録コマンド
の制御パラメータ、すなわちモニタする点番等のパラメ
〜りが保持される。
If this received command is a monitor operation registration command,
Step (S9) The process moves to step (510) and the control parameters of the registered command, that is, parameters such as the point number to be monitored, are held in the monitor parameter area (11).

さらに、ステップ(511)によりモニタパラメータエ
リア(11)にモニタ動作指定用のモニタフラグがセン
トされ、上位リンクユニット(21がPC+4]のモニ
タ動作を開始し、ステップ(512)によりc p u
(7)が共有データエリア(17)のアクセス要求2P
C(4)に発行する。
Furthermore, in step (511), a monitor flag for specifying monitor operation is sent to the monitor parameter area (11), and the monitor operation of the upper link unit (21 is PC+4) is started, and in step (512), c p u
(7) is the shared data area (17) access request 2P
Issued to C(4).

そして、ステップ(512)からステップ(S2)に戻
す、アクセス制御回路I20)からアクセス許可が発行
されるまでステップ(S3)、(S4) QNOで通過
してアクセス待機になる。
Then, the process returns from step (512) to step (S2), passing through steps (S3) and (S4) with QNO and waiting for access until access permission is issued from the access control circuit I20).

一方、ホストコンピュータ(1)と上位リンクユニット
(2)との通信が終了し、ホストコンピュータfl)は
次の処理を実行する。
On the other hand, the communication between the host computer (1) and the upper link unit (2) is completed, and the host computer fl) executes the following process.

つぎに、シーケンス制御に基きCP U(+3)が各点
番の最新のモニタデータ?共有データエリア(lηに書
込んだ後、アクセス制御回路(20)から上位リンクユ
ニット(2)にアクセス許可が発行されると、このアク
セス許可に基き、ステップ(S4)からステップ(S1
3ンを介してステップ(514)に移行する。
Next, based on sequence control, the CPU (+3) checks the latest monitor data for each point number. After writing to the shared data area (lη), when the access control circuit (20) issues access permission to the upper link unit (2), based on this access permission, steps from step (S4) to step (S1
3, the process moves to step (514).

そして、CPU(7)かモニタパラメータエリア(川の
制御パラメータを参照して共有データエリア07)’e
アクセスし、指定された各点番のモニタデータを読出し
てモニタデータエリア(12)に保持スる。
Then, the CPU (7) or the monitor parameter area (shared data area 07 with reference to the river control parameters)'e
The monitor data of each specified point number is read out and held in the monitor data area (12).

さらに、モニタ動作中はステップ(515)iNoで通
過してステップ(S1月こ戻り、以降、ホストコンピュ
ータ11)のモニタデータ要求を受信するまで共力デー
タエリア(1ηのアクセス許可が発行される毎に、ステ
ップ(S4) iY E Sで通過し、このデータエリ
ア(17)から各点番のモニタデータを読出してモニタ
データエリア(12)のデータを更新する。
Furthermore, during the monitor operation, every time an access permission of 1η is issued to the synergistic data area (1η) until it passes through step (515) iNo and receives a monitor data request from step (S1, hereafter, the host computer 11). Then, step (S4) is passed, and the monitor data of each point number is read from this data area (17) to update the data in the monitor data area (12).

つぎに、ホストコンピュータ[+1のモニタデータ要求
を受信すると、ステップ(53)、(S5)、(S6)
、(58)、(S9)及びステップ(516) k介し
てステップ(517)に移行する。
Next, when the host computer receives a monitor data request of [+1], steps (53), (S5), and (S6) are performed.
, (58), (S9) and step (516) k to proceed to step (517).

そして、CPU(7)がモニタデータエリア(1粉の各
点番のモニタデータを読出して通信コントローラ(8)
に送る。
Then, the CPU (7) reads the monitor data area (monitor data of each point number of 1 powder) and sends it to the communication controller (8).
send to

さらに、ステップ(517)からステップ(S7)に移
行し、読出された各点番の最新のモニタデータがホスト
コンピュータ(1)に返送され、モニタデータ要求に基
くホストコンピュータfil *上位リンクユニット(
2)間の通信が終了する。
Furthermore, the process moves from step (517) to step (S7), where the latest monitor data of each read point number is returned to the host computer (1), and the host computer fil *upper link unit (
2) Communication between ends.

このとき後述の通常コマンドの受信時の処理。At this time, processing is performed when receiving a normal command, which will be described later.

すなわち従来のモニタデータ要求コマンド等の受信時の
処理のようなPCl41のアクセスが省け、シーケンス
制御周期に依存するアクセス待機を行うことなく直ちに
各点番の最新のモニタデータが返送され、ホストコンピ
ュータH* 上位リンクユニット(2)間の通信が短時
間で終了する。
In other words, access to the PCl 41, which is required when receiving a conventional monitor data request command, etc., can be omitted, and the latest monitor data of each point number is immediately returned without waiting for access depending on the sequence control cycle, and the latest monitor data of each point number is returned to the host computer H. * Communication between upper link units (2) ends in a short time.

そして、ステップ(S7)からステップ(S2)に戻る
と、ホストコンピュータ[11からモニタ動作解除コマ
ンドを受信するまでモニタ動作が継続され、この間、モ
ニタデータ要求全受信する毎にモニタデータエリア(1
2)の各点番のモニタデータがホストコンピュータ(1
)に返送される。
Then, when the process returns from step (S7) to step (S2), the monitor operation continues until a monitor operation cancellation command is received from the host computer [11].During this period, the monitor data area (1
The monitor data for each point number in 2) is stored in the host computer (1
) will be returned to.

つぎに、モニタ動作解除コマンドを受信すると、通過し
てステップ(519)に移行する。
Next, when the monitor operation cancellation command is received, the process passes through and moves to step (519).

このとき、CPU(7)はモニタパラメータエリア(川
のモニタフラグ全リセットした後、ステップ(520)
に移行してPCl41へのアクセス要求の発行を停止し
、PCl3)のモニタ動作を解除する。
At this time, the CPU (7) resets all of the monitor parameter area (river monitor flags) and then proceeds to step (520).
, stops issuing access requests to PCl41, and cancels the monitoring operation of PCl3).

また、ホストコンピュータ(1)からモニタ動作全課、
モニタ登録、モニタ動作解除以外の従来と同髄のコマン
ド(以下通常コマンドという)を受信すると、ステップ
(59)、(516)、(518) (i−NOで通過
してステップ(S21)に移行し、例えばモニタパラメ
ータ工jア(11)に通常アクセスフラグをセント後、
PCl41に共通データエリア同のアクセス要求が発行
され、CP u(7)が通常動作全開始する。
In addition, all sections of monitor operation from the host computer (1),
When receiving commands that are the same as conventional commands other than monitor registration and monitor operation cancellation (hereinafter referred to as normal commands), steps (59), (516), and (518) (pass through with i-NO and move to step (S21) For example, after setting the normal access flag to monitor parameter engineering (11),
An access request for the common data area is issued to the PCl 41, and the CPU u (7) starts full normal operation.

この場合、CPU(7)はステップ(521)のアクセ
ス要求の発行後、ステップ(S2)、(53)、(54
)でPCl41からのアクセス許可全待ち、アクセス許
可が発行されたときに、ステップ(513) e NO
で通過してステップ(515)からステップ(S22)
に移行して共力データエリア(17)をアクセスし、必
要なデータの取込み又は書込みを行う。
In this case, after issuing the access request in step (521), the CPU (7) performs steps (S2), (53), and (54).
), wait for all access permissions from PCl41, and when access permission is issued, step (513) e NO
Step (515) to step (S22)
to access the Kyori data area (17) and import or write necessary data.

さらに、データの取込み又は書込みが終了すると、ステ
ップ(S23)に移行してPC[41へのアクセス要求
の発行を停止した後、ステップ(S7)に移行して取込
んだデータ等をホストコンピュータ+11に返送し、受
信した通常コマンドの処理を終了する。
Furthermore, when the data import or write is completed, the process moves to step (S23) to stop issuing access requests to the PC[41], and then the process moves to step (S7) to transfer the read data etc. to the host computer+11. and terminates processing of the received normal command.

そして、通常コマンドの受信時は、この受信に基くホス
トコンピュータi11への返送が終了するまでホストコ
ンピュータ+11と上位リンクユニット(21との通信
が続き、その間ホストコンピュータ(1)は他の上位リ
ンクユニット等の通信が行えない。
When a normal command is received, communication between the host computer +11 and the upper link unit (21) continues until the return to the host computer i11 based on this reception is completed, and during that time the host computer (1) communicates with the other upper link unit. etc. cannot be communicated.

一方、モニタ動作9通常動作のいずれにおいても、ステ
ップ(S3)で新たなコマンド等を受@すると、受信し
たコマンドの処理が行われる。
On the other hand, in any of the normal operations of the monitor operation 9, when a new command or the like is received in step (S3), the received command is processed.

そのため、とくにモニタ動作中に新たなモニタ動作登録
コマンドを受信すると、モニタパラメータエリア(1り
の制御パラメータが更新されてモニタする点番の変更、
削除が行われる。
Therefore, especially when a new monitor operation registration command is received during monitor operation, the monitor parameter area (one control parameter is updated and the point number to be monitored is changed,
Deletion takes place.

そして、以降は更新された制御パラメータに基いてモニ
タデータエリア(12)にモニタデータが保持され、モ
ニタデータ要求の受信時には、最新のモニタ動作登録コ
マンドに基く各点番の最新のモニタデータが返送される
From then on, monitor data is held in the monitor data area (12) based on the updated control parameters, and when a monitor data request is received, the latest monitor data for each point number based on the latest monitor operation registration command is returned. be done.

また、動作言語の違い等に基き、上位リンクニーノド(
2)はI’C+4 +と同様に迅速に動作し、ホスI−
コンピュータ+Ifはt位11ンクユニット(2)、P
C(4)に比して動作が遅い。
In addition, based on differences in operating languages, etc., upper link
2) works as quickly as I'C+4 +, and Phos I-
Computer + If is t position 11 link unit (2), P
The operation is slower than C(4).

しかも、伝送ライン(3)ヲ用いたホストコンピュータ
Hト上位すンク二二ッl−+21との双方向通信の伝送
も、上位リンクユニ71121の動作に比して遅い。
Moreover, the transmission of bidirectional communication with the host computer H upper unit 22-+21 using the transmission line (3) is also slower than the operation of the upper link unit 71121.

そのため、モニタ動作はほとんどト位すンクユノl□ 
(21の負担にならず、ホストコンピュータ(1)と−
F位すンクユニノl−I2)との通信等がモニタ動作で
遅れたりしない。
Therefore, most of the monitor operations are
(Without burden on 21, the host computer (1) and -
Communication, etc. with F position unit 1-I2) will not be delayed due to monitor operation.

そして、モニタデータ要求の発行からモニタデータの返
送までの時間がPC(41のアクセス待機時間等のない
短時間になるため、ホストコンピュータ(11はPCI
4 jのモニタ処理に奮われる時間が大幅に節約され、
単位時間当りにモニタ可能なpcの台数が増加してモニ
タ能力が向上する。
Since the time from issuing a monitor data request to returning the monitor data is a short time with no access wait time etc. on the PC (41), the host computer (11 is PCI
4. The time spent on monitoring the 4j is greatly saved,
The number of PCs that can be monitored per unit time increases, improving monitoring ability.

また、モニタ動作登録コマンドで指定される点番の数が
少なく、1シ一ケンス制御周期内で登録コマンド−モニ
タデータ要求コマンドを発行できるときは、上位リンク
ユニット(2)からの返送データに基き、PC+4)の
動作に応じてシーケンス制御周期毎に登録コマンドを変
更することにより、ホスI−コンピュータfllによる
PC(41のリアルタイムモニタも行える。
In addition, when the number of point numbers specified in the monitor operation registration command is small and the registration command - monitor data request command can be issued within one sequence control cycle, the control is performed based on the return data from the upper link unit (2). , PC+4), real-time monitoring of the PC (41) by the host I-computer full can also be performed by changing the registration command every sequence control cycle according to the operation of the PC (41).

そして、ホストコンピュータ(1)とt位すンクユニッ
ト(2)との通信がシリアル伝送以外の伝送方式で行わ
れるときにも、前記と同様の効果が得られるのは勿論で
ある。
Of course, the same effects as described above can be obtained even when communication between the host computer (1) and the t-sink unit (2) is performed by a transmission method other than serial transmission.

〔発明の効果〕〔Effect of the invention〕

本発明は、以上説明したように構成されて(Aるため、
以下に記載する効果を奏する。
The present invention is configured as described above (A).
This produces the effects described below.

ホストコンピュータからのモニタ動作指令コマンドによ
り、上位リンクユニットがプログラマブル コントロー
ラのモニタ動作?実行し、このコントローラのモニタデ
ータを取込んで保持し、モニタデータ要求の受信時、コ
ントローラをアクセスすることなく、h位すンクユニッ
トが保持したモニタデータを直ちにホストコンピュータ
に返送するため、モニタデータ要求に対して従来のコン
トローラのアクセス待機等を省いた迅速な応答でモニタ
データをホストコンピュータに返送することができ、ポ
ス1−コンピュータのモニタ能力の向]二等を図ること
ができる。
Is the upper link unit programmable by the monitor operation command from the host computer? Monitor operation of the controller? When a monitor data request is received, the monitor data held by the h-rank unit is immediately returned to the host computer without accessing the controller. Monitor data can be returned to the host computer in response to a request with a quick response that eliminates the need for a conventional controller to wait for access, etc., thereby improving the computer's monitoring ability.

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

第1図及び第2図は本発明のプログラマブル・コン]・
ローラのと位リンクユニットの1実m例を示し、第1図
はブロック図、第2図は動作説明用のフローチャートで
ある。 (1)  ホストコンピュータ、(2)・・・上位リン
クユニッl−,13)・ンリアル伝送ライン、(4)・
・・プログラマブルコントローラ、(”t)、 (13
+・・・CPU、 i8j・・・通信コントローラ、(
II)・・モニタパラメータエリア、(+2)・・・モ
ニタデータエリア、(17)・・共有データエリア、(
20)・・・アクセス制御回路。
Figures 1 and 2 show the programmable controller of the present invention]
One actual example of a roller position link unit is shown, FIG. 1 is a block diagram, and FIG. 2 is a flowchart for explaining the operation. (1) Host computer, (2)...upper link unit l-, 13), real transmission line, (4)...
...Programmable controller, ("t), (13
+...CPU, i8j...Communication controller, (
II)...Monitor parameter area, (+2)...Monitor data area, (17)...Shared data area, (
20)...Access control circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)ホストコンピュータに双方向通信接続され、前記
ホストコンピュータが発行するモニタデータ要求の受信
時、モニタ動作に基くプログラマブル・コントローラの
アクセスにより前記コントローラの制御周期毎に更新さ
れるモニタデータを取込み、前記モニタデータを前記ホ
ストコンピュータに返送するプログラマブル・コントロ
ーラの上位リンクユニットにおいて、 前記ホストコンピュータが発行するモニタ動作指令要求
により前記モニタ動作のみを実行して前記モニタデータ
を保持するモニタデータ保持手段と、 前記モニタデータ要求の受信時前記コントローラをアク
セスせずに前記保持手段のデータを読出して前記ホスト
コンピュータに返送するモニタデータ返送手段と を備えたことを特徴とするプログラマブル・コントロー
ラの上位リンクユニット。
(1) Connected to a host computer for bidirectional communication, when receiving a monitor data request issued by the host computer, captures monitor data that is updated every control cycle of the controller by access from a programmable controller based on a monitor operation; In the upper link unit of the programmable controller that returns the monitor data to the host computer, a monitor data holding unit that executes only the monitor operation and holds the monitor data in response to a monitor operation command request issued by the host computer; An upper link unit of a programmable controller, comprising: monitor data return means for reading data from the holding means without accessing the controller when receiving the monitor data request, and returning the data to the host computer.
JP33171589A 1989-12-20 1989-12-20 Host link unit for programmable controller Pending JPH03189802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33171589A JPH03189802A (en) 1989-12-20 1989-12-20 Host link unit for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33171589A JPH03189802A (en) 1989-12-20 1989-12-20 Host link unit for programmable controller

Publications (1)

Publication Number Publication Date
JPH03189802A true JPH03189802A (en) 1991-08-19

Family

ID=18246781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33171589A Pending JPH03189802A (en) 1989-12-20 1989-12-20 Host link unit for programmable controller

Country Status (1)

Country Link
JP (1) JPH03189802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015090548A (en) * 2013-11-05 2015-05-11 オムロン株式会社 Control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015090548A (en) * 2013-11-05 2015-05-11 オムロン株式会社 Control device

Similar Documents

Publication Publication Date Title
US4729090A (en) DMA system employing plural bus request and grant signals for improving bus data transfer speed
US7516265B2 (en) System and method for providing an application with memory access methods
KR20200083017A (en) Dual PLC Control System Based on Multi Core Processor
JPH03189802A (en) Host link unit for programmable controller
JPS59223807A (en) Coupling system of numerical controller
JP2961542B2 (en) Data processing system
JP2522412B2 (en) Communication method between programmable controller and input / output device
CN121396656A (en) Access right control method and artificial intelligent chip
JPH0373036B2 (en)
JPH03286207A (en) Host link unit for programmable controller
JP2667285B2 (en) Interrupt control device
JP3903688B2 (en) Bank switching system
JP2503287B2 (en) Multi-function computer with survival confirmation function
JPH06224975A (en) Method for resetting modules connected with each other, and system using this method
JPH0290203A (en) Programmable controller
JPH02311903A (en) Programmable controller
JPH02130602A (en) Process controller
JPH04195203A (en) Shared memory control method for programmable controller system
JPH01126749A (en) Data control device for peripheral equipment
JPH03288255A (en) Network control system for multiprocessor
Halang New approaches for distributed industrial process control systems aimed to cope with strict time constraints
JPH02195471A (en) Interruption control system
JPH03100853A (en) Inter-processor communication system
JPH0476752A (en) Buffer control system
JPS61260346A (en) Direct data transfer system