JPH0530905U - Status reading circuit - Google Patents

Status reading circuit

Info

Publication number
JPH0530905U
JPH0530905U JP7857791U JP7857791U JPH0530905U JP H0530905 U JPH0530905 U JP H0530905U JP 7857791 U JP7857791 U JP 7857791U JP 7857791 U JP7857791 U JP 7857791U JP H0530905 U JPH0530905 U JP H0530905U
Authority
JP
Japan
Prior art keywords
signal
output
flip
flop
input
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.)
Withdrawn
Application number
JP7857791U
Other languages
Japanese (ja)
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP7857791U priority Critical patent/JPH0530905U/en
Publication of JPH0530905U publication Critical patent/JPH0530905U/en
Withdrawn legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 スキャン周期内に発生した従来認識すること
のできなかった短時間のステータスも確実に認識して読
み込みを可能なステータス読み込み回路を実現すること
である。 【構成】 フィルタ回路11は入力信号から単発パルス
等のノイズを除いてステータス変化検出回路12に入力
する。ステータス出力回路13の出力であるOUT信号
が“H”レベルの時はDフリップフロップ21は入力信
号であるQ3信号の立ち下がりを検出し、OUT信号が
“L”レベルの時はQ3 信号の立ち上がりを検出して、
スキャン周期中におけるステータス変化を読み込む。
(57) [Summary] [Purpose] To realize a status reading circuit capable of surely recognizing and reading a short-time status that could not be recognized in the scan cycle. [Structure] A filter circuit 11 removes noise such as a single pulse from an input signal and inputs it to a status change detection circuit 12. D flip-flop 21 when the OUT signal is at the "H" level which is the output of the status output circuit 13 detects the falling of the Q 3 signal is the input signal, when the OUT signal is at the "L" level Q 3 signal The rising edge of
Read the status change during the scan cycle.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案はFA(ファクトリーオートメーション)に用いられるPLC(プログ ラマブルコントローラ)等の接点入力モジュールに使用されているステータス読 み込み回路に関する。 The present invention relates to a status reading circuit used in a contact input module such as a PLC (programmable controller) used in FA (factory automation).

【0002】[0002]

【従来の技術】[Prior Art]

PLCでは、制御対象に関する種々の情報を読み込み、適確な処理を自立的に 行うことが要求される。 In PLC, it is required to read various kinds of information about the controlled object and perform appropriate processing autonomously.

【0003】 生産機械等の状態(ステータス)は“H”,“L”のディジタル情報としてP LCに入力されるが、この入力されたステータスを正確に読み込むことが重要で ある。The state (status) of the production machine or the like is input to the PLC as digital information of “H” and “L”, but it is important to accurately read the input status.

【0004】 このステータス読み込み回路として従来から用いられている回路を図3により 説明する。Dフリップフロップ1のD端子には入力信号が印加され、クロックパ ルスの立ち上がり時における入力信号の状態が正出力端子からQ1 信号として出 力され、補出力端子からQ1 ′信号が出力される。Dフリップフロップ2のD端 子にはQ1 信号が入力され、クロックパルスの立ち上がりでQ1 信号の状態が正 出力端子からQ2 信号として出力され、補出力端子からは逆位相のQ2 ′信号が 出力される。Q1 信号とQ2 信号はナンドゲート3に入力され、Q1 ′信号とQ 2 ′信号はナンドゲート4に入力され、ナンドゲート3の出力のα信号はRSフ リップフロップ5のプリセット端子に、ナンドゲート4の出力のβ信号はRSフ リップフロップ5のクリア端子に入力される。A circuit conventionally used as this status reading circuit will be described with reference to FIG. An input signal is applied to the D terminal of the D flip-flop 1, and the state of the input signal at the rising edge of the clock pulse changes from the positive output terminal to Q.1It is output as a signal and Q is output from the auxiliary output terminal.1'Signal is output. Q is used for the D terminal of the D flip-flop 2.1A signal is input and Q is generated at the rising edge of the clock pulse.1Signal status is positive from output terminal to Q2The signal is output as a signal, and the reverse phase Q is output from the auxiliary output terminal.2'Signal is output. Q1Signal and Q2The signal is input to the NAND gate 3 and Q1'Signal and Q 2 The 'signal is input to the NAND gate 4, the α signal output from the NAND gate 3 is input to the preset terminal of the RS flip-flop 5, and the β signal output from the NAND gate 4 is input to the clear terminal of the RS flip-flop 5.

【0005】 次にこの回路を図4のタイムチャートを参照しながら説明する。入力信号は( ロ)に示す波形で、(イ)のクロックパルスの立ち上がりで入力信号のその時の 状態が(ハ)のQ1 信号として出力される。(ヘ)のQ1 ′信号はQ1 信号の逆 位相の信号である。Next, this circuit will be described with reference to the time chart of FIG. The input signal has the waveform shown in (b), and the current state of the input signal is output as the Q 1 signal in (c) at the rising edge of the clock pulse in (b). The Q 1 'signal in (f) is a signal having a phase opposite to that of the Q 1 signal.

【0006】 Q1 信号はDフリップフロップ2のD端子に入力され、(イ)のクロックパル スの立ち上がりで、Q1 信号のその時の状態が(ニ)のQ2 信号となる。(ト) のQ2 ′信号はQ2 信号の逆位相の信号である。The Q 1 signal is input to the D terminal of the D flip-flop 2, and the state of the Q 1 signal at that time becomes the Q 2 signal of (d) at the rise of the clock pulse of (a). The Q 2 'signal of (g) is a signal having a phase opposite to that of the Q 2 signal.

【0007】 ナンドゲート3には(ハ)のQ1 信号と(ニ)のQ2 信号が入力されて、両信 号がHレベルの時のみLレベルで、その他の時はHレベルである(ホ)のα信号 を出力する。[0007] The NAND gate 3 are inputted Q 1 signal, Q 2 signal (d) (iii), at the L level only when No. Ryoshin is H level, an H level when the other (E ) Output the α signal.

【0008】 ナンドゲート4には(ヘ)のQ1 ′信号と(ト)のQ2 ′信号が入力されて、 ナンドゲート5と同様な入力−出力特性による出力信号の(チ)のβ信号を出力 する。[0008] NAND gate 4 is input signal 'Q 2 signals and (g)' Q 1 of (f), the NAND gate 5 and the same input - output β signal (h) of the output signal by the output characteristic To do.

【0009】 (リ)のQ3 信号は、RSフリップフロップ5の出力信号で、プリセット端子 に入力されるα信号が“L”の時にQ3 信号は“H”に、クリア端子に入力され るβ信号が“L”の時にQ3 信号は“L”になる。The ( 3 ) Q 3 signal is an output signal of the RS flip-flop 5, and when the α signal input to the preset terminal is “L”, the Q 3 signal is input to “H” and to the clear terminal. When the β signal is “L”, the Q 3 signal becomes “L”.

【0010】 アンドゲート6は(リ)のQ3 信号と(ヌ)のリード信号との論理積の(ル) の出力信号を出力する。The AND gate 6 outputs an output signal (L) of the logical product of the Q 3 signal (R) and the read signal (N).

【0011】[0011]

【考案が解決しようとする課題】[Problems to be solved by the device]

ところで、図4において明らかに分るように、この従来の回路では、スキャン 周期内で起こったステータスの変化が次のリード信号の“H”レベルの波形にま で継続していない場合の(リ)のQ3 信号のaの波形は(ル)の出力信号には現 れず、次のリード信号の“H”レベルの波形にまで継続する場合にbの波形が現 れるのみで、ステータスを正確に認識することができない。従って、単発パルス によるノイズ等を除去することはできるが、ステータス読み込み回路としては不 正確な読み込みしかできない。By the way, as can be clearly seen in FIG. 4, in this conventional circuit, when the status change occurring within the scan cycle does not continue to the “H” level waveform of the next read signal, The waveform of a of the Q 3 signal of) does not appear in the output signal of (l), and the waveform of b appears only when the waveform continues to the “H” level waveform of the next read signal. Can't recognize to. Therefore, although noise and the like due to a single pulse can be removed, the status reading circuit can only read incorrectly.

【0012】 本考案は上記の点に鑑みてなされたもので、その目的は、スキャン周期内に発 生した従来認識することのできなかった短時間のステータスも確実に認識して読 み込みを可能にするステータス読み込み回路を実現することにある。The present invention has been made in view of the above points, and an object of the present invention is to reliably recognize and read a short-time status that has not been recognized in the past, which has occurred in a scan cycle. It is to realize a status reading circuit that enables it.

【0013】[0013]

【課題を解決するための手段】[Means for Solving the Problems]

前記の課題を解決する本考案は、プログラマブルコントローラにおいて使用さ れるフリップフロップを利用したステータス読み込み回路において、ステータス を示す2値化された信号を入力とし、この入力信号に重畳される単発パルス等の ノイズを除去し、その出力段のフリップフロップから正出力と補出力とを出力す るフィルタ回路と、該フィルタ回路から出力される前記フリップフロップの補出 力をクロック入力とするクリア端子付きの第1のフリップフロップと、前記フィ ルタ回路から出力される前記フリップフロップの正出力をクロック入力とする第 2のフリップフロップと、前記フィルタ回路から出力される正出力と、前記第1 のフリップフロップの補出力と、前記第2のフリップフロップの補出力とが入力 されるアンドゲートと、前記第2のフリップフロップの正出力と前記アンドゲー トの出力とが入力されているオアゲートとで構成されるステータス変化検出回路 と、前記オアゲートの出力をデータ入力とし、ステータスを読み込むためのリー ド信号をクロック入力とし、正補出力端子を備えて、正出力をステータスを読み 込んだ信号として出力する第3のフリップフロップで構成されるステータス出力 回路とを具備し、該ステータス出力回路の前記第3のフリップフロップの正出力 は、前記第1のフリップフロップのクリア端子に、補出力は前記第2のフリップ フロップのクリア端子に入力されるようになっていることを特徴とするものであ る。 The present invention, which solves the above-mentioned problems, is a status reading circuit using a flip-flop used in a programmable controller, which inputs a binarized signal indicating a status and generates a single pulse or the like superimposed on the input signal. A filter circuit that removes noise and outputs a positive output and a complementary output from the flip-flop of the output stage, and a filter circuit with a clear terminal that uses the output of the flip-flop output from the filter circuit as a clock input. 1 flip-flop, a second flip-flop whose clock input is the positive output of the flip-flop output from the filter circuit, a positive output output from the filter circuit, and a second flip-flop of the first flip-flop. An AND gate to which the complementary output and the complementary output of the second flip-flop are input. And a status change detection circuit including an OR gate to which the positive output of the second flip-flop and the output of the AND gate are input, and an output of the OR gate as a data input for reading the status. A read signal is used as a clock input, a positive output terminal is provided, and a status output circuit composed of a third flip-flop that outputs the positive output as a status read signal is provided. The positive output of the third flip-flop is input to the clear terminal of the first flip-flop, and the complementary output of the third flip-flop is input to the clear terminal of the second flip-flop. is there.

【0014】[0014]

【作用】[Action]

リード信号が入力されてステータス出力回路からその読み込んだステータスが 出力された直後から、次のリード信号が入力されるまでのスキャン周期の期間を 考える。 Consider the period of the scan cycle from immediately after the read signal is input and the read status is output from the status output circuit until the next read signal is input.

【0015】 (1)この時のステータス出力回路の出力しているステータスが“L”レベル であった場合、次のリード信号が入力されるまでの間にステータスが“H”へと 変化する事態が生じたことを、第2のフリップフロップにより検出する。即ち、 この時の第2のフリップフロップのリセット入力は“H”であり、リセット信号 がネゲートされているため、この第2のフリップフロップはフィルタ回路の出力 段のフリップフロップの正出力が“L”から“H”に変化すると、この変化を検 知してその正出力を“L”から“H”に変化させる。この正出力はオアゲートを 介してステータス出力回路を構成する第3のフリップフロップのD端子に入力さ れており、リード信号の入力と共にラッチされて、ステータス情報として正出力 端子から出力される。この時、第1のフリップフロップはリセットされていて、 補出力端子は“H”に固定されている。(1) When the status output from the status output circuit at this time is “L” level, the status changes to “H” until the next read signal is input. The occurrence of is detected by the second flip-flop. That is, at this time, the reset input of the second flip-flop is "H", and the reset signal is negated, so that the positive output of the flip-flop of the output stage of the filter circuit is "L". When it changes from "H" to "H", this change is detected and its positive output is changed from "L" to "H". This positive output is input to the D terminal of the third flip-flop that constitutes the status output circuit via the OR gate, is latched with the input of the read signal, and is output from the positive output terminal as status information. At this time, the first flip-flop is reset and the auxiliary output terminal is fixed at "H".

【0016】 (2)ステータスが“H”の時は、スキャン周期内に“H”から“L”へのス テータスの変化を第1のフリップフロップで検出する。 (3)ステータスの変化が起こらない場合、フィルタ回路の出力段のフリップ フロップの正出力が、アンドゲート及びオアゲートを介して第3のフリップフロ ップのD端子に入力されており、リード信号の入力によりラッチされて、ステー タス情報として正出力端子から出力される。(2) When the status is “H”, the first flip-flop detects the change in status from “H” to “L” within the scan cycle. (3) When the status does not change, the positive output of the flip-flop in the output stage of the filter circuit is input to the D terminal of the third flip-flop via the AND gate and the OR gate, and the read signal is input. It is latched by and is output from the positive output terminal as status information.

【0017】 即ち、スキャン周期内においてステータスの変化が起きた時は、リード信号入 力時点の情報よりも、その時点以前のステータスの変化を示す情報を出力して、 ステータスの変化を正確に読み込むことができる。That is, when a status change occurs in the scan cycle, the information indicating the status change before that time is output rather than the information at the time when the read signal is input, and the status change is accurately read. be able to.

【0018】[0018]

【実施例】【Example】

以下、図面を参照して本考案の実施例を詳細に説明する。 図1は、本考案の一実施例の回路図である。図において、図3と同等の部分に は同一の符号を付してある。図中、11は図3の回路からアンドゲート6を除い た入力信号から単発パルスを除くためのフィルタ回路、12は入力されるフィル タ回路11の出力信号においてスキャン周期毎に起こるステータスの変化を検出 するステータス変化検出回路である。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a circuit diagram of an embodiment of the present invention. In the figure, the same parts as those in FIG. 3 are designated by the same reference numerals. In the figure, 11 is a filter circuit for removing a single pulse from an input signal obtained by removing the AND gate 6 from the circuit of FIG. 3, and 12 is a status change occurring in each scan cycle in the output signal of the input filter circuit 11. This is a status change detection circuit for detection.

【0019】 13は前回のスキャン周期中に取り込んだステータスに基づいて、検出するス テータス変化を選択するステータス出力回路である。 21はD端子に正電圧Vが入力され、クロック端子にRSフリップフロップ5 の補出力端子の出力Q3 ′信号が入力されるクリア端子付きのDフリップフロッ プ、22はD端子に正電圧Vが入力され、クロック端子にRSフリップフロップ 5の正出力端子の出力Q3 信号が入力されるクリア端子付きのDフリップフロッ プである。Reference numeral 13 is a status output circuit for selecting a status change to be detected based on the status taken in during the previous scan cycle. 21 positive voltage V is input to the D terminal, a clear terminal with a D flip-flop output Q 3 'signals of the auxiliary output terminal of the RS flip-flop 5 are input to the clock terminal, 22 is a positive voltage V to the D terminal It is a D flip-flop with a clear terminal to which the output Q 3 signal of the positive output terminal of the RS flip-flop 5 is input to the clock terminal.

【0020】 23はDフリップフロップ22の補出力端子出力のA′信号と、Dフリップフ ロップ21の補出力端子出力のB信号とRSフリップフロップ5の補出力端子出 力のQ3 信号であるC信号とが入力されて論理積演算を行うアンドゲートである 。Reference numeral 23 denotes the A ′ signal output from the complementary output terminal of the D flip-flop 22, the B signal output from the complementary output terminal of the D flip-flop 21, and the Q 3 signal output from the complementary output terminal of the RS flip-flop 5. An AND gate that receives a signal and performs a logical product operation.

【0021】 24はDフリップフロップ22の正出力端子出力のA信号とアンドゲート23 の出力とが入力されて論理和演算を行うオアゲートである。その出力はOUT′ 信号としてステータス出力回路13に入力される。Dフリップフロップ21,2 2とアンドゲート23とオアゲート24とでステータス変化検出回路12を構成 している。Reference numeral 24 is an OR gate that receives the A signal output from the positive output terminal of the D flip-flop 22 and the output of the AND gate 23 to perform a logical sum operation. The output is input to the status output circuit 13 as the OUT 'signal. The D flip-flops 21 and 22, the AND gate 23, and the OR gate 24 form a status change detection circuit 12.

【0022】 31はD端子にOUT′信号が入力され、クロック端子にリード信号が入力さ れるDフリップフロップで、正出力端子の出力信号はOUT信号として出力され ると共に、Dフリップフロップ21のクリア端子に入力され、補出力端子の出力 はDフリップフロップ22のクリア端子に入力される。Reference numeral 31 denotes a D flip-flop in which the OUT ′ signal is input to the D terminal and a read signal is input to the clock terminal. The output signal of the positive output terminal is output as the OUT signal and the D flip-flop 21 is cleared. The output of the auxiliary output terminal is input to the clear terminal of the D flip-flop 22.

【0023】 次に、上記のように構成された実施例の動作を図2のタイムチャートを参照し ながら説明する。 図2において、(イ)は読み込みのためのリード信号の波形、(ロ)はフィル タ回路11のDフリップフロップ1に入力される入力信号の波形図である。(ハ )は図3において示したDフリップフロップ5の正出力端子の出力のQ3 信号の 波形図で、ステータス変化検出回路12の入力信号となっている。(ニ)はQ3 信号の相補信号であるQ3 ′信号の波形図である。Next, the operation of the embodiment configured as described above will be described with reference to the time chart of FIG. 2A is a waveform of a read signal for reading, and FIG. 2B is a waveform diagram of an input signal input to the D flip-flop 1 of the filter circuit 11. 3C is a waveform diagram of the Q 3 signal output from the positive output terminal of the D flip-flop 5 shown in FIG. 3, which is an input signal to the status change detection circuit 12. (D) is a waveform diagram of the Q 3 'signal which is a complementary signal of the Q 3 signal.

【0024】 (ホ)はDフリップフロップ22の正出力端子の出力のA信号の波形図、(ヘ )はA信号の相補信号であるA′信号の波形図である。 (ト)はDフリップフロップ21の補出力端子からの出力信号のB信号、(チ )はオアゲート24の出力のOUT′信号、(リ)はDフリップフロップ31の 正出力端子の出力のOUT信号で、本実施例の回路で得られる目的の出力信号の 波形図である。(ヌ)は各波形におけるタイミングを示す符号である。(E) is a waveform diagram of the A signal output from the positive output terminal of the D flip-flop 22, and (F) is a waveform diagram of the A ′ signal which is a complementary signal of the A signal. (G) is the B signal of the output signal from the complementary output terminal of the D flip-flop 21, (H) is the OUT 'signal of the output of the OR gate 24, and (L) is the OUT signal of the positive output terminal of the D flip-flop 31. 3 is a waveform diagram of a target output signal obtained by the circuit of this embodiment. (Nu) is a code indicating the timing in each waveform.

【0025】 (ロ)の波形の入力信号が入力されると、フィルタ回路11からは図4のタイ ムチャートに示した(リ)のQ3 信号が出力されて、ステータス変化検出回路1 2に入力される。又、RSフリップフロップ5の補出力端子からはQ3 ′信号が 出力される。When the input signal having the waveform (b) is input, the filter circuit 11 outputs the Q 3 signal (d) shown in the timing chart of FIG. 4 and the Q 3 signal is input to the status change detection circuit 12. To be done. The Q 3 ′ signal is output from the complementary output terminal of the RS flip-flop 5.

【0026】 Q3 信号はDフリップフロップ22のクロック端子に入力されて、正出力端子 から(ホ)のA信号、補出力端子からは(ヘ)のA′信号が出力されて、A信号 はオアゲート24に、A′信号はアンドゲート23に入力される。The Q 3 signal is input to the clock terminal of the D flip-flop 22, the (E) signal A is output from the positive output terminal, and the (F) A ′ signal is output from the auxiliary output terminal. The OR gate 24 inputs the A ′ signal to the AND gate 23.

【0027】 Q3 信号は更にアンドゲート23にC信号として入力され、Q3 ′信号はDフ リップフロップ21のクロック端子に入力されて補出力端子から(ト)のB信号 が出力されてアンドゲート23に入力されている。The Q 3 signal is further input to the AND gate 23 as a C signal, and the Q 3 ′ signal is input to the clock terminal of the D flip-flop 21 and the (B) signal B is output from the auxiliary output terminal. It is input to the gate 23.

【0028】 Dフリップフロップ31のD端子にはオアゲート24の出力の(チ)に示すO UT′信号が入力されて、クロック端子に入力されているリード信号の立ち上が り時におけるOUT′信号のステータスを正出力端子から(リ)のOUT信号と して出力する。To the D terminal of the D flip-flop 31, the OUT 'signal shown in (H) of the output of the OR gate 24 is input, and the OUT' signal at the rising edge of the read signal input to the clock terminal. The status of is output from the positive output terminal as the (i) OUT signal.

【0029】 (ヌ)のタイミングのaにおいてはQ3 信号が立ち上がり、その時点にDフリ ップフロップ22の出力のA信号はD端子の正電圧Vにより立ち上がる。オアゲ ート24の出力(チ)のOUT′信号は“H”となり、リード信号の立ち上がり の時点bにおいてDフリップフロップ31の(リ)のOUT信号は“H”となる 。The signal Q 3 rises at the timing a of (n), and at that time, the signal A output from the D flip-flop 22 rises due to the positive voltage V at the D terminal. The OUT 'signal of the output (CH) of the analog 24 becomes "H", and the OUT signal of (D) of the D flip-flop 31 becomes "H" at the time point b of the rise of the read signal.

【0030】 OUT信号“H”が出力されると、Dフリップフロップ21のクリア端子には “H”が入力されてリセット信号がネゲートされ、Q3 ′信号の立ち上がり検出 、即ちQ3 信号の立ち下がり検出が可能になり、(ト)のB信号は“H”の状態 を維持する。When the OUT signal “H” is output, “H” is input to the clear terminal of the D flip-flop 21, the reset signal is negated, and the rising edge of the Q 3 ′ signal is detected, that is, the rising edge of the Q 3 signal. The fall detection becomes possible, and the B signal in (g) maintains the "H" state.

【0031】 Dフリップフロップ22のクリア端子には“L”信号が入力されて、クリア端 子はアサートされ、A信号は“L”となる。A信号が“L”になると、(ハ)の Q3 信号(C信号)が“L”なので、アンドゲート23の出力は“L”になり、 オアゲート24の出力の(チ)のOUT′信号も“L”になる。The “L” signal is input to the clear terminal of the D flip-flop 22, the clear terminal is asserted, and the A signal becomes “L”. When the A signal becomes “L”, the Q 3 signal (C signal) in (C) is “L”, so the output of the AND gate 23 becomes “L”, and the (H) OUT ′ signal of the output of the OR gate 24. Also becomes "L".

【0032】 時点Cにおいて、Q3 信号が立ち上がって“H”になると、アンドゲート23 の入力のA′,B,C信号がすべて“H”となり、アンドゲート23の出力は“ H”となって、オアゲート24の出力OUT′信号が“H”となるので、リード 信号の立ち上がり時点dにおいてもOUT信号は“H”状態を維持する。At the time point C, when the Q 3 signal rises and becomes “H”, all the A ′, B and C signals at the inputs of the AND gate 23 become “H” and the output of the AND gate 23 becomes “H”. As a result, the output OUT 'signal of the OR gate 24 becomes "H", so that the OUT signal maintains the "H" state even at the rising point d of the read signal.

【0033】 時点eにおいてQ3 信号(C信号)が立ち下がり、アンドゲート23の出力は “L”となり、OUT′信号も“L”となる。従って次のリード信号の立ち上が り時点fにおいてOUT信号は“L”となり、Dフリップフロップ21のクリア 端子はアサートされ、Dフリップフロップ22のクリア端子はネゲートされて、 Q3 信号の立ち上がり検出が可能となり、Q3 信号の立ち上がり時点gにおいて 、A信号は“H”となり、OUT′信号が“H”になり、従ってB信号も“H” となる。従ってリード信号の次の立ち上がりにおいて、OUT信号は“H”にな る。At time point e, the Q 3 signal (C signal) falls, the output of the AND gate 23 becomes “L”, and the OUT ′ signal also becomes “L”. Therefore, at the next rising edge f of the read signal, the OUT signal becomes “L”, the clear terminal of the D flip-flop 21 is asserted, the clear terminal of the D flip-flop 22 is negated, and the rising edge of the Q 3 signal is detected. becomes possible, at the rising time point g of Q 3 signal, a signal goes to "H", OUT 'signal is "H", therefore B signal also to "H". Therefore, the OUT signal becomes "H" at the next rising edge of the read signal.

【0034】 まとめると、OUT信号が“L”の時、Q3 信号の立ち上がりがあると、OU T′信号が“H”となり、立ち上がりが無いとOUT′信号はQ3 信号の波形と 同様になる。In summary, when the OUT signal is “L”, when the Q 3 signal rises, the OUT ′ signal becomes “H”, and when there is no rise, the OUT ′ signal has the same waveform as the Q 3 signal. Become.

【0035】 又、OUT信号が“H”の時、Q3 信号の立ち下がりがあると、OUT′信号 は“L”となり、立ち下がりが無いと、OUT′信号はQ3 信号の波形と同様に なる。When the OUT signal is “H” and the Q 3 signal falls, the OUT ′ signal becomes “L”, and when there is no fall, the OUT ′ signal has the same waveform as the Q 3 signal. become.

【0036】 リード信号の立ち下がりの時点を図示のようにtn-1 ,tn ,tn+1 ,tn+2 とすると、tn-1 において、OUT信号が“L”なので、Dフリップフロップ2 2において、Q3 信号の立ち上がり検出が可能となって、Q3 信号の立ち上がり によりOUT′信号が“H”になり、時点tn において、OUT信号が“H”で ある。Assuming that the falling time of the read signal is t n-1 , t n , t n + 1 , t n + 2 as shown in the figure, at t n-1 , the OUT signal is "L", so D in the flip-flop 2 2, making it possible to rise detection of Q 3 signal, it becomes OUT 'signal is "H" at the rising of the Q 3 signal, at time t n, OUT signal be "H".

【0037】 時点tn において、OUT信号が“H”であるため、Dフリップフロップ21 においてQ3 信号の立ち下がり検出が可能となる。併し、tn とtn+1 の間には Q3 信号の立ち下がりが無いため、tn+1 においてOUT信号は“H”のままで ある。Since the OUT signal is “H” at the time point t n , the falling edge of the Q 3 signal can be detected in the D flip-flop 21. And併, because there is no fall of the Q 3 signal between t n and t n + 1, OUT signal at t n + 1 is remains at "H".

【0038】 tn+1 ,tn+2 の間にQ3 信号の立ち下がりが発生するためOUT′信号が“ L”となり、リード信号の立ち上がり時点fでOUT信号は“L”となり、時点 tn+2 においてOUT信号は“L”である。Since the falling of the Q 3 signal occurs between t n + 1 and t n + 2 , the OUT ′ signal becomes “L”, and the OUT signal becomes “L” at the rising time point f of the read signal. At t n + 2 , the OUT signal is “L”.

【0039】 以上説明したように、入力信号であるQ3 信号がリード信号の周期内において 、前周期のステータスと異なるステータスを生じた時、即ちステータスが変化し た時、その変化を検出して変化の有無を出力し、入力信号のステータスの変化を 忠実に表現することができるようになるので、例えばスキャン周期内に短時間発 生したステータスをも読み込むことができるようになる。As described above, when the Q 3 signal which is the input signal causes a status different from the status of the previous cycle in the cycle of the read signal, that is, when the status changes, the change is detected. Since it becomes possible to output the presence / absence of a change and faithfully represent the change in the status of the input signal, it becomes possible to read the status that has occurred for a short time during the scan cycle, for example.

【0040】[0040]

【考案の効果】[Effect of the device]

以上詳細に説明したように本考案によれば、スキャン周期内に発生した従来認 識することのできなかった短時間のステータスも確実に認識して読み込むことが できるようになり、実用上の効果は大きい。 As described in detail above, according to the present invention, it becomes possible to reliably recognize and read even a short-term status that could not be recognized in the scan cycle, which is a practical effect. Is big.

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

【図1】本考案の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の実施例の動作のタイムチャートである。FIG. 2 is a time chart of the operation of the embodiment of FIG.

【図3】従来のステータス読み込み回路のブロック図で
ある。
FIG. 3 is a block diagram of a conventional status reading circuit.

【図4】図3の従来の回路の動作のタイムチャートであ
る。
FIG. 4 is a time chart of the operation of the conventional circuit of FIG.

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

5 RSフリップフロップ 11 フィルタ回路 12 ステータス変化検出回路 13 ステータス出力回路 21,22,31 Dフリップフロップ 23 アンドゲート 24 オアゲート 5 RS flip-flop 11 Filter circuit 12 Status change detection circuit 13 Status output circuit 21, 22, 31 D flip-flop 23 AND gate 24 OR gate

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 プログラマブルコントローラにおいて使
用されるフリップフロップを利用したステータス読み込
み回路において、 ステータスを示す2値化された信号を入力とし、この入
力信号に重畳される単発パルス等のノイズを除去し、そ
の出力段のフリップフロップ(5)から正出力(Q3
号)と補出力(Q3 ′信号)とを出力するフィルタ回路
(11)と、 該フィルタ回路(11)から出力される前記フリップフ
ロップ(5)の補出力(Q3 ′信号)をクロック入力と
するクリア端子付きの第1のフリップフロップ(21)
と、前記フィルタ回路(11)から出力される前記フリ
ップフロップ(5)の正出力(Q3 信号)をクロック入
力とする第2のフリップフロップ(22)と、前記フィ
ルタ回路(11)から出力される正出力(Q3 信号)
と、前記第1のフリップフロップ(21)の補出力(B
信号)と、前記第2のフリップフロップ(22)の補出
力(A′信号)とが入力されるアンドゲート(23)
と、前記第2のフリップフロップの正出力(A信号)と
前記アンドゲート(23)の出力とが入力されているオ
アゲート(24)とで構成されるステータス変化検出回
路(12)と、 前記オアゲート(24)の出力(OUT′信号)をデー
タ入力とし、ステータスを読み込むためのリード信号を
クロック入力とし、正補出力端子を備えて、正出力をス
テータスを読み込んだ信号(OUT信号)として出力す
る第3のフリップフロップ(31)で構成されるステー
タス出力回路(13)とを具備し、 該ステータス出力回路(13)の前記第3のフリップフ
ロップ(31)の正出力は、前記第1のフリップフロッ
プ(21)のクリア端子に、補出力は前記第2のフリッ
プフロップ(22)のクリア端子に入力されるようにな
っていることを特徴とするステータス読み込み回路。
1. A status reading circuit using a flip-flop used in a programmable controller, wherein a binarized signal indicating a status is input, and noise such as a single pulse superimposed on the input signal is removed, the flip-flop thereof a positive output from the flip-flop (5) of the output stage (Q 3 signal) and the auxiliary output (Q 3 'signal) and a filter circuit (11) for outputting, output from the filter circuit (11) First flip-flop (21) with a clear terminal, which uses the complementary output (Q 3 'signal) of (5) as a clock input
And a second flip-flop (22) which receives the positive output (Q 3 signal) of the flip-flop (5) output from the filter circuit (11) as a clock input, and is output from the filter circuit (11). positive output that (Q 3 signal)
And the complementary output of the first flip-flop (21) (B
Signal) and the complementary output (A 'signal) of the second flip-flop (22) are input.
And a status change detection circuit (12) composed of an OR gate (24) to which the positive output (A signal) of the second flip-flop and the output of the AND gate (23) are input, and the OR gate The output (OUT 'signal) of (24) is used as a data input, the read signal for reading the status is used as a clock input, and a positive and complementary output terminal is provided, and the positive output is output as a signal (OUT signal) for reading the status. A status output circuit (13) composed of a third flip-flop (31), wherein the positive output of the third flip-flop (31) of the status output circuit (13) is the first flip-flop. The complementary output is input to the clear terminal of the second flip-flop (22), and the complementary output is input to the clear terminal of the second flip-flop (22). Status read circuit that.
JP7857791U 1991-09-27 1991-09-27 Status reading circuit Withdrawn JPH0530905U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7857791U JPH0530905U (en) 1991-09-27 1991-09-27 Status reading circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7857791U JPH0530905U (en) 1991-09-27 1991-09-27 Status reading circuit

Publications (1)

Publication Number Publication Date
JPH0530905U true JPH0530905U (en) 1993-04-23

Family

ID=13665761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7857791U Withdrawn JPH0530905U (en) 1991-09-27 1991-09-27 Status reading circuit

Country Status (1)

Country Link
JP (1) JPH0530905U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018063691A (en) * 2016-10-14 2018-04-19 エルエス産電株式会社Lsis Co., Ltd. Apparatus for recognizing a pulse signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018063691A (en) * 2016-10-14 2018-04-19 エルエス産電株式会社Lsis Co., Ltd. Apparatus for recognizing a pulse signal
US10110236B2 (en) 2016-10-14 2018-10-23 Lsis Co., Ltd. Apparatus for recognizing pulse signal

Similar Documents

Publication Publication Date Title
JPH01302109A (en) Method and circuit for forming error signal
US4342054A (en) Information read device
JPH0530905U (en) Status reading circuit
JPH0133052B2 (en)
AU594593B2 (en) Method and arrangement for generating a correction signal in a digital timing recovery device
EP0357046B1 (en) Signal processing device for analogue to digital conversion
JPH01298863A (en) Picture reader
JPH0810978Y2 (en) Status signal reading circuit
JPH0580604B2 (en)
JP2553680B2 (en) Digital signal processing circuit
JPH0155481B2 (en)
JPH05225707A (en) Signal processor
SU1695266A1 (en) Multichannel device for program-simulated control
KR930000961Y1 (en) Real-time analog to interface circuit
SU1619410A1 (en) Code converter
SU1188889A1 (en) Device for determining direction of disk rotation
EP0880751B1 (en) Bar code reader and method
JPH0563524A (en) Signal input circuit
JPH027767A (en) Picture input device
JPS6225801Y2 (en)
JPS5914797B2 (en) coordinate input device
RU2071168C1 (en) Device for shaping pulse commands
JP2609303B2 (en) Data slice circuit for digital teletext signal
JPH03267811A (en) Chattering elimination circuit
JPH0138996Y2 (en)

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19951130