JP2001306114A - Electronic device and input/output connecting method - Google Patents

Electronic device and input/output connecting method

Info

Publication number
JP2001306114A
JP2001306114A JP2000116342A JP2000116342A JP2001306114A JP 2001306114 A JP2001306114 A JP 2001306114A JP 2000116342 A JP2000116342 A JP 2000116342A JP 2000116342 A JP2000116342 A JP 2000116342A JP 2001306114 A JP2001306114 A JP 2001306114A
Authority
JP
Japan
Prior art keywords
input
connector
circuit
external device
output
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
JP2000116342A
Other languages
Japanese (ja)
Other versions
JP3474146B2 (en
Inventor
Masashi Tsuboi
雅士 坪井
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.)
Mitutoyo Corp
Mitsutoyo Kiko Co Ltd
Original Assignee
Mitutoyo Corp
Mitsutoyo Kiko 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 Mitutoyo Corp, Mitsutoyo Kiko Co Ltd filed Critical Mitutoyo Corp
Priority to JP2000116342A priority Critical patent/JP3474146B2/en
Publication of JP2001306114A publication Critical patent/JP2001306114A/en
Application granted granted Critical
Publication of JP3474146B2 publication Critical patent/JP3474146B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an electronic device which can meet both requirements, miniaturization and diversification of input/output data by equipping a connector for each outer device and enabling input/output of diversified data from plural outer devices without adding any number of connectors. SOLUTION: Counter 11 has connector 21 connectable to a gauge 14, printer 16 or pre-setter 18, and converts specific voltage transmitted to connector 21 from an outer device to digital data with A/D converter 71. Decoder circuit 73 generates selection 1, 2 or 3 signal corresponding to the converted data, makes counting circuit 28, printer outputting circuit 33 or set value inputting circuit 51 in counter 11 operational, and switches connecting condition of signal cables from each circuit to connector 21 with gate circuit 91-97 in input/output switching circuit 26.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、接続された外部機
器との間でデータの入出力を行う電子機器およびその入
出力接続方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device for inputting / outputting data to / from a connected external device and a method for connecting the input / output.

【0002】[0002]

【従来の技術】従来、自動制御を行うシーケンサ等の制
御装置に、測定データを送信するインライン組込用の測
定器が知られている。通常、このようなインライン組込
用の測定器はシーケンサ等の制御装置に複数設置される
ことが多く、その設置作業の簡素化を図るために、測定
器の小型化に対する要求は高かった。
2. Description of the Related Art Conventionally, there has been known an in-line built-in measuring device for transmitting measurement data to a control device such as a sequencer for performing automatic control. Usually, a plurality of such in-line built-in measuring instruments are often installed in a control device such as a sequencer, and in order to simplify the installation work, there has been a high demand for downsizing of the measuring instruments.

【0003】また一方、このような測定器では、変位量
を測定するためのゲージ、プリントアウトを行うための
プリンタ、さらには設定値を入力するためのプリセッタ
などの外部機器を接続する必要があった。
On the other hand, in such a measuring instrument, it is necessary to connect an external device such as a gauge for measuring a displacement, a printer for performing printout, and a presetter for inputting a set value. Was.

【0004】ゲージ、プリンタ、プリセッタなど、複数
の外部機器を接続するためには、これらが装着される多
くのコネクタを測定器のリアパネル等に設けなければな
らかなった。
In order to connect a plurality of external devices such as a gauge, a printer, and a presetter, many connectors to which these devices are attached must be provided on a rear panel of a measuring instrument.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、前述し
たような多くのコネクタをリアパネル等に配置すること
は、小型化の要求に反して測定器のサイズを大きくして
しまうことに繋がり、コネクタの数には限界があった。
However, arranging many connectors as described above on a rear panel or the like leads to an increase in the size of the measuring instrument in spite of the demand for miniaturization, and the number of connectors is increased. Had limitations.

【0006】そこで、本発明は、外部機器毎にコネクタ
を配置してその数を増やすことなく、複数の外部機器か
ら多様なデータの入出力を行うことができ、小型化とデ
ータ入出力の多様化の両方の要求に応えることができる
電子機器およびその入出力接続方法を提供することを目
的とする。
Therefore, the present invention enables a variety of data input / output from a plurality of external devices without arranging connectors for each external device and increasing the number of connectors. It is an object of the present invention to provide an electronic device and a method of connecting the input and output of the electronic device, which can meet both of the requirements.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に記載の電子機器は、接続された
外部機器との間でデータの入出力を行う電子機器におい
て、前記電子機器内の入出力回路に接続された信号線を
前記外部機器からの信号線に接続するために設けられ、
前記外部機器からの信号線に設けられた第1のコネクタ
が装着される第2のコネクタと、前記第1および第2の
コネクタを介して前記外部機器から入力される信号に基
づき、前記外部機器を識別する機器識別手段と、該識別
された外部機器に応じて、前記第2のコネクタに接続さ
れる前記入出力回路の設定を変更する入出力設定変更手
段とを備えたことを特徴とする。
According to a first aspect of the present invention, there is provided an electronic apparatus for inputting / outputting data to / from a connected external apparatus. A signal line connected to an input / output circuit in the electronic device is provided to connect to a signal line from the external device,
A second connector to which a first connector provided on a signal line from the external device is attached, and a signal input from the external device via the first and second connectors; And an input / output setting changer for changing settings of the input / output circuit connected to the second connector according to the identified external device. .

【0008】また、前記入出力設定変更手段は、複数の
前記入出力回路から前記第2のコネクタに接続される前
記入出力回路を選択する入出力回路選択手段と、該選択
された入出力回路に応じて、前記第2のコネクタに接続
される信号線の設定を変更する信号線設定変更手段とを
備えることが好ましい。
The input / output setting change means includes an input / output circuit selecting means for selecting the input / output circuit connected to the second connector from a plurality of the input / output circuits, and the selected input / output circuit. It is preferable to include a signal line setting change unit that changes the setting of the signal line connected to the second connector.

【0009】また、前記機器識別手段は、前記外部機器
から入力される固有の出力電圧をデジタルデータに変換
するアナログデジタル変換回路を備え、前記入出力回路
選択手段は、前記変換されたデジタルデータを基に、選
択信号を生成して前記入出力回路を選択するデコーダ回
路であり、前記信号線設定変更手段は、前記選択信号に
したがって、前記入出力回路と前記第2のコネクタとの
間に設けられた信号線を開閉するゲート回路からなるこ
とが好ましい。
Further, the device identification means includes an analog-to-digital conversion circuit for converting a unique output voltage input from the external device into digital data, and the input / output circuit selection means converts the converted digital data to digital data. A decoder circuit for generating a selection signal and selecting the input / output circuit, wherein the signal line setting change means is provided between the input / output circuit and the second connector according to the selection signal. It is preferable to include a gate circuit that opens and closes the signal line.

【0010】さらに、前記外部機器としてのゲージが前
記第1および第2のコネクタを介して接続されるカウン
タに適用されたことが好ましい。
Further, it is preferable that a gauge as the external device is applied to a counter connected via the first and second connectors.

【0011】請求項5に記載の電子機器の入出力接続方
法は、電子機器内の入出力回路に接続された信号線を外
部機器からの信号線に接続するために設けられた前記電
子機器の第2のコネクタに、前記外部機器からの信号線
に設けられた第1のコネクタを装着する工程と、前記第
1および第2のコネクタを介して前記外部機器から入力
される信号に基づき、前記外部機器を識別する工程と、
該識別された外部機器に応じて、前記第2のコネクタに
接続される前記入出力回路の設定を変更する工程とを有
する。
According to a fifth aspect of the present invention, there is provided a method for connecting an input / output of an electronic device, wherein the signal line connected to an input / output circuit in the electronic device is connected to a signal line from an external device. Attaching a first connector provided on a signal line from the external device to the second connector, and, based on a signal input from the external device via the first and second connectors, Identifying the external device;
Changing the setting of the input / output circuit connected to the second connector according to the identified external device.

【0012】本発明の電子機器では、外部機器からの信
号線に設けられた第1のコネクタを電子機器の第2のコ
ネクタに装着し、第1および第2のコネクタを介して前
記外部機器から入力される信号に基づき、機器識別手段
により外部機器を識別し、識別された外部機器に応じ
て、入出力設定変更手段により第2のコネクタに接続さ
れる電子機器内の入出力回路の設定を変更する。
In the electronic device of the present invention, the first connector provided on the signal line from the external device is mounted on the second connector of the electronic device, and the first connector is connected to the external device via the first and second connectors. The external device is identified by the device identification means based on the input signal, and the setting of the input / output circuit in the electronic device connected to the second connector is performed by the input / output setting change means in accordance with the identified external device. change.

【0013】これにより、外部機器毎にコネクタを配置
してその数を増やすことなく、複数の外部機器から多様
なデータの入出力を行うことがことができ、電子機器の
小型化とデータ入出力の多様化の両方の要求に応えるこ
とができる。
[0013] Accordingly, various data can be input and output from a plurality of external devices without arranging connectors for each external device and increasing the number of connectors. Can respond to both demands.

【0014】[0014]

【発明の実施の形態】本発明の電子機器およびその入出
力接続方法の実施の形態について説明する。本実施形態
の電子機器は、変位量を測定するゲージから出力される
パルス信号を計数する測定器(カウンタ)に適用され
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of an electronic apparatus and an input / output connection method for the same according to the present invention will be described. The electronic device of the present embodiment is applied to a measuring device (counter) that counts a pulse signal output from a gauge that measures a displacement amount.

【0015】図1は実施の形態におけるカウンタの構成
を示す図である。このカウンタ11は、ゲージ14、プ
リンタ16、プリセッタ18などの外部機器に接続され
た信号線に付属のコネクタが着脱自在に装着されるコネ
クタ21、このコネクタ21に接続された外部機器を識
別する接続機器識別回路23、識別された外部機器に応
じて入出力の設定を切り替える入出力切替回路26、ゲ
ージ14から出力されたパルス信号を計数する計数回路
28、その計数値と目標値との差分を出力値として演算
する演算回路31、プリンタ16に出力値などのデータ
を出力するプリンタ出力回路33、同じく出力値などの
データを表示する表示器35、計数値および出力値の出
力先をプリンタ出力回路33あるいは表示器35のどち
らかに切り替える出力セレクタ37、出力値の公差判定
を行う公差判定出力回路38、出力値をBCDデータに
変換して出力するBCD出力回路40、出力値(デジタ
ル出力データ)のゲインを変更するために分解能を設定
する分解能設定回路44、デジタル出力データをアナロ
グ出力電圧に変換するD/A変換回路45、複数の目標
値がそれぞれ設定された複数の目標値設定レジスタ47
(1〜n)、複数の目標値設定レジスタ47(1〜n)
のいずれかを選択するセレクタ49、各目標値設定レジ
スタ47(1〜n)に設定される目標値を入力する設定
値入力回路51、および外部からの指示(RS232
C、外部選択信号およびキー入力)を選択的に受け付け
る選択入力回路54から構成される。
FIG. 1 is a diagram showing a configuration of a counter according to the embodiment. The counter 11 includes a connector 21 to which a connector attached to a signal line connected to an external device such as a gauge 14, a printer 16 or a presetter 18 is detachably mounted, and a connection for identifying the external device connected to the connector 21. A device identification circuit 23, an input / output switching circuit 26 for switching input / output settings in accordance with the identified external device, a counting circuit 28 for counting pulse signals output from the gauge 14, and a difference between the counted value and a target value. An arithmetic circuit 31 for calculating as output values, a printer output circuit 33 for outputting data such as output values to the printer 16, a display 35 for displaying data such as output values, and a printer output circuit for outputting count values and output destinations of output values. An output selector 37 for switching to either the display 33 or the display 35, a tolerance judgment output circuit 38 for judging a tolerance of an output value, A BCD output circuit 40 for converting and converting a digital output data into BCD data, a resolution setting circuit 44 for setting a resolution for changing a gain of an output value (digital output data), and a D / A for converting digital output data into an analog output voltage A conversion circuit 45, a plurality of target value setting registers 47 in which a plurality of target values are respectively set;
(1 to n), a plurality of target value setting registers 47 (1 to n)
, A set value input circuit 51 for inputting a target value set in each of the target value setting registers 47 (1-n), and an external instruction (RS232).
C, an external selection signal and a key input).

【0016】外部機器としてのゲージ14は、その先端
部がワークに当接して変位する際の変位量をパルス信号
として出力するものである。このようなゲージとして、
例えば、分解能1μm、測定範囲10mm、出力パルス
数10ヶ/μmの性能を有するものが挙げられる。尚、
ゲージとしては、変位量に相当する数のパルス信号を出
力するものに限らず、変位量に応じた周期のパルス信号
を出力するもの、あるいは変位量そのものをデジタルデ
ータとして出力するものなど種々使用可能である。
The gauge 14 as an external device outputs a displacement amount when a tip portion of the gauge 14 is displaced by contacting the work as a pulse signal. As such a gauge,
For example, one having a performance of a resolution of 1 μm, a measurement range of 10 mm, and the number of output pulses of 10 / μm can be mentioned. still,
Various types of gauges can be used, such as those that output pulse signals of the number corresponding to the amount of displacement, those that output pulse signals with a cycle corresponding to the amount of displacement, or those that output the amount of displacement itself as digital data. It is.

【0017】また、外部機器としてのプリンタ16は、
測定データを印刷するものであり、熱転写式、ドットイ
ンパクト式、インクジェット式など種々の方式のものが
使用可能である。
The printer 16 as an external device is
It prints measurement data, and various types such as a thermal transfer type, a dot impact type, and an ink jet type can be used.

【0018】さらに、外部機器としてのプリセッタ18
は、目標値設定レジスタ47(1〜n)に目標値を設定
するために使用されるものであり、その前面にはテンキ
ーなどが配置されている。
Further, a presetter 18 as an external device
Is used to set a target value in the target value setting register 47 (1 to n), and a numeric keypad or the like is arranged on the front surface thereof.

【0019】このようなゲージ14、プリンタ16、プ
リセッタ18などの外部機器に接続された信号線に付属
のコネクタが着脱自在に装着されるコネクタ21は、1
0ピンからなるコネクタであり、カウンタ11のリアパ
ネルに設けられている。
A connector 21 to which a connector attached to a signal line connected to an external device such as the gauge 14, the printer 16, the presetter 18 or the like is detachably mounted is one of:
This connector is composed of 0 pins, and is provided on the rear panel of the counter 11.

【0020】図2はコネクタ21の各ピンに繋がる信号
線を示す図である。コネクタ21の1番ピンはグラン
ド、3番ピンはクロック(CK)、4番ピンは未使用
(N.C)、8番ピンは未使用(N.C)、9番ピンは
電源電圧(VCC)、10番ピンはフレームグランド
(F.G)であり、これらは、接続される外部機器の種
類によらず、同じ仕様である。コネクタ21の7番ピン
は接続された外部機器を識別するために使用される。外
部機器の識別方法については後述する。残りの2、5、
6番ピンは、接続された外部機器によってその仕様が異
なる。
FIG. 2 is a diagram showing signal lines connected to each pin of the connector 21. Pin 1 of connector 21 is ground, pin 3 is clock (CK), pin 4 is unused (NC), pin 8 is unused (NC), and pin 9 is power supply voltage (VCC). The 10th pin is a frame ground (FG), and these have the same specifications regardless of the type of external device to be connected. The seventh pin of the connector 21 is used to identify a connected external device. The method of identifying the external device will be described later. The remaining two, five,
The specification of the sixth pin differs depending on the connected external device.

【0021】すなわち、同図(A)に示すように、カウ
ンタ11のコネクタ21にゲージ14のコネクタ61が
装着された場合、2番ピンはデータ(DATA)、5番
ピンはデータ要求(REQ)、6番ピンはリセット信号
(ORG)の仕様となる。また、同図(B)に示すよう
に、カウンタ11のコネクタ21にプリンタ16のコネ
クタ63が装着された場合、2番ピンはデータ(DAT
A)、5番ピンはデータ要求(REQ)、6番ピンは未
使用の仕様となる。さらに、同図(C)に示すように、
カウンタ11のコネクタ21にプリセッタ18のコネク
タ65が装着された場合、2番ピンはストローブ(ST
B)信号、5番ピンはデータ(DATA)、6番ピンは
未使用の仕様となる。
That is, as shown in FIG. 2A, when the connector 61 of the gauge 14 is attached to the connector 21 of the counter 11, the second pin is data (DATA) and the fifth pin is data request (REQ). , 6th pin have the specification of the reset signal (ORG). When the connector 63 of the printer 16 is attached to the connector 21 of the counter 11 as shown in FIG.
A) The fifth pin is a data request (REQ), and the sixth pin is unused. Further, as shown in FIG.
When the connector 65 of the presetter 18 is attached to the connector 21 of the counter 11, the second pin is connected to the strobe (ST
B) The fifth pin has data (DATA) and the sixth pin is unused.

【0022】図3はコネクタ21に接続された入出力切
替回路26および接続機器識別回路23の構成を示す図
である。尚、図中、コネクタ21には、接続された外部
機器によって仕様が異なるピンだけが示され、共通仕様
のピンは省略されている。
FIG. 3 is a diagram showing the configuration of the input / output switching circuit 26 and the connected device identification circuit 23 connected to the connector 21. In the drawing, only pins having different specifications depending on the connected external device are shown in the connector 21, and pins having common specifications are omitted.

【0023】接続機器識別回路23はA/Dコンバータ
71およびデコーダ回路73から構成される。A/Dコ
ンバータ71は、コネクタ21の7番ピンを介して外部
機器から出力される固有のアナログ電圧を入力し、デジ
タルデータに変換するものであり、本実施形態では、1
6台までの外部機器が接続可能なように4ビットの分解
能を有する。また、デコーダ回路73は、A/Dコンバ
ータ71によって変換されたデジタルデータを基に選択
信号(選択1、選択2、選択3、…)を出力する。
The connection device identification circuit 23 includes an A / D converter 71 and a decoder circuit 73. The A / D converter 71 inputs a unique analog voltage output from an external device via the 7th pin of the connector 21 and converts the analog voltage into digital data.
It has 4-bit resolution so that up to six external devices can be connected. The decoder circuit 73 outputs a selection signal (selection 1, selection 2, selection 3,...) Based on the digital data converted by the A / D converter 71.

【0024】入出力切替回路26は、選択信号によって
開閉を行う複数のゲート回路91〜97から構成されて
おり、入出力回路としての計数回路28、プリンタ回路
33および設定値入力回路51からの信号線を選択的に
コネクタ21の各ピンに接続する。
The input / output switching circuit 26 is composed of a plurality of gate circuits 91 to 97 which open and close in response to a selection signal. A wire is selectively connected to each pin of connector 21.

【0025】上記構成を有するカウンタ11にゲージ1
4、プリンタ16およびプリセッタ18が接続された場
合の入出力接続動作を示す。始めに、カウンタ11のコ
ネクタ21にゲージ14のコネクタ61が装着された場
合、ゲージ14内部の固有電圧(例えば、1.5V)が
コネクタ21の7番ピンを通じてカウンタ11内のA/
Dコンバータ71に入力される。A/Dコンバータ71
はこの固有電圧をデジタルデータ(例えば、「000
1」)に変換する。デコーダ回路73は、変換されたデ
ジタルデータに応じて選択1信号をアクティブにする。
アクティブとなった選択1信号が計数回路28、ゲート
回路91、94、97に入力すると、計数回路28が作
動状態になると同時に、ゲート回路91、94、97が
開かれる。
The gauge 1 is attached to the counter 11 having the above configuration.
4. Input / output connection operation when the printer 16 and the presetter 18 are connected. First, when the connector 61 of the gauge 14 is attached to the connector 21 of the counter 11, the specific voltage (for example, 1.5 V) inside the gauge 14 is applied to the A / A in the counter 11 through the seventh pin of the connector 21.
It is input to the D converter 71. A / D converter 71
Converts this unique voltage into digital data (for example, “000
1 "). The decoder circuit 73 activates the selection 1 signal according to the converted digital data.
When the activated selection 1 signal is input to the counting circuit 28 and the gate circuits 91, 94 and 97, the counting circuit 28 is activated and the gate circuits 91, 94 and 97 are opened at the same time.

【0026】これにより、計数回路28からコネクタ2
1の5番ピンを通じてデータ要求信号(REQ)がゲー
ジ14に出力されると、ゲージ14のコネクタ61の3
番ピンを通じてクロック(CK)信号が計数回路28に
入力すると同時にこれに同期してパルス信号(データ)
がコネクタ61の2番ピンを通じてシリアルにゲージ1
4から計数回路28に伝送される。データの伝送が終了
すると、計数回路28はコネクタ21の6番ピンを通じ
てリセット信号(ORG)をゲージ14に出力する。ゲ
ージ14はこのリセット信号(ORG)を受け取ると、
記憶しておいた測定データをリセットする。
As a result, the counter 2
When the data request signal (REQ) is output to the gauge 14 through the 5th pin of No. 1, the connector 61 of the gauge 14
A clock (CK) signal is input to the counting circuit 28 through the #th pin, and at the same time, a pulse signal (data) is synchronized with the clock signal.
Is serially gauge 1 through pin 2 of connector 61
4 to the counting circuit 28. When the data transmission is completed, the counting circuit 28 outputs a reset signal (ORG) to the gauge 14 through the sixth pin of the connector 21. When the gauge 14 receives this reset signal (ORG),
Reset the stored measurement data.

【0027】つぎに、カウンタ11のコネクタ21にプ
リンタ16のコネクタ63が装着された場合、同様にプ
リンタ16内部の固有電圧(例えば、2.5V)がコネ
クタ21の7番ピンを通じてカウンタ11内の接続機器
識別回路23のA/Dコンバータ71に入力される。A
/Dコンバータ71はこの固有電圧をデジタルデータ
(例えば、「0010」)に変換し、デコーダ回路73
は変換されたデジタルデータによって選択2信号をアク
ティブにする。アクティブとなった選択2信号がプリン
タ出力回路33およびゲート回路92、95に入力する
と、プリンタ出力回路33が作動状態になると同時にゲ
ート回路92、95が開かれる。このとき、コネクタ2
1の6番ピンに繋がれたゲート回路97は選択されてお
らず、6番ピンは未使用(N.C)となる。
Next, when the connector 63 of the printer 16 is attached to the connector 21 of the counter 11, similarly, a unique voltage (for example, 2.5 V) inside the printer 16 is applied to the inside of the counter 11 through the seventh pin of the connector 21. It is input to the A / D converter 71 of the connected device identification circuit 23. A
The / D converter 71 converts this specific voltage into digital data (for example, “0010”),
Activates the select 2 signal with the converted digital data. When the activated selection 2 signal is input to the printer output circuit 33 and the gate circuits 92 and 95, the printer output circuit 33 is activated and the gate circuits 92 and 95 are opened at the same time. At this time, connector 2
The gate circuit 97 connected to the No. 6 pin is not selected, and the No. 6 pin is unused (NC).

【0028】これにより、プリンタ16からプリントデ
ータ要求信号(REQ)がコネクタ63の5番ピンを通
じて出力されると、カウンタ11のコネクタ21の3番
ピンを通じてクロック(CK)信号がプリンタ出力回路
33に入力すると同時にこれに同期してプリントデータ
がコネクタ21の2番ピンを通じてプリンタ出力回路3
3からシリアルにプリンタ16に伝送される。そして、
プリンタ16によりプリンタアウトが行われる。
When a print data request signal (REQ) is output from the printer 16 through the fifth pin of the connector 63, a clock (CK) signal is sent to the printer output circuit 33 through the third pin of the connector 21 of the counter 11. At the same time as the input, the print data is synchronized with the print data through the second pin of the connector 21 to the printer output circuit 3.
3 is transmitted to the printer 16 serially. And
Printer out is performed by the printer 16.

【0029】さらに、カウンタ11のコネクタ21にプ
リセッタ18のコネクタ65が装着された場合、同様に
プリセッタ18内部の固有電圧(例えば、3.5V)が
コネクタ21の7番ピンを通じてカウンタ11内の接続
機器識別回路23のA/Dコンバータ71に入力され
る。A/Dコンバータ71はこの固有電圧をデジタルデ
ータ(例えば、「0011」)に変換し、デコーダ回路
73は変換されたデジタルデータによって選択3信号を
アクティブにする。アクティブとなった選択3信号が設
定値入力回路51およびゲート回路93、96に入力さ
れると、設定値入力回路51が作動状態になると同時に
ゲート回路93、96が開かれる。このとき、コネクタ
21の6番ピンに繋がるゲート回路97は選択されてお
らず、6番ピンは未使用(N.C)となる。
Further, when the connector 65 of the presetter 18 is attached to the connector 21 of the counter 11, the inherent voltage (for example, 3.5 V) inside the presetter 18 is similarly connected to the connector 21 through the seventh pin of the connector 21. The signal is input to the A / D converter 71 of the device identification circuit 23. The A / D converter 71 converts this specific voltage into digital data (for example, “0011”), and the decoder circuit 73 activates the select 3 signal according to the converted digital data. When the activated selection 3 signal is input to the set value input circuit 51 and the gate circuits 93 and 96, the set value input circuit 51 is activated and the gate circuits 93 and 96 are opened at the same time. At this time, the gate circuit 97 connected to the sixth pin of the connector 21 is not selected, and the sixth pin is unused (NC).

【0030】これにより、設定値入力回路51からコネ
クタ21の2番ピンを通じてストローブ(STB)信号
が出力されると、カウンタ11のコネクタ21の3番ピ
ンを通じてクロック(CK)信号がプリセッタ18に入
力すると同時にこれに同期してプリセッタ18から設定
値データがコネクタ65の5番ピンを通じてシリアルに
設定値入力回路51に伝送される。そして、設定値デー
タの伝送が終了すると、設定値入力回路51はセレクタ
49により選択された目標値設定レジスタ47(1〜
n)に目標値を設定する。
When a strobe (STB) signal is output from the set value input circuit 51 through the second pin of the connector 21, a clock (CK) signal is input to the presetter 18 through the third pin of the connector 21 of the counter 11. At the same time, the set value data is serially transmitted from the presetter 18 to the set value input circuit 51 through the fifth pin of the connector 65 in synchronization with this. Then, when the transmission of the set value data is completed, the set value input circuit 51 sets the target value setting register 47 (1 to 1) selected by the selector 49.
Set a target value in n).

【0031】このように、本実施形態のカウンタ11で
は、ゲージ14、プリンタ16、プリセッタ18などの
外部機器を共通のコネクタ21に装着して使用すること
ができ、しかも、コネクタ21に装着された外部機器を
コネクタ21の7番ピンを通じて入力される固有のアナ
ログ電圧を基に接続機器判別回路23で識別し、識別し
た外部機器に対応するカウンタ11内の入出力回路(計
数回路、プリンタ出力回路あるいは設定値入力回路)を
作動状態にすると同時に、入出力切替回路26によって
コネクタ21の各ピンに繋がれた信号線の入出力の設定
を切り替える。このとき、入出力切替回路26内のゲー
ト回路91〜97は選択されていない入出力回路からの
信号線を絶縁状態にするので、各信号線が相互に干渉す
ることは生じない。
As described above, in the counter 11 of the present embodiment, external devices such as the gauge 14, the printer 16, and the presetter 18 can be mounted on the common connector 21 and used. The external device is identified by the connected device determination circuit 23 based on a unique analog voltage input through the 7th pin of the connector 21, and an input / output circuit (a counting circuit, a printer output circuit, etc.) in the counter 11 corresponding to the identified external device. Alternatively, the input / output switching circuit 26 switches the input / output setting of the signal line connected to each pin of the connector 21 at the same time when the setting value input circuit is activated. At this time, the gate circuits 91 to 97 in the input / output switching circuit 26 make the signal lines from the unselected input / output circuits insulated, so that the signal lines do not interfere with each other.

【0032】したがって、外部機器毎にカウンタのリア
パネル等にコネクタを配置してその数を増やすことな
く、複数の外部機器から多様なデータの入出力を行うこ
とができ、カウンタの小型化とデータ入出力の多様化の
両方の要求に応えることができる。
Therefore, various data can be input / output from a plurality of external devices without arranging connectors on the rear panel of the counter for each external device and increasing the number of connectors. It can meet both demands of output diversification.

【0033】尚、上記実施形態では、説明を分かり易く
するために、データ要求信号(REQ)、ストローブ信
号(STB)、リセット信号(ORG)は個々の入出力
回路から出力されるようにしたが、これらのタイミング
信号は同一のタイミング回路から出力されることが回路
設計上、好ましい。
In the above embodiment, the data request signal (REQ), the strobe signal (STB), and the reset signal (ORG) are output from the individual input / output circuits for easy understanding. It is preferable in terms of circuit design that these timing signals are output from the same timing circuit.

【0034】また、以上が本発明の実施の形態の説明で
あるが、本発明は、これら実施の形態の構成に限られる
ものではなく、クレームで示した機能、または実施の形
態の構成が持つ機能が達成できる構成であればどのよう
なものであっても適用可能である。例えば、上記実施形
態では、外部機器が3台で、接続機器識別回路23では
16台まで識別可能な場合を示したが、特にその数は限
定されるものではない。また、外部機器固有の出力は電
圧に限らず、電流あるいはパルス信号であってもよい。
パルス信号の周波数によって外部機器を識別する場合、
接続機器識別回路は、A/Dコンバータの代わりにF/
Vコンバータを用いて識別することができる。
Although the embodiments of the present invention have been described above, the present invention is not limited to the configurations of the embodiments, but has the functions described in the claims or the configurations of the embodiments. Any configuration that can achieve the function is applicable. For example, in the above embodiment, the case where the number of external devices is three and the connected device identification circuit 23 can identify up to 16 devices is shown, but the number is not particularly limited. The output unique to the external device is not limited to a voltage, but may be a current or a pulse signal.
When identifying the external device by the frequency of the pulse signal,
The connection device identification circuit uses F / D instead of A / D converter.
It can be identified using a V converter.

【0035】また、接続される外部機器の数が2台程度
と少ない場合、A/Dコンバータおよびデコーダの代わ
りに、コンパレータを用いて機器固有の電圧を基準電圧
と比較することにより外部機器を識別してもよい。
When the number of external devices to be connected is as small as about two, the external device is identified by comparing a voltage unique to the device with a reference voltage using a comparator instead of an A / D converter and a decoder. May be.

【0036】[0036]

【発明の効果】本発明によれば、外部機器毎にコネクタ
を配置してその数を増やすことなく、複数の外部機器か
ら多様なデータの入出力を行うことができ、電子機器の
小型化とデータ入出力の多様化の両方の要求に応えるこ
とができる。
According to the present invention, it is possible to input and output various data from a plurality of external devices without arranging connectors for each external device and increasing the number of connectors. It can meet both demands for diversification of data input / output.

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

【図1】実施の形態におけるカウンタの構成を示す図で
ある。
FIG. 1 is a diagram showing a configuration of a counter according to an embodiment.

【図2】コネクタの各ピンに繋がる信号線を示す図であ
る。
FIG. 2 is a diagram showing signal lines connected to respective pins of a connector.

【図3】コネクタに接続された入出力切替回路および接
続機器識別回路の構成を示す図である。
FIG. 3 is a diagram illustrating a configuration of an input / output switching circuit and a connected device identification circuit connected to a connector.

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

11 カウンタ 14 ゲージ 16 プリンタ 18 プリセッタ 21、61、63、65 コネクタ 23 接続機器識別回路 26 入出力切替回路 28 計数回路 33 プリンタ出力回路 51 設定値入力回路 71 A/Dコンバータ 73 デコーダ回路 91〜97 ゲート回路 Reference Signs List 11 counter 14 gauge 16 printer 18 presetter 21, 61, 63, 65 connector 23 connected device identification circuit 26 input / output switching circuit 28 counting circuit 33 printer output circuit 51 set value input circuit 71 A / D converter 73 decoder circuit 91-97 gate circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 接続された外部機器との間でデータの入
出力を行う電子機器において、 前記電子機器内の入出力回路に接続された信号線を前記
外部機器からの信号線に接続するために設けられ、前記
外部機器からの信号線に設けられた第1のコネクタが装
着される第2のコネクタと、 前記第1および第2のコネクタを介して前記外部機器か
ら入力される信号に基づき、前記外部機器を識別する機
器識別手段と、 該識別された外部機器に応じて、前記第2のコネクタに
接続される前記入出力回路の設定を変更する入出力設定
変更手段とを備えたことを特徴とする電子機器。
1. An electronic device for inputting / outputting data to / from a connected external device, wherein a signal line connected to an input / output circuit in the electronic device is connected to a signal line from the external device. And a second connector to which a first connector provided on a signal line from the external device is attached, and a signal input from the external device via the first and second connectors. Device identification means for identifying the external device; and input / output setting change means for changing settings of the input / output circuit connected to the second connector according to the identified external device. Electronic equipment characterized by the following.
【請求項2】 前記入出力設定変更手段は、 複数の前記入出力回路の中から前記第2のコネクタに接
続される前記入出力回路を選択する入出力回路選択手段
と、 該選択された入出力回路に応じて前記第2のコネクタに
接続される信号線の設定を変更する信号線設定変更手段
とを備えたことを特徴とする請求項1記載の電子機器。
2. The input / output setting change means includes: an input / output circuit selecting means for selecting the input / output circuit connected to the second connector from a plurality of the input / output circuits; 2. The electronic apparatus according to claim 1, further comprising: a signal line setting change unit configured to change a setting of a signal line connected to the second connector according to an output circuit.
【請求項3】 前記機器識別手段は、前記外部機器から
入力される固有の出力電圧をデジタルデータに変換する
アナログデジタル変換回路を備え、 前記入出力回路選択手段は、前記変換されたデジタルデ
ータを基に、選択信号を生成して前記入出力回路を選択
するデコーダ回路であり、 前記信号線設定変更手段は、前記選択信号にしたがっ
て、前記入出力回路と前記第2のコネクタとの間に設け
られた信号線を開閉するゲート回路からなることを特徴
とする請求項2記載の電子機器。
3. The device identification unit includes an analog-to-digital conversion circuit that converts a unique output voltage input from the external device into digital data, and the input / output circuit selection unit converts the converted digital data into digital data. A decoder circuit for generating a selection signal and selecting the input / output circuit, wherein the signal line setting change means is provided between the input / output circuit and the second connector according to the selection signal. 3. The electronic device according to claim 2, comprising a gate circuit for opening and closing the signal line.
【請求項4】 前記外部機器としてのゲージが前記第1
および第2のコネクタを介して接続されるカウンタに適
用されたことを特徴とする請求項1乃至請求項3のいず
れかに記載の電子機器。
4. The system according to claim 1, wherein the gauge as the external device is the first device.
4. The electronic apparatus according to claim 1, wherein the electronic apparatus is applied to a counter connected via a second connector.
【請求項5】 電子機器内の入出力回路に接続された信
号線を外部機器からの信号線に接続するために設けられ
た前記電子機器の第2のコネクタに、前記外部機器から
の信号線に設けられた第1のコネクタを装着する工程
と、 前記第1および第2のコネクタを介して前記外部機器か
ら入力される信号に基づき、前記外部機器を識別する工
程と、 該識別された外部機器に応じて、前記第2のコネクタに
接続される前記入出力回路の設定を変更する工程とを有
する電子機器の入出力接続方法。
5. A signal line from the external device is connected to a second connector of the electronic device provided for connecting a signal line connected to an input / output circuit in the electronic device to a signal line from the external device. Mounting the first connector provided on the external device; identifying the external device based on a signal input from the external device via the first and second connectors; Changing the setting of the input / output circuit connected to the second connector according to the device.
JP2000116342A 2000-04-18 2000-04-18 Electronics Expired - Fee Related JP3474146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000116342A JP3474146B2 (en) 2000-04-18 2000-04-18 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000116342A JP3474146B2 (en) 2000-04-18 2000-04-18 Electronics

Publications (2)

Publication Number Publication Date
JP2001306114A true JP2001306114A (en) 2001-11-02
JP3474146B2 JP3474146B2 (en) 2003-12-08

Family

ID=18627814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000116342A Expired - Fee Related JP3474146B2 (en) 2000-04-18 2000-04-18 Electronics

Country Status (1)

Country Link
JP (1) JP3474146B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627343B2 (en) 2003-04-25 2009-12-01 Apple Inc. Media player system
JP2011248578A (en) * 2010-05-26 2011-12-08 Mitsubishi Electric Corp Programmable controller
US8078776B2 (en) 2004-04-27 2011-12-13 Apple Inc. Electronic device having a dual key connector
JP2014167670A (en) * 2013-02-28 2014-09-11 Panasonic Industrial Devices Sunx Co Ltd Programmable controller
US10049206B2 (en) 2005-01-07 2018-08-14 Apple Inc. Accessory authentication for electronic devices

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8078224B2 (en) 2003-04-25 2011-12-13 Apple Inc. Male plug connector
US8190205B2 (en) 2003-04-25 2012-05-29 Apple Inc. Male plug connector
US7783070B2 (en) 2003-04-25 2010-08-24 Apple Inc. Cable adapter for a media player system
US8050714B2 (en) 2003-04-25 2011-11-01 Apple Inc. Docking station for media player system
US8467829B2 (en) 2003-04-25 2013-06-18 Apple Inc. Wireless adapter for media player system
US8165634B2 (en) 2003-04-25 2012-04-24 Apple Inc. Female receptacle connector
US7751853B2 (en) 2003-04-25 2010-07-06 Apple Inc. Female receptacle data pin connector
US7627343B2 (en) 2003-04-25 2009-12-01 Apple Inc. Media player system
US8271038B2 (en) 2003-04-25 2012-09-18 Apple Inc. Wireless adapter for media player system
US8271705B2 (en) 2004-04-27 2012-09-18 Apple Inc. Dual key electronic connector
US8078776B2 (en) 2004-04-27 2011-12-13 Apple Inc. Electronic device having a dual key connector
US10049206B2 (en) 2005-01-07 2018-08-14 Apple Inc. Accessory authentication for electronic devices
JP2011248578A (en) * 2010-05-26 2011-12-08 Mitsubishi Electric Corp Programmable controller
JP2014167670A (en) * 2013-02-28 2014-09-11 Panasonic Industrial Devices Sunx Co Ltd Programmable controller

Also Published As

Publication number Publication date
JP3474146B2 (en) 2003-12-08

Similar Documents

Publication Publication Date Title
KR19990076906A (en) Integrated circuit device tester
CA2186312A1 (en) Ink Jet Print Head Identification Circuit with Serial Out, Dynamic Shift Registers
US6704829B1 (en) Switch input processing module for switching signal transmission lines to transmit different types of signals
JP3474146B2 (en) Electronics
US4335425A (en) Data processing apparatus having diagnosis function
US6253360B1 (en) Timing generator
US6331822B1 (en) Communication control apparatus
WO2003083904B1 (en) Serial integrated scan-based testing of ink jet print head
JP3524466B2 (en) Data output device and method
US6493109B1 (en) Print head driving apparatus and printer using the same
JP4069403B2 (en) Waveform measuring instrument
US4755758A (en) Wave formatter for a logic circuit testing system
KR100398032B1 (en) small printer
CN209728048U (en) A kind of novel voltage tester
SU821920A1 (en) Apparatus for recording information
JP5717421B2 (en) Thermal head and thermal printer
SU1520531A1 (en) Device for interfacing computer with users
KR100285740B1 (en) Real time data output device
KR0139899Y1 (en) Character control device of monitor in manufacturing process
SU851391A1 (en) Channel-to-channel adapter
SU1134944A1 (en) Device for determining shortest path on graph
SU1242973A1 (en) Interface for linking telegraph apparatus with computer
SU1297049A1 (en) Device for checking terminals
JPS60150771A (en) Control system of pinball stand
SU1700561A1 (en) Information input device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
R150 Certificate of patent or registration of utility model

Ref document number: 3474146

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20150919

Year of fee payment: 12

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