JPS63273102A - Remote input and output controller - Google Patents
Remote input and output controllerInfo
- Publication number
- JPS63273102A JPS63273102A JP10620687A JP10620687A JPS63273102A JP S63273102 A JPS63273102 A JP S63273102A JP 10620687 A JP10620687 A JP 10620687A JP 10620687 A JP10620687 A JP 10620687A JP S63273102 A JPS63273102 A JP S63273102A
- Authority
- JP
- Japan
- Prior art keywords
- output
- input
- flag
- data
- signal
- 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
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明はプログラマブルコントローラ、特にそのリモ
ート入出力コントローラの親機との送受信に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a programmable controller, and particularly to transmission and reception between a remote input/output controller and a master unit thereof.
(従来の技術及び発明が解決しようとする問題点)第3
図は従来のプログラマブルコントローラの親局及びリモ
ート局の全体を示したブロック図である。図において、
10は親機となるプログラマブルコントローラで、11
はその入出カモジュール、−12はリモート入出力イン
ターフェース、13はCPU、14は電源である。20
はリモート入出内局で、21はその入出カモジュール、
22はリモート入出力コントローラ、23はその電源で
ある。(Prior art and problems to be solved by the invention) Part 3
The figure is a block diagram showing the entire master station and remote station of a conventional programmable controller. In the figure,
10 is a programmable controller that serves as the main unit, and 11
1 is its input/output module, -12 is a remote input/output interface, 13 is a CPU, and 14 is a power supply. 20
is the remote input/output internal station, 21 is its input/output module,
22 is a remote input/output controller, and 23 is its power supply.
従来のプログラマブルコントローラは以上のように構成
されており、親機10とリモート入出内局20との間で
データの送受信を行っている。その際リモート入出内局
20においては自局の電源23の状態をチェックしてお
り、正常′な場合に入出力データのシリアル通信を行っ
ている。しかし、自局の電源のチェックのみでは外部負
荷電源の故障などによる入出力の誤データの判別ができ
な゛い。The conventional programmable controller is configured as described above, and transmits and receives data between the base unit 10 and the remote input/output station 20. At this time, the remote input/output internal station 20 checks the status of its own power supply 23, and if it is normal, serial communication of input/output data is performed. However, it is not possible to identify incorrect input/output data due to a failure of the external load power supply, etc. by only checking the power supply of the own station.
例えば第4図に示すように、外部負荷電源が遮断すると
その電圧は所定の時間特性で低下するが、例えば時間t
oの間は誤動作しやすい状態となる。For example, as shown in FIG.
During the period o, malfunctions are likely to occur.
親機10では外部電源等が正常あるか否かを余す信号を
入力端子1:′接続し、ユーザソフトにより外部異常時
の安全処理が出来るが、ユーザグツトを持たないリモー
ト入出内局20では汎用入力使用し外部状態を示す信号
を入力しても処理が不可能であるという問題点があった
。In the main unit 10, a signal that indicates whether the external power supply is normal or not is connected to the input terminal 1:', and the user software can perform safety processing in the event of an external abnormality. There is a problem in that even if a signal indicating an external state is inputted, processing is impossible.
この発明はかかる問題点を解決するためになされたもの
であり、リモート入出内局の外部電源を含む外部の状態
をチェックする機能を付加したリモート入出力コントロ
ーラを得ることを目的とする。The present invention has been made to solve these problems, and an object of the present invention is to provide a remote input/output controller having an additional function of checking the external status of the remote input/output internal station, including the external power source.
(問題点を解決するための手段)
この発明に係るリモート入出力コントローラは、正常な
状態で入力しているか否かを検出した信号を入力する入
力手段と、該手段からの入力及び所定の設定命令に基づ
いて親機からの出力情報及び親機への入力情報を制御す
る制御手段とを有するものである。(Means for Solving the Problems) A remote input/output controller according to the present invention includes an input means for inputting a signal detected as to whether the input is in a normal state, and an input from the means and a predetermined setting. It has a control means for controlling output information from the parent device and input information to the parent device based on a command.
(作用)
この発明においては、外部電源等に異常があるとそれが
検知されて親機との送受信が制御される。(Function) In the present invention, if there is an abnormality in the external power supply or the like, it is detected and transmission and reception with the base unit is controlled.
(実施例)
第1図はこの発明の一実施例を示す図であり、30はシ
リアルインターフェース、31は人出力コントロールイ
ンターフェース、32は入力バッファ、33は出力バッ
ファ、34は出力オフフラグ、35は出力保持フラグ、
36はRAMである。(Embodiment) FIG. 1 is a diagram showing an embodiment of the present invention, in which 30 is a serial interface, 31 is a human output control interface, 32 is an input buffer, 33 is an output buffer, 34 is an output off flag, and 35 is an output. retention flag,
36 is a RAM.
出力オフフラグ34及び出力保持フラグ35は便宜上R
AM36とは別体に図示したが、実際はRAM36の一
部において形成されるものである。The output off flag 34 and output hold flag 35 are set to R for convenience.
Although shown separately from the AM 36, it is actually formed as a part of the RAM 36.
37はROMで、プログラムが格納されている。37 is a ROM in which programs are stored.
38はインターフェース、39はディップスイッチで、
異常状態時の出力データ及び入力データの処理方法を設
定するために用いられる。40はホトカブラで、入力側
のホトダイオードは交流及び直流の両方が入力信号とし
て利用できるように、相互に逆方向に並列に接続されて
いる。41は入力端子である。42はCPUで、ROM
37に格納されたプログラムに従って所定の演算を行う
。38 is an interface, 39 is a dip switch,
Used to set the processing method for output data and input data in abnormal conditions. 40 is a photocoupler, and the photodiodes on the input side are connected in parallel in opposite directions so that both alternating current and direct current can be used as input signals. 41 is an input terminal. 42 is the CPU, ROM
Predetermined calculations are performed according to the program stored in 37.
上記のように構成されたリモート入出力コントローラは
、第2図のフローチャートに示すように所定の演算動作
をする。即ち、リモート入出力コントローラはそれ自体
に印加されている電源(第3図の符号23参照)が正常
に電圧を供給しているか否かを判断しくSl)、正常と
判断されると次に外部電源等の状態が正常か否かを判断
する(S2)。この判断はホトカブラ40からの入力の
有無に応じてなされる。The remote input/output controller configured as described above performs predetermined calculation operations as shown in the flowchart of FIG. In other words, the remote input/output controller judges whether the power supply applied to itself (see reference numeral 23 in Figure 3) is normally supplying voltage (Sl), and if it is judged to be normal, then the external It is determined whether the state of the power supply, etc. is normal (S2). This determination is made depending on the presence or absence of input from the photocoupler 40.
例えば正常時には入力端子41に電圧が印加され、ホト
カブラ40がオンしてその信号が取込まれることにより
なされる。正常と判断されると出力オフフラグ34及び
出力保持フラグ35をリセットしてオフにする(S3)
。更に、入出カモジュール21から入出力コントロール
インターフェース31を介して入力データを取込んで(
S4)、入カバファ32.に格納する(S5)。For example, during normal operation, a voltage is applied to the input terminal 41, the photocoupler 40 is turned on, and the signal is taken in. If it is determined to be normal, the output off flag 34 and output hold flag 35 are reset and turned off (S3).
. Furthermore, input data is taken in from the input/output module 21 via the input/output control interface 31 (
S4), input cover 32. (S5).
次に、親機(第3図の符号10参照)からの指示の有無
を判断しくS6)、指示があると出力オフフラグ34が
オンになっているか否かを判断する(S7)。この出力
オフフラグ34はここではオフになっているから、次に
出力保持フラグ34がオンになっているか否かを判断す
る(S8)。Next, it is determined whether there is an instruction from the parent device (see reference numeral 10 in FIG. 3) (S6), and if there is an instruction, it is determined whether the output off flag 34 is on (S7). Since the output off flag 34 is off here, it is next determined whether the output holding flag 34 is on (S8).
ここでは同様にオフになっているから、次に、親機10
からの出力データをシリアルインターフェース30を介
して取込み(S9)、出力バッファ33に格納する(S
10)。入力バッファ32に格納されている入力デー
タはシリアルインターフェース30を介して親機10の
リモート人出力インターフェース12に送出される(S
12)。親機10ではその入力に基づいてリモート入
出内局等に送出するデータを求めるための所定の演算を
行なう。Here it is turned off as well, so next,
The output data is taken in via the serial interface 30 (S9) and stored in the output buffer 33 (S
10). The input data stored in the input buffer 32 is sent to the remote human output interface 12 of the base unit 10 via the serial interface 30 (S
12). Base unit 10 performs a predetermined calculation based on the input to obtain data to be sent to a remote incoming/output station, etc.
また、出力バッファ35に格納されている出力データは
、入出力コントロールインターフェース31を介して入
出カモジュール21の出力端子に送出され(S13)、
外部機器(図示せず)に制御信号が送られる。以上の動
作が終了命令があるまで繰返される(S14)。Further, the output data stored in the output buffer 35 is sent to the output terminal of the input/output module 21 via the input/output control interface 31 (S13),
A control signal is sent to an external device (not shown). The above operations are repeated until an end command is issued (S14).
以上の一連の動作はステップS2で外部からの入力が正
常であると判断された場合の動作であるが、異常である
と判断された場合には、出力データをどのように処理す
るかを判断する(S 15)。The above series of operations is the operation when the external input is determined to be normal in step S2, but if it is determined to be abnormal, it is determined how to process the output data. (S15).
この判断には、ディップスイッチ39の設定をインター
フェース38を介して読込んで行う。This determination is made by reading the settings of the dip switch 39 via the interface 38.
ここでは例えば出力データを全てオフにする場合とその
まま(前のデータ)にする場合とがあり、全てをオフに
する場合は出力オフフラグ34をオンにする処理を行う
(S 15)。出力データをそのままにする場合には出
力保持フラグ35をオンにする(S 17)。次に、入
力データをどのように処理するかを判断する(818)
。Here, for example, there are cases in which all output data is turned off and cases in which it is left as is (previous data), and when all output data is turned off, processing is performed to turn on the output off flag 34 (S15). If the output data is to be left as is, the output holding flag 35 is turned on (S17). Next, determine how to process the input data (818)
.
ここでは例えば入力データの転送を中止する場合、入力
データをゼロにリセットする場合及び前の入力データを
再び送る場合の3つの場合があるものとする。入力デー
タの転送を中止すると判断された場合には、次に出力オ
フフラグ34がオンになっているか否かを判断しく51
9)、オンになっているときには出力バッファ33をク
リアしてオフ状態にしく520)、出力バッファ33の
内容を入出力コントロールインターフェース31を介し
て人出カモジュール21の出力端子に送出する(S 1
3)。Here, it is assumed that there are three cases, for example, when the transfer of input data is stopped, when the input data is reset to zero, and when the previous input data is sent again. When it is determined that the transfer of input data is to be stopped, it is then determined whether the output off flag 34 is turned on or not.
9), when it is on, clear the output buffer 33 and turn it off 520), and send the contents of the output buffer 33 to the output terminal of the people output module 21 via the input/output control interface 31 (S 1
3).
出力オフフラグ34がオフであるときには、出力保持フ
ラグ35がオンになっているか否かを判断しく521)
、オフになっているときにはそまま何も処理をしないで
最初のステップ(Sl)に戻る。出力オフフラグ34が
オンになっているときには、前のデータをそのまま出力
すればよいので、そのときの出力バッファ33の内容を
入出力コントロールインターフェース31を介して、入
出カモジュール21の出力端子に送出する(S13)。When the output off flag 34 is off, it is determined whether the output hold flag 35 is on or not (521).
, when it is off, the process returns to the first step (Sl) without performing any processing. When the output off flag 34 is on, the previous data can be output as is, so the contents of the output buffer 33 at that time are sent to the output terminal of the input/output module 21 via the input/output control interface 31. (S13).
また、入力データをゼロにリセットすると判断されたと
きには(S18)、入力バッフ32をリセットする(S
22)。このリセット処理された後、及びステップ8
18で前の入力データをそのまま送出すると判断された
後は、ステップS6に戻って親機10の指示を待つ。こ
の2つの場合であって出力オフフラグ34がオフなって
いる場合には出力バッファ33をクリアする処理が行わ
れ(S11)、また出力保持フラグ35がオンなってい
るときには出力バッファ33に処理を施さずに次のステ
ップに進み、後は前述と同様な処理がなされる(812
〜514)。Furthermore, when it is determined that the input data is to be reset to zero (S18), the input buffer 32 is reset (S18).
22). After this reset process and step 8
After it is determined in step S18 that the previous input data is to be sent as is, the process returns to step S6 and waits for an instruction from the base unit 10. In these two cases, when the output off flag 34 is off, the output buffer 33 is cleared (S11), and when the output hold flag 35 is on, the output buffer 33 is cleared. The process proceeds to the next step without processing, and the same processing as described above is performed (812).
~514).
なお、この発明は上記のフローチャートに示された動作
に限定されるものではなく適宜変更し得るものである。Note that the present invention is not limited to the operations shown in the above flowchart, but may be modified as appropriate.
また、入力端子41を複数個設けて、それぞれの入力に
応じて信号処理の方法を選択するようにしてもよい。Alternatively, a plurality of input terminals 41 may be provided, and a signal processing method may be selected according to each input.
(発明の効果)
以上のようにこの発明によれば、入出カモジュールの電
源等が正常か否かを示す信号を入力し、その信号の入力
に応じて入力信号及び出力信号の処理を適宜するように
したので、機器を安全に制御することができる。(Effects of the Invention) As described above, according to the present invention, a signal indicating whether the power supply, etc. of the input/output module is normal or not is inputted, and the input signal and output signal are appropriately processed according to the input of the signal. This allows the equipment to be controlled safely.
第1図はこの発明の一実施例を示すリモート入出力コン
トローラのハード構成を示すブロック図、第2図はその
動作を示すフローチャート、第3図はのプログラマブル
コントローラの親機とリモート入出力コントローラとの
関係を示したブロック図、第4図は入出カモジュールの
電源電圧の遮断時の特性を示すタイムチャートである。
代理人 弁理士 佐々木 宗 治
第1図
2.2Fig. 1 is a block diagram showing the hardware configuration of a remote input/output controller showing an embodiment of the present invention, Fig. 2 is a flowchart showing its operation, and Fig. 3 shows the main unit of the programmable controller and the remote input/output controller. FIG. 4 is a block diagram showing the relationship between the two, and FIG. 4 is a time chart showing the characteristics when the power supply voltage of the input/output module is cut off. Agent Patent Attorney Muneharu Sasaki Figure 1 2.2
Claims (1)
する入力手段と、該手段からの入力及び所定の設定命令
に基づいて親機からの出力情報及び親機への入力情報を
制御する制御手段とを有することを特徴とするリモート
入出力コントローラ。An input means for inputting a signal detected as to whether the input is in a normal state, and controlling output information from the base unit and input information to the base unit based on the input from the means and a predetermined setting command. A remote input/output controller comprising a control means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10620687A JPS63273102A (en) | 1987-05-01 | 1987-05-01 | Remote input and output controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10620687A JPS63273102A (en) | 1987-05-01 | 1987-05-01 | Remote input and output controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63273102A true JPS63273102A (en) | 1988-11-10 |
Family
ID=14427684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10620687A Pending JPS63273102A (en) | 1987-05-01 | 1987-05-01 | Remote input and output controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63273102A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0452802A (en) * | 1990-06-15 | 1992-02-20 | Sharp Corp | Programmable controller |
CN103135456A (en) * | 2011-11-14 | 2013-06-05 | 联发科技股份有限公司 | Charging port detection control method and charging port detection control device |
JP2014109857A (en) * | 2012-11-30 | 2014-06-12 | So System Service Co Ltd | Instrumentation system |
-
1987
- 1987-05-01 JP JP10620687A patent/JPS63273102A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0452802A (en) * | 1990-06-15 | 1992-02-20 | Sharp Corp | Programmable controller |
CN103135456A (en) * | 2011-11-14 | 2013-06-05 | 联发科技股份有限公司 | Charging port detection control method and charging port detection control device |
US9142982B2 (en) | 2011-11-14 | 2015-09-22 | Mediatek Inc. | Method and apparatus for performing charging port detection control |
US9923390B2 (en) | 2011-11-14 | 2018-03-20 | Mediatek Inc. | Method and apparatus for performing charging port detection control |
JP2014109857A (en) * | 2012-11-30 | 2014-06-12 | So System Service Co Ltd | Instrumentation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63273102A (en) | Remote input and output controller | |
JPH02281343A (en) | Cpu operation monitor system | |
JPH0318212B2 (en) | ||
JPS63136234A (en) | Check sum calculation system | |
JPS6017123B2 (en) | Unmanned operation device for data processing equipment | |
JPH0247723A (en) | Microprogram controller | |
JPS6242646A (en) | Control system for line switching device | |
JPS60160447A (en) | programmable controller | |
JPS61166615A (en) | Power supply protecting device | |
JPS6226559A (en) | Programmable controller | |
JPS61169045A (en) | Line terminal device | |
JPH056337A (en) | Data communication equipment for terminal equipment | |
JPH02185136A (en) | How to set the workstation address | |
JPS6340437A (en) | Remedy system for invalid holding of terminal equipment | |
JPS6323491A (en) | Manual control system for remote control system | |
JPH03232397A (en) | Backup switching system | |
JPH0477901A (en) | Pulse input system for information processor | |
JPH021002A (en) | Link system for programmable controller | |
JPH02253343A (en) | Output protecting device | |
JPH05257725A (en) | Error transmitter for cpu unit | |
JPH01149637A (en) | System for monitoring polling control response | |
JPS60189037A (en) | Special unit of programmable controller | |
JPS5919457A (en) | Data transmission system | |
JPH09233676A (en) | Power system protection controller | |
JPH02201672A (en) | Monitoring device for fault of terminal equipment |