JPH0784914A - Link unit - Google Patents

Link unit

Info

Publication number
JPH0784914A
JPH0784914A JP5228902A JP22890293A JPH0784914A JP H0784914 A JPH0784914 A JP H0784914A JP 5228902 A JP5228902 A JP 5228902A JP 22890293 A JP22890293 A JP 22890293A JP H0784914 A JPH0784914 A JP H0784914A
Authority
JP
Japan
Prior art keywords
link
data
display
address
area
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.)
Withdrawn
Application number
JP5228902A
Other languages
Japanese (ja)
Inventor
Shinya Fujii
慎也 藤井
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP5228902A priority Critical patent/JPH0784914A/en
Publication of JPH0784914A publication Critical patent/JPH0784914A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To provide a link unit which can confirm a link area and link data by itself and facilitates debugging, etc. CONSTITUTION:When a switch SW1 is OFF and the status of a port A is 'H', a CPU 5 reads out the head address and the tail address of the link area stored in a memory 2 and displays them on a display unit 3. When the switch SW1 is turned ON and the status of the port A becomes 'L', the CPU 5 determines the address of the link data with the count value of an up/down counter 4, reads the link data out of the address of the memory 2, and displays the link data and corresponding link address on the display unit 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、リンクユニットに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a link unit.

【0002】[0002]

【従来の技術】図6は複数のプログラマブルコントロー
ラ1で構築したネットワークを示しており、このネット
ワークは、プログラマブルコントローラ1のCPUユニ
ット10のマザーボードにI/Oユニット10とともに
組み込まれたリンクユニット11のリンク機能により各
プログラマブルコントローラ1間で通信によりデータの
授受を行うことができるようになっている。
2. Description of the Related Art FIG. 6 shows a network constructed by a plurality of programmable controllers 1. This network is a link of a link unit 11 incorporated in a motherboard of a CPU unit 10 of the programmable controller 1 together with an I / O unit 10. With the function, data can be exchanged between the programmable controllers 1 by communication.

【0003】ところでネットワークを構築する各プログ
ラマブルコントローラ1においてリンクエリア(送信領
域)とリンクデータとを確認したい場合には当該プログ
ラマブルコントローラ1に、プログラミングや各種操作
が行えるプログラマのようなツールを接続し、該ツール
に備えてある操作スイッチ及び表示器に当該プログラマ
ブルコントローラのリンクエリアの範囲や、リンクデー
タを表示させるようになっていた。
When it is desired to check the link area (transmission area) and the link data in each programmable controller 1 that constructs a network, a tool such as a programmer capable of programming and various operations is connected to the programmable controller 1, The range of the link area of the programmable controller and the link data have been displayed on the operation switch and the display provided for the tool.

【0004】[0004]

【発明が解決しようとする課題】しかしネットワークを
構築するプログラマブルコントローラ1の台数が増える
と、リンクに関するプログラムのデバッグが困難とな
り、上記のようにツールをを接続してリンクデータや、
リンクエリアの確認を行う場合にはその作業自体が非常
に面倒となり、デバッグを一層困難なものとしていた。
However, if the number of programmable controllers 1 constructing a network increases, it becomes difficult to debug the program related to the link.
When checking the link area, the work itself was extremely troublesome, making debugging more difficult.

【0005】本発明は上記の問題点に鑑みて為されたも
ので、その目的とするところはリンクユニット自体でリ
ンクエリア、リンクデータの確認が行え、デバッグ等が
し易いリンクユニットを提供するにある。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a link unit in which the link area and the link data can be confirmed by the link unit itself and which is easy to debug. is there.

【0006】[0006]

【課題を解決するための手段】本発明は、複数のプログ
ラマブルコントローラ間あるいはプログラマブルコント
ローラとコンピュータとの間のデータの授受をネットワ
ークを通じて行うためのリンク機能を備え、プログラマ
ブルコントローラに併設されるリンクユニットにおい
て、リンクエリアの範囲を示すデータ及び各リンクエリ
アのデータを格納するメモリと、メモリから読み出され
たリンクエリアの範囲を示すデータ及びリンクデータを
表示する表示手段と、リンクデータのアドレスを切り替
えるスイッチ手段と、メモリからのデータ読み出しと表
示手段の制御を行う制御手段とを少なくとも備えたもの
である。
The present invention provides a link unit provided with a programmable controller, which has a link function for exchanging data between a plurality of programmable controllers or between a programmable controller and a computer through a network. A memory for storing the data indicating the range of the link area and the data for each link area, a display unit for displaying the data indicating the range of the link area read from the memory and the link data, and a switch for switching the address of the link data And means for reading data from the memory and controlling the display means.

【0007】[0007]

【作用】本発明によれば、リンクユニットに設けた表示
手段でリンクエリアの範囲の表示とリンクデータの表示
とが行え、そのためプログラマのようなのツールを一々
プログラマブルコントローラに接続する必要がなくな
り、リンクに関するプログラムのデバッグがやり易い。
According to the present invention, the range of the link area and the link data can be displayed by the display means provided in the link unit, so that it is not necessary to connect a tool such as a programmer to the programmable controller one by one. It is easy to debug the program related to.

【0008】[0008]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本実施例のリンクユニット12は図1に示すよう
に接続するプログラマブルコントローラのリンクエリア
及びリンクデータを格納するメモリ2と、7セグメント
表示によるデータ表示を行う表示器3と、メモリ2の読
み出しを2つのスイッチSW1 、SW2 の操作に基づい
て行い、メモリ2から読み出したデータを表示器3で表
示させる制御処理を行うCPU5等を備えている。
Embodiments of the present invention will be described below with reference to the drawings. The link unit 12 of the present embodiment has a memory 2 for storing the link area and link data of a programmable controller connected as shown in FIG. 1, a display 3 for displaying data by 7-segment display, and a memory 2 for reading. It is provided with a CPU 5 and the like that performs control processing that is performed based on the operation of two switches SW 1 and SW 2 and that causes the display device 3 to display the data read from the memory 2.

【0009】表示器3は図2に示すようにリンクユニッ
ト12の前面の片側中央に設けられたもので、上下二つ
の表示スペース3a,3bを持ち、これら表示スペース
3a,3bによりリンクエリアの範囲又はリンクデータ
を切り替え表示することができるようになっている。上
記スイッチSW1 、SW2 は表示器3の下方のリンクユ
ニット12の前面には並設されており、一方のスイッチ
SW1 は表示器3に表示させるデータが、リンクデータ
なのか、或いはリンクエリアの範囲なのかを切り替える
スイッチであって、CPU5のポートAに接続されてい
る。また他方のスイッチSW2 は読み出して表示させる
リンクデータのアドレスを切り替えるためのスイッチで
あり、この切り替えスイッチSW2 の操作によりアップ
・ダウンカウンタ4がクロックをアップ或いはダウンカ
ウントし、そのカウント値をリンクデータのアドレスと
してCPU5に与えるようになっている。
As shown in FIG. 2, the display device 3 is provided at the center of one side of the front surface of the link unit 12, and has two upper and lower display spaces 3a and 3b, and the range of the link area is defined by these display spaces 3a and 3b. Alternatively, the link data can be switched and displayed. The switches SW 1 and SW 2 are arranged side by side on the front surface of the link unit 12 below the display unit 3, and one of the switches SW 1 is whether the data to be displayed on the display unit 3 is the link data or the link area. Is a switch for switching between the ranges of, and is connected to the port A of the CPU 5. The other switch SW 2 is a switch for switching the address of the link data to be read and displayed. By operating this changeover switch SW 2 , the up / down counter 4 counts up or down the clock, and the count value is linked. The data is given to the CPU 5 as an address.

【0010】表示器3ではリンクエリアを表示する場合
には上側の表示スペース3aにリンクエリアの先頭を、
また下側の表示スペース3bにリンクエリアの終端を夫
々表示する。またリンククデータを表示する場合には上
側の表示スペース3aは対象のリンクアドレス、また下
側の表示スペース3bに当該アドレスのリンクデータを
夫々表示する。
When displaying the link area on the display unit 3, the top of the link area is displayed in the upper display space 3a.
Also, the end of the link area is displayed in the lower display space 3b. When displaying the link data, the upper display space 3a displays the target link address, and the lower display space 3b displays the link data of the address.

【0011】尚図2においてL1 はリンク動作中を示す
LED、L2 は、送信中を示すLED、L3 は受信中を
示すLED、L4 は通信エラーを示すLEDである。而
してCPU5はスイッチSW1 がオフ状態でポートAの
ステータスが”H”であれば、メモリ2に格納されてい
るリンクエリアの範囲の先頭のアドレスとリンクエリア
の終端のアドレスとを読み出して表示器3により表示さ
せる。
In FIG. 2, L 1 is an LED indicating link operation, L 2 is an LED indicating transmission, L 3 is an LED indicating reception, and L 4 is an LED indicating a communication error. If the switch SW 1 is off and the status of the port A is “H”, the CPU 5 reads the start address of the range of the link area and the end address of the link area stored in the memory 2. It is displayed by the display device 3.

【0012】図3(a)はこの場合の表示例を示してお
り、この表示例では当該プログラマブルコントローラ1
のリンクエリアの範囲は”L0”から”L63”の範囲
であることを示している。次にスイッチSW1 がオンさ
れてポートAのステータスが”L”となれば、CPU5
はメモリ2に格納されているリンクデータを読み出す。
この場合読み出すリンクデータのアドレスをアップ・ダ
ウンカウンタ4のカウント値により決定して、そのアド
レスのリンクデータを読み出し、リンクアドレスと読み
出したリンクデータとを表示器3で表示させる。
FIG. 3A shows a display example in this case. In this display example, the programmable controller 1
Indicates that the range of the link area is from "L0" to "L63". Next, when the switch SW 1 is turned on and the status of the port A becomes “L”, the CPU 5
Reads the link data stored in the memory 2.
In this case, the address of the link data to be read is determined by the count value of the up / down counter 4, the link data of that address is read, and the link address and the read link data are displayed on the display unit 3.

【0013】図3(b)はこの場合の表示例を示してお
り、この表示例では”L0”のリンクデータが”FFF
F”であることを示す。スイッチSW2 の操作によりア
ドレスをアップダウンさせることにより、夫々のアドレ
スのリンクデータの表示に切り替えることができる。尚
上記実施例では表示器3には二つの表示スペース3a,
3bを用いて表示切り替えを行うようにしてあるが、表
示スペースを4つにして、一対の表示スペースをリンク
エリアの範囲の表示専用とし、他の一対の表示スペース
をリンクデータの表示専用とすれば、表示切り替えのた
めのスイッチSW1 が不要となる。
FIG. 3B shows a display example in this case. In this display example, the link data of "L0" is "FFF".
F ". It is possible to switch to the display of the link data of each address by operating the switch SW 2 to move the address up or down. In the above embodiment, the display 3 has two display spaces. 3a,
Although the display is switched by using 3b, it is possible to use four display spaces to dedicate one pair of display spaces to display the range of the link area and another pair of display spaces to display only the link data. If so, the switch SW 1 for switching the display becomes unnecessary.

【0014】ところでツール上でシーケンスプログラム
を作成し、プログラマブルコントローラへ転送する段階
で、当該プログラマブルコントローラが他局のリンクエ
リアを出力として使用するのを防ぐための対策は従来と
られていなかった。そのため実際にプログラマブルコン
トローラにプログラムをダウンロードして動作させた時
点でプログラムミスを確認することになりデバッグ作業
等に時間を費やし、効率的なシステム作りができなかっ
た。
By the way, at the stage of creating a sequence program on a tool and transferring it to the programmable controller, no conventional measures have been taken to prevent the programmable controller from using the link area of another station as an output. Therefore, when a program is actually downloaded to the programmable controller and the program is operated, a program error is confirmed, and time is spent for debugging work and an efficient system cannot be created.

【0015】そこで図4に示すようにツール上でシーケ
スプログラムを作成し、この後プログラム本体からのス
テータス(リンクエリアの情報等が含まれる)読み出し
を行い、リンク(送信)エリアの使用をするかしないか
を判定し、しない場合にはプログラムをプログマブルコ
ントローラ(図4ではPC本体と記載)へ転送する。リ
ンクエリアを使用する場合いはリンクエリアの照合を行
い他局のリンクエリアを使用しない場合には、プログマ
ブルコントローラへ転送するが、他局のリンクエリアを
使用する場合には、警告メッセージを出し転送不可にす
る。このようにすればリンクエリアの誤使用によるプロ
グラムの不具合を未然に防ぐことができる。
Therefore, as shown in FIG. 4, a sequence program is created on the tool, and then the status (including information about the link area) is read from the program body to use the link (transmission) area. Whether or not to do so is determined, and if not, the program is transferred to the programmable controller (described as the PC main body in FIG. 4). When using the link area or when checking the link area and not using the link area of another station, it is transferred to the programmable controller, but when using the link area of another station, a warning message is displayed. Disable transfer. By doing so, it is possible to prevent the program from being defective due to the misuse of the link area.

【0016】同様に他局のリンクエリアの誤使用による
プログラムの不具合を未然に防ぐ方法としては図5に示
す方法もある。この方法は、シーケンスプログラムをプ
ログラマブルコントローラに入力してその時点でリンク
エリアを使用するか否かの判定を行い使用しない場合に
は定常処理に移行し、使用する場合にはプログラムにお
いて予め作ってあるリンクエリア判定ルーチンにジャン
プし、リンクエリアの照合を行い、他局のリンクエリア
を使用しない場合にはシーケンスプログラムの入力を良
しと判定して定常処理へ移行する。他局のリンクエリア
を使用する場合にはシーケンスプログラムの入力を不可
とする。
Similarly, there is a method shown in FIG. 5 as a method of preventing a program defect due to the misuse of the link area of another station. This method inputs the sequence program to the programmable controller, judges whether to use the link area at that time, shifts to steady processing when not using it, and when it is used, it is made in advance in the program The routine jumps to the link area determination routine, collates the link areas, and when the link areas of other stations are not used, determines that the sequence program input is good and shifts to regular processing. When using the link area of another station, the sequence program cannot be input.

【0017】このように図5のフローチャートで示す方
法ではリンクエリアとの照合等の処理をプログラマブル
コントローラ自体で行って、入力されたシーケンスプロ
グラムを実際に使用するために最終的に取り込むか、取
り込まないかを判定するのである。
As described above, in the method shown in the flowchart of FIG. 5, the programmable controller itself performs processing such as collation with the link area, and the input sequence program is finally fetched or not fetched for actual use. It is decided.

【0018】[0018]

【発明の効果】本発明は、複数のプログラマブルコント
ローラ間あるいはプログラマブルコントローラとコンピ
ュータとの間のデータの授受をネットワークを通じて行
うためのリンク機能を備え、プログラマブルコントロー
ラに併設されるリンクユニットにおいて、リンクエリア
の範囲を示すデータ及び各リンクエリアのデータを格納
するメモリと、メモリから読み出されたリンクエリアの
範囲を示すデータ及びリンクデータを表示する表示手段
と、リンクデータのアドレスを切り替えるスイッチ手段
と、メモリからのデータ読み出しと表示手段の制御を行
う制御手段とを少なくとも備えてあるから、リンクユニ
ットに設けた表示手段でリンクエリアの範囲の表示とリ
ンクデータの表示とが行え、そのためプログラマ等のツ
ールを一々プログラマブルコントローラに接続する必要
がなくなり、リンクに関するプログラムのデバッグがや
り易いという効果がある。
The present invention has a link function for exchanging data between a plurality of programmable controllers or between a programmable controller and a computer through a network. A memory for storing the data indicating the range and the data of each link area, a display unit for displaying the data indicating the range of the link area read from the memory and the link data, a switch unit for switching the address of the link data, and a memory Since at least the control means for reading data from and controlling the display means is provided, the display area provided in the link unit can display the range of the link area and the link data, and therefore a tool such as a programmer can be used. One by one There is no need to be connected between Bull controller, there is an effect that it is easy to do debugging of programs for the link.

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

【図1】本発明の実施例1の概略回路構成図である。FIG. 1 is a schematic circuit configuration diagram of a first embodiment of the present invention.

【図2】同上のリンクユニットの正面図である。FIG. 2 is a front view of the above link unit.

【図3】同上の表示器の表示例図である。FIG. 3 is a diagram showing a display example of the display device of the above.

【図4】リンクエリア誤使用防止方法のフローチャート
である。
FIG. 4 is a flowchart of a link area misuse prevention method.

【図5】リンクエリア誤使用防止方法の別の例のフロー
チャートである。
FIG. 5 is a flowchart of another example of the link area misuse prevention method.

【図6】ネットワークの一例を示す概略構成図である。FIG. 6 is a schematic configuration diagram showing an example of a network.

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

2 メモリ 3 表示器 4 アップ・ダウンカウンタ 5 CPU 12 リンクユニット SW1 ,SW2 スイッチ2 Memory 3 Display 4 Up / Down counter 5 CPU 12 Link unit SW 1 , SW 2 switch

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のプログラマブルコントローラ間ある
いはプログラマブルコントローラとコンピュータとの間
のデータの授受をネットワークを通じて行うためのリン
ク機能を備え、プログラマブルコントローラに併設され
るリンクユニットにおいて、リンクエリアの範囲を示す
データ及び各リンクエリアのデータを格納するメモリ
と、メモリから読み出されたリンクエリアの範囲を示す
データ及びリンクデータを表示する表示手段と、リンク
データのアドレスを切り替えるスイッチ手段と、メモリ
からのデータ読み出しと表示手段の制御を行う制御手段
とを少なくとも備えたことを特徴とするリンクユニッ
ト。
1. A link unit for linking data between a plurality of programmable controllers or between a programmable controller and a computer through a network, and a data indicating a range of a link area in a link unit attached to the programmable controller. And a memory for storing the data of each link area, a display means for displaying the data indicating the range of the link area read from the memory and the link data, a switch means for switching the address of the link data, and a data reading from the memory. And a control unit for controlling the display unit.
JP5228902A 1993-09-14 1993-09-14 Link unit Withdrawn JPH0784914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5228902A JPH0784914A (en) 1993-09-14 1993-09-14 Link unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5228902A JPH0784914A (en) 1993-09-14 1993-09-14 Link unit

Publications (1)

Publication Number Publication Date
JPH0784914A true JPH0784914A (en) 1995-03-31

Family

ID=16883654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5228902A Withdrawn JPH0784914A (en) 1993-09-14 1993-09-14 Link unit

Country Status (1)

Country Link
JP (1) JPH0784914A (en)

Similar Documents

Publication Publication Date Title
US4792918A (en) Programmable controller monitoring system for simultaneous multiple line display of original and updated data program execution
JPH1139190A (en) Debugging system of parallel processing program and its debugging method
JPH0784914A (en) Link unit
ES2270489T3 (en) PROGRAMMABLE CONTROLLER.
JPH0432905A (en) Programmer for communication network
JP2002341906A (en) Program formula display device and data communication system using the same
JPH0247769B2 (en)
JPH0769882B2 (en) Input / output control system having cross-call function and dynamic configuration change method in the system
JP2695930B2 (en) Intelligent I / O module
JPS62103738A (en) Programmable controller
JPS6334604A (en) Programmable controller
KR100275569B1 (en) Handy loader for programmable logic controller
JPH0736536A (en) Programmable controller
JPS62266604A (en) Remote programming console device
JPH04142601A (en) Programmable controller
JPH0346005A (en) Programmable controller
JPH0216603A (en) Sequence program editing system
JPS60169937A (en) Data processing system
JPH04109309A (en) Programmable controller
JPH0651814A (en) Display for sequencer
JPS58125153A (en) Monitoring operation system using stack crt monitor
JPH10105214A (en) Download system for programmable display device
JP2001067120A (en) System for displaying alarm history
JPS61256451A (en) Error informing system
JPS58105304A (en) Monitor displaying system of programmable controller

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001128