JPH0225904A - Link system for programmable controller - Google Patents
Link system for programmable controllerInfo
- Publication number
- JPH0225904A JPH0225904A JP63175237A JP17523788A JPH0225904A JP H0225904 A JPH0225904 A JP H0225904A JP 63175237 A JP63175237 A JP 63175237A JP 17523788 A JP17523788 A JP 17523788A JP H0225904 A JPH0225904 A JP H0225904A
- Authority
- JP
- Japan
- Prior art keywords
- data
- station
- programmable controller
- reception data
- abnormality
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005856 abnormality Effects 0.000 claims abstract description 17
- 230000005540 biological transmission Effects 0.000 abstract description 10
- 238000004891 communication Methods 0.000 abstract description 8
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 8
- 238000012790 confirmation Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004092 self-diagnosis Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Small-Scale Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明は、親局と子局との間でインターフェースモジ
ュールを介してデータの授受を行うプログラマブルコン
トローラのリンクシステム、特にその親局及び子局の通
信異常の際の処理に関する。Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a link system for a programmable controller that exchanges data between a master station and a slave station via an interface module, and particularly to a link system for a programmable controller that exchanges data between a master station and a slave station. Regarding processing in case of communication abnormality.
(従来の技術及び発明が解決しようとする課題)従来こ
の種のプログラマブルコントローラのリンクシステムに
おいては、相手局が電源オフなどにより無通信異常が発
生したり、パリティ異常が発生するなどして異常状態が
発生した場合には、相手局から受信したデータをクリア
していた。プログラマブルコントローラのリンクシステ
ムにおいては、通常相手局とのインターロックがプログ
ラムされており、もし相手局が正常な停止状態にあって
も、電源をオフにするとデータがクリアされるので、電
源をオフにすることができないでいた。このため、その
ような状態を避けるため無駄な費用が発生したり、或い
はその部分のみ電源をオフにして修理等をすることがで
きなかった。(Prior art and problems to be solved by the invention) Conventionally, in the link system of this type of programmable controller, the partner station is in an abnormal state due to a no-communication error occurring due to power off, etc., or a parity error occurring. When this occurred, the data received from the other station was cleared. In the link system of a programmable controller, an interlock with the partner station is normally programmed, and even if the partner station is in a normal stopped state, the data will be cleared when the power is turned off. I couldn't do it. Therefore, in order to avoid such a situation, unnecessary costs are incurred, or it is not possible to perform repairs by turning off the power only to that part.
このような不便な状態を改善する方法として、異常発生
時にデータをクリアせずに、CPUモジュール内に異常
フラグ(内部リレー)を設けてユーザー側でプログラム
によるデータの処理(クリアする/しない)を行わせて
いた。As a way to improve this inconvenient situation, instead of clearing the data when an error occurs, an error flag (internal relay) is set up in the CPU module and the user can process the data (clear/not clear) using the program. I was letting it happen.
ところが、異常フラグによりデータ処理するCPUモジ
ュールのプログラムは、入力データに点数が増えればそ
の処理プログラムも大容量となるという問題点があった
。However, the CPU module program that processes data using the abnormality flag has a problem in that as the number of input data points increases, the processing program also becomes large in capacity.
この発明はかかる問題点を解決するためになされたもの
で、通信異常が卓発生した際に容易に対応できるように
したプログラマブルコントローラのリンクシステムを得
ることを目的とする。The present invention was made to solve these problems, and an object of the present invention is to provide a link system for a programmable controller that can be easily dealt with when a communication abnormality occurs.
(課題を解決するための手段)
この発明に係るプログラマブルコントローラのリンクシ
ステムにおいて、親局側及び子局のインターフェースモ
ジュールには、受信データをクリアさせる基準となるフ
ラグを設定した受信データクリアフラグ記憶手段と、受
信データの異常の有無をチェックする受信データチェッ
ク手段とを有する。(Means for Solving the Problems) In the programmable controller link system according to the present invention, the interface modules of the master station side and the slave station have reception data clear flag storage means in which a flag is set as a reference for clearing the reception data. and a received data checking means for checking whether there is an abnormality in the received data.
更に、受信データチェック手段の異常ありの出力があっ
た際に、受信データクリアフラグ記憶手段のフラグのオ
ン信号に基づいてCPUモジュールのデータをリセット
する演算手段を有する。Furthermore, it has arithmetic means for resetting the data of the CPU module based on the ON signal of the flag of the received data clear flag storage means when there is an output indicating that there is an abnormality from the received data checking means.
(作用)
この発明において、相手局に異常が発生していると受信
データチェック手段により検出され、受信データクリア
フラグ記憶手段のフラグがセットされていてオンになっ
ている場合には、演算手段によりCPUモジュールへの
受信データをリセットする。(Operation) In the present invention, when the received data check means detects that an abnormality has occurred in the partner station, and the flag in the received data clear flag storage means is set and turned on, the calculation means Reset the received data to the CPU module.
(実施例)
第1図はこの発明の一実施例の親局と子局との関係を示
すブロック図で、第2図はプログラマブルコントローラ
のリンクシステム全体の構成図、第3A図及び第3B図
は第1図のインターフェースモジュールの動作を示した
フローチャート、第4図はシステムデータのテーブルを
示す説明図である。(Embodiment) Fig. 1 is a block diagram showing the relationship between a master station and a slave station in an embodiment of the present invention, Fig. 2 is a block diagram of the entire link system of a programmable controller, and Figs. 3A and 3B. is a flowchart showing the operation of the interface module of FIG. 1, and FIG. 4 is an explanatory diagram showing a table of system data.
第1図において、(lO)は親局プログラマブルコント
ローラ(100)のCPUモジュールで、(20)はそ
のインターフェースモジュール(以下IFモジュールと
いう)である。CPUモジュール(lO)は、CP U
(11)、ROM (12)、RA M (12)等
から構成されている。IFモジュール(20)は、共有
RAM(21)、CPU等から構成される信号処理回路
(22)及びシリアルポート(23)から構成されてい
る。In FIG. 1, (lO) is the CPU module of the master station programmable controller (100), and (20) is its interface module (hereinafter referred to as IF module). The CPU module (lO)
(11), ROM (12), RAM (12), etc. The IF module (20) is composed of a shared RAM (21), a signal processing circuit (22) composed of a CPU, etc., and a serial port (23).
(60)は子局プログラマブルコントローラ(200)
のCPUモジュールで、(70)はそのインターフェー
スモジュール(以下IFモジュールという)である。C
PUモジュール(60)は、CP U (61)、RO
M (62)、RA M (82)等から構成されてい
る。IFモジュール(70)は、共有RA M (71
)、CPU等から構成される信号処理回路(72)及び
シリアルボー ) (73)から構成されている。(60) is the slave station programmable controller (200)
(70) is its interface module (hereinafter referred to as IF module). C
The PU module (60) includes the CPU (61), RO
It consists of RAM (62), RAM (82), etc. The IF module (70) has a shared RAM (71
), a signal processing circuit (72) consisting of a CPU, etc., and a serial board (73).
以上のように親局のプログラマブルコントローラのハー
ド構成と子局のプログラマブルコントローラのハード構
成とは基本的には同一であるが、後述するようにその機
能は異なっている。As described above, the hardware configuration of the programmable controller of the master station and the hardware configuration of the programmable controller of the slave station are basically the same, but their functions are different as will be described later.
プログラマブルコントローラのリンクシステムの全体構
成は、第2図に示すように、親局のプログラマブルコン
トローラ(10G)に対して複数の子局のプログラマブ
ルコントローラ(200)がバスを介して接続されてい
る。As shown in FIG. 2, the overall configuration of the programmable controller link system includes a master station programmable controller (10G) and a plurality of slave station programmable controllers (200) connected via a bus.
ここで、再び第1図に戻って親局のIFモジュール(2
0)の動作を第3A図及び第3B図のフローチャートに
基づいて説明する。Now, returning to Figure 1 again, we will explain the IF module (2) of the master station.
The operation of step 0) will be explained based on the flowcharts of FIGS. 3A and 3B.
親局のIFモジュール(20)の信号処理回路(22)
は、電源がオンになった後自己のシステムについて自己
診断する(SO)。この自己診断では、演算回路内のR
OMSRAM、伝送ボート、伝送用電源等が正常ぶどう
かをチェックする。正常であれば(St)、次のステッ
プに進んで、CPUモジュール(10)のシステムデー
タの設定が完了しているかどうかをチェックする(S2
)。Signal processing circuit (22) of the IF module (20) of the master station
performs a self-diagnosis on its own system after it is powered on (SO). In this self-diagnosis, R in the arithmetic circuit is
Check whether OMSRAM, transmission boat, transmission power supply, etc. are normal. If it is normal (St), proceed to the next step and check whether the system data setting of the CPU module (10) is completed (S2
).
ここで、CPUモジュール(lO)のシステムデータの
設定が完了したときには、その完了と同時に共有RA
M (21)に設定完了フラグ(SF)が設定される構
成になっており、従って、信号処理回路(22)がその
フラグ(sp)がセットされているどうかをチェックす
ることで、CPUモジュール(10)のシステムデータ
の設定が完了したかどうかを判別する。Here, when the system data settings for the CPU module (lO) are completed, the shared RA
The configuration is such that a setting completion flag (SF) is set in M (21), and therefore, the signal processing circuit (22) checks whether the flag (sp) is set or not, and the CPU module ( 10) Determine whether the system data setting is completed.
このシステムデータは、第4図の説明図に示すように、
子局ごとの大刃先頭アドレス、人力点数、出刃先頭アド
レス及び出力点数から構成されている。This system data, as shown in the explanatory diagram of Fig. 4,
It consists of the large blade head address, manual points, blade head address, and output points for each slave station.
CPUモジュール(10)のシステムデータの設定が完
了していると、次に、CPUモジュール(10)のRA
M (13)からその内容を読み込んで共有RAM
(21)に格納する(S3)。Once the system data settings for the CPU module (10) have been completed, next the CPU module (10) RA
Read the contents from M (13) and store it in the shared RAM.
(21) (S3).
次に自局設定をチェックする(S4)。この自局設定の
チェック内容は、親局/子局の局番チェック、伝送点数
の照合、先頭アドレス等の春チェックである。異常であ
ると判断されると(S5)、ステップ(S2)に戻って
新たなシステムデータ′の設定の直しを待つ。Next, check the own station settings (S4). The contents of this self-station setting check include checking the station numbers of the master station/slave station, collating the number of transmission points, and spring checking of the start address. If it is determined that there is an abnormality (S5), the process returns to step (S2) and waits for the setting of new system data' to be corrected.
次に、自局設定が正常であると判断されると(S5)、
リンク確認シーケンスが正常であるかどうかを判別する
(S6)。ここではその詳細は省略するが、無通信異常
、パリティ異常、設定異常等がチェックされて、異常が
あるとステップ(S2)に戻って新たにシステムデータ
を設定し直す。リンク確認シーケンスが完了すると(S
7)、リンク確認完了フラグ(CF)をセットする(S
8)。Next, when it is determined that the own station settings are normal (S5),
It is determined whether the link confirmation sequence is normal (S6). Although the details are omitted here, no-communication abnormalities, parity abnormalities, setting abnormalities, etc. are checked, and if an abnormality is found, the process returns to step (S2) and new system data is set. Once the link verification sequence is complete (S
7) Set the link confirmation completion flag (CF) (S
8).
その後CPUモジュール(lO)から送信データを読み
込んで共有RAMを介して読み込み(S9)、通信シー
ケンスによりデータの送受信を行う(810)。Thereafter, transmission data is read from the CPU module (IO) and read through the shared RAM (S9), and data is transmitted and received according to the communication sequence (810).
ここでは各子局に対して該当するデータを順次送信し、
次に子局からのデータを受信する。そのとき、無通信異
常やパリティ異常がないと(Sll)、受信データを共
通RA M (21)に書き込む。共通RA M (2
1)に書き込まれた受信データはCPUモジュール(l
O)のRA M (13)に書き込まれる(812)。Here, the corresponding data is sequentially transmitted to each slave station,
Next, data from the slave station is received. At that time, if there is no communication error or parity error (Sll), the received data is written to the common RAM (21). Common RAM (2
The received data written in 1) is sent to the CPU module (l
O) is written to RAM (13) (812).
次に、再スタートフラグ(RF)がセットされているか
どうかをチェックする(S13)。この再スタートフラ
グ(RF)はプログラム等を変更する際にセットされる
ものであり、CPUモジュール(lO)から指示される
。Next, it is checked whether the restart flag (RF) is set (S13). This restart flag (RF) is set when changing a program, etc., and is instructed by the CPU module (IO).
再スタートフラグがセットされていない場合には、ステ
ップ(S9)に戻ってCPUモジュール(10)から送
信データを読み込んで、送受信を繰返す。If the restart flag is not set, the process returns to step (S9), reads the transmission data from the CPU module (10), and repeats transmission and reception.
再スタートフラグがセットされている場合には、リンク
確認完了フラグ(CP)をリセットしく514)その後
ステップ(S2)に戻り、再び設定完了フラグ(SP)
がセットされているかどうかをチェックして、セットさ
れていたなら新たに設定され直したシステムデータを読
み込む(S3)。以下同様な動作を繰返して行く。If the restart flag is set, reset the link confirmation completion flag (CP) (514), then return to step (S2) and set the setting completion flag (SP) again.
is set, and if so, the newly set system data is read (S3). The same operation is repeated below.
一方、無通信異常、パリティ異常等が発生していると(
sti) 、次に受信データクリアフラグ(ZF)がセ
ットされてオンになっているかどうかをチェックする(
S15)。この受信データクリアフラグ(2F)は、ユ
ーザーにより予めCPUモジュール(lO)を介して共
通RA M (21)にセット又はリセットされている
フラグである。受信データクリアフラグ(ZF)がセッ
トされてオンになっていると、共有RA M (21)
を介してCPUモジュール(10)のRAM(12)の
該当する領域「0」を書き込む(81B)。On the other hand, if a no-communication error, parity error, etc. occurs (
sti), then check whether the received data clear flag (ZF) is set and turned on (
S15). This received data clear flag (2F) is a flag that is set or reset in advance in the common RAM (21) by the user via the CPU module (IO). When the receive data clear flag (ZF) is set and turned on, the shared RAM (21)
81B).
このステップ(S113)の後、又は受信データクリア
フラグ(zp)がオフになっていると、次に再スタート
フラグ(RP)がセットされてオンになっているかどう
かをチェックする(S17)。再スタートフラグ(RF
)がオフになっていると、再びステップ(815)に戻
り、ステップ(815) −(81B) −(817)
又はステップ(S15)−(S17)というループを繰
り返す。 再スタートフラグ(RF)がオンになってい
ると、再スタートの演算処理をするため、ステップ(S
2)に戻る。After this step (S113), or if the received data clear flag (zp) is turned off, it is next checked whether the restart flag (RP) is set and turned on (S17). Restart flag (RF
) is off, the process returns to step (815) and steps (815) - (81B) - (817)
Alternatively, the loop of steps (S15)-(S17) is repeated. If the restart flag (RF) is on, the step (S
Return to 2).
一方、子局のIFモジュール(70)もその動作は第3
A図及び第3B図のフローチャートと同様であり、ステ
ップ(810)で親局からのデータの受信及び親局への
送信がなされ、ここで、図の破線で囲んだ部分に示すよ
うに、親局からの送信データにリンク確認シーケンスが
含まれていると(この場合は親局の設定が変更されてい
る) (SLOa)、リンク確認完了フラグ(CP)を
リセットした(SlOb)後ステップ(S2)に戻り、
上記と同様な動作を繰返して、CPUモジュール(60
)からの新たなシステムデータを設定して、システム変
更をしていく。On the other hand, the IF module (70) of the slave station also operates in the third mode.
This is similar to the flowcharts in Figures A and 3B, and in step (810) data is received from the master station and transmitted to the master station. If the transmission data from the station includes a link confirmation sequence (in this case, the settings of the master station have been changed) (SLOa), the link confirmation completion flag (CP) is reset (SlOb) and then step (S2 ),
Repeat the same operation as above to install the CPU module (60
) and change the system by setting new system data.
以上のようにして親局及び子局でそれぞれシステムを変
更する際には、再スタートフラグ(R3)をセットして
CPUモジュールのリンクデータを読み込むようにして
いる。また、親局と子局の同期を図る場合に、親局でシ
ステムデータの変更をした場合には、リンク確認シーケ
ンスを子局に送信してそのタイミングで子局のシステム
を変更するようにしている。As described above, when changing the system at each of the master station and slave station, the restart flag (R3) is set and the link data of the CPU module is read. Also, when synchronizing the master station and slave stations, if the system data is changed on the master station, a link confirmation sequence is sent to the slave station and the slave station's system is changed at that timing. There is.
また、ユーザーによりIFモジュールに受信データクリ
アフラグ(ZP)をセット又はリセットさせて、送信相
手の局で異常状態が発生した場合に対応するようにして
いる。Furthermore, the user can set or reset a received data clear flag (ZP) in the IF module to cope with the occurrence of an abnormal condition at the transmission destination station.
(発明の効果)
以上のようにこの発明によれば、ユーザーによりIFモ
ジュールに受信データクリアフラグをセット又はリセッ
トし、送信相手の局で異常状態が発生した場合にCPU
モジュールへの受信データをクリア又はそのままにする
ようにしているので、相手局の異常発生時の対応が簡単
なものとなっている。(Effects of the Invention) As described above, according to the present invention, the user can set or reset the received data clear flag in the IF module, and when an abnormal state occurs in the transmission destination station, the CPU
Since the received data to the module is cleared or left as is, it is easy to respond when an abnormality occurs in the partner station.
第1図はこの発明の一実施例の親局と小局との関係を示
すプログラマブルコントローラのブロック図、第2図は
プログラマブルコントローラのリンクシステム全体の構
成図、第3A図及び第3B図は第1図のIFモジュール
の動作を示すフローチャートで、第4図はシステムデー
タのテーブルを示した説明図である。FIG. 1 is a block diagram of a programmable controller showing the relationship between a master station and a small station in an embodiment of the present invention, FIG. 2 is a block diagram of the entire link system of the programmable controller, and FIGS. 3A and 3B are block diagrams of the programmable controller. FIG. 4 is a flowchart showing the operation of the IF module shown in FIG. 1, and FIG. 4 is an explanatory diagram showing a table of system data.
Claims (1)
局としてプログラマブルコントローラを有し、それぞれ
のプログラマブルコントローラにはCPUモジュール及
びインターフェースモジュールを備え、親局と子局との
間でインターフェースモジュールを介してデータの授受
を行うプログラマブルコントローラのリンクシステムに
おいて、親局側及び子局のインターフェースモジュール
には、受信データをクリアさせる基準となるフラグを設
定した受信データクリアフラグ記憶手段と、受信データ
の異常の有無をチェックする受信データチェック手段と
、受信データチェック手段の異常ありの出力があった際
に、受信データクリアフラグ記憶手段のフラグのオン信
号に基づいてCPUモジュールのデータをリセットする
演算手段とを有することを特徴とするプログラマブルコ
ントローラのリンクシステム。(1) It has a programmable controller as a master station and a programmable controller as a slave station, each programmable controller is equipped with a CPU module and an interface module, and data is exchanged between the master station and slave stations via the interface module. In a programmable controller link system that performs It is characterized by having a received data checking means, and a calculation means for resetting the data of the CPU module based on the ON signal of the flag of the received data clear flag storage means when there is an output indicating that there is an abnormality from the received data checking means. A programmable controller link system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175237A JPH0225904A (en) | 1988-07-15 | 1988-07-15 | Link system for programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175237A JPH0225904A (en) | 1988-07-15 | 1988-07-15 | Link system for programmable controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0225904A true JPH0225904A (en) | 1990-01-29 |
Family
ID=15992657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63175237A Pending JPH0225904A (en) | 1988-07-15 | 1988-07-15 | Link system for programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0225904A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1255375A4 (en) * | 2000-09-01 | 2006-08-30 | Koyo Electronics Ind Co | Plural station memory data sharing system |
| JP2006276957A (en) * | 2005-03-28 | 2006-10-12 | Yokogawa Electric Corp | Safety system |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60213195A (en) * | 1984-04-06 | 1985-10-25 | Nissin Electric Co Ltd | Remote supervisory and controlling equipment |
| JPS61276001A (en) * | 1985-05-31 | 1986-12-06 | Toshiba Corp | Control device of electronic equipment |
-
1988
- 1988-07-15 JP JP63175237A patent/JPH0225904A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60213195A (en) * | 1984-04-06 | 1985-10-25 | Nissin Electric Co Ltd | Remote supervisory and controlling equipment |
| JPS61276001A (en) * | 1985-05-31 | 1986-12-06 | Toshiba Corp | Control device of electronic equipment |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1255375A4 (en) * | 2000-09-01 | 2006-08-30 | Koyo Electronics Ind Co | Plural station memory data sharing system |
| JP2006276957A (en) * | 2005-03-28 | 2006-10-12 | Yokogawa Electric Corp | Safety system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4979108A (en) | Task synchronization arrangement and method for remote duplex processors | |
| US5428526A (en) | Programmable controller with time periodic communication | |
| CN106603359B (en) | The communicating control method and device of PLC system | |
| JPH07212371A (en) | Common control redundancy system changeover method | |
| JPH0225904A (en) | Link system for programmable controller | |
| JP2709602B2 (en) | Link system for programmable controller | |
| JPS61127251A (en) | Subscriber protocol processing system | |
| JP4938944B2 (en) | Elevator information transmission control device | |
| CN112084067B (en) | Multi-backup data control method, system, storage medium and control device | |
| JP2000227803A (en) | Transmission control method and transmission control system for data link system of programmable controller | |
| JP2004213412A (en) | Redundant controller | |
| JP2770177B2 (en) | Link interface module of programmable controller | |
| JP2640487B2 (en) | Programmable controller system | |
| JP7310695B2 (en) | Communications system | |
| JP2500006Y2 (en) | Programmable controller system | |
| JPS6160445B2 (en) | ||
| KR0143970B1 (en) | Communication port control method of a single processor communicating with a plurality of systems and apparatus therefor | |
| JP2003335470A (en) | Elevator control transmitting system | |
| CN117278633A (en) | Communication method of serial data gateway controller and related components | |
| JPH0365705A (en) | Programmable controller link system | |
| CA1269141A (en) | Task synchronization arrangement and method for remote duplex processors | |
| JP2025068743A (en) | Communication control method and electronic control device | |
| JPH0632156A (en) | Signal line controller for vehicle | |
| JPS6279554A (en) | Data communication system | |
| CN118560338A (en) | Battery management method, medium and vehicle |