JP5101660B2 - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP5101660B2
JP5101660B2 JP2010120370A JP2010120370A JP5101660B2 JP 5101660 B2 JP5101660 B2 JP 5101660B2 JP 2010120370 A JP2010120370 A JP 2010120370A JP 2010120370 A JP2010120370 A JP 2010120370A JP 5101660 B2 JP5101660 B2 JP 5101660B2
Authority
JP
Japan
Prior art keywords
output
circuit
time
input
relay
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 - Fee Related
Application number
JP2010120370A
Other languages
Japanese (ja)
Other versions
JP2011248578A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010120370A priority Critical patent/JP5101660B2/en
Priority to CN201010518199.9A priority patent/CN102262397B/en
Publication of JP2011248578A publication Critical patent/JP2011248578A/en
Application granted granted Critical
Publication of JP5101660B2 publication Critical patent/JP5101660B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、出力回路の種類を問わず、出力回路を駆動及び保持するための最適なパルスを設定するプログラマブルコントローラに関するものである。   The present invention relates to a programmable controller that sets an optimum pulse for driving and holding an output circuit regardless of the type of the output circuit.

従来、プログラマブルコントローラで使用されてきた出力回路は、リレー出力回路とトランジスタ出力回路の大きく2つに分けられる。この2種類の出力回路によりプログラマブルコントローラに接続される外部負荷を駆動する。   Conventionally, an output circuit that has been used in a programmable controller is roughly divided into a relay output circuit and a transistor output circuit. The external load connected to the programmable controller is driven by these two types of output circuits.

図11は、従来のプログラマブルコントローラの全体構成を示す図である。なお、各図中、同一符号は同一又は相当部分を示す。   FIG. 11 is a diagram illustrating an overall configuration of a conventional programmable controller. In addition, in each figure, the same code | symbol shows the same or equivalent part.

図11において、プログラマブルコントローラ本体10Aは、センサ等の検出装置Aからの電気信号を、各入力端子を介して入力する入力回路17と、各出力端子を介して出力する出力回路18と、周知のCPU、ROM、RAM等からなるマイクロコンピュータとを中心に構成される。そして、プログラマブルコントローラ本体10Aは、ユーザが任意で設定したシーケンスプログラムにより出力回路18を介して駆動機器Bなどの外部負荷を制御するものである。   In FIG. 11, a programmable controller main body 10A includes an input circuit 17 for inputting an electrical signal from a detection device A such as a sensor via each input terminal, an output circuit 18 for outputting the output signal via each output terminal, The microcomputer is mainly composed of a CPU, ROM, RAM and the like. The programmable controller body 10A controls an external load such as the driving device B through the output circuit 18 by a sequence program arbitrarily set by the user.

プログラマブルコントローラにおいて、ユーザが任意で機能を拡張できることは周知の事実であり、入力/出力点数の拡張用ユニットであるリレー増設I/Oユニット20Aや、トランジスタ増設I/Oユニット30Aなどがある。また、この他に、アナログ入出力対応ユニットのアナログI/Oユニット40Aや、通信機能拡張ユニットである通信ユニット50A、その他の機能を拡張するユニットである特殊ユニット60Aなどがある。   In the programmable controller, it is a well-known fact that the user can arbitrarily expand the function, and there are a relay expansion I / O unit 20A and a transistor expansion I / O unit 30A which are units for expanding the number of input / output points. In addition, there are an analog I / O unit 40A that is an analog input / output compatible unit, a communication unit 50A that is a communication function expansion unit, and a special unit 60A that is a unit that expands other functions.

プログラマブルコントローラに使用されているリレー出力回路の消費電力の抑制及び発熱の低減を目的とした発明が既に知られている(例えば、特許文献1参照)。この従来例は、プログラマブルコントローラに適応されたリレー出力回路内のリレーコイルにスイッチング電圧を印加して、リレー接点を駆動した後、保持している。すなわち、オン時間が長い駆動パルスを印加し、所定時間t1経過した後に駆動パルスよりオン時間が短い保持パルスを、所定時間Tの周期で、所定時間t2の間、印加する。図12は、従来例の駆動パルスと保持パルスの関係を示すタイミングチャートである。   An invention for suppressing power consumption and reducing heat generation of a relay output circuit used in a programmable controller is already known (see, for example, Patent Document 1). In this conventional example, a switching voltage is applied to a relay coil in a relay output circuit adapted for a programmable controller to drive a relay contact and then hold it. That is, a drive pulse with a long on-time is applied, and a holding pulse with a shorter on-time than the drive pulse is applied at a period of the predetermined time T for a predetermined time t2 after the predetermined time t1 has elapsed. FIG. 12 is a timing chart showing the relationship between the driving pulse and the holding pulse in the conventional example.

リレー接点を保持させるための電力は、リレー接点を駆動させるための電力と比較して小さいため、リレー接点がオン状態に保持される際には、所定時間Tの周期で保持パルスを印加することにより、リレー接点の保持が可能となる。そのため、従来例の手法を用いた場合、所定の電流を流しつづけてリレー接点を保持する場合よりも、製品全体の消費電力の低減及び発熱の低減を図ることができる。   Since the electric power for holding the relay contact is smaller than the electric power for driving the relay contact, when the relay contact is held in the ON state, a holding pulse is applied at a period of a predetermined time T. Thus, the relay contact can be held. Therefore, when the conventional method is used, the power consumption and the heat generation of the entire product can be reduced as compared with the case where the relay contact is held by continuously supplying a predetermined current.

特開平9−81212号公報JP-A-9-81212

従来例の手法は、従来のプログラマブルコントローラに用いられるリレー出力回路においては、リレー接点の特性に大きく依存するものである。図13は、リレー接点の内部構造を示す側面図である。図13において、リレーコイル91に端子Xから端子Yの方向に電流を流した際、リレーコイル91の内部の鉄心に取り付けられた巻線から磁界が発生し、電磁力により固定接点93に可動接点94が吸引される。固定接点93と可動接点94が吸着されると、接点はオン状態となり、端子aと端子bが導通状態となる。また、リレーコイル91に電流が流れていない場合には、バネ92の応力により、固定接点93と可動接点94は接触せず、接点はオフ状態となる。このように、リレー接点の駆動及び保持には、リレーコイル91の巻数、コイル内の鉄心の材質及び形状、バネ92の応力等の要因が影響する。このため、上述のような従来例の手法は、特定のリレー接点においてのみ有効であった。   The conventional technique largely depends on the characteristics of the relay contact in the relay output circuit used in the conventional programmable controller. FIG. 13 is a side view showing the internal structure of the relay contact. In FIG. 13, when a current is passed through the relay coil 91 in the direction from the terminal X to the terminal Y, a magnetic field is generated from the winding attached to the iron core inside the relay coil 91 and the movable contact is moved to the fixed contact 93 by electromagnetic force. 94 is aspirated. When the fixed contact 93 and the movable contact 94 are attracted, the contact is turned on, and the terminals a and b are in a conductive state. When no current flows through the relay coil 91, the fixed contact 93 and the movable contact 94 do not come into contact with each other due to the stress of the spring 92, and the contact is turned off. Thus, driving and holding of the relay contact are affected by factors such as the number of turns of the relay coil 91, the material and shape of the iron core in the coil, and the stress of the spring 92. For this reason, the conventional method as described above is effective only at a specific relay contact.

また、特性の異なるリレー接点を、同一の駆動パルス、保持パルス、各パルスに対応するオン時間t1、t2、オン周期Tで制御した場合、出力オン状態を保持できない可能性がある。また、上記とは対照的に不要なオン時間の長い駆動パルス、保持パルスを出力回路に印加してしまう場合もあり、効率良く消費電力の低減を図ることができない可能性もある。そのため、リレー接点のみに変更が生じた場合において、駆動パルスのオン時間t1、保持パルスのオン時間t2及び保持パルスのオン周期Tを設定するためにパルス発生回路を変更する必要があった。   Further, when relay contacts with different characteristics are controlled with the same drive pulse, hold pulse, and on times t1 and t2 and on cycle T corresponding to each pulse, the output on state may not be held. Further, in contrast to the above, unnecessary drive pulses and holding pulses with a long on-time may be applied to the output circuit, and there is a possibility that power consumption cannot be reduced efficiently. Therefore, when only the relay contact is changed, it is necessary to change the pulse generation circuit in order to set the drive pulse ON time t1, the hold pulse ON time t2, and the hold pulse ON period T.

さらに、プログラマブルコントローラの入出力点数の拡張のため、増設I/Oユニット等を用いる場合などの複数の特性を有するリレー出力回路を単一のCPUにより制御する際にも、上述の従来例の手法は出力オン状態を保持できない可能性があり、且つ消費電力の低減及び発熱の低減にも大幅な効果があるものではない。従来例の手法は、単一種類のリレー接点及び特性の似通ったリレー接点を用いる際に有効であった。   Further, when the relay output circuit having a plurality of characteristics is controlled by a single CPU in the case of using an additional I / O unit or the like in order to expand the number of input / output points of the programmable controller, the above-described conventional method is used. May not be able to maintain the output-on state, and does not have a significant effect in reducing power consumption and heat generation. The technique of the conventional example is effective when a single type of relay contact and a relay contact having similar characteristics are used.

また、トランジスタ出力の増設I/Oユニット30Aに上述の従来例の手法を適応し、保持パルスを印加した際の出力回路(図示せず)の出力波形を図14に示す。   FIG. 14 shows an output waveform of an output circuit (not shown) when the conventional technique is applied to the transistor output expansion I / O unit 30A and a holding pulse is applied.

図14(a)は、各出力回路に入力する駆動パルス及び保持パルスであり、この入力される駆動パルス及び保持パルスにより、リレー出力回路の出力波形は図14(b)のようなオン状態を保持した出力状態となるが、トランジスタ出力回路の出力波形は図14(c)に示す出力状態となる。図14のように、トランジスタ出力回路は、リレー出力回路とは異なり、応答速度が速いため、保持パルスに連動し、誤出力を引き起こしてしまう。   FIG. 14A shows drive pulses and holding pulses input to each output circuit, and the output waveform of the relay output circuit is turned on as shown in FIG. 14B by the input driving pulses and holding pulses. Although the output state is held, the output waveform of the transistor output circuit is the output state shown in FIG. As shown in FIG. 14, the transistor output circuit has a fast response speed unlike the relay output circuit, and thus causes an erroneous output in conjunction with the holding pulse.

さらに、リレー出力回路における同一の特性をもつ複数のリレー接点のオン状態を保持させる場合において、駆動パルスと保持パルスの関係を図15(a)に、さらには、このリレー出力回路全体の消費電力を図15(b)に示す。リレー出力回路全体の消費電力は、図15(b)の特性となるため、保持パルスを出力する際の電流の変動が大きいことにより、プログラマブルコントローラのリレー出力回路がノイズ源となり、プログラマブルコントローラと接続される周辺機器及び同一電源を共有する機器に影響を及ぼしてしまうという問題もあった。   Further, in the case where the ON state of a plurality of relay contacts having the same characteristics in the relay output circuit is held, the relationship between the drive pulse and the hold pulse is shown in FIG. 15A, and further, the power consumption of the entire relay output circuit. Is shown in FIG. Since the power consumption of the entire relay output circuit has the characteristics shown in FIG. 15 (b), the fluctuation of the current when the holding pulse is output is large, so the relay output circuit of the programmable controller becomes a noise source and is connected to the programmable controller. There is also a problem of affecting the peripheral devices and devices sharing the same power source.

本発明は、前記のような課題を解決するためになされたものであり、出力回路の種類を問わず、出力回路を駆動及び保持するための最適なパルスを設定することができるプログラマブルコントローラを得ることを目的とする。   The present invention has been made to solve the above-described problems, and obtains a programmable controller capable of setting an optimum pulse for driving and holding the output circuit regardless of the type of the output circuit. For the purpose.

また、本発明は、前記のような課題を解決するためになされたものであり、複数のリレー接点に対する保持パルスの送信タイミングを、リレー接点毎に同期させないことにより、リレー接点を保持するためのパルス出力に起因するノイズを抑制することができるプログラマブルコントローラを得ることを目的とする。   In addition, the present invention has been made to solve the above-described problems, and for maintaining the relay contact by not synchronizing the transmission timing of the holding pulse for the plurality of relay contacts for each relay contact. It is an object of the present invention to obtain a programmable controller that can suppress noise caused by pulse output.

本発明に係るプログラマブルコントローラは、第1の外部負荷を駆動するプログラマブルコントローラ本体を備え、前記プログラマブルコントローラ本体は、前記第1の外部負荷を駆動する信号を出力するリレー出力回路からなる第1の出力回路と、出力指令を出力する制御手段と、前記第1の出力回路の出力形態を特定するための特性情報を、外部から設定される電圧レベル信号として読み取る入力部、および前記入力部で読み取った前記電圧レベル信号に対応する特性情報を識別して、前記特性情報に対応する出力形態を設定し、前記出力指令に基づいて、設定された出力形態に従って所定のパルスを前記第1の出力回路へ出力する出力部を有する第1の入出力手段とを含み、前記第1の入出力手段は、前記出力形態を、出力接点を駆動させる駆動パルスとこの駆動パルスの印加から所定時間経過後に印加され前記出力接点をオン状態に保持させる保持パルスとで出力するよう設定し、前記保持パルスのオン時間が前記駆動パルスのオン時間よりも短くなるよう前記保持パルスのオン時間又はオン周期の少なくとも1つを設定するとともに、前記出力接点の種類情報と、前記駆動パルスのオン時間、並びに前記保持パルスのオン時間及びオン周期との対応関係を記憶しており、前記出力接点の種類に基づいて、前記駆動パルスのオン時間、並びに前記保持パルスのオン時間及びオン周期を可変できるものである。 The programmable controller which concerns on this invention is equipped with the programmable controller main body which drives the 1st external load, and the said programmable controller main body consists of the relay output circuit which outputs the signal which drives the said 1st external load. The circuit, the control means for outputting the output command, the characteristic information for specifying the output form of the first output circuit is read as an externally set voltage level signal, and read by the input unit Characteristic information corresponding to the voltage level signal is identified, an output form corresponding to the characteristic information is set, and a predetermined pulse is sent to the first output circuit according to the set output form based on the output command. look including a first output means having an output for outputting said first input-output means, the output mode, driving the output contacts And a holding pulse that is applied after a lapse of a predetermined time from the application of the driving pulse and holds the output contact in an ON state, and the ON time of the holding pulse is set to be longer than the ON time of the driving pulse. At least one of the on-time or on-period of the holding pulse is set to be shorter, and the correspondence relationship between the type information of the output contact, the on-time of the driving pulse, and the on-time and on-period of the holding pulse And the ON time of the drive pulse and the ON time and ON cycle of the holding pulse can be varied based on the type of the output contact .

本発明に係るプログラマブルコントローラによれば、出力回路の種類を問わず、出力回路を駆動及び保持するための最適なパルスを設定することができる。   The programmable controller according to the present invention can set an optimum pulse for driving and holding the output circuit regardless of the type of the output circuit.

この発明の実施の形態1に係るプログラマブルコントローラの構成を示す図である。It is a figure which shows the structure of the programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るプログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るプログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るプログラマブルコントローラの出力回路の特性情報と対応する出力形態を説明するための図である。It is a figure for demonstrating the output form corresponding to the characteristic information of the output circuit of the programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the input / output interface circuit of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the input / output interface circuit of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the input / output interface circuit of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the input / output interface circuit of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the programmable controller which concerns on Embodiment 2 of this invention. 従来のプログラマブルコントローラの全体構成を示す図である。It is a figure which shows the whole structure of the conventional programmable controller. 従来例の駆動パルスと保持パルスの関係を示すタイミングチャートである。It is a timing chart which shows the relationship between the drive pulse and holding | maintenance pulse of a prior art example. リレー接点の内部構造を示す側面図である。It is a side view which shows the internal structure of a relay contact. 従来例のリレー出力回路及びトランジスタ出力回路の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the relay output circuit and transistor output circuit of a prior art example. 従来例の複数のリレー出力回路を同時に駆動及び保持させる駆動パルスと保持パルス及びリレー出力回路全体の消費電力を示すタイミングチャートである。It is a timing chart which shows the power consumption of the drive pulse and holding pulse which drive and hold | maintain several relay output circuits of a prior art example simultaneously, and the whole relay output circuit.

以下、本発明のプログラマブルコントローラの好適な実施の形態につき図面を用いて説明する。   Hereinafter, preferred embodiments of a programmable controller of the present invention will be described with reference to the drawings.

実施の形態1.
この発明の実施の形態1に係るプログラマブルコントローラについて図1から図4までを参照しながら説明する。図1は、この発明の実施の形態1に係るプログラマブルコントローラの構成を示す図である。なお、各図中、同一符号は同一又は相当部分を示す。
Embodiment 1 FIG.
A programmable controller according to Embodiment 1 of the present invention will be described with reference to FIGS. 1 is a diagram showing a configuration of a programmable controller according to Embodiment 1 of the present invention. In addition, in each figure, the same code | symbol shows the same or equivalent part.

図1において、この発明の実施の形態1に係るプログラマブルコントローラは、プログラマブルコントローラ本体10と、必要に応じてリレー増設I/Oユニット20と、必要に応じてトランジスタ増設I/Oユニット30とが設けられている。なお、アナログI/Oユニットや、通信ユニット、特殊ユニットなどは省略している。   In FIG. 1, the programmable controller according to the first embodiment of the present invention includes a programmable controller body 10, a relay expansion I / O unit 20 as necessary, and a transistor expansion I / O unit 30 as necessary. It has been. The analog I / O unit, communication unit, special unit, etc. are omitted.

プログラマブルコントローラ本体10は、CPU(制御手段)11と、入出力インターフェース回路(第1の入出力手段)12と、駆動機器などの外部負荷Oに接続された出力回路(リレー出力回路)13と、入出力インターフェース回路14と、駆動機器などの外部負荷Oに接続された出力回路(リレー出力回路)15とが設けられている。なお、入出力インターフェース回路12は、時間測定回路121を含み、入出力インターフェース回路14は、時間測定回路141を含む。また、入力回路などは省略している。   The programmable controller body 10 includes a CPU (control means) 11, an input / output interface circuit (first input / output means) 12, an output circuit (relay output circuit) 13 connected to an external load O such as a driving device, An input / output interface circuit 14 and an output circuit (relay output circuit) 15 connected to an external load O such as a driving device are provided. The input / output interface circuit 12 includes a time measurement circuit 121, and the input / output interface circuit 14 includes a time measurement circuit 141. Further, the input circuit and the like are omitted.

増設I/Oユニット20は、入出力インターフェース回路(第2の入出力手段)21と、駆動機器などの外部負荷Oに接続された出力回路(リレー出力回路)22とが設けられている。なお、入出力インターフェース回路21は、時間測定回路211を含む。また、入力回路などは省略している。   The extension I / O unit 20 is provided with an input / output interface circuit (second input / output means) 21 and an output circuit (relay output circuit) 22 connected to an external load O such as a drive device. The input / output interface circuit 21 includes a time measurement circuit 211. Further, the input circuit and the like are omitted.

増設I/Oユニット30は、入出力インターフェース回路31と、駆動機器などの外部負荷Oに接続された出力回路(トランジスタ出力回路)32とが設けられている。なお、入力回路などは省略している。   The extension I / O unit 30 includes an input / output interface circuit 31 and an output circuit (transistor output circuit) 32 connected to an external load O such as a driving device. Note that the input circuit and the like are omitted.

つぎに、この実施の形態1に係るプログラマブルコントローラの動作について図面を参照しながら説明する。   Next, the operation of the programmable controller according to the first embodiment will be described with reference to the drawings.

図2及び図3は、この発明の実施の形態1に係るプログラマブルコントローラの動作を示すフローチャートである。また、図4は、この発明の実施の形態1に係るプログラマブルコントローラの出力回路の特性情報と対応する出力形態を説明するための図である。   2 and 3 are flowcharts showing the operation of the programmable controller according to Embodiment 1 of the present invention. FIG. 4 is a diagram for explaining an output form corresponding to the characteristic information of the output circuit of the programmable controller according to the first embodiment of the present invention.

まず、ステップ100において、プログラマブルコントローラの電源に電源電圧が印加されると、各入出力インターフェース回路12、14、21、31は、接続される各出力回路13、15、22、32の特性情報を読み取り、各出力回路の出力形態を設定する。   First, in step 100, when a power supply voltage is applied to the power supply of the programmable controller, each input / output interface circuit 12, 14, 21, 31 receives characteristic information of each output circuit 13, 15, 22, 32 connected thereto. Read and set the output form of each output circuit.

図4(a)−(d)は、特性情報を識別するための特性情報回路を示す。また、図4(e)は、出力回路の特性情報と対応する出力形態を示す。この出力形態は、入出力インターフェース回路の出力波形であり、出力回路の入力波形でもある。図4(a)−(d)の右側に示す特性情報回路は、入出力インターフェース回路のMOD1ピン及びMOD2ピンに接続される外部の2つジャンパ抵抗80によって、特性情報の切り替えを可能とする。入出力インターフェース回路は、2つのジャンパ抵抗80の接続の組み合わせにより、出力回路の特性情報を「リレーA」、「リレーB」、「リレーC」又は「リレー以外」と出力接点(リレー接点)の種類を区別し、特性情報を入力することが可能となる。入出力インターフェース回路は、図4(e)に示すような出力接点(リレー接点)の種類と出力形態の種類の対応関係を記憶している。   4A to 4D show characteristic information circuits for identifying characteristic information. FIG. 4E shows the output form corresponding to the characteristic information of the output circuit. This output form is an output waveform of the input / output interface circuit and an input waveform of the output circuit. The characteristic information circuit shown on the right side of FIGS. 4A to 4D enables switching of characteristic information by two external jumper resistors 80 connected to the MOD1 pin and the MOD2 pin of the input / output interface circuit. The input / output interface circuit uses a combination of two jumper resistors 80 to change the output circuit characteristic information to “relay A”, “relay B”, “relay C” or “other than relay” and output contact (relay contact). Different types can be distinguished and characteristic information can be entered. The input / output interface circuit stores the correspondence between the types of output contacts (relay contacts) and the types of output forms as shown in FIG.

例えば、入出力インターフェース回路12が、図4(a)の特性情報回路からMOD1ピン、MOD2ピンを通じて、「H(ハイ)」、「H(ハイ)」を読み取った場合には、図4(e)に示すように、出力回路13の特性情報として、「リレーA」と区別して出力回路13をリレー出力回路であると認識する。また、入出力インターフェース回路12は、出力接点(リレー接点)の種類と出力形態の種類の対応関係から、出力形態として、図4(e)の1段目の出力形態を設定する。   For example, when the input / output interface circuit 12 reads “H (high)” and “H (high)” from the characteristic information circuit of FIG. 4A through the MOD1 pin and the MOD2 pin, FIG. ), As the characteristic information of the output circuit 13, the output circuit 13 is recognized as a relay output circuit in distinction from “relay A”. Further, the input / output interface circuit 12 sets the output form of the first stage in FIG. 4E as the output form from the correspondence between the type of output contact (relay contact) and the type of output form.

同様に、例えば、同じ入出力インターフェース回路12が、図4(b)の特性情報回路からMOD1ピン、MOD2ピンを通じて、「L(ロー)」、「H(ハイ)」を読み取った場合には、図4(e)に示すように、出力回路13の特性情報として、「リレーB」と区別して出力回路13をリレー出力回路であると認識する。また、入出力インターフェース回路12は、出力接点(リレー接点)の種類と出力形態の種類の対応関係から、出力形態として、図4(e)の2段目の出力形態を設定する。   Similarly, for example, when the same input / output interface circuit 12 reads “L (low)” and “H (high)” from the characteristic information circuit of FIG. 4B through the MOD1 pin and the MOD2 pin, As shown in FIG. 4E, as the characteristic information of the output circuit 13, the output circuit 13 is recognized as a relay output circuit as distinguished from “relay B”. Further, the input / output interface circuit 12 sets the output form of the second stage in FIG. 4E as the output form from the correspondence between the type of output contact (relay contact) and the type of output form.

各入出力インターフェース回路12、14、21、31は、接続される出力回路13、15、22、32の特性情報を認識した後に、特性情報及び出力形態の対応関係に基づいて、接続される出力回路がリレー出力回路(リレーA、リレーB、リレーC)の場合には、次のステップ110の待機状態に遷移し、接続される出力回路がリレー出力回路以外(リレー以外)の場合には、図3のステップ140の待機状態に遷移する。   Each input / output interface circuit 12, 14, 21, 31 recognizes the characteristic information of the connected output circuits 13, 15, 22, 32, and then connects the output based on the correspondence between the characteristic information and the output form. When the circuit is a relay output circuit (relay A, relay B, relay C), the state transits to the standby state of the next step 110, and when the connected output circuit is other than the relay output circuit (other than the relay), Transition is made to the standby state of step 140 in FIG.

この時、プログラマブルコントローラ本体10内蔵の出力回路13、15はリレー出力回路と仮定し、プログラマブルコントローラ本体10のリレー出力回路のリレー接点(出力接点)と、増設I/Oユニット20内の出力回路22のリレー接点(出力接点)が有する特性は異なるものと仮定する。   At this time, the output circuits 13 and 15 built in the programmable controller main body 10 are assumed to be relay output circuits, and the relay contact (output contact) of the relay output circuit of the programmable controller main body 10 and the output circuit 22 in the extension I / O unit 20 are used. It is assumed that the relay contacts (output contacts) have different characteristics.

次に、ステップ110において、プログラマブルコントローラ本体10内のCPU11は、入力回路(図示せず)に接続されるセンサ等の検出装置からの信号に基づいて、ユーザが任意で設定したシーケンスプログラムに応じて演算実行された結果、各入出力インターフェース回路12、14、21に対して、出力指令を送信する。   Next, in step 110, the CPU 11 in the programmable controller body 10 responds to a sequence program arbitrarily set by the user based on a signal from a detection device such as a sensor connected to an input circuit (not shown). As a result of the execution, an output command is transmitted to each of the input / output interface circuits 12, 14, and 21.

各入出力インターフェース回路12、14、21は、この出力指令を受け、出力指令の指定先アドレスと各入出力インターフェース回路が所有するアドレスを比較する。この時、出力指令の指定先アドレスと合致するアドレスを入出力インターフェース回路12、14、21のいずれかが所有していると仮定し、出力指令は出力回路をオンにする指令と仮定する。出力指令の指定先アドレスと合致しないアドレスを所有する入出力インターフェース回路は待機状態に遷移する。   Each input / output interface circuit 12, 14, 21 receives this output command, and compares the designated address of the output command with the address owned by each input / output interface circuit. At this time, it is assumed that any of the input / output interface circuits 12, 14, and 21 has an address that matches the designated address of the output command, and the output command is a command to turn on the output circuit. The input / output interface circuit that owns an address that does not match the destination address specified in the output command shifts to a standby state.

次に、ステップ120において、出力指令の指定先アドレスと合致するアドレスを有する入出力インターフェース回路12、14、21は、出力指令が出力回路をオンにする指令と認識した後、設定された出力形態に基づいて、出力回路13、15、22のいずれかに対し、リレー接点を駆動させるためのオン時間t1の長い駆動パルスを送信し、リレー出力回路内のリレー接点がオン動作を開始する。   Next, in step 120, the input / output interface circuits 12, 14, and 21 having addresses that match the designated address of the output command recognize that the output command is a command to turn on the output circuit, and then set the output format set. Based on the above, a drive pulse having a long ON time t1 for driving the relay contact is transmitted to any one of the output circuits 13, 15, and 22, and the relay contact in the relay output circuit starts an ON operation.

入出力インターフェース回路に接続されたリレー出力回路がオン動作を開始し、入出力インターフェース回路12、14、21内の時間測定回路121、141、211で所定時間(オン時間t1)経過を認識した後、入出力インターフェース回路は、駆動パルスの送信を停止する。この際、所定時間経過を認識するまでに駆動パルス出力中の入出力インターフェース回路に、新たな出力指令が送信された場合には、再度出力指令の情報を確認するものとする。所定時間経過を認識し、入出力インターフェース回路が駆動パルスの送信を停止した際のリレー出力回路内のリレー接点は、電流を所定時間流したため、オン状態となり、外部負荷が駆動される。入出力インターフェース回路は、駆動パルスの送信を停止すると同時に、時間測定をリセットし、次のステップ130へ遷移する。   After the relay output circuit connected to the input / output interface circuit starts the on operation and the time measuring circuits 121, 141, 211 in the input / output interface circuits 12, 14, 21 recognize that a predetermined time (on time t1) has elapsed. The input / output interface circuit stops transmitting the drive pulse. At this time, when a new output command is transmitted to the input / output interface circuit that is outputting the drive pulse before the elapse of the predetermined time, the information on the output command is confirmed again. The relay contact in the relay output circuit when the input / output interface circuit stops transmitting the drive pulse after recognizing the elapse of the predetermined time is turned on because the current flows for a predetermined time, and the external load is driven. The input / output interface circuit stops the transmission of the driving pulse, and at the same time, resets the time measurement and proceeds to the next step 130.

次に、ステップ130において、各入出力インターフェース回路は、リレー接点のオン状態が継続する場合には、設定された出力形態に基づいて、時間測定回路121、141、211を用い、各リレー出力回路13、15、22に対し、オン時間t2の短い保持パルスをオン周期T毎に送信する。こうして、リレー接点のオン状態を保持することにより、外部負荷のオン状態を保持する。なお、時間測定回路で、所定時間経過を認識するまでに、保持パルス出力中の入出力インターフェース回路に、新たな出力指令が送信された場合には、再度、出力指令の情報を確認する。   Next, in step 130, each input / output interface circuit uses the time measurement circuits 121, 141, and 211 based on the set output form, and the relay output circuits when the relay contacts are kept on. A holding pulse having a short on-time t2 is transmitted for each of 13, 15, and 22 every on-period T. Thus, the ON state of the external load is maintained by maintaining the ON state of the relay contact. If a new output command is transmitted to the input / output interface circuit that is outputting the hold pulse before the time measurement circuit recognizes the elapse of the predetermined time, the output command information is confirmed again.

増設I/Oユニット20の入出力インターフェース回路21が出力する駆動パルス及び保持パルスは、プログラマブルコントローラ本体10内の入出力インターフェース回路12、14が出力する駆動パルス及び保持パルスとは異なる。また、入出力インターフェース回路12、14、21の送信する駆動パルス及び保持パルスは、接続される出力回路の特性に最適なパルスとする。   The drive pulses and holding pulses output from the input / output interface circuit 21 of the extension I / O unit 20 are different from the driving pulses and holding pulses output from the input / output interface circuits 12 and 14 in the programmable controller main body 10. The drive pulses and holding pulses transmitted by the input / output interface circuits 12, 14, and 21 are pulses that are optimal for the characteristics of the connected output circuit.

また、増設I/Oユニット30内の入出力インターフェース回路31は、ステップ100において、接続される出力回路32がリレー出力回路以外と区別した後に、特性情報及び出力形態の対応関係に基づいて、出力形態を設定し、図3のステップ140に遷移する。なお、出力指令の指定先アドレスと合致するアドレスを入出力インターフェース回路31が所有していると仮定し、出力指令は出力回路をオンにする指令と仮定する。   The input / output interface circuit 31 in the extension I / O unit 30 outputs the output circuit 32 based on the correspondence relationship between the characteristic information and the output form after the output circuit 32 to be connected is distinguished from other than the relay output circuit in step 100. The form is set, and the process proceeds to step 140 in FIG. It is assumed that the input / output interface circuit 31 has an address that matches the designated address of the output command, and the output command is a command to turn on the output circuit.

ステップ140において、入出力インターフェース回路31は、出力指令が出力回路をオンにする指令と認識した後、設定された出力形態に基づいて、リレー出力回路に接続する入出力インターフェース回路12、14、21とは異なり、駆動パルスのみをトランジスタ出力回路32に送信し、外部負荷を駆動する。   In step 140, after the input / output interface circuit 31 recognizes that the output command is a command to turn on the output circuit, the input / output interface circuits 12, 14, 21 connected to the relay output circuit based on the set output form. Unlike the above, only the drive pulse is transmitted to the transistor output circuit 32 to drive the external load.

以上のように、この実施の形態1によれば、出力回路の種類を問わず、各出力回路に接続される入出力インターフェース回路が出力回路に関する特性情報及び出力形態を識別することが可能であり、この出力形態と時間測定回路に基づき、接続される出力回路を駆動及び保持するための最適なパルスを設定することが可能となる。   As described above, according to the first embodiment, regardless of the type of output circuit, the input / output interface circuit connected to each output circuit can identify the characteristic information and output form relating to the output circuit. Based on the output form and the time measurement circuit, it is possible to set an optimum pulse for driving and holding the connected output circuit.

実施の形態2.
この発明の実施の形態2に係るプログラマブルコントローラについて図5から図10までを参照しながら説明する。なお、この発明の実施の形態2に係るプログラマブルコントローラの構成は、上記の実施の形態1の図1と基本的には同様である。但し、各入出力インターフェース回路は、2つの時間測定回路、つまり時間測定回路1と時間測定回路2を含む。図1において、各出力回路は、8つの出力接点(リレー接点)を有するリレー出力回路又はトランジスタ出力回路である。
Embodiment 2. FIG.
A programmable controller according to Embodiment 2 of the present invention will be described with reference to FIGS. The configuration of the programmable controller according to the second embodiment of the present invention is basically the same as that of FIG. 1 of the first embodiment. However, each input / output interface circuit includes two time measurement circuits, that is, a time measurement circuit 1 and a time measurement circuit 2. In FIG. 1, each output circuit is a relay output circuit or a transistor output circuit having eight output contacts (relay contacts).

この実施の形態2に係るプログラマブルコントローラの動作について図面を参照しながら説明する。   The operation of the programmable controller according to the second embodiment will be described with reference to the drawings.

図5、図6、図7及び図8は、この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すタイミングチャートである。また、図9及び図10は、この発明の実施の形態2に係るプログラマブルコントローラの入出力インターフェース回路の動作を示すフローチャートである。   5, 6, 7 and 8 are timing charts showing the operation of the input / output interface circuit of the programmable controller according to the second embodiment of the present invention. 9 and 10 are flowcharts showing the operation of the input / output interface circuit of the programmable controller according to the second embodiment of the present invention.

図5(a)、図6(a)、図7(a)及び図8(a)は、CPUからの出力指令により、複数のリレー接点を有する1つの入出力インターフェース回路が、同時に複数のリレー接点を駆動及び保持する際の駆動パルス及び保持パルスを示すとともに、同各図(b)は、リレー出力回路全体が要する消費電力を示した図である。なお、図5、図6及び図7に示すリレーの特性は同一であり、図8に示すリレーのみ特性が異なる。   5 (a), 6 (a), 7 (a), and 8 (a) show that one input / output interface circuit having a plurality of relay contacts is simultaneously connected to a plurality of relays in response to an output command from the CPU. The driving pulse and holding pulse at the time of driving and holding the contact are shown, and the respective figures (b) are diagrams showing the power consumption required for the entire relay output circuit. The characteristics of the relays shown in FIGS. 5, 6 and 7 are the same, and only the characteristics of the relay shown in FIG. 8 are different.

保持パルスは、各出力回路に接続する入出力インターフェース回路及び時間測定回路に基づき算出されたタイミングで送信され、1つの入出力インターフェース回路に接続する各リレー接点への保持パルスの送信タイミングは、互いに同期しないものである。   The holding pulse is transmitted at a timing calculated based on the input / output interface circuit connected to each output circuit and the time measuring circuit, and the transmission timing of the holding pulse to each relay contact connected to one input / output interface circuit is mutually It is not synchronized.

図5、図6、図7及び図8の(a)のように、入出力インターフェース回路が各リレー接点に送信する保持パルスのタイミングは、リレー接点毎に同期しないため、1つの入出力インターフェース回路に接続するリレー出力回路全体の消費電力は図5、図6、図7及び図8の(b)に示すような特性となり、保持パルスに関する消費電力のピーク値が抑制される。なお、図5(a)及び(b)は同時に2つのリレー接点をオンする際の特性であり、図6(a)及び(b)は同時に4つのリレー接点をオンする際の特性であり、図7(a)及び(b)は同時に7つのリレー接点をオンする際の特性である。さらに、図8(a)及び(b)は、図5、図6及び図7に示すリレー接点と特性の異なるリレー接点を同時に3つオンする際の特性である。   As shown in FIGS. 5, 6, 7, and 8 (a), the timing of the holding pulse transmitted to each relay contact by the input / output interface circuit is not synchronized for each relay contact, so that one input / output interface circuit is provided. The power consumption of the entire relay output circuit connected to the circuit is as shown in FIG. 5, FIG. 6, FIG. 7 and FIG. 8B, and the peak value of the power consumption related to the holding pulse is suppressed. 5A and 5B are characteristics when two relay contacts are simultaneously turned on, and FIGS. 6A and 6B are characteristics when four relay contacts are simultaneously turned on. FIGS. 7A and 7B show characteristics when seven relay contacts are simultaneously turned on. Further, FIGS. 8A and 8B show characteristics when three relay contacts having different characteristics from those shown in FIGS. 5, 6, and 7 are simultaneously turned on.

また、保持パルスに関する消費電力のピーク値が抑制されることに伴い、消費電力が平滑化されるため、プログラマブルコントローラの出力回路が発生するノイズを低減することが可能となる。   Further, since the power consumption is smoothed as the peak value of the power consumption related to the holding pulse is suppressed, it is possible to reduce noise generated by the output circuit of the programmable controller.

入出力インターフェース回路が、接続される各リレー接点に保持パルスを送信するタイミングは、リレー接点のオン状態を保持するリレー接点の数量とリレー接点の特性に依存する。保持パルスの送信タイミング遅延時間Dは、オン状態を保持するために要するリレー接点の電圧印加周期(オン周期)をT、リレー接点のオン状態を保持するために必要となる電圧印加時間をt2、オン状態を保持するリレー接点の数量をN(N>1)とすると、D=(T−t2)/(N−1)となる。この関係式から、入出力インターフェース回路は、保持パルスの送信タイミング遅延時間Dを算出する。図5、図6、図7及び図8の(a)に、駆動パルスの電圧印加時間t1、並びに保持パルスの電圧印加周期T、電圧印加時間t2及び送信タイミング遅延時間Dを示す。この送信タイミング遅延時間Dは、例えば、図5(a)において、今回(下段)の保持パルスの送信開始から次の(上段)の保持パルスの送信開始までの時間である。   The timing at which the input / output interface circuit transmits a holding pulse to each connected relay contact depends on the number of relay contacts that hold the relay contact ON and the characteristics of the relay contacts. The holding pulse transmission timing delay time D is T for the voltage application period (ON period) of the relay contact required to hold the ON state, t2 for the voltage application time required to hold the ON state of the relay contact, Assuming that the number of relay contacts that keep the ON state is N (N> 1), D = (T−t2) / (N−1). From this relational expression, the input / output interface circuit calculates the transmission timing delay time D of the holding pulse. FIG. 5, FIG. 6, FIG. 7 and FIG. 8A show the voltage application time t1 of the drive pulse, the voltage application period T, the voltage application time t2, and the transmission timing delay time D of the holding pulse. This transmission timing delay time D is, for example, the time from the start of transmission of the current (lower) hold pulse to the start of transmission of the next (upper) hold pulse in FIG.

まず、ステップ200において、プログラマブルコントローラの電源に電源電圧が印加されると、各入出力インターフェース回路12、14、21、31は、接続される各出力回路13、15、22、32の特性情報を読み取り、各出力回路の出力形態を設定する。そして、次のステップ210の出力待機状態に遷移する。   First, in step 200, when a power supply voltage is applied to the power supply of the programmable controller, each input / output interface circuit 12, 14, 21, 31 receives characteristic information of each output circuit 13, 15, 22, 32 connected thereto. Read and set the output form of each output circuit. Then, transition is made to the output standby state in the next step 210.

次に、ステップ210において、入出力インターフェース回路が、プログラマブルコントローラ本体10のCPU11から出力指令を受信した際には、ステップ220に遷移し、出力指令を受信していない場合は、出力待機状態に再び遷移する。   Next, in step 210, when the input / output interface circuit receives an output command from the CPU 11 of the programmable controller body 10, the process proceeds to step 220. If the output command is not received, the input / output interface circuit returns to the output standby state. Transition.

次に、ステップ220において、出力指令内のオンするリレー出力回路及びオンするリレー出力回路の数量Nを確認し、オンするリレー出力回路に対し、駆動パルスを送信する。そして、ステップ230に遷移する。この時、オンするリレー出力回路の数量Nが0の場合は、ステップ210の出力待機状態に遷移する。   Next, in step 220, the number N of relay output circuits to be turned on and relay output circuits to be turned on in the output command is confirmed, and a drive pulse is transmitted to the relay output circuits to be turned on. Then, the process proceeds to step 230. At this time, when the number N of relay output circuits to be turned on is 0, the state transits to the output standby state in step 210.

次に、ステップ230において、駆動パルスを送信すると同時に、入出力インターフェース回路内の時間測定回路1は、駆動パルスの送信時間の測定を開始する。この時間測定回路1は設定された出力形態のオン時間t1が経過するまで、時間測定を継続する。時間測定中に新たな出力指令(前回に受信した内容と異なる)を入出力インターフェース回路が受信した際には、ステップ220に遷移する。この設定された出力形態のオン時間t1の経過を確認した後、入出力インターフェース回路は、オンするリレー出力回路の数量Nにより、ステップ240、260に遷移する。この際、リレー出力回路内のリレー接点は所定時間電流を流したため、オン状態となる。   Next, at step 230, at the same time as transmitting the drive pulse, the time measuring circuit 1 in the input / output interface circuit starts measuring the transmission time of the drive pulse. This time measurement circuit 1 continues the time measurement until the ON time t1 of the set output form elapses. When the input / output interface circuit receives a new output command (different from the previously received content) during the time measurement, the process proceeds to step 220. After confirming the elapse of the ON time t1 of the set output form, the input / output interface circuit transitions to steps 240 and 260 depending on the number N of relay output circuits to be turned on. At this time, the relay contact in the relay output circuit is turned on since a current flows for a predetermined time.

オンするリレー出力回路の数量Nが1の場合は、ステップ240において、駆動パルスの送信を停止し、時間測定回路1の測定時間をリセットする。その後、設定された出力形態に基づき、入出力インターフェース回路は、オン状態を保持するリレー接点に対し、保持パルスを送信する。なお、入出力インターフェース回路は、出力接点(リレー接点)の種類と出力形態の種類の対応関係を記憶している。   If the number N of relay output circuits to be turned on is 1, the transmission of drive pulses is stopped in step 240 and the measurement time of the time measurement circuit 1 is reset. Thereafter, based on the set output form, the input / output interface circuit transmits a holding pulse to the relay contact holding the ON state. The input / output interface circuit stores the correspondence between the type of output contact (relay contact) and the type of output form.

次に、ステップ250において、リレー接点のオン状態を保持するために必要となる電圧印加時間t2の経過を時間測定回路1により測定し、入出力インターフェース回路は、t2の経過を認識した後、保持パルス送信を停止する。次に、入出力インターフェース回路は、オン状態を保持するために要するリレー接点の電圧印加周期(オン周期)Tの経過を、時間測定回路1により測定し、この所定時間Tの経過を認識した後、時間測定回路1の測定時間をリセットする。なお、この処理中にも新たな出力指令を入出力インターフェース回路が受信した際には、出力指令の内容を再度確認する。出力指令の内容に変更がない場合は、再度オン状態を保持するリレー接点に保持パルスを送信する。   Next, in step 250, the elapsed time of voltage application t2 necessary for maintaining the relay contact ON state is measured by the time measuring circuit 1, and the input / output interface circuit recognizes the elapsed time t2 and holds it. Stop pulse transmission. Next, the input / output interface circuit measures the passage of the voltage application period (on period) T of the relay contact required to maintain the on state by the time measuring circuit 1 and recognizes the passage of the predetermined time T. The measurement time of the time measurement circuit 1 is reset. Even during this process, when the input / output interface circuit receives a new output command, the contents of the output command are confirmed again. When there is no change in the contents of the output command, a holding pulse is transmitted to the relay contact that holds the ON state again.

また、オンするリレー出力回路の数量Nが1より大きい場合は、ステップ260において、設定された出力形態に基づき、入出力インターフェース回路は、オンするリレー出力回路の数量N、保持パルスのオン周期Tとリレー接点のオン状態を保持するために必要となる電圧印加時間t2から保持パルス送信タイミング遅延時間Dを算出する。なお、入出力インターフェース回路は、出力接点(リレー接点)の種類と出力形態の種類の対応関係を記憶しているとともに、オンするリレー接点の数量Nと保持パルス送信タイミング遅延時間Dの対応関係を記憶している。保持パルス送信タイミング遅延時間Dを算出後、駆動パルスの送信を停止し、時間測定回路1の測定時間をリセットする。時間測定回路1の測定時間をリセットした後、保持パルスを出力点数の若番から順とする1つ目のオン状態を保持するリレー接点に送信する。   If the number N of relay output circuits to be turned on is larger than 1, in step 260, the input / output interface circuit determines the number N of relay output circuits to be turned on and the holding pulse ON cycle T based on the set output form. The hold pulse transmission timing delay time D is calculated from the voltage application time t2 required to hold the relay contact ON state. The input / output interface circuit stores the correspondence between the type of output contact (relay contact) and the type of output form, and the correspondence between the number N of relay contacts to be turned on and the holding pulse transmission timing delay time D. I remember it. After calculating the hold pulse transmission timing delay time D, transmission of the drive pulse is stopped and the measurement time of the time measurement circuit 1 is reset. After the measurement time of the time measurement circuit 1 is reset, the holding pulse is transmitted to the relay contact that holds the first ON state in order from the youngest number of output points.

ステップ270において、入出力インターフェース回路は、保持パルスの送信タイミング遅延時間Dの経過を時間測定回路1により測定し、時間測定回路2においてリレー接点のオン状態を保持するために必要となる電圧印加時間t2の経過を測定する。送信遅延時間Dと電圧印加時間t2の関係により、入出力インターフェース回路の動作が異なり、D>t2(図5)の関係が成立する場合においては、時間測定回路2は時間測定回路1が保持パルス送信タイミング遅延時間Dの経過を確認する前に、電圧印加時間t2の経過を確認し、ステップ280に移行する。   In step 270, the input / output interface circuit measures the elapse of the holding pulse transmission timing delay time D by the time measurement circuit 1, and the voltage application time required for holding the relay contact ON state in the time measurement circuit 2. Measure the course of t2. When the operation of the input / output interface circuit differs depending on the relationship between the transmission delay time D and the voltage application time t2, and when the relationship of D> t2 (FIG. 5) is established, the time measurement circuit 2 uses the hold pulse. Before confirming the elapse of the transmission timing delay time D, the elapse of the voltage application time t2 is confirmed, and the process proceeds to step 280.

また、D<t2(図7、図8)の関係が成立する場合においては、時間測定回路1は時間測定回路2が電圧印加時間t2の経過を確認する前に、保持パルス送信タイミング遅延時間Dの経過を確認し、次のオン状態を保持するリレー接点に保持パルスを送信し、時間測定回路1の測定時間をリセットする。その後、時間測定回路1は再度時間測定を開始する。保持パルスの送信回数とオンするリレー接点の数量Nとを比較した後に、数量Nに対し保持パルスの送信回数が少なければ、時間測定回路1、2は再度、保持パルス送信タイミングDと電圧印加時間t2の経過を測定する。これを繰り返し、図7の場合においては時間測定回路2がt2の経過を確認した後、ステップ280に移行し、図8の場合においては、t2の経過前に保持パルス送信回数がNと等しくなるため、時間測定回路2においてt2の経過を確認し、ステップ290に移行する。   Further, when the relationship of D <t2 (FIGS. 7 and 8) is established, the time measurement circuit 1 determines that the hold pulse transmission timing delay time D before the time measurement circuit 2 confirms that the voltage application time t2 has elapsed. , The holding pulse is transmitted to the relay contact that holds the next ON state, and the measuring time of the time measuring circuit 1 is reset. Thereafter, the time measurement circuit 1 starts time measurement again. After comparing the number of holding pulse transmissions with the number N of relay contacts to be turned on, if the number of holding pulse transmissions is less than the number N, the time measurement circuits 1 and 2 again hold the holding pulse transmission timing D and the voltage application time. Measure the course of t2. This is repeated, and in the case of FIG. 7, after the time measurement circuit 2 confirms the elapse of t2, the process proceeds to step 280. In the case of FIG. 8, the number of holding pulse transmissions becomes equal to N before the elapse of t2. Therefore, the time measurement circuit 2 confirms the elapse of t2 and proceeds to step 290.

さらに、D=t2(図6)の場合においては、時間測定回路1がDの経過を確認すると同時に時間測定回路2がt2の経過を確認するため、上述と同様にステップ280、または290に移行することとなる。   Further, in the case of D = t2 (FIG. 6), since the time measurement circuit 1 confirms the passage of D and the time measurement circuit 2 confirms the passage of t2, the process proceeds to step 280 or 290 as described above. Will be.

時間測定回路2が所定時間t2の経過を確認した後、ステップ280において、1つ目のオン状態を保持するリレー接点への保持パルスを送信を停止し、時間測定回路2の測定時間をリセットする。その後、時間測定回路2は再度時間測定を開始し、時間測定回路1が所定時間Dの経過を確認した際には、時間測定回路1は次のオン状態を保持するリレー接点に保持パルスを送信する。また、時間測定回路1は測定時間をリセットし、再度時間測定を開始し、ステップ290に移行する。   After the time measurement circuit 2 confirms that the predetermined time t2 has elapsed, in step 280, the transmission of the holding pulse to the relay contact holding the first ON state is stopped, and the measurement time of the time measurement circuit 2 is reset. . Thereafter, the time measurement circuit 2 starts time measurement again. When the time measurement circuit 1 confirms that the predetermined time D has elapsed, the time measurement circuit 1 transmits a holding pulse to the relay contact that holds the next ON state. To do. The time measurement circuit 1 resets the measurement time, starts time measurement again, and proceeds to step 290.

ステップ290において、時間測定回路2が所定時間Dの経過を確認した際には、保持パルス送信を停止し、時間測定回路2の測定時間をリセットする。その後、時間測定回路2は再度時間測定を開始する。時間測定回路2が時間測定を開始した後、保持パルス送信の停止回数とオンするリレー接点の数量Nとを比較し、数量Nと保持パルス送信の停止回数が等しければ、ステップ300に移行する。   In step 290, when the time measurement circuit 2 confirms that the predetermined time D has elapsed, the holding pulse transmission is stopped and the measurement time of the time measurement circuit 2 is reset. Thereafter, the time measurement circuit 2 starts time measurement again. After the time measurement circuit 2 starts time measurement, the number of holding pulse transmissions stopped is compared with the number N of relay contacts to be turned on. If the number N is equal to the number of holding pulse transmissions stopped, the process proceeds to step 300.

また、保持パルス送信の停止回数とオンするリレー接点の数量Nとを比較し、数量Nに対し保持パルス送信の停止回数が等しくなければ、次に数量Nと保持パルス送信回数とを比較する。比較結果が等しい場合は、時間測定回路2が再度所定時間Dの経過を測定及び確認する。比較結果が異なる場合には、ステップ280に遷移する。   Also, the number of holding pulse transmission stops is compared with the number N of relay contacts that are turned on. If the number of holding pulse transmission stops is not equal to the number N, then the number N is compared with the number of holding pulse transmissions. If the comparison results are equal, the time measurement circuit 2 measures and confirms the passage of the predetermined time D again. If the comparison results are different, the process proceeds to step 280.

なお、時間測定回路1及び2が時間経過を測定中に、新たな出力指令を入出力インターフェース回路が受信した際には、出力指令の内容を再度確認する。出力指令の内容に変更がない場合は、時間測定回路1及び2は時間測定を継続するが、出力指令の内容に変更がある場合には、ステップ220に移行する。   When the input / output interface circuit receives a new output command while the time measurement circuits 1 and 2 are measuring the passage of time, the contents of the output command are checked again. When there is no change in the content of the output command, the time measurement circuits 1 and 2 continue the time measurement, but when there is a change in the content of the output command, the process proceeds to step 220.

このように、この実施の形態2によれば、入出力インターフェース回路は、出力回路の特性情報とその特性情報に対応する出力形態に基づき、特性情報を識別して出力形態を設定し、時間測定回路1、2による測定時間に基づき、駆動パルスを各リレー接点に送信し、その後、互いに同期しないタイミングで保持パルスを各リレー接点に送信する。これにより、1つの入出力インターフェース回路に接続する、複数のリレー接点を有するリレー出力回路が要する保持パルスに関する消費電力のピーク値を低減できる。このことに伴い消費電力が平滑化され、プログラマブルコントローラの出力回路が発生するノイズを低減することが可能となる。   As described above, according to the second embodiment, the input / output interface circuit sets the output form by identifying the characteristic information based on the characteristic information of the output circuit and the output form corresponding to the characteristic information, and measures the time. Based on the measurement time by the circuits 1 and 2, a driving pulse is transmitted to each relay contact, and then a holding pulse is transmitted to each relay contact at a timing that is not synchronized with each other. Thereby, the peak value of the power consumption regarding the holding | maintenance pulse which the relay output circuit which has a some relay contact connected to one input / output interface circuit requires can be reduced. Accordingly, power consumption is smoothed, and noise generated by the output circuit of the programmable controller can be reduced.

なお、上述の各実施の形態は、入出力インターフェース回路に出力回路に関する出力形態の情報を記憶させていたが、記憶媒体や、外部回路に出力形態の情報を記憶してもよい。   In each of the embodiments described above, the output form information related to the output circuit is stored in the input / output interface circuit. However, the output form information may be stored in a storage medium or an external circuit.

また、保持パルスの送信タイミングを算出する時間測定回路は、入出力インターフェース回路に内蔵せずに、時間測定回路を別に設けてもよい。   In addition, the time measurement circuit for calculating the transmission timing of the holding pulse may be provided separately from the input / output interface circuit without being built in the input / output interface circuit.

さらには、入出力インターフェース回路及び内蔵する時間測定回路の代用として、マイクロコンピュータ及び外部回路を用いることもできる。   Furthermore, a microcomputer and an external circuit can be used as a substitute for the input / output interface circuit and the built-in time measuring circuit.

10 プログラマブルコントローラ本体、11 CPU、12 入出力インターフェース回路、13 出力回路、14 入出力インターフェース回路、15 出力回路、20 増設I/Oユニット、21 入出力インターフェース回路、22 出力回路、30 増設I/Oユニット、31 入出力インターフェース回路、32 出力回路、80 ジャンパ抵抗、121 時間測定回路、141 時間測定回路、211 時間測定回路。   10 Programmable Controller Body, 11 CPU, 12 Input / Output Interface Circuit, 13 Output Circuit, 14 Input / Output Interface Circuit, 15 Output Circuit, 20 Additional I / O Unit, 21 Input / Output Interface Circuit, 22 Output Circuit, 30 Additional I / O Unit, 31 input / output interface circuit, 32 output circuit, 80 jumper resistance, 121 time measurement circuit, 141 time measurement circuit, 211 time measurement circuit.

Claims (3)

第1の外部負荷を駆動するプログラマブルコントローラ本体を備え、
前記プログラマブルコントローラ本体は、
前記第1の外部負荷を駆動する信号を出力するリレー出力回路からなる第1の出力回路と、
出力指令を出力する制御手段と、
前記第1の出力回路の出力形態を特定するための特性情報を、外部から設定される電圧レベル信号として読み取る入力部、および前記入力部で読み取った前記電圧レベル信号に対応する特性情報を識別して、前記特性情報に対応する出力形態を設定し、前記出力指令に基づいて、設定された出力形態に従って所定のパルスを前記第1の出力回路へ出力する出力部を有する第1の入出力手段と
を含み、
前記第1の入出力手段は、
前記出力形態を、出力接点を駆動させる駆動パルスとこの駆動パルスの印加から所定時間経過後に印加され前記出力接点をオン状態に保持させる保持パルスとで出力するよう設定し、
前記保持パルスのオン時間が前記駆動パルスのオン時間よりも短くなるよう前記保持パルスのオン時間又はオン周期の少なくとも1つを設定するとともに、
前記出力接点の種類情報と、前記駆動パルスのオン時間、並びに前記保持パルスのオン時間及びオン周期との対応関係を記憶しており、
前記出力接点の種類に基づいて、前記駆動パルスのオン時間、並びに前記保持パルスのオン時間及びオン周期を可変できる
ことを特徴とするプログラマブルコントローラ。
A programmable controller body for driving the first external load;
The programmable controller body is:
A first output circuit comprising a relay output circuit for outputting a signal for driving the first external load;
Control means for outputting an output command;
Identifying characteristic information for specifying the output form of the first output circuit as an externally set voltage level signal, and characteristic information corresponding to the voltage level signal read by the input part A first input / output unit having an output unit that sets an output form corresponding to the characteristic information and outputs a predetermined pulse to the first output circuit in accordance with the set output form based on the output command. viewing including the door,
The first input / output means includes
The output form is set to output with a drive pulse that drives the output contact and a holding pulse that is applied after a lapse of a predetermined time from the application of the drive pulse and holds the output contact in an ON state,
Setting at least one of the on-time or on-period of the holding pulse so that the on-time of the holding pulse is shorter than the on-time of the drive pulse;
Stores the correspondence between the type information of the output contact, the on-time of the drive pulse, and the on-time and on-cycle of the holding pulse,
A programmable controller , wherein an ON time of the drive pulse and an ON time and an ON cycle of the holding pulse can be varied based on the type of the output contact .
第2の外部負荷を駆動する増設I/Oユニットをさらに備え、
前記増設I/Oユニットは、
前記第2の外部負荷を駆動する信号を出力するリレー出力回路からなる第2の出力回路と、
前記第2の出力回路の特性情報を識別して、前記特性情報に対応する出力形態を設定し、前記出力指令に基づいて、設定された出力形態に従って所定のパルスを前記第2の出力回路へ出力する第2の入出力手段と
を含むことを特徴とする請求項1記載のプログラマブルコントローラ。
An additional I / O unit for driving the second external load;
The additional I / O unit is
A second output circuit comprising a relay output circuit for outputting a signal for driving the second external load;
The characteristic information of the second output circuit is identified, an output form corresponding to the characteristic information is set, and a predetermined pulse is sent to the second output circuit according to the set output form based on the output command. The programmable controller according to claim 1, further comprising: second input / output means for outputting.
前記リレー出力回路は、複数の出力接点を有し、
前記第1または第2の入出力手段は、前記複数の出力接点に印加する前記保持パルスのオン時間が互いに同期しないように設定する
ことを特徴とする請求項又は記載のプログラマブルコントローラ。
The relay output circuit has a plurality of output contacts,
The first or second input means, a programmable controller of claim 1 or 2, wherein the on-time of the sustain pulses to be applied to the plurality of output contacts are set not synchronized with each other.
JP2010120370A 2010-05-26 2010-05-26 Programmable controller Expired - Fee Related JP5101660B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010120370A JP5101660B2 (en) 2010-05-26 2010-05-26 Programmable controller
CN201010518199.9A CN102262397B (en) 2010-05-26 2010-10-12 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010120370A JP5101660B2 (en) 2010-05-26 2010-05-26 Programmable controller

Publications (2)

Publication Number Publication Date
JP2011248578A JP2011248578A (en) 2011-12-08
JP5101660B2 true JP5101660B2 (en) 2012-12-19

Family

ID=45009066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010120370A Expired - Fee Related JP5101660B2 (en) 2010-05-26 2010-05-26 Programmable controller

Country Status (2)

Country Link
JP (1) JP5101660B2 (en)
CN (1) CN102262397B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013186889A1 (en) * 2012-06-14 2013-12-19 三菱電機株式会社 I/o device, programmable logic controller, and arithmetic processing method
JP6393513B2 (en) * 2014-04-30 2018-09-19 パナソニック デバイスSunx株式会社 Programmable controller and program development support device
DE112015006682T5 (en) * 2015-07-10 2018-03-29 Mitsubishi Electric Corporation DEVICE AND METHOD FOR PRODUCING PROGRAMS
WO2020039523A1 (en) 2018-08-22 2020-02-27 三菱電機株式会社 Programmable logic controller, cpu unit, function unit, method, and program

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0770394B2 (en) * 1985-06-05 1995-07-31 富士通株式会社 Magnet drive circuit
JPH06275185A (en) * 1993-03-19 1994-09-30 Matsushita Electric Ind Co Ltd Relay driving device
JPH0950306A (en) * 1995-08-08 1997-02-18 Denso Corp Control system
JPH0981212A (en) * 1995-09-19 1997-03-28 Denso Corp Relay output circuit for control device
CN1189641A (en) * 1997-01-27 1998-08-05 中国航空工业总公司第六二五研究所 Programable automatic control system and control method
JP4378585B2 (en) * 2000-03-29 2009-12-09 ソニー株式会社 Relay drive device
JP3474146B2 (en) * 2000-04-18 2003-12-08 株式会社ミツトヨ Electronics
JP2002163009A (en) * 2000-11-28 2002-06-07 Okuma Corp Controller for input and output of contact point
JP2003303536A (en) * 2002-04-10 2003-10-24 Fujitsu Component Ltd Relay driving device and relay device
JP2005275938A (en) * 2004-03-25 2005-10-06 Toshiba Corp Controller system and controller for mechatronics apparatus

Also Published As

Publication number Publication date
JP2011248578A (en) 2011-12-08
CN102262397A (en) 2011-11-30
CN102262397B (en) 2014-07-09

Similar Documents

Publication Publication Date Title
JP5408316B1 (en) Electromagnetic relay control unit and electromagnetic relay control method
JP5101660B2 (en) Programmable controller
CN102742137A (en) Power supply device and method for controlling same
JP5900812B2 (en) Closed circuit power line communication system for large loads.
CN101697073B (en) Needle selection control system and control method of computerized flat knitting machine
CN108370260A (en) Power line communication apparatus and the electronic control unit for having power line communication apparatus
JP2009213222A (en) Power generation controller for vehicle
CN103574706A (en) Multi-burner induction cooker and heating control method thereof
JP3184816U (en) Temperature controller with phase control function and zero cross period control function
JP2021152783A (en) Slave device, information processing device, master-slave control system, control method for slave device, and control method for information processing device
CN108278743B (en) Communication circuit and communication method of variable frequency air conditioner
JPH06208814A (en) Switch device for connection and dis- connection of zero-crossing ac voltage source to ac load line
KR102328549B1 (en) Electronics
JP2016013020A (en) Non-contact power supply device, non-contact power supply system, and control method for non-contact power supply device
CN110459433B (en) Relay zero-crossing control method and cooking appliance
CN203131890U (en) Micro-wave oven
JP2007327745A (en) Measuring device
JP2017172989A (en) Object detection device
JP6207385B2 (en) Electronics
CN116930738A (en) Method, device, equipment, medium and program product for calibrating relay
JP2002267195A (en) Electric floor-heating apparatus
JP3068503B2 (en) Power control circuit
JPH10208575A (en) Relay controlling method
JP4534063B2 (en) Triac control device
KR20190056572A (en) Magnetic stripe transmitter driving device with low power consumption using current shaper

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120326

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120831

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20120907

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120925

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120926

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

Free format text: PAYMENT UNTIL: 20151005

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5101660

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

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

LAPS Cancellation because of no payment of annual fees