JPH0264708A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0264708A
JPH0264708A JP21797488A JP21797488A JPH0264708A JP H0264708 A JPH0264708 A JP H0264708A JP 21797488 A JP21797488 A JP 21797488A JP 21797488 A JP21797488 A JP 21797488A JP H0264708 A JPH0264708 A JP H0264708A
Authority
JP
Japan
Prior art keywords
output
power supply
power
service power
service
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
Application number
JP21797488A
Other languages
Japanese (ja)
Inventor
Toshimi Matsuura
松浦 利美
Hisao Toyama
外山 久雄
Yoshiro Tasaka
田坂 吉朗
Shigemi Tanabe
田辺 繁美
Norio Yoshikawa
典雄 吉川
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP21797488A priority Critical patent/JPH0264708A/en
Publication of JPH0264708A publication Critical patent/JPH0264708A/en
Pending legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To identify the condition of a service power by a user program and to prevent the malfunction of the lowering of the power by providing a detecting means to detect the voltage lowering of the service power and an output means to output an output lowering condition to the outside. CONSTITUTION:At a certain time, an overload is connected to a service power terminals 11a and 11b, a protecting circuit functions and a terminal voltage lowers. In this case, a comparator 26 detects the voltage lowering, and when a power status is '1', an FF 28 is set through an interface 27. Consequently, a relay X turns on, an abnormal condition is outputted to the outside and a light emitting diode D2 is turned on by a Q output. When the power status is not set, it is regarded that there is not an abnormality in the service power, the relay X turns off, the FF 28 is reset and the diode D2 is turned off. Thus, the power status area can be accessed and the condition of the service power can be identified by the user program if necessary and therefore, the malfunction by the lowering of the power can be prevented.

Description

【発明の詳細な説明】 〔発明の分野〕 本発明はプログラマブルコントローラに関し、特にプロ
グラマブルコントローラより外部機器に供給する電源の
異常対策に特徴を有するプログラマブルコントローラに
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a programmable controller, and particularly to a programmable controller that is characterized by measures against abnormalities in power supplied from the programmable controller to external equipment.

〔従来技術〕[Prior art]

従来プログラマブルコントローラの電源回路としてプロ
グラマブルコントローラ自体の内部回路や入出力回路に
供給する内部電源と、ユーザが使用する入出力機器用の
サービス電源とが設けられている。サービス電源はプロ
グラマブルコントローラ内では使用されず全てユーザに
開放されたものとなっている。そしてユーザが過負荷状
態でサービス電源を使用したときには電源を保護するた
めに電源保護回路が設けられている。
Conventionally, the power supply circuit of a programmable controller includes an internal power supply that supplies internal circuits and input/output circuits of the programmable controller itself, and a service power supply for input/output devices used by users. The service power supply is not used within the programmable controller and is entirely open to the user. A power supply protection circuit is provided to protect the power supply when the user uses the service power supply in an overloaded state.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかるにこのような従来のプログラマブルコントローラ
にあっては、ユーザがサービス電源を過負荷状態で使用
すれば保護回路が動作するため、サービス電源の電圧が
低下したり電源を遮断することがある。しかしながらサ
ービス電源の電圧の低下や遮断はプログラマブルコント
ローラに用いられるユーザプログラムによっては検知す
ることができない。従って入出力の負荷が正常に動作し
なかったリシーケンス制御の誤動作を引き起こすことが
あるという問題点があった。
However, in such conventional programmable controllers, if a user uses the service power supply in an overloaded state, the protection circuit is activated, which may cause the voltage of the service power supply to drop or cut off the power supply. However, a voltage drop or interruption of the service power supply cannot be detected by the user program used in the programmable controller. Therefore, there is a problem in that the input/output load may cause a malfunction of the resequence control which does not operate normally.

本発明はこのような従来のサービス電源による問題点に
鑑みてなされたものであって、サービス電源の電圧低下
や遮断を検知してその状態をユーザプログラムで利用で
きるようにすることを技術的課題とする。
The present invention has been made in view of the problems with the conventional service power supply, and a technical problem is to detect a voltage drop or cutoff of the service power supply and make the state available for use in a user program. shall be.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は内部の各ブロックに供給される内部電源と、外
部機器に接続され保護回路を有するサービス電源と、を
有するプログラマブルコントローラであって、サービス
電源の電圧低下を検出する検出手段と、検出手段による
出力低下状態を外部に出力する出力手段と、を有するこ
とを特徴とするものである。
The present invention is a programmable controller having an internal power supply supplied to each internal block, a service power supply connected to an external device and having a protection circuit, and comprising: a detection means for detecting a voltage drop in the service power supply; and output means for outputting to the outside an output reduction state caused by the output reduction.

〔作用〕[Effect]

このような特徴を有する本発明によれば、検出手段によ
ってサービス電源の電圧低下を常にチエツクしており、
サービス電源に過負荷が接続されたり短絡された場合に
は保護回路が動作してその電圧低下が検出される。そし
て電源の異常状態が出力手段により外部に出力されるこ
ととなる。
According to the present invention having such characteristics, a voltage drop in the service power supply is constantly checked by the detection means,
If the service power supply is overloaded or short-circuited, the protection circuit operates and detects the voltage drop. Then, the abnormal state of the power supply is outputted to the outside by the output means.

〔発明の効果〕〔Effect of the invention〕

そのため本発明によれば、−旦サービス電源の電圧が低
下すればその状態がプログラマブルコントローラ内で識
別され、外部に出力を与えることができる。従ってユー
ザプログラムでそれを判別することによって電源の状態
を識別することができる。それ故シーケンス制御での誤
動作を未然に防止することが可能になるという効果が得
られる。
Therefore, according to the present invention, once the voltage of the service power supply drops, this state is identified within the programmable controller and an output can be provided to the outside. Therefore, the state of the power supply can be identified by determining it using a user program. Therefore, it is possible to prevent malfunctions in sequence control.

〔実施例の説明〕[Explanation of Examples]

第2図は本発明が実施されるプログラマブルコントロー
ラの全体構成を示すブロック図である。
FIG. 2 is a block diagram showing the overall configuration of a programmable controller in which the present invention is implemented.

本図においてプログラマブルコントローラは中央演算装
置(以下CPUという)1を有しており、CPUIには
パスライン2を介して制御プログラムを記憶する主メモ
リ3が接続される。又CPU1にはユーザメモリ4及び
プログラマブルコントローラに接続される入出力装置の
状態及びサービス電源の電源状態信号を保持するI10
メモリ5が接続されている。又パスライン2には近接ス
イッチや光電スイッチ等のスイッチ6からの入力を一時
“保持する入カバソファ回路7、及びその入力状態とユ
ーザプログラムに基づいて出力装置であるリレー8等を
制御する出カバソファ回路9が接続されている。さてこ
のプログラマブルコントローラには各ブロックに電源を
供給すると共に、プログラマブルコントローラ外のユー
ザが任意に設定できる装置に電源を供給するためのサー
ビス電源を供給する電源回路10が設けられる。端子1
1a、llbはサービス電源の出力端子である。
In the figure, the programmable controller has a central processing unit (hereinafter referred to as CPU) 1, and a main memory 3 that stores a control program is connected to the CPU via a path line 2. The CPU 1 also has an I10 that holds the status of the input/output devices connected to the user memory 4 and the programmable controller, and the power status signal of the service power supply.
Memory 5 is connected. The pass line 2 also includes an input circuit 7 that temporarily holds input from a switch 6 such as a proximity switch or a photoelectric switch, and an output circuit 7 that controls an output device such as a relay 8 based on the input state and user program. A circuit 9 is connected to the programmable controller.A power supply circuit 10 is connected to the programmable controller to supply power to each block and also to supply service power to devices outside the programmable controller that can be set arbitrarily by the user. Provided.Terminal 1
1a and llb are output terminals of the service power supply.

さて本発明では電源回路10にサービス電源の電圧を低
下を検知する検出手段A、及びその検出出力を外部に与
える出力手段Bが設けられている。
In the present invention, the power supply circuit 10 is provided with a detection means A for detecting a drop in the voltage of the service power supply, and an output means B for providing the detection output to the outside.

第1図は本実施例による電源回路10の詳細な構成を示
す図である。本実施例はスイッチングレギュレータによ
る電源の例を示しており、商用交流電源の両端はノイズ
フィルタ21を介してメインスイッチング回路22に接
続される。メインスイッチング回路22は所定の高周波
で電源を断続するものであり、その出力端にトランス2
3の二つの一次側が接続される。トランス23は入力電
圧を所定の電圧に変喚するものであって、内部ブロック
の電源用及びサービス電源用の二次巻線を有している。
FIG. 1 is a diagram showing a detailed configuration of a power supply circuit 10 according to this embodiment. This embodiment shows an example of a power supply using a switching regulator, and both ends of a commercial AC power supply are connected to a main switching circuit 22 via a noise filter 21. The main switching circuit 22 cuts off the power at a predetermined high frequency, and has a transformer 2 at its output end.
The two primaries of 3 are connected. The transformer 23 converts the input voltage into a predetermined voltage, and has secondary windings for the internal block power supply and the service power supply.

そしてこれらの巻線には夫々交流出力を整流・平滑する
整流・平滑回路24.25が接続される。整流・平滑回
路25の出力は第2図に示した各ブロックに供給される
Rectifier/smoothing circuits 24 and 25 for rectifying and smoothing the AC output are connected to these windings, respectively. The output of the rectifier/smoothing circuit 25 is supplied to each block shown in FIG.

さて整流・平滑回路24は所定電圧、例えばDC24V
の電圧を出力するものであり、負荷電流が所定値以上と
なれば電源を保護するための保護回路を含むものとする
。又整流・平滑回路24の出力端はそのまま電源出力端
子11a、llbに接続され、同時にその電圧状態を検
出する検出手段Aに接続される。本実施例では検出手段
としてコンパレータ26を有しており、その基準入力端
には内部電源の両端に接続された抵抗R1とツェナダイ
オードZDの共通接続端が接続される。又サービス電源
が抵抗R2,R3,により分圧されており、その中点が
コンパレータ26の他端に接続される。コンパレータ2
6はその基準電圧を適宜設定することによりサービス電
源の正常な電圧の〃以下に設定された閾値Vreflと
なったときに異常状態を検出して出力を出すものである
。そしてコンパレータ26の入出力端にはヒステリシス
を持たせるための抵抗R4が接続され、出力端と電源端
には負荷抵抗R5が接続されている。さてコンパレータ
26の出力はインターフェース回路27を介してパスラ
イン2に接続されている。インターフェース回路27は
コンパレータ26の出力として得られる電源ステータス
(PSステータスという)情報をパスライン2を介して
CPU1に伝えるものであり、CPUIからの制御信号
によってフリップフロップ28をセット及びリセットす
るものである。フリップフロップ28のQ出力端にはト
ランジスタTriが接続され、フリップフロップ28が
セットされればトランジスタTriがオンとなってリレ
ーXが付勢される。リレーXは接点出力としてサービス
電源の遮断状態を示す接点信号を外部に出力するもので
ある。フリップフロップ28のQ出力端には表示器であ
る発光ダイオードD2が接続される。一方インターフェ
ース回路27はコンパレータ26の出力をパスライン2
を介してCPUIに与えると共に、CPU 1から得ら
れるリセット信号に基づいてフリップフロップ27をリ
セットするものである。ここでフリップフロップ28.
リレーX及び発光ダイオードD2はコンパレータ26の
電源ステータス情報を保持して外部に出力する出力手段
Bを構成している。
Now, the rectifier/smoothing circuit 24 has a predetermined voltage, for example, DC 24V.
It outputs a voltage of 1, and includes a protection circuit to protect the power supply when the load current exceeds a predetermined value. Further, the output end of the rectifying/smoothing circuit 24 is directly connected to the power supply output terminals 11a and 11b, and at the same time is connected to the detection means A for detecting the voltage state thereof. In this embodiment, a comparator 26 is provided as a detection means, and a common connection terminal of a resistor R1 and a Zener diode ZD connected to both ends of the internal power supply is connected to a reference input terminal of the comparator 26. Further, the service power source is voltage-divided by resistors R2 and R3, and the midpoint thereof is connected to the other end of the comparator 26. Comparator 2
6 detects an abnormal state and outputs an output when the reference voltage reaches a threshold value Vrefl set below the normal voltage of the service power source by appropriately setting the reference voltage. A resistor R4 for providing hysteresis is connected to the input/output terminal of the comparator 26, and a load resistor R5 is connected to the output terminal and the power supply terminal. Now, the output of the comparator 26 is connected to the pass line 2 via an interface circuit 27. The interface circuit 27 transmits power status (referred to as PS status) information obtained as the output of the comparator 26 to the CPU 1 via the path line 2, and sets and resets the flip-flop 28 using a control signal from the CPUI. . A transistor Tri is connected to the Q output terminal of the flip-flop 28, and when the flip-flop 28 is set, the transistor Tri is turned on and the relay X is energized. Relay X outputs a contact signal indicating the cutoff state of the service power source to the outside as a contact output. A light emitting diode D2 serving as an indicator is connected to the Q output terminal of the flip-flop 28. On the other hand, the interface circuit 27 connects the output of the comparator 26 to the pass line 2.
The flip-flop 27 is reset based on a reset signal obtained from the CPU 1. Here, flip-flop 28.
The relay X and the light emitting diode D2 constitute an output means B that holds the power status information of the comparator 26 and outputs it to the outside.

次に第3図は本実施例の動作を示すフローチャートであ
る。動作を開始するとまずステップ31において主メモ
リ3のRAMエリアや入出カバソファ回路7及び9の状
態を認識する等の初期処理を行う。そしてステップ32
において人力バッファ回路7及び出力バッファ回路9か
ら入力スイッチ等のオンオフ状態を読取ってI10メモ
リ5にストアする。更にステップ33においてユーザメ
モリ4のプログラムカウンタを「0」としてステップ3
4よりユーザメモリ4のコマンドを順次読出す。そして
そのコマンドがエンド命令であるかどうかをチエツクし
、エンド命令でなければステップ36に進んでその命令
を実行してステップ34に戻る。こうしてユーザメモリ
3に保持されているユーザプログラムを順次実行し、エ
ンド命令に達した場合にはステップ35よりステップ3
7に進んでその命令の実行結果を出カバソファ回路9に
与えると共に入カバソファ回路7より入力データを読出
す。そしてステップ38に進んでインターフェース回路
27よりサービス電源のPSステータス情報を読出す。
Next, FIG. 3 is a flowchart showing the operation of this embodiment. When the operation starts, first, in step 31, initial processing such as recognizing the RAM area of the main memory 3 and the states of the input/output cover sofa circuits 7 and 9 is performed. and step 32
The on/off states of input switches and the like are read from the manual buffer circuit 7 and the output buffer circuit 9 and stored in the I10 memory 5. Furthermore, in step 33, the program counter of the user memory 4 is set to "0", and the process proceeds to step 3.
4, the commands in the user memory 4 are sequentially read out. Then, it is checked whether the command is an end command, and if it is not an end command, the process advances to step 36, executes the command, and returns to step 34. In this way, the user programs held in the user memory 3 are executed sequentially, and when the end command is reached, the process proceeds from step 35 to step 3.
7, the execution result of the instruction is given to the output sofa circuit 9, and the input data is read from the input sofa circuit 7. Then, the process advances to step 38 and the PS status information of the service power supply is read out from the interface circuit 27.

このステータス情報はコンパレータ26の出力状態によ
ってサービス電源の電圧が闇値以下に低下しているかど
うかを検出するものである。そしてステップ39に進ん
でそのデータをI10メモリ5のPSステータス領域に
ストアする。さて第4図に示すように時刻t1にサービ
ス電源端子11a、llbに過負荷が接続され保護回路
が働いてその端子電圧が低下した場合には、その電圧低
下がコンパレータ26によって検出される。このときス
テップ40においてPSステータスが検出されPSステ
ータスが1である場合には、ステップ41に進んでイン
ターフェース回路27を介してフリップフロップ28を
セットする。そうすればリレーXがオン状態となりその
出力によって外部に異常状態を出力することができる。
This status information is used to detect whether the voltage of the service power supply has decreased below the dark value based on the output state of the comparator 26. The process then proceeds to step 39 and stores the data in the PS status area of the I10 memory 5. Now, as shown in FIG. 4, when an overload is connected to the service power supply terminals 11a and 11b at time t1 and the protection circuit operates and the terminal voltage drops, the voltage drop is detected by the comparator 26. At this time, the PS status is detected in step 40 and if the PS status is 1, the process proceeds to step 41 and the flip-flop 28 is set via the interface circuit 27. Then, relay X is turned on and the abnormal state can be outputted to the outside by its output.

更にフリップフロップ28のQ出力によって表示器であ
る発光ダイオードD2が点灯する。そしてステップ33
に戻ってプログラムカウンタをリセットして同様の処理
を繰り返す。又PSステータスがセットされていなけれ
ばサービス電源に異常がないものと判断されるため、ス
テップ42に進んでリレーXがオフとなりフリップフロ
ップ28をリセットする。そうすれば表示器である発光
ダイオードD2が消灯することとなる。そしてステップ
33に戻って同様の処理を繰り返す。
Furthermore, the Q output of the flip-flop 28 lights up the light emitting diode D2, which is an indicator. and step 33
Return to , reset the program counter, and repeat the same process. If the PS status is not set, it is determined that there is no abnormality in the service power supply, so the process proceeds to step 42, where relay X is turned off and flip-flop 28 is reset. Then, the light emitting diode D2 serving as the indicator will be turned off. Then, the process returns to step 33 and repeats the same process.

こうすればユーザプログラムを実行する毎にサービス電
源の電源状態を監視することができ、サービス電源の電
圧が所定値以下となったときにはその異常状態がメモリ
に保持されると共にリレーによって外部に出力される。
In this way, the power status of the service power supply can be monitored every time the user program is executed, and when the voltage of the service power supply falls below a predetermined value, the abnormal state is retained in memory and output to the outside by a relay. Ru.

従ってユーザプログラムで必要に応じてそのI10メモ
リ5のPSステータス領域をアクセスすることによって
サービスミ源の状態を識別することができる。従ってサ
ービス電源の低下に基づく誤動作を防止することが可能
となる。
Therefore, the state of the service source can be identified by the user program accessing the PS status area of the I10 memory 5 as necessary. Therefore, it is possible to prevent malfunctions due to a drop in service power.

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

第1図は本発明の一実施例によるプログラマブルコント
ローラの電源回路とその周辺回路を示す回路図、第2図
は本実施例のプログラマブルコントローラの全体構成を
示すブロック図、第3図は本実施例によるプログラマブ
ルコントローラの動作を示すフローチャート、第4図は
サービス電源の低下状態を示すタイムチャートである。 A −−−−−一検出手段  B・・−・−・・出力手
段  l・−・−・CPU   2・−・−パスライン
  3・−・−・・−主メモリ4−・・−・・−ユーザ
メモリ   5・・・−・−I10メモリ10・・・・
−・電源回路  24.25−・−・・・・整流・平滑
回路  26・−・−・コンパレータ  27・−・−
インターフェース回路  28−・・・−フリップフロ
ップX・−・−・−・リレー
FIG. 1 is a circuit diagram showing a power supply circuit and its peripheral circuits of a programmable controller according to an embodiment of the present invention, FIG. 2 is a block diagram showing the overall configuration of a programmable controller according to this embodiment, and FIG. 3 is a circuit diagram showing the entire configuration of a programmable controller according to this embodiment. FIG. 4 is a flowchart showing the operation of the programmable controller according to the method shown in FIG. A ------- Detection means B... Output means l - CPU 2 - Pass line 3 - Main memory 4 -... -User memory 5...--I10 memory 10...
−・Power supply circuit 24.25−・−・・・・Rectification/smoothing circuit 26・−・−・Comparator 27・−・−
Interface circuit 28-...-Flip-flop X------Relay

Claims (1)

【特許請求の範囲】[Claims] (1)内部の各ブロックに供給される内部電源と、外部
機器に接続され保護回路を有するサービス電源と、を有
するプログラマブルコントローラにおいて、 前記サービス電源の電圧低下を検出する検出手段と、 前記検出手段による出力低下状態を外部に出力する出力
手段と、を有することを特徴とするプログラマブルコン
トローラ。
(1) In a programmable controller having an internal power supply supplied to each internal block and a service power supply connected to an external device and having a protection circuit, a detection means for detecting a voltage drop in the service power supply, and the detection means A programmable controller characterized by having an output means for outputting an output reduction state due to the output to the outside.
JP21797488A 1988-08-30 1988-08-30 Programmable controller Pending JPH0264708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21797488A JPH0264708A (en) 1988-08-30 1988-08-30 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21797488A JPH0264708A (en) 1988-08-30 1988-08-30 Programmable controller

Publications (1)

Publication Number Publication Date
JPH0264708A true JPH0264708A (en) 1990-03-05

Family

ID=16712650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21797488A Pending JPH0264708A (en) 1988-08-30 1988-08-30 Programmable controller

Country Status (1)

Country Link
JP (1) JPH0264708A (en)

Similar Documents

Publication Publication Date Title
US9407086B2 (en) Safety switching device with power supply
US5450002A (en) Co-controller for controlling an LTC transformer with a standard voltage regulator control
US4771356A (en) Method and apparatus for accommodating power disturbances
US4510549A (en) Power supply voltage monitor and control system
KR20180110586A (en) Power supply apparatus with soft―start and protection
US20210382112A1 (en) Safety fault interrupter circuit with power fault monitor
CA1205520A (en) Battery charger failure alarm circuit
US6535405B2 (en) Power supply device having two AC power inputs
JPH0264708A (en) Programmable controller
JPH04271421A (en) Keyboard lock-out preventing circuit
JPH0130845Y2 (en)
JP2003309437A (en) Circuit protection apparatus for audio amplifier, and audio amplifier
JPH0365048A (en) Switching power supply
JP3463724B2 (en) Protection circuit in electrical equipment
KR930003910Y1 (en) Power on-off circuit
JP2976345B2 (en) Power failure detection circuit
JPH11101837A (en) Failure diagnosis circuit of electric apparatus
JPH04355627A (en) Load protective circuit
JP2000350455A (en) Switching power supply unit
KR920008889Y1 (en) Ground level detecting circuit for microwave oven
JPH08205391A (en) Feeder for computer
KR200483269Y1 (en) Power control apparatus
JPH0865888A (en) Power-supply input controller
JPH02136024A (en) Service interruption detection circuit
JPH11187570A (en) Power source equipment