JPS61161505A - Master controller of programmable controller - Google Patents

Master controller of programmable controller

Info

Publication number
JPS61161505A
JPS61161505A JP304485A JP304485A JPS61161505A JP S61161505 A JPS61161505 A JP S61161505A JP 304485 A JP304485 A JP 304485A JP 304485 A JP304485 A JP 304485A JP S61161505 A JPS61161505 A JP S61161505A
Authority
JP
Japan
Prior art keywords
controller
data
programmable
master controller
programmable controller
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
JP304485A
Other languages
Japanese (ja)
Other versions
JPH0441365B2 (en
Inventor
Yoshihiko Okayama
喜彦 岡山
Hirotoshi Watanabe
博俊 渡辺
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.)
Shibaura Machine Co Ltd
Original Assignee
Toshiba Machine 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 Toshiba Machine Co Ltd filed Critical Toshiba Machine Co Ltd
Priority to JP304485A priority Critical patent/JPS61161505A/en
Publication of JPS61161505A publication Critical patent/JPS61161505A/en
Publication of JPH0441365B2 publication Critical patent/JPH0441365B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To control data for peripheral service generally in one place by linking input/output areas of optional programmable controllers with one communication line and providing a master controller. CONSTITUTION:Plural programmable controllers PC1-PCN are connected to a master controller MC by a data loop line 9 consisting of one optical fiber. Each controller (PC) is set to the reception mode normally, and the mode is switched to the transmission mode only when the PC is designated by the master controller MC to transmit data. The master controller MC incorporates a peripheral device or its interface or the like and performs input/output data link of each PC and peripheral service in time division. In this case, the master controller MC is linked to each PC by a periodic interruption in preference to peripheral service and processes commands requiring long time out of peripheral service commands after the end of the link processing as pending commands.

Description

【発明の詳細な説明】 (発明の技術分野) この発明は、複数のプログラマブルコントローラに対し
て1ケ所からプログラムモニタ等の周辺サービスを可能
にし、更に任意の入出カニリア間のデータリンクをも可
能にするプログラマブルコントローラのマスクコントロ
ーラに関する。
[Detailed Description of the Invention] (Technical Field of the Invention) This invention enables peripheral services such as program monitoring for multiple programmable controllers from one location, and also enables data links between arbitrary input/output controllers. The present invention relates to a mask controller for a programmable controller.

(発明の技術的背景とその問題点) プログラマブルコントローラ(シーケンス制御装置)は
コンピュータ技術の発展とあいまって、機械制御の加工
9組立、搬送等に広く利用されている、このようなMm
に対して、従来は1台のプログラマブルコントローラで
システム全体を制御するようにしたが、システムが複雑
で大きくなると共に高機能化や高速化が要求されるに至
ると、1台のプログラマブルコントローラではシステム
全体についての制御に対処出来なくなってきた。このよ
うな事情から複雑で大型のシステム等に対しては近年プ
ログラマブルコントローラを複数台設け、群管理的に分
散型の制御を行なうようにしている。このような分散型
制御システムの場合、各プログラマブルコントローラの
間でインタロックをとる必要があるので、各プログラマ
ブルコントローラを何らかの手段でデータリンクしなけ
ればならない。
(Technical background of the invention and its problems) With the development of computer technology, programmable controllers (sequence control devices) are widely used for machine-controlled machining, assembly, transportation, etc.
In the past, a single programmable controller was used to control the entire system, but as systems become more complex and larger, and higher functionality and faster speeds are required, a single programmable controller cannot control the entire system. It has become impossible to deal with controlling the whole thing. Under these circumstances, in recent years, for complex and large-scale systems, a plurality of programmable controllers have been installed to perform distributed control in a group management manner. In the case of such a distributed control system, it is necessary to establish an interlock between each programmable controller, so each programmable controller must be linked with data by some means.

第7図及び第8図はそれぞれ従来のデータリンク方式の
例を示すもので、第7図ではJi[数のプログラマブル
コントローラPCI 、PO2,P(:3・・・・・・
、PCNを相互に接続して並列リンクを行なうようにし
ている。この場合、任意のプログラマグルコントローラ
PCI〜PCNIIJlでリンクをとるために、各プロ
グラマブルコントローラPC1〜PCIはそれぞれ入出
カニリア又は内部リレー等のメモリエリア圓^1〜MA
Mを有し、メモリエリアにA1〜M^NをN公開して各
プログラマブルコントローラPct #PCHに割当て
、メモリエリア)IAI〜にANが各プログラマブルコ
ントローラにおいて常に対応するように固定的にリンク
をとっている。しかしながら、このような各プログラマ
ブルコントローラPC1〜PGMはそれぞれ同容量のメ
モリエリアを割当てると、リンク頻度の多少に拘すらず
全て同一の容量が割当てられているのでハードウェア上
不経済であり、場合によってはリンク頻度が程とないに
も拘わらず無駄なメモリエリアを用意しなければならな
いといった問題点がある。また、システムを構成するプ
ログラマブルコントローラの数が多い場合には、それに
応じて全体のメモリ容量が増加すると共に、実際には使
用しないブランクのメモリエリアも増加してしまい、実
際にシーケンスプログラムで使用していないブランクの
メモリエリアまでリンクするため、データ転送時間等で
無駄が生じる問題点がある。メモリエリアを小さくした
場合には、各プログラマブルコントローラ間のリンクが
自由にとれなくなる問題点がある。また固定エリア方式
のリンクであるため、実際に入出力したいメモリエリア
に入出力されるようにシーケンスプログラムを組む必要
があるため、プログラムに無駄が生じる問題点もある。
7 and 8 respectively show examples of conventional data link systems. In FIG. 7, Ji [number of programmable controllers PCI, PO2, P(:3...
, PCN are interconnected to form a parallel link. In this case, in order to establish a link with any programmable controller PCI-PCNIIJl, each programmable controller PC1-PCI has a memory area circle 1-MA such as an input/output canister or an internal relay.
M, publish A1 to M^N in the memory area and allocate it to each programmable controller Pct #PCH, and make a fixed link to the memory area) IAI ~ so that AN always corresponds to each programmable controller. ing. However, if each of the programmable controllers PC1 to PGM is allocated the same capacity memory area, the same capacity will be allocated to each of them regardless of the link frequency, which is uneconomical in terms of hardware, and in some cases However, there is a problem in that a useless memory area must be prepared even though the link frequency is not so high. Additionally, if there are many programmable controllers that make up the system, the overall memory capacity will increase accordingly, and the blank memory area that is not actually used will also increase. Since the link is made to a blank memory area that is not currently available, there is a problem in that data transfer time is wasted. When the memory area is made small, there is a problem that links between programmable controllers cannot be freely established. Furthermore, since it is a fixed area type link, it is necessary to create a sequence program so that input/output occurs in the memory area to which input/output is actually desired, resulting in a problem that the program is wasted.

一方、第8図の例は複数のプログラマブルコントローラ
pH:1−P(:Nを1台のマスクコントローラNOに
接続したものであり、マスクコントローラMCは各プロ
グラムメモリのリンクエリアを全て有するメモリエリア
MAを備え、メモリエリア舅^を各プログラマブルコン
トローラPc1−PCNのリンクエリアに割当てている
。このため、各プログラマブルコントローラPCI −
PCN ハマスタコントローラMCを介してリンクする
ことはできるが、プログラマブルコントローラ同士が直
接リンクできないといった問題点がある。また、マスタ
コントローラNC内のメモリエリアを介してリンクを行
なうので、リンク台数やリンク点数に制限があるといっ
た問題点もある。更に、複数台のプログラマブルコント
ローラについて1ケ所でプログラム、モニタ等の周辺サ
ービスを行なうためには、各プログラマブルコントロー
ラから1本づつ転送ケーブルを引き、チャンネルを切換
えて行なっていた。従って、従来ノプログラマブルコン
トローラのリンク方式には各プログラマブルコントロー
ラについて入出カニリアリンク用ケーブルと周辺サービ
ス用テーブルとの複数のケーブルを必要とする問題があ
った。
On the other hand, in the example shown in FIG. 8, a plurality of programmable controllers pH:1-P(:N) are connected to one mask controller NO, and the mask controller MC has a memory area MA that has all the link areas of each program memory. The memory area is allocated to the link area of each programmable controller Pc1-PCN.For this reason, each programmable controller PCI-
Although it is possible to link via the PCN Hamamaster controller MC, there is a problem in that programmable controllers cannot be linked directly to each other. Furthermore, since linking is performed via a memory area within the master controller NC, there is also a problem that there is a limit to the number of link units and link points. Furthermore, in order to perform peripheral services such as programming and monitoring at one location for a plurality of programmable controllers, one transfer cable was connected to each programmable controller and the channels were switched. Therefore, the conventional link system for programmable controllers has had the problem of requiring a plurality of cables for each programmable controller, including input/output canister link cables and peripheral service tables.

(発明の目的) この発明は、上述のような事情からなされたものであり
、1本の通信回線により任意のプログラマブルコントロ
ーラの入出カニリアをリンクすると共に、1ケ所で統轄
的に側辺サービス用データを制御することができるプロ
グラマブルコントローラのマスクコントローラを提供す
ることを目的としている。
(Purpose of the Invention) This invention was made in view of the above-mentioned circumstances, and is capable of linking the input/output canisters of any programmable controller with a single communication line, and centrally transmitting data for side services at one location. The purpose of the present invention is to provide a mask controller of a programmable controller that can control the following.

(発明の概要) この発明はプログラマブルコントローラのマスクコント
ローラに関し、複数のプログラマブルコントa−テと1
本の通@回線でループ状に接続されており、各プログラ
マブルコントローラに対して1回のアクセスでリンクで
きるように構成されたリンクテーブルに従って、プログ
ラマブルコントローラの番号とコマンドとを含む同一形
式の転送プロトコルを用いて1本の通信回線によって、
各プログラマブルコントローラと入出力データリンク及
び周辺サービスを時分割で行なう、その場合に、このマ
スタコントローラは、リンクを周辺サービスよりも優先
させて定時割込みにより各プログラマブルコントローラ
とリンクし、周辺サービスコマンドで時間がかかるもの
はリンクを遅らせるのでベンディングコマンドとし、プ
ログラマブルコントローラがこのコマンドを受信した状
態でそのプロトコルを一度終結させ、リンク処理終了後
マスタコントローラからリプライ要求コマンドをプログ
ラマブルコントローラに送出し、そのコマンドを処理さ
せる。
(Summary of the Invention) The present invention relates to a mask controller of a programmable controller, and relates to a mask controller for a programmable controller and a mask controller for a plurality of programmable controllers.
A transfer protocol of the same format containing programmable controller numbers and commands according to a link table that is connected in a loop with a book communication @ line and is configured so that each programmable controller can be linked in one access. through one communication line using
In this case, the master controller performs input/output data links and peripheral services with each programmable controller on a time-sharing basis.In this case, this master controller gives priority to linking over peripheral services, links with each programmable controller using scheduled interrupts, and performs time-sharing with peripheral service commands. is used as a bending command because it delays the link. When the programmable controller receives this command, the protocol is terminated once, and after the link processing is completed, the master controller sends a reply request command to the programmable controller and processes the command. let

(発明の実施例) mlfi4は、この発明のマスクコントローラとプログ
ラマブルコントローラとの接続を示す図である。マスク
コントローラIIGに複数のプログラマブルコントロー
ラPCI−PCNを1木の光ファイバによるデータルー
プライン9で接続している0通常は各プログラマブルコ
ントローラPC1〜PGMは全て受信モードになってお
り、マスタコントローラNOによって指定されたプログ
ラマブルコントローラがデータを送信する時だけ送信モ
ードに!/J換わる。マスクコントローラMOはプログ
ラム、カセットローダ等の周辺装置を内蔵しているかあ
るいはそのインタフェースを内蔵しており、更に汎用ホ
ストコンビエータ用インタフェースも内蔵している。第
1因において、SiOはシリアル転送コントローラを、
Rx1lは受信データを、71口は送信データをそれぞ
れ意味している。
(Embodiment of the invention) mlfi4 is a diagram showing a connection between a mask controller and a programmable controller of the invention. A plurality of programmable controllers PCI-PCN are connected to the mask controller IIG by a data loop line 9 made of one optical fiber. Normally, each programmable controller PC1 to PGM is all in reception mode, and is specified by the master controller NO. The programmed programmable controller enters transmission mode only when transmitting data! /J changes. The mask controller MO has a built-in program, peripheral devices such as a cassette loader, or an interface thereof, and also has a built-in interface for a general-purpose host combinator. In the first factor, SiO is a serial transfer controller,
Rx1l means received data, and 71 means transmitted data.

第2図はこの発明のマスタコントローラの構成を示すブ
ロック図である。マスタコントローラMCはデータ転送
用のクロック信号を発生する発振器10と各プログラマ
ブルコントローラPCとデータを転送するためのシリア
ルインタフェース】1と1周辺装M17とデータを交換
するための周辺装置インタフェース12と、ホストコン
ピュータ18と、命令、データを交換するためのホスト
コンピュータインタフェース13と、このマイクロコン
トローラを統轄的に動作させるオペレーティングシステ
ムO5を格納しているリードオンメモリROM14と、
オペレーティングシステムO5のワーク用のランダムア
クセスメモリRA1115と、 RO)114からのオ
ペレーティングシステムO8に基づいてクロック信号に
同期してシリアルインタフェース+1.周辺装置インタ
フェース12及びホストコンピュータインタフェース1
3の動作を制御するマイクロプロ上−2サユニツト1B
とから構成されている。第1図に示すように、発振!!
10のクロック信号は各プログラマブルコントローラP
C1〜PCHのシリアル転送コントローラに与えられる
FIG. 2 is a block diagram showing the configuration of the master controller of the present invention. The master controller MC includes an oscillator 10 that generates a clock signal for data transfer, a serial interface for transferring data with each programmable controller PC; and a peripheral device interface 12 for exchanging data with the peripheral M17, and a host. A host computer interface 13 for exchanging instructions and data with the computer 18, and a read-on memory ROM 14 that stores an operating system O5 that centrally operates this microcontroller.
A random access memory RA1115 for the work of the operating system O5 and a serial interface +1 . Peripheral device interface 12 and host computer interface 1
MicroPro U-2 servo unit 1B that controls the operation of 3.
It is composed of. As shown in Figure 1, oscillation! !
10 clock signals for each programmable controller P
It is given to the serial transfer controllers of C1 to PCH.

第3図は、この発明におけるマスタコントローチとプロ
グラマブルコントローラとの間のデータ転送プロトコル
の例を示す図である。マスタコントローラNCとプログ
ラマブルコントローラpCとの間のデータ転送は、全て
マスタコントローチNCが起動をかけて、指定されたプ
ログラマブルコントローラPCがコマンドに対して応答
する形式となっている。第3図はその転送プロトコルを
示すもので、マスタコントローラMCノマイクロプロセ
ッサ二二ツillは先ず転送すべきプログラマブルコン
トローラの番号をリンクテーブルからプログラム順に読
出し、そのプログラマブルコントローラの番号(PC,
NO)をトランスミッタを介して光ファイバに送る。光
ファイバに送られた番号情報はプログラマブルコントロ
ーラPCのレシーバに入力され、処理部内のCPuで解
読され、この解読によ−り指定されたプログラマブルコ
ントローラPCのCPuは、以後マスタコントローラN
Cとの間の情報授受を受付けるようにする。この状態で
、マスタコントローラにCからはアクセスするデータの
種類を表わすコマンド番号が送られ、次にデータの長さ
を指定するコマンド長が送られ、その後リンクテーブル
に格納されているコマンドデータが送られ、最後にデー
タ転送の終了であることを示すエンド情報ETX (E
nd of Text)が送られるが。
FIG. 3 is a diagram showing an example of a data transfer protocol between the master controller and the programmable controller in the present invention. All data transfer between the master controller NC and the programmable controller PC is initiated by the master controller NC, and a designated programmable controller PC responds to the command. FIG. 3 shows the transfer protocol. The microprocessor 22 of the master controller MC first reads the number of the programmable controller to be transferred from the link table in the order of the program, and then reads the number of the programmable controller (PC,
NO) to the optical fiber via the transmitter. The number information sent to the optical fiber is input to the receiver of the programmable controller PC, and is decoded by the CPU in the processing unit.The CPU of the programmable controller PC designated by this decoding is then used as the master controller N.
Accept information exchange with C. In this state, C sends a command number indicating the type of data to be accessed to the master controller, then a command length specifying the data length, and then sends the command data stored in the link table. Finally, end information ETX (E
nd of Text) is sent.

これらの情報は上記情報授受の受付が行なわれたプログ
ラマブルコントローラPCのRAMに記憶される。この
場合、データリンクに必要な他のプログラマブルコント
ローラの情報は、 RAM内の入力領域に記憶される。
These pieces of information are stored in the RAM of the programmable controller PC that accepted the above-mentioned information exchange. In this case, other programmable controller information required for the data link is stored in an input area in the RAM.

また、マスクコントローラNGからの情報転送によって
、指定された番号プログラマブルコントローラPCのR
AMから情報を転送する場合は、 cpuが先ずスイッ
チ部の接点をaからbに切換える。これによりRA)1
の情報はトランスミッタを経て光ファイバに送られるよ
うになり、ループ状の光ファイバで送られた情報はレシ
ーバを経てマスタコントローラHGのマイクロプロセッ
サユニツ)1Bに入力される。この場合、先ず情報を転
送するプログラマブルコントローラの番号(PC,No
)が送られ。
Also, by information transfer from the mask controller NG, the specified number programmable controller PC R
When transferring information from AM, the CPU first switches the contact point of the switch section from a to b. This allows RA)1
The information is sent to the optical fiber via the transmitter, and the information sent via the looped optical fiber is input to the microprocessor unit (1B) of the master controller HG via the receiver. In this case, first, the number of the programmable controller (PC, No.
) was sent.

次にコマンド長、コマンドデータが送られ、最後にエン
ド情報ETXが送られるようになっている。したがって
、マスタコントローラMCは指定したプログラマブルコ
ントローラPCから正しいデータが転送されて来たかを
確認することができる、このようなプログラマブルコン
トローラからの情報転送が終了した時、当該プログラマ
ブルコントローラのCPuはスイッチ部の接点をbから
aに切換えておく、このように、マスタコアトローラH
CはプログラマブルコントローラPCの番号(PCNo
、)とコマンドとにより、各プログラマブルコントロー
ラPCとデータをアクセスする。この同じ転送プロトコ
ルで、マスクコントローラNGは入出力リンク、プログ
ラミング。
Next, the command length and command data are sent, and finally the end information ETX is sent. Therefore, the master controller MC can check whether correct data has been transferred from the designated programmable controller PC. When the information transfer from the programmable controller is completed, the CPU of the programmable controller In this way, the master controller H switches the contact point from b to a.
C is the number of the programmable controller PC (PCNo.
, ) and commands to access each programmable controller PC and data. With this same transfer protocol, the mask controller NG provides input/output links and programming.

モニタ等全てを実行する。コマンドONOの種類は以下
の71に示すものである 表   1 第4(A)はマスタコントローラHCにプログラムされ
たデータリンクテーブルを示す図であり、第4図(B)
はこのリンクテーブルを入力端と出力側とに分けて各プ
ログラマブルコントローラPCに振分けたリンクテーブ
ルを示している・各プログラマブルコントローラPCI
 NpH:Jlはシステム全体の中の所定の被制御部を
制御するようになっており、システム全体の制御の流れ
も分かるので、このようなシステム設計に合せて各プロ
グラマブルコントローラPCI〜PCN間のデータリン
クをプログラムすることができる。この発明ではかかる
データリンクのプログラムをたとえば第4図(A)のよ
うなリンクテーブルに設計し、このテーブルをマスタコ
ントローラMeのメモリ領域に格納する。すなわち、1
つのデータ転送元としてプログラマブルコントローラの
番号及びその処理アドレスを記述し、これを複数の転送
すべきプログラマブルコントローラの番号及びその処理
アドレスをデータ転送先と記述すると共に、転送データ
の点数を処理工程順に記述する。アドレスはプログラマ
ブルコントローラ内で割当てられたアドレスであって、
内部リレーやデータレジスタ等も含む、ここに、”x”
は入力、′R″は内部リレー。
Execute everything such as monitor. The types of command ONO are shown in Table 71 below.Table 1.4(A) is a diagram showing the data link table programmed in the master controller HC, and FIG.4(B)
shows a link table in which this link table is divided into input end and output side and distributed to each programmable controller PC.・Each programmable controller PCI
NpH:Jl is designed to control a predetermined controlled part in the entire system, and the control flow of the entire system can be understood, so data between each programmable controller PCI to PCN can be adjusted according to such system design. Links can be programmed. In the present invention, such a data link program is designed, for example, as a link table as shown in FIG. 4(A), and this table is stored in the memory area of the master controller Me. That is, 1
Describe the number of the programmable controller and its processing address as one data transfer source, describe the number of the programmable controller to be transferred and its processing address as the data transfer destination, and write the number of transfer data in the order of processing steps. do. The address is an address assigned within the programmable controller,
"x" here, including internal relays and data registers, etc.
is input, 'R'' is internal relay.

Y″は出力、“D′はデータレジスタ。Y" is an output, and "D' is a data register.

“E″は拡張川内部リレーをそれぞれ表わしており1点
数は指示されたアドレスから何アドレスのデータを転送
するかを示すものである0例えば、第4図(^)のプロ
グラムテーブルの最初の処理では1点″8″にプログラ
ムされているので、プログラマブルコントローラPCO
についての人力アドレス″00”から07″までの8点
のデータが、順番にプログラマブルコントローラPC2
の出力アドレス″05”から8点アドレス“+3”に転
送され、同時にプログラマブルコントローラPC3の出
力アドレス“05”からアドレス“13”に転送される
。このようなデータリンクのプログラムテーブルをマス
クコントローラにGに格納しておけば、マスタコントロ
ーラMCはこのテーブルに従って順番にプログラマブル
コントローラから転送データを読出し、テーブルに指示
されている所定のプログラマブルコントローラに順番に
データを転送することができ。
"E" each represents an extended internal relay, and each point indicates how many addresses data is to be transferred from the designated address.0For example, the first processing in the program table in Figure 4 (^) Since one point is programmed to "8", the programmable controller PCO
The data of 8 points from human address "00" to 07" are sequentially input to the programmable controller PC2.
is transferred from the output address "05" of the programmable controller PC3 to the 8-point address "+3", and simultaneously transferred from the output address "05" of the programmable controller PC3 to the address "13". If such a data link program table is stored in G in the mask controller, the master controller MC reads the transfer data from the programmable controllers in order according to this table, and sequentially sends the data to the predetermined programmable controllers specified in the table. data can be transferred.

これにより各プログラマブルコントローラ間におけるデ
ータリンクを行なうことができる。しかし、データリン
クをこのリンクテーブルに従って1つずつ行なっていた
のでは時間がかかるので、第411(B)に示すように
各プログラブプルコントローラ毎に前述のリンクテーブ
ルを入力側アドレスと出力側アドレスとに振分けて分割
し、1台のプログラマブルコントローラについては1回
のアクセスでリンクできるようにする。この分割された
リンクテーブルは、データリンク開始前に各プログラブ
プルコントローラPCのマモリ内にセットされる。従っ
て、リンク時にはデータのみをアクセスすればよく、高
速のデータ転送を行なうことができる。
This allows data linking between each programmable controller. However, it takes time to perform the data link one by one according to this link table, so as shown in No. 411 (B), the link table mentioned above is created for each program pull controller by input side address and output side address. The programmable controller can be linked with one access. This divided link table is set in the memory of each program pull controller PC before starting the data link. Therefore, at the time of linking, only data needs to be accessed, and high-speed data transfer can be performed.

第5図はマスクコントローラの処理手順を示す図である
。プログラマブルコントローラ間のデータリンクは一定
時間毎に定期的に行なうことが望ましいため、マスタコ
ントローラからの定時割込処理によってデータリンクの
起動をかけるようにし、リンクあ理とリンク処理との間
の空いた時間を使って、各プログラマブルコントローラ
から情報を集めたり、ホストフンピユータに対するサー
ビスをしたり、周辺サービスを行なうようにする。しか
し、プログラマブルコントローラの台数によりリンク処
理時間が相違するため、この発明にあってはホストサー
ビスや周辺サービスの無理時間を一定時間に固定して、
リンク処理時間を可変にして割込時間を決めている。そ
のため、プログラマブルコントローラのリンク台数が少
ないとリンクの間隔が短くなり、逆に台数が多いと間隔
が長くなる。
FIG. 5 is a diagram showing the processing procedure of the mask controller. Since it is desirable to perform data linking between programmable controllers periodically at fixed intervals, the data link is activated by regular interrupt processing from the master controller, and the gap between link processing and link processing is The time is used to collect information from each programmable controller, provide services to the host computer, and perform peripheral services. However, since the link processing time differs depending on the number of programmable controllers, in this invention, the unreasonable time of the host service and peripheral services is fixed to a fixed time.
The interrupt time is determined by making the link processing time variable. Therefore, when the number of links of programmable controllers is small, the interval between the links becomes short, and conversely, when the number of programmable controllers is large, the interval becomes long.

第5図はこの様子を示すもので、スキャン処理(メイン
処理)が開始されるとマスタコントローラは先ずイニシ
ャル化され1割込み待ちの状態となる。そして、時点T
Iに定時割込の起動がかけられると、′M込無処理サブ
ルーチン処理)が開始されて可変時間のリンク処理が行
なわれ、その終了時点t1にスキャン処理に復帰して上
述の周辺・ホストサービス処理を行なう、そして1周辺
・ホストサービス処理終了後又は処理中に時点T2にお
いて定時割込の起動がかかると、再び両送処理となって
リンク処理が行なわれ、以下同様な動作を繰返す、とこ
ろで1周辺・ホスドナービス処理用のコマンドで時間を
必要とするものはリンクを遅らせるので、その処理中に
時点〒3において定時割込の起動がかかった場合にはベ
ンディングコマンドとして扱い、プログラマブルコント
ローラがこのコマンドを受取った状態でこのプロトコル
を一度終結させる(時点t3)0次に、マスタコントロ
ーラからの割込によるベンディング要求によって、プロ
グラマブルコントローラのベンディングコマンドの処理
が終了した時点でデータをマスタコントローラに送り返
すようにする。このようにすることによって、処理に時
間のかかる周辺サービス用のコマンドであってもリンク
処理には影響を与えずに処理できる。
FIG. 5 shows this situation. When the scan process (main process) is started, the master controller is first initialized and enters a state of waiting for one interrupt. And time T
When a scheduled interrupt is activated in I, 'M-inclusive non-processing subroutine processing) is started to perform variable time link processing, and at the end time t1, the scan processing returns to the above-mentioned peripheral/host service. Processing is performed, and when a scheduled interrupt is activated at time T2 after the completion of the first peripheral/host service processing or during processing, the two-way sending processing is performed again, the linking processing is performed, and the same operation is repeated. 1 Peripheral/host service processing commands that require time will delay the link, so if a scheduled interrupt is activated at time 3 during the processing, it will be treated as a bending command, and the programmable controller will handle this command. This protocol is terminated once (time t3) with the programmable controller receiving the bending command (time t3).Next, data is sent back to the master controller when the bending command processing of the programmable controller is completed by a bending request caused by an interrupt from the master controller. do. By doing this, even commands for peripheral services that take time to process can be processed without affecting link processing.

第6図(^)〜(D)は第5図におけるベンディングコ
マンドの処理手順を示す図である。96図(A)は#l
、#2、#3の3つのコマンドの処理の様子を示してい
る0時点T4における定時割込によるリンク処理の終了
後の周辺争ホストサービス処理において、第6図(B)
に示すプロトコルでマスクコントローラからコマトカ与
えられ、#1のコマンドの処理が終了した後にハツチン
グで示す#2のコマンドの処理にかかった未処理〒、時
点↑5における定時割込になってしまった場合には、そ
のプログラブプルコントローラは第6図(B)に示すよ
うにリブラインデータは返さずにベンディングコマンド
として受+tけたごとをマスクコントローラに返す0次
に1時点T5におけるリンク処理の終r後、マスクコン
トローラはfIS6図(C)に示すプロトコルでリプラ
イ要求コマンドを該当プログラマブルコントローラに送
り出し、その処理が終了したか否かを問い合わせる。該
当プログラブプルコントローラは処理がまだ終わってい
ないので。
FIGS. 6(^) to (D) are diagrams showing the processing procedure of the bending command in FIG. 5. Figure 96 (A) is #l
, #2, and #3 in the peripheral conflict host service process after the link process is completed by a scheduled interrupt at time 0 T4, as shown in FIG. 6(B).
When a command is given from the mask controller using the protocol shown in , and after the processing of command #1 is completed, the unprocessed command #2 shown by hatching is processed, and a scheduled interrupt occurs at time ↑5. In this case, the program pull controller does not return ribline data but returns each digit received as a bending command to the mask controller as shown in FIG. , the mask controller sends a reply request command to the corresponding programmable controller using the protocol shown in FIG. The processing for the relevant program pull controller has not yet finished.

第6図(C)に示すようにリプライデータは返さない0
次に、時点τBにおけるリンク処理の終了後、マスタコ
ントローラが再び該当プログラマブルコントローラに第
6図(D)のプロトコルでリプライ要求コマンドを送出
する。この場合。
No reply data is returned as shown in Figure 6 (C) 0
Next, after the link processing at time τB is completed, the master controller again sends a reply request command to the programmable controller in question using the protocol shown in FIG. 6(D). in this case.

該当プログラマブルコントローラは#2のコマンドの処
理が終了しているので、第6図CD)に示す転送プロト
コルでリプライデータをマスタコントローラに返す、こ
のようにしてベンディングコマンドの処理が行なわれる
Since the corresponding programmable controller has finished processing the command #2, the reply data is returned to the master controller using the transfer protocol shown in FIG. 6 (CD), thus processing the bending command.

(発明の効果) 以上のように、この発明のマスクコントローラによれば
、マスクコントローラと各プログラマブルコントローラ
とを1本の通信回線で接続しただけで任意のプログラマ
ブルコントローラの入出カニリア間のデータリンクを行
なうことができると共に、lケ所で全てのプログラマブ
ルコントローラについてプログラミング、モニタリング
等の周辺サービスを実行でさる。
(Effects of the Invention) As described above, according to the mask controller of the present invention, data link between input and output canisters of any programmable controller can be performed by simply connecting the mask controller and each programmable controller with one communication line. In addition, peripheral services such as programming and monitoring can be performed for all programmable controllers at one location.

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

第1図はこの発明のマスクコントローラとプログラマブ
ルコントローラとの接続を示す図、第2図はこの発明の
マスタコントローラの構成を示すブロック図、第3図は
この発明におけるマスクコノトローラとプログラマブル
コントローラとの間のデータ転送プロトコルの例を示す
図、 flfk4[1iQ(A) 及ヒ(8) 14コ
ノ5a#4ノマス?コントローラのデータリンクテーブ
ルの例を示す図、第5rpJはこの91明のマスクコン
トローラの処理手順を示す図、第6図(A)〜(El)
は第5図におけるベンディングコマンドの処理を示す図
、第7図及び第8図はそれぞれ従来のデータリンク方式
の例を示す図である。 肛・・・マスクコントロール、 pat〜PCN・・・
プログラマブルコントローラ、SiO・・・シリアル転
送コントローラ、R型口・・・受信データ、T!口・・
・送信データ、MA、NAl−)IAN・・・メモリエ
リア、9・・・ループライン、lO・・・発振器、11
・・・シリアルインタフェース、 12・・・周辺装置
インタフェース、13・・・ホストコンピュータインタ
フェース、14・・・ROM、15・・・RA)1 、
18・・・マイクロプロセッサ。 蔓5 園 −176図 (A) (J) マスタコントa−ラ フ07ラマ7′hコントσ−フ (C) 、    アロ7フマフルコシトa−フ(D)
FIG. 1 is a diagram showing the connection between the mask controller and programmable controller of the present invention, FIG. 2 is a block diagram showing the configuration of the master controller of the present invention, and FIG. 3 is a diagram showing the connection between the mask controller and the programmable controller of the present invention. A diagram showing an example of a data transfer protocol between flfk4[1iQ(A) and hee(8) 14kono5a#4nomas? A diagram showing an example of the data link table of the controller, 5th rpJ is a diagram showing the processing procedure of this 91-light mask controller, Figures 6 (A) to (El)
is a diagram showing the processing of the bending command in FIG. 5, and FIGS. 7 and 8 are diagrams each showing an example of the conventional data link system. Anus...mask control, pat~PCN...
Programmable controller, SiO...serial transfer controller, R-type port...received data, T! mouth··
・Transmission data, MA, NAl-)IAN...Memory area, 9...Loop line, IO...Oscillator, 11
... serial interface, 12 ... peripheral device interface, 13 ... host computer interface, 14 ... ROM, 15 ... RA) 1,
18...Microprocessor. Vine 5 Garden-176 Diagram (A) (J) Mastercont a-Rough 07 Rama 7'h Conte σ-F (C), Aro 7 Fumafurukoshito a-F (D)

Claims (1)

【特許請求の範囲】[Claims] 複数のプログラマブルコントローラとデータ通信手段を
介して接続されているシリアルインタフェースと周辺装
置とデータの交換をするための周辺装置インタフェース
と、ホストコンピュータとデータを交換するためのホス
トコンピュータインタフェースと、マスタコントローラ
のオペレーティングシステムを格納しているROMと、
前記オペレーティングシステムにワーク用RAMと、前
記各プログラマブルコントローラとのデータリンクのた
めに転送元及び転送先に区別したリンクテーブルを内蔵
し、このリンクテーブルを入力側及び出力側に分けて各
プログラマブルコントローラに振分け、前記オペレーテ
ィングシステムの指令に基づいてクロック信号に同期し
て前記シリアルインタフェース、前記周辺装置インタフ
ェース及び前記ホストコンピュータインタフェースの動
作を同一の転送プロトコルを用いて時分割的の制御する
マイクロプセッサユニットから成ることを特徴とするプ
ログラマブルコントローラのマスタコントローラ。
A serial interface connected to a plurality of programmable controllers via a data communication means, a peripheral device interface for exchanging data with a peripheral device, a host computer interface for exchanging data with a host computer, and a master controller. ROM that stores the operating system,
The operating system includes a work RAM and a link table that distinguishes between a transfer source and a transfer destination for data linking with each programmable controller, and this link table is divided into an input side and an output side and is connected to each programmable controller. a microprocessor unit that controls the operations of the serial interface, the peripheral device interface, and the host computer interface in a time-sharing manner using the same transfer protocol in synchronization with a clock signal based on instructions from the operating system; A master controller of programmable controllers.
JP304485A 1985-01-11 1985-01-11 Master controller of programmable controller Granted JPS61161505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP304485A JPS61161505A (en) 1985-01-11 1985-01-11 Master controller of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP304485A JPS61161505A (en) 1985-01-11 1985-01-11 Master controller of programmable controller

Publications (2)

Publication Number Publication Date
JPS61161505A true JPS61161505A (en) 1986-07-22
JPH0441365B2 JPH0441365B2 (en) 1992-07-08

Family

ID=11546310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP304485A Granted JPS61161505A (en) 1985-01-11 1985-01-11 Master controller of programmable controller

Country Status (1)

Country Link
JP (1) JPS61161505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271687A (en) * 2008-05-07 2009-11-19 Mitsubishi Electric Corp Plant monitoring control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57174701A (en) * 1981-04-20 1982-10-27 Hitachi Ltd Decentralized controlling system
JPS59114941A (en) * 1982-12-20 1984-07-03 Matsushita Electric Ind Co Ltd Programmable controller
JPS59188703A (en) * 1983-03-15 1984-10-26 Matsushita Electric Works Ltd Control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57174701A (en) * 1981-04-20 1982-10-27 Hitachi Ltd Decentralized controlling system
JPS59114941A (en) * 1982-12-20 1984-07-03 Matsushita Electric Ind Co Ltd Programmable controller
JPS59188703A (en) * 1983-03-15 1984-10-26 Matsushita Electric Works Ltd Control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271687A (en) * 2008-05-07 2009-11-19 Mitsubishi Electric Corp Plant monitoring control system

Also Published As

Publication number Publication date
JPH0441365B2 (en) 1992-07-08

Similar Documents

Publication Publication Date Title
US4953074A (en) Function-distributed control apparatus
EP0318221A2 (en) Controlling responding by users of an intercommunications bus
KR900003122B1 (en) Linking system for programmable controller
KR20180123627A (en) Automation system and method for operation
WO1982003930A1 (en) Data exchanging method and device
JPS61161505A (en) Master controller of programmable controller
JPH086614A (en) Programmable controller
JPS61255461A (en) Multi cpu communicating device
JPH0439684B2 (en)
JPS6244808A (en) Control method for nc working machine group
JPS6236938A (en) Communication control equipment for local area network
JPS6190204A (en) Linking method of programmable controller
JP2774669B2 (en) Network configuration method for programmable controller
JPH07319515A (en) Distributed control system for programmable controller
JPS6220006A (en) Remote i/o link system for programmable controller
JPH11338523A (en) Input and output control system of programmable controller
KR0164351B1 (en) The data access in multiprocessor system
JPH0710070B2 (en) Data transfer device between networks
JPS6312001A (en) Programmable controller for numerical controller
KR930003450B1 (en) Data communication circuit between processors
JPH0319499A (en) Automonous decentralized type controller
JP2770177B2 (en) Link interface module of programmable controller
JP2001265610A (en) Device control method
JP3452948B2 (en) Data transmission method
JPH0215152Y2 (en)

Legal Events

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