[go: up one dir, main page]

JPS62115518A - Ad conversion unit in programmable controller - Google Patents

Ad conversion unit in programmable controller

Info

Publication number
JPS62115518A
JPS62115518A JP25618985A JP25618985A JPS62115518A JP S62115518 A JPS62115518 A JP S62115518A JP 25618985 A JP25618985 A JP 25618985A JP 25618985 A JP25618985 A JP 25618985A JP S62115518 A JPS62115518 A JP S62115518A
Authority
JP
Japan
Prior art keywords
circuit
input
gain
variable gain
amplifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25618985A
Other languages
Japanese (ja)
Inventor
Keizo Yamamura
山村 恵造
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP25618985A priority Critical patent/JPS62115518A/en
Publication of JPS62115518A publication Critical patent/JPS62115518A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To respond rapidly to the change of an input voltage specification making unnecessary a manual operation at an AD conversion unit side or the cut off of a power source by providing a variable gain amplifier circuit at the input side of an AD conversion circuit, and performing the remote control of a gain at a CPU unit side. CONSTITUTION:An analog input voltage obtained from an input terminal 4 is amplified at a variable gain amplifier circuit 5. The circuit 5 is constituted with operational amplifiers 51 and 52 which operate as a voltage follower and a variable gain amplifier respectively. Analog switches 53-55 are inserted to each of feedback loops provided at the amplifier 52, and the gain of the amplifier 52 is set in one time, two times, and five times respectively depending on a state that each of the switches 53, 54, and 55 is turned on. The amplified output of the circuit 5 is digitized at an AD conversion LSI6, and sent out to a data bus through a buffer 7, and a two-way bus driver 8. Meanwhile, the switches 53-55 are controlled with the outputs D0-D2 of a latch circuit 9, and also, a bit of gain information sent from the CPU unit side is latched at the circuit 9 through the driver 8.

Description

【発明の詳細な説明】 (発明の分野) この発明は、複数の入力電圧レンジを備え、かつこれを
CPtJユニット側から任意に切替えることができるよ
うにしたプログラマブル・コントローラのAD変換ユニ
ットに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to an AD conversion unit of a programmable controller which is provided with a plurality of input voltage ranges and which can be arbitrarily switched from the CPtJ unit side.

(発明の概要) この発明では、AD変換回路の入力側に可変利得増幅回
路を設けるとともに、その利得をCPUユニット側で遠
隔制御することにより、AD変換ユニット側で電源を落
したり、あるいは手動の切替操作を伴うことなく、入力
電圧レンジの変更に即座に対応可能としたものである。
(Summary of the Invention) In this invention, a variable gain amplification circuit is provided on the input side of the AD conversion circuit, and its gain is remotely controlled on the CPU unit side, so that the power can be turned off on the AD conversion unit side or manually. This makes it possible to immediately respond to changes in the input voltage range without any switching operations.

(従来技術とその問題点) 従来、この種のプログラマブル・コントローラのAD変
換ユニットにおいては、入力電圧レンジの変更に際して
、その都度電源を落し、また短絡ピンの差替えなどのよ
うな手動切替操作を必要とし、このためニー1f側にあ
ける電圧仕様の変更等に即座に対応できず、また短絡ピ
ンの差替えミスなどによって、入力電圧レンジを誤設定
するなどの問題があった。
(Prior art and its problems) Conventionally, in the AD conversion unit of this type of programmable controller, when changing the input voltage range, it was necessary to turn off the power each time and perform manual switching operations such as replacing the shorting pin. Therefore, it is not possible to immediately respond to changes in the voltage specifications on the knee 1f side, and there are problems such as incorrect setting of the input voltage range due to mistakes in replacing the shorting pin.

(発明の目的) この発明の目的は、この種のAD変換ユニットにおいて
、同等AD変換ユニット側における手動切替操作を要す
ることなく、また電源を落す必要もなく、ただちに入力
電圧仕様の変更に対応できるようにしたAD変換ユニッ
トを提供することにある。
(Objective of the Invention) The object of the present invention is to be able to immediately respond to changes in input voltage specifications in this type of AD conversion unit without requiring manual switching operations on the equivalent AD conversion unit side or without turning off the power. An object of the present invention is to provide an AD conversion unit.

(発明の構成と効果) この発明は上記の目的を達成するために、CPUユニッ
トからの制御で開き、システムバス上の利得情報を出力
する出力ポートと、 出力ポートから得られる利得情報を記憶する記憶回路と
、 外部入力端子から得られるアナログ入力電圧を、記憶さ
れた利得情報に応じて増幅する可変利(q増幅回路と、 可変利得増幅回路から得られるアナログ電圧をデジタル
変換するA/D変換回路と、 CPUユニットからの制御で開き、変換後のデジタル情
報をシステムバス上に入力する入力ポートと、 からなることを特徴とするものである。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention has an output port that is opened under control from the CPU unit and outputs gain information on the system bus, and stores the gain information obtained from the output port. A memory circuit, a variable gain (q amplification circuit) that amplifies the analog input voltage obtained from the external input terminal according to the stored gain information, and an A/D conversion circuit that digitally converts the analog voltage obtained from the variable gain amplification circuit. It is characterized by consisting of a circuit, and an input port that is opened under control from the CPU unit and inputs converted digital information onto the system bus.

このような構成によれば、CPUユニット側から該当す
る入力ポートに対して利1ワ情報を送り出すだけで、た
だちに入力レンジの切替を行なうことができ、電源を落
す必要もないため、ユーザ側の電圧仕様の変更に対して
即座に対応が可能となる。
According to such a configuration, the input range can be immediately switched by simply sending the power information from the CPU unit side to the corresponding input port, and there is no need to turn off the power, so there is no need for the user to turn off the power. It is possible to immediately respond to changes in voltage specifications.

また、従来の短絡ピンの差替えを行なう装置のように、
何等手動切替操作を必要としないため、それに伴う電圧
レンジの誤ム2定も避けることができる。
Also, like the conventional shorting pin replacement device,
Since no manual switching operation is required, it is possible to avoid erroneous voltage range constants caused by this.

(実施例の説明) 第1図は本発明に係るAD変換ユニットの電気的な構成
を示すブロック図である。
(Description of Embodiments) FIG. 1 is a block diagram showing the electrical configuration of an AD conversion unit according to the present invention.

このAD変換ユニットは、コネクタ1を介してプログラ
マブル・コントローラ装置(ビルティング・ブロックタ
イプ)のシステムバス2に接続が可能となっている。
This AD conversion unit can be connected to a system bus 2 of a programmable controller device (building block type) via a connector 1.

また、端子台3に設けられた入力端子4からは、任意の
アナログ電圧を入力可能になっている。
Furthermore, any analog voltage can be input from the input terminal 4 provided on the terminal block 3.

入力端子4から得られるアナログ入力電圧は、可変利得
増幅回路5で増幅される。
The analog input voltage obtained from the input terminal 4 is amplified by the variable gain amplifier circuit 5.

この可変利得増幅回路5は、ボルテージフォロアとして
動作するOPアンプ51と、可変利得増幅器として動作
するOPアンプ52とから構成されている。
The variable gain amplifier circuit 5 includes an OP amplifier 51 that operates as a voltage follower and an OP amplifier 52 that operates as a variable gain amplifier.

このOPアンプ52には、3系統の帰還ループが設けら
れており、各帰還ループにはアナログスイッチ53.5
4.55が挿入されている。
This OP amplifier 52 is provided with three systems of feedback loops, and each feedback loop has an analog switch 53.5.
4.55 has been inserted.

アナログスイッチ53がオンした状態では、第2図に示
されるように、OPアンプ52の利得は1倍に設定され
る。
When the analog switch 53 is turned on, the gain of the OP amplifier 52 is set to 1, as shown in FIG.

また、アナログスイッチ54がオンした状態では、第3
図に示す如く、OPアンプ52の利得は2倍に設定され
る。
In addition, when the analog switch 54 is on, the third
As shown in the figure, the gain of the OP amplifier 52 is set to double.

また、アナログスイッチ55がオンした状態では、第4
図に示す如く、OPアンプ52の利得1,15倍に設定
される。
In addition, when the analog switch 55 is on, the fourth
As shown in the figure, the gain of the OP amplifier 52 is set to 1.15 times.

可変利得増幅回路5から得られる増幅後のアナログ電圧
は、公知のA/D変換LSI6でデジタル情報に変換さ
れた後、バッフ777、双方向バスドライバ(入出力兼
用ポートとして機能する)8を介して、CPtJユニッ
トにつながるデータバス上に送り出される。
The amplified analog voltage obtained from the variable gain amplifier circuit 5 is converted into digital information by a known A/D converter LSI 6, and then passed through a buffer 777 and a bidirectional bus driver (functioning as an input/output port) 8. The data is then sent out onto the data bus connected to the CPtJ unit.

一方、可変利得回路5内の各アナログスイッチ53〜5
5は、ラッチ回路9の出力Do”D2によってオンオフ
制御され、またこのラッチ回路9には、双方向バスドラ
イバ8を介してCPUユニット側から送られた利得情報
がラッチされる。
On the other hand, each analog switch 53 to 5 in the variable gain circuit 5
5 is on/off controlled by the output Do''D2 of the latch circuit 9, and the latch circuit 9 latches gain information sent from the CPU unit side via the bidirectional bus driver 8.

次に、このAD変換ユニットの利得を5倍に設定する場
合を例にとり、ユーザプログラムの構成を、第5図のラ
ダー図を参照しながら説明する。
Next, the configuration of the user program will be explained with reference to the ladder diagram of FIG. 5, taking as an example the case where the gain of this AD conversion unit is set to five times.

第5図のラダー図に示されるプログラムは、第1図に示
されるAD変換ユニットをチャンネル番号(CH30)
に割当てるとともに、その利(qを5倍に設定し、さら
にアナログ入力の値に応じて、タイマ(64−0)の設
定値を、大小変更するものである。
The program shown in the ladder diagram of Fig. 5 connects the AD conversion unit shown in Fig. 1 to the channel number (CH30).
At the same time, the profit (q) is set to 5 times, and the set value of the timer (64-0) is changed in size according to the value of the analog input.

すなわち、押ボタンスイッチ(PB−1)が操作される
と、そのときの入力アナログ電圧の大きざに応じて、タ
イマ(64−0)の設定値が決定され、このタイマのタ
イムアツプとともに、リレー(10−5>が駆動される
ようにしたものである。
That is, when the pushbutton switch (PB-1) is operated, the setting value of the timer (64-0) is determined according to the magnitude of the input analog voltage at that time, and as the timer times up, the relay ( 10-5> is driven.

゛この場合、第5図のラダー図に示す如く、通常のデー
タ転送命令LD、SDのほかに、レンジ設定命令 G  5 を使用することによって、CH30のAD変換ユニット
のレンジを5倍とする。
In this case, as shown in the ladder diagram of FIG. 5, the range of the AD conversion unit of CH30 is increased five times by using a range setting command G 5 in addition to the normal data transfer commands LD and SD.

なお、この際には第6図に示す如く、CPJJユニット
内のI10メモリにおいては、第65チヤンネルにタイ
マ(64−0)の設定値が記憶されているものとする。
In this case, as shown in FIG. 6, it is assumed that the set value of the timer (64-0) is stored in the 65th channel in the I10 memory in the CPJJ unit.

次に、以上のユーザプログラムに対応した、CPtJユ
ニット側にあける制御内容について説明する。
Next, the control contents provided on the CPtJ unit side corresponding to the above user program will be explained.

第7図において、プログラムがスタートすると、まずイ
ニシャル処理において、各種フラグ、レジスタ類の初期
設定を行なった後(ステップ701)、システムサービ
ス処理(ステップ702>、入力更新処理(ステップ7
03)を順次行なう。
In FIG. 7, when the program starts, first, in initial processing, various flags and registers are initialized (step 701), system service processing (step 702>), input update processing (step 7).
03) in sequence.

システムサービス処理では、モニタ、プログラミング等
の処理を行ない、また入力更新処理では、I10メモリ
の入カニリアと、入カニニットとの間においてデータ更
新を行なう。
In the system service processing, processing such as monitoring and programming is performed, and in the input update processing, data is updated between the input canister and the input cannit of the I10 memory.

以後、プログラムコンソールでRUNモードに相当する
キー操作が行なわれない限り(ステップ704否定)、
出カニニットの状態は全てオフ状態に設定される。
Thereafter, unless a key operation corresponding to RUN mode is performed on the program console (step 704 is negative),
The state of all output kaninits is set to the off state.

これに対して、プログラムコンソールでRtJNモード
に相当するキー操作が行なわれると(ステップ704肯
定)、ユーザプログラムの先頭から命令語を順次読出し
くステップ706) 、読み出された命令語がEND命
令、RG語命令何れでもなければ(ステップ707否定
、708否定)、該当命令の実行を行なう(ステップ7
09)。
On the other hand, when a key operation corresponding to the RtJN mode is performed on the program console (step 704 affirmative), the command words are sequentially read from the beginning of the user program (step 706), and the read command words are the END command, If there is no RG word command (step 707 negative, 708 negative), the corresponding command is executed (step 7
09).

これに対して、読み出された命令語がレンジ設定命令R
Gであると(ステップ708)、指定チャンネルのAD
変換ユニットに対して、レンジ設定データの送出を行な
う(ステップ710)。
On the other hand, the read instruction word is the range setting instruction R.
If it is G (step 708), the AD of the designated channel
Range setting data is sent to the conversion unit (step 710).

すると、第1図においては、出力ポートとして機能する
双方向バスドライバ8が開いてレンジ設定データはAD
変換ユニットに取込まれ、ラッチ9に記憶される。
Then, in FIG. 1, the bidirectional bus driver 8, which functions as an output port, opens and the range setting data is transferred to the AD.
It is taken into the conversion unit and stored in the latch 9.

このとき、レンジ設定データを構成するDo〜D7の中
で、D2だけを“1′′に設定しておくことによって、
アナログスイッチ55のみをオンさせ、OPアンプ52
の利得を5倍に設定させることができる。
At this time, by setting only D2 to "1'' among Do to D7 that make up the range setting data,
Turn on only the analog switch 55 and turn on the OP amplifier 52.
The gain can be set to 5 times.

同様に、DoまたはDlだけを“1”に設定すれば、可
変利得増幅回路5の利得を、1倍、2倍にそれぞれ設定
することができる。
Similarly, by setting only Do or Dl to "1", the gain of the variable gain amplifier circuit 5 can be set to 1 and 2, respectively.

次に第7図に戻って、順次命令を読み出した結果、最終
的にEND命令が読み出されれば(ステップ707肯定
)、出力更新処理を行なう(ステップ711〉。
Next, returning to FIG. 7, as a result of sequentially reading out the instructions, if the END instruction is finally read out (Yes at step 707), output update processing is performed (step 711).

この出力更新処理では、演算実行の結果占替が終了した
出力データを、出カニニットに送出し、外部への出力を
行なうものである。
In this output update process, output data that has been replaced as a result of calculation execution is sent to the output unit for output to the outside.

このように、この実施例では、ユーザプログラム中でレ
ンジ設定命令RGを使用し、指定チャンネルの入力レン
ジを任意にユーザプログラム上で設定変更させることが
でき、従来装置のようにAD変換ユニット側で電源を落
して手動切替操作を行なう等の必要は全くなく、このた
めユーザ側の電圧仕様の変更に対して即座に対応が可能
であり、またJJ定の虞れも少ない。
In this way, in this embodiment, the range setting command RG is used in the user program, and the input range of the designated channel can be arbitrarily changed in the user program, and unlike conventional devices, the range setting command RG can be used to change the setting of the input range of the specified channel on the user program. There is no need to turn off the power and perform a manual switching operation, so it is possible to immediately respond to changes in voltage specifications by the user, and there is little risk of JJ determination.

なお、この実施例ではユーザプログラム中で使用された
レンジ設定命令RGをCPUユニット側で解読させ、そ
の結果で入力レンジの切替を行なうようにしたが、別途
プログラムコンソールに専用のシフトキーをF、2Sブ
、これから入力されるレンジ7.2定データで直接にA
D変換ユニットの利得を変更してもよいことは勿論であ
る。
In this embodiment, the range setting command RG used in the user program is decoded on the CPU unit side, and the input range is switched based on the result. B, directly A with the range 7.2 constant data that will be input from now on.
Of course, the gain of the D conversion unit may be changed.

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

第1図は本発明に係るAD変換ユニットの電気的な構成
を示すブロック図、第2図〜第4図は可変利得増幅回路
の各設定状態を示す説明図、第5図はレンジ変更のため
のユーザプログラムを示すラダー図、第6図はI10メ
モリ内のタイマ設定値エリアの状態を示すメモリマツプ
、第7図はCPUユニットの制御内容を示すフローチャ
ートである。 1・・・コネクタ 2・・・システムバス 3・・・端子台 4・・・入力端子 5・・・可変利得増幅回路 6・・・AD変換LSI 7・・・バッファ 8・・・双方向バスドライバ 9・・・ラッチ 特許出願人  立石電機株式会社 第5図 第6図
Fig. 1 is a block diagram showing the electrical configuration of the AD conversion unit according to the present invention, Figs. 2 to 4 are explanatory diagrams showing each setting state of the variable gain amplifier circuit, and Fig. 5 is for changing the range. FIG. 6 is a memory map showing the state of the timer setting value area in the I10 memory, and FIG. 7 is a flowchart showing the control contents of the CPU unit. 1... Connector 2... System bus 3... Terminal block 4... Input terminal 5... Variable gain amplifier circuit 6... AD conversion LSI 7... Buffer 8... Bidirectional bus Driver 9...Latch patent applicant Tateishi Electric Co., Ltd. Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] (1)CPUユニットからの制御で開き、システムバス
上の利得情報を出力する出力ポートと、出力ポートから
得られる利得情報を記憶する記憶回路と、 外部入力端子から得られるアナログ入力電圧を、記憶さ
れた利得情報に応じて増幅する可変利得増幅回路と、 可変利得増幅回路から得られるアナログ電圧をデジタル
変換するA/D変換回路と、 CPUユニットからの制御で開き、変換後のデジタル情
報をシステムバス上に入力する入力ポートと、 からなることを特徴とするプログラマブル・コントロー
ラのAD変換ユニット。
(1) An output port that opens under control from the CPU unit and outputs gain information on the system bus, a memory circuit that stores the gain information obtained from the output port, and an analog input voltage obtained from the external input terminal. A variable gain amplifier circuit that amplifies the obtained gain information according to the obtained gain information, and an A/D conversion circuit that digitally converts the analog voltage obtained from the variable gain amplifier circuit. An AD conversion unit of a programmable controller, comprising: an input port for inputting data onto a bus;
JP25618985A 1985-11-15 1985-11-15 Ad conversion unit in programmable controller Pending JPS62115518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25618985A JPS62115518A (en) 1985-11-15 1985-11-15 Ad conversion unit in programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25618985A JPS62115518A (en) 1985-11-15 1985-11-15 Ad conversion unit in programmable controller

Publications (1)

Publication Number Publication Date
JPS62115518A true JPS62115518A (en) 1987-05-27

Family

ID=17289142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25618985A Pending JPS62115518A (en) 1985-11-15 1985-11-15 Ad conversion unit in programmable controller

Country Status (1)

Country Link
JP (1) JPS62115518A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022025810A1 (en) * 2020-07-29 2022-02-03 Fingerprint Cards Anacatum Ip Ab Adaptive readout from a global shutter optical biometric sensor
US11516413B2 (en) 2020-07-29 2022-11-29 Fingerprint Cards Anacatum Ip Ab Adaptive readout from an optical biometric sensor to a host device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022025810A1 (en) * 2020-07-29 2022-02-03 Fingerprint Cards Anacatum Ip Ab Adaptive readout from a global shutter optical biometric sensor
CN114514739A (en) * 2020-07-29 2022-05-17 指纹卡安娜卡敦知识产权有限公司 Adaptive readout of global shutter optical biometric sensor
US11508180B2 (en) 2020-07-29 2022-11-22 Fingerprint Cards Anacatum Ip Ab Adaptive readout from a global shutter optical biometric sensor
US11516413B2 (en) 2020-07-29 2022-11-29 Fingerprint Cards Anacatum Ip Ab Adaptive readout from an optical biometric sensor to a host device

Similar Documents

Publication Publication Date Title
JPS62115518A (en) Ad conversion unit in programmable controller
US4616309A (en) Numerical control system
JP2666570B2 (en) FET bias control circuit for microwave amplification
JPS61193219A (en) Power on method
KR950010722B1 (en) Tester for Crane Moment Limiter
JP2519867B2 (en) Differentiating device for controller for construction machine actuator
JPS60201798A (en) Information setting device
JPS5834623A (en) Analog inputting device
KR970005559B1 (en) PLC's contact on / off control circuit
JPH0396862A (en) Analysis controller
JPH11192947A (en) Switching support equipment for railway signal security systems
JPH0237068Y2 (en)
JPH02126490U (en)
KR960013091B1 (en) Elevator status / function search and operation method
JPS6175449A (en) Variation system for internal constitution control data of input and output controller
JP2800432B2 (en) Setting method of set value in inverter device
JPH01291315A (en) Input/output interface
JPH04357529A (en) Fuzzy rule development supporting device
JPH01265307A (en) Analog/digital conversion unit for sequencer
JPH0433125A (en) information input device
JPH01125198A (en) Equipment controlled by remote controller
JPH01116737A (en) Power source controller
JPS6224806B2 (en)
JPH04117799A (en) Remote control signal controller
JPS61240322A (en) Terminal equipment