Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2921206B2 - PC with interlock control - Google Patents
[go: Go Back, main page]

JP2921206B2 - PC with interlock control - Google Patents

PC with interlock control

Info

Publication number
JP2921206B2
JP2921206B2 JP24477291A JP24477291A JP2921206B2 JP 2921206 B2 JP2921206 B2 JP 2921206B2 JP 24477291 A JP24477291 A JP 24477291A JP 24477291 A JP24477291 A JP 24477291A JP 2921206 B2 JP2921206 B2 JP 2921206B2
Authority
JP
Japan
Prior art keywords
state
input
link
address
default value
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.)
Expired - Fee Related
Application number
JP24477291A
Other languages
Japanese (ja)
Other versions
JPH0553619A (en
Inventor
賢朗 杉浦
冬彦 吉倉
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP24477291A priority Critical patent/JP2921206B2/en
Publication of JPH0553619A publication Critical patent/JPH0553619A/en
Application granted granted Critical
Publication of JP2921206B2 publication Critical patent/JP2921206B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、複数のプログラマブル
コントローラ(以下、単に「PC」と記す。)を、信号
を伝送するリンクラインを介して接続し、複数のPC間
で相互に入出力要素を参照して、インターロック制御を
可能としたシステムに使用されるPCに関する。特に、
あるPCを接続しないでシステムを運行したり、特別な
PCのみ接続して特定のPC間で試運転をしたりする場
合にも、順序制御プログラムを修正することなしに、そ
のような運転を実行できるPCに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a plurality of programmable controllers (hereinafter, simply referred to as "PCs") connected via a link line for transmitting signals, and an input / output element for the plurality of PCs. , A PC used in a system capable of interlock control. Especially,
Even when the system is operated without connecting a certain PC, or when a special PC is connected and a test run is performed between specific PCs, such operation can be performed without modifying the sequence control program. Regarding PC.

【0002】[0002]

【従来の技術】従来、複数PCをリンクラインに接続し
て、1つのPCから他のPCに属する入出力要素の状態
を参照して、そのPC間でのインターロック制御を行う
ことができるシステムが知られている。このようなシス
テムでは、各PCは、他のPCから参照されている入出
力要素の状態をリンクラインを介して、他のPCに伝送
するようにしている。そして、その入出力要素の状態を
受信するPCは、その状態を自己のPCに属する入出力
要素の状態と同様にアクセスできるリンク要素メモリに
記憶している。この状態において、順序制御プログラム
で、他のPCに属する入出力要素の状態を参照する命令
を実行する場合には、そのリンク要素メモリをアクセス
するようにしている。
2. Description of the Related Art Conventionally, a system in which a plurality of PCs are connected to a link line and one PC can refer to the state of input / output elements belonging to another PC and perform interlock control between the PCs. It has been known. In such a system, each PC transmits the status of the input / output element referred to by the other PC to the other PC via the link line. The PC that receives the state of the input / output element stores the state in the link element memory that can be accessed similarly to the state of the input / output element belonging to its own PC. In this state, when the order control program executes an instruction for referring to the state of the input / output element belonging to another PC, the link element memory is accessed.

【0003】[0003]

【発明が解決しようとする課題】ところが、必ずしも全
PCをリンクラインに接続した状態でシステムが運行さ
れるとは限らない。例えば、あるPCを接続しないでシ
ステムを運行させたり、保守、システムの試運転又はシ
ステム構築時の部分的運転において、あるPCを接続し
ないでシステムの運行状態を確認したり点検したりする
場合がある。
However, the system does not always operate with all the PCs connected to the link line. For example, there is a case where the system is operated without connecting a certain PC, or the operation state of the system is checked or checked without connecting a certain PC in maintenance, trial operation of the system, or partial operation during system construction. .

【0004】このような場合には、リンクラインに接続
されていない、又は、電源の投入されていないPCにお
ける入出力要素の状態は、リンクラインを介して他のP
Cに伝送されないので、各PCのリンク要素メモリにお
いて、接続されていないPCに対応したリンク要素メモ
リのアドレスの内容は不確定となる。ところが、順序制
御プログラムは全PCが接続されているものとしてプロ
グラミングされているので、その接続されていないPC
に対応したリンク要素メモリのアドレスもアクセスする
ことになり、順序制御が当初の設計通りにはならない。
In such a case, the state of the input / output element in the PC that is not connected to the link line or that is not powered on is determined by the other Ps via the link line.
Since the data is not transmitted to C, in the link element memory of each PC, the contents of the address of the link element memory corresponding to the unconnected PC become indefinite. However, since the sequence control program is programmed as if all the PCs are connected, the PCs that are not connected are
Therefore, the address of the link element memory corresponding to the above is also accessed, and the order control is not as originally designed.

【0005】従って、あるPCを接続しないでシステム
を運転する場合には、そのPCの入出力要素の状態を参
照している全PCの順序制御プログラムを仮に修正する
必要がある。又、当初の設計通りにシステムを本運行す
る場合には、再度、各PCの順序制御プログラムを元通
りに復元する必要があり、これらの、プログラム修正に
多大な労力、時間が必要であった。
Therefore, when operating the system without connecting a certain PC, it is necessary to temporarily correct the sequence control program of all the PCs referring to the state of the input / output elements of the PC. In addition, when the system is fully operated as originally designed, it is necessary to restore the sequence control program of each PC to its original state again, and a great deal of labor and time are required for correcting these programs. .

【0006】本発明は、上記の課題を解決するためにな
されたものであり、その目的は、順序制御プログラムを
修正することなく、あるPCを接続しないでシステムを
運行させたり、保守、システムの試運転又はシステム構
築時の部分的運転を可能とすることである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and has as its object to operate a system without connecting a certain PC without modifying a sequence control program, to perform maintenance, and to maintain the system. It is to enable a trial run or a partial run during system construction.

【0007】[0007]

【課題を解決するための手段】本発明は、信号を伝送す
るリンクラインを介して伝送された、他のプログラマブ
ルコントローラ(PC)に属する入出力要素の状態を、
自己の入出力要素の状態と同様にアクセス可能なリンク
要素メモリに記憶し、そのリンク要素メモリをアクセス
することにより、他のPCに属する入出力要素の状態を
参照して、各PC間のインターロック制御を可能とした
プログラミングコントローラ(PC)において、PCの
順序制御を表記したプログラムに於いて参照される他の
PCに属する入出力要素の状態のデフォルト値を指定す
るデフォルト値指定手段と、他のPCに属する入出力要
素の状態が正常受信状態にあるか否かを判定する受信判
定手段と、受信判定手段により正常受信状態にないと判
定されたPCに属する入出力要素の状態は、前記デフォ
ルト値指令手段により指定された値を参照して順序制御
を実行する順序制御実行手段とを設けたことを特徴とす
る。
According to the present invention, the state of an input / output element belonging to another programmable controller (PC) transmitted through a link line for transmitting a signal is determined.
It is stored in a link element memory that can be accessed in the same manner as the state of its own input / output element, and by accessing the link element memory, the state of the input / output element belonging to another PC is referred to, and the interface between each PC is referred to. In a programming controller (PC) capable of lock control, default value designating means for designating a default value of a state of an input / output element belonging to another PC referred to in a program describing sequence control of the PC, The reception determining means for determining whether the state of the input / output element belonging to the PC is in the normal reception state, and the state of the input / output element belonging to the PC determined not to be in the normal reception state by the reception determination means are as described above. Sequence control executing means for executing the sequence control with reference to the value designated by the default value command means.

【0008】[0008]

【作用】デフォルト値指定手段により、あるPCが順序
制御プログラムにおいて参照する他のPCに属する入出
力要素の状態のデフォルト値が設定される。即ち、他の
PCが起動されていない状態において、そのPCの入出
力要素を参照しているPCが順序制御プログラムを実行
できるようにその入出力要素のデフォルト値が決定され
る。
The default value designating means sets a default value of the state of the input / output element belonging to another PC to which a certain PC refers in the sequence control program. In other words, the default value of the input / output element is determined so that the PC referencing the input / output element of the PC can execute the sequence control program while the other PC is not activated.

【0009】次に、受信判定手段により、参照している
他のPCの入出力要素の状態がそのPCから正常受信状
態にあるか否が判定される。即ち、この判定により、P
Cがリンクラインに接続されているか、又は、電源が投
入されているか否かが判定される。
Next, the reception determining means determines whether the state of the input / output element of the other PC being referred to is in a normal reception state from that PC. That is, by this determination, P
It is determined whether C is connected to the link line or whether the power is on.

【0010】次に、順序制御実行手段は、受信判定手段
により正常受信状態にないと判定された入出力要素に対
しては、リンク要素メモリの内容をアクセスすることな
く、デフォルト値指定手段により指定された値を参照し
て、順序制御プログラムを実行する。このことにより、
リンクラインに入出力要素が参照されているPCが接続
されていなくても、その入出力要素を参照しているPC
は、デフォルト値に従って順序制御を実行することが可
能となる。このデフォルト値は、そのPCがリンクライ
ンに接続されていない場合において、PCが処理を矛盾
なく実行できるような値に設定されていることから、一
部のPCがリンクラインに接続されていなくても、順序
制御プログラムを修正することなくシステムの部分運転
をすることが可能となる。
[0010] Next, the order control execution means designates the input / output element which is determined not to be in the normal reception state by the reception determination means without accessing the contents of the link element memory by the default value designation means. The sequence control program is executed with reference to the set value. This allows
Even if the PC that refers to the input / output element is not connected to the link line, the PC that refers to the input / output element
Can execute the order control according to the default value. This default value is set to a value that allows the PC to execute processing without contradiction when the PC is not connected to the link line, so that some PCs are not connected to the link line. In addition, it becomes possible to partially operate the system without modifying the sequence control program.

【0011】[0011]

【実施例】以下、本発明を具体的な実施例に基づいて説
明する。第1実施例 (1)複数のPCにより制御されるシステムの構成 図1は、複数台のPCPC01〜PC32によって制御されるト
ランスファ−マシンの構成を示す。トランスファ−マシ
ンの各ステ−ションST0,ST1L,ST1R,・・・ST3Rは、図示
の如く、対応するPCPC01〜PC32によってそれぞれ制御
され、また、各PCPC01〜PC32は、リンクラインL によ
って相互に結合されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to specific embodiments. First Embodiment (1) Configuration of System Controlled by Plurality of PCs FIG. 1 shows the configuration of a transfer machine controlled by a plurality of PCs PC01 to PC32. Each of the transfer machine stations ST0, ST1L, ST1R,. ing.

【0012】(2) PCの構成 本PCは、図2に示すように、順序制御及び通信制御用
のCPU200 と、プログラミング装置からロ−ドされた
順序制御プログラム及びリンクパラメ−タを格納すると
ともに、被制御対象の入出力要素の状態及びリンクライ
ンLから受信される他のPCの入出力要素の状態を記憶
するRAM250 と、CPU200 のモニタプログラムの格
納されたROM210 と、リンクラインLから送信される
データを同期検出するためのタイミングを与えるタイマ
260 と、駆動回路270 と、入出力インタ−フェ−ス240
とを備える。駆動回路270 は、出力要素のリレ−コイル
2701を駆動し、入力要素のリレ−接点或いはリミットス
イッチ2702の状態を入力する装置である。
(2) Configuration of PC As shown in FIG. 2, this PC stores a CPU 200 for sequence control and communication control, and stores a sequence control program and link parameters loaded from a programming device. A RAM 250 storing the state of the input / output element to be controlled and the state of the input / output element of the other PC received from the link line L; a ROM 210 storing a monitor program of the CPU 200; Timer that provides timing for synchronous detection of data
260, a driving circuit 270, and an input / output interface 240
And The driving circuit 270 is a relay coil of the output element.
This is a device for driving the 2701 and inputting the state of the relay contact or limit switch 2702 of the input element.

【0013】RAM250 において、0000番地から1FFF番
地は、自己PCに属する入出力要素に割当られたメモリ
であり、それらの入出力要素の状態は、この番地の内容
を参照することによって判別できる。又、3000番地から
3FFF番地は、全てのPCにおいて、他のPCから参照さ
れている全ての入出力要素に対して共通に割当てられた
アドレスである。以下、この共通のアドレスに割当られ
た仮想の入出力要素をリンク要素といい、3000番地から
3FFF番地をリンク要素メモリという。
In the RAM 250, addresses from 0000 to 1FFF are memories allocated to input / output elements belonging to the own PC, and the states of these input / output elements can be determined by referring to the contents of these addresses. Also, from address 3000
The address 3FFF is an address commonly assigned to all input / output elements referenced by other PCs in all PCs. Hereinafter, the virtual input / output element assigned to this common address is referred to as a link element.
Address 3FFF is called link element memory.

【0014】リンクラインLに全てのPCが接続され
て、全てのPCが起動されている場合は、微小時間間隔
の通信制御により、リンク要素メモリ2505の値は全ての
PCにおいて、常時、共通の値となっている。従って、
あるPCにおいて、他のPCの入出力要素の状態を参照
する場合には、リンク要素メモリ2505の値を参照するこ
とになる。
When all the PCs are connected to the link line L and all the PCs are started, the value of the link element memory 2505 is always common to all the PCs by the communication control at minute time intervals. Value. Therefore,
When referring to the state of the input / output element of another PC in a certain PC, the value of the link element memory 2505 is referred to.

【0015】各PCでは、図3に示すようなラダー回路
図によって順序制御プログラムが作成される。なお、図
3のラダー回路図に於いて、入力要素はリレーやリミッ
トスイッチ等の接点、出力要素はリレーコイル等であ
る。入力要素と出力要素を合わせて、入出力要素とい
う。
In each PC, a sequence control program is created according to a ladder circuit diagram as shown in FIG. In the ladder circuit diagram of FIG. 3, the input elements are contacts such as relays and limit switches, and the output elements are relay coils and the like. An input element and an output element are collectively called an input / output element.

【0016】図3に示す如く、入出力要素には、各PC
が入出力要素の状態を参照する時に使用するメモリのア
ドレスが付されいる。例えば、「1200」は、1200番地に
割当られた自己のPCに属する入力要素のアドレスを示
している。又、「3000」は3000番地に割当られたリンク
要素、即ち、他のPCに属する入出力要素の状態と同じ
状態を保持する仮想の入出力要素のアドレスを示してい
る。
As shown in FIG. 3, input / output elements include each PC.
Is used to refer to the state of the input / output element. For example, "1200" indicates the address of an input element belonging to its own PC assigned to address 1200. "3000" indicates the address of a link element assigned to address 3000, that is, the address of a virtual input / output element that holds the same state as the state of the input / output element belonging to another PC.

【0017】例えば、PCPC01に属する入力要素「100
0」がPCPC11から参照されている場合には、PCPC01
のプログラムにおいて、入力要素「1000」の状態をリン
ク要素「3000」の状態と等しくするリンク回路が付加さ
れている。このリンク要素「3000」の値は、相互通信に
より、他の全てのPCにおけるリンク要素メモリ2505の
3000番地に書き込まれる。従って、PCPC11のプログラ
ムでは、リンク要素メモリ2505の3000番地の値を参照す
ることで、PCPC01に属する入力要素「1000」の状態を
参照することができる。又、逆に、PCPC11に属する入
力要素「1100」がPCPC01から参照されている場合に
は、PCPC11のプログラムにおいて、入力要素「1100」
の状態をリンク要素「3014」の状態と等しくするリンク
回路が付加されている。PCPC11のリンク要素「3014」
の状態は、通信により、PCPC01、その他の全PCのリ
ンク要素「3014」に転送され、PCPC11に属する入力要
素「1100」の状態は、全PCにおいて、リンク要素「30
14」を参照することで判別できる。
For example, the input element “100” belonging to PCPC01
If “0” is referenced from PCPC11, PCPC01
In this program, a link circuit for making the state of the input element "1000" equal to the state of the link element "3000" is added. The value of the link element “3000” is stored in the link element memory 2505 of all the other PCs by mutual communication.
Written at 3000. Therefore, the program of PCPC11 can refer to the value of address 3000 in the link element memory 2505 to refer to the state of the input element "1000" belonging to PCPC01. Conversely, when the input element “1100” belonging to PCPC11 is referenced from PCPC01, the input element “1100”
Is added to the link element "3014". PCPC11 link element "3014"
Is transferred to PCPC01 and the link element “3014” of all other PCs by communication, and the state of the input element “1100” belonging to PCPC11 is changed to the link element “3014” in all PCs.
14 ".

【0018】(3) PCによる通信制御 全PCにおけるリンク要素メモリ2505の値は、全て、同
一値をとるように相互通信されている。リンクラインL
に送出されるデータは図5に示すように構成されてい
る。例えば、スタートビットから10ビットまでは、P
CPC01から出力されたリンクデータ( リンク要素の状態
を示すデータ) であり、続く7ビットはPCPC11から送
出されたリンクデータであり、続く8ビットはPCPC12
から送出されたリンクデータを意味する。
(3) Communication Control by PC The values of the link element memories 2505 in all the PCs are mutually communicated so as to take the same value. Link line L
Are configured as shown in FIG. For example, from the start bit to 10 bits, P
The link data output from CPC01 (data indicating the state of the link element), the following 7 bits are link data sent from PCPC11, and the following 8 bits are PCPC12.
Means the link data sent from.

【0019】リンクラインLに各PCがどのタイミング
で何ビットのデータを送出し、又、リンクラインLから
どのタイミングで何ビットのデータを受信するかを規定
したリンクパラメータがRAM250のリンクパラメー
タ記憶領域2504に記憶されている。例えば、PCPC
01のリンクパラメータは、図4に示すように、スタート
ビットから10ビットはデータを送信し、次の10ビッ
トはリンクラインLからデータを受信し、次の20ビッ
トはデータを受信し、次の10ビットはデータを受信す
るというように送信か受信かを規定したデータである。
The link parameters which specify how many bits of data each PC sends to the link line L at which timing and at what timing which bit data is received from the link line L are stored in the link parameter storage area of the RAM 250. 2504. For example, PCPC
As shown in FIG. 4, the link parameter of 01 is that 10 bits from the start bit transmit data, the next 10 bits receive data from the link line L, the next 20 bits receive data, and the next 20 bits receive data. The 10 bits are data defining transmission or reception, such as receiving data.

【0020】各PCは、各PCで同期して、リンク要素
メモリ2505をアクセスするアドレスを3000番地から順に
更新する。そして、現在、アクセスしているアドレス
は、データの送信か受信かをリンクパラメータに従って
決定する。そして、送信と決定されたアドレスに対して
は、そのアドレスに記憶されているリンク要素の状態を
リンクラインLに出力し、受信と決定されたアドレスに
対しては、リンクラインLから受信されたデータをリン
ク要素の状態として、そのアドレスに記憶する。このよ
うな各PCでの通信制御により全PCにおけるリンク要
素メモリ2505の各アドレスの値は全て、常時、等しくな
る。
Each PC updates the address for accessing the link element memory 2505 sequentially from address 3000 in synchronization with each PC. Then, for the currently accessed address, whether to transmit or receive data is determined according to the link parameter. For the address determined to be transmitted, the state of the link element stored at that address is output to the link line L, and for the address determined to be received, the status is received from the link line L. The data is stored at the address as the state of the link element. By such communication control in each PC, all the values of each address of the link element memory 2505 in all the PCs are always equal.

【0021】次に、各PCの通信制御について説明す
る。各PCの通信制御は、CPU200 によって実行され
る。機能的には、図6の如きブロック図で表現される。
なお、図6はPCPC01の機能ブロック図であるが、他の
PCについても同様である。各機能ブロックとして、順
序制御プログラムを実行するための順序制御用のシ−ケ
ンス処理部201 と、通信制御用の通信制御部202 とを備
えるとともに、記憶用のブロックとして、順序制御プロ
グラム記憶領域2503、リンクパラメ−タ記憶領域2504、
リンク要素メモリ2505、入出力要素メモリ2506、及び、
通信状態記憶領域2502を備える。上記通信制御部202
は、さらに、送受信部202a、送受信デ−タ数カウンタ20
2b、及び、送受信デ−タ転送部202cの各機能ブロックが
構成されている。
Next, communication control of each PC will be described. The communication control of each PC is executed by the CPU 200. Functionally, it is represented by a block diagram as shown in FIG.
FIG. 6 is a functional block diagram of PCPC01, but the same applies to other PCs. Each functional block includes a sequence processing unit 201 for sequence control for executing the sequence control program and a communication control unit 202 for communication control, and a sequence control program storage area 2503 as a storage block. , Link parameter storage area 2504,
Link element memory 2505, input / output element memory 2506, and
A communication state storage area 2502 is provided. Communication control unit 202
The transmission / reception unit 202a and the transmission / reception data number counter 20
2b, and each functional block of the transmission / reception data transfer unit 202c.

【0022】図7は各PCのリンク要素メモリ2505の構
成と、他のPC間におけるリンクデータの送信と受信と
の関係を示した図である。PCPC01から送信されるリン
ク要素メモリ2505のアドレス3000から3009までの10ビ
ットのデ−タ群は、PCPC11、PCPC12では、それぞ
れ、PCPC11、PCPC12のリンクパラメ−タに従って全
て受信されて、各PCのリンク要素メモリ2505の対応す
るアドレス(3000 から3009) へ格納される。又、次に、
PCPC11から送信されるリンク要素メモリ2505のアドレ
ス300A〜3013までの10ビットのデータ群は、PCPC0
1、PCPC12、で全て受信され、そのPCのリンク要素
メモリ2505のアドレス300A〜3013に記憶される。又、次
に、PCPC12から送信されるリンク要素メモリ2505のア
ドレス3014〜3027までの20ビットのデータ群は、PC
PC01、PCPC11、で全て受信され、そのPCのリンク要
素メモリ2505のアドレス3014〜3027に記憶される。
FIG. 7 is a diagram showing the configuration of the link element memory 2505 of each PC and the relationship between transmission and reception of link data between other PCs. The 10-bit data groups from addresses 3000 to 3009 of the link element memory 2505 transmitted from PCPC01 are all received by PCPC11 and PCPC12 in accordance with the link parameters of PCPC11 and PCPC12, respectively, and the link of each PC is received. It is stored in the corresponding address (3000 to 3009) of the element memory 2505. And then,
The 10-bit data group from the addresses 300A to 3013 of the link element memory 2505 transmitted from the PCPC11 is PCPC0.
1. All data are received by the PCPC 12 and stored in the link element memory 2505 of the PC at addresses 300A to 3013. Next, a 20-bit data group from the addresses 3014 to 3027 of the link element memory 2505 transmitted from the PC
All are received by PC01 and PCPC11, and are stored in addresses 3014 to 3027 of the link element memory 2505 of the PC.

【0023】各PCで実行される通信制御処理を、図
8,9に即して説明する。該処理は、ラダー回路に従っ
た順序制御に対するバックグランドジョブとして実行さ
れている。そして、スタートビットの送出タイミング毎
にS501から実行される。これにより、上述の如きデ−タ
通信が可能となる。まず、指定順を示すパラメ−タIに
“1”がセットされ、また、RAM250(リンク要素メモ
リ2505) を参照するためのアドレスポインタSに“30
00”がセットされる(S501)。指定順は、リンクパラメ
−タ記憶部2504の各枠の順番である。例えば、PCPC01
の指定順“1”では、図6に示す如く、デ−タ数が“1
0”、通信指定が“送信”とされている。
The communication control process executed by each PC will be described with reference to FIGS. This processing is executed as a background job for order control according to the ladder circuit. Then, the process is executed from S501 every time the start bit is transmitted. As a result, data communication as described above becomes possible. First, "1" is set in the parameter I indicating the designation order, and "30" is set in the address pointer S for referring to the RAM 250 (link element memory 2505).
00 ”is set (S501). The designation order is the order of each frame of the link parameter storage unit 2504. For example, PCPC01
In the designation order "1", the number of data is "1" as shown in FIG.
0 ", and the communication designation is" transmission ".

【0024】次に、変数Cにデ−タ数D(I)が、変数
Mに通信指定K(I)が、それぞれ代入される(S503)。
ここに、“M=0は送信”“M=1は受信”“M≠0,
M≠1は非受信”とする。
Next, the number of data D (I) is substituted for the variable C, and the communication designation K (I) is substituted for the variable M (S503).
Here, “M = 0 is transmission” “M = 1 is reception” “M ≠ 0,
M # 1 is not received. "

【0025】ステップS511で、送信モ−ドであると判定
されると(S511;YES)、RAM250 内の前記アドレスポイ
ンタSで指定される番地(リンク要素メモリ2505)から
デ−タが読み出され、リンクラインLへ送出される(S51
5)。さらに、変数Cがデクリメントされ、且つ、アドレ
スポインタSがインクリメントされる(S517)。かかる処
理は、変数Cが“0”となるまで、換言すれば、当該指
定順のデ−タが全てリンクラインLへ送出されるまで、
実行される。その後(S513;YES)、前記パラメ−タIがイ
ンクリメントされ(S541)、当該フレ−ムの通信(図5に
示す一連の通信)が終了していない場合は(S543;NO) 、
前記ステップ503 に戻る。また、当該フレ−ムの通信が
終了した場合は(S543;YES)、次回の通信まで、待機状態
となる。
If it is determined in step S511 that the transmission mode is set (S511; YES), data is read from the address (link element memory 2505) designated by the address pointer S in the RAM 250. Is transmitted to the link line L (S51
Five). Further, the variable C is decremented, and the address pointer S is incremented (S517). This processing is performed until the variable C becomes “0”, in other words, until all the data in the specified order is transmitted to the link line L.
Be executed. Thereafter (S513; YES), the parameter I is incremented (S541), and if the communication of the frame (a series of communication shown in FIG. 5) is not completed (S543; NO),
The process returns to step 503. When the communication of the frame has been completed (S543; YES), the apparatus enters a standby state until the next communication.

【0026】一方、前記ステップS511で、送信モ−ドで
ない(S511;NO) とされた場合であって、受信モ−ドであ
ると判定された場合は(S521;YES)、リンクラインのデ−
タが取込まれる(S525)。次に、そのデータがオン又はオ
フ状態の何れかを示す正常値であるか、そのいずれの値
も示さない異常値であるかが判定される(S527)。尚、あ
るPCがリンクラインに接続されておらず、又は、電源
が投入されておらず、データを送信していない状態にあ
る場合は、オン状態でもオフ状態でもない第3の状態
(異常状態)をとるようにリンクライン上の信号レベル
が決定されている。受信データが正常であれば、RAM
250 内の前記アドレスポインタSで指定される番地(リ
ンク要素メモリ2505)へ格納される(S529)。さらに、変
数Cがデクリメントされ、且つ、アドレスポインタSが
インクリメントされる(S531)。かかる処理は、変数Cが
“0”となるまで、換言すれば、当該指定順のデ−タが
全てリンクラインへ送出されるまで、実行される。その
後(S523;YES)の処理は、上述の場合と同様である。
On the other hand, if it is determined in step S511 that the transmission mode is not the transmission mode (S511; NO) and if it is determined that the transmission mode is the reception mode (S521; YES), the link line data is deleted. −
Data is captured (S525). Next, it is determined whether the data is a normal value indicating either the ON or OFF state or an abnormal value indicating neither of these values (S527). When a certain PC is not connected to the link line, or is not powered on and is not transmitting data, the third state (abnormal state) that is neither on state nor off state ), The signal level on the link line is determined. If the received data is normal, RAM
It is stored in the address (link element memory 2505) designated by the address pointer S in the address 250 (S529). Further, the variable C is decremented, and the address pointer S is incremented (S531). This processing is executed until the variable C becomes "0", in other words, until all the data in the specified order is transmitted to the link line. Subsequent processing (S523; YES) is the same as in the case described above.

【0027】また、ステップS527で受信データが異常値
であると判定されると、ステップS532において、通信状
態記憶領域2502内のパラメータSで決定される相対アド
レスに、図12に示すように、受信中のリンク要素の状
態が異常値であることを示す値「1」が設定される。
尚、通信状態記憶領域2502の内容は、初期値として受信
中のリンク要素の状態が正常値を示す値「0」に初期設
定されている。
If it is determined in step S527 that the received data is an abnormal value, in step S532, the relative address determined by the parameter S in the communication state storage area 2502 is set as shown in FIG. A value “1” indicating that the state of the middle link element is an abnormal value is set.
Note that the contents of the communication state storage area 2502 are initially set to a value “0” indicating that the state of the link element being received indicates a normal value as an initial value.

【0028】前記ステップS511で送信モ−ドでない(S51
1;NO) とされ、且つ、前記ステップS521で受信モ−ドで
ない(S521;NO) とされた場合は、非受信モ−ドであるた
め、変数Cが“0”となるまで、変数Cがデクリメント
され、且つ、アドレスポインタSがインクリメントされ
る(S537)。その後(S533;YES)の処理は、上述の場合と同
様である。以上の如く通信制御が行われる結果、各PC
から送出されるデ−タ群は、図5に示す如く、リンクラ
イン上に時間的に切れ目無く並び、また、各PCでは自
己の必要なデ−タのみが取り込まれる。
In the step S511, the transmission mode is not set (S51).
1; NO), and if it is determined in step S521 that the receiving mode is not the receiving mode (S521; NO), since the receiving mode is the non-receiving mode, the variable C is maintained until the variable C becomes "0". Is decremented, and the address pointer S is incremented (S537). Subsequent processing (S533; YES) is the same as in the case described above. As a result of the communication control being performed as described above, each PC
As shown in FIG. 5, the data groups transmitted from the PC are arranged on the link line without any break in time, and each PC takes in only the data necessary for itself.

【0029】(4) デフォルト値の指定 リンクラインにPCが接続された状態で実行されるPC
の順序制御について説明する。RAM250 の順序制御プ
ログラム記憶領域2503に記憶された図3に示すラダー回
路に対応したプログラムが実行される。このプログラム
は実行形式のプログラムであるが、対応するソースプロ
グラムは図10に示すようなものである。
(4) Specification of default value PC executed when PC is connected to the link line
Will be described. The program corresponding to the ladder circuit shown in FIG. 3 and stored in the order control program storage area 2503 of the RAM 250 is executed. This program is an executable program, and the corresponding source program is as shown in FIG.

【0030】ところで、あるPCがリンクラインに接続
されていない場合や、リンクラインに接続されていても
そのPCの電源が投入されていない場合には、そのPC
からリンク要素の状態は送信されない。従って、リンク
要素メモリ2505において、他のPCからのリンクデータ
の送信がないリンク要素の状態は不確定となる。従っ
て、図3に示すラダー回路に対応した順序制御を実行す
ることが困難となる。このような場合には、次のように
して、状態が不確定なリンク要素の状態を決定してい
る。
By the way, when a certain PC is not connected to the link line, or when the power of the PC is not turned on even though it is connected to the link line, the PC is not connected.
Does not send the status of the link element. Therefore, in the link element memory 2505, the state of the link element in which no link data is transmitted from another PC is indeterminate. Therefore, it becomes difficult to execute the order control corresponding to the ladder circuit shown in FIG. In such a case, the state of the link element whose state is uncertain is determined as follows.

【0031】図3に示すように、リンク要素( 即ち、30
00番地以降のアドレスが割当られた入出力要素) のアド
レスを指定する時に、そのアドレスの後に「-N」又は
「-F」の記号を付加する。「-N」、「-F」は、それぞ
れ、そのアドレスのリンク要素の値が不確定な場合に、
そのリンク要素を強制的に「オン状態」、「オフ状態」
とみなして順序制御プログラムを実行させる指令である
ことを意味している。このようにして、ラダー回路図に
おいて、リンク要素の値が不確定な場合にそのデフォル
ト値が指定される。
As shown in FIG. 3, the link element (ie, 30
When specifying an address of an input / output element to which an address after address 00 is assigned, add a symbol "-N" or "-F" after the address. "-N" and "-F" indicate that the value of the link element at that address is indeterminate,
Force the link element to be "on" or "off"
Means that the instruction is to execute the sequence control program. In this way, in the ladder circuit diagram, when the value of the link element is uncertain, its default value is specified.

【0032】図3に示すラダー回路は、図10に示すソー
スプログラムに変換され、その後、さらに、機械言語で
記載されたオブジェクトプログラムに変換されて、その
プログラムが順序制御プログラムとして、RAM250 に
記憶されている。
The ladder circuit shown in FIG. 3 is converted into a source program shown in FIG. 10, and further converted into an object program described in a machine language, and the program is stored in the RAM 250 as a sequence control program. ing.

【0033】(5) 順序制御プログラムの実行 CPU200 は、図11に示す手順で処理を実行する。但
し、リンク要素を参照する命令の場合を示し、他の命令
の処理手順は省略されている。ステップS100において、
図10に示すプログラムの1つの命令語が順序制御プロ
グラム記憶領域2503から読み出される。次に、ステップ
S102において、その命令語にデフォルト値の指定(N,Fの
指定) があるか否かが判定される。デフォルト値の指定
がなければ、ステップS104において、リンク要素メモリ
2505の指定アドレスの内容を参照して、命令語が実行さ
れる。このように、デフォルト値の指定がない命令語は
リンク要素メモリ2505の値に従って命令語が実行され
る。
(5) Execution of Sequence Control Program The CPU 200 executes processing according to the procedure shown in FIG. However, the case of an instruction referring to a link element is shown, and the processing procedure of other instructions is omitted. In step S100,
One instruction word of the program shown in FIG. 10 is read from the order control program storage area 2503. Then, step
In S102, it is determined whether or not a default value is specified (N, F is specified) for the instruction word. If no default value is specified, in step S104, the link element memory
The instruction is executed with reference to the contents of the designated address 2505. As described above, an instruction word for which no default value is specified is executed according to the value of the link element memory 2505.

【0034】ステップS102において、デフォルト値の指
定が有ると判定された場合には、ステップS106へ移行
し、図12に示す通信状態記憶領域2502から命令語で指
定されたリンク要素の通信状態が読み出され、リンク要
素は正常通信状態にあるか否かが判定される。正常通信
状態にある場合には、ステップS104において、リンク要
素メモリ2505の命令語で指定されたアドレスの内容が読
み出され、その内容に従って、命令語が実行される。
If it is determined in step S102 that a default value has been specified, the flow advances to step S106 to read the communication state of the link element specified by the command from the communication state storage area 2502 shown in FIG. Is issued to determine whether the link element is in a normal communication state. If it is in the normal communication state, in step S104, the content of the address specified by the command in the link element memory 2505 is read, and the command is executed according to the content.

【0035】次に、ステップS106において、リンク要素
が正常通信状態にないと判定された場合には、ステップ
S108へ移行し、命令語に記載されたデフォルト値はN(オ
ン)かF(オフ) かが判定される。デフォルト値がN(オン)
であれば、ステップS110において、命令語で指定され
たアドレスのリンク要素の状態をオン状態として命令語
が実行される。一方、デフォルト値がF(オフ) であれ
ば、ステップS112において、命令語で指定されたアドレ
スのリンク要素の状態をオフ状態として命令語が実行さ
れる。このようにして、命令語で指定されたアドレスの
リンク要素が正常通信状態でなく、リンク要素の状態が
確定されない場合には、命令語で指定されたデフォルト
値に従って命令語が実行されることになる。このデフォ
ルト値は、プログラムの正常な実行が可能なように、作
業者によって予め適正に決定された値であるので、ある
PCがリンクラインに接続されていなくともプログラム
の適正な実行が可能となる。
Next, if it is determined in step S106 that the link element is not in the normal communication state,
The flow shifts to S108, where it is determined whether the default value described in the instruction word is N (on) or F (off). Default value is N (on)
If so, in step S110, the instruction is executed with the link element at the address specified by the instruction being in the ON state. On the other hand, if the default value is F (off), in step S112, the command is executed with the state of the link element at the address specified by the command being off. In this way, if the link element at the address specified by the command is not in a normal communication state and the state of the link element is not determined, the command is executed according to the default value specified by the command. Become. Since the default value is a value appropriately determined in advance by an operator so that the program can be normally executed, the program can be properly executed even if a certain PC is not connected to the link line. .

【0036】第2実施例 次に、デフォルト値を他の方法によって与えた実施例に
ついて説明する。RAM250 に、図13に示すようなリ
ンク要素アドレスとデフォルト値との関係を予め規定し
たデフォルト値記憶領域2501を形成しておく。
Second Embodiment Next, an embodiment in which a default value is given by another method will be described. In the RAM 250, a default value storage area 2501 in which the relationship between the link element address and the default value as shown in FIG.

【0037】CPU200 は、順次制御プログラムを実行
する前に、図14に示す処理手順のプログラムを実行す
る。ステップS200では通信状態記憶領域2502を検索す
る。そして、ステップS202において、正常通信状態にな
いリンク要素について、デフォルト値記憶領域2501を検
索して、対応するデフォルト値をリンク要素メモリ2505
の対応するアドレスに格納する。正常通信状態にないリ
ンク要素のリンクデータは受信されないので、リンク要
素メモリ2505の値は変化することなく、設定されたデフ
ォルト値となる。このようにして、リンク要素メモリ25
05にデフォルト値が設定された後に、順序制御プログラ
ムがリンク要素メモリ2505を参照して実行される。この
結果、正常通信状態にないリンク要素に関しても、適正
な状態を決定することができ、順序制御プログラムの適
正な実行が可能となる。
Before executing the control program, the CPU 200 executes the program of the processing procedure shown in FIG. In step S200, the communication state storage area 2502 is searched. In step S202, the default value storage area 2501 is searched for the link element that is not in the normal communication state, and the corresponding default value is stored in the link element memory 2505.
Is stored at the corresponding address. Since the link data of the link element that is not in the normal communication state is not received, the value of the link element memory 2505 does not change and becomes the set default value. In this way, the link element memory 25
After the default value is set to 05, the sequence control program is executed with reference to the link element memory 2505. As a result, an appropriate state can be determined for a link element that is not in a normal communication state, and an appropriate execution of the sequence control program can be performed.

【0038】第3実施例 次に、入出力要素をアドレスで指定するのではなく、信
号名で指定された場合の実施例について説明する。この
場合、シーケンス処理部201 は図15に示すように制御処
理部2011及び信号名情報解釈部2012にて構成される。制
御処理部2011は、順序制御プログラム記憶領域2503の記
憶内容に基づき対応するステーションST0 等の制御を行
う部材である。また、信号名情報解釈部2012は、例えば
外部から信号名が入力された場合に、これをもって入出
力要素メモリ2506もしくは順序制御プログラム記憶領域
2503の対応する入出力アドレスの部分の内容を確認すべ
き指示であると解釈する。また、あるいは信号名・アド
レス変換テーブル部2500の記憶内容に基づき信号名及び
入出力アドレスが入力されたものとして解釈する。信号
名情報解釈部2012は、信号名の入力が入出力要素メモリ
2506もしくは順序制御プログラム記憶領域2503への新規
書き込みの指示と共になされている場合には信号名・ア
ドレス変換テーブル部2500を参照して処理を行い、それ
以外の指示、例えば入出力要素メモリ2506もしくは順序
制御プログラム記憶領域2503から対応箇所を読み出すべ
き指示と共になされている場合には、この信号名・入出
力アドレス変換テーブル部2500を参照する処理は特に行
わない。なお、実際の情報の読み出しや書き換えあるい
は新規書き込みは、制御処理部2011にて行われる。もち
ろん、信号名処理部2012がかかる処理を行う能力を備え
ていても構わない。信号名で与えられたラダー回路は図
16に示すような回路である。入出力要素のアドレスの
代わりに信号名DOP,D1P,12D2X,M2X 等が用いられてい
る。又、リンク要素のデフォルト値に関して、第1実施
例と同様に「-N」, 「-F」により、オン、オフの指定が
行われている。
Third Embodiment Next, a description will be given of an embodiment in which input / output elements are specified not by addresses but by signal names. In this case, the sequence processing unit 201 includes a control processing unit 2011 and a signal name information interpreting unit 2012 as shown in FIG. The control processing unit 2011 is a member that controls the corresponding station ST0 and the like based on the contents stored in the order control program storage area 2503. Further, for example, when a signal name is input from the outside, the signal name information interpreting unit 2012 sends the signal name to the input / output element memory 2506 or the order control program storage area.
It is interpreted as an instruction to check the contents of the corresponding input / output address portion of 2503. Alternatively, the signal name and the input / output address are interpreted as having been input based on the storage contents of the signal name / address conversion table section 2500. The signal name information interpreter 2012 uses the input / output element memory
2506 or the sequence control program, if it is performed together with a new writing instruction to the storage area 2503, the processing is performed with reference to the signal name / address conversion table section 2500, and other instructions, for example, the input / output element memory 2506 or the order. If the instruction is issued together with an instruction to read a corresponding location from the control program storage area 2503, the processing for referring to the signal name / input / output address conversion table 2500 is not particularly performed. Note that the reading, rewriting, or new writing of actual information is performed by the control processing unit 2011. Of course, the signal name processing unit 2012 may have the ability to perform such processing. The ladder circuit given by the signal name is a circuit as shown in FIG. Instead of the addresses of the input / output elements, signal names DOP, D1P, 12D2X, M2X, etc. are used. As for the default value of the link element, ON and OFF are designated by "-N" and "-F" as in the first embodiment.

【0039】図16に示すラダー回路に対応したソース
プログラムは図17に示すものとなる。入出力要素のア
ドレスの代わりに信号名が用いられている。又、リンク
要素のデフォルト値は、N,F で指定されている。
A source program corresponding to the ladder circuit shown in FIG. 16 is as shown in FIG. The signal name is used instead of the address of the input / output element. The default value of the link element is specified by N, F.

【0040】これらの信号名とアドレスとの関係を規定
した図18に示すテーブルがRAM250 に形成された信
号名アドレス変換テーブル記憶領域2500に記憶されてい
る。そして、図17に示すソースプログラムにおいて、
信号名は信号名アドレス変換テーブルを検索してアドレ
スに変換される。その後に、順序制御プログラムが実行
されるが、その処理手順は第1実施例で記載された図1
1の処理手順と同様である。
A table shown in FIG. 18 defining the relationship between these signal names and addresses is stored in a signal name / address conversion table storage area 2500 formed in the RAM 250. Then, in the source program shown in FIG.
The signal name is converted into an address by searching a signal name address conversion table. Thereafter, the order control program is executed, and the processing procedure is as shown in FIG. 1 described in the first embodiment.
This is the same as the processing procedure of No. 1.

【0041】第4実施例 次に、第3実施例と同様に、信号名を用いた実施例にお
いて、第2実施例と同様の方法でデフォルト値を与える
こともできる。即ち、デフォルト値記憶領域2501に、信
号名とデフォルト値との対応テーブルを作成しておく。
そして、順序制御プログラムを実行する前に、第2実施
例と同様に図14に示す処理手順が実行される。即ち、
通信状態記憶領域2502が検索され、正常通信状態にない
リンク要素が選択される。次に、そのリンク要素のアド
レスから、図18に示す信号名アドレス変換テーブルを
検索して、対応するリンク要素の信号名が決定される。
次に、その信号名から、図19に示すデフォルト値記憶
領域2501が検索され、対応するデフォルト値が決定され
る。そして、そのデフォルト値は、リンク要素メモリ25
05の対応するアドレスに格納される。このような操作
が、正常通信状態にない全てのリンク要素に関して実行
される。その結果、正常通信状態にないリンク要素に関
しては、リンク要素メモリ2505の対応するアドレスにデ
フォルト値が設定されることになる。順序制御プログラ
ムを実行する場合には、リンク要素については、リンク
要素メモリ2505が参照されて、その状態が決定される。
Fourth Embodiment Next, as in the third embodiment, in the embodiment using signal names, a default value can be given in the same manner as in the second embodiment. That is, a correspondence table between signal names and default values is created in the default value storage area 2501.
Then, before executing the sequence control program, the processing procedure shown in FIG. 14 is executed as in the second embodiment. That is,
The communication state storage area 2502 is searched, and a link element that is not in a normal communication state is selected. Next, the signal name address conversion table shown in FIG. 18 is searched from the address of the link element, and the signal name of the corresponding link element is determined.
Next, a default value storage area 2501 shown in FIG. 19 is searched from the signal name, and a corresponding default value is determined. And the default value is the link element memory 25
Stored at the corresponding address of 05. Such an operation is performed for all link elements that are not in a normal communication state. As a result, for a link element that is not in a normal communication state, a default value is set to a corresponding address in the link element memory 2505. When the order control program is executed, the state of the link element is determined by referring to the link element memory 2505.

【0042】[0042]

【発明の効果】本発明は、リンクラインを介して、他の
プログラマブルコントローラ(PC)に属する入出力要
素の状態を、自己の入出力要素の状態と同様にアクセス
可能なリンク要素メモリに記憶し、そのリンク要素メモ
リをアクセスすることにより、他のPCに属する入出力
要素の状態を参照して、各PC間のインターロック制御
を可能としたプログラマブルコントローラ(PC)にお
いて、PCの順序制御を表記したプログラムに於いて参
照される他のPCに属する入出力要素の状態のデフォル
ト値を指定するデフォルト値指定手段と、他のPCに属
する入出力要素の状態が正常受信状態にあるか否かを判
定する受信判定手段と、受信状態にないと判定されたP
Cに属する入出力要素の状態は、デフォルト値指令手段
により指定された値を参照して順序制御を実行する順序
制御実行手段とを有している。従って、リンクラインに
入出力要素が参照されているPCが接続されていなくて
も、その入出力要素を参照しているPCは、デフォルト
値に従って順序制御を実行することが可能となる。この
デフォルト値は、そのPCがリンクラインに接続されて
いない場合において、PCが処理を矛盾なく実行できる
ような値に設定されていることから、一部のPCがリン
クラインに接続されていなくても、順序制御プログラム
を修正することなくシステムの部分運転が可能となる。
このことから、システムの保守、点検、新システムの立
ち上げ等において、順序制御プログラムを変更すること
なく一部のPCだけでの運転が可能となり、作業性が向
上する。
According to the present invention, the state of an input / output element belonging to another programmable controller (PC) is stored in a link element memory that can be accessed similarly to the state of its own input / output element via a link line. In the programmable controller (PC) that enables interlock control between the PCs by accessing the link element memory and referring to the states of input / output elements belonging to other PCs, the order control of the PCs is described. Value designation means for designating a default value of the state of the input / output element belonging to another PC referred to in the program, and determining whether or not the state of the input / output element belonging to the other PC is in the normal reception state. The receiving determination means for determining and the P determined to be not in the receiving state
The state of the input / output element belonging to C has order control executing means for executing the order control with reference to the value designated by the default value command means. Therefore, even if the PC which refers to the input / output element is not connected to the link line, the PC which refers to the input / output element can execute the order control according to the default value. This default value is set to a value that allows the PC to execute processing without contradiction when the PC is not connected to the link line, so that some PCs are not connected to the link line. In addition, partial operation of the system can be performed without modifying the sequence control program.
Thus, in system maintenance, inspection, start-up of a new system, and the like, it is possible to operate only some PCs without changing the sequence control program, thereby improving workability.

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

【図1】リンクラインで接続される複数のPCと各PC
により制御されるステ−ションとを示す説明図。
FIG. 1 shows a plurality of PCs connected by link lines and each PC
FIG. 4 is an explanatory diagram showing a station controlled by the control.

【図2】図1の各PCの構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of each PC in FIG. 1;

【図3】順序制御プログラムに対応したラダー回路を示
した回路図。
FIG. 3 is a circuit diagram showing a ladder circuit corresponding to an order control program.

【図4】リンクパラメータを示した説明図。FIG. 4 is an explanatory diagram showing link parameters.

【図5】リンクラインに伝送されるリンクデータを示し
た説明図。
FIG. 5 is an explanatory diagram showing link data transmitted to a link line.

【図6】PCの機能を説明するブロック図。FIG. 6 is a block diagram illustrating functions of a PC.

【図7】各PCにおけるリンク要素メモリの対応関係を
示した説明図。
FIG. 7 is an explanatory diagram showing the correspondence between link element memories in each PC.

【図8】各PCのCPU200 での通信制御処理の手順を
示すフロ−チャ−ト。
FIG. 8 is a flowchart showing a procedure of a communication control process in a CPU 200 of each PC.

【図9】各PCのCPU200 での通信制御処理の手順を
示すフロ−チャ−ト。
FIG. 9 is a flowchart showing a procedure of a communication control process in a CPU 200 of each PC.

【図10】ラダー回路に対応したソースプログラムを示
した説明図。
FIG. 10 is an explanatory diagram showing a source program corresponding to the ladder circuit.

【図11】各PCのCPU200 による順序制御プログラ
ムの実行手順を示したフローチャート。
FIG. 11 is a flowchart showing an execution procedure of an order control program by a CPU 200 of each PC.

【図12】通信状態記憶領域の内容を示した説明図。FIG. 12 is an explanatory diagram showing the contents of a communication status storage area.

【図13】他の実施例におけるデフォルト値記憶領域の
内容を示した説明図。
FIG. 13 is an explanatory diagram showing the contents of a default value storage area in another embodiment.

【図14】その実施例における各PCのCPU200 によ
りデフォルト値設定の手順を示した説明図。
FIG. 14 is an explanatory diagram showing a procedure for setting a default value by the CPU 200 of each PC in the embodiment.

【図15】他の実施例におけるPCの機能を説明するブ
ロック図。
FIG. 15 is a block diagram illustrating functions of a PC according to another embodiment.

【図16】他の実施例におけるラダー回路を示した回路
図。
FIG. 16 is a circuit diagram showing a ladder circuit according to another embodiment.

【図17】そのラダー回路に対応したソースプログラム
を表した説明図。
FIG. 17 is an explanatory diagram showing a source program corresponding to the ladder circuit.

【図18】その実施例における信号名とアドレスとの対
応関係を示した説明図。
FIG. 18 is an explanatory diagram showing the correspondence between signal names and addresses in the embodiment.

【図19】その実施例におけるデフォルト値記憶領域の
内容を示した説明図。
FIG. 19 is an explanatory diagram showing the contents of a default value storage area in the embodiment.

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

PC01〜PC32 プログラマブルコントロ−ラ, PC01 ~ PC32 Programmable controller,

フロントページの続き (56)参考文献 特開 平3−127104(JP,A) 特開 昭59−205640(JP,A) 特開 平2−155026(JP,A) 特開 平2−257349(JP,A) 特開 昭58−84307(JP,A) (58)調査した分野(Int.Cl.6,DB名) G05B 19/04 - 19/05 Continuation of the front page (56) References JP-A-3-127104 (JP, A) JP-A-59-205640 (JP, A) JP-A-2-155026 (JP, A) JP-A-2-257349 (JP) , A) JP-A-58-84307 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G05B 19/04-19/05

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 信号を伝送するリンクラインを介して伝
送された、他のプログラマブルコントローラ(PC)に
属する入出力要素の状態を、自己の入出力要素の状態と
同様にアクセス可能なリンク要素メモリに記憶し、その
リンク要素メモリをアクセスすることにより、他のPC
に属する入出力要素の状態を参照して、各PC間のイン
ターロック制御を可能としたプログラミングコントロー
ラ(PC)において、 PCの順序制御を表記したプログラムに於いて参照され
る他のPCに属する入出力要素の状態のデフォルト値を
指定するデフォルト値指定手段と、前記他のPCに属す
る入出力要素の状態が正常受信状態にあるか否かを判定
する受信判定手段と、 前記受信判定手段により正常受信状態にないと判定され
た入出力要素の状態は、前記デフォルト値指令手段によ
り指定された値を参照して前記順序制御を実行する順序
制御実行手段とを有するインターロック制御の可能なP
C。
A link element memory which can access the state of an input / output element belonging to another programmable controller (PC) transmitted via a link line for transmitting a signal in the same manner as the state of its own input / output element. To the other PC by accessing the link element memory.
In a programming controller (PC) that enables interlock control between PCs by referring to the states of input / output elements belonging to the PC, the input controller belonging to another PC referred to in a program describing the order control of the PCs Default value designating means for designating a default value of the state of the output element, reception determining means for determining whether the state of the input / output element belonging to the other PC is in a normal reception state, and normality by the reception determining means The state of the input / output element that is determined not to be in the receiving state is determined by a P-controllable P which includes an order control executing means for executing the order control by referring to a value designated by the default value command means.
C.
JP24477291A 1991-08-29 1991-08-29 PC with interlock control Expired - Fee Related JP2921206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24477291A JP2921206B2 (en) 1991-08-29 1991-08-29 PC with interlock control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24477291A JP2921206B2 (en) 1991-08-29 1991-08-29 PC with interlock control

Publications (2)

Publication Number Publication Date
JPH0553619A JPH0553619A (en) 1993-03-05
JP2921206B2 true JP2921206B2 (en) 1999-07-19

Family

ID=17123686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24477291A Expired - Fee Related JP2921206B2 (en) 1991-08-29 1991-08-29 PC with interlock control

Country Status (1)

Country Link
JP (1) JP2921206B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4941748B2 (en) * 2007-07-19 2012-05-30 横河電機株式会社 Safety control system

Also Published As

Publication number Publication date
JPH0553619A (en) 1993-03-05

Similar Documents

Publication Publication Date Title
US7110837B2 (en) Control system and method for on-line editing of user program
US5265004A (en) Sequence controller with combinatorial Boolean logic
JP6477555B2 (en) RELAY DEVICE, RELAY DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
EP0436035B1 (en) Machine operation history display method
JP2017167593A (en) Relay device, relay device control method, control program, and recording medium
US20050086560A1 (en) Programmable controller, programmable controller system, CPU unit and method of starting duplexed operation
EP0845721B1 (en) Numerical controller
US5497315A (en) Programming device for programmable sequence controllers
JP2921206B2 (en) PC with interlock control
JP3216020B2 (en) Link device for programmable controller
JP3269164B2 (en) Peripheral device of programmable controller
EP0444535B1 (en) Programmable controller having automatic control of interlock process
JPH086614A (en) Programmable controller
JP3109262B2 (en) Master slave network system
JPH06250709A (en) Peripheral equipment of programmable controller
JPH10124119A (en) Sequence program editing method
JP3352557B2 (en) How to monitor the electronic control unit
JP2807584B2 (en) PC programming device
JPH08278935A (en) Programmable controller
JPH09222911A (en) NC machine tool failure diagnosis method and apparatus
JPH0562485A (en) Rewriting device for erasable read-only memory of control device
JPH07141012A (en) Numerical control device for machine tools
JPH08331609A (en) Electronic equipment and electronic equipment manufacturing equipment
JPH0512901U (en) PC data link device
CN120344348A (en) Working systems, working methods and processing procedures

Legal Events

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