JPH05289714A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH05289714A
JPH05289714A JP8879592A JP8879592A JPH05289714A JP H05289714 A JPH05289714 A JP H05289714A JP 8879592 A JP8879592 A JP 8879592A JP 8879592 A JP8879592 A JP 8879592A JP H05289714 A JPH05289714 A JP H05289714A
Authority
JP
Japan
Prior art keywords
input
relay
pulse
signal
circuit
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.)
Granted
Application number
JP8879592A
Other languages
Japanese (ja)
Other versions
JP3298018B2 (en
Inventor
Seiji Uematsu
誠司 植松
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP08879592A priority Critical patent/JP3298018B2/en
Publication of JPH05289714A publication Critical patent/JPH05289714A/en
Application granted granted Critical
Publication of JP3298018B2 publication Critical patent/JP3298018B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To fetch signals supplied from the same input terminal to both a pulse catching relay and a normal input relay. CONSTITUTION:In a programmable controller which fetches the input signals to an input relay 3b via an input/output port 4 and also fetches the input pulses to a pulse catch relay 3a via a pulse catch circuit 5 respectively, the programmable controller is provided with a pulse catch input terminal 44 of the circuit 5 connected to the circuit 5 and also contains an input relay which fetches the signals obtained via the terminal 44. Thus the signals supplied through the terminal 44 are fetched to both relays 3 and 4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はパルスキャッチ回路を備
えたプログラマブルコントローラ(以下PCという)に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (hereinafter referred to as PC) having a pulse catch circuit.

【0002】[0002]

【従来の技術】図6はPCの動作を示すタイミングチャ
ートである。図示のように、PCは一般に入力転送、命
令実行及び出力転送をサイクリックに繰り返して行って
いる。入力転送では入力端子からON/OFF情報を入
力リレーに取り込み、そして、命令実行では入力リレー
のON/OFF情報に基づいて演算処理を施し、その結
果を出力リレーに反映させている。出力転送では出力リ
レーのON/OFF情報を出力端子に出力している。こ
のように入力端子のON/OFF情報は入力転送時(b
のタイミング)に取り込まれるので、命令実行中(aの
タイミング)に立ち上がって直ぐに立ち下るパルス信号
が入力端子に入力した場合には入力リレーに取り込むこ
とができなかった。
2. Description of the Related Art FIG. 6 is a timing chart showing the operation of a PC. As shown, the PC generally cyclically repeats input transfer, command execution, and output transfer. In the input transfer, the ON / OFF information is fetched from the input terminal to the input relay, and in the command execution, arithmetic processing is performed based on the ON / OFF information of the input relay, and the result is reflected in the output relay. In output transfer, ON / OFF information of the output relay is output to the output terminal. In this way, the ON / OFF information of the input terminal is transferred during input transfer (b
However, if a pulse signal that rises and immediately falls during command execution (timing a) is input to the input terminal, it cannot be captured by the input relay.

【0003】図7はそのような場合に対処するために、
通常の処理では取り込むことができない短いパルス幅の
信号を取り込むパルスキャッチの機能を備えたパルスキ
ャッチ回路を設けたPCの動作を示すタイミングチャー
トである。このパルスキャッチ回路は、入力信号が入力
転送以外にそのON/OFF情報が変化しても入力リレ
ーに取り込むことができるようにしたものである。パル
スキャッチ回路は、入力端子での信号の立ち上がりを検
出してラッチステータスをセットして(cのタイミン
グ)一時保持する。そして、入力転送時にはラッチステ
ータスをパルスキャッチリレーに取り込んでいる(dの
タイミング)。この後、ラッチステータスは次のパルス
を取り込む準備のためにリセットされる(eのタイミン
グ)。そして、パルスキャッチリレーは、当スキャン内
で保持され、次スキャンの入力転送でリセットされる
(fのタイミング)。
FIG. 7 shows a method for dealing with such a case.
6 is a timing chart showing the operation of a PC provided with a pulse catch circuit having a function of pulse catch that takes in a signal with a short pulse width that cannot be taken in by normal processing. This pulse catching circuit is designed so that the input signal can be taken into the input relay even if the ON / OFF information of the input signal changes in addition to the input transfer. The pulse catch circuit detects the rising edge of the signal at the input terminal, sets the latch status, and temporarily holds it (timing c). Then, at the time of input transfer, the latch status is taken into the pulse catch relay (timing d). After this, the latch status is reset in preparation for fetching the next pulse (timing e). Then, the pulse catch relay is held in this scan and reset by the input transfer of the next scan (timing of f).

【0004】[0004]

【発明が解決しようとする課題】図8はパルスキャッチ
リレーの動作を示したタイミングチャートであり、図9
は通常の入力リレーの動作を示したタイミングチャート
であり。図示のように、パルスキャッチリレーは立ち上
がり信号を取り込み1スキャンだけ信号を保持してい
る。しかし、パルスキャッチリレーは、通常の入力リレ
ーのように入力信号を入力転送のたびに取り込む処理を
しておらず、パルスキャッチリレーを図9に示す通常の
入力リレーとして利用することができない。このため、
同一信号からパルスキャッチと通常入力とを行う場合、
同一信号にもかかわらず、パルスキャッチ用の入力端子
と通常入力用の入力端子とに分けなければならず、同一
端子での併用ができなかった。
FIG. 8 is a timing chart showing the operation of the pulse catch relay, and FIG.
Is a timing chart showing the operation of a normal input relay. As shown in the figure, the pulse catch relay takes in the rising signal and holds the signal only for one scan. However, unlike the normal input relay, the pulse catch relay does not process the input signal for each input transfer, and the pulse catch relay cannot be used as the normal input relay shown in FIG. For this reason,
When performing pulse catch and normal input from the same signal,
Despite the same signal, the input terminal for pulse catching and the input terminal for normal input must be separated, and the same terminal cannot be used together.

【0005】本発明は、このような問題点を解決するた
めになされたものであり、同一の入力端子からの信号を
パルスキャッチリレー及び通常の入力リレーの双方に取
り込むことができるようにしたPCを提供することを目
的とする。
The present invention has been made in order to solve such a problem and is a PC which can take in a signal from the same input terminal to both a pulse catch relay and a normal input relay. The purpose is to provide.

【0006】[0006]

【課題を解決するための手段】本発明に係るPCは、入
力回路を介して入力信号を入力リレーに取り込むと共
に、パルスキャッチ回路を介して入力パルスをパルスキ
ャッチリレーに取り込むPCにおいて、パルスキャッチ
回路のパルスキャッチ用入力端子を入力回路にも接続
し、かつ、その入力端子を介して得られる信号を取り込
む入力リレーを設けている。
A PC according to the present invention is a PC in which an input signal is taken into an input relay via an input circuit and an input pulse is taken into a pulse catch relay via a pulse catch circuit. The input terminal for pulse catch of is also connected to the input circuit, and an input relay for taking in a signal obtained through the input terminal is provided.

【0007】[0007]

【作用】本発明においては、パルスキャッチ用入力端子
の信号をパルスキャッチリレーに取り込むと共に、入力
リレーにも取り込む。
In the present invention, the signal from the pulse catch input terminal is taken into the pulse catch relay and also into the input relay.

【0008】[0008]

【実施例】図1は本発明の一実施例に係るPCのハード
構成を示すブロック図である。このPCはCPU1、R
OM2、RAM3、I/Oポート4及びパルスキャッチ
回路5から構成されている。ROM2にはCPU1の演
算処理を司どるプログラムが格納されている。RAM3
には各種のデータが格納されており、この実施例におい
ては、パルスキャッチリレー3a、入力リレー3b、出
力リレー3c等を内蔵している。なお、これらのリレー
は機械的なリレーではなく、各記憶素子に「1」又は
「0」のデータがセットされるとき、それらはリレーの
オン又はオフに対応するのでそのように称するものであ
り、パルスキャッチリレー3aにはパルスキャッチされ
たデータが格納され、入力リレー3bには入力データが
格納され、出力リレー3cには演算結果が格納される。
I/Oポート4には出力端子及び入力端子が接続されて
おり、入力端子を介して入力信号を取り込み、出力端子
を介して出力信号を送出する。パルスキャッチ回路5
は、従来技術でも述べたように入力信号の変化を捕えて
一時保持する機能を持っている。
1 is a block diagram showing a hardware configuration of a PC according to an embodiment of the present invention. This PC is CPU1, R
It is composed of an OM2, a RAM3, an I / O port 4 and a pulse catch circuit 5. The ROM 2 stores a program that controls the arithmetic processing of the CPU 1. RAM3
Stores various data. In this embodiment, the pulse catch relay 3a, the input relay 3b, the output relay 3c, etc. are built in. Note that these relays are not mechanical relays, and when data "1" or "0" is set in each storage element, they correspond to turning on or off of the relays, so they are called as such. The pulse catch relay 3a stores the pulse caught data, the input relay 3b stores the input data, and the output relay 3c stores the calculation result.
An output terminal and an input terminal are connected to the I / O port 4, and an input signal is taken in through the input terminal and an output signal is sent out through the output terminal. Pulse catch circuit 5
Has a function of catching and temporarily holding a change in the input signal as described in the related art.

【0009】図2はI/Oポート4の入力ポート4aの
部分を示したブロック図である。入力ポート4aは入力
端子41〜43と接続されており、これらはバッファ回
路44〜46に接続されている。そして、バッファ47
だけはパルスキャッチ回路5の入力端子44に接続され
ている。
FIG. 2 is a block diagram showing a portion of the input port 4a of the I / O port 4. The input port 4a is connected to the input terminals 41 to 43, which are connected to the buffer circuits 44 to 46. And the buffer 47
Is connected to the input terminal 44 of the pulse catch circuit 5.

【0010】図3はPCの運転中の動作を示すフローチ
ャートである。運転を開始すると、図3に示すように、
CPU1は入力転送によりI/Oポート4を介して入力
信号を取り込み、それをRAM3の入力リレー3bに取
り込む(S1)。CPU1は全ての入力信号を取り込むと、
次にROM2に格納されているプログラムに基づいて既
に取り込んである入力データを使用して演算処理を行
い、演算結果をRAM3の出力リレー3cに取り込む(S
2)。次に、CPU1はその出力リレー3cを読み出して
I/Oポート4を介して出力する(S3)。以上の演算処理
が電源がオフになるまで又は停止があるまでサイクリッ
クに繰り返される。
FIG. 3 is a flowchart showing the operation of the PC during operation. When the operation is started, as shown in FIG.
The CPU 1 takes in an input signal through the I / O port 4 by input transfer and takes it into the input relay 3b of the RAM 3 (S1). When the CPU 1 takes in all input signals,
Next, based on the program stored in the ROM2, the arithmetic processing is performed using the input data that has already been captured, and the calculation result is captured into the output relay 3c of the RAM3
2). Next, the CPU 1 reads the output relay 3c and outputs it through the I / O port 4 (S3). The above arithmetic processing is cyclically repeated until the power is turned off or there is a stop.

【0011】図4はその入力転送の詳細を示したフロー
チャートであり、図5はその時の動作状態を示すタイミ
ングチャートである。運転中に入力端子44にパルス信
号が入力されると、パルスキャッチ回路5はそのパルス
信号をラッチし、同回路のラッチステータスkにその状
態が現われる。この時のラッチステータスは図5に示す
ように「1」になっている。そして、入力転送になる
と、まず、CPU1は図のhのタイミングでラッチステ
ータスを入力してRAM3のキャッチパルスリレー3a
に取り込む(S11) 。次に、CPU1は入力端子41〜4
4の入力信号をバッファ45〜48を介して入力リレー
3bに取り込む(S12) 。
FIG. 4 is a flow chart showing the details of the input transfer, and FIG. 5 is a timing chart showing the operation state at that time. When a pulse signal is input to the input terminal 44 during operation, the pulse catch circuit 5 latches the pulse signal, and that state appears in the latch status k of the circuit. The latch status at this time is "1" as shown in FIG. Then, in the case of input transfer, the CPU 1 first inputs the latch status at the timing h in FIG.
(S11). Next, the CPU 1 uses the input terminals 41 to 4
The input signal of No. 4 is taken into the input relay 3b via the buffers 45 to 48 (S12).

【0012】パルスキャッチ回路5はそのラッチステー
タスを所定の時間後に自動的にリセットし、そして、入
力端子44の信号変化を検出するので、図示のように入
力信号が「1」のまま変化しない場合にはリセット状態
がそのまま維持される。従って、次の入力転送において
図のiのタイミングでそのラッチステータスを入力する
と、キャッチパルスリレー3aはリセットされる。通常
の入力信号の転送においては入力端子44の信号の状態
を入力するので、入力リレー3bはセットされたままの
状態が維持されることになる。
Since the pulse catch circuit 5 automatically resets its latch status after a predetermined time and detects a signal change at the input terminal 44, when the input signal remains "1" as shown in the figure. The reset state is maintained as is. Therefore, when the latch status is input at the timing i in the next input transfer, the catch pulse relay 3a is reset. Since the state of the signal at the input terminal 44 is input in the normal transfer of the input signal, the state in which the input relay 3b remains set is maintained.

【0013】なお、上述の通常の入力信号用の端子及び
パルスキャッチ用の入力端子は上述の実施例の個数に限
定されるのではなく適宜変更できる。更に図4のフロー
チャートにおける各処理の順序は逆にしてもよい。
The above-mentioned normal input signal terminals and pulse catch input terminals are not limited to the numbers in the above-mentioned embodiments, but can be changed appropriately. Furthermore, the order of each process in the flowchart of FIG. 4 may be reversed.

【0014】[0014]

【発明の効果】以上のように本発明によれば、パルスキ
ャッチ用入力端子の信号をパルスキャッチリレーに取り
込むと共に入力リレーにも取り込むようにしたので、同
一入力端子からの信号を2つの形態で取り込むことがで
き、ユーザーのアプリケーションの応用範囲が広がる。
また、入力リレーによりパルスキャッチ用入力端子の信
号の状態が確認できるので、テスター等を使って端子を
チェックする必要がない。
As described above, according to the present invention, the signal from the input terminal for pulse catch is taken into the pulse catch relay and also into the input relay. Therefore, the signal from the same input terminal is in two forms. It can be imported, expanding the range of applications for user applications.
Moreover, since the signal state of the pulse catching input terminal can be confirmed by the input relay, it is not necessary to check the terminal with a tester or the like.

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

【図1】本発明の一実施例に係るPCのハード構成を示
すブロック図である。
FIG. 1 is a block diagram showing a hardware configuration of a PC according to an embodiment of the present invention.

【図2】前記実施例のI/Oポートの入力ポートの部分
を示したブロック図である。
FIG. 2 is a block diagram showing an input port portion of an I / O port of the above embodiment.

【図3】前記実施例のPCの運転中の動作を示すフロー
チャートである。
FIG. 3 is a flowchart showing an operation during operation of the PC of the embodiment.

【図4】前記実施例の入力転送の詳細を示したフローチ
ャートである。
FIG. 4 is a flowchart showing details of input transfer in the embodiment.

【図5】前記実施例の動作状態を示すタイミングチャー
トである。
FIG. 5 is a timing chart showing an operation state of the embodiment.

【図6】従来のPCの動作を示すタイミングチャートで
ある。
FIG. 6 is a timing chart showing the operation of a conventional PC.

【図7】従来のパルスキャッチ回路を備えたPCの動作
を示すタイミングチャートである。
FIG. 7 is a timing chart showing the operation of a PC including a conventional pulse catch circuit.

【図8】パルスキャッチリレーの動作を示したタイミン
グチャートである。
FIG. 8 is a timing chart showing the operation of the pulse catch relay.

【図9】通常の入力リレーの動作を示したタイミングチ
ャートである。
FIG. 9 is a timing chart showing the operation of a normal input relay.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力回路を介して入力信号を入力リレー
に取り込むと共に、パルスキャッチ回路を介して入力パ
ルスをパルスキャッチリレーに取り込むプログラマブル
コントローラにおいて、 パルスキャッチ回路のパルスキャッチ用入力端子を入力
回路にも接続し、かつ、該入力端子を介して得られる信
号を取り込む入力リレーを設けたことを特徴とするプロ
グラマブルコントローラ。
1. A programmable controller for receiving an input signal into an input relay via an input circuit and capturing an input pulse into the pulse catch relay via a pulse catch circuit, wherein a pulse catch input terminal of the pulse catch circuit is provided in the input circuit. A programmable controller, which is also provided with an input relay which is also connected to the input relay and which receives a signal obtained through the input terminal.
JP08879592A 1992-04-09 1992-04-09 Programmable controller Expired - Lifetime JP3298018B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08879592A JP3298018B2 (en) 1992-04-09 1992-04-09 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08879592A JP3298018B2 (en) 1992-04-09 1992-04-09 Programmable controller

Publications (2)

Publication Number Publication Date
JPH05289714A true JPH05289714A (en) 1993-11-05
JP3298018B2 JP3298018B2 (en) 2002-07-02

Family

ID=13952797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08879592A Expired - Lifetime JP3298018B2 (en) 1992-04-09 1992-04-09 Programmable controller

Country Status (1)

Country Link
JP (1) JP3298018B2 (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

Also Published As

Publication number Publication date
JP3298018B2 (en) 2002-07-02

Similar Documents

Publication Publication Date Title
JP3057814B2 (en) Semiconductor integrated circuit
JP3298018B2 (en) Programmable controller
JP2752076B2 (en) Programmable controller
JPS63200234A (en) Data processor
JP3341164B2 (en) Programmable controller
JP2005156183A (en) Scan test circuit
JPS6237737A (en) Microprocessor circuit
JP2664109B2 (en) Real-time port
JPS60241104A (en) Arithmetic method of digital controller
JP3348177B2 (en) Programmable controller
KR920001615B1 (en) Micro computer
JPS60178524A (en) One-chip microcomputer
JPH0751610Y2 (en) Programmable controller with override function
JPS63141105A (en) Programmable controller
JPH0258112A (en) Initializing device in electronic equipment
JPS61151746A (en) Processing method of data error
JPS62241041A (en) Information processor
JPH0590379U (en) Logic analyzer
JPH01230162A (en) Microcomputer
JPH0468671A (en) Digital video signal processor
JPS6269352A (en) Microprocessor
JPH05181696A (en) Microcomputer system
JPS63216141A (en) Microcomputer device
JPS63250744A (en) Signal processing lsi
JPS61141037A (en) Microprocessor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090419

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20090419

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20100419

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20100419

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20110419

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110419

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20120419

EXPY Cancellation because of completion of term