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
JP2901713B2 - Input circuit of programmable controller - Google Patents
[go: Go Back, main page]

JP2901713B2 - Input circuit of programmable controller - Google Patents

Input circuit of programmable controller

Info

Publication number
JP2901713B2
JP2901713B2 JP18391290A JP18391290A JP2901713B2 JP 2901713 B2 JP2901713 B2 JP 2901713B2 JP 18391290 A JP18391290 A JP 18391290A JP 18391290 A JP18391290 A JP 18391290A JP 2901713 B2 JP2901713 B2 JP 2901713B2
Authority
JP
Japan
Prior art keywords
signal
output
flip
input
flop
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 - Lifetime
Application number
JP18391290A
Other languages
Japanese (ja)
Other versions
JPH0476604A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP18391290A priority Critical patent/JP2901713B2/en
Publication of JPH0476604A publication Critical patent/JPH0476604A/en
Application granted granted Critical
Publication of JP2901713B2 publication Critical patent/JP2901713B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はプログラマブルコントローラ(以下、PCSと
いう。)の入力回路に係り、特に、PCSの演算処理装置
の負担を軽減するに好適なPCSの入力回路に関する。
The present invention relates to an input circuit of a programmable controller (hereinafter, referred to as a PCS), and more particularly to an input of a PCS suitable for reducing a load on an arithmetic processing unit of the PCS. Circuit.

[従来の技術] PCSが、例えば大型のリレーやリミットスイッチ等か
ら信号を取り込む場合、その入力信号には、第5図に示
す様に、信号がオンまたはオフするときに、長時間のチ
ャタリングを発生することが多い。このようなチャタリ
ングを有する信号がPCSに入力すると、制御内容が不安
定となるので、この入力信号を遅延させるようにしてい
る。特開昭61−86807号公報記載の従来技術では、入力
信号を電気的に絶縁する素子の二次側に設けた抵抗とコ
ンデンサでその時定数で決まる時間の遅延を行っている
が、この遅延時間は時定数で決まる固定値(例えば商用
交流電源の半波,全波の時間、50サイクルでは10ミリ
秒,20ミリ秒)でありあまり効果がない。そこで、通常
は、第6図に示す様に、PCSが実行するプログラム中
に、オンディレータイマを組み込み、チャタリングによ
る悪影響を防止している。
[Prior Art] When a PCS takes in a signal from, for example, a large relay or a limit switch, the input signal has a long chattering when the signal is turned on or off as shown in FIG. Often occurs. When a signal having such chattering is input to the PCS, the control content becomes unstable. Therefore, the input signal is delayed. In the prior art described in Japanese Patent Application Laid-Open No. 61-86807, a resistor and a capacitor provided on the secondary side of an element that electrically insulates an input signal delay a time determined by the time constant. Is a fixed value determined by the time constant (for example, the half-wave and full-wave time of the commercial AC power supply, 10 milliseconds and 20 milliseconds in 50 cycles), and is not so effective. Therefore, usually, as shown in FIG. 6, an on-delay timer is incorporated in a program executed by the PCS to prevent adverse effects due to chattering.

[発明が解決しようとする課題] 上述したチャタリングによる悪影響を排除し、また、
制御対象の動作タイミングを調整する目的のため、PCS
には、制御規模(制御する入出力点数)に応じて、タイ
マ制御命令がいくつまでプログラムできるか決められて
いる。このタイマ制御命令を実行するPCSの中央演算処
理装置には、タイマ制御命令数が多ければそれだけ負担
がかかってしまう。このため通常は、制御する入出力点
数の1/10程度のタイマ制御命令が使用できるようになっ
ている。しかし、最近のPCSの制御対象となる入出力点
数は増大する一方であり、また、チャタリングを発生す
るリレー等の点数も増えるので、上記の命令数の制限が
あっても中央演算処理装置には大きな負担がかかってし
まうという問題がある。
[Problem to be Solved by the Invention] Eliminate the adverse effects of chattering described above,
PCS for the purpose of adjusting the operation timing of the controlled object
Defines how many timer control instructions can be programmed according to the control scale (the number of input / output points to be controlled). If the number of timer control instructions is large, the load on the central processing unit of the PCS that executes the timer control instructions increases. For this reason, usually, a timer control instruction of about 1/10 of the number of input / output points to be controlled can be used. However, the number of input / output points to be controlled by the recent PCS is increasing, and the number of relays and the like that generate chatter is also increasing. There is a problem that a heavy burden is imposed.

本発明の目的は、中央処理装置の実行するタイマ制御
命令数を減らしその負担を軽減するPCSの入力回路を提
供することにある。
An object of the present invention is to provide an input circuit of a PCS that reduces the number of timer control instructions executed by a central processing unit and reduces the load.

[課題を解決するための手段] 上記目的は、制御対象の出力信号をレベル変換し、次
に電気的に絶縁した信号にしてフィルタを通し、バスイ
ンタフェースを介してプログラマブルコントローラに入
力するプログラマブルコントローラの入力回路におい
て、フィルタとバスインタフェースとの間に、信号遅延
部と遅延量設定部を有する入力信号遅延回路を備え、遅
延量設定部は原クロック信号を分周してクロック信号を
発生する分周回路と、この分周数を切り替える切替手段
を有し、信号遅延部は4段に縦続接続されたフリップフ
ロップと、4段のフリップフロップの各々のQ出力のNA
NDをとるNANDゲートと、4段のフリップフロップの各々
のQ出力のORをとるORゲートと、NANDゲートの出力でハ
イレベルの信号を出力するとともにORゲートの出力でロ
ーレベルの信号を出力する出力用フリップフロップを有
し、信号遅延部はフィルタとバスインタフェースとの間
に介在するよう設けられ、分周回路の出力は前記縦続接
続されたフリップフロップの各々にクロック信号として
供給するよう接続されて分周回路の出力クロックに応じ
て縦続接続されたフリップフロップの最終段のフリップ
フロップのQ出力がハイレベルに転ずるまで時間を制御
するよう構成することにより達成される。
[Means for Solving the Problems] The object of the present invention is to provide a programmable controller that converts the level of an output signal to be controlled, converts the signal into an electrically insulated signal, passes through a filter, and inputs the signal to the programmable controller via a bus interface. In the input circuit, an input signal delay circuit having a signal delay unit and a delay amount setting unit is provided between the filter and the bus interface, and the delay amount setting unit divides the original clock signal to generate a clock signal. And a switching means for switching the frequency division number. The signal delay unit includes a flip-flop cascade-connected in four stages and a NA of the Q output of each of the four stages of flip-flops.
An NAND gate that takes ND, an OR gate that takes the OR of the Q outputs of each of the four-stage flip-flops, and outputs a high-level signal at the output of the NAND gate and outputs a low-level signal at the output of the OR gate An output flip-flop is provided, the signal delay unit is provided to be interposed between the filter and the bus interface, and the output of the frequency divider circuit is connected to each of the cascade-connected flip-flops so as to supply the flip-flop as a clock signal. This is achieved by controlling the time until the Q output of the last flip-flop of the cascade-connected flip-flop changes to a high level in accordance with the output clock of the frequency dividing circuit.

[作用] 入力信号が入力回路からPCSに入る前に、入力回路に
て遅延され、その遅延量も分周回路の分周数を切り替え
る切替手段によりチャタリング時間に最適な値に制御可
能となるので、チャタリングのある信号でもこの入力回
路を通ることで、PCSに対して誤入力となることはな
い。つまり、本発明では、遅延させることをハードで対
処しているので、PCSの中央演算処理装置にかかる負担
がそれだけ軽減される。
[Operation] Before the input signal enters the PCS from the input circuit, the input signal is delayed by the input circuit, and the amount of delay can be controlled to an optimal value for the chattering time by the switching means for switching the frequency division number of the frequency divider circuit. Even if a chattering signal passes through this input circuit, no erroneous input is made to the PCS. In other words, in the present invention, the delay is dealt with by hardware, so that the load on the central processing unit of the PCS is reduced accordingly.

[実施例] 以下、本発明の好適な実施例を第1図〜第4図を参照
して説明する。
Embodiment A preferred embodiment of the present invention will be described below with reference to FIGS. 1 to 4.

第1図は、本発明の第1実施例に係る入力回路の構成
図である。この入力回路12は、制御対象からの出力信号
を外部信号として取り込む入力端子21と、レベル変換回
路16と、電気的絶縁素子であるフォトカプラ17と、抵
抗,コンデンサでなるフィルタ18と、入力信号遅延回路
13とを備える。入力端子21から入力回路12に入力した信
号は、レベル変換回路16でレベル変換され、次にフォト
カプラ17で一旦光信号に変換されてから再び電気信号に
変換され、フィルタ18でろ過された後、入力信号遅延回
路13に入り、設定された遅延量だけ遅延された後、バス
インタフェース回路19を介してバス20に送出され、図示
しないPCSに取り込まれる。
FIG. 1 is a configuration diagram of an input circuit according to a first embodiment of the present invention. The input circuit 12 includes an input terminal 21 for receiving an output signal from a control target as an external signal, a level conversion circuit 16, a photocoupler 17 as an electrically insulating element, a filter 18 including a resistor and a capacitor, Delay circuit
13 is provided. After the signal input from the input terminal 21 to the input circuit 12 is level-converted by the level conversion circuit 16, then once converted into an optical signal by the photocoupler 17, converted again into an electric signal, and filtered by the filter 18, After being input to the input signal delay circuit 13 and delayed by a set delay amount, the signal is sent out to the bus 20 via the bus interface circuit 19 and is taken into the PCS (not shown).

本実施例に係る入力信号遅延回路13は、信号遅延部14
と、遅延量設定部15とからなる。その詳細回路を第2図
に示す。遅延量設定部15は、原クロック信号を分周する
分周回路5と、この分周数を切り替えるスイッチ6で構
成される。信号遅延部14は、4段の縦続接続(Q出力が
データ入力に接続)された信号遅延用フリップフロップ
1と、各フリップフロップ1のQ出力のNANDをとるナン
ドゲート2と、各Q出力のORをとるオアゲート3と、ゲ
ート2,3の出力信号で動作する出力用フリップフロップ
4でなる。そして、前記の分周回路5の出力であるクロ
ック信号11が各フリップフロップ1のクロック信号とな
る。
The input signal delay circuit 13 according to the present embodiment includes a signal delay unit 14
And a delay amount setting unit 15. The detailed circuit is shown in FIG. The delay amount setting unit 15 includes a frequency dividing circuit 5 for dividing the frequency of the original clock signal, and a switch 6 for switching the frequency dividing number. The signal delay unit 14 includes a four-stage cascade-connected signal delay flip-flop 1 (Q output is connected to the data input), a NAND gate 2 that takes a NAND of the Q output of each flip-flop 1, and an OR of each Q output. , And an output flip-flop 4 operated by the output signals of the gates 2 and 3. Then, the clock signal 11 output from the frequency dividing circuit 5 becomes a clock signal for each flip-flop 1.

今、入力データ(信号)がローレベルであったとす
る。また、各フリップフロップ1は予めリセット信号に
てリセットされているとする。すると、各フリップフロ
ップ1のQ出力はいずれもローレベルであるので、オア
ゲート3の出力により、出力用フリップフロップ4はロ
ーレベルの信号を出力する。
Now, it is assumed that the input data (signal) is at a low level. It is also assumed that each flip-flop 1 has been reset in advance by a reset signal. Then, since the Q output of each flip-flop 1 is at a low level, the output of the OR gate 3 causes the output flip-flop 4 to output a low-level signal.

次に入力データがハイレベルになったとする。このハ
イレベルへの変化は順次各フリップフロップ1のQ出力
として現れ、全部のフリップフロップ1のQ出力がハイ
レベルになった時点で、ナンドゲート2の出力信号によ
り出力用フリップフロップ4はハイレベルになる。つま
り、分周回路5の出力クロックに応じて、最終段のフリ
ップフロップ1のQ出力がハイレベルに転ずるまで時間
が制御されることになる。
Next, it is assumed that the input data becomes high level. The change to the high level sequentially appears as the Q output of each flip-flop 1. When the Q outputs of all the flip-flops 1 become the high level, the output flip-flop 4 becomes the high level by the output signal of the NAND gate 2. Become. That is, the time is controlled until the Q output of the last-stage flip-flop 1 changes to a high level in accordance with the output clock of the frequency dividing circuit 5.

入力データ中に第5図に示すチャタリングが生じてい
たとする。つまり、入力データがハイレベルであるかロ
ーレベルであるか不安定な状態であったとする。本実施
例では、遅延量設定部15にて遅延時間(つまり、入力デ
ータの立ち上がり時点から最終段のフリップフロップ1
のQ出力がハイレベルとなるまでの時間)がチャタリン
グ期間より長くなるように設定してあるので、チャタリ
ングの影響が出力用フリップフロップ4の出力に現れる
ことはない。即ち、チャタリングの状態であれば、何れ
か1つのフリップフロップ1のQ出力はローレベルに転
じているので、ナンドゲート2の出力はハイレベルに保
たれているからである。
It is assumed that chattering shown in FIG. 5 has occurred in the input data. That is, it is assumed that the input data is at a high level, at a low level, or in an unstable state. In the present embodiment, the delay time is set by the delay amount setting unit 15 (that is, the last flip-flop 1
Is set to be longer than the chattering period, so that the influence of chattering does not appear on the output of the output flip-flop 4. That is, in the chattering state, the Q output of one of the flip-flops 1 has turned to low level, and the output of the NAND gate 2 is kept at high level.

第3図は、本発明の第2実施例に係る入力回路の構成
図であり、第4図は入力信号遅延回路13の詳細構成図で
ある。前述した第1実施例では、スイッチ6を制御する
ことで入力信号の遅延量を制御したが、本実施例では、
このスイッチに代えてレジスタ22を設け、このレジスタ
22の設定値にて分周数を制御し、入力信号遅延量を可変
にする。このレジスタ22の設定値は、図示しないPCSの
中央演算処理装置からの指令をデータ設定用バス23を通
して設定される。第1実施例は、ユーザがスイッチ6を
操作することで遅延量を制御したのに対し、本実施例で
は、中央演算処理装置が制御内容に応じて自動的に設定
する。
FIG. 3 is a configuration diagram of the input circuit according to the second embodiment of the present invention, and FIG. 4 is a detailed configuration diagram of the input signal delay circuit 13. In the first embodiment described above, the delay amount of the input signal is controlled by controlling the switch 6, but in the present embodiment,
A register 22 is provided instead of this switch.
The frequency division number is controlled by the set value of 22, and the input signal delay amount is made variable. The set value of the register 22 is set by a command from a central processing unit (not shown) of the PCS through a data setting bus 23. In the first embodiment, the delay amount is controlled by the user operating the switch 6, whereas in the present embodiment, the central processing unit automatically sets the delay amount according to the control content.

[発明の効果] 本発明によれば、チャタリングが発生する入力機器に
対応してチャタリングの悪影響を受けないように入力信
号の遅延量を設定でき、しかもハード的に遅延させるの
で、誤入力が防止されると共に、PCSの中央演算処理装
置がソフトウェアで各入力信号の遅延量を管理する必要
がなくなりオーバーヘッドを軽減することができる。
[Effects of the Invention] According to the present invention, an input signal delay amount can be set so as not to be adversely affected by chattering in accordance with an input device in which chattering occurs, and the input signal is delayed in a hardware manner. In addition, the central processing unit of the PCS does not need to manage the delay amount of each input signal by software, so that overhead can be reduced.

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

第1図は本発明の第1実施例に係る入力回路の構成図、
第2図は第1図に示す入力信号遅延回路の詳細構成図、
第3図は本発明の第2実施例に係る入力信号遅延回路の
詳細構成図、第4図は第3図に示す入力信号遅延回路の
詳細構成図、第5図はチャタリングの信号波形図、第6
図は入力信号の遅延をプラグラムで実現するラダー回路
図である。 12……入力回路、13……入力信号遅延回路、14……入力
信号遅延部、15……遅延量設定部、16……レベル変換回
路、17……フォトカプラ、18……フィルタ、19……バス
インタフェース。
FIG. 1 is a configuration diagram of an input circuit according to a first embodiment of the present invention,
FIG. 2 is a detailed configuration diagram of the input signal delay circuit shown in FIG. 1,
3 is a detailed configuration diagram of an input signal delay circuit according to a second embodiment of the present invention, FIG. 4 is a detailed configuration diagram of the input signal delay circuit shown in FIG. 3, FIG. 5 is a signal waveform diagram of chattering, Sixth
The figure is a ladder circuit diagram for realizing a delay of an input signal by a program. 12 ... input circuit, 13 ... input signal delay circuit, 14 ... input signal delay unit, 15 ... delay amount setting unit, 16 ... level conversion circuit, 17 ... photocoupler, 18 ... filter, 19 ... ... Bus interface.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 古澤 伸吾 千葉県習志野市東習志野7丁目1番1号 株式会社日立製作所習志野工場内 (56)参考文献 特開 昭58−109918(JP,A) 特開 昭60−168211(JP,A) 特開 昭59−68007(JP,A) (58)調査した分野(Int.Cl.6,DB名) G05B 19/05 ────────────────────────────────────────────────── (7) Continuation of the front page (72) Inventor Shingo Furusawa 7-1-1, Higashi Narashino, Narashino City, Chiba Prefecture Inside the Narashino Plant of Hitachi, Ltd. JP-A-60-168211 (JP, A) JP-A-59-68007 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G05B 19/05

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御対象の出力信号をレベル変換し、次に
電気的に絶縁した信号にしてフィルタを通し、バスイン
タフェースを介してプログラマブルコントローラに入力
するプログラマブルコントローラの入力回路において、
前記フィルタと前記バスインタフェースとの間に、信号
遅延部と遅延量設定部を有する入力信号遅延回路を設
け、前記遅延量設定部は原クロック信号を分周してクロ
ック信号を発生する分周回路と、この分周数を切り替え
る切替手段を有し、前記信号遅延部は4段に縦続接続さ
れたフリップフロップと、前記4段のフリップフロップ
の各々のQ出力のNANDをとるNANDゲートと、前記4段の
フリップフロップの各々のQ出力のORをとるORゲート
と、前記NANDゲートの出力でハイレベルの信号を出力す
るとともに前記ORゲートの出力でローレベルの信号を出
力する出力用フリップフロップを有し、前記信号遅延部
は前記フィルタと前記バスインタフェースとの間に介在
するよう設けられ、前記分周回路の出力は前記縦続接続
されたフリップフロップの各々にクロック信号として供
給されるよう接続されて前記分周回路の出力クロックに
応じて前記縦続接続されたフリップフロップの最終段の
フリップフロップのQ出力がハイレベルに転ずるまで時
間を制御するよう構成されたことを特徴とするプログラ
マブルコントローラの入力回路。
An input circuit of a programmable controller for converting the level of an output signal of a control target, converting the output signal into an electrically insulated signal, passing through a filter, and inputting the signal to the programmable controller via a bus interface.
An input signal delay circuit having a signal delay unit and a delay amount setting unit is provided between the filter and the bus interface, and the delay amount setting unit divides an original clock signal to generate a clock signal. Switching means for switching the number of divisions, wherein the signal delay unit includes a cascade-connected four-stage flip-flop, a NAND gate for taking a NAND of a Q output of each of the four-stage flip-flops, An OR gate for ORing the Q outputs of the four flip-flops; and an output flip-flop for outputting a high-level signal at the output of the NAND gate and outputting a low-level signal at the output of the OR gate. Wherein the signal delay section is provided so as to be interposed between the filter and the bus interface, and an output of the frequency dividing circuit is provided for each of the cascade-connected flip-flops. Is connected so as to be supplied as a clock signal, and is configured to control the time until the Q output of the last flip-flop of the cascade-connected flip-flop changes to a high level in accordance with the output clock of the frequency dividing circuit. An input circuit of a programmable controller.
JP18391290A 1990-07-13 1990-07-13 Input circuit of programmable controller Expired - Lifetime JP2901713B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18391290A JP2901713B2 (en) 1990-07-13 1990-07-13 Input circuit of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18391290A JP2901713B2 (en) 1990-07-13 1990-07-13 Input circuit of programmable controller

Publications (2)

Publication Number Publication Date
JPH0476604A JPH0476604A (en) 1992-03-11
JP2901713B2 true JP2901713B2 (en) 1999-06-07

Family

ID=16143992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18391290A Expired - Lifetime JP2901713B2 (en) 1990-07-13 1990-07-13 Input circuit of programmable controller

Country Status (1)

Country Link
JP (1) JP2901713B2 (en)

Also Published As

Publication number Publication date
JPH0476604A (en) 1992-03-11

Similar Documents

Publication Publication Date Title
JP2901713B2 (en) Input circuit of programmable controller
US3651477A (en) Process control system
US5495407A (en) Inverter with sequential processing function
JPS5769344A (en) Controller of stored program
JPS59231668A (en) Dual clock signal switching system
JP3166458B2 (en) Timer circuit
JP2513032B2 (en) Microcomputer input control circuit
Rajaraman A Microprocessor-Based Time Sequence Controller for Process Control Applications
KR850001704Y1 (en) Universal Timer for Elevator
SU1275416A1 (en) Information input-output device
JP3051937B2 (en) Variable counting pulse signal generator
SU868758A1 (en) Device for control of digital computer stop
JP2664109B2 (en) Real-time port
RU1798877C (en) Device for power adjustment
JPH021677A (en) Selection circuit
JPS6115217A (en) Cut-off controller for application of power supply
Harple et al. The LN 3000 computer control system
JPS5819905A (en) Counting device for sequence controller
JPS60247189A (en) Timer for on/off control
JPS62190953A (en) Control circuit for communication control unit of communication control equipment
JPS63204333A (en) Asynchronous signal generating circuit
JPS639354B2 (en)
JPH0594547A (en) Microprocessor
JPH0427730B2 (en)
JPH04199404A (en) Control device