JPH02168302A - High-order link unit for programmable controller - Google Patents

High-order link unit for programmable controller

Info

Publication number
JPH02168302A
JPH02168302A JP32431588A JP32431588A JPH02168302A JP H02168302 A JPH02168302 A JP H02168302A JP 32431588 A JP32431588 A JP 32431588A JP 32431588 A JP32431588 A JP 32431588A JP H02168302 A JPH02168302 A JP H02168302A
Authority
JP
Japan
Prior art keywords
host computer
programmable controller
controller
link unit
programmable
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
JP32431588A
Other languages
Japanese (ja)
Inventor
Masatake Torida
鳥田 正剛
Masashi Ikegami
池上 正志
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 JP32431588A priority Critical patent/JPH02168302A/en
Publication of JPH02168302A publication Critical patent/JPH02168302A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To prevent a timing gap between the data processing of a computer and the control operation of a controller by executing the operation of a programmable controller from a host computer at every one control period. CONSTITUTION:In the case where a command from the host computer 1 is received, a CPU 12 interprets the command in conformity to the system program of a system program area 11 by using a work area 14, and outputs an access request signal of a shared data area 22 to the access control circuit 24 of the programmable controller 20. Then, it waits the input of an access permission signal from the controller 20. On the reception of this permission signal, it makes to access the shared data area 22 synchronously with it, and reads in the requested data from the host computer 1. After finish, it waits the input of the next command from the host computer 1.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はホスト・コンピュータとプログラマブル・コン
トローラとの間に接続される上位リンクユニットに関し
、さらに詳細にいえば、ホスト・コンピュータ側のシー
ケンスΦプログラムに従って、シーケンス・プログラム
の制御周期ごとに、プログラマブルφコントローラの実
行・停止を繰り返しながら、ホスト・コンピュータとプ
ログラマブルφコントローラのメモリエリアとの間でデ
ータを授受するデータ処理システムに用いられる、プロ
グラマブル・コントローラの上位リンクユニットの改良
に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to an upper link unit connected between a host computer and a programmable controller, and more specifically, to a sequence Φ program on the host computer side. A programmable controller used in a data processing system that exchanges data between a host computer and a memory area of the programmable φ controller while repeatedly executing and stopping the programmable φ controller every control cycle of a sequence program. Regarding the improvement of the upper link unit.

〈従来の技術〉 プログラマブル・コントローラの上位リンクユニットは
、ホスト・コンピュータからのデータ要求コマンドやデ
ータ設定コマンドを受信した場合に、受信したコマンド
を解釈し、プログラマブル・コントローラのデータエリ
アにアクセスし、設定データの書き込みや要求されたデ
ータの読み出しをする。そして、処理結果やデータをホ
スト・コンピュータへ返送する機能を有する。
<Prior art> When a host link unit of a programmable controller receives a data request command or a data setting command from a host computer, it interprets the received command, accesses the data area of the programmable controller, and performs the setting. Write data or read requested data. It also has a function of sending processing results and data back to the host computer.

この場合、ホスト・コンピュータでは、プログラマブル
・コントローラのデータをモニタしたり設定したりする
のに、その都度、上位リンクユニットにコマンドを送信
し、受信したレスポンスを解釈して、データ処理や表示
処理を行うことになる。
In this case, each time the host computer monitors or sets programmable controller data, it sends a command to the upper link unit, interprets the received response, and performs data processing and display processing. I will do it.

〈発明が解決しようとする課題〉 しかし、経済性等の事情から、ホスト・コンピュータと
上位リンクユニットとの間の伝送ラインは、速度の遅い
ラインが使われていることが多く、データ伝送は、シリ
アル伝送で行われる場合が多い。
<Problems to be Solved by the Invention> However, due to economic reasons and other reasons, slow transmission lines are often used between the host computer and the upper link unit, and data transmission is This is often done by serial transmission.

そのために、ホスト骨コンピュータでのデータ伝送処理
タイミングがプログラマブル・コントローラの制御動作
より遅れ、ホスト・コンピュータでのスキャンタイムが
長くなり、プログラマブル・コントローラにおけるデー
タの変化タイミングを捕らえることができなくなること
がある。したがって、ホスト・コンピュータでのサンプ
ル番データにデータ欠落が生じる。
As a result, the data transmission processing timing in the host bone computer lags behind the control operation of the programmable controller, and the scan time in the host computer increases, making it impossible to capture the timing of data changes in the programmable controller. . Therefore, data loss occurs in the sample number data in the host computer.

このことは、ホスト拳コンピュータで作成したシーケン
ス・プログラムを、上位リンクユニットを通してプログ
ラマブル・コントローラにダウンロードして実際に動作
させながらホスト・コンピュータ上で動作チエツクする
デバッグの際に、ホスト中コンピュータとプログラマブ
ル・コントローラとの動作タイミングが合わなくなると
いう不都合を生じさせる。
This means that during debugging, in which a sequence program created on the host computer is downloaded to the programmable controller through the host link unit and checked on the host computer while actually running it, the sequence program created on the host computer and the programmable controller are This causes the inconvenience that the operation timing with the controller does not match.

そこで本発明は、上記の問題点に鑑みてなされたもので
あり、その目的とするところは、プログラマブル・コン
トローラがデータエリアへアクセスするごとに、上位リ
ンクユニットが設定したプログラマブル・コントローラ
の動作モード情報を確認することにより、ホスト拳コン
ピュータとプログラマブル・コントローラとの動作タイ
ミングのずれをなくすための制御を上位リンクユニット
に行わせることにある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to collect the operating mode information of the programmable controller set by the host link unit every time the programmable controller accesses the data area. By confirming this, the upper link unit can perform control to eliminate the difference in operation timing between the host computer and the programmable controller.

く課題を解決するための手段〉 上記の目的を達成するための本発明のプログラマブル・
コントローラの上位リンクユニットは、ホスト・コンピ
ュータから受信した特定のコマンドに従って当該上位リ
ンクユニットをリモート動作モードに設定するモード設
定手段と、リモート動作モードに設定されていることを
条件として、制御周期ごとに、プログラマブル・コント
ローラ内のメモリエリアへのアクセス回数を計数し、所
定の設定回数と比較する比較手段と、アクセス回数が所
定の設定回数を超えた場合に、プログラマブル・コント
ローラの実行動作を停止させる停止制御手段とを具備す
るものである。
Means for Solving the Problems> The programmable programmable computer of the present invention to achieve the above objects.
The upper link unit of the controller includes a mode setting means for setting the upper link unit to a remote operation mode according to a specific command received from the host computer, and a mode setting means for setting the upper link unit to a remote operation mode in accordance with a specific command received from the host computer, and a mode setting means for setting the upper link unit to a remote operation mode in accordance with a specific command received from the host computer, and a mode setting means for setting the upper link unit to a remote operation mode. , a comparison means that counts the number of accesses to the memory area in the programmable controller and compares it with a predetermined set number of times, and a stop that stops the execution operation of the programmable controller when the number of accesses exceeds the predetermined set number of times. and control means.

く作用〉 ユーザがホスト拳コンピュータ側でシーケンス・プログ
ラムをダウンロードし、かつ、上記特定のコマンドを設
定した場合、上記構成の上位リンクユニットは、自己を
リモート動作モードに設定するとともに、ホスト争コン
ピュータから受信したデータ制御コマンドの設定内容に
従って、制御周期ごとに指定されたパターンでプログラ
マブル・コントローラの実行・停止を繰り返させる。そ
してこれにより、プログラマブル・コントローラ内のメ
モリエリアのデータをモニタしたり、同メモリエリアへ
データを設定したりする。
Effect〉 When the user downloads the sequence program on the host computer and sets the above specific command, the upper link unit with the above configuration sets itself to remote operation mode and disconnects from the host computer. According to the settings of the received data control command, the programmable controller is repeatedly executed and stopped in a specified pattern for each control cycle. This allows data in the memory area within the programmable controller to be monitored and data to be set in the memory area.

この場合、データのアクセス回数が、上記比較手段、停
止制御手段によって限定されているので、いくらデータ
量が多い時でも、途中でデータの授受を中止し、当該制
御周期でのプログラマブル・コントローラの実行を速や
かに終了させることができる。従って、ホスト・コンピ
ュータでのデータの処理動作とプログラマブルΦコント
ローラでの制御動作との動作タイミングのずれを防止す
ることができる。
In this case, the number of data accesses is limited by the comparison means and stop control means, so no matter how large the amount of data is, data transfer is stopped midway and the programmable controller is executed in the relevant control cycle. can be terminated promptly. Therefore, it is possible to prevent a timing shift between the data processing operation of the host computer and the control operation of the programmable Φ controller.

〈実施例〉 以下実施例を示す添付図面によって詳細に説明する。<Example> Embodiments will be described in detail below with reference to the accompanying drawings showing embodiments.

この実施例では、ホスト・コンピュータ上でユーザが作
成したシーケンス番プログラムを上位リンクユニットを
経由してプログラマブル拳コントローラに転送し、ホス
ト・コンピュータからの指令に沿ってプログラマブル・
コントローラ内のシステム・プログラムに沿った実行・
停止動作を繰り返しながら、プログラマブル拳コントロ
ーラ内に格納されたデータのモニタ処理や設定処理と組
み合わせて、シーケンス・プログラムの動作をデバッグ
していく例を説明する。
In this embodiment, the sequence number program created by the user on the host computer is transferred to the programmable fist controller via the upper link unit, and the programmable fist controller is programmed according to instructions from the host computer.
Execution and execution according to the system program in the controller
An example will be described in which the operation of a sequence program is debugged by repeating the stopping operation and combining it with monitoring processing and setting processing of data stored in the programmable fist controller.

第2図は、上位リンクユニット(10)が接続されたプ
ログラマブル・コントローラ(20)のシステム構成を
示すブロック図である。ホスト・コンピュータ(1)と
上位リンクユニット(lO)とは通信伝送ライン(15
)を通して接続され、上位リンクユニット(10)とプ
ログラマブル・コントローラ(20)とは各々コネクタ
(17)、 (35)とを介してパスラインにて繋がっ
ている。
FIG. 2 is a block diagram showing the system configuration of the programmable controller (20) to which the upper link unit (10) is connected. A communication transmission line (15) connects the host computer (1) and the upper link unit (1O).
), and the upper link unit (10) and programmable controller (20) are connected via path lines via connectors (17) and (35), respectively.

上位リンクユニット(lO)はよく知られているように
、CP U (12)、システム・プログラムエリア(
11)、ワークエリア(14)、通信コントローラ(1
3)等から構成され、図示のごとくシステム・バス(1
B)を介して互いに繋がっている。CP U (12)
は、マイクロプロセッサを主体として構成され、システ
ム・プログラムエリア(11)に格納されたシステムプ
ログラムに従って動作する。ワークエリア(14)は、
CP U (12)で行われる各種演算の途中結果等の
記憶に用いられる。通信コントローラ(13)はホスト
・コンピュータ(1)との間で送受信動作を行う。
As is well known, the upper link unit (IO) includes the CPU (12), system program area (
11), work area (14), communication controller (1
3), etc., and the system bus (1) as shown in the figure.
They are connected to each other through B). CPU (12)
is mainly composed of a microprocessor and operates according to a system program stored in a system program area (11). The work area (14) is
It is used to store intermediate results of various calculations performed by the CPU (12). A communication controller (13) performs transmission and reception operations with the host computer (1).

上記の上位リンクユニット(10)の動作概要を説明す
ると、ホスト・コンピュータ(1)からのコマンドを通
信コントローラ(13)を通して受信した場合、CP 
U (12)はワークエリア(14)を使ってシステム
・プログラムエリア(11)のシステムプログラムに沿
って当該コマンドを解釈し、後述するプログラマブル・
コントローラ(20)のアクセス制御回路(24)に共
有データエリア(22)のアクセス要求信号を出力し、
プログラマブル拳コントローラ(20)からアクセス許
可信号(以下、アクセス要求信号、アクセス制御信号を
まとめて「アクセス制御信号」という)が入力されるの
を待つ。そして、アクセス許可信号が入力された場合、
これと同期して共有データエリア(22)にアクセスし
てホストφコンピュータ(1)から要求されたデータを
読み込み、あるいは、共有データエリア(22)内のデ
ータ設定値の変更を行った後、プログラマブル祷コント
ローラ(20)にアクセス終了信号を出力し、一連の動
作を終了する。その後、ホスト・コンピュータ(1)か
ら次のコマンドを受信するのを待つ。
To give an overview of the operation of the above-mentioned upper link unit (10), when a command is received from the host computer (1) through the communication controller (13), the CP
U (12) uses the work area (14) to interpret the command according to the system program in the system program area (11), and executes the programmable program described below.
outputting an access request signal for the shared data area (22) to the access control circuit (24) of the controller (20);
It waits for an access permission signal (hereinafter, the access request signal and the access control signal are collectively referred to as the "access control signal") to be input from the programmable fist controller (20). And if the access permission signal is input,
At the same time, after accessing the shared data area (22) and reading the data requested by the host φ computer (1), or changing the data setting values in the shared data area (22), the programmable An access end signal is output to the prayer controller (20), and the series of operations ends. Thereafter, it waits to receive the next command from the host computer (1).

一方、プログラマブル拳コントローラ(20)は、共有
データエリア(22)、システムバス(29)を通して
内部接続されるC P U (25)、システム・プロ
グラムエリア(2B)、ユーザ・プログラムエリア(2
7)、およびワークエリア(28)を備えるほか、シス
テムバス(30)を通して共有データエリア(22)と
上位リンクユニット(10)との接続を果たす周辺ユニ
ット側バッファ(21)、共有データエリア(22)と
プログラマブル俸コントローラ(20)の内部機器との
接続を果たすPCユニット側バッファ(23)、ならび
に上位リンクユニット(lO)のCP U (12>お
よびプログラマブル・コントローラ(20)のCP U
 (25)との間でアクセス制御信号をやり取するとと
もに、周辺ユニット側バッファ(21)、P Cユニッ
ト側バッファ(23)へ接続オンオフ信号を伝えるアク
セス制御回路(24)を備えている。
On the other hand, the programmable fist controller (20) includes a shared data area (22), a CPU (25), a system program area (2B), and a user program area (2B) that are internally connected through a system bus (29).
7) and a work area (28), a peripheral unit side buffer (21) that connects the shared data area (22) and the upper link unit (10) through the system bus (30), and a shared data area (22). ) and the internal equipment of the programmable controller (20), as well as the CPU of the upper link unit (IO) and the CPU of the programmable controller (20).
(25) and an access control circuit (24) that transmits connection on/off signals to the peripheral unit side buffer (21) and the PC unit side buffer (23).

CP U (25)は、システム・プログラムエリア(
26)に格納されたシステムプログラムに沿って、入出
力装置(図示せず)を利用した入出力処理、ユーザープ
ログラムエリア(27)に格納されたユーザ・プログラ
ムの解釈と実行、上位リンク・サービスの処理をこの順
にサイクリックに行っている。
The CPU (25) has a system program area (
26), input/output processing using an input/output device (not shown), interpretation and execution of user programs stored in the user program area (27), and execution of upper link services. The processing is performed cyclically in this order.

ワークエリア(2B)はCP U (25)の演算途中
結果を一時記憶する等のために利用される。また、共有
データエリア(22)は、プログラマブル・コントロー
ラ(20)自身が利用するか、または上位リンクユニッ
ト(lO)を通してホスト・コンピュータ(1)が利用
するものであり、いずれが利用するかは、アクセス制御
回路(24)が周辺ユニット側バッファ(21)、マタ
はPCユニット側バッファ(23)にオンオフ信号を伝
えることにより決まる。また、アクセス制御回路(24
)は、プログラマブルΦコントローラ(20)内のCP
 U (25)からのアクセス要求信号に基づいて、C
PU(25)へアクセス許可信号を出力し、上位リンク
ユニット(lO)内のCP U (12)からのアクセ
ス要求信号に基づいて、CP!J(12)に対してアク
セス許可信号を与える。
The work area (2B) is used for temporarily storing intermediate calculation results of the CPU (25). In addition, the shared data area (22) is used by the programmable controller (20) itself or by the host computer (1) through the upper link unit (IO), and which one uses it depends on The access control circuit (24) is determined by transmitting on/off signals to the peripheral unit side buffer (21) and the master to the PC unit side buffer (23). In addition, the access control circuit (24
) is the CP in the programmable Φ controller (20)
Based on the access request signal from U (25), C
An access permission signal is output to the PU (25), and the CP! An access permission signal is given to J(12).

次に、第1図と第3図のフローチャートを使って本実施
例の処理手順を詳細に説明する。
Next, the processing procedure of this embodiment will be explained in detail using the flowcharts of FIGS. 1 and 3.

まず第3図を参照して、プログラマブル・コントローラ
(20)は、電源ONの後、プログラマブル・コントロ
ーラ(20)のハードウェア環境の初期化を行い(ステ
ップ■)、周辺ユニットの接続状態を確認する(ステッ
プ■)。そして、上位リンクユニット(10)が接続さ
れているか否かをチエツクしくステップ■)、接続され
ていない状態であればステップ■にジャンプする。接続
されている状態であれば、上位リンクユニット(lO)
から共有データエリア(22)へのアクセス要求信号が
出されているか否かをチエツクする(ステップ■)。ア
クセス要求がなければ、ステップ■ヘジャンプし、アク
セス要求があれば、上位リンクユニット(IQ)にアク
セス許可信号を与えて(ステップ■)、上位リンクユニ
ット(lO)からアクセス終了信号が出力されるのを待
つ(ステップ■)。共有データエリア(22)が上位リ
ンクユニット(lO)から解放されると、プログラマブ
ル−コントローラ(20)の動作モード指定が実行モー
ドか停止モードかをチエツクする(ステップ■)。実行
モードであれば、ユーザの作成したユーザ書プログラム
を実行しくステップ■)、停止モードであれば、ステッ
プ■にジャンプしてシステム処理を行う。プログラマブ
ル・コントローラ(20)は、以上ステップ■〜■の一
連の動作を繰り返して行う。
First, referring to FIG. 3, after turning on the power, the programmable controller (20) initializes the hardware environment of the programmable controller (20) (step ■) and checks the connection status of peripheral units. (Step ■). Then, it is checked whether the upper link unit (10) is connected or not (step (2)), and if it is not connected, the process jumps to step (2). If it is connected, the upper link unit (lO)
It is checked whether an access request signal to the shared data area (22) has been issued from the shared data area (22) (step 2). If there is no access request, the process jumps to step 2. If there is an access request, an access permission signal is given to the upper link unit (IQ) (step 2), and an access end signal is output from the upper link unit (IO). Wait for (step ■). When the shared data area (22) is released from the upper link unit (lO), it is checked whether the operation mode designation of the programmable controller (20) is run mode or stop mode (step 2). If it is in the execution mode, the program executed by the user is executed (step (2)), and if it is in the stop mode, it jumps to step (2) and performs system processing. The programmable controller (20) repeatedly performs the series of operations of steps (1) to (2) above.

上位リンクユニット(10)は、プログラマブル・コン
トローラ(20)に接続されると第1図のごとく動作す
る。通常、電源はプログラマブル・コントローラ(20
)から供給されるので、上位リンクユニット(lO)が
プログラマブル・コントローラ(2o)に接続された時
に、上位リンクユニット(10)のリセットがかかり、
上位リンクユニット(10)はまず、初期化処理を行う
(ステップ[相])。その後、システム処理を行って動
作環境を整えた後(ステップ■)、ホスト・コンピュー
タ(1)からのコマンドを待つ(ステップ@)。ホスト
・コンピュータ(1)からコマンドを受は取ると、その
内容を解釈しくステップ■)エラーチエツクをする(ス
テップ■)。
The upper link unit (10) operates as shown in FIG. 1 when connected to the programmable controller (20). Usually, the power supply is a programmable controller (20
), so when the upper link unit (lO) is connected to the programmable controller (2o), the upper link unit (10) is reset.
The upper link unit (10) first performs initialization processing (step [phase]). Thereafter, after performing system processing to prepare the operating environment (step ■), it waits for a command from the host computer (1) (step @). When a command is received from the host computer (1), the contents are interpreted and an error check is performed (step ■).

エラーがあれば、ステップ0にジャンプしてホスト・コ
ンピュータ(1)にレスポンスを帰す。エラーがなけれ
ばリモート動作要求コマンドが否かをチエツクする(ス
テップ■)。リモート動作要求コマンドでない通常のコ
マンドの場合は、ステップ■からステップ■ヘジャンプ
する。リモート動作モード要求コマンドであれば、上位
リンクユニツ) (10)はリモート動作モードに設定
され(ステップ@)、プログラマブル・コントローラ(
2o)に実行モードフラグをセットする(ステップ■)
。そして、アクセス許可信号入力カウンタの値Cを0に
、値Co  (後述)を設定値に設定する(ステップ@
)。その後、共有メモリエリアのアクセス要求信号をプ
ログラマブル・コントローラ(20)1.:伝え(ステ
ップ■)、プログラマブル・コントローラ(20)から
アクセス許可信号が返されるのを待つ(ステップ[相]
)。
If there is an error, jump to step 0 and return a response to the host computer (1). If there is no error, it is checked whether there is a remote operation request command (step ■). If it is a normal command that is not a remote action request command, jump from step ① to step ②. If it is a remote operation mode request command, the upper link unit (10) is set to remote operation mode (step @), and the programmable controller (
2o) Set the execution mode flag (step ■)
. Then, the value C of the access permission signal input counter is set to 0, and the value Co (described later) is set to the set value (step @
). Thereafter, the shared memory area access request signal is sent to the programmable controller (20)1. : Notify (step ■) and wait for an access permission signal to be returned from the programmable controller (20) (step [phase]
).

アクセス許可信号を受は取ると、上位リンクユニット(
lO)は共有データエリア(22)へアクセス行う。ま
ず、上位リンクユニット(10)がリモート動作モード
であるか否かチエツクしくステップ■)、リモート動作
モードでない通常モードであれば、通常のコマンド処理
(データのポーリング設定等)を行い(ステップ[相]
)。ステップ[相]に進む。リモート動作モードであれ
ば、まず、プログラマブルΦコントローラ(20)の実
行モード・フラグをオンしてプログラマブルψコントロ
ーラ(2o)を実行させる(ステップ@)とともに、ア
クセス許可信号入力カウンタのlICが設定値Coに達
したがどうかを調べる(ステップ■)。設定値Coは、
ユーザが予め設定した自然数である。設定値Coに達し
ていなければ、アクセス許可信号入力カウンタの値Cを
1だけインクリメントする(ステップ■)。そして、ス
テップ[相]に戻り、再度プログラマブル・コントロー
ラ(20)からアクセス許可信号が出るのを待つ。この
ようにしてアクセス許可信号が入力されるたびに、入力
回数を計数しくステップ■)、設定値Coと比較する(
ステップ■)。その結果、設定値Coと一致すれば、プ
ログラマブル壷コントローラ(20)に停止モードフラ
グをオンして、プログラマブル壷コントローラ(20)
の実行を停止させ(ステップo)、プログラマブル・コ
ントローラ(20)へのアクセス要求状態を解除しくス
テップ0)、リモート動作モードを終了する。
When the access permission signal is received, the upper link unit (
IO) accesses the shared data area (22). First, check whether the host link unit (10) is in remote operation mode (step ■). If it is not in remote operation mode but in normal mode, perform normal command processing (data polling settings, etc.) (step ]
). Proceed to step [phase]. In the remote operation mode, first, the execution mode flag of the programmable Φ controller (20) is turned on to execute the programmable ψ controller (2o) (step @), and the access permission signal input counter IC changes to the set value Co. Check whether it has been reached (step ■). The set value Co is
This is a natural number preset by the user. If the set value Co has not been reached, the value C of the access permission signal input counter is incremented by 1 (step ■). Then, the process returns to step [phase] and waits for the access permission signal to be issued from the programmable controller (20) again. Each time an access permission signal is input in this way, the number of inputs is counted (step ■) and compared with the set value Co (
Step ■). If the result matches the set value Co, the stop mode flag is turned on in the programmable pot controller (20), and the programmable pot controller (20)
(step o), release the access request state to the programmable controller (20) (step 0), and end the remote operation mode.

プログラマブル拳コントローラ(20)へのアクセスが
終了すると、CPU(12)はホスト・コンピュータ(
1)へのレスポンス・パケットを作成し、送信する(ス
テップ0)。以上のステップ■〜ステップ0の一連の動
作は、上位リンクユニット(lO)において繰り返され
る。
When access to the programmable fist controller (20) is completed, the CPU (12) returns to the host computer (
1) and sends it (step 0). The above series of operations from step (1) to step 0 are repeated in the upper link unit (10).

以上のことをまとめると、プログラマブル・コントロー
ラ(20)が停止状態であった場合、プログラマブル・
コントローラ(20)の実行は、第3図のステップ■、
■、■、■の一連の動作を繰り返す。
To summarize the above, when the programmable controller (20) is in a stopped state, the programmable controller (20)
The execution of the controller (20) is as shown in step 3 of FIG.
Repeat the series of ■, ■, ■.

ここで、ユーザがホスト参コンピュータ(1)からシー
ケンスプログラムをダウンロードした場合、転送の最中
もプログラマブル・コントローラ(20)の動作手順は
変化せず、停止状態のまま、ステ・ツブ■、■、■、■
を繰り返す。しかし上位リンクユニット(lO)とプロ
グラマブル・コントローラ(20)との間をシーケンス
・プログラムが伝送された場合には、プログラマブル壷
コントローラ(20)は、ステップ■、■、■、■、■
、■を繰り返すことになる。
Here, when the user downloads the sequence program from the host computer (1), the operating procedure of the programmable controller (20) does not change even during the transfer, and the steps ■, ■, ■、■
repeat. However, when a sequence program is transmitted between the upper link unit (lO) and the programmable controller (20), the programmable urn controller (20) performs the steps ■, ■, ■, ■, ■
, ■ will be repeated.

ここで、上位リンクユニット(lO)がリモート動作モ
ードになると、プログラマブル・コントローラ(20)
が実行モードとなり、ユーザがプログラマブル・コント
ローラ(20)に転送したユーザプログラムに従ってシ
ーケンス動作をする。このとき、プログラマブル壷コン
トローラ(20)の動作手順は、ステップ■、■、■、
■、■、■、■のサイクリック動作となる。つまり、1
制御周期分のシーケンス動作をするたびに、上位リンク
ユニ・ソト(lO)に共有データ争エリアのアクセス権
を渡し、プログラマブル・コントローラ(20)を実行
モードにするか否かを確かめながら動作している。
Here, when the upper link unit (lO) enters the remote operation mode, the programmable controller (20)
enters the execution mode and performs sequence operations according to the user program transferred to the programmable controller (20) by the user. At this time, the operation procedure of the programmable pot controller (20) is as follows:
The cyclic operation is ■, ■, ■, ■. In other words, 1
Every time a sequence operation for the control period is performed, the access right to the shared data area is passed to the upper link UniSoto (IO), and the programmable controller (20) is operated while checking whether or not it is set to execution mode. There is.

一方、シーケンス・プログラムをホスト・コンピュータ
(1)からプログラマブル・コントローラ(20)にダ
ウン・ロードする際は、上位リンクユニット(10)は
、ステップ■、■あるいはステ・ツブ■。
On the other hand, when downloading a sequence program from the host computer (1) to the programmable controller (20), the upper link unit (10) performs steps ■, ■, or step ■.

@、■、■、■、■、■、■、[相]、0の処理を繰り
返す。後者は、上位リンクユニット(lO)がホスト・
コンピュータ(1)からダウンロードのコマンドを受信
した場合(ステップ■)に通る手順である。
Repeat the processing of @, ■, ■, ■, ■, ■, ■, [phase], 0. In the latter case, the upper link unit (lO)
This is the procedure to be followed when a download command is received from the computer (1) (step ①).

シーケンス・プログラムのダウンロード後、リモート動
作モードにすると、上位リンクユニ・ソト(lO)はス
テップ■、■、■、[有]、■、■、■、@。
After downloading the sequence program and entering the remote operation mode, the upper link UniSoto (lO) will perform the steps ■, ■, ■, [Yes], ■, ■, ■, @.

■、[相]、■、@を実行して、その後ステップ■がY
ESになるまでステップ[相]、■、@、■、■の手順
を繰り返す。ステップ■がYESになったとき、プログ
ラマブル壷コントローラ(20)を停止モードに設定し
、プログラマブル・コントローラ(20)の実行を止め
る。
Execute ■, [phase], ■, @, and then step ■ is Y
Repeat steps [phase], ■, @, ■, ■ until ES is reached. When step (2) becomes YES, set the programmable urn controller (20) to stop mode and stop the execution of the programmable controller (20).

以上のようにして、ステップ■がYESになったとき、
強制的にプログラマブル・コントローラ(20)の実行
を止め、次のコマンド待つこととしたので、ホスト・コ
ンピュータ(1)の動作タイミングに合わせてプログラ
マブル・コントローラ(20)を動作させることが確実
にできる。そして、ホスト・コンピュータ(1)側では
、上記の手順で得られたデータを参照し、場合によって
は設定値を変更して、再度リモート動作モードにして、
プログラマブル・コントローラ(20)を動作させれば
、効率的にデータを取得することができるようになる。
As described above, when step ■ becomes YES,
Since the execution of the programmable controller (20) is forcibly stopped and the execution of the programmable controller (20) is waited for the next command, it is possible to reliably operate the programmable controller (20) in accordance with the operation timing of the host computer (1). Then, on the host computer (1) side, refer to the data obtained in the above procedure, change the setting values as the case may be, and set the remote operation mode again.
By operating the programmable controller (20), data can be efficiently acquired.

この結果、プログラマブル・コントローラの入出力装置
に接続された1つ1つの端末機器(例えばリミットスイ
ッチやリレー接点)の動作タイミングや入出力の因果関
係が見易くなり、例えばデバッグ時におけるシーケンス
・プログラムの修正が非常に簡単となる。
As a result, it becomes easier to see the operation timing of each terminal device (e.g. limit switch or relay contact) connected to the input/output device of the programmable controller and the cause-and-effect relationship between input and output, making it possible to modify sequence programs during debugging, for example. becomes very easy.

〈発明の効果〉 以上のように、−本発明のプログラマブル・コントロー
ラの上位リンクユニットによれば、プログラマブル・コ
ントローラの動作をホスト・コンピュータからの1制御
周期ごとに実行させ、ユーザの希望する回数だけデータ
を取得し、その結果を見ることができるようになる。こ
のため、ホスト・コンピュータでのデータの処理動作と
プログラマブルφコントローラでの制御動作との動作タ
イミングのずれを確実に防止することができるという特
有の効果が得られる。
<Effects of the Invention> As described above, - According to the upper link unit of the programmable controller of the present invention, the operation of the programmable controller can be executed every control cycle from the host computer, and can be executed as many times as desired by the user. You will be able to retrieve data and view the results. Therefore, a unique effect can be obtained in that it is possible to reliably prevent a lag in the operation timing between the data processing operation in the host computer and the control operation in the programmable φ controller.

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

第1図は上位リンクユニットにおける処理手順を説明す
るフローチャート、 第2図は上位リンクユニットが接続されたプログラマブ
ル・コントローラのシステム構成を示すブロック図、 第3図はプログラマブル・コントローラにおける処理手
順を説明するフローチャートである。 (10)・・・上位リンクユニット、(12)・・・C
PU。 (20)・・・プログラマブル・コントローラ、(22
)・・・共有データエリア
Fig. 1 is a flowchart explaining the processing procedure in the upper link unit, Fig. 2 is a block diagram showing the system configuration of the programmable controller to which the upper link unit is connected, and Fig. 3 explains the processing procedure in the programmable controller. It is a flowchart. (10)...Upper link unit, (12)...C
P.U. (20)...Programmable controller, (22
)...shared data area

Claims (1)

【特許請求の範囲】 1、ホスト・コンピュータ側のシーケンス ・プログラムに従って、シーケンス・プ ログラムの制御周期ごとに、実行・停止 を繰り返しながら、ホスト・コンピュー タとの間でデータを授受するプログラマ ブル・コントローラに接続される上位リ ンクユニットであって、 ホスト・コンピュータから受信した特 定のコマンドに従って当該上位リンクユ ニットをリモート動作モードに設定する モード設定手段と、リモート動作モード に設定されていることを条件として、制 御周期ごとに、プログラマブル・コント ローラ内のメモリエリアへのアクセス回 数を計数し、基準回数と比較する比較手 段と、アクセス回数が基準回数を超えた 場合に、プログラマブル・コントローラ の実行動作を停止させる停止制御手段と を具備することを特徴とするプログラマ ブル・コントローラの上位リンクユニッ ト。[Claims] 1. Sequence on the host computer side ・Sequence program according to the program Executes/stops each program control cycle Repeat this until the host computer A programmer who sends and receives data to and from a computer. The upper link connected to the a link unit, Specifies the characteristics received from the host computer. according to the specified command. Setting the knit to remote operation mode Mode setting means and remote operation mode is set to Programmable control for each control cycle. Access times to the memory area in the roller A comparison method that counts the number and compares it with the standard number of times. The number of accesses exceeded the standard number of times. If the programmable controller stop control means for stopping the execution operation of the A programmer characterized by comprising: upper link unit of the to.
JP32431588A 1988-12-21 1988-12-21 High-order link unit for programmable controller Pending JPH02168302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32431588A JPH02168302A (en) 1988-12-21 1988-12-21 High-order link unit for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32431588A JPH02168302A (en) 1988-12-21 1988-12-21 High-order link unit for programmable controller

Publications (1)

Publication Number Publication Date
JPH02168302A true JPH02168302A (en) 1990-06-28

Family

ID=18164422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32431588A Pending JPH02168302A (en) 1988-12-21 1988-12-21 High-order link unit for programmable controller

Country Status (1)

Country Link
JP (1) JPH02168302A (en)

Similar Documents

Publication Publication Date Title
CA1263759A (en) Arrangement for on-line diagnostic testing of an off- line standby processor in a duplicated processor configuration
CA2170582C (en) Control system for automated security and control systems
US6901299B1 (en) Man machine interface for power management control systems
US5764155A (en) Dynamic data exchange server
US5862391A (en) Power management control system
US8131827B2 (en) PLC with web-accessible program development software
US5768148A (en) Man machine interface for power management control systems
US4918589A (en) Method and apparatus for linking processors in a hierarchical control system
CN110663006B (en) Method for performing failover of programmable logic controller and controlling physical system
WO2000041377A1 (en) Input/output (i/o) scanner for a control system with peer determination
CN111899501B (en) A remote control method for switch in substation of distribution network automation master station
CN108804109B (en) Industrial deployment and control method based on redundant arbitration of multiple functionally equivalent modules
CN114546446A (en) Control system upgrading method, device, equipment and storage medium
CN115328720A (en) SoC (System on chip) verification method, device, equipment and storage medium
CN114356831A (en) Serial port communication method, device, equipment and computer readable storage medium
Kastner et al. Remote control of EIB systems based on virtual shared group objects
JPS63177231A (en) Debug system for parallel program
JPH03282903A (en) Task control method in communication system for programmable controller
JP2530040Y2 (en) Full-duplex communication method by serial communication
JPS62190544A (en) Higher link unit for programmable controller
CN119603644A (en) An AT command interaction algorithm based on timeout mechanism and circular queue
JPS63143603A (en) Programmable controller
JPH01306933A (en) Debugging device
JPH04296904A (en) Programmable controller
JPS62177640A (en) Program debugging device